{"version":3,"file":"default-projects_desktop_src_app_root_root-main_child-content-storage-personal_judicial-inter-a5dc71.js","mappings":";;;;;;;;;;;;;AAIM,MAAOA,6BAAP,CAAoC;AAOzB,SAANC,MAAM,CAACC,SAAD,EACTC,QADS,EAETC,iBAFS,EAGTC,YAHS,EAITC,QAJS,EAIuB;AAChC,UAAMC,IAAI,GAAG,IAAIP,6BAAJ,EAAb;AACAO,QAAI,CAACC,iBAAL,GAAyBN,SAAzB;AACAK,QAAI,CAACJ,QAAL,GAAgBA,QAAhB;AACAI,QAAI,CAACH,iBAAL,GAAyBA,iBAAzB;AACAG,QAAI,CAACF,YAAL,GAAoBA,YAApB;AACAE,QAAI,CAACD,QAAL,GAAgBA,QAAhB;AAEA,WAAOC,IAAP;AACH;;AApBqC;;;;;;;;;;;;;;;;;ACF1C;;;AAOO,IAAMG,+BAAb;AAAM,QAAOA,+BAAP,CAAsC;AAExCC,gBACYC,wBADZ,EAEYC,QAFZ,EAGYC,MAHZ,EAIYC,mBAJZ,EAIoD;AAHxC;AACA;AACA;AACA;AACP;;AAELC,cAAU;AACN,YAAMC,SAAS,GAAG,KAAKL,wBAAL,CACbM,uBADa,CACWT,wFADX,EAEbR,MAFa,CAEN,KAAKY,QAFC,CAAlB;AAIAI,eAAS,CAACE,QAAV,CAAmBC,YAAnB,GAAkCH,SAAlC;AAEAA,eAAS,CAACI,QAAV,CAAmBC,aAAnB,CAAiCC,YAAjC,CAA8C,OAA9C,EAAuD,EAAvD;AACAC,cAAQ,CAACC,IAAT,CAAcC,WAAd,CAA0BT,SAAS,CAACI,QAAV,CAAmBC,aAA7C;AAEA,WAAKR,MAAL,CAAYa,UAAZ,CAAuBV,SAAS,CAACW,QAAjC;AAEA,aAAOX,SAAP;AACH;;AAEDY,aAAS,CACLC,eADK,EAELC,aAFK,EAE+B;AAEpC,YAAMd,SAAS,GAAG,KAAKD,UAAL,EAAlB;AAEAC,eAAS,CAACE,QAAV,CAAmBa,mBAAnB,CAAuCC,SAAvC,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B,wBAA3B,CAAV;;AACA,YAAID,CAAJ,EAAO;AACHA,WAAC,CAACE,MAAF,CAAS,CAAT,EAAY,CAAZ;AACH;AACJ,OALS,EAKP,CALO,CAAV;AAMH;;AACDC,eAAW;AACP,WAAKL,mBAAL,GAA2B,IAA3B;AACA,WAAKD,WAAL,GAAmB,IAAnB;AACH;;AApC8B;;;qBAAtBL,wBAAsBxI,+DAAAA,CAAAA,qDAAAA;AAAA;;;UAAtBwI;AAAsBlB;AAAAC;AAAA;;;;;;;;;;;;;;;ACTnCvH,QAAAA,wDAAAA;AAOAA,QAAAA,wDAAAA,iFAAAA,oEAAAA;;;;AAP6BA,QAAAA,wDAAAA;;;;;;ADS7B,SAAawI,sBAAb;AAAA;;;;;;;;;;;;;;;;;AERA;AACA;;AASO,IAAMY,mBAAb;AAAM,QAAOA,mBAAP,CAA0B;;;qBAAnBA;AAAmB;;;UAAnBA;;;cANF,CACP3B,yDADO;;AAMX,SAAa2B,mBAAb;AAAA;;;sHAAaA,qBAAmB;AAAApB,mBAHfQ,6EAGe;AAHOP,cAFnCR,yDAEmC,CAGP;AALhBS,cAGJM,6EAHI;AAKgB;AAFE","sources":["./projects/desktop/src/app/root/root-main/child-content-storage-personal/judicial-interpret/judicial-interpret-property-item.ts","./projects/lwlib/src/compose-search-popup/compose-search-popup-opener.service.ts","./projects/lwlib/src/filter-popup/filter-popup-opener.service.ts","./projects/lwlib/src/keyword-searcher/keyword-searcher.component.ts","./projects/lwlib/src/keyword-searcher/keyword-searcher.component.html","./projects/lwlib/src/keyword-searcher/keyword-searcher.module.ts","./projects/lwlib/src/personal-config-popup/personal-config-popup-opener.service.ts","./projects/lwlib/src/preview-window/preview-window-type-item.ts","./projects/lwlib/src/preview-window/preview-window-type.ts","./projects/lwlib/src/preview-window/preview-window.component.ts","./projects/lwlib/src/preview-window/preview-window.component.html","./projects/lwlib/src/preview-window/preview-window.module.ts"],"sourcesContent":["import { JudicialInterpretProperty } from './judicial-interpret-property.enum';\r\nimport { TemplateRef } from '@angular/core';\r\nimport { JudicialInterpretType } from './judicial-interpret-type.enum';\r\n\r\nexport class JudicialInterpretPropertyItem {\r\n propertyClassName: string;\r\n property: JudicialInterpretProperty;\r\n templateClassName: string;\r\n templateType: JudicialInterpretType;\r\n template: () => TemplateRef;\r\n\r\n static create(className: string,\r\n property: JudicialInterpretProperty,\r\n templateClassName: string,\r\n templateType: JudicialInterpretType,\r\n template: () => TemplateRef) {\r\n const item = new JudicialInterpretPropertyItem;\r\n item.propertyClassName = className;\r\n item.property = property;\r\n item.templateClassName = templateClassName;\r\n item.templateType = templateType;\r\n item.template = template;\r\n\r\n return item;\r\n }\r\n}\r\n","import { Injectable, ComponentFactoryResolver, Injector, ApplicationRef, ComponentRef } from '@angular/core';\r\nimport { PopupManagerService } from '../popup-manager/popup-manager.service';\r\nimport { ComposeSearchPopupComponent } from './compose-search-popup.component';\r\nimport { SearcherKeywordKind } from '../keyword-searcher/searcher-keyword-kind';\r\nimport { FilterCondition } from 'projects/desktop/src/app/root/root-main/child-content-storage-personal/filter-condition';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ComposeSearchPopupOpenerService {\r\n\r\n constructor(\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n private injector: Injector,\r\n private appRef: ApplicationRef,\r\n private popupManagerService: PopupManagerService\r\n ) { }\r\n\r\n buildPopup(): ComponentRef {\r\n const component = this.componentFactoryResolver\r\n .resolveComponentFactory(ComposeSearchPopupComponent)\r\n .create(this.injector);\r\n\r\n component.instance.componentRef = component;\r\n\r\n component.location.nativeElement.setAttribute('popup', '');\r\n document.body.appendChild(component.location.nativeElement);\r\n\r\n this.appRef.attachView(component.hostView);\r\n\r\n return component;\r\n }\r\n\r\n openPopup(\r\n filterCondition: FilterCondition,\r\n inputKindList: SearcherKeywordKind[],\r\n ): ComponentRef {\r\n const component = this.buildPopup();\r\n\r\n component.instance.onAfterContentInit$.subscribe(() => {\r\n const instance = component.instance;\r\n instance.initPopup(\r\n filterCondition,\r\n inputKindList\r\n );\r\n });\r\n\r\n this.popupManagerService.open(component);\r\n return component;\r\n }\r\n}\r\n","import { Injectable, ComponentRef, ComponentFactoryResolver, Injector, ApplicationRef } from '@angular/core';\r\nimport { IPopupServiceCriterion } from 'projects/lwlib/src/i-popup-service-criterion';\r\nimport { FilterPopupComponent } from './filter-popup.component';\r\nimport { PopupManagerService } from '../popup-manager/popup-manager.service';\r\nimport { Subject, Subscription, Observable } from 'rxjs';\r\n\r\nimport { IEditCategoryService } from '../edit-category-popup/i-edit-category-service';\r\nimport { FilterPopupTabType } from './filter-popup.service';\r\nimport { Category } from '../category/category';\r\nimport { Subcategory } from '../category/subcategory';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FilterPopupOpenerService implements IPopupServiceCriterion {\r\n constructor(\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n private injector: Injector,\r\n private appRef: ApplicationRef,\r\n private popupManagerService: PopupManagerService\r\n ) { }\r\n\r\n openPopupEmpty(): ComponentRef {\r\n const component = this.buildPopup();\r\n return component;\r\n }\r\n openPopup(\r\n // initFunc: (popupCompRef: ComponentRef) => void\r\n // editCategoryService: IEditCategoryService,\r\n // filterPopupServiceCategoryList: CategoryList,\r\n // filterPopupServiceSubcategoryList: SubcategoryList,\r\n // filterPopupServiceCategoryList$: Subject,\r\n // filterPopupServiceSubcategoryList$: Subject,\r\n // filterPopupServicePullCategoryList: () => Subscription,\r\n // filterPopupServicePullSubcategoryList: () => Subscription,\r\n // filterCondition: FilterCondition\r\n type: FilterPopupTabType,\r\n selectedCategory: Category,\r\n selectedSubcategory: Subcategory,\r\n get_categoryList: () => Category[],\r\n get_subcategoryList: () => Subcategory[],\r\n pullCategoryListObserver: Observable,\r\n pullSubcategoryListObserver: Observable\r\n ): ComponentRef {\r\n const component = this.buildPopup();\r\n\r\n component.instance.onAfterContentInit$.subscribe(() => {\r\n const instance = component.instance;\r\n // instance.filterPopupService.init(\r\n // editCategoryService\r\n // // filterPopupServiceCategoryList,\r\n // // filterPopupServiceSubcategoryList,\r\n // // filterPopupServiceCategoryList$,\r\n // // filterPopupServiceSubcategoryList$,\r\n // // filterPopupServicePullCategoryList,\r\n // // filterPopupServicePullSubcategoryList\r\n // );\r\n instance.initPopup(\r\n type,\r\n selectedCategory,\r\n selectedSubcategory,\r\n get_categoryList,\r\n get_subcategoryList,\r\n pullCategoryListObserver,\r\n pullSubcategoryListObserver,\r\n );\r\n });\r\n\r\n this.popupManagerService.open(component);\r\n return component;\r\n }\r\n buildPopup(): ComponentRef {\r\n const component = this.componentFactoryResolver\r\n .resolveComponentFactory(FilterPopupComponent)\r\n .create(this.injector);\r\n component.instance.componentRef = component;\r\n\r\n component.location.nativeElement.setAttribute('popup', '');\r\n document.body.appendChild(component.location.nativeElement);\r\n\r\n this.appRef.attachView(component.hostView);\r\n\r\n return component;\r\n }\r\n}\r\n","import { Component, OnInit, Input, EventEmitter, Output, ElementRef, Type, ViewChild, AfterViewInit, TemplateRef, OnDestroy } from '@angular/core';\r\nimport { KeywordSearcherListItem } from './keyword-searcher-list-item';\r\nimport { ComposeSearchPopupComponent } from '../compose-search-popup/compose-search-popup.component';\r\nimport { InputText } from '../compose-search-popup/input-text';\r\n\r\nimport { BehaviorSubject, Subject, Observable, of, Subscription } from 'rxjs';\r\nimport { SearcherKeyword } from './searcher-keyword';\r\nimport { SearcherKeywordKind } from './searcher-keyword-kind';\r\nimport { ComposeType } from '../compose-search-popup/compose-type';\r\nimport { ChooseKindComponent } from '../choose-kind/choose-kind.component';\r\nimport { ComposeSearchPopupOpenerService } from '../compose-search-popup/compose-search-popup-opener.service';\r\nimport { ChooseKindItem } from '../choose-kind/choose-kind-item';\r\nimport { PopupCloseReason } from 'projects/lwlib/src/popup-close-reason';\r\nimport { AppCommonService } from 'projects/desktop/src/app/app-common.service';\r\nimport { SubscriptionGroup } from 'projects/lwlib/src/subscription-group';\r\nimport { MatAutocomplete } from '@angular/material/autocomplete';\r\nimport { FilterCondition } from 'projects/desktop/src/app/root/root-main/child-content-storage-personal/filter-condition';\r\n\r\n@Component({\r\n selector: 'app-keyword-searcher',\r\n templateUrl: './keyword-searcher.component.html',\r\n styleUrls: ['./keyword-searcher.component.scss'],\r\n})\r\nexport class KeywordSearcherComponent implements OnInit, AfterViewInit, OnDestroy {\r\n @Input() kindAutocomplete: { [key: string]: (keyword: string) => Observable };\r\n @Input() filterCondition: FilterCondition;\r\n @Input() kindList: SearcherKeywordKind[];\r\n\r\n @Output() submit: EventEmitter = new EventEmitter();\r\n @Output() clear: EventEmitter = new EventEmitter();\r\n @Output() keywordChange: EventEmitter = new EventEmitter();\r\n @Output() kindChange: EventEmitter = new EventEmitter();\r\n\r\n // @Input() importComposeSearchPopup: ComposeSearchPopupComponent;\r\n\r\n @ViewChild(ChooseKindComponent, { static: true }) chooseKind: ChooseKindComponent;\r\n @ViewChild('normal', { static: true }) normalTemplate: TemplateRef;\r\n @ViewChild('compose', { static: true }) composeTemplate: TemplateRef;\r\n @ViewChild('auto') autoComplete: MatAutocomplete;\r\n\r\n // filterCondition: FilterCondition;\r\n // kindList: SearcherKeywordKind[] = [];\r\n\r\n searchedKind: ChooseKindItem;\r\n searchedTemplate: TemplateRef;\r\n\r\n get prevSelectedKind(): ChooseKindItem { return this.chooseKind.prevSelectedKind; }\r\n get selectedKind(): ChooseKindItem { return this.chooseKind.selectedKind; }\r\n\r\n\r\n // normal\r\n inputText: InputText = new InputText();\r\n\r\n // keyword$: Subject = new Subject();\r\n // searchedText$: Subject = new Subject();\r\n searchedText: string = '';\r\n\r\n suggestions: Observable = of([]);\r\n suggestionSubscribe: Subscription;\r\n\r\n lockEnterSubmit: boolean = false;\r\n isAutocompleteInited: boolean = false;\r\n\r\n\r\n // compose\r\n searchedKeywords: SearcherKeyword[] = [];\r\n\r\n subscriptions: SubscriptionGroup = {};\r\n\r\n constructor(\r\n private elementRef: ElementRef,\r\n public appCommonService: AppCommonService,\r\n private composeSearchPopupOpenerService: ComposeSearchPopupOpenerService\r\n ) {\r\n // console.log('keyword searcher constructor init');\r\n this.searchedKeywords = FilterCondition.emptySearchKeywords();\r\n }\r\n\r\n\r\n ngOnInit() {\r\n // console.log('keyword searcher init');\r\n\r\n // this.subscriptions.searchedText = this.searchedText$.subscribe(text => {\r\n // this.searchedText = text;\r\n // });\r\n // 設定預設搜尋樣板,單個關鍵字輸入\r\n if (this.searchedTemplate == null) {\r\n this.searchedTemplate = this.normalTemplate;\r\n }\r\n\r\n setTimeout(() => {\r\n if (this.autoComplete) {\r\n this.autoComplete.optionSelected.subscribe(option => {\r\n console.log(option);\r\n\r\n this.clickAutoCompleteOption(option);\r\n });\r\n this.autoComplete.opened.subscribe(() => {\r\n this.lockEnterSubmit = true;\r\n });\r\n this.autoComplete.closed.subscribe(() => {\r\n this.lockEnterSubmit = false;\r\n });\r\n }\r\n });\r\n\r\n // console.log(this.autoComplete);\r\n\r\n // if (this.importKindList) {\r\n // this.kindList = this.importKindList;\r\n // }\r\n }\r\n ngAfterViewInit(): void {\r\n // this.prevSelectedKind = this.chooseKind.selectedKind;\r\n // this.selectedKind = this.chooseKind.selectedKind;\r\n }\r\n ngOnDestroy(): void {\r\n SubscriptionGroup.unsubscribeAll(this.subscriptions);\r\n }\r\n\r\n // initAutocomplete(): void {\r\n // this.autoComplete.optionSelected.subscribe(option => {\r\n // console.log(option);\r\n // this.clickAutoCompleteOption(option);\r\n // });\r\n // this.autoComplete.opened.subscribe(() => {\r\n // this.lockEnterSubmit = true;\r\n // });\r\n // this.autoComplete.closed.subscribe(() => {\r\n // this.lockEnterSubmit = false;\r\n // });\r\n // this.isAutocompleteInited = true;\r\n // console.log('autocomplete inited');\r\n // }\r\n\r\n\r\n /** 單行關鍵字輸入設定 */\r\n\r\n /** 搜尋種類選擇 */\r\n onKindSelect(kind: ChooseKindItem): void {\r\n // 組合查找時,跳彈窗\r\n // 其他查找,用單行關鍵字template\r\n if (kind.kind === SearcherKeywordKind.ComposeSearch) {\r\n // this.selectedKind = kind;\r\n this.openComposeSearchPopup();\r\n // if (this.searchedKind && this.searchedKind.kind == SearcherKeywordKind.ComposeSearch) {\r\n // this.searchedTemplate = this.composeTemplate;\r\n // } else {\r\n // }\r\n } else {\r\n // this.prevSelectedKind = kind;\r\n // this.selectedKind = kind;\r\n this.searchedTemplate = this.normalTemplate;\r\n this.suggestions = of([]);\r\n\r\n // if (!this.isAutocompleteInited) {\r\n // setTimeout(() => {\r\n // this.initAutocomplete();\r\n // });\r\n // }\r\n }\r\n }\r\n getSearchKeywordKindClassName(kind: SearcherKeywordKind) {\r\n return this.appCommonService.convert_CamelCase_To_camel_dash_case(SearcherKeywordKind[kind]);\r\n }\r\n\r\n\r\n\r\n /** 關鍵字輸入 */\r\n onKeywordInput(): void {\r\n const selectedKindId = this.chooseKind.selectedKind.kind;\r\n const selectedKindIdName = SearcherKeywordKind[selectedKindId];\r\n\r\n if (this.suggestionSubscribe) {\r\n this.suggestionSubscribe.unsubscribe();\r\n this.suggestionSubscribe = null;\r\n }\r\n\r\n if (this.kindAutocomplete\r\n && this.kindAutocomplete[selectedKindIdName] != null) {\r\n this.suggestionSubscribe = this.kindAutocomplete[selectedKindIdName](this.inputText.text)\r\n .subscribe(suggestions => {\r\n this.suggestions = of(suggestions);\r\n });\r\n }\r\n }\r\n /** 選擇關鍵字提示 */\r\n clickAutoCompleteOption(ev: any): void {\r\n this.inputText.text = ev.option.value;\r\n if (this.keywordChange) {\r\n this.keywordChange.emit(this.inputText.text);\r\n }\r\n }\r\n /** 停用送出按鈕 */\r\n disableSubmitButton(): boolean {\r\n // if (this.searchedText\r\n // && this.searchedText == this.inputText.text\r\n // && this.searchedKind == this.selectedKind) {\r\n // return true;\r\n // } else if (!this.searchedText\r\n // && this.inputText.isEmpty()) {\r\n // return true;\r\n // }\r\n\r\n return this.inputText.isEmpty()\r\n || this.selectedKind.kind === SearcherKeywordKind.ComposeSearch;\r\n }\r\n /** 顯示清除按鈕 */\r\n showClearButton(): boolean {\r\n if (!this.inputText.isEmpty()) {\r\n return true;\r\n }\r\n if (this.searchedText) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n /** 點擊清除 */\r\n clickClear(): void {\r\n const emitKeywordChange = !this.inputText.isEmpty();\r\n\r\n\r\n this.suggestions = of([]);\r\n this.inputText.clear();\r\n this.searchedText = '';\r\n // this.searchedKeywords = FilterCondition.getEmptySearchKeywords();\r\n this.searchedKeywords = FilterCondition.emptySearchKeywords();\r\n // this.searchedKind = this.selectedKind;\r\n this.clear.emit(null);\r\n if (emitKeywordChange) {\r\n this.keywordChange.emit('');\r\n }\r\n }\r\n\r\n /** 取單個關鍵字搜尋條件 */\r\n collectSingleCondition(): SearcherKeyword {\r\n const item: SearcherKeyword = new SearcherKeyword();\r\n\r\n item.kind = this.selectedKind.kind;\r\n item.index = 0;\r\n item.keyword = this.inputText.text;\r\n item.compose = ComposeType.And;\r\n\r\n return item;\r\n }\r\n /** 點擊送出搜尋 */\r\n clickSubmit(): void {\r\n if (this.disableSubmitButton()) {\r\n return;\r\n }\r\n\r\n // this.searchedText$.next(this.inputText.text);\r\n\r\n const result: SearcherKeyword[] = FilterCondition.emptySearchKeywords();\r\n\r\n // const result: SearcherKeyword[] = FilterCondition.getEmptySearchKeywords();\r\n result[0] = this.collectSingleCondition();\r\n this.searchedText = result[0].keyword;\r\n this.searchedKeywords = result;\r\n\r\n this.searchedTemplate = this.normalTemplate;\r\n this.submitSearch(result);\r\n }\r\n\r\n\r\n /** 送出搜尋 (單個關鍵字、組合檢索通用) */\r\n submitSearch(keywords: SearcherKeyword[]): void {\r\n this.searchedKind = this.selectedKind;\r\n this.submit.emit(keywords);\r\n }\r\n\r\n enterKeydown(ev: KeyboardEvent): void {\r\n if (this.autoComplete.isOpen\r\n && this.autoComplete.options.some(v => v.active)) {\r\n return;\r\n }\r\n\r\n if (ev.keyCode !== 13\r\n || this.searchedText === this.inputText.text\r\n ) {\r\n return;\r\n }\r\n\r\n this.suggestions = of([]);\r\n this.clickSubmit();\r\n }\r\n\r\n /** 開啟組合檢索彈窗 */\r\n openComposeSearchPopup(): void {\r\n let _composeKindList = JSON.parse(JSON.stringify(this.kindList));\r\n _composeKindList = _composeKindList.filter(v => v !== SearcherKeywordKind.ComposeSearch);\r\n\r\n const compRef = this.composeSearchPopupOpenerService.openPopup(\r\n this.filterCondition,\r\n _composeKindList\r\n );\r\n\r\n compRef.instance.kindAutocomplete = this.kindAutocomplete;\r\n compRef.instance.filterCondition = this.filterCondition;\r\n compRef.instance.kindList = this.kindList;\r\n\r\n\r\n // 組合檢索送出搜尋\r\n compRef.instance.submit.subscribe(keywords => {\r\n // 設定搜尋樣板=組合檢索\r\n this.searchedTemplate = this.composeTemplate;\r\n // 設定搜尋用的關鍵字集\r\n this.searchedKeywords = keywords;\r\n this.filterCondition.searchKeywords = keywords;\r\n\r\n // 送出搜尋\r\n this.submitSearch(keywords);\r\n });\r\n compRef.onDestroy(() => {\r\n console.log(compRef.instance, PopupCloseReason[compRef.instance.closeReason]);\r\n // 使用者手動關閉,且沒有組合搜尋結果時,復原先前選擇的種類\r\n if (compRef.instance.closeReason === PopupCloseReason.ManuallyClose\r\n && (!this.searchedKind || this.searchedKind.kind !== SearcherKeywordKind.ComposeSearch)\r\n ) {\r\n this.chooseKind.selectKindItem(this.prevSelectedKind);\r\n }\r\n });\r\n }\r\n /** 清除組合檢索 */\r\n clearComposeSearch(): void {\r\n const emitChange = !this.inputText.isEmpty();\r\n\r\n this.inputText.clear();\r\n this.searchedKeywords = FilterCondition.emptySearchKeywords();\r\n\r\n if (emitChange) {\r\n this.keywordChange.emit('');\r\n }\r\n this.clear.emit(null);\r\n }\r\n getSearchedKeywords(): SearcherKeyword[] {\r\n return this.searchedKeywords.filter(v => v.keyword);\r\n }\r\n getComposeTypeClassName(type: ComposeType): string {\r\n return this.appCommonService.convert_CamelCase_To_camel_dash_case(ComposeType[type]);\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
{{keyword.keyword}}
\r\n
\r\n
\r\n
清除
\r\n
\r\n
\r\n
使用
\r\n
\r\n
","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { KeywordSearcherComponent } from './keyword-searcher.component';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { ChooseKindModule } from '../choose-kind/choose-kind.module';\r\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\r\nimport { PipeHighlightModule } from 'projects/lwlib/src/pipe-highlight/pipe-highlight.module';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n ChooseKindModule,\r\n MatAutocompleteModule,\r\n PipeHighlightModule,\r\n ],\r\n declarations: [\r\n KeywordSearcherComponent,\r\n ],\r\n exports: [\r\n KeywordSearcherComponent\r\n ]\r\n})\r\nexport class KeywordSearcherModule { }\r\n","import { Injectable, ComponentFactoryResolver, Injector, ApplicationRef, ComponentRef } from '@angular/core';\r\nimport { PopupManagerService } from '../popup-manager/popup-manager.service';\r\nimport { PersonalConfigPopupComponent } from './personal-config-popup.component';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PersonalConfigPopupOpenerService {\r\n constructor(\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n private injector: Injector,\r\n private appRef: ApplicationRef,\r\n private popupManagerService: PopupManagerService\r\n ) { }\r\n\r\n buildPopup(): ComponentRef {\r\n const component = this.componentFactoryResolver\r\n .resolveComponentFactory(PersonalConfigPopupComponent)\r\n .create(this.injector);\r\n\r\n component.instance.componentRef = component;\r\n\r\n component.location.nativeElement.setAttribute('popup', '');\r\n document.body.appendChild(component.location.nativeElement);\r\n\r\n this.appRef.attachView(component.hostView);\r\n\r\n return component;\r\n }\r\n\r\n openPopup(): ComponentRef {\r\n const component = this.buildPopup();\r\n\r\n component.instance.onAfterContentInit$.subscribe(() => {\r\n const instance = component.instance;\r\n instance.initPopup();\r\n });\r\n\r\n this.popupManagerService.open(component);\r\n return component;\r\n }\r\n}\r\n","import { TemplateRef } from \"@angular/core\";\r\n\r\nexport class PreviewWindowTypeItem {\r\n templateClassName: string;\r\n templateRef: () => TemplateRef;\r\n\r\n static create(templateClassName: string\r\n , templateRef: () => TemplateRef\r\n ): PreviewWindowTypeItem {\r\n let item = new PreviewWindowTypeItem;\r\n item.templateClassName = templateClassName;\r\n item.templateRef = templateRef;\r\n\r\n return item;\r\n }\r\n}\r\n","export enum PreviewWindowType {\r\n TextPreview = 0,\r\n}","import { Component, OnInit, ViewChild, TemplateRef, ElementRef } from '@angular/core';\r\nimport { PreviewWindowType } from './preview-window-type';\r\nimport { PreviewWindowTypeItem } from './preview-window-type-item';\r\n\r\n@Component({\r\n selector: 'app-preview-window',\r\n templateUrl: './preview-window.component.html',\r\n styleUrls: ['./preview-window.component.scss']\r\n})\r\nexport class PreviewWindowComponent implements OnInit {\r\n @ViewChild('textPreview', { static: true }) textPreviewTemplate: TemplateRef;\r\n\r\n private pwti = PreviewWindowTypeItem;\r\n baseList: { [key in keyof typeof PreviewWindowType]: () => TemplateRef } = {\r\n TextPreview: () => this.textPreviewTemplate,\r\n };\r\n\r\n previewTypeTemplate: () => TemplateRef;\r\n contentData: any;\r\n\r\n element: Element;\r\n\r\n constructor(\r\n private elementRef: ElementRef\r\n ) {\r\n this.element = elementRef.nativeElement;\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n\r\n openWindow(type: PreviewWindowType, contentData: any): void {\r\n this.previewTypeTemplate = this.baseList[PreviewWindowType[type]];\r\n this.contentData = contentData || {};\r\n\r\n setTimeout(() => {\r\n const e = this.element.querySelector('.text-preview>.content');\r\n if (e) {\r\n e.scroll(0, 0);\r\n }\r\n }, 1);\r\n }\r\n closeWindow(): void {\r\n this.previewTypeTemplate = null;\r\n this.contentData = null;\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
{{data.title}}
\r\n
\r\n
\r\n
{{data.content}}
\r\n
\r\n
\r\n
","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { PreviewWindowComponent } from './preview-window.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule\r\n ],\r\n declarations: [PreviewWindowComponent],\r\n exports: [PreviewWindowComponent]\r\n})\r\nexport class PreviewWindowModule { }\r\n"],"names":["JudicialInterpretPropertyItem","create","className","property","templateClassName","templateType","template","item","propertyClassName","ComposeSearchPopupComponent","ComposeSearchPopupOpenerService","constructor","componentFactoryResolver","injector","appRef","popupManagerService","buildPopup","component","resolveComponentFactory","instance","componentRef","location","nativeElement","setAttribute","document","body","appendChild","attachView","hostView","openPopup","filterCondition","inputKindList","onAfterContentInit$","subscribe","initPopup","open","i0","factory","providedIn","FilterPopupComponent","FilterPopupOpenerService","openPopupEmpty","type","selectedCategory","selectedSubcategory","get_categoryList","get_subcategoryList","pullCategoryListObserver","pullSubcategoryListObserver","EventEmitter","InputText","of","SearcherKeyword","SearcherKeywordKind","ComposeType","ChooseKindComponent","PopupCloseReason","SubscriptionGroup","FilterCondition","ctx_r9","ctx_r13","ctx_r14","ctx_r15","ctx_r16","_r5","ctx_r20","ctx_r22","KeywordSearcherComponent","elementRef","appCommonService","composeSearchPopupOpenerService","searchedKeywords","emptySearchKeywords","prevSelectedKind","chooseKind","selectedKind","ngOnInit","searchedTemplate","normalTemplate","setTimeout","autoComplete","optionSelected","option","console","log","clickAutoCompleteOption","opened","lockEnterSubmit","closed","ngAfterViewInit","ngOnDestroy","unsubscribeAll","subscriptions","onKindSelect","kind","ComposeSearch","openComposeSearchPopup","suggestions","getSearchKeywordKindClassName","convert_CamelCase_To_camel_dash_case","onKeywordInput","selectedKindId","selectedKindIdName","suggestionSubscribe","unsubscribe","kindAutocomplete","inputText","text","ev","value","keywordChange","emit","disableSubmitButton","isEmpty","showClearButton","searchedText","clickClear","emitKeywordChange","clear","collectSingleCondition","index","keyword","compose","And","clickSubmit","result","submitSearch","keywords","searchedKind","submit","enterKeydown","isOpen","options","some","v","active","keyCode","_composeKindList","JSON","parse","stringify","kindList","filter","compRef","composeTemplate","searchKeywords","onDestroy","closeReason","ManuallyClose","selectKindItem","clearComposeSearch","emitChange","getSearchedKeywords","getComposeTypeClassName","selectors","viewQuery","ctx","CommonModule","FormsModule","ReactiveFormsModule","ChooseKindModule","MatAutocompleteModule","PipeHighlightModule","KeywordSearcherModule","declarations","imports","exports","PersonalConfigPopupComponent","PersonalConfigPopupOpenerService","PreviewWindowTypeItem","templateRef","PreviewWindowType","PreviewWindowComponent","TextPreview","textPreviewTemplate","element","openWindow","contentData","previewTypeTemplate","baseList","e","querySelector","scroll","closeWindow","PreviewWindowModule"],"sourceRoot":"webpack:///"}