1 line
26 KiB
Plaintext
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-orga
|