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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/radio'), require('@angular/material/card'), require('@angular/material/core'), require('@angular/platform-browser/animations'), require('@angular/cdk/a11y'), require('@angular/material/input'), require('@angular/cdk/text-field'), require('moment'), require('@angular/material/dialog'), require('rxjs/operators'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/button'), require('@angular/cdk/portal'), require('@angular/cdk/overlay'), require('@angular/material/autocomplete'), require('@angular/material/chips'), require('@angular/material/progress-spinner'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/material/list'), require('@angular/material/expansion'), require('@angular/cdk/scrolling'), require('@angular/material/sidenav'), require('@angular/material/tree'), require('@angular/material/menu'), require('@angular/platform-browser'), require('@angular/cdk/tree'), require('@angular/common/http'), require('@angular/material/button-toggle'), require('@angular/material/select'), require('@angular/material/snack-bar'), require('@ckeditor/ckeditor5-angular'), require('jquery'), require('lodash'), require('@angular/material/tabs'), require('@angular/material/progress-bar'), require('@angular/material/tooltip'), require('@clientio/rappid'), require('dagre'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@angular/cdk/stepper'), require('@angular/material/stepper'), require('@angular/material/slide-toggle')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('qms-angular', ['exports', '@angular/core', 'rxjs', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/radio', '@angular/material/card', '@angular/material/core', '@angular/platform-browser/animations', '@angular/cdk/a11y', '@angular/material/input', '@angular/cdk/text-field', 'moment', '@angular/material/dialog', 'rxjs/operators', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/button', '@angular/cdk/portal', '@angular/cdk/overlay', '@angular/material/autocomplete', '@angular/material/chips', '@angular/material/progress-spinner', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/material/list', '@angular/material/expansion', '@angular/cdk/scrolling', '@angular/material/sidenav', '@angular/material/tree', '@angular/material/menu', '@angular/platform-browser', '@angular/cdk/tree', '@angular/common/http', '@angular/material/button-toggle', '@angular/material/select', '@angular/material/snack-bar', '@ckeditor/ckeditor5-angular', 'jquery', 'lodash', '@angular/material/tabs', '@angular/material/progress-bar', '@angular/material/tooltip', '@clientio/rappid', 'dagre', '@angular/material/badge', '@angular/material/toolbar', '@angular/cdk/stepper', '@angular/material/stepper', '@angular/material/slide-toggle'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["qms-angular"] = {}, global.ng.core, global.rxjs, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.radio, global.ng.material.card, global.ng.material.core, global.ng.platformBrowser.animations, global.ng.cdk.a11y, global.ng.material.input, global.ng.cdk.textField, global.moment, global.ng.material.dialog, global.rxjs.operators, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.button, global.ng.cdk.portal, global.ng.cdk.overlay, global.ng.material.autocomplete, global.ng.material.chips, global.ng.material.progressSpinner, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.material.list, global.ng.material.expansion, global.ng.cdk.scrolling, global.ng.material.sidenav, global.ng.material.tree, global.ng.material.menu, global.ng.platformBrowser, global.ng.cdk.tree, global.ng.common.http, global.ng.material.buttonToggle, global.ng.material.select, global.ng.material.snackBar, global.i6$2, global
|
|
5
|
-
})(this, (function (exports, i0, rxjs, i5$1, i10, i5, radio, i2, i7, animations, i1, i12, i9, moment, i1$2, operators, i4, i6, i9$1, portal, i1$1, i7$1, chips, i1$3, coercion, collections, i2$1, i12$1, i8, i1$4, i4$2, i4$1, i5$2, tree, i1$5, i7$2, i6$1, snackBar, i6$2,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/radio'), require('@angular/material/card'), require('@angular/material/core'), require('@angular/platform-browser/animations'), require('@angular/cdk/a11y'), require('@angular/material/input'), require('@angular/cdk/text-field'), require('moment'), require('@angular/material/dialog'), require('rxjs/operators'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/button'), require('@angular/cdk/portal'), require('@angular/cdk/overlay'), require('@angular/material/autocomplete'), require('@angular/material/chips'), require('@angular/material/progress-spinner'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/material/list'), require('@angular/material/expansion'), require('@angular/cdk/scrolling'), require('@angular/material/sidenav'), require('@angular/material/tree'), require('@angular/material/menu'), require('@angular/platform-browser'), require('@angular/cdk/tree'), require('@angular/common/http'), require('@angular/material/button-toggle'), require('@angular/material/select'), require('@angular/material/snack-bar'), require('@ckeditor/ckeditor5-angular'), require('jquery'), require('lodash'), require('@angular/material/tabs'), require('@angular/material/progress-bar'), require('@angular/material/tooltip'), require('@clientio/rappid'), require('dagre'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@angular/cdk/stepper'), require('@angular/material/stepper'), require('@angular/material/slide-toggle'), require('projects/qms-angular/src/public-api')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('qms-angular', ['exports', '@angular/core', 'rxjs', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/radio', '@angular/material/card', '@angular/material/core', '@angular/platform-browser/animations', '@angular/cdk/a11y', '@angular/material/input', '@angular/cdk/text-field', 'moment', '@angular/material/dialog', 'rxjs/operators', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/button', '@angular/cdk/portal', '@angular/cdk/overlay', '@angular/material/autocomplete', '@angular/material/chips', '@angular/material/progress-spinner', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/material/list', '@angular/material/expansion', '@angular/cdk/scrolling', '@angular/material/sidenav', '@angular/material/tree', '@angular/material/menu', '@angular/platform-browser', '@angular/cdk/tree', '@angular/common/http', '@angular/material/button-toggle', '@angular/material/select', '@angular/material/snack-bar', '@ckeditor/ckeditor5-angular', 'jquery', 'lodash', '@angular/material/tabs', '@angular/material/progress-bar', '@angular/material/tooltip', '@clientio/rappid', 'dagre', '@angular/material/badge', '@angular/material/toolbar', '@angular/cdk/stepper', '@angular/material/stepper', '@angular/material/slide-toggle', 'projects/qms-angular/src/public-api'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["qms-angular"] = {}, global.ng.core, global.rxjs, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.radio, global.ng.material.card, global.ng.material.core, global.ng.platformBrowser.animations, global.ng.cdk.a11y, global.ng.material.input, global.ng.cdk.textField, global.moment, global.ng.material.dialog, global.rxjs.operators, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.button, global.ng.cdk.portal, global.ng.cdk.overlay, global.ng.material.autocomplete, global.ng.material.chips, global.ng.material.progressSpinner, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.material.list, global.ng.material.expansion, global.ng.cdk.scrolling, global.ng.material.sidenav, global.ng.material.tree, global.ng.material.menu, global.ng.platformBrowser, global.ng.cdk.tree, global.ng.common.http, global.ng.material.buttonToggle, global.ng.material.select, global.ng.material.snackBar, global.i6$2, global.$$1, global._, global.ng.material.tabs, global.ng.material.progressBar, global.ng.material.tooltip, global.joint$2, global.dagre, global.ng.material.badge, global.ng.material.toolbar, global.ng.cdk.stepper, global.ng.material.stepper, global.ng.material.slideToggle, global.publicApi));
|
|
5
|
+
})(this, (function (exports, i0, rxjs, i5$1, i10, i5, radio, i2, i7, animations, i1, i12, i9, moment, i1$2, operators, i4, i6, i9$1, portal, i1$1, i7$1, chips, i1$3, coercion, collections, i2$1, i12$1, i8, i1$4, i4$2, i4$1, i5$2, tree, i1$5, i7$2, i6$1, snackBar, i6$2, $$1, _, i8$1, i14, i4$3, joint$2, dagre, i6$3, i1$6, stepper, i1$7, i7$3, publicApi) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
var i7__namespace$2 = /*#__PURE__*/_interopNamespace(i7$2);
|
|
51
51
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
52
52
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
53
|
-
var $__namespace = /*#__PURE__*/_interopNamespace(
|
|
53
|
+
var $__namespace = /*#__PURE__*/_interopNamespace($$1);
|
|
54
54
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
55
55
|
var i8__namespace$1 = /*#__PURE__*/_interopNamespace(i8$1);
|
|
56
56
|
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
var i6__namespace$3 = /*#__PURE__*/_interopNamespace(i6$3);
|
|
61
61
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
62
62
|
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
63
|
-
var
|
|
63
|
+
var i7__namespace$3 = /*#__PURE__*/_interopNamespace(i7$3);
|
|
64
64
|
|
|
65
65
|
var QmsAngularService = /** @class */ (function () {
|
|
66
66
|
function QmsAngularService() {
|
|
@@ -4832,7 +4832,7 @@
|
|
|
4832
4832
|
}]
|
|
4833
4833
|
}] });
|
|
4834
4834
|
|
|
4835
|
-
var DataType;
|
|
4835
|
+
var DataType$1;
|
|
4836
4836
|
(function (DataType) {
|
|
4837
4837
|
DataType[DataType["process"] = 2] = "process";
|
|
4838
4838
|
DataType[DataType["document"] = 1] = "document";
|
|
@@ -4844,9 +4844,9 @@
|
|
|
4844
4844
|
DataType[DataType["deviationType"] = 8] = "deviationType";
|
|
4845
4845
|
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
|
4846
4846
|
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
|
4847
|
-
})(DataType || (DataType = {}));
|
|
4847
|
+
})(DataType$1 || (DataType$1 = {}));
|
|
4848
4848
|
|
|
4849
|
-
var DocumentNodeType;
|
|
4849
|
+
var DocumentNodeType$1;
|
|
4850
4850
|
(function (DocumentNodeType) {
|
|
4851
4851
|
DocumentNodeType[DocumentNodeType["Document"] = 1] = "Document";
|
|
4852
4852
|
DocumentNodeType[DocumentNodeType["LinkDocument"] = 2] = "LinkDocument";
|
|
@@ -4856,7 +4856,7 @@
|
|
|
4856
4856
|
DocumentNodeType[DocumentNodeType["TopFolder"] = 6] = "TopFolder";
|
|
4857
4857
|
DocumentNodeType[DocumentNodeType["DepartmentFolder"] = 7] = "DepartmentFolder";
|
|
4858
4858
|
DocumentNodeType[DocumentNodeType["RegionalFolder"] = 8] = "RegionalFolder";
|
|
4859
|
-
})(DocumentNodeType || (DocumentNodeType = {}));
|
|
4859
|
+
})(DocumentNodeType$1 || (DocumentNodeType$1 = {}));
|
|
4860
4860
|
|
|
4861
4861
|
var RelatedConst = /** @class */ (function () {
|
|
4862
4862
|
function RelatedConst() {
|
|
@@ -4981,6 +4981,7 @@
|
|
|
4981
4981
|
this.selectedData = [];
|
|
4982
4982
|
this.selectedRiskData = [];
|
|
4983
4983
|
this.disabledList = [];
|
|
4984
|
+
this.expandToChildNode = [];
|
|
4984
4985
|
this.selectNodeEvent = new i0.EventEmitter();
|
|
4985
4986
|
this.selectFolderEvent = new i0.EventEmitter();
|
|
4986
4987
|
this.checkBoxEvent = new i0.EventEmitter();
|
|
@@ -5017,7 +5018,7 @@
|
|
|
5017
5018
|
this.isChecked = false;
|
|
5018
5019
|
this.idCheckIcon = '';
|
|
5019
5020
|
this.listChildNode = [];
|
|
5020
|
-
this.dataType = DataType;
|
|
5021
|
+
this.dataType = DataType$1;
|
|
5021
5022
|
this.transformer = function (node, level) {
|
|
5022
5023
|
var checkHasChild = true;
|
|
5023
5024
|
if (!node.children) {
|
|
@@ -5080,7 +5081,8 @@
|
|
|
5080
5081
|
JSON.stringify(changes.selectedData.previousValue))) {
|
|
5081
5082
|
this.checkSelected(changes.selectedData.currentValue);
|
|
5082
5083
|
}
|
|
5083
|
-
else
|
|
5084
|
+
else if (changes.selectedData &&
|
|
5085
|
+
(changes.selectedData.currentValue.length === 0)) {
|
|
5084
5086
|
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
5085
5087
|
this.checklistSelection.deselect(this.treeControl.dataNodes[i]);
|
|
5086
5088
|
}
|
|
@@ -5088,6 +5090,10 @@
|
|
|
5088
5090
|
if (changes.disabledList && JSON.stringify(changes.disabledList.currentValue) !== JSON.stringify(changes.disabledList.previousValue)) {
|
|
5089
5091
|
this.checkDisabledList();
|
|
5090
5092
|
}
|
|
5093
|
+
// expand all parent to show node
|
|
5094
|
+
if (changes.expandToChildNode && JSON.stringify(changes.expandToChildNode.currentValue) !== JSON.stringify(changes.expandToChildNode.previousValue)) {
|
|
5095
|
+
this.openExpandToChildNode();
|
|
5096
|
+
}
|
|
5091
5097
|
};
|
|
5092
5098
|
TreeComponent.prototype.ngOnInit = function () {
|
|
5093
5099
|
this.initTreeData();
|
|
@@ -5154,13 +5160,52 @@
|
|
|
5154
5160
|
}
|
|
5155
5161
|
//check disabled list
|
|
5156
5162
|
this.checkDisabledList();
|
|
5163
|
+
// expand to child node
|
|
5164
|
+
this.openExpandToChildNode();
|
|
5165
|
+
};
|
|
5166
|
+
TreeComponent.prototype.openExpandToChildNode = function () {
|
|
5167
|
+
var _this = this;
|
|
5168
|
+
if (this.expandToChildNode.length) {
|
|
5169
|
+
if (this.expandToChildNode[0] === '') {
|
|
5170
|
+
this.idCheckIcon = '';
|
|
5171
|
+
this.treeControl.collapseAll();
|
|
5172
|
+
this.cdRef.detectChanges();
|
|
5173
|
+
return;
|
|
5174
|
+
}
|
|
5175
|
+
var itemMarkChecked = this.expandToChildNode[this.expandToChildNode.length - 1].toUpperCase();
|
|
5176
|
+
this.idCheckIcon = itemMarkChecked;
|
|
5177
|
+
// get all children nodes on same level
|
|
5178
|
+
var listChildNodeSameLevel = this.findChildNode(itemMarkChecked, this.dataSource.data);
|
|
5179
|
+
// get all children in all level
|
|
5180
|
+
this.listChildNode = [];
|
|
5181
|
+
this.getChild(listChildNodeSameLevel);
|
|
5182
|
+
this.getChildNodeSelectOne.emit(this.listChildNode);
|
|
5183
|
+
var _loop_2 = function (i) {
|
|
5184
|
+
if (itemMarkChecked === this_2.treeControl.dataNodes[i].id) {
|
|
5185
|
+
this_2.selectNodeEvent.emit(this_2.treeControl.dataNodes[i]);
|
|
5186
|
+
}
|
|
5187
|
+
this_2.expandToChildNode.forEach(function (el) {
|
|
5188
|
+
if (_this.treeControl.dataNodes[i].id === el.toUpperCase()) {
|
|
5189
|
+
_this.treeControl.expand(_this.treeControl.dataNodes[i]);
|
|
5190
|
+
}
|
|
5191
|
+
});
|
|
5192
|
+
};
|
|
5193
|
+
var this_2 = this;
|
|
5194
|
+
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
5195
|
+
_loop_2(i);
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5157
5198
|
};
|
|
5158
5199
|
TreeComponent.prototype.checkDisabledList = function () {
|
|
5159
5200
|
var _this = this;
|
|
5201
|
+
// Enable whole tree
|
|
5202
|
+
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
5203
|
+
this.treeControl.dataNodes[i].disabled = false;
|
|
5204
|
+
}
|
|
5160
5205
|
// Disable List
|
|
5161
5206
|
if (this.disabledList.length) {
|
|
5162
|
-
var
|
|
5163
|
-
|
|
5207
|
+
var _loop_3 = function (i) {
|
|
5208
|
+
this_3.disabledList.forEach(function (x) {
|
|
5164
5209
|
var _a;
|
|
5165
5210
|
if (x.id === _this.treeControl.dataNodes[i].id
|
|
5166
5211
|
&& (!x.parentId || x.parentId === ((_a = _this.treeControl.dataNodes[i]) === null || _a === void 0 ? void 0 : _a.parentId))) {
|
|
@@ -5168,9 +5213,9 @@
|
|
|
5168
5213
|
}
|
|
5169
5214
|
});
|
|
5170
5215
|
};
|
|
5171
|
-
var
|
|
5216
|
+
var this_3 = this;
|
|
5172
5217
|
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
5173
|
-
|
|
5218
|
+
_loop_3(i);
|
|
5174
5219
|
}
|
|
5175
5220
|
}
|
|
5176
5221
|
//Selected node with select one
|
|
@@ -5183,26 +5228,26 @@
|
|
|
5183
5228
|
this.listChildNode = [];
|
|
5184
5229
|
this.getChild(listChildNodeSameLevel);
|
|
5185
5230
|
this.getChildNodeSelectOne.emit(this.listChildNode);
|
|
5186
|
-
var
|
|
5187
|
-
if (itemMarkChecked ===
|
|
5188
|
-
|
|
5231
|
+
var _loop_4 = function (i) {
|
|
5232
|
+
if (itemMarkChecked === this_4.treeControl.dataNodes[i].id) {
|
|
5233
|
+
this_4.selectNodeEvent.emit(this_4.treeControl.dataNodes[i]);
|
|
5189
5234
|
}
|
|
5190
|
-
|
|
5235
|
+
this_4.disabledList.forEach(function (el) {
|
|
5191
5236
|
if (_this.treeControl.dataNodes[i].id === el.toUpperCase()) {
|
|
5192
5237
|
_this.treeControl.expand(_this.treeControl.dataNodes[i]);
|
|
5193
5238
|
}
|
|
5194
5239
|
});
|
|
5195
5240
|
// remove all children nodes when user dont need to show them
|
|
5196
|
-
|
|
5241
|
+
this_4.listChildNode.forEach(function (el) {
|
|
5197
5242
|
var _a;
|
|
5198
5243
|
if (el.id && ((_a = _this.treeControl.dataNodes[i]) === null || _a === void 0 ? void 0 : _a.id) === el.id) {
|
|
5199
5244
|
_this.treeControl.dataNodes.splice(i, 1);
|
|
5200
5245
|
}
|
|
5201
5246
|
});
|
|
5202
5247
|
};
|
|
5203
|
-
var
|
|
5248
|
+
var this_4 = this;
|
|
5204
5249
|
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
5205
|
-
|
|
5250
|
+
_loop_4(i);
|
|
5206
5251
|
}
|
|
5207
5252
|
}
|
|
5208
5253
|
else {
|
|
@@ -5260,7 +5305,7 @@
|
|
|
5260
5305
|
_this.checklistSelection.deselect(tree);
|
|
5261
5306
|
for (var j = 0; j < itemSelected.length; j++) {
|
|
5262
5307
|
var element = itemSelected[j];
|
|
5263
|
-
if (tree.id === element.id && (!element.parentId || tree.parentId === element.parentId)
|
|
5308
|
+
if (tree.id === element.id && (!element.parentId || tree.parentId === element.parentId)) {
|
|
5264
5309
|
_this.checklistSelection.select(tree);
|
|
5265
5310
|
}
|
|
5266
5311
|
}
|
|
@@ -5316,6 +5361,7 @@
|
|
|
5316
5361
|
TreeComponent.prototype.todoItemSelectionToggle = function (node) {
|
|
5317
5362
|
var _v, _w;
|
|
5318
5363
|
var _this = this;
|
|
5364
|
+
this.selectNodeEvent.emit(node);
|
|
5319
5365
|
// tree have duplicate node
|
|
5320
5366
|
if (this.treeConfig.canHaveDupId) {
|
|
5321
5367
|
for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
|
|
@@ -5379,7 +5425,21 @@
|
|
|
5379
5425
|
for (var i = 0; i < _this.treeControl.dataNodes.length; i++) {
|
|
5380
5426
|
if (_this.treeControl.dataNodes[i].id === node.id &&
|
|
5381
5427
|
_this.treeControl.dataNodes[i].parentId === node.parentId &&
|
|
5382
|
-
!_this.treeControl.dataNodes[i].disabled) {
|
|
5428
|
+
!_this.treeControl.dataNodes[i].disabled && !_this.treeControl.dataNodes[i].expandable) {
|
|
5429
|
+
if (!_this.checklistSelection.isSelected(_this.treeControl.dataNodes[i]))
|
|
5430
|
+
_this.checklistSelection.toggle(_this.treeControl.dataNodes[i]);
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5433
|
+
});
|
|
5434
|
+
this.checkBoxEvent.emit(this.checklistSelection.selected);
|
|
5435
|
+
};
|
|
5436
|
+
TreeComponent.prototype.todoFolderSelection = function (nodes) {
|
|
5437
|
+
var _this = this;
|
|
5438
|
+
nodes.forEach(function (node) {
|
|
5439
|
+
for (var i = 0; i < _this.treeControl.dataNodes.length; i++) {
|
|
5440
|
+
if (_this.treeControl.dataNodes[i].id === node.id &&
|
|
5441
|
+
_this.treeControl.dataNodes[i].parentId === node.parentId &&
|
|
5442
|
+
!_this.treeControl.dataNodes[i].disabled && _this.treeControl.dataNodes[i].expandable) {
|
|
5383
5443
|
if (!_this.checklistSelection.isSelected(_this.treeControl.dataNodes[i]))
|
|
5384
5444
|
_this.checklistSelection.toggle(_this.treeControl.dataNodes[i]);
|
|
5385
5445
|
}
|
|
@@ -5400,11 +5460,11 @@
|
|
|
5400
5460
|
TreeComponent.prototype.checkDataTypeSelectNode = function (node) {
|
|
5401
5461
|
var itemType = -1;
|
|
5402
5462
|
switch (this.moduleId) {
|
|
5403
|
-
case DataType.process:
|
|
5404
|
-
itemType = node.expandable ? DataType.area : DataType.process;
|
|
5463
|
+
case DataType$1.process:
|
|
5464
|
+
itemType = node.expandable ? DataType$1.area : DataType$1.process;
|
|
5405
5465
|
break;
|
|
5406
|
-
case DataType.document:
|
|
5407
|
-
itemType = node.expandable ? DataType.folder : DataType.document;
|
|
5466
|
+
case DataType$1.document:
|
|
5467
|
+
itemType = node.expandable ? DataType$1.folder : DataType$1.document;
|
|
5408
5468
|
break;
|
|
5409
5469
|
default:
|
|
5410
5470
|
itemType = this.moduleId;
|
|
@@ -5584,17 +5644,17 @@
|
|
|
5584
5644
|
return this.treeControl.isExpanded(node) ? this.openIcon : this.closeIcon;
|
|
5585
5645
|
}
|
|
5586
5646
|
switch (this.moduleId) {
|
|
5587
|
-
case DataType.document: {
|
|
5647
|
+
case DataType$1.document: {
|
|
5588
5648
|
var nodeData = this.treeData.filter(function (x) { return x.rootId === node.id; });
|
|
5589
5649
|
if (nodeData.length > 0) {
|
|
5590
5650
|
switch (nodeData[0].levelType) {
|
|
5591
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5651
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5592
5652
|
return this.treeControl.isExpanded(node) ? 'department_folder_outlined' : 'department_folder';
|
|
5593
|
-
case DocumentNodeType.RegionalFolder:
|
|
5653
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5594
5654
|
return this.treeControl.isExpanded(node) ? 'regional_folder_outlined' : 'regional_folder';
|
|
5595
|
-
case DocumentNodeType.TopFolder:
|
|
5655
|
+
case DocumentNodeType$1.TopFolder:
|
|
5596
5656
|
return this.treeControl.isExpanded(node) ? 'enterprise_folder_outlined' : 'enterprise_folder';
|
|
5597
|
-
case DocumentNodeType.Folder:
|
|
5657
|
+
case DocumentNodeType$1.Folder:
|
|
5598
5658
|
return this.treeControl.isExpanded(node) ? 'local_folder_outlined' : 'local_folder';
|
|
5599
5659
|
default:
|
|
5600
5660
|
return this.treeControl.isExpanded(node) ? 'folder_outlined' : 'folder';
|
|
@@ -5602,7 +5662,7 @@
|
|
|
5602
5662
|
}
|
|
5603
5663
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
|
5604
5664
|
}
|
|
5605
|
-
case DataType.process:
|
|
5665
|
+
case DataType$1.process:
|
|
5606
5666
|
return this.treeControl.isExpanded(node) ? 'process_area_outlined' : 'process_area';
|
|
5607
5667
|
default:
|
|
5608
5668
|
return this.treeControl.isExpanded(node) ? 'keyboard_up' : 'keyboard_down';
|
|
@@ -5610,26 +5670,26 @@
|
|
|
5610
5670
|
};
|
|
5611
5671
|
TreeComponent.prototype.getItemIcon = function (node) {
|
|
5612
5672
|
switch (this.moduleId) {
|
|
5613
|
-
case DataType.document:
|
|
5673
|
+
case DataType$1.document:
|
|
5614
5674
|
switch (node.levelType) {
|
|
5615
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5675
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5616
5676
|
return 'document_department';
|
|
5617
|
-
case DocumentNodeType.RegionalFolder:
|
|
5677
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5618
5678
|
return 'document_regional';
|
|
5619
|
-
case DocumentNodeType.TopFolder:
|
|
5679
|
+
case DocumentNodeType$1.TopFolder:
|
|
5620
5680
|
return 'document_enterprise';
|
|
5621
|
-
case DocumentNodeType.Folder:
|
|
5681
|
+
case DocumentNodeType$1.Folder:
|
|
5622
5682
|
return 'document_local';
|
|
5623
5683
|
default:
|
|
5624
5684
|
return 'document';
|
|
5625
5685
|
}
|
|
5626
|
-
case DataType.process:
|
|
5686
|
+
case DataType$1.process:
|
|
5627
5687
|
return 'process';
|
|
5628
|
-
case DataType.checklist:
|
|
5688
|
+
case DataType$1.checklist:
|
|
5629
5689
|
return 'checklist';
|
|
5630
|
-
case DataType.deviation:
|
|
5690
|
+
case DataType$1.deviation:
|
|
5631
5691
|
return 'deviation';
|
|
5632
|
-
case DataType.risk:
|
|
5692
|
+
case DataType$1.risk:
|
|
5633
5693
|
return 'risk';
|
|
5634
5694
|
default:
|
|
5635
5695
|
return 'document';
|
|
@@ -5643,10 +5703,18 @@
|
|
|
5643
5703
|
TreeComponent.prototype.getNodeId = function (node) {
|
|
5644
5704
|
return "_" + (node.parentId ? node.parentId : '') + "_" + node.id + "_" + node.level;
|
|
5645
5705
|
};
|
|
5706
|
+
TreeComponent.prototype.getNodeByIdAndParentId = function (nodeId, parentId) {
|
|
5707
|
+
return this.treeControl.dataNodes.find(function (x) {
|
|
5708
|
+
return x.id === nodeId && x.parentId === parentId;
|
|
5709
|
+
});
|
|
5710
|
+
};
|
|
5711
|
+
TreeComponent.prototype.expandNode = function (node) {
|
|
5712
|
+
this.treeControl.expand(node);
|
|
5713
|
+
};
|
|
5646
5714
|
return TreeComponent;
|
|
5647
5715
|
}());
|
|
5648
5716
|
TreeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: TreeComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i5__namespace$2.DomSanitizer }, { token: i4__namespace.MatIconRegistry }, { token: QMSIconRegistryService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5649
|
-
TreeComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$2.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i6__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9__namespace$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__namespace$2.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i4__namespace$2.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i4__namespace$2.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i4__namespace$2.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5717
|
+
TreeComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$2.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { type: i6__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9__namespace$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__namespace$2.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { type: i4__namespace$2.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { type: i4__namespace$2.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { type: i4__namespace$2.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5650
5718
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: TreeComponent, decorators: [{
|
|
5651
5719
|
type: i0.Component,
|
|
5652
5720
|
args: [{
|
|
@@ -5667,6 +5735,8 @@
|
|
|
5667
5735
|
type: i0.Input
|
|
5668
5736
|
}], expandOnTitleClick: [{
|
|
5669
5737
|
type: i0.Input
|
|
5738
|
+
}], expandToChildNode: [{
|
|
5739
|
+
type: i0.Input
|
|
5670
5740
|
}], selectNodeEvent: [{
|
|
5671
5741
|
type: i0.Output
|
|
5672
5742
|
}], selectFolderEvent: [{
|
|
@@ -5757,7 +5827,7 @@
|
|
|
5757
5827
|
var RelatedContentComponent = /** @class */ (function () {
|
|
5758
5828
|
function RelatedContentComponent() {
|
|
5759
5829
|
this.contents = [];
|
|
5760
|
-
this.dataType = DataType;
|
|
5830
|
+
this.dataType = DataType$1;
|
|
5761
5831
|
this.imageProcess = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwLjVWNi41SDJWMTYuNUgxMlYxOC41SDE4VjEyLjVIMTJWMTQuNUg0VjYuNUg2VjQuNUgxMlY2LjVIMThWMC41SDEyVjIuNUg2VjAuNUgwWk00IDIuNVY0LjVIMlYyLjVINFpNMTYgMi41VjQuNUgxNFYyLjVIMTZaTTE2IDE2LjVWMTQuNUgxNFYxNi41SDE2WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC42Ii8+DQo8L3N2Zz4NCg==';
|
|
5762
5832
|
}
|
|
5763
5833
|
RelatedContentComponent.prototype.ngOnInit = function () {
|
|
@@ -5795,7 +5865,7 @@
|
|
|
5795
5865
|
this.iconRegistry = iconRegistry;
|
|
5796
5866
|
this.appIconService = appIconService;
|
|
5797
5867
|
this.relatedData = [];
|
|
5798
|
-
this.dataType = DataType;
|
|
5868
|
+
this.dataType = DataType$1;
|
|
5799
5869
|
// imageProcess = '../qms-angular/src/assets/images/union.svg';
|
|
5800
5870
|
this.imageProcess = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAwLjVWNi41SDJWMTYuNUgxMlYxOC41SDE4VjEyLjVIMTJWMTQuNUg0VjYuNUg2VjQuNUgxMlY2LjVIMThWMC41SDEyVjIuNUg2VjAuNUgwWk00IDIuNVY0LjVIMlYyLjVINFpNMTYgMi41VjQuNUgxNFYyLjVIMTZaTTE2IDE2LjVWMTQuNUgxNFYxNi41SDE2WiIgZmlsbD0iYmxhY2siIGZpbGwtb3BhY2l0eT0iMC42Ii8+DQo8L3N2Zz4NCg==';
|
|
5801
5871
|
this.updateData = new i0.EventEmitter();
|
|
@@ -5850,43 +5920,43 @@
|
|
|
5850
5920
|
};
|
|
5851
5921
|
RelatedListComponent.prototype.getNodeIcon = function (item) {
|
|
5852
5922
|
switch (item.itemType) {
|
|
5853
|
-
case DataType.folder: {
|
|
5923
|
+
case DataType$1.folder: {
|
|
5854
5924
|
switch (item.levelType) {
|
|
5855
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5925
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5856
5926
|
return 'department_folder_outlined';
|
|
5857
|
-
case DocumentNodeType.RegionalFolder:
|
|
5927
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5858
5928
|
return 'regional_folder_outlined';
|
|
5859
|
-
case DocumentNodeType.TopFolder:
|
|
5929
|
+
case DocumentNodeType$1.TopFolder:
|
|
5860
5930
|
return 'enterprise_folder_outlined';
|
|
5861
|
-
case DocumentNodeType.Folder:
|
|
5931
|
+
case DocumentNodeType$1.Folder:
|
|
5862
5932
|
return 'local_folder_outlined';
|
|
5863
5933
|
default:
|
|
5864
5934
|
return 'folder_outlined';
|
|
5865
5935
|
}
|
|
5866
5936
|
}
|
|
5867
|
-
case DataType.document: {
|
|
5937
|
+
case DataType$1.document: {
|
|
5868
5938
|
switch (item.levelType) {
|
|
5869
|
-
case DocumentNodeType.DepartmentFolder:
|
|
5939
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
5870
5940
|
return 'document_department';
|
|
5871
|
-
case DocumentNodeType.RegionalFolder:
|
|
5941
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
5872
5942
|
return 'document_regional';
|
|
5873
|
-
case DocumentNodeType.TopFolder:
|
|
5943
|
+
case DocumentNodeType$1.TopFolder:
|
|
5874
5944
|
return 'document_enterprise';
|
|
5875
|
-
case DocumentNodeType.Folder:
|
|
5945
|
+
case DocumentNodeType$1.Folder:
|
|
5876
5946
|
return 'document_local';
|
|
5877
5947
|
default:
|
|
5878
5948
|
return 'document';
|
|
5879
5949
|
}
|
|
5880
5950
|
}
|
|
5881
|
-
case DataType.area:
|
|
5951
|
+
case DataType$1.area:
|
|
5882
5952
|
return 'process_area_outlined';
|
|
5883
|
-
case DataType.process:
|
|
5953
|
+
case DataType$1.process:
|
|
5884
5954
|
return 'process';
|
|
5885
|
-
case DataType.deviation:
|
|
5955
|
+
case DataType$1.deviation:
|
|
5886
5956
|
return 'deviation';
|
|
5887
|
-
case DataType.checklist:
|
|
5957
|
+
case DataType$1.checklist:
|
|
5888
5958
|
return 'checklist';
|
|
5889
|
-
case DataType.risk:
|
|
5959
|
+
case DataType$1.risk:
|
|
5890
5960
|
return 'risk';
|
|
5891
5961
|
default:
|
|
5892
5962
|
return 'folder_outlined';
|
|
@@ -5917,13 +5987,13 @@
|
|
|
5917
5987
|
type: i0.Output
|
|
5918
5988
|
}] } });
|
|
5919
5989
|
|
|
5920
|
-
var ModuleType;
|
|
5990
|
+
var ModuleType$1;
|
|
5921
5991
|
(function (ModuleType) {
|
|
5922
5992
|
ModuleType[ModuleType["documentProcess"] = 1] = "documentProcess";
|
|
5923
5993
|
ModuleType[ModuleType["deviation"] = 2] = "deviation";
|
|
5924
5994
|
ModuleType[ModuleType["checklist"] = 3] = "checklist";
|
|
5925
5995
|
ModuleType[ModuleType["risk"] = 4] = "risk";
|
|
5926
|
-
})(ModuleType || (ModuleType = {}));
|
|
5996
|
+
})(ModuleType$1 || (ModuleType$1 = {}));
|
|
5927
5997
|
|
|
5928
5998
|
var RelatedItem = /** @class */ (function () {
|
|
5929
5999
|
function RelatedItem() {
|
|
@@ -6021,8 +6091,8 @@
|
|
|
6021
6091
|
this.documentCheckedList = [];
|
|
6022
6092
|
this.singleProcessList = [];
|
|
6023
6093
|
this.singleDocumentList = [];
|
|
6024
|
-
this.module = ModuleType;
|
|
6025
|
-
this.dataType = DataType;
|
|
6094
|
+
this.module = ModuleType$1;
|
|
6095
|
+
this.dataType = DataType$1;
|
|
6026
6096
|
this.itemType = 0;
|
|
6027
6097
|
this.selectedRiskData = [];
|
|
6028
6098
|
this.disabledList = [];
|
|
@@ -6052,7 +6122,6 @@
|
|
|
6052
6122
|
this.disabledList2 = data.disabledList2 || [];
|
|
6053
6123
|
this.splitView = data.splitView;
|
|
6054
6124
|
this.maxSelectItemCount = data.maxSelectItemCount;
|
|
6055
|
-
this.canOnlySelectItem = data.canOnlySelectItem;
|
|
6056
6125
|
appIconService.registerProcessIcon(iconRegistry, sanitizer);
|
|
6057
6126
|
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
|
6058
6127
|
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
|
@@ -6110,16 +6179,16 @@
|
|
|
6110
6179
|
RelatedPopupComponent.prototype.getDataTypeId = function (moduleId) {
|
|
6111
6180
|
var itemType;
|
|
6112
6181
|
switch (moduleId) {
|
|
6113
|
-
case ModuleType.documentProcess:
|
|
6182
|
+
case ModuleType$1.documentProcess:
|
|
6114
6183
|
itemType = this.dataType.process;
|
|
6115
6184
|
break;
|
|
6116
|
-
case ModuleType.deviation:
|
|
6185
|
+
case ModuleType$1.deviation:
|
|
6117
6186
|
itemType = this.dataType.deviation;
|
|
6118
6187
|
break;
|
|
6119
|
-
case ModuleType.checklist:
|
|
6188
|
+
case ModuleType$1.checklist:
|
|
6120
6189
|
itemType = this.dataType.checklist;
|
|
6121
6190
|
break;
|
|
6122
|
-
case ModuleType.risk:
|
|
6191
|
+
case ModuleType$1.risk:
|
|
6123
6192
|
itemType = this.dataType.risk;
|
|
6124
6193
|
break;
|
|
6125
6194
|
default:
|
|
@@ -6225,7 +6294,8 @@
|
|
|
6225
6294
|
return related ? related.itemName : undefined;
|
|
6226
6295
|
};
|
|
6227
6296
|
RelatedPopupComponent.prototype.selectRelated = function (item) {
|
|
6228
|
-
|
|
6297
|
+
var _a, _b;
|
|
6298
|
+
if (((_a = this.treeConfig1) === null || _a === void 0 ? void 0 : _a.selectOne) || ((_b = this.treeConfig2) === null || _b === void 0 ? void 0 : _b.selectOne)) {
|
|
6229
6299
|
this.disabledList = [];
|
|
6230
6300
|
this.disabledList2 = [];
|
|
6231
6301
|
}
|
|
@@ -6245,17 +6315,25 @@
|
|
|
6245
6315
|
position = this.treeData2.findIndex(function (x) {
|
|
6246
6316
|
return x.childId === item.id;
|
|
6247
6317
|
});
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6318
|
+
if (position >= 0) {
|
|
6319
|
+
node = this.treeData2[position];
|
|
6320
|
+
typeId = this.dataType.document;
|
|
6321
|
+
var treeNode = {
|
|
6322
|
+
id: node.childId,
|
|
6323
|
+
name: node.childName,
|
|
6324
|
+
children: [],
|
|
6325
|
+
parentId: node.rootId
|
|
6326
|
+
};
|
|
6327
|
+
this.dataTrees.toArray()[1].todoItemSelection([treeNode]);
|
|
6328
|
+
}
|
|
6251
6329
|
}
|
|
6252
6330
|
else if (item.itemType === this.dataType.folder) {
|
|
6253
6331
|
position = this.treeData2.findIndex(function (x) {
|
|
6254
6332
|
return x.rootId === item.id;
|
|
6255
6333
|
});
|
|
6256
|
-
node = this.treeData2[position];
|
|
6257
6334
|
typeId = item.itemType;
|
|
6258
6335
|
if (position >= 0) {
|
|
6336
|
+
node = this.treeData2[position];
|
|
6259
6337
|
if (this.treeConfig2.showCheckBox) {
|
|
6260
6338
|
this.checkedNodeList.push({
|
|
6261
6339
|
moduleId: this.moduleId,
|
|
@@ -6276,13 +6354,19 @@
|
|
|
6276
6354
|
levelType: item.levelType
|
|
6277
6355
|
});
|
|
6278
6356
|
}
|
|
6279
|
-
|
|
6357
|
+
var treeNode = {
|
|
6358
|
+
id: node.rootId,
|
|
6359
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
|
6360
|
+
children: [],
|
|
6361
|
+
parentId: node.parentId
|
|
6362
|
+
};
|
|
6363
|
+
this.dataTrees.toArray()[1].todoFolderSelection([treeNode]);
|
|
6280
6364
|
}
|
|
6281
6365
|
return;
|
|
6282
6366
|
}
|
|
6283
6367
|
else if ((item.itemType === this.dataType.deviationType
|
|
6284
6368
|
|| item.itemType === this.dataType.checklistCategory
|
|
6285
|
-
|| item.itemType === this.dataType.riskFolder)
|
|
6369
|
+
|| item.itemType === this.dataType.riskFolder)) {
|
|
6286
6370
|
position = this.treeData1.findIndex(function (x) {
|
|
6287
6371
|
return x.rootId === item.id;
|
|
6288
6372
|
});
|
|
@@ -6292,9 +6376,9 @@
|
|
|
6292
6376
|
position = this.treeData1.findIndex(function (x) {
|
|
6293
6377
|
return x.rootId === item.id;
|
|
6294
6378
|
});
|
|
6295
|
-
node = this.treeData1[position];
|
|
6296
6379
|
typeId = item.itemType;
|
|
6297
6380
|
if (position >= 0) {
|
|
6381
|
+
node = this.treeData1[position];
|
|
6298
6382
|
if (this.treeConfig1.showCheckBox) {
|
|
6299
6383
|
this.checkedNodeList.push({
|
|
6300
6384
|
moduleId: this.moduleId,
|
|
@@ -6316,13 +6400,35 @@
|
|
|
6316
6400
|
});
|
|
6317
6401
|
}
|
|
6318
6402
|
}
|
|
6319
|
-
|
|
6403
|
+
var treeNode = {
|
|
6404
|
+
id: node.rootId,
|
|
6405
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
|
6406
|
+
children: [],
|
|
6407
|
+
parentId: node.parentId
|
|
6408
|
+
};
|
|
6409
|
+
this.dataTrees.toArray()[0].todoFolderSelection([treeNode]);
|
|
6320
6410
|
return;
|
|
6321
6411
|
}
|
|
6322
6412
|
else if (item.itemType === this.dataType.deviation ||
|
|
6323
6413
|
item.itemType === this.dataType.checklist) {
|
|
6324
6414
|
position = this.treeData1.findIndex(function (x) {
|
|
6325
|
-
return x.childId === item.id
|
|
6415
|
+
return x.childId.toLowerCase() === item.id.toLowerCase();
|
|
6416
|
+
});
|
|
6417
|
+
if (position >= 0) {
|
|
6418
|
+
node = this.treeData1[position];
|
|
6419
|
+
typeId = this.itemType;
|
|
6420
|
+
var treeNode = {
|
|
6421
|
+
id: node.childId,
|
|
6422
|
+
name: node.childName,
|
|
6423
|
+
children: [],
|
|
6424
|
+
parentId: node.rootId
|
|
6425
|
+
};
|
|
6426
|
+
this.dataTrees.toArray()[0].todoItemSelection([treeNode]);
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
else {
|
|
6430
|
+
position = this.treeData1.findIndex(function (x) {
|
|
6431
|
+
return x.childId.toLowerCase() === item.id.toLowerCase();
|
|
6326
6432
|
});
|
|
6327
6433
|
node = this.treeData1[position];
|
|
6328
6434
|
typeId = this.itemType;
|
|
@@ -6334,17 +6440,6 @@
|
|
|
6334
6440
|
};
|
|
6335
6441
|
this.dataTrees.toArray()[0].todoItemSelection([treeNode]);
|
|
6336
6442
|
}
|
|
6337
|
-
else {
|
|
6338
|
-
// process, risk,...
|
|
6339
|
-
position = this.treeData1.findIndex(function (x) {
|
|
6340
|
-
return x.childId.toLowerCase() === item.id.toLowerCase();
|
|
6341
|
-
});
|
|
6342
|
-
node = this.treeData1[position];
|
|
6343
|
-
typeId = this.itemType;
|
|
6344
|
-
if (node) {
|
|
6345
|
-
this.dataTrees.toArray()[0].todoItemSelectionById([node.childId]);
|
|
6346
|
-
}
|
|
6347
|
-
}
|
|
6348
6443
|
}
|
|
6349
6444
|
};
|
|
6350
6445
|
RelatedPopupComponent.prototype.selectNodeRecursive = function (item, itemType) {
|
|
@@ -6573,7 +6668,7 @@
|
|
|
6573
6668
|
return (elmHeight + elmMargin);
|
|
6574
6669
|
};
|
|
6575
6670
|
RelatedPopupComponent.prototype.getItemChipName = function (item) {
|
|
6576
|
-
if (item.itemType === DataType.checklist || item.itemType === DataType.deviation) {
|
|
6671
|
+
if (item.itemType === DataType$1.checklist || item.itemType === DataType$1.deviation) {
|
|
6577
6672
|
return (item.parentName && item.itemName !== item.parentName) ? item.parentName + "/" + item.itemName : item.itemName;
|
|
6578
6673
|
}
|
|
6579
6674
|
return item.itemName;
|
|
@@ -6583,43 +6678,43 @@
|
|
|
6583
6678
|
};
|
|
6584
6679
|
RelatedPopupComponent.prototype.getNodeIcon = function (item) {
|
|
6585
6680
|
switch (item.itemType) {
|
|
6586
|
-
case DataType.folder: {
|
|
6681
|
+
case DataType$1.folder: {
|
|
6587
6682
|
switch (item.levelType) {
|
|
6588
|
-
case DocumentNodeType.DepartmentFolder:
|
|
6683
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
6589
6684
|
return 'department_folder_outlined';
|
|
6590
|
-
case DocumentNodeType.RegionalFolder:
|
|
6685
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
6591
6686
|
return 'regional_folder_outlined';
|
|
6592
|
-
case DocumentNodeType.TopFolder:
|
|
6687
|
+
case DocumentNodeType$1.TopFolder:
|
|
6593
6688
|
return 'enterprise_folder_outlined';
|
|
6594
|
-
case DocumentNodeType.Folder:
|
|
6689
|
+
case DocumentNodeType$1.Folder:
|
|
6595
6690
|
return 'local_folder_outlined';
|
|
6596
6691
|
default:
|
|
6597
6692
|
return 'folder_outlined';
|
|
6598
6693
|
}
|
|
6599
6694
|
}
|
|
6600
|
-
case DataType.document: {
|
|
6695
|
+
case DataType$1.document: {
|
|
6601
6696
|
switch (item.levelType) {
|
|
6602
|
-
case DocumentNodeType.DepartmentFolder:
|
|
6697
|
+
case DocumentNodeType$1.DepartmentFolder:
|
|
6603
6698
|
return 'document_department';
|
|
6604
|
-
case DocumentNodeType.RegionalFolder:
|
|
6699
|
+
case DocumentNodeType$1.RegionalFolder:
|
|
6605
6700
|
return 'document_regional';
|
|
6606
|
-
case DocumentNodeType.TopFolder:
|
|
6701
|
+
case DocumentNodeType$1.TopFolder:
|
|
6607
6702
|
return 'document_enterprise';
|
|
6608
|
-
case DocumentNodeType.Folder:
|
|
6703
|
+
case DocumentNodeType$1.Folder:
|
|
6609
6704
|
return 'document_local';
|
|
6610
6705
|
default:
|
|
6611
6706
|
return 'document';
|
|
6612
6707
|
}
|
|
6613
6708
|
}
|
|
6614
|
-
case DataType.area:
|
|
6709
|
+
case DataType$1.area:
|
|
6615
6710
|
return 'process_area_outlined';
|
|
6616
|
-
case DataType.process:
|
|
6711
|
+
case DataType$1.process:
|
|
6617
6712
|
return 'process';
|
|
6618
|
-
case DataType.deviation:
|
|
6713
|
+
case DataType$1.deviation:
|
|
6619
6714
|
return 'deviation';
|
|
6620
|
-
case DataType.checklist:
|
|
6715
|
+
case DataType$1.checklist:
|
|
6621
6716
|
return 'checklist';
|
|
6622
|
-
case DataType.risk:
|
|
6717
|
+
case DataType$1.risk:
|
|
6623
6718
|
return 'risk';
|
|
6624
6719
|
default:
|
|
6625
6720
|
return 'folder_outlined';
|
|
@@ -6634,25 +6729,25 @@
|
|
|
6634
6729
|
};
|
|
6635
6730
|
RelatedPopupComponent.prototype.getTitle = function (type) {
|
|
6636
6731
|
switch (type) {
|
|
6637
|
-
case DataType.process:
|
|
6732
|
+
case DataType$1.process:
|
|
6638
6733
|
return this.LANG.PROCESSES;
|
|
6639
|
-
case DataType.area:
|
|
6734
|
+
case DataType$1.area:
|
|
6640
6735
|
return this.LANG.PROCESS_AREA;
|
|
6641
|
-
case DataType.document:
|
|
6736
|
+
case DataType$1.document:
|
|
6642
6737
|
return this.LANG.DOCUMENTS;
|
|
6643
|
-
case DataType.folder:
|
|
6738
|
+
case DataType$1.folder:
|
|
6644
6739
|
return this.LANG.FOLDER;
|
|
6645
|
-
case DataType.deviation:
|
|
6740
|
+
case DataType$1.deviation:
|
|
6646
6741
|
return this.LANG.DEVIATION;
|
|
6647
|
-
case DataType.deviationType:
|
|
6742
|
+
case DataType$1.deviationType:
|
|
6648
6743
|
return this.LANG.DEVIATION_TYPE;
|
|
6649
|
-
case DataType.checklist:
|
|
6744
|
+
case DataType$1.checklist:
|
|
6650
6745
|
return this.LANG.CHECKLIST;
|
|
6651
|
-
case DataType.checklistCategory:
|
|
6746
|
+
case DataType$1.checklistCategory:
|
|
6652
6747
|
return this.LANG.CHECKLIST_CATEGORY;
|
|
6653
|
-
case DataType.risk:
|
|
6748
|
+
case DataType$1.risk:
|
|
6654
6749
|
return this.LANG.ASSESSMENT;
|
|
6655
|
-
case DataType.riskFolder:
|
|
6750
|
+
case DataType$1.riskFolder:
|
|
6656
6751
|
return this.LANG.FOLDER;
|
|
6657
6752
|
}
|
|
6658
6753
|
};
|
|
@@ -6717,12 +6812,8 @@
|
|
|
6717
6812
|
}
|
|
6718
6813
|
};
|
|
6719
6814
|
RelatedPopupComponent.prototype.canShowSearchOption = function (moduleId) {
|
|
6720
|
-
if (this.
|
|
6721
|
-
(moduleId === DataType.
|
|
6722
|
-
|| moduleId === DataType.riskFolder
|
|
6723
|
-
|| moduleId === DataType.deviationType
|
|
6724
|
-
|| (moduleId === DataType.area && this.treeConfig1 && !this.treeConfig1.singleSelectedNode)
|
|
6725
|
-
|| (moduleId === DataType.folder && this.treeConfig2 && !this.treeConfig2.singleSelectedNode))) {
|
|
6815
|
+
if ((moduleId === DataType$1.area && this.treeConfig1 && !this.treeConfig1.singleSelectedNode)
|
|
6816
|
+
|| (moduleId === DataType$1.folder && this.treeConfig2 && !this.treeConfig2.singleSelectedNode)) {
|
|
6726
6817
|
return false;
|
|
6727
6818
|
}
|
|
6728
6819
|
return this.getModuleFilteredOptions(moduleId).length > 0;
|
|
@@ -6732,7 +6823,7 @@
|
|
|
6732
6823
|
var position = -1;
|
|
6733
6824
|
var parentName = '';
|
|
6734
6825
|
var itemNumberId = '';
|
|
6735
|
-
if (node.itemType == DataType.folder || node.itemType == DataType.document) {
|
|
6826
|
+
if (node.itemType == DataType$1.folder || node.itemType == DataType$1.document) {
|
|
6736
6827
|
position = !node.expandable ? this.treeData2.findIndex(function (p) { return p.childId === node.id && p.rootId === node.parentId; }) :
|
|
6737
6828
|
this.treeData2.findIndex(function (p) { return p.rootId === node.id; });
|
|
6738
6829
|
parentName = this.treeData2[position].parentId ? this.treeData2[position].subName : this.treeData2[position].rootName;
|
|
@@ -6763,7 +6854,7 @@
|
|
|
6763
6854
|
return RelatedPopupComponent;
|
|
6764
6855
|
}());
|
|
6765
6856
|
RelatedPopupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RelatedPopupComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: TranslateLibraryService }, { token: i1__namespace$2.MatDialogRef }, { token: QMSRelatedGlobalService }, { token: i4__namespace.MatIconRegistry }, { token: i5__namespace$2.DomSanitizer }, { token: QMSIconRegistryService }, { token: i0__namespace.ElementRef }, { token: i1$2.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6766
|
-
RelatedPopupComponent.ɵcmp = i0__namespace.ɵɵ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: i7$1.MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0__namespace, 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__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7__namespace$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__namespace$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i12__namespace$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__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i9__namespace$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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12__namespace.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__namespace.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__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12__namespace$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5__namespace$1.UpperCasePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6857
|
+
RelatedPopupComponent.ɵcmp = i0__namespace.ɵɵ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: i7$1.MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0__namespace, 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__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7__namespace$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__namespace$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i12__namespace$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__namespace.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i9__namespace$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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12__namespace.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__namespace.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__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i12__namespace$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: QMSGroupOptionDirective, selector: "[qms-group-options]" }, { type: AutocompleteOffDirective, selector: "[qms-group-options]" }, { type: i5__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5__namespace$1.UpperCasePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6767
6858
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RelatedPopupComponent, decorators: [{
|
|
6768
6859
|
type: i0.Component,
|
|
6769
6860
|
args: [{
|
|
@@ -6839,7 +6930,7 @@
|
|
|
6839
6930
|
showCheckBox: true,
|
|
6840
6931
|
allowMultipleCheck: true,
|
|
6841
6932
|
onlyCheckBoxForChild: false,
|
|
6842
|
-
moduleId: DataType.risk,
|
|
6933
|
+
moduleId: DataType$1.risk,
|
|
6843
6934
|
openIcon: 'keyboard_arrow_up',
|
|
6844
6935
|
openIconColor: '#1954A9',
|
|
6845
6936
|
closeIcon: 'keyboard_arrow_down',
|
|
@@ -6890,7 +6981,7 @@
|
|
|
6890
6981
|
return RiskAnalysisComponent;
|
|
6891
6982
|
}());
|
|
6892
6983
|
RiskAnalysisComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RiskAnalysisComponent, deps: [{ token: TranslateLibraryService }, { token: i1__namespace$2.MatDialog }, { token: i1__namespace$2.MatDialogRef }, { token: i1$2.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6893
|
-
RiskAnalysisComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: RiskAnalysisComponent, selector: "qms-risk-analysis", ngImport: i0__namespace, 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__namespace.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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "uppercase": i5__namespace$1.UpperCasePipe } });
|
|
6984
|
+
RiskAnalysisComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: RiskAnalysisComponent, selector: "qms-risk-analysis", ngImport: i0__namespace, 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__namespace.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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "uppercase": i5__namespace$1.UpperCasePipe } });
|
|
6894
6985
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: RiskAnalysisComponent, decorators: [{
|
|
6895
6986
|
type: i0.Component,
|
|
6896
6987
|
args: [{
|
|
@@ -23913,7 +24004,7 @@
|
|
|
23913
24004
|
return QmsAppBarComponent;
|
|
23914
24005
|
}());
|
|
23915
24006
|
QmsAppBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QmsAppBarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
23916
|
-
QmsAppBarComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i9__namespace$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__namespace.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__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }] });
|
|
24007
|
+
QmsAppBarComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i9__namespace$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__namespace.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__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace$3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }] });
|
|
23917
24008
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QmsAppBarComponent, decorators: [{
|
|
23918
24009
|
type: i0.Component,
|
|
23919
24010
|
args: [{
|
|
@@ -24651,14 +24742,10 @@
|
|
|
24651
24742
|
|
|
24652
24743
|
var QMSSelectGlobalService = /** @class */ (function () {
|
|
24653
24744
|
function QMSSelectGlobalService() {
|
|
24654
|
-
this.
|
|
24655
|
-
this.splitViewValue = new rxjs.BehaviorSubject([]);
|
|
24745
|
+
this.searchSelect = new rxjs.BehaviorSubject([]);
|
|
24656
24746
|
}
|
|
24657
24747
|
QMSSelectGlobalService.prototype.setSearchResult = function (result) {
|
|
24658
|
-
this.
|
|
24659
|
-
};
|
|
24660
|
-
QMSSelectGlobalService.prototype.setSplitviewValue = function (result) {
|
|
24661
|
-
this.splitViewValue.next(result);
|
|
24748
|
+
this.searchSelect.next(result);
|
|
24662
24749
|
};
|
|
24663
24750
|
return QMSSelectGlobalService;
|
|
24664
24751
|
}());
|
|
@@ -24680,13 +24767,13 @@
|
|
|
24680
24767
|
}());
|
|
24681
24768
|
|
|
24682
24769
|
var SelectIncludeChildrenPopUpComponent = /** @class */ (function () {
|
|
24683
|
-
function SelectIncludeChildrenPopUpComponent(cdRef, translate, dialogRef, globalService, iconRegistry,
|
|
24770
|
+
function SelectIncludeChildrenPopUpComponent(cdRef, translate, dialogRef, globalService, iconRegistry, domSanitizer, appIconService, elem, data) {
|
|
24684
24771
|
this.cdRef = cdRef;
|
|
24685
24772
|
this.translate = translate;
|
|
24686
24773
|
this.dialogRef = dialogRef;
|
|
24687
24774
|
this.globalService = globalService;
|
|
24688
24775
|
this.iconRegistry = iconRegistry;
|
|
24689
|
-
this.
|
|
24776
|
+
this.domSanitizer = domSanitizer;
|
|
24690
24777
|
this.appIconService = appIconService;
|
|
24691
24778
|
this.elem = elem;
|
|
24692
24779
|
this.data = data;
|
|
@@ -24694,15 +24781,13 @@
|
|
|
24694
24781
|
this.headerName = '';
|
|
24695
24782
|
this.treeData = [];
|
|
24696
24783
|
this.checkedNodeList = [];
|
|
24697
|
-
this.
|
|
24784
|
+
this.selectedOptions = [];
|
|
24698
24785
|
this.selectedData = [];
|
|
24699
24786
|
this.commonCheckedList = [];
|
|
24700
|
-
this.documentCheckedList = [];
|
|
24701
|
-
this.singleProcessList = [];
|
|
24702
24787
|
this.itemType = 0;
|
|
24703
24788
|
this.selectedRiskData = [];
|
|
24704
24789
|
this.disabledList = [];
|
|
24705
|
-
this.
|
|
24790
|
+
this.orginalDisableList = [];
|
|
24706
24791
|
this.isDocumentExpanded = true;
|
|
24707
24792
|
this.isCommonExpanded = true;
|
|
24708
24793
|
this.singleSelectOption = false;
|
|
@@ -24713,23 +24798,34 @@
|
|
|
24713
24798
|
this.selectedFolder = null;
|
|
24714
24799
|
this.listChildrenSelectOne = [];
|
|
24715
24800
|
this.includeChildren = false;
|
|
24801
|
+
this.itemIconType = ItemIconType;
|
|
24716
24802
|
this.onSearch = new i0.EventEmitter();
|
|
24717
24803
|
this.onExpandFolder = new i0.EventEmitter();
|
|
24718
24804
|
this.headerName = data.headerName;
|
|
24719
24805
|
this.treeData = data.treeData;
|
|
24720
24806
|
this.treeConfig = data.treeConfig;
|
|
24721
24807
|
this.selectedRiskData = (data === null || data === void 0 ? void 0 : data.selectedNode) || [];
|
|
24722
|
-
this.disabledList = data.disabledList || [];
|
|
24808
|
+
this.disabledList = $.extend(true, [], data.disabledList || []);
|
|
24809
|
+
this.orginalDisableList = $.extend(true, [], data.disabledList || []);
|
|
24723
24810
|
this.singleSelectOption = data.treeConfig.singleSelectedNode;
|
|
24724
24811
|
this.maxSelectItemCount = data.maxSelectItemCount;
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
|
|
24728
|
-
appIconService.
|
|
24729
|
-
appIconService.
|
|
24730
|
-
appIconService.
|
|
24731
|
-
appIconService.
|
|
24812
|
+
this.checkedNodeList = (data === null || data === void 0 ? void 0 : data.selectedList) || [];
|
|
24813
|
+
this.includeChildren = data === null || data === void 0 ? void 0 : data.includeChildren;
|
|
24814
|
+
this.editItem = data.editItem;
|
|
24815
|
+
appIconService.registerProcessIcon(iconRegistry, domSanitizer);
|
|
24816
|
+
appIconService.registerProcessAreaIcon(iconRegistry, domSanitizer);
|
|
24817
|
+
appIconService.registerDocumentIcon(iconRegistry, domSanitizer);
|
|
24818
|
+
appIconService.registerFolderIcon(iconRegistry, domSanitizer);
|
|
24819
|
+
appIconService.registerDeviationIcon(iconRegistry, domSanitizer);
|
|
24820
|
+
appIconService.registerChecklistIcon(iconRegistry, domSanitizer);
|
|
24821
|
+
appIconService.registerRiskIcon(iconRegistry, domSanitizer);
|
|
24732
24822
|
}
|
|
24823
|
+
SelectIncludeChildrenPopUpComponent.prototype.ngAfterViewInit = function () {
|
|
24824
|
+
if (this.editItem) {
|
|
24825
|
+
this.focusEditItem(this.editItem);
|
|
24826
|
+
}
|
|
24827
|
+
this.initTree(this.checkedNodeList);
|
|
24828
|
+
};
|
|
24733
24829
|
SelectIncludeChildrenPopUpComponent.prototype.ngOnDestroy = function () {
|
|
24734
24830
|
this.ngUnsubscribe.next();
|
|
24735
24831
|
this.ngUnsubscribe.complete();
|
|
@@ -24748,7 +24844,7 @@
|
|
|
24748
24844
|
_this.LANG = _this.translate.getObjectLang(res);
|
|
24749
24845
|
}
|
|
24750
24846
|
});
|
|
24751
|
-
this.globalService.
|
|
24847
|
+
this.globalService.searchSelect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (res) {
|
|
24752
24848
|
if (res && res.length) {
|
|
24753
24849
|
_this.filteredOptions = res;
|
|
24754
24850
|
}
|
|
@@ -24769,37 +24865,99 @@
|
|
|
24769
24865
|
this.autoComplete.closePanel();
|
|
24770
24866
|
}
|
|
24771
24867
|
};
|
|
24772
|
-
SelectIncludeChildrenPopUpComponent.prototype.
|
|
24868
|
+
SelectIncludeChildrenPopUpComponent.prototype.initTree = function (selectedOptions) {
|
|
24773
24869
|
var _this = this;
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24777
|
-
|
|
24778
|
-
|
|
24779
|
-
var newSelectDocumentList = [];
|
|
24780
|
-
this.commonCheckedList.forEach(function (element) {
|
|
24781
|
-
_this.checkedNodeList.forEach(function (x) {
|
|
24782
|
-
if (element.id.toLowerCase() === x.id.toLowerCase() && element.parentId.toLowerCase() === x.parentId.toLowerCase()) {
|
|
24783
|
-
tempArr.push(element);
|
|
24784
|
-
}
|
|
24785
|
-
});
|
|
24786
|
-
});
|
|
24787
|
-
this.singleProcessList.forEach(function (element) {
|
|
24788
|
-
_this.checkedNodeList.forEach(function (x) {
|
|
24789
|
-
if (element.id.toLowerCase() === x.id.toLowerCase() && element.parentId.toLowerCase() === x.parentId.toLowerCase()) {
|
|
24790
|
-
newSelectProcessList.push(element);
|
|
24791
|
-
}
|
|
24792
|
-
});
|
|
24793
|
-
});
|
|
24794
|
-
this.singleProcessList = newSelectProcessList;
|
|
24795
|
-
this.selectedData = __spreadArray([], __read(tempArr));
|
|
24796
|
-
this.documentCheckedList.forEach(function (element) {
|
|
24797
|
-
_this.checkedNodeList.forEach(function (x) {
|
|
24798
|
-
if (element.id.toLowerCase() === x.id.toLowerCase() && element.parentId.toLowerCase() === x.parentId.toLowerCase()) {
|
|
24799
|
-
tempArrDocument.push(element);
|
|
24870
|
+
if (selectedOptions.length > 0) {
|
|
24871
|
+
selectedOptions.forEach(function (element) {
|
|
24872
|
+
_this.selectedOptions.push(element);
|
|
24873
|
+
if (element.type === publicApi.SelectOptionTypes.IncludeChildren) {
|
|
24874
|
+
_this.selectedOptions = _this.selectedOptions.concat(element.children);
|
|
24800
24875
|
}
|
|
24876
|
+
_this.selectedData = _this.mapSelectOptionToTreeNode(_this.selectedOptions);
|
|
24801
24877
|
});
|
|
24802
|
-
}
|
|
24878
|
+
}
|
|
24879
|
+
};
|
|
24880
|
+
SelectIncludeChildrenPopUpComponent.prototype.focusEditItem = function (selectedOption) {
|
|
24881
|
+
var node = this.dataTrees.toArray()[0].getNodeByIdAndParentId(selectedOption.id, selectedOption.parentId);
|
|
24882
|
+
if (node) {
|
|
24883
|
+
this.dataTrees.toArray()[0].expandNode(node);
|
|
24884
|
+
var element = document.getElementById("_" + (node.parentId ? node.parentId : '') + "_" + node.id + "_" + node.level);
|
|
24885
|
+
if (element) {
|
|
24886
|
+
element.scrollIntoView(false);
|
|
24887
|
+
}
|
|
24888
|
+
}
|
|
24889
|
+
};
|
|
24890
|
+
SelectIncludeChildrenPopUpComponent.prototype.removeCheckedNodeList = function (item) {
|
|
24891
|
+
var index = this.checkedNodeList.findIndex(function (x) { return (x.id.toLowerCase() === item.id.toLowerCase() && x.parentId.toLowerCase() === item.parentId.toLowerCase()); });
|
|
24892
|
+
if (index >= 0) {
|
|
24893
|
+
var position = this.selectedOptions.findIndex(function (x) { return x.id === item.id && x.parentId === item.parentId; });
|
|
24894
|
+
if (position >= 0) {
|
|
24895
|
+
this.selectedOptions.splice(position, 1);
|
|
24896
|
+
}
|
|
24897
|
+
if (this.checkedNodeList[index].type === publicApi.SelectOptionTypes.IncludeChildren) {
|
|
24898
|
+
this.removeIncludeChildren(item);
|
|
24899
|
+
}
|
|
24900
|
+
if (this.includeChildren) {
|
|
24901
|
+
this.refactorSelectList(item);
|
|
24902
|
+
}
|
|
24903
|
+
else {
|
|
24904
|
+
this.checkedNodeList.splice(index, 1);
|
|
24905
|
+
}
|
|
24906
|
+
this.enableSelectedNode({ id: item.id, parentId: item.parentId, itemName: item.name, type: publicApi.SelectOptionTypes.IncludeChildren });
|
|
24907
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
24908
|
+
}
|
|
24909
|
+
};
|
|
24910
|
+
SelectIncludeChildrenPopUpComponent.prototype.selectSearchOption = function (item) {
|
|
24911
|
+
var position = this.selectedOptions.findIndex(function (x) { return x.id === item.id && x.parentId === item.parentId; });
|
|
24912
|
+
if (position < 0) {
|
|
24913
|
+
if (this.includeChildren) {
|
|
24914
|
+
this.selectIncludeChildren({
|
|
24915
|
+
id: item.id,
|
|
24916
|
+
name: item.itemName,
|
|
24917
|
+
parentId: item.parentId,
|
|
24918
|
+
level: 0,
|
|
24919
|
+
expandable: true,
|
|
24920
|
+
disabled: false,
|
|
24921
|
+
hasChild: false
|
|
24922
|
+
});
|
|
24923
|
+
this.refactorSelectList({
|
|
24924
|
+
id: item.id,
|
|
24925
|
+
name: item.itemName,
|
|
24926
|
+
parentId: item.parentId,
|
|
24927
|
+
level: 0,
|
|
24928
|
+
expandable: true,
|
|
24929
|
+
disabled: false,
|
|
24930
|
+
hasChild: false
|
|
24931
|
+
});
|
|
24932
|
+
}
|
|
24933
|
+
else {
|
|
24934
|
+
this.selectedOptions.push(item);
|
|
24935
|
+
this.checkedNodeList.push({
|
|
24936
|
+
id: item.id,
|
|
24937
|
+
itemName: item.itemName,
|
|
24938
|
+
type: publicApi.SelectOptionTypes.SelectOne,
|
|
24939
|
+
parentId: item.parentId,
|
|
24940
|
+
children: [],
|
|
24941
|
+
noChildren: 0,
|
|
24942
|
+
noSelectedChildren: 0
|
|
24943
|
+
});
|
|
24944
|
+
}
|
|
24945
|
+
}
|
|
24946
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
24947
|
+
};
|
|
24948
|
+
SelectIncludeChildrenPopUpComponent.prototype.getItemIconType = function (item) {
|
|
24949
|
+
if (item.itemIcon && item.itemIcon.length)
|
|
24950
|
+
return this.itemIconType.name;
|
|
24951
|
+
if (item.itemIconPath && item.itemIconPath.length)
|
|
24952
|
+
return this.itemIconType.path;
|
|
24953
|
+
if (item.itemIconBase64 && item.itemIconBase64.length)
|
|
24954
|
+
return this.itemIconType.base64;
|
|
24955
|
+
if (item.itemIconSvg && item.itemIconSvg.length)
|
|
24956
|
+
return this.itemIconType.svg;
|
|
24957
|
+
return this.itemIconType.none;
|
|
24958
|
+
};
|
|
24959
|
+
SelectIncludeChildrenPopUpComponent.prototype.getImagePath = function (item) {
|
|
24960
|
+
return this.domSanitizer.bypassSecurityTrustResourceUrl(item.itemIconBase64);
|
|
24803
24961
|
};
|
|
24804
24962
|
SelectIncludeChildrenPopUpComponent.prototype.isMatchTrue = function (arr, arr2) {
|
|
24805
24963
|
return arr.every(function (i) {
|
|
@@ -24835,165 +24993,90 @@
|
|
|
24835
24993
|
}
|
|
24836
24994
|
}
|
|
24837
24995
|
};
|
|
24838
|
-
SelectIncludeChildrenPopUpComponent.prototype.getModuleFilteredOptions = function () {
|
|
24839
|
-
if (this.listChildrenSelectOne.length) {
|
|
24840
|
-
for (var index = 0; index < this.listChildrenSelectOne.length; index++) {
|
|
24841
|
-
var firstEl = this.listChildrenSelectOne[index];
|
|
24842
|
-
for (var j = 0; j < this.filteredOptions.length; j++) {
|
|
24843
|
-
var secondEl = this.filteredOptions[j];
|
|
24844
|
-
if (firstEl.id === secondEl.id) {
|
|
24845
|
-
this.filteredOptions.splice(j, 1);
|
|
24846
|
-
}
|
|
24847
|
-
}
|
|
24848
|
-
}
|
|
24849
|
-
}
|
|
24850
|
-
return this.filteredOptions;
|
|
24851
|
-
};
|
|
24852
24996
|
SelectIncludeChildrenPopUpComponent.prototype.showSearchResult = function () {
|
|
24853
24997
|
this.autoComplete.openPanel();
|
|
24854
24998
|
};
|
|
24855
24999
|
SelectIncludeChildrenPopUpComponent.prototype.displayRelated = function (related) {
|
|
24856
25000
|
return related ? related.itemName : undefined;
|
|
24857
25001
|
};
|
|
24858
|
-
SelectIncludeChildrenPopUpComponent.prototype.
|
|
24859
|
-
if (this.treeConfig.selectOne) {
|
|
24860
|
-
this.disabledList = [];
|
|
24861
|
-
}
|
|
24862
|
-
var index = -1;
|
|
24863
|
-
this.SelectOption = [];
|
|
24864
|
-
if (this.treeConfig.showCheckBox) {
|
|
24865
|
-
index = this.checkedNodeList.findIndex(function (x) {
|
|
24866
|
-
return x.id === item.id && x.parentId === item.parentId;
|
|
24867
|
-
});
|
|
24868
|
-
}
|
|
24869
|
-
if (index < 0) {
|
|
24870
|
-
var position = -1;
|
|
24871
|
-
var node = void 0;
|
|
24872
|
-
var typeId = void 0;
|
|
24873
|
-
}
|
|
25002
|
+
SelectIncludeChildrenPopUpComponent.prototype.getCommonCheckedNode = function (list) {
|
|
24874
25003
|
};
|
|
24875
|
-
SelectIncludeChildrenPopUpComponent.prototype.
|
|
25004
|
+
SelectIncludeChildrenPopUpComponent.prototype.selectIncludeChildren = function (item) {
|
|
24876
25005
|
var _this = this;
|
|
24877
|
-
var
|
|
24878
|
-
|
|
25006
|
+
var listChildren = [];
|
|
25007
|
+
listChildren = this.getAllChildrenNodeRecursive(listChildren, item);
|
|
25008
|
+
this.selectedOptions.push({
|
|
25009
|
+
id: item.id,
|
|
25010
|
+
itemName: item.name,
|
|
25011
|
+
itemNumberId: item.id,
|
|
25012
|
+
parentId: item.parentId,
|
|
25013
|
+
type: publicApi.SelectOptionTypes.IncludeChildren
|
|
24879
25014
|
});
|
|
24880
|
-
|
|
24881
|
-
var
|
|
24882
|
-
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24889
|
-
|
|
25015
|
+
listChildren.forEach(function (x) {
|
|
25016
|
+
var index = _this.selectedOptions.findIndex(function (node) { return node.id === x.id && node.parentId === x.parentId; });
|
|
25017
|
+
if (index < 0) {
|
|
25018
|
+
_this.selectedOptions.push(x);
|
|
25019
|
+
}
|
|
25020
|
+
});
|
|
25021
|
+
};
|
|
25022
|
+
SelectIncludeChildrenPopUpComponent.prototype.removeIncludeChildren = function (item) {
|
|
25023
|
+
var _this = this;
|
|
25024
|
+
var listChildren = [];
|
|
25025
|
+
listChildren = this.getAllChildrenNodeRecursive(listChildren, item);
|
|
25026
|
+
var itemIndex = this.selectedOptions.findIndex(function (node) { return node.id === item.id && node.parentId === item.parentId; });
|
|
25027
|
+
if (itemIndex >= 0) {
|
|
25028
|
+
this.selectedOptions.splice(itemIndex, 1);
|
|
25029
|
+
}
|
|
25030
|
+
listChildren.forEach(function (x) {
|
|
25031
|
+
var index = _this.selectedOptions.findIndex(function (node) { return node.id === x.id && node.parentId === x.parentId; });
|
|
25032
|
+
if (index >= 0) {
|
|
25033
|
+
_this.selectedOptions.splice(index, 1);
|
|
25034
|
+
}
|
|
25035
|
+
});
|
|
25036
|
+
};
|
|
25037
|
+
SelectIncludeChildrenPopUpComponent.prototype.getAllChildrenNodeRecursive = function (listResult, item) {
|
|
25038
|
+
var _this = this;
|
|
25039
|
+
var children = this.treeData.filter(function (x) { return x.parentId === item.id; });
|
|
25040
|
+
var childrenItem = __spreadArray([], __read(new Set(this.treeData.filter(function (x) { return x.rootId === item.id && !!x.childId; }))));
|
|
25041
|
+
if (childrenItem.length > 0) {
|
|
25042
|
+
childrenItem = childrenItem.filter(function (x) { return listResult.findIndex(function (node) { return node.id === x.childId && node.parentId === x.rootId; }) < 0; });
|
|
25043
|
+
listResult = listResult.concat(__spreadArray([], __read(new Set(childrenItem.map(function (x) {
|
|
24890
25044
|
return {
|
|
24891
25045
|
id: x.childId,
|
|
24892
|
-
|
|
24893
|
-
|
|
24894
|
-
|
|
25046
|
+
itemName: x.childName,
|
|
25047
|
+
parentId: x.rootId,
|
|
25048
|
+
parentName: x.rootName,
|
|
25049
|
+
type: publicApi.SelectOptionTypes.Children
|
|
25050
|
+
};
|
|
25051
|
+
})))));
|
|
25052
|
+
}
|
|
25053
|
+
if (children.length > 0) {
|
|
25054
|
+
children = children.filter(function (x) { return listResult.findIndex(function (node) { return node.id === x.rootId && node.parentId === x.parentId; }) < 0; });
|
|
25055
|
+
var uniqueChildren_1 = children.map(function (x) {
|
|
25056
|
+
var _a;
|
|
25057
|
+
return {
|
|
25058
|
+
id: x.rootId,
|
|
25059
|
+
itemName: ((_a = x.parentId) === null || _a === void 0 ? void 0 : _a.length) > 0 ? x.subName : x.rootName,
|
|
25060
|
+
parentId: x.parentId,
|
|
25061
|
+
type: publicApi.SelectOptionTypes.IncludeChildren
|
|
24895
25062
|
};
|
|
24896
25063
|
});
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24904
|
-
|
|
24905
|
-
|
|
24906
|
-
|
|
24907
|
-
|
|
24908
|
-
|
|
24909
|
-
}
|
|
24910
|
-
else {
|
|
24911
|
-
nodeChildren.forEach(function (x) {
|
|
24912
|
-
_this.SelectOption.push({
|
|
24913
|
-
id: x.id,
|
|
24914
|
-
itemName: x.name,
|
|
24915
|
-
itemNumberId: item.displayId.toString(),
|
|
24916
|
-
parentId: item.rootId,
|
|
24917
|
-
parentName: item.rootName
|
|
24918
|
-
});
|
|
24919
|
-
});
|
|
24920
|
-
}
|
|
24921
|
-
this.dataTrees.toArray()[0].todoItemSelection([node].concat(nodeChildren));
|
|
24922
|
-
if (nodeSubfolders) {
|
|
24923
|
-
nodeSubfolders.forEach(function (folder) {
|
|
24924
|
-
_this.selectNodeRecursive(folder);
|
|
25064
|
+
listResult = listResult.concat(uniqueChildren_1.filter(function (x, index) {
|
|
25065
|
+
return index === uniqueChildren_1.findIndex(function (node) { return node.id === x.id && node.parentId === x.parentId; });
|
|
25066
|
+
}));
|
|
25067
|
+
children.forEach(function (node) {
|
|
25068
|
+
listResult = _this.getAllChildrenNodeRecursive(listResult, {
|
|
25069
|
+
id: node.rootId,
|
|
25070
|
+
name: node.rootName,
|
|
25071
|
+
parentId: node.parentId,
|
|
25072
|
+
level: 0,
|
|
25073
|
+
expandable: true,
|
|
25074
|
+
hasChild: true,
|
|
25075
|
+
disabled: false
|
|
24925
25076
|
});
|
|
24926
|
-
}
|
|
24927
|
-
}
|
|
24928
|
-
return;
|
|
24929
|
-
};
|
|
24930
|
-
// setTypeProcess(expand) {
|
|
24931
|
-
// return expand ? this.dataType.area : this.dataType.process;
|
|
24932
|
-
// }
|
|
24933
|
-
SelectIncludeChildrenPopUpComponent.prototype.getCommonCheckedNode = function (list) {
|
|
24934
|
-
var _this = this;
|
|
24935
|
-
this.checkedNodeList = [];
|
|
24936
|
-
this.commonCheckedList = [];
|
|
24937
|
-
this.singleProcessList = [];
|
|
24938
|
-
if (list.length) {
|
|
24939
|
-
list.forEach(function (item) {
|
|
24940
|
-
var index = _this.checkedNodeList.findIndex(function (x) { return x.id === item.id && x.parentId === item.parentId; });
|
|
24941
|
-
if (item.id && index < 0) {
|
|
24942
|
-
_this.commonCheckedList.push(item);
|
|
24943
|
-
}
|
|
24944
|
-
if (_this.singleSelectOption) {
|
|
24945
|
-
var position = void 0;
|
|
24946
|
-
if (item.expandable) {
|
|
24947
|
-
position = _this.treeData.findIndex(function (p) { return p.rootId === item.id; });
|
|
24948
|
-
}
|
|
24949
|
-
else {
|
|
24950
|
-
position = _this.treeData.findIndex(function (p) { return p.childId === item.id; });
|
|
24951
|
-
}
|
|
24952
|
-
if (position > -1) {
|
|
24953
|
-
_this.singleProcessList.push({
|
|
24954
|
-
id: item.id,
|
|
24955
|
-
itemName: item.name,
|
|
24956
|
-
itemNumberId: _this.treeData[position].displayId.toString(),
|
|
24957
|
-
parentId: item.parentId,
|
|
24958
|
-
levelType: item.levelType
|
|
24959
|
-
});
|
|
24960
|
-
}
|
|
24961
|
-
}
|
|
24962
|
-
if (item.id && index < 0 && !item.expandable && !_this.singleSelectOption) {
|
|
24963
|
-
var position = _this.treeData.findIndex(function (p) { return p.childId === item.id && p.rootId === item.parentId; });
|
|
24964
|
-
if (position > -1) {
|
|
24965
|
-
_this.checkedNodeList.push({
|
|
24966
|
-
id: item.id,
|
|
24967
|
-
itemName: item.name,
|
|
24968
|
-
parentId: item.parentId,
|
|
24969
|
-
parentName: _this.treeData[position].parentId ? _this.treeData[position].subName : _this.treeData[position].rootName,
|
|
24970
|
-
itemNumberId: _this.treeData[position].displayId.toString(),
|
|
24971
|
-
levelType: item.levelType
|
|
24972
|
-
});
|
|
24973
|
-
}
|
|
24974
|
-
}
|
|
24975
25077
|
});
|
|
24976
|
-
if (this.singleSelectOption) {
|
|
24977
|
-
this.checkedNodeList = __spreadArray(__spreadArray([], __read(this.checkedNodeList)), __read(this.singleProcessList));
|
|
24978
|
-
}
|
|
24979
|
-
if (this.maxSelectItemCount && this.maxSelectItemCount > 0) {
|
|
24980
|
-
var removeList = this.checkedNodeList.slice(0, this.maxSelectItemCount * -1);
|
|
24981
|
-
if (removeList.length) {
|
|
24982
|
-
removeList.forEach(function (item) {
|
|
24983
|
-
_this.removeCheckedNodeList({
|
|
24984
|
-
id: item.id,
|
|
24985
|
-
name: item.itemName,
|
|
24986
|
-
parentId: item.parentId,
|
|
24987
|
-
level: 0,
|
|
24988
|
-
expandable: true,
|
|
24989
|
-
hasChild: true,
|
|
24990
|
-
disabled: false
|
|
24991
|
-
});
|
|
24992
|
-
});
|
|
24993
|
-
}
|
|
24994
|
-
this.checkedNodeList = this.checkedNodeList.slice(this.maxSelectItemCount * -1);
|
|
24995
|
-
}
|
|
24996
25078
|
}
|
|
25079
|
+
return listResult;
|
|
24997
25080
|
};
|
|
24998
25081
|
SelectIncludeChildrenPopUpComponent.prototype.onCloseClick = function () {
|
|
24999
25082
|
this.selectedFolder = null;
|
|
@@ -25001,13 +25084,8 @@
|
|
|
25001
25084
|
};
|
|
25002
25085
|
;
|
|
25003
25086
|
SelectIncludeChildrenPopUpComponent.prototype.onAddClick = function () {
|
|
25004
|
-
// if (this.treeConfig.showCheckBox) {
|
|
25005
25087
|
this.selectedFolder = null;
|
|
25006
25088
|
this.dialogRef.close(this.checkedNodeList);
|
|
25007
|
-
// }
|
|
25008
|
-
// else {
|
|
25009
|
-
// this.dialogRef.close(this.SelectOption);
|
|
25010
|
-
// }
|
|
25011
25089
|
};
|
|
25012
25090
|
SelectIncludeChildrenPopUpComponent.prototype.getOffsetHeight = function (element, includeMargin) {
|
|
25013
25091
|
var elmHeight = 0, elmMargin = 0;
|
|
@@ -25019,100 +25097,14 @@
|
|
|
25019
25097
|
return (elmHeight + elmMargin);
|
|
25020
25098
|
};
|
|
25021
25099
|
SelectIncludeChildrenPopUpComponent.prototype.getItemChipName = function (item) {
|
|
25022
|
-
return
|
|
25100
|
+
return "" + item.itemName;
|
|
25101
|
+
};
|
|
25102
|
+
SelectIncludeChildrenPopUpComponent.prototype.getItemSelectedChildrenRatio = function (item) {
|
|
25103
|
+
return item.noSelectedChildren + "/" + item.noChildren;
|
|
25023
25104
|
};
|
|
25024
25105
|
SelectIncludeChildrenPopUpComponent.prototype.isEllipsisActive = function (e) {
|
|
25025
25106
|
return e ? (e.clientWidth < e.scrollWidth) : false;
|
|
25026
25107
|
};
|
|
25027
|
-
// getNodeIcon(item: SelectOption) {
|
|
25028
|
-
// switch (item.itemType) {
|
|
25029
|
-
// case DataType.folder: {
|
|
25030
|
-
// switch (item.levelType) {
|
|
25031
|
-
// case DocumentNodeType.DepartmentFolder:
|
|
25032
|
-
// return 'department_folder_outlined';
|
|
25033
|
-
// case DocumentNodeType.RegionalFolder:
|
|
25034
|
-
// return 'regional_folder_outlined';
|
|
25035
|
-
// case DocumentNodeType.TopFolder:
|
|
25036
|
-
// return 'enterprise_folder_outlined';
|
|
25037
|
-
// case DocumentNodeType.Folder:
|
|
25038
|
-
// return 'local_folder_outlined';
|
|
25039
|
-
// default:
|
|
25040
|
-
// return 'folder_outlined';
|
|
25041
|
-
// }
|
|
25042
|
-
// }
|
|
25043
|
-
// case DataType.document: {
|
|
25044
|
-
// switch (item.levelType) {
|
|
25045
|
-
// case DocumentNodeType.DepartmentFolder:
|
|
25046
|
-
// return 'document_department';
|
|
25047
|
-
// case DocumentNodeType.RegionalFolder:
|
|
25048
|
-
// return 'document_regional';
|
|
25049
|
-
// case DocumentNodeType.TopFolder:
|
|
25050
|
-
// return 'document_enterprise';
|
|
25051
|
-
// case DocumentNodeType.Folder:
|
|
25052
|
-
// return 'document_local';
|
|
25053
|
-
// default:
|
|
25054
|
-
// return 'document';
|
|
25055
|
-
// }
|
|
25056
|
-
// }
|
|
25057
|
-
// case DataType.area:
|
|
25058
|
-
// return 'process_area_outlined';
|
|
25059
|
-
// case DataType.process:
|
|
25060
|
-
// return 'process';
|
|
25061
|
-
// case DataType.deviation:
|
|
25062
|
-
// return 'deviation';
|
|
25063
|
-
// case DataType.checklist:
|
|
25064
|
-
// return 'checklist';
|
|
25065
|
-
// case DataType.risk:
|
|
25066
|
-
// return 'risk';
|
|
25067
|
-
// default:
|
|
25068
|
-
// return 'folder_outlined';
|
|
25069
|
-
// }
|
|
25070
|
-
// }
|
|
25071
|
-
// getSearchOrder() {
|
|
25072
|
-
// let searchTypes = Object.keys(this.dataType)
|
|
25073
|
-
// .map(key => ({ value: this.dataType[key], key: key }));
|
|
25074
|
-
// searchTypes = searchTypes.slice(searchTypes.length / 2);
|
|
25075
|
-
// return searchTypes;
|
|
25076
|
-
// }
|
|
25077
|
-
// getTitle(type: number) {
|
|
25078
|
-
// switch (type) {
|
|
25079
|
-
// case DataType.process:
|
|
25080
|
-
// return this.LANG.PROCESSES;
|
|
25081
|
-
// case DataType.area:
|
|
25082
|
-
// return this.LANG.PROCESS_AREA;
|
|
25083
|
-
// case DataType.document:
|
|
25084
|
-
// return this.LANG.DOCUMENTS;
|
|
25085
|
-
// case DataType.folder:
|
|
25086
|
-
// return this.LANG.FOLDER;
|
|
25087
|
-
// case DataType.deviation:
|
|
25088
|
-
// return this.LANG.DEVIATION;
|
|
25089
|
-
// case DataType.deviationType:
|
|
25090
|
-
// return this.LANG.DEVIATION_TYPE;
|
|
25091
|
-
// case DataType.checklist:
|
|
25092
|
-
// return this.LANG.CHECKLIST;
|
|
25093
|
-
// case DataType.checklistCategory:
|
|
25094
|
-
// return this.LANG.CHECKLIST_CATEGORY;
|
|
25095
|
-
// case DataType.risk:
|
|
25096
|
-
// return this.LANG.ASSESSMENT;
|
|
25097
|
-
// case DataType.riskFolder:
|
|
25098
|
-
// return this.LANG.FOLDER;
|
|
25099
|
-
// }
|
|
25100
|
-
// }
|
|
25101
|
-
// getParentName(item: SelectOption) {
|
|
25102
|
-
// if (item.itemType === this.dataType.checklist || item.itemType === this.dataType.deviation) {
|
|
25103
|
-
// return item.parentName;
|
|
25104
|
-
// }
|
|
25105
|
-
// return null;
|
|
25106
|
-
// }
|
|
25107
|
-
// getItemId(item: SelectOption) {
|
|
25108
|
-
// if (item.itemType === this.dataType.process) {
|
|
25109
|
-
// return `${this.LANG.PROCESS_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
|
25110
|
-
// }
|
|
25111
|
-
// else if (item.itemType === this.dataType.document) {
|
|
25112
|
-
// return `${this.LANG.DOCUMENT_ID}: ${item.itemNumberId}; ${item.statusName}`;
|
|
25113
|
-
// }
|
|
25114
|
-
// return null;
|
|
25115
|
-
// }
|
|
25116
25108
|
SelectIncludeChildrenPopUpComponent.prototype.toggleSelectItem = function (node) {
|
|
25117
25109
|
var SelectOption = this.checkedNodeList.find(function (x) { return (x.id.toLowerCase() === node.id.toLowerCase() && x.parentId.toLowerCase() === node.parentId.toLowerCase()); });
|
|
25118
25110
|
if (SelectOption) {
|
|
@@ -25151,48 +25143,233 @@
|
|
|
25151
25143
|
this.onExpandFolder.emit(item);
|
|
25152
25144
|
// }
|
|
25153
25145
|
};
|
|
25154
|
-
// canShowSearchOption(moduleId: number) {
|
|
25155
|
-
// if (this.canOnlySelectItem &&
|
|
25156
|
-
// (moduleId === DataType.checklistCategory
|
|
25157
|
-
// || moduleId === DataType.riskFolder
|
|
25158
|
-
// || moduleId === DataType.deviationType
|
|
25159
|
-
// || (moduleId === DataType.area && this.treeConfig && !this.treeConfig.singleSelectOption)
|
|
25160
|
-
// || (moduleId === DataType.folder && this.treeConfig2 && !this.treeConfig2.singleSelectOption)
|
|
25161
|
-
// )) {
|
|
25162
|
-
// return false;
|
|
25163
|
-
// }
|
|
25164
|
-
// return this.getModuleFilteredOptions(moduleId).length > 0;
|
|
25165
|
-
// }
|
|
25166
25146
|
SelectIncludeChildrenPopUpComponent.prototype.selectNodeTreeEvent = function (node) {
|
|
25167
|
-
var
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25147
|
+
var position = this.selectedOptions.findIndex(function (x) { return x.id === node.id && x.parentId === node.parentId; });
|
|
25148
|
+
if (position > -1) {
|
|
25149
|
+
if (this.includeChildren) {
|
|
25150
|
+
if (node.expandable) {
|
|
25151
|
+
this.removeIncludeChildren(node);
|
|
25152
|
+
}
|
|
25153
|
+
else {
|
|
25154
|
+
var itemIndex = this.selectedOptions.findIndex(function (item) { return node.id === item.id && node.parentId === item.parentId; });
|
|
25155
|
+
if (itemIndex >= 0) {
|
|
25156
|
+
this.selectedOptions.splice(itemIndex, 1);
|
|
25157
|
+
}
|
|
25158
|
+
}
|
|
25159
|
+
this.checkedNodeList = this.checkedNodeList.filter(function (x) { return x.id !== node.id || x.parentId !== node.parentId; });
|
|
25160
|
+
this.refactorSelectList(node);
|
|
25161
|
+
}
|
|
25162
|
+
else {
|
|
25163
|
+
var itemIndex = this.selectedOptions.findIndex(function (item) { return node.id === item.id && node.parentId === item.parentId; });
|
|
25164
|
+
if (itemIndex >= 0) {
|
|
25165
|
+
this.selectedOptions.splice(itemIndex, 1);
|
|
25166
|
+
}
|
|
25167
|
+
this.checkedNodeList = this.checkedNodeList.filter(function (x) { return x.id !== node.id || x.parentId !== node.parentId; });
|
|
25168
|
+
}
|
|
25169
|
+
}
|
|
25170
|
+
else {
|
|
25171
|
+
if (this.includeChildren) {
|
|
25172
|
+
if (node.expandable) {
|
|
25173
|
+
this.selectIncludeChildren(node);
|
|
25174
|
+
}
|
|
25175
|
+
else {
|
|
25176
|
+
this.selectedOptions.push({
|
|
25177
|
+
id: node.id,
|
|
25178
|
+
itemName: node.name,
|
|
25179
|
+
itemNumberId: node.id,
|
|
25180
|
+
parentId: node.parentId,
|
|
25181
|
+
type: publicApi.SelectOptionTypes.Children
|
|
25182
|
+
});
|
|
25183
|
+
}
|
|
25184
|
+
this.refactorSelectList(node);
|
|
25185
|
+
}
|
|
25186
|
+
else {
|
|
25187
|
+
this.selectedOptions.push({
|
|
25188
|
+
id: node.id,
|
|
25189
|
+
itemName: node.name,
|
|
25190
|
+
itemNumberId: node.id,
|
|
25191
|
+
parentId: node.parentId,
|
|
25192
|
+
type: publicApi.SelectOptionTypes.SelectOne
|
|
25193
|
+
});
|
|
25194
|
+
this.checkedNodeList.push({
|
|
25195
|
+
id: node.id,
|
|
25196
|
+
itemName: node.name,
|
|
25197
|
+
type: publicApi.SelectOptionTypes.SelectOne,
|
|
25198
|
+
parentId: node.parentId,
|
|
25199
|
+
children: [],
|
|
25200
|
+
noSelectedChildren: 0,
|
|
25201
|
+
noChildren: 0,
|
|
25202
|
+
});
|
|
25203
|
+
}
|
|
25204
|
+
}
|
|
25205
|
+
this.selectedData = this.mapSelectOptionToTreeNode(this.selectedOptions);
|
|
25188
25206
|
};
|
|
25189
25207
|
SelectIncludeChildrenPopUpComponent.prototype.setValue = function (e) {
|
|
25208
|
+
var _this = this;
|
|
25190
25209
|
this.includeChildren = !!e.checked;
|
|
25210
|
+
if (!this.includeChildren) {
|
|
25211
|
+
this.checkedNodeList.forEach(function (node) {
|
|
25212
|
+
_this.disableSelectedNode(node);
|
|
25213
|
+
});
|
|
25214
|
+
}
|
|
25215
|
+
else {
|
|
25216
|
+
this.disabledList = this.orginalDisableList;
|
|
25217
|
+
}
|
|
25218
|
+
};
|
|
25219
|
+
SelectIncludeChildrenPopUpComponent.prototype.mapSelectOptionToTreeNode = function (list) {
|
|
25220
|
+
return list.map(function (x) {
|
|
25221
|
+
return {
|
|
25222
|
+
id: x.id,
|
|
25223
|
+
name: x.itemName,
|
|
25224
|
+
level: 0,
|
|
25225
|
+
expandable: true,
|
|
25226
|
+
hasChild: true,
|
|
25227
|
+
parentId: x.parentId,
|
|
25228
|
+
disabled: false,
|
|
25229
|
+
};
|
|
25230
|
+
});
|
|
25231
|
+
};
|
|
25232
|
+
SelectIncludeChildrenPopUpComponent.prototype.refactorSelectList = function (node) {
|
|
25233
|
+
var _this = this;
|
|
25234
|
+
var parent;
|
|
25235
|
+
var parentList = [];
|
|
25236
|
+
parent = this.treeData.find(function (x) { return x.rootId === node.parentId; });
|
|
25237
|
+
if (parent) {
|
|
25238
|
+
parentList.push({
|
|
25239
|
+
id: parent.rootId,
|
|
25240
|
+
itemName: parent.rootName,
|
|
25241
|
+
parentId: parent.parentId,
|
|
25242
|
+
type: publicApi.SelectOptionTypes.IncludeChildren
|
|
25243
|
+
});
|
|
25244
|
+
parentList = this.getParentLineOfNode(parentList, parent);
|
|
25245
|
+
}
|
|
25246
|
+
if (parentList.length > 0) {
|
|
25247
|
+
var selectedParentList = parentList.filter(function (x) { return _this.selectedOptions
|
|
25248
|
+
.findIndex(function (selectedNode) { return x.id === selectedNode.id && x.parentId === selectedNode.parentId; }) >= 0; });
|
|
25249
|
+
if (selectedParentList.length > 0) {
|
|
25250
|
+
var highestSelectedNode = selectedParentList[selectedParentList.length - 1];
|
|
25251
|
+
this.combineNodes(highestSelectedNode);
|
|
25252
|
+
}
|
|
25253
|
+
else {
|
|
25254
|
+
this.combineNodes({
|
|
25255
|
+
id: node.id,
|
|
25256
|
+
itemName: node.name,
|
|
25257
|
+
type: publicApi.SelectOptionTypes.IncludeChildren,
|
|
25258
|
+
parentId: node.parentId
|
|
25259
|
+
});
|
|
25260
|
+
}
|
|
25261
|
+
}
|
|
25262
|
+
else {
|
|
25263
|
+
this.combineNodes({
|
|
25264
|
+
id: node.id,
|
|
25265
|
+
itemName: node.name,
|
|
25266
|
+
type: publicApi.SelectOptionTypes.IncludeChildren,
|
|
25267
|
+
parentId: node.parentId
|
|
25268
|
+
});
|
|
25269
|
+
}
|
|
25270
|
+
};
|
|
25271
|
+
SelectIncludeChildrenPopUpComponent.prototype.combineNodes = function (root) {
|
|
25272
|
+
var _this = this;
|
|
25273
|
+
var children = [];
|
|
25274
|
+
children = this.getAllChildrenNodeRecursive(children, {
|
|
25275
|
+
id: root.id,
|
|
25276
|
+
name: root.itemName,
|
|
25277
|
+
parentId: root.parentId,
|
|
25278
|
+
level: 0,
|
|
25279
|
+
expandable: true,
|
|
25280
|
+
hasChild: true,
|
|
25281
|
+
disabled: false
|
|
25282
|
+
});
|
|
25283
|
+
var selectedNodeIndex = this.checkedNodeList.findIndex(function (x) { return x.id === root.id && x.parentId === root.parentId; });
|
|
25284
|
+
var nodeList = [];
|
|
25285
|
+
children.forEach(function (child) {
|
|
25286
|
+
var index = _this.checkedNodeList.findIndex(function (node) { return node.id === child.id && node.parentId === child.parentId; });
|
|
25287
|
+
if (index >= 0) {
|
|
25288
|
+
_this.checkedNodeList.splice(index, 1);
|
|
25289
|
+
}
|
|
25290
|
+
var selectIndex = _this.selectedOptions.findIndex(function (node) { return node.id === child.id && node.parentId === child.parentId; });
|
|
25291
|
+
if (selectIndex >= 0) {
|
|
25292
|
+
nodeList.push(child);
|
|
25293
|
+
}
|
|
25294
|
+
});
|
|
25295
|
+
if (nodeList.length > 0 || children.length === 0) {
|
|
25296
|
+
if (selectedNodeIndex < 0) {
|
|
25297
|
+
this.checkedNodeList.push({
|
|
25298
|
+
id: root.id,
|
|
25299
|
+
itemName: root.itemName,
|
|
25300
|
+
type: publicApi.SelectOptionTypes.IncludeChildren,
|
|
25301
|
+
parentId: root.parentId,
|
|
25302
|
+
children: [],
|
|
25303
|
+
noSelectedChildren: 0,
|
|
25304
|
+
noChildren: 0
|
|
25305
|
+
});
|
|
25306
|
+
selectedNodeIndex = this.checkedNodeList.length - 1;
|
|
25307
|
+
}
|
|
25308
|
+
this.checkedNodeList[selectedNodeIndex].children = nodeList;
|
|
25309
|
+
this.checkedNodeList[selectedNodeIndex].noChildren = children.length;
|
|
25310
|
+
this.checkedNodeList[selectedNodeIndex].noSelectedChildren = nodeList.length;
|
|
25311
|
+
this.checkedNodeList[selectedNodeIndex].type = children.length === 0 ? publicApi.SelectOptionTypes.SelectOne : publicApi.SelectOptionTypes.IncludeChildren;
|
|
25312
|
+
}
|
|
25313
|
+
};
|
|
25314
|
+
SelectIncludeChildrenPopUpComponent.prototype.getParentLineOfNode = function (listParent, node) {
|
|
25315
|
+
var parent;
|
|
25316
|
+
parent = this.treeData.find(function (x) { return x.rootId === node.parentId; });
|
|
25317
|
+
if (parent) {
|
|
25318
|
+
listParent = __spreadArray(__spreadArray([], __read(listParent)), [{
|
|
25319
|
+
id: parent.rootId,
|
|
25320
|
+
itemName: parent.rootName,
|
|
25321
|
+
parentId: parent.parentId,
|
|
25322
|
+
type: publicApi.SelectOptionTypes.IncludeChildren
|
|
25323
|
+
}]);
|
|
25324
|
+
this.getParentLineOfNode(listParent, parent);
|
|
25325
|
+
}
|
|
25326
|
+
return listParent;
|
|
25327
|
+
};
|
|
25328
|
+
SelectIncludeChildrenPopUpComponent.prototype.disableSelectedNode = function (node) {
|
|
25329
|
+
var _this = this;
|
|
25330
|
+
if (node.type === publicApi.SelectOptionTypes.IncludeChildren) {
|
|
25331
|
+
var children = [];
|
|
25332
|
+
children = this.getAllChildrenNodeRecursive(children, {
|
|
25333
|
+
id: node.id,
|
|
25334
|
+
name: node.itemName,
|
|
25335
|
+
parentId: node.parentId,
|
|
25336
|
+
level: 0,
|
|
25337
|
+
expandable: true,
|
|
25338
|
+
hasChild: true,
|
|
25339
|
+
disabled: false
|
|
25340
|
+
});
|
|
25341
|
+
var disableNodes_1 = [];
|
|
25342
|
+
var index = this.disabledList.findIndex(function (x) { return x.id === node.id && x.parentId === node.parentId; });
|
|
25343
|
+
if (index < 0) {
|
|
25344
|
+
disableNodes_1.push(node);
|
|
25345
|
+
}
|
|
25346
|
+
children.forEach(function (child) {
|
|
25347
|
+
var index = _this.disabledList.findIndex(function (x) { return x.id === child.id && x.parentId === child.parentId; });
|
|
25348
|
+
if (index < 0) {
|
|
25349
|
+
disableNodes_1.push(child);
|
|
25350
|
+
}
|
|
25351
|
+
});
|
|
25352
|
+
this.disabledList = __spreadArray(__spreadArray([], __read(this.disabledList)), __read(disableNodes_1));
|
|
25353
|
+
}
|
|
25354
|
+
};
|
|
25355
|
+
SelectIncludeChildrenPopUpComponent.prototype.enableSelectedNode = function (node) {
|
|
25356
|
+
var children = [];
|
|
25357
|
+
children = this.getAllChildrenNodeRecursive(children, {
|
|
25358
|
+
id: node.id,
|
|
25359
|
+
name: node.itemName,
|
|
25360
|
+
parentId: node.parentId,
|
|
25361
|
+
level: 0,
|
|
25362
|
+
expandable: true,
|
|
25363
|
+
hasChild: true,
|
|
25364
|
+
disabled: false
|
|
25365
|
+
});
|
|
25366
|
+
this.disabledList = this.disabledList.filter(function (x) { return children.filter(function (child) { return (x.id === child.id && x.parentId === child.parentId); }).length === 0; });
|
|
25367
|
+
this.disabledList = this.disabledList.filter(function (x) { return !(x.id === node.id && x.parentId === node.parentId); });
|
|
25191
25368
|
};
|
|
25192
25369
|
return SelectIncludeChildrenPopUpComponent;
|
|
25193
25370
|
}());
|
|
25194
25371
|
SelectIncludeChildrenPopUpComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SelectIncludeChildrenPopUpComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: TranslateLibraryService }, { token: i1__namespace$2.MatDialogRef }, { token: QMSSelectGlobalService }, { token: i4__namespace.MatIconRegistry }, { token: i5__namespace$2.DomSanitizer }, { token: QMSIconRegistryService }, { token: i0__namespace.ElementRef }, { token: i1$2.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
25195
|
-
SelectIncludeChildrenPopUpComponent.ɵcmp = i0__namespace.ɵɵ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: i7$1.MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0__namespace, 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__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7__namespace$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__namespace$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__namespace$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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12__namespace.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__namespace.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__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$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__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5__namespace$1.UpperCasePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
25372
|
+
SelectIncludeChildrenPopUpComponent.ɵcmp = i0__namespace.ɵɵ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: i7$1.MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0__namespace, 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__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7__namespace$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__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7__namespace$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__namespace$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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12__namespace.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__namespace.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__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.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__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: QMSToolTipRendererDirective, selector: "[qms-tool-tip]", inputs: ["showToolTip", "mode", "qms-tool-tip", "contentTemplate", "position"] }, { type: i5__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "uppercase": i5__namespace$1.UpperCasePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
25196
25373
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SelectIncludeChildrenPopUpComponent, decorators: [{
|
|
25197
25374
|
type: i0.Component,
|
|
25198
25375
|
args: [{
|
|
@@ -25242,7 +25419,7 @@
|
|
|
25242
25419
|
QMSAppIconModule,
|
|
25243
25420
|
QMSTreeModule,
|
|
25244
25421
|
QMSButtonModule,
|
|
25245
|
-
|
|
25422
|
+
i7$3.MatSlideToggleModule], exports: [SelectIncludeChildrenPopUpComponent] });
|
|
25246
25423
|
QMSSelectIncludeChildrenModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectIncludeChildrenModule, imports: [[
|
|
25247
25424
|
i5$1.CommonModule,
|
|
25248
25425
|
i4$2.MatTreeModule,
|
|
@@ -25263,7 +25440,7 @@
|
|
|
25263
25440
|
QMSAppIconModule,
|
|
25264
25441
|
QMSTreeModule,
|
|
25265
25442
|
QMSButtonModule,
|
|
25266
|
-
|
|
25443
|
+
i7$3.MatSlideToggleModule
|
|
25267
25444
|
]] });
|
|
25268
25445
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectIncludeChildrenModule, decorators: [{
|
|
25269
25446
|
type: i0.NgModule,
|
|
@@ -25291,7 +25468,7 @@
|
|
|
25291
25468
|
QMSAppIconModule,
|
|
25292
25469
|
QMSTreeModule,
|
|
25293
25470
|
QMSButtonModule,
|
|
25294
|
-
|
|
25471
|
+
i7$3.MatSlideToggleModule
|
|
25295
25472
|
],
|
|
25296
25473
|
exports: [
|
|
25297
25474
|
SelectIncludeChildrenPopUpComponent
|
|
@@ -25299,6 +25476,19 @@
|
|
|
25299
25476
|
}]
|
|
25300
25477
|
}] });
|
|
25301
25478
|
|
|
25479
|
+
var SelectedOption = /** @class */ (function () {
|
|
25480
|
+
function SelectedOption() {
|
|
25481
|
+
}
|
|
25482
|
+
return SelectedOption;
|
|
25483
|
+
}());
|
|
25484
|
+
|
|
25485
|
+
exports.SelectOptionTypes = void 0;
|
|
25486
|
+
(function (SelectOptionTypes) {
|
|
25487
|
+
SelectOptionTypes[SelectOptionTypes["SelectOne"] = 1] = "SelectOne";
|
|
25488
|
+
SelectOptionTypes[SelectOptionTypes["IncludeChildren"] = 2] = "IncludeChildren";
|
|
25489
|
+
SelectOptionTypes[SelectOptionTypes["Children"] = 3] = "Children";
|
|
25490
|
+
})(exports.SelectOptionTypes || (exports.SelectOptionTypes = {}));
|
|
25491
|
+
|
|
25302
25492
|
var BadgesType;
|
|
25303
25493
|
(function (BadgesType) {
|
|
25304
25494
|
BadgesType["circle"] = "1";
|
|
@@ -25383,6 +25573,488 @@
|
|
|
25383
25573
|
}]
|
|
25384
25574
|
}] });
|
|
25385
25575
|
|
|
25576
|
+
var DataType;
|
|
25577
|
+
(function (DataType) {
|
|
25578
|
+
DataType[DataType["process"] = 2] = "process";
|
|
25579
|
+
DataType[DataType["document"] = 1] = "document";
|
|
25580
|
+
DataType[DataType["area"] = 3] = "area";
|
|
25581
|
+
DataType[DataType["folder"] = 4] = "folder";
|
|
25582
|
+
DataType[DataType["deviation"] = 5] = "deviation";
|
|
25583
|
+
DataType[DataType["checklist"] = 6] = "checklist";
|
|
25584
|
+
DataType[DataType["risk"] = 7] = "risk";
|
|
25585
|
+
DataType[DataType["deviationType"] = 8] = "deviationType";
|
|
25586
|
+
DataType[DataType["checklistCategory"] = 9] = "checklistCategory";
|
|
25587
|
+
DataType[DataType["riskFolder"] = 10] = "riskFolder";
|
|
25588
|
+
})(DataType || (DataType = {}));
|
|
25589
|
+
|
|
25590
|
+
var DocumentNodeType;
|
|
25591
|
+
(function (DocumentNodeType) {
|
|
25592
|
+
DocumentNodeType[DocumentNodeType["Document"] = 1] = "Document";
|
|
25593
|
+
DocumentNodeType[DocumentNodeType["LinkDocument"] = 2] = "LinkDocument";
|
|
25594
|
+
DocumentNodeType[DocumentNodeType["FileDocument"] = 3] = "FileDocument";
|
|
25595
|
+
DocumentNodeType[DocumentNodeType["ShortcutDocument"] = 4] = "ShortcutDocument";
|
|
25596
|
+
DocumentNodeType[DocumentNodeType["Folder"] = 5] = "Folder";
|
|
25597
|
+
DocumentNodeType[DocumentNodeType["TopFolder"] = 6] = "TopFolder";
|
|
25598
|
+
DocumentNodeType[DocumentNodeType["DepartmentFolder"] = 7] = "DepartmentFolder";
|
|
25599
|
+
DocumentNodeType[DocumentNodeType["RegionalFolder"] = 8] = "RegionalFolder";
|
|
25600
|
+
})(DocumentNodeType || (DocumentNodeType = {}));
|
|
25601
|
+
|
|
25602
|
+
var ModuleType;
|
|
25603
|
+
(function (ModuleType) {
|
|
25604
|
+
ModuleType[ModuleType["documentProcess"] = 1] = "documentProcess";
|
|
25605
|
+
ModuleType[ModuleType["deviation"] = 2] = "deviation";
|
|
25606
|
+
ModuleType[ModuleType["checklist"] = 3] = "checklist";
|
|
25607
|
+
ModuleType[ModuleType["risk"] = 4] = "risk";
|
|
25608
|
+
})(ModuleType || (ModuleType = {}));
|
|
25609
|
+
|
|
25610
|
+
var ShowHideSearchResultConst = /** @class */ (function () {
|
|
25611
|
+
function ShowHideSearchResultConst() {
|
|
25612
|
+
}
|
|
25613
|
+
return ShowHideSearchResultConst;
|
|
25614
|
+
}());
|
|
25615
|
+
ShowHideSearchResultConst.IS_DISPLAY_SEARCH_RESULT = 'IS_DISPLAY_SEARCH_RESULT';
|
|
25616
|
+
ShowHideSearchResultConst.HIDE_SEARCH_RESULT = 'HIDE_SEARCH_RESULT';
|
|
25617
|
+
ShowHideSearchResultConst.SHOW_SEARCH_RESULT = 'SHOW_SEARCH_RESULT';
|
|
25618
|
+
|
|
25619
|
+
var QMSSelectOneGlobalService = /** @class */ (function () {
|
|
25620
|
+
function QMSSelectOneGlobalService() {
|
|
25621
|
+
this.searchRelated = new rxjs.BehaviorSubject([]);
|
|
25622
|
+
}
|
|
25623
|
+
QMSSelectOneGlobalService.prototype.setSearchRelated = function (result) {
|
|
25624
|
+
this.searchRelated.next(result);
|
|
25625
|
+
};
|
|
25626
|
+
return QMSSelectOneGlobalService;
|
|
25627
|
+
}());
|
|
25628
|
+
QMSSelectOneGlobalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneGlobalService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
25629
|
+
QMSSelectOneGlobalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneGlobalService, providedIn: 'root' });
|
|
25630
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneGlobalService, decorators: [{
|
|
25631
|
+
type: i0.Injectable,
|
|
25632
|
+
args: [{ providedIn: 'root' }]
|
|
25633
|
+
}], ctorParameters: function () { return []; } });
|
|
25634
|
+
|
|
25635
|
+
var SelectOnePopupData = /** @class */ (function () {
|
|
25636
|
+
function SelectOnePopupData() {
|
|
25637
|
+
this.moduleId = 0;
|
|
25638
|
+
this.moduleName = '';
|
|
25639
|
+
this.treeData = [];
|
|
25640
|
+
this.selectedNode = [];
|
|
25641
|
+
this.disabledList = [];
|
|
25642
|
+
this.expandToChildNode = [];
|
|
25643
|
+
}
|
|
25644
|
+
return SelectOnePopupData;
|
|
25645
|
+
}());
|
|
25646
|
+
|
|
25647
|
+
var SelectOneDialog = /** @class */ (function () {
|
|
25648
|
+
function SelectOneDialog(cdRef, translate, dialogRef, globalService, iconRegistry, sanitizer, appIconService, data) {
|
|
25649
|
+
this.cdRef = cdRef;
|
|
25650
|
+
this.translate = translate;
|
|
25651
|
+
this.dialogRef = dialogRef;
|
|
25652
|
+
this.globalService = globalService;
|
|
25653
|
+
this.iconRegistry = iconRegistry;
|
|
25654
|
+
this.sanitizer = sanitizer;
|
|
25655
|
+
this.appIconService = appIconService;
|
|
25656
|
+
this.data = data;
|
|
25657
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
25658
|
+
this.moduleId = 0;
|
|
25659
|
+
this.moduleName = '';
|
|
25660
|
+
this.treeData = [];
|
|
25661
|
+
this.checkedNodeList = [];
|
|
25662
|
+
this.selectedNode = [];
|
|
25663
|
+
this.selectedData = [];
|
|
25664
|
+
this.module = ModuleType;
|
|
25665
|
+
this.dataType = DataType;
|
|
25666
|
+
this.itemType = 0;
|
|
25667
|
+
this.selectedRiskData = [];
|
|
25668
|
+
this.disabledList = [];
|
|
25669
|
+
this.expandToChildNode = [];
|
|
25670
|
+
this.isCommonExpanded = true;
|
|
25671
|
+
this.myControl = new i10.FormControl();
|
|
25672
|
+
this.filteredOptions = [];
|
|
25673
|
+
this.isInputValue = false;
|
|
25674
|
+
this.selectedFolder = null;
|
|
25675
|
+
this.listChildrenSelectOne = [];
|
|
25676
|
+
this.onSearch = new i0.EventEmitter();
|
|
25677
|
+
this.onExpandFolder = new i0.EventEmitter();
|
|
25678
|
+
this.moduleId = data.moduleId;
|
|
25679
|
+
this.moduleName = data.moduleName;
|
|
25680
|
+
this.treeData = data.treeData;
|
|
25681
|
+
this.treeConfig = data.treeConfig;
|
|
25682
|
+
this.selectedRiskData = (data === null || data === void 0 ? void 0 : data.selectedNode) || [];
|
|
25683
|
+
this.disabledList = data.disabledList || [];
|
|
25684
|
+
this.expandToChildNode = data.expandToChildNode;
|
|
25685
|
+
appIconService.registerProcessIcon(iconRegistry, sanitizer);
|
|
25686
|
+
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
|
25687
|
+
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
|
25688
|
+
appIconService.registerFolderIcon(iconRegistry, sanitizer);
|
|
25689
|
+
appIconService.registerDeviationIcon(iconRegistry, sanitizer);
|
|
25690
|
+
appIconService.registerChecklistIcon(iconRegistry, sanitizer);
|
|
25691
|
+
appIconService.registerRiskIcon(iconRegistry, sanitizer);
|
|
25692
|
+
}
|
|
25693
|
+
SelectOneDialog.prototype.ngOnDestroy = function () {
|
|
25694
|
+
this.ngUnsubscribe.next();
|
|
25695
|
+
this.ngUnsubscribe.complete();
|
|
25696
|
+
this.globalService.setSearchRelated([]);
|
|
25697
|
+
this.selectedFolder = null;
|
|
25698
|
+
};
|
|
25699
|
+
SelectOneDialog.prototype.onMessage = function (event) {
|
|
25700
|
+
if (event.data === ShowHideSearchResultConst.HIDE_SEARCH_RESULT) {
|
|
25701
|
+
this.autoComplete.closePanel();
|
|
25702
|
+
}
|
|
25703
|
+
};
|
|
25704
|
+
SelectOneDialog.prototype.ngOnInit = function () {
|
|
25705
|
+
var _this = this;
|
|
25706
|
+
this.translate.getLanguageSubject$.pipe().subscribe(function (res) {
|
|
25707
|
+
if (res) {
|
|
25708
|
+
_this.LANG = _this.translate.getObjectLang(res);
|
|
25709
|
+
}
|
|
25710
|
+
});
|
|
25711
|
+
this.globalService.searchRelated.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (res) {
|
|
25712
|
+
if (res && res.length) {
|
|
25713
|
+
_this.filteredOptions = res;
|
|
25714
|
+
}
|
|
25715
|
+
});
|
|
25716
|
+
this.myControl.valueChanges.pipe(operators.debounceTime(1000)).subscribe(function (val) {
|
|
25717
|
+
_this.isInputValue = true;
|
|
25718
|
+
_this.onSearchRelated(val);
|
|
25719
|
+
});
|
|
25720
|
+
this.itemType = this.getDataTypeId(this.moduleId);
|
|
25721
|
+
};
|
|
25722
|
+
SelectOneDialog.prototype.ngAfterViewChecked = function () {
|
|
25723
|
+
this.cdRef.detectChanges();
|
|
25724
|
+
if (this.filteredOptions && this.filteredOptions.length) {
|
|
25725
|
+
this.autoComplete.openPanel();
|
|
25726
|
+
this.setResultHeight();
|
|
25727
|
+
}
|
|
25728
|
+
else if (this.autoComplete) {
|
|
25729
|
+
this.autoComplete.closePanel();
|
|
25730
|
+
}
|
|
25731
|
+
};
|
|
25732
|
+
SelectOneDialog.prototype.getDataTypeId = function (moduleId) {
|
|
25733
|
+
var itemType;
|
|
25734
|
+
switch (moduleId) {
|
|
25735
|
+
case ModuleType.documentProcess:
|
|
25736
|
+
itemType = this.dataType.process;
|
|
25737
|
+
break;
|
|
25738
|
+
case ModuleType.deviation:
|
|
25739
|
+
itemType = this.dataType.deviation;
|
|
25740
|
+
break;
|
|
25741
|
+
case ModuleType.checklist:
|
|
25742
|
+
itemType = this.dataType.checklist;
|
|
25743
|
+
break;
|
|
25744
|
+
case ModuleType.risk:
|
|
25745
|
+
itemType = this.dataType.risk;
|
|
25746
|
+
break;
|
|
25747
|
+
default:
|
|
25748
|
+
itemType = this.dataType.document;
|
|
25749
|
+
break;
|
|
25750
|
+
}
|
|
25751
|
+
return itemType;
|
|
25752
|
+
};
|
|
25753
|
+
SelectOneDialog.prototype.setResultHeight = function (arr) {
|
|
25754
|
+
var maxHeight = 484;
|
|
25755
|
+
var popup_content = document.getElementsByClassName('qmslib_related_popup_content')[0];
|
|
25756
|
+
var line__divider = document.getElementsByClassName('line__divider')[0];
|
|
25757
|
+
if (popup_content && line__divider) {
|
|
25758
|
+
maxHeight = this.getOffsetHeight(popup_content, true) + this.getOffsetHeight(line__divider, true) * 2;
|
|
25759
|
+
}
|
|
25760
|
+
var contentResult = document.getElementsByClassName('cdk-virtual-scroll-content-wrapper')[0];
|
|
25761
|
+
var viewreports = document.getElementsByClassName('related-viewport')[0];
|
|
25762
|
+
if (viewreports) {
|
|
25763
|
+
if (contentResult.offsetHeight <= maxHeight) {
|
|
25764
|
+
viewreports.style.height = contentResult.offsetHeight + "px";
|
|
25765
|
+
}
|
|
25766
|
+
else {
|
|
25767
|
+
viewreports.style.height = maxHeight + "px";
|
|
25768
|
+
}
|
|
25769
|
+
}
|
|
25770
|
+
};
|
|
25771
|
+
SelectOneDialog.prototype.onSearchRelated = function (_val) {
|
|
25772
|
+
this.filteredOptions = [];
|
|
25773
|
+
if (typeof (_val) === 'object') {
|
|
25774
|
+
this.myControl.setValue('');
|
|
25775
|
+
}
|
|
25776
|
+
else if (typeof (_val) === 'string') {
|
|
25777
|
+
if (!!_val) {
|
|
25778
|
+
this.onSearch.emit(_val);
|
|
25779
|
+
}
|
|
25780
|
+
}
|
|
25781
|
+
};
|
|
25782
|
+
SelectOneDialog.prototype.getModuleFilteredOptions = function () {
|
|
25783
|
+
if (this.listChildrenSelectOne.length) {
|
|
25784
|
+
for (var index = 0; index < this.listChildrenSelectOne.length; index++) {
|
|
25785
|
+
var firstEl = this.listChildrenSelectOne[index];
|
|
25786
|
+
for (var j = 0; j < this.filteredOptions.length; j++) {
|
|
25787
|
+
var secondEl = this.filteredOptions[j];
|
|
25788
|
+
if (firstEl.id === secondEl.id) {
|
|
25789
|
+
this.filteredOptions.splice(j, 1);
|
|
25790
|
+
}
|
|
25791
|
+
}
|
|
25792
|
+
}
|
|
25793
|
+
}
|
|
25794
|
+
return this.filteredOptions;
|
|
25795
|
+
};
|
|
25796
|
+
SelectOneDialog.prototype.showSearchResult = function () {
|
|
25797
|
+
this.autoComplete.openPanel();
|
|
25798
|
+
};
|
|
25799
|
+
SelectOneDialog.prototype.displayRelated = function (related) {
|
|
25800
|
+
return related ? related.itemName : undefined;
|
|
25801
|
+
};
|
|
25802
|
+
SelectOneDialog.prototype.selectItemSearched = function (item) {
|
|
25803
|
+
var _a;
|
|
25804
|
+
if ((_a = this.treeConfig) === null || _a === void 0 ? void 0 : _a.selectOne) {
|
|
25805
|
+
this.disabledList = [];
|
|
25806
|
+
}
|
|
25807
|
+
// reset to root
|
|
25808
|
+
this.expandToChildNode = [''];
|
|
25809
|
+
this.checkedNodeList = [];
|
|
25810
|
+
var position = -1;
|
|
25811
|
+
var node;
|
|
25812
|
+
var typeId;
|
|
25813
|
+
position = this.treeData.findIndex(function (x) {
|
|
25814
|
+
return x.rootId === item.id;
|
|
25815
|
+
});
|
|
25816
|
+
typeId = item.itemType;
|
|
25817
|
+
if (position >= 0) {
|
|
25818
|
+
node = this.treeData[position];
|
|
25819
|
+
this.checkedNodeList.push({
|
|
25820
|
+
moduleId: this.moduleId,
|
|
25821
|
+
id: node.rootId,
|
|
25822
|
+
itemName: node.rootName || node.subName,
|
|
25823
|
+
itemType: typeId,
|
|
25824
|
+
itemNumberId: item.itemNumberId,
|
|
25825
|
+
levelType: item.levelType
|
|
25826
|
+
});
|
|
25827
|
+
}
|
|
25828
|
+
var treeNode = {
|
|
25829
|
+
id: node.rootId,
|
|
25830
|
+
name: !!node.rootId ? node.subName : node.rootName,
|
|
25831
|
+
children: [],
|
|
25832
|
+
parentId: node.parentId
|
|
25833
|
+
};
|
|
25834
|
+
this.dataTrees.toArray()[0].todoFolderSelection([treeNode]);
|
|
25835
|
+
return;
|
|
25836
|
+
};
|
|
25837
|
+
SelectOneDialog.prototype.onCloseClick = function () {
|
|
25838
|
+
this.selectedFolder = null;
|
|
25839
|
+
this.dialogRef.close();
|
|
25840
|
+
};
|
|
25841
|
+
;
|
|
25842
|
+
SelectOneDialog.prototype.onAddClick = function () {
|
|
25843
|
+
this.selectedFolder = null;
|
|
25844
|
+
this.dialogRef.close(this.checkedNodeList);
|
|
25845
|
+
};
|
|
25846
|
+
SelectOneDialog.prototype.getOffsetHeight = function (element, includeMargin) {
|
|
25847
|
+
var elmHeight = 0, elmMargin = 0;
|
|
25848
|
+
elmHeight = element.offsetHeight;
|
|
25849
|
+
if (includeMargin) {
|
|
25850
|
+
var style = window.getComputedStyle(element);
|
|
25851
|
+
elmMargin = parseFloat(style.marginTop.replace('px', '')) + parseFloat(style.marginBottom.replace('px', ''));
|
|
25852
|
+
}
|
|
25853
|
+
return (elmHeight + elmMargin);
|
|
25854
|
+
};
|
|
25855
|
+
SelectOneDialog.prototype.getItemChipName = function (item) {
|
|
25856
|
+
if (item.itemType === DataType.checklist || item.itemType === DataType.deviation) {
|
|
25857
|
+
return (item.parentName && item.itemName !== item.parentName) ? item.parentName + "/" + item.itemName : item.itemName;
|
|
25858
|
+
}
|
|
25859
|
+
return item.itemName;
|
|
25860
|
+
};
|
|
25861
|
+
SelectOneDialog.prototype.isEllipsisActive = function (e) {
|
|
25862
|
+
return e ? (e.clientWidth < e.scrollWidth) : false;
|
|
25863
|
+
};
|
|
25864
|
+
SelectOneDialog.prototype.getNodeIcon = function (item) {
|
|
25865
|
+
switch (item.itemType) {
|
|
25866
|
+
case DataType.folder: {
|
|
25867
|
+
switch (item.levelType) {
|
|
25868
|
+
case DocumentNodeType.DepartmentFolder:
|
|
25869
|
+
return 'department_folder_outlined';
|
|
25870
|
+
case DocumentNodeType.RegionalFolder:
|
|
25871
|
+
return 'regional_folder_outlined';
|
|
25872
|
+
case DocumentNodeType.TopFolder:
|
|
25873
|
+
return 'enterprise_folder_outlined';
|
|
25874
|
+
case DocumentNodeType.Folder:
|
|
25875
|
+
return 'local_folder_outlined';
|
|
25876
|
+
default:
|
|
25877
|
+
return 'folder_outlined';
|
|
25878
|
+
}
|
|
25879
|
+
}
|
|
25880
|
+
case DataType.document: {
|
|
25881
|
+
switch (item.levelType) {
|
|
25882
|
+
case DocumentNodeType.DepartmentFolder:
|
|
25883
|
+
return 'document_department';
|
|
25884
|
+
case DocumentNodeType.RegionalFolder:
|
|
25885
|
+
return 'document_regional';
|
|
25886
|
+
case DocumentNodeType.TopFolder:
|
|
25887
|
+
return 'document_enterprise';
|
|
25888
|
+
case DocumentNodeType.Folder:
|
|
25889
|
+
return 'document_local';
|
|
25890
|
+
default:
|
|
25891
|
+
return 'document';
|
|
25892
|
+
}
|
|
25893
|
+
}
|
|
25894
|
+
case DataType.area:
|
|
25895
|
+
return 'process_area_outlined';
|
|
25896
|
+
case DataType.process:
|
|
25897
|
+
return 'process';
|
|
25898
|
+
case DataType.deviation:
|
|
25899
|
+
return 'deviation';
|
|
25900
|
+
case DataType.checklist:
|
|
25901
|
+
return 'checklist';
|
|
25902
|
+
case DataType.risk:
|
|
25903
|
+
return 'risk';
|
|
25904
|
+
default:
|
|
25905
|
+
return 'folder_outlined';
|
|
25906
|
+
}
|
|
25907
|
+
};
|
|
25908
|
+
SelectOneDialog.prototype.getParentName = function (item) {
|
|
25909
|
+
if (item.itemType === this.dataType.checklist || item.itemType === this.dataType.deviation) {
|
|
25910
|
+
return item.parentName;
|
|
25911
|
+
}
|
|
25912
|
+
return null;
|
|
25913
|
+
};
|
|
25914
|
+
SelectOneDialog.prototype.getItemId = function (item) {
|
|
25915
|
+
if (item.itemType === this.dataType.process) {
|
|
25916
|
+
return this.LANG.PROCESS_ID + ": " + item.itemNumberId + "; " + item.statusName;
|
|
25917
|
+
}
|
|
25918
|
+
else if (item.itemType === this.dataType.document) {
|
|
25919
|
+
return this.LANG.DOCUMENT_ID + ": " + item.itemNumberId + "; " + item.statusName;
|
|
25920
|
+
}
|
|
25921
|
+
return null;
|
|
25922
|
+
};
|
|
25923
|
+
SelectOneDialog.prototype.selectNodeTreeEvent = function (node) {
|
|
25924
|
+
var _a, _b;
|
|
25925
|
+
var position = -1;
|
|
25926
|
+
var parentName = '';
|
|
25927
|
+
var itemNumberId = '';
|
|
25928
|
+
position = !node.expandable ? this.treeData.findIndex(function (p) { return p.childId === node.id && p.rootId === node.parentId; }) :
|
|
25929
|
+
this.treeData.findIndex(function (p) { return p.rootId === node.id; });
|
|
25930
|
+
parentName = this.treeData[position].parentId ? this.treeData[position].subName : this.treeData[position].rootName;
|
|
25931
|
+
itemNumberId = (_b = (_a = this.treeData[position]) === null || _a === void 0 ? void 0 : _a.displayId) === null || _b === void 0 ? void 0 : _b.toString();
|
|
25932
|
+
this.checkedNodeList = [];
|
|
25933
|
+
this.checkedNodeList.push({
|
|
25934
|
+
moduleId: this.moduleId,
|
|
25935
|
+
id: node.id,
|
|
25936
|
+
itemName: node.name,
|
|
25937
|
+
itemType: node.itemType,
|
|
25938
|
+
parentId: node.parentId,
|
|
25939
|
+
parentName: parentName,
|
|
25940
|
+
itemNumberId: itemNumberId,
|
|
25941
|
+
levelType: node.levelType
|
|
25942
|
+
});
|
|
25943
|
+
};
|
|
25944
|
+
SelectOneDialog.prototype.getChildNodeSelectOne = function (listChildren) {
|
|
25945
|
+
this.listChildrenSelectOne = [];
|
|
25946
|
+
this.listChildrenSelectOne = listChildren;
|
|
25947
|
+
};
|
|
25948
|
+
return SelectOneDialog;
|
|
25949
|
+
}());
|
|
25950
|
+
SelectOneDialog.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SelectOneDialog, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: TranslateLibraryService }, { token: i1__namespace$2.MatDialogRef }, { token: QMSSelectOneGlobalService }, { token: i4__namespace.MatIconRegistry }, { token: i5__namespace$2.DomSanitizer }, { token: QMSIconRegistryService }, { token: i1$2.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
25951
|
+
SelectOneDialog.ɵcmp = i0__namespace.ɵɵ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: i7$1.MatAutocompleteTrigger, static: true }, { propertyName: "dataTrees", predicate: TreeComponent, descendants: true }], ngImport: i0__namespace, 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__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7__namespace.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { type: i8__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation"], outputs: ["scrolledIndexChange"] }, { type: i7__namespace$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__namespace$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__namespace$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__namespace$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i12__namespace.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__namespace.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__namespace.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { type: i10__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i10__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i8__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: QMSScrollbarDirective, selector: "[qms-scrollbar]", inputs: ["isNoneBackground"] }, { type: i5__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
25952
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SelectOneDialog, decorators: [{
|
|
25953
|
+
type: i0.Component,
|
|
25954
|
+
args: [{
|
|
25955
|
+
selector: 'qms-select-one',
|
|
25956
|
+
templateUrl: './select-one.component.html',
|
|
25957
|
+
styleUrls: ['./select-one.component.scss'],
|
|
25958
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
25959
|
+
}]
|
|
25960
|
+
}], ctorParameters: function () {
|
|
25961
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: TranslateLibraryService }, { type: i1__namespace$2.MatDialogRef }, { type: QMSSelectOneGlobalService }, { type: i4__namespace.MatIconRegistry }, { type: i5__namespace$2.DomSanitizer }, { type: QMSIconRegistryService }, { type: SelectOnePopupData, decorators: [{
|
|
25962
|
+
type: i0.Inject,
|
|
25963
|
+
args: [i1$2.MAT_DIALOG_DATA]
|
|
25964
|
+
}] }];
|
|
25965
|
+
}, propDecorators: { dataTrees: [{
|
|
25966
|
+
type: i0.ViewChildren,
|
|
25967
|
+
args: [TreeComponent, {}]
|
|
25968
|
+
}], autoComplete: [{
|
|
25969
|
+
type: i0.ViewChild,
|
|
25970
|
+
args: ['autoCompleteInputSearch', { read: i7$1.MatAutocompleteTrigger, static: true }]
|
|
25971
|
+
}], onMessage: [{
|
|
25972
|
+
type: i0.HostListener,
|
|
25973
|
+
args: ['window:message', ['$event']]
|
|
25974
|
+
}] } });
|
|
25975
|
+
|
|
25976
|
+
var QMSSelectOneModule = /** @class */ (function () {
|
|
25977
|
+
function QMSSelectOneModule() {
|
|
25978
|
+
}
|
|
25979
|
+
return QMSSelectOneModule;
|
|
25980
|
+
}());
|
|
25981
|
+
QMSSelectOneModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
25982
|
+
QMSSelectOneModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneModule, declarations: [SelectOneDialog], imports: [i5$1.CommonModule,
|
|
25983
|
+
i4$2.MatTreeModule,
|
|
25984
|
+
i4.MatIconModule,
|
|
25985
|
+
i9$1.MatButtonModule,
|
|
25986
|
+
i6.MatCheckboxModule,
|
|
25987
|
+
i12$1.MatExpansionModule,
|
|
25988
|
+
i7$1.MatAutocompleteModule,
|
|
25989
|
+
i10.ReactiveFormsModule,
|
|
25990
|
+
i8.ScrollingModule,
|
|
25991
|
+
i2.MatCardModule,
|
|
25992
|
+
i1$4.MatSidenavModule,
|
|
25993
|
+
i2$1.MatListModule,
|
|
25994
|
+
SharedMaterialModule,
|
|
25995
|
+
QMSListModule,
|
|
25996
|
+
QmsAngularModule,
|
|
25997
|
+
QMSBreadcrumbModule,
|
|
25998
|
+
QMSAppIconModule,
|
|
25999
|
+
QMSTreeModule], exports: [SelectOneDialog] });
|
|
26000
|
+
QMSSelectOneModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneModule, imports: [[
|
|
26001
|
+
i5$1.CommonModule,
|
|
26002
|
+
i4$2.MatTreeModule,
|
|
26003
|
+
i4.MatIconModule,
|
|
26004
|
+
i9$1.MatButtonModule,
|
|
26005
|
+
i6.MatCheckboxModule,
|
|
26006
|
+
i12$1.MatExpansionModule,
|
|
26007
|
+
i7$1.MatAutocompleteModule,
|
|
26008
|
+
i10.ReactiveFormsModule,
|
|
26009
|
+
i8.ScrollingModule,
|
|
26010
|
+
i2.MatCardModule,
|
|
26011
|
+
i1$4.MatSidenavModule,
|
|
26012
|
+
i2$1.MatListModule,
|
|
26013
|
+
SharedMaterialModule,
|
|
26014
|
+
QMSListModule,
|
|
26015
|
+
QmsAngularModule,
|
|
26016
|
+
QMSBreadcrumbModule,
|
|
26017
|
+
QMSAppIconModule,
|
|
26018
|
+
QMSTreeModule
|
|
26019
|
+
]] });
|
|
26020
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: QMSSelectOneModule, decorators: [{
|
|
26021
|
+
type: i0.NgModule,
|
|
26022
|
+
args: [{
|
|
26023
|
+
declarations: [
|
|
26024
|
+
SelectOneDialog
|
|
26025
|
+
],
|
|
26026
|
+
imports: [
|
|
26027
|
+
i5$1.CommonModule,
|
|
26028
|
+
i4$2.MatTreeModule,
|
|
26029
|
+
i4.MatIconModule,
|
|
26030
|
+
i9$1.MatButtonModule,
|
|
26031
|
+
i6.MatCheckboxModule,
|
|
26032
|
+
i12$1.MatExpansionModule,
|
|
26033
|
+
i7$1.MatAutocompleteModule,
|
|
26034
|
+
i10.ReactiveFormsModule,
|
|
26035
|
+
i8.ScrollingModule,
|
|
26036
|
+
i2.MatCardModule,
|
|
26037
|
+
i1$4.MatSidenavModule,
|
|
26038
|
+
i2$1.MatListModule,
|
|
26039
|
+
SharedMaterialModule,
|
|
26040
|
+
QMSListModule,
|
|
26041
|
+
QmsAngularModule,
|
|
26042
|
+
QMSBreadcrumbModule,
|
|
26043
|
+
QMSAppIconModule,
|
|
26044
|
+
QMSTreeModule
|
|
26045
|
+
],
|
|
26046
|
+
exports: [
|
|
26047
|
+
SelectOneDialog
|
|
26048
|
+
]
|
|
26049
|
+
}]
|
|
26050
|
+
}] });
|
|
26051
|
+
|
|
26052
|
+
var ISelectOneItem = /** @class */ (function () {
|
|
26053
|
+
function ISelectOneItem() {
|
|
26054
|
+
}
|
|
26055
|
+
return ISelectOneItem;
|
|
26056
|
+
}());
|
|
26057
|
+
|
|
25386
26058
|
/*
|
|
25387
26059
|
* Public API Surface of qms-angular
|
|
25388
26060
|
*/
|
|
@@ -25415,6 +26087,7 @@
|
|
|
25415
26087
|
exports.ENTERPRISE_FOLDER_OUTLINED_ICON = ENTERPRISE_FOLDER_OUTLINED_ICON;
|
|
25416
26088
|
exports.FlowChartConst = FlowChartConst;
|
|
25417
26089
|
exports.HaloService = HaloService;
|
|
26090
|
+
exports.ISelectOneItem = ISelectOneItem;
|
|
25418
26091
|
exports.IconModel = IconModel;
|
|
25419
26092
|
exports.InformationCoverItem = InformationCoverItem;
|
|
25420
26093
|
exports.InspectorService = InspectorService;
|
|
@@ -25525,6 +26198,8 @@
|
|
|
25525
26198
|
exports.QMSSearchFieldDirective = QMSSearchFieldDirective;
|
|
25526
26199
|
exports.QMSSelectGlobalService = QMSSelectGlobalService;
|
|
25527
26200
|
exports.QMSSelectIncludeChildrenModule = QMSSelectIncludeChildrenModule;
|
|
26201
|
+
exports.QMSSelectOneGlobalService = QMSSelectOneGlobalService;
|
|
26202
|
+
exports.QMSSelectOneModule = QMSSelectOneModule;
|
|
25528
26203
|
exports.QMSSnackbarConfig = QMSSnackbarConfig;
|
|
25529
26204
|
exports.QMSSuffixDirective = QMSSuffixDirective;
|
|
25530
26205
|
exports.QMSSuffixFieldDirective = QMSSuffixFieldDirective;
|
|
@@ -25583,8 +26258,13 @@
|
|
|
25583
26258
|
exports.SelectConst = SelectConst;
|
|
25584
26259
|
exports.SelectDialog = SelectDialog;
|
|
25585
26260
|
exports.SelectIncludeChildrenPopUpComponent = SelectIncludeChildrenPopUpComponent;
|
|
26261
|
+
exports.SelectOneDialog = SelectOneDialog;
|
|
26262
|
+
exports.SelectOnePopupData = SelectOnePopupData;
|
|
26263
|
+
exports.SelectOption = SelectOption;
|
|
25586
26264
|
exports.SelectPopupData = SelectPopupData;
|
|
26265
|
+
exports.SelectedOption = SelectedOption;
|
|
25587
26266
|
exports.SharedModule = SharedModule;
|
|
26267
|
+
exports.ShowHideSearchResultConst = ShowHideSearchResultConst;
|
|
25588
26268
|
exports.SideNav = SideNav;
|
|
25589
26269
|
exports.SideNavItem = SideNavItem;
|
|
25590
26270
|
exports.SidenavComponent = SidenavComponent;
|