qms-angular 1.0.53 → 1.0.57
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/README.md +46 -1
- package/bundles/qms-angular.umd.js +1133 -453
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/qms-app-bar/qms-app-bar.component.js +1 -1
- package/esm2015/lib/components/related/model/popup-data.model.js +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +52 -31
- package/esm2015/lib/components/related/risk/analysis/analysis.component.js +1 -1
- package/esm2015/lib/components/select-include-children/enum/select-option-type.enum.js +7 -0
- package/esm2015/lib/components/select-include-children/model/select-option.model.js +1 -1
- package/esm2015/lib/components/select-include-children/model/select-popup-data.model.js +1 -1
- package/esm2015/lib/components/select-include-children/model/select-search-option.model.js +4 -0
- package/esm2015/lib/components/select-include-children/model/seleted-option.model.js +3 -0
- package/esm2015/lib/components/select-include-children/select-include-children.component.js +419 -331
- package/esm2015/lib/components/select-include-children/services/select-global.service.js +3 -7
- package/esm2015/lib/components/select-one/common/data-type.enum.js +14 -0
- package/esm2015/lib/components/select-one/common/document-folder-type.enum.js +12 -0
- package/esm2015/lib/components/select-one/common/module-type.enum.js +8 -0
- package/esm2015/lib/components/select-one/common/select-data.model.js +3 -0
- package/esm2015/lib/components/select-one/common/selected-node.model.js +3 -0
- package/esm2015/lib/components/select-one/common/selectone-popup-data.model.js +11 -0
- package/esm2015/lib/components/select-one/common/show-hide-search-result.const.js +6 -0
- package/esm2015/lib/components/select-one/index.js +2 -0
- package/esm2015/lib/components/select-one/public_api.js +7 -0
- package/esm2015/lib/components/select-one/select-one.component.js +359 -0
- package/esm2015/lib/components/select-one/select-one.module.js +94 -0
- package/esm2015/lib/components/select-one/service/select-one-global.service.js +18 -0
- package/esm2015/lib/components/tree/tree.component.js +69 -5
- package/esm2015/public-api.js +5 -1
- package/fesm2015/qms-angular.js +1088 -444
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/related/model/popup-data.model.d.ts +0 -1
- package/lib/components/related/popup/related-popup.component.d.ts +4 -5
- package/lib/components/select-include-children/enum/select-option-type.enum.d.ts +5 -0
- package/lib/components/select-include-children/model/select-option.model.d.ts +2 -0
- package/lib/components/select-include-children/model/select-popup-data.model.d.ts +4 -0
- package/lib/components/select-include-children/model/select-search-option.model.d.ts +7 -0
- package/lib/components/select-include-children/model/seleted-option.model.d.ts +15 -0
- package/lib/components/select-include-children/select-include-children.component.d.ts +32 -18
- package/lib/components/select-include-children/services/select-global.service.d.ts +3 -5
- package/lib/components/select-one/common/data-type.enum.d.ts +12 -0
- package/lib/components/select-one/common/document-folder-type.enum.d.ts +10 -0
- package/lib/components/select-one/common/module-type.enum.d.ts +6 -0
- package/lib/components/select-one/common/select-data.model.d.ts +12 -0
- package/lib/components/select-one/common/selected-node.model.d.ts +12 -0
- package/lib/components/select-one/common/selectone-popup-data.model.d.ts +12 -0
- package/lib/components/select-one/common/show-hide-search-result.const.d.ts +5 -0
- package/lib/components/select-one/index.d.ts +1 -0
- package/lib/components/select-one/public_api.d.ts +6 -0
- package/lib/components/select-one/select-one.component.d.ts +80 -0
- package/lib/components/select-one/select-one.module.d.ts +25 -0
- package/lib/components/select-one/service/select-one-global.service.d.ts +10 -0
- package/lib/components/tree/tree.component.d.ts +6 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -2
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
- package/src/assets/qms-ckeditor-plugin/src/ckeditor.js +0 -2
- package/src/lib/components/qms-app-bar/qms-app-bar.component.scss +7 -0
- package/src/lib/components/select-include-children/select-include-children.component.scss +11 -4
- package/src/lib/components/select-one/select-one.component.scss +240 -0
package/fesm2015/qms-angular.js
CHANGED
|
@@ -60,7 +60,7 @@ import { MatSnackBarConfig, MatSnackBar, MatSnackBarModule } from '@angular/mate
|
|
|
60
60
|
import * as i6$2 from '@ckeditor/ckeditor5-angular';
|
|
61
61
|
import { CKEditorModule as CKEditorModule$1 } from '@ckeditor/ckeditor5-angular';
|
|
62
62
|
import { __awaiter } from 'tslib';
|
|
63
|
-
import * as
|
|
63
|
+
import * as $$1 from 'jquery';
|
|
64
64
|
import * as _ from 'lodash';
|
|
65
65
|
import { memoize } from 'lodash';
|
|
66
66
|
import * as i8$1 from '@angular/material/tabs';
|
|
@@ -78,8 +78,9 @@ import { MatToolbarModule } from '@angular/material/toolbar';
|
|
|
78
78
|
import { STEPPER_GLOBAL_OPTIONS } from '@angular/cdk/stepper';
|
|
79
79
|
import * as i1$7 from '@angular/material/stepper';
|
|
80
80
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
81
|
-
import * as
|
|
81
|
+
import * as i7$3 from '@angular/material/slide-toggle';
|
|
82
82
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
83
|
+
import { SelectOptionTypes as SelectOptionTypes$1 } from 'projects/qms-angular/src/public-api';
|
|
83
84
|
|
|
84
85
|
class QmsAngularService {
|
|
85
86
|
constructor() { }
|
|
@@ -4383,7 +4384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
4383
4384
|
}]
|
|
4384
4385
|
}] });
|
|
4385
4386
|
|
|
4386
|
-
var DataType;
|
|
4387
|
+
var DataType$1;
|
|
4387
4388
|
(function (DataType) {
|
|
4388
4389
|
DataType[DataType["process"] = 2] = "process";
|
|
4389
4390
|
DataType[DataType["document"] = 1] = "document";
|
|
@@ -4395,9 +4396,9 @@ var DataType;
|
|
|
4395
4396
|
DataType[DataType["deviationType"] = 8] = "deviationType";
|
|
4396
4397
|
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
|
4397
4398
|
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
|
4398
|
-
})(DataType || (DataType = {}));
|
|
4399
|
+
})(DataType$1 || (DataType$1 = {}));
|
|
4399
4400
|
|
|
4400
|
-
var DocumentNodeType;
|
|
4401
|
+
var DocumentNodeType$1;
|
|
4401
4402
|
(function (DocumentNodeType) {
|
|
4402
4403
|
DocumentNodeType[DocumentNodeType["Document"] = 1] = "Document";
|
|
4403
4404
|
DocumentNodeType[DocumentNodeType["LinkDocument"] = 2] = "LinkDocument";
|
|
@@ -4407,7 +4408,7 @@ var DocumentNodeType;
|
|
|
4407
4408
|
DocumentNodeType[DocumentNodeType["TopFolder"] = 6] = "TopFolder";
|
|
4408
4409
|
DocumentNodeType[DocumentNodeType["DepartmentFolder"] = 7] = "DepartmentFolder";
|
|
4409
4410
|
DocumentNodeType[DocumentNodeType["RegionalFolder"] = 8] = "RegionalFolder";
|
|
4410
|
-
})(DocumentNodeType || (DocumentNodeType = {}));
|
|
4411
|
+
})(DocumentNodeType$1 || (DocumentNodeType$1 = {}));
|
|
4411
4412
|
|
|
4412
4413
|
class RelatedConst {
|
|
4413
4414
|
}
|
|
@@ -4522,6 +4523,7 @@ class TreeComponent {
|
|
|
4522
4523
|
this.selectedData = [];
|
|
4523
4524
|
this.selectedRiskData = [];
|
|
4524
4525
|
this.disabledList = [];
|
|
4526
|
+
this.expandToChildNode = [];
|
|
4525
4527
|
this.selectNodeEvent = new EventEmitter();
|
|
4526
4528
|
this.selectFolderEvent = new EventEmitter();
|
|
4527
4529
|
this.checkBoxEvent = new EventEmitter();
|
|
@@ -4558,7 +4560,7 @@ class TreeComponent {
|
|
|
4558
4560
|
this.isChecked = false;
|
|
4559
4561
|
this.idCheckIcon = '';
|
|
4560
4562
|
this.listChildNode = [];
|
|
4561
|
-
this.dataType = DataType;
|
|
4563
|
+
this.dataType = DataType$1;
|
|
4562
4564
|
this.transformer = (node, level) => {
|
|
4563
4565
|
let checkHasChild = true;
|
|
4564
4566
|
if (!node.children) {
|
|
@@ -4621,7 +4623,8 @@ class TreeComponent {
|
|
|
4621
4623
|
JSON.stringify(changes.selectedData.previousValue))) {
|
|
4622
4624
|
this.checkSelected(changes.selectedData.currentValue);
|
|
4623
4625
|
}
|
|
4624
|
-
else
|
|
4626
|
+
else if (changes.selectedData &&
|
|
4627
|
+
(changes.selectedData.currentValue.length === 0)) {
|
|
4625
4628
|
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
4626
4629
|
this.checklistSelection.deselect(this.treeControl.dataNodes[i]);
|
|
4627
4630
|
}
|
|
@@ -4629,6 +4632,10 @@ class TreeComponent {
|
|
|
4629
4632
|
if (changes.disabledList && JSON.stringify(changes.disabledList.currentValue) !== JSON.stringify(changes.disabledList.previousValue)) {
|
|
4630
4633
|
this.checkDisabledList();
|
|
4631
4634
|
}
|
|
4635
|
+
// expand all parent to show node
|
|
4636
|
+
if (changes.expandToChildNode && JSON.stringify(changes.expandToChildNode.currentValue) !== JSON.stringify(changes.expandToChildNode.previousValue)) {
|
|
4637
|
+
this.openExpandToChildNode();
|
|
4638
|
+
}
|
|
4632
4639
|
}
|
|
4633
4640
|
ngOnInit() {
|
|
4634
4641
|
this.initTreeData();
|
|
@@ -4690,8 +4697,42 @@ class TreeComponent {
|
|
|
4690
4697
|
}
|
|
4691
4698
|
//check disabled list
|
|
4692
4699
|
this.checkDisabledList();
|
|
4700
|
+
// expand to child node
|
|
4701
|
+
this.openExpandToChildNode();
|
|
4702
|
+
}
|
|
4703
|
+
openExpandToChildNode() {
|
|
4704
|
+
if (this.expandToChildNode.length) {
|
|
4705
|
+
if (this.expandToChildNode[0] === '') {
|
|
4706
|
+
this.idCheckIcon = '';
|
|
4707
|
+
this.treeControl.collapseAll();
|
|
4708
|
+
this.cdRef.detectChanges();
|
|
4709
|
+
return;
|
|
4710
|
+
}
|
|
4711
|
+
let itemMarkChecked = this.expandToChildNode[this.expandToChildNode.length - 1].toUpperCase();
|
|
4712
|
+
this.idCheckIcon = itemMarkChecked;
|
|
4713
|
+
// get all children nodes on same level
|
|
4714
|
+
let listChildNodeSameLevel = this.findChildNode(itemMarkChecked, this.dataSource.data);
|
|
4715
|
+
// get all children in all level
|
|
4716
|
+
this.listChildNode = [];
|
|
4717
|
+
this.getChild(listChildNodeSameLevel);
|
|
4718
|
+
this.getChildNodeSelectOne.emit(this.listChildNode);
|
|
4719
|
+
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
4720
|
+
if (itemMarkChecked === this.treeControl.dataNodes[i].id) {
|
|
4721
|
+
this.selectNodeEvent.emit(this.treeControl.dataNodes[i]);
|
|
4722
|
+
}
|
|
4723
|
+
this.expandToChildNode.forEach(el => {
|
|
4724
|
+
if (this.treeControl.dataNodes[i].id === el.toUpperCase()) {
|
|
4725
|
+
this.treeControl.expand(this.treeControl.dataNodes[i]);
|
|
4726
|
+
}
|
|
4727
|
+
});
|
|
4728
|
+
}
|
|
4729
|
+
}
|
|
4693
4730
|
}
|
|
4694
4731
|
checkDisabledList() {
|
|
4732
|
+
// Enable whole tree
|
|
4733
|
+
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
4734
|
+
this.treeControl.dataNodes[i].disabled = false;
|
|
4735
|
+
}
|
|
4695
4736
|
// Disable List
|
|
4696
4737
|
if (this.disabledList.length) {
|
|
4697
4738
|
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
@@ -4785,7 +4826,7 @@ class TreeComponent {
|
|
|
4785
4826
|
this.checklistSelection.deselect(tree);
|
|
4786
4827
|
for (let j = 0; j < itemSelected.length; j++) {
|
|
4787
4828
|
const element = itemSelected[j];
|
|
4788
|
-
if (tree.id === element.id && (!element.parentId || tree.parentId === element.parentId)
|
|
4829
|
+
if (tree.id === element.id && (!element.parentId || tree.parentId === element.parentId)) {
|
|
4789
4830
|
this.checklistSelection.select(tree);
|
|
4790
4831
|
}
|
|
4791
4832
|
}
|
|
@@ -4837,6 +4878,7 @@ class TreeComponent {
|
|
|
4837
4878
|
}
|
|
4838
4879
|
/** Toggle the to-do item selection. Select/deselect all the descendants node */
|
|
4839
4880
|
todoItemSelectionToggle(node) {
|
|
4881
|
+
this.selectNodeEvent.emit(node);
|
|
4840
4882
|
// tree have duplicate node
|
|
4841
4883
|
if (this.treeConfig.canHaveDupId) {
|
|
4842
4884
|
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
@@ -4899,7 +4941,20 @@ class TreeComponent {
|
|
|
4899
4941
|
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
4900
4942
|
if (this.treeControl.dataNodes[i].id === node.id &&
|
|
4901
4943
|
this.treeControl.dataNodes[i].parentId === node.parentId &&
|
|
4902
|
-
!this.treeControl.dataNodes[i].disabled) {
|
|
4944
|
+
!this.treeControl.dataNodes[i].disabled && !this.treeControl.dataNodes[i].expandable) {
|
|
4945
|
+
if (!this.checklistSelection.isSelected(this.treeControl.dataNodes[i]))
|
|
4946
|
+
this.checklistSelection.toggle(this.treeControl.dataNodes[i]);
|
|
4947
|
+
}
|
|
4948
|
+
}
|
|
4949
|
+
});
|
|
4950
|
+
this.checkBoxEvent.emit(this.checklistSelection.selected);
|
|
4951
|
+
}
|
|
4952
|
+
todoFolderSelection(nodes) {
|
|
4953
|
+
nodes.forEach(node => {
|
|
4954
|
+
for (let i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
4955
|
+
if (this.treeControl.dataNodes[i].id === node.id &&
|
|
4956
|
+
this.treeControl.dataNodes[i].parentId === node.parentId &&
|
|
4957
|
+
!this.treeControl.dataNodes[i].disabled && this.treeControl.dataNodes[i].expandable) {
|
|
4903
4958
|
if (!this.checklistSelection.isSelected(this.treeControl.dataNodes[i]))
|
|
4904
4959
|
this.checklistSelection.toggle(this.treeControl.dataNodes[i]);
|
|
4905
4960
|
}
|
|
@@ -4920,11 +4975,11 @@ class TreeComponent {
|
|
|
4920
4975
|
checkDataTypeSelectNode(node) {
|
|
4921
4976
|
let itemType = -1;
|
|
4922
4977
|
switch (this.moduleId) {
|
|
4923
|
-
case DataType.process:
|
|
4924
|
-
itemType = node.expandable ? DataType.area : DataType.process;
|
|
4978
|
+
case DataType$1.process:
|
|
4979
|
+
itemType = node.expandable ? DataType$1.area : DataType$1.process;
|
|
4925
4980
|
break;
|
|
4926
|
-
case DataType.document:
|
|
4927
|
-
itemType = node.expandable ? DataType.folder : DataType.document;
|
|
4981
|
+
case DataType$1.document:
|
|
4982
|
+
itemType = node.expandable ? DataType$1.folder : DataType$1.document;
|
|
4928
4983
|
break;
|
|
4929
4984
|
default:
|
|
4930
4985
|
itemType = this.moduleId;
|
|
@@ -5082,17 +5137,17 @@ class TreeComponent {
|
|
|
5082
5137
|
return this.treeControl.isExpanded(node) ? this.openIcon : this.closeIcon;
|
|
5083
5138
|
}
|
|
5084
5139
|
switch (this.moduleId) {
|
|
5085
|
-
case DataType.document: {
|
|
5140
|
+
case DataType$1.document: {
|
|
5086
5141
|
const nodeData = this.treeData.filter(x => { return x.rootId === node.id; });
|
|
5087
5142
|
if (nodeData.length > 0) {
|
|
5088
5143
|
switch (nodeData[0].levelType) {
|
|
5089
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5144
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5090
5145
|
return this.treeControl.isExpanded(node) ? 'department_folder_outlined' : 'department_folder';
|
|
5091
|
-
case DocumentNodeType.RegionalFolder:
|
|
5146
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5092
5147
|
return this.treeControl.isExpanded(node) ? 'regional_folder_outlined' : 'regional_folder';
|
|
5093
|
-
case DocumentNodeType.TopFolder:
|
|
5148
|
+
case DocumentNodeType$1.TopFolder:
|
|
5094
5149
|
return this.treeControl.isExpanded(node) ? 'enterprise_folder_outlined' : 'enterprise_folder';
|
|
5095
|
-
case DocumentNodeType.Folder:
|
|
5150
|
+
case DocumentNodeType$1.Folder:
|
|
5096
5151
|
return this.treeControl.isExpanded(node) ? 'local_folder_outlined' : 'local_folder';
|
|
5097
5152
|
default:
|
|
5098
5153
|
return this.treeControl.isExpanded(node) ? 'folder_outlined' : 'folder';
|
|
@@ -5100,7 +5155,7 @@ class TreeComponent {
|
|
|
5100
5155
|
}
|
|
5101
5156
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
|
5102
5157
|
}
|
|
5103
|
-
case DataType.process:
|
|
5158
|
+
case DataType$1.process:
|
|
5104
5159
|
return this.treeControl.isExpanded(node) ? 'process_area_outlined' : 'process_area';
|
|
5105
5160
|
default:
|
|
5106
5161
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
|
@@ -5108,26 +5163,26 @@ class TreeComponent {
|
|
|
5108
5163
|
}
|
|
5109
5164
|
getItemIcon(node) {
|
|
5110
5165
|
switch (this.moduleId) {
|
|
5111
|
-
case DataType.document:
|
|
5166
|
+
case DataType$1.document:
|
|
5112
5167
|
switch (node.levelType) {
|
|
5113
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5168
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5114
5169
|
return 'document_department';
|
|
5115
|
-
case DocumentNodeType.RegionalFolder:
|
|
5170
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5116
5171
|
return 'document_regional';
|
|
5117
|
-
case DocumentNodeType.TopFolder:
|
|
5172
|
+
case DocumentNodeType$1.TopFolder:
|
|
5118
5173
|
return 'document_enterprise';
|
|
5119
|
-
case DocumentNodeType.Folder:
|
|
5174
|
+
case DocumentNodeType$1.Folder:
|
|
5120
5175
|
return 'document_local';
|
|
5121
5176
|
default:
|
|
5122
5177
|
return 'document';
|
|
5123
5178
|
}
|
|
5124
|
-
case DataType.process:
|
|
5179
|
+
case DataType$1.process:
|
|
5125
5180
|
return 'process';
|
|
5126
|
-
case DataType.checklist:
|
|
5181
|
+
case DataType$1.checklist:
|
|
5127
5182
|
return 'checklist';
|
|
5128
|
-
case DataType.deviation:
|
|
5183
|
+
case DataType$1.deviation:
|
|
5129
5184
|
return 'deviation';
|
|
5130
|
-
case DataType.risk:
|
|
5185
|
+
case DataType$1.risk:
|
|
5131
5186
|
return 'risk';
|
|
5132
5187
|
default:
|
|
5133
5188
|
return 'document';
|
|
@@ -5141,9 +5196,17 @@ class TreeComponent {
|
|
|
5141
5196
|
getNodeId(node) {
|
|
5142
5197
|
return `_${node.parentId ? node.parentId : ''}_${node.id}_${node.level}`;
|
|
5143
5198
|
}
|
|
5199
|
+
getNodeByIdAndParentId(nodeId, parentId) {
|
|
5200
|
+
return this.treeControl.dataNodes.find(x => {
|
|
5201
|
+
return x.id === nodeId && x.parentId === parentId;
|
|
5202
|
+
});
|
|
5203
|
+
}
|
|
5204
|
+
expandNode(node) {
|
|
5205
|
+
this.treeControl.expand(node);
|
|
5206
|
+
}
|
|
5144
5207
|
}
|
|
5145
5208
|
TreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: TreeComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i5$2.DomSanitizer }, { token: i4.MatIconRegistry }, { token: QMSIconRegistryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5146
|
-
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: TreeComponent, selector: "qms-tree", inputs: { treeData: "treeData", treeConfig: "treeConfig", selectedData: "selectedData", selectedRiskData: "selectedRiskData", disabledList: "disabledList", expandOnTitleClick: "expandOnTitleClick" }, outputs: { selectNodeEvent: "selectNodeEvent", selectFolderEvent: "selectFolderEvent", checkBoxEvent: "checkBoxEvent", childCheckedEvent: "childCheckedEvent", nodeExpandEvent: "nodeExpandEvent", getChildNodeSelectOne: "getChildNodeSelectOne" }, usesOnChanges: true, ngImport: i0, 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]=\"treeConfig.selectOne && idCheckIcon == node.id\"\r\n (click)=\"selectNode(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name && !onlyCheckBoxForChild\"\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 && !onlyCheckBoxForChild\"\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 && !onlyCheckBoxForChild\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64 && !onlyCheckBoxForChild\"\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 && !onlyCheckBoxForChild\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span class=\"text-node\">{{ node.name }}</span>\r\n </div>\r\n <mat-icon\r\n class=\"icon-check\"\r\n *ngIf=\"treeConfig.selectOne && idCheckIcon == node.id\"\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=\"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 >\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 [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n <mat-icon\r\n class=\"icon-check\"\r\n *ngIf=\"treeConfig.selectOne && idCheckIcon == node.id\"\r\n >done</mat-icon\r\n >\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>{{ node.name }}</span>\r\n <mat-icon\r\n class=\"icon-check\"\r\n *ngIf=\"treeConfig.selectOne && idCheckIcon == node.id\"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n", 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 .icon-check{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.bgSelected .icon-check{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}"], components: [{ type: i4$2.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i6.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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9$1.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"] }], directives: [{ type: i4$2.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i4$2.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i4$2.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i4$2.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5209
|
+
TreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: TreeComponent, selector: "qms-tree", inputs: { treeData: "treeData", treeConfig: "treeConfig", selectedData: "selectedData", selectedRiskData: "selectedRiskData", disabledList: "disabledList", expandOnTitleClick: "expandOnTitleClick", expandToChildNode: "expandToChildNode" }, outputs: { selectNodeEvent: "selectNodeEvent", selectFolderEvent: "selectFolderEvent", checkBoxEvent: "checkBoxEvent", childCheckedEvent: "childCheckedEvent", nodeExpandEvent: "nodeExpandEvent", getChildNodeSelectOne: "getChildNodeSelectOne" }, usesOnChanges: true, ngImport: i0, 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]=\"treeConfig.selectOne && idCheckIcon == node.id\"\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 && !onlyCheckBoxForChild\"\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 && !onlyCheckBoxForChild\"\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 && !onlyCheckBoxForChild\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64 && !onlyCheckBoxForChild\"\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 && !onlyCheckBoxForChild\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span class=\"text-node\">{{ node.name }}</span>\r\n </div>\r\n <mat-icon\r\n class=\"icon-check\"\r\n *ngIf=\"treeConfig.selectOne && idCheckIcon == node.id\"\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=\"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 >\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 [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n <mat-icon\r\n class=\"icon-check\"\r\n *ngIf=\"treeConfig.selectOne && idCheckIcon == node.id\"\r\n >done</mat-icon\r\n >\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>{{ node.name }}</span>\r\n <mat-icon\r\n class=\"icon-check\"\r\n *ngIf=\"treeConfig.selectOne && idCheckIcon == node.id\"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n", 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 .icon-check{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.bgSelected .icon-check{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}"], components: [{ type: i4$2.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i6.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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9$1.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"] }], directives: [{ type: i4$2.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i4$2.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i4$2.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i4$2.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5147
5210
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: TreeComponent, decorators: [{
|
|
5148
5211
|
type: Component,
|
|
5149
5212
|
args: [{
|
|
@@ -5164,6 +5227,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
5164
5227
|
type: Input
|
|
5165
5228
|
}], expandOnTitleClick: [{
|
|
5166
5229
|
type: Input
|
|
5230
|
+
}], expandToChildNode: [{
|
|
5231
|
+
type: Input
|
|
5167
5232
|
}], selectNodeEvent: [{
|
|
5168
5233
|
type: Output
|
|
5169
5234
|
}], selectFolderEvent: [{
|
|
@@ -5251,7 +5316,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
5251
5316
|
class RelatedContentComponent {
|
|
5252
5317
|
constructor() {
|
|
5253
5318
|
this.contents = [];
|
|
5254
|
-
this.dataType = DataType;
|
|
5319
|
+
this.dataType = DataType$1;
|
|
5255
5320
|
this.imageProcess = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwLjVWNi41SDJWMTYuNUgxMlYxOC41SDE4VjEyLjVIMTJWMTQuNUg0VjYuNUg2VjQuNUgxMlY2LjVIMThWMC41SDEyVjIuNUg2VjAuNUgwWk00IDIuNVY0LjVIMlYyLjVINFpNMTYgMi41VjQuNUgxNFYyLjVIMTZaTTE2IDE2LjVWMTQuNUgxNFYxNi41SDE2WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC42Ii8+DQo8L3N2Zz4NCg==';
|
|
5256
5321
|
}
|
|
5257
5322
|
ngOnInit() {
|
|
@@ -5288,7 +5353,7 @@ class RelatedListComponent {
|
|
|
5288
5353
|
this.iconRegistry = iconRegistry;
|
|
5289
5354
|
this.appIconService = appIconService;
|
|
5290
5355
|
this.relatedData = [];
|
|
5291
|
-
this.dataType = DataType;
|
|
5356
|
+
this.dataType = DataType$1;
|
|
5292
5357
|
// imageProcess = '../qms-angular/src/assets/images/union.svg';
|
|
5293
5358
|
this.imageProcess = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwLjVWNi41SDJWMTYuNUgxMlYxOC41SDE4VjEyLjVIMTJWMTQuNUg0VjYuNUg2VjQuNUgxMlY2LjVIMThWMC41SDEyVjIuNUg2VjAuNUgwWk00IDIuNVY0LjVIMlYyLjVINFpNMTYgMi41VjQuNUgxNFYyLjVIMTZaTTE2IDE2LjVWMTQuNUgxNFYxNi41SDE2WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC42Ii8+DQo8L3N2Zz4NCg==';
|
|
5294
5359
|
this.updateData = new EventEmitter();
|
|
@@ -5342,43 +5407,43 @@ class RelatedListComponent {
|
|
|
5342
5407
|
}
|
|
5343
5408
|
getNodeIcon(item) {
|
|
5344
5409
|
switch (item.itemType) {
|
|
5345
|
-
case DataType.folder: {
|
|
5410
|
+
case DataType$1.folder: {
|
|
5346
5411
|
switch (item.levelType) {
|
|
5347
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5412
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5348
5413
|
return 'department_folder_outlined';
|
|
5349
|
-
case DocumentNodeType.RegionalFolder:
|
|
5414
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5350
5415
|
return 'regional_folder_outlined';
|
|
5351
|
-
case DocumentNodeType.TopFolder:
|
|
5416
|
+
case DocumentNodeType$1.TopFolder:
|
|
5352
5417
|
return 'enterprise_folder_outlined';
|
|
5353
|
-
case DocumentNodeType.Folder:
|
|
5418
|
+
case DocumentNodeType$1.Folder:
|
|
5354
5419
|
return 'local_folder_outlined';
|
|
5355
5420
|
default:
|
|
5356
5421
|
return 'folder_outlined';
|
|
5357
5422
|
}
|
|
5358
5423
|
}
|
|
5359
|
-
case DataType.document: {
|
|
5424
|
+
case DataType$1.document: {
|
|
5360
5425
|
switch (item.levelType) {
|
|
5361
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5426
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5362
5427
|
return 'document_department';
|
|
5363
|
-
case DocumentNodeType.RegionalFolder:
|
|
5428
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5364
5429
|
return 'document_regional';
|
|
5365
|
-
case DocumentNodeType.TopFolder:
|
|
5430
|
+
case DocumentNodeType$1.TopFolder:
|
|
5366
5431
|
return 'document_enterprise';
|
|
5367
|
-
case DocumentNodeType.Folder:
|
|
5432
|
+
case DocumentNodeType$1.Folder:
|
|
5368
5433
|
return 'document_local';
|
|
5369
5434
|
default:
|
|
5370
5435
|
return 'document';
|
|
5371
5436
|
}
|
|
5372
5437
|
}
|
|
5373
|
-
case DataType.area:
|
|
5438
|
+
case DataType$1.area:
|
|
5374
5439
|
return 'process_area_outlined';
|
|
5375
|
-
case DataType.process:
|
|
5440
|
+
case DataType$1.process:
|
|
5376
5441
|
return 'process';
|
|
5377
|
-
case DataType.deviation:
|
|
5442
|
+
case DataType$1.deviation:
|
|
5378
5443
|
return 'deviation';
|
|
5379
|
-
case DataType.checklist:
|
|
5444
|
+
case DataType$1.checklist:
|
|
5380
5445
|
return 'checklist';
|
|
5381
|
-
case DataType.risk:
|
|
5446
|
+
case DataType$1.risk:
|
|
5382
5447
|
return 'risk';
|
|
5383
5448
|
default:
|
|
5384
5449
|
return 'folder_outlined';
|
|
@@ -5408,13 +5473,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
5408
5473
|
type: Output
|
|
5409
5474
|
}] } });
|
|
5410
5475
|
|
|
5411
|
-
var ModuleType;
|
|
5476
|
+
var ModuleType$1;
|
|
5412
5477
|
(function (ModuleType) {
|
|
5413
5478
|
ModuleType[ModuleType["documentProcess"] = 1] = "documentProcess";
|
|
5414
5479
|
ModuleType[ModuleType["deviation"] = 2] = "deviation";
|
|
5415
5480
|
ModuleType[ModuleType["checklist"] = 3] = "checklist";
|
|
5416
5481
|
ModuleType[ModuleType["risk"] = 4] = "risk";
|
|
5417
|
-
})(ModuleType || (ModuleType = {}));
|
|
5482
|
+
})(ModuleType$1 || (ModuleType$1 = {}));
|
|
5418
5483
|
|
|
5419
5484
|
class RelatedItem {
|
|
5420
5485
|
}
|
|
@@ -5491,8 +5556,8 @@ class RelatedPopupComponent {
|
|
|
5491
5556
|
this.documentCheckedList = [];
|
|
5492
5557
|
this.singleProcessList = [];
|
|
5493
5558
|
this.singleDocumentList = [];
|
|
5494
|
-
this.module = ModuleType;
|
|
5495
|
-
this.dataType = DataType;
|
|
5559
|
+
this.module = ModuleType$1;
|
|
5560
|
+
this.dataType = DataType$1;
|
|
5496
5561
|
this.itemType = 0;
|
|
5497
5562
|
this.selectedRiskData = [];
|
|
5498
5563
|
this.disabledList = [];
|
|
@@ -5522,7 +5587,6 @@ class RelatedPopupComponent {
|
|
|
5522
5587
|
this.disabledList2 = data.disabledList2 || [];
|
|
5523
5588
|
this.splitView = data.splitView;
|
|
5524
5589
|
this.maxSelectItemCount = data.maxSelectItemCount;
|
|
5525
|
-
this.canOnlySelectItem = data.canOnlySelectItem;
|
|
5526
5590
|
appIconService.registerProcessIcon(iconRegistry, sanitizer);
|
|
5527
5591
|
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
|
5528
5592
|
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
|
@@ -5579,16 +5643,16 @@ class RelatedPopupComponent {
|
|
|
5579
5643
|
getDataTypeId(moduleId) {
|
|
5580
5644
|
let itemType;
|
|
5581
5645
|
switch (moduleId) {
|
|
5582
|
-
case ModuleType.documentProcess:
|
|
5646
|
+
case ModuleType$1.documentProcess:
|
|
5583
5647
|
itemType = this.dataType.process;
|
|
5584
5648
|
break;
|
|
5585
|
-
case ModuleType.deviation:
|
|
5649
|
+
case ModuleType$1.deviation:
|
|
5586
5650
|
itemType = this.dataType.deviation;
|
|
5587
5651
|
break;
|
|
5588
|
-
case ModuleType.checklist:
|
|
5652
|
+
case ModuleType$1.checklist:
|
|
5589
5653
|
itemType = this.dataType.checklist;
|
|
5590
5654
|
break;
|
|
5591
|
-
case ModuleType.risk:
|
|
5655
|
+
case ModuleType$1.risk:
|
|
5592
5656
|
itemType = this.dataType.risk;
|
|
5593
5657
|
break;
|
|
5594
5658
|
default:
|
|
@@ -5693,7 +5757,8 @@ class RelatedPopupComponent {
|
|
|
5693
5757
|
return related ? related.itemName : undefined;
|
|
5694
5758
|
}
|
|
5695
5759
|
selectRelated(item) {
|
|
5696
|
-
|
|
5760
|
+
var _a, _b;
|
|
5761
|
+
if (((_a = this.treeConfig1) === null || _a === void 0 ? void 0 : _a.selectOne) || ((_b = this.treeConfig2) === null || _b === void 0 ? void 0 : _b.selectOne)) {
|
|
5697
5762
|
this.disabledList = [];
|
|
5698
5763
|
this.disabledList2 = [];
|
|
5699
5764
|
}
|
|
@@ -5713,17 +5778,25 @@ class RelatedPopupComponent {
|
|
|
5713
5778
|
position = this.treeData2.findIndex(x => {
|
|
5714
5779
|
return x.childId === item.id;
|
|
5715
5780
|
});
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5781
|
+
if (position >= 0) {
|
|
5782
|
+
node = this.treeData2[position];
|
|
5783
|
+
typeId = this.dataType.document;
|
|
5784
|
+
const treeNode = {
|
|
5785
|
+
id: node.childId,
|
|
5786
|
+
name: node.childName,
|
|
5787
|
+
children: [],
|
|
5788
|
+
parentId: node.rootId
|
|
5789
|
+
};
|
|
5790
|
+
this.dataTrees.toArray()[1].todoItemSelection([treeNode]);
|
|
5791
|
+
}
|
|
5719
5792
|
}
|
|
5720
5793
|
else if (item.itemType === this.dataType.folder) {
|
|
5721
5794
|
position = this.treeData2.findIndex(x => {
|
|
5722
5795
|
return x.rootId === item.id;
|
|
5723
5796
|
});
|
|
5724
|
-
node = this.treeData2[position];
|
|
5725
5797
|
typeId = item.itemType;
|
|
5726
5798
|
if (position >= 0) {
|
|
5799
|
+
node = this.treeData2[position];
|
|
5727
5800
|
if (this.treeConfig2.showCheckBox) {
|
|
5728
5801
|
this.checkedNodeList.push({
|
|
5729
5802
|
moduleId: this.moduleId,
|
|
@@ -5744,13 +5817,19 @@ class RelatedPopupComponent {
|
|
|
5744
5817
|
levelType: item.levelType
|
|
5745
5818
|
});
|
|
5746
5819
|
}
|
|
5747
|
-
|
|
5820
|
+
const treeNode = {
|
|
5821
|
+
id: node.rootId,
|
|
5822
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
|
5823
|
+
children: [],
|
|
5824
|
+
parentId: node.parentId
|
|
5825
|
+
};
|
|
5826
|
+
this.dataTrees.toArray()[1].todoFolderSelection([treeNode]);
|
|
5748
5827
|
}
|
|
5749
5828
|
return;
|
|
5750
5829
|
}
|
|
5751
5830
|
else if ((item.itemType === this.dataType.deviationType
|
|
5752
5831
|
|| item.itemType === this.dataType.checklistCategory
|
|
5753
|
-
|| item.itemType === this.dataType.riskFolder)
|
|
5832
|
+
|| item.itemType === this.dataType.riskFolder)) {
|
|
5754
5833
|
position = this.treeData1.findIndex(x => {
|
|
5755
5834
|
return x.rootId === item.id;
|
|
5756
5835
|
});
|
|
@@ -5760,9 +5839,9 @@ class RelatedPopupComponent {
|
|
|
5760
5839
|
position = this.treeData1.findIndex(x => {
|
|
5761
5840
|
return x.rootId === item.id;
|
|
5762
5841
|
});
|
|
5763
|
-
node = this.treeData1[position];
|
|
5764
5842
|
typeId = item.itemType;
|
|
5765
5843
|
if (position >= 0) {
|
|
5844
|
+
node = this.treeData1[position];
|
|
5766
5845
|
if (this.treeConfig1.showCheckBox) {
|
|
5767
5846
|
this.checkedNodeList.push({
|
|
5768
5847
|
moduleId: this.moduleId,
|
|
@@ -5784,13 +5863,35 @@ class RelatedPopupComponent {
|
|
|
5784
5863
|
});
|
|
5785
5864
|
}
|
|
5786
5865
|
}
|
|
5787
|
-
|
|
5866
|
+
const treeNode = {
|
|
5867
|
+
id: node.rootId,
|
|
5868
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
|
5869
|
+
children: [],
|
|
5870
|
+
parentId: node.parentId
|
|
5871
|
+
};
|
|
5872
|
+
this.dataTrees.toArray()[0].todoFolderSelection([treeNode]);
|
|
5788
5873
|
return;
|
|
5789
5874
|
}
|
|
5790
5875
|
else if (item.itemType === this.dataType.deviation ||
|
|
5791
5876
|
item.itemType === this.dataType.checklist) {
|
|
5792
5877
|
position = this.treeData1.findIndex(x => {
|
|
5793
|
-
return x.childId === item.id
|
|
5878
|
+
return x.childId.toLowerCase() === item.id.toLowerCase();
|
|
5879
|
+
});
|
|
5880
|
+
if (position >= 0) {
|
|
5881
|
+
node = this.treeData1[position];
|
|
5882
|
+
typeId = this.itemType;
|
|
5883
|
+
const treeNode = {
|
|
5884
|
+
id: node.childId,
|
|
5885
|
+
name: node.childName,
|
|
5886
|
+
children: [],
|
|
5887
|
+
parentId: node.rootId
|
|
5888
|
+
};
|
|
5889
|
+
this.dataTrees.toArray()[0].todoItemSelection([treeNode]);
|
|
5890
|
+
}
|
|
5891
|
+
}
|
|
5892
|
+
else {
|
|
5893
|
+
position = this.treeData1.findIndex(x => {
|
|
5894
|
+
return x.childId.toLowerCase() === item.id.toLowerCase();
|
|
5794
5895
|
});
|
|
5795
5896
|
node = this.treeData1[position];
|
|
5796
5897
|
typeId = this.itemType;
|
|
@@ -5802,17 +5903,6 @@ class RelatedPopupComponent {
|
|
|
5802
5903
|
};
|
|
5803
5904
|
this.dataTrees.toArray()[0].todoItemSelection([treeNode]);
|
|
5804
5905
|
}
|
|
5805
|
-
else {
|
|
5806
|
-
// process, risk,...
|
|
5807
|
-
position = this.treeData1.findIndex(x => {
|
|
5808
|
-
return x.childId.toLowerCase() === item.id.toLowerCase();
|
|
5809
|
-
});
|
|
5810
|
-
node = this.treeData1[position];
|
|
5811
|
-
typeId = this.itemType;
|
|
5812
|
-
if (node) {
|
|
5813
|
-
this.dataTrees.toArray()[0].todoItemSelectionById([node.childId]);
|
|
5814
|
-
}
|
|
5815
|
-
}
|
|
5816
5906
|
}
|
|
5817
5907
|
}
|
|
5818
5908
|
selectNodeRecursive(item, itemType) {
|
|
@@ -6038,7 +6128,7 @@ class RelatedPopupComponent {
|
|
|
6038
6128
|
return (elmHeight + elmMargin);
|
|
6039
6129
|
}
|
|
6040
6130
|
getItemChipName(item) {
|
|
6041
|
-
if (item.itemType === DataType.checklist || item.itemType === DataType.deviation) {
|
|
6131
|
+
if (item.itemType === DataType$1.checklist || item.itemType === DataType$1.deviation) {
|
|
6042
6132
|
return (item.parentName && item.itemName !== item.parentName) ? `${item.parentName}/${item.itemName}` : item.itemName;
|
|
6043
6133
|
}
|
|
6044
6134
|
return item.itemName;
|
|
@@ -6048,43 +6138,43 @@ class RelatedPopupComponent {
|
|
|
6048
6138
|
}
|
|
6049
6139
|
getNodeIcon(item) {
|
|
6050
6140
|
switch (item.itemType) {
|
|
6051
|
-
case DataType.folder: {
|
|
6141
|
+
case DataType$1.folder: {
|
|
6052
6142
|
switch (item.levelType) {
|
|
6053
|
-
case DocumentNodeType.DepartmentFolder:
|
|
6143
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
6054
6144
|
return 'department_folder_outlined';
|
|
6055
|
-
case DocumentNodeType.RegionalFolder:
|
|
6145
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
6056
6146
|
return 'regional_folder_outlined';
|
|
6057
|
-
case DocumentNodeType.TopFolder:
|
|
6147
|
+
case DocumentNodeType$1.TopFolder:
|
|
6058
6148
|
return 'enterprise_folder_outlined';
|
|
6059
|
-
case DocumentNodeType.Folder:
|
|
6149
|
+
case DocumentNodeType$1.Folder:
|
|
6060
6150
|
return 'local_folder_outlined';
|
|
6061
6151
|
default:
|
|
6062
6152
|
return 'folder_outlined';
|
|
6063
6153
|
}
|
|
6064
6154
|
}
|
|
6065
|
-
case DataType.document: {
|
|
6155
|
+
case DataType$1.document: {
|
|
6066
6156
|
switch (item.levelType) {
|
|
6067
|
-
case DocumentNodeType.DepartmentFolder:
|
|
6157
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
6068
6158
|
return 'document_department';
|
|
6069
|
-
case DocumentNodeType.RegionalFolder:
|
|
6159
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
6070
6160
|
return 'document_regional';
|
|
6071
|
-
case DocumentNodeType.TopFolder:
|
|
6161
|
+
case DocumentNodeType$1.TopFolder:
|
|
6072
6162
|
return 'document_enterprise';
|
|
6073
|
-
case DocumentNodeType.Folder:
|
|
6163
|
+
case DocumentNodeType$1.Folder:
|
|
6074
6164
|
return 'document_local';
|
|
6075
6165
|
default:
|
|
6076
6166
|
return 'document';
|
|
6077
6167
|
}
|
|
6078
6168
|
}
|
|
6079
|
-
case DataType.area:
|
|
6169
|
+
case DataType$1.area:
|
|
6080
6170
|
return 'process_area_outlined';
|
|
6081
|
-
case DataType.process:
|
|
6171
|
+
case DataType$1.process:
|
|
6082
6172
|
return 'process';
|
|
6083
|
-
case DataType.deviation:
|
|
6173
|
+
case DataType$1.deviation:
|
|
6084
6174
|
return 'deviation';
|
|
6085
|
-
case DataType.checklist:
|
|
6175
|
+
case DataType$1.checklist:
|
|
6086
6176
|
return 'checklist';
|
|
6087
|
-
case DataType.risk:
|
|
6177
|
+
case DataType$1.risk:
|
|
6088
6178
|
return 'risk';
|
|
6089
6179
|
default:
|
|
6090
6180
|
return 'folder_outlined';
|
|
@@ -6098,25 +6188,25 @@ class RelatedPopupComponent {
|
|
|
6098
6188
|
}
|
|
6099
6189
|
getTitle(type) {
|
|
6100
6190
|
switch (type) {
|
|
6101
|
-
case DataType.process:
|
|
6191
|
+
case DataType$1.process:
|
|
6102
6192
|
return this.LANG.PROCESSES;
|
|
6103
|
-
case DataType.area:
|
|
6193
|
+
case DataType$1.area:
|
|
6104
6194
|
return this.LANG.PROCESS_AREA;
|
|
6105
|
-
case DataType.document:
|
|
6195
|
+
case DataType$1.document:
|
|
6106
6196
|
return this.LANG.DOCUMENTS;
|
|
6107
|
-
case DataType.folder:
|
|
6197
|
+
case DataType$1.folder:
|
|
6108
6198
|
return this.LANG.FOLDER;
|
|
6109
|
-
case DataType.deviation:
|
|
6199
|
+
case DataType$1.deviation:
|
|
6110
6200
|
return this.LANG.DEVIATION;
|
|
6111
|
-
case DataType.deviationType:
|
|
6201
|
+
case DataType$1.deviationType:
|
|
6112
6202
|
return this.LANG.DEVIATION_TYPE;
|
|
6113
|
-
case DataType.checklist:
|
|
6203
|
+
case DataType$1.checklist:
|
|
6114
6204
|
return this.LANG.CHECKLIST;
|
|
6115
|
-
case DataType.checklistCategory:
|
|
6205
|
+
case DataType$1.checklistCategory:
|
|
6116
6206
|
return this.LANG.CHECKLIST_CATEGORY;
|
|
6117
|
-
case DataType.risk:
|
|
6207
|
+
case DataType$1.risk:
|
|
6118
6208
|
return this.LANG.ASSESSMENT;
|
|
6119
|
-
case DataType.riskFolder:
|
|
6209
|
+
case DataType$1.riskFolder:
|
|
6120
6210
|
return this.LANG.FOLDER;
|
|
6121
6211
|
}
|
|
6122
6212
|
}
|
|
@@ -6181,12 +6271,8 @@ class RelatedPopupComponent {
|
|
|
6181
6271
|
}
|
|
6182
6272
|
}
|
|
6183
6273
|
canShowSearchOption(moduleId) {
|
|
6184
|
-
if (this.
|
|
6185
|
-
(moduleId === DataType.
|
|
6186
|
-
|| moduleId === DataType.riskFolder
|
|
6187
|
-
|| moduleId === DataType.deviationType
|
|
6188
|
-
|| (moduleId === DataType.area && this.treeConfig1 && !this.treeConfig1.singleSelectedNode)
|
|
6189
|
-
|| (moduleId === DataType.folder && this.treeConfig2 && !this.treeConfig2.singleSelectedNode))) {
|
|
6274
|
+
if ((moduleId === DataType$1.area && this.treeConfig1 && !this.treeConfig1.singleSelectedNode)
|
|
6275
|
+
|| (moduleId === DataType$1.folder && this.treeConfig2 && !this.treeConfig2.singleSelectedNode)) {
|
|
6190
6276
|
return false;
|
|
6191
6277
|
}
|
|
6192
6278
|
return this.getModuleFilteredOptions(moduleId).length > 0;
|
|
@@ -6196,7 +6282,7 @@ class RelatedPopupComponent {
|
|
|
6196
6282
|
let position = -1;
|
|
6197
6283
|
let parentName = '';
|
|
6198
6284
|
let itemNumberId = '';
|
|
6199
|
-
if (node.itemType == DataType.folder || node.itemType == DataType.document) {
|
|
6285
|
+
if (node.itemType == DataType$1.folder || node.itemType == DataType$1.document) {
|
|
6200
6286
|
position = !node.expandable ? this.treeData2.findIndex(p => p.childId === node.id && p.rootId === node.parentId) :
|
|
6201
6287
|
this.treeData2.findIndex(p => p.rootId === node.id);
|
|
6202
6288
|
parentName = this.treeData2[position].parentId ? this.treeData2[position].subName : this.treeData2[position].rootName;
|
|
@@ -6226,7 +6312,7 @@ class RelatedPopupComponent {
|
|
|
6226
6312
|
}
|
|
6227
6313
|
}
|
|
6228
6314
|
RelatedPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: RelatedPopupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TranslateLibraryService }, { token: i1$2.MatDialogRef }, { token: QMSRelatedGlobalService }, { token: i4.MatIconRegistry }, { token: i5$2.DomSanitizer }, { token: QMSIconRegistryService }, { token: i0.ElementRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
6229
|
-
RelatedPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: RelatedPopupComponent, selector: "qms-related-popup", host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "autoComplete", first: true, predicate: ["autoCompleteInputSearch"], descendants: true, read: MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0, 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\r\n id=\"qmslib_related_popup_search\"\r\n class=\"input__field\"\r\n (click)=\"showSearchResult()\"\r\n >\r\n <input\r\n #name\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n #autoCompleteInputSearch\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 [displayWith]=\"displayRelated\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n class=\"related-viewport\"\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 (click)=\"selectRelated(option)\"\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 <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 ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n\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> {{ LANG.DOCUMENTS | uppercase }} </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isDocumentExpanded ? \"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_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 ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\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", 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 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:10.25rem}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: QMSListItem, selector: "qms-list-item", inputs: ["type"] }, { type: QMSBreadcrumb, selector: "qms-breadcrumb", inputs: ["nodes", "type", "maxLine", "numDisplayItem", "onlyItem", "disabledLastItem"], outputs: ["onItemClick"] }, { type: i12$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i12$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight"] }, { type: QMSButtonIcon, selector: "button[qms-btn-icon]", inputs: ["disabled", "color", "type"], exportAs: ["qmsButtonIcon"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: i6.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: i9$1.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: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: QMSListLeadingIcon, selector: "[leading-icon]" }, { type: QMSListHeader, selector: "[qms-list-header]" }, { type: QMSListLine, selector: "[qms-line]", inputs: ["size", "type", "color"] }, { type: QMSToolTipRendererDirective, selector: "[qms-tool-tip]", inputs: ["showToolTip", "mode", "qms-tool-tip", "contentTemplate", "position"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5$1.UpperCasePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
6315
|
+
RelatedPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: RelatedPopupComponent, selector: "qms-related-popup", host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "autoComplete", first: true, predicate: ["autoCompleteInputSearch"], descendants: true, read: MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0, 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\r\n id=\"qmslib_related_popup_search\"\r\n class=\"input__field\"\r\n (click)=\"showSearchResult()\"\r\n >\r\n <input\r\n #name\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n #autoCompleteInputSearch\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 [displayWith]=\"displayRelated\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n class=\"related-viewport\"\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 (click)=\"selectRelated(option)\"\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 <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 ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n\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> {{ LANG.DOCUMENTS | uppercase }} </mat-panel-title>\r\n <button qms-btn-icon class=\"related_popup_toggle-btn\">\r\n <mat-icon>\r\n {{\r\n isDocumentExpanded ? \"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_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 ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\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", 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 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:10.25rem}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: QMSListItem, selector: "qms-list-item", inputs: ["type"] }, { type: QMSBreadcrumb, selector: "qms-breadcrumb", inputs: ["nodes", "type", "maxLine", "numDisplayItem", "onlyItem", "disabledLastItem"], outputs: ["onItemClick"] }, { type: i12$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i12$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight"] }, { type: QMSButtonIcon, selector: "button[qms-btn-icon]", inputs: ["disabled", "color", "type"], exportAs: ["qmsButtonIcon"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick", "expandToChildNode"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: i6.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: i9$1.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: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: QMSListLeadingIcon, selector: "[leading-icon]" }, { type: QMSListHeader, selector: "[qms-list-header]" }, { type: QMSListLine, selector: "[qms-line]", inputs: ["size", "type", "color"] }, { type: QMSToolTipRendererDirective, selector: "[qms-tool-tip]", inputs: ["showToolTip", "mode", "qms-tool-tip", "contentTemplate", "position"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5$1.UpperCasePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
6230
6316
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: RelatedPopupComponent, decorators: [{
|
|
6231
6317
|
type: Component,
|
|
6232
6318
|
args: [{
|
|
@@ -6298,7 +6384,7 @@ class RiskAnalysisComponent {
|
|
|
6298
6384
|
showCheckBox: true,
|
|
6299
6385
|
allowMultipleCheck: true,
|
|
6300
6386
|
onlyCheckBoxForChild: false,
|
|
6301
|
-
moduleId: DataType.risk,
|
|
6387
|
+
moduleId: DataType$1.risk,
|
|
6302
6388
|
openIcon: 'keyboard_arrow_up',
|
|
6303
6389
|
openIconColor: '#1954A9',
|
|
6304
6390
|
closeIcon: 'keyboard_arrow_down',
|
|
@@ -6347,7 +6433,7 @@ class RiskAnalysisComponent {
|
|
|
6347
6433
|
}
|
|
6348
6434
|
}
|
|
6349
6435
|
RiskAnalysisComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: RiskAnalysisComponent, deps: [{ token: TranslateLibraryService }, { token: i1$2.MatDialog }, { token: i1$2.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
6350
|
-
RiskAnalysisComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: RiskAnalysisComponent, selector: "qms-risk-analysis", ngImport: i0, template: "<div\r\n id=\"qmslib_risk_analysis\"\r\n class=\"qmslib__risk__analysis__container qms__popup\"\r\n>\r\n <div id=\"qmslib_risk_analysis_title\">\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_risk_analysis_title_001\" mat-dialog-content class=\"title\">\r\n <span>{{ title }}</span>\r\n </div>\r\n </div>\r\n <div id=\"qmslib_risk_analysis_header_001\" class=\"regular\">\r\n <span>{{ LANG.REGULAR_TITLE }}</span>\r\n </div>\r\n <div id=\"qmslib_risk_analysis_header_002\" class=\"caption__regular\">\r\n <span>{{ LANG.CAPTION_TITLE }}</span>\r\n </div>\r\n <div class=\"line__divider\"></div>\r\n <div id=\"qmslib_risk_analysis_header_003\" class=\"overline\">\r\n <span>{{ LANG.CAUSAL_ANALYZES | uppercase }}</span>\r\n </div>\r\n <div\r\n id=\"qmslib_risk_analysis_content\"\r\n class=\"panel__content qms-scrollbar\"\r\n [ngClass]=\"\r\n !analysisDanger.length ? 'panel__content__error' : 'panel__content'\r\n \"\r\n >\r\n <qms-tree\r\n [treeData]=\"dangers\"\r\n [treeConfig]=\"dangerConfig\"\r\n [selectedData]=\"selectedData\"\r\n [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"toggleChileNode($event)\"\r\n ></qms-tree>\r\n </div>\r\n\r\n <div *ngIf=\"!analysisDanger.length\" class=\"line__divider\"></div>\r\n\r\n <div *ngIf=\"!analysisDanger.length\" class=\"panel__error\">\r\n <span class=\"material-icons-outlined\">info</span>\r\n <span class=\"message\"> {{ LANG.ERROR.SELECT_DANGER }}</span>\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 qms-btn\r\n [disabled]=\"!analysisDanger.length\"\r\n (click)=\"onFinishClick()\"\r\n >\r\n {{ LANG.FINISHED }}\r\n </button>\r\n <button qms-btn-text (click)=\"onCancelClick()\">\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>\r\n", 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__risk__analysis__container .title{font:Raleway;font-weight:600;font-style:normal;font-size:16px;line-height:22px;color:#323232}.qmslib__risk__analysis__container .line__divider{border-bottom:1px solid #ccc;height:1px;min-width:300px;max-width:100%}.qmslib__risk__analysis__container .regular{font-family:Open Sans;font-weight:400;font-style:normal;font-size:16px;line-height:28px;margin-top:10px}.qmslib__risk__analysis__container .caption__regular{font-family:Open Sans;font-weight:400;font-style:normal;font-size:12px;line-height:16px;margin-top:10px}.qmslib__risk__analysis__container .overline{font-family:Raleway;font-weight:600;font-style:normal;font-size:12px;letter-spacing:1px;line-height:16px;margin-top:15px}.qmslib__risk__analysis__container .panel__content{height:394px;overflow:auto;margin-top:12px}.qmslib__risk__analysis__container .panel__content__error{height:354px;overflow:auto;margin-top:12px}.qmslib__risk__analysis__container .panel__error{height:40px;color:#b00020;display:flex;flex-wrap:wrap;align-content:center;margin-left:15px}.qmslib__risk__analysis__container .panel__error .message{font-family:Open Sans;font-weight:400;font-style:normal;font-size:14px;line-height:22px;margin-left:10px}.qmslib__risk__analysis__container .mat-dialog-content.title{padding:0}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "uppercase": i5$1.UpperCasePipe } });
|
|
6436
|
+
RiskAnalysisComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: RiskAnalysisComponent, selector: "qms-risk-analysis", ngImport: i0, template: "<div\r\n id=\"qmslib_risk_analysis\"\r\n class=\"qmslib__risk__analysis__container qms__popup\"\r\n>\r\n <div id=\"qmslib_risk_analysis_title\">\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_risk_analysis_title_001\" mat-dialog-content class=\"title\">\r\n <span>{{ title }}</span>\r\n </div>\r\n </div>\r\n <div id=\"qmslib_risk_analysis_header_001\" class=\"regular\">\r\n <span>{{ LANG.REGULAR_TITLE }}</span>\r\n </div>\r\n <div id=\"qmslib_risk_analysis_header_002\" class=\"caption__regular\">\r\n <span>{{ LANG.CAPTION_TITLE }}</span>\r\n </div>\r\n <div class=\"line__divider\"></div>\r\n <div id=\"qmslib_risk_analysis_header_003\" class=\"overline\">\r\n <span>{{ LANG.CAUSAL_ANALYZES | uppercase }}</span>\r\n </div>\r\n <div\r\n id=\"qmslib_risk_analysis_content\"\r\n class=\"panel__content qms-scrollbar\"\r\n [ngClass]=\"\r\n !analysisDanger.length ? 'panel__content__error' : 'panel__content'\r\n \"\r\n >\r\n <qms-tree\r\n [treeData]=\"dangers\"\r\n [treeConfig]=\"dangerConfig\"\r\n [selectedData]=\"selectedData\"\r\n [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"toggleChileNode($event)\"\r\n ></qms-tree>\r\n </div>\r\n\r\n <div *ngIf=\"!analysisDanger.length\" class=\"line__divider\"></div>\r\n\r\n <div *ngIf=\"!analysisDanger.length\" class=\"panel__error\">\r\n <span class=\"material-icons-outlined\">info</span>\r\n <span class=\"message\"> {{ LANG.ERROR.SELECT_DANGER }}</span>\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 qms-btn\r\n [disabled]=\"!analysisDanger.length\"\r\n (click)=\"onFinishClick()\"\r\n >\r\n {{ LANG.FINISHED }}\r\n </button>\r\n <button qms-btn-text (click)=\"onCancelClick()\">\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>\r\n", 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__risk__analysis__container .title{font:Raleway;font-weight:600;font-style:normal;font-size:16px;line-height:22px;color:#323232}.qmslib__risk__analysis__container .line__divider{border-bottom:1px solid #ccc;height:1px;min-width:300px;max-width:100%}.qmslib__risk__analysis__container .regular{font-family:Open Sans;font-weight:400;font-style:normal;font-size:16px;line-height:28px;margin-top:10px}.qmslib__risk__analysis__container .caption__regular{font-family:Open Sans;font-weight:400;font-style:normal;font-size:12px;line-height:16px;margin-top:10px}.qmslib__risk__analysis__container .overline{font-family:Raleway;font-weight:600;font-style:normal;font-size:12px;letter-spacing:1px;line-height:16px;margin-top:15px}.qmslib__risk__analysis__container .panel__content{height:394px;overflow:auto;margin-top:12px}.qmslib__risk__analysis__container .panel__content__error{height:354px;overflow:auto;margin-top:12px}.qmslib__risk__analysis__container .panel__error{height:40px;color:#b00020;display:flex;flex-wrap:wrap;align-content:center;margin-left:15px}.qmslib__risk__analysis__container .panel__error .message{font-family:Open Sans;font-weight:400;font-style:normal;font-size:14px;line-height:22px;margin-left:10px}.qmslib__risk__analysis__container .mat-dialog-content.title{padding:0}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick", "expandToChildNode"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "uppercase": i5$1.UpperCasePipe } });
|
|
6351
6437
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: RiskAnalysisComponent, decorators: [{
|
|
6352
6438
|
type: Component,
|
|
6353
6439
|
args: [{
|
|
@@ -11900,13 +11986,13 @@ class BpmnService {
|
|
|
11900
11986
|
return !!selectedShapeId && models.filter(model => model.attributes.id == selectedShapeId);
|
|
11901
11987
|
}
|
|
11902
11988
|
function showStatus(message, type) {
|
|
11903
|
-
|
|
11904
|
-
|
|
11989
|
+
$$1('.status').removeClass('info error success').addClass(type).html(message);
|
|
11990
|
+
$$1('#statusbar-container')
|
|
11905
11991
|
.dequeue()
|
|
11906
11992
|
.addClass('active')
|
|
11907
11993
|
.delay(3000)
|
|
11908
11994
|
.queue(() => {
|
|
11909
|
-
|
|
11995
|
+
$$1(this).removeClass('active');
|
|
11910
11996
|
});
|
|
11911
11997
|
}
|
|
11912
11998
|
function replaceLink(graph, link, linkConstructor) {
|
|
@@ -23013,7 +23099,7 @@ class QmsAppBarComponent {
|
|
|
23013
23099
|
}
|
|
23014
23100
|
}
|
|
23015
23101
|
QmsAppBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QmsAppBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23016
|
-
QmsAppBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: QmsAppBarComponent, selector: "app-qms-app-bar", inputs: { isNomalType: "isNomalType", leftFirstIcon: "leftFirstIcon", title: "title", cancelTitle: "cancelTitle", confirmTitle: "confirmTitle", disabledConfirmAction: "disabledConfirmAction", hideMenuDropdown: "hideMenuDropdown", logoSvgPath: "logoSvgPath", imgSvgPath: "imgSvgPath", isImgSvgTransparent: "isImgSvgTransparent", rightIcons: "rightIcons", notifications: "notifications" }, outputs: { onClickLeftFirstIconEvent: "onClickLeftFirstIconEvent", onCancelEvent: "onCancelEvent", onConfirmEvent: "onConfirmEvent", onMenuClickedEvent: "onMenuClickedEvent", onRightIconClickedEvent: "onRightIconClickedEvent" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"qms-app-bar-container\">\r\n <mat-toolbar class=\"bar-container\" *ngIf=\"!isNomalType\">\r\n <span class=\"w-100\">\r\n <span class=\"col-4 d-inline-flex align-items-lg-center\">\r\n <div *ngIf=\"hideMenuDropdown\" class=\"border align-self-center\">\r\n <div *ngIf=\"logoSvgPath\" class=\"logo-container\">\r\n <img [src]=\"logoSvgPath\" alt=\"\" />\r\n </div>\r\n </div>\r\n <div *ngIf=\"!hideMenuDropdown\">\r\n <button #menu class=\"collapse-icon\" mat-button>\r\n <mat-icon class=\"mat-icon-rtl-mirror\" (click)=\"onMenuClicked()\">\r\n menu\r\n </mat-icon>\r\n </button>\r\n <img [src]=\"logoSvgPath\" alt=\"\" />\r\n </div>\r\n <span class=\"p-3\">{{title}}</span>\r\n <div class=\"spacer\"></div>\r\n </span>\r\n <span class=\"align-items-sm-center col-4 d-inline-flex justify-content-center\">\r\n <div *ngIf=\"imgSvgPath\" class=\"img-container\" [class.bg-transparent]=\"isImgSvgTransparent\">\r\n <img [src]=\"imgSvgPath\" alt=\"\" />\r\n </div>\r\n </span>\r\n <span class=\"col-4 d-inline-flex justify-content-end\">\r\n <button (click)=\"onRightIconClicked(item.icon)\" *ngFor=\"let item of rightIcons\" class=\"menu-item-icon\"\r\n mat-button>\r\n <mat-icon *ngIf=\"item.icon == 'notifications_none'\" matBadge=\"{{notifications}}\"\r\n matBadgeColor=\"warn\">\r\n {{item.icon}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"item.icon != 'notifications_none'\"\r\n class=\"material-icons-outlined mat-icon-rtl-mirror\">\r\n {{item.icon}}\r\n </mat-icon>\r\n <span class=\"mg-l-3\">{{item.tooltip}}</span>\r\n </button>\r\n </span>\r\n </span>\r\n </mat-toolbar>\r\n <mat-toolbar class=\"bar-prv-container\" *ngIf=\"isNomalType\">\r\n <button class=\"icon-title\" #menu qms-btn-text (click)=\"onClickLeftFirstIcon()\">\r\n <mat-icon class=\"cusor-pointer\">\r\n {{leftFirstIcon}}\r\n </mat-icon>\r\n </button>\r\n <span class=\"content-title\">{{title}}</span>\r\n <div class=\"spacer\"></div>\r\n <div class=\"right-content\">\r\n <button qms-btn-text (click)=\"onCancel()\" class=\"cusor-pointer mr-22\" *ngIf=\"cancelTitle\">\r\n {{cancelTitle}}\r\n </button>\r\n <button qms-btn [disabled]=\"disabledConfirmAction\" class=\"cusor-pointer\" (click)=\"onConfirm()\" *ngIf=\"confirmTitle\">\r\n {{confirmTitle}}\r\n </button>\r\n </div>\r\n </mat-toolbar>\r\n</div>", styles: [".qms-app-bar-container{height:56px}.qms-app-bar-container .spacer{flex:1 1 auto}.qms-app-bar-container .mat-toolbar{background:#00324e;color:#fff;height:56px}.qms-app-bar-container .bar-prv-container{background:#e4e4e4}.qms-app-bar-container .bar-prv-container .close-icon,.qms-app-bar-container .bar-prv-container .title-icon{color:#323232}.qms-app-bar-container .bar-prv-container .right-content .mr-22{margin-right:22px}.qms-app-bar-container .bar-prv-container button:first-child:hover{background-color:rgba(0,0,0,.08)}.qms-app-bar-container .bar-prv-container .icon-title{color:#666}.qms-app-bar-container .bar-prv-container .content-title{font-family:Raleway;font-size:18px;font-style:normal;font-weight:600;line-height:21px;letter-spacing:0;text-align:left;color:#323232}.qms-app-bar-container .bar-container{padding:0!important}.qms-app-bar-container .bar-container .logo-container{background:#fff;padding:12px;height:56px}.qms-app-bar-container .bar-container .img-container{height:40px;background:#fff;padding:2px}.qms-app-bar-container .bar-container .bg-transparent{background:transparent;height:40px;padding:2px}"], components: [{ type: i1$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i9$1.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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }] });
|
|
23102
|
+
QmsAppBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: QmsAppBarComponent, selector: "app-qms-app-bar", inputs: { isNomalType: "isNomalType", leftFirstIcon: "leftFirstIcon", title: "title", cancelTitle: "cancelTitle", confirmTitle: "confirmTitle", disabledConfirmAction: "disabledConfirmAction", hideMenuDropdown: "hideMenuDropdown", logoSvgPath: "logoSvgPath", imgSvgPath: "imgSvgPath", isImgSvgTransparent: "isImgSvgTransparent", rightIcons: "rightIcons", notifications: "notifications" }, outputs: { onClickLeftFirstIconEvent: "onClickLeftFirstIconEvent", onCancelEvent: "onCancelEvent", onConfirmEvent: "onConfirmEvent", onMenuClickedEvent: "onMenuClickedEvent", onRightIconClickedEvent: "onRightIconClickedEvent" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"qms-app-bar-container\">\r\n <mat-toolbar class=\"bar-container\" *ngIf=\"!isNomalType\">\r\n <span class=\"w-100\">\r\n <span class=\"col-4 d-inline-flex align-items-lg-center\">\r\n <div *ngIf=\"hideMenuDropdown\" class=\"border align-self-center\">\r\n <div *ngIf=\"logoSvgPath\" class=\"logo-container\">\r\n <img [src]=\"logoSvgPath\" alt=\"\" />\r\n </div>\r\n </div>\r\n <div *ngIf=\"!hideMenuDropdown\">\r\n <button #menu class=\"collapse-icon\" mat-button>\r\n <mat-icon class=\"mat-icon-rtl-mirror\" (click)=\"onMenuClicked()\">\r\n menu\r\n </mat-icon>\r\n </button>\r\n <img [src]=\"logoSvgPath\" alt=\"\" />\r\n </div>\r\n <span class=\"p-3\">{{title}}</span>\r\n <div class=\"spacer\"></div>\r\n </span>\r\n <span class=\"align-items-sm-center col-4 d-inline-flex justify-content-center\">\r\n <div *ngIf=\"imgSvgPath\" class=\"img-container\" [class.bg-transparent]=\"isImgSvgTransparent\">\r\n <img [src]=\"imgSvgPath\" alt=\"\" />\r\n </div>\r\n </span>\r\n <span class=\"col-4 d-inline-flex justify-content-end\">\r\n <button (click)=\"onRightIconClicked(item.icon)\" *ngFor=\"let item of rightIcons\" class=\"menu-item-icon\"\r\n mat-button>\r\n <mat-icon *ngIf=\"item.icon == 'notifications_none'\" matBadge=\"{{notifications}}\"\r\n matBadgeColor=\"warn\">\r\n {{item.icon}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"item.icon != 'notifications_none'\"\r\n class=\"material-icons-outlined mat-icon-rtl-mirror\">\r\n {{item.icon}}\r\n </mat-icon>\r\n <span class=\"mg-l-3\">{{item.tooltip}}</span>\r\n </button>\r\n </span>\r\n </span>\r\n </mat-toolbar>\r\n <mat-toolbar class=\"bar-prv-container\" *ngIf=\"isNomalType\">\r\n <button class=\"icon-title\" #menu qms-btn-text (click)=\"onClickLeftFirstIcon()\">\r\n <mat-icon class=\"cusor-pointer\">\r\n {{leftFirstIcon}}\r\n </mat-icon>\r\n </button>\r\n <span class=\"content-title\">{{title}}</span>\r\n <div class=\"spacer\"></div>\r\n <div class=\"right-content\">\r\n <button qms-btn-text (click)=\"onCancel()\" class=\"cusor-pointer mr-22\" *ngIf=\"cancelTitle\">\r\n {{cancelTitle}}\r\n </button>\r\n <button qms-btn [disabled]=\"disabledConfirmAction\" class=\"cusor-pointer\" (click)=\"onConfirm()\" *ngIf=\"confirmTitle\">\r\n {{confirmTitle}}\r\n </button>\r\n </div>\r\n </mat-toolbar>\r\n</div>", styles: [".qms-app-bar-container{height:56px}.qms-app-bar-container .spacer{flex:1 1 auto}.qms-app-bar-container .mat-toolbar{background:#00324e;color:#fff;height:56px}.qms-app-bar-container .bar-prv-container{background:#e4e4e4}.qms-app-bar-container .bar-prv-container .close-icon,.qms-app-bar-container .bar-prv-container .title-icon{color:#323232}.qms-app-bar-container .bar-prv-container .right-content .mr-22{margin-right:22px}.qms-app-bar-container .bar-prv-container button:first-child:hover{background-color:rgba(0,0,0,.08)}.qms-app-bar-container .bar-prv-container .icon-title{color:#666;padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.qms-app-bar-container .bar-prv-container .content-title{font-family:Raleway;font-size:18px;font-style:normal;font-weight:600;line-height:21px;letter-spacing:0;text-align:left;color:#323232}.qms-app-bar-container .bar-container{padding:0!important}.qms-app-bar-container .bar-container .logo-container{background:#fff;padding:12px;height:56px}.qms-app-bar-container .bar-container .img-container{height:40px;background:#fff;padding:2px}.qms-app-bar-container .bar-container .bg-transparent{background:transparent;height:40px;padding:2px}"], components: [{ type: i1$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i9$1.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.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }] });
|
|
23017
23103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QmsAppBarComponent, decorators: [{
|
|
23018
23104
|
type: Component,
|
|
23019
23105
|
args: [{
|
|
@@ -23679,14 +23765,10 @@ SelectConst.SHOW_SEARCH_RESULT = 'SHOW_SEARCH_RESULT';
|
|
|
23679
23765
|
|
|
23680
23766
|
class QMSSelectGlobalService {
|
|
23681
23767
|
constructor() {
|
|
23682
|
-
this.
|
|
23683
|
-
this.splitViewValue = new BehaviorSubject([]);
|
|
23768
|
+
this.searchSelect = new BehaviorSubject([]);
|
|
23684
23769
|
}
|
|
23685
23770
|
setSearchResult(result) {
|
|
23686
|
-
this.
|
|
23687
|
-
}
|
|
23688
|
-
setSplitviewValue(result) {
|
|
23689
|
-
this.splitViewValue.next(result);
|
|
23771
|
+
this.searchSelect.next(result);
|
|
23690
23772
|
}
|
|
23691
23773
|
}
|
|
23692
23774
|
QMSSelectGlobalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectGlobalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -23706,13 +23788,13 @@ class SelectPopupData {
|
|
|
23706
23788
|
}
|
|
23707
23789
|
|
|
23708
23790
|
class SelectIncludeChildrenPopUpComponent {
|
|
23709
|
-
constructor(cdRef, translate, dialogRef, globalService, iconRegistry,
|
|
23791
|
+
constructor(cdRef, translate, dialogRef, globalService, iconRegistry, domSanitizer, appIconService, elem, data) {
|
|
23710
23792
|
this.cdRef = cdRef;
|
|
23711
23793
|
this.translate = translate;
|
|
23712
23794
|
this.dialogRef = dialogRef;
|
|
23713
23795
|
this.globalService = globalService;
|
|
23714
23796
|
this.iconRegistry = iconRegistry;
|
|
23715
|
-
this.
|
|
23797
|
+
this.domSanitizer = domSanitizer;
|
|
23716
23798
|
this.appIconService = appIconService;
|
|
23717
23799
|
this.elem = elem;
|
|
23718
23800
|
this.data = data;
|
|
@@ -23720,15 +23802,13 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
23720
23802
|
this.headerName = '';
|
|
23721
23803
|
this.treeData = [];
|
|
23722
23804
|
this.checkedNodeList = [];
|
|
23723
|
-
this.
|
|
23805
|
+
this.selectedOptions = [];
|
|
23724
23806
|
this.selectedData = [];
|
|
23725
23807
|
this.commonCheckedList = [];
|
|
23726
|
-
this.documentCheckedList = [];
|
|
23727
|
-
this.singleProcessList = [];
|
|
23728
23808
|
this.itemType = 0;
|
|
23729
23809
|
this.selectedRiskData = [];
|
|
23730
23810
|
this.disabledList = [];
|
|
23731
|
-
this.
|
|
23811
|
+
this.orginalDisableList = [];
|
|
23732
23812
|
this.isDocumentExpanded = true;
|
|
23733
23813
|
this.isCommonExpanded = true;
|
|
23734
23814
|
this.singleSelectOption = false;
|
|
@@ -23739,22 +23819,33 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
23739
23819
|
this.selectedFolder = null;
|
|
23740
23820
|
this.listChildrenSelectOne = [];
|
|
23741
23821
|
this.includeChildren = false;
|
|
23822
|
+
this.itemIconType = ItemIconType;
|
|
23742
23823
|
this.onSearch = new EventEmitter();
|
|
23743
23824
|
this.onExpandFolder = new EventEmitter();
|
|
23744
23825
|
this.headerName = data.headerName;
|
|
23745
23826
|
this.treeData = data.treeData;
|
|
23746
23827
|
this.treeConfig = data.treeConfig;
|
|
23747
23828
|
this.selectedRiskData = (data === null || data === void 0 ? void 0 : data.selectedNode) || [];
|
|
23748
|
-
this.disabledList = data.disabledList || [];
|
|
23829
|
+
this.disabledList = $.extend(true, [], data.disabledList || []);
|
|
23830
|
+
this.orginalDisableList = $.extend(true, [], data.disabledList || []);
|
|
23749
23831
|
this.singleSelectOption = data.treeConfig.singleSelectedNode;
|
|
23750
23832
|
this.maxSelectItemCount = data.maxSelectItemCount;
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
appIconService.
|
|
23755
|
-
appIconService.
|
|
23756
|
-
appIconService.
|
|
23757
|
-
appIconService.
|
|
23833
|
+
this.checkedNodeList = (data === null || data === void 0 ? void 0 : data.selectedList) || [];
|
|
23834
|
+
this.includeChildren = data === null || data === void 0 ? void 0 : data.includeChildren;
|
|
23835
|
+
this.editItem = data.editItem;
|
|
23836
|
+
appIconService.registerProcessIcon(iconRegistry, domSanitizer);
|
|
23837
|
+
appIconService.registerProcessAreaIcon(iconRegistry, domSanitizer);
|
|
23838
|
+
appIconService.registerDocumentIcon(iconRegistry, domSanitizer);
|
|
23839
|
+
appIconService.registerFolderIcon(iconRegistry, domSanitizer);
|
|
23840
|
+
appIconService.registerDeviationIcon(iconRegistry, domSanitizer);
|
|
23841
|
+
appIconService.registerChecklistIcon(iconRegistry, domSanitizer);
|
|
23842
|
+
appIconService.registerRiskIcon(iconRegistry, domSanitizer);
|
|
23843
|
+
}
|
|
23844
|
+
ngAfterViewInit() {
|
|
23845
|
+
if (this.editItem) {
|
|
23846
|
+
this.focusEditItem(this.editItem);
|
|
23847
|
+
}
|
|
23848
|
+
this.initTree(this.checkedNodeList);
|
|
23758
23849
|
}
|
|
23759
23850
|
ngOnDestroy() {
|
|
23760
23851
|
this.ngUnsubscribe.next();
|
|
@@ -23773,7 +23864,7 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
23773
23864
|
this.LANG = this.translate.getObjectLang(res);
|
|
23774
23865
|
}
|
|
23775
23866
|
});
|
|
23776
|
-
this.globalService.
|
|
23867
|
+
this.globalService.searchSelect.pipe(takeUntil(this.ngUnsubscribe)).subscribe((res) => {
|
|
23777
23868
|
if (res && res.length) {
|
|
23778
23869
|
this.filteredOptions = res;
|
|
23779
23870
|
}
|
|
@@ -23794,36 +23885,98 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
23794
23885
|
this.autoComplete.closePanel();
|
|
23795
23886
|
}
|
|
23796
23887
|
}
|
|
23797
|
-
|
|
23798
|
-
|
|
23799
|
-
|
|
23800
|
-
|
|
23801
|
-
|
|
23802
|
-
|
|
23803
|
-
const newSelectDocumentList = [];
|
|
23804
|
-
this.commonCheckedList.forEach(element => {
|
|
23805
|
-
this.checkedNodeList.forEach(x => {
|
|
23806
|
-
if (element.id.toLowerCase() === x.id.toLowerCase() && element.parentId.toLowerCase() === x.parentId.toLowerCase()) {
|
|
23807
|
-
tempArr.push(element);
|
|
23808
|
-
}
|
|
23809
|
-
});
|
|
23810
|
-
});
|
|
23811
|
-
this.singleProcessList.forEach(element => {
|
|
23812
|
-
this.checkedNodeList.forEach(x => {
|
|
23813
|
-
if (element.id.toLowerCase() === x.id.toLowerCase() && element.parentId.toLowerCase() === x.parentId.toLowerCase()) {
|
|
23814
|
-
newSelectProcessList.push(element);
|
|
23888
|
+
initTree(selectedOptions) {
|
|
23889
|
+
if (selectedOptions.length > 0) {
|
|
23890
|
+
selectedOptions.forEach(element => {
|
|
23891
|
+
this.selectedOptions.push(element);
|
|
23892
|
+
if (element.type === SelectOptionTypes$1.IncludeChildren) {
|
|
23893
|
+
this.selectedOptions = this.selectedOptions.concat(element.children);
|
|
23815
23894
|
}
|
|
23895
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
23816
23896
|
});
|
|
23817
|
-
}
|
|
23818
|
-
|
|
23819
|
-
|
|
23820
|
-
this.
|
|
23821
|
-
|
|
23822
|
-
|
|
23823
|
-
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23897
|
+
}
|
|
23898
|
+
}
|
|
23899
|
+
focusEditItem(selectedOption) {
|
|
23900
|
+
const node = this.dataTrees.toArray()[0].getNodeByIdAndParentId(selectedOption.id, selectedOption.parentId);
|
|
23901
|
+
if (node) {
|
|
23902
|
+
this.dataTrees.toArray()[0].expandNode(node);
|
|
23903
|
+
const element = document.getElementById(`_${node.parentId ? node.parentId : ''}_${node.id}_${node.level}`);
|
|
23904
|
+
if (element) {
|
|
23905
|
+
element.scrollIntoView(false);
|
|
23906
|
+
}
|
|
23907
|
+
}
|
|
23908
|
+
}
|
|
23909
|
+
removeCheckedNodeList(item) {
|
|
23910
|
+
const index = this.checkedNodeList.findIndex(x => (x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase()));
|
|
23911
|
+
if (index >= 0) {
|
|
23912
|
+
let position = this.selectedOptions.findIndex(x => x.id === item.id && x.parentId === item.parentId);
|
|
23913
|
+
if (position >= 0) {
|
|
23914
|
+
this.selectedOptions.splice(position, 1);
|
|
23915
|
+
}
|
|
23916
|
+
if (this.checkedNodeList[index].type === SelectOptionTypes$1.IncludeChildren) {
|
|
23917
|
+
this.removeIncludeChildren(item);
|
|
23918
|
+
}
|
|
23919
|
+
if (this.includeChildren) {
|
|
23920
|
+
this.refactorSelectList(item);
|
|
23921
|
+
}
|
|
23922
|
+
else {
|
|
23923
|
+
this.checkedNodeList.splice(index, 1);
|
|
23924
|
+
}
|
|
23925
|
+
this.enableSelectedNode({ id: item.id, parentId: item.parentId, itemName: item.name, type: SelectOptionTypes$1.IncludeChildren });
|
|
23926
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
23927
|
+
}
|
|
23928
|
+
}
|
|
23929
|
+
selectSearchOption(item) {
|
|
23930
|
+
let position = this.selectedOptions.findIndex(x => x.id === item.id && x.parentId === item.parentId);
|
|
23931
|
+
if (position < 0) {
|
|
23932
|
+
if (this.includeChildren) {
|
|
23933
|
+
this.selectIncludeChildren({
|
|
23934
|
+
id: item.id,
|
|
23935
|
+
name: item.itemName,
|
|
23936
|
+
parentId: item.parentId,
|
|
23937
|
+
level: 0,
|
|
23938
|
+
expandable: true,
|
|
23939
|
+
disabled: false,
|
|
23940
|
+
hasChild: false
|
|
23941
|
+
});
|
|
23942
|
+
this.refactorSelectList({
|
|
23943
|
+
id: item.id,
|
|
23944
|
+
name: item.itemName,
|
|
23945
|
+
parentId: item.parentId,
|
|
23946
|
+
level: 0,
|
|
23947
|
+
expandable: true,
|
|
23948
|
+
disabled: false,
|
|
23949
|
+
hasChild: false
|
|
23950
|
+
});
|
|
23951
|
+
}
|
|
23952
|
+
else {
|
|
23953
|
+
this.selectedOptions.push(item);
|
|
23954
|
+
this.checkedNodeList.push({
|
|
23955
|
+
id: item.id,
|
|
23956
|
+
itemName: item.itemName,
|
|
23957
|
+
type: SelectOptionTypes$1.SelectOne,
|
|
23958
|
+
parentId: item.parentId,
|
|
23959
|
+
children: [],
|
|
23960
|
+
noChildren: 0,
|
|
23961
|
+
noSelectedChildren: 0
|
|
23962
|
+
});
|
|
23963
|
+
}
|
|
23964
|
+
}
|
|
23965
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
23966
|
+
}
|
|
23967
|
+
getItemIconType(item) {
|
|
23968
|
+
if (item.itemIcon && item.itemIcon.length)
|
|
23969
|
+
return this.itemIconType.name;
|
|
23970
|
+
if (item.itemIconPath && item.itemIconPath.length)
|
|
23971
|
+
return this.itemIconType.path;
|
|
23972
|
+
if (item.itemIconBase64 && item.itemIconBase64.length)
|
|
23973
|
+
return this.itemIconType.base64;
|
|
23974
|
+
if (item.itemIconSvg && item.itemIconSvg.length)
|
|
23975
|
+
return this.itemIconType.svg;
|
|
23976
|
+
return this.itemIconType.none;
|
|
23977
|
+
}
|
|
23978
|
+
getImagePath(item) {
|
|
23979
|
+
return this.domSanitizer.bypassSecurityTrustResourceUrl(item.itemIconBase64);
|
|
23827
23980
|
}
|
|
23828
23981
|
isMatchTrue(arr, arr2) {
|
|
23829
23982
|
return arr.every((i) => {
|
|
@@ -23859,163 +24012,87 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
23859
24012
|
}
|
|
23860
24013
|
}
|
|
23861
24014
|
}
|
|
23862
|
-
getModuleFilteredOptions() {
|
|
23863
|
-
if (this.listChildrenSelectOne.length) {
|
|
23864
|
-
for (let index = 0; index < this.listChildrenSelectOne.length; index++) {
|
|
23865
|
-
const firstEl = this.listChildrenSelectOne[index];
|
|
23866
|
-
for (let j = 0; j < this.filteredOptions.length; j++) {
|
|
23867
|
-
const secondEl = this.filteredOptions[j];
|
|
23868
|
-
if (firstEl.id === secondEl.id) {
|
|
23869
|
-
this.filteredOptions.splice(j, 1);
|
|
23870
|
-
}
|
|
23871
|
-
}
|
|
23872
|
-
}
|
|
23873
|
-
}
|
|
23874
|
-
return this.filteredOptions;
|
|
23875
|
-
}
|
|
23876
24015
|
showSearchResult() {
|
|
23877
24016
|
this.autoComplete.openPanel();
|
|
23878
24017
|
}
|
|
23879
24018
|
displayRelated(related) {
|
|
23880
24019
|
return related ? related.itemName : undefined;
|
|
23881
24020
|
}
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
24021
|
+
getCommonCheckedNode(list) {
|
|
24022
|
+
}
|
|
24023
|
+
selectIncludeChildren(item) {
|
|
24024
|
+
let listChildren = [];
|
|
24025
|
+
listChildren = this.getAllChildrenNodeRecursive(listChildren, item);
|
|
24026
|
+
this.selectedOptions.push({
|
|
24027
|
+
id: item.id,
|
|
24028
|
+
itemName: item.name,
|
|
24029
|
+
itemNumberId: item.id,
|
|
24030
|
+
parentId: item.parentId,
|
|
24031
|
+
type: SelectOptionTypes$1.IncludeChildren
|
|
24032
|
+
});
|
|
24033
|
+
listChildren.forEach(x => {
|
|
24034
|
+
const index = this.selectedOptions.findIndex(node => node.id === x.id && node.parentId === x.parentId);
|
|
24035
|
+
if (index < 0) {
|
|
24036
|
+
this.selectedOptions.push(x);
|
|
24037
|
+
}
|
|
24038
|
+
});
|
|
24039
|
+
}
|
|
24040
|
+
removeIncludeChildren(item) {
|
|
24041
|
+
let listChildren = [];
|
|
24042
|
+
listChildren = this.getAllChildrenNodeRecursive(listChildren, item);
|
|
24043
|
+
const itemIndex = this.selectedOptions.findIndex(node => node.id === item.id && node.parentId === item.parentId);
|
|
24044
|
+
if (itemIndex >= 0) {
|
|
24045
|
+
this.selectedOptions.splice(itemIndex, 1);
|
|
23885
24046
|
}
|
|
23886
|
-
|
|
23887
|
-
|
|
23888
|
-
|
|
23889
|
-
|
|
23890
|
-
|
|
23891
|
-
|
|
24047
|
+
listChildren.forEach(x => {
|
|
24048
|
+
const index = this.selectedOptions.findIndex(node => node.id === x.id && node.parentId === x.parentId);
|
|
24049
|
+
if (index >= 0) {
|
|
24050
|
+
this.selectedOptions.splice(index, 1);
|
|
24051
|
+
}
|
|
24052
|
+
});
|
|
24053
|
+
}
|
|
24054
|
+
getAllChildrenNodeRecursive(listResult, item) {
|
|
24055
|
+
let children = this.treeData.filter(x => x.parentId === item.id);
|
|
24056
|
+
let childrenItem = [...new Set(this.treeData.filter(x => x.rootId === item.id && !!x.childId))];
|
|
24057
|
+
if (childrenItem.length > 0) {
|
|
24058
|
+
childrenItem = childrenItem.filter(x => listResult.findIndex(node => node.id === x.childId && node.parentId === x.rootId) < 0);
|
|
24059
|
+
listResult = listResult.concat([...new Set(childrenItem.map(x => {
|
|
24060
|
+
return {
|
|
24061
|
+
id: x.childId,
|
|
24062
|
+
itemName: x.childName,
|
|
24063
|
+
parentId: x.rootId,
|
|
24064
|
+
parentName: x.rootName,
|
|
24065
|
+
type: SelectOptionTypes$1.Children
|
|
24066
|
+
};
|
|
24067
|
+
}))]);
|
|
23892
24068
|
}
|
|
23893
|
-
if (
|
|
23894
|
-
|
|
23895
|
-
|
|
23896
|
-
|
|
23897
|
-
|
|
23898
|
-
|
|
23899
|
-
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
id
|
|
23906
|
-
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
|
|
23917
|
-
|
|
23918
|
-
};
|
|
23919
|
-
});
|
|
23920
|
-
let nodeSubfolders = this.treeData.
|
|
23921
|
-
filter(x => x.parentId === item.rootId);
|
|
23922
|
-
if (this.treeConfig.showCheckBox) {
|
|
23923
|
-
nodeChildren.forEach(x => {
|
|
23924
|
-
this.checkedNodeList.push({
|
|
23925
|
-
id: x.id,
|
|
23926
|
-
itemName: x.name,
|
|
23927
|
-
itemNumberId: item.displayId.toString(),
|
|
23928
|
-
parentId: item.rootId,
|
|
23929
|
-
parentName: item.rootName
|
|
23930
|
-
});
|
|
23931
|
-
});
|
|
23932
|
-
}
|
|
23933
|
-
else {
|
|
23934
|
-
nodeChildren.forEach(x => {
|
|
23935
|
-
this.SelectOption.push({
|
|
23936
|
-
id: x.id,
|
|
23937
|
-
itemName: x.name,
|
|
23938
|
-
itemNumberId: item.displayId.toString(),
|
|
23939
|
-
parentId: item.rootId,
|
|
23940
|
-
parentName: item.rootName
|
|
23941
|
-
});
|
|
23942
|
-
});
|
|
23943
|
-
}
|
|
23944
|
-
this.dataTrees.toArray()[0].todoItemSelection([node].concat(nodeChildren));
|
|
23945
|
-
if (nodeSubfolders) {
|
|
23946
|
-
nodeSubfolders.forEach(folder => {
|
|
23947
|
-
this.selectNodeRecursive(folder);
|
|
23948
|
-
});
|
|
23949
|
-
}
|
|
23950
|
-
}
|
|
23951
|
-
return;
|
|
23952
|
-
}
|
|
23953
|
-
// setTypeProcess(expand) {
|
|
23954
|
-
// return expand ? this.dataType.area : this.dataType.process;
|
|
23955
|
-
// }
|
|
23956
|
-
getCommonCheckedNode(list) {
|
|
23957
|
-
this.checkedNodeList = [];
|
|
23958
|
-
this.commonCheckedList = [];
|
|
23959
|
-
this.singleProcessList = [];
|
|
23960
|
-
if (list.length) {
|
|
23961
|
-
list.forEach(item => {
|
|
23962
|
-
const index = this.checkedNodeList.findIndex(x => x.id === item.id && x.parentId === item.parentId);
|
|
23963
|
-
if (item.id && index < 0) {
|
|
23964
|
-
this.commonCheckedList.push(item);
|
|
23965
|
-
}
|
|
23966
|
-
if (this.singleSelectOption) {
|
|
23967
|
-
let position;
|
|
23968
|
-
if (item.expandable) {
|
|
23969
|
-
position = this.treeData.findIndex(p => p.rootId === item.id);
|
|
23970
|
-
}
|
|
23971
|
-
else {
|
|
23972
|
-
position = this.treeData.findIndex(p => p.childId === item.id);
|
|
23973
|
-
}
|
|
23974
|
-
if (position > -1) {
|
|
23975
|
-
this.singleProcessList.push({
|
|
23976
|
-
id: item.id,
|
|
23977
|
-
itemName: item.name,
|
|
23978
|
-
itemNumberId: this.treeData[position].displayId.toString(),
|
|
23979
|
-
parentId: item.parentId,
|
|
23980
|
-
levelType: item.levelType
|
|
23981
|
-
});
|
|
23982
|
-
}
|
|
23983
|
-
}
|
|
23984
|
-
if (item.id && index < 0 && !item.expandable && !this.singleSelectOption) {
|
|
23985
|
-
const position = this.treeData.findIndex(p => p.childId === item.id && p.rootId === item.parentId);
|
|
23986
|
-
if (position > -1) {
|
|
23987
|
-
this.checkedNodeList.push({
|
|
23988
|
-
id: item.id,
|
|
23989
|
-
itemName: item.name,
|
|
23990
|
-
parentId: item.parentId,
|
|
23991
|
-
parentName: this.treeData[position].parentId ? this.treeData[position].subName : this.treeData[position].rootName,
|
|
23992
|
-
itemNumberId: this.treeData[position].displayId.toString(),
|
|
23993
|
-
levelType: item.levelType
|
|
23994
|
-
});
|
|
23995
|
-
}
|
|
23996
|
-
}
|
|
23997
|
-
});
|
|
23998
|
-
if (this.singleSelectOption) {
|
|
23999
|
-
this.checkedNodeList = [...this.checkedNodeList, ...this.singleProcessList];
|
|
24000
|
-
}
|
|
24001
|
-
if (this.maxSelectItemCount && this.maxSelectItemCount > 0) {
|
|
24002
|
-
const removeList = this.checkedNodeList.slice(0, this.maxSelectItemCount * -1);
|
|
24003
|
-
if (removeList.length) {
|
|
24004
|
-
removeList.forEach(item => {
|
|
24005
|
-
this.removeCheckedNodeList({
|
|
24006
|
-
id: item.id,
|
|
24007
|
-
name: item.itemName,
|
|
24008
|
-
parentId: item.parentId,
|
|
24009
|
-
level: 0,
|
|
24010
|
-
expandable: true,
|
|
24011
|
-
hasChild: true,
|
|
24012
|
-
disabled: false
|
|
24013
|
-
});
|
|
24014
|
-
});
|
|
24015
|
-
}
|
|
24016
|
-
this.checkedNodeList = this.checkedNodeList.slice(this.maxSelectItemCount * -1);
|
|
24017
|
-
}
|
|
24069
|
+
if (children.length > 0) {
|
|
24070
|
+
children = children.filter(x => listResult.findIndex(node => node.id === x.rootId && node.parentId === x.parentId) < 0);
|
|
24071
|
+
const uniqueChildren = children.map(x => {
|
|
24072
|
+
var _a;
|
|
24073
|
+
return {
|
|
24074
|
+
id: x.rootId,
|
|
24075
|
+
itemName: ((_a = x.parentId) === null || _a === void 0 ? void 0 : _a.length) > 0 ? x.subName : x.rootName,
|
|
24076
|
+
parentId: x.parentId,
|
|
24077
|
+
type: SelectOptionTypes$1.IncludeChildren
|
|
24078
|
+
};
|
|
24079
|
+
});
|
|
24080
|
+
listResult = listResult.concat(uniqueChildren.filter((x, index) => {
|
|
24081
|
+
return index === uniqueChildren.findIndex(node => node.id === x.id && node.parentId === x.parentId);
|
|
24082
|
+
}));
|
|
24083
|
+
children.forEach(node => {
|
|
24084
|
+
listResult = this.getAllChildrenNodeRecursive(listResult, {
|
|
24085
|
+
id: node.rootId,
|
|
24086
|
+
name: node.rootName,
|
|
24087
|
+
parentId: node.parentId,
|
|
24088
|
+
level: 0,
|
|
24089
|
+
expandable: true,
|
|
24090
|
+
hasChild: true,
|
|
24091
|
+
disabled: false
|
|
24092
|
+
});
|
|
24093
|
+
});
|
|
24018
24094
|
}
|
|
24095
|
+
return listResult;
|
|
24019
24096
|
}
|
|
24020
24097
|
onCloseClick() {
|
|
24021
24098
|
this.selectedFolder = null;
|
|
@@ -24023,13 +24100,8 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
24023
24100
|
}
|
|
24024
24101
|
;
|
|
24025
24102
|
onAddClick() {
|
|
24026
|
-
// if (this.treeConfig.showCheckBox) {
|
|
24027
24103
|
this.selectedFolder = null;
|
|
24028
24104
|
this.dialogRef.close(this.checkedNodeList);
|
|
24029
|
-
// }
|
|
24030
|
-
// else {
|
|
24031
|
-
// this.dialogRef.close(this.SelectOption);
|
|
24032
|
-
// }
|
|
24033
24105
|
}
|
|
24034
24106
|
getOffsetHeight(element, includeMargin) {
|
|
24035
24107
|
let elmHeight = 0, elmMargin = 0;
|
|
@@ -24041,100 +24113,14 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
24041
24113
|
return (elmHeight + elmMargin);
|
|
24042
24114
|
}
|
|
24043
24115
|
getItemChipName(item) {
|
|
24044
|
-
return
|
|
24116
|
+
return `${item.itemName}`;
|
|
24117
|
+
}
|
|
24118
|
+
getItemSelectedChildrenRatio(item) {
|
|
24119
|
+
return `${item.noSelectedChildren}/${item.noChildren}`;
|
|
24045
24120
|
}
|
|
24046
24121
|
isEllipsisActive(e) {
|
|
24047
24122
|
return e ? (e.clientWidth < e.scrollWidth) : false;
|
|
24048
24123
|
}
|
|
24049
|
-
// getNodeIcon(item: SelectOption) {
|
|
24050
|
-
// switch (item.itemType) {
|
|
24051
|
-
// case DataType.folder: {
|
|
24052
|
-
// switch (item.levelType) {
|
|
24053
|
-
// case DocumentNodeType.DepartmentFolder:
|
|
24054
|
-
// return 'department_folder_outlined';
|
|
24055
|
-
// case DocumentNodeType.RegionalFolder:
|
|
24056
|
-
// return 'regional_folder_outlined';
|
|
24057
|
-
// case DocumentNodeType.TopFolder:
|
|
24058
|
-
// return 'enterprise_folder_outlined';
|
|
24059
|
-
// case DocumentNodeType.Folder:
|
|
24060
|
-
// return 'local_folder_outlined';
|
|
24061
|
-
// default:
|
|
24062
|
-
// return 'folder_outlined';
|
|
24063
|
-
// }
|
|
24064
|
-
// }
|
|
24065
|
-
// case DataType.document: {
|
|
24066
|
-
// switch (item.levelType) {
|
|
24067
|
-
// case DocumentNodeType.DepartmentFolder:
|
|
24068
|
-
// return 'document_department';
|
|
24069
|
-
// case DocumentNodeType.RegionalFolder:
|
|
24070
|
-
// return 'document_regional';
|
|
24071
|
-
// case DocumentNodeType.TopFolder:
|
|
24072
|
-
// return 'document_enterprise';
|
|
24073
|
-
// case DocumentNodeType.Folder:
|
|
24074
|
-
// return 'document_local';
|
|
24075
|
-
// default:
|
|
24076
|
-
// return 'document';
|
|
24077
|
-
// }
|
|
24078
|
-
// }
|
|
24079
|
-
// case DataType.area:
|
|
24080
|
-
// return 'process_area_outlined';
|
|
24081
|
-
// case DataType.process:
|
|
24082
|
-
// return 'process';
|
|
24083
|
-
// case DataType.deviation:
|
|
24084
|
-
// return 'deviation';
|
|
24085
|
-
// case DataType.checklist:
|
|
24086
|
-
// return 'checklist';
|
|
24087
|
-
// case DataType.risk:
|
|
24088
|
-
// return 'risk';
|
|
24089
|
-
// default:
|
|
24090
|
-
// return 'folder_outlined';
|
|
24091
|
-
// }
|
|
24092
|
-
// }
|
|
24093
|
-
// getSearchOrder() {
|
|
24094
|
-
// let searchTypes = Object.keys(this.dataType)
|
|
24095
|
-
// .map(key => ({ value: this.dataType[key], key: key }));
|
|
24096
|
-
// searchTypes = searchTypes.slice(searchTypes.length / 2);
|
|
24097
|
-
// return searchTypes;
|
|
24098
|
-
// }
|
|
24099
|
-
// getTitle(type: number) {
|
|
24100
|
-
// switch (type) {
|
|
24101
|
-
// case DataType.process:
|
|
24102
|
-
// return this.LANG.PROCESSES;
|
|
24103
|
-
// case DataType.area:
|
|
24104
|
-
// return this.LANG.PROCESS_AREA;
|
|
24105
|
-
// case DataType.document:
|
|
24106
|
-
// return this.LANG.DOCUMENTS;
|
|
24107
|
-
// case DataType.folder:
|
|
24108
|
-
// return this.LANG.FOLDER;
|
|
24109
|
-
// case DataType.deviation:
|
|
24110
|
-
// return this.LANG.DEVIATION;
|
|
24111
|
-
// case DataType.deviationType:
|
|
24112
|
-
// return this.LANG.DEVIATION_TYPE;
|
|
24113
|
-
// case DataType.checklist:
|
|
24114
|
-
// return this.LANG.CHECKLIST;
|
|
24115
|
-
// case DataType.checklistCategory:
|
|
24116
|
-
// return this.LANG.CHECKLIST_CATEGORY;
|
|
24117
|
-
// case DataType.risk:
|
|
24118
|
-
// return this.LANG.ASSESSMENT;
|
|
24119
|
-
// case DataType.riskFolder:
|
|
24120
|
-
// return this.LANG.FOLDER;
|
|
24121
|
-
// }
|
|
24122
|
-
// }
|
|
24123
|
-
// getParentName(item: SelectOption) {
|
|
24124
|
-
// if (item.itemType === this.dataType.checklist || item.itemType === this.dataType.deviation) {
|
|
24125
|
-
// return item.parentName;
|
|
24126
|
-
// }
|
|
24127
|
-
// return null;
|
|
24128
|
-
// }
|
|
24129
|
-
// getItemId(item: SelectOption) {
|
|
24130
|
-
// if (item.itemType === this.dataType.process) {
|
|
24131
|
-
// return `${this.LANG.PROCESS_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
|
24132
|
-
// }
|
|
24133
|
-
// else if (item.itemType === this.dataType.document) {
|
|
24134
|
-
// return `${this.LANG.DOCUMENT_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
|
24135
|
-
// }
|
|
24136
|
-
// return null;
|
|
24137
|
-
// }
|
|
24138
24124
|
toggleSelectItem(node) {
|
|
24139
24125
|
const SelectOption = this.checkedNodeList.find(x => (x.id.toLowerCase() === node.id.toLowerCase() && x.parentId.toLowerCase() === node.parentId.toLowerCase()));
|
|
24140
24126
|
if (SelectOption) {
|
|
@@ -24173,47 +24159,228 @@ class SelectIncludeChildrenPopUpComponent {
|
|
|
24173
24159
|
this.onExpandFolder.emit(item);
|
|
24174
24160
|
// }
|
|
24175
24161
|
}
|
|
24176
|
-
// canShowSearchOption(moduleId: number) {
|
|
24177
|
-
// if (this.canOnlySelectItem &&
|
|
24178
|
-
// (moduleId === DataType.checklistCategory
|
|
24179
|
-
// || moduleId === DataType.riskFolder
|
|
24180
|
-
// || moduleId === DataType.deviationType
|
|
24181
|
-
// || (moduleId === DataType.area && this.treeConfig && !this.treeConfig.singleSelectOption)
|
|
24182
|
-
// || (moduleId === DataType.folder && this.treeConfig2 && !this.treeConfig2.singleSelectOption)
|
|
24183
|
-
// )) {
|
|
24184
|
-
// return false;
|
|
24185
|
-
// }
|
|
24186
|
-
// return this.getModuleFilteredOptions(moduleId).length > 0;
|
|
24187
|
-
// }
|
|
24188
24162
|
selectNodeTreeEvent(node) {
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
|
|
24195
|
-
|
|
24196
|
-
|
|
24197
|
-
|
|
24198
|
-
|
|
24199
|
-
|
|
24200
|
-
|
|
24201
|
-
|
|
24202
|
-
|
|
24203
|
-
|
|
24204
|
-
|
|
24205
|
-
|
|
24206
|
-
|
|
24207
|
-
|
|
24208
|
-
|
|
24209
|
-
|
|
24163
|
+
let position = this.selectedOptions.findIndex(x => x.id === node.id && x.parentId === node.parentId);
|
|
24164
|
+
if (position > -1) {
|
|
24165
|
+
if (this.includeChildren) {
|
|
24166
|
+
if (node.expandable) {
|
|
24167
|
+
this.removeIncludeChildren(node);
|
|
24168
|
+
}
|
|
24169
|
+
else {
|
|
24170
|
+
const itemIndex = this.selectedOptions.findIndex(item => node.id === item.id && node.parentId === item.parentId);
|
|
24171
|
+
if (itemIndex >= 0) {
|
|
24172
|
+
this.selectedOptions.splice(itemIndex, 1);
|
|
24173
|
+
}
|
|
24174
|
+
}
|
|
24175
|
+
this.checkedNodeList = this.checkedNodeList.filter(x => x.id !== node.id || x.parentId !== node.parentId);
|
|
24176
|
+
this.refactorSelectList(node);
|
|
24177
|
+
}
|
|
24178
|
+
else {
|
|
24179
|
+
const itemIndex = this.selectedOptions.findIndex(item => node.id === item.id && node.parentId === item.parentId);
|
|
24180
|
+
if (itemIndex >= 0) {
|
|
24181
|
+
this.selectedOptions.splice(itemIndex, 1);
|
|
24182
|
+
}
|
|
24183
|
+
this.checkedNodeList = this.checkedNodeList.filter(x => x.id !== node.id || x.parentId !== node.parentId);
|
|
24184
|
+
}
|
|
24185
|
+
}
|
|
24186
|
+
else {
|
|
24187
|
+
if (this.includeChildren) {
|
|
24188
|
+
if (node.expandable) {
|
|
24189
|
+
this.selectIncludeChildren(node);
|
|
24190
|
+
}
|
|
24191
|
+
else {
|
|
24192
|
+
this.selectedOptions.push({
|
|
24193
|
+
id: node.id,
|
|
24194
|
+
itemName: node.name,
|
|
24195
|
+
itemNumberId: node.id,
|
|
24196
|
+
parentId: node.parentId,
|
|
24197
|
+
type: SelectOptionTypes$1.Children
|
|
24198
|
+
});
|
|
24199
|
+
}
|
|
24200
|
+
this.refactorSelectList(node);
|
|
24201
|
+
}
|
|
24202
|
+
else {
|
|
24203
|
+
this.selectedOptions.push({
|
|
24204
|
+
id: node.id,
|
|
24205
|
+
itemName: node.name,
|
|
24206
|
+
itemNumberId: node.id,
|
|
24207
|
+
parentId: node.parentId,
|
|
24208
|
+
type: SelectOptionTypes$1.SelectOne
|
|
24209
|
+
});
|
|
24210
|
+
this.checkedNodeList.push({
|
|
24211
|
+
id: node.id,
|
|
24212
|
+
itemName: node.name,
|
|
24213
|
+
type: SelectOptionTypes$1.SelectOne,
|
|
24214
|
+
parentId: node.parentId,
|
|
24215
|
+
children: [],
|
|
24216
|
+
noSelectedChildren: 0,
|
|
24217
|
+
noChildren: 0,
|
|
24218
|
+
});
|
|
24219
|
+
}
|
|
24220
|
+
}
|
|
24221
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
24210
24222
|
}
|
|
24211
24223
|
setValue(e) {
|
|
24212
24224
|
this.includeChildren = !!e.checked;
|
|
24225
|
+
if (!this.includeChildren) {
|
|
24226
|
+
this.checkedNodeList.forEach(node => {
|
|
24227
|
+
this.disableSelectedNode(node);
|
|
24228
|
+
});
|
|
24229
|
+
}
|
|
24230
|
+
else {
|
|
24231
|
+
this.disabledList = this.orginalDisableList;
|
|
24232
|
+
}
|
|
24233
|
+
}
|
|
24234
|
+
mapSelectOptionToTreeNode(list) {
|
|
24235
|
+
return list.map(x => {
|
|
24236
|
+
return {
|
|
24237
|
+
id: x.id,
|
|
24238
|
+
name: x.itemName,
|
|
24239
|
+
level: 0,
|
|
24240
|
+
expandable: true,
|
|
24241
|
+
hasChild: true,
|
|
24242
|
+
parentId: x.parentId,
|
|
24243
|
+
disabled: false,
|
|
24244
|
+
};
|
|
24245
|
+
});
|
|
24246
|
+
}
|
|
24247
|
+
refactorSelectList(node) {
|
|
24248
|
+
let parent;
|
|
24249
|
+
let parentList = [];
|
|
24250
|
+
parent = this.treeData.find(x => x.rootId === node.parentId);
|
|
24251
|
+
if (parent) {
|
|
24252
|
+
parentList.push({
|
|
24253
|
+
id: parent.rootId,
|
|
24254
|
+
itemName: parent.rootName,
|
|
24255
|
+
parentId: parent.parentId,
|
|
24256
|
+
type: SelectOptionTypes$1.IncludeChildren
|
|
24257
|
+
});
|
|
24258
|
+
parentList = this.getParentLineOfNode(parentList, parent);
|
|
24259
|
+
}
|
|
24260
|
+
if (parentList.length > 0) {
|
|
24261
|
+
const selectedParentList = parentList.filter(x => this.selectedOptions
|
|
24262
|
+
.findIndex(selectedNode => x.id === selectedNode.id && x.parentId === selectedNode.parentId) >= 0);
|
|
24263
|
+
if (selectedParentList.length > 0) {
|
|
24264
|
+
const highestSelectedNode = selectedParentList[selectedParentList.length - 1];
|
|
24265
|
+
this.combineNodes(highestSelectedNode);
|
|
24266
|
+
}
|
|
24267
|
+
else {
|
|
24268
|
+
this.combineNodes({
|
|
24269
|
+
id: node.id,
|
|
24270
|
+
itemName: node.name,
|
|
24271
|
+
type: SelectOptionTypes$1.IncludeChildren,
|
|
24272
|
+
parentId: node.parentId
|
|
24273
|
+
});
|
|
24274
|
+
}
|
|
24275
|
+
}
|
|
24276
|
+
else {
|
|
24277
|
+
this.combineNodes({
|
|
24278
|
+
id: node.id,
|
|
24279
|
+
itemName: node.name,
|
|
24280
|
+
type: SelectOptionTypes$1.IncludeChildren,
|
|
24281
|
+
parentId: node.parentId
|
|
24282
|
+
});
|
|
24283
|
+
}
|
|
24284
|
+
}
|
|
24285
|
+
combineNodes(root) {
|
|
24286
|
+
let children = [];
|
|
24287
|
+
children = this.getAllChildrenNodeRecursive(children, {
|
|
24288
|
+
id: root.id,
|
|
24289
|
+
name: root.itemName,
|
|
24290
|
+
parentId: root.parentId,
|
|
24291
|
+
level: 0,
|
|
24292
|
+
expandable: true,
|
|
24293
|
+
hasChild: true,
|
|
24294
|
+
disabled: false
|
|
24295
|
+
});
|
|
24296
|
+
let selectedNodeIndex = this.checkedNodeList.findIndex(x => x.id === root.id && x.parentId === root.parentId);
|
|
24297
|
+
let nodeList = [];
|
|
24298
|
+
children.forEach(child => {
|
|
24299
|
+
const index = this.checkedNodeList.findIndex(node => node.id === child.id && node.parentId === child.parentId);
|
|
24300
|
+
if (index >= 0) {
|
|
24301
|
+
this.checkedNodeList.splice(index, 1);
|
|
24302
|
+
}
|
|
24303
|
+
const selectIndex = this.selectedOptions.findIndex(node => node.id === child.id && node.parentId === child.parentId);
|
|
24304
|
+
if (selectIndex >= 0) {
|
|
24305
|
+
nodeList.push(child);
|
|
24306
|
+
}
|
|
24307
|
+
});
|
|
24308
|
+
if (nodeList.length > 0 || children.length === 0) {
|
|
24309
|
+
if (selectedNodeIndex < 0) {
|
|
24310
|
+
this.checkedNodeList.push({
|
|
24311
|
+
id: root.id,
|
|
24312
|
+
itemName: root.itemName,
|
|
24313
|
+
type: SelectOptionTypes$1.IncludeChildren,
|
|
24314
|
+
parentId: root.parentId,
|
|
24315
|
+
children: [],
|
|
24316
|
+
noSelectedChildren: 0,
|
|
24317
|
+
noChildren: 0
|
|
24318
|
+
});
|
|
24319
|
+
selectedNodeIndex = this.checkedNodeList.length - 1;
|
|
24320
|
+
}
|
|
24321
|
+
this.checkedNodeList[selectedNodeIndex].children = nodeList;
|
|
24322
|
+
this.checkedNodeList[selectedNodeIndex].noChildren = children.length;
|
|
24323
|
+
this.checkedNodeList[selectedNodeIndex].noSelectedChildren = nodeList.length;
|
|
24324
|
+
this.checkedNodeList[selectedNodeIndex].type = children.length === 0 ? SelectOptionTypes$1.SelectOne : SelectOptionTypes$1.IncludeChildren;
|
|
24325
|
+
}
|
|
24326
|
+
}
|
|
24327
|
+
getParentLineOfNode(listParent, node) {
|
|
24328
|
+
let parent;
|
|
24329
|
+
parent = this.treeData.find(x => x.rootId === node.parentId);
|
|
24330
|
+
if (parent) {
|
|
24331
|
+
listParent = [...listParent, {
|
|
24332
|
+
id: parent.rootId,
|
|
24333
|
+
itemName: parent.rootName,
|
|
24334
|
+
parentId: parent.parentId,
|
|
24335
|
+
type: SelectOptionTypes$1.IncludeChildren
|
|
24336
|
+
}];
|
|
24337
|
+
this.getParentLineOfNode(listParent, parent);
|
|
24338
|
+
}
|
|
24339
|
+
return listParent;
|
|
24340
|
+
}
|
|
24341
|
+
disableSelectedNode(node) {
|
|
24342
|
+
if (node.type === SelectOptionTypes$1.IncludeChildren) {
|
|
24343
|
+
let children = [];
|
|
24344
|
+
children = this.getAllChildrenNodeRecursive(children, {
|
|
24345
|
+
id: node.id,
|
|
24346
|
+
name: node.itemName,
|
|
24347
|
+
parentId: node.parentId,
|
|
24348
|
+
level: 0,
|
|
24349
|
+
expandable: true,
|
|
24350
|
+
hasChild: true,
|
|
24351
|
+
disabled: false
|
|
24352
|
+
});
|
|
24353
|
+
let disableNodes = [];
|
|
24354
|
+
const index = this.disabledList.findIndex(x => x.id === node.id && x.parentId === node.parentId);
|
|
24355
|
+
if (index < 0) {
|
|
24356
|
+
disableNodes.push(node);
|
|
24357
|
+
}
|
|
24358
|
+
children.forEach(child => {
|
|
24359
|
+
const index = this.disabledList.findIndex(x => x.id === child.id && x.parentId === child.parentId);
|
|
24360
|
+
if (index < 0) {
|
|
24361
|
+
disableNodes.push(child);
|
|
24362
|
+
}
|
|
24363
|
+
});
|
|
24364
|
+
this.disabledList = [...this.disabledList, ...disableNodes];
|
|
24365
|
+
}
|
|
24366
|
+
}
|
|
24367
|
+
enableSelectedNode(node) {
|
|
24368
|
+
let children = [];
|
|
24369
|
+
children = this.getAllChildrenNodeRecursive(children, {
|
|
24370
|
+
id: node.id,
|
|
24371
|
+
name: node.itemName,
|
|
24372
|
+
parentId: node.parentId,
|
|
24373
|
+
level: 0,
|
|
24374
|
+
expandable: true,
|
|
24375
|
+
hasChild: true,
|
|
24376
|
+
disabled: false
|
|
24377
|
+
});
|
|
24378
|
+
this.disabledList = this.disabledList.filter(x => children.filter(child => (x.id === child.id && x.parentId === child.parentId)).length === 0);
|
|
24379
|
+
this.disabledList = this.disabledList.filter(x => !(x.id === node.id && x.parentId === node.parentId));
|
|
24213
24380
|
}
|
|
24214
24381
|
}
|
|
24215
24382
|
SelectIncludeChildrenPopUpComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: SelectIncludeChildrenPopUpComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TranslateLibraryService }, { token: i1$2.MatDialogRef }, { token: QMSSelectGlobalService }, { token: i4.MatIconRegistry }, { token: i5$2.DomSanitizer }, { token: QMSIconRegistryService }, { token: i0.ElementRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
24216
|
-
SelectIncludeChildrenPopUpComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SelectIncludeChildrenPopUpComponent, selector: "qms-select-include-children-popup", host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "autoComplete", first: true, predicate: ["autoCompleteInputSearch"], descendants: true, read: MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0, 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>{{ headerName | uppercase }}</span>\r\n </div>\r\n </div>\r\n \r\n <div\r\n id=\"qmslib_related_popup_search\"\r\n class=\"input__field\"\r\n (click)=\"showSearchResult()\"\r\n >\r\n <input\r\n #name\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n #autoCompleteInputSearch\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 [displayWith]=\"displayRelated\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n class=\"related-viewport\"\r\n >\r\n <ng-container *ngFor=\"let type of searchOrder\">\r\n <div\r\n class=\"search__module-result\"\r\n *ngIf=\"filteredOptions\"\r\n >\r\n <span class=\"search__module-title\">Hello</span>\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions()\"\r\n [value]=\"option\"\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 col-12\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\">\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree\r\n [treeData]=\"treeData\"\r\n [treeConfig]=\"treeConfig\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"getCommonCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n ></qms-tree>\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)}}</span>\r\n <mat-icon\r\n *ngIf=\"!treeConfig?.selectOne\"\r\n (click)=\"removeCheckedNodeList(item)\"\r\n >cancel</mat-icon\r\n >\r\n </button>\r\n </div>\r\n <div class=\"select__toggle-include\">\r\n <mat-slide-toggle\r\n [checked]=\"includeChildren\"\r\n (change)=\"setValue($event)\"\r\n color=\"default\"\r\n qms-group-options>\r\n <span class=\"text-label\">Select label</span>\r\n </mat-slide-toggle>\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 ", 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 .select__toggle-include{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:320px}.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 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:10.25rem}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: i9$1.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: i12$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { type: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: QMSToolTipRendererDirective, selector: "[qms-tool-tip]", inputs: ["showToolTip", "mode", "qms-tool-tip", "contentTemplate", "position"] }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5$1.UpperCasePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
24383
|
+
SelectIncludeChildrenPopUpComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SelectIncludeChildrenPopUpComponent, selector: "qms-select-include-children-popup", host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "autoComplete", first: true, predicate: ["autoCompleteInputSearch"], descendants: true, read: MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0, 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>{{ headerName | uppercase }}</span>\r\n </div>\r\n </div>\r\n \r\n <div\r\n id=\"qmslib_related_popup_search\"\r\n class=\"input__field\"\r\n (click)=\"showSearchResult()\"\r\n >\r\n <input\r\n #name\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n #autoCompleteInputSearch\r\n />\r\n <mat-icon>search</mat-icon>\r\n </div>\r\n <div class=\"select__toggle-include\">\r\n <mat-slide-toggle\r\n [checked]=\"includeChildren\"\r\n (change)=\"setValue($event)\"\r\n color=\"default\"\r\n qms-group-options>\r\n <span class=\"text-label\">Select label</span>\r\n </mat-slide-toggle>\r\n </div>\r\n <div class=\"line__divider\"></div>\r\n \r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n [displayWith]=\"displayRelated\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n class=\"related-viewport\"\r\n >\r\n <div\r\n class=\"search__module-result\"\r\n *ngIf=\"filteredOptions\">\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of filteredOptions\"\r\n [value]=\"option\"\r\n (click)=\"selectSearchOption(option)\"\r\n >\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n *ngIf=\"getItemIconType(option) === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n type=\"image-square\"\r\n >\r\n {{ option.itemIcon }}\r\n </mat-icon>\r\n\r\n <mat-icon \r\n leading-icon\r\n *ngIf=\"getItemIconType(option) === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n type=\"image-square\"\r\n [svgIcon]=\"option.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n\r\n <img \r\n leading-icon\r\n *ngIf=\"getItemIconType(option) === itemIconType.path\"\r\n class=\"mat-icon\"\r\n [src]=\"option.itemIconPath\"\r\n type=\"image-square\"\r\n />\r\n\r\n <img \r\n leading-icon\r\n *ngIf=\"getItemIconType(option) === itemIconType.base64\"\r\n class=\"mat-icon image-base64\"\r\n [src]=\"getImagePath(option)\"\r\n type=\"image-square\"\r\n />\r\n <div qms-list-header>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\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 col-12\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\">\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree\r\n [treeData]=\"treeData\"\r\n [treeConfig]=\"treeConfig\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (checkBoxEvent)=\"getCommonCheckedNode($event)\"\r\n (nodeExpandEvent)=\"getChildrenOfFolder($event)\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n ></qms-tree>\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 class=\"select__include-children__count\" *ngIf=\"item.noSelectedChildren > 0\">\r\n {{getItemSelectedChildrenRatio(item)}}\r\n </span>\r\n </span>\r\n \r\n <mat-icon\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 ", 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 .select__toggle-include{width:100%;padding:0;margin:1rem 0}.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:320px}.qmslib__related__popup__container .panel__item .related__item__content span.related__item__content_name .select__include-children__count{font-size:.75rem;color:rgba(0,0,0,.38)}.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 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:10.25rem}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: QMSListItem, selector: "qms-list-item", inputs: ["type"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick", "expandToChildNode"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: i9$1.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: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i8.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: QMSListLeadingIcon, selector: "[leading-icon]" }, { type: QMSListHeader, selector: "[qms-list-header]" }, { type: QMSListLine, selector: "[qms-line]", inputs: ["size", "type", "color"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: QMSToolTipRendererDirective, selector: "[qms-tool-tip]", inputs: ["showToolTip", "mode", "qms-tool-tip", "contentTemplate", "position"] }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5$1.UpperCasePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
24217
24384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: SelectIncludeChildrenPopUpComponent, decorators: [{
|
|
24218
24385
|
type: Component,
|
|
24219
24386
|
args: [{
|
|
@@ -24315,6 +24482,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
24315
24482
|
}]
|
|
24316
24483
|
}] });
|
|
24317
24484
|
|
|
24485
|
+
class SelectedOption {
|
|
24486
|
+
}
|
|
24487
|
+
|
|
24488
|
+
var SelectOptionTypes;
|
|
24489
|
+
(function (SelectOptionTypes) {
|
|
24490
|
+
SelectOptionTypes[SelectOptionTypes["SelectOne"] = 1] = "SelectOne";
|
|
24491
|
+
SelectOptionTypes[SelectOptionTypes["IncludeChildren"] = 2] = "IncludeChildren";
|
|
24492
|
+
SelectOptionTypes[SelectOptionTypes["Children"] = 3] = "Children";
|
|
24493
|
+
})(SelectOptionTypes || (SelectOptionTypes = {}));
|
|
24494
|
+
|
|
24318
24495
|
var BadgesType;
|
|
24319
24496
|
(function (BadgesType) {
|
|
24320
24497
|
BadgesType["circle"] = "1";
|
|
@@ -24395,6 +24572,473 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
24395
24572
|
}]
|
|
24396
24573
|
}] });
|
|
24397
24574
|
|
|
24575
|
+
var DataType;
|
|
24576
|
+
(function (DataType) {
|
|
24577
|
+
DataType[DataType["process"] = 2] = "process";
|
|
24578
|
+
DataType[DataType["document"] = 1] = "document";
|
|
24579
|
+
DataType[DataType["area"] = 3] = "area";
|
|
24580
|
+
DataType[DataType["folder"] = 4] = "folder";
|
|
24581
|
+
DataType[DataType["deviation"] = 5] = "deviation";
|
|
24582
|
+
DataType[DataType["checklist"] = 6] = "checklist";
|
|
24583
|
+
DataType[DataType["risk"] = 7] = "risk";
|
|
24584
|
+
DataType[DataType["deviationType"] = 8] = "deviationType";
|
|
24585
|
+
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
|
24586
|
+
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
|
24587
|
+
})(DataType || (DataType = {}));
|
|
24588
|
+
|
|
24589
|
+
var DocumentNodeType;
|
|
24590
|
+
(function (DocumentNodeType) {
|
|
24591
|
+
DocumentNodeType[DocumentNodeType["Document"] = 1] = "Document";
|
|
24592
|
+
DocumentNodeType[DocumentNodeType["LinkDocument"] = 2] = "LinkDocument";
|
|
24593
|
+
DocumentNodeType[DocumentNodeType["FileDocument"] = 3] = "FileDocument";
|
|
24594
|
+
DocumentNodeType[DocumentNodeType["ShortcutDocument"] = 4] = "ShortcutDocument";
|
|
24595
|
+
DocumentNodeType[DocumentNodeType["Folder"] = 5] = "Folder";
|
|
24596
|
+
DocumentNodeType[DocumentNodeType["TopFolder"] = 6] = "TopFolder";
|
|
24597
|
+
DocumentNodeType[DocumentNodeType["DepartmentFolder"] = 7] = "DepartmentFolder";
|
|
24598
|
+
DocumentNodeType[DocumentNodeType["RegionalFolder"] = 8] = "RegionalFolder";
|
|
24599
|
+
})(DocumentNodeType || (DocumentNodeType = {}));
|
|
24600
|
+
|
|
24601
|
+
var ModuleType;
|
|
24602
|
+
(function (ModuleType) {
|
|
24603
|
+
ModuleType[ModuleType["documentProcess"] = 1] = "documentProcess";
|
|
24604
|
+
ModuleType[ModuleType["deviation"] = 2] = "deviation";
|
|
24605
|
+
ModuleType[ModuleType["checklist"] = 3] = "checklist";
|
|
24606
|
+
ModuleType[ModuleType["risk"] = 4] = "risk";
|
|
24607
|
+
})(ModuleType || (ModuleType = {}));
|
|
24608
|
+
|
|
24609
|
+
class ShowHideSearchResultConst {
|
|
24610
|
+
}
|
|
24611
|
+
ShowHideSearchResultConst.IS_DISPLAY_SEARCH_RESULT = 'IS_DISPLAY_SEARCH_RESULT';
|
|
24612
|
+
ShowHideSearchResultConst.HIDE_SEARCH_RESULT = 'HIDE_SEARCH_RESULT';
|
|
24613
|
+
ShowHideSearchResultConst.SHOW_SEARCH_RESULT = 'SHOW_SEARCH_RESULT';
|
|
24614
|
+
|
|
24615
|
+
class QMSSelectOneGlobalService {
|
|
24616
|
+
constructor() {
|
|
24617
|
+
this.searchRelated = new BehaviorSubject([]);
|
|
24618
|
+
}
|
|
24619
|
+
setSearchRelated(result) {
|
|
24620
|
+
this.searchRelated.next(result);
|
|
24621
|
+
}
|
|
24622
|
+
}
|
|
24623
|
+
QMSSelectOneGlobalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneGlobalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24624
|
+
QMSSelectOneGlobalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneGlobalService, providedIn: 'root' });
|
|
24625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneGlobalService, decorators: [{
|
|
24626
|
+
type: Injectable,
|
|
24627
|
+
args: [{ providedIn: 'root' }]
|
|
24628
|
+
}], ctorParameters: function () { return []; } });
|
|
24629
|
+
|
|
24630
|
+
class SelectOnePopupData {
|
|
24631
|
+
constructor() {
|
|
24632
|
+
this.moduleId = 0;
|
|
24633
|
+
this.moduleName = '';
|
|
24634
|
+
this.treeData = [];
|
|
24635
|
+
this.selectedNode = [];
|
|
24636
|
+
this.disabledList = [];
|
|
24637
|
+
this.expandToChildNode = [];
|
|
24638
|
+
}
|
|
24639
|
+
}
|
|
24640
|
+
|
|
24641
|
+
class SelectOneDialog {
|
|
24642
|
+
constructor(cdRef, translate, dialogRef, globalService, iconRegistry, sanitizer, appIconService, data) {
|
|
24643
|
+
this.cdRef = cdRef;
|
|
24644
|
+
this.translate = translate;
|
|
24645
|
+
this.dialogRef = dialogRef;
|
|
24646
|
+
this.globalService = globalService;
|
|
24647
|
+
this.iconRegistry = iconRegistry;
|
|
24648
|
+
this.sanitizer = sanitizer;
|
|
24649
|
+
this.appIconService = appIconService;
|
|
24650
|
+
this.data = data;
|
|
24651
|
+
this.ngUnsubscribe = new Subject();
|
|
24652
|
+
this.moduleId = 0;
|
|
24653
|
+
this.moduleName = '';
|
|
24654
|
+
this.treeData = [];
|
|
24655
|
+
this.checkedNodeList = [];
|
|
24656
|
+
this.selectedNode = [];
|
|
24657
|
+
this.selectedData = [];
|
|
24658
|
+
this.module = ModuleType;
|
|
24659
|
+
this.dataType = DataType;
|
|
24660
|
+
this.itemType = 0;
|
|
24661
|
+
this.selectedRiskData = [];
|
|
24662
|
+
this.disabledList = [];
|
|
24663
|
+
this.expandToChildNode = [];
|
|
24664
|
+
this.isCommonExpanded = true;
|
|
24665
|
+
this.myControl = new FormControl();
|
|
24666
|
+
this.filteredOptions = [];
|
|
24667
|
+
this.isInputValue = false;
|
|
24668
|
+
this.selectedFolder = null;
|
|
24669
|
+
this.listChildrenSelectOne = [];
|
|
24670
|
+
this.onSearch = new EventEmitter();
|
|
24671
|
+
this.onExpandFolder = new EventEmitter();
|
|
24672
|
+
this.moduleId = data.moduleId;
|
|
24673
|
+
this.moduleName = data.moduleName;
|
|
24674
|
+
this.treeData = data.treeData;
|
|
24675
|
+
this.treeConfig = data.treeConfig;
|
|
24676
|
+
this.selectedRiskData = (data === null || data === void 0 ? void 0 : data.selectedNode) || [];
|
|
24677
|
+
this.disabledList = data.disabledList || [];
|
|
24678
|
+
this.expandToChildNode = data.expandToChildNode;
|
|
24679
|
+
appIconService.registerProcessIcon(iconRegistry, sanitizer);
|
|
24680
|
+
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
|
24681
|
+
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
|
24682
|
+
appIconService.registerFolderIcon(iconRegistry, sanitizer);
|
|
24683
|
+
appIconService.registerDeviationIcon(iconRegistry, sanitizer);
|
|
24684
|
+
appIconService.registerChecklistIcon(iconRegistry, sanitizer);
|
|
24685
|
+
appIconService.registerRiskIcon(iconRegistry, sanitizer);
|
|
24686
|
+
}
|
|
24687
|
+
ngOnDestroy() {
|
|
24688
|
+
this.ngUnsubscribe.next();
|
|
24689
|
+
this.ngUnsubscribe.complete();
|
|
24690
|
+
this.globalService.setSearchRelated([]);
|
|
24691
|
+
this.selectedFolder = null;
|
|
24692
|
+
}
|
|
24693
|
+
onMessage(event) {
|
|
24694
|
+
if (event.data === ShowHideSearchResultConst.HIDE_SEARCH_RESULT) {
|
|
24695
|
+
this.autoComplete.closePanel();
|
|
24696
|
+
}
|
|
24697
|
+
}
|
|
24698
|
+
ngOnInit() {
|
|
24699
|
+
this.translate.getLanguageSubject$.pipe().subscribe((res) => {
|
|
24700
|
+
if (res) {
|
|
24701
|
+
this.LANG = this.translate.getObjectLang(res);
|
|
24702
|
+
}
|
|
24703
|
+
});
|
|
24704
|
+
this.globalService.searchRelated.pipe(takeUntil(this.ngUnsubscribe)).subscribe((res) => {
|
|
24705
|
+
if (res && res.length) {
|
|
24706
|
+
this.filteredOptions = res;
|
|
24707
|
+
}
|
|
24708
|
+
});
|
|
24709
|
+
this.myControl.valueChanges.pipe(debounceTime(1000)).subscribe((val) => {
|
|
24710
|
+
this.isInputValue = true;
|
|
24711
|
+
this.onSearchRelated(val);
|
|
24712
|
+
});
|
|
24713
|
+
this.itemType = this.getDataTypeId(this.moduleId);
|
|
24714
|
+
}
|
|
24715
|
+
ngAfterViewChecked() {
|
|
24716
|
+
this.cdRef.detectChanges();
|
|
24717
|
+
if (this.filteredOptions && this.filteredOptions.length) {
|
|
24718
|
+
this.autoComplete.openPanel();
|
|
24719
|
+
this.setResultHeight();
|
|
24720
|
+
}
|
|
24721
|
+
else if (this.autoComplete) {
|
|
24722
|
+
this.autoComplete.closePanel();
|
|
24723
|
+
}
|
|
24724
|
+
}
|
|
24725
|
+
getDataTypeId(moduleId) {
|
|
24726
|
+
let itemType;
|
|
24727
|
+
switch (moduleId) {
|
|
24728
|
+
case ModuleType.documentProcess:
|
|
24729
|
+
itemType = this.dataType.process;
|
|
24730
|
+
break;
|
|
24731
|
+
case ModuleType.deviation:
|
|
24732
|
+
itemType = this.dataType.deviation;
|
|
24733
|
+
break;
|
|
24734
|
+
case ModuleType.checklist:
|
|
24735
|
+
itemType = this.dataType.checklist;
|
|
24736
|
+
break;
|
|
24737
|
+
case ModuleType.risk:
|
|
24738
|
+
itemType = this.dataType.risk;
|
|
24739
|
+
break;
|
|
24740
|
+
default:
|
|
24741
|
+
itemType = this.dataType.document;
|
|
24742
|
+
break;
|
|
24743
|
+
}
|
|
24744
|
+
return itemType;
|
|
24745
|
+
}
|
|
24746
|
+
setResultHeight(arr) {
|
|
24747
|
+
let maxHeight = 484;
|
|
24748
|
+
const popup_content = document.getElementsByClassName('qmslib_related_popup_content')[0];
|
|
24749
|
+
const line__divider = document.getElementsByClassName('line__divider')[0];
|
|
24750
|
+
if (popup_content && line__divider) {
|
|
24751
|
+
maxHeight = this.getOffsetHeight(popup_content, true) + this.getOffsetHeight(line__divider, true) * 2;
|
|
24752
|
+
}
|
|
24753
|
+
const contentResult = document.getElementsByClassName('cdk-virtual-scroll-content-wrapper')[0];
|
|
24754
|
+
const viewreports = document.getElementsByClassName('related-viewport')[0];
|
|
24755
|
+
if (viewreports) {
|
|
24756
|
+
if (contentResult.offsetHeight <= maxHeight) {
|
|
24757
|
+
viewreports.style.height = `${contentResult.offsetHeight}px`;
|
|
24758
|
+
}
|
|
24759
|
+
else {
|
|
24760
|
+
viewreports.style.height = `${maxHeight}px`;
|
|
24761
|
+
}
|
|
24762
|
+
}
|
|
24763
|
+
}
|
|
24764
|
+
onSearchRelated(_val) {
|
|
24765
|
+
this.filteredOptions = [];
|
|
24766
|
+
if (typeof (_val) === 'object') {
|
|
24767
|
+
this.myControl.setValue('');
|
|
24768
|
+
}
|
|
24769
|
+
else if (typeof (_val) === 'string') {
|
|
24770
|
+
if (!!_val) {
|
|
24771
|
+
this.onSearch.emit(_val);
|
|
24772
|
+
}
|
|
24773
|
+
}
|
|
24774
|
+
}
|
|
24775
|
+
getModuleFilteredOptions() {
|
|
24776
|
+
if (this.listChildrenSelectOne.length) {
|
|
24777
|
+
for (let index = 0; index < this.listChildrenSelectOne.length; index++) {
|
|
24778
|
+
const firstEl = this.listChildrenSelectOne[index];
|
|
24779
|
+
for (let j = 0; j < this.filteredOptions.length; j++) {
|
|
24780
|
+
const secondEl = this.filteredOptions[j];
|
|
24781
|
+
if (firstEl.id === secondEl.id) {
|
|
24782
|
+
this.filteredOptions.splice(j, 1);
|
|
24783
|
+
}
|
|
24784
|
+
}
|
|
24785
|
+
}
|
|
24786
|
+
}
|
|
24787
|
+
return this.filteredOptions;
|
|
24788
|
+
}
|
|
24789
|
+
showSearchResult() {
|
|
24790
|
+
this.autoComplete.openPanel();
|
|
24791
|
+
}
|
|
24792
|
+
displayRelated(related) {
|
|
24793
|
+
return related ? related.itemName : undefined;
|
|
24794
|
+
}
|
|
24795
|
+
selectItemSearched(item) {
|
|
24796
|
+
var _a;
|
|
24797
|
+
if ((_a = this.treeConfig) === null || _a === void 0 ? void 0 : _a.selectOne) {
|
|
24798
|
+
this.disabledList = [];
|
|
24799
|
+
}
|
|
24800
|
+
// reset to root
|
|
24801
|
+
this.expandToChildNode = [''];
|
|
24802
|
+
this.checkedNodeList = [];
|
|
24803
|
+
let position = -1;
|
|
24804
|
+
let node;
|
|
24805
|
+
let typeId;
|
|
24806
|
+
position = this.treeData.findIndex(x => {
|
|
24807
|
+
return x.rootId === item.id;
|
|
24808
|
+
});
|
|
24809
|
+
typeId = item.itemType;
|
|
24810
|
+
if (position >= 0) {
|
|
24811
|
+
node = this.treeData[position];
|
|
24812
|
+
this.checkedNodeList.push({
|
|
24813
|
+
moduleId: this.moduleId,
|
|
24814
|
+
id: node.rootId,
|
|
24815
|
+
itemName: node.rootName || node.subName,
|
|
24816
|
+
itemType: typeId,
|
|
24817
|
+
itemNumberId: item.itemNumberId,
|
|
24818
|
+
levelType: item.levelType
|
|
24819
|
+
});
|
|
24820
|
+
}
|
|
24821
|
+
const treeNode = {
|
|
24822
|
+
id: node.rootId,
|
|
24823
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
|
24824
|
+
children: [],
|
|
24825
|
+
parentId: node.parentId
|
|
24826
|
+
};
|
|
24827
|
+
this.dataTrees.toArray()[0].todoFolderSelection([treeNode]);
|
|
24828
|
+
return;
|
|
24829
|
+
}
|
|
24830
|
+
onCloseClick() {
|
|
24831
|
+
this.selectedFolder = null;
|
|
24832
|
+
this.dialogRef.close();
|
|
24833
|
+
}
|
|
24834
|
+
;
|
|
24835
|
+
onAddClick() {
|
|
24836
|
+
this.selectedFolder = null;
|
|
24837
|
+
this.dialogRef.close(this.checkedNodeList);
|
|
24838
|
+
}
|
|
24839
|
+
getOffsetHeight(element, includeMargin) {
|
|
24840
|
+
let elmHeight = 0, elmMargin = 0;
|
|
24841
|
+
elmHeight = element.offsetHeight;
|
|
24842
|
+
if (includeMargin) {
|
|
24843
|
+
const style = window.getComputedStyle(element);
|
|
24844
|
+
elmMargin = parseFloat(style.marginTop.replace('px', '')) + parseFloat(style.marginBottom.replace('px', ''));
|
|
24845
|
+
}
|
|
24846
|
+
return (elmHeight + elmMargin);
|
|
24847
|
+
}
|
|
24848
|
+
getItemChipName(item) {
|
|
24849
|
+
if (item.itemType === DataType.checklist || item.itemType === DataType.deviation) {
|
|
24850
|
+
return (item.parentName && item.itemName !== item.parentName) ? `${item.parentName}/${item.itemName}` : item.itemName;
|
|
24851
|
+
}
|
|
24852
|
+
return item.itemName;
|
|
24853
|
+
}
|
|
24854
|
+
isEllipsisActive(e) {
|
|
24855
|
+
return e ? (e.clientWidth < e.scrollWidth) : false;
|
|
24856
|
+
}
|
|
24857
|
+
getNodeIcon(item) {
|
|
24858
|
+
switch (item.itemType) {
|
|
24859
|
+
case DataType.folder: {
|
|
24860
|
+
switch (item.levelType) {
|
|
24861
|
+
case DocumentNodeType.DepartmentFolder:
|
|
24862
|
+
return 'department_folder_outlined';
|
|
24863
|
+
case DocumentNodeType.RegionalFolder:
|
|
24864
|
+
return 'regional_folder_outlined';
|
|
24865
|
+
case DocumentNodeType.TopFolder:
|
|
24866
|
+
return 'enterprise_folder_outlined';
|
|
24867
|
+
case DocumentNodeType.Folder:
|
|
24868
|
+
return 'local_folder_outlined';
|
|
24869
|
+
default:
|
|
24870
|
+
return 'folder_outlined';
|
|
24871
|
+
}
|
|
24872
|
+
}
|
|
24873
|
+
case DataType.document: {
|
|
24874
|
+
switch (item.levelType) {
|
|
24875
|
+
case DocumentNodeType.DepartmentFolder:
|
|
24876
|
+
return 'document_department';
|
|
24877
|
+
case DocumentNodeType.RegionalFolder:
|
|
24878
|
+
return 'document_regional';
|
|
24879
|
+
case DocumentNodeType.TopFolder:
|
|
24880
|
+
return 'document_enterprise';
|
|
24881
|
+
case DocumentNodeType.Folder:
|
|
24882
|
+
return 'document_local';
|
|
24883
|
+
default:
|
|
24884
|
+
return 'document';
|
|
24885
|
+
}
|
|
24886
|
+
}
|
|
24887
|
+
case DataType.area:
|
|
24888
|
+
return 'process_area_outlined';
|
|
24889
|
+
case DataType.process:
|
|
24890
|
+
return 'process';
|
|
24891
|
+
case DataType.deviation:
|
|
24892
|
+
return 'deviation';
|
|
24893
|
+
case DataType.checklist:
|
|
24894
|
+
return 'checklist';
|
|
24895
|
+
case DataType.risk:
|
|
24896
|
+
return 'risk';
|
|
24897
|
+
default:
|
|
24898
|
+
return 'folder_outlined';
|
|
24899
|
+
}
|
|
24900
|
+
}
|
|
24901
|
+
getParentName(item) {
|
|
24902
|
+
if (item.itemType === this.dataType.checklist || item.itemType === this.dataType.deviation) {
|
|
24903
|
+
return item.parentName;
|
|
24904
|
+
}
|
|
24905
|
+
return null;
|
|
24906
|
+
}
|
|
24907
|
+
getItemId(item) {
|
|
24908
|
+
if (item.itemType === this.dataType.process) {
|
|
24909
|
+
return `${this.LANG.PROCESS_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
|
24910
|
+
}
|
|
24911
|
+
else if (item.itemType === this.dataType.document) {
|
|
24912
|
+
return `${this.LANG.DOCUMENT_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
|
24913
|
+
}
|
|
24914
|
+
return null;
|
|
24915
|
+
}
|
|
24916
|
+
selectNodeTreeEvent(node) {
|
|
24917
|
+
var _a, _b;
|
|
24918
|
+
let position = -1;
|
|
24919
|
+
let parentName = '';
|
|
24920
|
+
let itemNumberId = '';
|
|
24921
|
+
position = !node.expandable ? this.treeData.findIndex(p => p.childId === node.id && p.rootId === node.parentId) :
|
|
24922
|
+
this.treeData.findIndex(p => p.rootId === node.id);
|
|
24923
|
+
parentName = this.treeData[position].parentId ? this.treeData[position].subName : this.treeData[position].rootName;
|
|
24924
|
+
itemNumberId = (_b = (_a = this.treeData[position]) === null || _a === void 0 ? void 0 : _a.displayId) === null || _b === void 0 ? void 0 : _b.toString();
|
|
24925
|
+
this.checkedNodeList = [];
|
|
24926
|
+
this.checkedNodeList.push({
|
|
24927
|
+
moduleId: this.moduleId,
|
|
24928
|
+
id: node.id,
|
|
24929
|
+
itemName: node.name,
|
|
24930
|
+
itemType: node.itemType,
|
|
24931
|
+
parentId: node.parentId,
|
|
24932
|
+
parentName: parentName,
|
|
24933
|
+
itemNumberId: itemNumberId,
|
|
24934
|
+
levelType: node.levelType
|
|
24935
|
+
});
|
|
24936
|
+
}
|
|
24937
|
+
getChildNodeSelectOne(listChildren) {
|
|
24938
|
+
this.listChildrenSelectOne = [];
|
|
24939
|
+
this.listChildrenSelectOne = listChildren;
|
|
24940
|
+
}
|
|
24941
|
+
}
|
|
24942
|
+
SelectOneDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: SelectOneDialog, deps: [{ token: i0.ChangeDetectorRef }, { token: TranslateLibraryService }, { token: i1$2.MatDialogRef }, { token: QMSSelectOneGlobalService }, { token: i4.MatIconRegistry }, { token: i5$2.DomSanitizer }, { token: QMSIconRegistryService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
24943
|
+
SelectOneDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SelectOneDialog, selector: "qms-select-one", host: { listeners: { "window:message": "onMessage($event)" } }, viewQueries: [{ propertyName: "autoComplete", first: true, predicate: ["autoCompleteInputSearch"], descendants: true, read: MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0, 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 }}</span>\r\n </div>\r\n </div>\r\n\r\n <div\r\n id=\"qmslib_related_popup_search\"\r\n class=\"input__field\"\r\n (click)=\"showSearchResult()\"\r\n >\r\n <input\r\n #name\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n #autoCompleteInputSearch\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 [displayWith]=\"displayRelated\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n class=\"related-viewport\"\r\n >\r\n <div class=\"search__module-result\" *ngIf=\"filteredOptions.length\">\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions()\"\r\n [value]=\"option\"\r\n (click)=\"selectItemSearched(option)\"\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 </cdk-virtual-scroll-viewport>\r\n </mat-autocomplete>\r\n\r\n <div class=\"row\">\r\n <div\r\n class=\"qms-scrollbar col-12 qmslib_related_popup_content\"\r\n [ngClass]=\"{\r\n panel__content_item: checkedNodeList.length,\r\n panel__content: !checkedNodeList.length\r\n }\"\r\n >\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 <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree\r\n [treeData]=\"treeData\"\r\n [treeConfig]=\"treeConfig\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (getChildNodeSelectOne)=\"getChildNodeSelectOne($event)\"\r\n [expandOnTitleClick]=\"true\"\r\n [expandToChildNode]=\"expandToChildNode\"\r\n ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\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 </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", 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:320px}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 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:10.25rem}"], components: [{ type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: QMSListItem, selector: "qms-list-item", inputs: ["type"] }, { type: QMSBreadcrumb, selector: "qms-breadcrumb", inputs: ["nodes", "type", "maxLine", "numDisplayItem", "onlyItem", "disabledLastItem"], outputs: ["onItemClick"] }, { type: i12$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: TreeComponent, selector: "qms-tree", inputs: ["treeData", "treeConfig", "selectedData", "selectedRiskData", "disabledList", "expandOnTitleClick", "expandToChildNode"], outputs: ["selectNodeEvent", "selectFolderEvent", "checkBoxEvent", "childCheckedEvent", "nodeExpandEvent", "getChildNodeSelectOne"] }, { type: i9$1.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: QMSButton, selector: "button[qms-btn], button[qms-btn-lg], button[qms-btn-outlined],\n button[qms-btn-outlined-lg], button[qms-btn-text], button[qms-btn-text-lg],\n button[qms-btn-fab],button[qms-btn-fab-sm],button[qms-btn-fab-ext],\n button[qms-btn-fab-outlined],button[qms-btn-fab-outlined-sm],button[qms-btn-fab-outlined-ext]", inputs: ["disabled", "color"], exportAs: ["qmsButton"] }], directives: [{ type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i10.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: QMSListLeadingIcon, selector: "[leading-icon]" }, { type: QMSListHeader, selector: "[qms-list-header]" }, { type: QMSListLine, selector: "[qms-line]", inputs: ["size", "type", "color"] }, { type: QMSToolTipRendererDirective, selector: "[qms-tool-tip]", inputs: ["showToolTip", "mode", "qms-tool-tip", "contentTemplate", "position"] }, { type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
24944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: SelectOneDialog, decorators: [{
|
|
24945
|
+
type: Component,
|
|
24946
|
+
args: [{
|
|
24947
|
+
selector: 'qms-select-one',
|
|
24948
|
+
templateUrl: './select-one.component.html',
|
|
24949
|
+
styleUrls: ['./select-one.component.scss'],
|
|
24950
|
+
encapsulation: ViewEncapsulation.None
|
|
24951
|
+
}]
|
|
24952
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: TranslateLibraryService }, { type: i1$2.MatDialogRef }, { type: QMSSelectOneGlobalService }, { type: i4.MatIconRegistry }, { type: i5$2.DomSanitizer }, { type: QMSIconRegistryService }, { type: SelectOnePopupData, decorators: [{
|
|
24953
|
+
type: Inject,
|
|
24954
|
+
args: [MAT_DIALOG_DATA]
|
|
24955
|
+
}] }]; }, propDecorators: { dataTrees: [{
|
|
24956
|
+
type: ViewChildren,
|
|
24957
|
+
args: [TreeComponent, {}]
|
|
24958
|
+
}], autoComplete: [{
|
|
24959
|
+
type: ViewChild,
|
|
24960
|
+
args: ['autoCompleteInputSearch', { read: MatAutocompleteTrigger, static: true }]
|
|
24961
|
+
}], onMessage: [{
|
|
24962
|
+
type: HostListener,
|
|
24963
|
+
args: ['window:message', ['$event']]
|
|
24964
|
+
}] } });
|
|
24965
|
+
|
|
24966
|
+
class QMSSelectOneModule {
|
|
24967
|
+
}
|
|
24968
|
+
QMSSelectOneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24969
|
+
QMSSelectOneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneModule, declarations: [SelectOneDialog], imports: [CommonModule,
|
|
24970
|
+
MatTreeModule,
|
|
24971
|
+
MatIconModule,
|
|
24972
|
+
MatButtonModule,
|
|
24973
|
+
MatCheckboxModule,
|
|
24974
|
+
MatExpansionModule,
|
|
24975
|
+
MatAutocompleteModule,
|
|
24976
|
+
ReactiveFormsModule,
|
|
24977
|
+
ScrollingModule,
|
|
24978
|
+
MatCardModule,
|
|
24979
|
+
MatSidenavModule,
|
|
24980
|
+
MatListModule,
|
|
24981
|
+
SharedMaterialModule,
|
|
24982
|
+
QMSListModule,
|
|
24983
|
+
QmsAngularModule,
|
|
24984
|
+
QMSBreadcrumbModule,
|
|
24985
|
+
QMSAppIconModule,
|
|
24986
|
+
QMSTreeModule], exports: [SelectOneDialog] });
|
|
24987
|
+
QMSSelectOneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneModule, imports: [[
|
|
24988
|
+
CommonModule,
|
|
24989
|
+
MatTreeModule,
|
|
24990
|
+
MatIconModule,
|
|
24991
|
+
MatButtonModule,
|
|
24992
|
+
MatCheckboxModule,
|
|
24993
|
+
MatExpansionModule,
|
|
24994
|
+
MatAutocompleteModule,
|
|
24995
|
+
ReactiveFormsModule,
|
|
24996
|
+
ScrollingModule,
|
|
24997
|
+
MatCardModule,
|
|
24998
|
+
MatSidenavModule,
|
|
24999
|
+
MatListModule,
|
|
25000
|
+
SharedMaterialModule,
|
|
25001
|
+
QMSListModule,
|
|
25002
|
+
QmsAngularModule,
|
|
25003
|
+
QMSBreadcrumbModule,
|
|
25004
|
+
QMSAppIconModule,
|
|
25005
|
+
QMSTreeModule
|
|
25006
|
+
]] });
|
|
25007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0, type: QMSSelectOneModule, decorators: [{
|
|
25008
|
+
type: NgModule,
|
|
25009
|
+
args: [{
|
|
25010
|
+
declarations: [
|
|
25011
|
+
SelectOneDialog
|
|
25012
|
+
],
|
|
25013
|
+
imports: [
|
|
25014
|
+
CommonModule,
|
|
25015
|
+
MatTreeModule,
|
|
25016
|
+
MatIconModule,
|
|
25017
|
+
MatButtonModule,
|
|
25018
|
+
MatCheckboxModule,
|
|
25019
|
+
MatExpansionModule,
|
|
25020
|
+
MatAutocompleteModule,
|
|
25021
|
+
ReactiveFormsModule,
|
|
25022
|
+
ScrollingModule,
|
|
25023
|
+
MatCardModule,
|
|
25024
|
+
MatSidenavModule,
|
|
25025
|
+
MatListModule,
|
|
25026
|
+
SharedMaterialModule,
|
|
25027
|
+
QMSListModule,
|
|
25028
|
+
QmsAngularModule,
|
|
25029
|
+
QMSBreadcrumbModule,
|
|
25030
|
+
QMSAppIconModule,
|
|
25031
|
+
QMSTreeModule
|
|
25032
|
+
],
|
|
25033
|
+
exports: [
|
|
25034
|
+
SelectOneDialog
|
|
25035
|
+
]
|
|
25036
|
+
}]
|
|
25037
|
+
}] });
|
|
25038
|
+
|
|
25039
|
+
class ISelectOneItem {
|
|
25040
|
+
}
|
|
25041
|
+
|
|
24398
25042
|
/*
|
|
24399
25043
|
* Public API Surface of qms-angular
|
|
24400
25044
|
*/
|
|
@@ -24403,5 +25047,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImpor
|
|
|
24403
25047
|
* Generated bundle index. Do not edit.
|
|
24404
25048
|
*/
|
|
24405
25049
|
|
|
24406
|
-
export { AutocompleteOffDirective, BREADCRUMB_DROPDOWN_ICON, BUTTON_TOGGLE_DEFAULT_OPTIONS, BUTTON_TOGGLE_GROUP, BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, BannerType, BpmnService, BreadcrumbNode, ButtonToggleChange, CHECKLIST_ICON, CKEditorEventConst, CKEditorModule, ConfirmDialog, DEPARTMENT_FOLDER_ICON, DEPARTMENT_FOLDER_OUTLINED_ICON, DEVIATION_ICON, DOCUMENT_DEPARTMENT_ICON, DOCUMENT_ENTERPRISE_ICON, DOCUMENT_ICON, DOCUMENT_LOCAL_ICON, DOCUMENT_REGIONAL_ICON, DateFormatPipe, ENTERPRISE_FOLDER_ICON, ENTERPRISE_FOLDER_OUTLINED_ICON, FileErrorType, FlowChartConst, FlowchartViewMode, HaloService, IconModel, InformationCoverItem, InspectorService, KEYBOARD_DOWN_ICON, KEYBOARD_UP_ICON, KeyboardService, LOCAL_FOLDER_ICON, LOCAL_FOLDER_OUTLINED_ICON, LinkAnchor, LinkType, MarginDirective, NORMAL_FOLDER_ICON, NORMAL_FOLDER_OUTLINED_ICON, NavigatorElementView, NavigatorLinkView, PROCESS_AREA_ICON, PROCESS_AREA_OUTLINED_ICON, PROCESS_ICON, PopupData, ProtocolType, ProtocolTypeName, QMSAnchor, QMSAppIconModule, QMSAttachmentListDirective, QMSBreadcrumb, QMSBreadcrumbDirectionIconDirective, QMSBreadcrumbItemDirective, QMSBreadcrumbModule, QMSButton, QMSButtonIcon, QMSButtonModule, QMSButtonToggle, QMSButtonToggleGroup, QMSCKEditorBaseComponent, QMSCKEditorBaseService, QMSCKEditorBpmn, QMSCKEditorBpmnApiService, QMSCKEditorBpmnComponent, QMSCKEditorBpmnTemplate, QMSCKEditorComponent, QMSCKEditorConfirmComponent, QMSCKEditorData, QMSCKEditorDialogData, QMSCKEditorDocumentType, QMSCKEditorFlowchart, QMSCKEditorFlowchartComponent, QMSCKEditorFlowchartService, QMSCKEditorFlowchartTemplate, QMSCKEditorFullscreenComponent, QMSCKEditorGlobalService, QMSCKEditorInjector, QMSCKEditorLinkAnchorDocument, QMSCKEditorLinkComponent, QMSCKEditorLinkService, QMSCKEditorLoadTemplateComponent, QMSCKEditorModule, QMSCKEditorPlugin, QMSCKEditorRelatedComponent, QMSCKEditorRelation, QMSCKEditorSaveAsTemplate, QMSCKEditorTemplate, QMSCKEditorTemplateService, QMSCKEditorToastService, QMSCKEditorTreeComponent, QMSCKEdtiorInputData, QMSChipBodyDirective, QMSChipInputChipListDirective, QMSChipInputDirective, QMSChipInputSelectDropWDownDirective, QMSChipInputSelectFieldDirective, QMSChipInputSelectTriggerDirective, QMSComment, QMSConfirmDialog, QMSDialogConfig, QMSDrawerContentDirective, QMSDrawerDirective, QMSDrawerHeaderActionDirective, QMSDrawerHeaderDirective, QMSDropdownMenuItem, QMSEditFileNameDialog, QMSEditFileNameDialogModule, QMSFileAttachment, QMSFileUploadDirective, QMSFileUploadDisplayDirective, QMSFileUploadMultipleDirective, QMSFileUploadMultipleDisplayDirective, QMSFileUploadMultipleSelectorDirective, QMSFileUploadSelectorDirective, QMSFormDialog, QMSFormFieldDatePickerDirective, QMSFormFieldDirective, QMSFormFieldTextareaDirective, QMSGroupOptionDirective, QMSIconRegistryService, QMSInputChipDirective, QMSInputClearDirective, QMSList, QMSListExpansion, QMSListExpansionHeader, QMSListHeader, QMSListItem, QMSListLeadingIcon, QMSListLine, QMSListModule, QMSRangeSliderDirective, QMSRangeSliderLockUpDirective, QMSRelatedGlobalService, QMSRelatedModule, QMSRichText, QMSRichTextModule, QMSScrolableAttachmentListDirective, QMSScrollbarDirective, QMSSearchFieldDirective, QMSSelectGlobalService, QMSSelectIncludeChildrenModule, QMSSnackbarConfig, QMSSuffixDirective, QMSSuffixFieldDirective, QMSTabGroupAdvancedDirective, QMSTabGroupDirective, QMSTabLabelDirective, QMSTableAction, QMSTableActionBlock, QMSTableModule, QMSTextBlockDirective, QMSTextBlockLine, QMSToolTipComponent, QMSToolTipRendererDirective, QMSTooltipImageDirective, QMSTooltipModule, QMSTreeModule, QMSUploadFileErrorDialog, QMSUploadFileErrorDialogModule, QMSUploadingFileGuard, QmsAngularComponent, QmsAngularModule, QmsAngularService, QmsAppBarComponent, QmsAppBarModule, QmsBadgesComponent, QmsBadgesModule, QmsBannerComponent, QmsBannerConfirmButton, QmsBannerConfirmButtonClick, QmsBannerConfirmComponent, QmsBannerConfirmModule, QmsBannerContent, QmsBannerLoadingComponent, QmsBannerLoadingModule, QmsBannerModule, QmsReportContentPortraitComponent, QmsReportCoverPortraitComponent, QmsReportModule, QmsStepperComponent, QmsStepperModule, REGIONAL_FOLDER_ICON, REGIONAL_FOLDER_OUTLINED_ICON, RISK_ICON, RelatedContentComponent, RelatedItemType, RelatedListComponent, RelatedPopupComponent, Result, RiskAnalysis, RiskAnalysisComponent, RiskDanger, RiskListComponent, RiskResult, RiskResultComponent, SaveTemplateComponent, ScrollToSelectedDirective, SelectConst, SelectDialog, SelectIncludeChildrenPopUpComponent, SelectPopupData, SharedModule, SideNav, SideNavItem, SidenavComponent, StencilService, StepModel, TargetType, TargetTypeName, TestOnlyComponent, ThemePicker, ToolbarService, TranslateLibraryService, TreeComponent, TreeConfig, TreeFlatNode, TreeModel, TreeNode$1 as TreeNode, UploadErrorData, app, basic, en, erd, fsa, mixinColor, no, notExceedSize, org, pn, requiredFileType, sampleGraphs, standard, uml };
|
|
25050
|
+
export { AutocompleteOffDirective, BREADCRUMB_DROPDOWN_ICON, BUTTON_TOGGLE_DEFAULT_OPTIONS, BUTTON_TOGGLE_GROUP, BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, BannerType, BpmnService, BreadcrumbNode, ButtonToggleChange, CHECKLIST_ICON, CKEditorEventConst, CKEditorModule, ConfirmDialog, DEPARTMENT_FOLDER_ICON, DEPARTMENT_FOLDER_OUTLINED_ICON, DEVIATION_ICON, DOCUMENT_DEPARTMENT_ICON, DOCUMENT_ENTERPRISE_ICON, DOCUMENT_ICON, DOCUMENT_LOCAL_ICON, DOCUMENT_REGIONAL_ICON, DateFormatPipe, ENTERPRISE_FOLDER_ICON, ENTERPRISE_FOLDER_OUTLINED_ICON, FileErrorType, FlowChartConst, FlowchartViewMode, HaloService, ISelectOneItem, IconModel, InformationCoverItem, InspectorService, KEYBOARD_DOWN_ICON, KEYBOARD_UP_ICON, KeyboardService, LOCAL_FOLDER_ICON, LOCAL_FOLDER_OUTLINED_ICON, LinkAnchor, LinkType, MarginDirective, NORMAL_FOLDER_ICON, NORMAL_FOLDER_OUTLINED_ICON, NavigatorElementView, NavigatorLinkView, PROCESS_AREA_ICON, PROCESS_AREA_OUTLINED_ICON, PROCESS_ICON, PopupData, ProtocolType, ProtocolTypeName, QMSAnchor, QMSAppIconModule, QMSAttachmentListDirective, QMSBreadcrumb, QMSBreadcrumbDirectionIconDirective, QMSBreadcrumbItemDirective, QMSBreadcrumbModule, QMSButton, QMSButtonIcon, QMSButtonModule, QMSButtonToggle, QMSButtonToggleGroup, QMSCKEditorBaseComponent, QMSCKEditorBaseService, QMSCKEditorBpmn, QMSCKEditorBpmnApiService, QMSCKEditorBpmnComponent, QMSCKEditorBpmnTemplate, QMSCKEditorComponent, QMSCKEditorConfirmComponent, QMSCKEditorData, QMSCKEditorDialogData, QMSCKEditorDocumentType, QMSCKEditorFlowchart, QMSCKEditorFlowchartComponent, QMSCKEditorFlowchartService, QMSCKEditorFlowchartTemplate, QMSCKEditorFullscreenComponent, QMSCKEditorGlobalService, QMSCKEditorInjector, QMSCKEditorLinkAnchorDocument, QMSCKEditorLinkComponent, QMSCKEditorLinkService, QMSCKEditorLoadTemplateComponent, QMSCKEditorModule, QMSCKEditorPlugin, QMSCKEditorRelatedComponent, QMSCKEditorRelation, QMSCKEditorSaveAsTemplate, QMSCKEditorTemplate, QMSCKEditorTemplateService, QMSCKEditorToastService, QMSCKEditorTreeComponent, QMSCKEdtiorInputData, QMSChipBodyDirective, QMSChipInputChipListDirective, QMSChipInputDirective, QMSChipInputSelectDropWDownDirective, QMSChipInputSelectFieldDirective, QMSChipInputSelectTriggerDirective, QMSComment, QMSConfirmDialog, QMSDialogConfig, QMSDrawerContentDirective, QMSDrawerDirective, QMSDrawerHeaderActionDirective, QMSDrawerHeaderDirective, QMSDropdownMenuItem, QMSEditFileNameDialog, QMSEditFileNameDialogModule, QMSFileAttachment, QMSFileUploadDirective, QMSFileUploadDisplayDirective, QMSFileUploadMultipleDirective, QMSFileUploadMultipleDisplayDirective, QMSFileUploadMultipleSelectorDirective, QMSFileUploadSelectorDirective, QMSFormDialog, QMSFormFieldDatePickerDirective, QMSFormFieldDirective, QMSFormFieldTextareaDirective, QMSGroupOptionDirective, QMSIconRegistryService, QMSInputChipDirective, QMSInputClearDirective, QMSList, QMSListExpansion, QMSListExpansionHeader, QMSListHeader, QMSListItem, QMSListLeadingIcon, QMSListLine, QMSListModule, QMSRangeSliderDirective, QMSRangeSliderLockUpDirective, QMSRelatedGlobalService, QMSRelatedModule, QMSRichText, QMSRichTextModule, QMSScrolableAttachmentListDirective, QMSScrollbarDirective, QMSSearchFieldDirective, QMSSelectGlobalService, QMSSelectIncludeChildrenModule, QMSSelectOneGlobalService, QMSSelectOneModule, QMSSnackbarConfig, QMSSuffixDirective, QMSSuffixFieldDirective, QMSTabGroupAdvancedDirective, QMSTabGroupDirective, QMSTabLabelDirective, QMSTableAction, QMSTableActionBlock, QMSTableModule, QMSTextBlockDirective, QMSTextBlockLine, QMSToolTipComponent, QMSToolTipRendererDirective, QMSTooltipImageDirective, QMSTooltipModule, QMSTreeModule, QMSUploadFileErrorDialog, QMSUploadFileErrorDialogModule, QMSUploadingFileGuard, QmsAngularComponent, QmsAngularModule, QmsAngularService, QmsAppBarComponent, QmsAppBarModule, QmsBadgesComponent, QmsBadgesModule, QmsBannerComponent, QmsBannerConfirmButton, QmsBannerConfirmButtonClick, QmsBannerConfirmComponent, QmsBannerConfirmModule, QmsBannerContent, QmsBannerLoadingComponent, QmsBannerLoadingModule, QmsBannerModule, QmsReportContentPortraitComponent, QmsReportCoverPortraitComponent, QmsReportModule, QmsStepperComponent, QmsStepperModule, REGIONAL_FOLDER_ICON, REGIONAL_FOLDER_OUTLINED_ICON, RISK_ICON, RelatedContentComponent, RelatedItemType, RelatedListComponent, RelatedPopupComponent, Result, RiskAnalysis, RiskAnalysisComponent, RiskDanger, RiskListComponent, RiskResult, RiskResultComponent, SaveTemplateComponent, ScrollToSelectedDirective, SelectConst, SelectDialog, SelectIncludeChildrenPopUpComponent, SelectOneDialog, SelectOnePopupData, SelectOption, SelectOptionTypes, SelectPopupData, SelectedOption, SharedModule, ShowHideSearchResultConst, SideNav, SideNavItem, SidenavComponent, StencilService, StepModel, TargetType, TargetTypeName, TestOnlyComponent, ThemePicker, ToolbarService, TranslateLibraryService, TreeComponent, TreeConfig, TreeFlatNode, TreeModel, TreeNode$1 as TreeNode, UploadErrorData, app, basic, en, erd, fsa, mixinColor, no, notExceedSize, org, pn, requiredFileType, sampleGraphs, standard, uml };
|
|
24407
25051
|
//# sourceMappingURL=qms-angular.js.map
|