qms-angular 1.0.60 → 1.0.61
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/qms-angular.umd.js +31 -11
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +14 -2
- package/esm2015/lib/components/tree/tree.component.js +14 -5
- package/fesm2015/qms-angular.js +28 -8
- package/fesm2015/qms-angular.js.map +1 -1
- package/package.json +1 -1
@@ -4409,6 +4409,12 @@
|
|
4409
4409
|
findChild: findChild$1
|
4410
4410
|
};
|
4411
4411
|
|
4412
|
+
var TreeFlatNode = /** @class */ (function () {
|
4413
|
+
function TreeFlatNode() {
|
4414
|
+
}
|
4415
|
+
return TreeFlatNode;
|
4416
|
+
}());
|
4417
|
+
|
4412
4418
|
var TreeComponent = /** @class */ (function () {
|
4413
4419
|
function TreeComponent(cdRef, domSanitizer, iconRegistry, appIconService) {
|
4414
4420
|
var _this = this;
|
@@ -4602,13 +4608,22 @@
|
|
4602
4608
|
this.checkSelected(selectedData_1);
|
4603
4609
|
this.checkBoxEvent.emit(selectedData_1);
|
4604
4610
|
}
|
4605
|
-
|
4611
|
+
// keep expand
|
4612
|
+
if (this.parentNodeOnClick && Object.keys(this.parentNodeOnClick).length) {
|
4613
|
+
var tempParent = [];
|
4614
|
+
var root = new TreeFlatNode();
|
4606
4615
|
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
4607
4616
|
var tree = this.treeControl.dataNodes[i];
|
4608
|
-
if (this.parentNodeOnClick.parentId === tree.
|
4609
|
-
this.
|
4617
|
+
if (this.parentNodeOnClick.parentId === tree.parentId && this.parentNodeOnClick.id === tree.id
|
4618
|
+
|| this.parentNodeOnClick.parentId === tree.id) {
|
4619
|
+
tempParent = __spreadArray(__spreadArray([], __read(tempParent)), [this.getParent(tree)]);
|
4620
|
+
root = tree;
|
4610
4621
|
}
|
4611
4622
|
}
|
4623
|
+
tempParent.push(root);
|
4624
|
+
tempParent.forEach(function (x) {
|
4625
|
+
_this.treeControl.expand(x);
|
4626
|
+
});
|
4612
4627
|
}
|
4613
4628
|
};
|
4614
4629
|
TreeComponent.prototype.getParent = function (node) {
|
@@ -4621,7 +4636,6 @@
|
|
4621
4636
|
for (var i = index; i >= 0; i--) {
|
4622
4637
|
var currentNode = treeControl.dataNodes[i];
|
4623
4638
|
if (treeControl.getLevel(currentNode) < currentLevel) {
|
4624
|
-
treeControl.expand(currentNode);
|
4625
4639
|
return currentNode;
|
4626
4640
|
}
|
4627
4641
|
}
|
@@ -5486,12 +5500,6 @@
|
|
5486
5500
|
];
|
5487
5501
|
QMSRelatedGlobalService.ctorParameters = function () { return []; };
|
5488
5502
|
|
5489
|
-
var TreeFlatNode = /** @class */ (function () {
|
5490
|
-
function TreeFlatNode() {
|
5491
|
-
}
|
5492
|
-
return TreeFlatNode;
|
5493
|
-
}());
|
5494
|
-
|
5495
5503
|
var RelatedPopupComponent = /** @class */ (function () {
|
5496
5504
|
function RelatedPopupComponent(cdRef, translate, dialogRef, globalService, iconRegistry, sanitizer, appIconService, elem, data) {
|
5497
5505
|
this.cdRef = cdRef;
|
@@ -5813,7 +5821,13 @@
|
|
5813
5821
|
var node = void 0;
|
5814
5822
|
var typeId = void 0;
|
5815
5823
|
if (item.itemType === this.dataType.document) {
|
5816
|
-
// document
|
5824
|
+
// document
|
5825
|
+
var isExistInDisabled = this.disabledList2.findIndex(function (x) {
|
5826
|
+
return x.id && x.id.toLowerCase() === item.id.toLowerCase();
|
5827
|
+
});
|
5828
|
+
if (isExistInDisabled >= 0) {
|
5829
|
+
return;
|
5830
|
+
}
|
5817
5831
|
position = this.treeData2.findIndex(function (x) {
|
5818
5832
|
return x.childId === item.id;
|
5819
5833
|
});
|
@@ -6005,6 +6019,12 @@
|
|
6005
6019
|
}
|
6006
6020
|
}
|
6007
6021
|
else {
|
6022
|
+
var isExistInDisabled = this.disabledList.findIndex(function (x) {
|
6023
|
+
return x.id && x.id.toLowerCase() === item.id.toLowerCase();
|
6024
|
+
});
|
6025
|
+
if (isExistInDisabled >= 0) {
|
6026
|
+
return;
|
6027
|
+
}
|
6008
6028
|
position = this.treeData1.findIndex(function (x) {
|
6009
6029
|
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase();
|
6010
6030
|
});
|