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QAAAA,0DAAAA;AACzBA,QAAAA,4DAAAA;AACIA,QAAAA,wDAAAA;AAKJA,QAAAA,0DAAAA;AACJA,QAAAA,0DAAAA;AACJA,QAAAA,0DAAAA;AACJA,QAAAA,0DAAAA;AACJA,QAAAA,0DAAAA;;;;AA5D+BA,QAAAA,uDAAAA;AAAAA,QAAAA,wDAAAA;AAYOA,QAAAA,uDAAAA;AAAAA,QAAAA,+DAAAA;AAKIA,QAAAA,uDAAAA;AAAAA,QAAAA,+DAAAA;AAGkBA,QAAAA,uDAAAA;AAAAA,QAAAA,wDAAAA;AA+BMA,QAAAA,uDAAAA;AAAAA,QAAAA,wDAAAA;;;;;;AD5ClE,SAAaO,4CAAb;AAAA;;;;;;;;;;;;;;;;;;AEVA;AAEA;AACA;;AAYO,IAAMiD,yCAAb;AAAM,QAAOA,yCAAP,CAAgD;;;qBAAzCA;AAAyC;;;UAAzCA;;;cANA,CACLD,yDADK,EAELD,4HAFK;;AAMb,SAAaE,yCAAb;AAAA;;;sHAAaA,2CAAyC;AAAAC,mBAPnClD,8HAOmC;AAPSmD,cAEvDH,yDAFuD,EAGvDD,4HAHuD,CAOT;AAJzBK,cAEfpD,8HAFe;AAIyB;AAFI;;;;;;;;;;;;;;ACVpD,MAAOqD,oBAAP,CAA2B;AAAjCpD;AAKI,mBAAkB,EAAlB;AACH;;AANgC","sources":["./projects/lwlib/src/check-light-detail-data-law-article-popup/check-light-detail-data-law-article-popup.component.ts","./projects/lwlib/src/check-light-detail-data-law-article-popup/check-light-detail-data-law-article-popup.component.html","./projects/lwlib/src/check-light-detail-data-law-article-popup/check-light-detail-data-law-article-popup.module.ts","./projects/lwlib/src/summary-filter-popup/summary-filter-setting.ts"],"sourcesContent":["import { Component, OnInit, HostListener, ViewChild, ElementRef } from '@angular/core';\r\nimport { CheckInLogLawArticle } from '../check-in/check-in-log-law-article';\r\nimport { CheckInLawArticle } from '../check-in/check-in-law-article';\r\nimport { MatDialogRef } from '@angular/material/dialog';\r\n\r\n@Component({\r\n selector: 'app-check-light-detail-data-law-article-popup',\r\n templateUrl: './check-light-detail-data-law-article-popup.component.html',\r\n styleUrls: ['./check-light-detail-data-law-article-popup.component.scss']\r\n})\r\nexport class CheckLightDetailDataLawArticlePopupComponent implements OnInit {\r\n statusClassNameDict: { [key: number]: string } = CheckInLawArticle.statusClassNameDict;\r\n statusLightNameDict: { [key: number]: string } = {\r\n 1: '綠燈',\r\n 2: '橘燈',\r\n 3: '紅燈',\r\n };\r\n\r\n\r\n isLoading: boolean = false;\r\n\r\n checkInCount: number = 0;\r\n selectedCountPastDay: number = 0;\r\n log: CheckInLogLawArticle[] = [];\r\n\r\n isMenuShow: boolean = false;\r\n\r\n updateCheckInDataSystem: (countPastDay: number) => void;\r\n @ViewChild('menuButtonElement') menuButtonElement: ElementRef;\r\n @ViewChild('menuElement') menuElement: ElementRef;\r\n\r\n\r\n\r\n constructor(\r\n private matDialogRef: MatDialogRef\r\n ) { }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n selectCountPastDay(day: number) {\r\n this.selectedCountPastDay = day;\r\n this.updateCheckInDataSystem(day);\r\n this.isMenuShow = false;\r\n }\r\n\r\n convertDateTimeToString(time: number): string {\r\n const date = new Date(time);\r\n return date.getFullYear()\r\n + '/' + (date.getMonth() + 1).toString().padStart(2, '0')\r\n + '/' + (date.getDate()).toString().padStart(2, '0')\r\n + ' ' + (date.getHours()).toString().padStart(2, '0')\r\n + ':' + (date.getMinutes()).toString().padStart(2, '0');\r\n }\r\n\r\n\r\n checkCursorClickClassName(ev: any, className: string): boolean {\r\n const path = ev.path || (ev.composedPath && ev.composedPath());\r\n\r\n return path.filter(a => a instanceof HTMLElement).some((a: Element) => {\r\n return a.classList.contains(className);\r\n });\r\n }\r\n checkCursorClickTarget(ev: any, element: Element): boolean {\r\n const path = ev.path || (ev.composedPath && ev.composedPath());\r\n\r\n return path.filter(a => a instanceof HTMLElement).some((a: Element) => {\r\n return a === element;\r\n });\r\n }\r\n getElementFromClickPath(ev: any, className: string): HTMLElement {\r\n const path = ev.path || (ev.composedPath && ev.composedPath());\r\n\r\n return path.filter(a => a instanceof HTMLElement).find((a: Element) => {\r\n return a.classList.contains(className);\r\n });\r\n }\r\n @HostListener('document:click', ['$event']) clickCheck($ev: MouseEvent): void {\r\n if (this.isMenuShow && this.menuElement.nativeElement) {\r\n if (!this.checkCursorClickTarget($ev, this.menuElement.nativeElement)\r\n && !this.checkCursorClickTarget($ev, this.menuButtonElement.nativeElement)) {\r\n this.isMenuShow = false;\r\n }\r\n }\r\n }\r\n\r\n toggleMenuShow(): void {\r\n this.isMenuShow = !this.isMenuShow;\r\n }\r\n\r\n\r\n closeWindow(): void {\r\n this.matDialogRef.close();\r\n }\r\n}\r\n","
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
詳細資料
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
打卡 :
\r\n
{{checkInCount}}
\r\n
\r\n
\r\n
\r\n
\r\n
{{selectedCountPastDay==0?'全部':'過去'+selectedCountPastDay+'天'}}
\r\n
\r\n
\r\n
\r\n
全部
\r\n
過去7天
\r\n
過去14天
\r\n
過去30天
\r\n
過去60天
\r\n
過去180天
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
綠燈:記憶及規範解釋掌握程度高(很熟悉)
\r\n
\r\n
\r\n
\r\n
橘燈:記憶及規範解釋掌握度不足(應注意)
\r\n
\r\n
\r\n
\r\n
紅燈:無法有效記憶或解釋,須加以關注(很危險)
\r\n
\r\n
\r\n
\r\n
灰燈:尚未開始研讀
\r\n
\r\n
\r\n
\r\n
近期打卡記錄
\r\n
\r\n
\r\n
\r\n
{{convertDateTimeToString(item.time)}}
\r\n
- {{statusLightNameDict[item.status]}}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
","import { FramePopupCloseModule } from 'projects/mobile/src/app/common/frame-popup-close/frame-popup-close.module';\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CheckLightDetailDataLawArticlePopupComponent } from './check-light-detail-data-law-article-popup.component';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [CheckLightDetailDataLawArticlePopupComponent],\r\n imports: [\r\n CommonModule,\r\n FramePopupCloseModule,\r\n ],\r\n exports: [CheckLightDetailDataLawArticlePopupComponent]\r\n})\r\nexport class CheckLightDetailDataLawArticlePopupModule { }\r\n","import { SummaryTypeId } from 'projects/desktop/src/app/root/root-main/child-content-storage-personal/judgment/summary-type-id.enum';\r\nimport { SummaryFilterDisplayModeId } from './summary-filter-display-mode-id.enum';\r\n\r\nexport class SummaryFilterSetting {\r\n /** 篩選的摘要種類,如果長度是0或是空,等於顯示全部種類 */\r\n selectedTypes: SummaryTypeId[];\r\n /** 搜尋區的摘要清單顯示模式,只有法規筆記有用,一次全部顯示,或是只顯示選擇到的法條 */\r\n displayModeId: SummaryFilterDisplayModeId;\r\n keyword: string = '';\r\n}\r\n"],"names":["CheckInLawArticle","i0","ctx_r4","ctx_r6","ctx_r7","ctx_r8","ctx_r9","ctx_r10","CheckLightDetailDataLawArticlePopupComponent","constructor","matDialogRef","statusClassNameDict","ngOnInit","selectCountPastDay","day","selectedCountPastDay","updateCheckInDataSystem","isMenuShow","convertDateTimeToString","time","date","Date","getFullYear","getMonth","toString","padStart","getDate","getHours","getMinutes","checkCursorClickClassName","ev","className","path","composedPath","filter","a","HTMLElement","some","classList","contains","checkCursorClickTarget","element","getElementFromClickPath","find","clickCheck","$ev","menuElement","nativeElement","menuButtonElement","toggleMenuShow","closeWindow","close","selectors","viewQuery","ctx","FramePopupCloseModule","CommonModule","CheckLightDetailDataLawArticlePopupModule","declarations","imports","exports","SummaryFilterSetting"],"sourceRoot":"webpack:///"}