@rxap/tree 17.0.1-dev.0 → 18.0.1-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 +16 -0
- package/README.md +1 -1
- package/esm2022/lib/search.form.mjs +3 -3
- package/esm2022/lib/tree-content.directive.mjs +3 -3
- package/esm2022/lib/tree.component.mjs +3 -3
- package/esm2022/lib/tree.data-source.mjs +6 -6
- package/fesm2022/rxap-tree.mjs +15 -15
- package/package.json +38 -38
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.1-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/tree@17.0.1...@rxap/tree@18.0.1-dev.0) (2024-05-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/tree
|
|
9
|
+
|
|
10
|
+
## [17.0.1](https://gitlab.com/rxap/packages/compare/@rxap/tree@17.0.1...@rxap/tree@17.0.1) (2024-05-29)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rxap/tree
|
|
13
|
+
|
|
14
|
+
## [17.0.1-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/tree@17.0.1...@rxap/tree@17.0.1-dev.0) (2024-05-29)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @rxap/tree
|
|
17
|
+
|
|
18
|
+
## [17.0.1](https://gitlab.com/rxap/packages/compare/@rxap/tree@17.0.1-dev.0...@rxap/tree@17.0.1) (2024-05-29)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @rxap/tree
|
|
21
|
+
|
|
6
22
|
## [17.0.1-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/tree@16.0.3...@rxap/tree@17.0.1-dev.0) (2024-05-29)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @rxap/tree
|
package/README.md
CHANGED
|
@@ -18,5 +18,5 @@ yarn add @rxap/tree
|
|
|
18
18
|
```
|
|
19
19
|
**Install peer dependencies:**
|
|
20
20
|
```bash
|
|
21
|
-
yarn add @angular/cdk@^
|
|
21
|
+
yarn add @angular/cdk@^18.0.0 @angular/common@^18.0.1 @angular/core@^18.0.1 @angular/material@^18.0.0 @rxap/contenteditable@^18.0.1-dev.0 @rxap/data-source@^18.0.1-dev.0 @rxap/data-structure-tree@^1.1.4 @rxap/forms@^18.0.1-dev.0 @rxap/material-directives@^18.0.1-dev.0 @rxap/pattern@^1.1.3 @rxap/rxjs@^1.1.4 @rxap/utilities@^16.2.2 rxjs@^7.8.1
|
|
22
22
|
```
|
|
@@ -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: "
|
|
7
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: SearchForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
8
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: TreeContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: TreeContentDirective, isStandalone: true, selector: "ng-template[rxapTreeContent]", ngImport: i0 }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", 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.1", 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: "
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
137
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DefaultTreeApplyFilterMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
137
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DefaultTreeApplyFilterMethod }); }
|
|
138
138
|
}
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
524
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
523
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", 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.1", 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: "
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
35
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: SearchForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
35
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
80
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: TreeContentDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
80
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: TreeContentDirective, isStandalone: true, selector: "ng-template[rxapTreeContent]", ngImport: i0 }); }
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
218
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DefaultTreeApplyFilterMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
218
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: DefaultTreeApplyFilterMethod }); }
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
605
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", 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.1", 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: "
|
|
615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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: "
|
|
740
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
739
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", 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.1", 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: "
|
|
748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", 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,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "18.0.1-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",
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
"tslib": "2.6.2"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/cdk": "^
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/material": "^
|
|
14
|
-
"@rxap/contenteditable": "^
|
|
15
|
-
"@rxap/data-source": "^
|
|
16
|
-
"@rxap/data-structure-tree": "^1.1.
|
|
17
|
-
"@rxap/forms": "^
|
|
18
|
-
"@rxap/material-directives": "^
|
|
19
|
-
"@rxap/pattern": "^1.1.
|
|
20
|
-
"@rxap/rxjs": "^1.1.
|
|
21
|
-
"@rxap/utilities": "^16.2.
|
|
10
|
+
"@angular/cdk": "^18.0.0",
|
|
11
|
+
"@angular/common": "^18.0.1",
|
|
12
|
+
"@angular/core": "^18.0.1",
|
|
13
|
+
"@angular/material": "^18.0.0",
|
|
14
|
+
"@rxap/contenteditable": "^18.0.1-dev.0",
|
|
15
|
+
"@rxap/data-source": "^18.0.1-dev.0",
|
|
16
|
+
"@rxap/data-structure-tree": "^1.1.4",
|
|
17
|
+
"@rxap/forms": "^18.0.1-dev.0",
|
|
18
|
+
"@rxap/material-directives": "^18.0.1-dev.0",
|
|
19
|
+
"@rxap/pattern": "^1.1.3",
|
|
20
|
+
"@rxap/rxjs": "^1.1.4",
|
|
21
|
+
"@rxap/utilities": "^16.2.2",
|
|
22
22
|
"rxjs": "^7.8.1"
|
|
23
23
|
},
|
|
24
24
|
"author": {
|
|
@@ -43,99 +43,99 @@
|
|
|
43
43
|
"packageGroup": [
|
|
44
44
|
{
|
|
45
45
|
"package": "@angular/cdk",
|
|
46
|
-
"version": "
|
|
46
|
+
"version": "18.0.0"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"package": "@angular/common",
|
|
50
|
-
"version": "
|
|
50
|
+
"version": "18.0.1"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"package": "@angular/core",
|
|
54
|
-
"version": "
|
|
54
|
+
"version": "18.0.1"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"package": "@angular/material",
|
|
58
|
-
"version": "
|
|
58
|
+
"version": "18.0.0"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"package": "@rxap/browser-utilities",
|
|
62
|
-
"version": "1.1.
|
|
62
|
+
"version": "1.1.2"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"package": "@rxap/config",
|
|
66
|
-
"version": "
|
|
66
|
+
"version": "18.0.1-dev.0"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"package": "@rxap/contenteditable",
|
|
70
|
-
"version": "
|
|
70
|
+
"version": "18.0.1-dev.0"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"package": "@rxap/data-source",
|
|
74
|
-
"version": "
|
|
74
|
+
"version": "18.0.1-dev.0"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"package": "@rxap/data-structure-tree",
|
|
78
|
-
"version": "1.1.
|
|
78
|
+
"version": "1.1.4"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"package": "@rxap/definition",
|
|
82
|
-
"version": "
|
|
82
|
+
"version": "18.0.1-dev.0"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"package": "@rxap/directives",
|
|
86
|
-
"version": "
|
|
86
|
+
"version": "18.0.1-dev.0"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"package": "@rxap/environment",
|
|
90
|
-
"version": "
|
|
90
|
+
"version": "18.0.1-dev.0"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"package": "@rxap/forms",
|
|
94
|
-
"version": "
|
|
94
|
+
"version": "18.0.1-dev.0"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"package": "@rxap/material-directives",
|
|
98
|
-
"version": "
|
|
98
|
+
"version": "18.0.1-dev.0"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"package": "@rxap/ngx-memory",
|
|
102
|
-
"version": "
|
|
102
|
+
"version": "18.0.1-dev.0"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"package": "@rxap/node-utilities",
|
|
106
|
-
"version": "1.2.
|
|
106
|
+
"version": "1.2.2"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"package": "@rxap/pattern",
|
|
110
|
-
"version": "1.1.
|
|
110
|
+
"version": "1.1.3"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"package": "@rxap/plugin-utilities",
|
|
114
|
-
"version": "
|
|
114
|
+
"version": "19.0.1-dev.0"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"package": "@rxap/reflect-metadata",
|
|
118
|
-
"version": "1.0.
|
|
118
|
+
"version": "1.0.5"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
"package": "@rxap/rxjs",
|
|
122
|
-
"version": "1.1.
|
|
122
|
+
"version": "1.1.4"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"package": "@rxap/services",
|
|
126
|
-
"version": "
|
|
126
|
+
"version": "18.0.1-dev.0"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"package": "@rxap/utilities",
|
|
130
|
-
"version": "16.2.
|
|
130
|
+
"version": "16.2.2"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"package": "@rxap/validator",
|
|
134
|
-
"version": "3.0.
|
|
134
|
+
"version": "3.0.3"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"package": "@rxap/workspace-utilities",
|
|
138
|
-
"version": "
|
|
138
|
+
"version": "19.0.1-dev.0"
|
|
139
139
|
}
|
|
140
140
|
]
|
|
141
141
|
},
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"directory": "packages/angular/tree"
|
|
150
150
|
},
|
|
151
151
|
"sideEffects": false,
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "62f6f876258a5952fa36b7a271b8d6ec1a4b4e13",
|
|
153
153
|
"module": "fesm2022/rxap-tree.mjs",
|
|
154
154
|
"typings": "index.d.ts",
|
|
155
155
|
"exports": {
|