qms-angular 1.0.77 → 1.0.78
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 +297 -304
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +293 -300
- package/esm2015/lib/components/select-one/select-one.component.js +2 -2
- package/esm2015/lib/components/tree/tree.component.js +2 -2
- package/fesm2015/qms-angular.js +294 -301
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/related/popup/related-popup.component.d.ts +2 -1
- package/package.json +1 -1
- package/qms-angular.metadata.json +1 -1
@@ -5440,7 +5440,7 @@
|
|
5440
5440
|
TreeComponent.decorators = [
|
5441
5441
|
{ type: i0.Component, args: [{
|
5442
5442
|
selector: 'qms-tree',
|
5443
|
-
template: "<mat-tree\r\n [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\"\r\n class=\"tree__container\"\r\n>\r\n <mat-tree-node\r\n class=\"tree-branch\"\r\n *matTreeNodeDef=\"let node\"\r\n matTreeNodeToggle\r\n matTreeNodePadding\r\n >\r\n <!-- form thu 1 - child -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n >\r\n </mat-checkbox>\r\n\r\n <!-- form thu 2 -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"ml-10 checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <div\r\n class=\"expand-node\"\r\n *ngIf=\"node.name && !onlyFolder\"\r\n [class.bgSelected]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n (click)=\"selectNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name
|
5443
|
+
template: "<mat-tree\r\n [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\"\r\n class=\"tree__container\"\r\n>\r\n <mat-tree-node\r\n class=\"tree-branch\"\r\n *matTreeNodeDef=\"let node\"\r\n matTreeNodeToggle\r\n matTreeNodePadding\r\n >\r\n <!-- form thu 1 - child -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n >\r\n </mat-checkbox>\r\n\r\n <!-- form thu 2 -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"ml-10 checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <div\r\n class=\"expand-node\"\r\n *ngIf=\"node.name && !onlyFolder\"\r\n [class.bgSelected]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n (click)=\"selectNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n >\r\n {{ itemIcon }}\r\n </mat-icon>\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"itemIconSvg\"\r\n >\r\n </mat-icon>\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.path\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64\"\r\n [src]=\"getImagePath()\"\r\n />\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.none\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span\r\n class=\"text-node\"\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n </div>\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\r\n <!-- form thu 1 - parent -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild\"\r\n [checked]=\"descendantsAllSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <button\r\n class=\"button-boder\"\r\n mat-icon-button\r\n matTreeNodeToggle\r\n [disableRipple]=\"!node.hasChild\"\r\n [attr.aria-label]=\"'toggle ' + node.filename\"\r\n *ngIf=\"node.name\"\r\n >\r\n <mat-icon\r\n *ngIf=\"openIcon && closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : closeIconColor\r\n }\"\r\n >{{ getNodeIcon(node) }}</mat-icon\r\n >\r\n <mat-icon\r\n *ngIf=\"!openIcon || !closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngClass]=\"{\r\n 'open-icon': treeControl.isExpanded(node),\r\n 'not-department-icon': moduleId !== dataType.document\r\n }\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n >\r\n </mat-icon>\r\n </button>\r\n <span\r\n *ngIf=\"expandOnTitleClick\"\r\n matTreeNodeToggle\r\n class=\"text-node-parent\"\r\n style=\"cursor: pointer\"\r\n (click)=\"onExpandNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n </span>\r\n <span\r\n *ngIf=\"!expandOnTitleClick\"\r\n class=\"text-node-parent\"\r\n (click)=\"selectFolderNode(node)\"\r\n style=\"cursor: pointer\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <span\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n",
|
5444
5444
|
encapsulation: i0.ViewEncapsulation.None,
|
5445
5445
|
styles: ["@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format(\"woff2\");unicode-range:U+1f??}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format(\"woff2\");unicode-range:U+0370-03ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.tree__container{font-family:Open Sans;font-style:normal;font-weight:400;font-size:.875rem;line-height:19px;color:#323232}.tree__container .mat-tree-node{color:#000;min-height:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options{padding:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.tree__container .button{margin-left:6px}.tree__container .button:focus,.tree__container .button:hover{background-color:#009ef2;border-radius:2px;width:auto}.tree__container .button-boder:focus,.tree__container .button:focus{outline:0}.tree__container .button-folder-boder:focus{outline:0}.tree__container .button-folder-boder:focus,.tree__container .button-folder-boder:hover{background-color:#009ef2;border-radius:2px;width:auto}.tree__container .expand-node{margin-left:8px;min-height:32px;justify-content:space-between;width:100%}.tree__container .expand-node,.tree__container .expand-node .expand-node__text{display:flex;align-items:center}.tree__container .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node.bgSelected .select-one-checked{color:#1954a9}.tree__container .text-node-parent{width:100%;display:flex;align-items:center;justify-content:space-between;margin-left:10px;cursor:pointer}.tree__container .text-node-parent.active-item{color:#1954a9!important}.tree__container .text-node-parent .select-one-checked{color:#1954a9}.tree__container .mr-11{margin-right:11px}.tree__container .ml-10{margin-left:10px}.tree__container .tree-branch:hover{background-color:#e5eefb}.tree__container .image-base64{width:20px;height:20px}.tree__container .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}::ng-deep .mat-tree .mat-checkbox.qms-group-options{padding:0}::ng-deep .mat-tree .mat-checkbox.qms-group-options.mat-checkbox-checked{background-color:transparent}::ng-deep .mat-tree .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:0}svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.open-icon.not-department-icon svg path,.open-icon svg path:first-child{fill:#1954a9}.mat-checkbox.mat-checkbox-disabled.qms-group-options.mat-checkbox-checked .mat-checkbox-background{background-color:#e0e0e0!important}"]
|
5446
5446
|
},] }
|
@@ -6081,130 +6081,156 @@
|
|
6081
6081
|
var position = -1;
|
6082
6082
|
var node = void 0;
|
6083
6083
|
var typeId = void 0;
|
6084
|
-
|
6085
|
-
|
6086
|
-
|
6087
|
-
|
6088
|
-
|
6089
|
-
|
6090
|
-
|
6091
|
-
|
6092
|
-
position = this.treeData2.findIndex(function (x) {
|
6093
|
-
return x.childId === item.id && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6094
|
-
});
|
6095
|
-
if (position >= 0) {
|
6096
|
-
node = this.treeData2[position];
|
6097
|
-
typeId = this.dataType.document;
|
6098
|
-
var treeNode = {
|
6099
|
-
id: node.childId,
|
6100
|
-
name: node.childName,
|
6101
|
-
children: [],
|
6102
|
-
parentId: node.rootId
|
6103
|
-
};
|
6104
|
-
this.dataTrees.toArray()[1].todoItemSelectionProcessDocument([treeNode]);
|
6105
|
-
}
|
6106
|
-
else {
|
6107
|
-
var newNodeDocs_1 = new TreeModel();
|
6108
|
-
newNodeDocs_1.rootId = (_c = item.breadcumbs[item.breadcumbs.length - 1]) === null || _c === void 0 ? void 0 : _c['id'];
|
6109
|
-
newNodeDocs_1.rootName = (_d = item.breadcumbs[item.breadcumbs.length - 1]) === null || _d === void 0 ? void 0 : _d['name'];
|
6110
|
-
newNodeDocs_1.parentId = '';
|
6111
|
-
newNodeDocs_1.subName = null;
|
6112
|
-
newNodeDocs_1.childId = item.id;
|
6113
|
-
newNodeDocs_1.childName = item.itemName;
|
6114
|
-
newNodeDocs_1.statusId = item === null || item === void 0 ? void 0 : item['itemStatus'];
|
6115
|
-
newNodeDocs_1.statusName = item === null || item === void 0 ? void 0 : item['statusName'];
|
6116
|
-
newNodeDocs_1.displayId = +item.itemNumberId;
|
6117
|
-
this.treeData2 = __spreadArray(__spreadArray([], __read(this.treeData2)), [newNodeDocs_1]);
|
6118
|
-
var newSelectedDocs = new TreeFlatNode();
|
6119
|
-
newSelectedDocs.disabled = false;
|
6120
|
-
newSelectedDocs.expandable = false;
|
6121
|
-
newSelectedDocs.hasChild = false;
|
6122
|
-
newSelectedDocs.id = item.id;
|
6123
|
-
newSelectedDocs.level = 0;
|
6124
|
-
newSelectedDocs.levelType = undefined;
|
6125
|
-
newSelectedDocs.name = item.itemName;
|
6126
|
-
newSelectedDocs.parentId = (_e = item.breadcumbs[item.breadcumbs.length - 1]) === null || _e === void 0 ? void 0 : _e['id'];
|
6127
|
-
this.selectedData2 = [];
|
6128
|
-
this.selectedData = [];
|
6129
|
-
var selectProcess_2 = [];
|
6130
|
-
var selectDocument_2 = [];
|
6131
|
-
if (this.checkedNodeList.length) {
|
6132
|
-
this.checkedNodeList.forEach(function (x) {
|
6133
|
-
if (x.itemType === DataType$1.area || x.itemType === DataType$1.process) {
|
6134
|
-
_this.treeData1.forEach(function (item) {
|
6135
|
-
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6136
|
-
selectProcess_2.push({
|
6137
|
-
disabled: false,
|
6138
|
-
expandable: x.itemType == DataType$1.area ? true : false,
|
6139
|
-
hasChild: x.itemType == DataType$1.area ? true : false,
|
6140
|
-
id: x.id,
|
6141
|
-
level: 0,
|
6142
|
-
levelType: undefined,
|
6143
|
-
name: x.itemName,
|
6144
|
-
parentId: x.parentId
|
6145
|
-
});
|
6146
|
-
}
|
6147
|
-
});
|
6148
|
-
}
|
6149
|
-
else {
|
6150
|
-
_this.treeData2.forEach(function (item) {
|
6151
|
-
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6152
|
-
selectDocument_2.push({
|
6153
|
-
disabled: false,
|
6154
|
-
expandable: x.itemType == DataType$1.folder ? true : false,
|
6155
|
-
hasChild: x.itemType == DataType$1.folder ? true : false,
|
6156
|
-
id: x.id,
|
6157
|
-
level: 0,
|
6158
|
-
levelType: undefined,
|
6159
|
-
name: x.itemName,
|
6160
|
-
parentId: x.parentId
|
6161
|
-
});
|
6162
|
-
}
|
6163
|
-
});
|
6164
|
-
}
|
6165
|
-
});
|
6084
|
+
switch (item.itemType) {
|
6085
|
+
case this.dataType.document:
|
6086
|
+
// document
|
6087
|
+
var isExistInDisabled = this.disabledList2.findIndex(function (x) {
|
6088
|
+
return x.id && x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6089
|
+
});
|
6090
|
+
if (isExistInDisabled >= 0) {
|
6091
|
+
return;
|
6166
6092
|
}
|
6167
|
-
|
6168
|
-
|
6169
|
-
|
6170
|
-
|
6171
|
-
|
6172
|
-
|
6093
|
+
position = this.treeData2.findIndex(function (x) {
|
6094
|
+
return x.childId === item.id && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6095
|
+
});
|
6096
|
+
if (position >= 0) {
|
6097
|
+
node = this.treeData2[position];
|
6098
|
+
typeId = this.dataType.document;
|
6099
|
+
var treeNode_1 = {
|
6100
|
+
id: node.childId,
|
6101
|
+
name: node.childName,
|
6173
6102
|
children: [],
|
6174
|
-
parentId:
|
6103
|
+
parentId: node.rootId
|
6175
6104
|
};
|
6176
|
-
|
6177
|
-
}, 500);
|
6178
|
-
}
|
6179
|
-
}
|
6180
|
-
else if (item.itemType === this.dataType.folder) {
|
6181
|
-
position = this.treeData2.findIndex(function (x) {
|
6182
|
-
return x.rootId === item.id && x.parentId === item.parentId;
|
6183
|
-
});
|
6184
|
-
typeId = item.itemType;
|
6185
|
-
if (position >= 0) {
|
6186
|
-
node = this.treeData2[position];
|
6187
|
-
if (this.treeConfig2.showCheckBox) {
|
6188
|
-
this.checkedNodeList.push({
|
6189
|
-
moduleId: this.moduleId,
|
6190
|
-
id: item.id,
|
6191
|
-
itemName: item.itemName,
|
6192
|
-
itemType: typeId,
|
6193
|
-
itemNumberId: item.itemNumberId,
|
6194
|
-
levelType: item.levelType,
|
6195
|
-
parentId: item.parentId,
|
6196
|
-
parentName: item.parentName
|
6197
|
-
});
|
6105
|
+
this.dataTrees.toArray()[1].todoItemSelectionProcessDocument([treeNode_1]);
|
6198
6106
|
}
|
6199
6107
|
else {
|
6200
|
-
|
6201
|
-
|
6108
|
+
var newNodeDocs_1 = {
|
6109
|
+
rootId: (_c = item.breadcumbs[item.breadcumbs.length - 1]) === null || _c === void 0 ? void 0 : _c['id'],
|
6110
|
+
rootName: (_d = item.breadcumbs[item.breadcumbs.length - 1]) === null || _d === void 0 ? void 0 : _d['name'],
|
6111
|
+
parentId: '',
|
6112
|
+
subName: null,
|
6113
|
+
childId: item.id,
|
6114
|
+
childName: item.itemName,
|
6115
|
+
statusId: item === null || item === void 0 ? void 0 : item['itemStatus'],
|
6116
|
+
statusName: item === null || item === void 0 ? void 0 : item['statusName'],
|
6117
|
+
displayId: +item.itemNumberId,
|
6118
|
+
};
|
6119
|
+
this.treeData2 = __spreadArray(__spreadArray([], __read(this.treeData2)), [newNodeDocs_1]);
|
6120
|
+
var newSelectedDocs = {
|
6121
|
+
disabled: false,
|
6122
|
+
expandable: false,
|
6123
|
+
hasChild: false,
|
6202
6124
|
id: item.id,
|
6203
|
-
|
6204
|
-
|
6205
|
-
|
6206
|
-
|
6207
|
-
}
|
6125
|
+
level: 0,
|
6126
|
+
levelType: undefined,
|
6127
|
+
name: item.itemName,
|
6128
|
+
parentId: (_e = item.breadcumbs[item.breadcumbs.length - 1]) === null || _e === void 0 ? void 0 : _e['id']
|
6129
|
+
};
|
6130
|
+
this.selectedData2 = [];
|
6131
|
+
this.selectedData = [];
|
6132
|
+
var selectProcess = [];
|
6133
|
+
var selectDocument_2 = [];
|
6134
|
+
if (this.checkedNodeList.length) {
|
6135
|
+
this.checkedNodeList.forEach(function (x) {
|
6136
|
+
if (x.itemType === DataType$1.document || x.itemType === DataType$1.folder) {
|
6137
|
+
_this.treeData2.forEach(function (item) {
|
6138
|
+
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6139
|
+
selectDocument_2.push({
|
6140
|
+
disabled: false,
|
6141
|
+
expandable: x.itemType == DataType$1.folder ? true : false,
|
6142
|
+
hasChild: x.itemType == DataType$1.folder ? true : false,
|
6143
|
+
id: x.id,
|
6144
|
+
level: 0,
|
6145
|
+
levelType: undefined,
|
6146
|
+
name: x.itemName,
|
6147
|
+
parentId: x.parentId
|
6148
|
+
});
|
6149
|
+
}
|
6150
|
+
});
|
6151
|
+
}
|
6152
|
+
});
|
6153
|
+
}
|
6154
|
+
this.selectedData = __spreadArray(__spreadArray([], __read(this.selectedData)), __read(selectProcess));
|
6155
|
+
this.selectedData2 = __spreadArray(__spreadArray(__spreadArray([], __read(this.selectedData2)), __read(selectDocument_2)), [newSelectedDocs]);
|
6156
|
+
setTimeout(function () {
|
6157
|
+
var treeNode = {
|
6158
|
+
id: newNodeDocs_1.childId,
|
6159
|
+
name: newNodeDocs_1.childName,
|
6160
|
+
children: [],
|
6161
|
+
parentId: newNodeDocs_1.rootId
|
6162
|
+
};
|
6163
|
+
_this.dataTrees.toArray()[1].todoItemSelectionProcessDocument([treeNode]);
|
6164
|
+
}, 500);
|
6165
|
+
}
|
6166
|
+
break;
|
6167
|
+
case this.dataType.folder:
|
6168
|
+
position = this.treeData2.findIndex(function (x) {
|
6169
|
+
return x.rootId === item.id && x.parentId === item.parentId;
|
6170
|
+
});
|
6171
|
+
typeId = item.itemType;
|
6172
|
+
if (position >= 0) {
|
6173
|
+
node = this.treeData2[position];
|
6174
|
+
if (this.treeConfig2.showCheckBox) {
|
6175
|
+
this.checkedNodeList.push({
|
6176
|
+
moduleId: this.moduleId,
|
6177
|
+
id: item.id,
|
6178
|
+
itemName: item.itemName,
|
6179
|
+
itemType: typeId,
|
6180
|
+
itemNumberId: item.itemNumberId,
|
6181
|
+
levelType: item.levelType,
|
6182
|
+
parentId: item.parentId,
|
6183
|
+
parentName: item.parentName
|
6184
|
+
});
|
6185
|
+
}
|
6186
|
+
else {
|
6187
|
+
this.selectedNode.push({
|
6188
|
+
moduleId: this.moduleId,
|
6189
|
+
id: item.id,
|
6190
|
+
itemName: item.itemName,
|
6191
|
+
itemType: typeId,
|
6192
|
+
itemNumberId: item.itemNumberId,
|
6193
|
+
levelType: item.levelType
|
6194
|
+
});
|
6195
|
+
}
|
6196
|
+
var treeNode_2 = {
|
6197
|
+
id: node.rootId,
|
6198
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
6199
|
+
children: [],
|
6200
|
+
parentId: node.parentId
|
6201
|
+
};
|
6202
|
+
this.dataTrees.toArray()[1].todoFolderSelection([treeNode_2]);
|
6203
|
+
}
|
6204
|
+
break;
|
6205
|
+
case this.dataType.area:
|
6206
|
+
position = this.treeData1.findIndex(function (x) {
|
6207
|
+
return x.rootId.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6208
|
+
});
|
6209
|
+
typeId = item.itemType;
|
6210
|
+
if (position >= 0) {
|
6211
|
+
node = this.treeData1[position];
|
6212
|
+
if (this.treeConfig1.showCheckBox) {
|
6213
|
+
this.checkedNodeList.push({
|
6214
|
+
moduleId: this.moduleId,
|
6215
|
+
id: node.rootId,
|
6216
|
+
itemName: node.rootName,
|
6217
|
+
itemType: typeId,
|
6218
|
+
itemNumberId: item.itemNumberId,
|
6219
|
+
levelType: item.levelType,
|
6220
|
+
parentId: item.parentId,
|
6221
|
+
parentName: item.parentName
|
6222
|
+
});
|
6223
|
+
}
|
6224
|
+
else {
|
6225
|
+
this.selectedNode.push({
|
6226
|
+
moduleId: this.moduleId,
|
6227
|
+
id: node.rootId,
|
6228
|
+
itemName: node.rootName,
|
6229
|
+
itemType: typeId,
|
6230
|
+
itemNumberId: item.itemNumberId,
|
6231
|
+
levelType: item.levelType
|
6232
|
+
});
|
6233
|
+
}
|
6208
6234
|
}
|
6209
6235
|
var treeNode = {
|
6210
6236
|
id: node.rootId,
|
@@ -6212,167 +6238,132 @@
|
|
6212
6238
|
children: [],
|
6213
6239
|
parentId: node.parentId
|
6214
6240
|
};
|
6215
|
-
this.dataTrees.toArray()[
|
6216
|
-
|
6217
|
-
|
6218
|
-
|
6219
|
-
|
6220
|
-
|
6221
|
-
|
6222
|
-
|
6223
|
-
return x.rootId.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6224
|
-
});
|
6225
|
-
this.selectNodeRecursive(this.treeData1[position], item.itemType);
|
6226
|
-
}
|
6227
|
-
else if (item.itemType === this.dataType.area) {
|
6228
|
-
position = this.treeData1.findIndex(function (x) {
|
6229
|
-
return x.rootId.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6230
|
-
});
|
6231
|
-
typeId = item.itemType;
|
6232
|
-
if (position >= 0) {
|
6233
|
-
node = this.treeData1[position];
|
6234
|
-
if (this.treeConfig1.showCheckBox) {
|
6235
|
-
this.checkedNodeList.push({
|
6236
|
-
moduleId: this.moduleId,
|
6237
|
-
id: node.rootId,
|
6238
|
-
itemName: node.rootName,
|
6239
|
-
itemType: typeId,
|
6240
|
-
itemNumberId: item.itemNumberId,
|
6241
|
-
levelType: item.levelType,
|
6242
|
-
parentId: item.parentId,
|
6243
|
-
parentName: item.parentName
|
6244
|
-
});
|
6241
|
+
this.dataTrees.toArray()[0].todoFolderSelection([treeNode]);
|
6242
|
+
break;
|
6243
|
+
case this.dataType.process:
|
6244
|
+
var isExistInProcessDisabled = this.disabledList.findIndex(function (x) {
|
6245
|
+
return x.id && x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase();
|
6246
|
+
});
|
6247
|
+
if (isExistInProcessDisabled >= 0) {
|
6248
|
+
return;
|
6245
6249
|
}
|
6246
|
-
|
6247
|
-
|
6248
|
-
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
|
6253
|
-
|
6254
|
-
|
6250
|
+
position = this.treeData1.findIndex(function (x) {
|
6251
|
+
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase() && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6252
|
+
});
|
6253
|
+
if (position >= 0) {
|
6254
|
+
node = this.treeData1[position];
|
6255
|
+
typeId = this.itemType;
|
6256
|
+
var treeNode_3 = {
|
6257
|
+
id: node.childId,
|
6258
|
+
name: node.childName,
|
6259
|
+
children: [],
|
6260
|
+
parentId: node.rootId
|
6261
|
+
};
|
6262
|
+
this.dataTrees.toArray()[0].todoItemSelectionProcessDocument([treeNode_3]);
|
6255
6263
|
}
|
6256
|
-
|
6257
|
-
|
6258
|
-
|
6259
|
-
|
6260
|
-
|
6261
|
-
|
6262
|
-
|
6263
|
-
|
6264
|
-
|
6265
|
-
|
6266
|
-
|
6267
|
-
|
6268
|
-
|
6269
|
-
|
6270
|
-
|
6271
|
-
|
6272
|
-
|
6273
|
-
|
6274
|
-
|
6275
|
-
|
6276
|
-
|
6277
|
-
|
6278
|
-
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6282
|
-
|
6283
|
-
|
6284
|
-
|
6285
|
-
|
6286
|
-
|
6287
|
-
|
6288
|
-
|
6289
|
-
|
6290
|
-
|
6291
|
-
|
6292
|
-
|
6293
|
-
|
6294
|
-
|
6295
|
-
|
6296
|
-
|
6297
|
-
|
6298
|
-
|
6299
|
-
|
6300
|
-
|
6301
|
-
|
6302
|
-
|
6303
|
-
|
6304
|
-
|
6305
|
-
|
6306
|
-
|
6307
|
-
|
6308
|
-
|
6309
|
-
|
6310
|
-
|
6311
|
-
|
6312
|
-
|
6313
|
-
|
6314
|
-
|
6315
|
-
|
6316
|
-
|
6317
|
-
|
6318
|
-
|
6319
|
-
|
6320
|
-
|
6321
|
-
|
6322
|
-
|
6323
|
-
|
6324
|
-
|
6325
|
-
|
6326
|
-
|
6327
|
-
|
6328
|
-
|
6329
|
-
|
6330
|
-
if (x.itemType === DataType$1.area || x.itemType === DataType$1.process) {
|
6331
|
-
_this.treeData1.forEach(function (item) {
|
6332
|
-
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6333
|
-
selectProcess_3.push({
|
6334
|
-
disabled: false,
|
6335
|
-
expandable: x.itemType == DataType$1.area ? true : false,
|
6336
|
-
hasChild: x.itemType == DataType$1.area ? true : false,
|
6337
|
-
id: x.id,
|
6338
|
-
level: 0,
|
6339
|
-
levelType: undefined,
|
6340
|
-
name: x.itemName,
|
6341
|
-
parentId: x.parentId
|
6342
|
-
});
|
6343
|
-
}
|
6344
|
-
});
|
6345
|
-
}
|
6346
|
-
else {
|
6347
|
-
_this.treeData2.forEach(function (item) {
|
6348
|
-
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6349
|
-
selectDocument_3.push({
|
6350
|
-
disabled: false,
|
6351
|
-
expandable: x.itemType == DataType$1.folder ? true : false,
|
6352
|
-
hasChild: x.itemType == DataType$1.folder ? true : false,
|
6353
|
-
id: x.id,
|
6354
|
-
level: 0,
|
6355
|
-
levelType: undefined,
|
6356
|
-
name: x.itemName,
|
6357
|
-
parentId: x.parentId
|
6358
|
-
});
|
6359
|
-
}
|
6360
|
-
});
|
6361
|
-
}
|
6362
|
-
});
|
6264
|
+
else {
|
6265
|
+
var newNodeProcess_1 = {
|
6266
|
+
rootId: (_f = item.breadcumbs[item.breadcumbs.length - 1]) === null || _f === void 0 ? void 0 : _f['id'],
|
6267
|
+
rootName: (_g = item.breadcumbs[item.breadcumbs.length - 1]) === null || _g === void 0 ? void 0 : _g['name'],
|
6268
|
+
parentId: '',
|
6269
|
+
subName: null,
|
6270
|
+
childId: item.id,
|
6271
|
+
childName: item.itemName,
|
6272
|
+
statusId: item === null || item === void 0 ? void 0 : item['itemStatus'],
|
6273
|
+
statusName: item === null || item === void 0 ? void 0 : item['statusName'],
|
6274
|
+
displayId: +item.itemNumberId,
|
6275
|
+
};
|
6276
|
+
this.treeData1 = __spreadArray(__spreadArray([], __read(this.treeData1)), [newNodeProcess_1]);
|
6277
|
+
var newSelectedProcess = {
|
6278
|
+
disabled: false,
|
6279
|
+
expandable: false,
|
6280
|
+
hasChild: false,
|
6281
|
+
id: item.id,
|
6282
|
+
level: 0,
|
6283
|
+
levelType: undefined,
|
6284
|
+
name: item.itemName,
|
6285
|
+
parentId: (_h = item.breadcumbs[item.breadcumbs.length - 1]) === null || _h === void 0 ? void 0 : _h['id']
|
6286
|
+
};
|
6287
|
+
this.selectedData = [];
|
6288
|
+
this.selectedData2 = [];
|
6289
|
+
var selectProcess_2 = [];
|
6290
|
+
var selectDocument_3 = [];
|
6291
|
+
if (this.checkedNodeList.length) {
|
6292
|
+
this.checkedNodeList.forEach(function (x) {
|
6293
|
+
if (x.itemType === DataType$1.area || x.itemType === DataType$1.process) {
|
6294
|
+
_this.treeData1.forEach(function (item) {
|
6295
|
+
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6296
|
+
selectProcess_2.push({
|
6297
|
+
disabled: false,
|
6298
|
+
expandable: x.itemType == DataType$1.area ? true : false,
|
6299
|
+
hasChild: x.itemType == DataType$1.area ? true : false,
|
6300
|
+
id: x.id,
|
6301
|
+
level: 0,
|
6302
|
+
levelType: undefined,
|
6303
|
+
name: x.itemName,
|
6304
|
+
parentId: x.parentId
|
6305
|
+
});
|
6306
|
+
}
|
6307
|
+
});
|
6308
|
+
}
|
6309
|
+
else {
|
6310
|
+
_this.treeData2.forEach(function (item) {
|
6311
|
+
if (item.childId && x.id === item.childId || !item.childId && (x.id === item.rootId)) {
|
6312
|
+
selectDocument_3.push({
|
6313
|
+
disabled: false,
|
6314
|
+
expandable: x.itemType == DataType$1.folder ? true : false,
|
6315
|
+
hasChild: x.itemType == DataType$1.folder ? true : false,
|
6316
|
+
id: x.id,
|
6317
|
+
level: 0,
|
6318
|
+
levelType: undefined,
|
6319
|
+
name: x.itemName,
|
6320
|
+
parentId: x.parentId
|
6321
|
+
});
|
6322
|
+
}
|
6323
|
+
});
|
6324
|
+
}
|
6325
|
+
});
|
6326
|
+
}
|
6327
|
+
this.selectedData = __spreadArray(__spreadArray(__spreadArray([], __read(this.selectedData)), __read(selectProcess_2)), [newSelectedProcess]);
|
6328
|
+
this.selectedData2 = __spreadArray(__spreadArray([], __read(this.selectedData2)), __read(selectDocument_3));
|
6329
|
+
setTimeout(function () {
|
6330
|
+
var treeNode = {
|
6331
|
+
id: newNodeProcess_1.childId,
|
6332
|
+
name: newNodeProcess_1.childName,
|
6333
|
+
children: [],
|
6334
|
+
parentId: newNodeProcess_1.rootId
|
6335
|
+
};
|
6336
|
+
_this.dataTrees.toArray()[0].todoItemSelectionProcessDocument([treeNode]);
|
6337
|
+
}, 500);
|
6363
6338
|
}
|
6364
|
-
|
6365
|
-
|
6366
|
-
|
6367
|
-
|
6368
|
-
|
6369
|
-
|
6339
|
+
break;
|
6340
|
+
case this.dataType.deviationType:
|
6341
|
+
case this.dataType.checklistCategory:
|
6342
|
+
case this.dataType.riskFolder:
|
6343
|
+
position = this.treeData1.findIndex(function (x) {
|
6344
|
+
return x.rootId.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === (item.parentId ? item.parentId.toLowerCase() : '');
|
6345
|
+
});
|
6346
|
+
this.selectNodeRecursive(this.treeData1[position], item.itemType);
|
6347
|
+
break;
|
6348
|
+
case this.dataType.deviation:
|
6349
|
+
case this.dataType.checklist:
|
6350
|
+
position = this.treeData1.findIndex(function (x) {
|
6351
|
+
return x.childId && x.childId.toLowerCase() === item.id.toLowerCase() && x.rootId.toLowerCase() === item.parentId.toLowerCase();
|
6352
|
+
});
|
6353
|
+
if (position >= 0) {
|
6354
|
+
node = this.treeData1[position];
|
6355
|
+
typeId = this.itemType;
|
6356
|
+
var treeNode_4 = {
|
6357
|
+
id: node.childId,
|
6358
|
+
name: node.childName,
|
6370
6359
|
children: [],
|
6371
|
-
parentId:
|
6360
|
+
parentId: node.rootId
|
6372
6361
|
};
|
6373
|
-
|
6374
|
-
}
|
6375
|
-
|
6362
|
+
this.dataTrees.toArray()[0].todoItemSelection([treeNode_4]);
|
6363
|
+
}
|
6364
|
+
break;
|
6365
|
+
default:
|
6366
|
+
return;
|
6376
6367
|
}
|
6377
6368
|
}
|
6378
6369
|
};
|
@@ -6506,6 +6497,18 @@
|
|
6506
6497
|
this.checkedNodeList = this.checkedNodeList.slice(this.maxSelectItemCount * -1);
|
6507
6498
|
}
|
6508
6499
|
}
|
6500
|
+
this.selectedData = this.checkedNodeList.map(function (item) {
|
6501
|
+
return {
|
6502
|
+
id: item.id,
|
6503
|
+
name: item.itemName,
|
6504
|
+
parentId: item.parentId,
|
6505
|
+
levelType: item.levelType,
|
6506
|
+
level: 0,
|
6507
|
+
expandable: true,
|
6508
|
+
hasChild: true,
|
6509
|
+
disabled: false
|
6510
|
+
};
|
6511
|
+
});
|
6509
6512
|
};
|
6510
6513
|
RelatedPopupComponent.prototype.getDocumentCheckedNode = function (list) {
|
6511
6514
|
var _this = this;
|
@@ -6839,36 +6842,26 @@
|
|
6839
6842
|
return this.getModuleFilteredOptions(moduleId).length > 0;
|
6840
6843
|
};
|
6841
6844
|
RelatedPopupComponent.prototype.selectNodeTreeEvent = function (node) {
|
6842
|
-
var
|
6843
|
-
|
6844
|
-
|
6845
|
+
var index = this.selectedData.findIndex(function (x) { return x.id.toLowerCase() === node.id.toLowerCase()
|
6846
|
+
&& (!node.parentId || x.parentId.toLowerCase() === node.parentId.toLowerCase()) && x.expandable === node.expandable; });
|
6847
|
+
if (index >= 0) {
|
6848
|
+
this.selectedData = this.selectedData.filter(function (x, ind) { return ind !== index; });
|
6845
6849
|
}
|
6846
|
-
|
6847
|
-
|
6848
|
-
|
6849
|
-
|
6850
|
-
|
6851
|
-
|
6852
|
-
|
6853
|
-
|
6850
|
+
else {
|
6851
|
+
this.selectedData = __spreadArray(__spreadArray([], __read(this.selectedData)), [node]);
|
6852
|
+
this.commonCheckedList = __spreadArray(__spreadArray([], __read(this.commonCheckedList)), [node]);
|
6853
|
+
}
|
6854
|
+
};
|
6855
|
+
RelatedPopupComponent.prototype.selectNodeTree2Event = function (node) {
|
6856
|
+
var index = this.selectedData2.findIndex(function (x) { return x.id.toLowerCase() === node.id.toLowerCase()
|
6857
|
+
&& (!node.parentId || x.parentId.toLowerCase() === node.parentId.toLowerCase()) && x.expandable === node.expandable; });
|
6858
|
+
if (index >= 0) {
|
6859
|
+
this.selectedData2 = this.selectedData2.filter(function (x, ind) { return ind !== index; });
|
6854
6860
|
}
|
6855
6861
|
else {
|
6856
|
-
|
6857
|
-
|
6858
|
-
parentName = this.treeData1[position].parentId ? this.treeData1[position].subName : this.treeData1[position].rootName;
|
6859
|
-
itemNumberId = (_d = (_c = this.treeData1[position]) === null || _c === void 0 ? void 0 : _c.displayId) === null || _d === void 0 ? void 0 : _d.toString();
|
6862
|
+
this.selectedData2 = __spreadArray(__spreadArray([], __read(this.selectedData2)), [node]);
|
6863
|
+
this.documentCheckedList = __spreadArray(__spreadArray([], __read(this.documentCheckedList)), [node]);
|
6860
6864
|
}
|
6861
|
-
this.checkedNodeList = [];
|
6862
|
-
this.checkedNodeList.push({
|
6863
|
-
moduleId: this.moduleId,
|
6864
|
-
id: node.id,
|
6865
|
-
itemName: node.name,
|
6866
|
-
itemType: node.itemType,
|
6867
|
-
parentId: node.parentId,
|
6868
|
-
parentName: parentName,
|
6869
|
-
itemNumberId: itemNumberId,
|
6870
|
-
levelType: node.levelType
|
6871
|
-
});
|
6872
6865
|
};
|
6873
6866
|
RelatedPopupComponent.prototype.getChildNodeSelectOne = function (listChildren) {
|
6874
6867
|
this.listChildrenSelectOne = [];
|
@@ -6876,7 +6869,7 @@
|
|
6876
6869
|
};
|
6877
6870
|
RelatedPopupComponent.prototype.hasSelected = function (related) {
|
6878
6871
|
var arrDisabledList = this.disabledList.concat(this.disabledList2);
|
6879
|
-
return arrDisabledList.some(function (node) { return node.id.toUpperCase() === related.id.toUpperCase(); });
|
6872
|
+
return arrDisabledList.some(function (node) { return node.id.toUpperCase() === related.id.toUpperCase() && (!related.parentId || related.parentId.toLowerCase() === node.parentId.toLowerCase()); });
|
6880
6873
|
};
|
6881
6874
|
RelatedPopupComponent.prototype.toRelatedOptions = function (relateds) {
|
6882
6875
|
var e_1, _j;
|
@@ -6907,7 +6900,7 @@
|
|
6907
6900
|
RelatedPopupComponent.decorators = [
|
6908
6901
|
{ type: i0.Component, args: [{
|
6909
6902
|
selector: 'qms-related-popup',
|
6910
|
-
template: "<div id=\"qmslib_related_popup\" class=\"qmslib__related__popup__container\">\r\n <div id=\"qmslib_related_popup_header\">\r\n <span mat-icon-button class=\"button__close\" (click)=\"onCloseClick()\">\r\n <mat-icon mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmslib_related_popup_header_001\" mat-dialog-content>\r\n <span>{{ moduleName | uppercase }}</span>\r\n </div>\r\n </div>\r\n\r\n <div id=\"qmslib_related_popup_search\" class=\"input__field\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n />\r\n <mat-icon>search</mat-icon>\r\n </div>\r\n\r\n <div class=\"line__divider\"></div>\r\n\r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n (optionSelected)=\"selectRelated($event.option.value)\"\r\n [displayWith]=\"displayWhenSelectRelatedOption\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n [class.related-viewport]=\"isInputValue\"\r\n *ngIf=\"filteredOptions.length\"\r\n >\r\n <ng-container *ngFor=\"let type of searchOrder\">\r\n <div\r\n class=\"search__module-result\"\r\n *ngIf=\"canShowSearchOption(type.value)\"\r\n >\r\n <span class=\"search__module-title\">{{ getTitle(type.value) }}</span>\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions(type.value)\"\r\n [value]=\"option\"\r\n [disabled]=\"option.disabled\"\r\n >\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(option)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div\r\n qms-line\r\n type=\"caption\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(searchItemResult) ? option.parentName : ''\r\n }}\"\r\n mode=\"dark\"\r\n *ngIf=\"getParentName(option)\"\r\n >\r\n <span #searchItemResult class=\"search__result__parent-name\">\r\n {{ option.parentName }}\r\n </span>\r\n </div>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"option.breadcumbs && option.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-containe\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"option.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span class=\"material-icons-outlined search__description-icon\">\r\n local_offer\r\n </span>\r\n {{ getItemId(option) }}\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\r\n </ng-container>\r\n </cdk-virtual-scroll-viewport>\r\n </mat-autocomplete>\r\n\r\n <div class=\"row\">\r\n <div\r\n class=\"qms-scrollbar qmslib_related_popup_content\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length,\r\n 'col-6': splitView,\r\n 'col-12': !splitView\r\n }\"\r\n >\r\n <ng-container *ngIf=\"treeData1.length > 0\">\r\n <mat-expansion-panel\r\n hideToggle\r\n id=\"qmslib_related_popup_common_001\"\r\n [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\"\r\n (closed)=\"isCommonExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title *ngIf=\"moduleId === module.documentProcess\">\r\n {{ LANG.PROCESSES | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.deviation\">\r\n {{ LANG.DEVIATION | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.checklist\">\r\n {{ LANG.CHECKLIST | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.risk\">\r\n {{ LANG.ASSESSMENT | uppercase }}\r\n </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isCommonExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree\r\n [treeData]=\"treeData1\"\r\n [treeConfig]=\"treeConfig1\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"getCommonCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.area)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeProcess($event)\"\r\n ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"treeData2.length > 0\">\r\n <div\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n class=\"line__divider\"\r\n ></div>\r\n\r\n <mat-expansion-panel\r\n hideToggle\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n id=\"qmslib_related_popup_document_001\"\r\n [expanded]=\"isDocumentExpanded\"\r\n (opened)=\"isDocumentExpanded = true\"\r\n (closed)=\"isDocumentExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title>\r\n {{ LANG.DOCUMENTS | uppercase }}\r\n </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isDocumentExpanded\r\n ? \"keyboard_arrow_up\"\r\n : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_document_002\">\r\n <qms-tree\r\n [treeData]=\"treeData2\"\r\n [treeConfig]=\"treeConfig2\"\r\n [selectedData]=\"selectedData2\"\r\n [disabledList]=\"disabledList2\"\r\n (checkBoxEvent)=\"getDocumentCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.folder)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeDocument($event)\"\r\n ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"splitView\"\r\n class=\"\r\n qms-scrollbar\r\n qmslib-related-popup-splitview qmslib_related_popup_content\r\n col-6\r\n \"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\"\r\n >\r\n <div class=\"splitview-header\" *ngIf=\"selectedFolder\">\r\n {{ splitViewTitle }}\r\n </div>\r\n <div class=\"expand-node\" *ngFor=\"let node of itemInSplitview\">\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n [checked]=\"isNodeSelected(node)\"\r\n (change)=\"toggleSelectItem(node)\"\r\n ></mat-checkbox>\r\n <mat-icon\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n ></mat-icon>\r\n <span class=\"text-node\">{{ node.itemName }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"checkedNodeList.length\" class=\"line__divider\"></div>\r\n\r\n <div *ngIf=\"checkedNodeList.length\" class=\"panel__item qms-scrollbar\">\r\n <div class=\"related__item__inline\" *ngFor=\"let item of checkedNodeList\">\r\n <button\r\n *ngIf=\"item.itemName\"\r\n mat-button\r\n class=\"related__item__content\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\r\n }}\"\r\n mode=\"dark\"\r\n >\r\n <span class=\"related__item__content_name\" #itemName>{{\r\n getItemChipName(item)\r\n }}</span>\r\n <mat-icon\r\n *ngIf=\"!(treeConfig1?.selectOne || treeConfig2?.selectOne)\"\r\n (click)=\"removeCheckedNodeList(item)\"\r\n >cancel</mat-icon\r\n >\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"line__divider\"></div>\r\n\r\n <div class=\"confirm__button__groups\">\r\n <button\r\n *ngIf=\"!checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 7px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }}\r\n </button>\r\n <button\r\n *ngIf=\"checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 0px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button\r\n qms-btn-text\r\n [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>\r\n",
|
6903
|
+
template: "<div id=\"qmslib_related_popup\" class=\"qmslib__related__popup__container\">\r\n <div id=\"qmslib_related_popup_header\">\r\n <span mat-icon-button class=\"button__close\" (click)=\"onCloseClick()\">\r\n <mat-icon mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmslib_related_popup_header_001\" mat-dialog-content>\r\n <span>{{ moduleName | uppercase }}</span>\r\n </div>\r\n </div>\r\n\r\n <div id=\"qmslib_related_popup_search\" class=\"input__field\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n />\r\n <mat-icon>search</mat-icon>\r\n </div>\r\n\r\n <div class=\"line__divider\"></div>\r\n\r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n (optionSelected)=\"selectRelated($event.option.value)\"\r\n [displayWith]=\"displayWhenSelectRelatedOption\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n [class.related-viewport]=\"isInputValue\"\r\n *ngIf=\"filteredOptions.length\"\r\n >\r\n <ng-container *ngFor=\"let type of searchOrder\">\r\n <div\r\n class=\"search__module-result\"\r\n *ngIf=\"canShowSearchOption(type.value)\"\r\n >\r\n <span class=\"search__module-title\">{{ getTitle(type.value) }}</span>\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions(type.value)\"\r\n [value]=\"option\"\r\n [disabled]=\"option.disabled\"\r\n >\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(option)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div\r\n qms-line\r\n type=\"caption\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(searchItemResult) ? option.parentName : ''\r\n }}\"\r\n mode=\"dark\"\r\n *ngIf=\"getParentName(option)\"\r\n >\r\n <span #searchItemResult class=\"search__result__parent-name\">\r\n {{ option.parentName }}\r\n </span>\r\n </div>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"option.breadcumbs && option.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-containe\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"option.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span class=\"material-icons-outlined search__description-icon\">\r\n local_offer\r\n </span>\r\n {{ getItemId(option) }}\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\r\n </ng-container>\r\n </cdk-virtual-scroll-viewport>\r\n </mat-autocomplete>\r\n\r\n <div class=\"row\">\r\n <div\r\n class=\"qms-scrollbar qmslib_related_popup_content\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length,\r\n 'col-6': splitView,\r\n 'col-12': !splitView\r\n }\"\r\n >\r\n <ng-container *ngIf=\"treeData1.length > 0\">\r\n <mat-expansion-panel\r\n hideToggle\r\n id=\"qmslib_related_popup_common_001\"\r\n [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\"\r\n (closed)=\"isCommonExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title *ngIf=\"moduleId === module.documentProcess\">\r\n {{ LANG.PROCESSES | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.deviation\">\r\n {{ LANG.DEVIATION | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.checklist\">\r\n {{ LANG.CHECKLIST | uppercase }}\r\n </mat-panel-title>\r\n <mat-panel-title *ngIf=\"moduleId === module.risk\">\r\n {{ LANG.ASSESSMENT | uppercase }}\r\n </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isCommonExpanded ? \"keyboard_arrow_up\" : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree\r\n [treeData]=\"treeData1\"\r\n [treeConfig]=\"treeConfig1\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"getCommonCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.area)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeProcess($event)\"\r\n ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"treeData2.length > 0\">\r\n <div\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n class=\"line__divider\"\r\n ></div>\r\n\r\n <mat-expansion-panel\r\n hideToggle\r\n *ngIf=\"moduleId === module.documentProcess\"\r\n id=\"qmslib_related_popup_document_001\"\r\n [expanded]=\"isDocumentExpanded\"\r\n (opened)=\"isDocumentExpanded = true\"\r\n (closed)=\"isDocumentExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <mat-expansion-panel-header class=\"padding-5\">\r\n <mat-panel-title>\r\n {{ LANG.DOCUMENTS | uppercase }}\r\n </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isDocumentExpanded\r\n ? \"keyboard_arrow_up\"\r\n : \"keyboard_arrow_down\"\r\n }}\r\n </mat-icon>\r\n </button>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmslib_related_popup_document_002\">\r\n <qms-tree\r\n [treeData]=\"treeData2\"\r\n [treeConfig]=\"treeConfig2\"\r\n [selectedData]=\"selectedData2\"\r\n [disabledList]=\"disabledList2\"\r\n (checkBoxEvent)=\"getDocumentCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event, dataType.folder)\"\r\n (selectNodeEvent)=\"selectNodeTree2Event($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"!splitView\"\r\n [parentNodeOnClick]=\"parentNodeSelected\"\r\n (treeControlNodes)=\"selectTreeControlNodeDocument($event)\"\r\n ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </ng-container>\r\n </div>\r\n <div\r\n *ngIf=\"splitView\"\r\n class=\"\r\n qms-scrollbar\r\n qmslib-related-popup-splitview qmslib_related_popup_content\r\n col-6\r\n \"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\"\r\n >\r\n <div class=\"splitview-header\" *ngIf=\"selectedFolder\">\r\n {{ splitViewTitle }}\r\n </div>\r\n <div class=\"expand-node\" *ngFor=\"let node of itemInSplitview\">\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n [checked]=\"isNodeSelected(node)\"\r\n (change)=\"toggleSelectItem(node)\"\r\n ></mat-checkbox>\r\n <mat-icon\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n ></mat-icon>\r\n <span class=\"text-node\">{{ node.itemName }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"checkedNodeList.length\" class=\"line__divider\"></div>\r\n\r\n <div *ngIf=\"checkedNodeList.length\" class=\"panel__item qms-scrollbar\">\r\n <div class=\"related__item__inline\" *ngFor=\"let item of checkedNodeList\">\r\n <button\r\n *ngIf=\"item.itemName\"\r\n mat-button\r\n class=\"related__item__content\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\r\n }}\"\r\n mode=\"dark\"\r\n >\r\n <span class=\"related__item__content_name\" #itemName>{{\r\n getItemChipName(item)\r\n }}</span>\r\n <mat-icon\r\n *ngIf=\"!(treeConfig1?.selectOne || treeConfig2?.selectOne)\"\r\n (click)=\"removeCheckedNodeList(item)\"\r\n >cancel</mat-icon\r\n >\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"line__divider\"></div>\r\n\r\n <div class=\"confirm__button__groups\">\r\n <button\r\n *ngIf=\"!checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 7px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }}\r\n </button>\r\n <button\r\n *ngIf=\"checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 0px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button\r\n qms-btn-text\r\n [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>\r\n",
|
6911
6904
|
encapsulation: i0.ViewEncapsulation.None,
|
6912
6905
|
styles: [".qms-scrollbar::-webkit-scrollbar{width:12px}.qms-scrollbar::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}.qms-scrollbar::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-scrollbar::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-scrollbar.none-scroll-bg::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:#fff;padding:0;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;height:20px;width:20px;font-family:Open Sans;font-size:12px;font-weight:600;font-style:normal;line-height:16px}.qms__danger .red{background-color:#9e360f;margin-left:10px}.qms__danger .yellow{background-color:#e4cf53;margin-left:10px;color:#323232}.qms__danger .green{background-color:#00804c;margin-left:10px}.confirm__button__groups{margin-top:11px}.confirm__button__groups button{min-height:36px;width:auto;font-family:Open Sans;font-weight:500;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px;margin-right:5px;float:right}.confirm__button__groups .confirm{background:#f8f9f9}.confirm__button__groups .confirm:hover{background:#001983;color:#fff}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:#f8f9f9}.confirm__button__groups .cancel:hover{background:#001983;color:#fff}.qmslib__related__popup__container .input__field{display:flex;align-items:center}.qmslib__related__popup__container .input__field input{width:100%;padding:10px;outline:none;border:none;background:#eee}.qmslib__related__popup__container .input__field .mat-icon{margin-left:-30px;cursor:pointer;vertical-align:middle}.qmslib__related__popup__container .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qmslib__related__popup__container .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qmslib__related__popup__container .panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel-tree .mat-expansion-panel-body{padding:0 12px 12px}.qmslib__related__popup__container .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qmslib__related__popup__container .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qmslib__related__popup__container .mat-expansion-panel-header .related_popup_toggle-btn{width:1.5rem;height:1.5rem;line-height:1.5rem}.qmslib__related__popup__container .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qmslib__related__popup__container .panel__item{height:100px;margin-top:12px;overflow-x:hidden;overflow-y:auto;padding-right:5px;width:100%;max-width:100%;display:flex;flex-wrap:wrap;align-content:flex-start}.qmslib__related__popup__container .panel__item .related__item__inline{max-width:100%}.qmslib__related__popup__container .panel__item .related__item__content{height:32px;line-height:32px;background-color:#e5e5e5;max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qmslib__related__popup__container .panel__item .related__item__content .mat-icon{color:#8e8e8e;font-size:24px}.qmslib__related__popup__container .panel__item .related__item__content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:278px}.qmslib__related__popup__container .qmslib-related-popup-splitview{background-color:#fff;border-left:1px solid #ccc;height:450px;overflow-y:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview.panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview.panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .qmslib-related-popup-splitview .splitview-header{height:30px;font-size:12px;letter-spacing:1px;font-family:RALEWAY;font-weight:600;display:flex;align-items:center}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options{padding:0}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.qmslib__related__popup__container .qmslib-related-popup-splitview .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node{margin-left:8px;display:flex;align-items:center;min-height:40px}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.qmslib__related__popup__container .qmslib-related-popup-splitview .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}cdk-virtual-scroll-viewport{overflow-x:hidden}cdk-virtual-scroll-viewport .search__module-result{margin:1.5rem;padding:0 0 .5rem}cdk-virtual-scroll-viewport .search__module-result .search__module-title{font-size:14px;font-weight:600}cdk-virtual-scroll-viewport .search__module-result .search__option{height:auto;line-height:normal;padding:8px 0;border-bottom:1px solid #e0e0e0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item.mat-2-line.image-item{height:auto}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content{margin:0;border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square{width:2.5rem;height:100%;background:transparent;align-self:center;margin-right:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square img{width:24px;height:24px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .material-icons-outlined.leading-icon,cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content mat-icon.leading-icon{padding:4px 0 4px 4px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .subtitle{font-weight:400}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption{overflow:hidden;line-height:normal;white-space:normal;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0;margin:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption span.search__result__parent-name{display:inline-block;width:auto;width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .default-subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .search__description-icon{margin-right:0;width:12px;height:12px;font-size:12px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .qms-list-text{border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .breadcrumb-containe .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .breadcrumb-containe .qms-breadcrumb-item-text,cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .breadcrumb-containe .qms-breadcrumb-item .mat-icon,cdk-virtual-scroll-viewport .search__module-result .mat-option[aria-disabled=true] .subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{margin-bottom:20px;padding:0;font-weight:600;font-family:Raleway}.padding-5{padding:5px}.mat-autocomplete_related-viewport{height:100%;max-height:100%!important}.mat-autocomplete_related-viewport .cdk-virtual-scroll-content-wrapper{width:100%}.mat-autocomplete_related-viewport .related-viewport{min-height:300px}"]
|
6913
6906
|
},] }
|
@@ -19622,7 +19615,7 @@
|
|
19622
19615
|
var node = this.dataTrees.toArray()[0].getNodeByIdAndParentId(selectedOption.id, selectedOption.parentId);
|
19623
19616
|
if (node) {
|
19624
19617
|
this.dataTrees.toArray()[0].expandNode(node);
|
19625
|
-
var element = document.getElementById("_" + (node.parentId ? node.parentId : '') + "_" + node.id + "_" + node.level);
|
19618
|
+
var element = document.getElementById("_" + (node.parentId ? node.parentId.toLowerCase() : '') + "_" + node.id.toLowerCase() + "_" + node.level);
|
19626
19619
|
if (element) {
|
19627
19620
|
element.scrollIntoView(false);
|
19628
19621
|
}
|