@limble/limble-tree 5.0.0 → 6.1.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 +26 -26
- package/fesm2022/limble-limble-tree.mjs +47 -47
- package/fesm2022/limble-limble-tree.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -2
- package/lib/core/configuration/index.d.ts +1 -1
- package/lib/core/index.d.ts +5 -5
- package/lib/core/tree-branch/index.d.ts +1 -1
- package/lib/events/index.d.ts +1 -1
- package/lib/events/relational/index.d.ts +2 -2
- package/lib/legacy/index.d.ts +3 -3
- package/package.json +4 -6
- package/esm2022/lib/components/branch/branch.component.mjs +0 -78
- package/esm2022/lib/components/branch/index.mjs +0 -2
- package/esm2022/lib/components/dragover-no-change-detect.mjs +0 -39
- package/esm2022/lib/components/dropzone/dropzone.component.mjs +0 -35
- package/esm2022/lib/components/dropzone/index.mjs +0 -2
- package/esm2022/lib/components/host-component.interface.mjs +0 -2
- package/esm2022/lib/components/index.mjs +0 -7
- package/esm2022/lib/components/node-component.interface.mjs +0 -2
- package/esm2022/lib/components/root/index.mjs +0 -2
- package/esm2022/lib/components/root/root.component.mjs +0 -35
- package/esm2022/lib/core/branch-options.interface.mjs +0 -2
- package/esm2022/lib/core/branchable.interface.mjs +0 -2
- package/esm2022/lib/core/component-container.interface.mjs +0 -2
- package/esm2022/lib/core/configuration/configuration.mjs +0 -17
- package/esm2022/lib/core/configuration/index.mjs +0 -3
- package/esm2022/lib/core/configuration/tree-options.interface.mjs +0 -2
- package/esm2022/lib/core/index.mjs +0 -11
- package/esm2022/lib/core/tree-branch/branch-controller.mjs +0 -99
- package/esm2022/lib/core/tree-branch/graftable.interface.mjs +0 -2
- package/esm2022/lib/core/tree-branch/index.mjs +0 -4
- package/esm2022/lib/core/tree-branch/tree-branch.mjs +0 -429
- package/esm2022/lib/core/tree-node-base.mjs +0 -77
- package/esm2022/lib/core/tree-node.interface.mjs +0 -2
- package/esm2022/lib/core/tree-plot.interface.mjs +0 -2
- package/esm2022/lib/core/tree-root/index.mjs +0 -3
- package/esm2022/lib/core/tree-root/root-controller.mjs +0 -42
- package/esm2022/lib/core/tree-root/tree-root.mjs +0 -193
- package/esm2022/lib/core/tree-service/index.mjs +0 -2
- package/esm2022/lib/core/tree-service/tree.service.mjs +0 -25
- package/esm2022/lib/errors/index.mjs +0 -2
- package/esm2022/lib/errors/tree-error.mjs +0 -3
- package/esm2022/lib/events/drag/drag-end-event.mjs +0 -30
- package/esm2022/lib/events/drag/drag-start-event.mjs +0 -10
- package/esm2022/lib/events/drag/drop-event.mjs +0 -18
- package/esm2022/lib/events/drag/index.mjs +0 -4
- package/esm2022/lib/events/general/destruction-event.mjs +0 -10
- package/esm2022/lib/events/general/index.mjs +0 -2
- package/esm2022/lib/events/index.mjs +0 -5
- package/esm2022/lib/events/relational/graft-event.mjs +0 -22
- package/esm2022/lib/events/relational/index.mjs +0 -5
- package/esm2022/lib/events/relational/prune-event.mjs +0 -22
- package/esm2022/lib/events/relational/relational-tree-event.interface.mjs +0 -2
- package/esm2022/lib/events/relational/tree-relationship.interface.mjs +0 -2
- package/esm2022/lib/events/tree-event.interface.mjs +0 -2
- package/esm2022/lib/extras/collapse/collapse.mjs +0 -33
- package/esm2022/lib/extras/collapse/collapse.module.mjs +0 -16
- package/esm2022/lib/extras/collapse/collapse.service.mjs +0 -45
- package/esm2022/lib/extras/collapse/index.mjs +0 -4
- package/esm2022/lib/extras/drag-and-drop/drag-and-drop.mjs +0 -83
- package/esm2022/lib/extras/drag-and-drop/drag-and-drop.module.mjs +0 -22
- package/esm2022/lib/extras/drag-and-drop/drag-and-drop.service.mjs +0 -44
- package/esm2022/lib/extras/drag-and-drop/drag-state.mjs +0 -47
- package/esm2022/lib/extras/drag-and-drop/draggable.directive.mjs +0 -30
- package/esm2022/lib/extras/drag-and-drop/dropzone-renderer.mjs +0 -176
- package/esm2022/lib/extras/drag-and-drop/index.mjs +0 -7
- package/esm2022/lib/legacy/index.mjs +0 -7
- package/esm2022/lib/legacy/legacy-component-obj.interface.mjs +0 -2
- package/esm2022/lib/legacy/legacy-tree-data.interface.mjs +0 -2
- package/esm2022/lib/legacy/legacy-tree-options.interface.mjs +0 -2
- package/esm2022/lib/legacy/legacy-tree.mjs +0 -73
- package/esm2022/lib/legacy/limble-tree-legacy.module.mjs +0 -20
- package/esm2022/lib/legacy/limble-tree-root/limble-tree-root.component.mjs +0 -78
- package/esm2022/lib/limble-tree.module.mjs +0 -25
- package/esm2022/limble-limble-tree.mjs +0 -5
- package/esm2022/public-api.mjs +0 -12
- package/esm2022/shared/assert.mjs +0 -7
- package/esm2022/shared/has-property.mjs +0 -4
- package/esm2022/shared/index.mjs +0 -3
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ An Angular library for building visual tree structures. Built and used by the te
|
|
|
20
20
|
| 3.0.0 | 16.x.x | 7.x.x |
|
|
21
21
|
| 4.0.0 | 17.x.x | 7.x.x |
|
|
22
22
|
| 5.0.0 | 18.x.x | 7.x.x |
|
|
23
|
+
| 6.0.0 | 19.x.x | 7.8.x |
|
|
23
24
|
|
|
24
25
|
## Installation
|
|
25
26
|
|
|
@@ -33,30 +34,29 @@ A basic tree is very easy to set up.
|
|
|
33
34
|
|
|
34
35
|
### Step 1
|
|
35
36
|
|
|
36
|
-
Import the limble-tree module into your
|
|
37
|
+
Import the limble-tree module into your standalone component or Angular module.
|
|
37
38
|
|
|
38
39
|
```typescript
|
|
39
|
-
import {
|
|
40
|
+
import { Component } from "@angular/core";
|
|
40
41
|
import { LimbleTreeModule } from "@limble/limble-tree";
|
|
41
42
|
|
|
42
|
-
@
|
|
43
|
-
imports: [LimbleTreeModule]
|
|
43
|
+
@Component({
|
|
44
|
+
imports: [LimbleTreeModule],
|
|
45
|
+
template: `<div></div>`
|
|
44
46
|
})
|
|
45
|
-
export class
|
|
47
|
+
export class MyComponent {}
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
or
|
|
50
|
+
or, if using NgModules:
|
|
49
51
|
|
|
50
52
|
```typescript
|
|
51
|
-
import {
|
|
53
|
+
import { NgModule } from "@angular/core";
|
|
52
54
|
import { LimbleTreeModule } from "@limble/limble-tree";
|
|
53
55
|
|
|
54
|
-
@
|
|
55
|
-
|
|
56
|
-
imports: [LimbleTreeModule],
|
|
57
|
-
template: `<div></div>`
|
|
56
|
+
@NgModule({
|
|
57
|
+
imports: [LimbleTreeModule]
|
|
58
58
|
})
|
|
59
|
-
export class
|
|
59
|
+
export class AppModule {}
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
### Step 2
|
|
@@ -80,7 +80,7 @@ Use `@ViewChild` to get the `ViewContainerRef` of that element.
|
|
|
80
80
|
Inject TreeService into your component.
|
|
81
81
|
|
|
82
82
|
```typescript
|
|
83
|
-
|
|
83
|
+
private readonly treeService = inject(TreeService);
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
### Step 5
|
|
@@ -104,7 +104,7 @@ Render components in the tree by calling `grow()`.
|
|
|
104
104
|
const branch1 = this.tree.grow(MyTreeContentComponent);
|
|
105
105
|
const branch2 = this.tree.grow(MyTreeContentComponent);
|
|
106
106
|
const branch3 = this.tree.grow(MyTreeContentComponent);
|
|
107
|
-
const branch3a = branch3.grow(
|
|
107
|
+
const branch3a = branch3.grow(MyTreeContentComponent);
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
### Step 7
|
|
@@ -116,13 +116,13 @@ import {
|
|
|
116
116
|
Component,
|
|
117
117
|
AfterViewInit,
|
|
118
118
|
ViewChild,
|
|
119
|
-
ViewContainerRef
|
|
119
|
+
ViewContainerRef,
|
|
120
|
+
inject
|
|
120
121
|
} from "@angular/core";
|
|
121
|
-
import { LimbleTreeModule, TreeRoot } from "@limble/limble-tree";
|
|
122
|
+
import { LimbleTreeModule, TreeRoot, TreeService } from "@limble/limble-tree";
|
|
122
123
|
import { MyTreeContentComponent } from "somewhere in your filesystem";
|
|
123
124
|
|
|
124
125
|
@Component({
|
|
125
|
-
standalone: true,
|
|
126
126
|
imports: [LimbleTreeModule],
|
|
127
127
|
template: `<div #treeContainer></div>`
|
|
128
128
|
})
|
|
@@ -132,7 +132,7 @@ export class MyComponent implements AfterViewInit {
|
|
|
132
132
|
|
|
133
133
|
protected tree?: TreeRoot<MyTreeContentComponent>;
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
private readonly treeService = inject(TreeService);
|
|
136
136
|
|
|
137
137
|
public ngAfterViewInit(): void {
|
|
138
138
|
this.tree = this.treeService.createEmptyTree<MyTreeContentComponent>(
|
|
@@ -143,7 +143,7 @@ export class MyComponent implements AfterViewInit {
|
|
|
143
143
|
const branch1 = this.tree.grow(MyTreeContentComponent);
|
|
144
144
|
const branch2 = this.tree.grow(MyTreeContentComponent);
|
|
145
145
|
const branch3 = this.tree.grow(MyTreeContentComponent);
|
|
146
|
-
const branch3a = branch3.grow(
|
|
146
|
+
const branch3a = branch3.grow(MyTreeContentComponent);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
```
|
|
@@ -214,7 +214,7 @@ Tree branches which have descendant branches can be collapsed, temporarily remov
|
|
|
214
214
|
To collapse a branch, simply inject the TreeCollapseService into your component and call `collapse()`, passing in the branch to be collapsed. To restore the hidden branches, call `expand()`, passing in the same branch that was passed to `collapse()`
|
|
215
215
|
|
|
216
216
|
```typescript
|
|
217
|
-
|
|
217
|
+
private readonly collapseService = inject(TreeCollapseService);
|
|
218
218
|
|
|
219
219
|
public ngAfterViewInit(): void {
|
|
220
220
|
this.tree = this.treeService.createEmptyTree<MyTreeContentComponent>(
|
|
@@ -225,7 +225,7 @@ public ngAfterViewInit(): void {
|
|
|
225
225
|
const branch1 = this.tree.grow(MyTreeContentComponent);
|
|
226
226
|
const branch2 = this.tree.grow(MyTreeContentComponent);
|
|
227
227
|
const branch3 = this.tree.grow(MyTreeContentComponent);
|
|
228
|
-
const branch3a = branch3.grow(
|
|
228
|
+
const branch3a = branch3.grow(MyTreeContentComponent);
|
|
229
229
|
|
|
230
230
|
//Hides the fourth branch
|
|
231
231
|
this.collapseService.collapse(branch3);
|
|
@@ -240,7 +240,7 @@ public ngAfterViewInit(): void {
|
|
|
240
240
|
A branch can be configured to be collapsed by default, which means that any children grown onto it will not be visible until `expand()` is called.
|
|
241
241
|
|
|
242
242
|
```typescript
|
|
243
|
-
|
|
243
|
+
private readonly collapseService = inject(TreeCollapseService);
|
|
244
244
|
|
|
245
245
|
public ngAfterViewInit(): void {
|
|
246
246
|
this.tree = this.treeService.createEmptyTree<MyTreeContentComponent>(
|
|
@@ -251,7 +251,7 @@ public ngAfterViewInit(): void {
|
|
|
251
251
|
const branch1 = this.tree.grow(MyTreeContentComponent);
|
|
252
252
|
const branch2 = this.tree.grow(MyTreeContentComponent);
|
|
253
253
|
const branch3 = this.tree.grow(MyTreeContentComponent, {defaultCollapsed: true});
|
|
254
|
-
const branch3a = branch3.grow(
|
|
254
|
+
const branch3a = branch3.grow(MyTreeContentComponent); // this branch will be created but not rendered
|
|
255
255
|
|
|
256
256
|
//renders the fourth branch after 2 seconds have passed.
|
|
257
257
|
setTimeout(() => {
|
|
@@ -276,7 +276,7 @@ public ngAfterViewInit(): void {
|
|
|
276
276
|
const branch1 = this.tree1.grow(MyTreeContentComponent);
|
|
277
277
|
const branch2 = this.tree1.grow(MyTreeContentComponent);
|
|
278
278
|
const branch3 = this.tree1.grow(MyTreeContentComponent);
|
|
279
|
-
const branch3a = branch3.grow(
|
|
279
|
+
const branch3a = branch3.grow(MyTreeContentComponent);
|
|
280
280
|
|
|
281
281
|
setTimeout(() => {
|
|
282
282
|
//moves branch1 so it is now the second child of branch3
|
|
@@ -310,7 +310,7 @@ public ngAfterViewInit(): void {
|
|
|
310
310
|
const branch1 = this.tree.grow(MyTreeContentComponent);
|
|
311
311
|
const branch2 = this.tree.grow(MyTreeContentComponent);
|
|
312
312
|
const branch3 = this.tree.grow(MyTreeContentComponent);
|
|
313
|
-
const branch3a = branch3.grow(
|
|
313
|
+
const branch3a = branch3.grow(MyTreeContentComponent);
|
|
314
314
|
|
|
315
315
|
//removes branch1 from the tree after 2 seconds
|
|
316
316
|
setTimeout(() => {
|
|
@@ -424,7 +424,7 @@ public ngAfterViewInit(): void {
|
|
|
424
424
|
const branch2a = branch2.grow(MyTreeContentComponent);
|
|
425
425
|
const branch2b = branch2.grow(MyTreeContentComponent);
|
|
426
426
|
const branch2a1 = branch2a.grow(MyTreeContentComponent);
|
|
427
|
-
const
|
|
427
|
+
const branch2a2 = branch2a.grow(MyTreeContentComponent);
|
|
428
428
|
|
|
429
429
|
//All of these expressions are true
|
|
430
430
|
assert(branch2b.parent() === branch2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, NgModule, EventEmitter, Directive,
|
|
2
|
+
import { Injectable, NgModule, EventEmitter, Output, Directive, Input, Component, NgZone, ViewContainerRef, ViewChildren, ViewChild, createComponent, EnvironmentInjector, HostListener } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject, fromEvent, merge, map, filter, Subject, first } from 'rxjs';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
@@ -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: "19.2.20", ngImport: i0, type: TreeCollapseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
76
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeCollapseService }); }
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: TreeCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
85
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: TreeCollapseModule }); }
|
|
86
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeCollapseModule, providers: [TreeCollapseService] }); }
|
|
87
87
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", 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: "19.2.20", 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: "19.2.20", 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: "19.2.20", ngImport: i0, type: DragoverNoChangeDetectDirective, decorators: [{
|
|
178
178
|
type: Directive,
|
|
179
179
|
args: [{
|
|
180
180
|
standalone: true,
|
|
@@ -202,12 +202,12 @@ 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: "19.2.20", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: DropzoneComponent, decorators: [{
|
|
209
209
|
type: Component,
|
|
210
|
-
args: [{
|
|
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: [{
|
|
212
212
|
type: Input
|
|
213
213
|
}], dropped: [{
|
|
@@ -261,12 +261,12 @@ 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: "19.2.20", ngImport: i0, type: BranchComponent, deps: [{ token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: BranchComponent, decorators: [{
|
|
268
268
|
type: Component,
|
|
269
|
-
args: [{
|
|
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: [{
|
|
271
271
|
type: ViewChild,
|
|
272
272
|
args: ["branchesContainer", { read: ViewContainerRef }]
|
|
@@ -299,12 +299,12 @@ 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: "19.2.20", ngImport: i0, type: RootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
303
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: RootComponent, decorators: [{
|
|
306
306
|
type: Component,
|
|
307
|
-
args: [{
|
|
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: [{
|
|
309
309
|
type: ViewChild,
|
|
310
310
|
args: ["branchesContainer", { read: ViewContainerRef }]
|
|
@@ -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: "19.2.20", ngImport: i0, type: TreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1278
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeService, providedIn: "root" }); }
|
|
1279
1279
|
}
|
|
1280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: TreeDragAndDropService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1565
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeDragAndDropService }); }
|
|
1566
1566
|
}
|
|
1567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", 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: "19.2.20", 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: "19.2.20", 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: "19.2.20", 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: "18.1.0", ngImpor
|
|
|
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: "19.2.20", ngImport: i0, type: TreeDragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1604
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: TreeDragAndDropModule, imports: [DraggableDirective], exports: [DraggableDirective] }); }
|
|
1605
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: TreeDragAndDropModule, providers: [TreeDragAndDropService] }); }
|
|
1606
1606
|
}
|
|
1607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: LimbleTreeRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1735
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", 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: "19.2.20", 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: "18.1.0", ngImpor
|
|
|
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: "19.2.20", ngImport: i0, type: LimbleTreeLegacyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1760
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: LimbleTreeLegacyModule, imports: [LimbleTreeRootComponent], exports: [LimbleTreeRootComponent] }); }
|
|
1761
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: LimbleTreeLegacyModule, providers: [LegacyTree] }); }
|
|
1762
1762
|
}
|
|
1763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", 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: "18.1.0", ngImpor
|
|
|
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: "19.2.20", ngImport: i0, type: LimbleTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1779
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: LimbleTreeModule, imports: [LimbleTreeLegacyModule, TreeCollapseModule, TreeDragAndDropModule], exports: [LimbleTreeLegacyModule, TreeCollapseModule, TreeDragAndDropModule] }); }
|
|
1780
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", 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: "19.2.20", ngImport: i0, type: LimbleTreeModule, decorators: [{
|
|
1783
1783
|
type: NgModule,
|
|
1784
1784
|
args: [{
|
|
1785
1785
|
declarations: [],
|