[59329aa] | 1 | {"version":3,"file":"primeng-treeselect.mjs","sources":["../../src/app/components/treeselect/treeselect.ts","../../src/app/components/treeselect/primeng-treeselect.ts"],"sourcesContent":["import {NgModule,Component,EventEmitter,Output,Input,ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, AfterContentInit, TemplateRef, QueryList, forwardRef, ChangeDetectorRef, ViewChild, ElementRef} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {RippleModule} from 'primeng/ripple';\nimport {OverlayService, PrimeNGConfig, PrimeTemplate, SharedModule, TranslationKeys, TreeNode} from 'primeng/api';\nimport {animate, style, transition, trigger, AnimationEvent} from '@angular/animations';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {ConnectedOverlayScrollHandler, DomHandler} from 'primeng/dom';\nimport {TreeModule} from 'primeng/tree';\nimport {ZIndexUtils} from 'primeng/utils'\n\n\nexport const TREESELECT_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TreeSelect),\n multi: true\n};\n\n@Component({\n selector: 'p-treeSelect',\n template: `\n <div #container [ngClass]=\"containerClass()\" (click)=\"onClick($event)\">\n <div class=\"p-hidden-accessible\">\n <input #focusInput type=\"text\" role=\"listbox\" [attr.id]=\"inputId\" readonly [disabled]=\"disabled\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" (keydown)=\"onKeyDown($event)\" [attr.tabindex]=\"tabindex\"\n aria-haspopup=\"true\" [attr.aria-expanded]=\"overlayVisible\" [attr.aria-labelledby]=\"ariaLabelledBy\"/>\n </div>\n <div class=\"p-treeselect-label-container\">\n <div [ngClass]=\"labelClass()\">\n <ng-container *ngIf=\"valueTemplate;else defaultValueTemplate\">\n <ng-container *ngTemplateOutlet=\"valueTemplate; context: {$implicit: value, placeholder: placeholder}\"></ng-container>\n </ng-container>\n <ng-template #defaultValueTemplate>\n <ng-container *ngIf=\"display === 'comma';else chipsValueTemplate\">\n {{label || 'empty'}}\n </ng-container>\n <ng-template #chipsValueTemplate>\n <div *ngFor=\"let node of value\" class=\"p-treeselect-token\">\n <span class=\"p-treeselect-token-label\">{{node.label}}</span>\n </div>\n <ng-container *ngIf=\"emptyValue\">{{placeholder || 'empty'}}</ng-container>\n </ng-template>\n </ng-template>\n </div>\n </div>\n <div class=\"p-treeselect-trigger\">\n <span class=\"p-treeselect-trigger-icon pi pi-chevron-down\"></span>\n </div>\n\n <div #overlayRef class=\"p-treeselect-panel p-component\" *ngIf=\"overlayVisible\" (click)=\"onOverlayClick($event)\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\" (@overlayAnimation.done)=\"onOverlayAnimationDone($event)\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: {$implicit: value, options: options}\"></ng-container>\n <div class=\"p-treeselect-items-wrapper\" [ngStyle]=\"{'max-height': scrollHeight}\">\n <p-tree [value]=\"options\" [propagateSelectionDown]=\"propagateSelectionDown\" [propagateSelectionUp]=\"propagateSelectionUp\" [selectionMode]=\"selectionMode\" (selectionChange)=\"onSelectionChange($event)\" [selection]=\"value\"\n [metaKeySelection]=\"metaKeySelection\" (onNodeExpand)=\"nodeExpand($event)\" (onNodeCollapse)=\"nodeCollapse($event)\"\n (onNodeSelect)=\"onSelect($event)\" (onNodeUnselect)=\"onUnselect($event)\"></p-tree>\n <div *ngIf=\"emptyOptions\" class=\"p-treeselect-empty-message\">\n <ng-container *ngIf=\"!emptyTemplate; else empty\">\n {{emptyMessageText}}\n </ng-container>\n <ng-container *ngTemplateOutlet=\"emptyTemplate;\"></ng-container>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"footerTemplate; context: {$implicit: value, options: options}\"></ng-container>\n </div>\n </div>\n `,\n styleUrls: ['./treeselect.css'],\n animations: [\n trigger('overlayAnimation', [\n transition(':enter', [\n style({opacity: 0, transform: 'scaleY(0.8)'}),\n animate('{{showTransitionParams}}')\n ]),\n transition(':leave', [\n animate('{{hideTransitionParams}}', style({ opacity: 0 }))\n ])\n ])\n ],\n host: {\n 'class': 'p-element p-inputwrapper',\n '[class.p-inputwrapper-filled]': '!emptyValue',\n '[class.p-inputwrapper-focus]': 'focused || overlayVisible'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TREESELECT_VALUE_ACCESSOR],\n encapsulation: ViewEncapsulation.None\n})\nexport class TreeSelect implements AfterContentInit {\n\n @Input() type: string = \"button\";\n\n @Input() inputId: string;\n\n @Input() scrollHeight: string = \"400px\";\n\n @Input() disabled: boolean;\n\n @Input() metaKeySelection: boolean = true;\n\n @Input() display: string = \"comma\";\n\n @Input() selectionMode: string = \"single\";\n\n @Input() tabindex: string;\n\n @Input() ariaLabelledBy: string;\n\n @Input() placeholder: string;\n\n @Input() panelClass: string;\n\n @Input() emptyMessage: string;\n\n @Input() appendTo: any;\n\n @Input() propagateSelectionDown: boolean = true;\n\n @Input() propagateSelectionUp: boolean = true;\n\n @Input() get options(): any[] {\n return this._options;\n };\n set options(options) {\n this._options = options;\n this.updateTreeState();\n }\n\n @Input() showTransitionOptions: string = '.12s cubic-bezier(0, 0, 0.2, 1)';\n\n @Input() hideTransitionOptions: string = '.1s linear';\n\n @ContentChildren(PrimeTemplate) templates: QueryList<any>;\n\n @ViewChild('container') containerEl: ElementRef;\n\n @ViewChild('focusInput') focusInput: ElementRef;\n\n @Output() onNodeExpand: EventEmitter<any> = new EventEmitter();\n\n @Output() onNodeCollapse: EventEmitter<any> = new EventEmitter();\n\n @Output() onShow: EventEmitter<any> = new EventEmitter();\n\n @Output() onHide: EventEmitter<any> = new EventEmitter();\n\n @Output() onNodeUnselect: EventEmitter<any> = new EventEmitter();\n\n @Output() onNodeSelect: EventEmitter<any> = new EventEmitter();\n\n valueTemplate: TemplateRef<any>;\n\n headerTemplate: TemplateRef<any>;\n\n emptyTemplate: TemplateRef<any>;\n\n footerTemplate: TemplateRef<any>;\n\n focused: boolean;\n\n overlayVisible: boolean;\n\n selfChange: boolean;\n\n value;\n\n expandedNodes: any[] = [];\n\n _options: any[];\n\n outsideClickListener: any;\n\n scrollHandler: any;\n\n resizeListener: any;\n\n overlayEl: any;\n\n onModelChange: Function = () => {};\n\n onModelTouched: Function = () => {};\n\n constructor(public config: PrimeNGConfig, public cd: ChangeDetectorRef, public el: ElementRef, public overlayService: OverlayService) { }\n\n ngOnInit() {\n this.updateTreeState();\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'value':\n this.valueTemplate = item.template;\n break;\n\n case 'header':\n this.headerTemplate = item.template;\n break;\n\n case 'empty':\n this.emptyTemplate = item.template;\n break;\n\n case 'footer':\n this.footerTemplate = item.template;\n break;\n\n default:\n this.valueTemplate = item.template;\n break;\n }\n });\n }\n\n onOverlayAnimationStart(event: AnimationEvent) {\n switch (event.toState) {\n case 'visible':\n this.overlayEl = event.element;\n this.onOverlayEnter();\n break;\n }\n }\n\n onOverlayAnimationDone(event: AnimationEvent) {\n switch (event.toState) {\n case 'void':\n this.onOverlayLeave();\n break;\n }\n }\n\n onSelectionChange(event) {\n this.value = event;\n this.onModelChange(this.value);\n this.cd.markForCheck();\n }\n\n onClick(event) {\n if (!this.disabled && (!this.overlayEl || !this.overlayEl.contains(event.target)) && !DomHandler.hasClass(event.target, 'p-treeselect-close')) {\n if (this.overlayVisible){\n this.hide();\n }\n else\n this.show();\n\n this.focusInput.nativeElement.focus();\n }\n }\n\n onKeyDown(event) {\n switch(event.which) {\n //down\n case 40:\n if (!this.overlayVisible && event.altKey) {\n this.show();\n event.preventDefault();\n }\n else if (this.overlayVisible && this.overlayEl) {\n let focusableElements = DomHandler.getFocusableElements(this.overlayEl);\n\n if (focusableElements && focusableElements.length > 0) {\n focusableElements[0].focus();\n }\n\n event.preventDefault();\n }\n break;\n\n //space\n case 32:\n if (!this.overlayVisible) {\n this.show();\n event.preventDefault();\n }\n break;\n\n //enter and escape\n case 13:\n case 27:\n if (this.overlayVisible) {\n this.hide();\n event.preventDefault();\n }\n break;\n\n //tab\n case 9:\n this.hide();\n break;\n\n default:\n break;\n }\n }\n\n show() {\n this.overlayVisible = true;\n }\n\n hide() {\n this.overlayVisible = false;\n this.cd.markForCheck();\n }\n\n onOverlayClick(event) {\n this.overlayService.add({\n originalEvent: event,\n target: this.el.nativeElement\n });\n }\n\n updateTreeState() {\n if (this.value) {\n let selectedNodes = this.selectionMode === \"single\" ? [this.value] : [...this.value];\n this.resetExpandedNodes();\n if (selectedNodes && this.options) {\n this.updateTreeBranchState(null, null, selectedNodes);\n }\n }\n }\n\n updateTreeBranchState(node, path, selectedNodes) {\n if (node) {\n if (this.isSelected(node)) {\n this.expandPath(path);\n selectedNodes.splice(selectedNodes.indexOf(node), 1);\n }\n\n if (selectedNodes.length > 0 && node.children) {\n for (let childNode of node.children) {\n path.push(node);\n this.updateTreeBranchState(childNode, path, selectedNodes);\n }\n }\n }\n else {\n for (let childNode of this.options) {\n this.updateTreeBranchState(childNode, [], selectedNodes);\n }\n }\n }\n\n expandPath(expandedNodes) {\n for (let node of expandedNodes) {\n node.expanded = true;\n }\n\n this.expandedNodes = [...expandedNodes];\n }\n\n nodeExpand(event) {\n this.onNodeExpand.emit(event);\n this.expandedNodes.push(event.node);\n }\n\n nodeCollapse(event) {\n this.onNodeCollapse.emit(event);\n this.expandedNodes.splice(this.expandedNodes.indexOf(event.node), 1);\n }\n\n resetExpandedNodes() {\n for (let node of this.expandedNodes) {\n node.expanded = false;\n }\n\n this.expandedNodes = [];\n }\n\n findSelectedNodes(node, keys, selectedNodes) {\n if (node) {\n if (this.isSelected(node)) {\n selectedNodes.push(node);\n delete keys[node.key];\n }\n\n if (Object.keys(keys).length && node.children) {\n for (let childNode of node.children) {\n this.findSelectedNodes(childNode, keys, selectedNodes);\n }\n }\n }\n else {\n for (let childNode of this.options) {\n this.findSelectedNodes(childNode, keys, selectedNodes);\n }\n }\n }\n\n isSelected(node: TreeNode) {\n return this.findIndexInSelection(node) != -1;\n }\n\n findIndexInSelection(node: TreeNode) {\n let index: number = -1;\n\n if (this.value) {\n if (this.selectionMode === \"single\") {\n let areNodesEqual = (this.value.key && this.value.key === node.key) || this.value == node;\n index = areNodesEqual ? 0 : - 1;\n }\n else {\n for(let i = 0; i < this.value.length; i++) {\n let selectedNode = this.value[i];\n let areNodesEqual = (selectedNode.key && selectedNode.key === node.key) || selectedNode == node;\n if (areNodesEqual) {\n index = i;\n break;\n }\n }\n }\n }\n\n return index;\n }\n\n onSelect(node) {\n this.onNodeSelect.emit(node);\n\n if (this.selectionMode === 'single') {\n this.hide();\n }\n }\n\n onUnselect(node) {\n this.onNodeUnselect.emit(node);\n }\n\n onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayEl, this.config.zIndex.overlay);\n this.appendContainer();\n this.alignOverlay();\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.onShow.emit();\n }\n\n onOverlayLeave() {\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n ZIndexUtils.clear(this.overlayEl);\n this.overlayEl = null;\n this.onHide.emit();\n }\n\n onFocus() {\n this.focused = true;\n }\n\n onBlur() {\n this.focused = false;\n }\n\n writeValue(value: any) : void {\n this.value = value;\n this.updateTreeState();\n this.cd.markForCheck();\n }\n\n registerOnChange(fn: Function): void {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: Function): void {\n this.onModelTouched = fn;\n }\n\n setDisabledState(val: boolean): void {\n this.disabled = val;\n this.cd.markForCheck();\n }\n\n appendContainer() {\n if (this.appendTo) {\n if (this.appendTo === 'body')\n document.body.appendChild(this.overlayEl);\n else\n document.getElementById(this.appendTo).appendChild(this.overlayEl);\n }\n }\n\n restoreAppend() {\n if (this.overlayEl && this.appendTo) {\n if (this.appendTo === 'body')\n document.body.removeChild(this.overlayEl);\n else\n document.getElementById(this.appendTo).removeChild(this.overlayEl);\n }\n }\n\n alignOverlay() {\n if (this.appendTo) {\n DomHandler.absolutePosition(this.overlayEl, this.containerEl.nativeElement);\n this.overlayEl.style.minWidth = DomHandler.getOuterWidth(this.containerEl.nativeElement) + 'px';\n } else {\n DomHandler.relativePosition(this.overlayEl, this.containerEl.nativeElement);\n }\n }\n\n bindOutsideClickListener() {\n if (!this.outsideClickListener) {\n this.outsideClickListener = (event) => {\n if (this.overlayVisible && this.overlayEl && !this.containerEl.nativeElement.contains(event.target) && !this.overlayEl.contains(event.target)) {\n this.hide();\n }\n };\n document.addEventListener('click', this.outsideClickListener);\n }\n }\n\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n }\n\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.containerEl.nativeElement, () => {\n if (this.overlayVisible) {\n this.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n\n bindResizeListener() {\n if (!this.resizeListener) {\n this.resizeListener = () => {\n if (this.overlayVisible) {\n this.hide();\n }\n };\n window.addEventListener('resize', this.resizeListener);\n }\n }\n\n unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n\n ngOnDestroy() {\n this.restoreAppend();\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.overlayEl) {\n ZIndexUtils.clear(this.overlayEl);\n this.overlayEl = null;\n }\n }\n\n containerClass() {\n return {\n 'p-treeselect p-component p-inputwrapper': true,\n 'p-treeselect-chip': this.display === 'chip',\n 'p-disabled': this.disabled,\n 'p-focus': this.focused\n }\n }\n\n labelClass() {\n return {\n 'p-treeselect-label': true,\n 'p-placeholder': this.label === this.placeholder,\n 'p-treeselect-label-empty': !this.placeholder && this.emptyValue\n }\n }\n\n get emptyMessageText() {\n return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);\n }\n\n get emptyValue() {\n return !this.value || Object.keys(this.value).length === 0;\n }\n\n get emptyOptions() {\n return !this.options || this.options.length === 0;\n }\n\n get label() {\n let value = this.value||[];\n return value.length ? value.map(node => node.label).join(', ') : (this.selectionMode === \"single\" && this.value) ? value.label : this.placeholder;\n }\n}\n\n@NgModule({\n imports: [CommonModule,RippleModule,SharedModule,TreeModule],\n exports: [TreeSelect,SharedModule,TreeModule],\n declarations: [TreeSelect]\n})\nexport class TreeSelectModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAWa,yBAAyB,GAAQ;IAC1C,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,MAAM,UAAU,CAAC;IACzC,KAAK,EAAE,IAAI;EACb;MAuEW,UAAU;IA8FnB,YAAmB,MAAqB,EAAS,EAAqB,EAAS,EAAc,EAAS,cAA8B;QAAjH,WAAM,GAAN,MAAM,CAAe;QAAS,OAAE,GAAF,EAAE,CAAmB;QAAS,OAAE,GAAF,EAAE,CAAY;QAAS,mBAAc,GAAd,cAAc,CAAgB;QA5F3H,SAAI,GAAW,QAAQ,CAAC;QAIxB,iBAAY,GAAW,OAAO,CAAC;QAI/B,qBAAgB,GAAY,IAAI,CAAC;QAEjC,YAAO,GAAW,OAAO,CAAC;QAE1B,kBAAa,GAAW,QAAQ,CAAC;QAcjC,2BAAsB,GAAY,IAAI,CAAC;QAEvC,yBAAoB,GAAY,IAAI,CAAC;QAUrC,0BAAqB,GAAW,iCAAiC,CAAC;QAElE,0BAAqB,GAAW,YAAY,CAAC;QAQ5C,iBAAY,GAAsB,IAAI,YAAY,EAAE,CAAC;QAErD,mBAAc,GAAsB,IAAI,YAAY,EAAE,CAAC;QAEvD,WAAM,GAAsB,IAAI,YAAY,EAAE,CAAC;QAE/C,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