qms-angular 1.1.14 → 1.1.15

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.
Files changed (69) hide show
  1. package/bundles/qms-angular.umd.js +25 -1086
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/models/qms-flat-node.model.js +1 -1
  4. package/esm2015/lib/components/breadcrumb/breadcrumb.js +3 -3
  5. package/esm2015/lib/components/qms-paginator/qms-paginator.component.js +12 -3
  6. package/esm2015/lib/components/select-include-children/services/select-include-children-global.service.js +1 -1
  7. package/esm2015/lib/model/en.js +1 -14
  8. package/esm2015/lib/model/no.js +1 -14
  9. package/esm2015/lib/services/translation-registry.service.js +2 -2
  10. package/esm2015/public-api.js +1 -4
  11. package/fesm2015/qms-angular.js +24 -1003
  12. package/fesm2015/qms-angular.js.map +1 -1
  13. package/lib/common/models/qms-flat-node.model.d.ts +0 -3
  14. package/lib/model/en.d.ts +0 -13
  15. package/lib/model/no.d.ts +0 -13
  16. package/package.json +1 -1
  17. package/public-api.d.ts +0 -3
  18. package/qms-angular.metadata.json +1 -1
  19. package/src/lib/components/breadcrumb/breadcrumb.scss +3 -3
  20. package/src/lib/components/qms-paginator/qms-paginator.component.scss +4 -0
  21. package/esm2015/lib/components/select-access-dialog/common/animation.js +0 -10
  22. package/esm2015/lib/components/select-access-dialog/common/option-select-access.enum.js +0 -7
  23. package/esm2015/lib/components/select-access-dialog/index.js +0 -2
  24. package/esm2015/lib/components/select-access-dialog/model/access-item.model.js +0 -6
  25. package/esm2015/lib/components/select-access-dialog/model/option-select-access.model.js +0 -3
  26. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +0 -16
  27. package/esm2015/lib/components/select-access-dialog/public-api.js +0 -8
  28. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +0 -288
  29. package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +0 -56
  30. package/esm2015/lib/components/select-access-dialog/service/select-access-global.service.js +0 -11
  31. package/esm2015/lib/components/select-department/common/animation.js +0 -30
  32. package/esm2015/lib/components/select-department/index.js +0 -2
  33. package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +0 -12
  34. package/esm2015/lib/components/select-department/public-api.js +0 -5
  35. package/esm2015/lib/components/select-department/select-department.component.js +0 -84
  36. package/esm2015/lib/components/select-department/select-department.module.js +0 -60
  37. package/esm2015/lib/components/select-department/service/select-department-global.service.js +0 -22
  38. package/esm2015/lib/components/select-department-tree/index.js +0 -2
  39. package/esm2015/lib/components/select-department-tree/model/select-department-tree.config.js +0 -10
  40. package/esm2015/lib/components/select-department-tree/public-api.js +0 -5
  41. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +0 -379
  42. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +0 -50
  43. package/esm2015/lib/components/select-department-tree/service/select-department-tree-global.service.js +0 -22
  44. package/lib/components/select-access-dialog/common/animation.d.ts +0 -1
  45. package/lib/components/select-access-dialog/common/option-select-access.enum.d.ts +0 -5
  46. package/lib/components/select-access-dialog/index.d.ts +0 -1
  47. package/lib/components/select-access-dialog/model/access-item.model.d.ts +0 -7
  48. package/lib/components/select-access-dialog/model/option-select-access.model.d.ts +0 -5
  49. package/lib/components/select-access-dialog/model/select-access-data.d.ts +0 -14
  50. package/lib/components/select-access-dialog/public-api.d.ts +0 -7
  51. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +0 -64
  52. package/lib/components/select-access-dialog/select-access-dialog.module.d.ts +0 -2
  53. package/lib/components/select-access-dialog/service/select-access-global.service.d.ts +0 -2
  54. package/lib/components/select-department/common/animation.d.ts +0 -1
  55. package/lib/components/select-department/index.d.ts +0 -1
  56. package/lib/components/select-department/model/select-department-popup-data.model.d.ts +0 -14
  57. package/lib/components/select-department/public-api.d.ts +0 -4
  58. package/lib/components/select-department/select-department.component.d.ts +0 -31
  59. package/lib/components/select-department/select-department.module.d.ts +0 -2
  60. package/lib/components/select-department/service/select-department-global.service.d.ts +0 -9
  61. package/lib/components/select-department-tree/index.d.ts +0 -1
  62. package/lib/components/select-department-tree/model/select-department-tree.config.d.ts +0 -9
  63. package/lib/components/select-department-tree/public-api.d.ts +0 -4
  64. package/lib/components/select-department-tree/select-department-tree.component.d.ts +0 -84
  65. package/lib/components/select-department-tree/select-department-tree.module.d.ts +0 -2
  66. package/lib/components/select-department-tree/service/select-department-tree-global.service.d.ts +0 -9
  67. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +0 -205
  68. package/src/lib/components/select-department/select-department.component.scss +0 -193
  69. package/src/lib/components/select-department-tree/select-department-tree.component.scss +0 -265
@@ -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/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/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.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, divider, ngxMatSelectSearch) { 'use strict';
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')) :
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'], 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));
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) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -98,19 +98,6 @@
98
98
  "SUPPORTED_EXTENSIONS": "Supported extensions",
99
99
  "FILES_ARE_NOT_SUPPORTED": "File(s) are not supported",
100
100
  "FILES_EXCEED_UPLOAD_LIMIT": "File(s) exceed upload size limit",
101
- "SELECT_ACCESS": "Select Access(es)",
102
- "PERSON": "Person",
103
- "USER_GROUP": "User Group",
104
- "DEPARTMENT": "Department",
105
- "ROLE": "Role",
106
- "DEPARTMENT_UNIT": "Department / unit",
107
- "INCLUDE_SUB_DEPARTMENTS": "Automatically include sub-departments",
108
- "NAME": "Name",
109
- "SEARCH_USER_GROUP": "Search user group",
110
- "SEARCH_DEPARTMENT_UNIT": "Search department / unit",
111
- "FILTER": "Filter",
112
- "TYPE": "Type",
113
- "SEARCH_WITH_NAME": "Search first and last name",
114
101
  "ERROR": {
115
102
  "SELECT_DANGER": "You must select one or more events"
116
103
  },
@@ -478,19 +465,6 @@
478
465
  "SUPPORTED_EXTENSIONS": "Støttede utvidelser",
479
466
  "FILES_ARE_NOT_SUPPORTED": "Fil(er) støttes ikke",
480
467
  "FILES_EXCEED_UPLOAD_LIMIT": "Fil(er) overskrider grensen for opplastingsstørrelse",
481
- "SELECT_ACCESS": "Velg ansvarlig(e)",
482
- "PERSON": "Person",
483
- "USER_GROUP": "Brukergruppe",
484
- "DEPARTMENT": "Avdeling",
485
- "ROLE": "Rolle",
486
- "DEPARTMENT_UNIT": "Avdeling/enhet",
487
- "INCLUDE_SUB_DEPARTMENTS": "Automatisk inkluder underavdelinger",
488
- "NAME": "Navn",
489
- "SEARCH_USER_GROUP": "Søk brukergruppe",
490
- "SEARCH_DEPARTMENT_UNIT": "Søk avdeling/enhet",
491
- "FILTER": "Bruk filter",
492
- "TYPE": "Type",
493
- "SEARCH_WITH_NAME": "Søk for- og etternavn",
494
468
  "ERROR": {
495
469
  "SELECT_DANGER": "Du må velge en eller flere hendelser"
496
470
  },
@@ -805,7 +779,7 @@
805
779
 
806
780
  var TranslateLibraryService = /** @class */ (function () {
807
781
  function TranslateLibraryService() {
808
- this.getLanguageSubject$ = new rxjs.BehaviorSubject('en');
782
+ this.getLanguageSubject$ = new rxjs.BehaviorSubject(null);
809
783
  this.availableLanguages = { en: en, no: no };
810
784
  }
811
785
  TranslateLibraryService.prototype.setLanguage = function (item) {
@@ -3875,7 +3849,7 @@
3875
3849
  qmsTransformIcon: [{ type: i0.Input }]
3876
3850
  };
3877
3851
 
3878
- var ɵ0$5 = { appearance: 'fill' }, ɵ1$1 = { color: 'none' };
3852
+ var ɵ0$4 = { appearance: 'fill' }, ɵ1$1 = { color: 'none' };
3879
3853
  var QmsAngularModule = /** @class */ (function () {
3880
3854
  function QmsAngularModule() {
3881
3855
  }
@@ -4000,7 +3974,7 @@
4000
3974
  QMSMultiIconDirective
4001
3975
  ],
4002
3976
  providers: [
4003
- { provide: formField.MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: ɵ0$5 },
3977
+ { provide: formField.MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: ɵ0$4 },
4004
3978
  { provide: radio.MAT_RADIO_DEFAULT_OPTIONS, useValue: ɵ1$1 },
4005
3979
  QMSUploadingFileGuard
4006
3980
  ],
@@ -4343,7 +4317,7 @@
4343
4317
  _lines: [{ type: i0.ContentChildren, args: [QMSListLine, { descendants: true },] }]
4344
4318
  };
4345
4319
 
4346
- var ɵ0$4 = {
4320
+ var ɵ0$3 = {
4347
4321
  expandedHeight: '*',
4348
4322
  collapsedHeight: '*'
4349
4323
  };
@@ -4388,7 +4362,7 @@
4388
4362
  providers: [
4389
4363
  {
4390
4364
  provide: expansion.MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,
4391
- useValue: ɵ0$4
4365
+ useValue: ɵ0$3
4392
4366
  }
4393
4367
  ],
4394
4368
  schemas: [
@@ -5094,9 +5068,9 @@
5094
5068
  QMSBreadcrumb.decorators = [
5095
5069
  { type: i0.Component, args: [{
5096
5070
  selector: 'qms-breadcrumb',
5097
- template: "<div>\r\n <div class=\"breadcrumb-container\" *ngIf=\"!isMobileType\">\r\n <!-- Home -->\r\n <div\r\n qms-breadcrumb-item\r\n *ngIf=\"!isOverflow || type=='table'\"\r\n [(showTooltip)]=\"homeNode['isOverflow']\"\r\n >\r\n <mat-icon\r\n *ngIf=\"homeNode?.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ homeNode?.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"homeNode?.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"homeNode.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"homeNode?.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"homeNode.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"homeNode?.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(homeNode)\"\r\n />\r\n <div\r\n class=\"qms-breadcrumb-item-text\"\r\n [qms-tool-tip]=\"homeNode['name']\"\r\n [showToolTip]=\"homeNode['isOverflow']\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n (click)=\"onItemSelect(homeNode)\"\r\n >\r\n {{homeNode?.name}}\r\n </div>\r\n <mat-icon *ngIf=\"!isOverflow && type !=='table'\"\r\n >keyboard_arrow_right</mat-icon\r\n >\r\n <span\r\n *ngIf=\"itemNodes.length && type=='table'\"\r\n qms-breadcrumb-direction-icon\r\n >\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n\r\n <!-- Dropdown not table -->\r\n <div qms-breadcrumb-item *ngIf=\"isOverflow && type!='table'\">\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n class=\"breadcrumb__dropdown-btn\"\r\n [matMenuTriggerFor]=\"bodyMediumMenu\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n <mat-icon svgIcon=\"breadcrumb_dropdown\"></mat-icon>\r\n </button>\r\n <mat-menu\r\n #bodyMediumMenu=\"matMenu\"\r\n yPosition=\"below\"\r\n class=\"qms-breadcrumb-menu\"\r\n >\r\n <div>\r\n <div\r\n qms-menu-item\r\n mat-menu-item\r\n disableRipple\r\n *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n\r\n <!-- Dropdown table -->\r\n <div qms-breadcrumb-item *ngIf=\"isOverflow && type=='table'\">\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n (click)=\"$event.stopPropagation()\"\r\n [matMenuTriggerFor]=\"bodyMediumMenu\"\r\n >\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n <mat-menu\r\n #bodyMediumMenu=\"matMenu\"\r\n yPosition=\"below\"\r\n class=\"qms-breadcrumb-menu\"\r\n >\r\n <div>\r\n <div\r\n qms-menu-item\r\n mat-menu-item\r\n disableRipple\r\n *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n <!-- Item list -->\r\n <div\r\n qms-breadcrumb-item\r\n *ngFor=\"let item of itemNodes;let i=index\"\r\n [isLastItem]=\"i === itemNodes.length - 1\"\r\n [(showTooltip)]=\"item.isOverflow\"\r\n >\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.name && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.svg && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"item.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.path && item.isShow\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.base64 && item.isShow\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\"\r\n />\r\n <div\r\n class=\"qms-breadcrumb-item-text\"\r\n [qms-tool-tip]=\"item.name\"\r\n [showToolTip]=\"item.isOverflow\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n *ngIf=\"item.isShow\"\r\n (click)=\"onItemSelect(item, i == itemNodes.length - 1);\"\r\n >\r\n {{item.name}}\r\n </div>\r\n <span\r\n qms-breadcrumb-direction-icon\r\n *ngIf=\"item.isShow && i !== itemNodes.length - 1\"\r\n >\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"breadcrumb-container\" *ngIf=\"isMobileType\">\r\n <mat-sidenav-container>\r\n <mat-sidenav\r\n #sidenav\r\n mode=\"'over'\"\r\n class=\"breadcrumb-sidenav\"\r\n [fixedInViewport]=\"true\"\r\n >\r\n <div class=\"header\">\r\n <div class=\"header-left\">\r\n <p>{{LANG.BREADCRUMB}}</p>\r\n <div class=\"sub\">{{LANG.NAVIGATE_TO}}</div>\r\n </div>\r\n <div class=\"header-right\">\r\n <button qms-btn-text (click)=\"sidenav.close()\">\r\n {{LANG.QMSCKEDITOR.CLOSE}}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content\">\r\n <mat-selection-list #shoes [multiple]=\"false\">\r\n <mat-list-option\r\n class=\"qms-list-option\"\r\n *ngFor=\"let item of sideNavNodes; let first = first; let last = last;\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <mat-icon\r\n *ngIf=\"!first\"\r\n mat-list-icon\r\n class=\"subdirectory_arrow_right\"\r\n >subdirectory_arrow_right</mat-icon\r\n >\r\n <div class=\"content-text-name\">\r\n <div class=\"content-text-name-heading\">\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\"\r\n />\r\n <span class=\"\">{{item.name}}</span>\r\n </div>\r\n <mat-icon class=\"color-gray\" *ngIf=\"last\">done</mat-icon>\r\n </div>\r\n </mat-list-option>\r\n </mat-selection-list>\r\n </div>\r\n </mat-sidenav>\r\n\r\n <mat-sidenav-content>\r\n <button\r\n qms-btn-icon\r\n class=\"more_horiz-btn\"\r\n color=\"light\"\r\n *ngIf=\"sideNavNodes.length\"\r\n (click)=\"sidenav.toggle()\"\r\n >\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n </mat-sidenav-content>\r\n </mat-sidenav-container>\r\n <div qms-breadcrumb-item [(showTooltip)]=\"previousNode['isOverflow']\">\r\n <!-- Home -->\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_left</mat-icon>\r\n </span>\r\n <mat-icon\r\n *ngIf=\"previousNode?.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ previousNode.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"previousNode?.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"previousNode.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"previousNode?.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"previousNode.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"previousNode?.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(previousNode)\"\r\n />\r\n <div\r\n class=\"qms-breadcrumb-item-text\"\r\n [qms-tool-tip]=\"previousNode['name']\"\r\n [showToolTip]=\"previousNode['isOverflow']\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n (click)=\"onItemSelect(previousNode)\"\r\n >\r\n {{previousNode.name}}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
5071
+ template: "<div>\r\n <div class=\"breadcrumb-container\" *ngIf=\"!isMobileType\">\r\n <!-- Home -->\r\n <div qms-breadcrumb-item *ngIf=\"!isOverflow || type=='table'\" [(showTooltip)]=\"homeNode['isOverflow']\">\r\n <mat-icon *ngIf=\"homeNode?.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\">\r\n {{ homeNode?.itemIcon }}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"homeNode?.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\" [svgIcon]=\"homeNode.itemIconSvg\">\r\n </mat-icon>\r\n <img *ngIf=\"homeNode?.displayType === itemIconType.path\" class=\"mat-icon item-icon\"\r\n [src]=\"homeNode.itemIconPath\" />\r\n <img *ngIf=\"homeNode?.displayType === itemIconType.base64\" class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(homeNode)\" />\r\n <div class=\"qms-breadcrumb-item-text\" [qms-tool-tip]=\"homeNode['name']\" [showToolTip]=\"homeNode['isOverflow']\"\r\n #breadcrumbItemText mode=\"dark\" (click)=\"onItemSelect(homeNode)\">\r\n {{homeNode?.name}}\r\n </div>\r\n <mat-icon *ngIf=\"!isOverflow && type !=='table'\">keyboard_arrow_right</mat-icon>\r\n <span *ngIf=\"itemNodes.length && type=='table'\" qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n\r\n <!-- Dropdown not table -->\r\n <div qms-breadcrumb-item *ngIf=\"isOverflow && type!='table'\">\r\n <button qms-btn-icon color=\"light\" class=\"breadcrumb__dropdown-btn\" [matMenuTriggerFor]=\"bodyMediumMenu\"\r\n (click)=\"$event.stopPropagation()\">\r\n <mat-icon svgIcon=\"breadcrumb_dropdown\"></mat-icon>\r\n </button>\r\n <mat-menu #bodyMediumMenu=\"matMenu\" yPosition=\"below\" class=\"qms-breadcrumb-menu\">\r\n <div>\r\n <div qms-menu-item mat-menu-item disableRipple *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\" (click)=\"onItemSelect(item)\">\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n\r\n <!-- Dropdown table -->\r\n <div qms-breadcrumb-item *ngIf=\"isOverflow && type=='table' && dropdownNodes.length\">\r\n <button qms-btn-icon color=\"light\" (click)=\"$event.stopPropagation()\" [matMenuTriggerFor]=\"bodyMediumMenu\">\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n <mat-menu #bodyMediumMenu=\"matMenu\" yPosition=\"below\" class=\"qms-breadcrumb-menu\">\r\n <div>\r\n <div qms-menu-item mat-menu-item disableRipple *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\" (click)=\"onItemSelect(item)\">\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n <!-- Item list -->\r\n <div qms-breadcrumb-item *ngFor=\"let item of itemNodes;let i=index\" [isLastItem]=\"i === itemNodes.length - 1\"\r\n [(showTooltip)]=\"item.isOverflow\">\r\n <mat-icon *ngIf=\"item.displayType === itemIconType.name && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\">\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"item.displayType === itemIconType.svg && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\" [svgIcon]=\"item.itemIconSvg\">\r\n </mat-icon>\r\n <img *ngIf=\"item.displayType === itemIconType.path && item.isShow\" class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\" />\r\n <img *ngIf=\"item.displayType === itemIconType.base64 && item.isShow\" class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\" />\r\n <div class=\"qms-breadcrumb-item-text\" [qms-tool-tip]=\"item.name\" [showToolTip]=\"item.isOverflow\"\r\n #breadcrumbItemText mode=\"dark\" *ngIf=\"item.isShow\" (click)=\"onItemSelect(item, i == itemNodes.length - 1);\">\r\n {{item.name}}\r\n </div>\r\n <span qms-breadcrumb-direction-icon *ngIf=\"item.isShow && i !== itemNodes.length - 1\">\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"breadcrumb-container\" *ngIf=\"isMobileType\">\r\n <mat-sidenav-container>\r\n <mat-sidenav #sidenav mode=\"'over'\" class=\"breadcrumb-sidenav\" [fixedInViewport]=\"true\">\r\n <div class=\"header\">\r\n <div class=\"header-left\">\r\n <p>{{LANG.BREADCRUMB}}</p>\r\n <div class=\"sub\">{{LANG.NAVIGATE_TO}}</div>\r\n </div>\r\n <div class=\"header-right\">\r\n <button qms-btn-text (click)=\"sidenav.close()\">\r\n {{LANG.QMSCKEDITOR.CLOSE}}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content\">\r\n <mat-selection-list #shoes [multiple]=\"false\">\r\n <mat-list-option class=\"qms-list-option\"\r\n *ngFor=\"let item of sideNavNodes; let first = first; let last = last;\" (click)=\"onItemSelect(item)\">\r\n <mat-icon *ngIf=\"!first\" mat-list-icon class=\"subdirectory_arrow_right\">subdirectory_arrow_right\r\n </mat-icon>\r\n <div class=\"content-text-name\">\r\n <div class=\"content-text-name-heading\">\r\n <mat-icon *ngIf=\"item.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\">\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <img *ngIf=\"item.displayType === itemIconType.path\" class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\" />\r\n <img *ngIf=\"item.displayType === itemIconType.base64\" class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\" />\r\n <span class=\"\">{{item.name}}</span>\r\n </div>\r\n <mat-icon class=\"color-gray\" *ngIf=\"last\">done</mat-icon>\r\n </div>\r\n </mat-list-option>\r\n </mat-selection-list>\r\n </div>\r\n </mat-sidenav>\r\n\r\n <mat-sidenav-content>\r\n <button qms-btn-icon class=\"more_horiz-btn\" color=\"light\" *ngIf=\"sideNavNodes.length\"\r\n (click)=\"sidenav.toggle()\">\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n </mat-sidenav-content>\r\n </mat-sidenav-container>\r\n <div qms-breadcrumb-item [(showTooltip)]=\"previousNode['isOverflow']\">\r\n <!-- Home -->\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_left</mat-icon>\r\n </span>\r\n <mat-icon *ngIf=\"previousNode?.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\">\r\n {{ previousNode.itemIcon }}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"previousNode?.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\" [svgIcon]=\"previousNode.itemIconSvg\">\r\n </mat-icon>\r\n <img *ngIf=\"previousNode?.displayType === itemIconType.path\" class=\"mat-icon item-icon\"\r\n [src]=\"previousNode.itemIconPath\" />\r\n <img *ngIf=\"previousNode?.displayType === itemIconType.base64\" class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(previousNode)\" />\r\n <div class=\"qms-breadcrumb-item-text\" [qms-tool-tip]=\"previousNode['name']\"\r\n [showToolTip]=\"previousNode['isOverflow']\" #breadcrumbItemText mode=\"dark\" (click)=\"onItemSelect(previousNode)\">\r\n {{previousNode.name}}\r\n </div>\r\n </div>\r\n </div>\r\n</div>",
5098
5072
  encapsulation: i0.ViewEncapsulation.None,
5099
- styles: [".breadcrumb-container{display:flex;font-family:Open Sans;font-size:14px;font-weight:600;color:#323232}.breadcrumb-container .qms-breadcrumb-direction-icon,.breadcrumb-container .qms-breadcrumb-item{display:flex;align-items:center;padding:3px 0 2px}.breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:18px;height:18px;font-size:18px;margin-left:.5rem;margin-right:.5rem}.breadcrumb-container .item-icon{margin-right:2px}.breadcrumb-container .qms-breadcrumb-item{cursor:inherit;margin:8px 8px 8px 0}.breadcrumb-container .qms-breadcrumb-item .qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem}.breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-overflow{max-width:240px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.breadcrumb-container .qms-breadcrumb-item .breadcrumb__dropdown-btn{width:2rem;height:2rem}.breadcrumb-container .qms-breadcrumb-item .breadcrumb__dropdown-btn svg{display:block}.breadcrumb-container .qms-breadcrumb-last-item{color:rgba(0,0,0,.6);font-weight:400;cursor:not-allowed}.breadcrumb-container .mat-drawer-container{z-index:3;background-color:transparent}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:12px;height:12px;font-size:12px;margin-left:.25rem;margin-right:.25rem;color:rgba(0,0,0,.6)}.qms-breadcrumb-table .breadcrumb-container .item-icon{margin-right:1px}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-text{font-size:12px;font-weight:400;color:rgba(0,0,0,.6)}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-overflow{max-width:240px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qms-breadcrumb__multi-line .breadcrumb-container{flex-wrap:wrap}.qms-breadcrumb-menu .qms-dropdown-menu-item{border:none}.breadcrumb-sidenav{display:flex;align-items:center;justify-content:center;width:100%;background:#fff;z-index:3}.breadcrumb-sidenav .header{font-family:Open Sans;font-style:normal;background-color:var(--background-area);height:71px;display:flex;justify-content:space-between;padding:16px}.breadcrumb-sidenav .header p{font-weight:600;font-size:18px;line-height:25px;color:var(--default-color);margin-bottom:0}.breadcrumb-sidenav .header .sub{font-weight:400;font-size:14px;line-height:22px;color:#5a5a5a}.breadcrumb-sidenav .content{padding:0 16px 16px;height:calc(100vh - 71px);overflow:auto}.breadcrumb-sidenav .content .qms-list-option{height:unset!important}.breadcrumb-sidenav .content .qms-list-option .mat-list-text{padding-right:0!important;padding-left:0!important}.breadcrumb-sidenav .content .qms-list-option .mat-list-item-content{border-bottom:1px solid #e0e0e0;padding:8px}.breadcrumb-sidenav .content-text-name{display:flex;align-items:center;justify-content:space-between}.breadcrumb-sidenav .content-text-name .content-text-name-heading{display:flex;align-items:center;color:var(--default-color)}.breadcrumb-sidenav .content-text-name .content-text-name-heading .item-icon{margin-right:10px;color:var(--tab-border)}.breadcrumb-sidenav .content-text-name .color-gray{color:var(--tab-border)}.more_horiz-btn.qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem;margin:8px 0 8px 8px}.subdirectory_arrow_right{color:#0163b2}"]
5073
+ styles: [".breadcrumb-container{display:flex;font-family:Open Sans;font-size:14px;font-weight:600;color:#323232}.breadcrumb-container .qms-breadcrumb-direction-icon,.breadcrumb-container .qms-breadcrumb-item{display:flex;align-items:center;padding:3px 0 2px}.breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:18px;height:18px;font-size:18px;margin-left:.25rem;margin-right:.25rem}.breadcrumb-container .item-icon{margin-right:2px}.breadcrumb-container .qms-breadcrumb-item{cursor:inherit;margin:8px 0}.breadcrumb-container .qms-breadcrumb-item .qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem}.breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-overflow{max-width:240px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.breadcrumb-container .qms-breadcrumb-item .breadcrumb__dropdown-btn{width:2rem;height:2rem}.breadcrumb-container .qms-breadcrumb-item .breadcrumb__dropdown-btn svg{display:block}.breadcrumb-container .qms-breadcrumb-last-item{color:rgba(0,0,0,.6);font-weight:400;cursor:not-allowed}.breadcrumb-container .mat-drawer-container{z-index:3;background-color:transparent}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:12px;height:12px;font-size:12px;margin-left:.25rem;margin-right:.25rem;color:rgba(0,0,0,.6)}.qms-breadcrumb-table .breadcrumb-container .item-icon{margin-right:1px}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-text{font-size:12px;font-weight:400;color:rgba(0,0,0,.6)}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-overflow{max-width:240px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qms-breadcrumb__multi-line .breadcrumb-container{flex-wrap:wrap}.qms-breadcrumb-menu .qms-dropdown-menu-item{border:none}.breadcrumb-sidenav{display:flex;align-items:center;justify-content:center;width:100%;background:#fff;z-index:3}.breadcrumb-sidenav .header{font-family:Open Sans;font-style:normal;background-color:var(--background-area);height:71px;display:flex;justify-content:space-between;padding:16px}.breadcrumb-sidenav .header p{font-weight:600;font-size:18px;line-height:25px;color:var(--default-color);margin-bottom:0}.breadcrumb-sidenav .header .sub{font-weight:400;font-size:14px;line-height:22px;color:#5a5a5a}.breadcrumb-sidenav .content{padding:0 16px 16px;height:calc(100vh - 71px);overflow:auto}.breadcrumb-sidenav .content .qms-list-option{height:unset!important}.breadcrumb-sidenav .content .qms-list-option .mat-list-text{padding-right:0!important;padding-left:0!important}.breadcrumb-sidenav .content .qms-list-option .mat-list-item-content{border-bottom:1px solid #e0e0e0;padding:8px}.breadcrumb-sidenav .content-text-name{display:flex;align-items:center;justify-content:space-between}.breadcrumb-sidenav .content-text-name .content-text-name-heading{display:flex;align-items:center;color:var(--default-color)}.breadcrumb-sidenav .content-text-name .content-text-name-heading .item-icon{margin-right:10px;color:var(--tab-border)}.breadcrumb-sidenav .content-text-name .color-gray{color:var(--tab-border)}.more_horiz-btn.qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem;margin:8px 0 8px 8px}.subdirectory_arrow_right{color:#0163b2}"]
5100
5074
  },] }
5101
5075
  ];
5102
5076
  QMSBreadcrumb.ctorParameters = function () { return [
@@ -18109,7 +18083,7 @@
18109
18083
  }(joint.shapes.standard.Link));
18110
18084
  app.Link = Link;
18111
18085
  })(exports.app || (exports.app = {}));
18112
- var ɵ0$3 = function (flags) {
18086
+ var ɵ0$2 = function (flags) {
18113
18087
  if (this.hasFlag(flags, 'RENDER')) {
18114
18088
  this.render();
18115
18089
  }
@@ -18144,7 +18118,7 @@
18144
18118
  position: ['TRANSFORM'],
18145
18119
  angle: ['TRANSFORM']
18146
18120
  },
18147
- confirmUpdate: ɵ0$3,
18121
+ confirmUpdate: ɵ0$2,
18148
18122
  render: ɵ1,
18149
18123
  update: ɵ2
18150
18124
  });
@@ -18174,7 +18148,7 @@
18174
18148
  erd: erd,
18175
18149
  uml: uml,
18176
18150
  org: org,
18177
- 'ɵ0': ɵ0$3,
18151
+ 'ɵ0': ɵ0$2,
18178
18152
  'ɵ1': ɵ1,
18179
18153
  'ɵ2': ɵ2
18180
18154
  });
@@ -25725,7 +25699,7 @@
25725
25699
  selectionChangeEvent: [{ type: i0.Output }]
25726
25700
  };
25727
25701
 
25728
- var ɵ0$2 = { displayDefaultIndicatorType: false };
25702
+ var ɵ0$1 = { displayDefaultIndicatorType: false };
25729
25703
  var QmsStepperModule = /** @class */ (function () {
25730
25704
  function QmsStepperModule() {
25731
25705
  }
@@ -25749,7 +25723,7 @@
25749
25723
  ],
25750
25724
  providers: [{
25751
25725
  provide: stepper$1.STEPPER_GLOBAL_OPTIONS,
25752
- useValue: ɵ0$2
25726
+ useValue: ɵ0$1
25753
25727
  }]
25754
25728
  },] }
25755
25729
  ];
@@ -29664,6 +29638,7 @@
29664
29638
  PaginationSize["large"] = "large";
29665
29639
  PaginationSize["mobile"] = "mobile";
29666
29640
  })(exports.PaginationSize || (exports.PaginationSize = {}));
29641
+ var ɵ0 = { overlayPanelClass: 'customCDKpanel' };
29667
29642
  var QMSPaginatorComponent = /** @class */ (function () {
29668
29643
  function QMSPaginatorComponent(trans) {
29669
29644
  this.trans = trans;
@@ -29856,11 +29831,17 @@
29856
29831
  QMSPaginatorComponent.decorators = [
29857
29832
  { type: i0.Component, args: [{
29858
29833
  selector: 'qms-paginator',
29859
- template: "<div class=\"qms-paginator-outer-container\" [class.size-small]='size == sizeSmall' [class.d-none]='numHidden > length'>\r\n <div class=\"mat-paginator-container\" *ngIf='size != sizeMobile'>\r\n <div class=\"qms-total-result\" [class.mr-b-size-small]='size == sizeSmall'>\r\n <span>{{LANG.RESULTS}}: {{length}}</span>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">{{LANG.ROW_PER_PAGE}}:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">{{LANG.JUM_TO_PAGE}}:</div>\r\n\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size qms-form-select-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field> \r\n </div>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages' >\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\" \r\n [class.selected]='pageIndex == item' [disabled]='pageIndex == item'\r\n (click)='changePage(item)'>\r\n {{item}}\r\n </button>\r\n </ng-container>\r\n \r\n <button qms-btn-icon color=\"light\" (click)='nextPage()' [disabled]='maxpage == pageIndex'>\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mat-paginator-container-mobile\" *ngIf='size == sizeMobile'>\r\n <div class=\"mat-paginator-container\" *ngIf='size == sizeMobile'>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages' >\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\" \r\n [class.selected]='pageIndex == item' [disabled]='pageIndex == item'\r\n (click)='changePage(item)'>\r\n {{item}}\r\n </button>\r\n </ng-container>\r\n \r\n <button qms-btn-icon color=\"light\" (click)='nextPage()' [disabled]='maxpage == pageIndex'>\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"qms-total-result\">\r\n <span>{{LANG.RESULTS}}: {{length}}</span>\r\n </div>\r\n <div style=\"display: flex;\">\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">{{LANG.ROW_PER_PAGE}}:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">{{LANG.JUM_TO_PAGE}}:</div>\r\n <mat-form-field\r\n qms-form\r\n qms-select-input\r\n class=\"qms-form-page-size qms-form-select-page-size\"\r\n appearance=\"fill\">\r\n <mat-select\r\n panelClass=\"qms-select-panel\"\r\n [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\"\r\n qms-select>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field> \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n</div>",
29834
+ template: "<div class=\"qms-paginator-outer-container\" [class.size-small]='size == sizeSmall' [class.d-none]='numHidden > length'>\r\n <div class=\"mat-paginator-container\" *ngIf='size != sizeMobile'>\r\n <div class=\"qms-total-result\" [class.mr-b-size-small]='size == sizeSmall'>\r\n <span>{{LANG.RESULTS}}: {{length}}</span>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">{{LANG.ROW_PER_PAGE}}:</div>\r\n <mat-form-field qms-form qms-select-input class=\"qms-form-page-size\" appearance=\"fill\">\r\n <mat-select panelClass=\"qms-select-panel\" [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\" qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">{{LANG.JUM_TO_PAGE}}:</div>\r\n\r\n <mat-form-field qms-form qms-select-input class=\"qms-form-page-size qms-form-select-page-size\"\r\n appearance=\"fill\">\r\n <mat-select panelClass=\"qms-select-panel\" [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\" qms-select disableOptionCentering>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages'>\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\" [class.selected]='pageIndex == item'\r\n [disabled]='pageIndex == item' (click)='changePage(item)'>\r\n {{item}}\r\n </button>\r\n </ng-container>\r\n\r\n <button qms-btn-icon color=\"light\" (click)='nextPage()' [disabled]='maxpage == pageIndex'>\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mat-paginator-container-mobile\" *ngIf='size == sizeMobile'>\r\n <div class=\"mat-paginator-container\" *ngIf='size == sizeMobile'>\r\n <div class=\"qms-paginator-range-actions\">\r\n <button qms-btn-icon color=\"light\" (click)='previousPage()' [disabled]='minPage == pageIndex'>\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n <ng-container *ngFor='let item of displayNumberOfPages'>\r\n <span *ngIf='item == \"...\"' class=\"qms-3d\">{{item}}</span>\r\n <button *ngIf='item != \"...\"' qms-btn-icon color=\"light\" [class.selected]='pageIndex == item'\r\n [disabled]='pageIndex == item' (click)='changePage(item)'>\r\n {{item}}\r\n </button>\r\n </ng-container>\r\n\r\n <button qms-btn-icon color=\"light\" (click)='nextPage()' [disabled]='maxpage == pageIndex'>\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"qms-total-result\">\r\n <span>{{LANG.RESULTS}}: {{length}}</span>\r\n </div>\r\n <div style=\"display: flex;\">\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeSmall'>\r\n <div class=\"qms-pagesize-label\">{{LANG.ROW_PER_PAGE}}:</div>\r\n <mat-form-field qms-form qms-select-input class=\"qms-form-page-size\" appearance=\"fill\">\r\n <mat-select panelClass=\"qms-select-panel\" [value]=\"pageSize\"\r\n (selectionChange)=\"_changePageSize($event.value)\" qms-select>\r\n <mat-option *ngFor=\"let item of pageSizeOptions\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"qms-paginator-page-size\" *ngIf='size != sizeMedium && size != sizeSmall'>\r\n <div class=\"qms-pagesize-label \">{{LANG.JUM_TO_PAGE}}:</div>\r\n <mat-form-field qms-form qms-select-input class=\"qms-form-page-size qms-form-select-page-size\"\r\n appearance=\"fill\">\r\n <mat-select panelClass=\"qms-select-panel\" [value]=\"pageIndex\"\r\n (selectionChange)=\"_changePageNumber($event.value)\" qms-select>\r\n <mat-option *ngFor=\"let item of numberOfPages\" [value]=\"item\">\r\n {{ item }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n</div>",
29860
29835
  host: {
29861
29836
  'class': 'qms-paginator'
29862
29837
  },
29863
- styles: ["::ng-deep .qms-paginator{display:block}::ng-deep .qms-paginator .qms-paginator-outer-container{display:flex}::ng-deep .qms-paginator .mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}::ng-deep .qms-paginator .mat-paginator-container .qms-btn-icon{width:40px;height:40px;line-height:40px}::ng-deep .qms-paginator .mat-paginator-container .mat-select .mat-select-arrow{margin-top:20px}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{margin-right:24px;margin-bottom:21px}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result span{font-family:Open Sans;font-weight:400;font-size:14px;line-height:22px;color:rgba(0,0,0,.6)}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size{margin-right:24px;display:flex;align-items:baseline}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-pagesize-label{font-weight:400;font-size:14px;line-height:22px;color:#323232;font-family:Open Sans;font-style:normal;margin-right:8px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-form-page-size .mat-form-field-flex{width:80px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-form-select-page-size .mat-form-field-flex{width:51px;padding-left:9px;padding-right:5px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .jump-page .mat-form-field-wrapper .mat-form-field-flex{width:55px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .mat-form-field-flex{height:40px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .mat-form-field-flex .mat-form-field-infix{padding-top:4px;border-top:0;padding-bottom:0;height:25px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions{display:flex;align-items:center;margin-bottom:15px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions .selected{background-color:#e5eefb;color:#1954a9}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions .qms-3d{font-weight:600;font-size:14px;line-height:22px;color:#323232}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions button:not(.qms-btn-disabled) .qms-btn-icon-wrapper{color:#323232}::ng-deep .qms-paginator .mat-paginator-container-mobile .mat-select .mat-select-arrow{margin-top:20px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-total-result{margin-bottom:16px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-total-result span{font-family:Open Sans;font-style:normal;font-weight:400;font-size:12px;line-height:16px;color:rgba(0,0,0,.6)}::ng-deep .qms-paginator .mat-paginator-container-mobile .mat-paginator-container{justify-content:flex-start}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size{margin-right:24px;display:flex;align-items:baseline}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-pagesize-label{font-weight:400;font-size:12px;line-height:22px;color:#323232;font-family:Open Sans;font-style:normal;margin-right:8px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-form-page-size .mat-form-field-flex{width:80px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-form-select-page-size .mat-form-field-flex{width:51px;padding-left:9px;padding-right:5px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .jump-page .mat-form-field-wrapper .mat-form-field-flex{width:55px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .mat-form-field-flex{height:40px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .mat-form-field-flex .mat-form-field-infix{padding-top:4px;border-top:0;padding-bottom:0;height:25px}::ng-deep .qms-paginator .size-small .mat-paginator-container{justify-content:flex-start}::ng-deep .qms-paginator .mr-b-size-small{margin-bottom:17px!important}"]
29838
+ providers: [
29839
+ {
29840
+ provide: select.MAT_SELECT_CONFIG,
29841
+ useValue: ɵ0,
29842
+ },
29843
+ ],
29844
+ styles: ["::ng-deep .customCDKpanel{transform:none!important}::ng-deep .qms-paginator{display:block}::ng-deep .qms-paginator .qms-paginator-outer-container{display:flex}::ng-deep .qms-paginator .mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}::ng-deep .qms-paginator .mat-paginator-container .qms-btn-icon{width:40px;height:40px;line-height:40px}::ng-deep .qms-paginator .mat-paginator-container .mat-select .mat-select-arrow{margin-top:20px}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result{margin-right:24px;margin-bottom:21px}::ng-deep .qms-paginator .mat-paginator-container .qms-total-result span{font-family:Open Sans;font-weight:400;font-size:14px;line-height:22px;color:rgba(0,0,0,.6)}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size{margin-right:24px;display:flex;align-items:baseline}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-pagesize-label{font-weight:400;font-size:14px;line-height:22px;color:#323232;font-family:Open Sans;font-style:normal;margin-right:8px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-form-page-size .mat-form-field-flex{width:80px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .qms-form-select-page-size .mat-form-field-flex{width:51px;padding-left:9px;padding-right:5px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .jump-page .mat-form-field-wrapper .mat-form-field-flex{width:55px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .mat-form-field-flex{height:40px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-page-size .mat-form-field-flex .mat-form-field-infix{padding-top:4px;border-top:0;padding-bottom:0;height:25px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions{display:flex;align-items:center;margin-bottom:15px}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions .selected{background-color:#e5eefb;color:#1954a9}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions .qms-3d{font-weight:600;font-size:14px;line-height:22px;color:#323232}::ng-deep .qms-paginator .mat-paginator-container .qms-paginator-range-actions button:not(.qms-btn-disabled) .qms-btn-icon-wrapper{color:#323232}::ng-deep .qms-paginator .mat-paginator-container-mobile .mat-select .mat-select-arrow{margin-top:20px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-total-result{margin-bottom:16px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-total-result span{font-family:Open Sans;font-style:normal;font-weight:400;font-size:12px;line-height:16px;color:rgba(0,0,0,.6)}::ng-deep .qms-paginator .mat-paginator-container-mobile .mat-paginator-container{justify-content:flex-start}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size{margin-right:24px;display:flex;align-items:baseline}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-pagesize-label{font-weight:400;font-size:12px;line-height:22px;color:#323232;font-family:Open Sans;font-style:normal;margin-right:8px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-form-page-size .mat-form-field-flex{width:80px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .qms-form-select-page-size .mat-form-field-flex{width:51px;padding-left:9px;padding-right:5px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .jump-page .mat-form-field-wrapper .mat-form-field-flex{width:55px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .mat-form-field-flex{height:40px}::ng-deep .qms-paginator .mat-paginator-container-mobile .qms-paginator-page-size .mat-form-field-flex .mat-form-field-infix{padding-top:4px;border-top:0;padding-bottom:0;height:25px}::ng-deep .qms-paginator .size-small .mat-paginator-container{justify-content:flex-start}::ng-deep .qms-paginator .mr-b-size-small{margin-bottom:17px!important}"]
29864
29845
  },] }
29865
29846
  ];
29866
29847
  QMSPaginatorComponent.ctorParameters = function () { return [
@@ -30125,1033 +30106,6 @@
30125
30106
  return TreeModelNavDrawer;
30126
30107
  }());
30127
30108
 
30128
- var QMSSelectDepartmentTreeConfig = /** @class */ (function () {
30129
- function QMSSelectDepartmentTreeConfig() {
30130
- this.treeData = [];
30131
- this.selectIncludeLabel = '';
30132
- this.selectedList = [];
30133
- this.disabledList = [];
30134
- this.includeChildren = false;
30135
- }
30136
- return QMSSelectDepartmentTreeConfig;
30137
- }());
30138
-
30139
- var QMSSelectDepartmentTreeGlobalService = /** @class */ (function () {
30140
- function QMSSelectDepartmentTreeGlobalService() {
30141
- this.getDataTree$ = new rxjs.BehaviorSubject([]);
30142
- this.searchDepartment$ = new rxjs.Subject();
30143
- }
30144
- QMSSelectDepartmentTreeGlobalService.prototype.updateDataTree = function (data) {
30145
- this.getDataTree$.next(data);
30146
- };
30147
- QMSSelectDepartmentTreeGlobalService.prototype.setResultSearch = function (data) {
30148
- this.searchDepartment$.next(data);
30149
- };
30150
- return QMSSelectDepartmentTreeGlobalService;
30151
- }());
30152
- QMSSelectDepartmentTreeGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectDepartmentTreeGlobalService_Factory() { return new QMSSelectDepartmentTreeGlobalService(); }, token: QMSSelectDepartmentTreeGlobalService, providedIn: "root" });
30153
- QMSSelectDepartmentTreeGlobalService.decorators = [
30154
- { type: i0.Injectable, args: [{
30155
- providedIn: 'root'
30156
- },] }
30157
- ];
30158
-
30159
- var SelectDepartmentTreeComponent = /** @class */ (function () {
30160
- function SelectDepartmentTreeComponent(selectDepartmentService, cdRef, domSanitizer, appIconService, iconRegistry, eleRef) {
30161
- var _this = this;
30162
- this.selectDepartmentService = selectDepartmentService;
30163
- this.cdRef = cdRef;
30164
- this.domSanitizer = domSanitizer;
30165
- this.appIconService = appIconService;
30166
- this.iconRegistry = iconRegistry;
30167
- this.eleRef = eleRef;
30168
- this.enableIncludeChild = false;
30169
- this.enableTreeSearch = false;
30170
- this.treeDataSourceConfig = new QMSSelectDepartmentTreeConfig();
30171
- this.ngUnsubscribe = new rxjs.Subject();
30172
- this.isLoaded = false;
30173
- this.groupIncludeChild = [];
30174
- this.singleItem = [];
30175
- this.resultSelected = [];
30176
- this.valueChange$ = new rxjs.Subject();
30177
- this.textSearch = new forms.FormControl('');
30178
- this.onSearchEvent = new i0.EventEmitter();
30179
- this.resultSearch = [];
30180
- this.activeNode = '';
30181
- this.nestedTreeNodeMap = new Map();
30182
- this.flatTreeNodeMap = new Map();
30183
- this.checkListSelection = new collections.SelectionModel(true);
30184
- this.isShowTreeSearch = false;
30185
- this.itemIconType = ItemIconType;
30186
- this._transformer = function (node, level) {
30187
- var _a;
30188
- var flatNode = _this._convertToFlatNode(node) || new QMSFlatNodeTree();
30189
- flatNode.id = node.id;
30190
- flatNode.name = node.name;
30191
- flatNode.expandable = (node.children && node.children.length > 0) || (!!node.childCount);
30192
- flatNode.level = level;
30193
- flatNode.parentId = node.parentId;
30194
- flatNode.markedGetChildren = !!((_a = node.children) === null || _a === void 0 ? void 0 : _a.length);
30195
- flatNode.itemIcon = node.itemIcon;
30196
- flatNode.itemIconSvg = node.itemIconSvg;
30197
- flatNode.isFile = node.isFile;
30198
- flatNode.disabled = node.disabled;
30199
- _this.flatTreeNodeMap.set(flatNode, node);
30200
- _this.nestedTreeNodeMap.set(node, flatNode);
30201
- return flatNode;
30202
- };
30203
- this.getLevel = function (node) { return node === null || node === void 0 ? void 0 : node.level; };
30204
- this._getChild = function (node) { return node.children; };
30205
- this.isExpandable = function (node) { return node.expandable; };
30206
- this.hasChild = function (_, node) { return node.expandable; };
30207
- this.treeControl = new tree.FlatTreeControl(this.getLevel, this.isExpandable);
30208
- this.treeFlattener = new tree$1.MatTreeFlattener(this._transformer, this.getLevel, this.isExpandable, this._getChild);
30209
- this.dataSource = new tree$1.MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
30210
- // Init tree data
30211
- this.selectDepartmentService.getDataTree$
30212
- .pipe(operators.takeUntil(this.ngUnsubscribe))
30213
- .subscribe(function (data) {
30214
- _this.dataSource.data = data;
30215
- });
30216
- // Register icon
30217
- appIconService.registerProcessIcon(iconRegistry, domSanitizer);
30218
- appIconService.registerProcessAreaIcon(iconRegistry, domSanitizer);
30219
- appIconService.registerDocumentIcon(iconRegistry, domSanitizer);
30220
- appIconService.registerFolderIcon(iconRegistry, domSanitizer);
30221
- appIconService.registerDeviationIcon(iconRegistry, domSanitizer);
30222
- appIconService.registerChecklistIcon(iconRegistry, domSanitizer);
30223
- appIconService.registerRiskIcon(iconRegistry, domSanitizer);
30224
- this.textSearch.valueChanges
30225
- .pipe(operators.takeUntil(this.ngUnsubscribe))
30226
- .subscribe(function (result) {
30227
- if (result) {
30228
- _this.onSearchEvent.emit(result);
30229
- return;
30230
- }
30231
- });
30232
- this.selectDepartmentService.searchDepartment$
30233
- .pipe(operators.takeUntil(this.ngUnsubscribe))
30234
- .subscribe(function (result) {
30235
- _this.resultSearch = result;
30236
- });
30237
- }
30238
- Object.defineProperty(SelectDepartmentTreeComponent.prototype, "treeData", {
30239
- set: function (value) {
30240
- this.treeDataSourceConfig.treeData = value || [];
30241
- this.selectDepartmentService.updateDataTree(this.treeDataSourceConfig.treeData);
30242
- },
30243
- enumerable: false,
30244
- configurable: true
30245
- });
30246
- Object.defineProperty(SelectDepartmentTreeComponent.prototype, "selectedList", {
30247
- set: function (value) {
30248
- this.treeDataSourceConfig.selectedList = value || [];
30249
- },
30250
- enumerable: false,
30251
- configurable: true
30252
- });
30253
- Object.defineProperty(SelectDepartmentTreeComponent.prototype, "currentTreeData", {
30254
- get: function () {
30255
- return this.selectDepartmentService.getDataTree$.value;
30256
- },
30257
- enumerable: false,
30258
- configurable: true
30259
- });
30260
- SelectDepartmentTreeComponent.prototype.ngOnInit = function () {
30261
- this._initTreeData();
30262
- this._initCheckListSelected();
30263
- };
30264
- SelectDepartmentTreeComponent.prototype.ngOnDestroy = function () {
30265
- this.ngUnsubscribe.next();
30266
- this.ngUnsubscribe.complete();
30267
- };
30268
- SelectDepartmentTreeComponent.prototype._initTreeData = function () {
30269
- var _this = this;
30270
- if (this.treeDataSourceConfig.treeData.length) {
30271
- var rootNode = this.treeDataSourceConfig.treeData.filter(function (item) { return +item.parentId === 0; })
30272
- .map(function (item, _index) {
30273
- var node = {
30274
- id: item.id,
30275
- name: item.name,
30276
- markedGetChildren: item.markedGetChildren,
30277
- children: [],
30278
- disabled: _this.treeDataSourceConfig.disabledList.includes(item.id),
30279
- itemIcon: item.itemIcon,
30280
- itemMatIcon: item.itemMatIcon,
30281
- itemIconSvg: item.itemIconSvg
30282
- };
30283
- return node;
30284
- });
30285
- this.selectDepartmentService.updateDataTree(rootNode);
30286
- var groupResult_1 = this.treeDataSourceConfig.treeData.reduce(function (result, currentValue) {
30287
- (result[currentValue['parentId']] = result[currentValue['parentId']] || []).push(currentValue);
30288
- return result;
30289
- }, {});
30290
- var groupResultKey = Object.keys(groupResult_1);
30291
- while (this.treeControl.dataNodes.filter(function (node) { return node.expandable; }).every(function (node) { return !node.markedGetChildren; })) {
30292
- groupResultKey.forEach(function (key, index) {
30293
- var parentFlatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === key; });
30294
- if (parentFlatNode) {
30295
- var parentNestedNode = _this._convertToNestedNode(parentFlatNode);
30296
- parentNestedNode.markedGetChildren = true;
30297
- parentNestedNode.children = groupResult_1[key];
30298
- parentNestedNode.childCount = parentNestedNode.children.length;
30299
- _this.selectDepartmentService.updateDataTree(_this.currentTreeData);
30300
- }
30301
- });
30302
- }
30303
- }
30304
- };
30305
- SelectDepartmentTreeComponent.prototype._initCheckListSelected = function () {
30306
- var _this = this;
30307
- if (!this.treeDataSourceConfig.selectedList.length)
30308
- return;
30309
- this.groupIncludeChild = this.treeDataSourceConfig.selectedList.filter(function (item) { return item.children; });
30310
- this.singleItem = this.treeDataSourceConfig.selectedList.filter(function (item) { return item.children === null; });
30311
- this.treeDataSourceConfig.selectedList.forEach(function (item) {
30312
- var _a;
30313
- var flatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === item.id; });
30314
- if (flatNode) {
30315
- _this.checkListSelection.select(flatNode);
30316
- ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) && item.children.forEach(function (child) {
30317
- var node = _this.treeControl.dataNodes.find(function (_x) { return _x.id === child.id; });
30318
- if (node) {
30319
- _this.checkListSelection.select(node);
30320
- _this.onExpandAllParent(node);
30321
- }
30322
- });
30323
- _this.onExpandAllParent(flatNode);
30324
- _this.resultSelected = __spreadArray(__spreadArray([], __read(_this.singleItem)), __read(_this.groupIncludeChild));
30325
- _this.valueChange$.next(_this.resultSelected);
30326
- }
30327
- });
30328
- };
30329
- SelectDepartmentTreeComponent.prototype.onExpandNode = function (node) {
30330
- };
30331
- SelectDepartmentTreeComponent.prototype.onOptionSearchSelected = function (value) {
30332
- var flatNode = this.treeControl.dataNodes.find(function (node) { return node.id === value.id; });
30333
- if (!flatNode)
30334
- return;
30335
- this.checkListSelection.select(flatNode);
30336
- this._handleCheckNode(flatNode);
30337
- this.scrollIntoNode(flatNode.id);
30338
- };
30339
- SelectDepartmentTreeComponent.prototype.onSlideToggleChange = function () {
30340
- };
30341
- SelectDepartmentTreeComponent.prototype.displayWhenSelectDepartmentOption = function ($event) {
30342
- return '';
30343
- };
30344
- SelectDepartmentTreeComponent.prototype.onCheckNode = function (node) {
30345
- this.checkListSelection.toggle(node);
30346
- this._handleCheckNode(node);
30347
- this.valueChange$.next(this.resultSelected);
30348
- };
30349
- SelectDepartmentTreeComponent.prototype.onExpandAllParent = function (node) {
30350
- var _this = this;
30351
- var parents = this._getAllParentNode(node);
30352
- if (!!(parents === null || parents === void 0 ? void 0 : parents.length)) {
30353
- parents.forEach(function (parent) {
30354
- _this.treeControl.expand(parent);
30355
- });
30356
- }
30357
- };
30358
- SelectDepartmentTreeComponent.prototype.onRemoveNode = function (nodeId) {
30359
- var flatNode = this.treeControl.dataNodes.find(function (item) { return item.id === nodeId; });
30360
- this.checkListSelection.deselect(flatNode);
30361
- flatNode && this._handleCheckNode(flatNode);
30362
- };
30363
- SelectDepartmentTreeComponent.prototype.isIndeterminate = function (node) {
30364
- var _this = this;
30365
- var childSelected = this._getListChildrenOfNode(node).filter(function (item) { return _this.checkListSelection.isSelected(item); });
30366
- return (!!childSelected.length && !this.checkListSelection.isSelected(node));
30367
- };
30368
- SelectDepartmentTreeComponent.prototype.isCheckAll = function (node) {
30369
- var _this = this;
30370
- var listCheck = __spreadArray(__spreadArray([], __read(this._getListChildrenOfNode(node))), [node]);
30371
- return listCheck.every(function (item) { return _this.checkListSelection.isSelected(item); });
30372
- };
30373
- SelectDepartmentTreeComponent.prototype._handleCheckNode = function (node) {
30374
- var _b, _c;
30375
- var isSelectedNode = this.checkListSelection.isSelected(node);
30376
- var isOwnerGroup = !!this.groupIncludeChild.find(function (gr) { return (gr === null || gr === void 0 ? void 0 : gr.id) === node.id; });
30377
- if (isSelectedNode) {
30378
- var children = this.treeDataSourceConfig.includeChildren && this._getListChildrenOfNode(node);
30379
- children && (_b = this.checkListSelection).select.apply(_b, __spreadArray([], __read(children)));
30380
- }
30381
- else {
30382
- var childSelected = this._getChildrenSelected(node);
30383
- // check node is owner group or mode is 'include children' and remove all children
30384
- (isOwnerGroup || this.treeDataSourceConfig.includeChildren) && (_c = this.checkListSelection).deselect.apply(_c, __spreadArray([], __read(childSelected)));
30385
- }
30386
- this._updateGroupResult(node);
30387
- this._updateSingleResult();
30388
- this.resultSelected = __spreadArray(__spreadArray([], __read(this.singleItem)), __read(this.groupIncludeChild));
30389
- };
30390
- // Check group root contain node and re-update chilren
30391
- SelectDepartmentTreeComponent.prototype._updateGroupResult = function (node) {
30392
- var nestedNode = this._convertToNestedNode(node);
30393
- var existedGroup = this._getExistedGroup(node);
30394
- var childrenSelected = this._mapToNestedListNode(this._getChildrenSelected(this._convertToFlatNode(existedGroup) || node));
30395
- var item = this.groupIncludeChild.find(function (gr) { return gr.id == nestedNode.id || gr.id === (existedGroup === null || existedGroup === void 0 ? void 0 : existedGroup.id); });
30396
- if (!!item) {
30397
- item.children = childrenSelected;
30398
- }
30399
- else {
30400
- this.treeDataSourceConfig.includeChildren && this.groupIncludeChild.push(Object.assign(Object.assign({}, nestedNode), { children: childrenSelected }));
30401
- }
30402
- this._checkGroupSelected(childrenSelected);
30403
- };
30404
- // Check single selected result
30405
- SelectDepartmentTreeComponent.prototype._updateSingleResult = function () {
30406
- var _this = this;
30407
- var excludeChildOfGroup = [];
30408
- this.groupIncludeChild.forEach(function (gr) {
30409
- excludeChildOfGroup = __spreadArray(__spreadArray([], __read(excludeChildOfGroup)), __read(gr.children.map(function (x) { return x.id; })));
30410
- });
30411
- this.singleItem = this.treeControl.dataNodes.filter(function (item) {
30412
- var isSelected = _this.checkListSelection.isSelected(item);
30413
- var existedGroup = _this._getExistedGroup(item);
30414
- var isOwnerGroup = !!_this.groupIncludeChild.find(function (x) { return (x === null || x === void 0 ? void 0 : x.id) === item.id; });
30415
- return isSelected && !existedGroup && !isOwnerGroup && !excludeChildOfGroup.includes(item.id);
30416
- }).map(function (item) {
30417
- var nestedNode = _this._convertToNestedNode(item);
30418
- nestedNode.children = null;
30419
- return nestedNode;
30420
- });
30421
- };
30422
- SelectDepartmentTreeComponent.prototype._checkGroupSelected = function (childSelected) {
30423
- var _this = this;
30424
- this.groupIncludeChild = this.groupIncludeChild.filter(function (gr) {
30425
- var flatNode = _this.treeControl.dataNodes.find(function (node) { return node.id === gr.id; });
30426
- var childSelectedInGroup = gr.children.filter(function (x) { return childSelected.includes(x); });
30427
- gr.childCount = _this._getListChildrenOfNode(flatNode).length;
30428
- // 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
30429
- var arrChild = _this.treeDataSourceConfig.includeChildren ? childSelected : childSelectedInGroup;
30430
- return gr.childCount > 0 && _this.checkListSelection.isSelected(flatNode) && !arrChild.find(function (_x) { return _x.id === gr.id; });
30431
- });
30432
- };
30433
- SelectDepartmentTreeComponent.prototype._getExistedGroup = function (node) {
30434
- var _this = this;
30435
- var allParent = this._getAllParentNode(node);
30436
- var listGroupIds = this.groupIncludeChild.map(function (gr) { return gr.id; });
30437
- var existedGroup;
30438
- allParent.forEach(function (item) {
30439
- if (listGroupIds.includes(item.id)) {
30440
- existedGroup = _this._convertToNestedNode(item);
30441
- }
30442
- });
30443
- return existedGroup;
30444
- };
30445
- SelectDepartmentTreeComponent.prototype._getChildrenSelected = function (node) {
30446
- var _this = this;
30447
- return this._getListChildrenOfNode(node).filter(function (x) { return _this.checkListSelection.isSelected(x); });
30448
- };
30449
- SelectDepartmentTreeComponent.prototype._getListChildrenOfNode = function (node) {
30450
- return this.treeControl.getDescendants(node);
30451
- };
30452
- SelectDepartmentTreeComponent.prototype._mapToNestedListNode = function (flatNodeList) {
30453
- var _this = this;
30454
- return flatNodeList.map(function (item) { return _this._convertToNestedNode(item); });
30455
- };
30456
- SelectDepartmentTreeComponent.prototype._convertToNestedNode = function (node) {
30457
- return this.flatTreeNodeMap.get(node);
30458
- };
30459
- SelectDepartmentTreeComponent.prototype._convertToFlatNode = function (node) {
30460
- return this.nestedTreeNodeMap.get(node);
30461
- };
30462
- SelectDepartmentTreeComponent.prototype._getRootSelected = function (node) {
30463
- var _this = this;
30464
- var parentList = this._getAllParentNode(node);
30465
- var groupExist;
30466
- if (parentList.length) {
30467
- parentList.forEach(function (item) {
30468
- if (_this.checkListSelection.isSelected(item)) {
30469
- groupExist = item;
30470
- }
30471
- });
30472
- }
30473
- return groupExist;
30474
- };
30475
- SelectDepartmentTreeComponent.prototype._getAllParentNode = function (node) {
30476
- var listParent = [];
30477
- var parent = this._getParentNode(node);
30478
- while (parent) {
30479
- listParent.push(parent);
30480
- parent = this._getParentNode(parent);
30481
- }
30482
- return listParent;
30483
- };
30484
- SelectDepartmentTreeComponent.prototype._getParentNode = function (node) {
30485
- var currentLevel = this.getLevel(node);
30486
- if (currentLevel < 1)
30487
- return;
30488
- var index = this.treeControl.dataNodes.indexOf(node) - 1;
30489
- for (var i = index; i >= 0; i--) {
30490
- var currentNode = this.treeControl.dataNodes[i];
30491
- if (this.getLevel(currentNode) < currentLevel) {
30492
- return currentNode;
30493
- }
30494
- }
30495
- return;
30496
- };
30497
- SelectDepartmentTreeComponent.prototype.getItemIconType = function (item) {
30498
- if (!!item.itemMatIcon)
30499
- return this.itemIconType.name;
30500
- if (!!item.itemIconSvg)
30501
- return this.itemIconType.svg;
30502
- if (!!item.itemIcon)
30503
- return this.itemIconType.path;
30504
- return;
30505
- };
30506
- SelectDepartmentTreeComponent.prototype.scrollIntoNode = function (nodeId) {
30507
- var flatNode = this.treeControl.dataNodes.find(function (item) { return item.id === nodeId; });
30508
- if (!nodeId)
30509
- return;
30510
- this.treeControl.expand(flatNode);
30511
- this.onExpandAllParent(flatNode);
30512
- var element = this.eleRef.nativeElement.querySelector("#node-" + flatNode.id);
30513
- element.scrollIntoView({
30514
- behavior: 'smooth',
30515
- block: 'center',
30516
- });
30517
- };
30518
- SelectDepartmentTreeComponent.prototype._expandAllGroupExist = function () {
30519
- };
30520
- SelectDepartmentTreeComponent.prototype.getSelectedNodeStorage = function () {
30521
- return JSON.parse(localStorage.getItem('selectedNode'));
30522
- };
30523
- SelectDepartmentTreeComponent.prototype.setSelectedNodeStorage = function (node) {
30524
- this.treeDataSourceConfig.includeChildren && localStorage.setItem('selectedNode', JSON.stringify(node));
30525
- };
30526
- return SelectDepartmentTreeComponent;
30527
- }());
30528
- SelectDepartmentTreeComponent.decorators = [
30529
- { type: i0.Component, args: [{
30530
- selector: 'qms-select-department-tree',
30531
- template: "<div class=\"qms-select-department-tree-container\">\r\n <div class=\"input-select-department\">\r\n <div *ngIf=\"enableTreeSearch\" class=\"input__field\">\r\n <mat-form-field class=\"w100\" qms-form qms-search-field>\r\n <input type=\"text\" placeholder=\"Search\" matInput />\r\n <button qms-btn-icon color=\"light\" matSuffix>\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div *ngIf=\"enableIncludeChild\" class=\"select__toggle-include toggle-include-child mt-1\">\r\n <mat-slide-toggle [(ngModel)]=\"treeDataSourceConfig.includeChildren\" (ngModelChange)=\"onSlideToggleChange()\"\r\n color=\"default\" qms-group-options>\r\n <span class=\"text-label\">Select include children</span>\r\n </mat-slide-toggle>\r\n </div>\r\n <div class=\"line__divider\"></div>\r\n </div>\r\n\r\n <div class=\"tree-department-wrapper\">\r\n <mat-tree class=\"select-department-tree\" [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\r\n <!-- This is the tree node template for leaf nodes -->\r\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodeToggle matTreeNodePadding [ngClass]=\"{\r\n active: activeNode == node.id,\r\n 'mat-tree-node-disabled-all': node.disabled\r\n }\">\r\n <button class=\"btn-toggle\" mat-icon-button disabled></button>\r\n <ng-container [ngTemplateOutlet]=\"showCheckboxTemplate\" [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 *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding [ngClass]=\"{\r\n 'expand-node': treeControl.isExpanded(node),\r\n 'collapse-node': !treeControl.isExpanded(node),\r\n active: activeNode == node.id,\r\n 'mat-tree-node-disabled': node.disabled\r\n }\">\r\n <div class=\"node-content-wraper\">\r\n <button class=\"btn-toggle\" mat-icon-button (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]=\"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>\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 ml-5 123\" [ngClass]=\"{ disabled: node.disabled }\">{{ node.name\r\n }}\r\n </span>\r\n </mat-checkbox>\r\n </ng-template>\r\n</div>\r\n",
30532
- 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 .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 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;overflow-y:auto}.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.active .mat-icon-rtl-mirror,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node.active .text-name,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node.active .type-icon,.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node.active button{color:var(--primary)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node.active:hover{background:var(--primary-light-6-opacity)}.qms-select-department-tree-container .mat-tree.select-department-tree .mat-tree-node.collapse-node.active:active{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-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 .ml-5{margin-left:10px}.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}"]
30533
- },] }
30534
- ];
30535
- SelectDepartmentTreeComponent.ctorParameters = function () { return [
30536
- { type: QMSSelectDepartmentTreeGlobalService },
30537
- { type: i0.ChangeDetectorRef },
30538
- { type: platformBrowser.DomSanitizer },
30539
- { type: QMSIconRegistryService },
30540
- { type: icon.MatIconRegistry },
30541
- { type: i0.ElementRef }
30542
- ]; };
30543
- SelectDepartmentTreeComponent.propDecorators = {
30544
- enableIncludeChild: [{ type: i0.Input }],
30545
- enableTreeSearch: [{ type: i0.Input }],
30546
- treeData: [{ type: i0.Input }],
30547
- selectedList: [{ type: i0.Input }]
30548
- };
30549
-
30550
- var QMSSelectDepartmentTreeModule = /** @class */ (function () {
30551
- function QMSSelectDepartmentTreeModule() {
30552
- }
30553
- return QMSSelectDepartmentTreeModule;
30554
- }());
30555
- QMSSelectDepartmentTreeModule.decorators = [
30556
- { type: i0.NgModule, args: [{
30557
- declarations: [
30558
- SelectDepartmentTreeComponent
30559
- ],
30560
- imports: [
30561
- i1.CommonModule,
30562
- tree$1.MatTreeModule,
30563
- checkbox.MatCheckboxModule,
30564
- autocomplete.MatAutocompleteModule,
30565
- icon.MatIconModule,
30566
- progressBar.MatProgressBarModule,
30567
- QmsAngularModule,
30568
- input.MatInputModule,
30569
- forms.ReactiveFormsModule,
30570
- forms.FormsModule,
30571
- button.MatButtonModule,
30572
- expansion.MatExpansionModule,
30573
- slideToggle.MatSlideToggleModule,
30574
- QMSButtonModule,
30575
- formField.MatFormFieldModule,
30576
- chips.MatChipsModule,
30577
- SharedModule
30578
- ],
30579
- exports: [
30580
- SelectDepartmentTreeComponent
30581
- ]
30582
- },] }
30583
- ];
30584
-
30585
- var SelectDepartmentPopupData = /** @class */ (function () {
30586
- function SelectDepartmentPopupData() {
30587
- this.treeData = [];
30588
- this.headerName = '';
30589
- this.selectIncludeLabel = '';
30590
- this.selectedNode = [];
30591
- this.disabledList = [];
30592
- this.enableSearch = false;
30593
- this.includeChildren = false;
30594
- }
30595
- return SelectDepartmentPopupData;
30596
- }());
30597
-
30598
- var SelectDepartmentAnimationTrigger = [
30599
- animations$1.trigger('inOutAnimation', [
30600
- animations$1.transition(':enter', [
30601
- animations$1.style({ opacity: 0 }),
30602
- animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
30603
- ]),
30604
- ]),
30605
- animations$1.trigger('rotateAnimation', [
30606
- animations$1.transition(':enter', [
30607
- animations$1.style({ transform: 'scale(0) rotate(-180deg)' }),
30608
- animations$1.animate('0.3s ease-out', animations$1.style({ transform: 'scale(1) rotate(0)' }))
30609
- ]),
30610
- animations$1.transition(':leave', [
30611
- animations$1.style({ transform: 'scale(1) rotate(0)' }),
30612
- animations$1.animate('0.3s ease-in', animations$1.style({ transform: 'scale(0) rotate(-180deg) ' }))
30613
- ])
30614
- ]),
30615
- animations$1.trigger('heightAnimation', [
30616
- animations$1.transition(':enter', [
30617
- animations$1.style({ minHeight: 0, maxHeight: 0 }),
30618
- animations$1.animate('0.1s ease-in', animations$1.style({ maxHeight: '175px', minHeight: '40px' }))
30619
- ]),
30620
- animations$1.transition(':leave', [
30621
- animations$1.style({ maxHeight: '175px', minHeight: '40px' }),
30622
- animations$1.animate('0.1s ease-out', animations$1.style({ minHeight: 0, maxHeight: 0 }))
30623
- ])
30624
- ]),
30625
- ];
30626
-
30627
- var ɵ0$1 = {
30628
- clickAction: 'noop'
30629
- };
30630
- var SelectDepartmentComponent = /** @class */ (function () {
30631
- function SelectDepartmentComponent(selectDepartmentService, cdRef, dialogRef, data) {
30632
- var _this = this;
30633
- this.selectDepartmentService = selectDepartmentService;
30634
- this.cdRef = cdRef;
30635
- this.dialogRef = dialogRef;
30636
- this.data = data;
30637
- this.ngUnsubscribe = new rxjs.Subject();
30638
- this.groupIncludeChild = [];
30639
- this.singleItem = [];
30640
- this.resultSelected = [];
30641
- this.textSearch = new forms.FormControl('');
30642
- this.onSearchEvent = new i0.EventEmitter();
30643
- this.resultSearch = [];
30644
- // Init popup data
30645
- this.popupData = ___namespace.cloneDeep(data);
30646
- this.textSearch.valueChanges
30647
- .pipe(operators.takeUntil(this.ngUnsubscribe))
30648
- .subscribe(function (result) {
30649
- if (result) {
30650
- _this.onSearchEvent.emit(result);
30651
- return;
30652
- }
30653
- });
30654
- }
30655
- Object.defineProperty(SelectDepartmentComponent.prototype, "currentTreeData", {
30656
- get: function () {
30657
- return this.selectDepartmentService.getDataTree$.value;
30658
- },
30659
- enumerable: false,
30660
- configurable: true
30661
- });
30662
- SelectDepartmentComponent.prototype.onCloseDialog = function () {
30663
- this.dialogRef.close(this.treeDepartment.resultSelected);
30664
- };
30665
- SelectDepartmentComponent.prototype.ngOnInit = function () {
30666
- };
30667
- SelectDepartmentComponent.prototype.ngOnDestroy = function () {
30668
- this.ngUnsubscribe.next();
30669
- this.ngUnsubscribe.complete();
30670
- };
30671
- SelectDepartmentComponent.prototype.displayWhenSelectDepartmentOption = function ($event) {
30672
- return '';
30673
- };
30674
- SelectDepartmentComponent.prototype.onScrollToNode = function (node) {
30675
- this.treeDepartment.scrollIntoNode(node.id);
30676
- };
30677
- SelectDepartmentComponent.prototype.onRemoveNode = function (node) {
30678
- this.treeDepartment.onRemoveNode(node.id);
30679
- };
30680
- return SelectDepartmentComponent;
30681
- }());
30682
- SelectDepartmentComponent.decorators = [
30683
- { type: i0.Component, args: [{
30684
- selector: 'qms-select-department',
30685
- template: "<div class=\"qms-select-department\">\r\n <div class=\"header-dialog mb-2\">\r\n <span>{{popupData.headerName}}</span>\r\n <mat-icon matDialogClose mat-icon>close</mat-icon>\r\n </div>\r\n\r\n <div>\r\n <div class=\"qms-scrollbar\">\r\n <div>\r\n <qms-select-department-tree #treeDepartment [treeData]=\"popupData.treeData\"\r\n [enableIncludeChild]=\"popupData.includeChildren\" [enableTreeSearch]=\"popupData.enableSearch\"\r\n [selectedList]=\"popupData.selectedList\">\r\n </qms-select-department-tree>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"!!resultSelected.length\" class=\"line__divider\"></div>\r\n <div [@heightAnimation] *ngIf=\"!!treeDepartment.resultSelected.length\" class=\" pr-0 pe-0\">\r\n <div class=\"header-title\">Result</div>\r\n <div class=\"result-content pr-0 pe-0\">\r\n <mat-chip-list class=\"panel__item qms-scrollbar\">\r\n <mat-chip [qms-tool-tip]=\"item.name\" position=\"top\" mode=\"dark\"\r\n *ngFor=\"let item of treeDepartment.resultSelected\" 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?.children\">\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 </mat-chip-list>\r\n </div>\r\n </div>\r\n\r\n <div class=\"line__divider\"></div>\r\n <div class=\"confirm__button__groups\">\r\n <button (click)=\"onCloseDialog()\" class=\"btn-add\" [disabled]=\"!treeDepartment.resultSelected.length\"\r\n [class.qms-btn-disabled]=\"!treeDepartment.resultSelected.length\" qms-btn>\r\n <span>Add</span>\r\n <span *ngIf=\"!!treeDepartment.resultSelected\">\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",
30686
- providers: [
30687
- {
30688
- provide: checkbox.MAT_CHECKBOX_DEFAULT_OPTIONS,
30689
- useValue: ɵ0$1
30690
- }
30691
- ],
30692
- animations: SelectDepartmentAnimationTrigger,
30693
- 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:320px}.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}"]
30694
- },] }
30695
- ];
30696
- SelectDepartmentComponent.ctorParameters = function () { return [
30697
- { type: QMSSelectDepartmentTreeGlobalService },
30698
- { type: i0.ChangeDetectorRef },
30699
- { type: dialog.MatDialogRef },
30700
- { type: SelectDepartmentPopupData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
30701
- ]; };
30702
- SelectDepartmentComponent.propDecorators = {
30703
- treeDepartment: [{ type: i0.ViewChild, args: ['treeDepartment',] }]
30704
- };
30705
-
30706
- var QMSSelectDepartmentModule = /** @class */ (function () {
30707
- function QMSSelectDepartmentModule() {
30708
- }
30709
- return QMSSelectDepartmentModule;
30710
- }());
30711
- QMSSelectDepartmentModule.decorators = [
30712
- { type: i0.NgModule, args: [{
30713
- declarations: [
30714
- SelectDepartmentComponent
30715
- ],
30716
- imports: [
30717
- i1.CommonModule,
30718
- progressBar.MatProgressBarModule,
30719
- tree$1.MatTreeModule,
30720
- checkbox.MatCheckboxModule,
30721
- forms.ReactiveFormsModule,
30722
- forms.FormsModule,
30723
- QmsAngularModule,
30724
- icon.MatIconModule,
30725
- QMSTreeModule,
30726
- button.MatButtonModule,
30727
- dialog.MatDialogModule,
30728
- expansion.MatExpansionModule,
30729
- autocomplete.MatAutocompleteModule,
30730
- input.MatInputModule,
30731
- QMSAppIconModule,
30732
- QMSButtonModule,
30733
- slideToggle.MatSlideToggleModule,
30734
- QMSButtonModule,
30735
- formField.MatFormFieldModule,
30736
- chips.MatChipsModule,
30737
- QMSSelectDepartmentTreeModule
30738
- ],
30739
- exports: [
30740
- SelectDepartmentComponent
30741
- ],
30742
- schemas: [
30743
- i0.CUSTOM_ELEMENTS_SCHEMA
30744
- ]
30745
- },] }
30746
- ];
30747
-
30748
- var QMSSelectDepartmentGlobalService = /** @class */ (function () {
30749
- function QMSSelectDepartmentGlobalService() {
30750
- this.getDataTree$ = new rxjs.BehaviorSubject([]);
30751
- this.searchDepartment$ = new rxjs.Subject();
30752
- }
30753
- QMSSelectDepartmentGlobalService.prototype.updateDataTree = function (data) {
30754
- this.getDataTree$.next(data);
30755
- };
30756
- QMSSelectDepartmentGlobalService.prototype.setResultSearch = function (data) {
30757
- this.searchDepartment$.next(data);
30758
- };
30759
- return QMSSelectDepartmentGlobalService;
30760
- }());
30761
- QMSSelectDepartmentGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectDepartmentGlobalService_Factory() { return new QMSSelectDepartmentGlobalService(); }, token: QMSSelectDepartmentGlobalService, providedIn: "root" });
30762
- QMSSelectDepartmentGlobalService.decorators = [
30763
- { type: i0.Injectable, args: [{
30764
- providedIn: 'root'
30765
- },] }
30766
- ];
30767
-
30768
- exports.OptionSelectAccessEnum = void 0;
30769
- (function (OptionSelectAccessEnum) {
30770
- OptionSelectAccessEnum[OptionSelectAccessEnum["PERSON"] = 0] = "PERSON";
30771
- OptionSelectAccessEnum[OptionSelectAccessEnum["USER_GROUP"] = 1] = "USER_GROUP";
30772
- OptionSelectAccessEnum[OptionSelectAccessEnum["DEPARTMENT"] = 2] = "DEPARTMENT";
30773
- })(exports.OptionSelectAccessEnum || (exports.OptionSelectAccessEnum = {}));
30774
-
30775
- var QMSSelectAccessResult = /** @class */ (function () {
30776
- function QMSSelectAccessResult() {
30777
- this.userGroups = [];
30778
- this.departments = [];
30779
- this.persons = [];
30780
- }
30781
- return QMSSelectAccessResult;
30782
- }());
30783
- var QMSSelectAccessData = /** @class */ (function () {
30784
- function QMSSelectAccessData() {
30785
- this.accessUserGroups = [];
30786
- this.accessDepartments = [];
30787
- this.accessPersons = [];
30788
- this.selectedData = new QMSSelectAccessResult();
30789
- }
30790
- return QMSSelectAccessData;
30791
- }());
30792
-
30793
- var QMSAccessItem = /** @class */ (function () {
30794
- function QMSAccessItem() {
30795
- this.selected = false;
30796
- }
30797
- return QMSAccessItem;
30798
- }());
30799
-
30800
- var OptionSelectAccessModel = /** @class */ (function () {
30801
- function OptionSelectAccessModel() {
30802
- }
30803
- return OptionSelectAccessModel;
30804
- }());
30805
-
30806
- var QMSSelectAccessGlobalService = /** @class */ (function () {
30807
- function QMSSelectAccessGlobalService() {
30808
- }
30809
- return QMSSelectAccessGlobalService;
30810
- }());
30811
- QMSSelectAccessGlobalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSSelectAccessGlobalService_Factory() { return new QMSSelectAccessGlobalService(); }, token: QMSSelectAccessGlobalService, providedIn: "root" });
30812
- QMSSelectAccessGlobalService.decorators = [
30813
- { type: i0.Injectable, args: [{
30814
- providedIn: 'root'
30815
- },] }
30816
- ];
30817
-
30818
- var SelectAccessAnimationTrigger = [
30819
- animations$1.trigger('inOutAnimation', [
30820
- animations$1.transition(':enter', [
30821
- animations$1.style({ opacity: 0 }),
30822
- animations$1.animate('0.3s ease-out', animations$1.style({ opacity: 1 }))
30823
- ]),
30824
- ]),
30825
- ];
30826
-
30827
- var ɵ0 = {
30828
- clickAction: 'noop'
30829
- };
30830
- var QMSSelectAccessDialogComponent = /** @class */ (function () {
30831
- function QMSSelectAccessDialogComponent(dialogRef, dataDialog, translate, _fb, qmsSelectAccessService) {
30832
- this.dialogRef = dialogRef;
30833
- this.dataDialog = dataDialog;
30834
- this.translate = translate;
30835
- this._fb = _fb;
30836
- this.qmsSelectAccessService = qmsSelectAccessService;
30837
- this.ngUnsubcribe = new rxjs.Subject();
30838
- this.optionSelect = new forms.FormControl();
30839
- this.OPTION_ENUM = exports.OptionSelectAccessEnum;
30840
- this.options = [
30841
- {
30842
- displayName: 'PERSON',
30843
- type: this.OPTION_ENUM.PERSON
30844
- },
30845
- {
30846
- displayName: 'USER_GROUP',
30847
- type: this.OPTION_ENUM.USER_GROUP
30848
- },
30849
- {
30850
- displayName: 'DEPARTMENT',
30851
- type: this.OPTION_ENUM.DEPARTMENT
30852
- }
30853
- ];
30854
- this.userGroupForm = new forms.FormControl('');
30855
- this.onSearchPersonEvent = new i0.EventEmitter();
30856
- this.onSearchPersonFreeTextEvent = new i0.EventEmitter();
30857
- this.onSearchUserGroupEvent = new i0.EventEmitter();
30858
- this.onSearchDepartmentEvent = new i0.EventEmitter();
30859
- /** list filtered by search keyword */
30860
- this.filteredSearchTextBox = {
30861
- department: new rxjs.ReplaySubject(1),
30862
- role: new rxjs.ReplaySubject(1),
30863
- };
30864
- this.getPerson$ = new rxjs.BehaviorSubject([]);
30865
- this.getUserGroup$ = new rxjs.BehaviorSubject([]);
30866
- this.resultAccess = new QMSSelectAccessResult();
30867
- this.resultAccess = ___namespace.cloneDeep(this.dataDialog.selectedData);
30868
- this.optionSelect.valueChanges
30869
- .pipe(operators.takeUntil(this.ngUnsubcribe))
30870
- .subscribe(function (result) {
30871
- // console.log(result);
30872
- });
30873
- // Filtered Option select person
30874
- this.filteredSearchTextBox.role.next(this.dataDialog.accessUserGroups);
30875
- this.filteredSearchTextBox.department.next(this.dataDialog.accessDepartments);
30876
- this.updatePersonFilter(this.dataDialog.accessPersons);
30877
- this.updateUserGroupFilter(this.dataDialog.accessUserGroups);
30878
- }
30879
- Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "tree", {
30880
- set: function (data) {
30881
- var _this = this;
30882
- if (data) {
30883
- this.treeDepartment = data;
30884
- data.valueChange$
30885
- .pipe(operators.takeUntil(this.ngUnsubcribe))
30886
- .subscribe(function (result) {
30887
- _this.resultAccess.departments = result;
30888
- });
30889
- }
30890
- },
30891
- enumerable: false,
30892
- configurable: true
30893
- });
30894
- Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "personFiltered", {
30895
- get: function () {
30896
- var persons = this.getPerson$.value;
30897
- var ids = this.resultAccess.persons.map(function (x) { return x.id; });
30898
- persons.forEach(function (x) { return x.selected = ids.includes(x.id); });
30899
- return persons;
30900
- },
30901
- enumerable: false,
30902
- configurable: true
30903
- });
30904
- Object.defineProperty(QMSSelectAccessDialogComponent.prototype, "userGroupFiltered", {
30905
- get: function () {
30906
- var userGroups = this.getUserGroup$.value;
30907
- var ids = this.resultAccess.userGroups.map(function (x) { return x.id; });
30908
- userGroups.forEach(function (x) { return x.selected = ids.includes(x.id); });
30909
- return userGroups;
30910
- },
30911
- enumerable: false,
30912
- configurable: true
30913
- });
30914
- QMSSelectAccessDialogComponent.prototype.ngAfterViewInit = function () {
30915
- // Result department access
30916
- };
30917
- QMSSelectAccessDialogComponent.prototype.ngOnInit = function () {
30918
- var _this = this;
30919
- this.translate.getLanguageSubject$.pipe().subscribe(function (res) {
30920
- if (res) {
30921
- _this.LANG = _this.translate.getObjectLang(res);
30922
- }
30923
- });
30924
- this.buildPersonForm();
30925
- // Filter person by roles
30926
- this.personForm.get('roleFilter').valueChanges
30927
- .pipe(operators.takeUntil(this.ngUnsubcribe), operators.debounceTime(500))
30928
- .subscribe(function (keyword) {
30929
- if (!_this.dataDialog.accessUserGroups) {
30930
- return;
30931
- }
30932
- if (!keyword) {
30933
- _this.filteredSearchTextBox.role.next(_this.dataDialog.accessUserGroups);
30934
- return;
30935
- }
30936
- _this.filteredSearchTextBox.role.next(_this.dataDialog.accessUserGroups.filter(function (role) { return role.name.toLocaleLowerCase().includes(keyword.toLocaleLowerCase()); }));
30937
- });
30938
- // Filter person by departments
30939
- this.personForm.get('departmentFilter').valueChanges
30940
- .pipe(operators.takeUntil(this.ngUnsubcribe))
30941
- .subscribe(function () {
30942
- if (!_this.dataDialog.accessDepartments) {
30943
- return;
30944
- }
30945
- var search = _this.personForm.get('departmentFilter').value;
30946
- if (!search) {
30947
- _this.filteredSearchTextBox.department.next(_this.dataDialog.accessDepartments.slice());
30948
- }
30949
- else {
30950
- search = search.toLowerCase();
30951
- _this.filteredSearchTextBox.department.next(_this.dataDialog.accessDepartments.filter(function (x) { return x.name.toLowerCase().indexOf(search) > -1; }));
30952
- }
30953
- });
30954
- };
30955
- QMSSelectAccessDialogComponent.prototype.ngOnDestroy = function () {
30956
- this.ngUnsubcribe.next();
30957
- this.ngUnsubcribe.complete();
30958
- };
30959
- QMSSelectAccessDialogComponent.prototype.buildPersonForm = function () {
30960
- this.personForm = this._fb.group({
30961
- roleId: new forms.FormControl(''),
30962
- departmentId: new forms.FormControl(),
30963
- departmentFilter: new forms.FormControl([]),
30964
- recursive: new forms.FormControl(false),
30965
- keyword: new forms.FormControl(''),
30966
- roleFilter: new forms.FormControl(''),
30967
- excludedQuitDepartmentId: true
30968
- });
30969
- };
30970
- QMSSelectAccessDialogComponent.prototype.onFilterPerson = function () {
30971
- this.onSearchPersonEvent.emit(this.personForm.value);
30972
- };
30973
- QMSSelectAccessDialogComponent.prototype.onSearchPersonFreeText = function () {
30974
- this.onSearchPersonFreeTextEvent.emit(this.personForm.get('keyword').value);
30975
- };
30976
- QMSSelectAccessDialogComponent.prototype.onFilterUserGroup = function () {
30977
- this.onSearchUserGroupEvent.emit(this.userGroupForm.value);
30978
- };
30979
- QMSSelectAccessDialogComponent.prototype.onSelectPerson = function (employee) {
30980
- employee.selected = !employee.selected;
30981
- employee.selected ? this.resultAccess.persons.push(employee) : this.resultAccess.persons = this.resultAccess.persons.filter(function (item) { return item.id !== employee.id; });
30982
- };
30983
- QMSSelectAccessDialogComponent.prototype.onSelectUserGroup = function (userGroup) {
30984
- userGroup.selected = !userGroup.selected;
30985
- userGroup.selected ? this.resultAccess.userGroups.push(userGroup) : this.resultAccess.userGroups = this.resultAccess.userGroups.filter(function (item) { return item.id !== userGroup.id; });
30986
- };
30987
- QMSSelectAccessDialogComponent.prototype.onRemoveChip = function (type, index) {
30988
- switch (type) {
30989
- case this.OPTION_ENUM.PERSON:
30990
- this.resultAccess.persons.splice(index, 1);
30991
- if (this.personFiltered[index]) {
30992
- this.personFiltered[index].selected = false;
30993
- }
30994
- break;
30995
- case this.OPTION_ENUM.USER_GROUP:
30996
- this.resultAccess.userGroups.splice(index, 1);
30997
- if (this.userGroupFiltered[index]) {
30998
- this.userGroupFiltered[index].selected = false;
30999
- }
31000
- break;
31001
- default:
31002
- return;
31003
- }
31004
- };
31005
- QMSSelectAccessDialogComponent.prototype.onSelectionTypeChange = function (event) {
31006
- this.dialogRef.updateSize('732px');
31007
- };
31008
- QMSSelectAccessDialogComponent.prototype.setFormControlValue = function (formControlNames, values) {
31009
- var _this = this;
31010
- formControlNames.forEach(function (controlName, _index) {
31011
- var _a;
31012
- (_a = _this.personForm.get(controlName)) === null || _a === void 0 ? void 0 : _a.setValue(values[_index]);
31013
- });
31014
- };
31015
- QMSSelectAccessDialogComponent.prototype.getPersonSelected = function () {
31016
- };
31017
- QMSSelectAccessDialogComponent.prototype.isCheckAll = function (type) {
31018
- switch (type) {
31019
- case this.OPTION_ENUM.PERSON:
31020
- return this.personFiltered.length && this.personFiltered.every(function (x) { return x.selected; });
31021
- case this.OPTION_ENUM.USER_GROUP:
31022
- return this.userGroupFiltered.length && this.userGroupFiltered.every(function (x) { return x.selected; });
31023
- default:
31024
- return false;
31025
- }
31026
- };
31027
- QMSSelectAccessDialogComponent.prototype.isIndeterminate = function (type) {
31028
- switch (type) {
31029
- case this.OPTION_ENUM.PERSON:
31030
- return !this.isCheckAll(type) && this.personFiltered.some(function (x) { return x.selected; });
31031
- case this.OPTION_ENUM.USER_GROUP:
31032
- return !this.isCheckAll(type) && this.userGroupFiltered.some(function (x) { return x.selected; });
31033
- case this.OPTION_ENUM.DEPARTMENT:
31034
- default:
31035
- return false;
31036
- }
31037
- };
31038
- QMSSelectAccessDialogComponent.prototype.onCheckAll = function (type, $event) {
31039
- $event.checked = !$event.checked;
31040
- switch (type) {
31041
- case this.OPTION_ENUM.PERSON: {
31042
- this.personFiltered.forEach(function (x) { return x.selected = $event.checked; });
31043
- var idFiltered_1 = this.personFiltered.map(function (x) { return x.id; });
31044
- if ($event.checked) {
31045
- var idPersonSelected_1 = this.resultAccess.persons.map(function (x) { return x.id; });
31046
- this.resultAccess.persons = __spreadArray(__spreadArray([], __read(this.resultAccess.persons)), __read(this.personFiltered.filter(function (x) { return !idPersonSelected_1.includes(x.id); })));
31047
- }
31048
- else {
31049
- this.resultAccess.persons = this.resultAccess.persons.filter(function (x) { return !idFiltered_1.includes(x.id); });
31050
- }
31051
- break;
31052
- }
31053
- case this.OPTION_ENUM.USER_GROUP: {
31054
- this.userGroupFiltered.forEach(function (x) { return x.selected = $event.checked; });
31055
- var idFiltered_2 = this.userGroupFiltered.map(function (x) { return x.id; });
31056
- if ($event.checked) {
31057
- var idSelected_1 = this.resultAccess.userGroups.map(function (x) { return x.id; });
31058
- this.resultAccess.userGroups = __spreadArray(__spreadArray([], __read(this.resultAccess.userGroups)), __read(this.userGroupFiltered.filter(function (x) { return !idSelected_1.includes(x.id); })));
31059
- }
31060
- else {
31061
- this.resultAccess.userGroups = this.resultAccess.userGroups.filter(function (x) { return !idFiltered_2.includes(x.id); });
31062
- }
31063
- break;
31064
- }
31065
- default:
31066
- return;
31067
- }
31068
- };
31069
- QMSSelectAccessDialogComponent.prototype.onScollToNodeTreeDepartment = function (node) {
31070
- this.optionSelect.value === this.OPTION_ENUM.DEPARTMENT && this.treeDepartment.scrollIntoNode(node.id);
31071
- };
31072
- QMSSelectAccessDialogComponent.prototype.onRemoveTreeNodeDepartment = function (node) {
31073
- if (this.optionSelect.value === this.OPTION_ENUM.DEPARTMENT) {
31074
- this.treeDepartment.onRemoveNode(node.id);
31075
- }
31076
- this.resultAccess.departments = this.resultAccess.departments.filter(function (item) { return item.id !== node.id; });
31077
- };
31078
- QMSSelectAccessDialogComponent.prototype.trackByFn = function (index, item) {
31079
- return index;
31080
- };
31081
- QMSSelectAccessDialogComponent.prototype.updatePersonFilter = function (data) {
31082
- this.getPerson$.next(data);
31083
- };
31084
- QMSSelectAccessDialogComponent.prototype.updateUserGroupFilter = function (data) {
31085
- this.getUserGroup$.next(data);
31086
- };
31087
- return QMSSelectAccessDialogComponent;
31088
- }());
31089
- QMSSelectAccessDialogComponent.decorators = [
31090
- { type: i0.Component, args: [{
31091
- selector: 'qms-select-access-dialog',
31092
- template: "<div class=\"select-access-dialog-container\">\r\n <div class=\"access-dialog-header mb-2\">\r\n <span class=\"header-title\">{{LANG.SELECT_ACCESS}}</span>\r\n <mat-icon mat-dialog-close class=\"mat-icons-outlined\">close</mat-icon>\r\n </div>\r\n <div class=\"access-dialog-wraper\">\r\n <mat-form-field qms-form qms-select-input class=\"field-select-option w-100\" 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\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 <span [@inOutAnimation] (click)=\"personForm.get('roleId').setValue('')\" class=\"pointer \" matSuffix\r\n aria-label=\"Clear\" *ngIf=\"personForm.get('roleId').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\r\n <span (click)=\"setFormControlValue(['recursive','departmentId'], [false,''])\" [@inOutAnimation]\r\n class=\"pointer\" matSuffix aria-label=\"Clear\" *ngIf=\"personForm.get('departmentId').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]=\"!personForm.get('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 <!-- <mat-label>{{LANG.SEARCH_WITH_NAME}}</mat-label> -->\r\n <input matInput appearance=\"off\" [placeholder]=\"LANG.SEARCH_WITH_NAME\" formControlName=\"keyword\"\r\n type=\"text\" autocomplete=\"off\" />\r\n\r\n <button qms-btn-icon color=\"light\" [@inOutAnimation] (click)=\"onSearchPersonFreeText()\"\r\n class=\"pointer me-1\" matSuffix aria-label=\"Search\">\r\n <mat-icon>search</mat-icon>\r\n </button>\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\">\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 mb-1 mt-3\">\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 #checkPerson class=\"w-100\" (click)=\"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}} ({{personFiltered.length}})</span>\r\n </mat-checkbox>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <div class=\"item-list-wrapper\">\r\n <div class=\"item mt-1\" *ngFor=\"let employee of personFiltered; trackBy: trackByFn\">\r\n <mat-checkbox [checked]=\"employee.selected\" (click)=\"onSelectPerson(employee)\" class=\"w-100\"\r\n color=\"default\" qms-group-options>\r\n <div class=\"text-label\">\r\n <span class=\"text-label label-item fs-14 \">\r\n {{ employee.name }}\r\n </span>\r\n <span *ngIf=\"employee.subName\" class=\"ms-1 sub-label\">({{employee.subName}})</span>\r\n </div>\r\n <small class=\"text-help px-1 fs-12 sub-label\">{{ employee.helpText }}</small>\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n\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 (click)=\"onFilterUserGroup()\" qms-btn-icon color=\"light\" matSuffix>\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n <div [@inOutAnimation] *ngIf=\"!!userGroupForm.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 #checkUserGroup class=\"w-100\" color=\"default\"\r\n [checked]=\"isCheckAll(OPTION_ENUM.USER_GROUP)\"\r\n [indeterminate]=\"isIndeterminate(OPTION_ENUM.USER_GROUP)\"\r\n (click)=\"onCheckAll(OPTION_ENUM.USER_GROUP,checkUserGroup)\" qms-group-options>\r\n <span class=\"text-label header-title\">{{LANG.CHOOSE_ALL}} ({{userGroupFiltered.length}})</span>\r\n </mat-checkbox>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <div class=\"item-list-wrapper\">\r\n <div class=\"item mt-1\" *ngFor=\"let userGroup of userGroupFiltered\">\r\n <mat-checkbox (click)=\"onSelectUserGroup(userGroup)\" [checked]=\"userGroup.selected\" class=\"w-100\"\r\n color=\"default\" qms-group-options>\r\n <span class=\"text-label\">\r\n {{userGroup.name}}\r\n </span>\r\n </mat-checkbox>\r\n </div>\r\n </div>\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]=\"dataDialog.accessDepartments\"\r\n [enableIncludeChild]=\"true\" [enableTreeSearch]=\"true\" [selectedList]=\"resultAccess.departments\">\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 *ngIf=\"optionSelect.value !== null\" class=\"header-title my-2\">{{LANG.RESULTS}}</div>\r\n\r\n <div *ngIf=\"optionSelect.value !== null\" class=\"result-selected-container\">\r\n <!-- Result Person -->\r\n <mat-expansion-panel qms-expansion [expanded]=\"optionSelect.value === OPTION_ENUM.PERSON\">\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\">{{LANG.PERSON}} <span\r\n class=\"fw-600\">({{resultAccess.persons.length}})</span>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <mat-chip-list class=\"panel__item qms-scrollbar\">\r\n <mat-chip class=\"chip-item-result\" [qms-tool-tip]=\"item.name\" position=\"top\" mode=\"dark\"\r\n *ngFor=\"let item of resultAccess.persons; 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>\r\n <mat-icon (click)=\"onRemoveChip(OPTION_ENUM.PERSON,i)\" class=\"remove-chip-icon\">cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n </mat-expansion-panel>\r\n\r\n <!-- Result User group -->\r\n <mat-expansion-panel qms-expansion [expanded]=\"optionSelect.value === OPTION_ENUM.USER_GROUP\">\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\">{{LANG.USER_GROUP}}\r\n <span class=\"fw-600\">\r\n ({{resultAccess.userGroups.length}})\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel-header>\r\n <mat-chip-list class=\"panel__item qms-scrollbar\">\r\n <mat-chip class=\"chip-item-result\" [qms-tool-tip]=\"item.name\" position=\"top\" mode=\"dark\"\r\n *ngFor=\"let item of resultAccess.userGroups; 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>\r\n <mat-icon (click)=\"onRemoveChip(OPTION_ENUM.USER_GROUP,i)\" class=\"remove-chip-icon\">cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n </mat-expansion-panel>\r\n\r\n <!-- Result Department -->\r\n <mat-expansion-panel qms-expansion [expanded]=\"optionSelect.value === OPTION_ENUM.DEPARTMENT\">\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\">{{LANG.DEPARTMENT}}\r\n <span class=\"fw-600\">\r\n ({{resultAccess.departments.length}})\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-expansion-panel-header>\r\n\r\n <mat-chip-list class=\"panel__item qms-scrollbar\">\r\n <mat-chip class=\"chip-item-result item-department\" [qms-tool-tip]=\"item.name\" position=\"top\" mode=\"dark\"\r\n *ngFor=\"let item of resultAccess.departments\" qms-chip [removable]=\"true\">\r\n <span (click)=\"onScollToNodeTreeDepartment(item)\" qms-chip-body>\r\n <span class=\"chip-item__content_name\" #itemName>\r\n {{item.name}}\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 class=\"remove-chip-icon\" (click)=\"onRemoveTreeNodeDepartment(item)\">cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n </mat-expansion-panel>\r\n </div>\r\n <mat-divider class=\"mx-auto\"></mat-divider>\r\n <div class=\"confirm__button__groups\" [class.none-option]=\"optionSelect.value === null\">\r\n <button *ngIf=\"optionSelect.value !== null\"\r\n [disabled]=\"!(!!resultAccess.departments.length || !!resultAccess.persons.length || !!resultAccess.userGroups.length)\"\r\n class=\"btn-add\"\r\n [class.qms-btn-disabled]=\"!(!!resultAccess.departments.length || !!resultAccess.persons.length || !!resultAccess.userGroups.length)\"\r\n [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</div>\r\n",
31093
- animations: [SelectAccessAnimationTrigger],
31094
- providers: [
31095
- {
31096
- provide: checkbox.MAT_CHECKBOX_DEFAULT_OPTIONS,
31097
- useValue: ɵ0
31098
- }
31099
- ],
31100
- encapsulation: i0.ViewEncapsulation.None,
31101
- 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 .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:185px;overflow-y:auto}.select-access-dialog-container .item-list-wrapper{max-height:25vh;padding-right:4px;overflow-y:auto}.select-access-dialog-container .item-list-wrapper .item{min-height:40px}.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)}"]
31102
- },] }
31103
- ];
31104
- QMSSelectAccessDialogComponent.ctorParameters = function () { return [
31105
- { type: dialog.MatDialogRef },
31106
- { type: QMSSelectAccessData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
31107
- { type: TranslateLibraryService },
31108
- { type: forms.FormBuilder },
31109
- { type: QMSSelectAccessGlobalService }
31110
- ]; };
31111
- QMSSelectAccessDialogComponent.propDecorators = {
31112
- tree: [{ type: i0.ViewChild, args: ['treeDepartment', {
31113
- read: SelectDepartmentTreeComponent
31114
- },] }]
31115
- };
31116
-
31117
- var QMSSelectAccessDialogModule = /** @class */ (function () {
31118
- function QMSSelectAccessDialogModule() {
31119
- }
31120
- return QMSSelectAccessDialogModule;
31121
- }());
31122
- QMSSelectAccessDialogModule.decorators = [
31123
- { type: i0.NgModule, args: [{
31124
- declarations: [
31125
- QMSSelectAccessDialogComponent
31126
- ],
31127
- imports: [
31128
- i1.CommonModule,
31129
- QMSSelectDepartmentModule,
31130
- formField.MatFormFieldModule,
31131
- input.MatInputModule,
31132
- button.MatButtonModule,
31133
- checkbox.MatCheckboxModule,
31134
- QmsAngularModule,
31135
- select.MatSelectModule,
31136
- ngxMatSelectSearch.NgxMatSelectSearchModule,
31137
- forms.FormsModule,
31138
- forms.ReactiveFormsModule,
31139
- icon.MatIconModule,
31140
- dialog.MatDialogModule,
31141
- QMSButtonModule,
31142
- chips.MatChipsModule,
31143
- divider.MatDividerModule,
31144
- expansion.MatExpansionModule,
31145
- QMSSelectDepartmentTreeModule,
31146
- slideToggle.MatSlideToggleModule,
31147
- QMSListModule,
31148
- ],
31149
- exports: [
31150
- QMSSelectAccessDialogComponent
31151
- ]
31152
- },] }
31153
- ];
31154
-
31155
30109
  /*
31156
30110
  * Public API Surface of qms-angular
31157
30111
  */
@@ -31199,12 +30153,10 @@
31199
30153
  exports.NavigatorLinkView = NavigatorLinkView;
31200
30154
  exports.NewTreeComponent = NewTreeComponent;
31201
30155
  exports.NewTreeModel = NewTreeModel;
31202
- exports.OptionSelectAccessModel = OptionSelectAccessModel;
31203
30156
  exports.PROCESS_AREA_ICON = PROCESS_AREA_ICON;
31204
30157
  exports.PROCESS_AREA_OUTLINED_ICON = PROCESS_AREA_OUTLINED_ICON;
31205
30158
  exports.PROCESS_ICON = PROCESS_ICON;
31206
30159
  exports.PopupData = PopupData;
31207
- exports.QMSAccessItem = QMSAccessItem;
31208
30160
  exports.QMSAnchor = QMSAnchor;
31209
30161
  exports.QMSAppBar = QMSAppBar;
31210
30162
  exports.QMSAppIconModule = QMSAppIconModule;
@@ -31313,16 +30265,6 @@
31313
30265
  exports.QMSScrolableAttachmentListDirective = QMSScrolableAttachmentListDirective;
31314
30266
  exports.QMSScrollbarDirective = QMSScrollbarDirective;
31315
30267
  exports.QMSSearchFieldDirective = QMSSearchFieldDirective;
31316
- exports.QMSSelectAccessData = QMSSelectAccessData;
31317
- exports.QMSSelectAccessDialogComponent = QMSSelectAccessDialogComponent;
31318
- exports.QMSSelectAccessDialogModule = QMSSelectAccessDialogModule;
31319
- exports.QMSSelectAccessGlobalService = QMSSelectAccessGlobalService;
31320
- exports.QMSSelectAccessResult = QMSSelectAccessResult;
31321
- exports.QMSSelectDepartmentGlobalService = QMSSelectDepartmentGlobalService;
31322
- exports.QMSSelectDepartmentModule = QMSSelectDepartmentModule;
31323
- exports.QMSSelectDepartmentTreeConfig = QMSSelectDepartmentTreeConfig;
31324
- exports.QMSSelectDepartmentTreeGlobalService = QMSSelectDepartmentTreeGlobalService;
31325
- exports.QMSSelectDepartmentTreeModule = QMSSelectDepartmentTreeModule;
31326
30268
  exports.QMSSelectIncludeChildrenGlobalService = QMSSelectIncludeChildrenGlobalService;
31327
30269
  exports.QMSSelectIncludeChildrenModule = QMSSelectIncludeChildrenModule;
31328
30270
  exports.QMSSelectOneGlobalService = QMSSelectOneGlobalService;
@@ -31402,9 +30344,6 @@
31402
30344
  exports.SaveTemplateComponent = SaveTemplateComponent;
31403
30345
  exports.ScrollToSelectedDirective = ScrollToSelectedDirective;
31404
30346
  exports.SelectConst = SelectConst;
31405
- exports.SelectDepartmentComponent = SelectDepartmentComponent;
31406
- exports.SelectDepartmentPopupData = SelectDepartmentPopupData;
31407
- exports.SelectDepartmentTreeComponent = SelectDepartmentTreeComponent;
31408
30347
  exports.SelectDialog = SelectDialog;
31409
30348
  exports.SelectIncludeChildrenPopUpComponent = SelectIncludeChildrenPopUpComponent;
31410
30349
  exports.SelectOneDialog = SelectOneDialog;