@rxap/tree 12.3.1 → 12.4.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.
- package/bundles/rxap-tree.umd.js +158 -138
- package/bundles/rxap-tree.umd.js.map +1 -1
- package/esm2015/lib/tree-content.directive.js +3 -3
- package/esm2015/lib/tree-content.directive.js.map +1 -1
- package/esm2015/lib/tree.component.js +16 -15
- package/esm2015/lib/tree.component.js.map +1 -1
- package/esm2015/lib/tree.component.module.js +11 -7
- package/esm2015/lib/tree.component.module.js.map +1 -1
- package/esm2015/lib/tree.data-source.js +106 -88
- package/esm2015/lib/tree.data-source.js.map +1 -1
- package/fesm2015/rxap-tree.js +135 -112
- package/fesm2015/rxap-tree.js.map +1 -1
- package/lib/tree.component.module.d.ts +2 -1
- package/lib/tree.data-source.d.ts +7 -3
- package/package.json +2 -2
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +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/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/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.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.
|
|
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;
|
|
@@ -13,19 +13,17 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var
|
|
26
|
+
var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
|
|
29
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
28
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
29
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
@@ -37,6 +35,7 @@
|
|
|
37
35
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
38
36
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
39
37
|
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
38
|
+
var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
|
|
40
39
|
|
|
41
40
|
/*! *****************************************************************************
|
|
42
41
|
Copyright (c) Microsoft Corporation.
|
|
@@ -373,6 +372,8 @@
|
|
|
373
372
|
_this.toDisplay = function () { return 'to display function not defined'; };
|
|
374
373
|
_this.getIcon = function () { return null; };
|
|
375
374
|
_this.hasDetails = function () { return true; };
|
|
375
|
+
_this.matchFilter = function () { return true; };
|
|
376
|
+
_this._refreshMatchFilter = new rxjs.Subject();
|
|
376
377
|
_this.tree$
|
|
377
378
|
.pipe(operators.map(function (tree) { return tree
|
|
378
379
|
.map(function (child) { return _this.flatTree(child); })
|
|
@@ -424,6 +425,9 @@
|
|
|
424
425
|
TreeDataSource.prototype.setTreeControl = function (treeControl) {
|
|
425
426
|
this.treeControl = treeControl;
|
|
426
427
|
};
|
|
428
|
+
TreeDataSource.prototype.setMatchFilter = function (matchFilter) {
|
|
429
|
+
this.matchFilter = matchFilter;
|
|
430
|
+
};
|
|
427
431
|
TreeDataSource.prototype.setToDisplay = function (toDisplay) {
|
|
428
432
|
if (toDisplay === void 0) { toDisplay = this.toDisplay; }
|
|
429
433
|
this.toDisplay = toDisplay;
|
|
@@ -541,56 +545,21 @@
|
|
|
541
545
|
};
|
|
542
546
|
// TODO : find better solution to allow the overwrite of the toNode method
|
|
543
547
|
// without losing the custom preselect and preexpand function
|
|
544
|
-
TreeDataSource.prototype.
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
if (change.added) {
|
|
549
|
-
change.added.forEach(function (node) { return node.expand(); });
|
|
550
|
-
}
|
|
551
|
-
if (change.removed) {
|
|
552
|
-
change.removed
|
|
553
|
-
.slice()
|
|
554
|
-
.reverse()
|
|
555
|
-
.forEach(function (node) { return node.collapse(); });
|
|
556
|
-
}
|
|
548
|
+
TreeDataSource.prototype.getNodeById = function (id) {
|
|
549
|
+
function getNodeById(node, nodeId) {
|
|
550
|
+
if (node.id === nodeId) {
|
|
551
|
+
return node;
|
|
557
552
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
if (this.tree$.value.length === 0) {
|
|
561
|
-
loadRoot = this.getTreeRoot();
|
|
562
|
-
}
|
|
563
|
-
return rxjs.from(loadRoot).pipe(operators.tap(function (rootNodes) {
|
|
564
|
-
if (rootNodes) {
|
|
565
|
-
var promises = [];
|
|
566
|
-
if (_this.metadata.selectMultiple) {
|
|
567
|
-
if (!_this.selected.hasValue()) {
|
|
568
|
-
promises.push.apply(promises, __spreadArray([], __read(rootNodes
|
|
569
|
-
.filter(function (node) { return node.hasDetails; })
|
|
570
|
-
.map(function (node) { return node.select(); }))));
|
|
571
|
-
}
|
|
572
|
-
if (!_this.expanded.hasValue()) {
|
|
573
|
-
promises.push.apply(promises, __spreadArray([], __read(rootNodes
|
|
574
|
-
.filter(function (node) { return node.hasChildren; })
|
|
575
|
-
.map(function (node) { return node.expand(); }))));
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
else if (rootNodes.length) {
|
|
579
|
-
var rootNode = rootNodes[0];
|
|
580
|
-
if (!_this.selected.hasValue()) {
|
|
581
|
-
// TODO : rename hasDetails to isSelectable
|
|
582
|
-
if (rootNode.hasDetails) {
|
|
583
|
-
promises.push(rootNode.select());
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
if (!_this.expanded.hasValue()) {
|
|
587
|
-
promises.push(rootNode.expand());
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
return Promise.all(promises);
|
|
553
|
+
if (node.hasNode(nodeId)) {
|
|
554
|
+
return node.getNode(nodeId);
|
|
591
555
|
}
|
|
592
|
-
|
|
593
|
-
|
|
556
|
+
else {
|
|
557
|
+
return null;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
return (this.tree$.value
|
|
561
|
+
.map(function (node) { return getNodeById(node, id); })
|
|
562
|
+
.filter(Boolean)[0] || null);
|
|
594
563
|
};
|
|
595
564
|
TreeDataSource.prototype.toNode = function (item, depth, onExpand, onCollapse, onSelect, onDeselect) {
|
|
596
565
|
if (depth === void 0) { depth = 0; }
|
|
@@ -616,7 +585,9 @@
|
|
|
616
585
|
}
|
|
617
586
|
var flatTree = function (node) {
|
|
618
587
|
if (!Array.isArray(node.children)) {
|
|
619
|
-
|
|
588
|
+
if (i0.isDevMode()) {
|
|
589
|
+
console.log(node);
|
|
590
|
+
}
|
|
620
591
|
throw new Error('Node has not defined children');
|
|
621
592
|
}
|
|
622
593
|
if (node.expanded || _this.expanded.isSelected(node.id)) {
|
|
@@ -640,37 +611,59 @@
|
|
|
640
611
|
this._selectedLocalStorageSubscription.unsubscribe();
|
|
641
612
|
}
|
|
642
613
|
};
|
|
643
|
-
TreeDataSource.prototype.
|
|
644
|
-
|
|
645
|
-
if (node.id === nodeId) {
|
|
646
|
-
return node;
|
|
647
|
-
}
|
|
648
|
-
if (node.hasNode(nodeId)) {
|
|
649
|
-
return node.getNode(nodeId);
|
|
650
|
-
}
|
|
651
|
-
else {
|
|
652
|
-
return null;
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
return (this.tree$.value
|
|
656
|
-
.map(function (node) { return getNodeById(node, id); })
|
|
657
|
-
.filter(Boolean)[0] || null);
|
|
614
|
+
TreeDataSource.prototype.refreshMatchFilter = function () {
|
|
615
|
+
this._refreshMatchFilter.next();
|
|
658
616
|
};
|
|
659
|
-
TreeDataSource.prototype.
|
|
617
|
+
TreeDataSource.prototype._connect = function (collectionViewer) {
|
|
660
618
|
var _this = this;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
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
|
+
}
|
|
668
630
|
}
|
|
631
|
+
});
|
|
632
|
+
var loadRoot = Promise.resolve();
|
|
633
|
+
if (this.tree$.value.length === 0) {
|
|
634
|
+
loadRoot = this.getTreeRoot();
|
|
669
635
|
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
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); }); })); }));
|
|
674
667
|
};
|
|
675
668
|
TreeDataSource.prototype.refresh = function () {
|
|
676
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -742,6 +735,26 @@
|
|
|
742
735
|
});
|
|
743
736
|
});
|
|
744
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
|
+
};
|
|
745
758
|
TreeDataSource.prototype.reset = function () {
|
|
746
759
|
this.selected.clear();
|
|
747
760
|
this.expanded.clear();
|
|
@@ -751,28 +764,32 @@
|
|
|
751
764
|
var _this = this;
|
|
752
765
|
var key = utilities.joinPath('rxap/tree', this.id, 'expanded');
|
|
753
766
|
var expanded = [];
|
|
754
|
-
if (
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
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
|
+
}
|
|
760
775
|
}
|
|
761
776
|
}
|
|
762
777
|
this.expanded = new collections.SelectionModel(this.metadata.expandMultiple !== false, expanded);
|
|
763
|
-
|
|
764
|
-
.
|
|
765
|
-
|
|
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
|
+
}
|
|
766
783
|
};
|
|
767
784
|
return TreeDataSource;
|
|
768
785
|
}(dataSource.BaseDataSource));
|
|
769
|
-
TreeDataSource.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
770
|
-
TreeDataSource.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
786
|
+
TreeDataSource.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeDataSource, deps: [{ token: RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD }, { token: RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD }, { token: dataSource.RXAP_DATA_SOURCE_METADATA }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
787
|
+
TreeDataSource.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeDataSource });
|
|
771
788
|
__decorate([
|
|
772
789
|
utilities.Required,
|
|
773
790
|
__metadata("design:type", tree.FlatTreeControl)
|
|
774
791
|
], TreeDataSource.prototype, "treeControl", void 0);
|
|
775
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
792
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeDataSource, decorators: [{
|
|
776
793
|
type: i0.Injectable
|
|
777
794
|
}], ctorParameters: function () {
|
|
778
795
|
return [{ type: undefined, decorators: [{
|
|
@@ -793,9 +810,9 @@
|
|
|
793
810
|
}
|
|
794
811
|
return TreeContentDirective;
|
|
795
812
|
}());
|
|
796
|
-
TreeContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
797
|
-
TreeContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
798
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
813
|
+
TreeContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeContentDirective, deps: [{ token: i0.TemplateRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
814
|
+
TreeContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TreeContentDirective, selector: "ng-template[rxapTreeContent]", ngImport: i0__namespace });
|
|
815
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeContentDirective, decorators: [{
|
|
799
816
|
type: i0.Directive,
|
|
800
817
|
args: [{
|
|
801
818
|
// tslint:disable-next-line:directive-selector
|
|
@@ -864,7 +881,7 @@
|
|
|
864
881
|
};
|
|
865
882
|
TreeComponent.prototype.openDetails = function (node) {
|
|
866
883
|
if (this.content) {
|
|
867
|
-
this.portal = new
|
|
884
|
+
this.portal = new i13.TemplatePortal(this.content.template, this.viewContainerRef, {
|
|
868
885
|
$implicit: node.item,
|
|
869
886
|
node: node,
|
|
870
887
|
});
|
|
@@ -896,8 +913,8 @@
|
|
|
896
913
|
};
|
|
897
914
|
return TreeComponent;
|
|
898
915
|
}());
|
|
899
|
-
TreeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
900
|
-
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-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:-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.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: i4__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: i5__namespace.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "mode", "diameter", "strokeWidth", "value"], exportAs: ["matProgressSpinner"] }, { type: i6__namespace.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i7__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: i7__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: i8__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: i7__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: i9__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: i10__namespace.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i1__namespace.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i11__namespace.ContenteditableDirective, selector: "[rxapContenteditable]", inputs: ["rxapContenteditable", "disabled"], outputs: ["change"] }, { type: i7__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: i12__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], pipes: { "async": i8__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
916
|
+
TreeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", 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 });
|
|
917
|
+
TreeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
|
|
901
918
|
__decorate([
|
|
902
919
|
utilities.Required,
|
|
903
920
|
__metadata("design:type", TreeDataSource)
|
|
@@ -908,7 +925,7 @@
|
|
|
908
925
|
__metadata("design:paramtypes", [rxjs$1.Node]),
|
|
909
926
|
__metadata("design:returntype", void 0)
|
|
910
927
|
], TreeComponent.prototype, "openDetails", null);
|
|
911
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
928
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeComponent, decorators: [{
|
|
912
929
|
type: i0.Component,
|
|
913
930
|
args: [{
|
|
914
931
|
// tslint:disable-next-line:component-selector
|
|
@@ -965,46 +982,49 @@
|
|
|
965
982
|
}
|
|
966
983
|
return TreeComponentModule;
|
|
967
984
|
}());
|
|
968
|
-
TreeComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
969
|
-
TreeComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
985
|
+
TreeComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
986
|
+
TreeComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeComponentModule, declarations: [TreeComponent, TreeContentDirective], imports: [i9.CommonModule,
|
|
987
|
+
i2.MatTreeModule,
|
|
988
|
+
i5.MatButtonModule,
|
|
989
|
+
i3.MatIconModule,
|
|
973
990
|
flexLayout.FlexLayoutModule,
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
991
|
+
i7.MatDividerModule,
|
|
992
|
+
i6.MatProgressSpinnerModule,
|
|
993
|
+
i13.PortalModule,
|
|
994
|
+
i12.ContenteditableDirectiveModule,
|
|
995
|
+
i11.IconDirectiveModule,
|
|
996
|
+
i4.MatCheckboxModule,
|
|
997
|
+
i1.MatProgressBarModule], exports: [TreeComponent, TreeContentDirective] });
|
|
998
|
+
TreeComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeComponentModule, imports: [[
|
|
999
|
+
i9.CommonModule,
|
|
1000
|
+
i2.MatTreeModule,
|
|
1001
|
+
i5.MatButtonModule,
|
|
1002
|
+
i3.MatIconModule,
|
|
985
1003
|
flexLayout.FlexLayoutModule,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1004
|
+
i7.MatDividerModule,
|
|
1005
|
+
i6.MatProgressSpinnerModule,
|
|
1006
|
+
i13.PortalModule,
|
|
1007
|
+
i12.ContenteditableDirectiveModule,
|
|
1008
|
+
i11.IconDirectiveModule,
|
|
1009
|
+
i4.MatCheckboxModule,
|
|
1010
|
+
i1.MatProgressBarModule
|
|
992
1011
|
]] });
|
|
993
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1012
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TreeComponentModule, decorators: [{
|
|
994
1013
|
type: i0.NgModule,
|
|
995
1014
|
args: [{
|
|
996
1015
|
imports: [
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1016
|
+
i9.CommonModule,
|
|
1017
|
+
i2.MatTreeModule,
|
|
1018
|
+
i5.MatButtonModule,
|
|
1019
|
+
i3.MatIconModule,
|
|
1001
1020
|
flexLayout.FlexLayoutModule,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1021
|
+
i7.MatDividerModule,
|
|
1022
|
+
i6.MatProgressSpinnerModule,
|
|
1023
|
+
i13.PortalModule,
|
|
1024
|
+
i12.ContenteditableDirectiveModule,
|
|
1025
|
+
i11.IconDirectiveModule,
|
|
1026
|
+
i4.MatCheckboxModule,
|
|
1027
|
+
i1.MatProgressBarModule
|
|
1008
1028
|
],
|
|
1009
1029
|
declarations: [TreeComponent, TreeContentDirective],
|
|
1010
1030
|
exports: [TreeComponent, TreeContentDirective],
|
|
@@ -1027,5 +1047,5 @@
|
|
|
1027
1047
|
|
|
1028
1048
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1029
1049
|
|
|
1030
|
-
}))
|
|
1050
|
+
}));
|
|
1031
1051
|
//# sourceMappingURL=rxap-tree.umd.js.map
|