@ali-hm/angular-tree-component 12.0.5 → 16.0.1

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.
Files changed (52) hide show
  1. package/{esm2020 → esm2022}/lib/angular-tree-component.module.mjs +33 -33
  2. package/{esm2020 → esm2022}/lib/components/loading.component.mjs +6 -6
  3. package/{esm2020 → esm2022}/lib/components/tree-node-checkbox.component.mjs +6 -6
  4. package/esm2022/lib/components/tree-node-collection.component.mjs +284 -0
  5. package/{esm2020 → esm2022}/lib/components/tree-node-content.component.mjs +6 -6
  6. package/{esm2020 → esm2022}/lib/components/tree-node-drop-slot.component.mjs +6 -6
  7. package/{esm2020 → esm2022}/lib/components/tree-node-expander.component.mjs +6 -6
  8. package/{esm2020 → esm2022}/lib/components/tree-node-wrapper.component.mjs +6 -6
  9. package/{esm2020 → esm2022}/lib/components/tree-viewport.component.mjs +6 -6
  10. package/esm2022/lib/components/tree.component.mjs +186 -0
  11. package/esm2022/lib/directives/tree-animate-open.directive.mjs +101 -0
  12. package/{esm2020 → esm2022}/lib/directives/tree-drag.directive.mjs +4 -4
  13. package/esm2022/lib/directives/tree-drop.directive.mjs +127 -0
  14. package/{esm2020 → esm2022}/lib/mobx-angular/tree-mobx-autorun.directive.mjs +4 -4
  15. package/{esm2020 → esm2022}/lib/models/tree-dragged-element.model.mjs +4 -4
  16. package/esm2022/lib/models/tree-node.model.mjs +390 -0
  17. package/esm2022/lib/models/tree-options.model.mjs +150 -0
  18. package/esm2022/lib/models/tree-virtual-scroll.model.mjs +197 -0
  19. package/esm2022/lib/models/tree.model.mjs +546 -0
  20. package/{fesm2020 → fesm2022}/ali-hm-angular-tree-component.mjs +174 -174
  21. package/{fesm2020 → fesm2022}/ali-hm-angular-tree-component.mjs.map +1 -1
  22. package/lib/components/loading.component.d.ts +1 -1
  23. package/lib/components/tree-node-checkbox.component.d.ts +1 -1
  24. package/lib/components/tree-node-collection.component.d.ts +3 -3
  25. package/lib/components/tree-node-content.component.d.ts +1 -1
  26. package/lib/components/tree-node-drop-slot.component.d.ts +1 -1
  27. package/lib/components/tree-node-expander.component.d.ts +1 -1
  28. package/lib/components/tree-node-wrapper.component.d.ts +1 -1
  29. package/lib/components/tree-viewport.component.d.ts +1 -1
  30. package/lib/components/tree.component.d.ts +1 -1
  31. package/lib/defs/api.d.ts +2 -2
  32. package/lib/directives/tree-animate-open.directive.d.ts +1 -1
  33. package/lib/directives/tree-drag.directive.d.ts +1 -1
  34. package/lib/directives/tree-drop.directive.d.ts +1 -1
  35. package/lib/mobx-angular/tree-mobx-autorun.directive.d.ts +1 -1
  36. package/package.json +8 -14
  37. package/esm2020/lib/components/tree-node-collection.component.mjs +0 -284
  38. package/esm2020/lib/components/tree.component.mjs +0 -186
  39. package/esm2020/lib/directives/tree-animate-open.directive.mjs +0 -101
  40. package/esm2020/lib/directives/tree-drop.directive.mjs +0 -127
  41. package/esm2020/lib/models/tree-node.model.mjs +0 -390
  42. package/esm2020/lib/models/tree-options.model.mjs +0 -150
  43. package/esm2020/lib/models/tree-virtual-scroll.model.mjs +0 -197
  44. package/esm2020/lib/models/tree.model.mjs +0 -546
  45. package/fesm2015/ali-hm-angular-tree-component.mjs +0 -2511
  46. package/fesm2015/ali-hm-angular-tree-component.mjs.map +0 -1
  47. /package/{esm2020 → esm2022}/ali-hm-angular-tree-component.mjs +0 -0
  48. /package/{esm2020 → esm2022}/lib/constants/events.mjs +0 -0
  49. /package/{esm2020 → esm2022}/lib/constants/keys.mjs +0 -0
  50. /package/{esm2020 → esm2022}/lib/defs/api.mjs +0 -0
  51. /package/{esm2020 → esm2022}/lib/mobx-angular/mobx-proxy.mjs +0 -0
  52. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -31,10 +31,10 @@ class TreeMobxAutorunDirective {
31
31
  this.dispose();
32
32
  }
33
33
  }
34
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeMobxAutorunDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
35
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: { treeMobxAutorun: "treeMobxAutorun" }, ngImport: i0 }); }
34
36
  }
35
- /** @nocollapse */ TreeMobxAutorunDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeMobxAutorunDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
36
- /** @nocollapse */ TreeMobxAutorunDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: { treeMobxAutorun: "treeMobxAutorun" }, ngImport: i0 });
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeMobxAutorunDirective, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeMobxAutorunDirective, decorators: [{
38
38
  type: Directive,
39
39
  args: [{ selector: '[treeMobxAutorun]' }]
40
40
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { treeMobxAutorun: [{
@@ -96,6 +96,24 @@ const defaultActionMapping = {
96
96
  }
97
97
  };
98
98
  class TreeOptions {
99
+ get hasChildrenField() { return this.options.hasChildrenField || 'hasChildren'; }
100
+ get childrenField() { return this.options.childrenField || 'children'; }
101
+ get displayField() { return this.options.displayField || 'name'; }
102
+ get idField() { return this.options.idField || 'id'; }
103
+ get isExpandedField() { return this.options.isExpandedField || 'isExpanded'; }
104
+ get getChildren() { return this.options.getChildren; }
105
+ get levelPadding() { return this.options.levelPadding || 0; }
106
+ get useVirtualScroll() { return this.options.useVirtualScroll; }
107
+ get animateExpand() { return this.options.animateExpand; }
108
+ get animateSpeed() { return this.options.animateSpeed || 1; }
109
+ get animateAcceleration() { return this.options.animateAcceleration || 1.2; }
110
+ get scrollOnActivate() { return this.options.scrollOnActivate === undefined ? true : this.options.scrollOnActivate; }
111
+ get rtl() { return !!this.options.rtl; }
112
+ get rootId() { return this.options.rootId; }
113
+ get useCheckbox() { return this.options.useCheckbox; }
114
+ get useTriState() { return this.options.useTriState === undefined ? true : this.options.useTriState; }
115
+ get scrollContainer() { return this.options.scrollContainer; }
116
+ get allowDragoverStyling() { return this.options.allowDragoverStyling === undefined ? true : this.options.allowDragoverStyling; }
99
117
  constructor(options = {}) {
100
118
  this.options = options;
101
119
  this.actionMapping = {
@@ -135,24 +153,6 @@ class TreeOptions {
135
153
  this.actionMapping.keys[KEYS.LEFT] = options.actionMapping?.keys[KEYS.LEFT] || TREE_ACTIONS.DRILL_DOWN;
136
154
  }
137
155
  }
138
- get hasChildrenField() { return this.options.hasChildrenField || 'hasChildren'; }
139
- get childrenField() { return this.options.childrenField || 'children'; }
140
- get displayField() { return this.options.displayField || 'name'; }
141
- get idField() { return this.options.idField || 'id'; }
142
- get isExpandedField() { return this.options.isExpandedField || 'isExpanded'; }
143
- get getChildren() { return this.options.getChildren; }
144
- get levelPadding() { return this.options.levelPadding || 0; }
145
- get useVirtualScroll() { return this.options.useVirtualScroll; }
146
- get animateExpand() { return this.options.animateExpand; }
147
- get animateSpeed() { return this.options.animateSpeed || 1; }
148
- get animateAcceleration() { return this.options.animateAcceleration || 1.2; }
149
- get scrollOnActivate() { return this.options.scrollOnActivate === undefined ? true : this.options.scrollOnActivate; }
150
- get rtl() { return !!this.options.rtl; }
151
- get rootId() { return this.options.rootId; }
152
- get useCheckbox() { return this.options.useCheckbox; }
153
- get useTriState() { return this.options.useTriState === undefined ? true : this.options.useTriState; }
154
- get scrollContainer() { return this.options.scrollContainer; }
155
- get allowDragoverStyling() { return this.options.allowDragoverStyling === undefined ? true : this.options.allowDragoverStyling; }
156
156
  getNodeClone(node) {
157
157
  if (this.options.getNodeClone) {
158
158
  return this.options.getNodeClone(node);
@@ -227,26 +227,6 @@ var __decorate$3 = (this && this.__decorate) || function (decorators, target, ke
227
227
  return c > 3 && r && Object.defineProperty(target, key, r), r;
228
228
  };
229
229
  class TreeNode {
230
- constructor(data, parent, treeModel, index) {
231
- this.data = data;
232
- this.parent = parent;
233
- this.treeModel = treeModel;
234
- this.position = 0;
235
- this.allowDrop = (element, $event) => {
236
- return this.options.allowDrop(element, { parent: this, index: 0 }, $event);
237
- };
238
- this.allowDragoverStyling = () => {
239
- return this.options.allowDragoverStyling;
240
- };
241
- if (this.id === undefined || this.id === null) {
242
- this.id = uuid();
243
- } // Make sure there's a unique id without overriding existing ids to work with immutable data structures
244
- this.index = index;
245
- if (this.getField('children')) {
246
- this._initChildren();
247
- }
248
- this.autoLoadChildren();
249
- }
250
230
  get isHidden() { return this.treeModel.isHidden(this); }
251
231
  ;
252
232
  get isExpanded() { return this.treeModel.isExpanded(this); }
@@ -288,6 +268,26 @@ class TreeNode {
288
268
  }
289
269
  get originalNode() { return this._originalNode; }
290
270
  ;
271
+ constructor(data, parent, treeModel, index) {
272
+ this.data = data;
273
+ this.parent = parent;
274
+ this.treeModel = treeModel;
275
+ this.position = 0;
276
+ this.allowDrop = (element, $event) => {
277
+ return this.options.allowDrop(element, { parent: this, index: 0 }, $event);
278
+ };
279
+ this.allowDragoverStyling = () => {
280
+ return this.options.allowDragoverStyling;
281
+ };
282
+ if (this.id === undefined || this.id === null) {
283
+ this.id = uuid();
284
+ } // Make sure there's a unique id without overriding existing ids to work with immutable data structures
285
+ this.index = index;
286
+ if (this.getField('children')) {
287
+ this._initChildren();
288
+ }
289
+ this.autoLoadChildren();
290
+ }
291
291
  // helper get functions:
292
292
  get hasChildren() {
293
293
  return !!(this.getField('hasChildren') || (this.children && this.children.length > 0));
@@ -626,6 +626,7 @@ class TreeModel {
626
626
  this.firstUpdate = true;
627
627
  this.subscriptions = [];
628
628
  }
629
+ static { this.focusedTree = null; }
629
630
  // events
630
631
  fireEvent(event) {
631
632
  event.treeModel = this;
@@ -1041,10 +1042,9 @@ class TreeModel {
1041
1042
  _setActiveNodeMulti(node, value) {
1042
1043
  this.activeNodeIds = Object.assign({}, this.activeNodeIds, { [node.id]: value });
1043
1044
  }
1045
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeModel, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1046
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeModel }); }
1044
1047
  }
1045
- TreeModel.focusedTree = null;
1046
- /** @nocollapse */ TreeModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeModel, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1047
- /** @nocollapse */ TreeModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeModel });
1048
1048
  __decorate$2([
1049
1049
  observable$1
1050
1050
  ], TreeModel.prototype, "roots", void 0);
@@ -1144,7 +1144,7 @@ __decorate$2([
1144
1144
  __decorate$2([
1145
1145
  action$1
1146
1146
  ], TreeModel.prototype, "setState", null);
1147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeModel, decorators: [{
1147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeModel, decorators: [{
1148
1148
  type: Injectable
1149
1149
  }], propDecorators: { roots: [], expandedNodeIds: [], selectedLeafNodeIds: [], activeNodeIds: [], hiddenNodeIds: [], focusedNodeId: [], virtualRoot: [], focusedNode: [], expandedNodes: [], activeNodes: [], hiddenNodes: [], selectedLeafNodes: [], setData: [], update: [], setFocusedNode: [], setFocus: [], doForAll: [], focusNextNode: [], focusPreviousNode: [], focusDrillDown: [], focusDrillUp: [], setActiveNode: [], setSelectedNode: [], setExpandedNode: [], expandAll: [], collapseAll: [], setIsHidden: [], setHiddenNodeIds: [], filterNodes: [], clearFilter: [], moveNode: [], copyNode: [], setState: [] } });
1150
1150
 
@@ -1161,10 +1161,10 @@ class TreeDraggedElement {
1161
1161
  isDragging() {
1162
1162
  return !!this.get();
1163
1163
  }
1164
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDraggedElement, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1165
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDraggedElement, providedIn: 'root' }); }
1164
1166
  }
1165
- /** @nocollapse */ TreeDraggedElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDraggedElement, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1166
- /** @nocollapse */ TreeDraggedElement.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDraggedElement, providedIn: 'root' });
1167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDraggedElement, decorators: [{
1167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDraggedElement, decorators: [{
1168
1168
  type: Injectable,
1169
1169
  args: [{
1170
1170
  providedIn: 'root'
@@ -1180,6 +1180,12 @@ var __decorate$1 = (this && this.__decorate) || function (decorators, target, ke
1180
1180
  const Y_OFFSET = 500; // Extra pixels outside the viewport, in each direction, to render nodes in
1181
1181
  const Y_EPSILON = 150; // Minimum pixel change required to recalculate the rendered nodes
1182
1182
  class TreeVirtualScroll {
1183
+ get y() {
1184
+ return this.yBlocks * Y_EPSILON;
1185
+ }
1186
+ get totalHeight() {
1187
+ return this.treeModel.virtualRoot ? this.treeModel.virtualRoot.height : 0;
1188
+ }
1183
1189
  constructor(treeModel) {
1184
1190
  this.treeModel = treeModel;
1185
1191
  this.yBlocks = 0;
@@ -1189,12 +1195,6 @@ class TreeVirtualScroll {
1189
1195
  treeModel.virtualScroll = this;
1190
1196
  this._dispose = [autorun(() => this.fixScroll())];
1191
1197
  }
1192
- get y() {
1193
- return this.yBlocks * Y_EPSILON;
1194
- }
1195
- get totalHeight() {
1196
- return this.treeModel.virtualRoot ? this.treeModel.virtualRoot.height : 0;
1197
- }
1198
1198
  fireEvent(event) {
1199
1199
  this.treeModel.fireEvent(event);
1200
1200
  }
@@ -1312,9 +1312,9 @@ class TreeVirtualScroll {
1312
1312
  if (this.y > maxY)
1313
1313
  this._setYBlocks(maxY / Y_EPSILON);
1314
1314
  }
1315
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeVirtualScroll, deps: [{ token: TreeModel }], target: i0.ɵɵFactoryTarget.Injectable }); }
1316
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeVirtualScroll }); }
1315
1317
  }
1316
- /** @nocollapse */ TreeVirtualScroll.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeVirtualScroll, deps: [{ token: TreeModel }], target: i0.ɵɵFactoryTarget.Injectable });
1317
- /** @nocollapse */ TreeVirtualScroll.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeVirtualScroll });
1318
1318
  __decorate$1([
1319
1319
  observable$1
1320
1320
  ], TreeVirtualScroll.prototype, "yBlocks", void 0);
@@ -1342,7 +1342,7 @@ __decorate$1([
1342
1342
  __decorate$1([
1343
1343
  action$1
1344
1344
  ], TreeVirtualScroll.prototype, "scrollIntoView", null);
1345
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeVirtualScroll, decorators: [{
1345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeVirtualScroll, decorators: [{
1346
1346
  type: Injectable
1347
1347
  }], ctorParameters: function () { return [{ type: TreeModel }]; }, propDecorators: { yBlocks: [], x: [], viewportHeight: [], y: [], totalHeight: [], _setYBlocks: [], recalcPositions: [], setViewport: [], scrollIntoView: [] } });
1348
1348
  function binarySearch(nodes, condition, firstIndex = 0) {
@@ -1364,16 +1364,16 @@ function binarySearch(nodes, condition, firstIndex = 0) {
1364
1364
  }
1365
1365
 
1366
1366
  class LoadingComponent {
1367
- }
1368
- /** @nocollapse */ LoadingComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1369
- /** @nocollapse */ LoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: LoadingComponent, selector: "tree-loading-component", inputs: { template: "template", node: "node" }, ngImport: i0, template: `
1367
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1368
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LoadingComponent, selector: "tree-loading-component", inputs: { template: "template", node: "node" }, ngImport: i0, template: `
1370
1369
  <span *ngIf="!template">loading...</span>
1371
1370
  <ng-container
1372
1371
  [ngTemplateOutlet]="template"
1373
1372
  [ngTemplateOutletContext]="{ $implicit: node }">
1374
1373
  </ng-container>
1375
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
1376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent, decorators: [{
1374
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
1375
+ }
1376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingComponent, decorators: [{
1377
1377
  type: Component,
1378
1378
  args: [{
1379
1379
  encapsulation: ViewEncapsulation.None,
@@ -1395,6 +1395,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1395
1395
  const DRAG_OVER_CLASS$1 = 'is-dragging-over';
1396
1396
  const DRAG_DISABLED_CLASS = 'is-dragging-over-disabled';
1397
1397
  class TreeDropDirective {
1398
+ set treeAllowDrop(allowDrop) {
1399
+ if (allowDrop instanceof Function) {
1400
+ this._allowDrop = allowDrop;
1401
+ }
1402
+ else
1403
+ this._allowDrop = (element, $event) => allowDrop;
1404
+ }
1405
+ allowDrop($event) {
1406
+ return this._allowDrop(this.treeDraggedElement.get(), $event);
1407
+ }
1398
1408
  constructor(el, renderer, treeDraggedElement, ngZone) {
1399
1409
  this.el = el;
1400
1410
  this.renderer = renderer;
@@ -1410,16 +1420,6 @@ class TreeDropDirective {
1410
1420
  this.dragEnterEventHandler = this.onDragEnter.bind(this);
1411
1421
  this.dragLeaveEventHandler = this.onDragLeave.bind(this);
1412
1422
  }
1413
- set treeAllowDrop(allowDrop) {
1414
- if (allowDrop instanceof Function) {
1415
- this._allowDrop = allowDrop;
1416
- }
1417
- else
1418
- this._allowDrop = (element, $event) => allowDrop;
1419
- }
1420
- allowDrop($event) {
1421
- return this._allowDrop(this.treeDraggedElement.get(), $event);
1422
- }
1423
1423
  ngAfterViewInit() {
1424
1424
  let el = this.el.nativeElement;
1425
1425
  this.ngZone.runOutsideAngular(() => {
@@ -1487,10 +1487,10 @@ class TreeDropDirective {
1487
1487
  removeDisabledClass() {
1488
1488
  this.renderer.removeClass(this.el.nativeElement, DRAG_DISABLED_CLASS);
1489
1489
  }
1490
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDropDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TreeDraggedElement }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
1491
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TreeDropDirective, selector: "[treeDrop]", inputs: { allowDragoverStyling: "allowDragoverStyling", treeAllowDrop: "treeAllowDrop" }, outputs: { onDropCallback: "treeDrop", onDragOverCallback: "treeDropDragOver", onDragLeaveCallback: "treeDropDragLeave", onDragEnterCallback: "treeDropDragEnter" }, host: { listeners: { "drop": "onDrop($event)" } }, ngImport: i0 }); }
1490
1492
  }
1491
- /** @nocollapse */ TreeDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDropDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TreeDraggedElement }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1492
- /** @nocollapse */ TreeDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TreeDropDirective, selector: "[treeDrop]", inputs: { allowDragoverStyling: "allowDragoverStyling", treeAllowDrop: "treeAllowDrop" }, outputs: { onDropCallback: "treeDrop", onDragOverCallback: "treeDropDragOver", onDragLeaveCallback: "treeDropDragLeave", onDragEnterCallback: "treeDropDragEnter" }, host: { listeners: { "drop": "onDrop($event)" } }, ngImport: i0 });
1493
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDropDirective, decorators: [{
1493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDropDirective, decorators: [{
1494
1494
  type: Directive,
1495
1495
  args: [{
1496
1496
  selector: '[treeDrop]'
@@ -1526,17 +1526,17 @@ class TreeNodeDropSlot {
1526
1526
  allowDrop(element, $event) {
1527
1527
  return this.node.options.allowDrop(element, { parent: this.node, index: this.dropIndex }, $event);
1528
1528
  }
1529
- }
1530
- /** @nocollapse */ TreeNodeDropSlotfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeDropSlot, deps: [], target: i0.ɵɵFactoryTarget.Component });
1531
- /** @nocollapse */ TreeNodeDropSlot.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeDropSlot, selector: "TreeNodeDropSlot, tree-node-drop-slot", inputs: { node: "node", dropIndex: "dropIndex" }, ngImport: i0, template: `
1529
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeDropSlot, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1530
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeDropSlot, selector: "TreeNodeDropSlot, tree-node-drop-slot", inputs: { node: "node", dropIndex: "dropIndex" }, ngImport: i0, template: `
1532
1531
  <div
1533
1532
  class="node-drop-slot"
1534
1533
  (treeDrop)="onDrop($event)"
1535
1534
  [treeAllowDrop]="allowDrop.bind(this)"
1536
1535
  [allowDragoverStyling]="true">
1537
1536
  </div>
1538
- `, isInline: true, dependencies: [{ kind: "directive", type: TreeDropDirective, selector: "[treeDrop]", inputs: ["allowDragoverStyling", "treeAllowDrop"], outputs: ["treeDrop", "treeDropDragOver", "treeDropDragLeave", "treeDropDragEnter"] }], encapsulation: i0.ViewEncapsulation.None });
1539
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeDropSlot, decorators: [{
1537
+ `, isInline: true, dependencies: [{ kind: "directive", type: TreeDropDirective, selector: "[treeDrop]", inputs: ["allowDragoverStyling", "treeAllowDrop"], outputs: ["treeDrop", "treeDropDragOver", "treeDropDragLeave", "treeDropDragEnter"] }], encapsulation: i0.ViewEncapsulation.None }); }
1538
+ }
1539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeDropSlot, decorators: [{
1540
1540
  type: Component,
1541
1541
  args: [{ selector: 'TreeNodeDropSlot, tree-node-drop-slot', encapsulation: ViewEncapsulation.None, template: `
1542
1542
  <div
@@ -1568,11 +1568,6 @@ const observable = Object.assign(observableInternal, observable$1);
1568
1568
 
1569
1569
  const EASE_ACCELERATION = 1.005;
1570
1570
  class TreeAnimateOpenDirective {
1571
- constructor(renderer, templateRef, viewContainerRef) {
1572
- this.renderer = renderer;
1573
- this.templateRef = templateRef;
1574
- this.viewContainerRef = viewContainerRef;
1575
- }
1576
1571
  set isOpen(value) {
1577
1572
  if (value) {
1578
1573
  this._show();
@@ -1586,6 +1581,11 @@ class TreeAnimateOpenDirective {
1586
1581
  this._isOpen = !!value;
1587
1582
  }
1588
1583
  ;
1584
+ constructor(renderer, templateRef, viewContainerRef) {
1585
+ this.renderer = renderer;
1586
+ this.templateRef = templateRef;
1587
+ this.viewContainerRef = viewContainerRef;
1588
+ }
1589
1589
  _show() {
1590
1590
  if (this.innerElement)
1591
1591
  return;
@@ -1643,10 +1643,10 @@ class TreeAnimateOpenDirective {
1643
1643
  }
1644
1644
  }, 17);
1645
1645
  }
1646
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeAnimateOpenDirective, deps: [{ token: i0.Renderer2 }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1647
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TreeAnimateOpenDirective, selector: "[treeAnimateOpen]", inputs: { animateSpeed: ["treeAnimateOpenSpeed", "animateSpeed"], animateAcceleration: ["treeAnimateOpenAcceleration", "animateAcceleration"], isEnabled: ["treeAnimateOpenEnabled", "isEnabled"], isOpen: ["treeAnimateOpen", "isOpen"] }, ngImport: i0 }); }
1646
1648
  }
1647
- /** @nocollapse */ TreeAnimateOpenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeAnimateOpenDirective, deps: [{ token: i0.Renderer2 }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1648
- /** @nocollapse */ TreeAnimateOpenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TreeAnimateOpenDirective, selector: "[treeAnimateOpen]", inputs: { animateSpeed: ["treeAnimateOpenSpeed", "animateSpeed"], animateAcceleration: ["treeAnimateOpenAcceleration", "animateAcceleration"], isEnabled: ["treeAnimateOpenEnabled", "isEnabled"], isOpen: ["treeAnimateOpen", "isOpen"] }, ngImport: i0 });
1649
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeAnimateOpenDirective, decorators: [{
1649
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeAnimateOpenDirective, decorators: [{
1650
1650
  type: Directive,
1651
1651
  args: [{
1652
1652
  selector: '[treeAnimateOpen]'
@@ -1666,15 +1666,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1666
1666
  }] } });
1667
1667
 
1668
1668
  class TreeNodeContent {
1669
- }
1670
- /** @nocollapse */ TreeNodeContentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1671
- /** @nocollapse */ TreeNodeContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeContent, selector: "tree-node-content", inputs: { node: "node", index: "index", template: "template" }, ngImport: i0, template: `
1669
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1670
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeContent, selector: "tree-node-content", inputs: { node: "node", index: "index", template: "template" }, ngImport: i0, template: `
1672
1671
  <span *ngIf="!template">{{ node.displayField }}</span>
1673
1672
  <ng-container
1674
1673
  [ngTemplateOutlet]="template"
1675
1674
  [ngTemplateOutletContext]="{ $implicit: node, node: node, index: index }">
1676
- </ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
1677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeContent, decorators: [{
1675
+ </ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
1676
+ }
1677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeContent, decorators: [{
1678
1678
  type: Component,
1679
1679
  args: [{
1680
1680
  selector: 'tree-node-content',
@@ -1735,10 +1735,10 @@ class TreeDragDirective {
1735
1735
  }
1736
1736
  this.treeDraggedElement.set(null);
1737
1737
  }
1738
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDragDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TreeDraggedElement }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
1739
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TreeDragDirective, selector: "[treeDrag]", inputs: { draggedElement: ["treeDrag", "draggedElement"], treeDragEnabled: "treeDragEnabled" }, host: { listeners: { "dragstart": "onDragStart($event)", "dragend": "onDragEnd()" } }, ngImport: i0 }); }
1738
1740
  }
1739
- /** @nocollapse */ TreeDragDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDragDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TreeDraggedElement }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1740
- /** @nocollapse */ TreeDragDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: TreeDragDirective, selector: "[treeDrag]", inputs: { draggedElement: ["treeDrag", "draggedElement"], treeDragEnabled: "treeDragEnabled" }, host: { listeners: { "dragstart": "onDragStart($event)", "dragend": "onDragEnd()" } }, ngImport: i0 });
1741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeDragDirective, decorators: [{
1741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeDragDirective, decorators: [{
1742
1742
  type: Directive,
1743
1743
  args: [{
1744
1744
  selector: '[treeDrag]'
@@ -1757,9 +1757,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1757
1757
  }] } });
1758
1758
 
1759
1759
  class TreeNodeExpanderComponent {
1760
- }
1761
- /** @nocollapse */ TreeNodeExpanderComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeExpanderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1762
- /** @nocollapse */ TreeNodeExpanderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeExpanderComponent, selector: "tree-node-expander", inputs: { node: "node" }, ngImport: i0, template: `
1760
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeExpanderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1761
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeExpanderComponent, selector: "tree-node-expander", inputs: { node: "node" }, ngImport: i0, template: `
1763
1762
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
1764
1763
  <span
1765
1764
  *ngIf="node.hasChildren"
@@ -1773,8 +1772,9 @@ class TreeNodeExpanderComponent {
1773
1772
  <span *ngIf="!node.hasChildren" class="toggle-children-placeholder">
1774
1773
  </span>
1775
1774
  </ng-container>
1776
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None });
1777
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeExpanderComponent, decorators: [{
1775
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None }); }
1776
+ }
1777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeExpanderComponent, decorators: [{
1778
1778
  type: Component,
1779
1779
  args: [{ selector: 'tree-node-expander', encapsulation: ViewEncapsulation.None, template: `
1780
1780
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
@@ -1796,9 +1796,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1796
1796
  }] } });
1797
1797
 
1798
1798
  class TreeNodeCheckboxComponent {
1799
- }
1800
- /** @nocollapse */ TreeNodeCheckboxComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1801
- /** @nocollapse */ TreeNodeCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeCheckboxComponent, selector: "tree-node-checkbox", inputs: { node: "node" }, ngImport: i0, template: `
1799
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1800
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeCheckboxComponent, selector: "tree-node-checkbox", inputs: { node: "node" }, ngImport: i0, template: `
1802
1801
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
1803
1802
  <input
1804
1803
  class="tree-node-checkbox"
@@ -1808,8 +1807,9 @@ class TreeNodeCheckboxComponent {
1808
1807
  [indeterminate]="node.isPartiallySelected"
1809
1808
  />
1810
1809
  </ng-container>
1811
- `, isInline: true, dependencies: [{ kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None });
1812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeCheckboxComponent, decorators: [{
1810
+ `, isInline: true, dependencies: [{ kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None }); }
1811
+ }
1812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeCheckboxComponent, decorators: [{
1813
1813
  type: Component,
1814
1814
  args: [{ selector: 'tree-node-checkbox', encapsulation: ViewEncapsulation.None, template: `
1815
1815
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
@@ -1827,9 +1827,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1827
1827
  }] } });
1828
1828
 
1829
1829
  class TreeNodeWrapperComponent {
1830
- }
1831
- /** @nocollapse */ TreeNodeWrapperComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1832
- /** @nocollapse */ TreeNodeWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeWrapperComponent, selector: "tree-node-wrapper", inputs: { node: "node", index: "index", templates: "templates" }, ngImport: i0, template: `
1830
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1831
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeWrapperComponent, selector: "tree-node-wrapper", inputs: { node: "node", index: "index", templates: "templates" }, ngImport: i0, template: `
1833
1832
  <div *ngIf="!templates.treeNodeWrapperTemplate" class="node-wrapper" [style.padding-left]="node.getNodePadding()">
1834
1833
  <tree-node-checkbox *ngIf="node.options.useCheckbox" [node]="node"></tree-node-checkbox>
1835
1834
  <tree-node-expander [node]="node"></tree-node-expander>
@@ -1858,8 +1857,9 @@ class TreeNodeWrapperComponent {
1858
1857
  [ngTemplateOutlet]="templates.treeNodeWrapperTemplate"
1859
1858
  [ngTemplateOutletContext]="{ $implicit: node, node: node, index: index, templates: templates }">
1860
1859
  </ng-container>
1861
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeNodeContent, selector: "tree-node-content", inputs: ["node", "index", "template"] }, { kind: "directive", type: TreeDropDirective, selector: "[treeDrop]", inputs: ["allowDragoverStyling", "treeAllowDrop"], outputs: ["treeDrop", "treeDropDragOver", "treeDropDragLeave", "treeDropDragEnter"] }, { kind: "directive", type: TreeDragDirective, selector: "[treeDrag]", inputs: ["treeDrag", "treeDragEnabled"] }, { kind: "component", type: TreeNodeExpanderComponent, selector: "tree-node-expander", inputs: ["node"] }, { kind: "component", type: TreeNodeCheckboxComponent, selector: "tree-node-checkbox", inputs: ["node"] }], encapsulation: i0.ViewEncapsulation.None });
1862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeWrapperComponent, decorators: [{
1860
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeNodeContent, selector: "tree-node-content", inputs: ["node", "index", "template"] }, { kind: "directive", type: TreeDropDirective, selector: "[treeDrop]", inputs: ["allowDragoverStyling", "treeAllowDrop"], outputs: ["treeDrop", "treeDropDragOver", "treeDropDragLeave", "treeDropDragEnter"] }, { kind: "directive", type: TreeDragDirective, selector: "[treeDrag]", inputs: ["treeDrag", "treeDragEnabled"] }, { kind: "component", type: TreeNodeExpanderComponent, selector: "tree-node-expander", inputs: ["node"] }, { kind: "component", type: TreeNodeCheckboxComponent, selector: "tree-node-checkbox", inputs: ["node"] }], encapsulation: i0.ViewEncapsulation.None }); }
1861
+ }
1862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeWrapperComponent, decorators: [{
1863
1863
  type: Component,
1864
1864
  args: [{ selector: 'tree-node-wrapper', encapsulation: ViewEncapsulation.None, template: `
1865
1865
  <div *ngIf="!templates.treeNodeWrapperTemplate" class="node-wrapper" [style.padding-left]="node.getNodePadding()">
@@ -1906,9 +1906,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
1906
1906
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1907
1907
  };
1908
1908
  class TreeNodeChildrenComponent {
1909
- }
1910
- /** @nocollapse */ TreeNodeChildrenComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeChildrenComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1911
- /** @nocollapse */ TreeNodeChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeChildrenComponent, selector: "tree-node-children", inputs: { node: "node", templates: "templates" }, ngImport: i0, template: `
1909
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeChildrenComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1910
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeChildrenComponent, selector: "tree-node-children", inputs: { node: "node", templates: "templates" }, ngImport: i0, template: `
1912
1911
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
1913
1912
  <div
1914
1913
  [class.tree-children]="true"
@@ -1936,8 +1935,9 @@ class TreeNodeChildrenComponent {
1936
1935
  ></tree-loading-component>
1937
1936
  </div>
1938
1937
  </ng-container>
1939
- `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i1.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i0.forwardRef(function () { return LoadingComponent; }), selector: "tree-loading-component", inputs: ["template", "node"] }, { kind: "component", type: i0.forwardRef(function () { return TreeNodeCollectionComponent; }), selector: "tree-node-collection", inputs: ["nodes", "treeModel", "templates"] }, { kind: "directive", type: i0.forwardRef(function () { return TreeAnimateOpenDirective; }), selector: "[treeAnimateOpen]", inputs: ["treeAnimateOpenSpeed", "treeAnimateOpenAcceleration", "treeAnimateOpenEnabled", "treeAnimateOpen"] }, { kind: "directive", type: i0.forwardRef(function () { return TreeMobxAutorunDirective; }), selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None });
1940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeChildrenComponent, decorators: [{
1938
+ `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i1.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i0.forwardRef(function () { return LoadingComponent; }), selector: "tree-loading-component", inputs: ["template", "node"] }, { kind: "component", type: i0.forwardRef(function () { return TreeNodeCollectionComponent; }), selector: "tree-node-collection", inputs: ["nodes", "treeModel", "templates"] }, { kind: "directive", type: i0.forwardRef(function () { return TreeAnimateOpenDirective; }), selector: "[treeAnimateOpen]", inputs: ["treeAnimateOpenSpeed", "treeAnimateOpenAcceleration", "treeAnimateOpenEnabled", "treeAnimateOpen"] }, { kind: "directive", type: i0.forwardRef(function () { return TreeMobxAutorunDirective; }), selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None }); }
1939
+ }
1940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeChildrenComponent, decorators: [{
1941
1941
  type: Component,
1942
1942
  args: [{ selector: 'tree-node-children', encapsulation: ViewEncapsulation.None, template: `
1943
1943
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
@@ -2017,9 +2017,8 @@ class TreeNodeCollectionComponent {
2017
2017
  trackNode(index, node) {
2018
2018
  return node.id;
2019
2019
  }
2020
- }
2021
- /** @nocollapse */ TreeNodeCollectionComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeCollectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2022
- /** @nocollapse */ TreeNodeCollectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeCollectionComponent, selector: "tree-node-collection", inputs: { nodes: "nodes", treeModel: "treeModel", templates: "templates" }, ngImport: i0, template: `
2020
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeCollectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2021
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeCollectionComponent, selector: "tree-node-collection", inputs: { nodes: "nodes", treeModel: "treeModel", templates: "templates" }, ngImport: i0, template: `
2023
2022
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
2024
2023
  <div [style.margin-top]="marginTop">
2025
2024
  <tree-node
@@ -2031,7 +2030,8 @@ class TreeNodeCollectionComponent {
2031
2030
  </tree-node>
2032
2031
  </div>
2033
2032
  </ng-container>
2034
- `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i1.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i0.forwardRef(function () { return TreeNodeComponent; }), selector: "TreeNode, tree-node", inputs: ["node", "index", "templates"] }, { kind: "directive", type: i0.forwardRef(function () { return TreeMobxAutorunDirective; }), selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None });
2033
+ `, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i1.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i0.forwardRef(function () { return TreeNodeComponent; }), selector: "TreeNode, tree-node", inputs: ["node", "index", "templates"] }, { kind: "directive", type: i0.forwardRef(function () { return TreeMobxAutorunDirective; }), selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None }); }
2034
+ }
2035
2035
  __decorate([
2036
2036
  observable
2037
2037
  ], TreeNodeCollectionComponent.prototype, "_nodes", void 0);
@@ -2044,7 +2044,7 @@ __decorate([
2044
2044
  __decorate([
2045
2045
  action
2046
2046
  ], TreeNodeCollectionComponent.prototype, "setNodes", null);
2047
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeCollectionComponent, decorators: [{
2047
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeCollectionComponent, decorators: [{
2048
2048
  type: Component,
2049
2049
  args: [{
2050
2050
  selector: 'tree-node-collection',
@@ -2071,9 +2071,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
2071
2071
  type: Input
2072
2072
  }], viewportNodes: [], marginTop: [], setNodes: [] } });
2073
2073
  class TreeNodeComponent {
2074
- }
2075
- /** @nocollapse */ TreeNodeComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2076
- /** @nocollapse */ TreeNodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeNodeComponent, selector: "TreeNode, tree-node", inputs: { node: "node", index: "index", templates: "templates" }, ngImport: i0, template: `
2074
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2075
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeNodeComponent, selector: "TreeNode, tree-node", inputs: { node: "node", index: "index", templates: "templates" }, ngImport: i0, template: `
2077
2076
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
2078
2077
  <div
2079
2078
  *ngIf="!templates.treeNodeFullTemplate"
@@ -2117,8 +2116,9 @@ class TreeNodeComponent {
2117
2116
  >
2118
2117
  </ng-container>
2119
2118
  </ng-container>
2120
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeNodeChildrenComponent, selector: "tree-node-children", inputs: ["node", "templates"] }, { kind: "component", type: TreeNodeDropSlot, selector: "TreeNodeDropSlot, tree-node-drop-slot", inputs: ["node", "dropIndex"] }, { kind: "component", type: TreeNodeWrapperComponent, selector: "tree-node-wrapper", inputs: ["node", "index", "templates"] }, { kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None });
2121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeNodeComponent, decorators: [{
2119
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeNodeChildrenComponent, selector: "tree-node-children", inputs: ["node", "templates"] }, { kind: "component", type: TreeNodeDropSlot, selector: "TreeNodeDropSlot, tree-node-drop-slot", inputs: ["node", "dropIndex"] }, { kind: "component", type: TreeNodeWrapperComponent, selector: "tree-node-wrapper", inputs: ["node", "index", "templates"] }, { kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }], encapsulation: i0.ViewEncapsulation.None }); }
2120
+ }
2121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeNodeComponent, decorators: [{
2122
2122
  type: Component,
2123
2123
  args: [{ selector: 'TreeNode, tree-node', encapsulation: ViewEncapsulation.None, template: `
2124
2124
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
@@ -2213,16 +2213,16 @@ class TreeViewportComponent {
2213
2213
  }
2214
2214
  };
2215
2215
  }
2216
- }
2217
- /** @nocollapse */ TreeViewportComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeViewportComponent, deps: [{ token: i0.ElementRef }, { token: TreeVirtualScroll }], target: i0.ɵɵFactoryTarget.Component });
2218
- /** @nocollapse */ TreeViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeViewportComponent, selector: "tree-viewport", providers: [TreeVirtualScroll], ngImport: i0, template: `
2216
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeViewportComponent, deps: [{ token: i0.ElementRef }, { token: TreeVirtualScroll }], target: i0.ɵɵFactoryTarget.Component }); }
2217
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeViewportComponent, selector: "tree-viewport", providers: [TreeVirtualScroll], ngImport: i0, template: `
2219
2218
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
2220
2219
  <div [style.height]="getTotalHeight()">
2221
2220
  <ng-content></ng-content>
2222
2221
  </div>
2223
2222
  </ng-container>
2224
- `, isInline: true, dependencies: [{ kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }] });
2225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeViewportComponent, decorators: [{
2223
+ `, isInline: true, dependencies: [{ kind: "directive", type: TreeMobxAutorunDirective, selector: "[treeMobxAutorun]", inputs: ["treeMobxAutorun"] }] }); }
2224
+ }
2225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeViewportComponent, decorators: [{
2226
2226
  type: Component,
2227
2227
  args: [{ selector: 'tree-viewport', providers: [TreeVirtualScroll], template: `
2228
2228
  <ng-container *treeMobxAutorun="{ dontDetach: true }">
@@ -2234,12 +2234,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
2234
2234
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: TreeVirtualScroll }]; } });
2235
2235
 
2236
2236
  class TreeComponent {
2237
- constructor(treeModel, treeDraggedElement) {
2238
- this.treeModel = treeModel;
2239
- this.treeDraggedElement = treeDraggedElement;
2240
- treeModel.eventNames.forEach((name) => this[name] = new EventEmitter());
2241
- treeModel.subscribeToState((state) => this.stateChange.emit(state));
2242
- }
2243
2237
  // Will be handled in ngOnChanges
2244
2238
  set nodes(nodes) {
2245
2239
  }
@@ -2253,6 +2247,12 @@ class TreeComponent {
2253
2247
  set state(state) {
2254
2248
  this.treeModel.setState(state);
2255
2249
  }
2250
+ constructor(treeModel, treeDraggedElement) {
2251
+ this.treeModel = treeModel;
2252
+ this.treeDraggedElement = treeDraggedElement;
2253
+ treeModel.eventNames.forEach((name) => this[name] = new EventEmitter());
2254
+ treeModel.subscribeToState((state) => this.stateChange.emit(state));
2255
+ }
2256
2256
  onKeydown($event) {
2257
2257
  if (!this.treeModel.isFocused)
2258
2258
  return;
@@ -2289,9 +2289,8 @@ class TreeComponent {
2289
2289
  return obj;
2290
2290
  }, {});
2291
2291
  }
2292
- }
2293
- /** @nocollapse */ TreeComponentfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeComponent, deps: [{ token: TreeModel }, { token: TreeDraggedElement }], target: i0.ɵɵFactoryTarget.Component });
2294
- /** @nocollapse */ TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TreeComponent, selector: "Tree, tree-root", inputs: { nodes: "nodes", options: "options", focused: "focused", state: "state" }, outputs: { toggleExpanded: "toggleExpanded", activate: "activate", deactivate: "deactivate", nodeActivate: "nodeActivate", nodeDeactivate: "nodeDeactivate", select: "select", deselect: "deselect", focus: "focus", blur: "blur", updateData: "updateData", initialized: "initialized", moveNode: "moveNode", copyNode: "copyNode", loadNodeChildren: "loadNodeChildren", changeFilter: "changeFilter", event: "event", stateChange: "stateChange" }, host: { listeners: { "body: keydown": "onKeydown($event)", "body: mousedown": "onMousedown($event)" } }, providers: [TreeModel], queries: [{ propertyName: "loadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true }, { propertyName: "treeNodeTemplate", first: true, predicate: ["treeNodeTemplate"], descendants: true }, { propertyName: "treeNodeWrapperTemplate", first: true, predicate: ["treeNodeWrapperTemplate"], descendants: true }, { propertyName: "treeNodeFullTemplate", first: true, predicate: ["treeNodeFullTemplate"], descendants: true }], viewQueries: [{ propertyName: "viewportComponent", first: true, predicate: ["viewport"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
2292
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeComponent, deps: [{ token: TreeModel }, { token: TreeDraggedElement }], target: i0.ɵɵFactoryTarget.Component }); }
2293
+ /** @nocollapse */ static { thiscmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeComponent, selector: "Tree, tree-root", inputs: { nodes: "nodes", options: "options", focused: "focused", state: "state" }, outputs: { toggleExpanded: "toggleExpanded", activate: "activate", deactivate: "deactivate", nodeActivate: "nodeActivate", nodeDeactivate: "nodeDeactivate", select: "select", deselect: "deselect", focus: "focus", blur: "blur", updateData: "updateData", initialized: "initialized", moveNode: "moveNode", copyNode: "copyNode", loadNodeChildren: "loadNodeChildren", changeFilter: "changeFilter", event: "event", stateChange: "stateChange" }, host: { listeners: { "body: keydown": "onKeydown($event)", "body: mousedown": "onMousedown($event)" } }, providers: [TreeModel], queries: [{ propertyName: "loadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true }, { propertyName: "treeNodeTemplate", first: true, predicate: ["treeNodeTemplate"], descendants: true }, { propertyName: "treeNodeWrapperTemplate", first: true, predicate: ["treeNodeWrapperTemplate"], descendants: true }, { propertyName: "treeNodeFullTemplate", first: true, predicate: ["treeNodeFullTemplate"], descendants: true }], viewQueries: [{ propertyName: "viewportComponent", first: true, predicate: ["viewport"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
2295
2294
  <tree-viewport #viewport>
2296
2295
  <div
2297
2296
  class="angular-tree-component"
@@ -2316,8 +2315,9 @@ class TreeComponent {
2316
2315
  </tree-node-drop-slot>
2317
2316
  </div>
2318
2317
  </tree-viewport>
2319
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TreeNodeDropSlot, selector: "TreeNodeDropSlot, tree-node-drop-slot", inputs: ["node", "dropIndex"] }, { kind: "component", type: TreeNodeCollectionComponent, selector: "tree-node-collection", inputs: ["nodes", "treeModel", "templates"] }, { kind: "component", type: TreeViewportComponent, selector: "tree-viewport" }] });
2320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeComponent, decorators: [{
2318
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TreeNodeDropSlot, selector: "TreeNodeDropSlot, tree-node-drop-slot", inputs: ["node", "dropIndex"] }, { kind: "component", type: TreeNodeCollectionComponent, selector: "tree-node-collection", inputs: ["nodes", "treeModel", "templates"] }, { kind: "component", type: TreeViewportComponent, selector: "tree-viewport" }] }); }
2319
+ }
2320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeComponent, decorators: [{
2321
2321
  type: Component,
2322
2322
  args: [{ selector: 'Tree, tree-root', providers: [TreeModel], template: `
2323
2323
  <tree-viewport #viewport>
@@ -2411,39 +2411,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
2411
2411
  }] } });
2412
2412
 
2413
2413
  class TreeModule {
2414
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2415
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TreeModule, declarations: [TreeComponent,
2416
+ TreeNodeComponent,
2417
+ TreeNodeContent,
2418
+ LoadingComponent,
2419
+ TreeDropDirective,
2420
+ TreeDragDirective,
2421
+ TreeNodeExpanderComponent,
2422
+ TreeNodeChildrenComponent,
2423
+ TreeNodeDropSlot,
2424
+ TreeNodeCollectionComponent,
2425
+ TreeViewportComponent,
2426
+ TreeNodeWrapperComponent,
2427
+ TreeNodeCheckboxComponent,
2428
+ TreeAnimateOpenDirective,
2429
+ TreeMobxAutorunDirective], imports: [CommonModule], exports: [TreeComponent,
2430
+ TreeNodeComponent,
2431
+ TreeNodeContent,
2432
+ LoadingComponent,
2433
+ TreeDropDirective,
2434
+ TreeDragDirective,
2435
+ TreeNodeExpanderComponent,
2436
+ TreeNodeChildrenComponent,
2437
+ TreeNodeDropSlot,
2438
+ TreeNodeCollectionComponent,
2439
+ TreeViewportComponent,
2440
+ TreeNodeWrapperComponent,
2441
+ TreeNodeCheckboxComponent,
2442
+ TreeAnimateOpenDirective,
2443
+ TreeMobxAutorunDirective] }); }
2444
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeModule, imports: [CommonModule] }); }
2414
2445
  }
2415
- /** @nocollapse */ TreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2416
- /** @nocollapse */ TreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TreeModule, declarations: [TreeComponent,
2417
- TreeNodeComponent,
2418
- TreeNodeContent,
2419
- LoadingComponent,
2420
- TreeDropDirective,
2421
- TreeDragDirective,
2422
- TreeNodeExpanderComponent,
2423
- TreeNodeChildrenComponent,
2424
- TreeNodeDropSlot,
2425
- TreeNodeCollectionComponent,
2426
- TreeViewportComponent,
2427
- TreeNodeWrapperComponent,
2428
- TreeNodeCheckboxComponent,
2429
- TreeAnimateOpenDirective,
2430
- TreeMobxAutorunDirective], imports: [CommonModule], exports: [TreeComponent,
2431
- TreeNodeComponent,
2432
- TreeNodeContent,
2433
- LoadingComponent,
2434
- TreeDropDirective,
2435
- TreeDragDirective,
2436
- TreeNodeExpanderComponent,
2437
- TreeNodeChildrenComponent,
2438
- TreeNodeDropSlot,
2439
- TreeNodeCollectionComponent,
2440
- TreeViewportComponent,
2441
- TreeNodeWrapperComponent,
2442
- TreeNodeCheckboxComponent,
2443
- TreeAnimateOpenDirective,
2444
- TreeMobxAutorunDirective] });
2445
- /** @nocollapse */ TreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeModule, imports: [CommonModule] });
2446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TreeModule, decorators: [{
2446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeModule, decorators: [{
2447
2447
  type: NgModule,
2448
2448
  args: [{
2449
2449
  declarations: [