@rxap/tree 13.0.0 → 14.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/tree-content.directive.mjs +3 -3
- package/esm2020/lib/tree.component.mjs +14 -14
- package/esm2020/lib/tree.component.module.mjs +17 -19
- package/esm2020/lib/tree.data-source.mjs +4 -4
- package/fesm2015/rxap-tree.mjs +41 -43
- package/fesm2015/rxap-tree.mjs.map +1 -1
- package/fesm2020/rxap-tree.mjs +41 -43
- package/fesm2020/rxap-tree.mjs.map +1 -1
- package/lib/tree-content.directive.d.ts +1 -1
- package/lib/tree.component.d.ts +1 -1
- package/package.json +25 -25
- package/rxap-tree.d.ts +0 -5
package/fesm2020/rxap-tree.mjs
CHANGED
|
@@ -8,30 +8,30 @@ import { joinPath, Required, DebounceCall } from '@rxap/utilities';
|
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
9
|
import { InjectionToken, isDevMode, Injectable, Inject, TemplateRef, Directive, EventEmitter, ViewContainerRef, ChangeDetectorRef, Component, ChangeDetectionStrategy, Optional, Input, ContentChild, Output, ViewChild, HostListener, NgModule } from '@angular/core';
|
|
10
10
|
import { ToggleSubject, Node } from '@rxap/utilities/rxjs';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i9 from '@angular/cdk/portal';
|
|
12
12
|
import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
13
|
-
import * as i1 from '@angular/
|
|
14
|
-
import {
|
|
13
|
+
import * as i1 from '@angular/common';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
15
|
import * as i2 from '@angular/material/tree';
|
|
16
16
|
import { MatTreeModule } from '@angular/material/tree';
|
|
17
|
-
import * as i3 from '@angular/material/
|
|
18
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
19
|
-
import * as i4 from '@angular/material/checkbox';
|
|
20
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
21
|
-
import * as i5 from '@angular/material/button';
|
|
17
|
+
import * as i3 from '@angular/material/button';
|
|
22
18
|
import { MatButtonModule } from '@angular/material/button';
|
|
23
|
-
import * as
|
|
24
|
-
import {
|
|
19
|
+
import * as i4 from '@angular/material/icon';
|
|
20
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
21
|
+
import * as i5 from '@angular/flex-layout/flex';
|
|
22
|
+
import * as i6 from '@angular/flex-layout/extended';
|
|
25
23
|
import * as i7 from '@angular/material/divider';
|
|
26
24
|
import { MatDividerModule } from '@angular/material/divider';
|
|
27
|
-
import * as i8 from '@angular/
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
25
|
+
import * as i8 from '@angular/material/progress-spinner';
|
|
26
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
|
+
import * as i10 from '@rxap/contenteditable';
|
|
28
|
+
import { ContenteditableDirectiveModule } from '@rxap/contenteditable';
|
|
31
29
|
import * as i11 from '@rxap/material-directives/icon';
|
|
32
30
|
import { IconDirectiveModule } from '@rxap/material-directives/icon';
|
|
33
|
-
import * as i12 from '@
|
|
34
|
-
import {
|
|
31
|
+
import * as i12 from '@angular/material/checkbox';
|
|
32
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
33
|
+
import * as i13 from '@angular/material/progress-bar';
|
|
34
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
35
35
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
36
36
|
|
|
37
37
|
function isSelectionChange(obj) {
|
|
@@ -362,13 +362,13 @@ class TreeDataSource extends BaseDataSource {
|
|
|
362
362
|
this._data$.next(this._data$.value);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
TreeDataSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
366
|
-
TreeDataSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
365
|
+
TreeDataSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeDataSource, deps: [{ token: RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD }, { token: RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD }, { token: RXAP_DATA_SOURCE_METADATA }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
366
|
+
TreeDataSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeDataSource });
|
|
367
367
|
__decorate([
|
|
368
368
|
Required,
|
|
369
369
|
__metadata("design:type", FlatTreeControl)
|
|
370
370
|
], TreeDataSource.prototype, "treeControl", void 0);
|
|
371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeDataSource, decorators: [{
|
|
372
372
|
type: Injectable
|
|
373
373
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
374
374
|
type: Inject,
|
|
@@ -386,9 +386,9 @@ class TreeContentDirective {
|
|
|
386
386
|
this.template = template;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
TreeContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
390
|
-
TreeContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
389
|
+
TreeContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
390
|
+
TreeContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: TreeContentDirective, selector: "ng-template[rxapTreeContent]", ngImport: i0 });
|
|
391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeContentDirective, decorators: [{
|
|
392
392
|
type: Directive,
|
|
393
393
|
args: [{
|
|
394
394
|
// tslint:disable-next-line:directive-selector
|
|
@@ -498,8 +498,8 @@ class TreeComponent {
|
|
|
498
498
|
localStorage.setItem(this.cacheId, offset);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
TreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
502
|
-
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: TreeComponent, selector: "rxap-tree", inputs: { dataSource: "dataSource", contentEditableMethod: "contentEditableMethod", toDisplay: "toDisplay", getIcon: "getIcon", getStyle: "getStyle", multiple: "multiple", hasDetails: "hasDetails", hideLeafIcon: "hideLeafIcon", id: "id", dividerOffset: "dividerOffset" }, outputs: { details: "details" }, host: { listeners: { "mouseup": "onMouseup()", "mousemove": "onMousemove($event)" } }, queries: [{ propertyName: "content", first: true, predicate: TreeContentDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "treeContainer", first: true, predicate: ["treeContainer"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"container\" fxLayout=\"row\">\n <div [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\" #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template [ngIf]=\"multiple\">\n <mat-checkbox\n (change)=\"node.toggleSelect()\"\n [checked]=\"node.selected\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\">\n {{ node.display }}\n </mat-checkbox>\n </ng-template>\n <ng-template [ngIf]=\"!multiple\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [".container{height:100%}.tree-view{background-color:initial}.details{max-height:calc(100vh - 96px);overflow-y:auto}.tree-container{max-height:calc(100vh - 96px);overflow-y:auto;width:-moz-fit-content;width:fit-content}.divider{cursor:ew-resize;padding:12px}.divider ::ng-deep .mat-divider{height:100%}\n"], components: [{ type: i1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i2.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i9.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i10.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i2.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i2.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i10.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i11.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i2.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i12.ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { type: i8.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { type: i13.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i9.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
501
|
+
TreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeComponent, deps: [{ token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: RXAP_TREE_CONTENT_EDITABLE_METHOD, optional: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
502
|
+
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: TreeComponent, selector: "rxap-tree", inputs: { dataSource: "dataSource", contentEditableMethod: "contentEditableMethod", toDisplay: "toDisplay", getIcon: "getIcon", getStyle: "getStyle", multiple: "multiple", hasDetails: "hasDetails", hideLeafIcon: "hideLeafIcon", id: "id", dividerOffset: "dividerOffset" }, outputs: { details: "details" }, host: { listeners: { "mouseup": "onMouseup()", "mousemove": "onMousemove($event)" } }, queries: [{ propertyName: "content", first: true, predicate: TreeContentDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "treeContainer", first: true, predicate: ["treeContainer"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"container\" fxLayout=\"row\">\n <div [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\" #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template [ngIf]=\"multiple\">\n <mat-checkbox\n (change)=\"node.toggleSelect()\"\n [checked]=\"node.selected\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\">\n {{ node.display }}\n </mat-checkbox>\n </ng-template>\n <ng-template [ngIf]=\"!multiple\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [".container{height:100%}.tree-view{background-color:initial}.details{max-height:calc(100vh - 96px);overflow-y:auto}.tree-container{max-height:calc(100vh - 96px);overflow-y:auto;width:-moz-fit-content;width:fit-content}.divider{cursor:ew-resize;padding:12px}.divider ::ng-deep .mat-divider{height:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i2.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "directive", type: i2.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i2.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i2.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i9.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: i10.ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { kind: "directive", type: i11.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "component", type: i12.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i13.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
503
503
|
__decorate([
|
|
504
504
|
Required,
|
|
505
505
|
__metadata("design:type", TreeDataSource)
|
|
@@ -510,7 +510,7 @@ __decorate([
|
|
|
510
510
|
__metadata("design:paramtypes", [Node]),
|
|
511
511
|
__metadata("design:returntype", void 0)
|
|
512
512
|
], TreeComponent.prototype, "openDetails", null);
|
|
513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeComponent, decorators: [{
|
|
514
514
|
type: Component,
|
|
515
515
|
args: [{ selector: 'rxap-tree', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"container\" fxLayout=\"row\">\n <div [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\" #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template [ngIf]=\"multiple\">\n <mat-checkbox\n (change)=\"node.toggleSelect()\"\n [checked]=\"node.selected\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\">\n {{ node.display }}\n </mat-checkbox>\n </ng-template>\n <ng-template [ngIf]=\"!multiple\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [".container{height:100%}.tree-view{background-color:initial}.details{max-height:calc(100vh - 96px);overflow-y:auto}.tree-container{max-height:calc(100vh - 96px);overflow-y:auto;width:-moz-fit-content;width:fit-content}.divider{cursor:ew-resize;padding:12px}.divider ::ng-deep .mat-divider{height:100%}\n"] }]
|
|
516
516
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef, decorators: [{
|
|
@@ -562,8 +562,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
562
562
|
|
|
563
563
|
class TreeComponentModule {
|
|
564
564
|
}
|
|
565
|
-
TreeComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
566
|
-
TreeComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
565
|
+
TreeComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
566
|
+
TreeComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: TreeComponentModule, declarations: [TreeComponent, TreeContentDirective], imports: [CommonModule,
|
|
567
567
|
MatTreeModule,
|
|
568
568
|
MatButtonModule,
|
|
569
569
|
MatIconModule,
|
|
@@ -575,21 +575,19 @@ TreeComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
575
575
|
IconDirectiveModule,
|
|
576
576
|
MatCheckboxModule,
|
|
577
577
|
MatProgressBarModule], exports: [TreeComponent, TreeContentDirective] });
|
|
578
|
-
TreeComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
]] });
|
|
592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TreeComponentModule, decorators: [{
|
|
578
|
+
TreeComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeComponentModule, imports: [CommonModule,
|
|
579
|
+
MatTreeModule,
|
|
580
|
+
MatButtonModule,
|
|
581
|
+
MatIconModule,
|
|
582
|
+
FlexLayoutModule,
|
|
583
|
+
MatDividerModule,
|
|
584
|
+
MatProgressSpinnerModule,
|
|
585
|
+
PortalModule,
|
|
586
|
+
ContenteditableDirectiveModule,
|
|
587
|
+
IconDirectiveModule,
|
|
588
|
+
MatCheckboxModule,
|
|
589
|
+
MatProgressBarModule] });
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: TreeComponentModule, decorators: [{
|
|
593
591
|
type: NgModule,
|
|
594
592
|
args: [{
|
|
595
593
|
imports: [
|
|
@@ -604,7 +602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
604
602
|
ContenteditableDirectiveModule,
|
|
605
603
|
IconDirectiveModule,
|
|
606
604
|
MatCheckboxModule,
|
|
607
|
-
MatProgressBarModule
|
|
605
|
+
MatProgressBarModule,
|
|
608
606
|
],
|
|
609
607
|
declarations: [TreeComponent, TreeContentDirective],
|
|
610
608
|
exports: [TreeComponent, TreeContentDirective]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-tree.mjs","sources":["../../../../libs/tree/src/lib/tree.data-source.ts","../../../../libs/tree/src/lib/tree-content.directive.ts","../../../../libs/tree/src/lib/tokens.ts","../../../../libs/tree/src/lib/tree.component.ts","../../../../libs/tree/src/lib/tree.component.html","../../../../libs/tree/src/lib/tree.component.module.ts","../../../../libs/tree/src/rxap-tree.ts"],"sourcesContent":["import {\n BehaviorSubject,\n from,\n merge,\n Observable,\n Subject,\n Subscription\n} from 'rxjs';\nimport { FlatTreeControl } from '@angular/cdk/tree';\nimport {\n SelectionChange,\n SelectionModel\n} from '@angular/cdk/collections';\nimport {\n map,\n startWith,\n switchMap,\n tap\n} from 'rxjs/operators';\nimport {\n BaseDataSource,\n BaseDataSourceMetadata,\n BaseDataSourceViewer,\n RXAP_DATA_SOURCE_METADATA\n} from '@rxap/data-source';\nimport {\n joinPath,\n Required,\n WithChildren,\n WithIdentifier\n} from '@rxap/utilities';\nimport {\n Inject,\n Injectable,\n InjectionToken,\n isDevMode\n} from '@angular/core';\nimport {\n ExpandNodeFunction,\n Node,\n NodeGetIconFunction,\n NodeHasDetailsFunction,\n NodeToDisplayFunction,\n Method,\n ToggleSubject,\n NodeGetStyleFunction\n} from '@rxap/utilities/rxjs';\n\nexport function isSelectionChange<T>(obj: any): obj is SelectionChange<T> {\n return !!obj && obj.hasOwnProperty('added') && obj.hasOwnProperty('removed');\n}\n\nexport interface TreeDataSourceMetadata extends BaseDataSourceMetadata {\n selectMultiple?: boolean;\n expandMultiple?: boolean;\n}\n\nexport const RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD = new InjectionToken(\n 'rxap/tree/data-source/root-remote-method'\n);\nexport const RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD = new InjectionToken(\n 'rxap/tree/data-source/children-remote-method'\n);\n\n@Injectable()\nexport class TreeDataSource<\n Data extends WithIdentifier & WithChildren = any,\n RootParameters = any,\n NodeParameters = any,\n > extends BaseDataSource<Array<Node<Data>>> {\n public tree$ = new BehaviorSubject<Array<Node<Data>>>([]);\n @Required public treeControl!: FlatTreeControl<Node<Data>>;\n public selected!: SelectionModel<Node<Data>>;\n public expanded!: SelectionModel<string>;\n\n private _expandedLocalStorageSubscription: Subscription | null = null;\n private _selectedLocalStorageSubscription: Subscription | null = null;\n\n // TODO : änlich problem wie bei der redundaten expand SelectionModel.\n // im localStorage wird nur die id gespeichert.\n private _preSelected: string[] = [];\n\n protected _data$ = new BehaviorSubject<Array<Node<Data>>>([]);\n public metadata!: TreeDataSourceMetadata;\n\n public loading$ = new ToggleSubject(true);\n\n public toDisplay: NodeToDisplayFunction<Data> = () =>\n 'to display function not defined';\n public getIcon: NodeGetIconFunction<Data> = () => null;\n public getStyle: NodeGetStyleFunction<Data> = () => ({});\n public hasDetails: NodeHasDetailsFunction<Data> = () => true;\n public matchFilter: (node: Node<Data>) => boolean = () => true;\n\n public get nodeParameters(): NodeParameters | null {\n return this._nodeParameters;\n }\n\n public set nodeParameters(nodeParameters: NodeParameters | null) {\n this._nodeParameters = nodeParameters;\n this.tree$.value.forEach(node => node.parameters = nodeParameters);\n }\n\n private _refreshMatchFilter = new Subject();\n private _nodeParameters: NodeParameters | null = null;\n\n constructor(\n @Inject(RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD)\n public readonly rootRemoteMethod: Method<Data | Data[], RootParameters>,\n @Inject(RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD)\n public readonly childrenRemoteMethod: Method<Data[], Node<Data>>,\n @Inject(RXAP_DATA_SOURCE_METADATA)\n metadata: TreeDataSourceMetadata | null = null\n ) {\n super(metadata);\n this.tree$\n .pipe(\n map((tree) =>\n tree\n .map((child) => this.flatTree(child))\n .reduce((acc, nodes) => [...acc, ...nodes], [])\n )\n )\n .subscribe(this._data$);\n\n // TODO add new SelectModel class that saves the select model to the localStorage\n this.initSelected();\n this.initExpanded();\n }\n\n public async getTreeRoot(): Promise<Array<Node<Data>>> {\n this.loading$.enable();\n const root: Data | Data[] = await this.getRoot();\n\n let rootNodes: Array<Node<Data>>;\n\n if (Array.isArray(root)) {\n rootNodes = await Promise.all(root.map((node) => this._toNode(node)));\n } else {\n rootNodes = [await this._toNode(root)];\n }\n\n this.tree$.next(rootNodes);\n\n this.loading$.disable();\n\n return rootNodes;\n }\n\n public selectNode(node: Node<Data>): Promise<void> {\n if (!this.selected.isMultipleSelection()) {\n if (this.selected.hasValue()) {\n const currentSelectedNode = this.selected.selected[0];\n currentSelectedNode.deselect();\n }\n }\n this.selected.select(node);\n return Promise.resolve();\n }\n\n public setTreeControl(treeControl: FlatTreeControl<Node<Data>>): void {\n this.treeControl = treeControl;\n }\n\n public setMatchFilter(matchFilter: (node: Node<Data>) => boolean): void {\n this.matchFilter = matchFilter;\n }\n\n public setToDisplay(\n toDisplay: NodeToDisplayFunction<Data> = this.toDisplay\n ): void {\n this.toDisplay = toDisplay;\n }\n\n public setGetIcon(getIcon: NodeGetIconFunction<Data> = this.getIcon): void {\n this.getIcon = getIcon;\n }\n\n public setHasDetails(\n hasDetails: NodeHasDetailsFunction<Data> = this.hasDetails\n ): void {\n this.hasDetails = hasDetails;\n }\n\n public deselectNode(node: Node<Data>): Promise<void> {\n this.selected.deselect(node);\n return Promise.resolve();\n }\n\n // - the SelectModel that stores the selection into the local storage?\n public async _toNode(\n item: Data,\n depth: number = 0,\n onExpand: ExpandNodeFunction<Data> = this.expandNode.bind(this),\n onCollapse: ExpandNodeFunction<Data> = this.collapseNode.bind(this),\n onSelect: ExpandNodeFunction<Data> = this.selectNode.bind(this),\n onDeselect: ExpandNodeFunction<Data> = this.deselectNode.bind(this),\n ): Promise<Node<Data>> {\n const node = await this.toNode(\n item,\n depth,\n onExpand,\n onCollapse,\n onSelect,\n onDeselect\n );\n\n if (this.expanded.isSelected(node.id)) {\n node\n .expand()\n .then(() => {\n // TODO : remove redundant this.expanded SelectionModel. Only store expanded nodes in this.treeControl.expansionModel\n // das problem ist das ich beim speicher in localStorage nur die id speicher.\n // Des wegen kann ich beim laden aus dem localStorage this.treeControl.expansionModel\n // nicht einfach mit den expanend nodes fullen. Da dort das node object benötigt wird\n // möglich lösungen:\n // - das node object läde die entity mithilfe der id automatisch nach\n this.treeControl.expansionModel.select(node);\n console.debug(`Restore expand for node '${node.id}' SUCCESSFULLY`);\n })\n .catch(() =>\n console.debug(`Restore expand for node '${node.id}' FAILED`)\n );\n }\n\n if (this._preSelected.includes(node.id)) {\n await node\n .select()\n .then(() =>\n console.debug(`Restore select for node '${node.id}' SUCCESSFULLY`)\n )\n .catch(() =>\n console.debug(`Restore select for node '${node.id}' FAILED`)\n );\n }\n\n return node;\n }\n\n public async expandNode(node: Node<Data>): Promise<void> {\n if (node.item.hasChildren && !node.item.children?.length) {\n node.isLoading$.enable();\n\n const children = await this.getChildren(node);\n\n // add the loaded children to the item object\n node.item.children = children;\n\n node.addChildren(\n await Promise.all(children.map((child) =>\n this._toNode(child, node.depth + 1, node.onExpand, node.onCollapse)\n ))\n );\n\n node.isLoading$.disable();\n }\n\n this.expanded.select(node.id);\n\n this.tree$.next(this.tree$.value);\n }\n\n public async getChildren(node: Node<Data>): Promise<Data[]> {\n return this.childrenRemoteMethod.call(node);\n }\n\n public async getRoot(): Promise<Data | Data[]> {\n const rootParameters = await this.getRootParameters();\n return this.rootRemoteMethod.call(rootParameters);\n }\n\n public async getRootParameters(): Promise<RootParameters> {\n return undefined as any;\n }\n\n // TODO : find better solution to allow the overwrite of the toNode method\n // without losing the custom preselect and preexpand function\n\n public getNodeById(id: string): Node<Data> | null {\n function getNodeById(node: Node<Data>, nodeId: string) {\n if (node.id === nodeId) {\n return node;\n }\n if (node.hasNode(nodeId)) {\n return node.getNode(nodeId);\n } else {\n return null;\n }\n }\n\n return (\n this.tree$.value\n .map((node) => getNodeById(node, id))\n .filter(Boolean)[0] || null\n );\n }\n\n public async toNode(\n item: Data,\n depth: number = 0,\n onExpand: ExpandNodeFunction<Data> = this.expandNode.bind(this),\n onCollapse: ExpandNodeFunction<Data> = this.collapseNode.bind(this),\n onSelect: ExpandNodeFunction<Data> = this.selectNode.bind(this),\n onDeselect: ExpandNodeFunction<Data> = this.deselectNode.bind(this)\n ): Promise<Node<Data>> {\n return Node.ToNode(\n item,\n depth,\n onExpand,\n onCollapse,\n this.toDisplay,\n this.getIcon,\n onSelect,\n onDeselect,\n this.hasDetails,\n this.getStyle,\n this.nodeParameters\n );\n }\n\n public collapseNode(node: Node<Data>): Promise<void> {\n this.expanded.deselect(node.id);\n\n this.tree$.next(this.tree$.value);\n\n return Promise.resolve();\n }\n\n public flatTree(tree: Node<Data>): Array<Node<Data>> {\n function flat(acc: any[], list: any[]) {\n return [...acc, ...list];\n }\n\n const flatTree = (node: Node<Data>): Array<Node<Data>> => {\n if (!Array.isArray(node.children)) {\n if (isDevMode()) {\n console.log(node);\n }\n throw new Error('Node has not defined children');\n }\n\n if (node.expanded || this.expanded.isSelected(node.id)) {\n return [\n node,\n ...node.children.map((child) => flatTree(child)).reduce(flat, []),\n ];\n } else {\n return [node];\n }\n };\n\n return flatTree(tree);\n }\n\n public destroy(): void {\n super.destroy();\n // TODO : add subscription handler to BaseDataSource\n if (this._expandedLocalStorageSubscription) {\n this._expandedLocalStorageSubscription.unsubscribe();\n }\n if (this._selectedLocalStorageSubscription) {\n this._selectedLocalStorageSubscription.unsubscribe();\n }\n }\n\n public refreshMatchFilter(): void {\n this._refreshMatchFilter.next();\n }\n\n protected _connect(\n collectionViewer: Required<BaseDataSourceViewer>\n ): Observable<Array<Node<Data>>> {\n this.treeControl.expansionModel.changed.subscribe((change: any) => {\n if (isSelectionChange<Node<Data>>(change)) {\n if (change.added) {\n change.added.forEach((node) => node.expand());\n }\n if (change.removed) {\n change.removed\n .slice()\n .reverse()\n .forEach((node) => node.collapse());\n }\n }\n });\n\n let loadRoot: Promise<Array<Node<Data>> | void> = Promise.resolve();\n\n if (this.tree$.value.length === 0) {\n loadRoot = this.getTreeRoot();\n }\n\n return from(loadRoot).pipe(\n tap((rootNodes) => {\n if (rootNodes) {\n const promises: Promise<any>[] = [];\n if (this.metadata.selectMultiple) {\n if (!this.selected.hasValue()) {\n promises.push(\n ...rootNodes\n .filter((node) => node.hasDetails)\n .map((node) => node.select())\n );\n }\n if (!this.expanded.hasValue()) {\n promises.push(\n ...rootNodes\n .filter((node) => node.hasChildren)\n .map((node) => node.expand())\n );\n }\n } else if (rootNodes.length) {\n const rootNode = rootNodes[0];\n if (!this.selected.hasValue()) {\n // TODO : rename hasDetails to isSelectable\n if (rootNode.hasDetails) {\n promises.push(rootNode.select());\n }\n }\n if (!this.expanded.hasValue()) {\n promises.push(rootNode.expand());\n }\n }\n return Promise.all(promises);\n }\n return Promise.resolve();\n }),\n switchMap(() =>\n merge(collectionViewer.viewChange, this._data$).pipe(\n map(() => this._data$.value)\n )\n ),\n switchMap(nodeList => this._refreshMatchFilter.pipe(\n startWith(null),\n map(() => nodeList.filter(node => this.matchFilter(node)))\n )),\n );\n }\n\n public async refresh(): Promise<any> {\n const rootNodes = await this.getTreeRoot();\n\n // refresh all expanded nodes;\n\n const loadExpandedNodes = async (children: ReadonlyArray<Node<Data>>) => {\n for (const child of children) {\n if (this.expanded.isSelected(child.id)) {\n // call the node method to ensure that the expanded property of\n // Node is set.\n await child.expand();\n }\n\n if (child.hasChildren) {\n await loadExpandedNodes(child.children);\n }\n }\n };\n\n await Promise.all(\n rootNodes\n .filter((node) => node.hasChildren)\n .map((node) => loadExpandedNodes(node.children))\n );\n\n const selected: Array<Node<Data>> = this.selected.selected\n .map((node) => this.getNodeById(node.id))\n .filter(Boolean) as any;\n this.selected.clear();\n this.selected.select(...selected);\n }\n\n private initSelected(): void {\n const key = joinPath('rxap/tree', this.id, 'selected');\n if (this.metadata.cacheSelected) {\n if (localStorage.getItem(key)) {\n try {\n this._preSelected = JSON.parse(localStorage.getItem(key)!);\n } catch (e: any) {\n console.debug('parse expanded tree data source nodes failed');\n }\n }\n }\n\n this.selected = new SelectionModel<Node<Data>>(\n !!this.metadata.selectMultiple,\n []\n );\n if (this.metadata.cacheSelected) {\n this._selectedLocalStorageSubscription = this.selected.changed\n .pipe(\n tap(() =>\n localStorage.setItem(\n key,\n JSON.stringify(this.selected.selected.map((s) => s.id))\n )\n )\n )\n .subscribe();\n }\n }\n\n public reset(): any {\n this.selected.clear();\n this.expanded.clear();\n return this.getTreeRoot();\n }\n\n private initExpanded(): void {\n const key = joinPath('rxap/tree', this.id, 'expanded');\n let expanded = [];\n if (this.metadata.cacheExpanded) {\n if (localStorage.getItem(key)) {\n try {\n expanded = JSON.parse(localStorage.getItem(key)!);\n } catch (e: any) {\n console.debug('parse expanded tree data source nodes failed');\n }\n }\n }\n\n this.expanded = new SelectionModel<string>(\n this.metadata.expandMultiple !== false,\n expanded\n );\n if (this.metadata.cacheExpanded) {\n this._expandedLocalStorageSubscription = this.expanded.changed\n .pipe(\n tap(() =>\n localStorage.setItem(key, JSON.stringify(this.expanded.selected))\n )\n )\n .subscribe();\n }\n }\n\n public setGetStyle(getStyle: NodeGetStyleFunction<any> = this.getStyle) {\n this.getStyle = getStyle;\n }\n\n /**\n * recall the getStyle, getIcon and toDisplay methods\n * and update the node objects\n */\n public updateNodes() {\n this._data$.value.forEach(node => {\n node.style = this.getStyle(node.item);\n node.icon = this.getIcon(node.item);\n node.display = this.toDisplay(node.item);\n });\n this._data$.next(this._data$.value);\n }\n\n}\n","import { Directive, TemplateRef, Inject } from '@angular/core';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'ng-template[rxapTreeContent]',\n})\nexport class TreeContentDirective {\n constructor(\n @Inject(TemplateRef)\n public readonly template: TemplateRef<any>\n ) {}\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TREE_CONTENT_EDITABLE_METHOD = new InjectionToken('rxap/tree-content-editable-method');\n","import {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n ViewContainerRef,\n ElementRef,\n ViewChild,\n Renderer2,\n HostListener,\n isDevMode\n} from '@angular/core';\nimport {\n DebounceCall,\n Required,\n WithChildren,\n WithIdentifier\n} from '@rxap/utilities';\nimport { FlatTreeControl } from '@angular/cdk/tree';\nimport {\n map,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { TreeContentDirective } from './tree-content.directive';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { RXAP_TREE_CONTENT_EDITABLE_METHOD } from './tokens';\nimport { TreeDataSource } from './tree.data-source';\nimport {\n Method,\n Node,\n NodeGetIconFunction,\n NodeHasDetailsFunction,\n NodeToDisplayFunction,\n ToggleSubject,\n NodeGetStyleFunction\n} from '@rxap/utilities/rxjs';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'rxap-tree',\n templateUrl: './tree.component.html',\n styleUrls: [ './tree.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TreeComponent<Data extends WithIdentifier & WithChildren = any>\n implements OnInit, AfterContentInit {\n public get nodeDisplayEditable(): boolean {\n return !!this.contentEditableMethod;\n }\n\n public treeControl: FlatTreeControl<Node<Data>>;\n @Input()\n @Required\n public dataSource!: TreeDataSource<Data>;\n @Input()\n public contentEditableMethod?: Method<any, string | null> | null;\n @Input()\n public toDisplay?: NodeToDisplayFunction<any>;\n\n @Input()\n public getIcon?: NodeGetIconFunction<any>;\n\n @Input()\n public getStyle?: NodeGetStyleFunction<any>;\n\n @Input()\n public multiple: boolean = false;\n\n @Input()\n public hasDetails?: NodeHasDetailsFunction<any>;\n\n @ContentChild(TreeContentDirective, { static: true })\n public content?: TreeContentDirective;\n\n @Input()\n public hideLeafIcon: boolean = false;\n\n @Input()\n public id?: string;\n\n @Output()\n public details = new EventEmitter();\n\n @Input()\n public dividerOffset: string = '256px';\n\n public get cacheId() {\n return ['rxap', 'tree', this.id].join('/');\n }\n\n public portal: TemplatePortal | null = null;\n public getLevel = (node: Node<Data>) => node.depth;\n public isExpandable = (node: Node<Data>) => node.hasChildren;\n public hasChild = (_: number, nodeData: Node<Data>) => nodeData.hasChildren;\n\n @ViewChild('treeContainer', { static: true })\n public treeContainer!: ElementRef;\n\n /**\n * Indicates that the divider is moved with mouse down\n * @private\n */\n private _moveDivider = false;\n\n /**\n * Holds the current tree container width.\n * If null the move divider feature was not yet used and the initial\n * container width is not calculated\n * @private\n */\n private _treeContainerWidth: number | null = null;\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TREE_CONTENT_EDITABLE_METHOD)\n contentEditableMethod: Method<any, string | null> | null,\n private readonly renderer: Renderer2\n ) {\n this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable);\n this.contentEditableMethod = contentEditableMethod;\n }\n\n public ngOnInit() {\n this.dataSource.setTreeControl(this.treeControl);\n this.dataSource.setToDisplay(this.toDisplay);\n this.dataSource.setGetIcon(this.getIcon);\n this.dataSource.setHasDetails(this.hasDetails);\n this.dataSource.setGetStyle(this.getStyle);\n this.multiple = this.dataSource.metadata.selectMultiple ?? this.multiple;\n\n if (this.dataSource.selected.hasValue()) {\n this.dataSource.selected.selected.forEach((node) =>\n this.openDetails(node)\n );\n }\n\n const cachedOffset = localStorage.getItem(this.cacheId);\n if (cachedOffset && cachedOffset.match(/^(\\d+\\.)?\\d+px$/)) {\n this.setDividerOffset(cachedOffset);\n } else if (isDevMode()) {\n console.log(\"Divider offset cache is not available or invalid: \" + cachedOffset);\n }\n }\n\n public ngAfterContentInit(): void {\n this.dataSource.selected.changed\n .pipe(\n map(($event) => $event.source.selected),\n startWith(this.dataSource.selected.selected),\n tap((selected) => selected.forEach((node) => this.openDetails(node)))\n )\n .subscribe();\n }\n\n @DebounceCall(100)\n public openDetails(node: Node<Data>): void {\n if (this.content) {\n this.portal = new TemplatePortal<any>(\n this.content.template,\n this.viewContainerRef,\n {\n $implicit: node.item,\n node,\n }\n );\n this.cdr.markForCheck();\n }\n this.details.emit(node.item);\n }\n\n public onContentEditableChange(value: string | null, node: Node<Data>) {\n return this.contentEditableMethod?.call(value, node.item, node);\n }\n\n\n onMousedown() {\n this._moveDivider = true;\n }\n\n @HostListener('mouseup')\n onMouseup() {\n this._moveDivider = false;\n }\n\n @HostListener('mousemove', [ '$event' ])\n onMousemove($event: MouseEvent) {\n if (this._moveDivider) {\n if (!this._treeContainerWidth) {\n this._treeContainerWidth = this.treeContainer.nativeElement.clientWidth as number;\n }\n this._treeContainerWidth = $event.clientX - 75;\n const offset = this._treeContainerWidth + 'px';\n this.setDividerOffset(offset);\n }\n }\n\n private setDividerOffset(offset: string) {\n if (isDevMode()) {\n console.log(\"set divider offset to: \" + offset);\n }\n this.dividerOffset = offset;\n this.renderer.setStyle(this.treeContainer.nativeElement, 'max-width', offset);\n this.renderer.setStyle(this.treeContainer.nativeElement, 'min-width', offset);\n this.renderer.setStyle(this.treeContainer.nativeElement, 'flex-basis', offset);\n localStorage.setItem(this.cacheId, offset);\n }\n\n}\n","<div class=\"container\" fxLayout=\"row\">\n <div [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\" #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template [ngIf]=\"multiple\">\n <mat-checkbox\n (change)=\"node.toggleSelect()\"\n [checked]=\"node.selected\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\">\n {{ node.display }}\n </mat-checkbox>\n </ng-template>\n <ng-template [ngIf]=\"!multiple\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n","import { NgModule } from '@angular/core';\nimport { TreeComponent } from './tree.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTreeModule } from '@angular/material/tree';\nimport { CommonModule } from '@angular/common';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { TreeContentDirective } from './tree-content.directive';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { ContenteditableDirectiveModule } from '@rxap/contenteditable';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n@NgModule({\n imports: [\n CommonModule,\n MatTreeModule,\n MatButtonModule,\n MatIconModule,\n FlexLayoutModule,\n MatDividerModule,\n MatProgressSpinnerModule,\n PortalModule,\n ContenteditableDirectiveModule,\n IconDirectiveModule,\n MatCheckboxModule,\n MatProgressBarModule\n ],\n declarations: [ TreeComponent, TreeContentDirective ],\n exports: [ TreeComponent, TreeContentDirective ]\n})\nexport class TreeComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAgDgB,iBAAiB,CAAI,GAAQ;IAC3C,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAC/E,CAAC;MAOY,wCAAwC,GAAG,IAAI,cAAc,CACxE,0CAA0C,EAC1C;MACW,4CAA4C,GAAG,IAAI,cAAc,CAC5E,8CAA8C,EAC9C;MAGW,cAIT,SAAQ,cAAiC;IAqC3C,YAEkB,gBAAuD,EAEvD,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AE;sBADR,KAAK;gBAIC,OAAO;sBADb,MAAM;gBAIA,aAAa;sBADnB,KAAK;gBAaC,aAAa;sBADnB,SAAS;uBAAC,eAAe,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBAgErC,WAAW,MAyBlB,SAAS;sBADR,YAAY;uBAAC,SAAS;gBAMvB,WAAW;sBADV,YAAY;uBAAC,WAAW,EAAE,CAAE,QAAQ,CAAE;;;MElK5B,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAHd,aAAa,EAAE,oBAAoB,aAbjD,YAAY;QACZ,aAAa;QACb,eAAe;QACf,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,wBAAwB;QACxB,YAAY;QACZ,8BAA8B;QAC9B,mBAAmB;QACnB,iBAAiB;QACjB,oBAAoB,aAGN,aAAa,EAAE,oBAAoB;iHAExC,mBAAmB,YAjBhB;YACZ,YAAY;YACZ,aAAa;YACb,eAAe;YACf,aAAa;YACb,gBAAgB;YAChB,gBAAgB;YAChB,wBAAwB;YACxB,YAAY;YACZ,8BAA8B;YAC9B,mBAAmB;YACnB,iBAAiB;YACjB,oBAAoB;SACrB;2FAIU,mBAAmB;kBAlB/B,QAAQ;mBAAC;oBACR,OAAO,EAAO;wBACZ,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,aAAa;wBACb,gBAAgB;wBAChB,gBAAgB;wBAChB,wBAAwB;wBACxB,YAAY;wBACZ,8BAA8B;wBAC9B,mBAAmB;wBACnB,iBAAiB;wBACjB,oBAAoB;qBACrB;oBACD,YAAY,EAAE,CAAE,aAAa,EAAE,oBAAoB,CAAE;oBACrD,OAAO,EAAO,CAAE,aAAa,EAAE,oBAAoB,CAAE;iBACtD;;;ACjCD;;;;;;"}
|
|
1
|
+
{"version":3,"file":"rxap-tree.mjs","sources":["../../../../libs/tree/src/lib/tree.data-source.ts","../../../../libs/tree/src/lib/tree-content.directive.ts","../../../../libs/tree/src/lib/tokens.ts","../../../../libs/tree/src/lib/tree.component.ts","../../../../libs/tree/src/lib/tree.component.html","../../../../libs/tree/src/lib/tree.component.module.ts","../../../../libs/tree/src/rxap-tree.ts"],"sourcesContent":["import {\n BehaviorSubject,\n from,\n merge,\n Observable,\n Subject,\n Subscription\n} from 'rxjs';\nimport { FlatTreeControl } from '@angular/cdk/tree';\nimport {\n SelectionChange,\n SelectionModel\n} from '@angular/cdk/collections';\nimport {\n map,\n startWith,\n switchMap,\n tap\n} from 'rxjs/operators';\nimport {\n BaseDataSource,\n BaseDataSourceMetadata,\n BaseDataSourceViewer,\n RXAP_DATA_SOURCE_METADATA\n} from '@rxap/data-source';\nimport {\n joinPath,\n Required,\n WithChildren,\n WithIdentifier\n} from '@rxap/utilities';\nimport {\n Inject,\n Injectable,\n InjectionToken,\n isDevMode\n} from '@angular/core';\nimport {\n ExpandNodeFunction,\n Node,\n NodeGetIconFunction,\n NodeHasDetailsFunction,\n NodeToDisplayFunction,\n Method,\n ToggleSubject,\n NodeGetStyleFunction\n} from '@rxap/utilities/rxjs';\n\nexport function isSelectionChange<T>(obj: any): obj is SelectionChange<T> {\n return !!obj && obj.hasOwnProperty('added') && obj.hasOwnProperty('removed');\n}\n\nexport interface TreeDataSourceMetadata extends BaseDataSourceMetadata {\n selectMultiple?: boolean;\n expandMultiple?: boolean;\n}\n\nexport const RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD = new InjectionToken(\n 'rxap/tree/data-source/root-remote-method'\n);\nexport const RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD = new InjectionToken(\n 'rxap/tree/data-source/children-remote-method'\n);\n\n@Injectable()\nexport class TreeDataSource<\n Data extends WithIdentifier & WithChildren = any,\n RootParameters = any,\n NodeParameters = any,\n > extends BaseDataSource<Array<Node<Data>>> {\n public tree$ = new BehaviorSubject<Array<Node<Data>>>([]);\n @Required public treeControl!: FlatTreeControl<Node<Data>>;\n public selected!: SelectionModel<Node<Data>>;\n public expanded!: SelectionModel<string>;\n\n private _expandedLocalStorageSubscription: Subscription | null = null;\n private _selectedLocalStorageSubscription: Subscription | null = null;\n\n // TODO : änlich problem wie bei der redundaten expand SelectionModel.\n // im localStorage wird nur die id gespeichert.\n private _preSelected: string[] = [];\n\n protected _data$ = new BehaviorSubject<Array<Node<Data>>>([]);\n public metadata!: TreeDataSourceMetadata;\n\n public loading$ = new ToggleSubject(true);\n\n public toDisplay: NodeToDisplayFunction<Data> = () =>\n 'to display function not defined';\n public getIcon: NodeGetIconFunction<Data> = () => null;\n public getStyle: NodeGetStyleFunction<Data> = () => ({});\n public hasDetails: NodeHasDetailsFunction<Data> = () => true;\n public matchFilter: (node: Node<Data>) => boolean = () => true;\n\n public get nodeParameters(): NodeParameters | null {\n return this._nodeParameters;\n }\n\n public set nodeParameters(nodeParameters: NodeParameters | null) {\n this._nodeParameters = nodeParameters;\n this.tree$.value.forEach(node => node.parameters = nodeParameters);\n }\n\n private _refreshMatchFilter = new Subject();\n private _nodeParameters: NodeParameters | null = null;\n\n constructor(\n @Inject(RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD)\n public readonly rootRemoteMethod: Method<Data | Data[], RootParameters>,\n @Inject(RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD)\n public readonly childrenRemoteMethod: Method<Data[], Node<Data>>,\n @Inject(RXAP_DATA_SOURCE_METADATA)\n metadata: TreeDataSourceMetadata | null = null\n ) {\n super(metadata);\n this.tree$\n .pipe(\n map((tree) =>\n tree\n .map((child) => this.flatTree(child))\n .reduce((acc, nodes) => [...acc, ...nodes], [])\n )\n )\n .subscribe(this._data$);\n\n // TODO add new SelectModel class that saves the select model to the localStorage\n this.initSelected();\n this.initExpanded();\n }\n\n public async getTreeRoot(): Promise<Array<Node<Data>>> {\n this.loading$.enable();\n const root: Data | Data[] = await this.getRoot();\n\n let rootNodes: Array<Node<Data>>;\n\n if (Array.isArray(root)) {\n rootNodes = await Promise.all(root.map((node) => this._toNode(node)));\n } else {\n rootNodes = [await this._toNode(root)];\n }\n\n this.tree$.next(rootNodes);\n\n this.loading$.disable();\n\n return rootNodes;\n }\n\n public selectNode(node: Node<Data>): Promise<void> {\n if (!this.selected.isMultipleSelection()) {\n if (this.selected.hasValue()) {\n const currentSelectedNode = this.selected.selected[0];\n currentSelectedNode.deselect();\n }\n }\n this.selected.select(node);\n return Promise.resolve();\n }\n\n public setTreeControl(treeControl: FlatTreeControl<Node<Data>>): void {\n this.treeControl = treeControl;\n }\n\n public setMatchFilter(matchFilter: (node: Node<Data>) => boolean): void {\n this.matchFilter = matchFilter;\n }\n\n public setToDisplay(\n toDisplay: NodeToDisplayFunction<Data> = this.toDisplay\n ): void {\n this.toDisplay = toDisplay;\n }\n\n public setGetIcon(getIcon: NodeGetIconFunction<Data> = this.getIcon): void {\n this.getIcon = getIcon;\n }\n\n public setHasDetails(\n hasDetails: NodeHasDetailsFunction<Data> = this.hasDetails\n ): void {\n this.hasDetails = hasDetails;\n }\n\n public deselectNode(node: Node<Data>): Promise<void> {\n this.selected.deselect(node);\n return Promise.resolve();\n }\n\n // - the SelectModel that stores the selection into the local storage?\n public async _toNode(\n item: Data,\n depth: number = 0,\n onExpand: ExpandNodeFunction<Data> = this.expandNode.bind(this),\n onCollapse: ExpandNodeFunction<Data> = this.collapseNode.bind(this),\n onSelect: ExpandNodeFunction<Data> = this.selectNode.bind(this),\n onDeselect: ExpandNodeFunction<Data> = this.deselectNode.bind(this),\n ): Promise<Node<Data>> {\n const node = await this.toNode(\n item,\n depth,\n onExpand,\n onCollapse,\n onSelect,\n onDeselect\n );\n\n if (this.expanded.isSelected(node.id)) {\n node\n .expand()\n .then(() => {\n // TODO : remove redundant this.expanded SelectionModel. Only store expanded nodes in this.treeControl.expansionModel\n // das problem ist das ich beim speicher in localStorage nur die id speicher.\n // Des wegen kann ich beim laden aus dem localStorage this.treeControl.expansionModel\n // nicht einfach mit den expanend nodes fullen. Da dort das node object benötigt wird\n // möglich lösungen:\n // - das node object läde die entity mithilfe der id automatisch nach\n this.treeControl.expansionModel.select(node);\n console.debug(`Restore expand for node '${node.id}' SUCCESSFULLY`);\n })\n .catch(() =>\n console.debug(`Restore expand for node '${node.id}' FAILED`)\n );\n }\n\n if (this._preSelected.includes(node.id)) {\n await node\n .select()\n .then(() =>\n console.debug(`Restore select for node '${node.id}' SUCCESSFULLY`)\n )\n .catch(() =>\n console.debug(`Restore select for node '${node.id}' FAILED`)\n );\n }\n\n return node;\n }\n\n public async expandNode(node: Node<Data>): Promise<void> {\n if (node.item.hasChildren && !node.item.children?.length) {\n node.isLoading$.enable();\n\n const children = await this.getChildren(node);\n\n // add the loaded children to the item object\n node.item.children = children;\n\n node.addChildren(\n await Promise.all(children.map((child) =>\n this._toNode(child, node.depth + 1, node.onExpand, node.onCollapse)\n ))\n );\n\n node.isLoading$.disable();\n }\n\n this.expanded.select(node.id);\n\n this.tree$.next(this.tree$.value);\n }\n\n public async getChildren(node: Node<Data>): Promise<Data[]> {\n return this.childrenRemoteMethod.call(node);\n }\n\n public async getRoot(): Promise<Data | Data[]> {\n const rootParameters = await this.getRootParameters();\n return this.rootRemoteMethod.call(rootParameters);\n }\n\n public async getRootParameters(): Promise<RootParameters> {\n return undefined as any;\n }\n\n // TODO : find better solution to allow the overwrite of the toNode method\n // without losing the custom preselect and preexpand function\n\n public getNodeById(id: string): Node<Data> | null {\n function getNodeById(node: Node<Data>, nodeId: string) {\n if (node.id === nodeId) {\n return node;\n }\n if (node.hasNode(nodeId)) {\n return node.getNode(nodeId);\n } else {\n return null;\n }\n }\n\n return (\n this.tree$.value\n .map((node) => getNodeById(node, id))\n .filter(Boolean)[0] || null\n );\n }\n\n public async toNode(\n item: Data,\n depth: number = 0,\n onExpand: ExpandNodeFunction<Data> = this.expandNode.bind(this),\n onCollapse: ExpandNodeFunction<Data> = this.collapseNode.bind(this),\n onSelect: ExpandNodeFunction<Data> = this.selectNode.bind(this),\n onDeselect: ExpandNodeFunction<Data> = this.deselectNode.bind(this)\n ): Promise<Node<Data>> {\n return Node.ToNode(\n item,\n depth,\n onExpand,\n onCollapse,\n this.toDisplay,\n this.getIcon,\n onSelect,\n onDeselect,\n this.hasDetails,\n this.getStyle,\n this.nodeParameters\n );\n }\n\n public collapseNode(node: Node<Data>): Promise<void> {\n this.expanded.deselect(node.id);\n\n this.tree$.next(this.tree$.value);\n\n return Promise.resolve();\n }\n\n public flatTree(tree: Node<Data>): Array<Node<Data>> {\n function flat(acc: any[], list: any[]) {\n return [...acc, ...list];\n }\n\n const flatTree = (node: Node<Data>): Array<Node<Data>> => {\n if (!Array.isArray(node.children)) {\n if (isDevMode()) {\n console.log(node);\n }\n throw new Error('Node has not defined children');\n }\n\n if (node.expanded || this.expanded.isSelected(node.id)) {\n return [\n node,\n ...node.children.map((child) => flatTree(child)).reduce(flat, []),\n ];\n } else {\n return [node];\n }\n };\n\n return flatTree(tree);\n }\n\n public destroy(): void {\n super.destroy();\n // TODO : add subscription handler to BaseDataSource\n if (this._expandedLocalStorageSubscription) {\n this._expandedLocalStorageSubscription.unsubscribe();\n }\n if (this._selectedLocalStorageSubscription) {\n this._selectedLocalStorageSubscription.unsubscribe();\n }\n }\n\n public refreshMatchFilter(): void {\n this._refreshMatchFilter.next();\n }\n\n protected _connect(\n collectionViewer: Required<BaseDataSourceViewer>\n ): Observable<Array<Node<Data>>> {\n this.treeControl.expansionModel.changed.subscribe((change: any) => {\n if (isSelectionChange<Node<Data>>(change)) {\n if (change.added) {\n change.added.forEach((node) => node.expand());\n }\n if (change.removed) {\n change.removed\n .slice()\n .reverse()\n .forEach((node) => node.collapse());\n }\n }\n });\n\n let loadRoot: Promise<Array<Node<Data>> | void> = Promise.resolve();\n\n if (this.tree$.value.length === 0) {\n loadRoot = this.getTreeRoot();\n }\n\n return from(loadRoot).pipe(\n tap((rootNodes) => {\n if (rootNodes) {\n const promises: Promise<any>[] = [];\n if (this.metadata.selectMultiple) {\n if (!this.selected.hasValue()) {\n promises.push(\n ...rootNodes\n .filter((node) => node.hasDetails)\n .map((node) => node.select())\n );\n }\n if (!this.expanded.hasValue()) {\n promises.push(\n ...rootNodes\n .filter((node) => node.hasChildren)\n .map((node) => node.expand())\n );\n }\n } else if (rootNodes.length) {\n const rootNode = rootNodes[0];\n if (!this.selected.hasValue()) {\n // TODO : rename hasDetails to isSelectable\n if (rootNode.hasDetails) {\n promises.push(rootNode.select());\n }\n }\n if (!this.expanded.hasValue()) {\n promises.push(rootNode.expand());\n }\n }\n return Promise.all(promises);\n }\n return Promise.resolve();\n }),\n switchMap(() =>\n merge(collectionViewer.viewChange, this._data$).pipe(\n map(() => this._data$.value)\n )\n ),\n switchMap(nodeList => this._refreshMatchFilter.pipe(\n startWith(null),\n map(() => nodeList.filter(node => this.matchFilter(node)))\n )),\n );\n }\n\n public async refresh(): Promise<any> {\n const rootNodes = await this.getTreeRoot();\n\n // refresh all expanded nodes;\n\n const loadExpandedNodes = async (children: ReadonlyArray<Node<Data>>) => {\n for (const child of children) {\n if (this.expanded.isSelected(child.id)) {\n // call the node method to ensure that the expanded property of\n // Node is set.\n await child.expand();\n }\n\n if (child.hasChildren) {\n await loadExpandedNodes(child.children);\n }\n }\n };\n\n await Promise.all(\n rootNodes\n .filter((node) => node.hasChildren)\n .map((node) => loadExpandedNodes(node.children))\n );\n\n const selected: Array<Node<Data>> = this.selected.selected\n .map((node) => this.getNodeById(node.id))\n .filter(Boolean) as any;\n this.selected.clear();\n this.selected.select(...selected);\n }\n\n private initSelected(): void {\n const key = joinPath('rxap/tree', this.id, 'selected');\n if (this.metadata.cacheSelected) {\n if (localStorage.getItem(key)) {\n try {\n this._preSelected = JSON.parse(localStorage.getItem(key)!);\n } catch (e: any) {\n console.debug('parse expanded tree data source nodes failed');\n }\n }\n }\n\n this.selected = new SelectionModel<Node<Data>>(\n !!this.metadata.selectMultiple,\n []\n );\n if (this.metadata.cacheSelected) {\n this._selectedLocalStorageSubscription = this.selected.changed\n .pipe(\n tap(() =>\n localStorage.setItem(\n key,\n JSON.stringify(this.selected.selected.map((s) => s.id))\n )\n )\n )\n .subscribe();\n }\n }\n\n public reset(): any {\n this.selected.clear();\n this.expanded.clear();\n return this.getTreeRoot();\n }\n\n private initExpanded(): void {\n const key = joinPath('rxap/tree', this.id, 'expanded');\n let expanded = [];\n if (this.metadata.cacheExpanded) {\n if (localStorage.getItem(key)) {\n try {\n expanded = JSON.parse(localStorage.getItem(key)!);\n } catch (e: any) {\n console.debug('parse expanded tree data source nodes failed');\n }\n }\n }\n\n this.expanded = new SelectionModel<string>(\n this.metadata.expandMultiple !== false,\n expanded\n );\n if (this.metadata.cacheExpanded) {\n this._expandedLocalStorageSubscription = this.expanded.changed\n .pipe(\n tap(() =>\n localStorage.setItem(key, JSON.stringify(this.expanded.selected))\n )\n )\n .subscribe();\n }\n }\n\n public setGetStyle(getStyle: NodeGetStyleFunction<any> = this.getStyle) {\n this.getStyle = getStyle;\n }\n\n /**\n * recall the getStyle, getIcon and toDisplay methods\n * and update the node objects\n */\n public updateNodes() {\n this._data$.value.forEach(node => {\n node.style = this.getStyle(node.item);\n node.icon = this.getIcon(node.item);\n node.display = this.toDisplay(node.item);\n });\n this._data$.next(this._data$.value);\n }\n\n}\n","import { Directive, TemplateRef, Inject } from '@angular/core';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'ng-template[rxapTreeContent]',\n})\nexport class TreeContentDirective {\n constructor(\n @Inject(TemplateRef)\n public readonly template: TemplateRef<any>\n ) {}\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const RXAP_TREE_CONTENT_EDITABLE_METHOD = new InjectionToken('rxap/tree-content-editable-method');\n","import {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n ViewContainerRef,\n ElementRef,\n ViewChild,\n Renderer2,\n HostListener,\n isDevMode\n} from '@angular/core';\nimport {\n DebounceCall,\n Required,\n WithChildren,\n WithIdentifier\n} from '@rxap/utilities';\nimport { FlatTreeControl } from '@angular/cdk/tree';\nimport {\n map,\n startWith,\n tap\n} from 'rxjs/operators';\nimport { TreeContentDirective } from './tree-content.directive';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { RXAP_TREE_CONTENT_EDITABLE_METHOD } from './tokens';\nimport { TreeDataSource } from './tree.data-source';\nimport {\n Method,\n Node,\n NodeGetIconFunction,\n NodeHasDetailsFunction,\n NodeToDisplayFunction,\n ToggleSubject,\n NodeGetStyleFunction\n} from '@rxap/utilities/rxjs';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'rxap-tree',\n templateUrl: './tree.component.html',\n styleUrls: [ './tree.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TreeComponent<Data extends WithIdentifier & WithChildren = any>\n implements OnInit, AfterContentInit {\n public get nodeDisplayEditable(): boolean {\n return !!this.contentEditableMethod;\n }\n\n public treeControl: FlatTreeControl<Node<Data>>;\n @Input()\n @Required\n public dataSource!: TreeDataSource<Data>;\n @Input()\n public contentEditableMethod?: Method<any, string | null> | null;\n @Input()\n public toDisplay?: NodeToDisplayFunction<any>;\n\n @Input()\n public getIcon?: NodeGetIconFunction<any>;\n\n @Input()\n public getStyle?: NodeGetStyleFunction<any>;\n\n @Input()\n public multiple: boolean = false;\n\n @Input()\n public hasDetails?: NodeHasDetailsFunction<any>;\n\n @ContentChild(TreeContentDirective, { static: true })\n public content?: TreeContentDirective;\n\n @Input()\n public hideLeafIcon: boolean = false;\n\n @Input()\n public id?: string;\n\n @Output()\n public details = new EventEmitter();\n\n @Input()\n public dividerOffset: string = '256px';\n\n public get cacheId() {\n return ['rxap', 'tree', this.id].join('/');\n }\n\n public portal: TemplatePortal | null = null;\n public getLevel = (node: Node<Data>) => node.depth;\n public isExpandable = (node: Node<Data>) => node.hasChildren;\n public hasChild = (_: number, nodeData: Node<Data>) => nodeData.hasChildren;\n\n @ViewChild('treeContainer', { static: true })\n public treeContainer!: ElementRef;\n\n /**\n * Indicates that the divider is moved with mouse down\n * @private\n */\n private _moveDivider = false;\n\n /**\n * Holds the current tree container width.\n * If null the move divider feature was not yet used and the initial\n * container width is not calculated\n * @private\n */\n private _treeContainerWidth: number | null = null;\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n @Inject(ChangeDetectorRef)\n private readonly cdr: ChangeDetectorRef,\n @Optional()\n @Inject(RXAP_TREE_CONTENT_EDITABLE_METHOD)\n contentEditableMethod: Method<any, string | null> | null,\n private readonly renderer: Renderer2\n ) {\n this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable);\n this.contentEditableMethod = contentEditableMethod;\n }\n\n public ngOnInit() {\n this.dataSource.setTreeControl(this.treeControl);\n this.dataSource.setToDisplay(this.toDisplay);\n this.dataSource.setGetIcon(this.getIcon);\n this.dataSource.setHasDetails(this.hasDetails);\n this.dataSource.setGetStyle(this.getStyle);\n this.multiple = this.dataSource.metadata.selectMultiple ?? this.multiple;\n\n if (this.dataSource.selected.hasValue()) {\n this.dataSource.selected.selected.forEach((node) =>\n this.openDetails(node)\n );\n }\n\n const cachedOffset = localStorage.getItem(this.cacheId);\n if (cachedOffset && cachedOffset.match(/^(\\d+\\.)?\\d+px$/)) {\n this.setDividerOffset(cachedOffset);\n } else if (isDevMode()) {\n console.log(\"Divider offset cache is not available or invalid: \" + cachedOffset);\n }\n }\n\n public ngAfterContentInit(): void {\n this.dataSource.selected.changed\n .pipe(\n map(($event) => $event.source.selected),\n startWith(this.dataSource.selected.selected),\n tap((selected) => selected.forEach((node) => this.openDetails(node)))\n )\n .subscribe();\n }\n\n @DebounceCall(100)\n public openDetails(node: Node<Data>): void {\n if (this.content) {\n this.portal = new TemplatePortal<any>(\n this.content.template,\n this.viewContainerRef,\n {\n $implicit: node.item,\n node,\n }\n );\n this.cdr.markForCheck();\n }\n this.details.emit(node.item);\n }\n\n public onContentEditableChange(value: string | null, node: Node<Data>) {\n return this.contentEditableMethod?.call(value, node.item, node);\n }\n\n\n onMousedown() {\n this._moveDivider = true;\n }\n\n @HostListener('mouseup')\n onMouseup() {\n this._moveDivider = false;\n }\n\n @HostListener('mousemove', [ '$event' ])\n onMousemove($event: MouseEvent) {\n if (this._moveDivider) {\n if (!this._treeContainerWidth) {\n this._treeContainerWidth = this.treeContainer.nativeElement.clientWidth as number;\n }\n this._treeContainerWidth = $event.clientX - 75;\n const offset = this._treeContainerWidth + 'px';\n this.setDividerOffset(offset);\n }\n }\n\n private setDividerOffset(offset: string) {\n if (isDevMode()) {\n console.log(\"set divider offset to: \" + offset);\n }\n this.dividerOffset = offset;\n this.renderer.setStyle(this.treeContainer.nativeElement, 'max-width', offset);\n this.renderer.setStyle(this.treeContainer.nativeElement, 'min-width', offset);\n this.renderer.setStyle(this.treeContainer.nativeElement, 'flex-basis', offset);\n localStorage.setItem(this.cacheId, offset);\n }\n\n}\n","<div class=\"container\" fxLayout=\"row\">\n <div [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\" #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template [ngIf]=\"multiple\">\n <mat-checkbox\n (change)=\"node.toggleSelect()\"\n [checked]=\"node.selected\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\">\n {{ node.display }}\n </mat-checkbox>\n </ng-template>\n <ng-template [ngIf]=\"!multiple\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n [ngStyle]=\"node.style\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n","import { NgModule } from '@angular/core';\nimport { TreeComponent } from './tree.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTreeModule } from '@angular/material/tree';\nimport { CommonModule } from '@angular/common';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { TreeContentDirective } from './tree-content.directive';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { ContenteditableDirectiveModule } from '@rxap/contenteditable';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n@NgModule({\n imports: [\n CommonModule,\n MatTreeModule,\n MatButtonModule,\n MatIconModule,\n FlexLayoutModule,\n MatDividerModule,\n MatProgressSpinnerModule,\n PortalModule,\n ContenteditableDirectiveModule,\n IconDirectiveModule,\n MatCheckboxModule,\n MatProgressBarModule,\n ],\n declarations: [ TreeComponent, TreeContentDirective ],\n exports: [ TreeComponent, TreeContentDirective ]\n})\nexport class TreeComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDM,SAAU,iBAAiB,CAAI,GAAQ,EAAA;AAC3C,IAAA,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAC/E,CAAC;MAOY,wCAAwC,GAAG,IAAI,cAAc,CACxE,0CAA0C,EAC1C;MACW,4CAA4C,GAAG,IAAI,cAAc,CAC5E,8CAA8C,EAC9C;AAGI,MAAO,cAIT,SAAQ,cAAiC,CAAA;AAqC3C,IAA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B,wBAAwB;wBACxB,YAAY;wBACZ,8BAA8B;wBAC9B,mBAAmB;wBACnB,iBAAiB;wBACjB,oBAAoB;AACrB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAE,aAAa,EAAE,oBAAoB,CAAE;AACrD,oBAAA,OAAO,EAAO,CAAE,aAAa,EAAE,oBAAoB,CAAE;AACtD,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
|
@@ -4,5 +4,5 @@ export declare class TreeContentDirective {
|
|
|
4
4
|
readonly template: TemplateRef<any>;
|
|
5
5
|
constructor(template: TemplateRef<any>);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeContentDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeContentDirective, "ng-template[rxapTreeContent]", never, {}, {}, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeContentDirective, "ng-template[rxapTreeContent]", never, {}, {}, never, never, false>;
|
|
8
8
|
}
|
package/lib/tree.component.d.ts
CHANGED
|
@@ -52,5 +52,5 @@ export declare class TreeComponent<Data extends WithIdentifier & WithChildren =
|
|
|
52
52
|
onMousemove($event: MouseEvent): void;
|
|
53
53
|
private setDividerOffset;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent<any>, [null, null, { optional: true; }, null]>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent<any>, "rxap-tree", never, { "dataSource": "dataSource"; "contentEditableMethod": "contentEditableMethod"; "toDisplay": "toDisplay"; "getIcon": "getIcon"; "getStyle": "getStyle"; "multiple": "multiple"; "hasDetails": "hasDetails"; "hideLeafIcon": "hideLeafIcon"; "id": "id"; "dividerOffset": "dividerOffset"; }, { "details": "details"; }, ["content"], ["*"]>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent<any>, "rxap-tree", never, { "dataSource": "dataSource"; "contentEditableMethod": "contentEditableMethod"; "toDisplay": "toDisplay"; "getIcon": "getIcon"; "getStyle": "getStyle"; "multiple": "multiple"; "hasDetails": "hasDetails"; "hideLeafIcon": "hideLeafIcon"; "id": "id"; "dividerOffset": "dividerOffset"; }, { "details": "details"; }, ["content"], ["*"], false>;
|
|
56
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/tree",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.2",
|
|
4
4
|
"author": "Merzough Münker",
|
|
5
5
|
"homepage": "https://gitlab.com/rxap/packages/libs/tree",
|
|
6
6
|
"repository": "git@gitlab.com:rxap/packages.git",
|
|
@@ -18,25 +18,26 @@
|
|
|
18
18
|
},
|
|
19
19
|
"description": "A collection of components, data-sources and remote methods the simplify the usage of tree like components",
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular-devkit/schematics": "^
|
|
22
|
-
"@angular/cdk": "^
|
|
23
|
-
"@angular/common": "^
|
|
24
|
-
"@angular/core": "^
|
|
25
|
-
"@angular/flex-layout": "^
|
|
26
|
-
"@angular/localize": "^
|
|
27
|
-
"@angular/material": "^
|
|
28
|
-
"@angular/platform-browser": "^
|
|
29
|
-
"@angular/platform-browser-dynamic": "^
|
|
30
|
-
"@angular/router": "^
|
|
31
|
-
"@rxap/config": "^
|
|
32
|
-
"@rxap/contenteditable": "^
|
|
33
|
-
"@rxap/data-source": "^
|
|
34
|
-
"@rxap/definition": "^
|
|
35
|
-
"@rxap/material-directives": "^
|
|
36
|
-
"@rxap/services": "^
|
|
37
|
-
"@rxap/utilities": "^
|
|
21
|
+
"@angular-devkit/schematics": "^14.2.3",
|
|
22
|
+
"@angular/cdk": "^14.2.2",
|
|
23
|
+
"@angular/common": "^14.2.2",
|
|
24
|
+
"@angular/core": "^14.2.2",
|
|
25
|
+
"@angular/flex-layout": "^14.0.0-beta.40",
|
|
26
|
+
"@angular/localize": "^14.2.2",
|
|
27
|
+
"@angular/material": "^14.2.2",
|
|
28
|
+
"@angular/platform-browser": "^14.2.2",
|
|
29
|
+
"@angular/platform-browser-dynamic": "^14.2.2",
|
|
30
|
+
"@angular/router": "^14.2.2",
|
|
31
|
+
"@rxap/config": "^14.1.3",
|
|
32
|
+
"@rxap/contenteditable": "^14.0.3",
|
|
33
|
+
"@rxap/data-source": "^14.1.3",
|
|
34
|
+
"@rxap/definition": "^14.0.3",
|
|
35
|
+
"@rxap/material-directives": "^14.0.2",
|
|
36
|
+
"@rxap/services": "^14.0.5",
|
|
37
|
+
"@rxap/utilities": "^14.0.3",
|
|
38
|
+
"joi": "^17.6.3",
|
|
38
39
|
"reflect-metadata": "^0.1.13",
|
|
39
|
-
"rxjs": "^6.
|
|
40
|
+
"rxjs": "^6.6.0",
|
|
40
41
|
"uuid": "^8.3.2"
|
|
41
42
|
},
|
|
42
43
|
"schematics": "./collection.json",
|
|
@@ -62,22 +63,21 @@
|
|
|
62
63
|
"save": "dependencies"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
65
|
-
"@rxap/schematics-utilities": "^
|
|
66
|
-
"tslib": "^2.3.1"
|
|
67
|
-
"@rxap/schematics-ts-morph": "^13.0.0-next.1"
|
|
66
|
+
"@rxap/schematics-utilities": "^14.0.0",
|
|
67
|
+
"tslib": "^2.3.1"
|
|
68
68
|
},
|
|
69
69
|
"module": "fesm2015/rxap-tree.mjs",
|
|
70
70
|
"es2020": "fesm2020/rxap-tree.mjs",
|
|
71
71
|
"esm2020": "esm2020/rxap-tree.mjs",
|
|
72
72
|
"fesm2020": "fesm2020/rxap-tree.mjs",
|
|
73
73
|
"fesm2015": "fesm2015/rxap-tree.mjs",
|
|
74
|
-
"typings": "
|
|
74
|
+
"typings": "index.d.ts",
|
|
75
75
|
"exports": {
|
|
76
76
|
"./package.json": {
|
|
77
77
|
"default": "./package.json"
|
|
78
78
|
},
|
|
79
79
|
".": {
|
|
80
|
-
"types": "./
|
|
80
|
+
"types": "./index.d.ts",
|
|
81
81
|
"esm2020": "./esm2020/rxap-tree.mjs",
|
|
82
82
|
"es2020": "./fesm2020/rxap-tree.mjs",
|
|
83
83
|
"es2015": "./fesm2015/rxap-tree.mjs",
|
|
@@ -86,4 +86,4 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"sideEffects": false
|
|
89
|
-
}
|
|
89
|
+
}
|