@rxap/tree 12.2.1 → 12.4.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/bundles/rxap-tree.umd.js +160 -130
- package/bundles/rxap-tree.umd.js.map +1 -1
- package/esm2015/lib/tree.component.js +19 -12
- package/esm2015/lib/tree.component.js.map +1 -1
- package/esm2015/lib/tree.component.module.js +11 -3
- package/esm2015/lib/tree.component.module.js.map +1 -1
- package/esm2015/lib/tree.data-source.js +105 -86
- package/esm2015/lib/tree.data-source.js.map +1 -1
- package/fesm2015/rxap-tree.js +134 -100
- package/fesm2015/rxap-tree.js.map +1 -1
- package/lib/tree.component.d.ts +2 -1
- package/lib/tree.component.module.d.ts +3 -1
- package/lib/tree.data-source.d.ts +9 -4
- package/package.json +1 -1
package/bundles/rxap-tree.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('@angular/cdk/tree'), require('@angular/cdk/collections'), require('rxjs/operators'), require('@rxap/data-source'), require('@rxap/utilities'), require('@angular/core'), require('@rxap/utilities/rxjs'), require('@angular/cdk/portal'), require('@angular/material/tree'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/progress-spinner'), require('@angular/material/divider'), require('@angular/flex-layout/flex'), require('@angular/common'), require('@angular/flex-layout/extended'), require('@rxap/material-directives/icon'), require('@rxap/contenteditable'), require('@angular/flex-layout')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@rxap/tree', ['exports', 'rxjs', '@angular/cdk/tree', '@angular/cdk/collections', 'rxjs/operators', '@rxap/data-source', '@rxap/utilities', '@angular/core', '@rxap/utilities/rxjs', '@angular/cdk/portal', '@angular/material/tree', '@angular/material/icon', '@angular/material/button', '@angular/material/progress-spinner', '@angular/material/divider', '@angular/flex-layout/flex', '@angular/common', '@angular/flex-layout/extended', '@rxap/material-directives/icon', '@rxap/contenteditable', '@angular/flex-layout'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.tree = {}), global.rxjs, global.ng.cdk.tree, global.ng.cdk.collections, global.rxjs.operators, global.dataSource, global.utilities, global.ng.core, global.rxjs$1, global.ng.cdk.portal, global.ng.material.tree, global.ng.material.icon, global.ng.material.button, global.ng.material.progressSpinner, global.ng.material.divider, global.ng.flexLayout.flex, global.ng.common, global.ng.flexLayout.extended, global.
|
|
5
|
-
}(this, (function (exports, rxjs, tree, collections, operators, dataSource, utilities, i0, rxjs$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('@angular/cdk/tree'), require('@angular/cdk/collections'), require('rxjs/operators'), require('@rxap/data-source'), require('@rxap/utilities'), require('@angular/core'), require('@rxap/utilities/rxjs'), require('@angular/cdk/portal'), require('@angular/material/progress-bar'), require('@angular/material/tree'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/button'), require('@angular/material/progress-spinner'), require('@angular/material/divider'), require('@angular/flex-layout/flex'), require('@angular/common'), require('@angular/flex-layout/extended'), require('@rxap/material-directives/icon'), require('@rxap/contenteditable'), require('@angular/flex-layout')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@rxap/tree', ['exports', 'rxjs', '@angular/cdk/tree', '@angular/cdk/collections', 'rxjs/operators', '@rxap/data-source', '@rxap/utilities', '@angular/core', '@rxap/utilities/rxjs', '@angular/cdk/portal', '@angular/material/progress-bar', '@angular/material/tree', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/button', '@angular/material/progress-spinner', '@angular/material/divider', '@angular/flex-layout/flex', '@angular/common', '@angular/flex-layout/extended', '@rxap/material-directives/icon', '@rxap/contenteditable', '@angular/flex-layout'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.tree = {}), global.rxjs, global.ng.cdk.tree, global.ng.cdk.collections, global.rxjs.operators, global.dataSource, global.utilities, global.ng.core, global.rxjs$1, global.ng.cdk.portal, global.ng.material.progressBar, global.ng.material.tree, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.button, global.ng.material.progressSpinner, global.ng.material.divider, global.ng.flexLayout.flex, global.ng.common, global.ng.flexLayout.extended, global.i11, global.i12, global.ng.flexLayout));
|
|
5
|
+
}(this, (function (exports, rxjs, tree, collections, operators, dataSource, utilities, i0, rxjs$1, i13, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, flexLayout) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var
|
|
28
|
+
var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
|
|
29
29
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
30
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
31
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
37
37
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
38
38
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
39
|
+
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
40
|
+
var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
|
|
39
41
|
|
|
40
42
|
/*! *****************************************************************************
|
|
41
43
|
Copyright (c) Microsoft Corporation.
|
|
@@ -368,9 +370,12 @@
|
|
|
368
370
|
// im localStorage wird nur die id gespeichert.
|
|
369
371
|
_this._preSelected = [];
|
|
370
372
|
_this._data$ = new rxjs.BehaviorSubject([]);
|
|
373
|
+
_this.loading$ = new rxjs$1.ToggleSubject(true);
|
|
371
374
|
_this.toDisplay = function () { return 'to display function not defined'; };
|
|
372
375
|
_this.getIcon = function () { return null; };
|
|
373
376
|
_this.hasDetails = function () { return true; };
|
|
377
|
+
_this.matchFilter = function () { return true; };
|
|
378
|
+
_this._refreshMatchFilter = new rxjs.Subject();
|
|
374
379
|
_this.tree$
|
|
375
380
|
.pipe(operators.map(function (tree) { return tree
|
|
376
381
|
.map(function (child) { return _this.flatTree(child); })
|
|
@@ -387,7 +392,9 @@
|
|
|
387
392
|
var _this = this;
|
|
388
393
|
return __generator(this, function (_b) {
|
|
389
394
|
switch (_b.label) {
|
|
390
|
-
case 0:
|
|
395
|
+
case 0:
|
|
396
|
+
this.loading$.enable();
|
|
397
|
+
return [4 /*yield*/, this.getRoot()];
|
|
391
398
|
case 1:
|
|
392
399
|
root = _b.sent();
|
|
393
400
|
if (!Array.isArray(root)) return [3 /*break*/, 3];
|
|
@@ -401,6 +408,7 @@
|
|
|
401
408
|
_b.label = 5;
|
|
402
409
|
case 5:
|
|
403
410
|
this.tree$.next(rootNodes);
|
|
411
|
+
this.loading$.disable();
|
|
404
412
|
return [2 /*return*/, rootNodes];
|
|
405
413
|
}
|
|
406
414
|
});
|
|
@@ -419,6 +427,9 @@
|
|
|
419
427
|
TreeDataSource.prototype.setTreeControl = function (treeControl) {
|
|
420
428
|
this.treeControl = treeControl;
|
|
421
429
|
};
|
|
430
|
+
TreeDataSource.prototype.setMatchFilter = function (matchFilter) {
|
|
431
|
+
this.matchFilter = matchFilter;
|
|
432
|
+
};
|
|
422
433
|
TreeDataSource.prototype.setToDisplay = function (toDisplay) {
|
|
423
434
|
if (toDisplay === void 0) { toDisplay = this.toDisplay; }
|
|
424
435
|
this.toDisplay = toDisplay;
|
|
@@ -450,8 +461,8 @@
|
|
|
450
461
|
case 0: return [4 /*yield*/, this.toNode(item, depth, onExpand, onCollapse, onSelect, onDeselect)];
|
|
451
462
|
case 1:
|
|
452
463
|
node = _b.sent();
|
|
453
|
-
if (
|
|
454
|
-
|
|
464
|
+
if (this.expanded.isSelected(node.id)) {
|
|
465
|
+
node
|
|
455
466
|
.expand()
|
|
456
467
|
.then(function () {
|
|
457
468
|
// TODO : remove redundant this.expanded SelectionModel. Only store expanded nodes in this.treeControl.expansionModel
|
|
@@ -463,20 +474,17 @@
|
|
|
463
474
|
_this.treeControl.expansionModel.select(node);
|
|
464
475
|
console.debug("Restore expand for node '" + node.id + "' SUCCESSFULLY");
|
|
465
476
|
})
|
|
466
|
-
.catch(function () { return console.debug("Restore expand for node '" + node.id + "' FAILED"); })
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
_b.label = 3;
|
|
470
|
-
case 3:
|
|
471
|
-
if (!this._preSelected.includes(node.id)) return [3 /*break*/, 5];
|
|
477
|
+
.catch(function () { return console.debug("Restore expand for node '" + node.id + "' FAILED"); });
|
|
478
|
+
}
|
|
479
|
+
if (!this._preSelected.includes(node.id)) return [3 /*break*/, 3];
|
|
472
480
|
return [4 /*yield*/, node
|
|
473
481
|
.select()
|
|
474
482
|
.then(function () { return console.debug("Restore select for node '" + node.id + "' SUCCESSFULLY"); })
|
|
475
483
|
.catch(function () { return console.debug("Restore select for node '" + node.id + "' FAILED"); })];
|
|
476
|
-
case
|
|
484
|
+
case 2:
|
|
477
485
|
_b.sent();
|
|
478
|
-
_b.label =
|
|
479
|
-
case
|
|
486
|
+
_b.label = 3;
|
|
487
|
+
case 3: return [2 /*return*/, node];
|
|
480
488
|
}
|
|
481
489
|
});
|
|
482
490
|
});
|
|
@@ -539,56 +547,21 @@
|
|
|
539
547
|
};
|
|
540
548
|
// TODO : find better solution to allow the overwrite of the toNode method
|
|
541
549
|
// without losing the custom preselect and preexpand function
|
|
542
|
-
TreeDataSource.prototype.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
if (change.added) {
|
|
547
|
-
change.added.forEach(function (node) { return node.expand(); });
|
|
548
|
-
}
|
|
549
|
-
if (change.removed) {
|
|
550
|
-
change.removed
|
|
551
|
-
.slice()
|
|
552
|
-
.reverse()
|
|
553
|
-
.forEach(function (node) { return node.collapse(); });
|
|
554
|
-
}
|
|
550
|
+
TreeDataSource.prototype.getNodeById = function (id) {
|
|
551
|
+
function getNodeById(node, nodeId) {
|
|
552
|
+
if (node.id === nodeId) {
|
|
553
|
+
return node;
|
|
555
554
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
if (this.tree$.value.length === 0) {
|
|
559
|
-
loadRoot = this.getTreeRoot();
|
|
560
|
-
}
|
|
561
|
-
return rxjs.from(loadRoot).pipe(operators.tap(function (rootNodes) {
|
|
562
|
-
if (rootNodes) {
|
|
563
|
-
var promises = [];
|
|
564
|
-
if (_this.metadata.selectMultiple) {
|
|
565
|
-
if (!_this.selected.hasValue()) {
|
|
566
|
-
promises.push.apply(promises, __spreadArray([], __read(rootNodes
|
|
567
|
-
.filter(function (node) { return node.hasDetails; })
|
|
568
|
-
.map(function (node) { return node.select(); }))));
|
|
569
|
-
}
|
|
570
|
-
if (!_this.expanded.hasValue()) {
|
|
571
|
-
promises.push.apply(promises, __spreadArray([], __read(rootNodes
|
|
572
|
-
.filter(function (node) { return node.hasChildren; })
|
|
573
|
-
.map(function (node) { return node.expand(); }))));
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
else if (rootNodes.length) {
|
|
577
|
-
var rootNode = rootNodes[0];
|
|
578
|
-
if (!_this.selected.hasValue()) {
|
|
579
|
-
// TODO : rename hasDetails to isSelectable
|
|
580
|
-
if (rootNode.hasDetails) {
|
|
581
|
-
promises.push(rootNode.select());
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
if (!_this.expanded.hasValue()) {
|
|
585
|
-
promises.push(rootNode.expand());
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
return Promise.all(promises);
|
|
555
|
+
if (node.hasNode(nodeId)) {
|
|
556
|
+
return node.getNode(nodeId);
|
|
589
557
|
}
|
|
590
|
-
|
|
591
|
-
|
|
558
|
+
else {
|
|
559
|
+
return null;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return (this.tree$.value
|
|
563
|
+
.map(function (node) { return getNodeById(node, id); })
|
|
564
|
+
.filter(Boolean)[0] || null);
|
|
592
565
|
};
|
|
593
566
|
TreeDataSource.prototype.toNode = function (item, depth, onExpand, onCollapse, onSelect, onDeselect) {
|
|
594
567
|
if (depth === void 0) { depth = 0; }
|
|
@@ -638,37 +611,59 @@
|
|
|
638
611
|
this._selectedLocalStorageSubscription.unsubscribe();
|
|
639
612
|
}
|
|
640
613
|
};
|
|
641
|
-
TreeDataSource.prototype.
|
|
642
|
-
|
|
643
|
-
if (node.id === nodeId) {
|
|
644
|
-
return node;
|
|
645
|
-
}
|
|
646
|
-
if (node.hasNode(nodeId)) {
|
|
647
|
-
return node.getNode(nodeId);
|
|
648
|
-
}
|
|
649
|
-
else {
|
|
650
|
-
return null;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
return (this.tree$.value
|
|
654
|
-
.map(function (node) { return getNodeById(node, id); })
|
|
655
|
-
.filter(Boolean)[0] || null);
|
|
614
|
+
TreeDataSource.prototype.refreshMatchFilter = function () {
|
|
615
|
+
this._refreshMatchFilter.next();
|
|
656
616
|
};
|
|
657
|
-
TreeDataSource.prototype.
|
|
617
|
+
TreeDataSource.prototype._connect = function (collectionViewer) {
|
|
658
618
|
var _this = this;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
619
|
+
this.treeControl.expansionModel.changed.subscribe(function (change) {
|
|
620
|
+
if (isSelectionChange(change)) {
|
|
621
|
+
if (change.added) {
|
|
622
|
+
change.added.forEach(function (node) { return node.expand(); });
|
|
623
|
+
}
|
|
624
|
+
if (change.removed) {
|
|
625
|
+
change.removed
|
|
626
|
+
.slice()
|
|
627
|
+
.reverse()
|
|
628
|
+
.forEach(function (node) { return node.collapse(); });
|
|
629
|
+
}
|
|
666
630
|
}
|
|
631
|
+
});
|
|
632
|
+
var loadRoot = Promise.resolve();
|
|
633
|
+
if (this.tree$.value.length === 0) {
|
|
634
|
+
loadRoot = this.getTreeRoot();
|
|
667
635
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
636
|
+
return rxjs.from(loadRoot).pipe(operators.tap(function (rootNodes) {
|
|
637
|
+
if (rootNodes) {
|
|
638
|
+
var promises = [];
|
|
639
|
+
if (_this.metadata.selectMultiple) {
|
|
640
|
+
if (!_this.selected.hasValue()) {
|
|
641
|
+
promises.push.apply(promises, __spreadArray([], __read(rootNodes
|
|
642
|
+
.filter(function (node) { return node.hasDetails; })
|
|
643
|
+
.map(function (node) { return node.select(); }))));
|
|
644
|
+
}
|
|
645
|
+
if (!_this.expanded.hasValue()) {
|
|
646
|
+
promises.push.apply(promises, __spreadArray([], __read(rootNodes
|
|
647
|
+
.filter(function (node) { return node.hasChildren; })
|
|
648
|
+
.map(function (node) { return node.expand(); }))));
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
else if (rootNodes.length) {
|
|
652
|
+
var rootNode = rootNodes[0];
|
|
653
|
+
if (!_this.selected.hasValue()) {
|
|
654
|
+
// TODO : rename hasDetails to isSelectable
|
|
655
|
+
if (rootNode.hasDetails) {
|
|
656
|
+
promises.push(rootNode.select());
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
if (!_this.expanded.hasValue()) {
|
|
660
|
+
promises.push(rootNode.expand());
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
return Promise.all(promises);
|
|
664
|
+
}
|
|
665
|
+
return Promise.resolve();
|
|
666
|
+
}), operators.switchMap(function () { return rxjs.merge(collectionViewer.viewChange, _this._data$).pipe(operators.map(function () { return _this._data$.value; })); }), operators.switchMap(function (nodeList) { return _this._refreshMatchFilter.pipe(operators.startWith(null), operators.map(function () { return nodeList.filter(function (node) { return _this.matchFilter(node); }); })); }));
|
|
672
667
|
};
|
|
673
668
|
TreeDataSource.prototype.refresh = function () {
|
|
674
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -740,6 +735,26 @@
|
|
|
740
735
|
});
|
|
741
736
|
});
|
|
742
737
|
};
|
|
738
|
+
TreeDataSource.prototype.initSelected = function () {
|
|
739
|
+
var _this = this;
|
|
740
|
+
var key = utilities.joinPath('rxap/tree', this.id, 'selected');
|
|
741
|
+
if (this.metadata.cacheSelected) {
|
|
742
|
+
if (localStorage.getItem(key)) {
|
|
743
|
+
try {
|
|
744
|
+
this._preSelected = JSON.parse(localStorage.getItem(key));
|
|
745
|
+
}
|
|
746
|
+
catch (e) {
|
|
747
|
+
console.debug('parse expanded tree data source nodes failed');
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
this.selected = new collections.SelectionModel(!!this.metadata.selectMultiple, []);
|
|
752
|
+
if (this.metadata.cacheSelected) {
|
|
753
|
+
this._selectedLocalStorageSubscription = this.selected.changed
|
|
754
|
+
.pipe(operators.tap(function () { return localStorage.setItem(key, JSON.stringify(_this.selected.selected.map(function (s) { return s.id; }))); }))
|
|
755
|
+
.subscribe();
|
|
756
|
+
}
|
|
757
|
+
};
|
|
743
758
|
TreeDataSource.prototype.reset = function () {
|
|
744
759
|
this.selected.clear();
|
|
745
760
|
this.expanded.clear();
|
|
@@ -749,18 +764,22 @@
|
|
|
749
764
|
var _this = this;
|
|
750
765
|
var key = utilities.joinPath('rxap/tree', this.id, 'expanded');
|
|
751
766
|
var expanded = [];
|
|
752
|
-
if (
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
767
|
+
if (this.metadata.cacheExpanded) {
|
|
768
|
+
if (localStorage.getItem(key)) {
|
|
769
|
+
try {
|
|
770
|
+
expanded = JSON.parse(localStorage.getItem(key));
|
|
771
|
+
}
|
|
772
|
+
catch (e) {
|
|
773
|
+
console.debug('parse expanded tree data source nodes failed');
|
|
774
|
+
}
|
|
758
775
|
}
|
|
759
776
|
}
|
|
760
777
|
this.expanded = new collections.SelectionModel(this.metadata.expandMultiple !== false, expanded);
|
|
761
|
-
|
|
762
|
-
.
|
|
763
|
-
|
|
778
|
+
if (this.metadata.cacheExpanded) {
|
|
779
|
+
this._expandedLocalStorageSubscription = this.expanded.changed
|
|
780
|
+
.pipe(operators.tap(function () { return localStorage.setItem(key, JSON.stringify(_this.expanded.selected)); }))
|
|
781
|
+
.subscribe();
|
|
782
|
+
}
|
|
764
783
|
};
|
|
765
784
|
return TreeDataSource;
|
|
766
785
|
}(dataSource.BaseDataSource));
|
|
@@ -813,6 +832,7 @@
|
|
|
813
832
|
this.viewContainerRef = viewContainerRef;
|
|
814
833
|
this.cdr = cdr;
|
|
815
834
|
this.renderer = renderer;
|
|
835
|
+
this.multiple = false;
|
|
816
836
|
this.hideLeafIcon = false;
|
|
817
837
|
this.details = new i0.EventEmitter();
|
|
818
838
|
this.portal = null;
|
|
@@ -843,10 +863,12 @@
|
|
|
843
863
|
});
|
|
844
864
|
TreeComponent.prototype.ngOnInit = function () {
|
|
845
865
|
var _this = this;
|
|
866
|
+
var _a;
|
|
846
867
|
this.dataSource.setTreeControl(this.treeControl);
|
|
847
868
|
this.dataSource.setToDisplay(this.toDisplay);
|
|
848
869
|
this.dataSource.setGetIcon(this.getIcon);
|
|
849
870
|
this.dataSource.setHasDetails(this.hasDetails);
|
|
871
|
+
this.multiple = (_a = this.dataSource.metadata.selectMultiple) !== null && _a !== void 0 ? _a : this.multiple;
|
|
850
872
|
if (this.dataSource.selected.hasValue()) {
|
|
851
873
|
this.dataSource.selected.selected.forEach(function (node) { return _this.openDetails(node); });
|
|
852
874
|
}
|
|
@@ -859,7 +881,7 @@
|
|
|
859
881
|
};
|
|
860
882
|
TreeComponent.prototype.openDetails = function (node) {
|
|
861
883
|
if (this.content) {
|
|
862
|
-
this.portal = new
|
|
884
|
+
this.portal = new i13.TemplatePortal(this.content.template, this.viewContainerRef, {
|
|
863
885
|
$implicit: node.item,
|
|
864
886
|
node: node,
|
|
865
887
|
});
|
|
@@ -892,7 +914,7 @@
|
|
|
892
914
|
return TreeComponent;
|
|
893
915
|
}());
|
|
894
916
|
TreeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponent, deps: [{ token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: RXAP_TREE_CONTENT_EDITABLE_METHOD, optional: true }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
895
|
-
TreeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: TreeComponent, selector: "rxap-tree", inputs: { dataSource: "dataSource", contentEditableMethod: "contentEditableMethod", toDisplay: "toDisplay", getIcon: "getIcon", hasDetails: "hasDetails", hideLeafIcon: "hideLeafIcon" }, outputs: { details: "details" }, host: { listeners: { "mouseup": "onMouseup()", "mousemove": "onMousemove($event)" } }, queries: [{ propertyName: "content", first: true, predicate: TreeContentDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "treeContainer", first: true, predicate: ["treeContainer"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div class=\"container\" fxLayout=\"row\">\n <div #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [".container{height:100%}.tree-view{background-color:transparent;background-color:initial}.details,.tree-container{max-height:calc(100vh - 64px - 32px);overflow-y:auto}.tree-container{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.divider{cursor:ew-resize;padding:12px}.divider ::ng-deep .mat-divider{height:100%}"], components: [{ type: i1__namespace.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4__namespace.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "mode", "diameter", "strokeWidth", "value"], exportAs: ["matProgressSpinner"] }, { type: i5__namespace.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i6__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i6__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i1__namespace.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i1__namespace.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i6__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i8__namespace.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i9__namespace.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i1__namespace.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i10__namespace.ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { type: i6__namespace.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { type: i11__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
917
|
+
TreeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: TreeComponent, selector: "rxap-tree", inputs: { dataSource: "dataSource", contentEditableMethod: "contentEditableMethod", toDisplay: "toDisplay", getIcon: "getIcon", multiple: "multiple", hasDetails: "hasDetails", hideLeafIcon: "hideLeafIcon" }, outputs: { details: "details" }, host: { listeners: { "mouseup": "onMouseup()", "mousemove": "onMousemove($event)" } }, queries: [{ propertyName: "content", first: true, predicate: TreeContentDirective, descendants: true, static: true }], viewQueries: [{ propertyName: "treeContainer", first: true, predicate: ["treeContainer"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div class=\"container\" fxLayout=\"row\">\n <div #treeContainer class=\"tree-container\" fxFlex=\"nogrow\">\n <mat-progress-bar *ngIf=\"!dataSource || (dataSource.loading$ | async)\" mode=\"indeterminate\"></mat-progress-bar>\n <mat-tree *ngIf=\"dataSource; else loading\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\" class=\"tree-view\">\n\n <!-- Node without children -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon [fxHide]=\"hideLeafIcon\" fxFlex=\"40px\">subdirectory_arrow_right</mat-icon>\n <mat-icon *ngIf=\"node.icon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template [ngIf]=\"multiple\">\n <mat-checkbox (change)=\"node.toggleSelect()\" [checked]=\"node.selected\" [disabled]=\"!node.hasDetails\" fxFlex=\"nogrow\">{{ node.display }}</mat-checkbox>\n </ng-template>\n <ng-template [ngIf]=\"!multiple\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n [disabled]=\"!node.hasDetails\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n </div>\n </mat-tree-node>\n\n <!-- Node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button [attr.aria-label]=\"'toggle ' + node.filename\" mat-icon-button matTreeNodeToggle>\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <mat-icon *ngIf=\"node.icon; else withoutIcon\" [rxapIcon]=\"node.icon\" fxFlex=\"40px\"></mat-icon>\n <ng-template #withoutIcon>\n <div fxFlex=\"0\"></div>\n </ng-template>\n <ng-template [ngIfElse]=\"withoutDetails\" [ngIf]=\"node.hasDetails\">\n <button\n (click)=\"node.select()\"\n [color]=\"node.selected ? 'primary' : null\"\n fxFlex=\"nogrow\"\n mat-button\n >\n {{ node.display }}\n </button>\n </ng-template>\n <ng-template #withoutDetails>\n <span\n (change)=\"onContentEditableChange($event, node)\"\n [disabled]=\"!nodeDisplayEditable\"\n fxFlex=\"nogrow\"\n rxapContenteditable>\n {{ node.display }}\n </span>\n </ng-template>\n <mat-progress-spinner\n *ngIf=\"node.isLoading$ | async\"\n [diameter]=\"16\"\n fxFlex=\"nogrow\"\n fxFlexOffset=\"16px\"\n mode=\"indeterminate\"\n ></mat-progress-spinner>\n </div>\n </mat-tree-node>\n\n </mat-tree>\n </div>\n\n <div (mousedown)=\"onMousedown()\"\n class=\"divider\"\n fxFlex=\"nogrow\">\n <mat-divider\n [vertical]=\"true\"\n >\n </mat-divider>\n </div>\n\n <div class=\"details\" fxFlex=\"grow\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-template #loading>Load data source</ng-template>\n", styles: [".container{height:100%}.tree-view{background-color:transparent;background-color:initial}.details,.tree-container{max-height:calc(100vh - 64px - 32px);overflow-y:auto}.tree-container{min-width:256px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.divider{cursor:ew-resize;padding:12px}.divider ::ng-deep .mat-divider{height:100%}"], components: [{ type: i1__namespace.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i2__namespace.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i3__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i5__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6__namespace.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "mode", "diameter", "strokeWidth", "value"], exportAs: ["matProgressSpinner"] }, { type: i7__namespace.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i8__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i8__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i9__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i2__namespace.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i2__namespace.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i8__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i10__namespace.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i11__namespace.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i2__namespace.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i12__namespace.ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { type: i8__namespace.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { type: i13__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i9__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
896
918
|
__decorate([
|
|
897
919
|
utilities.Required,
|
|
898
920
|
__metadata("design:type", TreeDataSource)
|
|
@@ -933,6 +955,8 @@
|
|
|
933
955
|
type: i0.Input
|
|
934
956
|
}], getIcon: [{
|
|
935
957
|
type: i0.Input
|
|
958
|
+
}], multiple: [{
|
|
959
|
+
type: i0.Input
|
|
936
960
|
}], hasDetails: [{
|
|
937
961
|
type: i0.Input
|
|
938
962
|
}], content: [{
|
|
@@ -959,42 +983,48 @@
|
|
|
959
983
|
return TreeComponentModule;
|
|
960
984
|
}());
|
|
961
985
|
TreeComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
962
|
-
TreeComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, declarations: [TreeComponent, TreeContentDirective], imports: [
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
986
|
+
TreeComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, declarations: [TreeComponent, TreeContentDirective], imports: [i9.CommonModule,
|
|
987
|
+
i2.MatTreeModule,
|
|
988
|
+
i5.MatButtonModule,
|
|
989
|
+
i3.MatIconModule,
|
|
966
990
|
flexLayout.FlexLayoutModule,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
991
|
+
i7.MatDividerModule,
|
|
992
|
+
i6.MatProgressSpinnerModule,
|
|
993
|
+
i13.PortalModule,
|
|
994
|
+
i12.ContenteditableDirectiveModule,
|
|
995
|
+
i11.IconDirectiveModule,
|
|
996
|
+
i4.MatCheckboxModule,
|
|
997
|
+
i1.MatProgressBarModule], exports: [TreeComponent, TreeContentDirective] });
|
|
972
998
|
TreeComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, imports: [[
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
999
|
+
i9.CommonModule,
|
|
1000
|
+
i2.MatTreeModule,
|
|
1001
|
+
i5.MatButtonModule,
|
|
1002
|
+
i3.MatIconModule,
|
|
977
1003
|
flexLayout.FlexLayoutModule,
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1004
|
+
i7.MatDividerModule,
|
|
1005
|
+
i6.MatProgressSpinnerModule,
|
|
1006
|
+
i13.PortalModule,
|
|
1007
|
+
i12.ContenteditableDirectiveModule,
|
|
1008
|
+
i11.IconDirectiveModule,
|
|
1009
|
+
i4.MatCheckboxModule,
|
|
1010
|
+
i1.MatProgressBarModule
|
|
983
1011
|
]] });
|
|
984
1012
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, decorators: [{
|
|
985
1013
|
type: i0.NgModule,
|
|
986
1014
|
args: [{
|
|
987
1015
|
imports: [
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1016
|
+
i9.CommonModule,
|
|
1017
|
+
i2.MatTreeModule,
|
|
1018
|
+
i5.MatButtonModule,
|
|
1019
|
+
i3.MatIconModule,
|
|
992
1020
|
flexLayout.FlexLayoutModule,
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1021
|
+
i7.MatDividerModule,
|
|
1022
|
+
i6.MatProgressSpinnerModule,
|
|
1023
|
+
i13.PortalModule,
|
|
1024
|
+
i12.ContenteditableDirectiveModule,
|
|
1025
|
+
i11.IconDirectiveModule,
|
|
1026
|
+
i4.MatCheckboxModule,
|
|
1027
|
+
i1.MatProgressBarModule
|
|
998
1028
|
],
|
|
999
1029
|
declarations: [TreeComponent, TreeContentDirective],
|
|
1000
1030
|
exports: [TreeComponent, TreeContentDirective],
|