@rxap/tree 12.2.0 → 12.3.2

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.
@@ -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.i9, global.i10, global.ng.flexLayout));
5
- }(this, (function (exports, rxjs, tree, collections, operators, dataSource, utilities, i0, rxjs$1, i11, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, flexLayout) { 'use strict';
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.i10, global.i11, global.ng.flexLayout));
5
+ }(this, (function (exports, rxjs, tree, collections, operators, dataSource, utilities, i0, rxjs$1, i12, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, 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 i11__namespace = /*#__PURE__*/_interopNamespace(i11);
28
+ var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
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,7 @@
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);
39
40
 
40
41
  /*! *****************************************************************************
41
42
  Copyright (c) Microsoft Corporation.
@@ -368,9 +369,12 @@
368
369
  // im localStorage wird nur die id gespeichert.
369
370
  _this._preSelected = [];
370
371
  _this._data$ = new rxjs.BehaviorSubject([]);
372
+ _this.loading$ = new rxjs$1.ToggleSubject(true);
371
373
  _this.toDisplay = function () { return 'to display function not defined'; };
372
374
  _this.getIcon = function () { return null; };
373
375
  _this.hasDetails = function () { return true; };
376
+ _this.matchFilter = function () { return true; };
377
+ _this._refreshMatchFilter = new rxjs.Subject();
374
378
  _this.tree$
375
379
  .pipe(operators.map(function (tree) { return tree
376
380
  .map(function (child) { return _this.flatTree(child); })
@@ -387,16 +391,23 @@
387
391
  var _this = this;
388
392
  return __generator(this, function (_b) {
389
393
  switch (_b.label) {
390
- case 0: return [4 /*yield*/, this.getRoot()];
394
+ case 0:
395
+ this.loading$.enable();
396
+ return [4 /*yield*/, this.getRoot()];
391
397
  case 1:
392
398
  root = _b.sent();
393
- if (Array.isArray(root)) {
394
- rootNodes = root.map(function (node) { return _this._toNode(node); });
395
- }
396
- else {
397
- rootNodes = [this._toNode(root)];
398
- }
399
+ if (!Array.isArray(root)) return [3 /*break*/, 3];
400
+ return [4 /*yield*/, Promise.all(root.map(function (node) { return _this._toNode(node); }))];
401
+ case 2:
402
+ rootNodes = _b.sent();
403
+ return [3 /*break*/, 5];
404
+ case 3: return [4 /*yield*/, this._toNode(root)];
405
+ case 4:
406
+ rootNodes = [_b.sent()];
407
+ _b.label = 5;
408
+ case 5:
399
409
  this.tree$.next(rootNodes);
410
+ this.loading$.disable();
400
411
  return [2 /*return*/, rootNodes];
401
412
  }
402
413
  });
@@ -415,6 +426,9 @@
415
426
  TreeDataSource.prototype.setTreeControl = function (treeControl) {
416
427
  this.treeControl = treeControl;
417
428
  };
429
+ TreeDataSource.prototype.setMatchFilter = function (matchFilter) {
430
+ this.matchFilter = matchFilter;
431
+ };
418
432
  TreeDataSource.prototype.setToDisplay = function (toDisplay) {
419
433
  if (toDisplay === void 0) { toDisplay = this.toDisplay; }
420
434
  this.toDisplay = toDisplay;
@@ -433,55 +447,69 @@
433
447
  };
434
448
  // - the SelectModel that stores the selection into the local storage?
435
449
  TreeDataSource.prototype._toNode = function (item, depth, onExpand, onCollapse, onSelect, onDeselect) {
436
- var _this = this;
437
450
  if (depth === void 0) { depth = 0; }
438
451
  if (onExpand === void 0) { onExpand = this.expandNode.bind(this); }
439
452
  if (onCollapse === void 0) { onCollapse = this.collapseNode.bind(this); }
440
453
  if (onSelect === void 0) { onSelect = this.selectNode.bind(this); }
441
454
  if (onDeselect === void 0) { onDeselect = this.deselectNode.bind(this); }
442
- var node = this.toNode(item, depth, onExpand, onCollapse, onSelect, onDeselect);
443
- if (this.expanded.isSelected(node.id)) {
444
- node
445
- .expand()
446
- .then(function () {
447
- // TODO : remove redundant this.expanded SelectionModel. Only store expanded nodes in this.treeControl.expansionModel
448
- // das problem ist das ich beim speicher in localStorage nur die id speicher.
449
- // Des wegen kann ich beim laden aus dem localStorage this.treeControl.expansionModel
450
- // nicht einfach mit den expanend nodes fullen. Da dort das node object benötigt wird
451
- // möglich lösungen:
452
- // - das node object läde die entity mithilfe der id automatisch nach
453
- _this.treeControl.expansionModel.select(node);
454
- console.debug("Restore expand for node '" + node.id + "' SUCCESSFULLY");
455
- })
456
- .catch(function () { return console.debug("Restore expand for node '" + node.id + "' FAILED"); });
457
- }
458
- if (this._preSelected.includes(node.id)) {
459
- node
460
- .select()
461
- .then(function () { return console.debug("Restore select for node '" + node.id + "' SUCCESSFULLY"); })
462
- .catch(function () { return console.debug("Restore select for node '" + node.id + "' FAILED"); });
463
- }
464
- return node;
455
+ return __awaiter(this, void 0, void 0, function () {
456
+ var node;
457
+ var _this = this;
458
+ return __generator(this, function (_b) {
459
+ switch (_b.label) {
460
+ case 0: return [4 /*yield*/, this.toNode(item, depth, onExpand, onCollapse, onSelect, onDeselect)];
461
+ case 1:
462
+ node = _b.sent();
463
+ if (this.expanded.isSelected(node.id)) {
464
+ node
465
+ .expand()
466
+ .then(function () {
467
+ // TODO : remove redundant this.expanded SelectionModel. Only store expanded nodes in this.treeControl.expansionModel
468
+ // das problem ist das ich beim speicher in localStorage nur die id speicher.
469
+ // Des wegen kann ich beim laden aus dem localStorage this.treeControl.expansionModel
470
+ // nicht einfach mit den expanend nodes fullen. Da dort das node object benötigt wird
471
+ // möglich lösungen:
472
+ // - das node object läde die entity mithilfe der id automatisch nach
473
+ _this.treeControl.expansionModel.select(node);
474
+ console.debug("Restore expand for node '" + node.id + "' SUCCESSFULLY");
475
+ })
476
+ .catch(function () { return console.debug("Restore expand for node '" + node.id + "' FAILED"); });
477
+ }
478
+ if (!this._preSelected.includes(node.id)) return [3 /*break*/, 3];
479
+ return [4 /*yield*/, node
480
+ .select()
481
+ .then(function () { return console.debug("Restore select for node '" + node.id + "' SUCCESSFULLY"); })
482
+ .catch(function () { return console.debug("Restore select for node '" + node.id + "' FAILED"); })];
483
+ case 2:
484
+ _b.sent();
485
+ _b.label = 3;
486
+ case 3: return [2 /*return*/, node];
487
+ }
488
+ });
489
+ });
465
490
  };
466
491
  TreeDataSource.prototype.expandNode = function (node) {
467
492
  var _a;
468
493
  return __awaiter(this, void 0, void 0, function () {
469
- var children;
494
+ var children, _b, _c;
470
495
  var _this = this;
471
- return __generator(this, function (_b) {
472
- switch (_b.label) {
496
+ return __generator(this, function (_d) {
497
+ switch (_d.label) {
473
498
  case 0:
474
- if (!(node.item.hasChildren && !((_a = node.item.children) === null || _a === void 0 ? void 0 : _a.length))) return [3 /*break*/, 2];
499
+ if (!(node.item.hasChildren && !((_a = node.item.children) === null || _a === void 0 ? void 0 : _a.length))) return [3 /*break*/, 3];
475
500
  node.isLoading$.enable();
476
501
  return [4 /*yield*/, this.getChildren(node)];
477
502
  case 1:
478
- children = _b.sent();
503
+ children = _d.sent();
479
504
  // add the loaded children to the item object
480
505
  node.item.children = children;
481
- node.addChildren(children.map(function (child) { return _this._toNode(child, node.depth + 1, node.onExpand, node.onCollapse); }));
482
- node.isLoading$.disable();
483
- _b.label = 2;
506
+ _c = (_b = node).addChildren;
507
+ return [4 /*yield*/, Promise.all(children.map(function (child) { return _this._toNode(child, node.depth + 1, node.onExpand, node.onCollapse); }))];
484
508
  case 2:
509
+ _c.apply(_b, [_d.sent()]);
510
+ node.isLoading$.disable();
511
+ _d.label = 3;
512
+ case 3:
485
513
  this.expanded.select(node.id);
486
514
  this.tree$.next(this.tree$.value);
487
515
  return [2 /*return*/];
@@ -497,64 +525,42 @@
497
525
  });
498
526
  };
499
527
  TreeDataSource.prototype.getRoot = function () {
528
+ return __awaiter(this, void 0, void 0, function () {
529
+ var rootParameters;
530
+ return __generator(this, function (_b) {
531
+ switch (_b.label) {
532
+ case 0: return [4 /*yield*/, this.getRootParameters()];
533
+ case 1:
534
+ rootParameters = _b.sent();
535
+ return [2 /*return*/, this.rootRemoteMethod.call(rootParameters)];
536
+ }
537
+ });
538
+ });
539
+ };
540
+ TreeDataSource.prototype.getRootParameters = function () {
500
541
  return __awaiter(this, void 0, void 0, function () {
501
542
  return __generator(this, function (_b) {
502
- return [2 /*return*/, this.rootRemoteMethod.call()];
543
+ return [2 /*return*/, undefined];
503
544
  });
504
545
  });
505
546
  };
506
547
  // TODO : find better solution to allow the overwrite of the toNode method
507
548
  // without losing the custom preselect and preexpand function
508
- TreeDataSource.prototype._connect = function (collectionViewer) {
509
- var _this = this;
510
- this.treeControl.expansionModel.changed.subscribe(function (change) {
511
- if (isSelectionChange(change)) {
512
- if (change.added) {
513
- change.added.forEach(function (node) { return node.expand(); });
514
- }
515
- if (change.removed) {
516
- change.removed
517
- .slice()
518
- .reverse()
519
- .forEach(function (node) { return node.collapse(); });
520
- }
549
+ TreeDataSource.prototype.getNodeById = function (id) {
550
+ function getNodeById(node, nodeId) {
551
+ if (node.id === nodeId) {
552
+ return node;
521
553
  }
522
- });
523
- var loadRoot = Promise.resolve();
524
- if (this.tree$.value.length === 0) {
525
- loadRoot = this.getTreeRoot();
526
- }
527
- return rxjs.from(loadRoot).pipe(operators.tap(function (rootNodes) {
528
- if (rootNodes) {
529
- var promises = [];
530
- if (_this.metadata.selectMultiple) {
531
- if (!_this.selected.hasValue()) {
532
- promises.push.apply(promises, __spreadArray([], __read(rootNodes
533
- .filter(function (node) { return node.hasDetails; })
534
- .map(function (node) { return node.select(); }))));
535
- }
536
- if (!_this.expanded.hasValue()) {
537
- promises.push.apply(promises, __spreadArray([], __read(rootNodes
538
- .filter(function (node) { return node.hasChildren; })
539
- .map(function (node) { return node.expand(); }))));
540
- }
541
- }
542
- else if (rootNodes.length) {
543
- var rootNode = rootNodes[0];
544
- if (!_this.selected.hasValue()) {
545
- // TODO : rename hasDetails to isSelectable
546
- if (rootNode.hasDetails) {
547
- promises.push(rootNode.select());
548
- }
549
- }
550
- if (!_this.expanded.hasValue()) {
551
- promises.push(rootNode.expand());
552
- }
553
- }
554
- return Promise.all(promises);
554
+ if (node.hasNode(nodeId)) {
555
+ return node.getNode(nodeId);
555
556
  }
556
- return Promise.resolve();
557
- }), operators.switchMap(function () { return rxjs.merge(collectionViewer.viewChange, _this._data$).pipe(operators.map(function () { return _this._data$.value; })); }));
557
+ else {
558
+ return null;
559
+ }
560
+ }
561
+ return (this.tree$.value
562
+ .map(function (node) { return getNodeById(node, id); })
563
+ .filter(Boolean)[0] || null);
558
564
  };
559
565
  TreeDataSource.prototype.toNode = function (item, depth, onExpand, onCollapse, onSelect, onDeselect) {
560
566
  if (depth === void 0) { depth = 0; }
@@ -562,7 +568,11 @@
562
568
  if (onCollapse === void 0) { onCollapse = this.collapseNode.bind(this); }
563
569
  if (onSelect === void 0) { onSelect = this.selectNode.bind(this); }
564
570
  if (onDeselect === void 0) { onDeselect = this.deselectNode.bind(this); }
565
- return rxjs$1.Node.ToNode(item, depth, onExpand, onCollapse, this.toDisplay, this.getIcon, onSelect, onDeselect, this.hasDetails);
571
+ return __awaiter(this, void 0, void 0, function () {
572
+ return __generator(this, function (_b) {
573
+ return [2 /*return*/, rxjs$1.Node.ToNode(item, depth, onExpand, onCollapse, this.toDisplay, this.getIcon, onSelect, onDeselect, this.hasDetails)];
574
+ });
575
+ });
566
576
  };
567
577
  TreeDataSource.prototype.collapseNode = function (node) {
568
578
  this.expanded.deselect(node.id);
@@ -600,37 +610,59 @@
600
610
  this._selectedLocalStorageSubscription.unsubscribe();
601
611
  }
602
612
  };
603
- TreeDataSource.prototype.getNodeById = function (id) {
604
- function getNodeById(node, nodeId) {
605
- if (node.id === nodeId) {
606
- return node;
607
- }
608
- if (node.hasNode(nodeId)) {
609
- return node.getNode(nodeId);
610
- }
611
- else {
612
- return null;
613
- }
614
- }
615
- return (this.tree$.value
616
- .map(function (node) { return getNodeById(node, id); })
617
- .filter(Boolean)[0] || null);
613
+ TreeDataSource.prototype.refreshMatchFilter = function () {
614
+ this._refreshMatchFilter.next();
618
615
  };
619
- TreeDataSource.prototype.initSelected = function () {
616
+ TreeDataSource.prototype._connect = function (collectionViewer) {
620
617
  var _this = this;
621
- var key = utilities.joinPath('rxap/tree', this.id, 'selected');
622
- if (localStorage.getItem(key)) {
623
- try {
624
- this._preSelected = JSON.parse(localStorage.getItem(key));
625
- }
626
- catch (e) {
627
- console.debug('parse expanded tree data source nodes failed');
618
+ this.treeControl.expansionModel.changed.subscribe(function (change) {
619
+ if (isSelectionChange(change)) {
620
+ if (change.added) {
621
+ change.added.forEach(function (node) { return node.expand(); });
622
+ }
623
+ if (change.removed) {
624
+ change.removed
625
+ .slice()
626
+ .reverse()
627
+ .forEach(function (node) { return node.collapse(); });
628
+ }
628
629
  }
630
+ });
631
+ var loadRoot = Promise.resolve();
632
+ if (this.tree$.value.length === 0) {
633
+ loadRoot = this.getTreeRoot();
629
634
  }
630
- this.selected = new collections.SelectionModel(!!this.metadata.selectMultiple, []);
631
- this._selectedLocalStorageSubscription = this.selected.changed
632
- .pipe(operators.tap(function () { return localStorage.setItem(key, JSON.stringify(_this.selected.selected.map(function (s) { return s.id; }))); }))
633
- .subscribe();
635
+ return rxjs.from(loadRoot).pipe(operators.tap(function (rootNodes) {
636
+ if (rootNodes) {
637
+ var promises = [];
638
+ if (_this.metadata.selectMultiple) {
639
+ if (!_this.selected.hasValue()) {
640
+ promises.push.apply(promises, __spreadArray([], __read(rootNodes
641
+ .filter(function (node) { return node.hasDetails; })
642
+ .map(function (node) { return node.select(); }))));
643
+ }
644
+ if (!_this.expanded.hasValue()) {
645
+ promises.push.apply(promises, __spreadArray([], __read(rootNodes
646
+ .filter(function (node) { return node.hasChildren; })
647
+ .map(function (node) { return node.expand(); }))));
648
+ }
649
+ }
650
+ else if (rootNodes.length) {
651
+ var rootNode = rootNodes[0];
652
+ if (!_this.selected.hasValue()) {
653
+ // TODO : rename hasDetails to isSelectable
654
+ if (rootNode.hasDetails) {
655
+ promises.push(rootNode.select());
656
+ }
657
+ }
658
+ if (!_this.expanded.hasValue()) {
659
+ promises.push(rootNode.expand());
660
+ }
661
+ }
662
+ return Promise.all(promises);
663
+ }
664
+ return Promise.resolve();
665
+ }), 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); }); })); }));
634
666
  };
635
667
  TreeDataSource.prototype.refresh = function () {
636
668
  return __awaiter(this, void 0, void 0, function () {
@@ -702,6 +734,26 @@
702
734
  });
703
735
  });
704
736
  };
737
+ TreeDataSource.prototype.initSelected = function () {
738
+ var _this = this;
739
+ var key = utilities.joinPath('rxap/tree', this.id, 'selected');
740
+ if (this.metadata.cacheSelected) {
741
+ if (localStorage.getItem(key)) {
742
+ try {
743
+ this._preSelected = JSON.parse(localStorage.getItem(key));
744
+ }
745
+ catch (e) {
746
+ console.debug('parse expanded tree data source nodes failed');
747
+ }
748
+ }
749
+ }
750
+ this.selected = new collections.SelectionModel(!!this.metadata.selectMultiple, []);
751
+ if (this.metadata.cacheSelected) {
752
+ this._selectedLocalStorageSubscription = this.selected.changed
753
+ .pipe(operators.tap(function () { return localStorage.setItem(key, JSON.stringify(_this.selected.selected.map(function (s) { return s.id; }))); }))
754
+ .subscribe();
755
+ }
756
+ };
705
757
  TreeDataSource.prototype.reset = function () {
706
758
  this.selected.clear();
707
759
  this.expanded.clear();
@@ -711,18 +763,22 @@
711
763
  var _this = this;
712
764
  var key = utilities.joinPath('rxap/tree', this.id, 'expanded');
713
765
  var expanded = [];
714
- if (localStorage.getItem(key)) {
715
- try {
716
- expanded = JSON.parse(localStorage.getItem(key));
717
- }
718
- catch (e) {
719
- console.debug('parse expanded tree data source nodes failed');
766
+ if (this.metadata.cacheExpanded) {
767
+ if (localStorage.getItem(key)) {
768
+ try {
769
+ expanded = JSON.parse(localStorage.getItem(key));
770
+ }
771
+ catch (e) {
772
+ console.debug('parse expanded tree data source nodes failed');
773
+ }
720
774
  }
721
775
  }
722
776
  this.expanded = new collections.SelectionModel(this.metadata.expandMultiple !== false, expanded);
723
- this._expandedLocalStorageSubscription = this.expanded.changed
724
- .pipe(operators.tap(function () { return localStorage.setItem(key, JSON.stringify(_this.expanded.selected)); }))
725
- .subscribe();
777
+ if (this.metadata.cacheExpanded) {
778
+ this._expandedLocalStorageSubscription = this.expanded.changed
779
+ .pipe(operators.tap(function () { return localStorage.setItem(key, JSON.stringify(_this.expanded.selected)); }))
780
+ .subscribe();
781
+ }
726
782
  };
727
783
  return TreeDataSource;
728
784
  }(dataSource.BaseDataSource));
@@ -775,6 +831,7 @@
775
831
  this.viewContainerRef = viewContainerRef;
776
832
  this.cdr = cdr;
777
833
  this.renderer = renderer;
834
+ this.multiple = false;
778
835
  this.hideLeafIcon = false;
779
836
  this.details = new i0.EventEmitter();
780
837
  this.portal = null;
@@ -805,10 +862,12 @@
805
862
  });
806
863
  TreeComponent.prototype.ngOnInit = function () {
807
864
  var _this = this;
865
+ var _a;
808
866
  this.dataSource.setTreeControl(this.treeControl);
809
867
  this.dataSource.setToDisplay(this.toDisplay);
810
868
  this.dataSource.setGetIcon(this.getIcon);
811
869
  this.dataSource.setHasDetails(this.hasDetails);
870
+ this.multiple = (_a = this.dataSource.metadata.selectMultiple) !== null && _a !== void 0 ? _a : this.multiple;
812
871
  if (this.dataSource.selected.hasValue()) {
813
872
  this.dataSource.selected.selected.forEach(function (node) { return _this.openDetails(node); });
814
873
  }
@@ -821,7 +880,7 @@
821
880
  };
822
881
  TreeComponent.prototype.openDetails = function (node) {
823
882
  if (this.content) {
824
- this.portal = new i11.TemplatePortal(this.content.template, this.viewContainerRef, {
883
+ this.portal = new i12.TemplatePortal(this.content.template, this.viewContainerRef, {
825
884
  $implicit: node.item,
826
885
  node: node,
827
886
  });
@@ -854,7 +913,7 @@
854
913
  return TreeComponent;
855
914
  }());
856
915
  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 });
857
- 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 });
916
+ 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 });
858
917
  __decorate([
859
918
  utilities.Required,
860
919
  __metadata("design:type", TreeDataSource)
@@ -895,6 +954,8 @@
895
954
  type: i0.Input
896
955
  }], getIcon: [{
897
956
  type: i0.Input
957
+ }], multiple: [{
958
+ type: i0.Input
898
959
  }], hasDetails: [{
899
960
  type: i0.Input
900
961
  }], content: [{
@@ -921,42 +982,45 @@
921
982
  return TreeComponentModule;
922
983
  }());
923
984
  TreeComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
924
- TreeComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, declarations: [TreeComponent, TreeContentDirective], imports: [i7.CommonModule,
985
+ TreeComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, declarations: [TreeComponent, TreeContentDirective], imports: [i8.CommonModule,
925
986
  i1.MatTreeModule,
926
- i3.MatButtonModule,
987
+ i4.MatButtonModule,
927
988
  i2.MatIconModule,
928
989
  flexLayout.FlexLayoutModule,
929
- i5.MatDividerModule,
930
- i4.MatProgressSpinnerModule,
931
- i11.PortalModule,
932
- i10.ContenteditableDirectiveModule,
933
- i9.IconDirectiveModule], exports: [TreeComponent, TreeContentDirective] });
990
+ i6.MatDividerModule,
991
+ i5.MatProgressSpinnerModule,
992
+ i12.PortalModule,
993
+ i11.ContenteditableDirectiveModule,
994
+ i10.IconDirectiveModule,
995
+ i3.MatCheckboxModule], exports: [TreeComponent, TreeContentDirective] });
934
996
  TreeComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, imports: [[
935
- i7.CommonModule,
997
+ i8.CommonModule,
936
998
  i1.MatTreeModule,
937
- i3.MatButtonModule,
999
+ i4.MatButtonModule,
938
1000
  i2.MatIconModule,
939
1001
  flexLayout.FlexLayoutModule,
940
- i5.MatDividerModule,
941
- i4.MatProgressSpinnerModule,
942
- i11.PortalModule,
943
- i10.ContenteditableDirectiveModule,
944
- i9.IconDirectiveModule
1002
+ i6.MatDividerModule,
1003
+ i5.MatProgressSpinnerModule,
1004
+ i12.PortalModule,
1005
+ i11.ContenteditableDirectiveModule,
1006
+ i10.IconDirectiveModule,
1007
+ i3.MatCheckboxModule
945
1008
  ]] });
946
1009
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TreeComponentModule, decorators: [{
947
1010
  type: i0.NgModule,
948
1011
  args: [{
949
1012
  imports: [
950
- i7.CommonModule,
1013
+ i8.CommonModule,
951
1014
  i1.MatTreeModule,
952
- i3.MatButtonModule,
1015
+ i4.MatButtonModule,
953
1016
  i2.MatIconModule,
954
1017
  flexLayout.FlexLayoutModule,
955
- i5.MatDividerModule,
956
- i4.MatProgressSpinnerModule,
957
- i11.PortalModule,
958
- i10.ContenteditableDirectiveModule,
959
- i9.IconDirectiveModule
1018
+ i6.MatDividerModule,
1019
+ i5.MatProgressSpinnerModule,
1020
+ i12.PortalModule,
1021
+ i11.ContenteditableDirectiveModule,
1022
+ i10.IconDirectiveModule,
1023
+ i3.MatCheckboxModule
960
1024
  ],
961
1025
  declarations: [TreeComponent, TreeContentDirective],
962
1026
  exports: [TreeComponent, TreeContentDirective],