qms-angular 1.1.12 → 1.1.14

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 (71) hide show
  1. package/bundles/qms-angular.umd.js +1132 -59
  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 +7 -5
  5. package/esm2015/lib/components/select-access-dialog/common/animation.js +10 -0
  6. package/esm2015/lib/components/select-access-dialog/common/option-select-access.enum.js +7 -0
  7. package/esm2015/lib/components/select-access-dialog/index.js +2 -0
  8. package/esm2015/lib/components/select-access-dialog/model/access-item.model.js +6 -0
  9. package/esm2015/lib/components/select-access-dialog/model/option-select-access.model.js +3 -0
  10. package/esm2015/lib/components/select-access-dialog/model/select-access-data.js +16 -0
  11. package/esm2015/lib/components/select-access-dialog/public-api.js +8 -0
  12. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +288 -0
  13. package/esm2015/lib/components/select-access-dialog/select-access-dialog.module.js +56 -0
  14. package/esm2015/lib/components/select-access-dialog/service/select-access-global.service.js +11 -0
  15. package/esm2015/lib/components/select-department/common/animation.js +30 -0
  16. package/esm2015/lib/components/select-department/index.js +2 -0
  17. package/esm2015/lib/components/select-department/model/select-department-popup-data.model.js +12 -0
  18. package/esm2015/lib/components/select-department/public-api.js +5 -0
  19. package/esm2015/lib/components/select-department/select-department.component.js +84 -0
  20. package/esm2015/lib/components/select-department/select-department.module.js +60 -0
  21. package/esm2015/lib/components/select-department/service/select-department-global.service.js +22 -0
  22. package/esm2015/lib/components/select-department-tree/index.js +2 -0
  23. package/esm2015/lib/components/select-department-tree/model/select-department-tree.config.js +10 -0
  24. package/esm2015/lib/components/select-department-tree/public-api.js +5 -0
  25. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +379 -0
  26. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +50 -0
  27. package/esm2015/lib/components/select-department-tree/service/select-department-tree-global.service.js +22 -0
  28. package/esm2015/lib/components/select-include-children/services/select-include-children-global.service.js +1 -1
  29. package/esm2015/lib/components/select-one/select-one.component.js +12 -10
  30. package/esm2015/lib/components/tree/tree.component.js +39 -32
  31. package/esm2015/lib/directives/tooltip/tooltip-renderer.directive.js +1 -1
  32. package/esm2015/lib/model/en.js +14 -1
  33. package/esm2015/lib/model/no.js +14 -1
  34. package/esm2015/lib/services/translation-registry.service.js +2 -2
  35. package/esm2015/public-api.js +4 -1
  36. package/fesm2015/qms-angular.js +1053 -56
  37. package/fesm2015/qms-angular.js.map +1 -1
  38. package/lib/common/models/qms-flat-node.model.d.ts +3 -0
  39. package/lib/components/select-access-dialog/common/animation.d.ts +1 -0
  40. package/lib/components/select-access-dialog/common/option-select-access.enum.d.ts +5 -0
  41. package/lib/components/select-access-dialog/index.d.ts +1 -0
  42. package/lib/components/select-access-dialog/model/access-item.model.d.ts +7 -0
  43. package/lib/components/select-access-dialog/model/option-select-access.model.d.ts +5 -0
  44. package/lib/components/select-access-dialog/model/select-access-data.d.ts +14 -0
  45. package/lib/components/select-access-dialog/public-api.d.ts +7 -0
  46. package/lib/components/select-access-dialog/select-access-dialog.component.d.ts +64 -0
  47. package/lib/components/select-access-dialog/select-access-dialog.module.d.ts +2 -0
  48. package/lib/components/select-access-dialog/service/select-access-global.service.d.ts +2 -0
  49. package/lib/components/select-department/common/animation.d.ts +1 -0
  50. package/lib/components/select-department/index.d.ts +1 -0
  51. package/lib/components/select-department/model/select-department-popup-data.model.d.ts +14 -0
  52. package/lib/components/select-department/public-api.d.ts +4 -0
  53. package/lib/components/select-department/select-department.component.d.ts +31 -0
  54. package/lib/components/select-department/select-department.module.d.ts +2 -0
  55. package/lib/components/select-department/service/select-department-global.service.d.ts +9 -0
  56. package/lib/components/select-department-tree/index.d.ts +1 -0
  57. package/lib/components/select-department-tree/model/select-department-tree.config.d.ts +9 -0
  58. package/lib/components/select-department-tree/public-api.d.ts +4 -0
  59. package/lib/components/select-department-tree/select-department-tree.component.d.ts +84 -0
  60. package/lib/components/select-department-tree/select-department-tree.module.d.ts +2 -0
  61. package/lib/components/select-department-tree/service/select-department-tree-global.service.d.ts +9 -0
  62. package/lib/model/en.d.ts +13 -0
  63. package/lib/model/no.d.ts +13 -0
  64. package/package.json +1 -1
  65. package/public-api.d.ts +3 -0
  66. package/qms-angular.metadata.json +1 -1
  67. package/src/lib/components/select-access-dialog/select-access-dialog.component.scss +205 -0
  68. package/src/lib/components/select-department/select-department.component.scss +193 -0
  69. package/src/lib/components/select-department-tree/select-department-tree.component.scss +265 -0
  70. package/src/lib/components/select-one/select-one.component.scss +9 -3
  71. package/src/lib/components/tree/tree.component.scss +21 -11
@@ -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')) :
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';
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';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -98,6 +98,19 @@
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",
101
114
  "ERROR": {
102
115
  "SELECT_DANGER": "You must select one or more events"
103
116
  },
@@ -465,6 +478,19 @@
465
478
  "SUPPORTED_EXTENSIONS": "Støttede utvidelser",
466
479
  "FILES_ARE_NOT_SUPPORTED": "Fil(er) støttes ikke",
467
480
  "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",
468
494
  "ERROR": {
469
495
  "SELECT_DANGER": "Du må velge en eller flere hendelser"
470
496
  },
@@ -779,7 +805,7 @@
779
805
 
780
806
  var TranslateLibraryService = /** @class */ (function () {
781
807
  function TranslateLibraryService() {
782
- this.getLanguageSubject$ = new rxjs.BehaviorSubject(null);
808
+ this.getLanguageSubject$ = new rxjs.BehaviorSubject('en');
783
809
  this.availableLanguages = { en: en, no: no };
784
810
  }
785
811
  TranslateLibraryService.prototype.setLanguage = function (item) {
@@ -3849,7 +3875,7 @@
3849
3875
  qmsTransformIcon: [{ type: i0.Input }]
3850
3876
  };
3851
3877
 
3852
- var ɵ0$3 = { appearance: 'fill' }, ɵ1$1 = { color: 'none' };
3878
+ var ɵ0$5 = { appearance: 'fill' }, ɵ1$1 = { color: 'none' };
3853
3879
  var QmsAngularModule = /** @class */ (function () {
3854
3880
  function QmsAngularModule() {
3855
3881
  }
@@ -3974,7 +4000,7 @@
3974
4000
  QMSMultiIconDirective
3975
4001
  ],
3976
4002
  providers: [
3977
- { provide: formField.MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: ɵ0$3 },
4003
+ { provide: formField.MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: ɵ0$5 },
3978
4004
  { provide: radio.MAT_RADIO_DEFAULT_OPTIONS, useValue: ɵ1$1 },
3979
4005
  QMSUploadingFileGuard
3980
4006
  ],
@@ -4317,7 +4343,7 @@
4317
4343
  _lines: [{ type: i0.ContentChildren, args: [QMSListLine, { descendants: true },] }]
4318
4344
  };
4319
4345
 
4320
- var ɵ0$2 = {
4346
+ var ɵ0$4 = {
4321
4347
  expandedHeight: '*',
4322
4348
  collapsedHeight: '*'
4323
4349
  };
@@ -4362,7 +4388,7 @@
4362
4388
  providers: [
4363
4389
  {
4364
4390
  provide: expansion.MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,
4365
- useValue: ɵ0$2
4391
+ useValue: ɵ0$4
4366
4392
  }
4367
4393
  ],
4368
4394
  schemas: [
@@ -4953,7 +4979,7 @@
4953
4979
  nodeWidths.forEach(function (width) {
4954
4980
  currentWidth += width;
4955
4981
  });
4956
- this.isOverflow = width < currentWidth;
4982
+ this.isOverflow = width < currentWidth && (this.itemNodes.length >= this.numDisplayItem);
4957
4983
  this.cdRef.detectChanges();
4958
4984
  if (this.isOverflow) {
4959
4985
  var screenWidth_1 = width;
@@ -5017,11 +5043,13 @@
5017
5043
  }
5018
5044
  }
5019
5045
  //show number Items after 3 dot icon
5020
- if (+this.numDisplayItem > 0 && this.itemNodes.length >= 2) {
5046
+ if (+this.numDisplayItem && +this.numDisplayItem >= 2 && this.itemNodes.length >= 2) {
5021
5047
  this.dropdownNodes = [];
5022
5048
  this.dropdownNodes = this.itemNodes.slice(0, -this.numDisplayItem).reverse();
5023
5049
  this.itemNodes = __spreadArray(__spreadArray([], []), __read(this.itemNodes.slice(-this.numDisplayItem)));
5024
- this.isOverflow = true;
5050
+ if (this.dropdownNodes.length) {
5051
+ this.isOverflow = true;
5052
+ }
5025
5053
  this.cdRef.detectChanges();
5026
5054
  }
5027
5055
  //just show 1 item for mobile
@@ -5066,7 +5094,7 @@
5066
5094
  QMSBreadcrumb.decorators = [
5067
5095
  { type: i0.Component, args: [{
5068
5096
  selector: 'qms-breadcrumb',
5069
- 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 >\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 (click)=\"$event.stopPropagation()\">\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 qms-btn-icon color=\"light\" [matMenuTriggerFor]=\"bodyMediumMenu\">\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 (click)=\"$event.stopPropagation()\">\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",
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",
5070
5098
  encapsulation: i0.ViewEncapsulation.None,
5071
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}"]
5072
5100
  },] }
@@ -5750,6 +5778,7 @@
5750
5778
  };
5751
5779
  TreeComponent.prototype.openExpandToChildNode = function () {
5752
5780
  var _this = this;
5781
+ var _a;
5753
5782
  if (this.expandToChildNode.length) {
5754
5783
  if (this.expandToChildNode[0] === '') {
5755
5784
  this.idCheckIcon = '';
@@ -5757,7 +5786,7 @@
5757
5786
  this.cdRef.detectChanges();
5758
5787
  return;
5759
5788
  }
5760
- var itemMarkChecked = !this.selectedData || !this.selectedData.length ? '' : this.selectedData[this.selectedData.length - 1].id.toUpperCase();
5789
+ var itemMarkChecked = !this.selectedData || !this.selectedData.length ? '' : (_a = this.selectedData[this.selectedData.length - 1].id) === null || _a === void 0 ? void 0 : _a.toLowerCase();
5761
5790
  var parentItem = '';
5762
5791
  var _loop_2 = function (i) {
5763
5792
  if (itemMarkChecked === this_2.treeControl.dataNodes[i].id) {
@@ -5765,7 +5794,8 @@
5765
5794
  this_2.selectNodeEvent.emit(this_2.treeControl.dataNodes[i]);
5766
5795
  }
5767
5796
  this_2.expandToChildNode.forEach(function (el) {
5768
- if (_this.treeControl.dataNodes[i].id === el.toUpperCase()) {
5797
+ var _a;
5798
+ if (((_a = _this.treeControl.dataNodes[i].id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (el === null || el === void 0 ? void 0 : el.toLowerCase())) {
5769
5799
  _this.treeControl.expand(_this.treeControl.dataNodes[i]);
5770
5800
  }
5771
5801
  });
@@ -5779,43 +5809,36 @@
5779
5809
  };
5780
5810
  TreeComponent.prototype.checkDisabledList = function () {
5781
5811
  var _this = this;
5782
- // Disable List
5812
+ var _a, _b;
5813
+ // Disable List
5783
5814
  for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
5784
5815
  this.treeControl.dataNodes[i].disabled = false;
5785
5816
  }
5786
- if (this.disabledList.length) {
5787
- this.disabledList.forEach(function (x) {
5788
- var index = _this.treeControl.dataNodes.findIndex(function (node) { return node.id === x.id && (!x.parentId || x.parentId === node.parentId); });
5789
- if (index >= 0) {
5790
- _this.treeControl.dataNodes[index].disabled = true;
5791
- }
5792
- });
5793
- }
5794
- //Selected node with select one
5795
5817
  if (this.disabledList.length && this.treeConfig.selectOne) {
5796
- var itemMarkChecked = this.disabledList[this.disabledList.length - 1].toUpperCase();
5797
- var parentItem = '';
5818
+ var currNode = this.disabledList[this.disabledList.length - 1];
5819
+ var idxParent = this.disabledList.length >= 2 ? this.disabledList.length - 2 : '';
5820
+ var parentNode = idxParent !== '' ? this.disabledList[idxParent] : '';
5821
+ // const index = this.treeControl.dataNodes.findIndex(node => node.id?.toLowerCase() === currNode?.toLowerCase()
5822
+ // && (parentNode?.toLowerCase() === node.parentId?.toLowerCase()));
5823
+ // if (index >= 0) {
5824
+ // this.treeControl.dataNodes[index].disabled = true;
5825
+ // }
5798
5826
  // get all children nodes on same level
5799
- var listChildNodeSameLevel = this.findChildNode(itemMarkChecked, this.dataSource.data);
5827
+ var listChildNodeSameLevel = this.findChildNode(currNode.toLowerCase(), this.dataSource.data);
5800
5828
  // get all children in all level
5801
5829
  this.listChildNode = [];
5802
5830
  this.getChild(listChildNodeSameLevel);
5803
5831
  this.listChildNode.push(listChildNodeSameLevel);
5804
5832
  var _loop_3 = function (i) {
5805
- if (itemMarkChecked === this_3.treeControl.dataNodes[i].id) {
5806
- parentItem = this_3.treeControl.dataNodes[i].parentId;
5833
+ if ((currNode === null || currNode === void 0 ? void 0 : currNode.toLowerCase()) === ((_a = this_3.treeControl.dataNodes[i].id) === null || _a === void 0 ? void 0 : _a.toLowerCase())
5834
+ && ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.toLowerCase()) === ((_b = this_3.treeControl.dataNodes[i].parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase()))) {
5835
+ this_3.treeControl.dataNodes[i].disabled = true;
5807
5836
  this_3.selectNodeEvent.emit(this_3.treeControl.dataNodes[i]);
5808
5837
  }
5809
5838
  this_3.disabledList.forEach(function (el) {
5810
- if (_this.treeControl.dataNodes[i].id === el.toUpperCase()) {
5811
- _this.treeControl.expand(_this.treeControl.dataNodes[i]);
5812
- }
5813
- });
5814
- // remove all children nodes when user dont need to show them
5815
- this_3.listChildNode.forEach(function (el) {
5816
5839
  var _a;
5817
- if (el.id && ((_a = _this.treeControl.dataNodes[i]) === null || _a === void 0 ? void 0 : _a.id) === el.id) {
5818
- _this.treeControl.dataNodes.splice(i, 1);
5840
+ if (((_a = _this.treeControl.dataNodes[i].id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (el === null || el === void 0 ? void 0 : el.toLowerCase())) {
5841
+ _this.treeControl.expand(_this.treeControl.dataNodes[i]);
5819
5842
  }
5820
5843
  });
5821
5844
  };
@@ -5823,7 +5846,7 @@
5823
5846
  for (var i = 0; i < this.treeControl.dataNodes.length; i++) {
5824
5847
  _loop_3(i);
5825
5848
  }
5826
- this.idCheckIcon = this.idToCheckSelectOne(itemMarkChecked, parentItem);
5849
+ this.idCheckIcon = this.idToCheckSelectOne(currNode === null || currNode === void 0 ? void 0 : currNode.toLowerCase(), parentNode === null || parentNode === void 0 ? void 0 : parentNode.toLowerCase());
5827
5850
  }
5828
5851
  else {
5829
5852
  this.idCheckIcon = '';
@@ -5831,6 +5854,9 @@
5831
5854
  }
5832
5855
  };
5833
5856
  TreeComponent.prototype.getChild = function (obj) {
5857
+ if (!obj) {
5858
+ return;
5859
+ }
5834
5860
  for (var i = 0; i < obj.children.length; i++) {
5835
5861
  if (obj.children[i].children) {
5836
5862
  this.getChild(obj.children[i]);
@@ -6179,16 +6205,18 @@
6179
6205
  };
6180
6206
  TreeComponent.prototype.findChildNode = function (id, data) {
6181
6207
  var e_1, _t, e_2, _u;
6208
+ var _a, _b;
6182
6209
  try {
6183
6210
  // eslint-disable-next-line no-restricted-syntax
6184
6211
  for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
6185
6212
  var currentFather = data_1_1.value;
6186
- if (currentFather.id === id) {
6213
+ if (((_a = currentFather.id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (id === null || id === void 0 ? void 0 : id.toLowerCase())) {
6187
6214
  return currentFather;
6188
6215
  }
6189
6216
  if (currentFather.children) {
6190
6217
  var currentChild = currentFather.children.find(function (x) {
6191
- return x.id === id;
6218
+ var _a;
6219
+ return ((_a = x.id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (id === null || id === void 0 ? void 0 : id.toLowerCase());
6192
6220
  });
6193
6221
  if (currentChild) {
6194
6222
  return currentChild;
@@ -6197,7 +6225,7 @@
6197
6225
  // eslint-disable-next-line no-restricted-syntax
6198
6226
  for (var _v = (e_2 = void 0, __values(currentFather.children)), _w = _v.next(); !_w.done; _w = _v.next()) {
6199
6227
  var currentChild1 = _w.value;
6200
- if (id !== currentChild1.id) {
6228
+ if ((id === null || id === void 0 ? void 0 : id.toLowerCase()) !== ((_b = currentChild1.id) === null || _b === void 0 ? void 0 : _b.toLowerCase())) {
6201
6229
  var result = this.findChildNode(id, currentFather.children);
6202
6230
  if (result !== false) {
6203
6231
  return result;
@@ -6294,9 +6322,10 @@
6294
6322
  }
6295
6323
  };
6296
6324
  TreeComponent.prototype.getNodeId = function (node) {
6325
+ var _a, _b;
6297
6326
  if (!node || !node.id) {
6298
6327
  }
6299
- return "_" + (node.parentId ? node.parentId.toLowerCase() : '') + "_" + node.id.toLowerCase() + "_" + node.level;
6328
+ return "_" + (node.parentId ? (_a = node.parentId) === null || _a === void 0 ? void 0 : _a.toLowerCase() : '') + "_" + ((_b = node.id) === null || _b === void 0 ? void 0 : _b.toLowerCase()) + "_" + node.level;
6300
6329
  };
6301
6330
  TreeComponent.prototype.getNodeByIdAndParentId = function (nodeId, parentId) {
6302
6331
  return this.treeControl.dataNodes.find(function (x) {
@@ -6314,9 +6343,9 @@
6314
6343
  TreeComponent.decorators = [
6315
6344
  { type: i0.Component, args: [{
6316
6345
  selector: 'qms-tree',
6317
- template: "<mat-tree\r\n [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\"\r\n class=\"tree__container\"\r\n>\r\n <mat-tree-node\r\n class=\"tree-branch\"\r\n *matTreeNodeDef=\"let node\"\r\n matTreeNodeToggle\r\n matTreeNodePadding\r\n >\r\n <!-- form thu 1 - child -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n >\r\n </mat-checkbox>\r\n\r\n <!-- form thu 2 -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"ml-10 checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <div\r\n class=\"expand-node\"\r\n *ngIf=\"node.name && !onlyFolder\"\r\n [class.bgSelected]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n (click)=\"selectNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n >\r\n {{ itemIcon }}\r\n </mat-icon>\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"itemIconSvg\"\r\n >\r\n </mat-icon>\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.path\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64\"\r\n [src]=\"getImagePath()\"\r\n />\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.none\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span\r\n class=\"text-node\"\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n </div>\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\r\n <!-- form thu 1 - parent -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild\"\r\n [checked]=\"descendantsAllSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <button\r\n class=\"button-boder\"\r\n mat-icon-button\r\n matTreeNodeToggle\r\n [disableRipple]=\"!node.hasChild\"\r\n [attr.aria-label]=\"'toggle ' + node.filename\"\r\n *ngIf=\"node.name\"\r\n >\r\n <mat-icon\r\n *ngIf=\"openIcon && closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : closeIconColor\r\n }\"\r\n (click)=\"onExpandNode(node, true)\"\r\n >{{ getNodeIcon(node) }}</mat-icon\r\n >\r\n <mat-icon\r\n *ngIf=\"!openIcon || !closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngClass]=\"{\r\n 'open-icon': treeControl.isExpanded(node),\r\n 'not-department-icon': moduleId !== dataType.document\r\n }\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n (click)=\"onExpandNode(node, true)\"\r\n >\r\n </mat-icon>\r\n </button>\r\n <span\r\n *ngIf=\"expandOnTitleClick\"\r\n matTreeNodeToggle\r\n class=\"text-node-parent\"\r\n style=\"cursor: pointer\"\r\n (click)=\"onExpandNode(node, false)\"\r\n [id]=\"getNodeId(node)\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n </span>\r\n <span\r\n *ngIf=\"!expandOnTitleClick\"\r\n class=\"text-node-parent\"\r\n (click)=\"selectFolderNode(node)\"\r\n style=\"cursor: pointer\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <span\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n treeConfig.allowSelectFolder &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n treeConfig.allowSelectFolder &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n",
6346
+ template: "<mat-tree\r\n [dataSource]=\"dataSource\"\r\n [treeControl]=\"treeControl\"\r\n class=\"tree__container\"\r\n>\r\n <mat-tree-node\r\n class=\"tree-branch\"\r\n *matTreeNodeDef=\"let node\"\r\n matTreeNodeToggle\r\n matTreeNodePadding\r\n [class.disabled]=\"node.disabled\"\r\n >\r\n <!-- form thu 1 - child -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n >\r\n </mat-checkbox>\r\n\r\n <!-- form thu 2 -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && onlyCheckBoxForChild && !onlyFolder\"\r\n class=\"ml-10 checklist-leaf-node\"\r\n [checked]=\"checklistSelection.isSelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <div\r\n class=\"expand-node\"\r\n *ngIf=\"node.name && !onlyFolder\"\r\n [class.bgSelected]=\"\r\n treeConfig.selectOne &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n (click)=\"!node.disabled && selectNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <div class=\"expand-node__text\">\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n >\r\n {{ itemIcon }}\r\n </mat-icon>\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"itemIconSvg\"\r\n >\r\n </mat-icon>\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.path\"\r\n class=\"mat-icon\"\r\n [src]=\"itemIconPath\"\r\n />\r\n\r\n <img\r\n *ngIf=\"displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64\"\r\n [src]=\"getImagePath()\"\r\n />\r\n\r\n <mat-icon\r\n *ngIf=\"displayType === itemIconType.none\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined\"\r\n [svgIcon]=\"getItemIcon(node)\"\r\n ></mat-icon>\r\n <span\r\n class=\"text-node\"\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n !node.disabled &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n </div>\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n !node.disabled &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </div>\r\n </mat-tree-node>\r\n\r\n <mat-tree-node\r\n *matTreeNodeDef=\"let node; when: hasChild\"\r\n matTreeNodePadding\r\n [class.disabled]=\"node.disabled\"\r\n >\r\n <!-- form thu 1 - parent -->\r\n <mat-checkbox\r\n qms-group-options\r\n [disabled]=\"node.disabled\"\r\n color=\"default\"\r\n *ngIf=\"node.name && showCheckBox && !onlyCheckBoxForChild\"\r\n [checked]=\"descendantsAllSelected(node)\"\r\n [indeterminate]=\"descendantsPartiallySelected(node)\"\r\n (change)=\"todoItemSelectionToggle(node)\"\r\n ></mat-checkbox>\r\n <button\r\n class=\"button-boder\"\r\n mat-icon-button\r\n matTreeNodeToggle\r\n [disableRipple]=\"!node.hasChild\"\r\n [attr.aria-label]=\"'toggle ' + node.filename\"\r\n *ngIf=\"node.name\"\r\n [disabled]=\"node.disabled\"\r\n >\r\n <mat-icon\r\n *ngIf=\"openIcon && closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : closeIconColor\r\n }\"\r\n (click)=\"!node.disabled && onExpandNode(node, true)\"\r\n >{{ getNodeIcon(node) }}</mat-icon\r\n >\r\n <mat-icon\r\n *ngIf=\"!openIcon || !closeIcon\"\r\n class=\"mat-icon-rtl-mirror\"\r\n [ngClass]=\"{\r\n 'open-icon': treeControl.isExpanded(node),\r\n 'not-department-icon': moduleId !== dataType.document\r\n }\"\r\n [svgIcon]=\"getNodeIcon(node)\"\r\n (click)=\"!node.disabled && onExpandNode(node, true)\"\r\n >\r\n </mat-icon>\r\n </button>\r\n <span\r\n *ngIf=\"expandOnTitleClick\"\r\n matTreeNodeToggle\r\n class=\"text-node-parent\"\r\n (click)=\"!node.disabled && onExpandNode(node, false)\"\r\n [id]=\"getNodeId(node)\"\r\n [ngStyle]=\"{\r\n color: treeControl.isExpanded(node) ? openIconColor : '#000000'\r\n }\"\r\n >\r\n <span>{{ node.name }}</span>\r\n </span>\r\n <span\r\n *ngIf=\"!expandOnTitleClick\"\r\n class=\"text-node-parent\"\r\n (click)=\"!node.disabled && selectFolderNode(node)\"\r\n [id]=\"getNodeId(node)\"\r\n >\r\n <span\r\n [class.select-one-checked]=\"\r\n treeConfig.selectOne &&\r\n !node.disabled &&\r\n treeConfig.allowSelectFolder &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >{{ node.name }}</span\r\n >\r\n <mat-icon\r\n class=\"select-one-checked\"\r\n *ngIf=\"\r\n treeConfig.selectOne &&\r\n !node.disabled &&\r\n treeConfig.allowSelectFolder &&\r\n idCheckIcon == idToCheckSelectOne(node.id, node.parentId)\r\n \"\r\n >done</mat-icon\r\n >\r\n </span>\r\n </mat-tree-node>\r\n</mat-tree>\r\n",
6318
6347
  encapsulation: i0.ViewEncapsulation.None,
6319
- styles: [".tree__container{font-family:Open Sans;font-style:normal;font-weight:400;font-size:.875rem;line-height:19px;color:var(--default-color)}.tree__container .mat-tree-node{color:var(--tree-node-color);min-height:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options{padding:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.tree__container .button{margin-left:6px}.tree__container .button:focus,.tree__container .button:hover{background-color:var(--tree-node-background-color);border-radius:2px;width:auto}.tree__container .button-boder:focus,.tree__container .button:focus{outline:0}.tree__container .button-folder-boder:focus{outline:0}.tree__container .button-folder-boder:focus,.tree__container .button-folder-boder:hover{background-color:var(--tree-node-boder-color);border-radius:2px;width:auto}.tree__container .expand-node{margin-left:8px;min-height:32px;justify-content:space-between;width:100%}.tree__container .expand-node,.tree__container .expand-node .expand-node__text{display:flex;align-items:center}.tree__container .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node.bgSelected .select-one-checked{color:var(--primary)}.tree__container .text-node-parent{width:100%;display:flex;align-items:center;justify-content:space-between;margin-left:10px;cursor:pointer}.tree__container .text-node-parent.active-item{color:#1954a9!important}.tree__container .text-node-parent .select-one-checked{color:var(--primary)}.tree__container .mr-11{margin-right:11px}.tree__container .ml-10{margin-left:10px}.tree__container .tree-branch:hover{background-color:var(--primary-light-12-opacity)}.tree__container .image-base64{width:20px;height:20px}.tree__container .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}::ng-deep .mat-tree .mat-checkbox.qms-group-options{padding:0}::ng-deep .mat-tree .mat-checkbox.qms-group-options.mat-checkbox-checked{background-color:transparent}::ng-deep .mat-tree .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:0}svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.open-icon svg path:first-child,.open-icon.not-department-icon svg path{fill:#1954a9}.mat-checkbox.mat-checkbox-disabled.qms-group-options.mat-checkbox-checked .mat-checkbox-background{background-color:#e0e0e0!important}"]
6348
+ styles: [".tree__container{font-family:Open Sans;font-style:normal;font-weight:400;font-size:.875rem;line-height:19px;color:var(--default-color)}.tree__container .mat-tree-node{color:var(--tree-node-color);min-height:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options{padding:0}.tree__container .mat-tree-node .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:11px}.tree__container .mat-tree-node.disabled .text-node-parent{cursor:default;color:#999}.tree__container .mat-tree-node.disabled svg path{fill:#999}.tree__container .button{margin-left:6px}.tree__container .button:focus,.tree__container .button:hover{background-color:var(--tree-node-background-color);border-radius:2px;width:auto}.tree__container .button-boder:focus,.tree__container .button:focus{outline:0}.tree__container .button-folder-boder:focus{outline:0}.tree__container .button-folder-boder:focus,.tree__container .button-folder-boder:hover{background-color:var(--tree-node-boder-color);border-radius:2px;width:auto}.tree__container .expand-node{margin-left:8px;min-height:32px;justify-content:space-between;width:100%}.tree__container .expand-node,.tree__container .expand-node .expand-node__text{display:flex;align-items:center}.tree__container .expand-node .mat-icon{color:rgba(0,0,0,.6);margin-right:17px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node .mat-icon svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.tree__container .expand-node.bgSelected .select-one-checked{color:var(--primary)}.tree__container .text-node-parent{width:100%;display:flex;align-items:center;justify-content:space-between;margin-left:10px;cursor:pointer}.tree__container .text-node-parent.active-item{color:#1954a9!important}.tree__container .text-node-parent .select-one-checked{color:var(--primary)}.tree__container .mr-11{margin-right:11px}.tree__container .ml-10{margin-left:10px}.tree__container .tree-branch:hover{background-color:var(--primary-light-12-opacity)}.tree__container .image-base64{width:20px;height:20px}.tree__container .mat-checkbox.qms-group-options.mat-checkbox-checked{background:transparent!important}::ng-deep .mat-tree .mat-checkbox.qms-group-options{padding:0}::ng-deep .mat-tree .mat-checkbox.qms-group-options.mat-checkbox-checked{background-color:transparent}::ng-deep .mat-tree .mat-checkbox.qms-group-options .mat-checkbox-inner-container{margin-right:0}svg{display:block;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.open-icon svg path:first-child,.open-icon.not-department-icon svg path{fill:#1954a9}.mat-checkbox.mat-checkbox-disabled.qms-group-options.mat-checkbox-checked .mat-checkbox-background{background-color:#e0e0e0!important}"]
6320
6349
  },] }
6321
6350
  ];
6322
6351
  TreeComponent.ctorParameters = function () { return [
@@ -18080,7 +18109,7 @@
18080
18109
  }(joint.shapes.standard.Link));
18081
18110
  app.Link = Link;
18082
18111
  })(exports.app || (exports.app = {}));
18083
- var ɵ0$1 = function (flags) {
18112
+ var ɵ0$3 = function (flags) {
18084
18113
  if (this.hasFlag(flags, 'RENDER')) {
18085
18114
  this.render();
18086
18115
  }
@@ -18115,7 +18144,7 @@
18115
18144
  position: ['TRANSFORM'],
18116
18145
  angle: ['TRANSFORM']
18117
18146
  },
18118
- confirmUpdate: ɵ0$1,
18147
+ confirmUpdate: ɵ0$3,
18119
18148
  render: ɵ1,
18120
18149
  update: ɵ2
18121
18150
  });
@@ -18145,7 +18174,7 @@
18145
18174
  erd: erd,
18146
18175
  uml: uml,
18147
18176
  org: org,
18148
- 'ɵ0': ɵ0$1,
18177
+ 'ɵ0': ɵ0$3,
18149
18178
  'ɵ1': ɵ1,
18150
18179
  'ɵ2': ɵ2
18151
18180
  });
@@ -25696,7 +25725,7 @@
25696
25725
  selectionChangeEvent: [{ type: i0.Output }]
25697
25726
  };
25698
25727
 
25699
- var ɵ0 = { displayDefaultIndicatorType: false };
25728
+ var ɵ0$2 = { displayDefaultIndicatorType: false };
25700
25729
  var QmsStepperModule = /** @class */ (function () {
25701
25730
  function QmsStepperModule() {
25702
25731
  }
@@ -25720,7 +25749,7 @@
25720
25749
  ],
25721
25750
  providers: [{
25722
25751
  provide: stepper$1.STEPPER_GLOBAL_OPTIONS,
25723
- useValue: ɵ0
25752
+ useValue: ɵ0$2
25724
25753
  }]
25725
25754
  },] }
25726
25755
  ];
@@ -27016,14 +27045,16 @@
27016
27045
  }
27017
27046
  };
27018
27047
  SelectOneDialog.prototype.getModuleFilteredOptions = function () {
27019
- if (this.listChildrenSelectOne.length && this.disabledList.length) {
27020
- for (var index = 0; index < this.listChildrenSelectOne.length; index++) {
27021
- var firstEl = this.listChildrenSelectOne[index];
27022
- for (var j = 0; j < this.filteredOptions.length; j++) {
27023
- var secondEl = this.filteredOptions[j];
27024
- if (firstEl.id === secondEl.id) {
27025
- this.filteredOptions.splice(j, 1);
27026
- }
27048
+ var _a, _b;
27049
+ if (this.filteredOptions.length && this.disabledList.length) {
27050
+ var currNode = this.disabledList[this.disabledList.length - 1];
27051
+ var idxParent = this.disabledList.length >= 2 ? this.disabledList.length - 2 : '';
27052
+ var parentNode = idxParent !== '' ? this.disabledList[idxParent] : '';
27053
+ for (var j = 0; j < this.filteredOptions.length; j++) {
27054
+ var secondEl = this.filteredOptions[j];
27055
+ if (((_a = secondEl.id) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (currNode === null || currNode === void 0 ? void 0 : currNode.toLowerCase()) && ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.toLowerCase()) === ((_b = secondEl.parentId) === null || _b === void 0 ? void 0 : _b.toLowerCase()))) {
27056
+ console.log(j);
27057
+ this.filteredOptions.splice(j, 1);
27027
27058
  }
27028
27059
  }
27029
27060
  }
@@ -27271,7 +27302,7 @@
27271
27302
  selector: 'qms-select-one',
27272
27303
  template: "<div id=\"qmslib_related_popup\" class=\"qmslib__related__popup__container\">\r\n <div id=\"qmslib_related_popup_header\">\r\n <span mat-icon-button class=\"button__close\" (click)=\"onCloseClick()\">\r\n <mat-icon mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmslib_related_popup_header_001\" mat-dialog-content>\r\n <span>{{ moduleName }}</span>\r\n </div>\r\n </div>\r\n\r\n <div\r\n id=\"qmslib_related_popup_search\"\r\n class=\"input__field\"\r\n (click)=\"showSearchResult()\"\r\n >\r\n <input\r\n #name\r\n type=\"text\"\r\n placeholder=\"{{ LANG.SEARCH }}\"\r\n matInput\r\n [formControl]=\"myControl\"\r\n [matAutocomplete]=\"auto\"\r\n #autoCompleteInputSearch\r\n />\r\n <mat-icon>search</mat-icon>\r\n </div>\r\n\r\n <div class=\"line__divider\"></div>\r\n\r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n [displayWith]=\"displayRelated\"\r\n class=\"mat-autocomplete_related-viewport\"\r\n >\r\n <cdk-virtual-scroll-viewport\r\n qms-scrollbar\r\n itemSize=\"10\"\r\n class=\"related-viewport\"\r\n *ngIf=\"filteredOptions.length\"\r\n >\r\n <div class=\"search__module-result\" *ngIf=\"filteredOptions.length\">\r\n <mat-option\r\n class=\"search__option\"\r\n *ngFor=\"let option of getModuleFilteredOptions()\"\r\n [value]=\"option\"\r\n (click)=\"selectItemSearched(option)\"\r\n >\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(option)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div\r\n qms-line\r\n type=\"caption\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(searchItemResult) ? option.parentName : ''\r\n }}\"\r\n mode=\"dark\"\r\n *ngIf=\"getParentName(option)\"\r\n >\r\n <span #searchItemResult class=\"search__result__parent-name\">\r\n {{ option.parentName }}\r\n </span>\r\n </div>\r\n <div qms-line type=\"subtitle\" class=\"search__option-name\">\r\n {{ option.itemName }}\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"option.breadcumbs && option.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-container\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"option.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"getItemId(option)\">\r\n <span>\r\n <mat-icon\r\n class=\"material-icons-outlined search__description-icon\"\r\n >\r\n local_offer\r\n </mat-icon>\r\n </span>\r\n {{ getItemId(option) }}\r\n </div>\r\n </qms-list-item>\r\n </mat-option>\r\n </div>\r\n </cdk-virtual-scroll-viewport>\r\n </mat-autocomplete>\r\n\r\n <div class=\"row\">\r\n <div\r\n class=\"qms-scrollbar col-12 qmslib_related_popup_content panel__content_item\"\r\n >\r\n <mat-expansion-panel\r\n hideToggle\r\n id=\"qmslib_related_popup_common_001\"\r\n [expanded]=\"isCommonExpanded\"\r\n (opened)=\"isCommonExpanded = true\"\r\n (closed)=\"isCommonExpanded = false\"\r\n class=\"panel-tree\"\r\n >\r\n <div id=\"qmslib_related_popup_common_002\">\r\n <qms-tree\r\n [treeData]=\"treeData\"\r\n [treeConfig]=\"treeConfig\"\r\n [selectedData]=\"selectedData\"\r\n [selectedRiskData]=\"selectedRiskData\"\r\n [disabledList]=\"disabledList\"\r\n (selectNodeEvent)=\"selectNodeTreeEvent($event)\"\r\n (nodeExpandEvent)=\"nodeExpandEvent($event)\"\r\n [expandOnTitleClick]=\"false\"\r\n [expandToChildNode]=\"expandToChildNode\"\r\n ></qms-tree>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </div>\r\n\r\n <!-- <div *ngIf=\"checkedNodeList.length\" class=\"line__divider\"></div>\r\n\r\n <div *ngIf=\"checkedNodeList.length\" class=\"panel__item qms-scrollbar\">\r\n <div class=\"related__item__inline\" *ngFor=\"let item of checkedNodeList\">\r\n <button\r\n *ngIf=\"item.itemName\"\r\n mat-button\r\n class=\"related__item__content\"\r\n qms-tool-tip=\"{{\r\n isEllipsisActive(itemName) ? getItemChipName(item) : ''\r\n }}\"\r\n mode=\"dark\"\r\n >\r\n <span class=\"related__item__content_name\" #itemName>{{\r\n getItemChipName(item)\r\n }}</span>\r\n <mat-icon (click)=\"removeCheckedNodeList()\">cancel</mat-icon>\r\n </button>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"line__divider\"></div>\r\n\r\n <div class=\"confirm__button__groups\">\r\n <button\r\n *ngIf=\"!checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 7px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }}\r\n </button>\r\n <button\r\n *ngIf=\"checkedNodeList.length\"\r\n qms-btn\r\n style=\"margin-top: 0px\"\r\n (click)=\"onAddClick()\"\r\n >\r\n {{ LANG.ADD }} ({{ checkedNodeList.length }})\r\n </button>\r\n <button\r\n qms-btn-text\r\n [ngStyle]=\"{ 'margin-top': checkedNodeList.length ? '0px' : '7px' }\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n {{ LANG.CANCEL }}\r\n </button>\r\n </div>\r\n</div>\r\n",
27273
27304
  encapsulation: i0.ViewEncapsulation.None,
27274
- styles: ["::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:var(--text-white);padding:0;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;height:20px;width:20px;font-family:Open Sans;font-size:12px;font-weight:600;font-style:normal;line-height:16px}.qms__danger .red{background-color:var(--button-red-background);margin-left:10px}.qms__danger .yellow{background-color:var(--button-yellow-background);margin-left:10px;color:var(--popup-title-color)}.qms__danger .green{background-color:var(--button-green-background);margin-left:10px}.confirm__button__groups{margin-top:11px}.confirm__button__groups button{min-height:36px;width:auto;font-family:Open Sans;font-weight:500;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px;margin-right:5px;float:right}.confirm__button__groups .confirm{background:var(--button-background)}.confirm__button__groups .confirm:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:var(--button-background)}.confirm__button__groups .cancel:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.qmslib__related__popup__container .input__field{display:flex;align-items:center}.qmslib__related__popup__container .input__field input{width:100%;padding:10px;outline:none;border:none;background:var(--background-input-text)}.qmslib__related__popup__container .input__field .mat-icon{margin-left:-30px;cursor:pointer;vertical-align:middle}.qmslib__related__popup__container .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qmslib__related__popup__container .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qmslib__related__popup__container .panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel-tree .mat-expansion-panel-body{padding:0 12px 12px}.qmslib__related__popup__container .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qmslib__related__popup__container .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qmslib__related__popup__container .mat-expansion-panel-header .related_popup_toggle-btn{width:1.5rem;height:1.5rem;line-height:1.5rem}.qmslib__related__popup__container .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qmslib__related__popup__container .panel__item{height:100px;margin-top:12px;overflow-x:hidden;overflow-y:auto;padding-right:5px;width:100%;max-width:100%;display:flex;flex-wrap:wrap;align-content:flex-start}.qmslib__related__popup__container .panel__item .related__item__inline{max-width:100%}.qmslib__related__popup__container .panel__item .related__item__content{height:32px;line-height:32px;background-color:var(--related-item-background);max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qmslib__related__popup__container .panel__item .related__item__content .mat-icon{color:var(--related-mat-icon-color);font-size:24px}.qmslib__related__popup__container .panel__item .related__item__content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}cdk-virtual-scroll-viewport{overflow-x:hidden}cdk-virtual-scroll-viewport .search__module-result{margin:1.5rem;padding:0 0 .5rem}cdk-virtual-scroll-viewport .search__module-result .search__module-title{font-size:14px;font-weight:600}cdk-virtual-scroll-viewport .search__module-result .search__option{height:auto;line-height:normal;padding:8px 0;border-bottom:1px solid #e0e0e0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item.mat-2-line.image-item{height:auto}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content{margin:0;border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square{width:2.5rem;height:100%;background:transparent;align-self:center;margin-right:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square img{width:24px;height:24px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .material-icons-outlined.leading-icon,cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content mat-icon.leading-icon{padding:4px 0 4px 4px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .subtitle{font-weight:400}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption{overflow:hidden;line-height:normal;white-space:normal;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0;margin:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption span.search__result__parent-name{display:inline-block;width:auto;width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .default-subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .search__description-icon{margin-right:0;width:12px;height:12px;font-size:12px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .qms-list-text{border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .breadcrumb-container .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{margin-bottom:20px;padding:0;font-weight:600;font-family:Raleway}.padding-5{padding:5px}.mat-autocomplete_related-viewport{height:100%;max-height:100%!important}.mat-autocomplete_related-viewport .cdk-virtual-scroll-content-wrapper{width:100%}.mat-autocomplete_related-viewport .related-viewport{min-height:10.25rem}"]
27305
+ styles: ["::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:rgba(0,0,0,.12);background-clip:content-box}::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms__popup .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qms__danger button{border:none;color:var(--text-white);padding:0;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;height:20px;width:20px;font-family:Open Sans;font-size:12px;font-weight:600;font-style:normal;line-height:16px}.qms__danger .red{background-color:var(--button-red-background);margin-left:10px}.qms__danger .yellow{background-color:var(--button-yellow-background);margin-left:10px;color:var(--popup-title-color)}.qms__danger .green{background-color:var(--button-green-background);margin-left:10px}.confirm__button__groups{margin-top:11px}.confirm__button__groups button{min-height:36px;width:auto;font-family:Open Sans;font-weight:500;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px;margin-right:5px;float:right}.confirm__button__groups .confirm{background:var(--button-background)}.confirm__button__groups .confirm:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.confirm__button__groups .confirm:disabled{cursor:not-allowed}.confirm__button__groups .cancel{background:var(--button-background)}.confirm__button__groups .cancel:hover{background:var(--primary-button-background-color);color:var(--primary-button-text-color)}.qmslib__related__popup__container .input__field{display:flex;align-items:center}.qmslib__related__popup__container .input__field input{width:100%;padding:10px;outline:none;border:none;background:var(--background-input-text)}.qmslib__related__popup__container .input__field .mat-icon{margin-left:-30px;cursor:pointer;vertical-align:middle}.qmslib__related__popup__container .line__divider{border-bottom:1px solid #ccc;height:1px;margin-top:10px;min-width:300px;max-width:100%}.qmslib__related__popup__container .button__close{float:right;top:-24px;right:-24px;cursor:pointer}.qmslib__related__popup__container .panel__content{height:450px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel__content_item{height:350px;overflow:auto;margin-top:12px}.qmslib__related__popup__container .panel-tree .mat-expansion-panel-body{padding:0 12px 12px}.qmslib__related__popup__container .mat-expansion-panel-header{height:30px;font-size:12px;letter-spacing:1px;font-family:Raleway;font-weight:600;padding:0}.qmslib__related__popup__container .mat-expansion-panel-header .mat-expansion-panel-header-title{align-items:center;margin-left:12px}.qmslib__related__popup__container .mat-expansion-panel-header .related_popup_toggle-btn{width:1.5rem;height:1.5rem;line-height:1.5rem}.qmslib__related__popup__container .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:none}.qmslib__related__popup__container .panel__item{height:100px;margin-top:12px;overflow-x:hidden;overflow-y:auto;padding-right:5px;width:100%;max-width:100%;display:flex;flex-wrap:wrap;align-content:flex-start}.qmslib__related__popup__container .panel__item .related__item__inline{max-width:100%}.qmslib__related__popup__container .panel__item .related__item__content{height:32px;line-height:32px;background-color:var(--related-item-background);max-width:100%;margin-bottom:5px;margin-left:2.5px;margin-right:2.5px}.qmslib__related__popup__container .panel__item .related__item__content .mat-icon{color:var(--related-mat-icon-color);font-size:24px}.qmslib__related__popup__container .panel__item .related__item__content span.related__item__content_name{display:inline-block;min-width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}cdk-virtual-scroll-viewport{overflow-x:hidden}cdk-virtual-scroll-viewport .search__module-result{margin:1.5rem;padding:0 0 .5rem}cdk-virtual-scroll-viewport .search__module-result .search__module-title{font-size:14px;font-weight:600}cdk-virtual-scroll-viewport .search__module-result .search__option{height:auto;line-height:normal;padding:8px 0;border-bottom:1px solid #e0e0e0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item.mat-2-line.image-item{height:auto}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content{margin:0;border-bottom:none}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square{width:2.5rem;height:100%;background:transparent;align-self:center;margin-right:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .wrap-image.image-square img{width:24px;height:24px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .material-icons-outlined.leading-icon,cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content mat-icon.leading-icon{padding:4px 0 4px 4px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .subtitle{font-weight:400}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption{overflow:hidden;line-height:normal;white-space:normal;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0;margin:0}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .caption span.search__result__parent-name{display:inline-block;width:auto;width:calc(100% - 13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .default-subtitle{color:rgba(0,0,0,.38)}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .search__description-icon{margin-right:0;width:12px;height:12px;font-size:12px}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .qms-list-text{border-bottom:none;height:auto}cdk-virtual-scroll-viewport .search__module-result .search__option .qms-list-item-content .breadcrumb-container .qms-breadcrumb-item .mat-icon{font-size:16px!important;padding-bottom:1px}cdk-virtual-scroll-viewport .search__module-result .search__option .mat-option:focus:not(.mat-option-disabled),cdk-virtual-scroll-viewport .search__module-result .search__option.mat-option:hover:not(.mat-option-disabled){background:transparent!important}cdk-virtual-scroll-viewport .search__module-result svg{display:block}#qmslib_related_popup_header_001{margin-bottom:20px;padding:0;font-weight:600;font-family:Raleway}.padding-5{padding:5px}.mat-autocomplete_related-viewport{height:100%;max-height:100%!important}.mat-autocomplete_related-viewport .cdk-virtual-scroll-content-wrapper{width:100%}.mat-autocomplete_related-viewport .related-viewport{min-height:10.25rem}"]
27275
27306
  },] }
27276
27307
  ];
27277
27308
  SelectOneDialog.ctorParameters = function () { return [
@@ -30094,6 +30125,1033 @@
30094
30125
  return TreeModelNavDrawer;
30095
30126
  }());
30096
30127
 
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
+
30097
31155
  /*
30098
31156
  * Public API Surface of qms-angular
30099
31157
  */
@@ -30141,10 +31199,12 @@
30141
31199
  exports.NavigatorLinkView = NavigatorLinkView;
30142
31200
  exports.NewTreeComponent = NewTreeComponent;
30143
31201
  exports.NewTreeModel = NewTreeModel;
31202
+ exports.OptionSelectAccessModel = OptionSelectAccessModel;
30144
31203
  exports.PROCESS_AREA_ICON = PROCESS_AREA_ICON;
30145
31204
  exports.PROCESS_AREA_OUTLINED_ICON = PROCESS_AREA_OUTLINED_ICON;
30146
31205
  exports.PROCESS_ICON = PROCESS_ICON;
30147
31206
  exports.PopupData = PopupData;
31207
+ exports.QMSAccessItem = QMSAccessItem;
30148
31208
  exports.QMSAnchor = QMSAnchor;
30149
31209
  exports.QMSAppBar = QMSAppBar;
30150
31210
  exports.QMSAppIconModule = QMSAppIconModule;
@@ -30253,6 +31313,16 @@
30253
31313
  exports.QMSScrolableAttachmentListDirective = QMSScrolableAttachmentListDirective;
30254
31314
  exports.QMSScrollbarDirective = QMSScrollbarDirective;
30255
31315
  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;
30256
31326
  exports.QMSSelectIncludeChildrenGlobalService = QMSSelectIncludeChildrenGlobalService;
30257
31327
  exports.QMSSelectIncludeChildrenModule = QMSSelectIncludeChildrenModule;
30258
31328
  exports.QMSSelectOneGlobalService = QMSSelectOneGlobalService;
@@ -30332,6 +31402,9 @@
30332
31402
  exports.SaveTemplateComponent = SaveTemplateComponent;
30333
31403
  exports.ScrollToSelectedDirective = ScrollToSelectedDirective;
30334
31404
  exports.SelectConst = SelectConst;
31405
+ exports.SelectDepartmentComponent = SelectDepartmentComponent;
31406
+ exports.SelectDepartmentPopupData = SelectDepartmentPopupData;
31407
+ exports.SelectDepartmentTreeComponent = SelectDepartmentTreeComponent;
30335
31408
  exports.SelectDialog = SelectDialog;
30336
31409
  exports.SelectIncludeChildrenPopUpComponent = SelectIncludeChildrenPopUpComponent;
30337
31410
  exports.SelectOneDialog = SelectOneDialog;