qms-angular 1.0.85 → 1.0.86

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.
@@ -3490,7 +3490,6 @@
3490
3490
  var QMSDialogFooter = /** @class */ (function () {
3491
3491
  function QMSDialogFooter(el) {
3492
3492
  this.el = el;
3493
- this.align = 'start';
3494
3493
  }
3495
3494
  QMSDialogFooter.prototype.ngOnInit = function () {
3496
3495
  if (this.height) {
@@ -3505,7 +3504,7 @@
3505
3504
  host: {
3506
3505
  'class': 'qms-dialog-footer',
3507
3506
  '[class.qms-dialog-footer-align-center]': 'align === "center"',
3508
- '[class.qms-dialog-footer-align-end]': 'align === "end"',
3507
+ '[class.qms-dialog-footer-align-start]': 'align === "start"',
3509
3508
  },
3510
3509
  },] }
3511
3510
  ];
@@ -20249,19 +20248,21 @@
20249
20248
  }
20250
20249
  // keep expand
20251
20250
  if (this.parentNodeOnClick && Object.keys(this.parentNodeOnClick).length) {
20251
+ var root = this.parentNodeOnClick;
20252
20252
  var tempParent = [];
20253
- var root = new TreeFlatNode();
20254
- for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
20255
- var tree = this.treeControl.dataNodes[i];
20256
- if (this.parentNodeOnClick.parentId === tree.parentId && this.parentNodeOnClick.id === tree.id
20257
- || this.parentNodeOnClick.parentId === tree.id) {
20258
- tempParent = __spreadArray(__spreadArray([], __read(tempParent)), [this.getParent(tree)]);
20259
- root = tree;
20253
+ while (root && root.id) {
20254
+ for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
20255
+ var tree = this.treeControl.dataNodes[i];
20256
+ if (root.parentId === tree.parentId && root.id === tree.id) {
20257
+ tempParent = __spreadArray([tree], __read(tempParent));
20258
+ root = this.getParent(tree);
20259
+ break;
20260
+ }
20260
20261
  }
20261
20262
  }
20262
- tempParent.push(root);
20263
20263
  tempParent.forEach(function (x) {
20264
- _this.treeControl.expand(x);
20264
+ if (!_this.treeControl.isExpanded(x))
20265
+ _this.treeControl.expand(x);
20265
20266
  });
20266
20267
  }
20267
20268
  };