@rxap/tree 18.0.4-dev.0 → 18.0.5-dev.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [18.0.5-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/tree@18.0.4...@rxap/tree@18.0.5-dev.0) (2024-07-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/tree
|
|
9
|
+
|
|
10
|
+
## [18.0.4](https://gitlab.com/rxap/packages/compare/@rxap/tree@18.0.4-dev.0...@rxap/tree@18.0.4) (2024-06-30)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rxap/tree
|
|
13
|
+
|
|
6
14
|
## [18.0.4-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/tree@18.0.3...@rxap/tree@18.0.4-dev.0) (2024-06-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @rxap/tree
|
|
@@ -3,8 +3,8 @@ import { Injectable, INJECTOR, Optional, SkipSelf, } from '@angular/core';
|
|
|
3
3
|
import { RXAP_FORM_DEFINITION, RXAP_FORM_INITIAL_STATE, RxapForm, RxapFormBuilder, RxapFormControl, UseFormControl, } from '@rxap/forms';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
let SearchForm = class SearchForm {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
7
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchForm }); }
|
|
8
8
|
};
|
|
9
9
|
__decorate([
|
|
10
10
|
UseFormControl(),
|
|
@@ -21,7 +21,7 @@ SearchForm = __decorate([
|
|
|
21
21
|
})
|
|
22
22
|
], SearchForm);
|
|
23
23
|
export { SearchForm };
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchForm, decorators: [{
|
|
25
25
|
type: Injectable
|
|
26
26
|
}], propDecorators: { search: [], scope: [] } });
|
|
27
27
|
export function FormFactory(injector, state, existingFormDefinition) {
|
|
@@ -4,10 +4,10 @@ export class TreeContentDirective {
|
|
|
4
4
|
constructor(template) {
|
|
5
5
|
this.template = template;
|
|
6
6
|
}
|
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
8
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.6", type: TreeContentDirective, isStandalone: true, selector: "ng-template[rxapTreeContent]", ngImport: i0 }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeContentDirective, decorators: [{
|
|
11
11
|
type: Directive,
|
|
12
12
|
args: [{
|
|
13
13
|
selector: 'ng-template[rxapTreeContent]',
|
|
@@ -131,8 +131,8 @@ export class TreeComponent {
|
|
|
131
131
|
this.renderer.setStyle(this.treeContainer.nativeElement, 'flex-basis', offset);
|
|
132
132
|
localStorage.setItem(this.cacheId, offset);
|
|
133
133
|
}
|
|
134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeComponent, deps: [{ token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: RXAP_TREE_CONTENT_EDITABLE_METHOD, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RXAP_FORM_DEFINITION, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.6", type: TreeComponent, isStandalone: true, selector: "rxap-tree", inputs: { dataSource: "dataSource", contentEditableMethod: "contentEditableMethod", toDisplay: "toDisplay", getIcon: "getIcon", getType: "getType", 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=\"grow flex flex-col gap-2 justify-start items-start\">\n <button (click)=\"toggleTreeNavigation()\" class=\"!justify-start\" mat-button type=\"button\">\n <span class=\"flex flex-row justify-start items-center gap-6\">\n <ng-template [ngIf]=\"showTreeNavigation()\">\n <mat-icon>arrow_back</mat-icon>\n <span i18n>Hide tree navigation</span>\n </ng-template>\n <ng-template [ngIf]=\"!showTreeNavigation()\">\n <mat-icon>arrow_forward</mat-icon>\n <span i18n>Show tree navigation</span>\n </ng-template>\n </span>\n </button>\n <div class=\"flex flex-row grow w-full\">\n <div #treeContainer [ngClass]=\"{ 'hidden': !showTreeNavigation() }\"\n [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\"\n class=\"w-fit grow-0 overflow-y-auto\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <ng-content select=\"[searchHeader]\"></ng-content>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div class=\"flex flex-row justify-start items-center gap-2\">\n <mat-icon [ngClass]=\"{ 'hidden': hideLeafIcon }\">subdirectory_arrow_right</mat-icon>\n <ng-container *ngIf=\"node.icon?.length\">\n <mat-icon *ngFor=\"let icon of node.icon\" [rxapIcon]=\"$any(icon)\"></mat-icon>\n </ng-container>\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 class=\"grow-0 truncate\">\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' : undefined\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n class=\"grow-0 truncate\"\n mat-button\n type=\"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 type=\"button\">\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div class=\"flex flex-row justify-start items-center gap-2\">\n <ng-container *ngIf=\"node.icon?.length else withoutIcon\">\n <mat-icon *ngFor=\"let icon of node.icon\" [rxapIcon]=\"$any(icon)\"></mat-icon>\n </ng-container>\n <ng-template #withoutIcon>\n <div></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : undefined\"\n [ngStyle]=\"node.style\"\n class=\"grow-0 truncate\"\n mat-button\n type=\"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 [ngStyle]=\"node.style\"\n class=\"grow-0 truncate\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n class=\"grow-0 pl-4\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\" *ngIf=\"showTreeNavigation()\"\n class=\"divider cursor-ew-resize px-3 grow-0\">\n <mat-divider [vertical]=\"true\" class=\"h-full\"></mat-divider>\n </div>\n\n <div class=\"grow\">\n <ng-container *ngIf=\"portal\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </ng-container>\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTreeModule }, { 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: ["disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i8.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
136
136
|
}
|
|
137
137
|
__decorate([
|
|
138
138
|
DebounceCall(100),
|
|
@@ -140,7 +140,7 @@ __decorate([
|
|
|
140
140
|
__metadata("design:paramtypes", [Node]),
|
|
141
141
|
__metadata("design:returntype", void 0)
|
|
142
142
|
], TreeComponent.prototype, "openDetails", null);
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeComponent, decorators: [{
|
|
144
144
|
type: Component,
|
|
145
145
|
args: [{ selector: 'rxap-tree', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
146
146
|
NgStyle,
|
|
@@ -133,10 +133,10 @@ export class DefaultTreeApplyFilterMethod {
|
|
|
133
133
|
}
|
|
134
134
|
return false;
|
|
135
135
|
}
|
|
136
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
137
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.
|
|
136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DefaultTreeApplyFilterMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
137
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DefaultTreeApplyFilterMethod }); }
|
|
138
138
|
}
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DefaultTreeApplyFilterMethod, decorators: [{
|
|
140
140
|
type: Injectable
|
|
141
141
|
}] });
|
|
142
142
|
let TreeDataSource = class TreeDataSource extends BaseDataSource {
|
|
@@ -520,8 +520,8 @@ let TreeDataSource = class TreeDataSource extends BaseDataSource {
|
|
|
520
520
|
.subscribe();
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
524
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.
|
|
523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeDataSource, deps: [{ token: RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD }, { token: RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD, optional: true }, { token: RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD, optional: true }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
524
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeDataSource }); }
|
|
525
525
|
};
|
|
526
526
|
__decorate([
|
|
527
527
|
Required,
|
|
@@ -532,7 +532,7 @@ TreeDataSource = __decorate([
|
|
|
532
532
|
__metadata("design:paramtypes", [Object, Object, Object, Object])
|
|
533
533
|
], TreeDataSource);
|
|
534
534
|
export { TreeDataSource };
|
|
535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeDataSource, decorators: [{
|
|
536
536
|
type: Injectable
|
|
537
537
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
538
538
|
type: Inject,
|
package/fesm2022/rxap-tree.mjs
CHANGED
|
@@ -31,8 +31,8 @@ import { ToggleSubject } from '@rxap/rxjs';
|
|
|
31
31
|
import { BehaviorSubject, Subject, combineLatest, debounceTime, from, merge } from 'rxjs';
|
|
32
32
|
|
|
33
33
|
let SearchForm = class SearchForm {
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
35
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
35
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchForm }); }
|
|
36
36
|
};
|
|
37
37
|
__decorate([
|
|
38
38
|
UseFormControl(),
|
|
@@ -48,7 +48,7 @@ SearchForm = __decorate([
|
|
|
48
48
|
autoSubmit: 500,
|
|
49
49
|
})
|
|
50
50
|
], SearchForm);
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: SearchForm, decorators: [{
|
|
52
52
|
type: Injectable
|
|
53
53
|
}], propDecorators: { search: [], scope: [] } });
|
|
54
54
|
function FormFactory(injector, state, existingFormDefinition) {
|
|
@@ -76,10 +76,10 @@ class TreeContentDirective {
|
|
|
76
76
|
constructor(template) {
|
|
77
77
|
this.template = template;
|
|
78
78
|
}
|
|
79
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
80
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
80
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.6", type: TreeContentDirective, isStandalone: true, selector: "ng-template[rxapTreeContent]", ngImport: i0 }); }
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeContentDirective, decorators: [{
|
|
83
83
|
type: Directive,
|
|
84
84
|
args: [{
|
|
85
85
|
selector: 'ng-template[rxapTreeContent]',
|
|
@@ -214,10 +214,10 @@ class DefaultTreeApplyFilterMethod {
|
|
|
214
214
|
}
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
218
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.
|
|
217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DefaultTreeApplyFilterMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
218
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DefaultTreeApplyFilterMethod }); }
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: DefaultTreeApplyFilterMethod, decorators: [{
|
|
221
221
|
type: Injectable
|
|
222
222
|
}] });
|
|
223
223
|
let TreeDataSource = class TreeDataSource extends BaseDataSource {
|
|
@@ -601,8 +601,8 @@ let TreeDataSource = class TreeDataSource extends BaseDataSource {
|
|
|
601
601
|
.subscribe();
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
605
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.
|
|
604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeDataSource, deps: [{ token: RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD }, { token: RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD, optional: true }, { token: RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD, optional: true }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
605
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeDataSource }); }
|
|
606
606
|
};
|
|
607
607
|
__decorate([
|
|
608
608
|
Required,
|
|
@@ -612,7 +612,7 @@ TreeDataSource = __decorate([
|
|
|
612
612
|
RxapDataSource('tree'),
|
|
613
613
|
__metadata("design:paramtypes", [Object, Object, Object, Object])
|
|
614
614
|
], TreeDataSource);
|
|
615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeDataSource, decorators: [{
|
|
616
616
|
type: Injectable
|
|
617
617
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
618
618
|
type: Inject,
|
|
@@ -736,8 +736,8 @@ class TreeComponent {
|
|
|
736
736
|
this.renderer.setStyle(this.treeContainer.nativeElement, 'flex-basis', offset);
|
|
737
737
|
localStorage.setItem(this.cacheId, offset);
|
|
738
738
|
}
|
|
739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.
|
|
740
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.
|
|
739
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeComponent, deps: [{ token: ViewContainerRef }, { token: ChangeDetectorRef }, { token: RXAP_TREE_CONTENT_EDITABLE_METHOD, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RXAP_FORM_DEFINITION, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
740
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.6", type: TreeComponent, isStandalone: true, selector: "rxap-tree", inputs: { dataSource: "dataSource", contentEditableMethod: "contentEditableMethod", toDisplay: "toDisplay", getIcon: "getIcon", getType: "getType", 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=\"grow flex flex-col gap-2 justify-start items-start\">\n <button (click)=\"toggleTreeNavigation()\" class=\"!justify-start\" mat-button type=\"button\">\n <span class=\"flex flex-row justify-start items-center gap-6\">\n <ng-template [ngIf]=\"showTreeNavigation()\">\n <mat-icon>arrow_back</mat-icon>\n <span i18n>Hide tree navigation</span>\n </ng-template>\n <ng-template [ngIf]=\"!showTreeNavigation()\">\n <mat-icon>arrow_forward</mat-icon>\n <span i18n>Show tree navigation</span>\n </ng-template>\n </span>\n </button>\n <div class=\"flex flex-row grow w-full\">\n <div #treeContainer [ngClass]=\"{ 'hidden': !showTreeNavigation() }\"\n [ngStyle]=\"{ maxWidth: dividerOffset, minWidth: dividerOffset, flexBasis: dividerOffset }\"\n class=\"w-fit grow-0 overflow-y-auto\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <ng-content select=\"[searchHeader]\"></ng-content>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div class=\"flex flex-row justify-start items-center gap-2\">\n <mat-icon [ngClass]=\"{ 'hidden': hideLeafIcon }\">subdirectory_arrow_right</mat-icon>\n <ng-container *ngIf=\"node.icon?.length\">\n <mat-icon *ngFor=\"let icon of node.icon\" [rxapIcon]=\"$any(icon)\"></mat-icon>\n </ng-container>\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 class=\"grow-0 truncate\">\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' : undefined\"\n [disabled]=\"!node.hasDetails\"\n [ngStyle]=\"node.style\"\n class=\"grow-0 truncate\"\n mat-button\n type=\"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 type=\"button\">\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div class=\"flex flex-row justify-start items-center gap-2\">\n <ng-container *ngIf=\"node.icon?.length else withoutIcon\">\n <mat-icon *ngFor=\"let icon of node.icon\" [rxapIcon]=\"$any(icon)\"></mat-icon>\n </ng-container>\n <ng-template #withoutIcon>\n <div></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : undefined\"\n [ngStyle]=\"node.style\"\n class=\"grow-0 truncate\"\n mat-button\n type=\"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 [ngStyle]=\"node.style\"\n class=\"grow-0 truncate\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n class=\"grow-0 pl-4\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\" *ngIf=\"showTreeNavigation()\"\n class=\"divider cursor-ew-resize px-3 grow-0\">\n <mat-divider [vertical]=\"true\" class=\"h-full\"></mat-divider>\n </div>\n\n <div class=\"grow\">\n <ng-container *ngIf=\"portal\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </ng-container>\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTreeModule }, { 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: ["disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i8.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
741
741
|
}
|
|
742
742
|
__decorate([
|
|
743
743
|
DebounceCall(100),
|
|
@@ -745,7 +745,7 @@ __decorate([
|
|
|
745
745
|
__metadata("design:paramtypes", [Node]),
|
|
746
746
|
__metadata("design:returntype", void 0)
|
|
747
747
|
], TreeComponent.prototype, "openDetails", null);
|
|
748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.
|
|
748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: TreeComponent, decorators: [{
|
|
749
749
|
type: Component,
|
|
750
750
|
args: [{ selector: 'rxap-tree', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
751
751
|
NgStyle,
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "18.0.
|
|
2
|
+
"version": "18.0.5-dev.0",
|
|
3
3
|
"name": "@rxap/tree",
|
|
4
4
|
"description": "A collection of components, data-sources and remote methods the simplify the usage of tree like components",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@nx/devkit": "19.
|
|
7
|
+
"@nx/devkit": "19.4.2",
|
|
8
8
|
"tslib": "2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/cdk": "^18.0.
|
|
12
|
-
"@angular/common": "^18.0.
|
|
13
|
-
"@angular/core": "^18.0.
|
|
14
|
-
"@angular/material": "^18.0.
|
|
15
|
-
"@rxap/contenteditable": "^18.0.
|
|
16
|
-
"@rxap/data-source": "^18.1.
|
|
17
|
-
"@rxap/data-structure-tree": "^1.1.
|
|
18
|
-
"@rxap/forms": "^18.0.
|
|
19
|
-
"@rxap/material-directives": "^18.0.
|
|
20
|
-
"@rxap/pattern": "^1.1.
|
|
21
|
-
"@rxap/rxjs": "^1.1.
|
|
22
|
-
"@rxap/utilities": "^16.
|
|
11
|
+
"@angular/cdk": "^18.0.6",
|
|
12
|
+
"@angular/common": "^18.0.6",
|
|
13
|
+
"@angular/core": "^18.0.6",
|
|
14
|
+
"@angular/material": "^18.0.6",
|
|
15
|
+
"@rxap/contenteditable": "^18.0.4",
|
|
16
|
+
"@rxap/data-source": "^18.1.2",
|
|
17
|
+
"@rxap/data-structure-tree": "^1.1.8-dev.1",
|
|
18
|
+
"@rxap/forms": "^18.0.5-dev.0",
|
|
19
|
+
"@rxap/material-directives": "^18.1.0-dev.0",
|
|
20
|
+
"@rxap/pattern": "^1.1.7-dev.0",
|
|
21
|
+
"@rxap/rxjs": "^1.1.8-dev.1",
|
|
22
|
+
"@rxap/utilities": "^16.3.0-dev.1",
|
|
23
23
|
"rxjs": "^7.8.1"
|
|
24
24
|
},
|
|
25
25
|
"author": {
|
|
@@ -45,99 +45,99 @@
|
|
|
45
45
|
"packageGroup": [
|
|
46
46
|
{
|
|
47
47
|
"package": "@angular/animations",
|
|
48
|
-
"version": "18.0.
|
|
48
|
+
"version": "18.0.6"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"package": "@angular/cdk",
|
|
52
|
-
"version": "18.0.
|
|
52
|
+
"version": "18.0.6"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"package": "@angular/common",
|
|
56
|
-
"version": "18.0.
|
|
56
|
+
"version": "18.0.6"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"package": "@angular/core",
|
|
60
|
-
"version": "18.0.
|
|
60
|
+
"version": "18.0.6"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"package": "@angular/forms",
|
|
64
|
-
"version": "18.0.
|
|
64
|
+
"version": "18.0.6"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"package": "@angular/material",
|
|
68
|
-
"version": "18.0.
|
|
68
|
+
"version": "18.0.6"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"package": "@angular/platform-browser",
|
|
72
|
-
"version": "18.0.
|
|
72
|
+
"version": "18.0.6"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"package": "@angular/router",
|
|
76
|
-
"version": "18.0.
|
|
76
|
+
"version": "18.0.6"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"package": "@rxap/browser-utilities",
|
|
80
|
-
"version": "1.1.
|
|
80
|
+
"version": "1.1.5"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"package": "@rxap/contenteditable",
|
|
84
|
-
"version": "18.0.
|
|
84
|
+
"version": "18.0.4"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"package": "@rxap/data-source",
|
|
88
|
-
"version": "18.1.
|
|
88
|
+
"version": "18.1.2"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"package": "@rxap/data-structure-tree",
|
|
92
|
-
"version": "1.1.
|
|
92
|
+
"version": "1.1.8-dev.1"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"package": "@rxap/definition",
|
|
96
|
-
"version": "18.0.
|
|
96
|
+
"version": "18.0.4"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"package": "@rxap/directives",
|
|
100
|
-
"version": "18.0.
|
|
100
|
+
"version": "18.0.4"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"package": "@rxap/environment",
|
|
104
|
-
"version": "18.0.
|
|
104
|
+
"version": "18.0.4"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"package": "@rxap/forms",
|
|
108
|
-
"version": "18.0.
|
|
108
|
+
"version": "18.0.5-dev.0"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"package": "@rxap/material-directives",
|
|
112
|
-
"version": "18.0.
|
|
112
|
+
"version": "18.1.0-dev.0"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"package": "@rxap/ngx-memory",
|
|
116
|
-
"version": "18.0.
|
|
116
|
+
"version": "18.0.4"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"package": "@rxap/pattern",
|
|
120
|
-
"version": "1.1.
|
|
120
|
+
"version": "1.1.7-dev.0"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"package": "@rxap/reflect-metadata",
|
|
124
|
-
"version": "1.0.
|
|
124
|
+
"version": "1.0.9-dev.1"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"package": "@rxap/rxjs",
|
|
128
|
-
"version": "1.1.
|
|
128
|
+
"version": "1.1.8-dev.1"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"package": "@rxap/services",
|
|
132
|
-
"version": "18.0.
|
|
132
|
+
"version": "18.0.4"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"package": "@rxap/utilities",
|
|
136
|
-
"version": "16.
|
|
136
|
+
"version": "16.3.0-dev.1"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"package": "@rxap/validator",
|
|
140
|
-
"version": "3.0.
|
|
140
|
+
"version": "3.0.6"
|
|
141
141
|
}
|
|
142
142
|
]
|
|
143
143
|
},
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"directory": "packages/angular/tree"
|
|
152
152
|
},
|
|
153
153
|
"sideEffects": false,
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "31fdf513912a70c112035d9c825cf5b072924d81",
|
|
155
155
|
"module": "fesm2022/rxap-tree.mjs",
|
|
156
156
|
"typings": "index.d.ts",
|
|
157
157
|
"exports": {
|