Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-organizationchart.m...

1 line
26 KiB
Plaintext

{"version":3,"file":"primeng-organizationchart.mjs","sources":["../../src/app/components/organizationchart/organizationchart.ts","../../src/app/components/organizationchart/primeng-organizationchart.ts"],"sourcesContent":["import { animate, state, style, transition, trigger } from '@angular/animations';\nimport { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n NgModule,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n forwardRef\n} from '@angular/core';\nimport { PrimeTemplate, SharedModule, TreeNode } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport { ChevronUpIcon } from 'primeng/icons/chevronup';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { Subject, Subscription } from 'rxjs';\nimport { OrganizationChartNodeCollapseEvent, OrganizationChartNodeExpandEvent, OrganizationChartNodeSelectEvent, OrganizationChartNodeUnSelectEvent } from './organizationchart.interface';\n@Component({\n selector: '[pOrganizationChartNode]',\n template: `\n <tbody *ngIf=\"node\" [attr.data-pc-section]=\"'body'\">\n <tr [attr.data-pc-section]=\"'row'\">\n <td [attr.colspan]=\"colspan\" [attr.data-pc-section]=\"'cell'\">\n <div\n [class]=\"node.styleClass\"\n [ngClass]=\"{ 'p-organizationchart-node-content': true, 'p-organizationchart-selectable-node': chart.selectionMode && node.selectable !== false, 'p-highlight': isSelected() }\"\n (click)=\"onNodeClick($event, node)\"\n [attr.data-pc-section]=\"'node'\"\n >\n <div *ngIf=\"!chart.getTemplateForNode(node)\">{{ node.label }}</div>\n <div *ngIf=\"chart.getTemplateForNode(node)\">\n <ng-container *ngTemplateOutlet=\"chart.getTemplateForNode(node); context: { $implicit: node }\"></ng-container>\n </div>\n <ng-container *ngIf=\"collapsible\">\n <a *ngIf=\"!leaf\" tabindex=\"0\" class=\"p-node-toggler\" (click)=\"toggleNode($event, node)\" (keydown.enter)=\"toggleNode($event, node)\" (keydown.space)=\"toggleNode($event, node)\" [attr.data-pc-section]=\"'nodeToggler'\">\n <ng-container *ngIf=\"!chart.togglerIconTemplate\">\n <ChevronDownIcon *ngIf=\"node.expanded\" [styleClass]=\"'p-node-toggler-icon'\" [attr.data-pc-section]=\"'nodeTogglerIcon'\" />\n <ChevronUpIcon *ngIf=\"!node.expanded\" [styleClass]=\"'p-node-toggler-icon'\" [attr.data-pc-section]=\"'nodeTogglerIcon'\" />\n </ng-container>\n <span class=\"p-node-toggler-icon\" *ngIf=\"chart.togglerIconTemplate\" [attr.data-pc-section]=\"'nodeTogglerIcon'\">\n <ng-template *ngTemplateOutlet=\"chart.togglerIconTemplate; context: { $implicit: node.expanded }\"></ng-template>\n </span>\n </a>\n </ng-container>\n </div>\n </td>\n </tr>\n <tr [ngClass]=\"!leaf && node.expanded ? 'p-organizationchart-node-visible' : 'p-organizationchart-node-hidden'\" class=\"p-organizationchart-lines\" [@childState]=\"'in'\" [attr.data-pc-section]=\"'lines'\">\n <td [attr.data-pc-section]=\"'lineCell'\" [attr.colspan]=\"colspan\">\n <div [attr.data-pc-section]=\"'lineDown'\" class=\"p-organizationchart-line-down\"></div>\n </td>\n </tr>\n <tr [ngClass]=\"!leaf && node.expanded ? 'p-organizationchart-node-visible' : 'p-organizationchart-node-hidden'\" class=\"p-organizationchart-lines\" [@childState]=\"'in'\" [attr.data-pc-section]=\"'lines'\">\n <ng-container *ngIf=\"node.children && node.children.length === 1\">\n <td [attr.data-pc-section]=\"'lineCell'\" [attr.colspan]=\"colspan\">\n <div [attr.data-pc-section]=\"'lineDown'\" class=\"p-organizationchart-line-down\"></div>\n </td>\n </ng-container>\n <ng-container *ngIf=\"node.children && node.children.length > 1\">\n <ng-template ngFor let-child [ngForOf]=\"node.children\" let-first=\"first\" let-last=\"last\">\n <td [attr.data-pc-section]=\"'lineLeft'\" class=\"p-organizationchart-line-left\" [ngClass]=\"{ 'p-organizationchart-line-top': !first }\">&nbsp;</td>\n <td [attr.data-pc-section]=\"'lineRight'\" class=\"p-organizationchart-line-right\" [ngClass]=\"{ 'p-organizationchart-line-top': !last }\">&nbsp;</td>\n </ng-template>\n </ng-container>\n </tr>\n <tr [ngClass]=\"!leaf && node.expanded ? 'p-organizationchart-node-visible' : 'p-organizationchart-node-hidden'\" class=\"p-organizationchart-nodes\" [@childState]=\"'in'\" [attr.data-pc-section]=\"'nodes'\">\n <td *ngFor=\"let child of node.children\" colspan=\"2\" [attr.data-pc-section]=\"'nodeCell'\">\n <table class=\"p-organizationchart-table\" pOrganizationChartNode [node]=\"child\" [collapsible]=\"node.children && node.children.length > 0\"></table>\n </td>\n </tr>\n </tbody>\n `,\n animations: [trigger('childState', [state('in', style({ opacity: 1 })), transition('void => *', [style({ opacity: 0 }), animate(150)]), transition('* => void', [animate(150, style({ opacity: 0 }))])])],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n styleUrls: ['./organizationchart.css'],\n host: {\n class: 'p-element'\n }\n})\nexport class OrganizationChartNode implements OnDestroy {\n @Input() node: TreeNode<any> | undefined;\n\n @Input({ transform: booleanAttribute }) root: boolean | undefined;\n\n @Input({ transform: booleanAttribute }) first: boolean | undefined;\n\n @Input({ transform: booleanAttribute }) last: boolean | undefined;\n\n @Input({ transform: booleanAttribute }) collapsible: boolean | undefined;\n\n chart: OrganizationChart;\n\n subscription: Subscription;\n\n constructor(@Inject(forwardRef(() => OrganizationChart)) chart: OrganizationChart, public cd: ChangeDetectorRef) {\n this.chart = chart as OrganizationChart;\n this.subscription = this.chart.selectionSource$.subscribe(() => {\n this.cd.markForCheck();\n });\n }\n\n get leaf(): boolean | undefined {\n if (this.node) {\n return this.node.leaf == false ? false : !(this.node.children && this.node.children.length);\n }\n }\n\n get colspan() {\n if (this.node) {\n return this.node.children && this.node.children.length ? this.node.children.length * 2 : null;\n }\n }\n\n onNodeClick(event: Event, node: TreeNode) {\n this.chart.onNodeClick(event, node);\n }\n\n toggleNode(event: Event, node: TreeNode) {\n node.expanded = !node.expanded;\n if (node.expanded) this.chart.onNodeExpand.emit({ originalEvent: event, node: <TreeNode>this.node });\n else this.chart.onNodeCollapse.emit({ originalEvent: event, node: <TreeNode>this.node });\n\n event.preventDefault();\n }\n\n isSelected() {\n return this.chart.isSelected(this.node as TreeNode);\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n}\n/**\n * OrganizationChart visualizes hierarchical organization data.\n * @group Components\n */\n@Component({\n selector: 'p-organizationChart',\n template: `\n <div [ngStyle]=\"style\" [class]=\"styleClass\" [ngClass]=\"{ 'p-organizationchart p-component': true, 'p-organizationchart-preservespace': preserveSpace }\" [attr.data-pc-section]=\"'root'\">\n <table class=\"p-organizationchart-table\" [collapsible]=\"collapsible\" pOrganizationChartNode [node]=\"root\" *ngIf=\"root\"></table>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default,\n host: {\n class: 'p-element'\n }\n})\nexport class OrganizationChart implements AfterContentInit {\n /**\n * An array of nested TreeNodes.\n * @group Props\n */\n @Input() value: TreeNode[] | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Defines the selection mode.\n * @group Props\n */\n @Input() selectionMode: 'single' | 'multiple' | null | undefined;\n /**\n * Whether the nodes can be expanded or toggled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) collapsible: boolean | undefined;\n /**\n * Whether the space allocated by a node is preserved when hidden.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) preserveSpace: boolean = true;\n /**\n * A single treenode instance or an array to refer to the selections.\n * @group Props\n */\n @Input() get selection(): any {\n return this._selection;\n }\n set selection(val: any) {\n this._selection = val;\n\n if (this.initialized) this.selectionSource.next(null);\n }\n /**\n * Callback to invoke on selection change.\n * @param {*} any - selected value.\n * @group Emits\n */\n @Output() selectionChange: EventEmitter<any> = new EventEmitter();\n /**\n * Callback to invoke when a node is selected.\n * @param {OrganizationChartNodeSelectEvent} event - custom node select event.\n * @group Emits\n */\n @Output() onNodeSelect: EventEmitter<OrganizationChartNodeSelectEvent> = new EventEmitter<OrganizationChartNodeSelectEvent>();\n /**\n * Callback to invoke when a node is unselected.\n * @param {OrganizationChartNodeUnSelectEvent} event - custom node unselect event.\n * @group Emits\n */\n @Output() onNodeUnselect: EventEmitter<OrganizationChartNodeUnSelectEvent> = new EventEmitter<OrganizationChartNodeUnSelectEvent>();\n /**\n * Callback to invoke when a node is expanded.\n * @param {OrganizationChartNodeExpandEvent} event - custom node expand event.\n * @group Emits\n */\n @Output() onNodeExpand: EventEmitter<OrganizationChartNodeExpandEvent> = new EventEmitter<OrganizationChartNodeExpandEvent>();\n /**\n * Callback to invoke when a node is collapsed.\n * @param {OrganizationChartNodeCollapseEvent} event - custom node collapse event.\n * @group Emits\n */\n @Output() onNodeCollapse: EventEmitter<OrganizationChartNodeCollapseEvent> = new EventEmitter<OrganizationChartNodeCollapseEvent>();\n\n @ContentChildren(PrimeTemplate) templates: Nullable<QueryList<PrimeTemplate>>;\n\n public templateMap: any;\n\n togglerIconTemplate: Nullable<TemplateRef<any>>;\n\n private selectionSource = new Subject<any>();\n\n _selection: any;\n\n initialized: Nullable<boolean>;\n\n selectionSource$ = this.selectionSource.asObservable();\n\n constructor(public el: ElementRef, public cd: ChangeDetectorRef) {}\n\n get root(): TreeNode<any> | null {\n return this.value && this.value.length ? this.value[0] : null;\n }\n\n ngAfterContentInit() {\n if ((this.templates as QueryList<PrimeTemplate>).length) {\n this.templateMap = {};\n }\n\n (this.templates as QueryList<PrimeTemplate>).forEach((item) => {\n if (item.getType() === 'togglericon') {\n this.togglerIconTemplate = item.template;\n } else {\n this.templateMap[item.getType()] = item.template;\n }\n });\n\n this.initialized = true;\n }\n\n getTemplateForNode(node: TreeNode): TemplateRef<any> | null {\n if (this.templateMap) return node.type ? this.templateMap[node.type] : this.templateMap['default'];\n else return null;\n }\n\n onNodeClick(event: Event, node: TreeNode) {\n let eventTarget = <Element>event.target;\n\n if (eventTarget.className && (DomHandler.hasClass(eventTarget, 'p-node-toggler') || DomHandler.hasClass(eventTarget, 'p-node-toggler-icon'))) {\n return;\n } else if (this.selectionMode) {\n if (node.selectable === false) {\n return;\n }\n\n let index = this.findIndexInSelection(node);\n let selected = index >= 0;\n\n if (this.selectionMode === 'single') {\n if (selected) {\n this.selection = null;\n this.onNodeUnselect.emit({ originalEvent: event, node: node });\n } else {\n this.selection = node;\n this.onNodeSelect.emit({ originalEvent: event, node: node });\n }\n } else if (this.selectionMode === 'multiple') {\n if (selected) {\n this.selection = this.selection.filter((val: any, i: number) => i != index);\n this.onNodeUnselect.emit({ originalEvent: event, node: node });\n } else {\n this.selection = [...(this.selection || []), node];\n this.onNodeSelect.emit({ originalEvent: event, node: node });\n }\n }\n\n this.selectionChange.emit(this.selection);\n this.selectionSource.next(null);\n }\n }\n\n findIndexInSelection(node: TreeNode) {\n let index: number = -1;\n\n if (this.selectionMode && this.selection) {\n if (this.selectionMode === 'single') {\n index = this.selection == node ? 0 : -1;\n } else if (this.selectionMode === 'multiple') {\n for (let i = 0; i < this.selection.length; i++) {\n if (this.selection[i] == node) {\n index = i;\n break;\n }\n }\n }\n }\n\n return index;\n }\n\n isSelected(node: TreeNode) {\n return this.findIndexInSelection(node) != -1;\n }\n}\n\n@NgModule({\n imports: [CommonModule, ChevronDownIcon, ChevronUpIcon, SharedModule],\n exports: [OrganizationChart, SharedModule],\n declarations: [OrganizationChart, OrganizationChartNode]\n})\nexport class OrganizationChartModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MA2Fa,qBAAqB,CAAA;AAe4D,IAAA,EAAA,CAAA;AAdjF,IAAA,IAAI,CAA4B;AAED,IAAA,IAAI,CAAsB;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