@limble/limble-tree 6.1.0 → 7.0.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/README.md +21 -21
- package/fesm2022/limble-limble-tree.mjs +43 -43
- package/fesm2022/limble-limble-tree.mjs.map +1 -1
- package/index.d.ts +823 -3
- package/package.json +3 -3
- package/lib/components/branch/branch.component.d.ts +0 -26
- package/lib/components/branch/index.d.ts +0 -1
- package/lib/components/dragover-no-change-detect.d.ts +0 -18
- package/lib/components/dropzone/dropzone.component.d.ts +0 -13
- package/lib/components/dropzone/index.d.ts +0 -1
- package/lib/components/host-component.interface.d.ts +0 -6
- package/lib/components/index.d.ts +0 -6
- package/lib/components/node-component.interface.d.ts +0 -5
- package/lib/components/root/index.d.ts +0 -1
- package/lib/components/root/root.component.d.ts +0 -14
- package/lib/core/branch-options.interface.d.ts +0 -14
- package/lib/core/branchable.interface.d.ts +0 -8
- package/lib/core/component-container.interface.d.ts +0 -8
- package/lib/core/configuration/configuration.d.ts +0 -11
- package/lib/core/configuration/index.d.ts +0 -2
- package/lib/core/configuration/tree-options.interface.d.ts +0 -54
- package/lib/core/index.d.ts +0 -10
- package/lib/core/tree-branch/branch-controller.d.ts +0 -25
- package/lib/core/tree-branch/graftable.interface.d.ts +0 -7
- package/lib/core/tree-branch/index.d.ts +0 -3
- package/lib/core/tree-branch/tree-branch.d.ts +0 -223
- package/lib/core/tree-node-base.d.ts +0 -26
- package/lib/core/tree-node.interface.d.ts +0 -16
- package/lib/core/tree-plot.interface.d.ts +0 -1
- package/lib/core/tree-root/index.d.ts +0 -2
- package/lib/core/tree-root/root-controller.d.ts +0 -19
- package/lib/core/tree-root/tree-root.d.ts +0 -125
- package/lib/core/tree-service/index.d.ts +0 -1
- package/lib/core/tree-service/tree.service.d.ts +0 -15
- package/lib/errors/index.d.ts +0 -1
- package/lib/errors/tree-error.d.ts +0 -2
- package/lib/events/drag/drag-end-event.d.ts +0 -25
- package/lib/events/drag/drag-start-event.d.ts +0 -8
- package/lib/events/drag/drop-event.d.ts +0 -12
- package/lib/events/drag/index.d.ts +0 -3
- package/lib/events/general/destruction-event.d.ts +0 -8
- package/lib/events/general/index.d.ts +0 -1
- package/lib/events/index.d.ts +0 -4
- package/lib/events/relational/graft-event.d.ts +0 -15
- package/lib/events/relational/index.d.ts +0 -4
- package/lib/events/relational/prune-event.d.ts +0 -15
- package/lib/events/relational/relational-tree-event.interface.d.ts +0 -11
- package/lib/events/relational/tree-relationship.interface.d.ts +0 -6
- package/lib/events/tree-event.interface.d.ts +0 -5
- package/lib/extras/collapse/collapse.d.ts +0 -11
- package/lib/extras/collapse/collapse.module.d.ts +0 -7
- package/lib/extras/collapse/collapse.service.d.ts +0 -34
- package/lib/extras/collapse/index.d.ts +0 -3
- package/lib/extras/drag-and-drop/drag-and-drop.d.ts +0 -14
- package/lib/extras/drag-and-drop/drag-and-drop.module.d.ts +0 -11
- package/lib/extras/drag-and-drop/drag-and-drop.service.d.ts +0 -35
- package/lib/extras/drag-and-drop/drag-state.d.ts +0 -23
- package/lib/extras/drag-and-drop/draggable.directive.d.ts +0 -11
- package/lib/extras/drag-and-drop/dropzone-renderer.d.ts +0 -27
- package/lib/extras/drag-and-drop/index.d.ts +0 -6
- package/lib/legacy/index.d.ts +0 -6
- package/lib/legacy/legacy-component-obj.interface.d.ts +0 -13
- package/lib/legacy/legacy-tree-data.interface.d.ts +0 -18
- package/lib/legacy/legacy-tree-options.interface.d.ts +0 -34
- package/lib/legacy/legacy-tree.d.ts +0 -14
- package/lib/legacy/limble-tree-legacy.module.d.ts +0 -8
- package/lib/legacy/limble-tree-root/limble-tree-root.component.d.ts +0 -28
- package/lib/limble-tree.module.d.ts +0 -13
- package/public-api.d.ts +0 -8
- package/shared/assert.d.ts +0 -1
- package/shared/has-property.d.ts +0 -3
- package/shared/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -4,12 +4,12 @@ An Angular library for building visual tree structures. Built and used by the te
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
7
|
+
- Allows any number of different components to be rendered in the same tree.
|
|
8
|
+
- Collapsible tree branches
|
|
9
|
+
- Move branches around both programmatically and with built-in drag-and-drop.
|
|
10
|
+
- Branches can be moved between trees.
|
|
11
|
+
- No limit on tree depth or size.
|
|
12
|
+
- Recently redesigned to allow better performance with large/complex trees.
|
|
13
13
|
|
|
14
14
|
## Compatibility Table
|
|
15
15
|
|
|
@@ -392,12 +392,12 @@ Events bubble up the tree. So subscribing to the root's `events()` observable wi
|
|
|
392
392
|
|
|
393
393
|
Below is a list of event types that are currently emitted by the tree.
|
|
394
394
|
|
|
395
|
-
-
|
|
396
|
-
-
|
|
397
|
-
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
395
|
+
- drag start
|
|
396
|
+
- drop
|
|
397
|
+
- drag end
|
|
398
|
+
- prune
|
|
399
|
+
- graft
|
|
400
|
+
- destruction
|
|
401
401
|
|
|
402
402
|
Each event contains applicable information about the event, such as the nodes involved, position in the tree, etc.
|
|
403
403
|
|
|
@@ -441,8 +441,8 @@ public ngAfterViewInit(): void {
|
|
|
441
441
|
|
|
442
442
|
There are a couple other methods used to traverse the tree.
|
|
443
443
|
|
|
444
|
-
-
|
|
445
|
-
-
|
|
444
|
+
- `traverse()` traverses the tree in [depth-first pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR) and executes a provided callback on each node.
|
|
445
|
+
- `plot()` traverses the tree and returns a many-dimensional [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)representing the shape of the tree.
|
|
446
446
|
|
|
447
447
|
### Get Branch's Current Location in the Tree
|
|
448
448
|
|
|
@@ -468,13 +468,13 @@ Destroyed roots and branches have very limited functionality. Many methods will
|
|
|
468
468
|
|
|
469
469
|
There are methods on TreeBranch and TreeRoot instances which grant access to underlying structures. We recommend only using these in advanced scenarios. They are not fully documented here at this time.
|
|
470
470
|
|
|
471
|
-
-
|
|
472
|
-
-
|
|
473
|
-
-
|
|
474
|
-
-
|
|
475
|
-
-
|
|
476
|
-
-
|
|
477
|
-
-
|
|
471
|
+
- detectChanges()
|
|
472
|
+
- dispatch()
|
|
473
|
+
- getBranchesContainer()
|
|
474
|
+
- getComponentInstance()
|
|
475
|
+
- getHostView()
|
|
476
|
+
- getNativeElement()
|
|
477
|
+
- getUserlandComponentRef()
|
|
478
478
|
|
|
479
479
|
## Development and Contributions
|
|
480
480
|
|
|
@@ -72,20 +72,20 @@ class TreeCollapseService {
|
|
|
72
72
|
isCollapsed(treeBranch) {
|
|
73
73
|
return treeCollapser.isCollapsed(treeBranch);
|
|
74
74
|
}
|
|
75
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
76
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
76
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseService }); }
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseService, decorators: [{
|
|
79
79
|
type: Injectable
|
|
80
80
|
}] });
|
|
81
81
|
|
|
82
82
|
/** A module containing the entities which provide collapse functionality */
|
|
83
83
|
class TreeCollapseModule {
|
|
84
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
86
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
84
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
85
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseModule }); }
|
|
86
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseModule, providers: [TreeCollapseService] }); }
|
|
87
87
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeCollapseModule, decorators: [{
|
|
89
89
|
type: NgModule,
|
|
90
90
|
args: [{
|
|
91
91
|
providers: [TreeCollapseService]
|
|
@@ -171,10 +171,10 @@ class DragoverNoChangeDetectDirective {
|
|
|
171
171
|
this.eventSubscription.unsubscribe();
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
175
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DragoverNoChangeDetectDirective, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
175
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.21", type: DragoverNoChangeDetectDirective, isStandalone: true, selector: "[dragoverNoChangeDetect]", outputs: { dragoverNoChangeDetect: "dragoverNoChangeDetect" }, ngImport: i0 }); }
|
|
176
176
|
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DragoverNoChangeDetectDirective, decorators: [{
|
|
178
178
|
type: Directive,
|
|
179
179
|
args: [{
|
|
180
180
|
standalone: true,
|
|
@@ -202,10 +202,10 @@ class DropzoneComponent {
|
|
|
202
202
|
dropHandler(event) {
|
|
203
203
|
this.dropped.emit(event);
|
|
204
204
|
}
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: DropzoneComponent, isStandalone: true, selector: "dropzone", inputs: { placement: "placement" }, outputs: { dropped: "dropped" }, ngImport: i0, template: "<div\n class=\"dropzone\"\n [ngClass]=\"{ active: active }\"\n (dragenter)=\"dragenterHandler()\"\n (dragleave)=\"dragleaveHandler()\"\n (dragoverNoChangeDetect)=\"dragoverHandler($event)\"\n (drop)=\"dropHandler($event)\"\n></div>\n", styles: [".dropzone{border-radius:8px;border:1px dashed #727374;background-color:#ededed;height:36px;margin:8px 0;transition:height .3s ease-out;animation:animation .3s ease-out}.dropzone.active{border-color:#289e49;border-width:2px;background-color:#d0e8d6;height:72px}@keyframes animation{0%{height:0px;opacity:0}to{height:36px;opacity:1}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: DragoverNoChangeDetectDirective, selector: "[dragoverNoChangeDetect]", outputs: ["dragoverNoChangeDetect"] }] }); }
|
|
207
207
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DropzoneComponent, decorators: [{
|
|
209
209
|
type: Component,
|
|
210
210
|
args: [{ selector: "dropzone", imports: [CommonModule, DragoverNoChangeDetectDirective], template: "<div\n class=\"dropzone\"\n [ngClass]=\"{ active: active }\"\n (dragenter)=\"dragenterHandler()\"\n (dragleave)=\"dragleaveHandler()\"\n (dragoverNoChangeDetect)=\"dragoverHandler($event)\"\n (drop)=\"dropHandler($event)\"\n></div>\n", styles: [".dropzone{border-radius:8px;border:1px dashed #727374;background-color:#ededed;height:36px;margin:8px 0;transition:height .3s ease-out;animation:animation .3s ease-out}.dropzone.active{border-color:#289e49;border-width:2px;background-color:#d0e8d6;height:72px}@keyframes animation{0%{height:0px;opacity:0}to{height:36px;opacity:1}}\n"] }]
|
|
211
211
|
}], propDecorators: { placement: [{
|
|
@@ -261,10 +261,10 @@ class BranchComponent {
|
|
|
261
261
|
* collection. */
|
|
262
262
|
this.hostedContent = undefined;
|
|
263
263
|
}
|
|
264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
265
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BranchComponent, deps: [{ token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: BranchComponent, isStandalone: true, selector: "branch", inputs: { contentToHost: "contentToHost" }, outputs: { contentCreated: "contentCreated", showDropzones: "showDropzones", dropped: "dropped" }, viewQueries: [{ propertyName: "branchesContainer", first: true, predicate: ["branchesContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "dropzones", predicate: DropzoneComponent, descendants: true }], ngImport: i0, template: "<div class=\"content\" (dragoverNoChangeDetect)=\"dragoverHandler($event)\">\n <div #contentContainer></div>\n</div>\n<div class=\"branches-container\">\n <dropzone placement=\"inner\" [hidden]=\"!showInnerDropzone\" />\n <div #branchesContainer></div>\n</div>\n<dropzone placement=\"lateral\" [hidden]=\"!showLateralDropzone\" />\n", styles: [".branches-container{margin-left:16px}\n"], dependencies: [{ kind: "component", type: DropzoneComponent, selector: "dropzone", inputs: ["placement"], outputs: ["dropped"] }, { kind: "directive", type: DragoverNoChangeDetectDirective, selector: "[dragoverNoChangeDetect]", outputs: ["dragoverNoChangeDetect"] }] }); }
|
|
266
266
|
}
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BranchComponent, decorators: [{
|
|
268
268
|
type: Component,
|
|
269
269
|
args: [{ selector: "branch", imports: [DropzoneComponent, DragoverNoChangeDetectDirective], template: "<div class=\"content\" (dragoverNoChangeDetect)=\"dragoverHandler($event)\">\n <div #contentContainer></div>\n</div>\n<div class=\"branches-container\">\n <dropzone placement=\"inner\" [hidden]=\"!showInnerDropzone\" />\n <div #branchesContainer></div>\n</div>\n<dropzone placement=\"lateral\" [hidden]=\"!showLateralDropzone\" />\n", styles: [".branches-container{margin-left:16px}\n"] }]
|
|
270
270
|
}], ctorParameters: () => [{ type: i0.ApplicationRef }], propDecorators: { branchesContainer: [{
|
|
@@ -299,10 +299,10 @@ class RootComponent {
|
|
|
299
299
|
assert(this.dropzone !== undefined);
|
|
300
300
|
this.dropzone.dropped.subscribe(this.dropped);
|
|
301
301
|
}
|
|
302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
303
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
302
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
303
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: RootComponent, isStandalone: true, selector: "root", outputs: { afterViewInit: "afterViewInit", dropped: "dropped" }, viewQueries: [{ propertyName: "branchesContainer", first: true, predicate: ["branchesContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "dropzone", first: true, predicate: DropzoneComponent, descendants: true }], ngImport: i0, template: "<div class=\"branches-container\">\n <dropzone placement=\"inner\" [hidden]=\"!showInnerDropzone\" />\n <div #branchesContainer></div>\n</div>\n", styles: [".branches-container{min-width:64px}\n"], dependencies: [{ kind: "component", type: DropzoneComponent, selector: "dropzone", inputs: ["placement"], outputs: ["dropped"] }] }); }
|
|
304
304
|
}
|
|
305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: RootComponent, decorators: [{
|
|
306
306
|
type: Component,
|
|
307
307
|
args: [{ selector: "root", imports: [DropzoneComponent], template: "<div class=\"branches-container\">\n <dropzone placement=\"inner\" [hidden]=\"!showInnerDropzone\" />\n <div #branchesContainer></div>\n</div>\n", styles: [".branches-container{min-width:64px}\n"] }]
|
|
308
308
|
}], propDecorators: { branchesContainer: [{
|
|
@@ -1274,10 +1274,10 @@ class TreeService {
|
|
|
1274
1274
|
config.setConfig(root, options);
|
|
1275
1275
|
return root;
|
|
1276
1276
|
}
|
|
1277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1278
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1278
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeService, providedIn: "root" }); }
|
|
1279
1279
|
}
|
|
1280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeService, decorators: [{
|
|
1281
1281
|
type: Injectable,
|
|
1282
1282
|
args: [{ providedIn: "root" }]
|
|
1283
1283
|
}] });
|
|
@@ -1561,10 +1561,10 @@ class TreeDragAndDropService {
|
|
|
1561
1561
|
state() {
|
|
1562
1562
|
return dragState.events();
|
|
1563
1563
|
}
|
|
1564
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1565
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1564
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1565
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropService }); }
|
|
1566
1566
|
}
|
|
1567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropService, decorators: [{
|
|
1568
1568
|
type: Injectable
|
|
1569
1569
|
}] });
|
|
1570
1570
|
|
|
@@ -1579,10 +1579,10 @@ class DraggableDirective {
|
|
|
1579
1579
|
return;
|
|
1580
1580
|
dragAndDrop.dragStart(this.limbleTreeDraggable, event);
|
|
1581
1581
|
}
|
|
1582
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1583
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1582
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1583
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.21", type: DraggableDirective, isStandalone: true, selector: "[limbleTreeDraggable]", inputs: { limbleTreeDraggable: "limbleTreeDraggable" }, host: { listeners: { "dragstart": "onDragstart($event)" } }, ngImport: i0 }); }
|
|
1584
1584
|
}
|
|
1585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
1586
1586
|
type: Directive,
|
|
1587
1587
|
args: [{
|
|
1588
1588
|
selector: "[limbleTreeDraggable]",
|
|
@@ -1600,11 +1600,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1600
1600
|
* functionality.
|
|
1601
1601
|
*/
|
|
1602
1602
|
class TreeDragAndDropModule {
|
|
1603
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1604
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1605
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1604
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropModule, imports: [DraggableDirective], exports: [DraggableDirective] }); }
|
|
1605
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropModule, providers: [TreeDragAndDropService] }); }
|
|
1606
1606
|
}
|
|
1607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: TreeDragAndDropModule, decorators: [{
|
|
1608
1608
|
type: NgModule,
|
|
1609
1609
|
args: [{
|
|
1610
1610
|
imports: [DraggableDirective],
|
|
@@ -1731,10 +1731,10 @@ class LimbleTreeRootComponent {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
return this.data.slice((this.page - 1) * this.itemsPerPage, this.page * this.itemsPerPage);
|
|
1733
1733
|
}
|
|
1734
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1735
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1734
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1735
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: LimbleTreeRootComponent, isStandalone: true, selector: "limble-tree-root", inputs: { data: "data", options: "options", itemsPerPage: "itemsPerPage", page: "page" }, outputs: { treeChange: "treeChange", treeDrop: "treeDrop" }, viewQueries: [{ propertyName: "host", first: true, predicate: ["host"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<div #host></div>\n" }); }
|
|
1736
1736
|
}
|
|
1737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeRootComponent, decorators: [{
|
|
1738
1738
|
type: Component,
|
|
1739
1739
|
args: [{ selector: "limble-tree-root", standalone: true, template: "<div #host></div>\n" }]
|
|
1740
1740
|
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
@@ -1756,11 +1756,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1756
1756
|
|
|
1757
1757
|
/** @deprecated */
|
|
1758
1758
|
class LimbleTreeLegacyModule {
|
|
1759
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1760
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1761
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1759
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeLegacyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1760
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeLegacyModule, imports: [LimbleTreeRootComponent], exports: [LimbleTreeRootComponent] }); }
|
|
1761
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeLegacyModule, providers: [LegacyTree] }); }
|
|
1762
1762
|
}
|
|
1763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeLegacyModule, decorators: [{
|
|
1764
1764
|
type: NgModule,
|
|
1765
1765
|
args: [{
|
|
1766
1766
|
declarations: [],
|
|
@@ -1775,11 +1775,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1775
1775
|
* components, directives, and services provided by Limble Tree.
|
|
1776
1776
|
*/
|
|
1777
1777
|
class LimbleTreeModule {
|
|
1778
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1779
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1780
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1778
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1779
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeModule, imports: [LimbleTreeLegacyModule, TreeCollapseModule, TreeDragAndDropModule], exports: [LimbleTreeLegacyModule, TreeCollapseModule, TreeDragAndDropModule] }); }
|
|
1780
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeModule, providers: [TreeService], imports: [LimbleTreeLegacyModule, TreeCollapseModule, TreeDragAndDropModule, LimbleTreeLegacyModule, TreeCollapseModule, TreeDragAndDropModule] }); }
|
|
1781
1781
|
}
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: LimbleTreeModule, decorators: [{
|
|
1783
1783
|
type: NgModule,
|
|
1784
1784
|
args: [{
|
|
1785
1785
|
declarations: [],
|