qms-angular 1.1.20 → 1.1.22
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 +900 -528
- 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-process-document/models/pop-up-data.model.js +2 -1
- package/esm2015/lib/components/select-process-document/select-process-document.component.js +46 -38
- 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 +5 -4
- 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 +866 -539
- 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-process-document/models/pop-up-data.model.d.ts +1 -0
- package/lib/components/select-process-document/select-process-document.component.d.ts +1 -0
- 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
@@ -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
|
},
|
@@ -132,8 +133,8 @@
|
|
132
133
|
"CONTENT": "Content",
|
133
134
|
"TEMPLATE": "Template",
|
134
135
|
"CONTENT_TEMPLATE": "Content Template",
|
135
|
-
"CREATE_NEW_TEMPLATE": "Create new
|
136
|
-
"UPDATE_TEMPLATE": "Update
|
136
|
+
"CREATE_NEW_TEMPLATE": "Create new template",
|
137
|
+
"UPDATE_TEMPLATE": "Update template",
|
137
138
|
"TITLE": "Title",
|
138
139
|
"DESCRIPTION": "Description",
|
139
140
|
"SAVE": "Save",
|
@@ -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 },
|
@@ -24166,8 +24257,10 @@
|
|
24166
24257
|
_this.renderer = renderer;
|
24167
24258
|
_this.elRef = elRef;
|
24168
24259
|
_this.required = false;
|
24260
|
+
_this.editorId = 'qmsckeditor';
|
24169
24261
|
_this.qmsckContentOutput = new i0.EventEmitter();
|
24170
24262
|
_this.ckEditorEventConst = CKEditorEventConst;
|
24263
|
+
_this.isToolbarItemsIdSet = false;
|
24171
24264
|
_this.ckTagname = 'div';
|
24172
24265
|
return _this;
|
24173
24266
|
}
|
@@ -24209,6 +24302,7 @@
|
|
24209
24302
|
};
|
24210
24303
|
QMSCKEditorComponent.prototype.ngOnInit = function () {
|
24211
24304
|
var _this = this;
|
24305
|
+
this.toolbarItemPrefixId = this.editorId + "_toolbar_item_";
|
24212
24306
|
this.name = 'CKEditor custom build';
|
24213
24307
|
this.ckEditor = this.qmsckPlugin.pluginObject;
|
24214
24308
|
this.translate.getLanguageSubject$.pipe(operators.takeUntil(this.ngUnsubcribe)).subscribe(function (res) {
|
@@ -24216,7 +24310,11 @@
|
|
24216
24310
|
_this.LANG = _this.translate.getObjectLang(res);
|
24217
24311
|
}
|
24218
24312
|
});
|
24219
|
-
|
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);
|
24220
24318
|
this.globalService.setApiUrl(this.qmsckData.apiUrl);
|
24221
24319
|
if (this.isEnabledMathtypeConfig()) {
|
24222
24320
|
this.addMathTypeConfig();
|
@@ -24224,9 +24322,6 @@
|
|
24224
24322
|
if (this.isEnabledTimestampConfig()) {
|
24225
24323
|
this.addTimestampConfig();
|
24226
24324
|
}
|
24227
|
-
if (this.isEnabledToggleToolbar()) {
|
24228
|
-
this.addToggleToolbarConfig();
|
24229
|
-
}
|
24230
24325
|
if (this.isEnabledWProofreader()) {
|
24231
24326
|
this.addWProofreaderConfig();
|
24232
24327
|
}
|
@@ -24241,6 +24336,7 @@
|
|
24241
24336
|
if (this.editorInstance) {
|
24242
24337
|
this.editorInstance.destroy();
|
24243
24338
|
}
|
24339
|
+
$(document).off();
|
24244
24340
|
};
|
24245
24341
|
QMSCKEditorComponent.prototype.registerOnChange = function (fn) {
|
24246
24342
|
this.onChange = fn;
|
@@ -24272,12 +24368,12 @@
|
|
24272
24368
|
};
|
24273
24369
|
QMSCKEditorComponent.prototype.isEnabledToggleToolbar = function () {
|
24274
24370
|
var pattern = /(toggleToolbar)/gmi;
|
24275
|
-
return !!this.qmsckData.
|
24371
|
+
return !!this.qmsckData.toggledToolbarItems
|
24276
24372
|
&& !!this.qmsckPlugin.itemToolbar
|
24277
24373
|
&& this.qmsckPlugin.itemToolbar.search(pattern) > -1;
|
24278
24374
|
};
|
24279
24375
|
QMSCKEditorComponent.prototype.addToggleToolbarConfig = function () {
|
24280
|
-
var items = this.qmsckData.
|
24376
|
+
var items = this.qmsckData.toggledToolbarItems.split(',');
|
24281
24377
|
var toggleToolbarConfig = {
|
24282
24378
|
toggleToolbarConfig: {
|
24283
24379
|
toolbar: items
|
@@ -24345,13 +24441,13 @@
|
|
24345
24441
|
};
|
24346
24442
|
this.ckEditor.defaultConfig = Object.assign(this.ckEditor.defaultConfig || {}, mathTypeConfig);
|
24347
24443
|
};
|
24348
|
-
QMSCKEditorComponent.prototype.onChanged = function (
|
24349
|
-
var editor =
|
24444
|
+
QMSCKEditorComponent.prototype.onChanged = function (_e) {
|
24445
|
+
var editor = _e.editor;
|
24350
24446
|
//this.qmsckContentInput = editor.getData();
|
24351
24447
|
this.qmsckContentOutput.emit(this.qmsckContentInput);
|
24352
24448
|
};
|
24353
|
-
QMSCKEditorComponent.prototype.onBlur = function (
|
24354
|
-
var editor =
|
24449
|
+
QMSCKEditorComponent.prototype.onBlur = function (_e) {
|
24450
|
+
var editor = _e.editor;
|
24355
24451
|
this.qmsckContentInput = editor.getData();
|
24356
24452
|
this.qmsckContentOutput.emit(this.qmsckContentInput);
|
24357
24453
|
};
|
@@ -24395,6 +24491,7 @@
|
|
24395
24491
|
wordsBox.textContent = _this.LANG.QMSCKEDITOR.WORDS + ": " + stats.words + " / " + _this.LANG.QMSCKEDITOR.CHARACTERS + ": " + stats.characters;
|
24396
24492
|
}
|
24397
24493
|
});
|
24494
|
+
this._setEditorInstanceObserver(this.editorId);
|
24398
24495
|
};
|
24399
24496
|
/**
|
24400
24497
|
* Add template - Load template
|
@@ -24587,63 +24684,48 @@
|
|
24587
24684
|
};
|
24588
24685
|
/*
|
24589
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
|
24590
24696
|
*/
|
24591
24697
|
QMSCKEditorComponent.prototype.toggleToolbarEventHandling = function () {
|
24592
|
-
var
|
24593
|
-
var qmsckeditor = window.document.getElementById('qmsckeditor');
|
24698
|
+
var qmsckeditor = window.document.getElementById(this.editorId);
|
24594
24699
|
var toggleAttribute = 'isToggleToolbar';
|
24595
24700
|
var ckeditorTag = 'ckeditor';
|
24596
24701
|
if (qmsckeditor) {
|
24597
24702
|
var isToggleToolbar = qmsckeditor.getAttribute(toggleAttribute) == 'true';
|
24598
24703
|
if (isToggleToolbar) {
|
24599
|
-
this.
|
24704
|
+
this._setToolbarViewMode(true);
|
24600
24705
|
qmsckeditor.setAttribute(toggleAttribute, 'false');
|
24601
24706
|
}
|
24602
24707
|
else {
|
24603
|
-
this.
|
24708
|
+
this._setToolbarViewMode(false);
|
24604
24709
|
qmsckeditor.setAttribute(toggleAttribute, 'true');
|
24605
24710
|
}
|
24606
|
-
var onChanged_1 = this.onChanged.bind(this);
|
24607
|
-
var onBlur_1 = this.onBlur.bind(this);
|
24608
|
-
if (this.editorInstance) {
|
24609
|
-
try {
|
24610
|
-
this.editorInstance.destroy();
|
24611
|
-
}
|
24612
|
-
catch (err) {
|
24613
|
-
console.log(err);
|
24614
|
-
}
|
24615
|
-
}
|
24616
|
-
//This is a temporary workaround.
|
24617
|
-
//Tracking status and progress of the issue https://github.com/ckeditor/ckeditor5/issues/7383
|
24618
|
-
var root = window.document.querySelector(ckeditorTag);
|
24619
|
-
if (!!root) {
|
24620
|
-
var editorElement_1 = null;
|
24621
|
-
if (root.childElementCount > 0) {
|
24622
|
-
editorElement_1 = Array.from(root.children).find(function (i) { return i.nodeName.toLowerCase() == _this.ckTagname.toLowerCase(); });
|
24623
|
-
}
|
24624
|
-
else {
|
24625
|
-
editorElement_1 = window.document.createElement(this.ckTagname);
|
24626
|
-
editorElement_1.style = 'display: none;';
|
24627
|
-
root.appendChild(editorElement_1);
|
24628
|
-
}
|
24629
|
-
this.ckEditor.create(editorElement_1, this.ckeditorConfig).then(function (editor) {
|
24630
|
-
_this.initEditor(editor);
|
24631
|
-
_this.editorInstance = editor;
|
24632
|
-
//Delete cache content
|
24633
|
-
editorElement_1.innerHTML = '';
|
24634
|
-
//setup editor events
|
24635
|
-
var modelDocument = editor.model.document;
|
24636
|
-
var viewDocument = editor.editing.view.document;
|
24637
|
-
modelDocument.on('change:data', function () {
|
24638
|
-
onChanged_1({ editor: editor });
|
24639
|
-
});
|
24640
|
-
viewDocument.on('blur', function () {
|
24641
|
-
onBlur_1({ editor: editor });
|
24642
|
-
});
|
24643
|
-
});
|
24644
|
-
}
|
24645
24711
|
}
|
24646
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
|
+
};
|
24647
24729
|
/**
|
24648
24730
|
* Flowchart
|
24649
24731
|
*/
|
@@ -24745,12 +24827,33 @@
|
|
24745
24827
|
});
|
24746
24828
|
});
|
24747
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
|
+
};
|
24748
24851
|
return QMSCKEditorComponent;
|
24749
24852
|
}(QMSCKEditorBaseComponent));
|
24750
24853
|
QMSCKEditorComponent.decorators = [
|
24751
24854
|
{ type: i0.Component, args: [{
|
24752
24855
|
selector: 'qms-ckeditor',
|
24753
|
-
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>",
|
24754
24857
|
providers: [
|
24755
24858
|
QMSCKEditorFullscreenComponent,
|
24756
24859
|
{
|
@@ -24784,6 +24887,7 @@
|
|
24784
24887
|
qmsckContentInput: [{ type: i0.Input }],
|
24785
24888
|
isDisabled: [{ type: i0.Input, args: ['disabled',] }],
|
24786
24889
|
required: [{ type: i0.Input, args: ['required',] }],
|
24890
|
+
editorId: [{ type: i0.Input }],
|
24787
24891
|
qmsckContentOutput: [{ type: i0.Output }],
|
24788
24892
|
onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
|
24789
24893
|
};
|
@@ -28422,6 +28526,7 @@
|
|
28422
28526
|
this.moduleName = '';
|
28423
28527
|
this.treeData1 = [];
|
28424
28528
|
this.treeData2 = [];
|
28529
|
+
this.checkedNodeList = [];
|
28425
28530
|
this.selectedNode = [];
|
28426
28531
|
this.disabledList = [];
|
28427
28532
|
this.disabledList2 = [];
|
@@ -28521,6 +28626,7 @@
|
|
28521
28626
|
this.singleSelectedNode = data.treeConfig1.singleSelectedNode;
|
28522
28627
|
this.disabledList = data.disabledList || [];
|
28523
28628
|
this.disabledList2 = data.disabledList2 || [];
|
28629
|
+
this.checkedNodeList = data.checkedNodeList || [];
|
28524
28630
|
this.splitView = data.splitView;
|
28525
28631
|
this.isSelectOne = data.isSelectOne;
|
28526
28632
|
this.canOnlySelectItem = data.canOnlySelectItem;
|
@@ -28549,6 +28655,7 @@
|
|
28549
28655
|
_this.LANG = _this.translate.getObjectLang(res);
|
28550
28656
|
}
|
28551
28657
|
});
|
28658
|
+
this.setSelectedData();
|
28552
28659
|
this.globalService.searchRelated.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (res) {
|
28553
28660
|
if (res && res.length) {
|
28554
28661
|
_this.filteredOptions = _this.toRelatedOptions(res);
|
@@ -28575,43 +28682,7 @@
|
|
28575
28682
|
listNodeDocs_1.push(newNodeDocs);
|
28576
28683
|
}
|
28577
28684
|
});
|
28578
|
-
|
28579
|
-
_this.selectedData = [];
|
28580
|
-
_this.selectedData2 = [];
|
28581
|
-
var selectProcess_1 = [];
|
28582
|
-
var selectDocument_1 = [];
|
28583
|
-
_this.checkedNodeList.forEach(function (x) {
|
28584
|
-
var newNode = {
|
28585
|
-
disabled: false,
|
28586
|
-
expandable: (x.itemType == exports.DataType.area || x.itemType == exports.DataType.folder) ? true : false,
|
28587
|
-
hasChild: (x.itemType == exports.DataType.area || x.itemType == exports.DataType.folder) ? true : false,
|
28588
|
-
id: x.id,
|
28589
|
-
level: 0,
|
28590
|
-
levelType: undefined,
|
28591
|
-
name: x.itemName,
|
28592
|
-
parentId: x.parentId
|
28593
|
-
};
|
28594
|
-
if (x.itemType === exports.DataType.area || x.itemType === exports.DataType.process) {
|
28595
|
-
_this.treeData1.forEach(function (item) {
|
28596
|
-
if (item.id && x.id === item.id) {
|
28597
|
-
selectProcess_1.push(newNode);
|
28598
|
-
}
|
28599
|
-
});
|
28600
|
-
}
|
28601
|
-
else {
|
28602
|
-
_this.treeData2.forEach(function (item) {
|
28603
|
-
if (item.id && x.id === item.id) {
|
28604
|
-
selectDocument_1.push(newNode);
|
28605
|
-
}
|
28606
|
-
});
|
28607
|
-
}
|
28608
|
-
});
|
28609
|
-
_this.selectedData = __spreadArray(__spreadArray([], __read(_this.selectedData)), __read(selectProcess_1));
|
28610
|
-
_this.selectedData2 = __spreadArray(__spreadArray([], __read(_this.selectedData2)), __read(selectDocument_1));
|
28611
|
-
if (_this.splitView && _this.isSelectOne) {
|
28612
|
-
_this.idCheckIconSplitView = _this.idToCheckSelectOne(_this.checkedNodeList[0].id, _this.checkedNodeList[0].parentId);
|
28613
|
-
}
|
28614
|
-
}
|
28685
|
+
_this.setSelectedData();
|
28615
28686
|
}
|
28616
28687
|
});
|
28617
28688
|
this.myControl.valueChanges.pipe(operators.debounceTime(1000)).subscribe(function (val) {
|
@@ -28628,6 +28699,7 @@
|
|
28628
28699
|
}
|
28629
28700
|
});
|
28630
28701
|
_this.treeData1 = __spreadArray(__spreadArray([], __read(_this.treeData1)), __read(notShownChildren_1));
|
28702
|
+
_this.setSelectedData();
|
28631
28703
|
}
|
28632
28704
|
});
|
28633
28705
|
this.globalService.getFolderChildren.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (res) {
|
@@ -28640,11 +28712,53 @@
|
|
28640
28712
|
}
|
28641
28713
|
});
|
28642
28714
|
_this.treeData2 = __spreadArray(__spreadArray([], __read(_this.treeData2)), __read(notShownChildren_2));
|
28715
|
+
_this.setSelectedData();
|
28643
28716
|
}
|
28644
28717
|
});
|
28645
28718
|
this.itemType = this.dataType.process;
|
28646
28719
|
this.searchOrder = this.getSearchOrder();
|
28647
28720
|
};
|
28721
|
+
SelectProcessDocumentPopupComponent.prototype.setSelectedData = function () {
|
28722
|
+
var _this = this;
|
28723
|
+
if (this.checkedNodeList.length) {
|
28724
|
+
this.selectedData = [];
|
28725
|
+
this.selectedData2 = [];
|
28726
|
+
var selectProcess_1 = [];
|
28727
|
+
var selectDocument_1 = [];
|
28728
|
+
this.checkedNodeList.forEach(function (x) {
|
28729
|
+
var newNode = {
|
28730
|
+
disabled: false,
|
28731
|
+
expandable: (x.itemType == exports.DataType.area || x.itemType == exports.DataType.folder) ? true : false,
|
28732
|
+
hasChild: (x.itemType == exports.DataType.area || x.itemType == exports.DataType.folder) ? true : false,
|
28733
|
+
id: x.id,
|
28734
|
+
level: 0,
|
28735
|
+
levelType: undefined,
|
28736
|
+
name: x.itemName,
|
28737
|
+
parentId: x.parentId
|
28738
|
+
};
|
28739
|
+
if (x.itemType === exports.DataType.area || x.itemType === exports.DataType.process) {
|
28740
|
+
_this.treeData1.forEach(function (item) {
|
28741
|
+
if (item.id && x.id === item.id) {
|
28742
|
+
selectProcess_1.push(newNode);
|
28743
|
+
}
|
28744
|
+
});
|
28745
|
+
}
|
28746
|
+
else {
|
28747
|
+
_this.treeData2.forEach(function (item) {
|
28748
|
+
if (item.id && x.id === item.id) {
|
28749
|
+
selectDocument_1.push(newNode);
|
28750
|
+
}
|
28751
|
+
});
|
28752
|
+
}
|
28753
|
+
});
|
28754
|
+
this.selectedData = __spreadArray(__spreadArray([], __read(this.selectedData)), __read(selectProcess_1));
|
28755
|
+
this.selectedData2 = __spreadArray(__spreadArray([], __read(this.selectedData2)), __read(selectDocument_1));
|
28756
|
+
this.documentCheckedList = __spreadArray(__spreadArray([], __read(this.selectedData)), __read(this.selectedData2));
|
28757
|
+
if (this.splitView && this.isSelectOne) {
|
28758
|
+
this.idCheckIconSplitView = this.idToCheckSelectOne(this.checkedNodeList[0].id, this.checkedNodeList[0].parentId);
|
28759
|
+
}
|
28760
|
+
}
|
28761
|
+
};
|
28648
28762
|
SelectProcessDocumentPopupComponent.prototype.ngAfterViewChecked = function () {
|
28649
28763
|
this.cdRef.detectChanges();
|
28650
28764
|
if (this.filteredOptions && this.filteredOptions.length) {
|
@@ -30254,7 +30368,7 @@
|
|
30254
30368
|
animations$1.transition('* => *', [
|
30255
30369
|
animations$1.query(':enter', [
|
30256
30370
|
animations$1.style({ opacity: 0, transform: 'translateY(-100%)' }),
|
30257
|
-
animations$1.stagger(
|
30371
|
+
animations$1.stagger(30, [
|
30258
30372
|
animations$1.animate('0.4s cubic-bezier(0.23, 1, 0.320, 1)', animations$1.style({ opacity: 1, transform: 'none' }))
|
30259
30373
|
])
|
30260
30374
|
], { optional: true })
|
@@ -30262,8 +30376,19 @@
|
|
30262
30376
|
])
|
30263
30377
|
];
|
30264
30378
|
|
30379
|
+
var QMSDepartmentPagingModel = /** @class */ (function (_super) {
|
30380
|
+
__extends(QMSDepartmentPagingModel, _super);
|
30381
|
+
function QMSDepartmentPagingModel() {
|
30382
|
+
var _this = _super.call(this) || this;
|
30383
|
+
_this.data = [];
|
30384
|
+
_this.data = [];
|
30385
|
+
return _this;
|
30386
|
+
}
|
30387
|
+
return QMSDepartmentPagingModel;
|
30388
|
+
}(paginator.PageEvent));
|
30389
|
+
|
30265
30390
|
var SelectDepartmentTreeComponent = /** @class */ (function () {
|
30266
|
-
function SelectDepartmentTreeComponent(cdRef, domSanitizer, appIconService, iconRegistry, eleRef, trans) {
|
30391
|
+
function SelectDepartmentTreeComponent(cdRef, domSanitizer, appIconService, iconRegistry, eleRef, trans, treeDepartmentGlobalService) {
|
30267
30392
|
var _this = this;
|
30268
30393
|
this.cdRef = cdRef;
|
30269
30394
|
this.domSanitizer = domSanitizer;
|
@@ -30271,26 +30396,28 @@
|
|
30271
30396
|
this.iconRegistry = iconRegistry;
|
30272
30397
|
this.eleRef = eleRef;
|
30273
30398
|
this.trans = trans;
|
30399
|
+
this.treeDepartmentGlobalService = treeDepartmentGlobalService;
|
30274
30400
|
this.enableIncludeChild = false;
|
30275
30401
|
this.enableTreeSearch = false;
|
30276
30402
|
this.isSelectOne = false;
|
30277
30403
|
this.activeViewSearch = false;
|
30404
|
+
this.customClass = '';
|
30405
|
+
this.arrSkeleton = new Array(6).fill(0);
|
30278
30406
|
this.treeDataSourceConfig = new QMSSelectDepartmentTreeConfig();
|
30407
|
+
this.isIncludeChildren = false;
|
30279
30408
|
this.checkSearchMappingTree = true;
|
30280
30409
|
this.enablePagingSearch = true;
|
30281
30410
|
this.onSearchEvent = new i0.EventEmitter();
|
30282
30411
|
this.onPagingSearchEvent = new i0.EventEmitter();
|
30283
30412
|
this.ngUnsubscribe = new rxjs.Subject();
|
30284
30413
|
this.isLoaded = false;
|
30285
|
-
this.resultGroupSelected = [];
|
30286
|
-
this.resultSingleSelected = [];
|
30287
30414
|
this.resultSearchSelected = [];
|
30288
30415
|
this.resultSelected = [];
|
30289
30416
|
this.getDataTree$ = new rxjs.BehaviorSubject([]);
|
30290
30417
|
this.onValueChangeEvent = new i0.EventEmitter();
|
30291
|
-
this.
|
30418
|
+
this.selectionNodeChangeEvent = new i0.EventEmitter();
|
30419
|
+
this.searchDepartment$ = new rxjs.BehaviorSubject(new QMSDepartmentPagingModel());
|
30292
30420
|
this.resultSearch = [];
|
30293
|
-
this.pagingResultSearch = [];
|
30294
30421
|
this.isSelectAllResultSearch = false;
|
30295
30422
|
this.indeterminateSearchResult = false;
|
30296
30423
|
this.currentPaginationConfig = {
|
@@ -30325,6 +30452,8 @@
|
|
30325
30452
|
flatNode.itemIconSvg = node.itemIconSvg;
|
30326
30453
|
flatNode.isFile = node.isFile;
|
30327
30454
|
flatNode.disabled = node.disabled;
|
30455
|
+
flatNode.isGroup = node.isGroup;
|
30456
|
+
flatNode.groupId = node.groupId;
|
30328
30457
|
_this.flatTreeNodeMap.set(flatNode, node);
|
30329
30458
|
_this.nestedTreeNodeMap.set(node, flatNode);
|
30330
30459
|
return flatNode;
|
@@ -30333,13 +30462,12 @@
|
|
30333
30462
|
this._getChild = function (node) { return node.children; };
|
30334
30463
|
this.isExpandable = function (node) { return node.expandable; };
|
30335
30464
|
this.hasChild = function (_, node) { return node.expandable; };
|
30336
|
-
this.treeControl = new tree.FlatTreeControl(this.getLevel, this.isExpandable);
|
30337
|
-
this.treeFlattener = new tree$1.MatTreeFlattener(this._transformer, this.getLevel, this.isExpandable, this._getChild);
|
30338
|
-
this.dataSource = new tree$1.MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
|
30339
30465
|
// Init tree data
|
30340
30466
|
this.getDataTree$
|
30341
30467
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30342
30468
|
.subscribe(function (data) {
|
30469
|
+
if (!_this.dataSource)
|
30470
|
+
return;
|
30343
30471
|
_this.dataSource.data = data;
|
30344
30472
|
});
|
30345
30473
|
// Register icon
|
@@ -30355,61 +30483,31 @@
|
|
30355
30483
|
_this.LANG = _this.trans.getObjectLang(res);
|
30356
30484
|
}
|
30357
30485
|
});
|
30358
|
-
this.
|
30359
|
-
|
30360
|
-
|
30361
|
-
_this.resultSearch = [];
|
30362
|
-
if (result && result.length) {
|
30363
|
-
result.forEach(function (item) {
|
30364
|
-
var node = _this.treeControl.dataNodes.find(function (node) { return node.id === item.id; });
|
30365
|
-
var parents = node ? _this._getAllParentNode(node) : [];
|
30366
|
-
_this.resultSearch.push(Object.assign(Object.assign({}, item), { disabled: _this.checkSearchMappingTree && !node, path: __spreadArray(__spreadArray([], __read((parents.map(function (x, index) { return ({
|
30367
|
-
id: x.id,
|
30368
|
-
name: x.name,
|
30369
|
-
}); }).reverse() || []))), [
|
30370
|
-
{
|
30371
|
-
id: item.id,
|
30372
|
-
name: item.name,
|
30373
|
-
}
|
30374
|
-
]) }));
|
30375
|
-
});
|
30376
|
-
}
|
30377
|
-
_this.currentPaginationConfig.pageIndex = 0;
|
30378
|
-
_this.currentPaginationConfig.pageSize = 10;
|
30379
|
-
_this.getLoading$.next(false);
|
30380
|
-
_this.textResultSearch = _this.formSearchControl.value;
|
30381
|
-
_this.onPagingSearchResult(_this.currentPaginationConfig);
|
30382
|
-
_this._mapToResultSearch();
|
30383
|
-
_this._checkStateCheckboxAllSearch();
|
30384
|
-
_this.setIndexView(1);
|
30385
|
-
_this.cdRef.detectChanges();
|
30386
|
-
});
|
30387
|
-
this.scrollToNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30388
|
-
var delayTiming = _this.indexView === 1 ? 700 : 0;
|
30389
|
-
_this.setIndexView(0);
|
30390
|
-
return rxjs.of(val).pipe(operators.delay(delayTiming));
|
30391
|
-
})).subscribe(function (res) {
|
30392
|
-
_this.onScrollIntoNode(res);
|
30393
|
-
});
|
30394
|
-
this.getActiveNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30395
|
-
_this.activeNode = val;
|
30396
|
-
return rxjs.timer(1500);
|
30397
|
-
})).subscribe(function (_) {
|
30398
|
-
_this.activeNode = '';
|
30399
|
-
});
|
30486
|
+
this._handleSearchEvent();
|
30487
|
+
this._handleActiveNodeEvent();
|
30488
|
+
this._handleItemSelectionChanged();
|
30400
30489
|
this.getLoading$.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30401
30490
|
.subscribe(function (res) {
|
30402
30491
|
res ? _this.formSearchControl.disable() : _this.formSearchControl.enable();
|
30403
30492
|
});
|
30404
30493
|
}
|
30494
|
+
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "rowsSkeleton", {
|
30495
|
+
set: function (value) {
|
30496
|
+
this.arrSkeleton = new Array(value).fill(0);
|
30497
|
+
},
|
30498
|
+
enumerable: false,
|
30499
|
+
configurable: true
|
30500
|
+
});
|
30405
30501
|
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "treeData", {
|
30406
30502
|
set: function (value) {
|
30503
|
+
this.updateDataTree([]);
|
30407
30504
|
this.treeDataSourceConfig.treeData = value || [];
|
30408
|
-
this.
|
30505
|
+
this._initTreeData();
|
30409
30506
|
},
|
30410
30507
|
enumerable: false,
|
30411
30508
|
configurable: true
|
30412
30509
|
});
|
30510
|
+
;
|
30413
30511
|
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "selectedList", {
|
30414
30512
|
set: function (value) {
|
30415
30513
|
this.treeDataSourceConfig.selectedList = value || [];
|
@@ -30426,13 +30524,18 @@
|
|
30426
30524
|
});
|
30427
30525
|
Object.defineProperty(SelectDepartmentTreeComponent.prototype, "currentTreeData", {
|
30428
30526
|
get: function () {
|
30429
|
-
return this.getDataTree$.
|
30527
|
+
return this.getDataTree$.getValue();
|
30430
30528
|
},
|
30431
30529
|
enumerable: false,
|
30432
30530
|
configurable: true
|
30433
30531
|
});
|
30532
|
+
SelectDepartmentTreeComponent.prototype.ngAfterContentInit = function () {
|
30533
|
+
this.cdRef.detectChanges();
|
30534
|
+
};
|
30535
|
+
SelectDepartmentTreeComponent.prototype.ngAfterViewInit = function () {
|
30536
|
+
this.cdRef.detectChanges();
|
30537
|
+
};
|
30434
30538
|
SelectDepartmentTreeComponent.prototype.ngOnInit = function () {
|
30435
|
-
this._initTreeData();
|
30436
30539
|
this._initCheckListSelected();
|
30437
30540
|
};
|
30438
30541
|
SelectDepartmentTreeComponent.prototype.ngOnDestroy = function () {
|
@@ -30441,86 +30544,253 @@
|
|
30441
30544
|
};
|
30442
30545
|
SelectDepartmentTreeComponent.prototype._initTreeData = function () {
|
30443
30546
|
var _this = this;
|
30444
|
-
|
30445
|
-
|
30446
|
-
|
30447
|
-
|
30448
|
-
|
30449
|
-
|
30450
|
-
|
30451
|
-
|
30452
|
-
|
30453
|
-
|
30454
|
-
|
30455
|
-
|
30456
|
-
|
30457
|
-
|
30458
|
-
|
30459
|
-
|
30460
|
-
|
30461
|
-
|
30462
|
-
|
30463
|
-
(result[currentValue['parentId']] = result[currentValue['parentId']] || []).push(currentValue);
|
30464
|
-
return result;
|
30465
|
-
}, {});
|
30466
|
-
var getAllParent_1 = function (parentId) {
|
30467
|
-
var parents = [];
|
30468
|
-
var parent = _this.treeDataSourceConfig.treeData.find(function (x) { return x.id == parentId; });
|
30469
|
-
while (parent) {
|
30470
|
-
parents.push(parent);
|
30471
|
-
parent = _this.treeDataSourceConfig.treeData.find(function (x) { return x.id == parent.parentId; });
|
30472
|
-
}
|
30473
|
-
return parents;
|
30547
|
+
this.treeControl = new tree.FlatTreeControl(this.getLevel, this.isExpandable);
|
30548
|
+
this.treeFlattener = new tree$1.MatTreeFlattener(this._transformer, this.getLevel, this.isExpandable, this._getChild);
|
30549
|
+
this.dataSource = new tree$1.MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
|
30550
|
+
var _treeDataInput = ___namespace.cloneDeep(this.treeDataSourceConfig.treeData);
|
30551
|
+
if (!_treeDataInput.length)
|
30552
|
+
return;
|
30553
|
+
var rootNode = _treeDataInput.filter(function (item) { return !item.parentId; })
|
30554
|
+
.map(function (item, _index) {
|
30555
|
+
var node = {
|
30556
|
+
id: item.id,
|
30557
|
+
name: item.name,
|
30558
|
+
markedGetChildren: item.markedGetChildren,
|
30559
|
+
children: [],
|
30560
|
+
isFile: false,
|
30561
|
+
itemIcon: item.itemIcon,
|
30562
|
+
itemMatIcon: item.itemMatIcon,
|
30563
|
+
itemIconSvg: item.itemIconSvg,
|
30564
|
+
parentId: item.parentId,
|
30565
|
+
isGroup: false
|
30474
30566
|
};
|
30475
|
-
|
30476
|
-
|
30477
|
-
|
30478
|
-
|
30479
|
-
|
30480
|
-
|
30481
|
-
|
30482
|
-
|
30483
|
-
|
30484
|
-
|
30485
|
-
|
30486
|
-
|
30487
|
-
|
30488
|
-
|
30489
|
-
|
30490
|
-
|
30491
|
-
|
30492
|
-
|
30567
|
+
return node;
|
30568
|
+
});
|
30569
|
+
if (!rootNode.length)
|
30570
|
+
throw ('Data invalid.');
|
30571
|
+
var invalidItems = _treeDataInput.filter(function (item) { return item.id == item.parentId; }) || [];
|
30572
|
+
if (invalidItems.length) {
|
30573
|
+
throw ("data " + JSON.stringify(invalidItems) + " invalid");
|
30574
|
+
}
|
30575
|
+
this.updateDataTree(rootNode);
|
30576
|
+
var groupResult = _treeDataInput.filter(function (x) { return x.parentId; }).reduce(function (result, currentValue) {
|
30577
|
+
(result[currentValue['parentId']] = result[currentValue['parentId']] || []).push(currentValue);
|
30578
|
+
return result;
|
30579
|
+
}, {});
|
30580
|
+
var checkValidGroup = function (id) {
|
30581
|
+
var parents = [];
|
30582
|
+
var parent = _treeDataInput.find(function (x) { return x.id == id; });
|
30583
|
+
while (parent === null || parent === void 0 ? void 0 : parent.id) {
|
30584
|
+
parents.push(parent);
|
30585
|
+
parent = _treeDataInput.find(function (x) { return x.id == (parent === null || parent === void 0 ? void 0 : parent.parentId); });
|
30586
|
+
}
|
30587
|
+
return parents.some(function (x) { return !x.parentId; });
|
30588
|
+
};
|
30589
|
+
if (!(rootNode && !!rootNode.length))
|
30590
|
+
return;
|
30591
|
+
var groupResultKey = Object.keys(groupResult).filter(checkValidGroup);
|
30592
|
+
while (groupResultKey.length) {
|
30593
|
+
groupResultKey = groupResultKey.filter(function (key) {
|
30594
|
+
var parentFlatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === key; });
|
30595
|
+
if (parentFlatNode) {
|
30596
|
+
var parentNestedNode = _this.convertToNestedNode(parentFlatNode);
|
30597
|
+
parentNestedNode.markedGetChildren = true;
|
30598
|
+
parentNestedNode.children = ___namespace.cloneDeep(groupResult[key]);
|
30599
|
+
parentNestedNode.childCount = parentNestedNode.children.length;
|
30600
|
+
parentNestedNode.isGroup = false;
|
30601
|
+
_this.updateDataTree(_this.currentTreeData);
|
30602
|
+
groupResult[key] = [];
|
30603
|
+
return false;
|
30604
|
+
}
|
30605
|
+
return true;
|
30606
|
+
});
|
30493
30607
|
}
|
30608
|
+
this.getLoading$.next(false);
|
30609
|
+
this._initCheckListSelected();
|
30494
30610
|
};
|
30495
30611
|
SelectDepartmentTreeComponent.prototype._initCheckListSelected = function () {
|
30496
30612
|
var _this = this;
|
30497
30613
|
if (!this.treeDataSourceConfig.selectedList.length)
|
30498
30614
|
return;
|
30499
|
-
|
30500
|
-
|
30501
|
-
this.treeDataSourceConfig.selectedList.forEach(function (item) {
|
30615
|
+
var selectedList = this.treeDataSourceConfig.selectedList;
|
30616
|
+
selectedList.forEach(function (item) {
|
30502
30617
|
var _a;
|
30503
|
-
var
|
30504
|
-
if (
|
30505
|
-
_this.
|
30618
|
+
var node = _this.treeControl.dataNodes.find(function (x) { return x.id === item.id; });
|
30619
|
+
if (node) {
|
30620
|
+
var nestedNode = _this.convertToNestedNode(node);
|
30621
|
+
nestedNode.isGroup = item.isGroup;
|
30622
|
+
nestedNode.groupId = item.groupId;
|
30623
|
+
_this.checkListSelection.select(node);
|
30624
|
+
_this._handleCheckNode(node);
|
30506
30625
|
((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) && item.children.forEach(function (child) {
|
30507
30626
|
var node = _this.treeControl.dataNodes.find(function (_x) { return _x.id === child.id; });
|
30508
30627
|
if (node) {
|
30509
|
-
_this.checkListSelection.select(node);
|
30510
30628
|
_this.onExpandAllParent(node);
|
30511
30629
|
}
|
30512
30630
|
});
|
30513
|
-
_this.onExpandAllParent(
|
30631
|
+
_this.onExpandAllParent(node);
|
30632
|
+
}
|
30633
|
+
});
|
30634
|
+
this.cdRef.detectChanges();
|
30635
|
+
};
|
30636
|
+
//Handle item selection changed
|
30637
|
+
SelectDepartmentTreeComponent.prototype._handleItemSelectionChanged = function () {
|
30638
|
+
var _this = this;
|
30639
|
+
this.checkListSelection.changed
|
30640
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30641
|
+
.subscribe(function (_b) {
|
30642
|
+
var added = _b.added, removed = _b.removed;
|
30643
|
+
var checkExistInResult = function (node) { return _this.resultSelected.findIndex(function (x) { return x.id === node.id; }) > -1; };
|
30644
|
+
if (added.length) {
|
30645
|
+
added.forEach(function (node) {
|
30646
|
+
var nestedNode = _this.convertToNestedNode(node);
|
30647
|
+
nestedNode.children = [];
|
30648
|
+
nestedNode.childCount = _this.getListChildrenOfNode(node).length;
|
30649
|
+
var existGroup = _this._getAllParentNode(node).map(function (item) { return _this.convertToNestedNode(item); }).find(function (x) { return x.isGroup; });
|
30650
|
+
if (!!existGroup) {
|
30651
|
+
nestedNode.groupId = existGroup.id;
|
30652
|
+
if (!existGroup.children.some(function (x) { return x.id === nestedNode.id; })) {
|
30653
|
+
existGroup.children.push(nestedNode);
|
30654
|
+
_this._onSelectionNodeChangeEvent('updated', [existGroup]);
|
30655
|
+
}
|
30656
|
+
if (!checkExistInResult(existGroup)) {
|
30657
|
+
_this.resultSelected.push(existGroup);
|
30658
|
+
_this._onSelectionNodeChangeEvent('added', [existGroup]);
|
30659
|
+
}
|
30660
|
+
_this.resultSelected.forEach(function (item, index) {
|
30661
|
+
if (item.groupId === existGroup.id) {
|
30662
|
+
_this.resultSelected.splice(index, 1);
|
30663
|
+
_this._onSelectionNodeChangeEvent('removed', [item]);
|
30664
|
+
}
|
30665
|
+
});
|
30666
|
+
return;
|
30667
|
+
}
|
30668
|
+
if (checkExistInResult(node))
|
30669
|
+
return;
|
30670
|
+
_this.resultSelected.push(nestedNode);
|
30671
|
+
_this._onSelectionNodeChangeEvent('added', [nestedNode]);
|
30672
|
+
});
|
30673
|
+
}
|
30674
|
+
if (removed.length) {
|
30675
|
+
removed.forEach(function (node) {
|
30676
|
+
var nestedNode = _this.convertToNestedNode(node);
|
30677
|
+
var children = _this.getListChildrenOfNode(node);
|
30678
|
+
if (nestedNode.isGroup) {
|
30679
|
+
var _item = _this.resultSelected.find(function (x) { return x.id === node.id; });
|
30680
|
+
if (!_item)
|
30681
|
+
return;
|
30682
|
+
children.forEach(function (item) {
|
30683
|
+
item.groupId = null;
|
30684
|
+
});
|
30685
|
+
_this.resultSelected.splice(_this.resultSelected.indexOf(_item), 1);
|
30686
|
+
_this._onSelectionNodeChangeEvent('removed', [_item]);
|
30687
|
+
return;
|
30688
|
+
}
|
30689
|
+
var group = _this.resultSelected.find(function (x) { return x.id === nestedNode.groupId; });
|
30690
|
+
if (!group) {
|
30691
|
+
var _item = _this.resultSelected.find(function (x) { return x.id === node.id; });
|
30692
|
+
if (!_item)
|
30693
|
+
return;
|
30694
|
+
_this.resultSelected.splice(_this.resultSelected.indexOf(_item), 1);
|
30695
|
+
_this._onSelectionNodeChangeEvent('removed', [_item]);
|
30696
|
+
return;
|
30697
|
+
}
|
30698
|
+
var arrCheck = _this.getListChildrenOfNode(node).concat(node);
|
30699
|
+
arrCheck.forEach(function (item) {
|
30700
|
+
var _node = _this.treeControl.dataNodes.find(function (x) { return x.id === item.id; });
|
30701
|
+
if (group.children.some(function (x) { return x.id === _node.id && !_this.checkListSelection.isSelected(_node); })) {
|
30702
|
+
var _item = group.children.find(function (x) { return x.id === item.id; });
|
30703
|
+
if (!_item)
|
30704
|
+
return;
|
30705
|
+
group.children.splice(group.children.indexOf(_item), 1);
|
30706
|
+
_this._onSelectionNodeChangeEvent('updated', [group]);
|
30707
|
+
}
|
30708
|
+
});
|
30709
|
+
});
|
30514
30710
|
}
|
30515
|
-
_this.resultSelected = __spreadArray(__spreadArray([], __read(_this.resultSingleSelected)), __read(_this.resultGroupSelected));
|
30516
30711
|
_this.onValueChangeEvent.emit(_this.resultSelected);
|
30517
30712
|
});
|
30518
30713
|
};
|
30519
|
-
SelectDepartmentTreeComponent.prototype.
|
30520
|
-
|
30714
|
+
SelectDepartmentTreeComponent.prototype._onSelectionNodeChangeEvent = function (state, data) {
|
30715
|
+
switch (state) {
|
30716
|
+
case 'removed':
|
30717
|
+
this.selectionNodeChangeEvent.emit({
|
30718
|
+
removed: data,
|
30719
|
+
added: [],
|
30720
|
+
updated: [],
|
30721
|
+
source: new collections.SelectionModel(true, this.resultSelected)
|
30722
|
+
});
|
30723
|
+
break;
|
30724
|
+
case 'updated':
|
30725
|
+
this.selectionNodeChangeEvent.emit({
|
30726
|
+
removed: [],
|
30727
|
+
added: [],
|
30728
|
+
updated: data,
|
30729
|
+
source: new collections.SelectionModel(true, this.resultSelected)
|
30730
|
+
});
|
30731
|
+
break;
|
30732
|
+
case 'added':
|
30733
|
+
this.selectionNodeChangeEvent.emit({
|
30734
|
+
removed: [],
|
30735
|
+
added: data,
|
30736
|
+
updated: [],
|
30737
|
+
source: new collections.SelectionModel(true, this.resultSelected)
|
30738
|
+
});
|
30739
|
+
break;
|
30740
|
+
default:
|
30741
|
+
return;
|
30742
|
+
}
|
30521
30743
|
};
|
30522
|
-
SelectDepartmentTreeComponent.prototype.
|
30523
|
-
this
|
30744
|
+
SelectDepartmentTreeComponent.prototype._handleSearchEvent = function () {
|
30745
|
+
var _this = this;
|
30746
|
+
this.searchDepartment$
|
30747
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
30748
|
+
.subscribe(function (result) {
|
30749
|
+
_this.resultSearch = [];
|
30750
|
+
if (result && result.length) {
|
30751
|
+
result.data.forEach(function (item) {
|
30752
|
+
var node = _this.treeControl.dataNodes.find(function (node) { return node.id === item.id; });
|
30753
|
+
var parents = node ? _this._getAllParentNode(node) : [];
|
30754
|
+
_this.resultSearch.push(Object.assign(Object.assign({}, item), { disabled: _this.checkSearchMappingTree && !node, path: __spreadArray(__spreadArray([], __read((parents.map(function (x, index) { return ({
|
30755
|
+
id: x.id,
|
30756
|
+
name: x.name,
|
30757
|
+
}); }).reverse() || []))), [
|
30758
|
+
{
|
30759
|
+
id: item.id,
|
30760
|
+
name: item.name,
|
30761
|
+
}
|
30762
|
+
]) }));
|
30763
|
+
});
|
30764
|
+
_this.getLoading$.next(false);
|
30765
|
+
_this.textResultSearch = _this.formSearchControl.value;
|
30766
|
+
_this._mapToResultSearch();
|
30767
|
+
_this._checkStateCheckboxAllSearch();
|
30768
|
+
_this.setIndexView(1);
|
30769
|
+
}
|
30770
|
+
});
|
30771
|
+
};
|
30772
|
+
SelectDepartmentTreeComponent.prototype._handleActiveNodeEvent = function () {
|
30773
|
+
var _this = this;
|
30774
|
+
this.scrollToNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30775
|
+
var delayTiming = _this.indexView === 1 ? 700 : 0;
|
30776
|
+
_this.setIndexView(0);
|
30777
|
+
return rxjs.of(val).pipe(operators.delay(delayTiming));
|
30778
|
+
})).subscribe(function (res) {
|
30779
|
+
_this.onScrollIntoNode(res);
|
30780
|
+
});
|
30781
|
+
this.getActiveNodeEvent$.pipe(operators.takeUntil(this.ngUnsubscribe), operators.switchMap(function (val) {
|
30782
|
+
_this.activeNode = val;
|
30783
|
+
return rxjs.timer(1500);
|
30784
|
+
})).subscribe(function (_) {
|
30785
|
+
_this.activeNode = '';
|
30786
|
+
});
|
30787
|
+
};
|
30788
|
+
SelectDepartmentTreeComponent.prototype.updateDataTree = function (data) {
|
30789
|
+
this.getDataTree$.next(data);
|
30790
|
+
};
|
30791
|
+
SelectDepartmentTreeComponent.prototype.setResultSearch = function (data) {
|
30792
|
+
this.getLoading$.next(false);
|
30793
|
+
this.searchDepartment$.next(data);
|
30524
30794
|
};
|
30525
30795
|
SelectDepartmentTreeComponent.prototype.onExpandNode = function (node) {
|
30526
30796
|
};
|
@@ -30532,8 +30802,6 @@
|
|
30532
30802
|
this._handleCheckNode(flatNode);
|
30533
30803
|
this.onScrollIntoNode(flatNode.id);
|
30534
30804
|
};
|
30535
|
-
SelectDepartmentTreeComponent.prototype.onSlideToggleChange = function () {
|
30536
|
-
};
|
30537
30805
|
SelectDepartmentTreeComponent.prototype.displayWhenSelectDepartmentOption = function ($event) {
|
30538
30806
|
return '';
|
30539
30807
|
};
|
@@ -30545,8 +30813,6 @@
|
|
30545
30813
|
else {
|
30546
30814
|
this._handleCheckNode(node);
|
30547
30815
|
}
|
30548
|
-
this.onValueChangeEvent.emit(this.resultSelected);
|
30549
|
-
this._mapToResultSearch();
|
30550
30816
|
this._checkStateCheckboxAllSearch();
|
30551
30817
|
};
|
30552
30818
|
SelectDepartmentTreeComponent.prototype._handleSelectOne = function (node) {
|
@@ -30575,7 +30841,6 @@
|
|
30575
30841
|
this.checkListSelection.deselect(flatNode);
|
30576
30842
|
flatNode && this._handleCheckNode(flatNode);
|
30577
30843
|
this._checkStateCheckboxAllSearch();
|
30578
|
-
this.onValueChangeEvent.emit(this.resultSelected);
|
30579
30844
|
};
|
30580
30845
|
SelectDepartmentTreeComponent.prototype.isIndeterminate = function (node) {
|
30581
30846
|
var _this = this;
|
@@ -30588,77 +30853,39 @@
|
|
30588
30853
|
return listCheck.every(function (item) { return _this.checkListSelection.isSelected(item); });
|
30589
30854
|
};
|
30590
30855
|
SelectDepartmentTreeComponent.prototype._handleCheckNode = function (node) {
|
30591
|
-
var _b, _c;
|
30592
|
-
var
|
30593
|
-
var
|
30594
|
-
|
30595
|
-
var children = this.treeDataSourceConfig.includeChildren && this.getListChildrenOfNode(node);
|
30596
|
-
children && (_b = this.checkListSelection).select.apply(_b, __spreadArray([], __read(children)));
|
30597
|
-
}
|
30598
|
-
else {
|
30599
|
-
var childSelected = this.getChildrenSelected(node);
|
30600
|
-
// check node is owner group or mode is 'include children' and remove all children
|
30601
|
-
(isOwnerGroup || this.treeDataSourceConfig.includeChildren) && (_c = this.checkListSelection).deselect.apply(_c, __spreadArray([], __read(childSelected)));
|
30602
|
-
}
|
30603
|
-
this._updateGroupResult(node);
|
30604
|
-
this._updateSingleResult();
|
30605
|
-
this.resultSelected = __spreadArray(__spreadArray([], __read(this.resultSingleSelected)), __read(this.resultGroupSelected));
|
30606
|
-
this._mapToResultSearch();
|
30607
|
-
};
|
30608
|
-
// Check group root contain node and re-update chilren
|
30609
|
-
SelectDepartmentTreeComponent.prototype._updateGroupResult = function (node) {
|
30856
|
+
var _b, _c, _d;
|
30857
|
+
var _this = this;
|
30858
|
+
var isSelected = this.checkListSelection.isSelected(node);
|
30859
|
+
var childSelected = this.getChildrenSelected(node);
|
30610
30860
|
var nestedNode = this.convertToNestedNode(node);
|
30611
|
-
|
30612
|
-
|
30613
|
-
|
30614
|
-
|
30615
|
-
|
30616
|
-
|
30617
|
-
|
30618
|
-
|
30861
|
+
if (isSelected) {
|
30862
|
+
// Check existed group
|
30863
|
+
var existedGroup_1 = this._getAllParentNode(node).find(function (x) { return _this.convertToNestedNode(x).isGroup; });
|
30864
|
+
if (!this.isIncludeChildren) {
|
30865
|
+
// nestedNode.isGroup = false;
|
30866
|
+
nestedNode.groupId = existedGroup_1 === null || existedGroup_1 === void 0 ? void 0 : existedGroup_1.id;
|
30867
|
+
return;
|
30868
|
+
}
|
30869
|
+
var children = this.getListChildrenOfNode(node);
|
30870
|
+
nestedNode.isGroup = !existedGroup_1 && !!children.length;
|
30871
|
+
if (!children.length)
|
30872
|
+
return;
|
30873
|
+
children.forEach(function (x) {
|
30874
|
+
var _node = _this.convertToNestedNode(x);
|
30875
|
+
_node.groupId = existedGroup_1 ? existedGroup_1.id : node.id;
|
30876
|
+
_node.isGroup = false;
|
30877
|
+
});
|
30878
|
+
(_b = this.checkListSelection).deselect.apply(_b, __spreadArray([], __read(childSelected.map(this.resetNode))));
|
30879
|
+
(_c = this.checkListSelection).select.apply(_c, __spreadArray([], __read(children.map(this.resetNode))));
|
30880
|
+
return;
|
30619
30881
|
}
|
30620
|
-
this.
|
30621
|
-
|
30622
|
-
|
30623
|
-
SelectDepartmentTreeComponent.prototype._updateSingleResult = function () {
|
30624
|
-
var _this = this;
|
30625
|
-
var excludeChildOfGroup = [];
|
30626
|
-
this.resultGroupSelected.forEach(function (gr) {
|
30627
|
-
excludeChildOfGroup = __spreadArray(__spreadArray([], __read(excludeChildOfGroup)), __read(gr.children.map(function (x) { return x.id; })));
|
30628
|
-
});
|
30629
|
-
this.resultSingleSelected = this.treeControl.dataNodes.filter(function (item) {
|
30630
|
-
var isSelected = _this.checkListSelection.isSelected(item);
|
30631
|
-
var existedGroup = _this._getExistedGroup(item);
|
30632
|
-
var isOwnerGroup = !!_this.resultGroupSelected.find(function (x) { return (x === null || x === void 0 ? void 0 : x.id) === item.id; });
|
30633
|
-
return isSelected && !existedGroup && !isOwnerGroup && !excludeChildOfGroup.includes(item.id);
|
30634
|
-
}).map(function (item) {
|
30635
|
-
var nestedNode = _this.convertToNestedNode(item);
|
30636
|
-
nestedNode.children = null;
|
30637
|
-
return nestedNode;
|
30638
|
-
});
|
30639
|
-
};
|
30640
|
-
SelectDepartmentTreeComponent.prototype._checkGroupSelected = function (childSelected) {
|
30641
|
-
var _this = this;
|
30642
|
-
this.resultGroupSelected = this.resultGroupSelected.filter(function (gr) {
|
30643
|
-
var flatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === gr.id; });
|
30644
|
-
var childSelectedInGroup = gr.children.filter(function (x) { return childSelected.includes(x); });
|
30645
|
-
gr.childCount = _this.getListChildrenOfNode(flatNode).length;
|
30646
|
-
// 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
|
30647
|
-
var arrChild = _this.treeDataSourceConfig.includeChildren ? childSelected : childSelectedInGroup;
|
30648
|
-
return gr.childCount > 0 && _this.checkListSelection.isSelected(flatNode) && !arrChild.find(function (_x) { return _x.id === gr.id; });
|
30649
|
-
});
|
30882
|
+
var deselectNodes = (this.isIncludeChildren || nestedNode.isGroup) ? childSelected : [node];
|
30883
|
+
(_d = this.checkListSelection).deselect.apply(_d, __spreadArray([], __read(deselectNodes)));
|
30884
|
+
nestedNode.isGroup = false;
|
30650
30885
|
};
|
30651
|
-
SelectDepartmentTreeComponent.prototype.
|
30652
|
-
|
30653
|
-
|
30654
|
-
var listGroupIds = this.resultGroupSelected.map(function (gr) { return gr.id; });
|
30655
|
-
var existedGroup;
|
30656
|
-
allParent.forEach(function (item) {
|
30657
|
-
if (listGroupIds.includes(item.id)) {
|
30658
|
-
existedGroup = _this.convertToNestedNode(item);
|
30659
|
-
}
|
30660
|
-
});
|
30661
|
-
return existedGroup;
|
30886
|
+
SelectDepartmentTreeComponent.prototype.resetNode = function (node) {
|
30887
|
+
node.isGroup = false;
|
30888
|
+
return node;
|
30662
30889
|
};
|
30663
30890
|
SelectDepartmentTreeComponent.prototype.getChildrenSelected = function (node) {
|
30664
30891
|
var _this = this;
|
@@ -30672,24 +30899,11 @@
|
|
30672
30899
|
return flatNodeList.map(function (item) { return _this.convertToNestedNode(item); });
|
30673
30900
|
};
|
30674
30901
|
SelectDepartmentTreeComponent.prototype.convertToNestedNode = function (node) {
|
30675
|
-
return this.flatTreeNodeMap.get(node);
|
30902
|
+
return this.flatTreeNodeMap.get(node) || {};
|
30676
30903
|
};
|
30677
30904
|
SelectDepartmentTreeComponent.prototype.convertToFlatNode = function (node) {
|
30678
30905
|
return this.nestedTreeNodeMap.get(node);
|
30679
30906
|
};
|
30680
|
-
SelectDepartmentTreeComponent.prototype._getRootSelected = function (node) {
|
30681
|
-
var _this = this;
|
30682
|
-
var parentList = this._getAllParentNode(node);
|
30683
|
-
var groupExist;
|
30684
|
-
if (parentList.length) {
|
30685
|
-
parentList.forEach(function (item) {
|
30686
|
-
if (_this.checkListSelection.isSelected(item)) {
|
30687
|
-
groupExist = item;
|
30688
|
-
}
|
30689
|
-
});
|
30690
|
-
}
|
30691
|
-
return groupExist;
|
30692
|
-
};
|
30693
30907
|
SelectDepartmentTreeComponent.prototype._getAllParentNode = function (node) {
|
30694
30908
|
var listParent = [];
|
30695
30909
|
var parent = this._getParentNode(node);
|
@@ -30735,12 +30949,13 @@
|
|
30735
30949
|
this.getActiveNodeEvent$.next(nodeId);
|
30736
30950
|
};
|
30737
30951
|
SelectDepartmentTreeComponent.prototype.onSearch = function () {
|
30738
|
-
|
30739
|
-
|
30740
|
-
|
30741
|
-
|
30952
|
+
this.getLoading$.next(true);
|
30953
|
+
this.setIndexView(1);
|
30954
|
+
this.onSearchEvent.emit(this.formSearchControl.value);
|
30955
|
+
if (!this.paginatorSearch)
|
30742
30956
|
return;
|
30743
|
-
|
30957
|
+
this.paginatorSearch.changePage(0);
|
30958
|
+
this.paginatorSearch.renderDisplayNumberOfpages();
|
30744
30959
|
};
|
30745
30960
|
SelectDepartmentTreeComponent.prototype.onClickResultItem = function (item) {
|
30746
30961
|
var node = this.treeControl.dataNodes.find(function (x) { return item.id === x.id; });
|
@@ -30766,7 +30981,6 @@
|
|
30766
30981
|
}
|
30767
30982
|
this._handleCheckResutlSearch(item);
|
30768
30983
|
this._checkStateCheckboxAllSearch();
|
30769
|
-
this.onValueChangeEvent.emit(this.resultSelected);
|
30770
30984
|
};
|
30771
30985
|
SelectDepartmentTreeComponent.prototype._mapToResultSearch = function () {
|
30772
30986
|
var _this = this;
|
@@ -30786,44 +31000,28 @@
|
|
30786
31000
|
SelectDepartmentTreeComponent.prototype.onSelectAllSearchResult = function (checked) {
|
30787
31001
|
var _this = this;
|
30788
31002
|
this.isSelectAllResultSearch = !checked;
|
30789
|
-
|
30790
|
-
|
30791
|
-
|
30792
|
-
|
30793
|
-
|
30794
|
-
|
30795
|
-
|
30796
|
-
|
30797
|
-
|
30798
|
-
});
|
30799
|
-
};
|
30800
|
-
if (this.treeDataSourceConfig.includeChildren) {
|
30801
|
-
var mainGroup = this.pagingResultSearch.filter(function (item) {
|
30802
|
-
var mainGroup = _this.pagingResultSearch.filter(function (item) {
|
30803
|
-
var node = _this.treeControl.dataNodes.find(function (x) { return x.id === item.id; });
|
30804
|
-
var existItemGroup = _this._getAllParentNode(node).filter(function (x) { return _this.pagingResultSearch.some(function (x1) { return x1.id === x.id; }); });
|
30805
|
-
return existItemGroup.length === 0;
|
30806
|
-
});
|
30807
|
-
handle(mainGroup);
|
30808
|
-
});
|
30809
|
-
}
|
30810
|
-
else {
|
30811
|
-
handle(this.pagingResultSearch);
|
30812
|
-
}
|
31003
|
+
this.resultSearch.length && this.resultSearch.forEach(function (item) {
|
31004
|
+
if (_this.isSelectAllResultSearch) {
|
31005
|
+
!_this.checkListSelectionSearch.isSelected(item) && _this.checkListSelectionSearch.select(item);
|
31006
|
+
}
|
31007
|
+
else {
|
31008
|
+
_this.checkListSelectionSearch.deselect(item);
|
31009
|
+
}
|
31010
|
+
_this._handleCheckResutlSearch(item);
|
31011
|
+
});
|
30813
31012
|
this._checkStateCheckboxAllSearch();
|
30814
31013
|
this.onValueChangeEvent.emit(this.resultSelected);
|
30815
31014
|
};
|
30816
31015
|
SelectDepartmentTreeComponent.prototype._checkStateCheckboxAllSearch = function () {
|
30817
31016
|
var _this = this;
|
30818
|
-
this.isSelectAllResultSearch = !!this.
|
30819
|
-
this.indeterminateSearchResult = !this.isSelectAllResultSearch && !!this.
|
31017
|
+
this.isSelectAllResultSearch = !!this.resultSearch.length && this.resultSearch.every(function (x) { return _this.checkListSelectionSearch.isSelected(x); });
|
31018
|
+
this.indeterminateSearchResult = !this.isSelectAllResultSearch && !!this.resultSearch.length && this.resultSearch.some(function (x) { return _this.checkListSelectionSearch.isSelected(x); });
|
30820
31019
|
};
|
30821
31020
|
SelectDepartmentTreeComponent.prototype.isDisableChecboxAllSearch = function () {
|
30822
|
-
return this.
|
31021
|
+
return this.resultSearch && this.resultSearch.every(function (x) { return x.disabled; });
|
30823
31022
|
};
|
30824
31023
|
SelectDepartmentTreeComponent.prototype.onPagingSearchResult = function (val) {
|
30825
|
-
this.
|
30826
|
-
this.pagingResultSearch = this.enablePagingSearch ? this.resultSearch.slice(val.pageIndex * val.pageSize, (val.pageIndex * val.pageSize) + val.pageSize) : this.resultSearch;
|
31024
|
+
this.getLoading$.next(true);
|
30827
31025
|
this._checkStateCheckboxAllSearch();
|
30828
31026
|
this.onPagingSearchEvent.emit(val);
|
30829
31027
|
};
|
@@ -30832,7 +31030,7 @@
|
|
30832
31030
|
};
|
30833
31031
|
SelectDepartmentTreeComponent.prototype.setIndexView = function (index) {
|
30834
31032
|
if (index === 1) {
|
30835
|
-
this.
|
31033
|
+
this.isIncludeChildren = false;
|
30836
31034
|
}
|
30837
31035
|
this.indexView = index;
|
30838
31036
|
};
|
@@ -30840,18 +31038,18 @@
|
|
30840
31038
|
return JSON.parse(localStorage.getItem('selectedNode'));
|
30841
31039
|
};
|
30842
31040
|
SelectDepartmentTreeComponent.prototype.setSelectedNodeStorage = function (node) {
|
30843
|
-
this.
|
31041
|
+
this.isIncludeChildren && localStorage.setItem('selectedNode', JSON.stringify(node));
|
30844
31042
|
};
|
30845
31043
|
return SelectDepartmentTreeComponent;
|
30846
31044
|
}());
|
30847
31045
|
SelectDepartmentTreeComponent.decorators = [
|
30848
31046
|
{ type: i0.Component, args: [{
|
30849
31047
|
selector: 'qms-select-department-tree',
|
30850
|
-
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",
|
31048
|
+
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",
|
30851
31049
|
animations: [
|
30852
31050
|
AnimationTreeDepartment
|
30853
31051
|
],
|
30854
|
-
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%)}}"]
|
31052
|
+
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%)}}"]
|
30855
31053
|
},] }
|
30856
31054
|
];
|
30857
31055
|
SelectDepartmentTreeComponent.ctorParameters = function () { return [
|
@@ -30860,13 +31058,17 @@
|
|
30860
31058
|
{ type: QMSIconRegistryService },
|
30861
31059
|
{ type: icon.MatIconRegistry },
|
30862
31060
|
{ type: i0.ElementRef },
|
30863
|
-
{ type: TranslateLibraryService }
|
31061
|
+
{ type: TranslateLibraryService },
|
31062
|
+
{ type: QMSSelectDepartmentTreeGlobalService }
|
30864
31063
|
]; };
|
30865
31064
|
SelectDepartmentTreeComponent.propDecorators = {
|
30866
31065
|
enableIncludeChild: [{ type: i0.Input }],
|
30867
31066
|
enableTreeSearch: [{ type: i0.Input }],
|
30868
31067
|
isSelectOne: [{ type: i0.Input }],
|
30869
31068
|
activeViewSearch: [{ type: i0.Input }],
|
31069
|
+
height: [{ type: i0.Input }],
|
31070
|
+
customClass: [{ type: i0.Input }],
|
31071
|
+
rowsSkeleton: [{ type: i0.Input }],
|
30870
31072
|
treeData: [{ type: i0.Input }],
|
30871
31073
|
selectedList: [{ type: i0.Input }],
|
30872
31074
|
selectIncludeLabel: [{ type: i0.Input }],
|
@@ -30874,7 +31076,9 @@
|
|
30874
31076
|
enablePagingSearch: [{ type: i0.Input }],
|
30875
31077
|
onSearchEvent: [{ type: i0.Output }],
|
30876
31078
|
onPagingSearchEvent: [{ type: i0.Output }],
|
30877
|
-
onValueChangeEvent: [{ type: i0.Output }]
|
31079
|
+
onValueChangeEvent: [{ type: i0.Output }],
|
31080
|
+
selectionNodeChangeEvent: [{ type: i0.Output }],
|
31081
|
+
paginatorSearch: [{ type: i0.ViewChild, args: ['paginatorSearch',] }]
|
30878
31082
|
};
|
30879
31083
|
|
30880
31084
|
var QMSSelectDepartmentTreeModule = /** @class */ (function () {
|
@@ -30953,6 +31157,16 @@
|
|
30953
31157
|
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
|
30954
31158
|
]),
|
30955
31159
|
]),
|
31160
|
+
animations$1.trigger('inOutAnimation_2', [
|
31161
|
+
animations$1.transition(':enter', [
|
31162
|
+
animations$1.style({ opacity: 0, transform: 'translateX(-10px)' }),
|
31163
|
+
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1, transform: 'none' }))
|
31164
|
+
]),
|
31165
|
+
animations$1.transition(':leave', [
|
31166
|
+
animations$1.style({ opacity: 1, filter: 'blur(5px)' }),
|
31167
|
+
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 0 }))
|
31168
|
+
]),
|
31169
|
+
]),
|
30956
31170
|
animations$1.trigger('rotateAnimation', [
|
30957
31171
|
animations$1.transition(':enter', [
|
30958
31172
|
animations$1.style({ transform: 'scale(0) rotate(-180deg)' }),
|
@@ -30972,44 +31186,37 @@
|
|
30972
31186
|
animations$1.style({ maxHeight: '175px', minHeight: '40px', opacity: 1 }),
|
30973
31187
|
animations$1.animate('0.1s ease-out', animations$1.style({ minHeight: 0, maxHeight: 0, opacity: 0 }))
|
30974
31188
|
])
|
31189
|
+
]),
|
31190
|
+
animations$1.trigger('updateItemAnimation', [
|
31191
|
+
animations$1.transition('void => *', [animations$1.animate('0.3s', animations$1.keyframes([
|
31192
|
+
animations$1.style({
|
31193
|
+
boxShadow: 'rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px',
|
31194
|
+
background: '#c8d6ea',
|
31195
|
+
offset: 0
|
31196
|
+
}),
|
31197
|
+
animations$1.style({
|
31198
|
+
boxShadow: "*",
|
31199
|
+
background: '*',
|
31200
|
+
offset: 1
|
31201
|
+
})
|
31202
|
+
]))]),
|
30975
31203
|
])
|
30976
31204
|
];
|
30977
31205
|
|
30978
|
-
var QMSSelectDepartmentGlobalService = /** @class */ (function () {
|
30979
|
-
function QMSSelectDepartmentGlobalService() {
|
30980
|
-
this.getDataTree$ = new rxjs.BehaviorSubject([]);
|
30981
|
-
this.searchDepartment$ = new rxjs.Subject();
|
30982
|
-
}
|
30983
|
-
QMSSelectDepartmentGlobalService.prototype.updateDataTree = function (data) {
|
30984
|
-
this.getDataTree$.next(data);
|
30985
|
-
};
|
30986
|
-
QMSSelectDepartmentGlobalService.prototype.setResultSearch = function (data) {
|
30987
|
-
this.searchDepartment$.next(data);
|
30988
|
-
};
|
30989
|
-
return QMSSelectDepartmentGlobalService;
|
30990
|
-
}());
|
30991
|
-
QMSSelectDepartmentGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectDepartmentGlobalService_Factory() { return new QMSSelectDepartmentGlobalService(); }, token: QMSSelectDepartmentGlobalService, providedIn: "root" });
|
30992
|
-
QMSSelectDepartmentGlobalService.decorators = [
|
30993
|
-
{ type: i0.Injectable, args: [{
|
30994
|
-
providedIn: 'root'
|
30995
|
-
},] }
|
30996
|
-
];
|
30997
|
-
|
30998
31206
|
var ɵ0$1 = {
|
30999
31207
|
clickAction: 'noop'
|
31000
31208
|
};
|
31001
31209
|
var SelectDepartmentComponent = /** @class */ (function () {
|
31002
|
-
function SelectDepartmentComponent(
|
31210
|
+
function SelectDepartmentComponent(cdRef, dialogRef, data, trans) {
|
31003
31211
|
var _this = this;
|
31004
|
-
this.selectDepartmentService = selectDepartmentService;
|
31005
31212
|
this.cdRef = cdRef;
|
31006
31213
|
this.dialogRef = dialogRef;
|
31007
31214
|
this.data = data;
|
31008
31215
|
this.trans = trans;
|
31009
31216
|
this.ngUnsubscribe = new rxjs.Subject();
|
31217
|
+
this.onPagingEvent = new i0.EventEmitter();
|
31010
31218
|
this.popupData = new SelectDepartmentPopupData();
|
31011
31219
|
this.groupIncludeChild = [];
|
31012
|
-
this.singleItem = [];
|
31013
31220
|
this.resultSelected = [];
|
31014
31221
|
this.onSearchEvent = new i0.EventEmitter();
|
31015
31222
|
this.resultSearch = [];
|
@@ -31020,12 +31227,7 @@
|
|
31020
31227
|
}
|
31021
31228
|
});
|
31022
31229
|
// Init popup data
|
31023
|
-
this.popupData = ___namespace.cloneDeep(data);
|
31024
|
-
this.selectDepartmentService.searchDepartment$
|
31025
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
31026
|
-
.subscribe(function (result) {
|
31027
|
-
_this.treeDepartment.setResultSearch(result);
|
31028
|
-
});
|
31230
|
+
this.popupData = ___namespace.cloneDeep(this.data);
|
31029
31231
|
}
|
31030
31232
|
SelectDepartmentComponent.prototype.ngAfterViewInit = function () {
|
31031
31233
|
this.cdRef.detectChanges();
|
@@ -31055,9 +31257,17 @@
|
|
31055
31257
|
var _this = this;
|
31056
31258
|
this.resultSelected = data.map(function (item) {
|
31057
31259
|
var _a;
|
31058
|
-
return Object.assign(Object.assign({}, item), { tooltip: ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) ? _this.formatString(_this.LANG.
|
31260
|
+
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 });
|
31059
31261
|
});
|
31060
31262
|
};
|
31263
|
+
SelectDepartmentComponent.prototype.generateTootip = function (node) {
|
31264
|
+
return node.isGroup ? this.formatString(this.LANG.TOOLTIP_INCLUDE_SUB_DEPARTMENT, node.name, node.children.length.toString()) : node.name;
|
31265
|
+
};
|
31266
|
+
SelectDepartmentComponent.prototype.updateResultSearch = function (data) {
|
31267
|
+
if (!this.treeDepartment)
|
31268
|
+
return;
|
31269
|
+
this.treeDepartment.setResultSearch(data);
|
31270
|
+
};
|
31061
31271
|
SelectDepartmentComponent.prototype.formatString = function () {
|
31062
31272
|
var replacements = [];
|
31063
31273
|
for (var _i = 0; _i < arguments.length; _i++) {
|
@@ -31075,26 +31285,26 @@
|
|
31075
31285
|
SelectDepartmentComponent.decorators = [
|
31076
31286
|
{ type: i0.Component, args: [{
|
31077
31287
|
selector: 'qms-select-department',
|
31078
|
-
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 [
|
31288
|
+
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",
|
31079
31289
|
providers: [
|
31080
31290
|
{
|
31081
31291
|
provide: checkbox.MAT_CHECKBOX_DEFAULT_OPTIONS,
|
31082
31292
|
useValue: ɵ0$1
|
31083
31293
|
}
|
31084
31294
|
],
|
31085
|
-
animations: SelectDepartmentAnimationTrigger,
|
31086
|
-
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}"]
|
31295
|
+
animations: [SelectDepartmentAnimationTrigger],
|
31296
|
+
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}"]
|
31087
31297
|
},] }
|
31088
31298
|
];
|
31089
31299
|
SelectDepartmentComponent.ctorParameters = function () { return [
|
31090
|
-
{ type: QMSSelectDepartmentGlobalService },
|
31091
31300
|
{ type: i0.ChangeDetectorRef },
|
31092
31301
|
{ type: dialog.MatDialogRef },
|
31093
31302
|
{ type: SelectDepartmentPopupData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
31094
31303
|
{ type: TranslateLibraryService }
|
31095
31304
|
]; };
|
31096
31305
|
SelectDepartmentComponent.propDecorators = {
|
31097
|
-
treeDepartment: [{ type: i0.ViewChild, args: ['treeDepartment',] }]
|
31306
|
+
treeDepartment: [{ type: i0.ViewChild, args: ['treeDepartment',] }],
|
31307
|
+
onPagingEvent: [{ type: i0.Output }]
|
31098
31308
|
};
|
31099
31309
|
|
31100
31310
|
var QMSSelectDepartmentModule = /** @class */ (function () {
|
@@ -31105,7 +31315,7 @@
|
|
31105
31315
|
QMSSelectDepartmentModule.decorators = [
|
31106
31316
|
{ type: i0.NgModule, args: [{
|
31107
31317
|
declarations: [
|
31108
|
-
SelectDepartmentComponent
|
31318
|
+
SelectDepartmentComponent,
|
31109
31319
|
],
|
31110
31320
|
imports: [
|
31111
31321
|
i1.CommonModule,
|
@@ -31140,6 +31350,26 @@
|
|
31140
31350
|
},] }
|
31141
31351
|
];
|
31142
31352
|
|
31353
|
+
var QMSSelectDepartmentGlobalService = /** @class */ (function () {
|
31354
|
+
function QMSSelectDepartmentGlobalService() {
|
31355
|
+
this.getDataTree$ = new rxjs.BehaviorSubject([]);
|
31356
|
+
this.searchDepartment$ = new rxjs.Subject();
|
31357
|
+
}
|
31358
|
+
QMSSelectDepartmentGlobalService.prototype.updateDataTree = function (data) {
|
31359
|
+
this.getDataTree$.next(data);
|
31360
|
+
};
|
31361
|
+
QMSSelectDepartmentGlobalService.prototype.setResultSearch = function (data) {
|
31362
|
+
this.searchDepartment$.next(data);
|
31363
|
+
};
|
31364
|
+
return QMSSelectDepartmentGlobalService;
|
31365
|
+
}());
|
31366
|
+
QMSSelectDepartmentGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectDepartmentGlobalService_Factory() { return new QMSSelectDepartmentGlobalService(); }, token: QMSSelectDepartmentGlobalService, providedIn: "root" });
|
31367
|
+
QMSSelectDepartmentGlobalService.decorators = [
|
31368
|
+
{ type: i0.Injectable, args: [{
|
31369
|
+
providedIn: 'root'
|
31370
|
+
},] }
|
31371
|
+
];
|
31372
|
+
|
31143
31373
|
exports.OptionSelectAccessEnum = void 0;
|
31144
31374
|
(function (OptionSelectAccessEnum) {
|
31145
31375
|
OptionSelectAccessEnum[OptionSelectAccessEnum["PERSON"] = 0] = "PERSON";
|
@@ -31147,6 +31377,68 @@
|
|
31147
31377
|
OptionSelectAccessEnum[OptionSelectAccessEnum["DEPARTMENT"] = 2] = "DEPARTMENT";
|
31148
31378
|
})(exports.OptionSelectAccessEnum || (exports.OptionSelectAccessEnum = {}));
|
31149
31379
|
|
31380
|
+
var SelectAccessAnimationTrigger = [
|
31381
|
+
animations$1.trigger('inOutAnimation', [
|
31382
|
+
animations$1.transition(':enter', [
|
31383
|
+
animations$1.style({ opacity: 0 }),
|
31384
|
+
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
|
31385
|
+
])
|
31386
|
+
]),
|
31387
|
+
animations$1.trigger('inOutAnimation_2', [
|
31388
|
+
animations$1.transition(':enter', [
|
31389
|
+
animations$1.style({ opacity: 0, transform: 'translateY(-5px)' }),
|
31390
|
+
animations$1.animate('0.2s 0.15s ease-in', animations$1.style({ opacity: 1, transform: 'none' }))
|
31391
|
+
]),
|
31392
|
+
animations$1.transition(':leave', [
|
31393
|
+
animations$1.style({ opacity: 1, filter: 'blur(5px)', transform: 'none' }),
|
31394
|
+
animations$1.animate('0.15s ease-out', animations$1.style({ opacity: 0, transform: 'translateX(-10px)' }))
|
31395
|
+
]),
|
31396
|
+
]),
|
31397
|
+
animations$1.trigger('listAnimation', [
|
31398
|
+
animations$1.transition('* => *', [
|
31399
|
+
animations$1.query(':enter', [
|
31400
|
+
animations$1.style({ opacity: 0, transform: 'translateY(-100%)' }),
|
31401
|
+
animations$1.stagger(30, [
|
31402
|
+
animations$1.animate('0.4s cubic-bezier(0.23, 1, 0.320, 1)', animations$1.style({ opacity: 1, transform: 'none' }))
|
31403
|
+
])
|
31404
|
+
], { optional: true })
|
31405
|
+
])
|
31406
|
+
]),
|
31407
|
+
animations$1.trigger('updateItemAnimation', [
|
31408
|
+
animations$1.transition('void => *', [animations$1.animate('0.3s', animations$1.keyframes([
|
31409
|
+
animations$1.style({
|
31410
|
+
boxShadow: 'rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px',
|
31411
|
+
background: '#c8d6ea',
|
31412
|
+
offset: 0
|
31413
|
+
}),
|
31414
|
+
animations$1.style({
|
31415
|
+
boxShadow: "*",
|
31416
|
+
background: '*',
|
31417
|
+
offset: 1
|
31418
|
+
})
|
31419
|
+
]))]),
|
31420
|
+
])
|
31421
|
+
];
|
31422
|
+
|
31423
|
+
var QMSAccessPagingChangeModel = /** @class */ (function (_super) {
|
31424
|
+
__extends(QMSAccessPagingChangeModel, _super);
|
31425
|
+
function QMSAccessPagingChangeModel() {
|
31426
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
31427
|
+
}
|
31428
|
+
return QMSAccessPagingChangeModel;
|
31429
|
+
}(paginator.PageEvent));
|
31430
|
+
var QMSAccessPagingModel = /** @class */ (function (_super) {
|
31431
|
+
__extends(QMSAccessPagingModel, _super);
|
31432
|
+
function QMSAccessPagingModel() {
|
31433
|
+
var _this = _super.call(this) || this;
|
31434
|
+
_this.data = [];
|
31435
|
+
_this.pageSize = 10;
|
31436
|
+
_this.pageIndex = 0;
|
31437
|
+
return _this;
|
31438
|
+
}
|
31439
|
+
return QMSAccessPagingModel;
|
31440
|
+
}(paginator.PageEvent));
|
31441
|
+
|
31150
31442
|
var QMSSelectAccessResult = /** @class */ (function () {
|
31151
31443
|
function QMSSelectAccessResult() {
|
31152
31444
|
this.userGroups = [];
|
@@ -31157,11 +31449,11 @@
|
|
31157
31449
|
}());
|
31158
31450
|
var QMSSelectAccessData = /** @class */ (function () {
|
31159
31451
|
function QMSSelectAccessData() {
|
31160
|
-
this.accessUserGroups = [];
|
31161
31452
|
this.accessDepartments = [];
|
31162
|
-
this.accessPersons = [];
|
31163
31453
|
this.selectedData = new QMSSelectAccessResult();
|
31164
31454
|
this.selectIncludeChildTreeLabel = '';
|
31455
|
+
this.accessPersons = new QMSAccessPagingModel();
|
31456
|
+
this.accessUserGroups = new QMSAccessPagingModel();
|
31165
31457
|
}
|
31166
31458
|
return QMSSelectAccessData;
|
31167
31459
|
}());
|
@@ -31191,25 +31483,6 @@
|
|
31191
31483
|
},] }
|
31192
31484
|
];
|
31193
31485
|
|
31194
|
-
var SelectAccessAnimationTrigger = [
|
31195
|
-
animations$1.trigger('inOutAnimation', [
|
31196
|
-
animations$1.transition(':enter', [
|
31197
|
-
animations$1.style({ opacity: 0 }),
|
31198
|
-
animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
|
31199
|
-
]),
|
31200
|
-
]),
|
31201
|
-
animations$1.trigger('listAnimation', [
|
31202
|
-
animations$1.transition('* => *', [
|
31203
|
-
animations$1.query(':enter', [
|
31204
|
-
animations$1.style({ opacity: 0, transform: 'translateY(-100%)' }),
|
31205
|
-
animations$1.stagger(25, [
|
31206
|
-
animations$1.animate('0.4s cubic-bezier(0.23, 1, 0.320, 1)', animations$1.style({ opacity: 1, transform: 'none' }))
|
31207
|
-
])
|
31208
|
-
], { optional: true })
|
31209
|
-
])
|
31210
|
-
])
|
31211
|
-
];
|
31212
|
-
|
31213
31486
|
var QMSSelectAccessDialog = /** @class */ (function () {
|
31214
31487
|
function QMSSelectAccessDialog() {
|
31215
31488
|
this.enableSelectPerson = true;
|
@@ -31226,6 +31499,7 @@
|
|
31226
31499
|
};
|
31227
31500
|
this.titleDialog = '';
|
31228
31501
|
this.titleResult = '';
|
31502
|
+
this.sizeUpdateDefault = '1024px';
|
31229
31503
|
}
|
31230
31504
|
return QMSSelectAccessDialog;
|
31231
31505
|
}());
|
@@ -31235,7 +31509,6 @@
|
|
31235
31509
|
};
|
31236
31510
|
var QMSSelectAccessDialogComponent = /** @class */ (function () {
|
31237
31511
|
function QMSSelectAccessDialogComponent(dialogRef, dialogData, translate, _fb, cdRef) {
|
31238
|
-
var _this = this;
|
31239
31512
|
this.dialogRef = dialogRef;
|
31240
31513
|
this.dialogData = dialogData;
|
31241
31514
|
this.translate = translate;
|
@@ -31245,69 +31518,91 @@
|
|
31245
31518
|
this.optionSelect = new forms.FormControl();
|
31246
31519
|
this.OPTION_ENUM = exports.OptionSelectAccessEnum;
|
31247
31520
|
this.options = [];
|
31521
|
+
this._departmentSelected = [];
|
31248
31522
|
this.userGroupForm = new forms.FormControl('');
|
31249
31523
|
this.getLoading$ = new rxjs.BehaviorSubject(false);
|
31250
31524
|
this.onSearchPersonEvent = new i0.EventEmitter();
|
31251
31525
|
this.onSearchPersonFreeTextEvent = new i0.EventEmitter();
|
31252
31526
|
this.onSearchUserGroupEvent = new i0.EventEmitter();
|
31253
31527
|
this.onSearchDepartmentEvent = new i0.EventEmitter();
|
31528
|
+
this.onPagingEvent = new i0.EventEmitter();
|
31529
|
+
this.onSelectOptionChange$ = new rxjs.Subject();
|
31530
|
+
this.departmentResultClone = [];
|
31254
31531
|
/** list filtered by search keyword */
|
31532
|
+
this.optionFilterPersonDataGlobal = {
|
31533
|
+
departments: [],
|
31534
|
+
userGroups: []
|
31535
|
+
};
|
31255
31536
|
this.filteredSearchTextBox = {
|
31256
|
-
department: new rxjs.
|
31257
|
-
|
31537
|
+
department: new rxjs.BehaviorSubject([]),
|
31538
|
+
userGroup: new rxjs.BehaviorSubject([]),
|
31258
31539
|
};
|
31259
|
-
this.getPerson$ = new rxjs.BehaviorSubject(
|
31260
|
-
this.getUserGroup$ = new rxjs.BehaviorSubject(
|
31540
|
+
this.getPerson$ = new rxjs.BehaviorSubject(new QMSAccessPagingModel());
|
31541
|
+
this.getUserGroup$ = new rxjs.BehaviorSubject(new QMSAccessPagingModel());
|
31261
31542
|
this.PAGINATION_SIZE = exports.PaginationSize;
|
31543
|
+
this.PAGE_SIZE_OPTION = [5, 10, 15, 20, 25, 100];
|
31262
31544
|
this.resultAccess = new QMSSelectAccessResult();
|
31263
|
-
this.
|
31264
|
-
|
31265
|
-
|
31266
|
-
length: 0
|
31267
|
-
};
|
31268
|
-
this.resultAccess = ___namespace.cloneDeep(this.dialogData.data.selectedData);
|
31269
|
-
this.optionSelect.valueChanges
|
31270
|
-
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31271
|
-
.subscribe(function (_) {
|
31272
|
-
_this.resetPagingConfig();
|
31273
|
-
});
|
31274
|
-
// Filtered Option select person
|
31275
|
-
this.filteredSearchTextBox.role.next(this.dialogData.data.accessUserGroups);
|
31276
|
-
this.filteredSearchTextBox.department.next(this.dialogData.data.accessDepartments);
|
31277
|
-
this.updatePersonFilter(this.dialogData.data.accessPersons);
|
31278
|
-
this.updateUserGroupFilter(this.dialogData.data.accessUserGroups);
|
31545
|
+
this.arrSkeleton = new Array(8).fill(0);
|
31546
|
+
this.resultAccess = ___namespace.cloneDeep(Object.assign(Object.assign({}, this.dialogData.data.selectedData), { departments: [] }));
|
31547
|
+
this._departmentSelected = ___namespace.cloneDeep(this.dialogData.data.selectedData.departments);
|
31279
31548
|
}
|
31549
|
+
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "selectedDepartments", {
|
31550
|
+
get: function () {
|
31551
|
+
var departmentSelected = [];
|
31552
|
+
this._departmentSelected.forEach(function (x) {
|
31553
|
+
var _a;
|
31554
|
+
departmentSelected.push({
|
31555
|
+
id: x.id,
|
31556
|
+
groupId: x.groupId,
|
31557
|
+
isGroup: x.isGroup
|
31558
|
+
});
|
31559
|
+
if (!((_a = x.children) === null || _a === void 0 ? void 0 : _a.length))
|
31560
|
+
return;
|
31561
|
+
departmentSelected.push.apply(departmentSelected, __spreadArray([], __read((x.children.map(function (item) { return ({
|
31562
|
+
id: item.id,
|
31563
|
+
groupId: item.groupId,
|
31564
|
+
isGroup: item.isGroup
|
31565
|
+
}); })))));
|
31566
|
+
});
|
31567
|
+
return departmentSelected || [];
|
31568
|
+
},
|
31569
|
+
enumerable: false,
|
31570
|
+
configurable: true
|
31571
|
+
});
|
31280
31572
|
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "tree", {
|
31281
31573
|
set: function (data) {
|
31282
|
-
|
31283
|
-
this.treeDepartment = data;
|
31284
|
-
}
|
31574
|
+
this.treeDepartment = data;
|
31285
31575
|
},
|
31286
31576
|
enumerable: false,
|
31287
31577
|
configurable: true
|
31288
31578
|
});
|
31289
31579
|
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "personFiltered", {
|
31290
31580
|
get: function () {
|
31581
|
+
var _a;
|
31291
31582
|
var persons = this.getPerson$.value;
|
31292
31583
|
var ids = this.resultAccess.persons.map(function (x) { return x.id; });
|
31293
|
-
persons.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31294
|
-
return persons;
|
31584
|
+
(_a = persons.data) === null || _a === void 0 ? void 0 : _a.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31585
|
+
return persons.data || [];
|
31295
31586
|
},
|
31296
31587
|
enumerable: false,
|
31297
31588
|
configurable: true
|
31298
31589
|
});
|
31299
31590
|
Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "userGroupFiltered", {
|
31300
31591
|
get: function () {
|
31592
|
+
var _a;
|
31301
31593
|
var userGroups = this.getUserGroup$.value;
|
31302
31594
|
var ids = this.resultAccess.userGroups.map(function (x) { return x.id; });
|
31303
|
-
userGroups.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31304
|
-
return userGroups;
|
31595
|
+
(_a = userGroups.data) === null || _a === void 0 ? void 0 : _a.forEach(function (x) { return x.selected = ids.includes(x.id); });
|
31596
|
+
return userGroups.data || [];
|
31305
31597
|
},
|
31306
31598
|
enumerable: false,
|
31307
31599
|
configurable: true
|
31308
31600
|
});
|
31309
|
-
|
31601
|
+
;
|
31602
|
+
QMSSelectAccessDialogComponent.prototype.ngAfterContentInit = function () {
|
31310
31603
|
this.cdRef.detectChanges();
|
31604
|
+
};
|
31605
|
+
QMSSelectAccessDialogComponent.prototype.ngAfterViewInit = function () {
|
31311
31606
|
this.cdRef.detectChanges();
|
31312
31607
|
};
|
31313
31608
|
QMSSelectAccessDialogComponent.prototype.ngOnInit = function () {
|
@@ -31318,46 +31613,15 @@
|
|
31318
31613
|
}
|
31319
31614
|
});
|
31320
31615
|
this._buildOptionSelect();
|
31321
|
-
this.buildPersonForm();
|
31322
|
-
// Filter person by roles
|
31323
|
-
this.personForm.get('roleFilter').valueChanges
|
31324
|
-
.pipe(operators.takeUntil(this.ngUnsubcribe), operators.debounceTime(500))
|
31325
|
-
.subscribe(function (keyword) {
|
31326
|
-
if (!_this.dialogData.data.accessUserGroups) {
|
31327
|
-
return;
|
31328
|
-
}
|
31329
|
-
if (!keyword) {
|
31330
|
-
_this.filteredSearchTextBox.role.next(_this.dialogData.data.accessUserGroups);
|
31331
|
-
return;
|
31332
|
-
}
|
31333
|
-
_this.filteredSearchTextBox.role.next(_this.dialogData.data.accessUserGroups.filter(function (role) { return role.name.toLocaleLowerCase().includes(keyword.toLocaleLowerCase()); }));
|
31334
|
-
});
|
31335
|
-
// Filter person by departments
|
31336
|
-
this.personForm.get('departmentFilter').valueChanges
|
31337
|
-
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31338
|
-
.subscribe(function () {
|
31339
|
-
if (!_this.dialogData.data.accessDepartments) {
|
31340
|
-
return;
|
31341
|
-
}
|
31342
|
-
var search = _this.personForm.get('departmentFilter').value;
|
31343
|
-
if (!search) {
|
31344
|
-
_this.filteredSearchTextBox.department.next(_this.dialogData.data.accessDepartments.slice());
|
31345
|
-
}
|
31346
|
-
else {
|
31347
|
-
search = search.toLowerCase();
|
31348
|
-
_this.filteredSearchTextBox.department.next(_this.dialogData.data.accessDepartments.filter(function (x) { return x.name.toLowerCase().indexOf(search) > -1; }));
|
31349
|
-
}
|
31350
|
-
});
|
31351
31616
|
this.getLoading$.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31352
31617
|
.subscribe(function (response) {
|
31353
31618
|
if (response) {
|
31354
|
-
_this.personForm.disable();
|
31355
|
-
_this.userGroupForm.disable();
|
31356
|
-
|
31357
|
-
else {
|
31358
|
-
_this.personForm.enable();
|
31359
|
-
_this.userGroupForm.enable();
|
31619
|
+
_this.personForm && _this.personForm.disable();
|
31620
|
+
_this.userGroupForm && _this.userGroupForm.disable();
|
31621
|
+
return;
|
31360
31622
|
}
|
31623
|
+
_this.personForm && _this.personForm.enable();
|
31624
|
+
_this.userGroupForm && _this.userGroupForm.enable();
|
31361
31625
|
});
|
31362
31626
|
};
|
31363
31627
|
QMSSelectAccessDialogComponent.prototype.ngOnDestroy = function () {
|
@@ -31385,10 +31649,42 @@
|
|
31385
31649
|
}
|
31386
31650
|
}
|
31387
31651
|
if (this.options.length === 1) {
|
31388
|
-
this.dialogRef.updateSize(
|
31652
|
+
this.dialogRef.updateSize(this.dialogData.sizeUpdateDefault);
|
31389
31653
|
this.optionSelect.setValue(this.options[0].type);
|
31390
31654
|
}
|
31391
31655
|
};
|
31656
|
+
QMSSelectAccessDialogComponent.prototype._filterOptionPersonChange = function () {
|
31657
|
+
var _this = this;
|
31658
|
+
// Filter person by roles
|
31659
|
+
this.personForm.get('userGroupFilter').valueChanges
|
31660
|
+
.pipe(operators.takeUntil(this.ngUnsubcribe), operators.debounceTime(500))
|
31661
|
+
.subscribe(function (keyword) {
|
31662
|
+
if (!_this.optionFilterPersonDataGlobal.userGroups.length) {
|
31663
|
+
return;
|
31664
|
+
}
|
31665
|
+
if (!keyword) {
|
31666
|
+
_this.filteredSearchTextBox.userGroup.next(_this.optionFilterPersonDataGlobal.userGroups);
|
31667
|
+
return;
|
31668
|
+
}
|
31669
|
+
var resultFilter = _this.optionFilterPersonDataGlobal.userGroups.filter(function (userGroup) { return userGroup.name.toLocaleLowerCase().includes(keyword.toLocaleLowerCase()); });
|
31670
|
+
_this.filteredSearchTextBox.userGroup.next(resultFilter);
|
31671
|
+
});
|
31672
|
+
// Filter person by departments
|
31673
|
+
this.personForm.get('departmentFilter').valueChanges
|
31674
|
+
.pipe(operators.takeUntil(this.ngUnsubcribe))
|
31675
|
+
.subscribe(function () {
|
31676
|
+
if (!_this.optionFilterPersonDataGlobal.departments) {
|
31677
|
+
return;
|
31678
|
+
}
|
31679
|
+
var search = _this.personForm.get('departmentFilter').value;
|
31680
|
+
if (!search) {
|
31681
|
+
_this.filteredSearchTextBox.department.next(_this.optionFilterPersonDataGlobal.departments.slice());
|
31682
|
+
return;
|
31683
|
+
}
|
31684
|
+
search = search.toLowerCase();
|
31685
|
+
_this.filteredSearchTextBox.department.next(_this.optionFilterPersonDataGlobal.departments.filter(function (x) { return x.name.toLowerCase().indexOf(search) > -1; }));
|
31686
|
+
});
|
31687
|
+
};
|
31392
31688
|
QMSSelectAccessDialogComponent.prototype.getResultTabActive = function () {
|
31393
31689
|
var resultObj = {
|
31394
31690
|
0: this.resultAccess.persons,
|
@@ -31402,34 +31698,44 @@
|
|
31402
31698
|
};
|
31403
31699
|
QMSSelectAccessDialogComponent.prototype.buildPersonForm = function () {
|
31404
31700
|
this.personForm = this._fb.group({
|
31405
|
-
|
31406
|
-
|
31407
|
-
departmentFilter:
|
31408
|
-
recursive:
|
31409
|
-
|
31410
|
-
|
31411
|
-
|
31701
|
+
userGroup: [],
|
31702
|
+
department: [],
|
31703
|
+
departmentFilter: [''],
|
31704
|
+
recursive: [{
|
31705
|
+
value: false, disabled: true
|
31706
|
+
}],
|
31707
|
+
keyword: [''],
|
31708
|
+
userGroupFilter: [''],
|
31709
|
+
excludedQuitDepartmentId: [true]
|
31412
31710
|
});
|
31413
31711
|
};
|
31414
|
-
QMSSelectAccessDialogComponent.prototype.resetPagingConfig = function () {
|
31415
|
-
this.currentPaginationConfig = {
|
31416
|
-
pageIndex: 0,
|
31417
|
-
pageSize: 10,
|
31418
|
-
length: 0
|
31419
|
-
};
|
31420
|
-
};
|
31421
31712
|
QMSSelectAccessDialogComponent.prototype.onFilterPerson = function () {
|
31713
|
+
var _a, _b;
|
31422
31714
|
this.getLoading$.next(true);
|
31423
|
-
this.
|
31424
|
-
|
31715
|
+
var formValue = this.personForm.getRawValue();
|
31716
|
+
var filterData = {
|
31717
|
+
departmentId: (_a = formValue.department) === null || _a === void 0 ? void 0 : _a.id,
|
31718
|
+
userGroupId: (_b = formValue.userGroup) === null || _b === void 0 ? void 0 : _b.id,
|
31719
|
+
keyword: formValue.keyword,
|
31720
|
+
recursive: formValue.recursive
|
31721
|
+
};
|
31722
|
+
this.onSearchPersonEvent.emit(filterData);
|
31723
|
+
this._resetPagingator(this.pagingPerson);
|
31724
|
+
};
|
31725
|
+
QMSSelectAccessDialogComponent.prototype._resetPagingator = function (paginator) {
|
31726
|
+
if (!paginator)
|
31727
|
+
return;
|
31728
|
+
paginator.changePage(0);
|
31729
|
+
paginator.renderDisplayNumberOfpages();
|
31425
31730
|
};
|
31426
31731
|
QMSSelectAccessDialogComponent.prototype.onSearchPersonFreeText = function () {
|
31427
|
-
this.getLoading$.next(true);
|
31428
31732
|
this.getLoading$.next(true);
|
31429
31733
|
this.onSearchPersonFreeTextEvent.emit(this.personForm.get('keyword').value);
|
31734
|
+
this._resetPagingator(this.pagingPerson);
|
31430
31735
|
};
|
31431
31736
|
QMSSelectAccessDialogComponent.prototype.onFilterUserGroup = function () {
|
31432
31737
|
this.getLoading$.next(true);
|
31738
|
+
this._resetPagingator(this.pagingUserGroup);
|
31433
31739
|
this.onSearchUserGroupEvent.emit(this.userGroupForm.value);
|
31434
31740
|
};
|
31435
31741
|
QMSSelectAccessDialogComponent.prototype.onSelectItem = function (type, item) {
|
@@ -31493,13 +31799,26 @@
|
|
31493
31799
|
break;
|
31494
31800
|
case this.OPTION_ENUM.DEPARTMENT:
|
31495
31801
|
this.resultAccess.departments.splice(index, 1);
|
31802
|
+
this.departmentResultClone.splice(index, 1);
|
31803
|
+
if (!this.treeDepartment)
|
31804
|
+
return;
|
31496
31805
|
this.treeDepartment.onRemoveNode(item.id);
|
31806
|
+
break;
|
31497
31807
|
default:
|
31498
31808
|
return;
|
31499
31809
|
}
|
31500
31810
|
};
|
31501
31811
|
QMSSelectAccessDialogComponent.prototype.onSelectionTypeChange = function (event) {
|
31502
|
-
|
31812
|
+
switch (event.value) {
|
31813
|
+
case exports.OptionSelectAccessEnum.PERSON:
|
31814
|
+
this.buildPersonForm();
|
31815
|
+
this._filterOptionPersonChange();
|
31816
|
+
break;
|
31817
|
+
}
|
31818
|
+
this.getLoading$.next(true);
|
31819
|
+
this.dialogRef.updateSize(this.dialogData.sizeUpdateDefault);
|
31820
|
+
this.onSelectOptionChange$.next(event);
|
31821
|
+
this.cdRef.detectChanges();
|
31503
31822
|
};
|
31504
31823
|
QMSSelectAccessDialogComponent.prototype.setFormControlValue = function (formControlNames, values) {
|
31505
31824
|
var _this = this;
|
@@ -31511,9 +31830,9 @@
|
|
31511
31830
|
QMSSelectAccessDialogComponent.prototype.isCheckAll = function (type) {
|
31512
31831
|
switch (type) {
|
31513
31832
|
case this.OPTION_ENUM.PERSON:
|
31514
|
-
return !this.dialogData.modeSelectOnePerson && this.personFiltered.length && this.
|
31833
|
+
return !this.dialogData.modeSelectOnePerson && this.personFiltered.length && this.personFiltered.every(function (x) { return x.selected; });
|
31515
31834
|
case this.OPTION_ENUM.USER_GROUP:
|
31516
|
-
return !this.dialogData.modeSelectOneUserGroup && this.userGroupFiltered.length && this.
|
31835
|
+
return !this.dialogData.modeSelectOneUserGroup && this.userGroupFiltered.length && this.userGroupFiltered.every(function (x) { return x.selected; });
|
31517
31836
|
default:
|
31518
31837
|
return false;
|
31519
31838
|
}
|
@@ -31522,9 +31841,9 @@
|
|
31522
31841
|
var _a, _b;
|
31523
31842
|
switch (type) {
|
31524
31843
|
case this.OPTION_ENUM.PERSON:
|
31525
|
-
return !this.dialogData.modeSelectOnePerson && !this.isCheckAll(type) && ((_a = this.
|
31844
|
+
return !this.dialogData.modeSelectOnePerson && !this.isCheckAll(type) && ((_a = this.personFiltered) === null || _a === void 0 ? void 0 : _a.some(function (x) { return x.selected; }));
|
31526
31845
|
case this.OPTION_ENUM.USER_GROUP:
|
31527
|
-
return !this.dialogData.modeSelectOneUserGroup && !this.isCheckAll(type) && ((_b = this.
|
31846
|
+
return !this.dialogData.modeSelectOneUserGroup && !this.isCheckAll(type) && ((_b = this.userGroupFiltered) === null || _b === void 0 ? void 0 : _b.some(function (x) { return x.selected; }));
|
31528
31847
|
default:
|
31529
31848
|
return false;
|
31530
31849
|
}
|
@@ -31537,18 +31856,16 @@
|
|
31537
31856
|
$event.checked = false;
|
31538
31857
|
return;
|
31539
31858
|
}
|
31540
|
-
|
31541
|
-
if (!userPaging.length)
|
31859
|
+
if (!this.personFiltered.length)
|
31542
31860
|
return;
|
31543
|
-
|
31544
|
-
var idFiltered_1 =
|
31861
|
+
this.personFiltered.forEach(function (x) { return x.selected = $event.checked; });
|
31862
|
+
var idFiltered_1 = this.personFiltered.map(function (x) { return x.id; });
|
31545
31863
|
if ($event.checked) {
|
31546
31864
|
var idPersonSelected_1 = this.resultAccess.persons.map(function (x) { return x.id; });
|
31547
|
-
this.resultAccess.persons = __spreadArray(__spreadArray([], __read(this.resultAccess.persons)), __read(
|
31548
|
-
|
31549
|
-
else {
|
31550
|
-
this.resultAccess.persons = this.resultAccess.persons.filter(function (x) { return !idFiltered_1.includes(x.id); });
|
31865
|
+
this.resultAccess.persons = __spreadArray(__spreadArray([], __read(this.resultAccess.persons)), __read(this.personFiltered.filter(function (x) { return !idPersonSelected_1.includes(x.id); })));
|
31866
|
+
return;
|
31551
31867
|
}
|
31868
|
+
this.resultAccess.persons = this.resultAccess.persons.filter(function (x) { return !idFiltered_1.includes(x.id); });
|
31552
31869
|
break;
|
31553
31870
|
}
|
31554
31871
|
case this.OPTION_ENUM.USER_GROUP: {
|
@@ -31556,60 +31873,82 @@
|
|
31556
31873
|
$event.checked = false;
|
31557
31874
|
return;
|
31558
31875
|
}
|
31559
|
-
var userGroupPaging = this.
|
31876
|
+
var userGroupPaging = this.userGroupFiltered;
|
31560
31877
|
userGroupPaging.forEach(function (x) { return x.selected = $event.checked; });
|
31561
31878
|
var idFiltered_2 = userGroupPaging.map(function (x) { return x.id; });
|
31562
31879
|
if ($event.checked) {
|
31563
31880
|
var idSelected_1 = this.resultAccess.userGroups.map(function (x) { return x.id; });
|
31564
31881
|
this.resultAccess.userGroups = __spreadArray(__spreadArray([], __read(this.resultAccess.userGroups)), __read(userGroupPaging.filter(function (x) { return !idSelected_1.includes(x.id); })));
|
31882
|
+
return;
|
31565
31883
|
}
|
31566
|
-
|
31567
|
-
this.resultAccess.userGroups = this.resultAccess.userGroups.filter(function (x) { return !idFiltered_2.includes(x.id); });
|
31568
|
-
}
|
31884
|
+
this.resultAccess.userGroups = this.resultAccess.userGroups.filter(function (x) { return !idFiltered_2.includes(x.id); });
|
31569
31885
|
break;
|
31570
31886
|
}
|
31571
31887
|
default:
|
31572
31888
|
return;
|
31573
31889
|
}
|
31574
31890
|
};
|
31891
|
+
QMSSelectAccessDialogComponent.prototype.onSelectionNodeDepartmentChange = function (_c) {
|
31892
|
+
var _this = this;
|
31893
|
+
var added = _c.added, removed = _c.removed, updated = _c.updated;
|
31894
|
+
if (added.length) {
|
31895
|
+
added.forEach(function (item) {
|
31896
|
+
if (_this.resultAccess.departments.some(function (x) { return x.id === item.id; }))
|
31897
|
+
return;
|
31898
|
+
_this.resultAccess.departments.push(item);
|
31899
|
+
});
|
31900
|
+
}
|
31901
|
+
if (removed.length) {
|
31902
|
+
removed.forEach(function (x) {
|
31903
|
+
var index = _this.resultAccess.departments.findIndex(function (item) { return item.id === x.id; });
|
31904
|
+
if (index < 0)
|
31905
|
+
return;
|
31906
|
+
_this.resultAccess.departments.splice(index, 1);
|
31907
|
+
});
|
31908
|
+
}
|
31909
|
+
if (updated.length) {
|
31910
|
+
updated.forEach(function (x) {
|
31911
|
+
var index = _this.resultAccess.departments.findIndex(function (item) { return item.id == x.id; });
|
31912
|
+
if (index < 0)
|
31913
|
+
return;
|
31914
|
+
var deparment = _this.resultAccess.departments.find(function (item) { return item.id == x.id; });
|
31915
|
+
if (!!deparment)
|
31916
|
+
deparment.children = x.children;
|
31917
|
+
});
|
31918
|
+
}
|
31919
|
+
this._departmentSelected = ___namespace.cloneDeep(this.resultAccess.departments);
|
31920
|
+
};
|
31575
31921
|
QMSSelectAccessDialogComponent.prototype.onScollToNodeTreeDepartment = function (node) {
|
31576
31922
|
this.optionSelect.value === this.OPTION_ENUM.DEPARTMENT && this.treeDepartment.scrollToNode(node.id);
|
31577
31923
|
};
|
31578
|
-
QMSSelectAccessDialogComponent.prototype.onRemoveTreeNodeDepartment = function (node) {
|
31579
|
-
if (this.optionSelect.value === this.OPTION_ENUM.DEPARTMENT) {
|
31580
|
-
this.treeDepartment.onRemoveNode(node.id);
|
31581
|
-
}
|
31582
|
-
this.resultAccess.departments = this.resultAccess.departments.filter(function (item) { return item.id !== node.id; });
|
31583
|
-
};
|
31584
31924
|
QMSSelectAccessDialogComponent.prototype.trackByFn = function (index, item) {
|
31585
31925
|
return index;
|
31586
31926
|
};
|
31587
31927
|
QMSSelectAccessDialogComponent.prototype.updatePersonFilter = function (data) {
|
31588
|
-
this.resetPagingConfig();
|
31589
31928
|
this.getPerson$.next(data);
|
31590
31929
|
this.getLoading$.next(false);
|
31591
|
-
this.getLoading$.next(false);
|
31592
31930
|
};
|
31593
31931
|
QMSSelectAccessDialogComponent.prototype.updateUserGroupFilter = function (data) {
|
31594
|
-
this.resetPagingConfig();
|
31595
31932
|
this.getUserGroup$.next(data);
|
31596
31933
|
this.getLoading$.next(false);
|
31597
|
-
this.getLoading$.next(false);
|
31598
|
-
};
|
31599
|
-
QMSSelectAccessDialogComponent.prototype.onPagingEvent = function (val) {
|
31600
|
-
this.currentPaginationConfig = val;
|
31601
31934
|
};
|
31602
|
-
QMSSelectAccessDialogComponent.prototype.
|
31603
|
-
|
31604
|
-
|
31605
|
-
return source.slice(this.currentPaginationConfig.pageIndex * this.currentPaginationConfig.pageSize, (this.currentPaginationConfig.pageIndex * this.currentPaginationConfig.pageSize) + this.currentPaginationConfig.pageSize);
|
31935
|
+
QMSSelectAccessDialogComponent.prototype.onPaginatorEvent = function (val, type) {
|
31936
|
+
this.getLoading$.next(this.optionSelect.value !== this.OPTION_ENUM.DEPARTMENT);
|
31937
|
+
this.onPagingEvent.emit(Object.assign(Object.assign({}, val), { type: type }));
|
31606
31938
|
};
|
31607
31939
|
QMSSelectAccessDialogComponent.prototype.onResultDepartmentChange = function (event) {
|
31608
|
-
|
31609
|
-
|
31610
|
-
|
31611
|
-
|
31612
|
-
|
31940
|
+
// this.resultAccess.departments = event;
|
31941
|
+
};
|
31942
|
+
QMSSelectAccessDialogComponent.prototype.updateResultSearchDepartment = function (data) {
|
31943
|
+
if (data === void 0) { data = new QMSAccessPagingModel(); }
|
31944
|
+
if (!this.treeDepartment)
|
31945
|
+
return;
|
31946
|
+
data = data;
|
31947
|
+
this.treeDepartment.setResultSearch(data);
|
31948
|
+
};
|
31949
|
+
QMSSelectAccessDialogComponent.prototype.generateTootip = function (node) {
|
31950
|
+
var _a;
|
31951
|
+
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 + ")" : ''));
|
31613
31952
|
};
|
31614
31953
|
QMSSelectAccessDialogComponent.prototype.formatString = function () {
|
31615
31954
|
var replacements = [];
|
@@ -31627,12 +31966,29 @@
|
|
31627
31966
|
var _this = this;
|
31628
31967
|
return Object.keys(this.resultAccess).some(function (key) { var _a; return !!((_a = _this.resultAccess[key]) === null || _a === void 0 ? void 0 : _a.length); });
|
31629
31968
|
};
|
31969
|
+
QMSSelectAccessDialogComponent.prototype.updateDepartment = function (data) {
|
31970
|
+
if (data === void 0) { data = []; }
|
31971
|
+
this.getLoading$.next(false);
|
31972
|
+
this.dialogData.data.accessDepartments = [];
|
31973
|
+
this.dialogData.data.accessDepartments = ___namespace.cloneDeep(data);
|
31974
|
+
};
|
31975
|
+
QMSSelectAccessDialogComponent.prototype.updateOptionPersonFilter = function (departmentFilter, userGroupFilter) {
|
31976
|
+
if (departmentFilter === void 0) { departmentFilter = []; }
|
31977
|
+
if (userGroupFilter === void 0) { userGroupFilter = []; }
|
31978
|
+
this.optionFilterPersonDataGlobal.departments = departmentFilter;
|
31979
|
+
this.optionFilterPersonDataGlobal.userGroups = userGroupFilter;
|
31980
|
+
this.filteredSearchTextBox.department.next(departmentFilter);
|
31981
|
+
this.filteredSearchTextBox.userGroup.next(userGroupFilter);
|
31982
|
+
};
|
31983
|
+
QMSSelectAccessDialogComponent.prototype.setDefaultPageSizeOption = function (data) {
|
31984
|
+
this.PAGE_SIZE_OPTION = data;
|
31985
|
+
};
|
31630
31986
|
return QMSSelectAccessDialogComponent;
|
31631
31987
|
}());
|
31632
31988
|
QMSSelectAccessDialogComponent.decorators = [
|
31633
31989
|
{ type: i0.Component, args: [{
|
31634
31990
|
selector: 'qms-select-access-dialog',
|
31635
|
-
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",
|
31991
|
+
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",
|
31636
31992
|
animations: [SelectAccessAnimationTrigger],
|
31637
31993
|
providers: [
|
31638
31994
|
{
|
@@ -31641,7 +31997,7 @@
|
|
31641
31997
|
}
|
31642
31998
|
],
|
31643
31999
|
encapsulation: i0.ViewEncapsulation.None,
|
31644
|
-
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%)}}"]
|
32000
|
+
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%)}}"]
|
31645
32001
|
},] }
|
31646
32002
|
];
|
31647
32003
|
QMSSelectAccessDialogComponent.ctorParameters = function () { return [
|
@@ -31652,9 +32008,11 @@
|
|
31652
32008
|
{ type: i0.ChangeDetectorRef }
|
31653
32009
|
]; };
|
31654
32010
|
QMSSelectAccessDialogComponent.propDecorators = {
|
31655
|
-
tree: [{ type: i0.ViewChild, args: ['
|
32011
|
+
tree: [{ type: i0.ViewChild, args: ['tree', {
|
31656
32012
|
read: SelectDepartmentTreeComponent
|
31657
|
-
},] }]
|
32013
|
+
},] }],
|
32014
|
+
pagingPerson: [{ type: i0.ViewChild, args: ['pagingPerson',] }],
|
32015
|
+
pagingUserGroup: [{ type: i0.ViewChild, args: ['pagingUserGroup',] }]
|
31658
32016
|
};
|
31659
32017
|
|
31660
32018
|
var QMSSelectAccessDialogModule = /** @class */ (function () {
|
@@ -31689,7 +32047,8 @@
|
|
31689
32047
|
slideToggle.MatSlideToggleModule,
|
31690
32048
|
QMSListModule,
|
31691
32049
|
QmsPaginatorModule,
|
31692
|
-
paginator.MatPaginatorModule
|
32050
|
+
paginator.MatPaginatorModule,
|
32051
|
+
card.MatCardModule
|
31693
32052
|
],
|
31694
32053
|
exports: [
|
31695
32054
|
QMSSelectAccessDialogComponent
|
@@ -31697,6 +32056,12 @@
|
|
31697
32056
|
},] }
|
31698
32057
|
];
|
31699
32058
|
|
32059
|
+
var FilterPersonModel = /** @class */ (function () {
|
32060
|
+
function FilterPersonModel() {
|
32061
|
+
}
|
32062
|
+
return FilterPersonModel;
|
32063
|
+
}());
|
32064
|
+
|
31700
32065
|
/*
|
31701
32066
|
* Public API Surface of qms-angular
|
31702
32067
|
*/
|
@@ -31731,6 +32096,8 @@
|
|
31731
32096
|
exports.DepartmentSearchResultModel = DepartmentSearchResultModel;
|
31732
32097
|
exports.ENTERPRISE_FOLDER_ICON = ENTERPRISE_FOLDER_ICON;
|
31733
32098
|
exports.ENTERPRISE_FOLDER_OUTLINED_ICON = ENTERPRISE_FOLDER_OUTLINED_ICON;
|
32099
|
+
exports.EllipsifyDirective = EllipsifyDirective;
|
32100
|
+
exports.FilterPersonModel = FilterPersonModel;
|
31734
32101
|
exports.FlatNodeNavDrawer = FlatNodeNavDrawer;
|
31735
32102
|
exports.FlowChartConst = FlowChartConst;
|
31736
32103
|
exports.ISelectOneItem = ISelectOneItem;
|
@@ -31753,6 +32120,8 @@
|
|
31753
32120
|
exports.PROCESS_ICON = PROCESS_ICON;
|
31754
32121
|
exports.PopupData = PopupData;
|
31755
32122
|
exports.QMSAccessItem = QMSAccessItem;
|
32123
|
+
exports.QMSAccessPagingChangeModel = QMSAccessPagingChangeModel;
|
32124
|
+
exports.QMSAccessPagingModel = QMSAccessPagingModel;
|
31756
32125
|
exports.QMSAnchor = QMSAnchor;
|
31757
32126
|
exports.QMSAppBar = QMSAppBar;
|
31758
32127
|
exports.QMSAppIconModule = QMSAppIconModule;
|
@@ -31805,6 +32174,8 @@
|
|
31805
32174
|
exports.QMSCollapseGroupDirective = QMSCollapseGroupDirective;
|
31806
32175
|
exports.QMSComment = QMSComment;
|
31807
32176
|
exports.QMSConfirmDialog = QMSConfirmDialog;
|
32177
|
+
exports.QMSContentChangesDirective = QMSContentChangesDirective;
|
32178
|
+
exports.QMSDepartmentPagingModel = QMSDepartmentPagingModel;
|
31808
32179
|
exports.QMSDialogConfig = QMSDialogConfig;
|
31809
32180
|
exports.QMSDialogContainer = QMSDialogContainer;
|
31810
32181
|
exports.QMSDialogContainerV2 = QMSDialogContainerV2;
|
@@ -31951,6 +32322,7 @@
|
|
31951
32322
|
exports.RiskResultComponent = RiskResultComponent;
|
31952
32323
|
exports.SaveTemplateComponent = SaveTemplateComponent;
|
31953
32324
|
exports.ScrollToSelectedDirective = ScrollToSelectedDirective;
|
32325
|
+
exports.SelectAccessAnimationTrigger = SelectAccessAnimationTrigger;
|
31954
32326
|
exports.SelectConst = SelectConst;
|
31955
32327
|
exports.SelectDepartmentComponent = SelectDepartmentComponent;
|
31956
32328
|
exports.SelectDepartmentPopupData = SelectDepartmentPopupData;
|