qms-angular 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/qms-angular.umd.js +883 -590
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/common/models/qms-flat-node.model.js +1 -1
- package/esm2015/lib/common/models/qms-tree-node.model.js +1 -1
- package/esm2015/lib/components/select-access-dialog/common/animation.js +27 -3
- package/esm2015/lib/components/select-access-dialog/model/access-paging.model.js +12 -0
- package/esm2015/lib/components/select-access-dialog/model/filter-person.model.js +3 -0
- package/esm2015/lib/components/select-access-dialog/model/select-access-config.model.js +2 -1
- package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +4 -3
- package/esm2015/lib/components/select-access-dialog/public-api.js +4 -1
- package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +201 -125
- package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +4 -2
- package/esm2015/lib/components/select-department/common/animation.js +26 -2
- package/esm2015/lib/components/select-department/select-department.component.js +21 -21
- package/esm2015/lib/components/select-department/select-department.module.js +2 -2
- package/esm2015/lib/components/select-department-tree/animation/animation.js +2 -2
- package/esm2015/lib/components/select-department-tree/model/department-paging.model.js +9 -0
- package/esm2015/lib/components/select-department-tree/model/selection-change.model.js +2 -0
- package/esm2015/lib/components/select-department-tree/public-api.js +3 -1
- package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +312 -236
- package/esm2015/lib/components/select-one/select-one.component.js +7 -16
- package/esm2015/lib/components/tree/model/tree-flat-node.model.js +1 -1
- package/esm2015/lib/components/tree/model/tree-node.model.js +1 -1
- package/esm2015/lib/components/tree/tree.component.js +18 -79
- package/esm2015/lib/components/tree/tree.function.js +2 -1
- package/esm2015/lib/directives/content-changes.directive.js +32 -0
- package/esm2015/lib/directives/tooltip/tooltip-elipsify.directive.js +51 -0
- package/esm2015/lib/directives/tooltip/tooltip-renderer.directive.js +1 -1
- package/esm2015/lib/model/en.js +3 -2
- package/esm2015/lib/model/no.js +3 -2
- package/esm2015/lib/qms-angular.module.js +9 -3
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +62 -50
- package/esm2015/public-api.js +3 -1
- package/fesm2015/qms-angular.js +828 -578
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/common/models/qms-flat-node.model.d.ts +2 -0
- package/lib/common/models/qms-tree-node.model.d.ts +5 -0
- package/lib/components/select-access-dialog/model/access-paging.model.d.ts +9 -0
- package/lib/components/select-access-dialog/model/filter-person.model.d.ts +6 -0
- package/lib/components/select-access-dialog/model/select-access-config.model.d.ts +1 -0
- package/lib/components/select-access-dialog/model/select-access-data.d.ts +4 -2
- package/lib/components/select-access-dialog/public-api.d.ts +3 -0
- package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +41 -18
- package/lib/components/select-department/select-department.component.d.ts +7 -6
- package/lib/components/select-department-tree/model/department-paging.model.d.ts +5 -0
- package/lib/components/select-department-tree/model/selection-change.model.d.ts +4 -0
- package/lib/components/select-department-tree/public-api.d.ts +2 -0
- package/lib/components/select-department-tree/select-department-tree.component.d.ts +24 -15
- package/lib/components/select-one/select-one.component.d.ts +0 -1
- package/lib/components/tree/model/tree-flat-node.model.d.ts +1 -0
- package/lib/components/tree/model/tree-node.model.d.ts +1 -0
- package/lib/components/tree/tree.component.d.ts +4 -1
- package/lib/directives/content-changes.directive.d.ts +9 -0
- package/lib/directives/tooltip/tooltip-elipsify.directive.d.ts +13 -0
- package/lib/directives/tooltip/tooltip-renderer.directive.d.ts +2 -2
- package/lib/model/en.d.ts +2 -1
- package/lib/model/no.d.ts +2 -1
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +1 -1
- package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/qms-angular.metadata.json +1 -1
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +5 -1
- package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +103 -41
- package/src/lib/components/select-department/select-department.component.scss +12 -0
- package/src/lib/components/select-department-tree/select-department-tree.component.scss +1 -1
- package/src/lib/components/select-one/select-one.component.scss +77 -80
@@ -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/dialog'), require('rxjs/operators'), require('@angular/material/autocomplete'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/material/input'), require('@angular/material/card'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/chips'), require('@angular/material/button'), require('@angular/material/core'), require('@angular/material/progress-spinner'), require('@angular/cdk/a11y'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/platform-browser/animations'), require('moment'), 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('buffer'), require('dagre'), require('@angular/material/tooltip'), require('@angular/material/tabs'), require('@angular/material/progress-bar'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@angular/cdk/stepper'), require('@angular/material/stepper'), require('@angular/material/slide-toggle'), require('@angular/cdk/drag-drop'), require('@angular/animations'), require('@angular/material/
|
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/dialog', 'rxjs/operators', '@angular/material/autocomplete', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/material/input', '@angular/material/card', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/chips', '@angular/material/button', '@angular/material/core', '@angular/material/progress-spinner', '@angular/cdk/a11y', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/platform-browser/animations', 'moment', '@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', 'buffer', 'dagre', '@angular/material/tooltip', '@angular/material/tabs', '@angular/material/progress-bar', '@angular/material/badge', '@angular/material/toolbar', '@angular/cdk/stepper', '@angular/material/stepper', '@angular/material/slide-toggle', '@angular/cdk/drag-drop', '@angular/animations', '@angular/material/
|
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.dialog, global.rxjs.operators, global.ng.material.autocomplete, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.material.input, global.ng.material.card, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.chips, global.ng.material.button, global.ng.material.core, global.ng.material.progressSpinner, global.ng.cdk.a11y, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.platformBrowser.animations, global.moment, 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.ckeditor5Angular, global.$$1, global._, global.buffer, global.dagre, global.ng.material.tooltip, global.ng.material.tabs, global.ng.material.progressBar, global.ng.material.badge, global.ng.material.toolbar, global.ng.cdk.stepper, global.ng.material.stepper, global.ng.material.slideToggle, global.ng.cdk.dragDrop, global.ng.animations, global.ng.material.
|
5
|
-
})(this, (function (exports, i0, rxjs, i1, forms, formField, radio, dialog, operators, autocomplete, overlay, portal, input, card, icon, checkbox, chips, button, core, progressSpinner, a11y, coercion, collections, animations, moment, list, expansion, scrolling, sidenav, tree$1, menu, platformBrowser, tree, i1$1, buttonToggle, select, snackBar, ckeditor5Angular, $$1, _, buffer, dagre, tooltip, tabs, progressBar, badge, toolbar, stepper$1, stepper, slideToggle, dragDrop, animations$1,
|
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/dialog'), require('rxjs/operators'), require('@angular/material/autocomplete'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/material/input'), require('@angular/material/card'), require('@angular/material/icon'), require('@angular/material/checkbox'), require('@angular/material/chips'), require('@angular/material/button'), require('@angular/material/core'), require('@angular/material/progress-spinner'), require('@angular/cdk/a11y'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/platform-browser/animations'), require('moment'), 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('buffer'), require('dagre'), require('@angular/material/tooltip'), require('@angular/material/tabs'), require('@angular/material/progress-bar'), require('@angular/material/badge'), require('@angular/material/toolbar'), require('@angular/cdk/stepper'), require('@angular/material/stepper'), require('@angular/material/slide-toggle'), require('@angular/cdk/drag-drop'), require('@angular/animations'), require('@angular/material/paginator'), require('@angular/material/divider'), require('ngx-mat-select-search')) :
|
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/dialog', 'rxjs/operators', '@angular/material/autocomplete', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/material/input', '@angular/material/card', '@angular/material/icon', '@angular/material/checkbox', '@angular/material/chips', '@angular/material/button', '@angular/material/core', '@angular/material/progress-spinner', '@angular/cdk/a11y', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/platform-browser/animations', 'moment', '@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', 'buffer', 'dagre', '@angular/material/tooltip', '@angular/material/tabs', '@angular/material/progress-bar', '@angular/material/badge', '@angular/material/toolbar', '@angular/cdk/stepper', '@angular/material/stepper', '@angular/material/slide-toggle', '@angular/cdk/drag-drop', '@angular/animations', '@angular/material/paginator', '@angular/material/divider', 'ngx-mat-select-search'], 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.dialog, global.rxjs.operators, global.ng.material.autocomplete, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.material.input, global.ng.material.card, global.ng.material.icon, global.ng.material.checkbox, global.ng.material.chips, global.ng.material.button, global.ng.material.core, global.ng.material.progressSpinner, global.ng.cdk.a11y, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.platformBrowser.animations, global.moment, 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.ckeditor5Angular, global.$$1, global._, global.buffer, global.dagre, global.ng.material.tooltip, global.ng.material.tabs, global.ng.material.progressBar, global.ng.material.badge, global.ng.material.toolbar, global.ng.cdk.stepper, global.ng.material.stepper, global.ng.material.slideToggle, global.ng.cdk.dragDrop, global.ng.animations, global.ng.material.paginator, global.ng.material.divider, global.ngxMatSelectSearch));
|
5
|
+
})(this, (function (exports, i0, rxjs, i1, forms, formField, radio, dialog, operators, autocomplete, overlay, portal, input, card, icon, checkbox, chips, button, core, progressSpinner, a11y, coercion, collections, animations, moment, list, expansion, scrolling, sidenav, tree$1, menu, platformBrowser, tree, i1$1, buttonToggle, select, snackBar, ckeditor5Angular, $$1, _, buffer, dagre, tooltip, tabs, progressBar, badge, toolbar, stepper$1, stepper, slideToggle, dragDrop, animations$1, paginator, divider, ngxMatSelectSearch) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -112,7 +112,8 @@
|
|
112
112
|
"TYPE": "Type",
|
113
113
|
"SEARCH_WITH_NAME": "Search first and last name",
|
114
114
|
"RESULT_SEARCH_FOR": "Results search for ",
|
115
|
-
"
|
115
|
+
"TOOLTIP_INCLUDE_SUB_DEPARTMENT": "{0} - include {1} sub-departments",
|
116
|
+
"NO_RESULT": "No Result",
|
116
117
|
"ERROR": {
|
117
118
|
"SELECT_DANGER": "You must select one or more events"
|
118
119
|
},
|
@@ -497,7 +498,8 @@
|
|
497
498
|
"TYPE": "Type",
|
498
499
|
"SEARCH_WITH_NAME": "Søk for- og etternavn",
|
499
500
|
"RESULT_SEARCH_FOR": "Resultater søk etter ",
|
500
|
-
"
|
501
|
+
"TOOLTIP_INCLUDE_SUB_DEPARTMENT": "{0} – inkluderer {1} barn",
|
502
|
+
"NO_RESULT": "Inget resultat",
|
501
503
|
"ERROR": {
|
502
504
|
"SELECT_DANGER": "Du må velge en eller flere hendelser"
|
503
505
|
},
|
@@ -3885,6 +3887,91 @@
|
|
3885
3887
|
qmsTransformIcon: [{ type: i0.Input }]
|
3886
3888
|
};
|
3887
3889
|
|
3890
|
+
var EllipsifyDirective = /** @class */ (function (_super) {
|
3891
|
+
__extends(EllipsifyDirective, _super);
|
3892
|
+
function EllipsifyDirective(renderer, elementRef, overlay, overlayPositionBuilder) {
|
3893
|
+
var _this = _super.call(this, overlay, overlayPositionBuilder, elementRef) || this;
|
3894
|
+
_this.renderer = renderer;
|
3895
|
+
_this.elementRef = elementRef;
|
3896
|
+
_this.overlay = overlay;
|
3897
|
+
_this.overlayPositionBuilder = overlayPositionBuilder;
|
3898
|
+
_this.domElement = _this.elementRef.nativeElement;
|
3899
|
+
var elipsify = {
|
3900
|
+
'text-overflow': 'ellipsis',
|
3901
|
+
'overflow': 'hidden',
|
3902
|
+
'white-space': 'nowrap',
|
3903
|
+
};
|
3904
|
+
Object.keys(elipsify).forEach(function (newStyle) {
|
3905
|
+
_this.renderer.setStyle(_this.domElement, "" + newStyle, elipsify[newStyle]);
|
3906
|
+
});
|
3907
|
+
return _this;
|
3908
|
+
}
|
3909
|
+
EllipsifyDirective.prototype.ngAfterViewInit = function () {
|
3910
|
+
this.renderer.setProperty(this.domElement, 'scrollTop', 1);
|
3911
|
+
this.isTitleAttribute();
|
3912
|
+
};
|
3913
|
+
EllipsifyDirective.prototype.isTitleAttribute = function () {
|
3914
|
+
if (this._overlayRef.hasAttached())
|
3915
|
+
return;
|
3916
|
+
if (this.domElement.offsetWidth < this.domElement.scrollWidth) {
|
3917
|
+
var tooltipRef = this._overlayRef.attach(new portal.ComponentPortal(QMSToolTipComponent));
|
3918
|
+
tooltipRef.instance.text = this.domElement.textContent;
|
3919
|
+
tooltipRef.instance.mode = this.mode;
|
3920
|
+
}
|
3921
|
+
};
|
3922
|
+
return EllipsifyDirective;
|
3923
|
+
}(QMSToolTipRendererDirective));
|
3924
|
+
EllipsifyDirective.decorators = [
|
3925
|
+
{ type: i0.Directive, args: [{
|
3926
|
+
selector: '[qms-elipsify]'
|
3927
|
+
},] }
|
3928
|
+
];
|
3929
|
+
EllipsifyDirective.ctorParameters = function () { return [
|
3930
|
+
{ type: i0.Renderer2 },
|
3931
|
+
{ type: i0.ElementRef },
|
3932
|
+
{ type: overlay.Overlay },
|
3933
|
+
{ type: overlay.OverlayPositionBuilder }
|
3934
|
+
]; };
|
3935
|
+
EllipsifyDirective.propDecorators = {
|
3936
|
+
isTitleAttribute: [{ type: i0.HostListener, args: ['focus',] }, { type: i0.HostListener, args: ['mouseenter',] }]
|
3937
|
+
};
|
3938
|
+
|
3939
|
+
var QMSContentChangesDirective = /** @class */ (function () {
|
3940
|
+
function QMSContentChangesDirective(viewContainer, templateRef) {
|
3941
|
+
this.viewContainer = viewContainer;
|
3942
|
+
this.templateRef = templateRef;
|
3943
|
+
this.existView = false;
|
3944
|
+
}
|
3945
|
+
Object.defineProperty(QMSContentChangesDirective.prototype, "qmsContentChanges", {
|
3946
|
+
set: function (val) {
|
3947
|
+
if (!this.existView) {
|
3948
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
3949
|
+
this.existView = true;
|
3950
|
+
}
|
3951
|
+
else if (val !== this.currentValue) {
|
3952
|
+
this.viewContainer.clear();
|
3953
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
3954
|
+
this.currentValue = val;
|
3955
|
+
}
|
3956
|
+
},
|
3957
|
+
enumerable: false,
|
3958
|
+
configurable: true
|
3959
|
+
});
|
3960
|
+
return QMSContentChangesDirective;
|
3961
|
+
}());
|
3962
|
+
QMSContentChangesDirective.decorators = [
|
3963
|
+
{ type: i0.Directive, args: [{
|
3964
|
+
selector: '[qmsContentChanges]'
|
3965
|
+
},] }
|
3966
|
+
];
|
3967
|
+
QMSContentChangesDirective.ctorParameters = function () { return [
|
3968
|
+
{ type: i0.ViewContainerRef },
|
3969
|
+
{ type: i0.TemplateRef }
|
3970
|
+
]; };
|
3971
|
+
QMSContentChangesDirective.propDecorators = {
|
3972
|
+
qmsContentChanges: [{ type: i0.Input }]
|
3973
|
+
};
|
3974
|
+
|
3888
3975
|
var ɵ0$6 = { appearance: 'fill' }, ɵ1$1 = { color: 'none' };
|
3889
3976
|
var QmsAngularModule = /** @class */ (function () {
|
3890
3977
|
function QmsAngularModule() {
|
@@ -3946,7 +4033,9 @@
|
|
3946
4033
|
QMSDialogHeader,
|
3947
4034
|
QMSDialogContent,
|
3948
4035
|
QMSDialogFooter,
|
3949
|
-
QMSMultiIconDirective
|
4036
|
+
QMSMultiIconDirective,
|
4037
|
+
EllipsifyDirective,
|
4038
|
+
QMSContentChangesDirective
|
3950
4039
|
],
|
3951
4040
|
imports: [
|
3952
4041
|
i1.CommonModule,
|
@@ -4007,7 +4096,9 @@
|
|
4007
4096
|
QMSDialogHeader,
|
4008
4097
|
QMSDialogContent,
|
4009
4098
|
QMSDialogFooter,
|
4010
|
-
QMSMultiIconDirective
|
4099
|
+
QMSMultiIconDirective,
|
4100
|
+
EllipsifyDirective,
|
4101
|
+
QMSContentChangesDirective
|
4011
4102
|
],
|
4012
4103
|
providers: [
|
4013
4104
|
{ provide: formField.MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: ɵ0$6 },
|
@@ -5469,6 +5560,7 @@
|
|
5469
5560
|
node.name = keyObj["name"];
|
5470
5561
|
node.parentId = keyObj["parentId"];
|
5471
5562
|
node.levelType = keyObj["levelType"];
|
5563
|
+
node.markedGetChildren = keyObj["markedGetChildren"];
|
5472
5564
|
if (value != null) {
|
5473
5565
|
if (typeof value === 'object') {
|
5474
5566
|
node.children = _this.buildArrayTree(value, level + 1);
|
@@ -5607,7 +5699,7 @@
|
|
5607
5699
|
this.idCheckIcon = '';
|
5608
5700
|
this.listChildNode = [];
|
5609
5701
|
this.dataType = DataType$1;
|
5610
|
-
this.
|
5702
|
+
this._transformer = function (node, level) {
|
5611
5703
|
var _a;
|
5612
5704
|
var checkHasChild = true;
|
5613
5705
|
if (!node.children) {
|
@@ -5635,10 +5727,11 @@
|
|
5635
5727
|
hasChild: checkHasChild,
|
5636
5728
|
parentId: node.parentId,
|
5637
5729
|
disabled: false,
|
5638
|
-
levelType: node.levelType
|
5730
|
+
levelType: node.levelType,
|
5731
|
+
markedGetChildren: node.markedGetChildren || false
|
5639
5732
|
};
|
5640
5733
|
};
|
5641
|
-
this.treeFlattener = new tree$1.MatTreeFlattener(this.
|
5734
|
+
this.treeFlattener = new tree$1.MatTreeFlattener(this._transformer, function (node) {
|
5642
5735
|
return node.level;
|
5643
5736
|
}, function (node) {
|
5644
5737
|
return node.expandable;
|
@@ -5848,7 +5941,7 @@
|
|
5848
5941
|
this_3.disabledList.forEach(function (el) {
|
5849
5942
|
var _a;
|
5850
5943
|
if (((_a = _this.treeControl.dataNodes[i].id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (el === null || el === void 0 ? void 0 : el.toLowerCase())) {
|
5851
|
-
|
5944
|
+
// this.treeControl.expand(this.treeControl.dataNodes[i]);
|
5852
5945
|
}
|
5853
5946
|
});
|
5854
5947
|
};
|
@@ -6102,85 +6195,22 @@
|
|
6102
6195
|
this.selectFolderEvent.emit(node);
|
6103
6196
|
};
|
6104
6197
|
TreeComponent.prototype.onExpandNode = function (node, isExpandNode) {
|
6105
|
-
|
6106
|
-
|
6107
|
-
|
6108
|
-
|
6109
|
-
|
6110
|
-
|
6111
|
-
|
6112
|
-
node.itemType = this.checkDataTypeSelectNode(node);
|
6113
|
-
this.selectNodeEvent.emit(node);
|
6114
|
-
}
|
6115
|
-
return;
|
6116
|
-
}
|
6117
|
-
if (window[RelatedConst$1.IS_DISPLAY_SEARCH_RESULT]) {
|
6118
|
-
window.postMessage(RelatedConst$1.HIDE_SEARCH_RESULT, '*');
|
6119
|
-
}
|
6120
|
-
// set useExpandFeature = true to improve performance of tree loading
|
6121
|
-
if (!isExpandNode || !this.useExpandFeature) {
|
6122
|
-
for (var i = 0; i < this.arrIndex.length; i++) {
|
6123
|
-
if (this.arrIndex[i] === node.id) {
|
6124
|
-
this.arrIndex.splice(i, 1);
|
6125
|
-
}
|
6126
|
-
}
|
6127
|
-
if (isExpandNode && !this.expandOnTitleClick) {
|
6198
|
+
if (isExpandNode && !this.expandOnTitleClick) {
|
6199
|
+
if (!node.markedGetChildren && !this.treeControl.isExpanded(node)) {
|
6200
|
+
this.treeControl.dataNodes.forEach(function (x) {
|
6201
|
+
if (x.parentId === node.parentId && x.id === node.id) {
|
6202
|
+
x.markedGetChildren = true;
|
6203
|
+
}
|
6204
|
+
});
|
6128
6205
|
this.nodeExpandEvent.emit(node);
|
6129
6206
|
}
|
6130
|
-
return;
|
6131
|
-
}
|
6132
|
-
// get array index to expand node after refresh datasource
|
6133
|
-
var index = 0;
|
6134
|
-
var isChange = false;
|
6135
|
-
var isRemove = false;
|
6136
|
-
this.arrIndex.push(node.id);
|
6137
|
-
var childArray = this.treeData.filter(function (x) {
|
6138
|
-
return x.parentId === node.id;
|
6139
|
-
});
|
6140
|
-
var rootId = '0';
|
6141
|
-
var parentElement;
|
6142
|
-
var childrenList;
|
6143
|
-
if (childArray.length === 0) {
|
6144
|
-
return;
|
6145
|
-
}
|
6146
|
-
childArray.forEach(function (item) {
|
6147
|
-
if (item.rootId === rootId) {
|
6148
|
-
return;
|
6149
|
-
}
|
6150
|
-
// get child node from original datasource
|
6151
|
-
var child = _this.getChildNode(item.rootId, childArray);
|
6152
|
-
rootId = item.rootId;
|
6153
|
-
index = _this.getNodeIndex(child.id, undefined, _this.dataSource['_treeControl'].dataNodes);
|
6154
|
-
if (index > -1) {
|
6155
|
-
return;
|
6156
|
-
}
|
6157
|
-
// add child node to expand node
|
6158
|
-
parentElement = _this.findChildNode(node.id, _this.dataSource.data);
|
6159
|
-
if (parentElement) {
|
6160
|
-
// temporary remove all node without children => purpose to add node folder first
|
6161
|
-
if (!isRemove) {
|
6162
|
-
childrenList = __spreadArray([], __read(parentElement.children));
|
6163
|
-
_this.removeChildren(parentElement);
|
6164
|
-
isRemove = true;
|
6165
|
-
}
|
6166
|
-
// add node folder first
|
6167
|
-
parentElement.children.push(child);
|
6168
|
-
isChange = true;
|
6169
|
-
}
|
6170
|
-
});
|
6171
|
-
// add node without children again
|
6172
|
-
if (isRemove) {
|
6173
|
-
this.addChildren(parentElement, childrenList);
|
6174
6207
|
}
|
6175
|
-
|
6176
|
-
|
6177
|
-
this.
|
6178
|
-
this.
|
6179
|
-
index = _this.getNodeIndex(item, undefined, _this.dataSource['_treeControl'].dataNodes);
|
6180
|
-
_this.treeControl.expand(_this.treeControl.dataNodes[index]);
|
6181
|
-
});
|
6182
|
-
isChange = false;
|
6208
|
+
else {
|
6209
|
+
this.idCheckIcon = this.idToCheckSelectOne(node.id, node.parentId);
|
6210
|
+
node.itemType = this.checkDataTypeSelectNode(node);
|
6211
|
+
this.selectNodeEvent.emit(node);
|
6183
6212
|
}
|
6213
|
+
return;
|
6184
6214
|
};
|
6185
6215
|
TreeComponent.prototype.removeChildren = function (parentElement) {
|
6186
6216
|
if (parentElement.children) {
|
@@ -24227,8 +24257,10 @@
|
|
24227
24257
|
_this.renderer = renderer;
|
24228
24258
|
_this.elRef = elRef;
|
24229
24259
|
_this.required = false;
|
24260
|
+
_this.editorId = 'qmsckeditor';
|
24230
24261
|
_this.qmsckContentOutput = new i0.EventEmitter();
|
24231
24262
|
_this.ckEditorEventConst = CKEditorEventConst;
|
24263
|
+
_this.isToolbarItemsIdSet = false;
|
24232
24264
|
_this.ckTagname = 'div';
|
24233
24265
|
return _this;
|
24234
24266
|
}
|
@@ -24270,6 +24302,7 @@
|
|
24270
24302
|
};
|
24271
24303
|
QMSCKEditorComponent.prototype.ngOnInit = function () {
|
24272
24304
|
var _this = this;
|
24305
|
+
this.toolbarItemPrefixId = this.editorId + "_toolbar_item_";
|
24273
24306
|
this.name = 'CKEditor custom build';
|
24274
24307
|
this.ckEditor = this.qmsckPlugin.pluginObject;
|
24275
24308
|
this.translate.getLanguageSubject$.pipe(operators.takeUntil(this.ngUnsubcribe)).subscribe(function (res) {
|
@@ -24277,7 +24310,11 @@
|
|
24277
24310
|
_this.LANG = _this.translate.getObjectLang(res);
|
24278
24311
|
}
|
24279
24312
|
});
|
24280
|
-
|
24313
|
+
var toolbarItems = this.qmsckPlugin.itemToolbar;
|
24314
|
+
if (this.isEnabledToggleToolbar() && this.qmsckData.toggledToolbarItems) {
|
24315
|
+
toolbarItems += ',' + this.qmsckData.toggledToolbarItems;
|
24316
|
+
}
|
24317
|
+
this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems);
|
24281
24318
|
this.globalService.setApiUrl(this.qmsckData.apiUrl);
|
24282
24319
|
if (this.isEnabledMathtypeConfig()) {
|
24283
24320
|
this.addMathTypeConfig();
|
@@ -24285,9 +24322,6 @@
|
|
24285
24322
|
if (this.isEnabledTimestampConfig()) {
|
24286
24323
|
this.addTimestampConfig();
|
24287
24324
|
}
|
24288
|
-
if (this.isEnabledToggleToolbar()) {
|
24289
|
-
this.addToggleToolbarConfig();
|
24290
|
-
}
|
24291
24325
|
if (this.isEnabledWProofreader()) {
|
24292
24326
|
this.addWProofreaderConfig();
|
24293
24327
|
}
|
@@ -24302,6 +24336,7 @@
|
|
24302
24336
|
if (this.editorInstance) {
|
24303
24337
|
this.editorInstance.destroy();
|
24304
24338
|
}
|
24339
|
+
$(document).off();
|
24305
24340
|
};
|
24306
24341
|
QMSCKEditorComponent.prototype.registerOnChange = function (fn) {
|
24307
24342
|
this.onChange = fn;
|
@@ -24333,12 +24368,12 @@
|
|
24333
24368
|
};
|
24334
24369
|
QMSCKEditorComponent.prototype.isEnabledToggleToolbar = function () {
|
24335
24370
|
var pattern = /(toggleToolbar)/gmi;
|
24336
|
-
return !!this.qmsckData.
|
24371
|
+
return !!this.qmsckData.toggledToolbarItems
|
24337
24372
|
&& !!this.qmsckPlugin.itemToolbar
|
24338
24373
|
&& this.qmsckPlugin.itemToolbar.search(pattern) > -1;
|
24339
24374
|
};
|
24340
24375
|
QMSCKEditorComponent.prototype.addToggleToolbarConfig = function () {
|
24341
|
-
var items = this.qmsckData.
|
24376
|
+
var items = this.qmsckData.toggledToolbarItems.split(',');
|
24342
24377
|
var toggleToolbarConfig = {
|
24343
24378
|
toggleToolbarConfig: {
|
24344
24379
|
toolbar: items
|
@@ -24406,13 +24441,13 @@
|
|
24406
24441
|
};
|
24407
24442
|
this.ckEditor.defaultConfig = Object.assign(this.ckEditor.defaultConfig || {}, mathTypeConfig);
|
24408
24443
|
};
|
24409
|
-
QMSCKEditorComponent.prototype.onChanged = function (
|
24410
|
-
var editor =
|
24444
|
+
QMSCKEditorComponent.prototype.onChanged = function (_e) {
|
24445
|
+
var editor = _e.editor;
|
24411
24446
|
//this.qmsckContentInput = editor.getData();
|
24412
24447
|
this.qmsckContentOutput.emit(this.qmsckContentInput);
|
24413
24448
|
};
|
24414
|
-
QMSCKEditorComponent.prototype.onBlur = function (
|
24415
|
-
var editor =
|
24449
|
+
QMSCKEditorComponent.prototype.onBlur = function (_e) {
|
24450
|
+
var editor = _e.editor;
|
24416
24451
|
this.qmsckContentInput = editor.getData();
|
24417
24452
|
this.qmsckContentOutput.emit(this.qmsckContentInput);
|
24418
24453
|
};
|
@@ -24456,6 +24491,7 @@
|
|
24456
24491
|
wordsBox.textContent = _this.LANG.QMSCKEDITOR.WORDS + ": " + stats.words + " / " + _this.LANG.QMSCKEDITOR.CHARACTERS + ": " + stats.characters;
|
24457
24492
|
}
|
24458
24493
|
});
|
24494
|
+
this._setEditorInstanceObserver(this.editorId);
|
24459
24495
|
};
|
24460
24496
|
/**
|
24461
24497
|
* Add template - Load template
|
@@ -24648,63 +24684,48 @@
|
|
24648
24684
|
};
|
24649
24685
|
/*
|
24650
24686
|
Toolbar toggle
|
24687
|
+
|
24688
|
+
This is a temporary workaround.
|
24689
|
+
Tracking status and progress of the issue https://github.com/ckeditor/ckeditor5/issues/7383
|
24690
|
+
|
24691
|
+
- Render both default toolbar and toggle toolbar at init time
|
24692
|
+
- Set ID for toolbar items using index:
|
24693
|
+
+ From index 0 to toolbarLength - 1 is the default toolbar
|
24694
|
+
+ From index toolbarLength on is the toggle toolbar
|
24695
|
+
- Show/hide default and toggle toolbar by set display none to corresponding toolbar items based on ID
|
24651
24696
|
*/
|
24652
24697
|
QMSCKEditorComponent.prototype.toggleToolbarEventHandling = function () {
|
24653
|
-
var
|
24654
|
-
var qmsckeditor = window.document.getElementById('qmsckeditor');
|
24698
|
+
var qmsckeditor = window.document.getElementById(this.editorId);
|
24655
24699
|
var toggleAttribute = 'isToggleToolbar';
|
24656
24700
|
var ckeditorTag = 'ckeditor';
|
24657
24701
|
if (qmsckeditor) {
|
24658
24702
|
var isToggleToolbar = qmsckeditor.getAttribute(toggleAttribute) == 'true';
|
24659
24703
|
if (isToggleToolbar) {
|
24660
|
-
this.
|
24704
|
+
this._setToolbarViewMode(true);
|
24661
24705
|
qmsckeditor.setAttribute(toggleAttribute, 'false');
|
24662
24706
|
}
|
24663
24707
|
else {
|
24664
|
-
this.
|
24708
|
+
this._setToolbarViewMode(false);
|
24665
24709
|
qmsckeditor.setAttribute(toggleAttribute, 'true');
|
24666
24710
|
}
|
24667
|
-
var onChanged_1 = this.onChanged.bind(this);
|
24668
|
-
var onBlur_1 = this.onBlur.bind(this);
|
24669
|
-
if (this.editorInstance) {
|
24670
|
-
try {
|
24671
|
-
this.editorInstance.destroy();
|
24672
|
-
}
|
24673
|
-
catch (err) {
|
24674
|
-
console.log(err);
|
24675
|
-
}
|
24676
|
-
}
|
24677
|
-
//This is a temporary workaround.
|
24678
|
-
//Tracking status and progress of the issue https://github.com/ckeditor/ckeditor5/issues/7383
|
24679
|
-
var root = window.document.querySelector(ckeditorTag);
|
24680
|
-
if (!!root) {
|
24681
|
-
var editorElement_1 = null;
|
24682
|
-
if (root.childElementCount > 0) {
|
24683
|
-
editorElement_1 = Array.from(root.children).find(function (i) { return i.nodeName.toLowerCase() == _this.ckTagname.toLowerCase(); });
|
24684
|
-
}
|
24685
|
-
else {
|
24686
|
-
editorElement_1 = window.document.createElement(this.ckTagname);
|
24687
|
-
editorElement_1.style = 'display: none;';
|
24688
|
-
root.appendChild(editorElement_1);
|
24689
|
-
}
|
24690
|
-
this.ckEditor.create(editorElement_1, this.ckeditorConfig).then(function (editor) {
|
24691
|
-
_this.initEditor(editor);
|
24692
|
-
_this.editorInstance = editor;
|
24693
|
-
//Delete cache content
|
24694
|
-
editorElement_1.innerHTML = '';
|
24695
|
-
//setup editor events
|
24696
|
-
var modelDocument = editor.model.document;
|
24697
|
-
var viewDocument = editor.editing.view.document;
|
24698
|
-
modelDocument.on('change:data', function () {
|
24699
|
-
onChanged_1({ editor: editor });
|
24700
|
-
});
|
24701
|
-
viewDocument.on('blur', function () {
|
24702
|
-
onBlur_1({ editor: editor });
|
24703
|
-
});
|
24704
|
-
});
|
24705
|
-
}
|
24706
24711
|
}
|
24707
24712
|
};
|
24713
|
+
QMSCKEditorComponent.prototype._setToolbarViewMode = function (showToggleToolbar) {
|
24714
|
+
var _a, _b, _c, _d;
|
24715
|
+
var toolbarLength = ((_a = this.qmsckPlugin.itemToolbar) === null || _a === void 0 ? void 0 : _a.split(',').length) || 0;
|
24716
|
+
/*
|
24717
|
+
Items in toolbar are indexed:
|
24718
|
+
- From index 0 to toolbarLength - 1 is the default toolbar
|
24719
|
+
- From index toolbarLength on is the toggle toolbar
|
24720
|
+
*/
|
24721
|
+
(_b = $("#" + this.toolbarItemPrefixId + (toolbarLength - 1))) === null || _b === void 0 ? void 0 : _b.prevAll().each(function (index, element) {
|
24722
|
+
element.style.display = showToggleToolbar ? 'none' : '';
|
24723
|
+
});
|
24724
|
+
(_c = $("#" + this.toolbarItemPrefixId + (toolbarLength - 1))) === null || _c === void 0 ? void 0 : _c.css('display', showToggleToolbar ? 'none' : '');
|
24725
|
+
(_d = $("#" + this.toolbarItemPrefixId + (toolbarLength - 1))) === null || _d === void 0 ? void 0 : _d.nextAll().each(function (index, element) {
|
24726
|
+
element.style.display = showToggleToolbar ? '' : 'none';
|
24727
|
+
});
|
24728
|
+
};
|
24708
24729
|
/**
|
24709
24730
|
* Flowchart
|
24710
24731
|
*/
|
@@ -24806,12 +24827,33 @@
|
|
24806
24827
|
});
|
24807
24828
|
});
|
24808
24829
|
};
|
24830
|
+
QMSCKEditorComponent.prototype._setEditorInstanceObserver = function (editorId) {
|
24831
|
+
var _this = this;
|
24832
|
+
$(document).off('DOMNodeInserted').on('DOMNodeInserted', function (e) {
|
24833
|
+
if (!_this.isToolbarItemsIdSet && $(e.target).has('#' + editorId)) {
|
24834
|
+
_this._setIdForToolbarItems();
|
24835
|
+
}
|
24836
|
+
});
|
24837
|
+
};
|
24838
|
+
QMSCKEditorComponent.prototype._setIdForToolbarItems = function () {
|
24839
|
+
var _this = this;
|
24840
|
+
var _a;
|
24841
|
+
var toolbarItems = ((_a = document.querySelector((this.editorId ? '#' + this.editorId : '') + " .ck-toolbar__items")) === null || _a === void 0 ? void 0 : _a.children) || [];
|
24842
|
+
if (!toolbarItems.length) {
|
24843
|
+
return;
|
24844
|
+
}
|
24845
|
+
this.isToolbarItemsIdSet = true;
|
24846
|
+
Array.from(toolbarItems).forEach(function (item, index) {
|
24847
|
+
item.id = "" + _this.toolbarItemPrefixId + index;
|
24848
|
+
});
|
24849
|
+
this.toggleToolbarEventHandling();
|
24850
|
+
};
|
24809
24851
|
return QMSCKEditorComponent;
|
24810
24852
|
}(QMSCKEditorBaseComponent));
|
24811
24853
|
QMSCKEditorComponent.decorators = [
|
24812
24854
|
{ type: i0.Component, args: [{
|
24813
24855
|
selector: 'qms-ckeditor',
|
24814
|
-
template: "<div
|
24856
|
+
template: "<div class=\"qmsckeditor_container\" [id]=\"editorId\">\r\n <ckeditor class=\"qms-ckeditor\" [tagName]=\"ckTagname\" [(editor)]=\"ckEditor\" [config]=\"ckeditorConfig\"\r\n (ready)=\"onReady($event)\" [(ngModel)]=\"qmsckContentInput\" (change)=\"onChanged($event)\" (blur)=\"onBlur($event)\"\r\n [disabled]=\"isDisabled\">\r\n </ckeditor>\r\n <div class=\"sub-container\">\r\n <div class=\"\">\r\n <span>{{LANG.QMSCKEDITOR.ASSISTIVE_TEXT}}</span>\r\n </div>\r\n <div class=\"wordcount-content\"></div>\r\n </div>\r\n</div>",
|
24815
24857
|
providers: [
|
24816
24858
|
QMSCKEditorFullscreenComponent,
|
24817
24859
|
{
|
@@ -24845,6 +24887,7 @@
|
|
24845
24887
|
qmsckContentInput: [{ type: i0.Input }],
|
24846
24888
|
isDisabled: [{ type: i0.Input, args: ['disabled',] }],
|
24847
24889
|
required: [{ type: i0.Input, args: ['required',] }],
|
24890
|
+
editorId: [{ type: i0.Input }],
|
24848
24891
|
qmsckContentOutput: [{ type: i0.Output }],
|
24849
24892
|
onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
|
24850
24893
|
};
|
@@ -27075,13 +27118,6 @@
|
|
27075
27118
|
};
|
27076
27119
|
SelectOneDialog.prototype.ngAfterViewChecked = function () {
|
27077
27120
|
this.cdRef.detectChanges();
|
27078
|
-
if (this.filteredOptions && this.filteredOptions.length) {
|
27079
|
-
this.autoComplete.openPanel();
|
27080
|
-
this.setResultHeight();
|
27081
|
-
}
|
27082
|
-
else if (this.autoComplete) {
|
27083
|
-
this.autoComplete.closePanel();
|
27084
|
-
}
|
27085
27121
|
};
|
27086
27122
|
SelectOneDialog.prototype.getDataTypeId = function (moduleId) {
|
27087
27123
|
var itemType;
|
@@ -27148,9 +27184,6 @@
|
|
27148
27184
|
}
|
27149
27185
|
return this.filteredOptions;
|
27150
27186
|
};
|
27151
|
-
SelectOneDialog.prototype.showSearchResult = function () {
|
27152
|
-
this.autoComplete.openPanel();
|
27153
|
-
};
|
27154
27187
|
SelectOneDialog.prototype.displayRelated = function (related) {
|
27155
27188
|
return related ? related.itemName : undefined;
|
27156
27189
|
};
|
@@ -27358,6 +27391,9 @@
|
|
27358
27391
|
};
|
27359
27392
|
SelectOneDialog.prototype.selectNodeTreeEvent = function (node) {
|
27360
27393
|
var _a, _b;
|
27394
|
+
if (node.disabled) {
|
27395
|
+
return;
|
27396
|
+
}
|
27361
27397
|
var position = -1;
|
27362
27398
|
var parentName = '';
|
27363
27399
|
var itemNumberId = '';
|
@@ -27405,9 +27441,9 @@
|
|
27405
27441
|
SelectOneDialog.decorators = [
|
27406
27442
|
{ type: i0.Component, args: [{
|
27407
27443
|
selector: 'qms-select-one',
|
27408
|
-
template: "<div
|
27444
|
+
template: "<div class=\"qmslib__related__popup__container\">\r\n <div>\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 class=\"module-name\" mat-dialog-content>\r\n <span>{{ moduleName }}</span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input__field\">\r\n <input type=\"text\" placeholder=\"{{ LANG.SEARCH }}\" matInput [formControl]=\"myControl\" [matAutocomplete]=\"auto\" />\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 mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\r\n\r\n <div class=\"search__module-result\" *ngIf=\"filteredOptions.length\">\r\n <mat-option class=\"search__option\" *ngFor=\"let option of getModuleFilteredOptions()\" [value]=\"option\"\r\n (click)=\"selectItemSearched(option)\">\r\n <qms-list-item class=\"item-suggestion\" type=\"image-square\">\r\n <mat-icon leading-icon type=\"image-square\" [svgIcon]=\"getNodeIcon(option)\"></mat-icon>\r\n <div qms-list-header>\r\n <div qms-line type=\"caption\" qms-tool-tip=\"{{\r\n isEllipsisActive(searchItemResult) ? option.parentName : ''\r\n }}\" mode=\"dark\" *ngIf=\"getParentName(option)\">\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 class=\"caption\" *ngIf=\"option.breadcumbs && option.breadcumbs.length\">\r\n <qms-breadcrumb class=\"breadcrumb-container\" type=\"table\" numDisplayItem=\"1\" [nodes]=\"option.breadcumbs\">\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span>\r\n <mat-icon class=\"material-icons-outlined search__description-icon\">\r\n local_offer\r\n </mat-icon>\r\n </span>\r\n {{ getItemId(option) }}\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\r\n </mat-autocomplete>\r\n\r\n <div class=\"row\">\r\n <div class=\"qms-scrollbar col-12 qmslib_related_popup_content panel__content_item\">\r\n <mat-expansion-panel hideToggle id=\"qmslib_related_popup_common_001\" [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\" (closed)=\"isCommonExpanded = false\" class=\"panel-tree\">\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree [treeData]=\"treeData\" [treeConfig]=\"treeConfig\" [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\" [disabledList]=\"disabledList\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\" (nodeExpandEvent)=\"nodeExpandEvent($event)\"\r\n [expandOnTitleClick]=\"false\" [expandToChildNode]=\"expandToChildNode\"></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 <mat-icon (click)=\"removeCheckedNodeList()\">cancel</mat-icon>\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 *ngIf=\"!checkedNodeList.length\" qms-btn style=\"margin-top: 7px\" (click)=\"onAddClick()\">\r\n {{ LANG.ADD }}\r\n </button>\r\n <button *ngIf=\"checkedNodeList.length\" qms-btn style=\"margin-top: 0px\" (click)=\"onAddClick()\">\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button qms-btn-text [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\" (click)=\"onCloseClick()\">\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>",
|
27409
27445
|
encapsulation: i0.ViewEncapsulation.None,
|
27410
|
-
styles: ["::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:var(--text-white);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:var(--button-red-background);margin-left:10px}.qms__danger .yellow{background-color:var(--button-yellow-background);margin-left:10px;color:var(--popup-title-color)}.qms__danger .green{background-color:var(--button-green-background);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:var(--button-background)}.confirm__button__groups .confirm:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:var(--button-background)}.confirm__button__groups .cancel:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.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:var(--background-input-text)}.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:var(--related-item-background);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:var(--related-mat-icon-color);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}
|
27446
|
+
styles: ["::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:var(--text-white);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:var(--button-red-background);margin-left:10px}.qms__danger .yellow{background-color:var(--button-yellow-background);margin-left:10px;color:var(--popup-title-color)}.qms__danger .green{background-color:var(--button-green-background);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:var(--button-background)}.confirm__button__groups .confirm:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:var(--button-background)}.confirm__button__groups .cancel:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.qms-list-item.item-suggestion .image-square.wrap-image{width:2.5rem!important;height:100%!important;background:transparent;align-self:center;margin-right:0}.mat-option:focus:not(.mat-option-disabled),::ng-deep .mat-option:hover:not(.mat-option-disabled){background:transparent!important}.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:var(--background-input-text)}.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:var(--related-item-background);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:var(--related-mat-icon-color);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}.search__module-result{margin:1.5rem;padding:0 0 .5rem}.search__module-result .search__module-title{font-size:14px;font-weight:600}.search__module-result .search__option{height:auto;line-height:normal;padding:0;border-bottom:1px solid #e0e0e0}.search__module-result .search__option .qms-list-item.mat-2-line.image-item{height:auto}.search__module-result .search__option .qms-list-item-content{margin:0;border-bottom:none}.search__module-result .search__option .qms-list-item-content .material-icons-outlined.leading-icon,.search__module-result .search__option .qms-list-item-content mat-icon.leading-icon{padding:4px 0 4px 4px}.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}.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}.search__module-result .search__option .qms-list-item-content .default-subtitle{color:rgba(0,0,0,.38)}.search__module-result .search__option .qms-list-item-content .search__description-icon{margin-right:0;width:12px;height:12px;font-size:12px}.search__module-result .search__option .qms-list-item-content .qms-list-text{border-bottom:none;height:auto}.search__module-result .search__option .qms-list-item-content .breadcrumb-container .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}.search__module-result .search__option .mat-option:focus:not(.mat-option-disabled),.search__module-result .search__option.mat-option:hover:not(.mat-option-disabled){background:transparent!important}.search__module-result svg{display:block}.module-name{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}"]
|
27411
27447
|
},] }
|
27412
27448
|
];
|
27413
27449
|
SelectOneDialog.ctorParameters = function () { return [
|
@@ -27422,7 +27458,6 @@
|
|
27422
27458
|
]; };
|
27423
27459
|
SelectOneDialog.propDecorators = {
|
27424
27460
|
dataTrees: [{ type: i0.ViewChildren, args: [TreeComponent, {},] }],
|
27425
|
-
autoComplete: [{ type: i0.ViewChild, args: ['autoCompleteInputSearch', { read: autocomplete.MatAutocompleteTrigger, static: true },] }],
|
27426
27461
|
onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
|
27427
27462
|
};
|
27428
27463
|
|
@@ -30323,7 +30358,7 @@
|
|
30323
30358
|
animations$1.transition('* => *', [
|
30324
30359
|
animations$1.query(':enter', [
|
30325
30360
|
animations$1.style({ opacity: 0, transform: 'translateY(-100%)' }),
|
30326
|
-
animations$1.stagger(
|
30361
|
+
animations$1.stagger(30, [
|
30327
30362
|
animations$1.animate('0.4s cubic-bezier(0.23, 1, 0.320, 1)', animations$1.style({ opacity: 1, transform: 'none' }))
|
30328
30363
|
])
|
30329
30364
|
], { optional: true })
|
@@ -30331,8 +30366,19 @@
|
|
30331
30366
|
])
|
30332
30367
|
];
|
30333
30368
|
|
30369
|
+
var QMSDepartmentPagingModel = /** @class */ (function (_super) {
|
30370
|
+
__extends(QMSDepartmentPagingModel, _super);
|
30371
|
+
function QMSDepartmentPagingModel() {
|
30372
|
+
var _this = _super.call(this) || this;
|
30373
|
+
_this.data = [];
|
30374
|
+
_this.data = [];
|
30375
|
+
return _this;
|
30376
|
+
}
|
30377
|
+
return QMSDepartmentPagingModel;
|
30378
|
+
}(paginator.PageEvent));
|
30379
|
+
|
30334
30380
|
var SelectDepartmentTreeComponent = /** @class */ (function () {
|
30335
|
-
function SelectDepartmentTreeComponent(cdRef, domSanitizer, appIconService, iconRegistry, eleRef, trans) {
|
30381
|
+
function SelectDepartmentTreeComponent(cdRef, domSanitizer, appIconService, iconRegistry, eleRef, trans, treeDepartmentGlobalService) {
|
30336
30382
|
var _this = this;
|
30337
30383
|
this.cdRef = cdRef;
|
30338
30384
|
this.domSanitizer = domSanitizer;
|
@@ -30340,26 +30386,28 @@
|
|
30340
30386
|
this.iconRegistry = iconRegistry;
|
30341
30387
|
this.eleRef = eleRef;
|
30342
30388
|
this.trans = trans;
|
30389
|
+
this.treeDepartmentGlobalService = treeDepartmentGlobalService;
|
30343
30390
|
this.enableIncludeChild = false;
|
30344
30391
|
this.enableTreeSearch = false;
|
30345
30392
|
this.isSelectOne = false;
|
30346
30393
|
this.activeViewSearch = false;
|
30394
|
+
this.customClass = '';
|
30395
|
+
this.arrSkeleton = new Array(6).fill(0);
|
30347
30396
|
this.treeDataSourceConfig = new QMSSelectDepartmentTreeConfig();
|
30397
|
+
this.isIncludeChildren = false;
|
30348
30398
|
this.checkSearchMappingTree = true;
|
30349
30399
|
this.enablePagingSearch = true;
|
30350
30400
|
this.onSearchEvent = new i0.EventEmitter();
|
30351
30401
|
this.onPagingSearchEvent = new i0.EventEmitter();
|
30352
30402
|
this.ngUnsubscribe = new rxjs.Subject();
|
30353
30403
|
this.isLoaded = false;
|
30354
|
-
this.resultGroupSelected = [];
|
30355
|
-
this.resultSingleSelected = [];
|
30356
30404
|
this.resultSearchSelected = [];
|
30357
30405
|
this.resultSelected = [];
|
30358
30406
|
this.getDataTree$ = new rxjs.BehaviorSubject([]);
|
30359
30407
|
this.onValueChangeEvent = new i0.EventEmitter();
|
30360
|
-
this.
|
30408
|
+
this.selectionNodeChangeEvent = new i0.EventEmitter();
|
30409
|
+
this.searchDepartment$ = new rxjs.BehaviorSubject(new QMSDepartmentPagingModel());
|
30361
30410
|
this.resultSearch = [];
|
30362
|
-
this.pagingResultSearch = [];
|
30363
30411
|
this.isSelectAllResultSearch = false;
|
30364
30412
|
this.indeterminateSearchResult = false;
|
30365
30413
|
this.currentPaginationConfig = {
|
@@ -30394,6 +30442,8 @@
|
|
30394
30442
|
flatNode.itemIconSvg = node.itemIconSvg;
|
30395
30443
|
flatNode.isFile = node.isFile;
|
30396
30444
|
flatNode.disabled = node.disabled;
|
30445
|
+
flatNode.isGroup = node.isGroup;
|
30446
|
+
flatNode.groupId = node.groupId;
|
30397
30447
|
_this.flatTreeNodeMap.set(flatNode, node);
|
30398
30448
|
_this.nestedTreeNodeMap.set(node, flatNode);
|
30399
30449
|
return flatNode;
|
@@ -30402,13 +30452,12 @@
|
|
30402
30452
|
this._getChild = function (node) { return node.children; };
|
30403
30453
|
this.isExpandable = function (node) { return node.expandable; };
|
30404
30454
|
this.hasChild = function (_, node) { return node.expandable; };
|
30405
|
-
this.treeControl = new tree.FlatTreeControl(this.getLevel, this.isExpandable);
|
30406
|
-
this.treeFlattener = new tree$1.MatTreeFlattener(this._transformer, this.getLevel, this.isExpandable, this._getChild);
|
30407
|
-
this.dataSource = new tree$1.MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
|
30408
30455
|
// Init tree data
|
30409
30456
|
this.getDataTree$
|
30410
30457
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30411
30458
|
.subscribe(function (data) {
|
30459
|
+
if (!_this.dataSource)
|
30460
|
+
return;
|
30412
30461
|
_this.dataSource.data = data;
|
30413
30462
|
});
|
30414
30463
|
// Register icon
|
@@ -30424,61 +30473,31 @@
|
|
30424
30473
|
_this.LANG = _this.trans.getObjectLang(res);
|
30425
30474
|
}
|
30426
30475
|
});
|
30427
|
-
this.
|
30428
|
-
|
30429
|
-
|
30430
|
-
_this.resultSearch = [];
|
30431
|
-
if (result && result.length) {
|
30432
|
-
result.forEach(function (item) {
|
30433
|
-
var node = _this.treeControl.dataNodes.find(function (node) { return node.id === item.id; });
|
30434
|
-
var parents = node ? _this._getAllParentNode(node) : [];
|
30435
|
-
_this.resultSearch.push(Object.assign(Object.assign({}, item), { disabled: _this.checkSearchMappingTree && !node, path: __spreadArray(__spreadArray([], __read((parents.map(function (x, index) { return ({
|
30436
|
-
id: x.id,
|
30437
|
-
name: x.name,
|
30438
|
-
}); }).reverse() || []))), [
|
30439
|
-
{
|
30440
|
-
id: item.id,
|
30441
|
-
name: item.name,
|
30442
|
-
}
|
30443
|
-
]) }));
|
30444
|
-
});
|
30445
|
-
}
|
30446
|
-
_this.currentPaginationConfig.pageIndex = 0;
|
30447
|
-
_this.currentPaginationConfig.pageSize = 10;
|
30448
|
-
_this.getLoading$.next(false);
|
30449
|
-
_this.textResultSearch = _this.formSearchControl.value;
|
30450
|
-
_this.onPagingSearchResult(_this.currentPaginationConfig);
|
30451
|
-
_this._mapToResultSearch();
|
30452
|
-
_this._checkStateCheckboxAllSearch();
|
30453
|
-
_this.setIndexView(1);
|
30454
|
-
_this.cdRef.detectChanges();
|
30455
|
-
});
|
30456
|
-
this.scrollToNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30457
|
-
var delayTiming = _this.indexView === 1 ? 700 : 0;
|
30458
|
-
_this.setIndexView(0);
|
30459
|
-
return rxjs.of(val).pipe(operators.delay(delayTiming));
|
30460
|
-
})).subscribe(function (res) {
|
30461
|
-
_this.onScrollIntoNode(res);
|
30462
|
-
});
|
30463
|
-
this.getActiveNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30464
|
-
_this.activeNode = val;
|
30465
|
-
return rxjs.timer(1500);
|
30466
|
-
})).subscribe(function (_) {
|
30467
|
-
_this.activeNode = '';
|
30468
|
-
});
|
30476
|
+
this._handleSearchEvent();
|
30477
|
+
this._handleActiveNodeEvent();
|
30478
|
+
this._handleItemSelectionChanged();
|
30469
30479
|
this.getLoading$.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30470
30480
|
.subscribe(function (res) {
|
30471
30481
|
res ? _this.formSearchControl.disable() : _this.formSearchControl.enable();
|
30472
30482
|
});
|
30473
30483
|
}
|
30484
|
+
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "rowsSkeleton", {
|
30485
|
+
set: function (value) {
|
30486
|
+
this.arrSkeleton = new Array(value).fill(0);
|
30487
|
+
},
|
30488
|
+
enumerable: false,
|
30489
|
+
configurable: true
|
30490
|
+
});
|
30474
30491
|
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "treeData", {
|
30475
30492
|
set: function (value) {
|
30493
|
+
this.updateDataTree([]);
|
30476
30494
|
this.treeDataSourceConfig.treeData = value || [];
|
30477
|
-
this.
|
30495
|
+
this._initTreeData();
|
30478
30496
|
},
|
30479
30497
|
enumerable: false,
|
30480
30498
|
configurable: true
|
30481
30499
|
});
|
30500
|
+
;
|
30482
30501
|
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "selectedList", {
|
30483
30502
|
set: function (value) {
|
30484
30503
|
this.treeDataSourceConfig.selectedList = value || [];
|
@@ -30495,13 +30514,18 @@
|
|
30495
30514
|
});
|
30496
30515
|
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "currentTreeData", {
|
30497
30516
|
get: function () {
|
30498
|
-
return this.getDataTree$.
|
30517
|
+
return this.getDataTree$.getValue();
|
30499
30518
|
},
|
30500
30519
|
enumerable: false,
|
30501
30520
|
configurable: true
|
30502
30521
|
});
|
30522
|
+
SelectDepartmentTreeComponent.prototype.ngAfterContentInit = function () {
|
30523
|
+
this.cdRef.detectChanges();
|
30524
|
+
};
|
30525
|
+
SelectDepartmentTreeComponent.prototype.ngAfterViewInit = function () {
|
30526
|
+
this.cdRef.detectChanges();
|
30527
|
+
};
|
30503
30528
|
SelectDepartmentTreeComponent.prototype.ngOnInit = function () {
|
30504
|
-
this._initTreeData();
|
30505
30529
|
this._initCheckListSelected();
|
30506
30530
|
};
|
30507
30531
|
SelectDepartmentTreeComponent.prototype.ngOnDestroy = function () {
|
@@ -30510,99 +30534,264 @@
|
|
30510
30534
|
};
|
30511
30535
|
SelectDepartmentTreeComponent.prototype._initTreeData = function () {
|
30512
30536
|
var _this = this;
|
30513
|
-
|
30514
|
-
|
30515
|
-
|
30516
|
-
|
30517
|
-
|
30518
|
-
|
30519
|
-
|
30520
|
-
|
30521
|
-
|
30522
|
-
|
30523
|
-
|
30524
|
-
|
30525
|
-
|
30526
|
-
|
30527
|
-
|
30528
|
-
|
30529
|
-
|
30530
|
-
|
30531
|
-
|
30532
|
-
(result[currentValue['parentId']] = result[currentValue['parentId']] || []).push(currentValue);
|
30533
|
-
return result;
|
30534
|
-
}, {});
|
30535
|
-
var getAllParent_1 = function (parentId) {
|
30536
|
-
var parents = [];
|
30537
|
-
var parent = _this.treeDataSourceConfig.treeData.find(function (x) { return x.id == parentId; });
|
30538
|
-
while (parent) {
|
30539
|
-
parents.push(parent);
|
30540
|
-
parent = _this.treeDataSourceConfig.treeData.find(function (x) { return x.id == parent.parentId; });
|
30541
|
-
}
|
30542
|
-
return parents;
|
30537
|
+
this.treeControl = new tree.FlatTreeControl(this.getLevel, this.isExpandable);
|
30538
|
+
this.treeFlattener = new tree$1.MatTreeFlattener(this._transformer, this.getLevel, this.isExpandable, this._getChild);
|
30539
|
+
this.dataSource = new tree$1.MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
|
30540
|
+
var _treeDataInput = ___namespace.cloneDeep(this.treeDataSourceConfig.treeData);
|
30541
|
+
if (!_treeDataInput.length)
|
30542
|
+
return;
|
30543
|
+
var rootNode = _treeDataInput.filter(function (item) { return !item.parentId; })
|
30544
|
+
.map(function (item, _index) {
|
30545
|
+
var node = {
|
30546
|
+
id: item.id,
|
30547
|
+
name: item.name,
|
30548
|
+
markedGetChildren: item.markedGetChildren,
|
30549
|
+
children: [],
|
30550
|
+
isFile: false,
|
30551
|
+
itemIcon: item.itemIcon,
|
30552
|
+
itemMatIcon: item.itemMatIcon,
|
30553
|
+
itemIconSvg: item.itemIconSvg,
|
30554
|
+
parentId: item.parentId,
|
30555
|
+
isGroup: false
|
30543
30556
|
};
|
30544
|
-
|
30545
|
-
|
30546
|
-
|
30547
|
-
|
30548
|
-
|
30549
|
-
|
30550
|
-
|
30551
|
-
|
30552
|
-
|
30553
|
-
|
30554
|
-
|
30555
|
-
|
30556
|
-
|
30557
|
-
|
30558
|
-
|
30559
|
-
|
30560
|
-
|
30561
|
-
|
30557
|
+
return node;
|
30558
|
+
});
|
30559
|
+
if (!rootNode.length)
|
30560
|
+
throw ('Data invalid.');
|
30561
|
+
var invalidItems = _treeDataInput.filter(function (item) { return item.id == item.parentId; }) || [];
|
30562
|
+
if (invalidItems.length) {
|
30563
|
+
throw ("data " + JSON.stringify(invalidItems) + " invalid");
|
30564
|
+
}
|
30565
|
+
this.updateDataTree(rootNode);
|
30566
|
+
var groupResult = _treeDataInput.filter(function (x) { return x.parentId; }).reduce(function (result, currentValue) {
|
30567
|
+
(result[currentValue['parentId']] = result[currentValue['parentId']] || []).push(currentValue);
|
30568
|
+
return result;
|
30569
|
+
}, {});
|
30570
|
+
var checkValidGroup = function (id) {
|
30571
|
+
var parents = [];
|
30572
|
+
var parent = _treeDataInput.find(function (x) { return x.id == id; });
|
30573
|
+
while (parent === null || parent === void 0 ? void 0 : parent.id) {
|
30574
|
+
parents.push(parent);
|
30575
|
+
parent = _treeDataInput.find(function (x) { return x.id == (parent === null || parent === void 0 ? void 0 : parent.parentId); });
|
30576
|
+
}
|
30577
|
+
return parents.some(function (x) { return !x.parentId; });
|
30578
|
+
};
|
30579
|
+
if (!(rootNode && !!rootNode.length))
|
30580
|
+
return;
|
30581
|
+
var groupResultKey = Object.keys(groupResult).filter(checkValidGroup);
|
30582
|
+
while (groupResultKey.length) {
|
30583
|
+
groupResultKey = groupResultKey.filter(function (key) {
|
30584
|
+
var parentFlatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === key; });
|
30585
|
+
if (parentFlatNode) {
|
30586
|
+
var parentNestedNode = _this.convertToNestedNode(parentFlatNode);
|
30587
|
+
parentNestedNode.markedGetChildren = true;
|
30588
|
+
parentNestedNode.children = ___namespace.cloneDeep(groupResult[key]);
|
30589
|
+
parentNestedNode.childCount = parentNestedNode.children.length;
|
30590
|
+
parentNestedNode.isGroup = false;
|
30591
|
+
_this.updateDataTree(_this.currentTreeData);
|
30592
|
+
groupResult[key] = [];
|
30593
|
+
return false;
|
30594
|
+
}
|
30595
|
+
return true;
|
30596
|
+
});
|
30562
30597
|
}
|
30598
|
+
this.getLoading$.next(false);
|
30599
|
+
this._initCheckListSelected();
|
30563
30600
|
};
|
30564
30601
|
SelectDepartmentTreeComponent.prototype._initCheckListSelected = function () {
|
30565
30602
|
var _this = this;
|
30566
30603
|
if (!this.treeDataSourceConfig.selectedList.length)
|
30567
30604
|
return;
|
30568
|
-
|
30569
|
-
|
30570
|
-
this.treeDataSourceConfig.selectedList.forEach(function (item) {
|
30605
|
+
var selectedList = this.treeDataSourceConfig.selectedList;
|
30606
|
+
selectedList.forEach(function (item) {
|
30571
30607
|
var _a;
|
30572
|
-
var
|
30573
|
-
if (
|
30574
|
-
_this.
|
30608
|
+
var node = _this.treeControl.dataNodes.find(function (x) { return x.id === item.id; });
|
30609
|
+
if (node) {
|
30610
|
+
var nestedNode = _this.convertToNestedNode(node);
|
30611
|
+
nestedNode.isGroup = item.isGroup;
|
30612
|
+
nestedNode.groupId = item.groupId;
|
30613
|
+
_this.checkListSelection.select(node);
|
30614
|
+
_this._handleCheckNode(node);
|
30575
30615
|
((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) && item.children.forEach(function (child) {
|
30576
30616
|
var node = _this.treeControl.dataNodes.find(function (_x) { return _x.id === child.id; });
|
30577
30617
|
if (node) {
|
30578
|
-
_this.checkListSelection.select(node);
|
30579
30618
|
_this.onExpandAllParent(node);
|
30580
30619
|
}
|
30581
30620
|
});
|
30582
|
-
_this.onExpandAllParent(
|
30621
|
+
_this.onExpandAllParent(node);
|
30583
30622
|
}
|
30584
|
-
_this.resultSelected = __spreadArray(__spreadArray([], __read(_this.resultSingleSelected)), __read(_this.resultGroupSelected));
|
30585
|
-
_this.onValueChangeEvent.emit(_this.resultSelected);
|
30586
30623
|
});
|
30624
|
+
this.cdRef.detectChanges();
|
30587
30625
|
};
|
30588
|
-
|
30589
|
-
|
30590
|
-
|
30591
|
-
|
30592
|
-
|
30593
|
-
|
30594
|
-
|
30595
|
-
|
30596
|
-
|
30597
|
-
|
30598
|
-
|
30599
|
-
|
30626
|
+
//Handle item selection changed
|
30627
|
+
SelectDepartmentTreeComponent.prototype._handleItemSelectionChanged = function () {
|
30628
|
+
var _this = this;
|
30629
|
+
this.checkListSelection.changed
|
30630
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30631
|
+
.subscribe(function (_b) {
|
30632
|
+
var added = _b.added, removed = _b.removed;
|
30633
|
+
var checkExistInResult = function (node) { return _this.resultSelected.findIndex(function (x) { return x.id === node.id; }) > -1; };
|
30634
|
+
if (added.length) {
|
30635
|
+
added.forEach(function (node) {
|
30636
|
+
var nestedNode = _this.convertToNestedNode(node);
|
30637
|
+
nestedNode.children = [];
|
30638
|
+
nestedNode.childCount = _this.getListChildrenOfNode(node).length;
|
30639
|
+
var existGroup = _this._getAllParentNode(node).map(function (item) { return _this.convertToNestedNode(item); }).find(function (x) { return x.isGroup; });
|
30640
|
+
if (!!existGroup) {
|
30641
|
+
nestedNode.groupId = existGroup.id;
|
30642
|
+
if (!existGroup.children.some(function (x) { return x.id === nestedNode.id; })) {
|
30643
|
+
existGroup.children.push(nestedNode);
|
30644
|
+
_this._onSelectionNodeChangeEvent('updated', [existGroup]);
|
30645
|
+
}
|
30646
|
+
if (!checkExistInResult(existGroup)) {
|
30647
|
+
_this.resultSelected.push(existGroup);
|
30648
|
+
_this._onSelectionNodeChangeEvent('added', [existGroup]);
|
30649
|
+
}
|
30650
|
+
_this.resultSelected.forEach(function (item, index) {
|
30651
|
+
if (item.groupId === existGroup.id) {
|
30652
|
+
_this.resultSelected.splice(index, 1);
|
30653
|
+
_this._onSelectionNodeChangeEvent('removed', [item]);
|
30654
|
+
}
|
30655
|
+
});
|
30656
|
+
return;
|
30657
|
+
}
|
30658
|
+
if (checkExistInResult(node))
|
30659
|
+
return;
|
30660
|
+
_this.resultSelected.push(nestedNode);
|
30661
|
+
_this._onSelectionNodeChangeEvent('added', [nestedNode]);
|
30662
|
+
});
|
30663
|
+
}
|
30664
|
+
if (removed.length) {
|
30665
|
+
removed.forEach(function (node) {
|
30666
|
+
var nestedNode = _this.convertToNestedNode(node);
|
30667
|
+
var children = _this.getListChildrenOfNode(node);
|
30668
|
+
if (nestedNode.isGroup) {
|
30669
|
+
var _item = _this.resultSelected.find(function (x) { return x.id === node.id; });
|
30670
|
+
if (!_item)
|
30671
|
+
return;
|
30672
|
+
children.forEach(function (item) {
|
30673
|
+
item.groupId = null;
|
30674
|
+
});
|
30675
|
+
_this.resultSelected.splice(_this.resultSelected.indexOf(_item), 1);
|
30676
|
+
_this._onSelectionNodeChangeEvent('removed', [_item]);
|
30677
|
+
return;
|
30678
|
+
}
|
30679
|
+
var group = _this.resultSelected.find(function (x) { return x.id === nestedNode.groupId; });
|
30680
|
+
if (!group) {
|
30681
|
+
var _item = _this.resultSelected.find(function (x) { return x.id === node.id; });
|
30682
|
+
if (!_item)
|
30683
|
+
return;
|
30684
|
+
_this.resultSelected.splice(_this.resultSelected.indexOf(_item), 1);
|
30685
|
+
_this._onSelectionNodeChangeEvent('removed', [_item]);
|
30686
|
+
return;
|
30687
|
+
}
|
30688
|
+
var arrCheck = _this.getListChildrenOfNode(node).concat(node);
|
30689
|
+
arrCheck.forEach(function (item) {
|
30690
|
+
var _node = _this.treeControl.dataNodes.find(function (x) { return x.id === item.id; });
|
30691
|
+
if (group.children.some(function (x) { return x.id === _node.id && !_this.checkListSelection.isSelected(_node); })) {
|
30692
|
+
var _item = group.children.find(function (x) { return x.id === item.id; });
|
30693
|
+
if (!_item)
|
30694
|
+
return;
|
30695
|
+
group.children.splice(group.children.indexOf(_item), 1);
|
30696
|
+
_this._onSelectionNodeChangeEvent('updated', [group]);
|
30697
|
+
}
|
30698
|
+
});
|
30699
|
+
});
|
30700
|
+
}
|
30701
|
+
_this.onValueChangeEvent.emit(_this.resultSelected);
|
30702
|
+
});
|
30703
|
+
};
|
30704
|
+
SelectDepartmentTreeComponent.prototype._onSelectionNodeChangeEvent = function (state, data) {
|
30705
|
+
switch (state) {
|
30706
|
+
case 'removed':
|
30707
|
+
this.selectionNodeChangeEvent.emit({
|
30708
|
+
removed: data,
|
30709
|
+
added: [],
|
30710
|
+
updated: [],
|
30711
|
+
source: new collections.SelectionModel(true, this.resultSelected)
|
30712
|
+
});
|
30713
|
+
break;
|
30714
|
+
case 'updated':
|
30715
|
+
this.selectionNodeChangeEvent.emit({
|
30716
|
+
removed: [],
|
30717
|
+
added: [],
|
30718
|
+
updated: data,
|
30719
|
+
source: new collections.SelectionModel(true, this.resultSelected)
|
30720
|
+
});
|
30721
|
+
break;
|
30722
|
+
case 'added':
|
30723
|
+
this.selectionNodeChangeEvent.emit({
|
30724
|
+
removed: [],
|
30725
|
+
added: data,
|
30726
|
+
updated: [],
|
30727
|
+
source: new collections.SelectionModel(true, this.resultSelected)
|
30728
|
+
});
|
30729
|
+
break;
|
30730
|
+
default:
|
30731
|
+
return;
|
30732
|
+
}
|
30733
|
+
};
|
30734
|
+
SelectDepartmentTreeComponent.prototype._handleSearchEvent = function () {
|
30735
|
+
var _this = this;
|
30736
|
+
this.searchDepartment$
|
30737
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30738
|
+
.subscribe(function (result) {
|
30739
|
+
_this.resultSearch = [];
|
30740
|
+
if (result && result.length) {
|
30741
|
+
result.data.forEach(function (item) {
|
30742
|
+
var node = _this.treeControl.dataNodes.find(function (node) { return node.id === item.id; });
|
30743
|
+
var parents = node ? _this._getAllParentNode(node) : [];
|
30744
|
+
_this.resultSearch.push(Object.assign(Object.assign({}, item), { disabled: _this.checkSearchMappingTree && !node, path: __spreadArray(__spreadArray([], __read((parents.map(function (x, index) { return ({
|
30745
|
+
id: x.id,
|
30746
|
+
name: x.name,
|
30747
|
+
}); }).reverse() || []))), [
|
30748
|
+
{
|
30749
|
+
id: item.id,
|
30750
|
+
name: item.name,
|
30751
|
+
}
|
30752
|
+
]) }));
|
30753
|
+
});
|
30754
|
+
_this.getLoading$.next(false);
|
30755
|
+
_this.textResultSearch = _this.formSearchControl.value;
|
30756
|
+
_this._mapToResultSearch();
|
30757
|
+
_this._checkStateCheckboxAllSearch();
|
30758
|
+
_this.setIndexView(1);
|
30759
|
+
}
|
30760
|
+
});
|
30761
|
+
};
|
30762
|
+
SelectDepartmentTreeComponent.prototype._handleActiveNodeEvent = function () {
|
30763
|
+
var _this = this;
|
30764
|
+
this.scrollToNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30765
|
+
var delayTiming = _this.indexView === 1 ? 700 : 0;
|
30766
|
+
_this.setIndexView(0);
|
30767
|
+
return rxjs.of(val).pipe(operators.delay(delayTiming));
|
30768
|
+
})).subscribe(function (res) {
|
30769
|
+
_this.onScrollIntoNode(res);
|
30770
|
+
});
|
30771
|
+
this.getActiveNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30772
|
+
_this.activeNode = val;
|
30773
|
+
return rxjs.timer(1500);
|
30774
|
+
})).subscribe(function (_) {
|
30775
|
+
_this.activeNode = '';
|
30776
|
+
});
|
30777
|
+
};
|
30778
|
+
SelectDepartmentTreeComponent.prototype.updateDataTree = function (data) {
|
30779
|
+
this.getDataTree$.next(data);
|
30780
|
+
};
|
30781
|
+
SelectDepartmentTreeComponent.prototype.setResultSearch = function (data) {
|
30782
|
+
this.getLoading$.next(false);
|
30783
|
+
this.searchDepartment$.next(data);
|
30784
|
+
};
|
30785
|
+
SelectDepartmentTreeComponent.prototype.onExpandNode = function (node) {
|
30786
|
+
};
|
30787
|
+
SelectDepartmentTreeComponent.prototype.onOptionSearchSelected = function (value) {
|
30788
|
+
var flatNode = this.treeControl.dataNodes.find(function (node) { return node.id === value.id; });
|
30789
|
+
if (!flatNode)
|
30790
|
+
return;
|
30600
30791
|
this.checkListSelection.select(flatNode);
|
30601
30792
|
this._handleCheckNode(flatNode);
|
30602
30793
|
this.onScrollIntoNode(flatNode.id);
|
30603
30794
|
};
|
30604
|
-
SelectDepartmentTreeComponent.prototype.onSlideToggleChange = function () {
|
30605
|
-
};
|
30606
30795
|
SelectDepartmentTreeComponent.prototype.displayWhenSelectDepartmentOption = function ($event) {
|
30607
30796
|
return '';
|
30608
30797
|
};
|
@@ -30614,8 +30803,6 @@
|
|
30614
30803
|
else {
|
30615
30804
|
this._handleCheckNode(node);
|
30616
30805
|
}
|
30617
|
-
this.onValueChangeEvent.emit(this.resultSelected);
|
30618
|
-
this._mapToResultSearch();
|
30619
30806
|
this._checkStateCheckboxAllSearch();
|
30620
30807
|
};
|
30621
30808
|
SelectDepartmentTreeComponent.prototype._handleSelectOne = function (node) {
|
@@ -30644,7 +30831,6 @@
|
|
30644
30831
|
this.checkListSelection.deselect(flatNode);
|
30645
30832
|
flatNode && this._handleCheckNode(flatNode);
|
30646
30833
|
this._checkStateCheckboxAllSearch();
|
30647
|
-
this.onValueChangeEvent.emit(this.resultSelected);
|
30648
30834
|
};
|
30649
30835
|
SelectDepartmentTreeComponent.prototype.isIndeterminate = function (node) {
|
30650
30836
|
var _this = this;
|
@@ -30657,77 +30843,39 @@
|
|
30657
30843
|
return listCheck.every(function (item) { return _this.checkListSelection.isSelected(item); });
|
30658
30844
|
};
|
30659
30845
|
SelectDepartmentTreeComponent.prototype._handleCheckNode = function (node) {
|
30660
|
-
var _b, _c;
|
30661
|
-
var
|
30662
|
-
var
|
30663
|
-
|
30664
|
-
var children = this.treeDataSourceConfig.includeChildren && this.getListChildrenOfNode(node);
|
30665
|
-
children && (_b = this.checkListSelection).select.apply(_b, __spreadArray([], __read(children)));
|
30666
|
-
}
|
30667
|
-
else {
|
30668
|
-
var childSelected = this.getChildrenSelected(node);
|
30669
|
-
// check node is owner group or mode is 'include children' and remove all children
|
30670
|
-
(isOwnerGroup || this.treeDataSourceConfig.includeChildren) && (_c = this.checkListSelection).deselect.apply(_c, __spreadArray([], __read(childSelected)));
|
30671
|
-
}
|
30672
|
-
this._updateGroupResult(node);
|
30673
|
-
this._updateSingleResult();
|
30674
|
-
this.resultSelected = __spreadArray(__spreadArray([], __read(this.resultSingleSelected)), __read(this.resultGroupSelected));
|
30675
|
-
this._mapToResultSearch();
|
30676
|
-
};
|
30677
|
-
// Check group root contain node and re-update chilren
|
30678
|
-
SelectDepartmentTreeComponent.prototype._updateGroupResult = function (node) {
|
30846
|
+
var _b, _c, _d;
|
30847
|
+
var _this = this;
|
30848
|
+
var isSelected = this.checkListSelection.isSelected(node);
|
30849
|
+
var childSelected = this.getChildrenSelected(node);
|
30679
30850
|
var nestedNode = this.convertToNestedNode(node);
|
30680
|
-
|
30681
|
-
|
30682
|
-
|
30683
|
-
|
30684
|
-
|
30685
|
-
|
30686
|
-
|
30687
|
-
|
30851
|
+
if (isSelected) {
|
30852
|
+
// Check existed group
|
30853
|
+
var existedGroup_1 = this._getAllParentNode(node).find(function (x) { return _this.convertToNestedNode(x).isGroup; });
|
30854
|
+
if (!this.isIncludeChildren) {
|
30855
|
+
// nestedNode.isGroup = false;
|
30856
|
+
nestedNode.groupId = existedGroup_1 === null || existedGroup_1 === void 0 ? void 0 : existedGroup_1.id;
|
30857
|
+
return;
|
30858
|
+
}
|
30859
|
+
var children = this.getListChildrenOfNode(node);
|
30860
|
+
nestedNode.isGroup = !existedGroup_1 && !!children.length;
|
30861
|
+
if (!children.length)
|
30862
|
+
return;
|
30863
|
+
children.forEach(function (x) {
|
30864
|
+
var _node = _this.convertToNestedNode(x);
|
30865
|
+
_node.groupId = existedGroup_1 ? existedGroup_1.id : node.id;
|
30866
|
+
_node.isGroup = false;
|
30867
|
+
});
|
30868
|
+
(_b = this.checkListSelection).deselect.apply(_b, __spreadArray([], __read(childSelected.map(this.resetNode))));
|
30869
|
+
(_c = this.checkListSelection).select.apply(_c, __spreadArray([], __read(children.map(this.resetNode))));
|
30870
|
+
return;
|
30688
30871
|
}
|
30689
|
-
this.
|
30872
|
+
var deselectNodes = (this.isIncludeChildren || nestedNode.isGroup) ? childSelected : [node];
|
30873
|
+
(_d = this.checkListSelection).deselect.apply(_d, __spreadArray([], __read(deselectNodes)));
|
30874
|
+
nestedNode.isGroup = false;
|
30690
30875
|
};
|
30691
|
-
|
30692
|
-
|
30693
|
-
|
30694
|
-
var excludeChildOfGroup = [];
|
30695
|
-
this.resultGroupSelected.forEach(function (gr) {
|
30696
|
-
excludeChildOfGroup = __spreadArray(__spreadArray([], __read(excludeChildOfGroup)), __read(gr.children.map(function (x) { return x.id; })));
|
30697
|
-
});
|
30698
|
-
this.resultSingleSelected = this.treeControl.dataNodes.filter(function (item) {
|
30699
|
-
var isSelected = _this.checkListSelection.isSelected(item);
|
30700
|
-
var existedGroup = _this._getExistedGroup(item);
|
30701
|
-
var isOwnerGroup = !!_this.resultGroupSelected.find(function (x) { return (x === null || x === void 0 ? void 0 : x.id) === item.id; });
|
30702
|
-
return isSelected && !existedGroup && !isOwnerGroup && !excludeChildOfGroup.includes(item.id);
|
30703
|
-
}).map(function (item) {
|
30704
|
-
var nestedNode = _this.convertToNestedNode(item);
|
30705
|
-
nestedNode.children = null;
|
30706
|
-
return nestedNode;
|
30707
|
-
});
|
30708
|
-
};
|
30709
|
-
SelectDepartmentTreeComponent.prototype._checkGroupSelected = function (childSelected) {
|
30710
|
-
var _this = this;
|
30711
|
-
this.resultGroupSelected = this.resultGroupSelected.filter(function (gr) {
|
30712
|
-
var flatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === gr.id; });
|
30713
|
-
var childSelectedInGroup = gr.children.filter(function (x) { return childSelected.includes(x); });
|
30714
|
-
gr.childCount = _this.getListChildrenOfNode(flatNode).length;
|
30715
|
-
// if Mode is 'include child' the group list will filter exclude all child selected , ortherwise filter exclude all child in group that node is contained
|
30716
|
-
var arrChild = _this.treeDataSourceConfig.includeChildren ? childSelected : childSelectedInGroup;
|
30717
|
-
return gr.childCount > 0 && _this.checkListSelection.isSelected(flatNode) && !arrChild.find(function (_x) { return _x.id === gr.id; });
|
30718
|
-
});
|
30719
|
-
};
|
30720
|
-
SelectDepartmentTreeComponent.prototype._getExistedGroup = function (node) {
|
30721
|
-
var _this = this;
|
30722
|
-
var allParent = this._getAllParentNode(node);
|
30723
|
-
var listGroupIds = this.resultGroupSelected.map(function (gr) { return gr.id; });
|
30724
|
-
var existedGroup;
|
30725
|
-
allParent.forEach(function (item) {
|
30726
|
-
if (listGroupIds.includes(item.id)) {
|
30727
|
-
existedGroup = _this.convertToNestedNode(item);
|
30728
|
-
}
|
30729
|
-
});
|
30730
|
-
return existedGroup;
|
30876
|
+
SelectDepartmentTreeComponent.prototype.resetNode = function (node) {
|
30877
|
+
node.isGroup = false;
|
30878
|
+
return node;
|
30731
30879
|
};
|
30732
30880
|
SelectDepartmentTreeComponent.prototype.getChildrenSelected = function (node) {
|
30733
30881
|
var _this = this;
|
@@ -30741,24 +30889,11 @@
|
|
30741
30889
|
return flatNodeList.map(function (item) { return _this.convertToNestedNode(item); });
|
30742
30890
|
};
|
30743
30891
|
SelectDepartmentTreeComponent.prototype.convertToNestedNode = function (node) {
|
30744
|
-
return this.flatTreeNodeMap.get(node);
|
30892
|
+
return this.flatTreeNodeMap.get(node) || {};
|
30745
30893
|
};
|
30746
30894
|
SelectDepartmentTreeComponent.prototype.convertToFlatNode = function (node) {
|
30747
30895
|
return this.nestedTreeNodeMap.get(node);
|
30748
30896
|
};
|
30749
|
-
SelectDepartmentTreeComponent.prototype._getRootSelected = function (node) {
|
30750
|
-
var _this = this;
|
30751
|
-
var parentList = this._getAllParentNode(node);
|
30752
|
-
var groupExist;
|
30753
|
-
if (parentList.length) {
|
30754
|
-
parentList.forEach(function (item) {
|
30755
|
-
if (_this.checkListSelection.isSelected(item)) {
|
30756
|
-
groupExist = item;
|
30757
|
-
}
|
30758
|
-
});
|
30759
|
-
}
|
30760
|
-
return groupExist;
|
30761
|
-
};
|
30762
30897
|
SelectDepartmentTreeComponent.prototype._getAllParentNode = function (node) {
|
30763
30898
|
var listParent = [];
|
30764
30899
|
var parent = this._getParentNode(node);
|
@@ -30804,12 +30939,13 @@
|
|
30804
30939
|
this.getActiveNodeEvent$.next(nodeId);
|
30805
30940
|
};
|
30806
30941
|
SelectDepartmentTreeComponent.prototype.onSearch = function () {
|
30807
|
-
|
30808
|
-
|
30809
|
-
|
30810
|
-
|
30942
|
+
this.getLoading$.next(true);
|
30943
|
+
this.setIndexView(1);
|
30944
|
+
this.onSearchEvent.emit(this.formSearchControl.value);
|
30945
|
+
if (!this.paginatorSearch)
|
30811
30946
|
return;
|
30812
|
-
|
30947
|
+
this.paginatorSearch.changePage(0);
|
30948
|
+
this.paginatorSearch.renderDisplayNumberOfpages();
|
30813
30949
|
};
|
30814
30950
|
SelectDepartmentTreeComponent.prototype.onClickResultItem = function (item) {
|
30815
30951
|
var node = this.treeControl.dataNodes.find(function (x) { return item.id === x.id; });
|
@@ -30835,7 +30971,6 @@
|
|
30835
30971
|
}
|
30836
30972
|
this._handleCheckResutlSearch(item);
|
30837
30973
|
this._checkStateCheckboxAllSearch();
|
30838
|
-
this.onValueChangeEvent.emit(this.resultSelected);
|
30839
30974
|
};
|
30840
30975
|
SelectDepartmentTreeComponent.prototype._mapToResultSearch = function () {
|
30841
30976
|
var _this = this;
|
@@ -30855,44 +30990,28 @@
|
|
30855
30990
|
SelectDepartmentTreeComponent.prototype.onSelectAllSearchResult = function (checked) {
|
30856
30991
|
var _this = this;
|
30857
30992
|
this.isSelectAllResultSearch = !checked;
|
30858
|
-
|
30859
|
-
|
30860
|
-
|
30861
|
-
|
30862
|
-
|
30863
|
-
|
30864
|
-
|
30865
|
-
|
30866
|
-
|
30867
|
-
});
|
30868
|
-
};
|
30869
|
-
if (this.treeDataSourceConfig.includeChildren) {
|
30870
|
-
var mainGroup = this.pagingResultSearch.filter(function (item) {
|
30871
|
-
var mainGroup = _this.pagingResultSearch.filter(function (item) {
|
30872
|
-
var node = _this.treeControl.dataNodes.find(function (x) { return x.id === item.id; });
|
30873
|
-
var existItemGroup = _this._getAllParentNode(node).filter(function (x) { return _this.pagingResultSearch.some(function (x1) { return x1.id === x.id; }); });
|
30874
|
-
return existItemGroup.length === 0;
|
30875
|
-
});
|
30876
|
-
handle(mainGroup);
|
30877
|
-
});
|
30878
|
-
}
|
30879
|
-
else {
|
30880
|
-
handle(this.pagingResultSearch);
|
30881
|
-
}
|
30993
|
+
this.resultSearch.length && this.resultSearch.forEach(function (item) {
|
30994
|
+
if (_this.isSelectAllResultSearch) {
|
30995
|
+
!_this.checkListSelectionSearch.isSelected(item) && _this.checkListSelectionSearch.select(item);
|
30996
|
+
}
|
30997
|
+
else {
|
30998
|
+
_this.checkListSelectionSearch.deselect(item);
|
30999
|
+
}
|
31000
|
+
_this._handleCheckResutlSearch(item);
|
31001
|
+
});
|
30882
31002
|
this._checkStateCheckboxAllSearch();
|
30883
31003
|
this.onValueChangeEvent.emit(this.resultSelected);
|
30884
31004
|
};
|
30885
31005
|
SelectDepartmentTreeComponent.prototype._checkStateCheckboxAllSearch = function () {
|
30886
31006
|
var _this = this;
|
30887
|
-
this.isSelectAllResultSearch = !!this.
|
30888
|
-
this.indeterminateSearchResult = !this.isSelectAllResultSearch && !!this.
|
31007
|
+
this.isSelectAllResultSearch = !!this.resultSearch.length && this.resultSearch.every(function (x) { return _this.checkListSelectionSearch.isSelected(x); });
|
31008
|
+
this.indeterminateSearchResult = !this.isSelectAllResultSearch && !!this.resultSearch.length && this.resultSearch.some(function (x) { return _this.checkListSelectionSearch.isSelected(x); });
|
30889
31009
|
};
|
30890
31010
|
SelectDepartmentTreeComponent.prototype.isDisableChecboxAllSearch = function () {
|
30891
|
-
return this.
|
31011
|
+
return this.resultSearch && this.resultSearch.every(function (x) { return x.disabled; });
|
30892
31012
|
};
|
30893
31013
|
SelectDepartmentTreeComponent.prototype.onPagingSearchResult = function (val) {
|
30894
|
-
this.
|
30895
|
-
this.pagingResultSearch = this.enablePagingSearch ? this.resultSearch.slice(val.pageIndex * val.pageSize, (val.pageIndex * val.pageSize) + val.pageSize) : this.resultSearch;
|
31014
|
+
this.getLoading$.next(true);
|
30896
31015
|
this._checkStateCheckboxAllSearch();
|
30897
31016
|
this.onPagingSearchEvent.emit(val);
|
30898
31017
|
};
|
@@ -30901,7 +31020,7 @@
|
|
30901
31020
|
};
|
30902
31021
|
SelectDepartmentTreeComponent.prototype.setIndexView = function (index) {
|
30903
31022
|
if (index === 1) {
|
30904
|
-
this.
|
31023
|
+
this.isIncludeChildren = false;
|
30905
31024
|
}
|
30906
31025
|
this.indexView = index;
|
30907
31026
|
};
|
@@ -30909,18 +31028,18 @@
|
|
30909
31028
|
return JSON.parse(localStorage.getItem('selectedNode'));
|
30910
31029
|
};
|
30911
31030
|
SelectDepartmentTreeComponent.prototype.setSelectedNodeStorage = function (node) {
|
30912
|
-
this.
|
31031
|
+
this.isIncludeChildren && localStorage.setItem('selectedNode', JSON.stringify(node));
|
30913
31032
|
};
|
30914
31033
|
return SelectDepartmentTreeComponent;
|
30915
31034
|
}());
|
30916
31035
|
SelectDepartmentTreeComponent.decorators = [
|
30917
31036
|
{ type: i0.Component, args: [{
|
30918
31037
|
selector: 'qms-select-department-tree',
|
30919
|
-
template: "<div class=\"qms-select-department-tree-container\">\r\n <div class=\"input-select-department\">\r\n <form (ngSubmit)=\"!getLoading$.value && onSearch()\" *ngIf=\"enableTreeSearch\" class=\"input-field\">\r\n <mat-form-field class=\"w100\" qms-form qms-search-field>\r\n <input [formControl]=\"formSearchControl\" type=\"text\" placeholder=\"Search\" matInput />\r\n <button *ngIf=\"!getLoading$.value\" type=\"submit\" qms-btn-icon color=\"light\" matSuffix>\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <mat-progress-spinner [@inOutAnimation] matSuffix mode=\"indeterminate\" diameter=\"20\"\r\n *ngIf=\"getLoading$.value\"></mat-progress-spinner>\r\n <div *ngIf=\"!!formSearchControl.value && !getLoading$.value\" qms-input-clear matSuffix>\r\n <button qms-btn-icon color=\"light\" [@inOutAnimation] aria-label=\"Clear\" (click)=\"formSearchControl.reset()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </mat-form-field>\r\n </form>\r\n <div [@inOutAnimation] *ngIf=\"indexView === 1 && textResultSearch\" class=\"sub-text ms-1 fw500\">\r\n {{LANG.RESULT_SEARCH_FOR}}<i><b>\"{{textResultSearch}}\"</b></i>\r\n </div>\r\n <div [class.justify-content-between]=\"enableIncludeChild && !isSelectOne\"\r\n class=\"select__toggle-include toggle-include-child mt-1 d-flex justify-content-end align-items-center\">\r\n <mat-slide-toggle *ngIf=\"enableIncludeChild && !isSelectOne\" [disabled]=\"indexView === 1\"\r\n [(ngModel)]=\"treeDataSourceConfig.includeChildren\" (ngModelChange)=\"onSlideToggleChange()\" color=\"default\"\r\n qms-group-options>\r\n <span class=\"text-label\">{{treeDataSourceConfig.selectIncludeLabel || LANG.SELECT_INCLUDE_CHILD}}</span>\r\n </mat-slide-toggle>\r\n <button class=\"btn-arrow\" [@inOutAnimation] *ngIf=\"indexView === 1 && enableTreeSearch\" (click)=\"setIndexView(0)\"\r\n qms-btn-icon color=\"light\" [qms-tool-tip]=\"LANG.BACK_TO_TREE\" mode=\"dark\" position=\"top\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n <button class=\"btn-arrow\" [@inOutAnimation] *ngIf=\"indexView === 0 && enableTreeSearch && textResultSearch\"\r\n (click)=\"setIndexView(1)\" qms-btn-icon color=\"light\" [qms-tool-tip]=\"LANG.GOTO_SEACH_RESULT\" mode=\"dark\"\r\n position=\"top\">\r\n <mat-icon>arrow_forward</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <div [@animateSlideView]=\"indexView\" class=\"tree-department-wrapper\">\r\n <mat-tree [@listAnimation] *ngIf=\"indexView === 0\" class=\"select-department-tree\" [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\">\r\n <!-- This is the tree node template for leaf nodes -->\r\n <mat-tree-node\r\n [ngClass]=\"{'w-100': isSelectOne, 'selected-theme': this.checkListSelection.isSelected(node) && isSelectOne}\"\r\n [@triggerColor]=\"activeNode == node.id\" *matTreeNodeDef=\"let node\" matTreeNodeToggle matTreeNodePadding\r\n [ngClass]=\"{\r\n 'mat-tree-node-disabled-all': node.disabled\r\n }\">\r\n <button class=\"btn-toggle\" qms-btn-icon color=\"light\" disabled></button>\r\n <ng-container [ngTemplateOutlet]=\"isSelectOne ? nodeWithoutCheckboxTemplate : showCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{ node: node }\">\r\n </ng-container>\r\n </mat-tree-node>\r\n <!-- This is the tree node template for expandable nodes -->\r\n <mat-tree-node [@triggerColor]=\"activeNode == node.id\" *matTreeNodeDef=\"let node; when: hasChild\"\r\n [class.selected-theme]=\"this.checkListSelection.isSelected(node) && isSelectOne\" matTreeNodePadding [ngClass]=\"{\r\n 'expand-node': treeControl.isExpanded(node),\r\n 'collapse-node': !treeControl.isExpanded(node),\r\n 'mat-tree-node-disabled': node.disabled\r\n }\">\r\n <div class=\"node-content-wraper\" [ngClass]=\"{'w-100': isSelectOne}\">\r\n <button class=\"btn-toggle\" qms-btn-icon color=\"light\" (click)=\"onExpandNode(node)\" matTreeNodeToggle>\r\n <mat-icon>\r\n {{ treeControl.isExpanded(node) ? \"expand_more\" : \"chevron_right\" }}\r\n </mat-icon>\r\n </button>\r\n <ng-container [ngTemplateOutlet]=\"isSelectOne ? nodeWithoutCheckboxTemplate : showCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{ node: node }\"></ng-container>\r\n <mat-progress-bar *ngIf=\"false\" mode=\"indeterminate\" class=\"example-tree-progress-bar\">\r\n </mat-progress-bar>\r\n </div>\r\n </mat-tree-node>\r\n </mat-tree>\r\n <div *ngIf=\"indexView === 1\" class=\"qms-view-search-result\">\r\n <div class=\"\">\r\n <mat-checkbox [@inOutAnimation] *ngIf=\"!!resultSearch.length && !getLoading$.value\"\r\n [disabled]=\"!resultSearch.length || isSelectOne || isDisableChecboxAllSearch()\" #checkAllSearch\r\n [indeterminate]=\"indeterminateSearchResult\" [checked]=\"isSelectAllResultSearch\" qms-group-options\r\n color=\"default\" label=\"none\" class=\"checkbox-all\"\r\n (click)=\"!isSelectOne && onSelectAllSearchResult(checkAllSearch.checked)\">\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}}</span>\r\n <span>(<b>{{pagingResultSearch.length}}</b>)</span>\r\n </mat-checkbox>\r\n </div>\r\n <ng-container *ngIf=\"getLoading$.value; then loading\"></ng-container>\r\n <div [@inOutAnimation] *ngIf=\"pagingResultSearch.length && !getLoading$.value\"\r\n [class.active-paging]=\"resultSearch.length > 10 && enablePagingSearch\" class=\"result\">\r\n <div *ngFor=\"let item of pagingResultSearch\" (click)=\"$event.stopPropagation();onClickResultItem(item)\"\r\n [class.active]=\"checkListSelectionSearch.isSelected(item)\" class=\"result-item user-select-none\" matRipple>\r\n <mat-checkbox [disabled]=\"item.disabled\"\r\n (click)=\"$event.stopImmediatePropagation(); !item.disabled && onCheckItemSearchResult(item)\"\r\n [checked]=\"checkListSelectionSearch.isSelected(item)\" qms-group-options color=\"default\" label=\"none\">\r\n </mat-checkbox>\r\n <div class=\"item-result-content-wraper\">\r\n <div class=\"text-gray fw-bold fs-base mb0\">{{item.name}}</div>\r\n <qms-breadcrumb [numDisplayItem]=\"6\" (onItemClick)=\"onBreadCrumbItemClick($event)\"\r\n *ngIf=\"item.path.length > 1\" class=\"breadcrumb-container\" [nodes]=\"item.path\">\r\n </qms-breadcrumb>\r\n\r\n <div *ngIf=\"item.path.length === 1\" class=\"d-flex align-items-center\">\r\n <!-- <mat-icon class=\"me-1\">arrow_right</mat-icon> -->\r\n <span class=\"item-breadcrumb-disable\">{{item.path[0].name}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div [@inOutAnimation] *ngIf=\"!pagingResultSearch.length && !getLoading$.value\" class=\"result no-result\">\r\n <ng-container *ngTemplateOutlet=\"noResult\"></ng-container>\r\n </div>\r\n <mat-divider *ngIf=\"resultSearch.length > 10 && enablePagingSearch\" class=\"mx-auto\"></mat-divider>\r\n <qms-paginator *ngIf=\"resultSearch.length > 10 && enablePagingSearch && !getLoading$.value\"\r\n [length]=\"resultSearch.length\" [numHidden]=\"0\" [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n (page)='onPagingSearchResult($event)' [size]='PAGINATION_SIZE.medium'>\r\n </qms-paginator>\r\n </div>\r\n </div>\r\n\r\n <!-- Template for Checkbox -->\r\n <ng-template #showCheckboxTemplate let-node=\"node\">\r\n <mat-checkbox [id]=\"'node-'+node.id\" qms-group-options color=\"default\" label=\"none\" class=\"flex-direction-row\"\r\n [checked]=\"checkListSelection.isSelected(node)\" (click)=\"onCheckNode(node)\" [attr.disabled]=\"node.disabled\">\r\n <img *ngIf=\"node.itemIconSvg\" class=\"material-icons type-icon\" [src]=\"node.itemIconSvg\" />\r\n <span *ngIf=\"node.itemIcon\" [class]=\"node.itemIcon\" [qmsTransformIcon]=\"node.itemIcon\"\r\n class=\"material-icons-outlined type-icon\"></span>\r\n <span *ngIf=\"node.itemMatIcon\" class=\"material-icons-outlined type-icon\">{{\r\n node.itemMatIcon }}\r\n </span>\r\n <span class=\"text-name cursor-pointer ml5 123\" [ngClass]=\"{ disabled: node.disabled }\">{{ node.name\r\n }}\r\n </span>\r\n </mat-checkbox>\r\n </ng-template>\r\n\r\n <ng-template #nodeWithoutCheckboxTemplate let-node=\"node\">\r\n <div [id]=\"'node-'+node.id\" (click)=\"onCheckNode(node)\" class=\"node-without-checkbox\">\r\n <div class=\"node-info\">\r\n <span *ngIf=\"node.itemIcon\" [class]=\"node.itemIcon\" [qmsTransformIcon]=\"node.itemIcon\"\r\n class=\"material-icons-outlined type-icon\"></span>\r\n <span *ngIf=\"node.itemMatIcon\" class=\"material-icons-outlined type-icon\">{{\r\n node.itemMatIcon }}\r\n </span>\r\n <span class=\"text-name cursor-pointer ml5 123\" [ngClass]=\"{ disabled: node.disabled }\">{{ node.name\r\n }}\r\n </span>\r\n </div>\r\n <div class=\"node-state\">\r\n <mat-icon *ngIf=\"checkListSelection.isSelected(node)\">check</mat-icon>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<ng-template #noResult>\r\n <svg width=\"89\" height=\"88\" viewBox=\"0 0 89 88\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"white\" />\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"#0163B2\" fill-opacity=\"0.12\" />\r\n <path\r\n d=\"M44.5 56.6936L58.096 64.8996L54.488 49.4336L66.5 39.0276L50.682 37.6856L44.5 23.0996L38.318 37.6856L22.5 39.0276L34.512 49.4336L30.904 64.8996L44.5 56.6936Z\"\r\n fill=\"#0163B3\" />\r\n </svg>\r\n</ng-template>\r\n\r\n<!-- Template loading -->\r\n<ng-template #loading>\r\n <div class=\"loading-container\">\r\n <div class=\"loader\" *ngFor=\"let item of [1,1,1,1,1,1]\">\r\n <div class=\"loader__wrapper\">\r\n <div class=\"row-loader\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
31038
|
+
template: "<div [ngClass]=\"['qms-select-department-tree-container', customClass]\">\r\n <div class=\"input-select-department\">\r\n <form (ngSubmit)=\"!getLoading$.value && onSearch()\" *ngIf=\"enableTreeSearch\" class=\"input-field\">\r\n <mat-form-field class=\"w100\" qms-form qms-search-field>\r\n <input [formControl]=\"formSearchControl\" type=\"text\" placeholder=\"Search\" matInput />\r\n <button *ngIf=\"!getLoading$.value\" type=\"submit\" qms-btn-icon color=\"light\" matSuffix>\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <mat-progress-spinner [@inOutAnimation] matSuffix mode=\"indeterminate\" diameter=\"20\"\r\n *ngIf=\"getLoading$.value\"></mat-progress-spinner>\r\n <div *ngIf=\"!!formSearchControl.value && !getLoading$.value\" qms-input-clear matSuffix>\r\n <button qms-btn-icon color=\"light\" [@inOutAnimation] aria-label=\"Clear\" (click)=\"formSearchControl.reset()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </mat-form-field>\r\n </form>\r\n <div [@inOutAnimation] *ngIf=\"indexView === 1 && textResultSearch\" class=\"sub-text ms-1 fw500\">\r\n {{LANG.RESULT_SEARCH_FOR}}<i><b>\"{{textResultSearch}}\"</b></i>\r\n </div>\r\n <div [class.justify-content-between]=\"enableIncludeChild && !isSelectOne\"\r\n class=\"select__toggle-include toggle-include-child my-1 d-flex justify-content-end align-items-center\">\r\n <mat-slide-toggle *ngIf=\"enableIncludeChild && !isSelectOne\" [disabled]=\"indexView === 1\"\r\n [(ngModel)]=\"isIncludeChildren\" color=\"default\" qms-group-options>\r\n <span class=\"text-label\">{{treeDataSourceConfig.selectIncludeLabel || LANG.SELECT_INCLUDE_CHILD}}</span>\r\n </mat-slide-toggle>\r\n <button class=\"btn-arrow\" [@inOutAnimation] *ngIf=\"indexView === 1 && enableTreeSearch\" (click)=\"setIndexView(0)\"\r\n qms-btn-icon color=\"light\" [qms-tool-tip]=\"LANG.BACK_TO_TREE\" mode=\"dark\" position=\"top\">\r\n <mat-icon>arrow_back</mat-icon>\r\n </button>\r\n <button class=\"btn-arrow\" [@inOutAnimation] *ngIf=\"indexView === 0 && enableTreeSearch && textResultSearch\"\r\n (click)=\"setIndexView(1)\" qms-btn-icon color=\"light\" [qms-tool-tip]=\"LANG.GOTO_SEACH_RESULT\" mode=\"dark\"\r\n position=\"top\">\r\n <mat-icon>arrow_forward</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <div [@animateSlideView]=\"indexView\" [ngStyle]=\"{height: height || '50vh'}\" class=\"tree-department-wrapper\">\r\n <mat-tree [@listAnimation] *ngIf=\"indexView === 0 && !!treeControl\" class=\"select-department-tree\"\r\n [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\r\n <!-- This is the tree node template for leaf nodes -->\r\n <mat-tree-node\r\n [ngClass]=\"{'w-100': isSelectOne, 'selected-theme': this.checkListSelection.isSelected(node) && isSelectOne}\"\r\n [@triggerColor]=\"activeNode == node.id\" *matTreeNodeDef=\"let node\" matTreeNodeToggle matTreeNodePadding\r\n [ngClass]=\"{\r\n 'mat-tree-node-disabled-all': node.disabled\r\n }\">\r\n <button class=\"btn-toggle\" qms-btn-icon color=\"light\" disabled></button>\r\n <ng-container [ngTemplateOutlet]=\"isSelectOne ? nodeWithoutCheckboxTemplate : showCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{ node: node }\">\r\n </ng-container>\r\n </mat-tree-node>\r\n <!-- This is the tree node template for expandable nodes -->\r\n <mat-tree-node [@triggerColor]=\"activeNode == node.id\" *matTreeNodeDef=\"let node; when: hasChild\"\r\n [class.selected-theme]=\"this.checkListSelection.isSelected(node) && isSelectOne\" matTreeNodePadding [ngClass]=\"{\r\n 'expand-node': treeControl.isExpanded(node),\r\n 'collapse-node': !treeControl.isExpanded(node),\r\n 'mat-tree-node-disabled': node.disabled\r\n }\">\r\n <div class=\"node-content-wraper\" [ngClass]=\"{'w-100': isSelectOne}\">\r\n <button class=\"btn-toggle\" qms-btn-icon color=\"light\" (click)=\"onExpandNode(node)\" matTreeNodeToggle>\r\n <mat-icon>\r\n {{ treeControl.isExpanded(node) ? \"expand_more\" : \"chevron_right\" }}\r\n </mat-icon>\r\n </button>\r\n <ng-container [ngTemplateOutlet]=\"isSelectOne ? nodeWithoutCheckboxTemplate : showCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{ node: node }\"></ng-container>\r\n <mat-progress-bar *ngIf=\"false\" mode=\"indeterminate\" class=\"example-tree-progress-bar\">\r\n </mat-progress-bar>\r\n </div>\r\n </mat-tree-node>\r\n </mat-tree>\r\n <div *ngIf=\"indexView === 1\" class=\"qms-view-search-result\">\r\n <div class=\"\">\r\n <mat-checkbox [@inOutAnimation] *ngIf=\"!!resultSearch.length && !getLoading$.value\"\r\n [disabled]=\"!resultSearch.length || isSelectOne || isDisableChecboxAllSearch()\" #checkAllSearch\r\n [indeterminate]=\"indeterminateSearchResult\" [checked]=\"isSelectAllResultSearch\" qms-group-options\r\n color=\"default\" label=\"none\" class=\"checkbox-all\"\r\n (click)=\"!isSelectOne && onSelectAllSearchResult(checkAllSearch.checked)\">\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}}</span>\r\n <span>(<b>{{resultSearch.length}}</b>)</span>\r\n </mat-checkbox>\r\n </div>\r\n <ng-container *ngIf=\"getLoading$.value; then loading\"></ng-container>\r\n <div [@inOutAnimation] [@listAnimation] *ngIf=\"resultSearch.length && !getLoading$.value\"\r\n [class.active-paging]=\"resultSearch.length > 10 && enablePagingSearch\" class=\"result\">\r\n <div *ngFor=\"let item of resultSearch\" (click)=\"$event.stopPropagation();onClickResultItem(item)\"\r\n [class.active]=\"checkListSelectionSearch.isSelected(item)\" class=\"result-item user-select-none\" matRipple>\r\n <mat-checkbox [disabled]=\"item.disabled\"\r\n (click)=\"$event.stopImmediatePropagation(); !item.disabled && onCheckItemSearchResult(item)\"\r\n [checked]=\"checkListSelectionSearch.isSelected(item)\" qms-group-options color=\"default\" label=\"none\">\r\n </mat-checkbox>\r\n <div class=\"item-result-content-wraper\">\r\n <div class=\"text-gray fw-bold fs-base mb0\">{{item.name}}</div>\r\n <qms-breadcrumb [numDisplayItem]=\"6\" (onItemClick)=\"onBreadCrumbItemClick($event)\"\r\n *ngIf=\"item.path.length > 1\" class=\"breadcrumb-container\" [nodes]=\"item.path\">\r\n </qms-breadcrumb>\r\n\r\n <div *ngIf=\"item.path.length === 1\" class=\"d-flex align-items-center\">\r\n <!-- <mat-icon class=\"me-1\">arrow_right</mat-icon> -->\r\n <span class=\"item-breadcrumb-disable\">{{item.path[0].name}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div [@inOutAnimation] *ngIf=\"!resultSearch.length && !getLoading$.value\" class=\"result no-result\">\r\n <ng-container *ngTemplateOutlet=\"noResult\"></ng-container>\r\n </div>\r\n <mat-divider *ngIf=\"searchDepartment$.value.length > 10 && enablePagingSearch\" class=\"mx-auto\"></mat-divider>\r\n <qms-paginator #paginatorSearch *ngIf=\"searchDepartment$.value.length > 10 && enablePagingSearch \"\r\n [length]=\"searchDepartment$.value.length\" [numHidden]=\"0\" [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n (page)='onPagingSearchResult($event)' [size]='PAGINATION_SIZE.medium'>\r\n </qms-paginator>\r\n </div>\r\n </div>\r\n\r\n <!-- Template for Checkbox -->\r\n <ng-template #showCheckboxTemplate let-node=\"node\">\r\n <mat-checkbox [id]=\"'node-'+node.id\" qms-group-options color=\"default\" label=\"none\" class=\"flex-direction-row\"\r\n [checked]=\"checkListSelection.isSelected(node)\" (click)=\"onCheckNode(node)\" [attr.disabled]=\"node.disabled\">\r\n <img *ngIf=\"node.itemIconSvg\" class=\"material-icons type-icon\" [src]=\"node.itemIconSvg\" />\r\n <span *ngIf=\"node.itemIcon\" [class]=\"node.itemIcon\" [qmsTransformIcon]=\"node.itemIcon\"\r\n class=\"material-icons-outlined type-icon\"></span>\r\n <span *ngIf=\"node.itemMatIcon\" class=\"material-icons-outlined type-icon\">{{\r\n node.itemMatIcon }}\r\n </span>\r\n <span class=\"text-name cursor-pointer ml5 123\" [ngClass]=\"{ disabled: node.disabled }\">{{ node.name\r\n }}\r\n </span>\r\n </mat-checkbox>\r\n </ng-template>\r\n\r\n <ng-template #nodeWithoutCheckboxTemplate let-node=\"node\">\r\n <div [id]=\"'node-'+node.id\" (click)=\"onCheckNode(node)\" class=\"node-without-checkbox\">\r\n <div class=\"node-info\">\r\n <span *ngIf=\"node.itemIcon\" [class]=\"node.itemIcon\" [qmsTransformIcon]=\"node.itemIcon\"\r\n class=\"material-icons-outlined type-icon\"></span>\r\n <span *ngIf=\"node.itemMatIcon\" class=\"material-icons-outlined type-icon\">{{\r\n node.itemMatIcon }}\r\n </span>\r\n <span class=\"text-name cursor-pointer ml5 123\" [ngClass]=\"{ disabled: node.disabled }\">{{ node.name\r\n }}\r\n </span>\r\n </div>\r\n <div class=\"node-state\">\r\n <mat-icon *ngIf=\"checkListSelection.isSelected(node)\">check</mat-icon>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<ng-template #noResult>\r\n <svg width=\"89\" height=\"130\" viewBox=\"0 0 89 88\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"white\" />\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"#0163B2\" fill-opacity=\"0.12\" />\r\n <path\r\n d=\"M44.5 56.6936L58.096 64.8996L54.488 49.4336L66.5 39.0276L50.682 37.6856L44.5 23.0996L38.318 37.6856L22.5 39.0276L34.512 49.4336L30.904 64.8996L44.5 56.6936Z\"\r\n fill=\"#0163B3\" />\r\n <text x=\"10\" y=\"105\" fill=\"#0163B2\">{{LANG.NO_RESULT}}</text>\r\n </svg>\r\n</ng-template>\r\n\r\n<!-- Template loading -->\r\n<ng-template #loading>\r\n <div class=\"loading-container\">\r\n <div class=\"loader\" *ngFor=\"let item of arrSkeleton\">\r\n <div class=\"loader__wrapper\">\r\n <div class=\"row-loader\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
30920
31039
|
animations: [
|
30921
31040
|
AnimationTreeDepartment
|
30922
31041
|
],
|
30923
|
-
styles: ["@charset \"UTF-8\";@font-face{font-family:icomoon;src:url(../assets/fonts/icomoon.eot?aghldx);src:url(../assets/fonts/icomoon.eot?aghldx#iefix) format(\"embedded-opentype\"),url(../assets/fonts/icomoon.ttf?aghldx) format(\"truetype\"),url(../assets/fonts/icomoon.woff?aghldx) format(\"woff\"),url(../assets/fonts/icomoon.svg?aghldx#icomoon) format(\"svg\");font-weight:400;font-style:normal;font-display:block}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-acutely-toxic .path1:before{content:\"\uE91B\";color:#e32730}.icon-acutely-toxic .path2:before{content:\"\uE922\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path3:before{content:\"\uE923\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path4:before{content:\"\uE924\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path5:before{content:\"\uE925\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path6:before{content:\"\uE926\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path7:before{content:\"\uE927\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path8:before{content:\"\uE928\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path9:before{content:\"\uE929\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path10:before{content:\"\uE92A\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path11:before{content:\"\uE92B\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path12:before{content:\"\uE92C\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path13:before{content:\"\uE92D\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path14:before{content:\"\uE92E\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path15:before{content:\"\uE92F\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path16:before{content:\"\uE930\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path17:before{content:\"\uE931\";margin-left:-1em;color:#323232}.icon-add-column:before{content:\"\uE932\"}.icon-add-tooltip:before{content:\"\uE933\"}.icon-admin:before{content:\"\uE934\"}.icon-annual-cycle:before{content:\"\uE935\"}.icon-assignment-repete:before{content:\"\uE936\"}.icon-barrier-add:before{content:\"\uE937\"}.icon-barrier-edit:before{content:\"\uE938\"}.icon-barrier-view:before{content:\"\uE939\"}.icon-button-group:before{content:\"\uE93A\"}.icon-chemical-manager:before{content:\"\uE93B\"}.icon-chronic-health-hazard .path1:before{content:\"\uE93C\";color:#e32730}.icon-chronic-health-hazard .path2:before{content:\"\uE93D\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path3:before{content:\"\uE93E\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path4:before{content:\"\uE93F\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path5:before{content:\"\uE940\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path6:before{content:\"\uE941\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path7:before{content:\"\uE942\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path8:before{content:\"\uE943\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path9:before{content:\"\uE944\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path10:before{content:\"\uE945\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path11:before{content:\"\uE946\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path12:before{content:\"\uE947\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path13:before{content:\"\uE948\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path14:before{content:\"\uE949\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path15:before{content:\"\uE94A\";margin-left:-1em;color:#323232}.icon-contingency:before{content:\"\uE94B\"}.icon-corrosive .path1:before{content:\"\uE94C\";color:#323232}.icon-corrosive .path2:before{content:\"\uE94D\";margin-left:-1em;color:#323232}.icon-corrosive .path3:before{content:\"\uE94E\";margin-left:-1em;color:#323232}.icon-corrosive .path4:before{content:\"\uE94F\";margin-left:-1em;color:#323232}.icon-corrosive .path5:before{content:\"\uE950\";margin-left:-1em;color:#323232}.icon-corrosive .path6:before{content:\"\uE951\";margin-left:-1em;color:#323232}.icon-corrosive .path7:before{content:\"\uE952\";margin-left:-1em;color:#323232}.icon-corrosive .path8:before{content:\"\uE953\";margin-left:-1em;color:#323232}.icon-corrosive .path9:before{content:\"\uE954\";margin-left:-1em;color:#323232}.icon-corrosive .path10:before{content:\"\uE955\";margin-left:-1em;color:#323232}.icon-corrosive .path11:before{content:\"\uE956\";margin-left:-1em;color:#323232}.icon-corrosive .path12:before{content:\"\uE957\";margin-left:-1em;color:#323232}.icon-corrosive .path13:before{content:\"\uE958\";margin-left:-1em;color:#323232}.icon-corrosive .path14:before{content:\"\uE959\";margin-left:-1em;color:#323232}.icon-corrosive .path15:before{content:\"\uE95A\";margin-left:-1em;color:#323232}.icon-corrosive .path16:before{content:\"\uE95B\";margin-left:-1em;color:#323232}.icon-corrosive .path17:before{content:\"\uE95C\";margin-left:-1em;color:#323232}.icon-corrosive .path18:before{content:\"\uE95D\";margin-left:-1em;color:#323232}.icon-corrosive .path19:before{content:\"\uE95E\";margin-left:-1em;color:#323232}.icon-corrosive .path20:before{content:\"\uE95F\";margin-left:-1em;color:#323232}.icon-corrosive .path21:before{content:\"\uE960\";margin-left:-1em;color:#e32730}.icon-dashboard:before{content:\"\uE961\"}.icon-database-sds:before{content:\"\uE962\"}.icon-description-add:before{content:\"\uE963\"}.icon-description-edit:before{content:\"\uE964\"}.icon-description-view:before{content:\"\uE965\";color:#666}.icon-document-read .path1:before{content:\"\uE966\";color:#000;opacity:.6}.icon-document-read .path2:before{content:\"\uE967\";margin-left:-1em;color:#fff}.icon-document-read .path3:before{content:\"\uE968\";margin-left:-1em;color:#000;opacity:.6}.icon-draft:before{content:\"\uE969\"}.icon-expired-off:before{content:\"\uE96A\"}.icon-expired-on:before{content:\"\uE96B\"}.icon-explosive .path1:before{content:\"\uE96C\";color:#e32730}.icon-explosive .path2:before{content:\"\uE96D\";margin-left:-1em;color:#323232}.icon-explosive .path3:before{content:\"\uE96E\";margin-left:-1em;color:#323232}.icon-explosive .path4:before{content:\"\uE96F\";margin-left:-1em;color:#323232}.icon-explosive .path5:before{content:\"\uE970\";margin-left:-1em;color:#323232}.icon-explosive .path6:before{content:\"\uE971\";margin-left:-1em;color:#323232}.icon-explosive .path7:before{content:\"\uE972\";margin-left:-1em;color:#323232}.icon-explosive .path8:before{content:\"\uE973\";margin-left:-1em;color:#323232}.icon-explosive .path9:before{content:\"\uE974\";margin-left:-1em;color:#323232}.icon-explosive .path10:before{content:\"\uE975\";margin-left:-1em;color:#323232}.icon-explosive .path11:before{content:\"\uE976\";margin-left:-1em;color:#323232}.icon-explosive .path12:before{content:\"\uE977\";margin-left:-1em;color:#323232}.icon-explosive .path13:before{content:\"\uE978\";margin-left:-1em;color:#323232}.icon-explosive .path14:before{content:\"\uE979\";margin-left:-1em;color:#323232}.icon-explosive .path15:before{content:\"\uE97A\";margin-left:-1em;color:#323232}.icon-explosive .path16:before{content:\"\uE97B\";margin-left:-1em;color:#323232}.icon-explosive .path17:before{content:\"\uE97C\";margin-left:-1em;color:#323232}.icon-explosive .path18:before{content:\"\uE97D\";margin-left:-1em;color:#323232}.icon-explosive .path19:before{content:\"\uE97E\";margin-left:-1em;color:#323232}.icon-explosive .path20:before{content:\"\uE97F\";margin-left:-1em;color:#323232}.icon-explosive .path21:before{content:\"\uE980\";margin-left:-1em;color:#323232}.icon-explosive .path22:before{content:\"\uE981\";margin-left:-1em;color:#323232}.icon-explosive .path23:before{content:\"\uE982\";margin-left:-1em;color:#323232}.icon-explosive .path24:before{content:\"\uE983\";margin-left:-1em;color:#323232}.icon-explosive .path25:before{content:\"\uE984\";margin-left:-1em;color:#323232}.icon-explosive .path26:before{content:\"\uE985\";margin-left:-1em;color:#323232}.icon-explosive .path27:before{content:\"\uE986\";margin-left:-1em;color:#323232}.icon-explosive .path28:before{content:\"\uE987\";margin-left:-1em;color:#323232}.icon-explosive .path29:before{content:\"\uE988\";margin-left:-1em;color:#323232}.icon-explosive .path30:before{content:\"\uE989\";margin-left:-1em;color:#323232}.icon-explosive .path31:before{content:\"\uE98A\";margin-left:-1em;color:#323232}.icon-explosive .path32:before{content:\"\uE98B\";margin-left:-1em;color:#323232}.icon-explosive .path33:before{content:\"\uE98C\";margin-left:-1em;color:#323232}.icon-explosive .path34:before{content:\"\uE98D\";margin-left:-1em;color:#323232}.icon-explosive .path35:before{content:\"\uE98E\";margin-left:-1em;color:#323232}.icon-explosive .path36:before{content:\"\uE98F\";margin-left:-1em;color:#323232}.icon-explosive .path37:before{content:\"\uE990\";margin-left:-1em;color:#323232}.icon-explosive .path38:before{content:\"\uE991\";margin-left:-1em;color:#323232}.icon-explosive .path39:before{content:\"\uE992\";margin-left:-1em;color:#323232}.icon-explosive .path40:before{content:\"\uE993\";margin-left:-1em;color:#323232}.icon-explosive .path41:before{content:\"\uE994\";margin-left:-1em;color:#323232}.icon-explosive .path42:before{content:\"\uE995\";margin-left:-1em;color:#323232}.icon-explosive .path43:before{content:\"\uE996\";margin-left:-1em;color:#323232}.icon-explosive .path44:before{content:\"\uE997\";margin-left:-1em;color:#323232}.icon-explosive .path45:before{content:\"\uE998\";margin-left:-1em;color:#323232}.icon-explosive .path46:before{content:\"\uE999\";margin-left:-1em;color:#323232}.icon-file-excel:before{content:\"\uE99A\"}.icon-file-pdf:before{content:\"\uE99B\"}.icon-file-pdf-verified .path1:before{content:\"\uE99C\";color:#000;opacity:.6}.icon-file-pdf-verified .path2:before{content:\"\uE99D\";margin-left:-1em;color:#fff}.icon-file-pdf-verified .path3:before{content:\"\uE99E\";margin-left:-1em;color:#000;opacity:.6}.icon-file-word:before{content:\"\uE99F\"}.icon-filter-alt:before{content:\"\uE9A0\"}.icon-flammable .path1:before{content:\"\uE9A1\";color:#323232}.icon-flammable .path2:before{content:\"\uE9A2\";margin-left:-1em;color:#323232}.icon-flammable .path3:before{content:\"\uE9A3\";margin-left:-1em;color:#e32730}.icon-gas-under-pressure .path1:before{content:\"\uE9A4\";color:#323232}.icon-gas-under-pressure .path2:before{content:\"\uE9A5\";margin-left:-1em;color:#e32730}.icon-health-hazard .path1:before{content:\"\uE9A6\";color:#323232}.icon-health-hazard .path2:before{content:\"\uE9A7\";margin-left:-1em;color:#e32730}.icon-line-break:before{content:\"\uE9A8\"}.icon-location:before{content:\"\uE9A9\"}.icon-measure-add:before{content:\"\uE9AA\"}.icon-measure-edit:before{content:\"\uE9AB\"}.icon-measure-view:before{content:\"\uE9AC\";color:#666}.icon-messages:before{content:\"\uE9AD\"}.icon-monitoring:before{content:\"\uE9AE\";color:#666}.icon-move:before{content:\"\uE9AF\"}.icon-oxidizing .path1:before{content:\"\uE9B0\";color:#e32730}.icon-oxidizing .path2:before{content:\"\uE9B1\";margin-left:-1em;color:#323232}.icon-oxidizing .path3:before{content:\"\uE9B2\";margin-left:-1em;color:#323232}.icon-oxidizing .path4:before{content:\"\uE9B3\";margin-left:-1em;color:#323232}.icon-process-area-closed:before{content:\"\uE9B4\"}.icon-process-area-open:before{content:\"\uE9B5\"}.icon-process-linked .path1:before{content:\"\uE9B6\";color:#000;opacity:.6}.icon-process-linked .path2:before{content:\"\uE9B7\";margin-left:-1em;color:#666}.icon-risk:before{content:\"\uE9B8\"}.icon-search-in-file:before{content:\"\uE9B9\"}.icon-sort-ascending:before{content:\"\uE9BA\"}.icon-sort-descending:before{content:\"\uE9BB\"}.icon-subscript:before{content:\"\uE9BC\"}.icon-superscript:before{content:\"\uE9BD\"}.icon-syncronice-favorites:before{content:\"\uE9BE\"}.icon-system-settings:before{content:\"\uE9BF\"}.icon-view-three-outlined:before{content:\"\uE9C0\"}.icon-workplace-safety:before{content:\"\uE9C1\"}.icon-checklist:before{content:\"\uE900\"}.icon-department-document .path1:before{content:\"\uE901\";color:#000;opacity:.6}.icon-department-document .path2:before{content:\"\uE902\";margin-left:-1em;color:#00804c}.icon-department-folder-closed .path1:before{content:\"\uE903\";color:#000;opacity:.6}.icon-department-folder-closed .path2:before{content:\"\uE904\";margin-left:-1em;color:#00804c}.icon-department-folder-open .path1:before{content:\"\uE905\";color:#000;opacity:.6}.icon-department-folder-open .path2:before{content:\"\uE906\";margin-left:-1em;color:#00804c}.icon-deviation:before{content:\"\uE907\"}.icon-dropdown-folder .path1:before{content:\"\uE908\";color:#00324e}.icon-dropdown-folder .path2:before{content:\"\uE909\";margin-left:-1em;color:#fff;opacity:.6}.icon-enterprise-document .path1:before{content:\"\uE90A\";color:#000;opacity:.6}.icon-enterprise-document .path2:before{content:\"\uE90B\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-closed .path1:before{content:\"\uE90C\";color:#000;opacity:.6}.icon-enterprise-folder-closed .path2:before{content:\"\uE90D\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-open .path1:before{content:\"\uE90E\";color:#000;opacity:.6}.icon-enterprise-folder-open .path2:before{content:\"\uE90F\";margin-left:-1em;color:#cf4714}.icon-folder-closed:before{content:\"\uE910\"}.icon-folder-open:before{content:\"\uE911\"}.icon-keyboard_arrow_down:before{content:\"\uE912\"}.icon-keyboard_arrow_up:before{content:\"\uE913\"}.icon-local-document .path1:before{content:\"\uE914\";color:#000;opacity:.6}.icon-local-document .path2:before{content:\"\uE915\";margin-left:-1em;color:#1954a9}.icon-local-folder-closed .path1:before{content:\"\uE916\";color:#000;opacity:.6}.icon-local-folder-closed .path2:before{content:\"\uE917\";margin-left:-1em;color:#1954a9}.icon-local-folder-open .path1:before{content:\"\uE918\";color:#000;opacity:.6}.icon-local-folder-open .path2:before{content:\"\uE919\";margin-left:-1em;color:#1954a9}.icon-process:before{content:\"\uE91A\"}.icon-regional-document .path1:before{content:\"\uE91C\";color:#000;opacity:.6}.icon-regional-document .path2:before{content:\"\uE91D\";margin-left:-1em;color:#662e0d}.icon-regional-folder-closed .path1:before{content:\"\uE91E\";color:#000;opacity:.6}.icon-regional-folder-closed .path2:before{content:\"\uE91F\";margin-left:-1em;color:#662e0d}.icon-regional-folder-open .path1:before{content:\"\uE920\";color:#000;opacity:.6}.icon-regional-folder-open .path2:before{content:\"\uE921\";margin-left:-1em;color:#662e0d}.qms-select-department-tree-container .mr10{margin-right:10px}.qms-select-department-tree-container .mt5{margin-bottom:5px}.qms-select-department-tree-container .mb5{margin-top:5px}.qms-select-department-tree-container .w100{width:100%}.qms-select-department-tree-container .fw500{font-weight:500!important}.qms-select-department-tree-container .text-right{text-align:right}.qms-select-department-tree-container .mt20{margin-top:20px}.qms-select-department-tree-container .text-selected{color:rgba(0,0,0,.6);font-size:12px;line-height:16px;margin-top:1rem}.qms-select-department-tree-container .input-field{display:flex;align-items:center;position:relative}.qms-select-department-tree-container .input-field ::ng-deep .mat-form-field-wrapper{padding-bottom:8px!important}.qms-select-department-tree-container .input-field ::ng-deep .mat-form-field-underline{bottom:8px!important}.qms-select-department-tree-container .input-field input.input-search{width:100%;padding:10px;outline:none;border:none;background:var(--background-input-text)}.qms-select-department-tree-container .input-field .btn-search{cursor:pointer;vertical-align:middle;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.qms-select-department-tree-container .input-field .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qms-select-department-tree-container .tree-department-wrapper{height:375px;padding-right:4px;overflow-y:auto;overflow-x:hidden;position:relative}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node{border-radius:4px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node:hover{background:rgba(0,0,0,.08)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node:active{background:rgba(0,0,0,.12)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active{color:var(--primary);background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active:active{background:var(--primary-light-12-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active button,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active button{color:var(--primary)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active:hover{background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active:active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.selected-theme{background:var(--primary-light-12-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node button{color:var(--primary)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node:hover{background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node:active{background:var(--primary-light-12-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .type-icon{margin-right:5px;color:var(--ws-action-active)}.qms-select-department-tree-container .mat-tree.select-department-tree .text-name{color:var(--default-color)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-icon-rtl-mirror{color:rgba(0,0,0,.6)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-icon-button.btn-toggle{width:35px;height:35px;line-height:35px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all{cursor:default!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all button.mat-button-disabled{color:rgba(0,0,0,.38)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all .text-name.disabled{color:rgba(0,0,0,.38);cursor:default!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all.active{background-color:transparent}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled button.mat-button-disabled{color:rgba(0,0,0,.38)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled .text-name.disabled{color:rgba(0,0,0,.38);cursor:default!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled.active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled.expand-node:active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled.expand-node:hover,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled:active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled:hover{background-color:transparent}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node .node-without-checkbox{cursor:pointer;width:100%;display:flex;justify-content:space-between;align-items:center}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node .node-without-checkbox .mat-icon{color:var(--primary);margin-right:4px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node>.node-content-wraper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node>.node-content-wraper>.mat-progress-bar{height:3px;width:100%;position:absolute;bottom:0;left:10px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node>.node-content-wraper>.mat-progress-bar .mat-progress-bar-fill:after{background:var(--primary)}.qms-select-department-tree-container .text-name{position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;width:100%}.qms-select-department-tree-container .cursor-pointer{cursor:pointer}.qms-select-department-tree-container .ml5{margin-left:10px!important}.qms-select-department-tree-container ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-layout{white-space:normal}.qms-select-department-tree-container ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-label{flex-direction:row;align-items:center;position:relative;padding-bottom:2px}.qms-select-department-tree-container .qms-view-search-result{height:375px;width:100%;overflow:hidden}.qms-select-department-tree-container .qms-view-search-result .result{max-height:calc(100% - 44px);overflow-y:auto;margin-bottom:4px;padding-right:4px}.qms-select-department-tree-container .qms-view-search-result .result.active-paging{max-height:calc(100% - 80px)}.qms-select-department-tree-container .qms-view-search-result .result.no-result{height:100%;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container .qms-view-search-result .result-item{border-radius:4px;display:grid;grid-template-columns:45px 1fr;align-items:center;cursor:pointer;transition:background .3s ease}.qms-select-department-tree-container .qms-view-search-result .result-item:not(:first-child){margin-top:4px!important}.qms-select-department-tree-container .qms-view-search-result .result-item.active,.qms-select-department-tree-container .qms-view-search-result .result-item:hover{background:linear-gradient(0deg,rgba(1,99,178,.12),rgba(1,99,178,.12)),#fff}.qms-select-department-tree-container .qms-view-search-result .result-item .item-result-content-wraper{padding:5px 15px}.qms-select-department-tree-container .qms-view-search-result ::ng-deep .mat-checkbox.qms-group-options{display:flex;height:100%}.qms-select-department-tree-container ::ng-deep .breadcrumb-container{flex-wrap:wrap}.qms-select-department-tree-container ::ng-deep .mat-button-focus-overlay{background-color:transparent}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item{margin:0}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:color .3s ease}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item-text:not(:last-child){max-width:150px!important}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item-text:not(:last-child):hover{color:var(--primary)}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-icon{display:flex;align-items:center;justify-content:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-form-field-wrapper{padding-bottom:0}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container{min-height:40px}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{margin-bottom:0;margin-right:12px;height:100%;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-total-result span{font-weight:600;font-size:13px;color:rgba(0,0,0,.8)}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions{margin-bottom:0;grid-column-gap:2px;-moz-column-gap:2px;column-gap:2px}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions>.qms-total-result{margin-bottom:0}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions>.qms-btn-icon{width:30px;height:30px;line-height:30px}.qms-select-department-tree-container ::ng-deep .qms-paginator>.qms-btn-icon-wrapper{width:30px;height:30px;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size{margin-right:12px;height:100%;display:flex;align-items:center;justify-content:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex{width:60px;height:30px;display:flex;align-items:center;padding:0 4px}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex .mat-form-field-infix{height:30px}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size>.qms-pagesize-label{display:none}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-form-field.qms-form .mat-select-min-line,.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-form-field.qms-form mat-select-trigger{font-size:14px}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-select-value{text-align:center}.qms-select-department-tree-container .text-gray{color:#242424}.qms-select-department-tree-container .mb0{margin-bottom:0!important}.qms-select-department-tree-container .fs-base{font-size:14px!important}.qms-select-department-tree-container .user-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .item-breadcrumb-disable{cursor:not-allowed;color:rgba(0,0,0,.6);font-weight:400;font-size:14px}.qms-select-department-tree-container ::ng-deep .mat-checkbox.checkbox-all .mat-checkbox-label{flex-direction:row;align-items:center;grid-column-gap:4px;-moz-column-gap:4px;column-gap:4px}.qms-select-department-tree-container ::ng-deep .btn-arrow{width:40px;height:40px;line-height:40px}.qms-select-department-tree-container .loading-container{overflow:hidden;height:100%;display:grid;grid-template-rows:repeat(auto-fill,minmax(60px,60px))}.qms-select-department-tree-container .loading-container .loader{position:relative;width:100%;height:100%;padding:10px 0;overflow:hidden}.qms-select-department-tree-container .loading-container .loader:after{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:linear-gradient(110deg,hsla(0,0%,91%,0),hsla(0,0%,89%,0) 40%,hsla(0,0%,89%,.5) 50%,hsla(0,0%,89%,0) 60%,hsla(0,0%,89%,0));-webkit-animation:animate-loading 1.2s linear infinite;animation:animate-loading 1.2s linear infinite}.qms-select-department-tree-container .loading-container .loader__wrapper{position:relative;width:100%;height:100%}.qms-select-department-tree-container .loading-container .loader__wrapper .row-loader{background-color:#eee;position:absolute;left:0;width:100%;height:40px}@-webkit-keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"]
|
31042
|
+
styles: ["@charset \"UTF-8\";@font-face{font-family:icomoon;src:url(../assets/fonts/icomoon.eot?aghldx);src:url(../assets/fonts/icomoon.eot?aghldx#iefix) format(\"embedded-opentype\"),url(../assets/fonts/icomoon.ttf?aghldx) format(\"truetype\"),url(../assets/fonts/icomoon.woff?aghldx) format(\"woff\"),url(../assets/fonts/icomoon.svg?aghldx#icomoon) format(\"svg\");font-weight:400;font-style:normal;font-display:block}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-acutely-toxic .path1:before{content:\"\uE91B\";color:#e32730}.icon-acutely-toxic .path2:before{content:\"\uE922\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path3:before{content:\"\uE923\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path4:before{content:\"\uE924\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path5:before{content:\"\uE925\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path6:before{content:\"\uE926\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path7:before{content:\"\uE927\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path8:before{content:\"\uE928\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path9:before{content:\"\uE929\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path10:before{content:\"\uE92A\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path11:before{content:\"\uE92B\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path12:before{content:\"\uE92C\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path13:before{content:\"\uE92D\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path14:before{content:\"\uE92E\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path15:before{content:\"\uE92F\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path16:before{content:\"\uE930\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path17:before{content:\"\uE931\";margin-left:-1em;color:#323232}.icon-add-column:before{content:\"\uE932\"}.icon-add-tooltip:before{content:\"\uE933\"}.icon-admin:before{content:\"\uE934\"}.icon-annual-cycle:before{content:\"\uE935\"}.icon-assignment-repete:before{content:\"\uE936\"}.icon-barrier-add:before{content:\"\uE937\"}.icon-barrier-edit:before{content:\"\uE938\"}.icon-barrier-view:before{content:\"\uE939\"}.icon-button-group:before{content:\"\uE93A\"}.icon-chemical-manager:before{content:\"\uE93B\"}.icon-chronic-health-hazard .path1:before{content:\"\uE93C\";color:#e32730}.icon-chronic-health-hazard .path2:before{content:\"\uE93D\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path3:before{content:\"\uE93E\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path4:before{content:\"\uE93F\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path5:before{content:\"\uE940\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path6:before{content:\"\uE941\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path7:before{content:\"\uE942\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path8:before{content:\"\uE943\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path9:before{content:\"\uE944\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path10:before{content:\"\uE945\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path11:before{content:\"\uE946\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path12:before{content:\"\uE947\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path13:before{content:\"\uE948\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path14:before{content:\"\uE949\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path15:before{content:\"\uE94A\";margin-left:-1em;color:#323232}.icon-contingency:before{content:\"\uE94B\"}.icon-corrosive .path1:before{content:\"\uE94C\";color:#323232}.icon-corrosive .path2:before{content:\"\uE94D\";margin-left:-1em;color:#323232}.icon-corrosive .path3:before{content:\"\uE94E\";margin-left:-1em;color:#323232}.icon-corrosive .path4:before{content:\"\uE94F\";margin-left:-1em;color:#323232}.icon-corrosive .path5:before{content:\"\uE950\";margin-left:-1em;color:#323232}.icon-corrosive .path6:before{content:\"\uE951\";margin-left:-1em;color:#323232}.icon-corrosive .path7:before{content:\"\uE952\";margin-left:-1em;color:#323232}.icon-corrosive .path8:before{content:\"\uE953\";margin-left:-1em;color:#323232}.icon-corrosive .path9:before{content:\"\uE954\";margin-left:-1em;color:#323232}.icon-corrosive .path10:before{content:\"\uE955\";margin-left:-1em;color:#323232}.icon-corrosive .path11:before{content:\"\uE956\";margin-left:-1em;color:#323232}.icon-corrosive .path12:before{content:\"\uE957\";margin-left:-1em;color:#323232}.icon-corrosive .path13:before{content:\"\uE958\";margin-left:-1em;color:#323232}.icon-corrosive .path14:before{content:\"\uE959\";margin-left:-1em;color:#323232}.icon-corrosive .path15:before{content:\"\uE95A\";margin-left:-1em;color:#323232}.icon-corrosive .path16:before{content:\"\uE95B\";margin-left:-1em;color:#323232}.icon-corrosive .path17:before{content:\"\uE95C\";margin-left:-1em;color:#323232}.icon-corrosive .path18:before{content:\"\uE95D\";margin-left:-1em;color:#323232}.icon-corrosive .path19:before{content:\"\uE95E\";margin-left:-1em;color:#323232}.icon-corrosive .path20:before{content:\"\uE95F\";margin-left:-1em;color:#323232}.icon-corrosive .path21:before{content:\"\uE960\";margin-left:-1em;color:#e32730}.icon-dashboard:before{content:\"\uE961\"}.icon-database-sds:before{content:\"\uE962\"}.icon-description-add:before{content:\"\uE963\"}.icon-description-edit:before{content:\"\uE964\"}.icon-description-view:before{content:\"\uE965\";color:#666}.icon-document-read .path1:before{content:\"\uE966\";color:#000;opacity:.6}.icon-document-read .path2:before{content:\"\uE967\";margin-left:-1em;color:#fff}.icon-document-read .path3:before{content:\"\uE968\";margin-left:-1em;color:#000;opacity:.6}.icon-draft:before{content:\"\uE969\"}.icon-expired-off:before{content:\"\uE96A\"}.icon-expired-on:before{content:\"\uE96B\"}.icon-explosive .path1:before{content:\"\uE96C\";color:#e32730}.icon-explosive .path2:before{content:\"\uE96D\";margin-left:-1em;color:#323232}.icon-explosive .path3:before{content:\"\uE96E\";margin-left:-1em;color:#323232}.icon-explosive .path4:before{content:\"\uE96F\";margin-left:-1em;color:#323232}.icon-explosive .path5:before{content:\"\uE970\";margin-left:-1em;color:#323232}.icon-explosive .path6:before{content:\"\uE971\";margin-left:-1em;color:#323232}.icon-explosive .path7:before{content:\"\uE972\";margin-left:-1em;color:#323232}.icon-explosive .path8:before{content:\"\uE973\";margin-left:-1em;color:#323232}.icon-explosive .path9:before{content:\"\uE974\";margin-left:-1em;color:#323232}.icon-explosive .path10:before{content:\"\uE975\";margin-left:-1em;color:#323232}.icon-explosive .path11:before{content:\"\uE976\";margin-left:-1em;color:#323232}.icon-explosive .path12:before{content:\"\uE977\";margin-left:-1em;color:#323232}.icon-explosive .path13:before{content:\"\uE978\";margin-left:-1em;color:#323232}.icon-explosive .path14:before{content:\"\uE979\";margin-left:-1em;color:#323232}.icon-explosive .path15:before{content:\"\uE97A\";margin-left:-1em;color:#323232}.icon-explosive .path16:before{content:\"\uE97B\";margin-left:-1em;color:#323232}.icon-explosive .path17:before{content:\"\uE97C\";margin-left:-1em;color:#323232}.icon-explosive .path18:before{content:\"\uE97D\";margin-left:-1em;color:#323232}.icon-explosive .path19:before{content:\"\uE97E\";margin-left:-1em;color:#323232}.icon-explosive .path20:before{content:\"\uE97F\";margin-left:-1em;color:#323232}.icon-explosive .path21:before{content:\"\uE980\";margin-left:-1em;color:#323232}.icon-explosive .path22:before{content:\"\uE981\";margin-left:-1em;color:#323232}.icon-explosive .path23:before{content:\"\uE982\";margin-left:-1em;color:#323232}.icon-explosive .path24:before{content:\"\uE983\";margin-left:-1em;color:#323232}.icon-explosive .path25:before{content:\"\uE984\";margin-left:-1em;color:#323232}.icon-explosive .path26:before{content:\"\uE985\";margin-left:-1em;color:#323232}.icon-explosive .path27:before{content:\"\uE986\";margin-left:-1em;color:#323232}.icon-explosive .path28:before{content:\"\uE987\";margin-left:-1em;color:#323232}.icon-explosive .path29:before{content:\"\uE988\";margin-left:-1em;color:#323232}.icon-explosive .path30:before{content:\"\uE989\";margin-left:-1em;color:#323232}.icon-explosive .path31:before{content:\"\uE98A\";margin-left:-1em;color:#323232}.icon-explosive .path32:before{content:\"\uE98B\";margin-left:-1em;color:#323232}.icon-explosive .path33:before{content:\"\uE98C\";margin-left:-1em;color:#323232}.icon-explosive .path34:before{content:\"\uE98D\";margin-left:-1em;color:#323232}.icon-explosive .path35:before{content:\"\uE98E\";margin-left:-1em;color:#323232}.icon-explosive .path36:before{content:\"\uE98F\";margin-left:-1em;color:#323232}.icon-explosive .path37:before{content:\"\uE990\";margin-left:-1em;color:#323232}.icon-explosive .path38:before{content:\"\uE991\";margin-left:-1em;color:#323232}.icon-explosive .path39:before{content:\"\uE992\";margin-left:-1em;color:#323232}.icon-explosive .path40:before{content:\"\uE993\";margin-left:-1em;color:#323232}.icon-explosive .path41:before{content:\"\uE994\";margin-left:-1em;color:#323232}.icon-explosive .path42:before{content:\"\uE995\";margin-left:-1em;color:#323232}.icon-explosive .path43:before{content:\"\uE996\";margin-left:-1em;color:#323232}.icon-explosive .path44:before{content:\"\uE997\";margin-left:-1em;color:#323232}.icon-explosive .path45:before{content:\"\uE998\";margin-left:-1em;color:#323232}.icon-explosive .path46:before{content:\"\uE999\";margin-left:-1em;color:#323232}.icon-file-excel:before{content:\"\uE99A\"}.icon-file-pdf:before{content:\"\uE99B\"}.icon-file-pdf-verified .path1:before{content:\"\uE99C\";color:#000;opacity:.6}.icon-file-pdf-verified .path2:before{content:\"\uE99D\";margin-left:-1em;color:#fff}.icon-file-pdf-verified .path3:before{content:\"\uE99E\";margin-left:-1em;color:#000;opacity:.6}.icon-file-word:before{content:\"\uE99F\"}.icon-filter-alt:before{content:\"\uE9A0\"}.icon-flammable .path1:before{content:\"\uE9A1\";color:#323232}.icon-flammable .path2:before{content:\"\uE9A2\";margin-left:-1em;color:#323232}.icon-flammable .path3:before{content:\"\uE9A3\";margin-left:-1em;color:#e32730}.icon-gas-under-pressure .path1:before{content:\"\uE9A4\";color:#323232}.icon-gas-under-pressure .path2:before{content:\"\uE9A5\";margin-left:-1em;color:#e32730}.icon-health-hazard .path1:before{content:\"\uE9A6\";color:#323232}.icon-health-hazard .path2:before{content:\"\uE9A7\";margin-left:-1em;color:#e32730}.icon-line-break:before{content:\"\uE9A8\"}.icon-location:before{content:\"\uE9A9\"}.icon-measure-add:before{content:\"\uE9AA\"}.icon-measure-edit:before{content:\"\uE9AB\"}.icon-measure-view:before{content:\"\uE9AC\";color:#666}.icon-messages:before{content:\"\uE9AD\"}.icon-monitoring:before{content:\"\uE9AE\";color:#666}.icon-move:before{content:\"\uE9AF\"}.icon-oxidizing .path1:before{content:\"\uE9B0\";color:#e32730}.icon-oxidizing .path2:before{content:\"\uE9B1\";margin-left:-1em;color:#323232}.icon-oxidizing .path3:before{content:\"\uE9B2\";margin-left:-1em;color:#323232}.icon-oxidizing .path4:before{content:\"\uE9B3\";margin-left:-1em;color:#323232}.icon-process-area-closed:before{content:\"\uE9B4\"}.icon-process-area-open:before{content:\"\uE9B5\"}.icon-process-linked .path1:before{content:\"\uE9B6\";color:#000;opacity:.6}.icon-process-linked .path2:before{content:\"\uE9B7\";margin-left:-1em;color:#666}.icon-risk:before{content:\"\uE9B8\"}.icon-search-in-file:before{content:\"\uE9B9\"}.icon-sort-ascending:before{content:\"\uE9BA\"}.icon-sort-descending:before{content:\"\uE9BB\"}.icon-subscript:before{content:\"\uE9BC\"}.icon-superscript:before{content:\"\uE9BD\"}.icon-syncronice-favorites:before{content:\"\uE9BE\"}.icon-system-settings:before{content:\"\uE9BF\"}.icon-view-three-outlined:before{content:\"\uE9C0\"}.icon-workplace-safety:before{content:\"\uE9C1\"}.icon-checklist:before{content:\"\uE900\"}.icon-department-document .path1:before{content:\"\uE901\";color:#000;opacity:.6}.icon-department-document .path2:before{content:\"\uE902\";margin-left:-1em;color:#00804c}.icon-department-folder-closed .path1:before{content:\"\uE903\";color:#000;opacity:.6}.icon-department-folder-closed .path2:before{content:\"\uE904\";margin-left:-1em;color:#00804c}.icon-department-folder-open .path1:before{content:\"\uE905\";color:#000;opacity:.6}.icon-department-folder-open .path2:before{content:\"\uE906\";margin-left:-1em;color:#00804c}.icon-deviation:before{content:\"\uE907\"}.icon-dropdown-folder .path1:before{content:\"\uE908\";color:#00324e}.icon-dropdown-folder .path2:before{content:\"\uE909\";margin-left:-1em;color:#fff;opacity:.6}.icon-enterprise-document .path1:before{content:\"\uE90A\";color:#000;opacity:.6}.icon-enterprise-document .path2:before{content:\"\uE90B\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-closed .path1:before{content:\"\uE90C\";color:#000;opacity:.6}.icon-enterprise-folder-closed .path2:before{content:\"\uE90D\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-open .path1:before{content:\"\uE90E\";color:#000;opacity:.6}.icon-enterprise-folder-open .path2:before{content:\"\uE90F\";margin-left:-1em;color:#cf4714}.icon-folder-closed:before{content:\"\uE910\"}.icon-folder-open:before{content:\"\uE911\"}.icon-keyboard_arrow_down:before{content:\"\uE912\"}.icon-keyboard_arrow_up:before{content:\"\uE913\"}.icon-local-document .path1:before{content:\"\uE914\";color:#000;opacity:.6}.icon-local-document .path2:before{content:\"\uE915\";margin-left:-1em;color:#1954a9}.icon-local-folder-closed .path1:before{content:\"\uE916\";color:#000;opacity:.6}.icon-local-folder-closed .path2:before{content:\"\uE917\";margin-left:-1em;color:#1954a9}.icon-local-folder-open .path1:before{content:\"\uE918\";color:#000;opacity:.6}.icon-local-folder-open .path2:before{content:\"\uE919\";margin-left:-1em;color:#1954a9}.icon-process:before{content:\"\uE91A\"}.icon-regional-document .path1:before{content:\"\uE91C\";color:#000;opacity:.6}.icon-regional-document .path2:before{content:\"\uE91D\";margin-left:-1em;color:#662e0d}.icon-regional-folder-closed .path1:before{content:\"\uE91E\";color:#000;opacity:.6}.icon-regional-folder-closed .path2:before{content:\"\uE91F\";margin-left:-1em;color:#662e0d}.icon-regional-folder-open .path1:before{content:\"\uE920\";color:#000;opacity:.6}.icon-regional-folder-open .path2:before{content:\"\uE921\";margin-left:-1em;color:#662e0d}.qms-select-department-tree-container .mr10{margin-right:10px}.qms-select-department-tree-container .mt5{margin-bottom:5px}.qms-select-department-tree-container .mb5{margin-top:5px}.qms-select-department-tree-container .w100{width:100%}.qms-select-department-tree-container .fw500{font-weight:500!important}.qms-select-department-tree-container .text-right{text-align:right}.qms-select-department-tree-container .mt20{margin-top:20px}.qms-select-department-tree-container .text-selected{color:rgba(0,0,0,.6);font-size:12px;line-height:16px;margin-top:1rem}.qms-select-department-tree-container .input-field{display:flex;align-items:center;position:relative}.qms-select-department-tree-container .input-field ::ng-deep .mat-form-field-wrapper{padding-bottom:8px!important}.qms-select-department-tree-container .input-field ::ng-deep .mat-form-field-underline{bottom:8px!important}.qms-select-department-tree-container .input-field input.input-search{width:100%;padding:10px;outline:none;border:none;background:var(--background-input-text)}.qms-select-department-tree-container .input-field .btn-search{cursor:pointer;vertical-align:middle;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.qms-select-department-tree-container .input-field .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qms-select-department-tree-container .tree-department-wrapper{height:375px;padding-right:4px;overflow-y:auto;overflow-x:hidden;position:relative}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node{border-radius:4px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node:hover{background:rgba(0,0,0,.08)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node:active{background:rgba(0,0,0,.12)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active{color:var(--primary);background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active:active{background:var(--primary-light-12-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.active button,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active button{color:var(--primary)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active:hover{background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node:not(.selected-theme).active:active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.selected-theme{background:var(--primary-light-12-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node button{color:var(--primary)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node:hover{background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.expand-node:active{background:var(--primary-light-12-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .type-icon{margin-right:5px;color:var(--ws-action-active)}.qms-select-department-tree-container .mat-tree.select-department-tree .text-name{color:var(--default-color)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-icon-rtl-mirror{color:rgba(0,0,0,.6)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-icon-button.btn-toggle{width:35px;height:35px;line-height:35px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all{cursor:default!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all button.mat-button-disabled{color:rgba(0,0,0,.38)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all .text-name.disabled{color:rgba(0,0,0,.38);cursor:default!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled-all.active{background-color:transparent}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled button.mat-button-disabled{color:rgba(0,0,0,.38)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled .text-name.disabled{color:rgba(0,0,0,.38);cursor:default!important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled.active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled.expand-node:active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled.expand-node:hover,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled:active,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.mat-tree-node-disabled:hover{background-color:transparent}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node .node-without-checkbox{cursor:pointer;width:100%;display:flex;justify-content:space-between;align-items:center}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node .node-without-checkbox .mat-icon{color:var(--primary);margin-right:4px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node>.node-content-wraper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node>.node-content-wraper>.mat-progress-bar{height:3px;width:100%;position:absolute;bottom:0;left:10px}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node>.node-content-wraper>.mat-progress-bar .mat-progress-bar-fill:after{background:var(--primary)}.qms-select-department-tree-container .text-name{position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;width:100%}.qms-select-department-tree-container .cursor-pointer{cursor:pointer}.qms-select-department-tree-container .ml5{margin-left:10px!important}.qms-select-department-tree-container ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-layout{white-space:normal}.qms-select-department-tree-container ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-label{flex-direction:row;align-items:center;position:relative;padding-bottom:2px}.qms-select-department-tree-container .qms-view-search-result{height:375px;width:100%;overflow:hidden}.qms-select-department-tree-container .qms-view-search-result .result{max-height:calc(100% - 44px);overflow-y:auto;margin-bottom:4px;padding-right:4px}.qms-select-department-tree-container .qms-view-search-result .result.active-paging{max-height:calc(100% - 80px)}.qms-select-department-tree-container .qms-view-search-result .result.no-result{height:100%;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container .qms-view-search-result .result-item{border-radius:4px;display:grid;grid-template-columns:45px 1fr;align-items:center;cursor:pointer;transition:background .3s ease}.qms-select-department-tree-container .qms-view-search-result .result-item:not(:first-child){margin-top:4px!important}.qms-select-department-tree-container .qms-view-search-result .result-item.active,.qms-select-department-tree-container .qms-view-search-result .result-item:hover{background:linear-gradient(0deg,rgba(1,99,178,.12),rgba(1,99,178,.12)),#fff}.qms-select-department-tree-container .qms-view-search-result .result-item .item-result-content-wraper{padding:5px 15px}.qms-select-department-tree-container .qms-view-search-result ::ng-deep .mat-checkbox.qms-group-options{display:flex;height:100%}.qms-select-department-tree-container ::ng-deep .breadcrumb-container{flex-wrap:wrap}.qms-select-department-tree-container ::ng-deep .mat-button-focus-overlay{background-color:transparent}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item{margin:0}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:color .3s ease}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item-text:not(:last-child){max-width:150px!important}.qms-select-department-tree-container ::ng-deep .qms-breadcrumb-item-text:not(:last-child):hover{color:var(--primary)}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-icon{display:flex;align-items:center;justify-content:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-form-field-wrapper{padding-bottom:0}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container{min-height:40px}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{margin-bottom:0;margin-right:12px;height:100%;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-total-result span{font-weight:600;font-size:13px;color:rgba(0,0,0,.8)}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions{margin-bottom:0;grid-column-gap:2px;-moz-column-gap:2px;column-gap:2px}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions>.qms-total-result{margin-bottom:0}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions>.qms-btn-icon{width:30px;height:30px;line-height:30px}.qms-select-department-tree-container ::ng-deep .qms-paginator>.qms-btn-icon-wrapper{width:30px;height:30px;display:flex;justify-content:center;align-items:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size{margin-right:12px;height:100%;display:flex;align-items:center;justify-content:center}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex{width:60px;height:30px;display:flex;align-items:center;padding:0 4px}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex .mat-form-field-infix{height:30px}.qms-select-department-tree-container ::ng-deep .qms-paginator .qms-paginator-page-size>.qms-pagesize-label{display:none}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-form-field.qms-form .mat-select-min-line,.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-form-field.qms-form mat-select-trigger{font-size:14px}.qms-select-department-tree-container ::ng-deep .qms-paginator .mat-select-value{text-align:center}.qms-select-department-tree-container .text-gray{color:#242424}.qms-select-department-tree-container .mb0{margin-bottom:0!important}.qms-select-department-tree-container .fs-base{font-size:14px!important}.qms-select-department-tree-container .user-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.qms-select-department-tree-container .item-breadcrumb-disable{cursor:not-allowed;color:rgba(0,0,0,.6);font-weight:400;font-size:14px}.qms-select-department-tree-container ::ng-deep .mat-checkbox.checkbox-all .mat-checkbox-label{flex-direction:row;align-items:center;grid-column-gap:4px;-moz-column-gap:4px;column-gap:4px}.qms-select-department-tree-container ::ng-deep .btn-arrow{width:40px;height:40px;line-height:40px}.qms-select-department-tree-container .loading-container{overflow:hidden;height:100%;display:grid;grid-template-rows:repeat(auto-fit,minmax(60px,60px))}.qms-select-department-tree-container .loading-container .loader{position:relative;width:100%;height:100%;padding:10px 0;overflow:hidden}.qms-select-department-tree-container .loading-container .loader:after{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:linear-gradient(110deg,hsla(0,0%,91%,0),hsla(0,0%,89%,0) 40%,hsla(0,0%,89%,.5) 50%,hsla(0,0%,89%,0) 60%,hsla(0,0%,89%,0));-webkit-animation:animate-loading 1.2s linear infinite;animation:animate-loading 1.2s linear infinite}.qms-select-department-tree-container .loading-container .loader__wrapper{position:relative;width:100%;height:100%}.qms-select-department-tree-container .loading-container .loader__wrapper .row-loader{background-color:#eee;position:absolute;left:0;width:100%;height:40px}@-webkit-keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"]
|
30924
31043
|
},] }
|
30925
31044
|
];
|
30926
31045
|
SelectDepartmentTreeComponent.ctorParameters = function () { return [
|
@@ -30929,13 +31048,17 @@
|
|
30929
31048
|
{ type: QMSIconRegistryService },
|
30930
31049
|
{ type: icon.MatIconRegistry },
|
30931
31050
|
{ type: i0.ElementRef },
|
30932
|
-
{ type: TranslateLibraryService }
|
31051
|
+
{ type: TranslateLibraryService },
|
31052
|
+
{ type: QMSSelectDepartmentTreeGlobalService }
|
30933
31053
|
]; };
|
30934
31054
|
SelectDepartmentTreeComponent.propDecorators = {
|
30935
31055
|
enableIncludeChild: [{ type: i0.Input }],
|
30936
31056
|
enableTreeSearch: [{ type: i0.Input }],
|
30937
31057
|
isSelectOne: [{ type: i0.Input }],
|
30938
31058
|
activeViewSearch: [{ type: i0.Input }],
|
31059
|
+
height: [{ type: i0.Input }],
|
31060
|
+
customClass: [{ type: i0.Input }],
|
31061
|
+
rowsSkeleton: [{ type: i0.Input }],
|
30939
31062
|
treeData: [{ type: i0.Input }],
|
30940
31063
|
selectedList: [{ type: i0.Input }],
|
30941
31064
|
selectIncludeLabel: [{ type: i0.Input }],
|
@@ -30943,7 +31066,9 @@
|
|
30943
31066
|
enablePagingSearch: [{ type: i0.Input }],
|
30944
31067
|
onSearchEvent: [{ type: i0.Output }],
|
30945
31068
|
onPagingSearchEvent: [{ type: i0.Output }],
|
30946
|
-
onValueChangeEvent: [{ type: i0.Output }]
|
31069
|
+
onValueChangeEvent: [{ type: i0.Output }],
|
31070
|
+
selectionNodeChangeEvent: [{ type: i0.Output }],
|
31071
|
+
paginatorSearch: [{ type: i0.ViewChild, args: ['paginatorSearch',] }]
|
30947
31072
|
};
|
30948
31073
|
|
30949
31074
|
var QMSSelectDepartmentTreeModule = /** @class */ (function () {
|
@@ -31022,6 +31147,16 @@
|
|
31022
31147
|
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
|
31023
31148
|
]),
|
31024
31149
|
]),
|
31150
|
+
animations$1.trigger('inOutAnimation_2', [
|
31151
|
+
animations$1.transition(':enter', [
|
31152
|
+
animations$1.style({ opacity: 0, transform: 'translateX(-10px)' }),
|
31153
|
+
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1, transform: 'none' }))
|
31154
|
+
]),
|
31155
|
+
animations$1.transition(':leave', [
|
31156
|
+
animations$1.style({ opacity: 1, filter: 'blur(5px)' }),
|
31157
|
+
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 0 }))
|
31158
|
+
]),
|
31159
|
+
]),
|
31025
31160
|
animations$1.trigger('rotateAnimation', [
|
31026
31161
|
animations$1.transition(':enter', [
|
31027
31162
|
animations$1.style({ transform: 'scale(0) rotate(-180deg)' }),
|
@@ -31041,44 +31176,37 @@
|
|
31041
31176
|
animations$1.style({ maxHeight: '175px', minHeight: '40px', opacity: 1 }),
|
31042
31177
|
animations$1.animate('0.1s ease-out', animations$1.style({ minHeight: 0, maxHeight: 0, opacity: 0 }))
|
31043
31178
|
])
|
31179
|
+
]),
|
31180
|
+
animations$1.trigger('updateItemAnimation', [
|
31181
|
+
animations$1.transition('void => *', [animations$1.animate('0.3s', animations$1.keyframes([
|
31182
|
+
animations$1.style({
|
31183
|
+
boxShadow: 'rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px',
|
31184
|
+
background: '#c8d6ea',
|
31185
|
+
offset: 0
|
31186
|
+
}),
|
31187
|
+
animations$1.style({
|
31188
|
+
boxShadow: "*",
|
31189
|
+
background: '*',
|
31190
|
+
offset: 1
|
31191
|
+
})
|
31192
|
+
]))]),
|
31044
31193
|
])
|
31045
31194
|
];
|
31046
31195
|
|
31047
|
-
var QMSSelectDepartmentGlobalService = /** @class */ (function () {
|
31048
|
-
function QMSSelectDepartmentGlobalService() {
|
31049
|
-
this.getDataTree$ = new rxjs.BehaviorSubject([]);
|
31050
|
-
this.searchDepartment$ = new rxjs.Subject();
|
31051
|
-
}
|
31052
|
-
QMSSelectDepartmentGlobalService.prototype.updateDataTree = function (data) {
|
31053
|
-
this.getDataTree$.next(data);
|
31054
|
-
};
|
31055
|
-
QMSSelectDepartmentGlobalService.prototype.setResultSearch = function (data) {
|
31056
|
-
this.searchDepartment$.next(data);
|
31057
|
-
};
|
31058
|
-
return QMSSelectDepartmentGlobalService;
|
31059
|
-
}());
|
31060
|
-
QMSSelectDepartmentGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectDepartmentGlobalService_Factory() { return new QMSSelectDepartmentGlobalService(); }, token: QMSSelectDepartmentGlobalService, providedIn: "root" });
|
31061
|
-
QMSSelectDepartmentGlobalService.decorators = [
|
31062
|
-
{ type: i0.Injectable, args: [{
|
31063
|
-
providedIn: 'root'
|
31064
|
-
},] }
|
31065
|
-
];
|
31066
|
-
|
31067
31196
|
var ɵ0$1 = {
|
31068
31197
|
clickAction: 'noop'
|
31069
31198
|
};
|
31070
31199
|
var SelectDepartmentComponent = /** @class */ (function () {
|
31071
|
-
function SelectDepartmentComponent(
|
31200
|
+
function SelectDepartmentComponent(cdRef, dialogRef, data, trans) {
|
31072
31201
|
var _this = this;
|
31073
|
-
this.selectDepartmentService = selectDepartmentService;
|
31074
31202
|
this.cdRef = cdRef;
|
31075
31203
|
this.dialogRef = dialogRef;
|
31076
31204
|
this.data = data;
|
31077
31205
|
this.trans = trans;
|
31078
31206
|
this.ngUnsubscribe = new rxjs.Subject();
|
31207
|
+
this.onPagingEvent = new i0.EventEmitter();
|
31079
31208
|
this.popupData = new SelectDepartmentPopupData();
|
31080
31209
|
this.groupIncludeChild = [];
|
31081
|
-
this.singleItem = [];
|
31082
31210
|
this.resultSelected = [];
|
31083
31211
|
this.onSearchEvent = new i0.EventEmitter();
|
31084
31212
|
this.resultSearch = [];
|
@@ -31089,12 +31217,7 @@
|
|
31089
31217
|
}
|
31090
31218
|
});
|
31091
31219
|
// Init popup data
|
31092
|
-
this.popupData = ___namespace.cloneDeep(data);
|
31093
|
-
this.selectDepartmentService.searchDepartment$
|
31094
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
31095
|
-
.subscribe(function (result) {
|
31096
|
-
_this.treeDepartment.setResultSearch(result);
|
31097
|
-
});
|
31220
|
+
this.popupData = ___namespace.cloneDeep(this.data);
|
31098
31221
|
}
|
31099
31222
|
SelectDepartmentComponent.prototype.ngAfterViewInit = function () {
|
31100
31223
|
this.cdRef.detectChanges();
|
@@ -31124,9 +31247,17 @@
|
|
31124
31247
|
var _this = this;
|
31125
31248
|
this.resultSelected = data.map(function (item) {
|
31126
31249
|
var _a;
|
31127
|
-
return Object.assign(Object.assign({}, item), { tooltip: ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) ? _this.formatString(_this.LANG.
|
31250
|
+
return Object.assign(Object.assign({}, item), { tooltip: ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) ? _this.formatString(_this.LANG.TOOLTIP_INCLUDE_SUB_DEPARTMENT, item.name, item.children.length.toString()) : item.name });
|
31128
31251
|
});
|
31129
31252
|
};
|
31253
|
+
SelectDepartmentComponent.prototype.generateTootip = function (node) {
|
31254
|
+
return node.isGroup ? this.formatString(this.LANG.TOOLTIP_INCLUDE_SUB_DEPARTMENT, node.name, node.children.length.toString()) : node.name;
|
31255
|
+
};
|
31256
|
+
SelectDepartmentComponent.prototype.updateResultSearch = function (data) {
|
31257
|
+
if (!this.treeDepartment)
|
31258
|
+
return;
|
31259
|
+
this.treeDepartment.setResultSearch(data);
|
31260
|
+
};
|
31130
31261
|
SelectDepartmentComponent.prototype.formatString = function () {
|
31131
31262
|
var replacements = [];
|
31132
31263
|
for (var _i = 0; _i < arguments.length; _i++) {
|
@@ -31144,26 +31275,26 @@
|
|
31144
31275
|
SelectDepartmentComponent.decorators = [
|
31145
31276
|
{ type: i0.Component, args: [{
|
31146
31277
|
selector: 'qms-select-department',
|
31147
|
-
template: "<div class=\"qms-select-department\">\r\n <div class=\"header-dialog mb-2\">\r\n <span>{{popupData.headerName}}</span>\r\n <button matDialogClose qms-btn-icon>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n <div>\r\n <div class=\"qms-scrollbar\">\r\n <div>\r\n <qms-select-department-tree #treeDepartment [treeData]=\"popupData.treeData\"\r\n [isSelectOne]=\"popupData.isSelectOne\"\r\n [enableIncludeChild]=\"popupData.includeChildren && !popupData.isSelectOne\"\r\n [selectIncludeLabel]=\"popupData.selectIncludeLabel\" [enableTreeSearch]=\"popupData.enableSearch\"\r\n [enablePagingSearch]=\"popupData.enablePagingSearch\" [activeViewSearch]=\"isActiveViewSearch\"\r\n [
|
31278
|
+
template: "<div class=\"qms-select-department\">\r\n <div class=\"header-dialog mb-2\">\r\n <span>{{popupData.headerName}}</span>\r\n <button matDialogClose qms-btn-icon>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n <div>\r\n <div class=\"qms-scrollbar\">\r\n <div>\r\n <qms-select-department-tree #treeDepartment [selectedList]=\"popupData.selectedList\"\r\n [treeData]=\"popupData.treeData\" customClass=\"custom-department-tree\" height=\"45vh\"\r\n [isSelectOne]=\"popupData.isSelectOne\"\r\n [enableIncludeChild]=\"popupData.includeChildren && !popupData.isSelectOne\"\r\n [selectIncludeLabel]=\"popupData.selectIncludeLabel\" [enableTreeSearch]=\"popupData.enableSearch\"\r\n [enablePagingSearch]=\"popupData.enablePagingSearch\" [activeViewSearch]=\"isActiveViewSearch\"\r\n [checkSearchMappingTree]=\"true\" (onSearchEvent)=\"onSearchEvent.emit($event)\"\r\n (onValueChangeEvent)=\"onResultDepartmentChange($event)\" (onPagingSearchEvent)=\"onPagingEvent.emit($event)\">\r\n </qms-select-department-tree>\r\n </div>\r\n </div>\r\n <div *ngIf=\"treeDepartment && !!treeDepartment.resultSelected.length\" class=\"line__divider\"></div>\r\n <div [@heightAnimation] *ngIf=\"treeDepartment && !!treeDepartment.resultSelected.length\" class=\" pr-0 pe-0\">\r\n <div class=\"header-title\">{{LANG.RESULTS}}</div>\r\n <div class=\"result-content pr-0 pe-0\">\r\n <mat-chip-list class=\"panel__item qms-scrollbar\">\r\n <div [@inOutAnimation_2] [id]=\"'item-result-'+item.id\" *ngFor=\"let item of treeDepartment.resultSelected\">\r\n <mat-chip [@updateItemAnimation] *qmsContentChanges=\"item.children?.length\"\r\n [qms-tool-tip]=\"generateTootip(item)\" position=\"top\" mode=\"dark\" qms-chip [removable]=\"true\">\r\n <span (click)=\"onScrollToNode(item)\" qms-chip-body>\r\n <span class=\"related__item__content_name\" #itemName>\r\n {{item.name}}\r\n <span class=\"select__include-children__count\" *ngIf=\"!!item?.isGroup\">\r\n {{item.children.length}}/{{item.childCount}}\r\n </span>\r\n </span>\r\n </span>\r\n <mat-icon (click)=\"onRemoveNode(item)\">cancel</mat-icon>\r\n </mat-chip>\r\n </div>\r\n </mat-chip-list>\r\n </div>\r\n </div>\r\n <mat-divider *ngIf=\"treeDepartment && !!treeDepartment.resultSelected.length\" class=\"mx-auto\"></mat-divider>\r\n <div class=\"confirm__button__groups\">\r\n <button (click)=\"onCloseDialog()\" class=\"btn-add\" [disabled]=\"!resultSelected.length\"\r\n [class.qms-btn-disabled]=\"!resultSelected.length\" qms-btn>\r\n <span>{{LANG.ADD}}</span>\r\n <span>\r\n ({{treeDepartment.resultSelected.length}})\r\n </span>\r\n </button>\r\n <button qms-btn-text mat-dialog-close>\r\n Cancel\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
31148
31279
|
providers: [
|
31149
31280
|
{
|
31150
31281
|
provide: checkbox.MAT_CHECKBOX_DEFAULT_OPTIONS,
|
31151
31282
|
useValue: ɵ0$1
|
31152
31283
|
}
|
31153
31284
|
],
|
31154
|
-
animations: SelectDepartmentAnimationTrigger,
|
31155
|
-
styles: ["@charset \"UTF-8\";@font-face{font-family:icomoon;src:url(../assets/fonts/icomoon.eot?aghldx);src:url(../assets/fonts/icomoon.eot?aghldx#iefix) format(\"embedded-opentype\"),url(../assets/fonts/icomoon.ttf?aghldx) format(\"truetype\"),url(../assets/fonts/icomoon.woff?aghldx) format(\"woff\"),url(../assets/fonts/icomoon.svg?aghldx#icomoon) format(\"svg\");font-weight:400;font-style:normal;font-display:block}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-acutely-toxic .path1:before{content:\"\uE91B\";color:#e32730}.icon-acutely-toxic .path2:before{content:\"\uE922\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path3:before{content:\"\uE923\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path4:before{content:\"\uE924\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path5:before{content:\"\uE925\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path6:before{content:\"\uE926\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path7:before{content:\"\uE927\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path8:before{content:\"\uE928\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path9:before{content:\"\uE929\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path10:before{content:\"\uE92A\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path11:before{content:\"\uE92B\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path12:before{content:\"\uE92C\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path13:before{content:\"\uE92D\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path14:before{content:\"\uE92E\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path15:before{content:\"\uE92F\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path16:before{content:\"\uE930\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path17:before{content:\"\uE931\";margin-left:-1em;color:#323232}.icon-add-column:before{content:\"\uE932\"}.icon-add-tooltip:before{content:\"\uE933\"}.icon-admin:before{content:\"\uE934\"}.icon-annual-cycle:before{content:\"\uE935\"}.icon-assignment-repete:before{content:\"\uE936\"}.icon-barrier-add:before{content:\"\uE937\"}.icon-barrier-edit:before{content:\"\uE938\"}.icon-barrier-view:before{content:\"\uE939\"}.icon-button-group:before{content:\"\uE93A\"}.icon-chemical-manager:before{content:\"\uE93B\"}.icon-chronic-health-hazard .path1:before{content:\"\uE93C\";color:#e32730}.icon-chronic-health-hazard .path2:before{content:\"\uE93D\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path3:before{content:\"\uE93E\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path4:before{content:\"\uE93F\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path5:before{content:\"\uE940\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path6:before{content:\"\uE941\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path7:before{content:\"\uE942\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path8:before{content:\"\uE943\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path9:before{content:\"\uE944\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path10:before{content:\"\uE945\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path11:before{content:\"\uE946\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path12:before{content:\"\uE947\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path13:before{content:\"\uE948\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path14:before{content:\"\uE949\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path15:before{content:\"\uE94A\";margin-left:-1em;color:#323232}.icon-contingency:before{content:\"\uE94B\"}.icon-corrosive .path1:before{content:\"\uE94C\";color:#323232}.icon-corrosive .path2:before{content:\"\uE94D\";margin-left:-1em;color:#323232}.icon-corrosive .path3:before{content:\"\uE94E\";margin-left:-1em;color:#323232}.icon-corrosive .path4:before{content:\"\uE94F\";margin-left:-1em;color:#323232}.icon-corrosive .path5:before{content:\"\uE950\";margin-left:-1em;color:#323232}.icon-corrosive .path6:before{content:\"\uE951\";margin-left:-1em;color:#323232}.icon-corrosive .path7:before{content:\"\uE952\";margin-left:-1em;color:#323232}.icon-corrosive .path8:before{content:\"\uE953\";margin-left:-1em;color:#323232}.icon-corrosive .path9:before{content:\"\uE954\";margin-left:-1em;color:#323232}.icon-corrosive .path10:before{content:\"\uE955\";margin-left:-1em;color:#323232}.icon-corrosive .path11:before{content:\"\uE956\";margin-left:-1em;color:#323232}.icon-corrosive .path12:before{content:\"\uE957\";margin-left:-1em;color:#323232}.icon-corrosive .path13:before{content:\"\uE958\";margin-left:-1em;color:#323232}.icon-corrosive .path14:before{content:\"\uE959\";margin-left:-1em;color:#323232}.icon-corrosive .path15:before{content:\"\uE95A\";margin-left:-1em;color:#323232}.icon-corrosive .path16:before{content:\"\uE95B\";margin-left:-1em;color:#323232}.icon-corrosive .path17:before{content:\"\uE95C\";margin-left:-1em;color:#323232}.icon-corrosive .path18:before{content:\"\uE95D\";margin-left:-1em;color:#323232}.icon-corrosive .path19:before{content:\"\uE95E\";margin-left:-1em;color:#323232}.icon-corrosive .path20:before{content:\"\uE95F\";margin-left:-1em;color:#323232}.icon-corrosive .path21:before{content:\"\uE960\";margin-left:-1em;color:#e32730}.icon-dashboard:before{content:\"\uE961\"}.icon-database-sds:before{content:\"\uE962\"}.icon-description-add:before{content:\"\uE963\"}.icon-description-edit:before{content:\"\uE964\"}.icon-description-view:before{content:\"\uE965\";color:#666}.icon-document-read .path1:before{content:\"\uE966\";color:#000;opacity:.6}.icon-document-read .path2:before{content:\"\uE967\";margin-left:-1em;color:#fff}.icon-document-read .path3:before{content:\"\uE968\";margin-left:-1em;color:#000;opacity:.6}.icon-draft:before{content:\"\uE969\"}.icon-expired-off:before{content:\"\uE96A\"}.icon-expired-on:before{content:\"\uE96B\"}.icon-explosive .path1:before{content:\"\uE96C\";color:#e32730}.icon-explosive .path2:before{content:\"\uE96D\";margin-left:-1em;color:#323232}.icon-explosive .path3:before{content:\"\uE96E\";margin-left:-1em;color:#323232}.icon-explosive .path4:before{content:\"\uE96F\";margin-left:-1em;color:#323232}.icon-explosive .path5:before{content:\"\uE970\";margin-left:-1em;color:#323232}.icon-explosive .path6:before{content:\"\uE971\";margin-left:-1em;color:#323232}.icon-explosive .path7:before{content:\"\uE972\";margin-left:-1em;color:#323232}.icon-explosive .path8:before{content:\"\uE973\";margin-left:-1em;color:#323232}.icon-explosive .path9:before{content:\"\uE974\";margin-left:-1em;color:#323232}.icon-explosive .path10:before{content:\"\uE975\";margin-left:-1em;color:#323232}.icon-explosive .path11:before{content:\"\uE976\";margin-left:-1em;color:#323232}.icon-explosive .path12:before{content:\"\uE977\";margin-left:-1em;color:#323232}.icon-explosive .path13:before{content:\"\uE978\";margin-left:-1em;color:#323232}.icon-explosive .path14:before{content:\"\uE979\";margin-left:-1em;color:#323232}.icon-explosive .path15:before{content:\"\uE97A\";margin-left:-1em;color:#323232}.icon-explosive .path16:before{content:\"\uE97B\";margin-left:-1em;color:#323232}.icon-explosive .path17:before{content:\"\uE97C\";margin-left:-1em;color:#323232}.icon-explosive .path18:before{content:\"\uE97D\";margin-left:-1em;color:#323232}.icon-explosive .path19:before{content:\"\uE97E\";margin-left:-1em;color:#323232}.icon-explosive .path20:before{content:\"\uE97F\";margin-left:-1em;color:#323232}.icon-explosive .path21:before{content:\"\uE980\";margin-left:-1em;color:#323232}.icon-explosive .path22:before{content:\"\uE981\";margin-left:-1em;color:#323232}.icon-explosive .path23:before{content:\"\uE982\";margin-left:-1em;color:#323232}.icon-explosive .path24:before{content:\"\uE983\";margin-left:-1em;color:#323232}.icon-explosive .path25:before{content:\"\uE984\";margin-left:-1em;color:#323232}.icon-explosive .path26:before{content:\"\uE985\";margin-left:-1em;color:#323232}.icon-explosive .path27:before{content:\"\uE986\";margin-left:-1em;color:#323232}.icon-explosive .path28:before{content:\"\uE987\";margin-left:-1em;color:#323232}.icon-explosive .path29:before{content:\"\uE988\";margin-left:-1em;color:#323232}.icon-explosive .path30:before{content:\"\uE989\";margin-left:-1em;color:#323232}.icon-explosive .path31:before{content:\"\uE98A\";margin-left:-1em;color:#323232}.icon-explosive .path32:before{content:\"\uE98B\";margin-left:-1em;color:#323232}.icon-explosive .path33:before{content:\"\uE98C\";margin-left:-1em;color:#323232}.icon-explosive .path34:before{content:\"\uE98D\";margin-left:-1em;color:#323232}.icon-explosive .path35:before{content:\"\uE98E\";margin-left:-1em;color:#323232}.icon-explosive .path36:before{content:\"\uE98F\";margin-left:-1em;color:#323232}.icon-explosive .path37:before{content:\"\uE990\";margin-left:-1em;color:#323232}.icon-explosive .path38:before{content:\"\uE991\";margin-left:-1em;color:#323232}.icon-explosive .path39:before{content:\"\uE992\";margin-left:-1em;color:#323232}.icon-explosive .path40:before{content:\"\uE993\";margin-left:-1em;color:#323232}.icon-explosive .path41:before{content:\"\uE994\";margin-left:-1em;color:#323232}.icon-explosive .path42:before{content:\"\uE995\";margin-left:-1em;color:#323232}.icon-explosive .path43:before{content:\"\uE996\";margin-left:-1em;color:#323232}.icon-explosive .path44:before{content:\"\uE997\";margin-left:-1em;color:#323232}.icon-explosive .path45:before{content:\"\uE998\";margin-left:-1em;color:#323232}.icon-explosive .path46:before{content:\"\uE999\";margin-left:-1em;color:#323232}.icon-file-excel:before{content:\"\uE99A\"}.icon-file-pdf:before{content:\"\uE99B\"}.icon-file-pdf-verified .path1:before{content:\"\uE99C\";color:#000;opacity:.6}.icon-file-pdf-verified .path2:before{content:\"\uE99D\";margin-left:-1em;color:#fff}.icon-file-pdf-verified .path3:before{content:\"\uE99E\";margin-left:-1em;color:#000;opacity:.6}.icon-file-word:before{content:\"\uE99F\"}.icon-filter-alt:before{content:\"\uE9A0\"}.icon-flammable .path1:before{content:\"\uE9A1\";color:#323232}.icon-flammable .path2:before{content:\"\uE9A2\";margin-left:-1em;color:#323232}.icon-flammable .path3:before{content:\"\uE9A3\";margin-left:-1em;color:#e32730}.icon-gas-under-pressure .path1:before{content:\"\uE9A4\";color:#323232}.icon-gas-under-pressure .path2:before{content:\"\uE9A5\";margin-left:-1em;color:#e32730}.icon-health-hazard .path1:before{content:\"\uE9A6\";color:#323232}.icon-health-hazard .path2:before{content:\"\uE9A7\";margin-left:-1em;color:#e32730}.icon-line-break:before{content:\"\uE9A8\"}.icon-location:before{content:\"\uE9A9\"}.icon-measure-add:before{content:\"\uE9AA\"}.icon-measure-edit:before{content:\"\uE9AB\"}.icon-measure-view:before{content:\"\uE9AC\";color:#666}.icon-messages:before{content:\"\uE9AD\"}.icon-monitoring:before{content:\"\uE9AE\";color:#666}.icon-move:before{content:\"\uE9AF\"}.icon-oxidizing .path1:before{content:\"\uE9B0\";color:#e32730}.icon-oxidizing .path2:before{content:\"\uE9B1\";margin-left:-1em;color:#323232}.icon-oxidizing .path3:before{content:\"\uE9B2\";margin-left:-1em;color:#323232}.icon-oxidizing .path4:before{content:\"\uE9B3\";margin-left:-1em;color:#323232}.icon-process-area-closed:before{content:\"\uE9B4\"}.icon-process-area-open:before{content:\"\uE9B5\"}.icon-process-linked .path1:before{content:\"\uE9B6\";color:#000;opacity:.6}.icon-process-linked .path2:before{content:\"\uE9B7\";margin-left:-1em;color:#666}.icon-risk:before{content:\"\uE9B8\"}.icon-search-in-file:before{content:\"\uE9B9\"}.icon-sort-ascending:before{content:\"\uE9BA\"}.icon-sort-descending:before{content:\"\uE9BB\"}.icon-subscript:before{content:\"\uE9BC\"}.icon-superscript:before{content:\"\uE9BD\"}.icon-syncronice-favorites:before{content:\"\uE9BE\"}.icon-system-settings:before{content:\"\uE9BF\"}.icon-view-three-outlined:before{content:\"\uE9C0\"}.icon-workplace-safety:before{content:\"\uE9C1\"}.icon-checklist:before{content:\"\uE900\"}.icon-department-document .path1:before{content:\"\uE901\";color:#000;opacity:.6}.icon-department-document .path2:before{content:\"\uE902\";margin-left:-1em;color:#00804c}.icon-department-folder-closed .path1:before{content:\"\uE903\";color:#000;opacity:.6}.icon-department-folder-closed .path2:before{content:\"\uE904\";margin-left:-1em;color:#00804c}.icon-department-folder-open .path1:before{content:\"\uE905\";color:#000;opacity:.6}.icon-department-folder-open .path2:before{content:\"\uE906\";margin-left:-1em;color:#00804c}.icon-deviation:before{content:\"\uE907\"}.icon-dropdown-folder .path1:before{content:\"\uE908\";color:#00324e}.icon-dropdown-folder .path2:before{content:\"\uE909\";margin-left:-1em;color:#fff;opacity:.6}.icon-enterprise-document .path1:before{content:\"\uE90A\";color:#000;opacity:.6}.icon-enterprise-document .path2:before{content:\"\uE90B\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-closed .path1:before{content:\"\uE90C\";color:#000;opacity:.6}.icon-enterprise-folder-closed .path2:before{content:\"\uE90D\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-open .path1:before{content:\"\uE90E\";color:#000;opacity:.6}.icon-enterprise-folder-open .path2:before{content:\"\uE90F\";margin-left:-1em;color:#cf4714}.icon-folder-closed:before{content:\"\uE910\"}.icon-folder-open:before{content:\"\uE911\"}.icon-keyboard_arrow_down:before{content:\"\uE912\"}.icon-keyboard_arrow_up:before{content:\"\uE913\"}.icon-local-document .path1:before{content:\"\uE914\";color:#000;opacity:.6}.icon-local-document .path2:before{content:\"\uE915\";margin-left:-1em;color:#1954a9}.icon-local-folder-closed .path1:before{content:\"\uE916\";color:#000;opacity:.6}.icon-local-folder-closed .path2:before{content:\"\uE917\";margin-left:-1em;color:#1954a9}.icon-local-folder-open .path1:before{content:\"\uE918\";color:#000;opacity:.6}.icon-local-folder-open .path2:before{content:\"\uE919\";margin-left:-1em;color:#1954a9}.icon-process:before{content:\"\uE91A\"}.icon-regional-document .path1:before{content:\"\uE91C\";color:#000;opacity:.6}.icon-regional-document .path2:before{content:\"\uE91D\";margin-left:-1em;color:#662e0d}.icon-regional-folder-closed .path1:before{content:\"\uE91E\";color:#000;opacity:.6}.icon-regional-folder-closed .path2:before{content:\"\uE91F\";margin-left:-1em;color:#662e0d}.icon-regional-folder-open .path1:before{content:\"\uE920\";color:#000;opacity:.6}.icon-regional-folder-open .path2:before{content:\"\uE921\";margin-left:-1em;color:#662e0d}.qms-select-department .cursor-pointer{cursor:pointer}.qms-select-department .ml-5{margin-left:10px}.qms-select-department .padding-5{padding:5px}.qms-select-department .header-dialog{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:16px}.qms-select-department .input__field{display:flex;align-items:center;position:relative}.qms-select-department .input__field input.input-search{width:100%;padding:10px;outline:none;border:none;background:var(--background-input-text)}.qms-select-department .input__field .btn-search{cursor:pointer;vertical-align:middle;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.qms-select-department .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qms-select-department .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qms-select-department .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qms-select-department .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qms-select-department .panel__item{max-height:175px;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}.qms-select-department .panel__item .related__item__inline{max-width:100%}.qms-select-department .panel__item .select__toggle-include{width:100%}.qms-select-department .panel__item .select__toggle-include.toggle-include-child .mat-slide-toggle.qms-group-options .mat-slide-toggle-thumb{background-color:#5a5a5a!important}.qms-select-department .panel__item .related__item__content{height:32px;line-height:32px;background-color:var(--related-item-background);max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qms-select-department .panel__item .related__item__content .mat-icon{color:var(--related-mat-icon-color);font-size:24px}.qms-select-department .header-title{font-weight:600;color:rgba(0,0,0,.87)}.qms-select-department .result-content{padding-right:0!important}.qms-select-department .result-content .mat-chip-list{min-height:40px}.qms-select-department .result-content .mat-chip-list .mat-icon{color:rgba(0,0,0,.3)!important;cursor:pointer}.qms-select-department .result-content .mat-chip-list .mat-icon:hover{color:#000!important}.qms-select-department .result-content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.qms-select-department .result-content span.related__item__content_name .select__include-children__count{font-size:.75rem;color:rgba(0,0,0,.5);font-weight:600}.qms-select-department .text-name{position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;width:100%}.qms-select-department ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-layout{white-space:normal}.qms-select-department ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-label{flex-direction:row;align-items:center;position:relative;padding-bottom:2px}.qms-select-department .confirm__button__groups .btn-add>.qms-btn-wrapper{display:flex;justify-content:center;align-items:center}"]
|
31285
|
+
animations: [SelectDepartmentAnimationTrigger],
|
31286
|
+
styles: ["@charset \"UTF-8\";@font-face{font-family:icomoon;src:url(../assets/fonts/icomoon.eot?aghldx);src:url(../assets/fonts/icomoon.eot?aghldx#iefix) format(\"embedded-opentype\"),url(../assets/fonts/icomoon.ttf?aghldx) format(\"truetype\"),url(../assets/fonts/icomoon.woff?aghldx) format(\"woff\"),url(../assets/fonts/icomoon.svg?aghldx#icomoon) format(\"svg\");font-weight:400;font-style:normal;font-display:block}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-acutely-toxic .path1:before{content:\"\uE91B\";color:#e32730}.icon-acutely-toxic .path2:before{content:\"\uE922\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path3:before{content:\"\uE923\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path4:before{content:\"\uE924\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path5:before{content:\"\uE925\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path6:before{content:\"\uE926\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path7:before{content:\"\uE927\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path8:before{content:\"\uE928\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path9:before{content:\"\uE929\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path10:before{content:\"\uE92A\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path11:before{content:\"\uE92B\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path12:before{content:\"\uE92C\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path13:before{content:\"\uE92D\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path14:before{content:\"\uE92E\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path15:before{content:\"\uE92F\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path16:before{content:\"\uE930\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path17:before{content:\"\uE931\";margin-left:-1em;color:#323232}.icon-add-column:before{content:\"\uE932\"}.icon-add-tooltip:before{content:\"\uE933\"}.icon-admin:before{content:\"\uE934\"}.icon-annual-cycle:before{content:\"\uE935\"}.icon-assignment-repete:before{content:\"\uE936\"}.icon-barrier-add:before{content:\"\uE937\"}.icon-barrier-edit:before{content:\"\uE938\"}.icon-barrier-view:before{content:\"\uE939\"}.icon-button-group:before{content:\"\uE93A\"}.icon-chemical-manager:before{content:\"\uE93B\"}.icon-chronic-health-hazard .path1:before{content:\"\uE93C\";color:#e32730}.icon-chronic-health-hazard .path2:before{content:\"\uE93D\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path3:before{content:\"\uE93E\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path4:before{content:\"\uE93F\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path5:before{content:\"\uE940\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path6:before{content:\"\uE941\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path7:before{content:\"\uE942\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path8:before{content:\"\uE943\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path9:before{content:\"\uE944\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path10:before{content:\"\uE945\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path11:before{content:\"\uE946\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path12:before{content:\"\uE947\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path13:before{content:\"\uE948\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path14:before{content:\"\uE949\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path15:before{content:\"\uE94A\";margin-left:-1em;color:#323232}.icon-contingency:before{content:\"\uE94B\"}.icon-corrosive .path1:before{content:\"\uE94C\";color:#323232}.icon-corrosive .path2:before{content:\"\uE94D\";margin-left:-1em;color:#323232}.icon-corrosive .path3:before{content:\"\uE94E\";margin-left:-1em;color:#323232}.icon-corrosive .path4:before{content:\"\uE94F\";margin-left:-1em;color:#323232}.icon-corrosive .path5:before{content:\"\uE950\";margin-left:-1em;color:#323232}.icon-corrosive .path6:before{content:\"\uE951\";margin-left:-1em;color:#323232}.icon-corrosive .path7:before{content:\"\uE952\";margin-left:-1em;color:#323232}.icon-corrosive .path8:before{content:\"\uE953\";margin-left:-1em;color:#323232}.icon-corrosive .path9:before{content:\"\uE954\";margin-left:-1em;color:#323232}.icon-corrosive .path10:before{content:\"\uE955\";margin-left:-1em;color:#323232}.icon-corrosive .path11:before{content:\"\uE956\";margin-left:-1em;color:#323232}.icon-corrosive .path12:before{content:\"\uE957\";margin-left:-1em;color:#323232}.icon-corrosive .path13:before{content:\"\uE958\";margin-left:-1em;color:#323232}.icon-corrosive .path14:before{content:\"\uE959\";margin-left:-1em;color:#323232}.icon-corrosive .path15:before{content:\"\uE95A\";margin-left:-1em;color:#323232}.icon-corrosive .path16:before{content:\"\uE95B\";margin-left:-1em;color:#323232}.icon-corrosive .path17:before{content:\"\uE95C\";margin-left:-1em;color:#323232}.icon-corrosive .path18:before{content:\"\uE95D\";margin-left:-1em;color:#323232}.icon-corrosive .path19:before{content:\"\uE95E\";margin-left:-1em;color:#323232}.icon-corrosive .path20:before{content:\"\uE95F\";margin-left:-1em;color:#323232}.icon-corrosive .path21:before{content:\"\uE960\";margin-left:-1em;color:#e32730}.icon-dashboard:before{content:\"\uE961\"}.icon-database-sds:before{content:\"\uE962\"}.icon-description-add:before{content:\"\uE963\"}.icon-description-edit:before{content:\"\uE964\"}.icon-description-view:before{content:\"\uE965\";color:#666}.icon-document-read .path1:before{content:\"\uE966\";color:#000;opacity:.6}.icon-document-read .path2:before{content:\"\uE967\";margin-left:-1em;color:#fff}.icon-document-read .path3:before{content:\"\uE968\";margin-left:-1em;color:#000;opacity:.6}.icon-draft:before{content:\"\uE969\"}.icon-expired-off:before{content:\"\uE96A\"}.icon-expired-on:before{content:\"\uE96B\"}.icon-explosive .path1:before{content:\"\uE96C\";color:#e32730}.icon-explosive .path2:before{content:\"\uE96D\";margin-left:-1em;color:#323232}.icon-explosive .path3:before{content:\"\uE96E\";margin-left:-1em;color:#323232}.icon-explosive .path4:before{content:\"\uE96F\";margin-left:-1em;color:#323232}.icon-explosive .path5:before{content:\"\uE970\";margin-left:-1em;color:#323232}.icon-explosive .path6:before{content:\"\uE971\";margin-left:-1em;color:#323232}.icon-explosive .path7:before{content:\"\uE972\";margin-left:-1em;color:#323232}.icon-explosive .path8:before{content:\"\uE973\";margin-left:-1em;color:#323232}.icon-explosive .path9:before{content:\"\uE974\";margin-left:-1em;color:#323232}.icon-explosive .path10:before{content:\"\uE975\";margin-left:-1em;color:#323232}.icon-explosive .path11:before{content:\"\uE976\";margin-left:-1em;color:#323232}.icon-explosive .path12:before{content:\"\uE977\";margin-left:-1em;color:#323232}.icon-explosive .path13:before{content:\"\uE978\";margin-left:-1em;color:#323232}.icon-explosive .path14:before{content:\"\uE979\";margin-left:-1em;color:#323232}.icon-explosive .path15:before{content:\"\uE97A\";margin-left:-1em;color:#323232}.icon-explosive .path16:before{content:\"\uE97B\";margin-left:-1em;color:#323232}.icon-explosive .path17:before{content:\"\uE97C\";margin-left:-1em;color:#323232}.icon-explosive .path18:before{content:\"\uE97D\";margin-left:-1em;color:#323232}.icon-explosive .path19:before{content:\"\uE97E\";margin-left:-1em;color:#323232}.icon-explosive .path20:before{content:\"\uE97F\";margin-left:-1em;color:#323232}.icon-explosive .path21:before{content:\"\uE980\";margin-left:-1em;color:#323232}.icon-explosive .path22:before{content:\"\uE981\";margin-left:-1em;color:#323232}.icon-explosive .path23:before{content:\"\uE982\";margin-left:-1em;color:#323232}.icon-explosive .path24:before{content:\"\uE983\";margin-left:-1em;color:#323232}.icon-explosive .path25:before{content:\"\uE984\";margin-left:-1em;color:#323232}.icon-explosive .path26:before{content:\"\uE985\";margin-left:-1em;color:#323232}.icon-explosive .path27:before{content:\"\uE986\";margin-left:-1em;color:#323232}.icon-explosive .path28:before{content:\"\uE987\";margin-left:-1em;color:#323232}.icon-explosive .path29:before{content:\"\uE988\";margin-left:-1em;color:#323232}.icon-explosive .path30:before{content:\"\uE989\";margin-left:-1em;color:#323232}.icon-explosive .path31:before{content:\"\uE98A\";margin-left:-1em;color:#323232}.icon-explosive .path32:before{content:\"\uE98B\";margin-left:-1em;color:#323232}.icon-explosive .path33:before{content:\"\uE98C\";margin-left:-1em;color:#323232}.icon-explosive .path34:before{content:\"\uE98D\";margin-left:-1em;color:#323232}.icon-explosive .path35:before{content:\"\uE98E\";margin-left:-1em;color:#323232}.icon-explosive .path36:before{content:\"\uE98F\";margin-left:-1em;color:#323232}.icon-explosive .path37:before{content:\"\uE990\";margin-left:-1em;color:#323232}.icon-explosive .path38:before{content:\"\uE991\";margin-left:-1em;color:#323232}.icon-explosive .path39:before{content:\"\uE992\";margin-left:-1em;color:#323232}.icon-explosive .path40:before{content:\"\uE993\";margin-left:-1em;color:#323232}.icon-explosive .path41:before{content:\"\uE994\";margin-left:-1em;color:#323232}.icon-explosive .path42:before{content:\"\uE995\";margin-left:-1em;color:#323232}.icon-explosive .path43:before{content:\"\uE996\";margin-left:-1em;color:#323232}.icon-explosive .path44:before{content:\"\uE997\";margin-left:-1em;color:#323232}.icon-explosive .path45:before{content:\"\uE998\";margin-left:-1em;color:#323232}.icon-explosive .path46:before{content:\"\uE999\";margin-left:-1em;color:#323232}.icon-file-excel:before{content:\"\uE99A\"}.icon-file-pdf:before{content:\"\uE99B\"}.icon-file-pdf-verified .path1:before{content:\"\uE99C\";color:#000;opacity:.6}.icon-file-pdf-verified .path2:before{content:\"\uE99D\";margin-left:-1em;color:#fff}.icon-file-pdf-verified .path3:before{content:\"\uE99E\";margin-left:-1em;color:#000;opacity:.6}.icon-file-word:before{content:\"\uE99F\"}.icon-filter-alt:before{content:\"\uE9A0\"}.icon-flammable .path1:before{content:\"\uE9A1\";color:#323232}.icon-flammable .path2:before{content:\"\uE9A2\";margin-left:-1em;color:#323232}.icon-flammable .path3:before{content:\"\uE9A3\";margin-left:-1em;color:#e32730}.icon-gas-under-pressure .path1:before{content:\"\uE9A4\";color:#323232}.icon-gas-under-pressure .path2:before{content:\"\uE9A5\";margin-left:-1em;color:#e32730}.icon-health-hazard .path1:before{content:\"\uE9A6\";color:#323232}.icon-health-hazard .path2:before{content:\"\uE9A7\";margin-left:-1em;color:#e32730}.icon-line-break:before{content:\"\uE9A8\"}.icon-location:before{content:\"\uE9A9\"}.icon-measure-add:before{content:\"\uE9AA\"}.icon-measure-edit:before{content:\"\uE9AB\"}.icon-measure-view:before{content:\"\uE9AC\";color:#666}.icon-messages:before{content:\"\uE9AD\"}.icon-monitoring:before{content:\"\uE9AE\";color:#666}.icon-move:before{content:\"\uE9AF\"}.icon-oxidizing .path1:before{content:\"\uE9B0\";color:#e32730}.icon-oxidizing .path2:before{content:\"\uE9B1\";margin-left:-1em;color:#323232}.icon-oxidizing .path3:before{content:\"\uE9B2\";margin-left:-1em;color:#323232}.icon-oxidizing .path4:before{content:\"\uE9B3\";margin-left:-1em;color:#323232}.icon-process-area-closed:before{content:\"\uE9B4\"}.icon-process-area-open:before{content:\"\uE9B5\"}.icon-process-linked .path1:before{content:\"\uE9B6\";color:#000;opacity:.6}.icon-process-linked .path2:before{content:\"\uE9B7\";margin-left:-1em;color:#666}.icon-risk:before{content:\"\uE9B8\"}.icon-search-in-file:before{content:\"\uE9B9\"}.icon-sort-ascending:before{content:\"\uE9BA\"}.icon-sort-descending:before{content:\"\uE9BB\"}.icon-subscript:before{content:\"\uE9BC\"}.icon-superscript:before{content:\"\uE9BD\"}.icon-syncronice-favorites:before{content:\"\uE9BE\"}.icon-system-settings:before{content:\"\uE9BF\"}.icon-view-three-outlined:before{content:\"\uE9C0\"}.icon-workplace-safety:before{content:\"\uE9C1\"}.icon-checklist:before{content:\"\uE900\"}.icon-department-document .path1:before{content:\"\uE901\";color:#000;opacity:.6}.icon-department-document .path2:before{content:\"\uE902\";margin-left:-1em;color:#00804c}.icon-department-folder-closed .path1:before{content:\"\uE903\";color:#000;opacity:.6}.icon-department-folder-closed .path2:before{content:\"\uE904\";margin-left:-1em;color:#00804c}.icon-department-folder-open .path1:before{content:\"\uE905\";color:#000;opacity:.6}.icon-department-folder-open .path2:before{content:\"\uE906\";margin-left:-1em;color:#00804c}.icon-deviation:before{content:\"\uE907\"}.icon-dropdown-folder .path1:before{content:\"\uE908\";color:#00324e}.icon-dropdown-folder .path2:before{content:\"\uE909\";margin-left:-1em;color:#fff;opacity:.6}.icon-enterprise-document .path1:before{content:\"\uE90A\";color:#000;opacity:.6}.icon-enterprise-document .path2:before{content:\"\uE90B\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-closed .path1:before{content:\"\uE90C\";color:#000;opacity:.6}.icon-enterprise-folder-closed .path2:before{content:\"\uE90D\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-open .path1:before{content:\"\uE90E\";color:#000;opacity:.6}.icon-enterprise-folder-open .path2:before{content:\"\uE90F\";margin-left:-1em;color:#cf4714}.icon-folder-closed:before{content:\"\uE910\"}.icon-folder-open:before{content:\"\uE911\"}.icon-keyboard_arrow_down:before{content:\"\uE912\"}.icon-keyboard_arrow_up:before{content:\"\uE913\"}.icon-local-document .path1:before{content:\"\uE914\";color:#000;opacity:.6}.icon-local-document .path2:before{content:\"\uE915\";margin-left:-1em;color:#1954a9}.icon-local-folder-closed .path1:before{content:\"\uE916\";color:#000;opacity:.6}.icon-local-folder-closed .path2:before{content:\"\uE917\";margin-left:-1em;color:#1954a9}.icon-local-folder-open .path1:before{content:\"\uE918\";color:#000;opacity:.6}.icon-local-folder-open .path2:before{content:\"\uE919\";margin-left:-1em;color:#1954a9}.icon-process:before{content:\"\uE91A\"}.icon-regional-document .path1:before{content:\"\uE91C\";color:#000;opacity:.6}.icon-regional-document .path2:before{content:\"\uE91D\";margin-left:-1em;color:#662e0d}.icon-regional-folder-closed .path1:before{content:\"\uE91E\";color:#000;opacity:.6}.icon-regional-folder-closed .path2:before{content:\"\uE91F\";margin-left:-1em;color:#662e0d}.icon-regional-folder-open .path1:before{content:\"\uE920\";color:#000;opacity:.6}.icon-regional-folder-open .path2:before{content:\"\uE921\";margin-left:-1em;color:#662e0d}.qms-select-department .cursor-pointer{cursor:pointer}.qms-select-department .ml-5{margin-left:10px}.qms-select-department .padding-5{padding:5px}.qms-select-department .header-dialog{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:16px}.qms-select-department .input__field{display:flex;align-items:center;position:relative}.qms-select-department .input__field input.input-search{width:100%;padding:10px;outline:none;border:none;background:var(--background-input-text)}.qms-select-department .input__field .btn-search{cursor:pointer;vertical-align:middle;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.qms-select-department .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qms-select-department .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qms-select-department .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qms-select-department .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qms-select-department .panel__item{max-height:175px;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}.qms-select-department .panel__item .related__item__inline{max-width:100%}.qms-select-department .panel__item .select__toggle-include{width:100%}.qms-select-department .panel__item .select__toggle-include.toggle-include-child .mat-slide-toggle.qms-group-options .mat-slide-toggle-thumb{background-color:#5a5a5a!important}.qms-select-department .panel__item .related__item__content{height:32px;line-height:32px;background-color:var(--related-item-background);max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qms-select-department .panel__item .related__item__content .mat-icon{color:var(--related-mat-icon-color);font-size:24px}.qms-select-department .header-title{font-weight:600;color:rgba(0,0,0,.87)}.qms-select-department .result-content{padding-right:0!important}.qms-select-department .result-content .mat-chip-list{min-height:40px}.qms-select-department .result-content .mat-chip-list .mat-icon{color:rgba(0,0,0,.3)!important;cursor:pointer}.qms-select-department .result-content .mat-chip-list .mat-icon:hover{color:#000!important}.qms-select-department .result-content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.qms-select-department .result-content span.related__item__content_name .select__include-children__count{font-size:.75rem;color:rgba(0,0,0,.5);font-weight:600}.qms-select-department .text-name{position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;width:100%}.qms-select-department ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-layout{white-space:normal}.qms-select-department ::ng-deep .mat-checkbox.qms-group-options.flex-direction-row .mat-checkbox-label{flex-direction:row;align-items:center;position:relative;padding-bottom:2px}.qms-select-department .confirm__button__groups .btn-add>.qms-btn-wrapper{display:flex;justify-content:center;align-items:center}.qms-select-department ::ng-deep .custom-department-tree .qms-view-search-result{height:100%!important}.qms-select-department ::ng-deep .custom-department-tree .qms-view-search-result .result{max-height:calc(100% - 80px)!important}.qms-select-department ::ng-deep .custom-department-tree .loading-container{height:calc(100% - 40px)!important}"]
|
31156
31287
|
},] }
|
31157
31288
|
];
|
31158
31289
|
SelectDepartmentComponent.ctorParameters = function () { return [
|
31159
|
-
{ type: QMSSelectDepartmentGlobalService },
|
31160
31290
|
{ type: i0.ChangeDetectorRef },
|
31161
31291
|
{ type: dialog.MatDialogRef },
|
31162
31292
|
{ type: SelectDepartmentPopupData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
31163
31293
|
{ type: TranslateLibraryService }
|
31164
31294
|
]; };
|
31165
31295
|
SelectDepartmentComponent.propDecorators = {
|
31166
|
-
treeDepartment: [{ type: i0.ViewChild, args: ['treeDepartment',] }]
|
31296
|
+
treeDepartment: [{ type: i0.ViewChild, args: ['treeDepartment',] }],
|
31297
|
+
onPagingEvent: [{ type: i0.Output }]
|
31167
31298
|
};
|
31168
31299
|
|
31169
31300
|
var QMSSelectDepartmentModule = /** @class */ (function () {
|
@@ -31174,7 +31305,7 @@
|
|
31174
31305
|
QMSSelectDepartmentModule.decorators = [
|
31175
31306
|
{ type: i0.NgModule, args: [{
|
31176
31307
|
declarations: [
|
31177
|
-
SelectDepartmentComponent
|
31308
|
+
SelectDepartmentComponent,
|
31178
31309
|
],
|
31179
31310
|
imports: [
|
31180
31311
|
i1.CommonModule,
|
@@ -31209,6 +31340,26 @@
|
|
31209
31340
|
},] }
|
31210
31341
|
];
|
31211
31342
|
|
31343
|
+
var QMSSelectDepartmentGlobalService = /** @class */ (function () {
|
31344
|
+
function QMSSelectDepartmentGlobalService() {
|
31345
|
+
this.getDataTree$ = new rxjs.BehaviorSubject([]);
|
31346
|
+
this.searchDepartment$ = new rxjs.Subject();
|
31347
|
+
}
|
31348
|
+
QMSSelectDepartmentGlobalService.prototype.updateDataTree = function (data) {
|
31349
|
+
this.getDataTree$.next(data);
|
31350
|
+
};
|
31351
|
+
QMSSelectDepartmentGlobalService.prototype.setResultSearch = function (data) {
|
31352
|
+
this.searchDepartment$.next(data);
|
31353
|
+
};
|
31354
|
+
return QMSSelectDepartmentGlobalService;
|
31355
|
+
}());
|
31356
|
+
QMSSelectDepartmentGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectDepartmentGlobalService_Factory() { return new QMSSelectDepartmentGlobalService(); }, token: QMSSelectDepartmentGlobalService, providedIn: "root" });
|
31357
|
+
QMSSelectDepartmentGlobalService.decorators = [
|
31358
|
+
{ type: i0.Injectable, args: [{
|
31359
|
+
providedIn: 'root'
|
31360
|
+
},] }
|
31361
|
+
];
|
31362
|
+
|
31212
31363
|
exports.OptionSelectAccessEnum = void 0;
|
31213
31364
|
(function (OptionSelectAccessEnum) {
|
31214
31365
|
OptionSelectAccessEnum[OptionSelectAccessEnum["PERSON"] = 0] = "PERSON";
|
@@ -31216,6 +31367,68 @@
|
|
31216
31367
|
OptionSelectAccessEnum[OptionSelectAccessEnum["DEPARTMENT"] = 2] = "DEPARTMENT";
|
31217
31368
|
})(exports.OptionSelectAccessEnum || (exports.OptionSelectAccessEnum = {}));
|
31218
31369
|
|
31370
|
+
var SelectAccessAnimationTrigger = [
|
31371
|
+
animations$1.trigger('inOutAnimation', [
|
31372
|
+
animations$1.transition(':enter', [
|
31373
|
+
animations$1.style({ opacity: 0 }),
|
31374
|
+
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
|
31375
|
+
])
|
31376
|
+
]),
|
31377
|
+
animations$1.trigger('inOutAnimation_2', [
|
31378
|
+
animations$1.transition(':enter', [
|
31379
|
+
animations$1.style({ opacity: 0, transform: 'translateY(-5px)' }),
|
31380
|
+
animations$1.animate('0.2s 0.15s ease-in', animations$1.style({ opacity: 1, transform: 'none' }))
|
31381
|
+
]),
|
31382
|
+
animations$1.transition(':leave', [
|
31383
|
+
animations$1.style({ opacity: 1, filter: 'blur(5px)', transform: 'none' }),
|
31384
|
+
animations$1.animate('0.15s ease-out', animations$1.style({ opacity: 0, transform: 'translateX(-10px)' }))
|
31385
|
+
]),
|
31386
|
+
]),
|
31387
|
+
animations$1.trigger('listAnimation', [
|
31388
|
+
animations$1.transition('* => *', [
|
31389
|
+
animations$1.query(':enter', [
|
31390
|
+
animations$1.style({ opacity: 0, transform: 'translateY(-100%)' }),
|
31391
|
+
animations$1.stagger(30, [
|
31392
|
+
animations$1.animate('0.4s cubic-bezier(0.23, 1, 0.320, 1)', animations$1.style({ opacity: 1, transform: 'none' }))
|
31393
|
+
])
|
31394
|
+
], { optional: true })
|
31395
|
+
])
|
31396
|
+
]),
|
31397
|
+
animations$1.trigger('updateItemAnimation', [
|
31398
|
+
animations$1.transition('void => *', [animations$1.animate('0.3s', animations$1.keyframes([
|
31399
|
+
animations$1.style({
|
31400
|
+
boxShadow: 'rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px',
|
31401
|
+
background: '#c8d6ea',
|
31402
|
+
offset: 0
|
31403
|
+
}),
|
31404
|
+
animations$1.style({
|
31405
|
+
boxShadow: "*",
|
31406
|
+
background: '*',
|
31407
|
+
offset: 1
|
31408
|
+
})
|
31409
|
+
]))]),
|
31410
|
+
])
|
31411
|
+
];
|
31412
|
+
|
31413
|
+
var QMSAccessPagingChangeModel = /** @class */ (function (_super) {
|
31414
|
+
__extends(QMSAccessPagingChangeModel, _super);
|
31415
|
+
function QMSAccessPagingChangeModel() {
|
31416
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
31417
|
+
}
|
31418
|
+
return QMSAccessPagingChangeModel;
|
31419
|
+
}(paginator.PageEvent));
|
31420
|
+
var QMSAccessPagingModel = /** @class */ (function (_super) {
|
31421
|
+
__extends(QMSAccessPagingModel, _super);
|
31422
|
+
function QMSAccessPagingModel() {
|
31423
|
+
var _this = _super.call(this) || this;
|
31424
|
+
_this.data = [];
|
31425
|
+
_this.pageSize = 10;
|
31426
|
+
_this.pageIndex = 0;
|
31427
|
+
return _this;
|
31428
|
+
}
|
31429
|
+
return QMSAccessPagingModel;
|
31430
|
+
}(paginator.PageEvent));
|
31431
|
+
|
31219
31432
|
var QMSSelectAccessResult = /** @class */ (function () {
|
31220
31433
|
function QMSSelectAccessResult() {
|
31221
31434
|
this.userGroups = [];
|
@@ -31226,11 +31439,11 @@
|
|
31226
31439
|
}());
|
31227
31440
|
var QMSSelectAccessData = /** @class */ (function () {
|
31228
31441
|
function QMSSelectAccessData() {
|
31229
|
-
this.accessUserGroups = [];
|
31230
31442
|
this.accessDepartments = [];
|
31231
|
-
this.accessPersons = [];
|
31232
31443
|
this.selectedData = new QMSSelectAccessResult();
|
31233
31444
|
this.selectIncludeChildTreeLabel = '';
|
31445
|
+
this.accessPersons = new QMSAccessPagingModel();
|
31446
|
+
this.accessUserGroups = new QMSAccessPagingModel();
|
31234
31447
|
}
|
31235
31448
|
return QMSSelectAccessData;
|
31236
31449
|
}());
|
@@ -31260,25 +31473,6 @@
|
|
31260
31473
|
},] }
|
31261
31474
|
];
|
31262
31475
|
|
31263
|
-
var SelectAccessAnimationTrigger = [
|
31264
|
-
animations$1.trigger('inOutAnimation', [
|
31265
|
-
animations$1.transition(':enter', [
|
31266
|
-
animations$1.style({ opacity: 0 }),
|
31267
|
-
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
|
31268
|
-
]),
|
31269
|
-
]),
|
31270
|
-
animations$1.trigger('listAnimation', [
|
31271
|
-
animations$1.transition('* => *', [
|
31272
|
-
animations$1.query(':enter', [
|
31273
|
-
animations$1.style({ opacity: 0, transform: 'translateY(-100%)' }),
|
31274
|
-
animations$1.stagger(25, [
|
31275
|
-
animations$1.animate('0.4s cubic-bezier(0.23, 1, 0.320, 1)', animations$1.style({ opacity: 1, transform: 'none' }))
|
31276
|
-
])
|
31277
|
-
], { optional: true })
|
31278
|
-
])
|
31279
|
-
])
|
31280
|
-
];
|
31281
|
-
|
31282
31476
|
var QMSSelectAccessDialog = /** @class */ (function () {
|
31283
31477
|
function QMSSelectAccessDialog() {
|
31284
31478
|
this.enableSelectPerson = true;
|
@@ -31295,6 +31489,7 @@
|
|
31295
31489
|
};
|
31296
31490
|
this.titleDialog = '';
|
31297
31491
|
this.titleResult = '';
|
31492
|
+
this.sizeUpdateDefault = '1024px';
|
31298
31493
|
}
|
31299
31494
|
return QMSSelectAccessDialog;
|
31300
31495
|
}());
|
@@ -31304,7 +31499,6 @@
|
|
31304
31499
|
};
|
31305
31500
|
var QMSSelectAccessDialogComponent = /** @class */ (function () {
|
31306
31501
|
function QMSSelectAccessDialogComponent(dialogRef, dialogData, translate, _fb, cdRef) {
|
31307
|
-
var _this = this;
|
31308
31502
|
this.dialogRef = dialogRef;
|
31309
31503
|
this.dialogData = dialogData;
|
31310
31504
|
this.translate = translate;
|
@@ -31314,69 +31508,91 @@
|
|
31314
31508
|
this.optionSelect = new forms.FormControl();
|
31315
31509
|
this.OPTION_ENUM = exports.OptionSelectAccessEnum;
|
31316
31510
|
this.options = [];
|
31511
|
+
this._departmentSelected = [];
|
31317
31512
|
this.userGroupForm = new forms.FormControl('');
|
31318
31513
|
this.getLoading$ = new rxjs.BehaviorSubject(false);
|
31319
31514
|
this.onSearchPersonEvent = new i0.EventEmitter();
|
31320
31515
|
this.onSearchPersonFreeTextEvent = new i0.EventEmitter();
|
31321
31516
|
this.onSearchUserGroupEvent = new i0.EventEmitter();
|
31322
31517
|
this.onSearchDepartmentEvent = new i0.EventEmitter();
|
31518
|
+
this.onPagingEvent = new i0.EventEmitter();
|
31519
|
+
this.onSelectOptionChange$ = new rxjs.Subject();
|
31520
|
+
this.departmentResultClone = [];
|
31323
31521
|
/** list filtered by search keyword */
|
31522
|
+
this.optionFilterPersonDataGlobal = {
|
31523
|
+
departments: [],
|
31524
|
+
userGroups: []
|
31525
|
+
};
|
31324
31526
|
this.filteredSearchTextBox = {
|
31325
|
-
department: new rxjs.
|
31326
|
-
|
31527
|
+
department: new rxjs.BehaviorSubject([]),
|
31528
|
+
userGroup: new rxjs.BehaviorSubject([]),
|
31327
31529
|
};
|
31328
|
-
this.getPerson$ = new rxjs.BehaviorSubject(
|
31329
|
-
this.getUserGroup$ = new rxjs.BehaviorSubject(
|
31530
|
+
this.getPerson$ = new rxjs.BehaviorSubject(new QMSAccessPagingModel());
|
31531
|
+
this.getUserGroup$ = new rxjs.BehaviorSubject(new QMSAccessPagingModel());
|
31330
31532
|
this.PAGINATION_SIZE = exports.PaginationSize;
|
31533
|
+
this.PAGE_SIZE_OPTION = [5, 10, 15, 20, 25, 100];
|
31331
31534
|
this.resultAccess = new QMSSelectAccessResult();
|
31332
|
-
this.
|
31333
|
-
|
31334
|
-
|
31335
|
-
length: 0
|
31336
|
-
};
|
31337
|
-
this.resultAccess = ___namespace.cloneDeep(this.dialogData.data.selectedData);
|
31338
|
-
this.optionSelect.valueChanges
|
31339
|
-
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31340
|
-
.subscribe(function (_) {
|
31341
|
-
_this.resetPagingConfig();
|
31342
|
-
});
|
31343
|
-
// Filtered Option select person
|
31344
|
-
this.filteredSearchTextBox.role.next(this.dialogData.data.accessUserGroups);
|
31345
|
-
this.filteredSearchTextBox.department.next(this.dialogData.data.accessDepartments);
|
31346
|
-
this.updatePersonFilter(this.dialogData.data.accessPersons);
|
31347
|
-
this.updateUserGroupFilter(this.dialogData.data.accessUserGroups);
|
31535
|
+
this.arrSkeleton = new Array(8).fill(0);
|
31536
|
+
this.resultAccess = ___namespace.cloneDeep(Object.assign(Object.assign({}, this.dialogData.data.selectedData), { departments: [] }));
|
31537
|
+
this._departmentSelected = ___namespace.cloneDeep(this.dialogData.data.selectedData.departments);
|
31348
31538
|
}
|
31539
|
+
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "selectedDepartments", {
|
31540
|
+
get: function () {
|
31541
|
+
var departmentSelected = [];
|
31542
|
+
this._departmentSelected.forEach(function (x) {
|
31543
|
+
var _a;
|
31544
|
+
departmentSelected.push({
|
31545
|
+
id: x.id,
|
31546
|
+
groupId: x.groupId,
|
31547
|
+
isGroup: x.isGroup
|
31548
|
+
});
|
31549
|
+
if (!((_a = x.children) === null || _a === void 0 ? void 0 : _a.length))
|
31550
|
+
return;
|
31551
|
+
departmentSelected.push.apply(departmentSelected, __spreadArray([], __read((x.children.map(function (item) { return ({
|
31552
|
+
id: item.id,
|
31553
|
+
groupId: item.groupId,
|
31554
|
+
isGroup: item.isGroup
|
31555
|
+
}); })))));
|
31556
|
+
});
|
31557
|
+
return departmentSelected || [];
|
31558
|
+
},
|
31559
|
+
enumerable: false,
|
31560
|
+
configurable: true
|
31561
|
+
});
|
31349
31562
|
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "tree", {
|
31350
31563
|
set: function (data) {
|
31351
|
-
|
31352
|
-
this.treeDepartment = data;
|
31353
|
-
}
|
31564
|
+
this.treeDepartment = data;
|
31354
31565
|
},
|
31355
31566
|
enumerable: false,
|
31356
31567
|
configurable: true
|
31357
31568
|
});
|
31358
31569
|
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "personFiltered", {
|
31359
31570
|
get: function () {
|
31571
|
+
var _a;
|
31360
31572
|
var persons = this.getPerson$.value;
|
31361
31573
|
var ids = this.resultAccess.persons.map(function (x) { return x.id; });
|
31362
|
-
persons.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31363
|
-
return persons;
|
31574
|
+
(_a = persons.data) === null || _a === void 0 ? void 0 : _a.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31575
|
+
return persons.data || [];
|
31364
31576
|
},
|
31365
31577
|
enumerable: false,
|
31366
31578
|
configurable: true
|
31367
31579
|
});
|
31368
31580
|
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "userGroupFiltered", {
|
31369
31581
|
get: function () {
|
31582
|
+
var _a;
|
31370
31583
|
var userGroups = this.getUserGroup$.value;
|
31371
31584
|
var ids = this.resultAccess.userGroups.map(function (x) { return x.id; });
|
31372
|
-
userGroups.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31373
|
-
return userGroups;
|
31585
|
+
(_a = userGroups.data) === null || _a === void 0 ? void 0 : _a.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31586
|
+
return userGroups.data || [];
|
31374
31587
|
},
|
31375
31588
|
enumerable: false,
|
31376
31589
|
configurable: true
|
31377
31590
|
});
|
31378
|
-
|
31591
|
+
;
|
31592
|
+
QMSSelectAccessDialogComponent.prototype.ngAfterContentInit = function () {
|
31379
31593
|
this.cdRef.detectChanges();
|
31594
|
+
};
|
31595
|
+
QMSSelectAccessDialogComponent.prototype.ngAfterViewInit = function () {
|
31380
31596
|
this.cdRef.detectChanges();
|
31381
31597
|
};
|
31382
31598
|
QMSSelectAccessDialogComponent.prototype.ngOnInit = function () {
|
@@ -31387,46 +31603,15 @@
|
|
31387
31603
|
}
|
31388
31604
|
});
|
31389
31605
|
this._buildOptionSelect();
|
31390
|
-
this.buildPersonForm();
|
31391
|
-
// Filter person by roles
|
31392
|
-
this.personForm.get('roleFilter').valueChanges
|
31393
|
-
.pipe(operators.takeUntil(this.ngUnsubcribe), operators.debounceTime(500))
|
31394
|
-
.subscribe(function (keyword) {
|
31395
|
-
if (!_this.dialogData.data.accessUserGroups) {
|
31396
|
-
return;
|
31397
|
-
}
|
31398
|
-
if (!keyword) {
|
31399
|
-
_this.filteredSearchTextBox.role.next(_this.dialogData.data.accessUserGroups);
|
31400
|
-
return;
|
31401
|
-
}
|
31402
|
-
_this.filteredSearchTextBox.role.next(_this.dialogData.data.accessUserGroups.filter(function (role) { return role.name.toLocaleLowerCase().includes(keyword.toLocaleLowerCase()); }));
|
31403
|
-
});
|
31404
|
-
// Filter person by departments
|
31405
|
-
this.personForm.get('departmentFilter').valueChanges
|
31406
|
-
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31407
|
-
.subscribe(function () {
|
31408
|
-
if (!_this.dialogData.data.accessDepartments) {
|
31409
|
-
return;
|
31410
|
-
}
|
31411
|
-
var search = _this.personForm.get('departmentFilter').value;
|
31412
|
-
if (!search) {
|
31413
|
-
_this.filteredSearchTextBox.department.next(_this.dialogData.data.accessDepartments.slice());
|
31414
|
-
}
|
31415
|
-
else {
|
31416
|
-
search = search.toLowerCase();
|
31417
|
-
_this.filteredSearchTextBox.department.next(_this.dialogData.data.accessDepartments.filter(function (x) { return x.name.toLowerCase().indexOf(search) > -1; }));
|
31418
|
-
}
|
31419
|
-
});
|
31420
31606
|
this.getLoading$.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31421
31607
|
.subscribe(function (response) {
|
31422
31608
|
if (response) {
|
31423
|
-
_this.personForm.disable();
|
31424
|
-
_this.userGroupForm.disable();
|
31425
|
-
|
31426
|
-
else {
|
31427
|
-
_this.personForm.enable();
|
31428
|
-
_this.userGroupForm.enable();
|
31609
|
+
_this.personForm && _this.personForm.disable();
|
31610
|
+
_this.userGroupForm && _this.userGroupForm.disable();
|
31611
|
+
return;
|
31429
31612
|
}
|
31613
|
+
_this.personForm && _this.personForm.enable();
|
31614
|
+
_this.userGroupForm && _this.userGroupForm.enable();
|
31430
31615
|
});
|
31431
31616
|
};
|
31432
31617
|
QMSSelectAccessDialogComponent.prototype.ngOnDestroy = function () {
|
@@ -31454,10 +31639,42 @@
|
|
31454
31639
|
}
|
31455
31640
|
}
|
31456
31641
|
if (this.options.length === 1) {
|
31457
|
-
this.dialogRef.updateSize(
|
31642
|
+
this.dialogRef.updateSize(this.dialogData.sizeUpdateDefault);
|
31458
31643
|
this.optionSelect.setValue(this.options[0].type);
|
31459
31644
|
}
|
31460
31645
|
};
|
31646
|
+
QMSSelectAccessDialogComponent.prototype._filterOptionPersonChange = function () {
|
31647
|
+
var _this = this;
|
31648
|
+
// Filter person by roles
|
31649
|
+
this.personForm.get('userGroupFilter').valueChanges
|
31650
|
+
.pipe(operators.takeUntil(this.ngUnsubcribe), operators.debounceTime(500))
|
31651
|
+
.subscribe(function (keyword) {
|
31652
|
+
if (!_this.optionFilterPersonDataGlobal.userGroups.length) {
|
31653
|
+
return;
|
31654
|
+
}
|
31655
|
+
if (!keyword) {
|
31656
|
+
_this.filteredSearchTextBox.userGroup.next(_this.optionFilterPersonDataGlobal.userGroups);
|
31657
|
+
return;
|
31658
|
+
}
|
31659
|
+
var resultFilter = _this.optionFilterPersonDataGlobal.userGroups.filter(function (userGroup) { return userGroup.name.toLocaleLowerCase().includes(keyword.toLocaleLowerCase()); });
|
31660
|
+
_this.filteredSearchTextBox.userGroup.next(resultFilter);
|
31661
|
+
});
|
31662
|
+
// Filter person by departments
|
31663
|
+
this.personForm.get('departmentFilter').valueChanges
|
31664
|
+
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31665
|
+
.subscribe(function () {
|
31666
|
+
if (!_this.optionFilterPersonDataGlobal.departments) {
|
31667
|
+
return;
|
31668
|
+
}
|
31669
|
+
var search = _this.personForm.get('departmentFilter').value;
|
31670
|
+
if (!search) {
|
31671
|
+
_this.filteredSearchTextBox.department.next(_this.optionFilterPersonDataGlobal.departments.slice());
|
31672
|
+
return;
|
31673
|
+
}
|
31674
|
+
search = search.toLowerCase();
|
31675
|
+
_this.filteredSearchTextBox.department.next(_this.optionFilterPersonDataGlobal.departments.filter(function (x) { return x.name.toLowerCase().indexOf(search) > -1; }));
|
31676
|
+
});
|
31677
|
+
};
|
31461
31678
|
QMSSelectAccessDialogComponent.prototype.getResultTabActive = function () {
|
31462
31679
|
var resultObj = {
|
31463
31680
|
0: this.resultAccess.persons,
|
@@ -31471,34 +31688,44 @@
|
|
31471
31688
|
};
|
31472
31689
|
QMSSelectAccessDialogComponent.prototype.buildPersonForm = function () {
|
31473
31690
|
this.personForm = this._fb.group({
|
31474
|
-
|
31475
|
-
|
31476
|
-
departmentFilter:
|
31477
|
-
recursive:
|
31478
|
-
|
31479
|
-
|
31480
|
-
|
31691
|
+
userGroup: [],
|
31692
|
+
department: [],
|
31693
|
+
departmentFilter: [''],
|
31694
|
+
recursive: [{
|
31695
|
+
value: false, disabled: true
|
31696
|
+
}],
|
31697
|
+
keyword: [''],
|
31698
|
+
userGroupFilter: [''],
|
31699
|
+
excludedQuitDepartmentId: [true]
|
31481
31700
|
});
|
31482
31701
|
};
|
31483
|
-
QMSSelectAccessDialogComponent.prototype.resetPagingConfig = function () {
|
31484
|
-
this.currentPaginationConfig = {
|
31485
|
-
pageIndex: 0,
|
31486
|
-
pageSize: 10,
|
31487
|
-
length: 0
|
31488
|
-
};
|
31489
|
-
};
|
31490
31702
|
QMSSelectAccessDialogComponent.prototype.onFilterPerson = function () {
|
31703
|
+
var _a, _b;
|
31491
31704
|
this.getLoading$.next(true);
|
31492
|
-
this.
|
31493
|
-
|
31705
|
+
var formValue = this.personForm.getRawValue();
|
31706
|
+
var filterData = {
|
31707
|
+
departmentId: (_a = formValue.department) === null || _a === void 0 ? void 0 : _a.id,
|
31708
|
+
userGroupId: (_b = formValue.userGroup) === null || _b === void 0 ? void 0 : _b.id,
|
31709
|
+
keyword: formValue.keyword,
|
31710
|
+
recursive: formValue.recursive
|
31711
|
+
};
|
31712
|
+
this.onSearchPersonEvent.emit(filterData);
|
31713
|
+
this._resetPagingator(this.pagingPerson);
|
31714
|
+
};
|
31715
|
+
QMSSelectAccessDialogComponent.prototype._resetPagingator = function (paginator) {
|
31716
|
+
if (!paginator)
|
31717
|
+
return;
|
31718
|
+
paginator.changePage(0);
|
31719
|
+
paginator.renderDisplayNumberOfpages();
|
31494
31720
|
};
|
31495
31721
|
QMSSelectAccessDialogComponent.prototype.onSearchPersonFreeText = function () {
|
31496
|
-
this.getLoading$.next(true);
|
31497
31722
|
this.getLoading$.next(true);
|
31498
31723
|
this.onSearchPersonFreeTextEvent.emit(this.personForm.get('keyword').value);
|
31724
|
+
this._resetPagingator(this.pagingPerson);
|
31499
31725
|
};
|
31500
31726
|
QMSSelectAccessDialogComponent.prototype.onFilterUserGroup = function () {
|
31501
31727
|
this.getLoading$.next(true);
|
31728
|
+
this._resetPagingator(this.pagingUserGroup);
|
31502
31729
|
this.onSearchUserGroupEvent.emit(this.userGroupForm.value);
|
31503
31730
|
};
|
31504
31731
|
QMSSelectAccessDialogComponent.prototype.onSelectItem = function (type, item) {
|
@@ -31562,13 +31789,26 @@
|
|
31562
31789
|
break;
|
31563
31790
|
case this.OPTION_ENUM.DEPARTMENT:
|
31564
31791
|
this.resultAccess.departments.splice(index, 1);
|
31792
|
+
this.departmentResultClone.splice(index, 1);
|
31793
|
+
if (!this.treeDepartment)
|
31794
|
+
return;
|
31565
31795
|
this.treeDepartment.onRemoveNode(item.id);
|
31796
|
+
break;
|
31566
31797
|
default:
|
31567
31798
|
return;
|
31568
31799
|
}
|
31569
31800
|
};
|
31570
31801
|
QMSSelectAccessDialogComponent.prototype.onSelectionTypeChange = function (event) {
|
31571
|
-
|
31802
|
+
switch (event.value) {
|
31803
|
+
case exports.OptionSelectAccessEnum.PERSON:
|
31804
|
+
this.buildPersonForm();
|
31805
|
+
this._filterOptionPersonChange();
|
31806
|
+
break;
|
31807
|
+
}
|
31808
|
+
this.getLoading$.next(true);
|
31809
|
+
this.dialogRef.updateSize(this.dialogData.sizeUpdateDefault);
|
31810
|
+
this.onSelectOptionChange$.next(event);
|
31811
|
+
this.cdRef.detectChanges();
|
31572
31812
|
};
|
31573
31813
|
QMSSelectAccessDialogComponent.prototype.setFormControlValue = function (formControlNames, values) {
|
31574
31814
|
var _this = this;
|
@@ -31580,9 +31820,9 @@
|
|
31580
31820
|
QMSSelectAccessDialogComponent.prototype.isCheckAll = function (type) {
|
31581
31821
|
switch (type) {
|
31582
31822
|
case this.OPTION_ENUM.PERSON:
|
31583
|
-
return !this.dialogData.modeSelectOnePerson && this.personFiltered.length && this.
|
31823
|
+
return !this.dialogData.modeSelectOnePerson && this.personFiltered.length && this.personFiltered.every(function (x) { return x.selected; });
|
31584
31824
|
case this.OPTION_ENUM.USER_GROUP:
|
31585
|
-
return !this.dialogData.modeSelectOneUserGroup && this.userGroupFiltered.length && this.
|
31825
|
+
return !this.dialogData.modeSelectOneUserGroup && this.userGroupFiltered.length && this.userGroupFiltered.every(function (x) { return x.selected; });
|
31586
31826
|
default:
|
31587
31827
|
return false;
|
31588
31828
|
}
|
@@ -31591,9 +31831,9 @@
|
|
31591
31831
|
var _a, _b;
|
31592
31832
|
switch (type) {
|
31593
31833
|
case this.OPTION_ENUM.PERSON:
|
31594
|
-
return !this.dialogData.modeSelectOnePerson && !this.isCheckAll(type) && ((_a = this.
|
31834
|
+
return !this.dialogData.modeSelectOnePerson && !this.isCheckAll(type) && ((_a = this.personFiltered) === null || _a === void 0 ? void 0 : _a.some(function (x) { return x.selected; }));
|
31595
31835
|
case this.OPTION_ENUM.USER_GROUP:
|
31596
|
-
return !this.dialogData.modeSelectOneUserGroup && !this.isCheckAll(type) && ((_b = this.
|
31836
|
+
return !this.dialogData.modeSelectOneUserGroup && !this.isCheckAll(type) && ((_b = this.userGroupFiltered) === null || _b === void 0 ? void 0 : _b.some(function (x) { return x.selected; }));
|
31597
31837
|
default:
|
31598
31838
|
return false;
|
31599
31839
|
}
|
@@ -31606,18 +31846,16 @@
|
|
31606
31846
|
$event.checked = false;
|
31607
31847
|
return;
|
31608
31848
|
}
|
31609
|
-
|
31610
|
-
if (!userPaging.length)
|
31849
|
+
if (!this.personFiltered.length)
|
31611
31850
|
return;
|
31612
|
-
|
31613
|
-
var idFiltered_1 =
|
31851
|
+
this.personFiltered.forEach(function (x) { return x.selected = $event.checked; });
|
31852
|
+
var idFiltered_1 = this.personFiltered.map(function (x) { return x.id; });
|
31614
31853
|
if ($event.checked) {
|
31615
31854
|
var idPersonSelected_1 = this.resultAccess.persons.map(function (x) { return x.id; });
|
31616
|
-
this.resultAccess.persons = __spreadArray(__spreadArray([], __read(this.resultAccess.persons)), __read(
|
31617
|
-
|
31618
|
-
else {
|
31619
|
-
this.resultAccess.persons = this.resultAccess.persons.filter(function (x) { return !idFiltered_1.includes(x.id); });
|
31855
|
+
this.resultAccess.persons = __spreadArray(__spreadArray([], __read(this.resultAccess.persons)), __read(this.personFiltered.filter(function (x) { return !idPersonSelected_1.includes(x.id); })));
|
31856
|
+
return;
|
31620
31857
|
}
|
31858
|
+
this.resultAccess.persons = this.resultAccess.persons.filter(function (x) { return !idFiltered_1.includes(x.id); });
|
31621
31859
|
break;
|
31622
31860
|
}
|
31623
31861
|
case this.OPTION_ENUM.USER_GROUP: {
|
@@ -31625,60 +31863,82 @@
|
|
31625
31863
|
$event.checked = false;
|
31626
31864
|
return;
|
31627
31865
|
}
|
31628
|
-
var userGroupPaging = this.
|
31866
|
+
var userGroupPaging = this.userGroupFiltered;
|
31629
31867
|
userGroupPaging.forEach(function (x) { return x.selected = $event.checked; });
|
31630
31868
|
var idFiltered_2 = userGroupPaging.map(function (x) { return x.id; });
|
31631
31869
|
if ($event.checked) {
|
31632
31870
|
var idSelected_1 = this.resultAccess.userGroups.map(function (x) { return x.id; });
|
31633
31871
|
this.resultAccess.userGroups = __spreadArray(__spreadArray([], __read(this.resultAccess.userGroups)), __read(userGroupPaging.filter(function (x) { return !idSelected_1.includes(x.id); })));
|
31872
|
+
return;
|
31634
31873
|
}
|
31635
|
-
|
31636
|
-
this.resultAccess.userGroups = this.resultAccess.userGroups.filter(function (x) { return !idFiltered_2.includes(x.id); });
|
31637
|
-
}
|
31874
|
+
this.resultAccess.userGroups = this.resultAccess.userGroups.filter(function (x) { return !idFiltered_2.includes(x.id); });
|
31638
31875
|
break;
|
31639
31876
|
}
|
31640
31877
|
default:
|
31641
31878
|
return;
|
31642
31879
|
}
|
31643
31880
|
};
|
31881
|
+
QMSSelectAccessDialogComponent.prototype.onSelectionNodeDepartmentChange = function (_c) {
|
31882
|
+
var _this = this;
|
31883
|
+
var added = _c.added, removed = _c.removed, updated = _c.updated;
|
31884
|
+
if (added.length) {
|
31885
|
+
added.forEach(function (item) {
|
31886
|
+
if (_this.resultAccess.departments.some(function (x) { return x.id === item.id; }))
|
31887
|
+
return;
|
31888
|
+
_this.resultAccess.departments.push(item);
|
31889
|
+
});
|
31890
|
+
}
|
31891
|
+
if (removed.length) {
|
31892
|
+
removed.forEach(function (x) {
|
31893
|
+
var index = _this.resultAccess.departments.findIndex(function (item) { return item.id === x.id; });
|
31894
|
+
if (index < 0)
|
31895
|
+
return;
|
31896
|
+
_this.resultAccess.departments.splice(index, 1);
|
31897
|
+
});
|
31898
|
+
}
|
31899
|
+
if (updated.length) {
|
31900
|
+
updated.forEach(function (x) {
|
31901
|
+
var index = _this.resultAccess.departments.findIndex(function (item) { return item.id == x.id; });
|
31902
|
+
if (index < 0)
|
31903
|
+
return;
|
31904
|
+
var deparment = _this.resultAccess.departments.find(function (item) { return item.id == x.id; });
|
31905
|
+
if (!!deparment)
|
31906
|
+
deparment.children = x.children;
|
31907
|
+
});
|
31908
|
+
}
|
31909
|
+
this._departmentSelected = ___namespace.cloneDeep(this.resultAccess.departments);
|
31910
|
+
};
|
31644
31911
|
QMSSelectAccessDialogComponent.prototype.onScollToNodeTreeDepartment = function (node) {
|
31645
31912
|
this.optionSelect.value === this.OPTION_ENUM.DEPARTMENT && this.treeDepartment.scrollToNode(node.id);
|
31646
31913
|
};
|
31647
|
-
QMSSelectAccessDialogComponent.prototype.onRemoveTreeNodeDepartment = function (node) {
|
31648
|
-
if (this.optionSelect.value === this.OPTION_ENUM.DEPARTMENT) {
|
31649
|
-
this.treeDepartment.onRemoveNode(node.id);
|
31650
|
-
}
|
31651
|
-
this.resultAccess.departments = this.resultAccess.departments.filter(function (item) { return item.id !== node.id; });
|
31652
|
-
};
|
31653
31914
|
QMSSelectAccessDialogComponent.prototype.trackByFn = function (index, item) {
|
31654
31915
|
return index;
|
31655
31916
|
};
|
31656
31917
|
QMSSelectAccessDialogComponent.prototype.updatePersonFilter = function (data) {
|
31657
|
-
this.resetPagingConfig();
|
31658
31918
|
this.getPerson$.next(data);
|
31659
31919
|
this.getLoading$.next(false);
|
31660
|
-
this.getLoading$.next(false);
|
31661
31920
|
};
|
31662
31921
|
QMSSelectAccessDialogComponent.prototype.updateUserGroupFilter = function (data) {
|
31663
|
-
this.resetPagingConfig();
|
31664
31922
|
this.getUserGroup$.next(data);
|
31665
31923
|
this.getLoading$.next(false);
|
31666
|
-
this.getLoading$.next(false);
|
31667
|
-
};
|
31668
|
-
QMSSelectAccessDialogComponent.prototype.onPagingEvent = function (val) {
|
31669
|
-
this.currentPaginationConfig = val;
|
31670
31924
|
};
|
31671
|
-
QMSSelectAccessDialogComponent.prototype.
|
31672
|
-
|
31673
|
-
|
31674
|
-
return source.slice(this.currentPaginationConfig.pageIndex * this.currentPaginationConfig.pageSize, (this.currentPaginationConfig.pageIndex * this.currentPaginationConfig.pageSize) + this.currentPaginationConfig.pageSize);
|
31925
|
+
QMSSelectAccessDialogComponent.prototype.onPaginatorEvent = function (val, type) {
|
31926
|
+
this.getLoading$.next(this.optionSelect.value !== this.OPTION_ENUM.DEPARTMENT);
|
31927
|
+
this.onPagingEvent.emit(Object.assign(Object.assign({}, val), { type: type }));
|
31675
31928
|
};
|
31676
31929
|
QMSSelectAccessDialogComponent.prototype.onResultDepartmentChange = function (event) {
|
31677
|
-
|
31678
|
-
|
31679
|
-
|
31680
|
-
|
31681
|
-
|
31930
|
+
// this.resultAccess.departments = event;
|
31931
|
+
};
|
31932
|
+
QMSSelectAccessDialogComponent.prototype.updateResultSearchDepartment = function (data) {
|
31933
|
+
if (data === void 0) { data = new QMSAccessPagingModel(); }
|
31934
|
+
if (!this.treeDepartment)
|
31935
|
+
return;
|
31936
|
+
data = data;
|
31937
|
+
this.treeDepartment.setResultSearch(data);
|
31938
|
+
};
|
31939
|
+
QMSSelectAccessDialogComponent.prototype.generateTootip = function (node) {
|
31940
|
+
var _a;
|
31941
|
+
return (node === null || node === void 0 ? void 0 : node.isGroup) ? this.formatString(this.LANG.TOOLTIP_INCLUDE_SUB_DEPARTMENT, node.name, (_a = node.children) === null || _a === void 0 ? void 0 : _a.length.toString()) : (node.name + " " + ((node === null || node === void 0 ? void 0 : node.subName) ? "- (" + node.subName + ")" : ''));
|
31682
31942
|
};
|
31683
31943
|
QMSSelectAccessDialogComponent.prototype.formatString = function () {
|
31684
31944
|
var replacements = [];
|
@@ -31696,12 +31956,29 @@
|
|
31696
31956
|
var _this = this;
|
31697
31957
|
return Object.keys(this.resultAccess).some(function (key) { var _a; return !!((_a = _this.resultAccess[key]) === null || _a === void 0 ? void 0 : _a.length); });
|
31698
31958
|
};
|
31959
|
+
QMSSelectAccessDialogComponent.prototype.updateDepartment = function (data) {
|
31960
|
+
if (data === void 0) { data = []; }
|
31961
|
+
this.getLoading$.next(false);
|
31962
|
+
this.dialogData.data.accessDepartments = [];
|
31963
|
+
this.dialogData.data.accessDepartments = ___namespace.cloneDeep(data);
|
31964
|
+
};
|
31965
|
+
QMSSelectAccessDialogComponent.prototype.updateOptionPersonFilter = function (departmentFilter, userGroupFilter) {
|
31966
|
+
if (departmentFilter === void 0) { departmentFilter = []; }
|
31967
|
+
if (userGroupFilter === void 0) { userGroupFilter = []; }
|
31968
|
+
this.optionFilterPersonDataGlobal.departments = departmentFilter;
|
31969
|
+
this.optionFilterPersonDataGlobal.userGroups = userGroupFilter;
|
31970
|
+
this.filteredSearchTextBox.department.next(departmentFilter);
|
31971
|
+
this.filteredSearchTextBox.userGroup.next(userGroupFilter);
|
31972
|
+
};
|
31973
|
+
QMSSelectAccessDialogComponent.prototype.setDefaultPageSizeOption = function (data) {
|
31974
|
+
this.PAGE_SIZE_OPTION = data;
|
31975
|
+
};
|
31699
31976
|
return QMSSelectAccessDialogComponent;
|
31700
31977
|
}());
|
31701
31978
|
QMSSelectAccessDialogComponent.decorators = [
|
31702
31979
|
{ type: i0.Component, args: [{
|
31703
31980
|
selector: 'qms-select-access-dialog',
|
31704
|
-
template: "<div qms-dialog-container-v2 class=\"select-access-dialog-container\">\r\n <div qms-dialog-header>\r\n <div class=\"access-dialog-header mb-2\">\r\n <span class=\"header-title\">{{dialogData.titleDialog || LANG.SELECT_ACCESS}}</span>\r\n <button matDialogClose qms-btn-icon>\r\n <mat-icon class=\"mat-icons-outlined\">close</mat-icon>\r\n </button>\r\n </div>\r\n <mat-form-field *ngIf=\"options.length > 1\" qms-form qms-select-input class=\"field-select-option w-100\"\r\n appearance=\"fill\">\r\n <mat-label qms-select-input>{{LANG.TYPE}}</mat-label>\r\n <mat-select (selectionChange)=\"onSelectionTypeChange($event)\" [formControl]=\"optionSelect\" placeholder=\"Select\"\r\n disableOptionCentering #singleSelect panelClass=\"qms-select-panel\" qms-select>\r\n\r\n <mat-option *ngFor=\"let item of options\" [value]=\"item.type\">\r\n {{ LANG[item.displayName] }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div qms-dialog-content class=\"access-dialog-wraper\">\r\n <!-- Person Access -->\r\n <div class=\"option-selected-content\">\r\n <ng-container *ngIf=\"optionSelect.value === OPTION_ENUM.PERSON\">\r\n <form [formGroup]=\"personForm\">\r\n <mat-dialog-content>\r\n <div class=\"group-filter-person-option\">\r\n <mat-form-field class=\"w-100 input-option-filter\" qms-form>\r\n <mat-label qms-select-input>{{LANG.ROLE}}</mat-label>\r\n <mat-select panelClass=\"qms-select-panel\" qms-select disableOptionCentering formControlName=\"roleId\">\r\n <mat-option>\r\n <ngx-mat-select-search formControlName=\"roleFilter\" placeholderLabel=\"{{ LANG.ROLE }}\"\r\n noEntriesFoundLabel=\"\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n <mat-option *ngFor=\"let item of filteredSearchTextBox.role | async\" [value]=\"item.id\">\r\n {{ item.name }}\r\n </mat-option>\r\n </mat-select>\r\n <!-- <mat-progress-spinner [@inOutAnimation] *ngIf=\"getLoading$.value\" matSuffix mode=\"indeterminate\" diameter=\"20\"></mat-progress-spinner> -->\r\n <span [@inOutAnimation] (click)=\"personForm.get('roleId').setValue('')\" class=\"pointer \" matSuffix\r\n aria-label=\"Clear\" *ngIf=\"personForm.get('roleId').value && !getLoading$.value\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"w-100 input-select-option\" qms-form qms-select-input>\r\n <mat-label>{{LANG.DEPARTMENT_UNIT}}</mat-label>\r\n <mat-select panelClass=\"qms-select-panel\" qms-select disableOptionCentering\r\n formControlName=\"departmentId\">\r\n <mat-option>\r\n <ngx-mat-select-search formControlName=\"departmentFilter\" [placeholderLabel]=\"LANG.DEPARTMENT_UNIT\"\r\n noEntriesFoundLabel=\"\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n <mat-option *ngFor=\"let item of filteredSearchTextBox.department | async\" [value]=\"item.id\">\r\n {{item.name}}\r\n </mat-option>\r\n </mat-select>\r\n <span (click)=\"setFormControlValue(['recursive','departmentId'], [false,''])\" [@inOutAnimation]\r\n class=\"pointer\" matSuffix aria-label=\"Clear\"\r\n *ngIf=\"personForm.get('departmentId').value && !getLoading$.value\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n </mat-form-field>\r\n </div>\r\n\r\n <mat-slide-toggle class=\"w-100 slide-toggle\" formControlName=\"recursive\"\r\n [disabled]=\"!this.personForm.controls['departmentId'].value\" color=\"default\" qms-group-options>\r\n <span class=\"text-label\">{{LANG.INCLUDE_SUB_DEPARTMENTS}}</span>\r\n </mat-slide-toggle>\r\n\r\n <mat-form-field class=\"w-100\" appearance=\"fill\" qms-form qms-search-field>\r\n <input matInput appearance=\"off\" [placeholder]=\"LANG.SEARCH_WITH_NAME\" formControlName=\"keyword\"\r\n type=\"text\" autocomplete=\"off\" />\r\n <button *ngIf=\"!getLoading$.value\" qms-btn-icon color=\"light\" [@inOutAnimation]\r\n (click)=\"onSearchPersonFreeText()\" class=\"pointer me-1\" matSuffix aria-label=\"Search\">\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <mat-progress-spinner [@inOutAnimation] *ngIf=\"getLoading$.value\" matSuffix mode=\"indeterminate\"\r\n diameter=\"20\"></mat-progress-spinner>\r\n <span [@inOutAnimation] (click)=\"personForm.get('keyword').setValue('')\"\r\n class=\"pointer btn-icon-clear d-flex justify-content-center align-items-center \" matSuffix\r\n aria-label=\"Clear\" *ngIf=\"personForm.get('keyword').value && !getLoading$.value\">\r\n <button qms-btn-icon color=\"light\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </span>\r\n </mat-form-field>\r\n <button (click)=\"onFilterPerson()\" qms-btn-outlined class=\"w-100 my-1\">\r\n {{LANG.FILTER}}\r\n </button>\r\n </mat-dialog-content>\r\n\r\n <mat-dialog-content class=\"items-list\">\r\n <div qms-scrollbar>\r\n <div class=\"item\">\r\n <mat-checkbox [@inOutAnimation] *ngIf=\"!getLoading$.value\"\r\n [disabled]=\"!personFiltered.length || dialogData.modeSelectOnePerson\" #checkPerson\r\n class=\"w-100 mb-1 checkbox-all\"\r\n (click)=\"personFiltered.length && onCheckAll(OPTION_ENUM.PERSON,checkPerson)\"\r\n [checked]=\"isCheckAll(OPTION_ENUM.PERSON)\" [indeterminate]=\"isIndeterminate(OPTION_ENUM.PERSON)\"\r\n color=\"default\" qms-group-options>\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}} </span>\r\n <span>(<b>{{getPaging(personFiltered).length}}</b>)</span>\r\n </mat-checkbox>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <ng-container *ngIf=\"getLoading$.value; then loading\">\r\n </ng-container>\r\n <div [@inOutAnimation] *ngIf=\"getPaging(personFiltered).length && !getLoading$.value\" [@listAnimation]\r\n class=\"item-list-wrapper\">\r\n <div class=\"item mt-1\" [@inOutAnimation]\r\n *ngFor=\"let employee of getPaging(personFiltered); trackBy: trackByFn\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"dialogData.modeSelectOnePerson ?itemWithoutCheckboxTemplate : itemCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{item: employee, type: OPTION_ENUM.PERSON}\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [@inOutAnimation] *ngIf=\"!getPaging(personFiltered).length && !getLoading$.value\"\r\n class=\"item-list-wrapper no-result\">\r\n <ng-container *ngTemplateOutlet=\"noResult\"></ng-container>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <qms-paginator class=\"my-1\" *ngIf=\"personFiltered.length > 10 && !getLoading$.value\"\r\n [length]=\"personFiltered.length\" [numHidden]=\"0\" [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n (page)='onPagingEvent($event)' [size]='PAGINATION_SIZE.medium'>\r\n </qms-paginator>\r\n </div>\r\n </mat-dialog-content>\r\n </form>\r\n </ng-container>\r\n\r\n <!-- UserGroup Access -->\r\n <ng-container *ngIf=\"optionSelect.value === OPTION_ENUM.USER_GROUP\">\r\n <form>\r\n <mat-dialog-content>\r\n <mat-form-field class=\"w-100\" qms-form qms-search-field>\r\n <input [formControl]=\"userGroupForm\" matInput type=\"text\" autocomplete=\"off\" placeholder=\"User group\" />\r\n <button [@inOutAnimation] *ngIf=\"!getLoading$.value\" (click)=\"onFilterUserGroup()\" qms-btn-icon\r\n color=\"light\" matSuffix>\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <mat-progress-spinner [@inOutAnimation] *ngIf=\"getLoading$.value\" matSuffix mode=\"indeterminate\"\r\n diameter=\"20\"></mat-progress-spinner>\r\n <div [@inOutAnimation] *ngIf=\"!!userGroupForm.value && !getLoading$.value\" matSuffix qms-input-clear>\r\n <button (click)=\"userGroupForm.setValue('')\" qms-btn-icon color=\"light\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </mat-form-field>\r\n </mat-dialog-content>\r\n <mat-dialog-content class=\"items-list\">\r\n <div qms-scrollbar>\r\n <div class=\"item\">\r\n <mat-checkbox [@inOutAnimation] *ngIf=\"!getLoading$.value\"\r\n [disabled]=\"!userGroupFiltered.length || dialogData.modeSelectOneUserGroup\" #checkUserGroup\r\n class=\"w-100 checkbox-all mb-1\" color=\"default\" [checked]=\"isCheckAll(OPTION_ENUM.USER_GROUP)\"\r\n [indeterminate]=\"isIndeterminate(OPTION_ENUM.USER_GROUP)\"\r\n (click)=\"userGroupFiltered.length && onCheckAll(OPTION_ENUM.USER_GROUP,checkUserGroup)\"\r\n qms-group-options>\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}}</span>\r\n <span>(<b>{{getPaging(userGroupFiltered).length}}</b>)</span>\r\n </mat-checkbox>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <ng-container *ngIf=\"getLoading$.value;then loading\">\r\n </ng-container>\r\n <div *ngIf=\"getPaging(userGroupFiltered).length && !getLoading$.value\" [@listAnimation]\r\n class=\"item-list-wrapper\">\r\n <div [@inOutAnimation] class=\"item mt-1\" *ngFor=\"let userGroup of getPaging(userGroupFiltered)\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"dialogData.modeSelectOneUserGroup ?itemWithoutCheckboxTemplate : itemCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{item: userGroup,type: OPTION_ENUM.USER_GROUP}\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [@inOutAnimation] *ngIf=\"!getPaging(userGroupFiltered).length && !getLoading$.value\"\r\n class=\"item-list-wrapper no-result\">\r\n <ng-container *ngTemplateOutlet=\"noResult\"></ng-container>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <qms-paginator class=\"my-1\" *ngIf=\"userGroupFiltered.length > 10 && !getLoading$.value\"\r\n [length]=\"userGroupFiltered.length\" [numHidden]=\"0\" [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n (page)='onPagingEvent($event)' [size]='PAGINATION_SIZE.medium'>\r\n </qms-paginator>\r\n </div>\r\n </mat-dialog-content>\r\n </form>\r\n </ng-container>\r\n\r\n <!-- Department Access -->\r\n <ng-container *ngIf=\"optionSelect.value === OPTION_ENUM.DEPARTMENT\" class=\"person-access\">\r\n <qms-select-department-tree #treeDepartment [treeData]=\"dialogData.data.accessDepartments\"\r\n [selectIncludeLabel]=\"dialogData.treeDepartmentConfig.selectIncludeChildLabel\"\r\n [enableIncludeChild]=\"dialogData.treeDepartmentConfig.enableIncludeChild\"\r\n [enableTreeSearch]=\"dialogData.treeDepartmentConfig.enableTreeSearch\"\r\n [isSelectOne]=\"dialogData.modeSelectOneDepartment\" [selectedList]=\"resultAccess.departments\"\r\n (onSearchEvent)=\"onSearchDepartmentEvent.emit($event)\"\r\n (onValueChangeEvent)=\"onResultDepartmentChange($event)\">\r\n </qms-select-department-tree>\r\n </ng-container>\r\n </div>\r\n <mat-divider *ngIf=\"optionSelect.value !== null\" class=\"mx-auto\"></mat-divider>\r\n <div [@inOutAnimation]\r\n *ngIf=\"(options.length === 1 && hasItemSelected()) || (options.length > 1 && optionSelect.value !== null)\"\r\n class=\"header-title my-1\">\r\n {{\r\n dialogData.titleResult || LANG.RESULTS}}\r\n <span *ngIf=\"options.length === 1 && hasItemSelected()\">\r\n ({{getResultTabActive().length}})\r\n </span>\r\n </div>\r\n <div *ngIf=\"optionSelect.value !== null\" class=\"result-selected-container\">\r\n <!-- Result Person -->\r\n <ng-container *ngIf=\"checkExistOptionSelect(OPTION_ENUM.PERSON)\"\r\n [ngTemplateOutlet]=\"options.length == 1 ? listChip : viewResultCollapse\"\r\n [ngTemplateOutletContext]=\"{data:resultAccess.persons, type:OPTION_ENUM.PERSON, title:LANG.PERSON}\">\r\n </ng-container>\r\n <!-- Result User group -->\r\n <ng-container *ngIf=\"checkExistOptionSelect(OPTION_ENUM.USER_GROUP)\"\r\n [ngTemplateOutlet]=\"options.length == 1 ? listChip : viewResultCollapse\"\r\n [ngTemplateOutletContext]=\"{data:resultAccess.userGroups, type:OPTION_ENUM.USER_GROUP, title:LANG.USER_GROUP}\">\r\n </ng-container>\r\n <!-- Result Department -->\r\n <ng-container *ngIf=\"checkExistOptionSelect(OPTION_ENUM.DEPARTMENT)\"\r\n [ngTemplateOutlet]=\"options.length == 1 ? listChip : viewResultCollapse\"\r\n [ngTemplateOutletContext]=\"{data:resultAccess.departments, type:OPTION_ENUM.DEPARTMENT, title:LANG.DEPARTMENT}\">\r\n </ng-container>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n </div>\r\n <div qms-dialog-footer class=\"confirm__button__groups\" [class.none-option]=\"optionSelect.value === null\">\r\n <button *ngIf=\"optionSelect.value !== null\" [disabled]=\"!hasItemSelected()\" class=\"btn-add\"\r\n [class.qms-btn-disabled]=\"!hasItemSelected()\" [mat-dialog-close]=\"resultAccess\" qms-btn>\r\n <span>{{LANG.ADD}}</span>\r\n </button>\r\n <button qms-btn-text mat-dialog-close>\r\n {{LANG.CANCEL}}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- Template -->\r\n<ng-template #noResult>\r\n <svg width=\"89\" height=\"88\" viewBox=\"0 0 89 88\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"white\" />\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"#0163B2\" fill-opacity=\"0.12\" />\r\n <path\r\n d=\"M44.5 56.6936L58.096 64.8996L54.488 49.4336L66.5 39.0276L50.682 37.6856L44.5 23.0996L38.318 37.6856L22.5 39.0276L34.512 49.4336L30.904 64.8996L44.5 56.6936Z\"\r\n fill=\"#0163B3\" />\r\n </svg>\r\n</ng-template>\r\n\r\n<!-- Template list chip -->\r\n<ng-template #listChip let-data=\"data\" let-type=\"type\">\r\n <mat-chip-list class=\"panel__item qms-scrollbar\">\r\n <mat-chip class=\"chip-item-result\" [qms-tool-tip]=\"item?.tooltip || item.name\" position=\"top\" mode=\"dark\"\r\n *ngFor=\"let item of data; let i = index\" qms-chip [removable]=\"true\">\r\n <span qms-chip-body>\r\n <span class=\"text-label\">\r\n {{item.name}}\r\n <span *ngIf=\"item.subName\">({{ item.subName }})</span>\r\n </span>\r\n <span class=\"chip-item-children__count ms-1\" *ngIf=\"item?.children\">\r\n {{item.children.length}}/{{item.childCount}}\r\n </span>\r\n </span>\r\n <mat-icon (click)=\"onRemoveChip(type,item, i)\" class=\"remove-chip-icon\">cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n</ng-template>\r\n\r\n<!-- Template result with collapse -->\r\n<ng-template #viewResultCollapse let-title=\"title\" let-data=\"data\" let-type=\"type\">\r\n <mat-expansion-panel qms-expansion [expanded]=\"optionSelect.value === type\">\r\n <mat-expansion-panel-header>\r\n <div class=\"title-content\">\r\n <div class=\"qms-list-text\">\r\n <div qms-line color=\"default-subtitle\">{{title}}\r\n <span class=\"fw-600\">\r\n ({{data.length}})\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-container [ngTemplateOutlet]=\"listChip\" [ngTemplateOutletContext]=\"{data: data,type: type}\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n</ng-template>\r\n\r\n<!-- Template row without checkbox -->\r\n<ng-template #itemWithoutCheckboxTemplate let-item=\"item\" let-type=\"type\">\r\n <div (click)=\"onSelectItem(type,item)\" class=\"item-without-checkbox w-100\" [class.active]=\"item.selected\">\r\n <div class=\"item-content\">\r\n <div class=\"text-label\">\r\n <span class=\"text-label label-item fs-14 \">\r\n {{ item.name }}\r\n </span>\r\n <span *ngIf=\"item.subName\" class=\"ms-1 sub-label\">({{item.subName}})</span>\r\n </div>\r\n <small *ngIf=\"item.helpText\" class=\"text-help px-1 fs-12 sub-label\">{{ item.helpText }}</small>\r\n </div>\r\n <div class=\"item-state\">\r\n <mat-icon [@inOutAnimation] *ngIf=\"item.selected\">check</mat-icon>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Template checkbox -->\r\n<ng-template #itemCheckboxTemplate let-item=\"item\" let-type=\"type\">\r\n <mat-checkbox [checked]=\"item.selected\" (click)=\"onSelectItem(type,item)\" class=\"w-100\" color=\"default\"\r\n qms-group-options>\r\n <div class=\"text-label\">\r\n <span class=\"text-label label-item fs-14 \">\r\n {{ item.name }}\r\n </span>\r\n <span *ngIf=\"item.subName\" class=\"ms-1 sub-label\">({{item.subName}})</span>\r\n </div>\r\n <small *ngIf=\"item.helpText\" class=\"text-help px-1 fs-12 sub-label\">{{ item.helpText }}</small>\r\n </mat-checkbox>\r\n</ng-template>\r\n\r\n<!-- Template loading -->\r\n<ng-template #loading>\r\n <div class=\"loading-container\">\r\n <div class=\"loader\" *ngFor=\"let item of [1,1,1,1]\">\r\n <div class=\"loader__wrapper\">\r\n <div class=\"row-loader\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
31981
|
+
template: "<div qms-dialog-container-v2 class=\"select-access-dialog-container\">\r\n <div qms-dialog-header>\r\n <div class=\"access-dialog-header mb-2\">\r\n <span class=\"header-title\">{{dialogData.titleDialog || LANG.SELECT_ACCESS}}</span>\r\n <button matDialogClose qms-btn-icon>\r\n <mat-icon class=\"mat-icons-outlined\">close</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <div [class.active]=\"optionSelect.value !== null\" qms-dialog-content class=\"qms-dialog-content\">\r\n <div class=\"access-dialog-wraper\">\r\n <mat-form-field *ngIf=\"options.length > 1\" qms-form qms-select-input class=\"field-select-option w-100\"\r\n appearance=\"fill\">\r\n <mat-label qms-select-input>{{LANG.TYPE}}</mat-label>\r\n <mat-select (selectionChange)=\"onSelectionTypeChange($event)\" [formControl]=\"optionSelect\" placeholder=\"Select\"\r\n disableOptionCentering #singleSelect panelClass=\"qms-select-panel\" qms-select>\r\n\r\n <mat-option *ngFor=\"let item of options\" [value]=\"item.type\">\r\n {{ LANG[item.displayName] }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <div class=\"body-dialog-container\">\r\n <!-- Person Access -->\r\n <div class=\"option-selected-content\">\r\n <ng-container *ngIf=\"optionSelect.value === OPTION_ENUM.PERSON\">\r\n <form *ngIf=\"personForm\" [formGroup]=\"personForm\">\r\n <mat-dialog-content>\r\n <div class=\"group-filter-person-option\">\r\n <mat-form-field *ngIf=\"optionFilterPersonDataGlobal.userGroups.length\" qms-form qms-select-input\r\n class=\"w-100\" appearance=\"fill\">\r\n <mat-label qms-select-input>{{LANG.ROLE}}</mat-label>\r\n <mat-select panelClass=\"qms-select-panel\" qms-select formControlName=\"userGroup\"\r\n disableOptionCentering>\r\n <mat-select-trigger>\r\n {{personForm.controls['userGroup'].value?.name || ''}}\r\n </mat-select-trigger>\r\n <mat-option>\r\n <ngx-mat-select-search formControlName=\"userGroupFilter\" placeholderLabel=\"{{ LANG.ROLE }}\"\r\n noEntriesFoundLabel=\"\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n <mat-option mode=\"dark\" class=\"opt-check-icon\"\r\n *ngFor=\"let item of filteredSearchTextBox.userGroup.value\" [value]=\"item\">\r\n <span qms-elipsify position=\"top\" mode=\"dark\" class=\"text-option-content\">{{ item.name }}</span>\r\n <mat-icon class=\"check-icon\"\r\n *ngIf=\"personForm.controls['userGroup'].value?.id == item.id\">check</mat-icon>\r\n </mat-option>\r\n </mat-select>\r\n <span [@inOutAnimation] (click)=\"personForm.get('userGroup').setValue('')\" class=\"pointer \"\r\n matSuffix aria-label=\"Clear\" *ngIf=\"personForm.get('userGroup').value && !getLoading$.value\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n </mat-form-field>\r\n <!-- input field department filter person -->\r\n <mat-form-field *ngIf=\"optionFilterPersonDataGlobal.departments.length\"\r\n class=\"w-100 input-select-option\" qms-form qms-select-input>\r\n <mat-label>{{LANG.DEPARTMENT_UNIT}}</mat-label>\r\n <mat-select panelClass=\"qms-select-panel\" qms-select disableOptionCentering\r\n formControlName=\"department\">\r\n <mat-select-trigger>\r\n {{personForm.controls['department'].value?.name || ''}}\r\n </mat-select-trigger>\r\n <mat-option>\r\n <ngx-mat-select-search formControlName=\"departmentFilter\"\r\n [placeholderLabel]=\"LANG.DEPARTMENT_UNIT\" noEntriesFoundLabel=\"\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n <mat-option class=\"opt-check-icon\" *ngFor=\"let item of filteredSearchTextBox.department.value\"\r\n [value]=\"item\">\r\n <span qms-elipsify mode=\"dark\" position=\"top\" class=\"text-option-content\">{{ item.name }}</span>\r\n <mat-icon class=\"check-icon\"\r\n *ngIf=\"personForm.controls['department'].value?.id == item.id\">check</mat-icon>\r\n </mat-option>\r\n </mat-select>\r\n <span (click)=\"setFormControlValue(['recursive','department'], [false,''])\" [@inOutAnimation]\r\n class=\"pointer\" matSuffix aria-label=\"Clear\"\r\n *ngIf=\"personForm.get('department').value && !getLoading$.value\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n </mat-form-field>\r\n </div>\r\n\r\n <mat-slide-toggle [@inOutAnimation] *ngIf=\"personForm.controls['department'].value\"\r\n class=\"w-100 slide-toggle\" formControlName=\"recursive\" color=\"default\" qms-group-options>\r\n <span class=\"text-label\">{{LANG.INCLUDE_SUB_DEPARTMENTS}}</span>\r\n </mat-slide-toggle>\r\n\r\n <mat-form-field class=\"w-100\" appearance=\"fill\" qms-form qms-search-field>\r\n <input matInput appearance=\"off\" [placeholder]=\"LANG.SEARCH_WITH_NAME\" formControlName=\"keyword\"\r\n type=\"text\" autocomplete=\"off\" />\r\n <button *ngIf=\"!getLoading$.value\" qms-btn-icon color=\"light\" [@inOutAnimation]\r\n (click)=\"onSearchPersonFreeText()\" class=\"pointer me-1\" matSuffix aria-label=\"Search\">\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <mat-progress-spinner [@inOutAnimation] *ngIf=\"getLoading$.value\" matSuffix mode=\"indeterminate\"\r\n diameter=\"20\"></mat-progress-spinner>\r\n <span [@inOutAnimation] (click)=\"personForm.get('keyword').setValue('')\"\r\n class=\"pointer btn-icon-clear d-flex justify-content-center align-items-center \" matSuffix\r\n aria-label=\"Clear\" *ngIf=\"personForm.get('keyword').value && !getLoading$.value\">\r\n <button qms-btn-icon color=\"light\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </span>\r\n </mat-form-field>\r\n <button (click)=\"onFilterPerson()\" qms-btn-outlined class=\"w-100 my-1\">\r\n {{LANG.FILTER}}\r\n </button>\r\n </mat-dialog-content>\r\n\r\n <mat-dialog-content class=\"items-list\">\r\n <div qms-scrollbar>\r\n <div class=\"item\">\r\n <mat-checkbox [@inOutAnimation]\r\n *ngIf=\"!getLoading$.value && personFiltered.length && !dialogData.modeSelectOnePerson\"\r\n #checkPerson class=\"w-100 mb-1 checkbox-all\"\r\n (click)=\"personFiltered.length && onCheckAll(OPTION_ENUM.PERSON,checkPerson)\"\r\n [checked]=\"isCheckAll(OPTION_ENUM.PERSON)\" [indeterminate]=\"isIndeterminate(OPTION_ENUM.PERSON)\"\r\n color=\"default\" qms-group-options>\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}} </span>\r\n <span>(<b>{{personFiltered.length}}</b>)</span>\r\n </mat-checkbox>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <ng-container *ngIf=\"getLoading$.value; then loading\">\r\n </ng-container>\r\n <div [@inOutAnimation] *ngIf=\"personFiltered.length && !getLoading$.value\" [@listAnimation]\r\n class=\"item-list-wrapper\">\r\n <div class=\"item mt-1\" [@inOutAnimation]\r\n *ngFor=\"let employee of personFiltered; trackBy: trackByFn\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"dialogData.modeSelectOnePerson ?itemWithoutCheckboxTemplate : itemCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{item: employee, type: OPTION_ENUM.PERSON}\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [@inOutAnimation] *ngIf=\"!personFiltered.length && !getLoading$.value\"\r\n class=\"item-list-wrapper no-result\">\r\n <ng-container *ngTemplateOutlet=\"noResult\"></ng-container>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <qms-paginator #pagingPerson class=\"my-1\" *ngIf=\"getPerson$.value.length > 10\"\r\n [length]=\"getPerson$.value.length\" [numHidden]=\"0\" [pageSize]=\"getPerson$.value.pageSize\"\r\n [pageSizeOptions]=\"PAGE_SIZE_OPTION\" (page)='onPaginatorEvent($event, OPTION_ENUM.PERSON)'\r\n [size]='PAGINATION_SIZE.medium'>\r\n </qms-paginator>\r\n </div>\r\n </mat-dialog-content>\r\n </form>\r\n </ng-container>\r\n\r\n <!-- UserGroup Access -->\r\n <ng-container *ngIf=\"optionSelect.value === OPTION_ENUM.USER_GROUP\">\r\n <form (submit)=\"onFilterUserGroup()\">\r\n <mat-dialog-content>\r\n <mat-form-field class=\"w-100\" qms-form qms-search-field>\r\n <input [formControl]=\"userGroupForm\" matInput type=\"text\" autocomplete=\"off\"\r\n placeholder=\"User group\" />\r\n <button [@inOutAnimation] *ngIf=\"!getLoading$.value\" type=\"submit\" qms-btn-icon color=\"light\"\r\n matSuffix>\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <mat-progress-spinner [@inOutAnimation] *ngIf=\"getLoading$.value\" matSuffix mode=\"indeterminate\"\r\n diameter=\"20\"></mat-progress-spinner>\r\n <div [@inOutAnimation] *ngIf=\"!!userGroupForm.value && !getLoading$.value\" matSuffix qms-input-clear>\r\n <button (click)=\"userGroupForm.setValue('')\" qms-btn-icon color=\"light\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </mat-form-field>\r\n </mat-dialog-content>\r\n <mat-dialog-content class=\"items-list\">\r\n <div qms-scrollbar>\r\n <div class=\"item\">\r\n <mat-checkbox [@inOutAnimation]\r\n *ngIf=\"!getLoading$.value && (userGroupFiltered.length && !dialogData.modeSelectOneUserGroup)\"\r\n #checkUserGroup class=\"w-100 checkbox-all mb-1\" color=\"default\"\r\n [checked]=\"isCheckAll(OPTION_ENUM.USER_GROUP)\"\r\n [indeterminate]=\"isIndeterminate(OPTION_ENUM.USER_GROUP)\"\r\n (click)=\"userGroupFiltered.length && onCheckAll(OPTION_ENUM.USER_GROUP,checkUserGroup)\"\r\n qms-group-options>\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}}</span>\r\n <span>(<b>{{userGroupFiltered.length}}</b>)</span>\r\n </mat-checkbox>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <ng-container *ngIf=\"getLoading$.value;then loading\">\r\n </ng-container>\r\n <div *ngIf=\"userGroupFiltered.length && !getLoading$.value\" [@listAnimation]\r\n class=\"item-list-wrapper\">\r\n <div [@inOutAnimation] class=\"item mt-1\" *ngFor=\"let userGroup of userGroupFiltered\">\r\n <ng-container\r\n [ngTemplateOutlet]=\"dialogData.modeSelectOneUserGroup ? itemWithoutCheckboxTemplate : itemCheckboxTemplate\"\r\n [ngTemplateOutletContext]=\"{item: userGroup,type: OPTION_ENUM.USER_GROUP}\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div [@inOutAnimation] *ngIf=\"!userGroupFiltered.length && !getLoading$.value\"\r\n class=\"item-list-wrapper no-result\">\r\n <ng-container *ngTemplateOutlet=\"noResult\"></ng-container>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <qms-paginator #pagingUserGroup class=\"my-1\" *ngIf=\"getUserGroup$.value.length > 10 \"\r\n [length]=\"getUserGroup$.value.length\" [numHidden]=\"0\" [pageSize]=\"getUserGroup$.value.pageSize\"\r\n [pageSizeOptions]=\"PAGE_SIZE_OPTION\" (page)='onPaginatorEvent($event, OPTION_ENUM.USER_GROUP)'\r\n [size]='PAGINATION_SIZE.medium'>\r\n </qms-paginator>\r\n </div>\r\n </mat-dialog-content>\r\n </form>\r\n </ng-container>\r\n\r\n <!-- Department Access -->\r\n <ng-container\r\n *ngIf=\"optionSelect.value === OPTION_ENUM.DEPARTMENT && getLoading$.value; then loading\"></ng-container>\r\n <ng-container *ngIf=\"optionSelect.value === OPTION_ENUM.DEPARTMENT && !getLoading$.value\"\r\n class=\"person-access\">\r\n <qms-select-department-tree #tree [height]=\"'60vh'\" [treeData]=\"this.dialogData.data.accessDepartments\"\r\n [customClass]=\"'access-department'\" [rowsSkeleton]=\"9\"\r\n [selectIncludeLabel]=\"dialogData.treeDepartmentConfig.selectIncludeChildLabel\"\r\n [enableIncludeChild]=\"dialogData.treeDepartmentConfig.enableIncludeChild\"\r\n [enableTreeSearch]=\"dialogData.treeDepartmentConfig.enableTreeSearch\" [enablePagingSearch]=\"true\"\r\n [isSelectOne]=\"dialogData.modeSelectOneDepartment\" [selectedList]=\"selectedDepartments\"\r\n (onSearchEvent)=\"onSearchDepartmentEvent.emit($event)\"\r\n (onValueChangeEvent)=\"onResultDepartmentChange($event)\"\r\n (selectionNodeChangeEvent)=\"onSelectionNodeDepartmentChange($event)\"\r\n (onPagingSearchEvent)=\"onPaginatorEvent($event, OPTION_ENUM.DEPARTMENT)\">\r\n </qms-select-department-tree>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"optionSelect.value !== null\" class=\"result-wrapper\">\r\n <div class=\"result-selected-container\">\r\n <div [@inOutAnimation] *ngIf=\"(options.length === 1) || (options.length > 1 && optionSelect.value !== null)\"\r\n class=\"header-title result-header\">\r\n <span>\r\n {{\r\n dialogData.titleResult || LANG.RESULTS}}\r\n <span *ngIf=\"options.length === 1 && hasItemSelected()\">\r\n ({{getResultTabActive().length}})\r\n </span>\r\n </span>\r\n </div>\r\n <div class=\"result-body\">\r\n <!-- Result Person -->\r\n <ng-container *ngIf=\"checkExistOptionSelect(OPTION_ENUM.PERSON)\"\r\n [ngTemplateOutlet]=\"options?.length == 1 ? listChip : viewResultCollapse\"\r\n [ngTemplateOutletContext]=\"{data:resultAccess.persons, type:OPTION_ENUM.PERSON, title:LANG.PERSON}\">\r\n </ng-container>\r\n <!-- Result User group -->\r\n <ng-container *ngIf=\"checkExistOptionSelect(OPTION_ENUM.USER_GROUP)\"\r\n [ngTemplateOutlet]=\"options?.length == 1 ? listChip : viewResultCollapse\"\r\n [ngTemplateOutletContext]=\"{data:resultAccess.userGroups, type:OPTION_ENUM.USER_GROUP, title:LANG.USER_GROUP}\">\r\n </ng-container>\r\n <!-- Result Department -->\r\n <ng-container *ngIf=\"checkExistOptionSelect(OPTION_ENUM.DEPARTMENT)\"\r\n [ngTemplateOutlet]=\"options?.length == 1 ? listChip : viewResultCollapse\"\r\n [ngTemplateOutletContext]=\"{data: resultAccess.departments, type:OPTION_ENUM.DEPARTMENT, title:LANG.DEPARTMENT}\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <div qms-dialog-footer class=\"confirm__button__groups\" [class.none-option]=\"optionSelect.value === null\">\r\n <button *ngIf=\"optionSelect.value !== null\" [disabled]=\"!hasItemSelected()\" class=\"btn-add\"\r\n [class.qms-btn-disabled]=\"!hasItemSelected()\" [mat-dialog-close]=\"resultAccess\" qms-btn>\r\n <span>{{LANG.ADD}}</span>\r\n </button>\r\n <button qms-btn-text mat-dialog-close>\r\n {{LANG.CANCEL}}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- Template -->\r\n<ng-template #noResult>\r\n <svg width=\"89\" height=\"130\" viewBox=\"0 0 89 88\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"white\" />\r\n <rect x=\"0.5\" width=\"88\" height=\"88\" rx=\"44\" fill=\"#0163B2\" fill-opacity=\"0.12\" />\r\n <path\r\n d=\"M44.5 56.6936L58.096 64.8996L54.488 49.4336L66.5 39.0276L50.682 37.6856L44.5 23.0996L38.318 37.6856L22.5 39.0276L34.512 49.4336L30.904 64.8996L44.5 56.6936Z\"\r\n fill=\"#0163B3\" />\r\n <text x=\"10\" y=\"105\" fill=\"#0163B2\">{{LANG.NO_RESULT}}</text>\r\n </svg>\r\n</ng-template>\r\n\r\n<!-- Template list chip -->\r\n<ng-template #listChip let-data=\"data\" let-type=\"type\">\r\n <mat-chip-list [@inOutAnimation] *ngIf=\"data?.length\" lass=\"panel__item qms-scrollbar\">\r\n <div [@inOutAnimation_2] *ngFor=\"let item of data; let i = index\">\r\n <mat-chip (click)=\"onScollToNodeTreeDepartment(item)\" [@updateItemAnimation]\r\n *qmsContentChanges=\"item.children?.length\" class=\"chip-item-result\" [qms-tool-tip]=\"generateTootip(item)\"\r\n position=\"top\" mode=\"dark\" qms-chip [removable]=\"true\">\r\n <span qms-chip-body>\r\n <span qms-elipsify mode=\"dark\" position=\"top\" class=\"text-label\">\r\n {{item.name}}\r\n <span *ngIf=\"item.subName\">({{ item.subName }})</span>\r\n </span>\r\n <span class=\"chip-item-children__count ms-1\" *ngIf=\"item?.children && item?.isGroup\">\r\n {{item.children.length}}/{{item.childCount}}\r\n </span>\r\n </span>\r\n <mat-icon (click)=\"onRemoveChip(type,item, i)\" class=\"remove-chip-icon\">cancel</mat-icon>\r\n </mat-chip>\r\n </div>\r\n </mat-chip-list>\r\n</ng-template>\r\n\r\n<!-- Template result with collapse -->\r\n<ng-template #viewResultCollapse let-title=\"title\" let-data=\"data\" let-type=\"type\">\r\n <mat-expansion-panel qms-expansion [expanded]=\"optionSelect.value === type\">\r\n <mat-expansion-panel-header>\r\n <div class=\"title-content\">\r\n <div class=\"qms-list-text\">\r\n <div qms-line color=\"default-subtitle\">{{title}}\r\n <span class=\"fw-600\">\r\n ({{data?.length}})\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <ng-container [ngTemplateOutlet]=\"listChip\" [ngTemplateOutletContext]=\"{data: data,type: type}\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n</ng-template>\r\n\r\n<!-- Template row without checkbox -->\r\n<ng-template #itemWithoutCheckboxTemplate let-item=\"item\" let-type=\"type\">\r\n <div (click)=\"onSelectItem(type,item)\" class=\"item-without-checkbox w-100\" [class.active]=\"item.selected\">\r\n <div class=\"item-content\">\r\n <div class=\"text-label\">\r\n <span class=\"text-label label-item fs-14 \">\r\n {{ item.name }}\r\n </span>\r\n <span *ngIf=\"item.subName\" class=\"ms-1 sub-label\">({{item.subName}})</span>\r\n </div>\r\n <small *ngIf=\"item.helpText\" class=\"text-help px-1 fs-12 sub-label\">{{ item.helpText }}</small>\r\n </div>\r\n <div class=\"item-state\">\r\n <mat-icon [@inOutAnimation] *ngIf=\"item.selected\">check</mat-icon>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Template checkbox -->\r\n<ng-template #itemCheckboxTemplate let-item=\"item\" let-type=\"type\">\r\n <mat-checkbox [checked]=\"item.selected\" (click)=\"onSelectItem(type,item)\" class=\"w-100\" color=\"default\"\r\n qms-group-options>\r\n <div class=\"text-label\">\r\n <span class=\"text-label label-item fs-14 \">\r\n {{ item.name }}\r\n </span>\r\n <span *ngIf=\"item.subName\" class=\"ms-1 sub-label\">({{item.subName}})</span>\r\n </div>\r\n <small *ngIf=\"item.helpText\" class=\"text-help px-1 fs-12 sub-label\">{{ item.helpText }}</small>\r\n </mat-checkbox>\r\n</ng-template>\r\n\r\n<!-- Template loading -->\r\n<ng-template #loading>\r\n <div class=\"loading-container\">\r\n <div class=\"loader\" *ngFor=\"let item of arrSkeleton\">\r\n <div class=\"loader__wrapper\">\r\n <div class=\"row-loader\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
31705
31982
|
animations: [SelectAccessAnimationTrigger],
|
31706
31983
|
providers: [
|
31707
31984
|
{
|
@@ -31710,7 +31987,7 @@
|
|
31710
31987
|
}
|
31711
31988
|
],
|
31712
31989
|
encapsulation: i0.ViewEncapsulation.None,
|
31713
|
-
styles: ["@charset \"UTF-8\";@font-face{font-family:icomoon;src:url(../assets/fonts/icomoon.eot?aghldx);src:url(../assets/fonts/icomoon.eot?aghldx#iefix) format(\"embedded-opentype\"),url(../assets/fonts/icomoon.ttf?aghldx) format(\"truetype\"),url(../assets/fonts/icomoon.woff?aghldx) format(\"woff\"),url(../assets/fonts/icomoon.svg?aghldx#icomoon) format(\"svg\");font-weight:400;font-style:normal;font-display:block}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-acutely-toxic .path1:before{content:\"\uE91B\";color:#e32730}.icon-acutely-toxic .path2:before{content:\"\uE922\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path3:before{content:\"\uE923\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path4:before{content:\"\uE924\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path5:before{content:\"\uE925\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path6:before{content:\"\uE926\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path7:before{content:\"\uE927\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path8:before{content:\"\uE928\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path9:before{content:\"\uE929\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path10:before{content:\"\uE92A\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path11:before{content:\"\uE92B\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path12:before{content:\"\uE92C\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path13:before{content:\"\uE92D\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path14:before{content:\"\uE92E\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path15:before{content:\"\uE92F\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path16:before{content:\"\uE930\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path17:before{content:\"\uE931\";margin-left:-1em;color:#323232}.icon-add-column:before{content:\"\uE932\"}.icon-add-tooltip:before{content:\"\uE933\"}.icon-admin:before{content:\"\uE934\"}.icon-annual-cycle:before{content:\"\uE935\"}.icon-assignment-repete:before{content:\"\uE936\"}.icon-barrier-add:before{content:\"\uE937\"}.icon-barrier-edit:before{content:\"\uE938\"}.icon-barrier-view:before{content:\"\uE939\"}.icon-button-group:before{content:\"\uE93A\"}.icon-chemical-manager:before{content:\"\uE93B\"}.icon-chronic-health-hazard .path1:before{content:\"\uE93C\";color:#e32730}.icon-chronic-health-hazard .path2:before{content:\"\uE93D\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path3:before{content:\"\uE93E\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path4:before{content:\"\uE93F\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path5:before{content:\"\uE940\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path6:before{content:\"\uE941\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path7:before{content:\"\uE942\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path8:before{content:\"\uE943\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path9:before{content:\"\uE944\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path10:before{content:\"\uE945\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path11:before{content:\"\uE946\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path12:before{content:\"\uE947\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path13:before{content:\"\uE948\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path14:before{content:\"\uE949\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path15:before{content:\"\uE94A\";margin-left:-1em;color:#323232}.icon-contingency:before{content:\"\uE94B\"}.icon-corrosive .path1:before{content:\"\uE94C\";color:#323232}.icon-corrosive .path2:before{content:\"\uE94D\";margin-left:-1em;color:#323232}.icon-corrosive .path3:before{content:\"\uE94E\";margin-left:-1em;color:#323232}.icon-corrosive .path4:before{content:\"\uE94F\";margin-left:-1em;color:#323232}.icon-corrosive .path5:before{content:\"\uE950\";margin-left:-1em;color:#323232}.icon-corrosive .path6:before{content:\"\uE951\";margin-left:-1em;color:#323232}.icon-corrosive .path7:before{content:\"\uE952\";margin-left:-1em;color:#323232}.icon-corrosive .path8:before{content:\"\uE953\";margin-left:-1em;color:#323232}.icon-corrosive .path9:before{content:\"\uE954\";margin-left:-1em;color:#323232}.icon-corrosive .path10:before{content:\"\uE955\";margin-left:-1em;color:#323232}.icon-corrosive .path11:before{content:\"\uE956\";margin-left:-1em;color:#323232}.icon-corrosive .path12:before{content:\"\uE957\";margin-left:-1em;color:#323232}.icon-corrosive .path13:before{content:\"\uE958\";margin-left:-1em;color:#323232}.icon-corrosive .path14:before{content:\"\uE959\";margin-left:-1em;color:#323232}.icon-corrosive .path15:before{content:\"\uE95A\";margin-left:-1em;color:#323232}.icon-corrosive .path16:before{content:\"\uE95B\";margin-left:-1em;color:#323232}.icon-corrosive .path17:before{content:\"\uE95C\";margin-left:-1em;color:#323232}.icon-corrosive .path18:before{content:\"\uE95D\";margin-left:-1em;color:#323232}.icon-corrosive .path19:before{content:\"\uE95E\";margin-left:-1em;color:#323232}.icon-corrosive .path20:before{content:\"\uE95F\";margin-left:-1em;color:#323232}.icon-corrosive .path21:before{content:\"\uE960\";margin-left:-1em;color:#e32730}.icon-dashboard:before{content:\"\uE961\"}.icon-database-sds:before{content:\"\uE962\"}.icon-description-add:before{content:\"\uE963\"}.icon-description-edit:before{content:\"\uE964\"}.icon-description-view:before{content:\"\uE965\";color:#666}.icon-document-read .path1:before{content:\"\uE966\";color:#000;opacity:.6}.icon-document-read .path2:before{content:\"\uE967\";margin-left:-1em;color:#fff}.icon-document-read .path3:before{content:\"\uE968\";margin-left:-1em;color:#000;opacity:.6}.icon-draft:before{content:\"\uE969\"}.icon-expired-off:before{content:\"\uE96A\"}.icon-expired-on:before{content:\"\uE96B\"}.icon-explosive .path1:before{content:\"\uE96C\";color:#e32730}.icon-explosive .path2:before{content:\"\uE96D\";margin-left:-1em;color:#323232}.icon-explosive .path3:before{content:\"\uE96E\";margin-left:-1em;color:#323232}.icon-explosive .path4:before{content:\"\uE96F\";margin-left:-1em;color:#323232}.icon-explosive .path5:before{content:\"\uE970\";margin-left:-1em;color:#323232}.icon-explosive .path6:before{content:\"\uE971\";margin-left:-1em;color:#323232}.icon-explosive .path7:before{content:\"\uE972\";margin-left:-1em;color:#323232}.icon-explosive .path8:before{content:\"\uE973\";margin-left:-1em;color:#323232}.icon-explosive .path9:before{content:\"\uE974\";margin-left:-1em;color:#323232}.icon-explosive .path10:before{content:\"\uE975\";margin-left:-1em;color:#323232}.icon-explosive .path11:before{content:\"\uE976\";margin-left:-1em;color:#323232}.icon-explosive .path12:before{content:\"\uE977\";margin-left:-1em;color:#323232}.icon-explosive .path13:before{content:\"\uE978\";margin-left:-1em;color:#323232}.icon-explosive .path14:before{content:\"\uE979\";margin-left:-1em;color:#323232}.icon-explosive .path15:before{content:\"\uE97A\";margin-left:-1em;color:#323232}.icon-explosive .path16:before{content:\"\uE97B\";margin-left:-1em;color:#323232}.icon-explosive .path17:before{content:\"\uE97C\";margin-left:-1em;color:#323232}.icon-explosive .path18:before{content:\"\uE97D\";margin-left:-1em;color:#323232}.icon-explosive .path19:before{content:\"\uE97E\";margin-left:-1em;color:#323232}.icon-explosive .path20:before{content:\"\uE97F\";margin-left:-1em;color:#323232}.icon-explosive .path21:before{content:\"\uE980\";margin-left:-1em;color:#323232}.icon-explosive .path22:before{content:\"\uE981\";margin-left:-1em;color:#323232}.icon-explosive .path23:before{content:\"\uE982\";margin-left:-1em;color:#323232}.icon-explosive .path24:before{content:\"\uE983\";margin-left:-1em;color:#323232}.icon-explosive .path25:before{content:\"\uE984\";margin-left:-1em;color:#323232}.icon-explosive .path26:before{content:\"\uE985\";margin-left:-1em;color:#323232}.icon-explosive .path27:before{content:\"\uE986\";margin-left:-1em;color:#323232}.icon-explosive .path28:before{content:\"\uE987\";margin-left:-1em;color:#323232}.icon-explosive .path29:before{content:\"\uE988\";margin-left:-1em;color:#323232}.icon-explosive .path30:before{content:\"\uE989\";margin-left:-1em;color:#323232}.icon-explosive .path31:before{content:\"\uE98A\";margin-left:-1em;color:#323232}.icon-explosive .path32:before{content:\"\uE98B\";margin-left:-1em;color:#323232}.icon-explosive .path33:before{content:\"\uE98C\";margin-left:-1em;color:#323232}.icon-explosive .path34:before{content:\"\uE98D\";margin-left:-1em;color:#323232}.icon-explosive .path35:before{content:\"\uE98E\";margin-left:-1em;color:#323232}.icon-explosive .path36:before{content:\"\uE98F\";margin-left:-1em;color:#323232}.icon-explosive .path37:before{content:\"\uE990\";margin-left:-1em;color:#323232}.icon-explosive .path38:before{content:\"\uE991\";margin-left:-1em;color:#323232}.icon-explosive .path39:before{content:\"\uE992\";margin-left:-1em;color:#323232}.icon-explosive .path40:before{content:\"\uE993\";margin-left:-1em;color:#323232}.icon-explosive .path41:before{content:\"\uE994\";margin-left:-1em;color:#323232}.icon-explosive .path42:before{content:\"\uE995\";margin-left:-1em;color:#323232}.icon-explosive .path43:before{content:\"\uE996\";margin-left:-1em;color:#323232}.icon-explosive .path44:before{content:\"\uE997\";margin-left:-1em;color:#323232}.icon-explosive .path45:before{content:\"\uE998\";margin-left:-1em;color:#323232}.icon-explosive .path46:before{content:\"\uE999\";margin-left:-1em;color:#323232}.icon-file-excel:before{content:\"\uE99A\"}.icon-file-pdf:before{content:\"\uE99B\"}.icon-file-pdf-verified .path1:before{content:\"\uE99C\";color:#000;opacity:.6}.icon-file-pdf-verified .path2:before{content:\"\uE99D\";margin-left:-1em;color:#fff}.icon-file-pdf-verified .path3:before{content:\"\uE99E\";margin-left:-1em;color:#000;opacity:.6}.icon-file-word:before{content:\"\uE99F\"}.icon-filter-alt:before{content:\"\uE9A0\"}.icon-flammable .path1:before{content:\"\uE9A1\";color:#323232}.icon-flammable .path2:before{content:\"\uE9A2\";margin-left:-1em;color:#323232}.icon-flammable .path3:before{content:\"\uE9A3\";margin-left:-1em;color:#e32730}.icon-gas-under-pressure .path1:before{content:\"\uE9A4\";color:#323232}.icon-gas-under-pressure .path2:before{content:\"\uE9A5\";margin-left:-1em;color:#e32730}.icon-health-hazard .path1:before{content:\"\uE9A6\";color:#323232}.icon-health-hazard .path2:before{content:\"\uE9A7\";margin-left:-1em;color:#e32730}.icon-line-break:before{content:\"\uE9A8\"}.icon-location:before{content:\"\uE9A9\"}.icon-measure-add:before{content:\"\uE9AA\"}.icon-measure-edit:before{content:\"\uE9AB\"}.icon-measure-view:before{content:\"\uE9AC\";color:#666}.icon-messages:before{content:\"\uE9AD\"}.icon-monitoring:before{content:\"\uE9AE\";color:#666}.icon-move:before{content:\"\uE9AF\"}.icon-oxidizing .path1:before{content:\"\uE9B0\";color:#e32730}.icon-oxidizing .path2:before{content:\"\uE9B1\";margin-left:-1em;color:#323232}.icon-oxidizing .path3:before{content:\"\uE9B2\";margin-left:-1em;color:#323232}.icon-oxidizing .path4:before{content:\"\uE9B3\";margin-left:-1em;color:#323232}.icon-process-area-closed:before{content:\"\uE9B4\"}.icon-process-area-open:before{content:\"\uE9B5\"}.icon-process-linked .path1:before{content:\"\uE9B6\";color:#000;opacity:.6}.icon-process-linked .path2:before{content:\"\uE9B7\";margin-left:-1em;color:#666}.icon-risk:before{content:\"\uE9B8\"}.icon-search-in-file:before{content:\"\uE9B9\"}.icon-sort-ascending:before{content:\"\uE9BA\"}.icon-sort-descending:before{content:\"\uE9BB\"}.icon-subscript:before{content:\"\uE9BC\"}.icon-superscript:before{content:\"\uE9BD\"}.icon-syncronice-favorites:before{content:\"\uE9BE\"}.icon-system-settings:before{content:\"\uE9BF\"}.icon-view-three-outlined:before{content:\"\uE9C0\"}.icon-workplace-safety:before{content:\"\uE9C1\"}.icon-checklist:before{content:\"\uE900\"}.icon-department-document .path1:before{content:\"\uE901\";color:#000;opacity:.6}.icon-department-document .path2:before{content:\"\uE902\";margin-left:-1em;color:#00804c}.icon-department-folder-closed .path1:before{content:\"\uE903\";color:#000;opacity:.6}.icon-department-folder-closed .path2:before{content:\"\uE904\";margin-left:-1em;color:#00804c}.icon-department-folder-open .path1:before{content:\"\uE905\";color:#000;opacity:.6}.icon-department-folder-open .path2:before{content:\"\uE906\";margin-left:-1em;color:#00804c}.icon-deviation:before{content:\"\uE907\"}.icon-dropdown-folder .path1:before{content:\"\uE908\";color:#00324e}.icon-dropdown-folder .path2:before{content:\"\uE909\";margin-left:-1em;color:#fff;opacity:.6}.icon-enterprise-document .path1:before{content:\"\uE90A\";color:#000;opacity:.6}.icon-enterprise-document .path2:before{content:\"\uE90B\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-closed .path1:before{content:\"\uE90C\";color:#000;opacity:.6}.icon-enterprise-folder-closed .path2:before{content:\"\uE90D\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-open .path1:before{content:\"\uE90E\";color:#000;opacity:.6}.icon-enterprise-folder-open .path2:before{content:\"\uE90F\";margin-left:-1em;color:#cf4714}.icon-folder-closed:before{content:\"\uE910\"}.icon-folder-open:before{content:\"\uE911\"}.icon-keyboard_arrow_down:before{content:\"\uE912\"}.icon-keyboard_arrow_up:before{content:\"\uE913\"}.icon-local-document .path1:before{content:\"\uE914\";color:#000;opacity:.6}.icon-local-document .path2:before{content:\"\uE915\";margin-left:-1em;color:#1954a9}.icon-local-folder-closed .path1:before{content:\"\uE916\";color:#000;opacity:.6}.icon-local-folder-closed .path2:before{content:\"\uE917\";margin-left:-1em;color:#1954a9}.icon-local-folder-open .path1:before{content:\"\uE918\";color:#000;opacity:.6}.icon-local-folder-open .path2:before{content:\"\uE919\";margin-left:-1em;color:#1954a9}.icon-process:before{content:\"\uE91A\"}.icon-regional-document .path1:before{content:\"\uE91C\";color:#000;opacity:.6}.icon-regional-document .path2:before{content:\"\uE91D\";margin-left:-1em;color:#662e0d}.icon-regional-folder-closed .path1:before{content:\"\uE91E\";color:#000;opacity:.6}.icon-regional-folder-closed .path2:before{content:\"\uE91F\";margin-left:-1em;color:#662e0d}.icon-regional-folder-open .path1:before{content:\"\uE920\";color:#000;opacity:.6}.icon-regional-folder-open .path2:before{content:\"\uE921\";margin-left:-1em;color:#662e0d}.select-access-dialog-container{font-family:Open Sans}.select-access-dialog-container .mat-expansion-panel .mat-expansion-panel-body{padding-top:0!important}.select-access-dialog-container .mat-expansion-panel-header{font-size:12px!important;font-weight:800!important}.select-access-dialog-container .w-100{width:100%}.select-access-dialog-container .h-100{height:100%}.select-access-dialog-container .pointer{cursor:pointer}.select-access-dialog-container .fw-600{font-weight:600}.select-access-dialog-container .label-item{font-weight:600;color:var(--ws-text-primary)}.select-access-dialog-container .sub-label{color:var(--ws-text-secondary)}.select-access-dialog-container .fs-14{font-size:14px}.select-access-dialog-container .fs-12{font-size:12px}.select-access-dialog-container .color-primary{color:var(--primary-light)!important}.select-access-dialog-container .header-title{font-weight:600;color:var(--ws-text-primary);font-size:16px}.select-access-dialog-container .chip-item-result{max-width:250px}.select-access-dialog-container .chip-item-result.item-department .qms-chip-body{display:flex;justify-content:center;align-items:center}.select-access-dialog-container .remove-chip-icon{color:rgba(0,0,0,.3);cursor:pointer}.select-access-dialog-container .remove-chip-icon:hover{color:rgba(0,0,0,.7)}.select-access-dialog-container .mat-form-field-wrapper{padding-bottom:5px!important}.select-access-dialog-container .mat-expansion-panel{border-radius:unset!important}.select-access-dialog-container .mat-expansion-panel-header:not([aria-disabled=true]){background:unset}.select-access-dialog-container .mat-expansion-panel.mat-expanded .mat-expansion-panel-header{background:#e5eefb}.select-access-dialog-container .mat-expansion-panel.mat-expanded .mat-expansion-panel-header .qms-line{color:var(--primary-light)!important}.select-access-dialog-container .access-dialog-header{display:flex;justify-content:space-between;align-items:center}.select-access-dialog-container .access-dialog-wraper{width:100%}.select-access-dialog-container .access-dialog-wraper .field-select-option .mat-form-field-wrapper{padding-bottom:16px!important}.select-access-dialog-container .access-dialog-wraper .field-select-option .mat-form-field-underline{bottom:16px!important}.select-access-dialog-container .mat-chip-list-wrapper{margin:unset!important}.select-access-dialog-container .result-selected-container{max-height:175px;overflow-y:auto;padding-right:4px}.select-access-dialog-container .item-list-wrapper{max-height:28vh;padding:4px 4px 4px 0;overflow-y:auto}.select-access-dialog-container .item-list-wrapper.no-result{height:28vh;display:flex;justify-content:center;align-items:center}.select-access-dialog-container .item-list-wrapper .item{min-height:40px}.select-access-dialog-container .item-list-wrapper .item-without-checkbox{min-height:45px;display:flex;justify-content:space-between;align-items:center;padding:4px 8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:4px;transition:background .3s ease}.select-access-dialog-container .item-list-wrapper .item-without-checkbox.active{background:var(--primary-light-12-opacity)}.select-access-dialog-container .item-list-wrapper .item-without-checkbox:hover{background:var(--primary-light-6-opacity)}.select-access-dialog-container .item-list-wrapper .item-without-checkbox .mat-icon{color:var(--primary-light)!important}.select-access-dialog-container .confirm__button__groups .btn-add>.qms-btn-wrapper{display:flex;justify-content:center;align-items:center}.select-access-dialog-container .option-selected-content .group-filter-person-option{display:flex;flex-direction:row-reverse;justify-content:center;align-items:center;grid-gap:8px;gap:8px}.select-access-dialog-container span.chip-item__content_name{display:inline-block;max-width:175px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.select-access-dialog-container span.chip-item-children__count{font-size:.75rem;color:rgba(0,0,0,.5);font-weight:600}.select-access-dialog-container .mat-slide-toggle.qms-group-options{padding:unset!important}.select-access-dialog-container .input-option-filter .mat-form-field-wrapper{padding-bottom:8px!important}.select-access-dialog-container .input-option-filter .mat-form-field-underline{bottom:8px!important}.select-access-dialog-container .slide-toggle{margin-bottom:8px}.select-access-dialog-container .confirm__button__groups.none-option{margin-top:85px}.select-access-dialog-container .btn-icon-clear{position:relative;padding:0 1rem}.select-access-dialog-container .btn-icon-clear .qms-btn-icon{margin-right:unset!important}.select-access-dialog-container .btn-icon-clear:after{position:absolute;content:\"\";left:0;top:0;height:100%;width:1px;background:rgba(0,0,0,.3)}.select-access-dialog-container .qms-paginator .mat-icon{display:flex;align-items:center;justify-content:center}.select-access-dialog-container .qms-paginator .mat-form-field-wrapper{padding-bottom:0}.select-access-dialog-container .qms-paginator .mat-paginator-container{min-height:40px}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-total-result{margin-bottom:2px;margin-right:12px;height:30px}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-total-result span{font-weight:600;font-size:13px;color:rgba(0,0,0,.8)}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-paginator-range-actions{margin-bottom:0;grid-column-gap:2px;-moz-column-gap:2px;column-gap:2px}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-paginator-range-actions>.qms-total-result{margin-bottom:0}.select-access-dialog-container .qms-paginator>.qms-btn-icon-wrapper{width:30px;height:30px;display:flex;justify-content:center;align-items:center}.select-access-dialog-container .qms-paginator .qms-paginator-page-size{margin-right:12px}.select-access-dialog-container .qms-paginator .qms-paginator-page-size>.qms-pagesize-label{display:none}.select-access-dialog-container .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex{width:60px!important;height:30px;display:flex;align-items:center;padding:0 4px}.select-access-dialog-container .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex .mat-form-field-infix{height:30px}.select-access-dialog-container .qms-paginator .mat-form-field.qms-form .mat-select-min-line,.select-access-dialog-container .qms-paginator .mat-form-field.qms-form mat-select-trigger{font-size:14px}.select-access-dialog-container .qms-paginator .mat-select-value{text-align:center}.select-access-dialog-container .mat-checkbox.checkbox-all .mat-checkbox-label{flex-direction:row!important;align-items:center!important;grid-column-gap:4px!important;-moz-column-gap:4px!important;column-gap:4px!important}.select-access-dialog-container .mat-expansion-panel.qms-expansion{margin:0!important}.select-access-dialog-container .qms-btn-icon{width:30px!important;height:30px!important;line-height:30px!important}.select-access-dialog-container .loading-container{height:25vh;display:grid;grid-template-rows:repeat(auto-fill,minmax(60px,60px))}.select-access-dialog-container .loading-container .loader{position:relative;width:100%;height:100%;padding:10px 0;overflow:hidden}.select-access-dialog-container .loading-container .loader:after{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:linear-gradient(110deg,hsla(0,0%,91%,0),hsla(0,0%,89%,0) 40%,hsla(0,0%,89%,.5) 50%,hsla(0,0%,89%,0) 60%,hsla(0,0%,89%,0));-webkit-animation:animate-loading 1.2s linear infinite;animation:animate-loading 1.2s linear infinite}.select-access-dialog-container .loading-container .loader__wrapper{position:relative;width:100%;height:100%}.select-access-dialog-container .loading-container .loader__wrapper .row-loader{background-color:#eee;position:absolute;left:0;width:100%;height:40px;overflow:hidden}@-webkit-keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"]
|
31990
|
+
styles: ["@charset \"UTF-8\";@font-face{font-family:icomoon;src:url(../assets/fonts/icomoon.eot?aghldx);src:url(../assets/fonts/icomoon.eot?aghldx#iefix) format(\"embedded-opentype\"),url(../assets/fonts/icomoon.ttf?aghldx) format(\"truetype\"),url(../assets/fonts/icomoon.woff?aghldx) format(\"woff\"),url(../assets/fonts/icomoon.svg?aghldx#icomoon) format(\"svg\");font-weight:400;font-style:normal;font-display:block}[class*=\" icon-\"],[class^=icon-]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-acutely-toxic .path1:before{content:\"\uE91B\";color:#e32730}.icon-acutely-toxic .path2:before{content:\"\uE922\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path3:before{content:\"\uE923\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path4:before{content:\"\uE924\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path5:before{content:\"\uE925\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path6:before{content:\"\uE926\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path7:before{content:\"\uE927\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path8:before{content:\"\uE928\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path9:before{content:\"\uE929\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path10:before{content:\"\uE92A\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path11:before{content:\"\uE92B\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path12:before{content:\"\uE92C\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path13:before{content:\"\uE92D\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path14:before{content:\"\uE92E\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path15:before{content:\"\uE92F\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path16:before{content:\"\uE930\";margin-left:-1em;color:#323232}.icon-acutely-toxic .path17:before{content:\"\uE931\";margin-left:-1em;color:#323232}.icon-add-column:before{content:\"\uE932\"}.icon-add-tooltip:before{content:\"\uE933\"}.icon-admin:before{content:\"\uE934\"}.icon-annual-cycle:before{content:\"\uE935\"}.icon-assignment-repete:before{content:\"\uE936\"}.icon-barrier-add:before{content:\"\uE937\"}.icon-barrier-edit:before{content:\"\uE938\"}.icon-barrier-view:before{content:\"\uE939\"}.icon-button-group:before{content:\"\uE93A\"}.icon-chemical-manager:before{content:\"\uE93B\"}.icon-chronic-health-hazard .path1:before{content:\"\uE93C\";color:#e32730}.icon-chronic-health-hazard .path2:before{content:\"\uE93D\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path3:before{content:\"\uE93E\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path4:before{content:\"\uE93F\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path5:before{content:\"\uE940\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path6:before{content:\"\uE941\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path7:before{content:\"\uE942\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path8:before{content:\"\uE943\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path9:before{content:\"\uE944\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path10:before{content:\"\uE945\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path11:before{content:\"\uE946\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path12:before{content:\"\uE947\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path13:before{content:\"\uE948\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path14:before{content:\"\uE949\";margin-left:-1em;color:#323232}.icon-chronic-health-hazard .path15:before{content:\"\uE94A\";margin-left:-1em;color:#323232}.icon-contingency:before{content:\"\uE94B\"}.icon-corrosive .path1:before{content:\"\uE94C\";color:#323232}.icon-corrosive .path2:before{content:\"\uE94D\";margin-left:-1em;color:#323232}.icon-corrosive .path3:before{content:\"\uE94E\";margin-left:-1em;color:#323232}.icon-corrosive .path4:before{content:\"\uE94F\";margin-left:-1em;color:#323232}.icon-corrosive .path5:before{content:\"\uE950\";margin-left:-1em;color:#323232}.icon-corrosive .path6:before{content:\"\uE951\";margin-left:-1em;color:#323232}.icon-corrosive .path7:before{content:\"\uE952\";margin-left:-1em;color:#323232}.icon-corrosive .path8:before{content:\"\uE953\";margin-left:-1em;color:#323232}.icon-corrosive .path9:before{content:\"\uE954\";margin-left:-1em;color:#323232}.icon-corrosive .path10:before{content:\"\uE955\";margin-left:-1em;color:#323232}.icon-corrosive .path11:before{content:\"\uE956\";margin-left:-1em;color:#323232}.icon-corrosive .path12:before{content:\"\uE957\";margin-left:-1em;color:#323232}.icon-corrosive .path13:before{content:\"\uE958\";margin-left:-1em;color:#323232}.icon-corrosive .path14:before{content:\"\uE959\";margin-left:-1em;color:#323232}.icon-corrosive .path15:before{content:\"\uE95A\";margin-left:-1em;color:#323232}.icon-corrosive .path16:before{content:\"\uE95B\";margin-left:-1em;color:#323232}.icon-corrosive .path17:before{content:\"\uE95C\";margin-left:-1em;color:#323232}.icon-corrosive .path18:before{content:\"\uE95D\";margin-left:-1em;color:#323232}.icon-corrosive .path19:before{content:\"\uE95E\";margin-left:-1em;color:#323232}.icon-corrosive .path20:before{content:\"\uE95F\";margin-left:-1em;color:#323232}.icon-corrosive .path21:before{content:\"\uE960\";margin-left:-1em;color:#e32730}.icon-dashboard:before{content:\"\uE961\"}.icon-database-sds:before{content:\"\uE962\"}.icon-description-add:before{content:\"\uE963\"}.icon-description-edit:before{content:\"\uE964\"}.icon-description-view:before{content:\"\uE965\";color:#666}.icon-document-read .path1:before{content:\"\uE966\";color:#000;opacity:.6}.icon-document-read .path2:before{content:\"\uE967\";margin-left:-1em;color:#fff}.icon-document-read .path3:before{content:\"\uE968\";margin-left:-1em;color:#000;opacity:.6}.icon-draft:before{content:\"\uE969\"}.icon-expired-off:before{content:\"\uE96A\"}.icon-expired-on:before{content:\"\uE96B\"}.icon-explosive .path1:before{content:\"\uE96C\";color:#e32730}.icon-explosive .path2:before{content:\"\uE96D\";margin-left:-1em;color:#323232}.icon-explosive .path3:before{content:\"\uE96E\";margin-left:-1em;color:#323232}.icon-explosive .path4:before{content:\"\uE96F\";margin-left:-1em;color:#323232}.icon-explosive .path5:before{content:\"\uE970\";margin-left:-1em;color:#323232}.icon-explosive .path6:before{content:\"\uE971\";margin-left:-1em;color:#323232}.icon-explosive .path7:before{content:\"\uE972\";margin-left:-1em;color:#323232}.icon-explosive .path8:before{content:\"\uE973\";margin-left:-1em;color:#323232}.icon-explosive .path9:before{content:\"\uE974\";margin-left:-1em;color:#323232}.icon-explosive .path10:before{content:\"\uE975\";margin-left:-1em;color:#323232}.icon-explosive .path11:before{content:\"\uE976\";margin-left:-1em;color:#323232}.icon-explosive .path12:before{content:\"\uE977\";margin-left:-1em;color:#323232}.icon-explosive .path13:before{content:\"\uE978\";margin-left:-1em;color:#323232}.icon-explosive .path14:before{content:\"\uE979\";margin-left:-1em;color:#323232}.icon-explosive .path15:before{content:\"\uE97A\";margin-left:-1em;color:#323232}.icon-explosive .path16:before{content:\"\uE97B\";margin-left:-1em;color:#323232}.icon-explosive .path17:before{content:\"\uE97C\";margin-left:-1em;color:#323232}.icon-explosive .path18:before{content:\"\uE97D\";margin-left:-1em;color:#323232}.icon-explosive .path19:before{content:\"\uE97E\";margin-left:-1em;color:#323232}.icon-explosive .path20:before{content:\"\uE97F\";margin-left:-1em;color:#323232}.icon-explosive .path21:before{content:\"\uE980\";margin-left:-1em;color:#323232}.icon-explosive .path22:before{content:\"\uE981\";margin-left:-1em;color:#323232}.icon-explosive .path23:before{content:\"\uE982\";margin-left:-1em;color:#323232}.icon-explosive .path24:before{content:\"\uE983\";margin-left:-1em;color:#323232}.icon-explosive .path25:before{content:\"\uE984\";margin-left:-1em;color:#323232}.icon-explosive .path26:before{content:\"\uE985\";margin-left:-1em;color:#323232}.icon-explosive .path27:before{content:\"\uE986\";margin-left:-1em;color:#323232}.icon-explosive .path28:before{content:\"\uE987\";margin-left:-1em;color:#323232}.icon-explosive .path29:before{content:\"\uE988\";margin-left:-1em;color:#323232}.icon-explosive .path30:before{content:\"\uE989\";margin-left:-1em;color:#323232}.icon-explosive .path31:before{content:\"\uE98A\";margin-left:-1em;color:#323232}.icon-explosive .path32:before{content:\"\uE98B\";margin-left:-1em;color:#323232}.icon-explosive .path33:before{content:\"\uE98C\";margin-left:-1em;color:#323232}.icon-explosive .path34:before{content:\"\uE98D\";margin-left:-1em;color:#323232}.icon-explosive .path35:before{content:\"\uE98E\";margin-left:-1em;color:#323232}.icon-explosive .path36:before{content:\"\uE98F\";margin-left:-1em;color:#323232}.icon-explosive .path37:before{content:\"\uE990\";margin-left:-1em;color:#323232}.icon-explosive .path38:before{content:\"\uE991\";margin-left:-1em;color:#323232}.icon-explosive .path39:before{content:\"\uE992\";margin-left:-1em;color:#323232}.icon-explosive .path40:before{content:\"\uE993\";margin-left:-1em;color:#323232}.icon-explosive .path41:before{content:\"\uE994\";margin-left:-1em;color:#323232}.icon-explosive .path42:before{content:\"\uE995\";margin-left:-1em;color:#323232}.icon-explosive .path43:before{content:\"\uE996\";margin-left:-1em;color:#323232}.icon-explosive .path44:before{content:\"\uE997\";margin-left:-1em;color:#323232}.icon-explosive .path45:before{content:\"\uE998\";margin-left:-1em;color:#323232}.icon-explosive .path46:before{content:\"\uE999\";margin-left:-1em;color:#323232}.icon-file-excel:before{content:\"\uE99A\"}.icon-file-pdf:before{content:\"\uE99B\"}.icon-file-pdf-verified .path1:before{content:\"\uE99C\";color:#000;opacity:.6}.icon-file-pdf-verified .path2:before{content:\"\uE99D\";margin-left:-1em;color:#fff}.icon-file-pdf-verified .path3:before{content:\"\uE99E\";margin-left:-1em;color:#000;opacity:.6}.icon-file-word:before{content:\"\uE99F\"}.icon-filter-alt:before{content:\"\uE9A0\"}.icon-flammable .path1:before{content:\"\uE9A1\";color:#323232}.icon-flammable .path2:before{content:\"\uE9A2\";margin-left:-1em;color:#323232}.icon-flammable .path3:before{content:\"\uE9A3\";margin-left:-1em;color:#e32730}.icon-gas-under-pressure .path1:before{content:\"\uE9A4\";color:#323232}.icon-gas-under-pressure .path2:before{content:\"\uE9A5\";margin-left:-1em;color:#e32730}.icon-health-hazard .path1:before{content:\"\uE9A6\";color:#323232}.icon-health-hazard .path2:before{content:\"\uE9A7\";margin-left:-1em;color:#e32730}.icon-line-break:before{content:\"\uE9A8\"}.icon-location:before{content:\"\uE9A9\"}.icon-measure-add:before{content:\"\uE9AA\"}.icon-measure-edit:before{content:\"\uE9AB\"}.icon-measure-view:before{content:\"\uE9AC\";color:#666}.icon-messages:before{content:\"\uE9AD\"}.icon-monitoring:before{content:\"\uE9AE\";color:#666}.icon-move:before{content:\"\uE9AF\"}.icon-oxidizing .path1:before{content:\"\uE9B0\";color:#e32730}.icon-oxidizing .path2:before{content:\"\uE9B1\";margin-left:-1em;color:#323232}.icon-oxidizing .path3:before{content:\"\uE9B2\";margin-left:-1em;color:#323232}.icon-oxidizing .path4:before{content:\"\uE9B3\";margin-left:-1em;color:#323232}.icon-process-area-closed:before{content:\"\uE9B4\"}.icon-process-area-open:before{content:\"\uE9B5\"}.icon-process-linked .path1:before{content:\"\uE9B6\";color:#000;opacity:.6}.icon-process-linked .path2:before{content:\"\uE9B7\";margin-left:-1em;color:#666}.icon-risk:before{content:\"\uE9B8\"}.icon-search-in-file:before{content:\"\uE9B9\"}.icon-sort-ascending:before{content:\"\uE9BA\"}.icon-sort-descending:before{content:\"\uE9BB\"}.icon-subscript:before{content:\"\uE9BC\"}.icon-superscript:before{content:\"\uE9BD\"}.icon-syncronice-favorites:before{content:\"\uE9BE\"}.icon-system-settings:before{content:\"\uE9BF\"}.icon-view-three-outlined:before{content:\"\uE9C0\"}.icon-workplace-safety:before{content:\"\uE9C1\"}.icon-checklist:before{content:\"\uE900\"}.icon-department-document .path1:before{content:\"\uE901\";color:#000;opacity:.6}.icon-department-document .path2:before{content:\"\uE902\";margin-left:-1em;color:#00804c}.icon-department-folder-closed .path1:before{content:\"\uE903\";color:#000;opacity:.6}.icon-department-folder-closed .path2:before{content:\"\uE904\";margin-left:-1em;color:#00804c}.icon-department-folder-open .path1:before{content:\"\uE905\";color:#000;opacity:.6}.icon-department-folder-open .path2:before{content:\"\uE906\";margin-left:-1em;color:#00804c}.icon-deviation:before{content:\"\uE907\"}.icon-dropdown-folder .path1:before{content:\"\uE908\";color:#00324e}.icon-dropdown-folder .path2:before{content:\"\uE909\";margin-left:-1em;color:#fff;opacity:.6}.icon-enterprise-document .path1:before{content:\"\uE90A\";color:#000;opacity:.6}.icon-enterprise-document .path2:before{content:\"\uE90B\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-closed .path1:before{content:\"\uE90C\";color:#000;opacity:.6}.icon-enterprise-folder-closed .path2:before{content:\"\uE90D\";margin-left:-1em;color:#cf4714}.icon-enterprise-folder-open .path1:before{content:\"\uE90E\";color:#000;opacity:.6}.icon-enterprise-folder-open .path2:before{content:\"\uE90F\";margin-left:-1em;color:#cf4714}.icon-folder-closed:before{content:\"\uE910\"}.icon-folder-open:before{content:\"\uE911\"}.icon-keyboard_arrow_down:before{content:\"\uE912\"}.icon-keyboard_arrow_up:before{content:\"\uE913\"}.icon-local-document .path1:before{content:\"\uE914\";color:#000;opacity:.6}.icon-local-document .path2:before{content:\"\uE915\";margin-left:-1em;color:#1954a9}.icon-local-folder-closed .path1:before{content:\"\uE916\";color:#000;opacity:.6}.icon-local-folder-closed .path2:before{content:\"\uE917\";margin-left:-1em;color:#1954a9}.icon-local-folder-open .path1:before{content:\"\uE918\";color:#000;opacity:.6}.icon-local-folder-open .path2:before{content:\"\uE919\";margin-left:-1em;color:#1954a9}.icon-process:before{content:\"\uE91A\"}.icon-regional-document .path1:before{content:\"\uE91C\";color:#000;opacity:.6}.icon-regional-document .path2:before{content:\"\uE91D\";margin-left:-1em;color:#662e0d}.icon-regional-folder-closed .path1:before{content:\"\uE91E\";color:#000;opacity:.6}.icon-regional-folder-closed .path2:before{content:\"\uE91F\";margin-left:-1em;color:#662e0d}.icon-regional-folder-open .path1:before{content:\"\uE920\";color:#000;opacity:.6}.icon-regional-folder-open .path2:before{content:\"\uE921\";margin-left:-1em;color:#662e0d}.select-access-dialog-container{font-family:Open Sans}.select-access-dialog-container .mat-expansion-panel .mat-expansion-panel-body{padding-top:0!important}.select-access-dialog-container .mat-expansion-panel-header{font-size:12px!important;font-weight:800!important}.select-access-dialog-container .w-100{width:100%}.select-access-dialog-container .h-100{height:100%}.select-access-dialog-container .pointer{cursor:pointer}.select-access-dialog-container .fw-600{font-weight:600}.select-access-dialog-container .label-item{font-weight:600;color:var(--ws-text-primary)}.select-access-dialog-container .sub-label{color:var(--ws-text-secondary)}.select-access-dialog-container .fs-14{font-size:14px}.select-access-dialog-container .fs-12{font-size:12px}.select-access-dialog-container .color-primary{color:var(--primary-light)!important}.select-access-dialog-container .header-title{font-weight:600;color:var(--ws-text-primary);font-size:16px}.select-access-dialog-container .chip-item-result{max-width:250px}.select-access-dialog-container .chip-item-result.item-department .qms-chip-body{display:flex;justify-content:center;align-items:center}.select-access-dialog-container .remove-chip-icon{color:rgba(0,0,0,.3);cursor:pointer}.select-access-dialog-container .remove-chip-icon:hover{color:rgba(0,0,0,.7)}.select-access-dialog-container .mat-form-field-wrapper{padding-bottom:5px!important}.select-access-dialog-container .mat-expansion-panel{border-radius:unset!important}.select-access-dialog-container .mat-expansion-panel-header:not([aria-disabled=true]){background:unset}.select-access-dialog-container .mat-expansion-panel.mat-expanded .mat-expansion-panel-header{background:#e5eefb}.select-access-dialog-container .mat-expansion-panel.mat-expanded .mat-expansion-panel-header .qms-line{color:var(--primary-light)!important}.select-access-dialog-container .access-dialog-header{display:flex;justify-content:space-between;align-items:center}.select-access-dialog-container .mat-chip-list-wrapper{margin:unset!important}.select-access-dialog-container .item-list-wrapper{max-height:45vh;padding:4px 4px 4px 0;overflow-y:auto}.select-access-dialog-container .item-list-wrapper.no-result{height:50vh;display:flex;justify-content:center;align-items:center}.select-access-dialog-container .item-list-wrapper .item{min-height:40px}.select-access-dialog-container .item-list-wrapper .item-without-checkbox{min-height:45px;display:flex;justify-content:space-between;align-items:center;padding:4px 8px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:4px;transition:background .3s ease}.select-access-dialog-container .item-list-wrapper .item-without-checkbox.active{background:var(--primary-light-12-opacity)}.select-access-dialog-container .item-list-wrapper .item-without-checkbox:hover{background:var(--primary-light-6-opacity)}.select-access-dialog-container .item-list-wrapper .item-without-checkbox .mat-icon{color:var(--primary-light)!important}.select-access-dialog-container .confirm__button__groups .btn-add>.qms-btn-wrapper{display:flex;justify-content:center;align-items:center}.select-access-dialog-container .qms-dialog-content{display:grid;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px}.select-access-dialog-container .qms-dialog-content.active{grid-template-columns:2fr 1fr}.select-access-dialog-container .qms-dialog-content .access-dialog-wraper .field-select-option .mat-form-field-wrapper{padding-bottom:16px!important}.select-access-dialog-container .qms-dialog-content .access-dialog-wraper .field-select-option .mat-form-field-underline{bottom:16px!important}.select-access-dialog-container .qms-dialog-content .result-wrapper{position:relative;width:100%;margin-left:8px}.select-access-dialog-container .qms-dialog-content .result-wrapper:after{position:absolute;content:\"\";top:0;left:0;background-color:#0000001f;height:100%;width:1px}.select-access-dialog-container .qms-dialog-content .result-selected-container{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;padding:0 8px}.select-access-dialog-container .qms-dialog-content .result-selected-container .result-header{height:51px;display:flex;align-items:center;position:-webkit-sticky;position:sticky;top:0;z-index:10;padding:0!important;background:#fff;margin-bottom:12px}.select-access-dialog-container .qms-dialog-content .result-selected-container .result-header:after{position:absolute;content:\"\";bottom:0;left:0;width:100%;height:1px;background:rgba(0,0,0,.04)}.select-access-dialog-container .qms-dialog-content .result-selected-container .result-header .mat-card-content{height:51px;width:100%;padding-left:4px;display:flex;align-items:center;background-color:rgba(0,0,0,.04)}.select-access-dialog-container .option-selected-content .group-filter-person-option{display:flex;flex-direction:row-reverse;justify-content:center;align-items:center;grid-gap:8px;gap:8px}.select-access-dialog-container span.chip-item__content_name{display:inline-block;max-width:175px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.select-access-dialog-container span.chip-item-children__count{font-size:.75rem;color:rgba(0,0,0,.5);font-weight:600}.select-access-dialog-container .mat-slide-toggle.qms-group-options{padding:unset!important}.select-access-dialog-container .input-option-filter .mat-form-field-wrapper{padding-bottom:8px!important}.select-access-dialog-container .input-option-filter .mat-form-field-underline{bottom:8px!important}.select-access-dialog-container .slide-toggle{margin-bottom:8px}.select-access-dialog-container .confirm__button__groups.none-option{margin-top:85px}.select-access-dialog-container .btn-icon-clear{position:relative;padding:0 1rem}.select-access-dialog-container .btn-icon-clear .qms-btn-icon{margin-right:unset!important}.select-access-dialog-container .btn-icon-clear:after{position:absolute;content:\"\";left:0;top:0;height:100%;width:1px;background:rgba(0,0,0,.3)}.select-access-dialog-container .qms-paginator .mat-icon{display:flex;align-items:center;justify-content:center}.select-access-dialog-container .qms-paginator .qms-btn-icon{width:30px!important;height:30px!important;line-height:30px!important}.select-access-dialog-container .qms-paginator .mat-form-field-wrapper{padding-bottom:0}.select-access-dialog-container .qms-paginator .mat-paginator-container{min-height:40px}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-total-result{margin-bottom:2px;margin-right:12px;height:30px}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-total-result span{font-weight:600;font-size:13px;color:rgba(0,0,0,.8)}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-paginator-range-actions{margin-bottom:0;grid-column-gap:2px;-moz-column-gap:2px;column-gap:2px}.select-access-dialog-container .qms-paginator .mat-paginator-container .qms-paginator-range-actions>.qms-total-result{margin-bottom:0}.select-access-dialog-container .qms-paginator>.qms-btn-icon-wrapper{width:30px!important;height:30px!important;display:flex;justify-content:center;align-items:center}.select-access-dialog-container .qms-paginator .qms-paginator-page-size{margin-right:12px}.select-access-dialog-container .qms-paginator .qms-paginator-page-size>.qms-pagesize-label{display:none}.select-access-dialog-container .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex{width:60px!important;height:30px;display:flex;align-items:center;padding:0 4px}.select-access-dialog-container .qms-paginator .qms-paginator-page-size>.qms-form-page-size .mat-form-field-flex .mat-form-field-infix{height:30px}.select-access-dialog-container .qms-paginator .mat-form-field.qms-form .mat-select-min-line,.select-access-dialog-container .qms-paginator .mat-form-field.qms-form mat-select-trigger{font-size:14px}.select-access-dialog-container .qms-paginator .mat-select-value{text-align:center}.select-access-dialog-container .mat-checkbox.checkbox-all .mat-checkbox-label{flex-direction:row!important;align-items:center!important;grid-column-gap:4px!important;-moz-column-gap:4px!important;column-gap:4px!important}.select-access-dialog-container .mat-expansion-panel.qms-expansion{margin:0!important}.select-access-dialog-container .access-department .qms-view-search-result{height:100%!important}.select-access-dialog-container .access-department .qms-view-search-result .result{max-height:calc(100% - 80px)!important}.select-access-dialog-container .access-department .loading-container{height:calc(100% - 40px)!important}.select-access-dialog-container .loading-container{height:50vh;overflow:hidden;display:grid;grid-template-rows:repeat(auto-fill,minmax(60px,60px))}.select-access-dialog-container .loading-container .loader{position:relative;width:100%;height:100%;padding:10px 0;overflow:hidden}.select-access-dialog-container .loading-container .loader:after{content:\"\";position:absolute;width:100%;height:100%;top:0;left:0;background:linear-gradient(110deg,hsla(0,0%,91%,0),hsla(0,0%,89%,0) 40%,hsla(0,0%,89%,.5) 50%,hsla(0,0%,89%,0) 60%,hsla(0,0%,89%,0));-webkit-animation:animate-loading 1.2s linear infinite;animation:animate-loading 1.2s linear infinite}.select-access-dialog-container .loading-container .loader__wrapper{position:relative;width:100%;height:100%}.select-access-dialog-container .loading-container .loader__wrapper .row-loader{background-color:#eee;position:absolute;left:0;width:100%;height:40px;overflow:hidden}@-webkit-keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes animate-loading{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"]
|
31714
31991
|
},] }
|
31715
31992
|
];
|
31716
31993
|
QMSSelectAccessDialogComponent.ctorParameters = function () { return [
|
@@ -31721,9 +31998,11 @@
|
|
31721
31998
|
{ type: i0.ChangeDetectorRef }
|
31722
31999
|
]; };
|
31723
32000
|
QMSSelectAccessDialogComponent.propDecorators = {
|
31724
|
-
tree: [{ type: i0.ViewChild, args: ['
|
32001
|
+
tree: [{ type: i0.ViewChild, args: ['tree', {
|
31725
32002
|
read: SelectDepartmentTreeComponent
|
31726
|
-
},] }]
|
32003
|
+
},] }],
|
32004
|
+
pagingPerson: [{ type: i0.ViewChild, args: ['pagingPerson',] }],
|
32005
|
+
pagingUserGroup: [{ type: i0.ViewChild, args: ['pagingUserGroup',] }]
|
31727
32006
|
};
|
31728
32007
|
|
31729
32008
|
var QMSSelectAccessDialogModule = /** @class */ (function () {
|
@@ -31758,7 +32037,8 @@
|
|
31758
32037
|
slideToggle.MatSlideToggleModule,
|
31759
32038
|
QMSListModule,
|
31760
32039
|
QmsPaginatorModule,
|
31761
|
-
paginator.MatPaginatorModule
|
32040
|
+
paginator.MatPaginatorModule,
|
32041
|
+
card.MatCardModule
|
31762
32042
|
],
|
31763
32043
|
exports: [
|
31764
32044
|
QMSSelectAccessDialogComponent
|
@@ -31766,6 +32046,12 @@
|
|
31766
32046
|
},] }
|
31767
32047
|
];
|
31768
32048
|
|
32049
|
+
var FilterPersonModel = /** @class */ (function () {
|
32050
|
+
function FilterPersonModel() {
|
32051
|
+
}
|
32052
|
+
return FilterPersonModel;
|
32053
|
+
}());
|
32054
|
+
|
31769
32055
|
/*
|
31770
32056
|
* Public API Surface of qms-angular
|
31771
32057
|
*/
|
@@ -31800,6 +32086,8 @@
|
|
31800
32086
|
exports.DepartmentSearchResultModel = DepartmentSearchResultModel;
|
31801
32087
|
exports.ENTERPRISE_FOLDER_ICON = ENTERPRISE_FOLDER_ICON;
|
31802
32088
|
exports.ENTERPRISE_FOLDER_OUTLINED_ICON = ENTERPRISE_FOLDER_OUTLINED_ICON;
|
32089
|
+
exports.EllipsifyDirective = EllipsifyDirective;
|
32090
|
+
exports.FilterPersonModel = FilterPersonModel;
|
31803
32091
|
exports.FlatNodeNavDrawer = FlatNodeNavDrawer;
|
31804
32092
|
exports.FlowChartConst = FlowChartConst;
|
31805
32093
|
exports.ISelectOneItem = ISelectOneItem;
|
@@ -31822,6 +32110,8 @@
|
|
31822
32110
|
exports.PROCESS_ICON = PROCESS_ICON;
|
31823
32111
|
exports.PopupData = PopupData;
|
31824
32112
|
exports.QMSAccessItem = QMSAccessItem;
|
32113
|
+
exports.QMSAccessPagingChangeModel = QMSAccessPagingChangeModel;
|
32114
|
+
exports.QMSAccessPagingModel = QMSAccessPagingModel;
|
31825
32115
|
exports.QMSAnchor = QMSAnchor;
|
31826
32116
|
exports.QMSAppBar = QMSAppBar;
|
31827
32117
|
exports.QMSAppIconModule = QMSAppIconModule;
|
@@ -31874,6 +32164,8 @@
|
|
31874
32164
|
exports.QMSCollapseGroupDirective = QMSCollapseGroupDirective;
|
31875
32165
|
exports.QMSComment = QMSComment;
|
31876
32166
|
exports.QMSConfirmDialog = QMSConfirmDialog;
|
32167
|
+
exports.QMSContentChangesDirective = QMSContentChangesDirective;
|
32168
|
+
exports.QMSDepartmentPagingModel = QMSDepartmentPagingModel;
|
31877
32169
|
exports.QMSDialogConfig = QMSDialogConfig;
|
31878
32170
|
exports.QMSDialogContainer = QMSDialogContainer;
|
31879
32171
|
exports.QMSDialogContainerV2 = QMSDialogContainerV2;
|
@@ -32020,6 +32312,7 @@
|
|
32020
32312
|
exports.RiskResultComponent = RiskResultComponent;
|
32021
32313
|
exports.SaveTemplateComponent = SaveTemplateComponent;
|
32022
32314
|
exports.ScrollToSelectedDirective = ScrollToSelectedDirective;
|
32315
|
+
exports.SelectAccessAnimationTrigger = SelectAccessAnimationTrigger;
|
32023
32316
|
exports.SelectConst = SelectConst;
|
32024
32317
|
exports.SelectDepartmentComponent = SelectDepartmentComponent;
|
32025
32318
|
exports.SelectDepartmentPopupData = SelectDepartmentPopupData;
|