@onemrvapublic/design-system 21.8.1-develop.3 → 22.0.0-develop.10

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 (102) hide show
  1. package/README.md +3 -3
  2. package/assets/i18n/de.json +12 -0
  3. package/assets/i18n/en.json +12 -0
  4. package/assets/i18n/fr.json +12 -0
  5. package/assets/i18n/nl.json +12 -0
  6. package/fesm2022/onemrvapublic-design-system-card.mjs +33 -20
  7. package/fesm2022/onemrvapublic-design-system-card.mjs.map +1 -1
  8. package/fesm2022/onemrvapublic-design-system-collapsible-page-divider.mjs +11 -7
  9. package/fesm2022/onemrvapublic-design-system-collapsible-page-divider.mjs.map +1 -1
  10. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +9 -6
  11. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
  12. package/fesm2022/onemrvapublic-design-system-layout.mjs +182 -155
  13. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  14. package/fesm2022/onemrvapublic-design-system-mat-address.mjs +11 -9
  15. package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -1
  16. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +23 -13
  17. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
  18. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +14 -12
  19. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
  20. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +39 -56
  21. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
  22. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +13 -8
  23. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
  24. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +7 -6
  25. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
  26. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +8 -7
  27. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -1
  28. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +5 -6
  29. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
  30. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +9 -6
  31. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
  32. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +83 -98
  33. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
  34. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +24 -17
  35. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
  36. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +25 -16
  37. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  38. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +21 -14
  39. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  40. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +21 -14
  41. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  42. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +20 -14
  43. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  44. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +17 -14
  45. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  46. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +29 -18
  47. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
  48. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +19 -13
  49. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  50. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +54 -32
  51. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -1
  52. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +15 -11
  53. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  54. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +21 -14
  55. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  56. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +56 -39
  57. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
  58. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +33 -23
  59. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
  60. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +19 -11
  61. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
  62. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +56 -35
  63. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  64. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +19 -13
  65. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  66. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +13 -10
  67. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
  68. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +61 -34
  69. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
  70. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +12 -11
  71. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
  72. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +13 -41
  73. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
  74. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +7 -7
  75. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +39 -26
  76. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
  77. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +44 -30
  78. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
  79. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +7 -7
  80. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +26 -19
  81. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
  82. package/fesm2022/onemrvapublic-design-system-page-error.mjs +18 -15
  83. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
  84. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +24 -20
  85. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
  86. package/fesm2022/onemrvapublic-design-system-shared.mjs +126 -104
  87. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  88. package/fesm2022/onemrvapublic-design-system-timeline.mjs +563 -0
  89. package/fesm2022/onemrvapublic-design-system-timeline.mjs.map +1 -0
  90. package/fesm2022/onemrvapublic-design-system.mjs +1 -1
  91. package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
  92. package/mat-carousel/src/onemrva-mat-carousel.component.scss +18 -0
  93. package/mat-tooltip/src/onemrva-mat-tooltip.component.scss +1 -0
  94. package/package.json +19 -15
  95. package/timeline/src/onemrva-timeline.component.scss +371 -0
  96. package/types/onemrvapublic-design-system-layout.d.ts +1 -1
  97. package/types/onemrvapublic-design-system-mat-carousel.d.ts +0 -3
  98. package/types/onemrvapublic-design-system-mat-file-upload.d.ts +1 -1
  99. package/types/onemrvapublic-design-system-page-error.d.ts +1 -1
  100. package/types/onemrvapublic-design-system-shared.d.ts +1 -1
  101. package/types/onemrvapublic-design-system-timeline.d.ts +195 -0
  102. package/types/onemrvapublic-design-system.d.ts +1 -1
@@ -5,25 +5,36 @@ import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
5
5
  let NEXT_ID = 0;
6
6
  class OnemrvaMatMessageBoxComponent {
7
7
  constructor() {
8
- this.label = input(false, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
9
- this.messageCode = input('', ...(ngDevMode ? [{ debugName: "messageCode" }] : /* istanbul ignore next */ []));
8
+ this.label = input(false, /* @ts-ignore */
9
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
10
+ this.messageCode = input('', /* @ts-ignore */
11
+ ...(ngDevMode ? [{ debugName: "messageCode" }] : /* istanbul ignore next */ []));
10
12
  this.mbcontent = viewChild.required('mbcontent');
11
- this.id = input(`onemrva-mat-message-box-${NEXT_ID++}`, ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
12
- this.dataCy = input(`onemrva-mat-message-box-${NEXT_ID++}`, ...(ngDevMode ? [{ debugName: "dataCy" }] : /* istanbul ignore next */ []));
13
- this.color = input(OnemrvaMatColor.INFO, ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
14
- this.isError = computed(() => this.color() === OnemrvaMatColor.ERROR, ...(ngDevMode ? [{ debugName: "isError" }] : /* istanbul ignore next */ []));
15
- this.isWarn = computed(() => this.color() === OnemrvaMatColor.WARN, ...(ngDevMode ? [{ debugName: "isWarn" }] : /* istanbul ignore next */ []));
16
- this.isSuccess = computed(() => this.color() === OnemrvaMatColor.SUCCESS, ...(ngDevMode ? [{ debugName: "isSuccess" }] : /* istanbul ignore next */ []));
17
- this.isPrimary = computed(() => this.color() === OnemrvaMatColor.PRIMARY, ...(ngDevMode ? [{ debugName: "isPrimary" }] : /* istanbul ignore next */ []));
13
+ this.id = input(`onemrva-mat-message-box-${NEXT_ID++}`, /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
15
+ this.dataCy = input(`onemrva-mat-message-box-${NEXT_ID++}`, /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "dataCy" }] : /* istanbul ignore next */ []));
17
+ this.color = input(OnemrvaMatColor.INFO, /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
19
+ this.isError = computed(() => this.color() === OnemrvaMatColor.ERROR, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "isError" }] : /* istanbul ignore next */ []));
21
+ this.isWarn = computed(() => this.color() === OnemrvaMatColor.WARN, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "isWarn" }] : /* istanbul ignore next */ []));
23
+ this.isSuccess = computed(() => this.color() === OnemrvaMatColor.SUCCESS, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "isSuccess" }] : /* istanbul ignore next */ []));
25
+ this.isPrimary = computed(() => this.color() === OnemrvaMatColor.PRIMARY, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "isPrimary" }] : /* istanbul ignore next */ []));
18
27
  this.isGrayscale = computed(() => this.color() === OnemrvaMatColor.GRAYSCALE ||
19
- this.color() === OnemrvaMatColor.NONE, ...(ngDevMode ? [{ debugName: "isGrayscale" }] : /* istanbul ignore next */ []));
28
+ this.color() === OnemrvaMatColor.NONE, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "isGrayscale" }] : /* istanbul ignore next */ []));
20
30
  this.isInfo = computed(() => this.color() !== OnemrvaMatColor.ERROR &&
21
31
  this.color() !== OnemrvaMatColor.WARN &&
22
32
  this.color() !== OnemrvaMatColor.NONE &&
23
33
  this.color() !== OnemrvaMatColor.ACCENT &&
24
34
  this.color() !== OnemrvaMatColor.GRAYSCALE &&
25
35
  this.color() !== OnemrvaMatColor.PRIMARY &&
26
- this.color() !== OnemrvaMatColor.SUCCESS, ...(ngDevMode ? [{ debugName: "isInfo" }] : /* istanbul ignore next */ []));
36
+ this.color() !== OnemrvaMatColor.SUCCESS, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "isInfo" }] : /* istanbul ignore next */ []));
27
38
  }
28
39
  ngAfterViewInit() {
29
40
  const messageCode = this.messageCode();
@@ -32,10 +43,10 @@ class OnemrvaMatMessageBoxComponent {
32
43
  this.mbcontent().nativeElement.insertAdjacentHTML('beforeend', messageCode);
33
44
  }
34
45
  }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
36
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: OnemrvaMatMessageBoxComponent, isStandalone: true, selector: "onemrva-mat-message-box", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, messageCode: { classPropertyName: "messageCode", publicName: "messageCode", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-label": "\"message-box\"", "attr.role": "\"alert\"", "attr.id": "id()", "attr.data-cy": "dataCy()", "class.show-icon": "true", "class.mat-error": "isError()", "class.mat-warn": "isWarn()", "class.mat-success": "isSuccess()", "class.mat-primary": "isPrimary()", "class.mat-neutral": "isGrayscale()", "class.mat-info": "isInfo()" }, classAttribute: "onemrva-mat-message-box" }, viewQueries: [{ propertyName: "mbcontent", first: true, predicate: ["mbcontent"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #mbcontent>\n <ng-content />\n</div>\n", styles: [":host{display:inline-flex;align-items:flex-start;position:relative;padding:var(--spacer) var(--spacer) var(--spacer) var(--spacer);border-radius:var(--half-spacer);gap:var(--half-spacer);font:var(--mat-sys-body-small);background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}:host onemrva-mat-sticker{line-height:calc(var(--spacer) * 2.25);margin-right:var(--double-spacer)}\n"] }); }
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMessageBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", type: OnemrvaMatMessageBoxComponent, isStandalone: true, selector: "onemrva-mat-message-box", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, messageCode: { classPropertyName: "messageCode", publicName: "messageCode", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-label": "\"message-box\"", "attr.role": "\"alert\"", "attr.id": "id()", "attr.data-cy": "dataCy()", "class.show-icon": "true", "class.mat-error": "isError()", "class.mat-warn": "isWarn()", "class.mat-success": "isSuccess()", "class.mat-primary": "isPrimary()", "class.mat-neutral": "isGrayscale()", "class.mat-info": "isInfo()" }, classAttribute: "onemrva-mat-message-box" }, viewQueries: [{ propertyName: "mbcontent", first: true, predicate: ["mbcontent"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #mbcontent>\n <ng-content />\n</div>\n", styles: [":host{display:inline-flex;align-items:flex-start;position:relative;padding:var(--spacer) var(--spacer) var(--spacer) var(--spacer);border-radius:var(--half-spacer);gap:var(--half-spacer);font:var(--mat-sys-body-small);background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}:host onemrva-mat-sticker{line-height:calc(var(--spacer) * 2.25);margin-right:var(--double-spacer)}\n"] }); }
37
48
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMessageBoxComponent, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMessageBoxComponent, decorators: [{
39
50
  type: Component,
40
51
  args: [{ selector: 'onemrva-mat-message-box', standalone: true, host: {
41
52
  class: 'onemrva-mat-message-box',
@@ -54,11 +65,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
54
65
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], messageCode: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageCode", required: false }] }], mbcontent: [{ type: i0.ViewChild, args: ['mbcontent', { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], dataCy: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataCy", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
55
66
 
56
67
  class OnemrvaMatMessageBoxModule {
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMessageBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
58
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMessageBoxModule, imports: [OnemrvaMatMessageBoxComponent] }); }
59
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMessageBoxModule }); }
68
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMessageBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
69
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMessageBoxModule, imports: [OnemrvaMatMessageBoxComponent] }); }
70
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMessageBoxModule }); }
60
71
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMessageBoxModule, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMessageBoxModule, decorators: [{
62
73
  type: NgModule,
63
74
  args: [{
64
75
  declarations: [],
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-message-box.mjs","sources":["../../../../projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.ts","../../../../projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.html","../../../../projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.module.ts","../../../../projects/onemrva/design-system/mat-message-box/onemrvapublic-design-system-mat-message-box.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n computed,\n input,\n viewChild,\n} from '@angular/core';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-message-box',\n templateUrl: 'onemrva-mat-message-box.component.html',\n styleUrl: 'onemrva-mat-message-box.component.scss',\n standalone: true,\n host: {\n class: 'onemrva-mat-message-box',\n\n '[attr.aria-label]': '\"message-box\"',\n '[attr.role]': '\"alert\"',\n '[attr.id]': 'id()',\n '[attr.data-cy]': 'dataCy()',\n\n '[class.show-icon]': 'true',\n '[class.mat-error]': 'isError()',\n '[class.mat-warn]': 'isWarn()',\n '[class.mat-success]': 'isSuccess()',\n '[class.mat-primary]': 'isPrimary()',\n '[class.mat-neutral]': 'isGrayscale()',\n '[class.mat-info]': 'isInfo()',\n },\n})\nexport class OnemrvaMatMessageBoxComponent implements AfterViewInit {\n readonly label = input<false | string>(false);\n readonly messageCode = input('');\n readonly mbcontent = viewChild.required<ElementRef>('mbcontent');\n readonly id = input(`onemrva-mat-message-box-${NEXT_ID++}`);\n readonly dataCy = input(`onemrva-mat-message-box-${NEXT_ID++}`);\n readonly color = input<OnemrvaMatColor>(OnemrvaMatColor.INFO);\n\n protected readonly isError = computed(\n () => this.color() === OnemrvaMatColor.ERROR,\n );\n protected readonly isWarn = computed(\n () => this.color() === OnemrvaMatColor.WARN,\n );\n protected readonly isSuccess = computed(\n () => this.color() === OnemrvaMatColor.SUCCESS,\n );\n protected readonly isPrimary = computed(\n () => this.color() === OnemrvaMatColor.PRIMARY,\n );\n protected readonly isGrayscale = computed(\n () =>\n this.color() === OnemrvaMatColor.GRAYSCALE ||\n this.color() === OnemrvaMatColor.NONE,\n );\n protected readonly isInfo = computed(\n () =>\n this.color() !== OnemrvaMatColor.ERROR &&\n this.color() !== OnemrvaMatColor.WARN &&\n this.color() !== OnemrvaMatColor.NONE &&\n this.color() !== OnemrvaMatColor.ACCENT &&\n this.color() !== OnemrvaMatColor.GRAYSCALE &&\n this.color() !== OnemrvaMatColor.PRIMARY &&\n this.color() !== OnemrvaMatColor.SUCCESS,\n );\n\n ngAfterViewInit(): void {\n const messageCode = this.messageCode();\n if (messageCode !== '') {\n console.warn(\n 'messageCode input has been deprecated in message-box component, please review documentation to fix this!',\n );\n this.mbcontent().nativeElement.insertAdjacentHTML(\n 'beforeend',\n messageCode,\n );\n }\n }\n}\n","<div #mbcontent>\n <ng-content />\n</div>\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatMessageBoxComponent } from './onemrva-mat-message-box.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatMessageBoxComponent],\n exports: [],\n})\nexport class OnemrvaMatMessageBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAUA,IAAI,OAAO,GAAG,CAAC;MAwBF,6BAA6B,CAAA;AAtB1C,IAAA,WAAA,GAAA;AAuBW,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAA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A;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,6BAA6B,CAAC;AACxC,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-message-box.mjs","sources":["../../../../projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.ts","../../../../projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.html","../../../../projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.module.ts","../../../../projects/onemrva/design-system/mat-message-box/onemrvapublic-design-system-mat-message-box.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n computed,\n input,\n viewChild,\n} from '@angular/core';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-message-box',\n templateUrl: 'onemrva-mat-message-box.component.html',\n styleUrl: 'onemrva-mat-message-box.component.scss',\n standalone: true,\n host: {\n class: 'onemrva-mat-message-box',\n\n '[attr.aria-label]': '\"message-box\"',\n '[attr.role]': '\"alert\"',\n '[attr.id]': 'id()',\n '[attr.data-cy]': 'dataCy()',\n\n '[class.show-icon]': 'true',\n '[class.mat-error]': 'isError()',\n '[class.mat-warn]': 'isWarn()',\n '[class.mat-success]': 'isSuccess()',\n '[class.mat-primary]': 'isPrimary()',\n '[class.mat-neutral]': 'isGrayscale()',\n '[class.mat-info]': 'isInfo()',\n },\n})\nexport class OnemrvaMatMessageBoxComponent implements AfterViewInit {\n readonly label = input<false | string>(false);\n readonly messageCode = input('');\n readonly mbcontent = viewChild.required<ElementRef>('mbcontent');\n readonly id = input(`onemrva-mat-message-box-${NEXT_ID++}`);\n readonly dataCy = input(`onemrva-mat-message-box-${NEXT_ID++}`);\n readonly color = input<OnemrvaMatColor>(OnemrvaMatColor.INFO);\n\n protected readonly isError = computed(\n () => this.color() === OnemrvaMatColor.ERROR,\n );\n protected readonly isWarn = computed(\n () => this.color() === OnemrvaMatColor.WARN,\n );\n protected readonly isSuccess = computed(\n () => this.color() === OnemrvaMatColor.SUCCESS,\n );\n protected readonly isPrimary = computed(\n () => this.color() === OnemrvaMatColor.PRIMARY,\n );\n protected readonly isGrayscale = computed(\n () =>\n this.color() === OnemrvaMatColor.GRAYSCALE ||\n this.color() === OnemrvaMatColor.NONE,\n );\n protected readonly isInfo = computed(\n () =>\n this.color() !== OnemrvaMatColor.ERROR &&\n this.color() !== OnemrvaMatColor.WARN &&\n this.color() !== OnemrvaMatColor.NONE &&\n this.color() !== OnemrvaMatColor.ACCENT &&\n this.color() !== OnemrvaMatColor.GRAYSCALE &&\n this.color() !== OnemrvaMatColor.PRIMARY &&\n this.color() !== OnemrvaMatColor.SUCCESS,\n );\n\n ngAfterViewInit(): void {\n const messageCode = this.messageCode();\n if (messageCode !== '') {\n console.warn(\n 'messageCode input has been deprecated in message-box component, please review documentation to fix this!',\n );\n this.mbcontent().nativeElement.insertAdjacentHTML(\n 'beforeend',\n messageCode,\n );\n }\n }\n}\n","<div #mbcontent>\n <ng-content />\n</div>\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatMessageBoxComponent } from './onemrva-mat-message-box.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatMessageBoxComponent],\n exports: [],\n})\nexport class OnemrvaMatMessageBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAUA,IAAI,OAAO,GAAG,CAAC;MAwBF,6BAA6B,CAAA;AAtB1C,IAAA,WAAA,GAAA;QAuBW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAiB,KAAK;kFAAC;QACpC,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,EAAE;wFAAC;AACvB,QAAA,IAAA,CAAA,SAAS,GAAG,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ACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,6BAA6B,CAAC;AACxC,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA;;;ACPD;;AAEG;;;;"}
@@ -27,23 +27,29 @@ class OnemrvaMatMultiSelectComponent extends MatFormFieldControl {
27
27
  this.counter = 0;
28
28
  this._values = [];
29
29
  this.stateChanges = new Subject();
30
- this.multiple = input(true, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
31
- this.formControl = input.required(...(ngDevMode ? [{ debugName: "formControl" }] : /* istanbul ignore next */ []));
30
+ this.multiple = input(true, /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
32
+ this.formControl = input.required(/* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "formControl" }] : /* istanbul ignore next */ []));
32
34
  // eslint-disable-next-line @angular-eslint/no-input-rename
33
35
  this.role = input('select', { ...(ngDevMode ? { debugName: "role" } : /* istanbul ignore next */ {}), alias: 'attr.role' });
34
36
  // eslint-disable-next-line @angular-eslint/no-input-rename
35
37
  this.label = input('', { ...(ngDevMode ? { debugName: "label" } : /* istanbul ignore next */ {}), alias: 'attr.aria-label' });
36
38
  // eslint-disable-next-line @angular-eslint/no-input-rename
37
39
  this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), alias: 'attr.aria-invalid' });
38
- this.showFilter = input(true, ...(ngDevMode ? [{ debugName: "showFilter" }] : /* istanbul ignore next */ []));
39
- this.selectionToggle = input(true, ...(ngDevMode ? [{ debugName: "selectionToggle" }] : /* istanbul ignore next */ []));
40
+ this.showFilter = input(true, /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "showFilter" }] : /* istanbul ignore next */ []));
42
+ this.selectionToggle = input(true, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "selectionToggle" }] : /* istanbul ignore next */ []));
40
44
  this.dataCy = input(`onemrva-mat-multi-select-${NEXT_ID++}`, { ...(ngDevMode ? { debugName: "dataCy" } : /* istanbul ignore next */ {}),
41
45
  // eslint-disable-next-line @angular-eslint/no-input-rename
42
46
  alias: 'attr.data-cy' });
43
47
  this.searchFilter = new FormControl('');
44
- this.matOptions = contentChildren(MatOption, ...(ngDevMode ? [{ debugName: "matOptions" }] : /* istanbul ignore next */ []));
48
+ this.matOptions = contentChildren(MatOption, /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "matOptions" }] : /* istanbul ignore next */ []));
45
50
  this.onDestroy$ = new Subject();
46
- this._opacity = computed(() => (this.disabled ? 0.4 : 1), ...(ngDevMode ? [{ debugName: "_opacity" }] : /* istanbul ignore next */ []));
51
+ this._opacity = computed(() => (this.disabled ? 0.4 : 1), /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "_opacity" }] : /* istanbul ignore next */ []));
47
53
  this.focused = false;
48
54
  this.translate = inject(TranslateService);
49
55
  this.cd = inject(ChangeDetectorRef);
@@ -145,8 +151,8 @@ class OnemrvaMatMultiSelectComponent extends MatFormFieldControl {
145
151
  this.searchFilter.updateValueAndValidity({ emitEvent: true });
146
152
  }
147
153
  }
148
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
149
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: OnemrvaMatMultiSelectComponent, isStandalone: true, selector: "onemrva-mat-multi-select", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, formControl: { classPropertyName: "formControl", publicName: "formControl", isSignal: true, isRequired: true, transformFunction: null }, role: { classPropertyName: "role", publicName: "attr.role", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "attr.aria-label", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "attr.aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, showFilter: { classPropertyName: "showFilter", publicName: "showFilter", isSignal: true, isRequired: false, transformFunction: null }, selectionToggle: { classPropertyName: "selectionToggle", publicName: "selectionToggle", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "attr.data-cy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.opacity": "_opacity()" } }, providers: [
154
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMultiSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
155
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: OnemrvaMatMultiSelectComponent, isStandalone: true, selector: "onemrva-mat-multi-select", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, formControl: { classPropertyName: "formControl", publicName: "formControl", isSignal: true, isRequired: true, transformFunction: null }, role: { classPropertyName: "role", publicName: "attr.role", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "attr.aria-label", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "attr.aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, showFilter: { classPropertyName: "showFilter", publicName: "showFilter", isSignal: true, isRequired: false, transformFunction: null }, selectionToggle: { classPropertyName: "selectionToggle", publicName: "selectionToggle", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "attr.data-cy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.opacity": "_opacity()" } }, providers: [
150
156
  {
151
157
  provide: MatFormFieldControl,
152
158
  useExisting: OnemrvaMatMultiSelectComponent,
@@ -159,7 +165,7 @@ class OnemrvaMatMultiSelectComponent extends MatFormFieldControl {
159
165
  },
160
166
  ], queries: [{ propertyName: "matOptions", predicate: MatOption, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<mat-select\n [multiple]=\"multiple()\"\n [formControl]=\"formControl()\"\n [attr.data-cy]=\"dataCy()\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n>\n @if (multiple() && selectionToggle()) {\n <div class=\"selection-choice text-right\">\n <a\n tabindex=\"1\"\n [class.mat-disabled]=\"isAllSelected()\"\n (click)=\"selectAll()\"\n >{{ 'select.select.all' | translate }}</a\n ><span class=\"separator\">&nbsp;&nbsp;|&nbsp;&nbsp;</span>\n <a\n tabindex=\"2\"\n [class.mat-disabled]=\"isNoneSelected()\"\n (click)=\"deselectAll($event)\"\n >{{ 'select.deselect.all' | translate }}</a\n >\n </div>\n }\n <div class=\"option-list\">\n @if (showFilter()) {\n <mat-option>\n <mat-select-search\n [formControl]=\"searchFilter\"\n ariaLabel=\"{{ 'select.search.filter' | translate }}\"\n noEntriesFoundLabel=\"{{ 'select.search.notFound' | translate }}\"\n placeholderLabel=\"{{ 'select.search.filter' | translate }}\"\n />\n </mat-option>\n }\n @for (matOption of matOptions$ | async; track matOption.value) {\n <ng-container>\n <mat-option\n [disabled]=\"matOption.disabled\"\n [value]=\"matOption.value\"\n [attr.data-cy]=\"matOption._getHostElement().dataset['cy']\"\n >\n {{ matOption._text?.nativeElement?.textContent }}\n </mat-option>\n </ng-container>\n }\n </div>\n</mat-select>\n@if (multiple() && counter > 0) {\n <div class=\"mat-select-counter float-right position-absolute text-center\">\n <span class=\"text\">{{ counter }}</span\n ><mat-icon (click)=\"deselectAll($event)\">close</mat-icon>\n </div>\n}\n", styles: [":host{display:inline-block;width:100%}:host .mat-select-counter{top:var(--spacer);right:var(--triple-spacer);display:block;padding:var(--quarter-spacer) var(--half-spacer) var(--quarter-spacer) var(--spacer);background:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);min-width:var(--triple-spacer);font-family:var(--brand-font);border:1px solid var(--mat-sys-primary);border-radius:var(--button-border-radius)}:host .mat-select-counter span.text{font-family:var(--sys-label-large-font);font-style:normal;font-weight:500;font-size:.75rem;line-height:1.25rem}:host .mat-select-counter mat-icon{font-size:.75rem;height:.75rem;width:.75rem;line-height:1rem;padding:0 var(--quarter-spacer) 0 var(--quarter-spacer);cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
161
167
  }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMultiSelectComponent, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMultiSelectComponent, decorators: [{
163
169
  type: Component,
164
170
  args: [{ selector: 'onemrva-mat-multi-select', host: {
165
171
  '[style.opacity]': '_opacity()',
@@ -185,11 +191,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
185
191
  }], ctorParameters: () => [], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], formControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "formControl", required: true }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "attr.role", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "attr.aria-label", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "attr.aria-invalid", required: false }] }], showFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFilter", required: false }] }], selectionToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionToggle", required: false }] }], dataCy: [{ type: i0.Input, args: [{ isSignal: true, alias: "attr.data-cy", required: false }] }], matOptions: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MatOption), { isSignal: true }] }] } });
186
192
 
187
193
  class OnemrvaMatMultiSelectModule {
188
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
189
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMultiSelectModule, imports: [OnemrvaMatMultiSelectComponent] }); }
190
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMultiSelectModule, imports: [OnemrvaMatMultiSelectComponent] }); }
194
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
195
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMultiSelectModule, imports: [OnemrvaMatMultiSelectComponent] }); }
196
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMultiSelectModule, imports: [OnemrvaMatMultiSelectComponent] }); }
191
197
  }
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatMultiSelectModule, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatMultiSelectModule, decorators: [{
193
199
  type: NgModule,
194
200
  args: [{
195
201
  declarations: [],
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-multi-select.mjs","sources":["../../../../projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts","../../../../projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.html","../../../../projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts","../../../../projects/onemrva/design-system/mat-multi-select/onemrvapublic-design-system-mat-multi-select.ts"],"sourcesContent":["import {\n AfterContentChecked,\n ChangeDetectorRef,\n Component,\n forwardRef,\n inject,\n OnDestroy,\n OnInit,\n ViewEncapsulation,\n input,\n contentChildren,\n computed,\n} from '@angular/core';\nimport {\n FormControl,\n NG_VALUE_ACCESSOR,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { MatOption } from '@angular/material/core';\nimport {\n debounceTime,\n map,\n Observable,\n startWith,\n Subject,\n takeUntil,\n} from 'rxjs';\nimport { AsyncPipe } from '@angular/common';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSelectSearchComponent } from '@onemrvapublic/design-system/mat-select-search';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-multi-select',\n templateUrl: 'onemrva-mat-multi-select.component.html',\n styleUrl: 'onemrva-mat-multi-select.component.scss',\n host: {\n '[style.opacity]': '_opacity()',\n },\n providers: [\n {\n provide: MatFormFieldControl,\n useExisting: OnemrvaMatMultiSelectComponent,\n multi: false,\n },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => OnemrvaMatMultiSelectComponent),\n multi: true,\n },\n ],\n imports: [\n TranslatePipe,\n ReactiveFormsModule,\n MatSelectModule,\n AsyncPipe,\n MatIcon,\n MatSelectSearchComponent,\n ],\n standalone: true,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatMultiSelectComponent\n extends MatFormFieldControl<any>\n implements OnInit, OnDestroy, AfterContentChecked\n{\n counter = 0;\n _values: any[] = [];\n public override stateChanges = new Subject<void>();\n\n readonly multiple = input(true);\n\n readonly formControl = input.required<FormControl>();\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n public readonly role = input('select', { alias: 'attr.role' });\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n public readonly label = input('', { alias: 'attr.aria-label' });\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n public readonly invalid = input(false, { alias: 'attr.aria-invalid' });\n\n readonly showFilter = input(true);\n\n readonly selectionToggle = input(true);\n\n public readonly dataCy = input(`onemrva-mat-multi-select-${NEXT_ID++}`, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'attr.data-cy',\n });\n\n searchFilter: FormControl = new FormControl<string>('');\n\n readonly matOptions = contentChildren(MatOption);\n matOptions$?: Observable<MatOption<any>[]>;\n onDestroy$: Subject<any> = new Subject<any>();\n\n readonly _opacity = computed(() => (this.disabled ? 0.4 : 1));\n\n override focused = false;\n\n onFocus() {\n this.focused = true;\n this.stateChanges.next();\n }\n\n onBlur() {\n this.focused = false;\n this.stateChanges.next();\n }\n\n translate = inject(TranslateService);\n cd = inject(ChangeDetectorRef);\n\n constructor() {\n super();\n setTimeout(() => {\n this.focused = false;\n }, 3000);\n }\n\n // Function to call when the rating changes.\n onChange = (_values: any[]) => {\n //\n };\n\n // Function to call when the input is touched (when a star is clicked).\n onTouched = () => {\n //\n };\n\n // Allows Angular to update the model (rating).\n // Update the model and changes needed for the view here.\n writeValue(values: any[] | any | undefined | null): void {\n if (this.multiple()) {\n this.counter = 0;\n if (Array.isArray(values)) this.counter = values.length;\n //else if (Array.isArray(this._values)) this.counter = this._values.length;\n }\n this._values = values;\n this.onChange(this._values);\n }\n\n // Allows Angular to register a function to call when the model (rating) changes.\n // Save the function as a property to call later here.\n registerOnChange(fn: (value: any[]) => void): void {\n this.onChange = fn;\n }\n\n // Allows Angular to register a function to call when the input has been touched.\n // Save the function as a property to call later here.\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n isAllSelected() {\n return this.counter === this.matOptions().length;\n }\n\n selectAll() {\n this._values = this.matOptions().map(option => {\n return option.value;\n });\n this.formControl().setValue(this._values);\n }\n\n isNoneSelected() {\n return this.counter === 0;\n }\n\n deselectAll(_$event: MouseEvent) {\n this._values = [];\n this.formControl().setValue(this._values);\n }\n\n onContainerClick(_event: MouseEvent): void {\n //\n }\n\n setDescribedByIds(_ids: string[]): void {\n //\n }\n\n ngOnDestroy(): void {\n this.onDestroy$.next('');\n this.onDestroy$.complete();\n }\n\n optionSize = 0;\n\n ngOnInit(): void {\n this.matOptions$ = this.searchFilter.valueChanges.pipe(\n debounceTime(200),\n startWith(''),\n map((value: string) => {\n this.optionSize = this.matOptions().length;\n if (this._values !== null) {\n this.counter = this._values.length;\n }\n if (value === '') {\n return this.matOptions().filter(_o => {\n return true;\n });\n }\n return this.matOptions().filter(option => {\n return option?._text?.nativeElement.innerHTML\n .toLowerCase()\n .includes(value.toLowerCase());\n });\n }),\n );\n this.formControl()\n .valueChanges.pipe(takeUntil(this.onDestroy$))\n .subscribe(values => {\n this._values = values;\n if (this._values !== null && this._values !== undefined) {\n this.counter = this._values.length;\n } else {\n this.counter = 0;\n }\n });\n }\n\n ngAfterContentChecked(): void {\n const matOptions = this.matOptions();\n if (matOptions.length !== this.optionSize) {\n this.optionSize = matOptions.length;\n this.counter = 0;\n this.searchFilter.updateValueAndValidity({ emitEvent: true });\n }\n }\n}\n","<mat-select\n [multiple]=\"multiple()\"\n [formControl]=\"formControl()\"\n [attr.data-cy]=\"dataCy()\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n>\n @if (multiple() && selectionToggle()) {\n <div class=\"selection-choice text-right\">\n <a\n tabindex=\"1\"\n [class.mat-disabled]=\"isAllSelected()\"\n (click)=\"selectAll()\"\n >{{ 'select.select.all' | translate }}</a\n ><span class=\"separator\">&nbsp;&nbsp;|&nbsp;&nbsp;</span>\n <a\n tabindex=\"2\"\n [class.mat-disabled]=\"isNoneSelected()\"\n (click)=\"deselectAll($event)\"\n >{{ 'select.deselect.all' | translate }}</a\n >\n </div>\n }\n <div class=\"option-list\">\n @if (showFilter()) {\n <mat-option>\n <mat-select-search\n [formControl]=\"searchFilter\"\n ariaLabel=\"{{ 'select.search.filter' | translate }}\"\n noEntriesFoundLabel=\"{{ 'select.search.notFound' | translate }}\"\n placeholderLabel=\"{{ 'select.search.filter' | translate }}\"\n />\n </mat-option>\n }\n @for (matOption of matOptions$ | async; track matOption.value) {\n <ng-container>\n <mat-option\n [disabled]=\"matOption.disabled\"\n [value]=\"matOption.value\"\n [attr.data-cy]=\"matOption._getHostElement().dataset['cy']\"\n >\n {{ matOption._text?.nativeElement?.textContent }}\n </mat-option>\n </ng-container>\n }\n </div>\n</mat-select>\n@if (multiple() && counter > 0) {\n <div class=\"mat-select-counter float-right position-absolute text-center\">\n <span class=\"text\">{{ counter }}</span\n ><mat-icon (click)=\"deselectAll($event)\">close</mat-icon>\n </div>\n}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatMultiSelectComponent } from './onemrva-mat-multi-select.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatMultiSelectComponent],\n exports: [],\n})\nexport class OnemrvaMatMultiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAkCA,IAAI,OAAO,GAAG,CAAC;AAgCT,MAAO,8BACX,SAAQ,mBAAwB,CAAA;IAuChC,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;AACnB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B;IAEA,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AACpB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B;AAKA,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAlDT,IAAA,CAAA,OAAO,GAAG,CAAC;QACX,IAAA,CAAA,OAAO,GAAU,EAAE;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;AAEzC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,+EAAC;AAEtB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ,iFAAe;;QAGpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,4EAAI,KAAK,EAAE,WAAW,EAAA,CAAG;;QAG9C,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AAS;wBACT,OAAO;wBACP,wBAAwB;AACzB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,wzDAAA,EAAA,MAAA,EAAA,CAAA,mvBAAA,CAAA,EAAA;85BAkCH,SAAS,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ME1FpC,2BAA2B,CAAA;8GAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAH5B,8BAA8B,CAAA,EAAA,CAAA,CAAA;AAG7B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAH5B,8BAA8B,CAAA,EAAA,CAAA,CAAA;;2FAG7B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,8BAA8B,CAAC;AACzC,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-multi-select.mjs","sources":["../../../../projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts","../../../../projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.html","../../../../projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts","../../../../projects/onemrva/design-system/mat-multi-select/onemrvapublic-design-system-mat-multi-select.ts"],"sourcesContent":["import {\n AfterContentChecked,\n ChangeDetectorRef,\n Component,\n forwardRef,\n inject,\n OnDestroy,\n OnInit,\n ViewEncapsulation,\n input,\n contentChildren,\n computed,\n} from '@angular/core';\nimport {\n FormControl,\n NG_VALUE_ACCESSOR,\n ReactiveFormsModule,\n} from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { MatOption } from '@angular/material/core';\nimport {\n debounceTime,\n map,\n Observable,\n startWith,\n Subject,\n takeUntil,\n} from 'rxjs';\nimport { AsyncPipe } from '@angular/common';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSelectSearchComponent } from '@onemrvapublic/design-system/mat-select-search';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-multi-select',\n templateUrl: 'onemrva-mat-multi-select.component.html',\n styleUrl: 'onemrva-mat-multi-select.component.scss',\n host: {\n '[style.opacity]': '_opacity()',\n },\n providers: [\n {\n provide: MatFormFieldControl,\n useExisting: OnemrvaMatMultiSelectComponent,\n multi: false,\n },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => OnemrvaMatMultiSelectComponent),\n multi: true,\n },\n ],\n imports: [\n TranslatePipe,\n ReactiveFormsModule,\n MatSelectModule,\n AsyncPipe,\n MatIcon,\n MatSelectSearchComponent,\n ],\n standalone: true,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatMultiSelectComponent\n extends MatFormFieldControl<any>\n implements OnInit, OnDestroy, AfterContentChecked\n{\n counter = 0;\n _values: any[] = [];\n public override stateChanges = new Subject<void>();\n\n readonly multiple = input(true);\n\n readonly formControl = input.required<FormControl>();\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n public readonly role = input('select', { alias: 'attr.role' });\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n public readonly label = input('', { alias: 'attr.aria-label' });\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n public readonly invalid = input(false, { alias: 'attr.aria-invalid' });\n\n readonly showFilter = input(true);\n\n readonly selectionToggle = input(true);\n\n public readonly dataCy = input(`onemrva-mat-multi-select-${NEXT_ID++}`, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'attr.data-cy',\n });\n\n searchFilter: FormControl = new FormControl<string>('');\n\n readonly matOptions = contentChildren(MatOption);\n matOptions$?: Observable<MatOption<any>[]>;\n onDestroy$: Subject<any> = new Subject<any>();\n\n readonly _opacity = computed(() => (this.disabled ? 0.4 : 1));\n\n override focused = false;\n\n onFocus() {\n this.focused = true;\n this.stateChanges.next();\n }\n\n onBlur() {\n this.focused = false;\n this.stateChanges.next();\n }\n\n translate = inject(TranslateService);\n cd = inject(ChangeDetectorRef);\n\n constructor() {\n super();\n setTimeout(() => {\n this.focused = false;\n }, 3000);\n }\n\n // Function to call when the rating changes.\n onChange = (_values: any[]) => {\n //\n };\n\n // Function to call when the input is touched (when a star is clicked).\n onTouched = () => {\n //\n };\n\n // Allows Angular to update the model (rating).\n // Update the model and changes needed for the view here.\n writeValue(values: any[] | any | undefined | null): void {\n if (this.multiple()) {\n this.counter = 0;\n if (Array.isArray(values)) this.counter = values.length;\n //else if (Array.isArray(this._values)) this.counter = this._values.length;\n }\n this._values = values;\n this.onChange(this._values);\n }\n\n // Allows Angular to register a function to call when the model (rating) changes.\n // Save the function as a property to call later here.\n registerOnChange(fn: (value: any[]) => void): void {\n this.onChange = fn;\n }\n\n // Allows Angular to register a function to call when the input has been touched.\n // Save the function as a property to call later here.\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n isAllSelected() {\n return this.counter === this.matOptions().length;\n }\n\n selectAll() {\n this._values = this.matOptions().map(option => {\n return option.value;\n });\n this.formControl().setValue(this._values);\n }\n\n isNoneSelected() {\n return this.counter === 0;\n }\n\n deselectAll(_$event: MouseEvent) {\n this._values = [];\n this.formControl().setValue(this._values);\n }\n\n onContainerClick(_event: MouseEvent): void {\n //\n }\n\n setDescribedByIds(_ids: string[]): void {\n //\n }\n\n ngOnDestroy(): void {\n this.onDestroy$.next('');\n this.onDestroy$.complete();\n }\n\n optionSize = 0;\n\n ngOnInit(): void {\n this.matOptions$ = this.searchFilter.valueChanges.pipe(\n debounceTime(200),\n startWith(''),\n map((value: string) => {\n this.optionSize = this.matOptions().length;\n if (this._values !== null) {\n this.counter = this._values.length;\n }\n if (value === '') {\n return this.matOptions().filter(_o => {\n return true;\n });\n }\n return this.matOptions().filter(option => {\n return option?._text?.nativeElement.innerHTML\n .toLowerCase()\n .includes(value.toLowerCase());\n });\n }),\n );\n this.formControl()\n .valueChanges.pipe(takeUntil(this.onDestroy$))\n .subscribe(values => {\n this._values = values;\n if (this._values !== null && this._values !== undefined) {\n this.counter = this._values.length;\n } else {\n this.counter = 0;\n }\n });\n }\n\n ngAfterContentChecked(): void {\n const matOptions = this.matOptions();\n if (matOptions.length !== this.optionSize) {\n this.optionSize = matOptions.length;\n this.counter = 0;\n this.searchFilter.updateValueAndValidity({ emitEvent: true });\n }\n }\n}\n","<mat-select\n [multiple]=\"multiple()\"\n [formControl]=\"formControl()\"\n [attr.data-cy]=\"dataCy()\"\n [attr.aria-label]=\"label()\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n>\n @if (multiple() && selectionToggle()) {\n <div class=\"selection-choice text-right\">\n <a\n tabindex=\"1\"\n [class.mat-disabled]=\"isAllSelected()\"\n (click)=\"selectAll()\"\n >{{ 'select.select.all' | translate }}</a\n ><span class=\"separator\">&nbsp;&nbsp;|&nbsp;&nbsp;</span>\n <a\n tabindex=\"2\"\n [class.mat-disabled]=\"isNoneSelected()\"\n (click)=\"deselectAll($event)\"\n >{{ 'select.deselect.all' | translate }}</a\n >\n </div>\n }\n <div class=\"option-list\">\n @if (showFilter()) {\n <mat-option>\n <mat-select-search\n [formControl]=\"searchFilter\"\n ariaLabel=\"{{ 'select.search.filter' | translate }}\"\n noEntriesFoundLabel=\"{{ 'select.search.notFound' | translate }}\"\n placeholderLabel=\"{{ 'select.search.filter' | translate }}\"\n />\n </mat-option>\n }\n @for (matOption of matOptions$ | async; track matOption.value) {\n <ng-container>\n <mat-option\n [disabled]=\"matOption.disabled\"\n [value]=\"matOption.value\"\n [attr.data-cy]=\"matOption._getHostElement().dataset['cy']\"\n >\n {{ matOption._text?.nativeElement?.textContent }}\n </mat-option>\n </ng-container>\n }\n </div>\n</mat-select>\n@if (multiple() && counter > 0) {\n <div class=\"mat-select-counter float-right position-absolute text-center\">\n <span class=\"text\">{{ counter }}</span\n ><mat-icon (click)=\"deselectAll($event)\">close</mat-icon>\n </div>\n}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatMultiSelectComponent } from './onemrva-mat-multi-select.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatMultiSelectComponent],\n exports: [],\n})\nexport class OnemrvaMatMultiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAkCA,IAAI,OAAO,GAAG,CAAC;AAgCT,MAAO,8BACX,SAAQ,mBAAwB,CAAA;IAuChC,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;AACnB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B;IAEA,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AACpB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IAC1B;AAKA,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAlDT,IAAA,CAAA,OAAO,GAAG,CAAC;QACX,IAAA,CAAA,OAAO,GAAU,EAAE;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,OAAO,EAAQ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;;;;"}
@@ -8,23 +8,39 @@ import { TranslatePipe } from '@ngx-translate/core';
8
8
 
9
9
  class OnemrvaMatNavigationItemComponent {
10
10
  constructor() {
11
- this.routerLink = input(...(ngDevMode ? [undefined, { debugName: "routerLink" }] : /* istanbul ignore next */ []));
12
- this.routerLinkActiveOptions = input(...(ngDevMode ? [undefined, { debugName: "routerLinkActiveOptions" }] : /* istanbul ignore next */ []));
13
- this.dataCy = input(...(ngDevMode ? [undefined, { debugName: "dataCy" }] : /* istanbul ignore next */ []));
14
- this.baseRouteForActiveMenu = input(...(ngDevMode ? [undefined, { debugName: "baseRouteForActiveMenu" }] : /* istanbul ignore next */ []));
15
- this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
16
- this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
17
- this.level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
18
- this.highlighted = input(...(ngDevMode ? [undefined, { debugName: "highlighted" }] : /* istanbul ignore next */ []));
19
- this.opened = input(...(ngDevMode ? [undefined, { debugName: "opened" }] : /* istanbul ignore next */ []));
20
- this.children = input(...(ngDevMode ? [undefined, { debugName: "children" }] : /* istanbul ignore next */ []));
21
- this.customNgClass = input(...(ngDevMode ? [undefined, { debugName: "customNgClass" }] : /* istanbul ignore next */ []));
22
- this.translate = input(true, ...(ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []));
11
+ this.routerLink = input(/* @ts-ignore */
12
+ ...(ngDevMode ? [undefined, { debugName: "routerLink" }] : /* istanbul ignore next */ []));
13
+ this.routerLinkActiveOptions = input(/* @ts-ignore */
14
+ ...(ngDevMode ? [undefined, { debugName: "routerLinkActiveOptions" }] : /* istanbul ignore next */ []));
15
+ this.dataCy = input(/* @ts-ignore */
16
+ ...(ngDevMode ? [undefined, { debugName: "dataCy" }] : /* istanbul ignore next */ []));
17
+ this.baseRouteForActiveMenu = input(/* @ts-ignore */
18
+ ...(ngDevMode ? [undefined, { debugName: "baseRouteForActiveMenu" }] : /* istanbul ignore next */ []));
19
+ this.label = input('', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
21
+ this.icon = input(/* @ts-ignore */
22
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
23
+ this.level = input(0, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
25
+ this.highlighted = input(/* @ts-ignore */
26
+ ...(ngDevMode ? [undefined, { debugName: "highlighted" }] : /* istanbul ignore next */ []));
27
+ this.opened = input(/* @ts-ignore */
28
+ ...(ngDevMode ? [undefined, { debugName: "opened" }] : /* istanbul ignore next */ []));
29
+ this.children = input(/* @ts-ignore */
30
+ ...(ngDevMode ? [undefined, { debugName: "children" }] : /* istanbul ignore next */ []));
31
+ this.customNgClass = input(/* @ts-ignore */
32
+ ...(ngDevMode ? [undefined, { debugName: "customNgClass" }] : /* istanbul ignore next */ []));
33
+ this.translate = input(true, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []));
23
35
  this._highlighted = this.highlighted();
24
- this.matExpansionPanel = viewChild(MatExpansionPanel, ...(ngDevMode ? [{ debugName: "matExpansionPanel" }] : /* istanbul ignore next */ []));
25
- this._isExpanded = signal(false, ...(ngDevMode ? [{ debugName: "_isExpanded" }] : /* istanbul ignore next */ []));
26
- this._isHighlighted = computed(() => this.highlighted(), ...(ngDevMode ? [{ debugName: "_isHighlighted" }] : /* istanbul ignore next */ []));
27
- this._isHighlighted2 = computed(() => !this.highlighted() && this._isExpanded(), ...(ngDevMode ? [{ debugName: "_isHighlighted2" }] : /* istanbul ignore next */ []));
36
+ this.matExpansionPanel = viewChild(MatExpansionPanel, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "matExpansionPanel" }] : /* istanbul ignore next */ []));
38
+ this._isExpanded = signal(false, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "_isExpanded" }] : /* istanbul ignore next */ []));
40
+ this._isHighlighted = computed(() => this.highlighted(), /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "_isHighlighted" }] : /* istanbul ignore next */ []));
42
+ this._isHighlighted2 = computed(() => !this.highlighted() && this._isExpanded(), /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "_isHighlighted2" }] : /* istanbul ignore next */ []));
28
44
  this.cd = inject(ChangeDetectorRef);
29
45
  }
30
46
  get indentArray() {
@@ -41,10 +57,10 @@ class OnemrvaMatNavigationItemComponent {
41
57
  this.cd.markForCheck();
42
58
  });
43
59
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatNavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: OnemrvaMatNavigationItemComponent, isStandalone: true, selector: "onemrva-mat-navigation-item", inputs: { routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null }, baseRouteForActiveMenu: { classPropertyName: "baseRouteForActiveMenu", publicName: "baseRouteForActiveMenu", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, children: { classPropertyName: "children", publicName: "children", isSignal: true, isRequired: false, transformFunction: null }, customNgClass: { classPropertyName: "customNgClass", publicName: "customNgClass", isSignal: true, isRequired: false, transformFunction: null }, translate: { classPropertyName: "translate", publicName: "translate", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.highlighted": "_isHighlighted()", "class.highlighted2": "_isHighlighted2()" } }, viewQueries: [{ propertyName: "matExpansionPanel", first: true, predicate: MatExpansionPanel, descendants: true, isSignal: true }], ngImport: i0, template: "@if (routerLink()) {\n <button\n [routerLink]=\"routerLink()\"\n [attr.data-cy]=\"dataCy()\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n >\n @for (_ of indentArray; track $index) {\n <span class=\"indent-spacer\"></span>\n }\n @if (icon()) {\n <mat-icon>{{ icon() }}</mat-icon>\n }\n @if (translate() && label().trim() !== '') {\n <span [innerHTML]=\"label() | translate\"></span>\n } @else {\n <span [innerHTML]=\"label()\"></span>\n }\n </button>\n} @else {\n <button\n [class]=\"{ 'mobile-menu-item': true, highlighted: highlighted() === true }\"\n [attr.data-cy]=\"dataCy()\"\n (click)=\"subMenu.toggle()\"\n >\n @for (_ of indentArray; track $index) {\n <span class=\"indent-spacer\"></span>\n }\n\n @if (icon()) {\n <mat-icon>{{ icon() }}</mat-icon>\n }\n\n @if (translate() && label().trim() !== '') {\n <span [innerHTML]=\"label() | translate\"></span>\n } @else {\n <span [innerHTML]=\"label()\"></span>\n }\n\n <mat-icon [class]=\"{ end: true, opened: subMenu.expanded }\"\n >arrow_drop_down</mat-icon\n >\n </button>\n <mat-expansion-panel #subMenu [expanded]=\"opened()\">\n <ng-content />\n </mat-expansion-panel>\n}\n", styles: [":host{display:flex;flex-direction:column;width:var(--sideNavWidthFull)}:host.highlighted2 .mobile-menu-item{transition:border-left .4s ease;border-left:.5rem solid var(--mat-sys-tertiary-container)}:host.highlighted .mobile-menu-item{transition:border-left .4s ease;border-left:.5rem solid var(--mat-sys-tertiary)}:host .mobile-menu-item{overflow:hidden;display:flex;width:100%;background:var(--mat-sys-background);padding:var(--double-spacer) var(--quad-spacer);border:none;box-shadow:none;align-items:center;text-align:left;cursor:pointer;font:var(--mat-sys-body-medium);text-decoration:none;color:var(--mat-sys-on-surface);border-left:.5rem solid transparent}:host .mobile-menu-item.active{border-left:.5rem solid var(--mat-sys-tertiary);font-weight:600}:host .mobile-menu-item.active mat-icon{font-variation-settings:\"FILL\" 1,\"wght\" 600,\"GRAD\" 0,\"opsz\" 24}:host .mobile-menu-item.active{background:var(--mat-sys-surface-container-low)}:host .mobile-menu-item:hover,:host .mobile-menu-item:focus{background:var(--mat-sys-surface-container-low)}:host .mobile-menu-item mat-icon{margin-left:-4px;margin-right:var(--spacer);transition:transform .3s ease}:host .mobile-menu-item mat-icon.opened{transform:rotate(180deg)}:host .mobile-menu-item mat-icon.end{margin-left:auto}:host .mobile-menu-item .indent-spacer{width:var(--double-spacer);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
60
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatNavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: OnemrvaMatNavigationItemComponent, isStandalone: true, selector: "onemrva-mat-navigation-item", inputs: { routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null }, baseRouteForActiveMenu: { classPropertyName: "baseRouteForActiveMenu", publicName: "baseRouteForActiveMenu", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, highlighted: { classPropertyName: "highlighted", publicName: "highlighted", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, children: { classPropertyName: "children", publicName: "children", isSignal: true, isRequired: false, transformFunction: null }, customNgClass: { classPropertyName: "customNgClass", publicName: "customNgClass", isSignal: true, isRequired: false, transformFunction: null }, translate: { classPropertyName: "translate", publicName: "translate", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.highlighted": "_isHighlighted()", "class.highlighted2": "_isHighlighted2()" } }, viewQueries: [{ propertyName: "matExpansionPanel", first: true, predicate: MatExpansionPanel, descendants: true, isSignal: true }], ngImport: i0, template: "@if (routerLink()) {\n <button\n [routerLink]=\"routerLink()\"\n [attr.data-cy]=\"dataCy()\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n >\n @for (_ of indentArray; track $index) {\n <span class=\"indent-spacer\"></span>\n }\n @if (icon()) {\n <mat-icon>{{ icon() }}</mat-icon>\n }\n @if (translate() && label().trim() !== '') {\n <span [innerHTML]=\"label() | translate\"></span>\n } @else {\n <span [innerHTML]=\"label()\"></span>\n }\n </button>\n} @else {\n <button\n [class]=\"{ 'mobile-menu-item': true, highlighted: highlighted() === true }\"\n [attr.data-cy]=\"dataCy()\"\n (click)=\"subMenu.toggle()\"\n >\n @for (_ of indentArray; track $index) {\n <span class=\"indent-spacer\"></span>\n }\n\n @if (icon()) {\n <mat-icon>{{ icon() }}</mat-icon>\n }\n\n @if (translate() && label().trim() !== '') {\n <span [innerHTML]=\"label() | translate\"></span>\n } @else {\n <span [innerHTML]=\"label()\"></span>\n }\n\n <mat-icon [class]=\"{ end: true, opened: subMenu.expanded }\"\n >arrow_drop_down</mat-icon\n >\n </button>\n <mat-expansion-panel #subMenu [expanded]=\"opened()\">\n <ng-content />\n </mat-expansion-panel>\n}\n", styles: [":host{display:flex;flex-direction:column;width:var(--sideNavWidthFull)}:host.highlighted2 .mobile-menu-item{transition:border-left .4s ease;border-left:.5rem solid var(--mat-sys-tertiary-container)}:host.highlighted .mobile-menu-item{transition:border-left .4s ease;border-left:.5rem solid var(--mat-sys-tertiary)}:host .mobile-menu-item{overflow:hidden;display:flex;width:100%;background:var(--mat-sys-background);padding:var(--double-spacer) var(--quad-spacer);border:none;box-shadow:none;align-items:center;text-align:left;cursor:pointer;font:var(--mat-sys-body-medium);text-decoration:none;color:var(--mat-sys-on-surface);border-left:.5rem solid transparent}:host .mobile-menu-item.active{border-left:.5rem solid var(--mat-sys-tertiary);font-weight:600}:host .mobile-menu-item.active mat-icon{font-variation-settings:\"FILL\" 1,\"wght\" 600,\"GRAD\" 0,\"opsz\" 24}:host .mobile-menu-item.active{background:var(--mat-sys-surface-container-low)}:host .mobile-menu-item:hover,:host .mobile-menu-item:focus{background:var(--mat-sys-surface-container-low)}:host .mobile-menu-item mat-icon{margin-left:-4px;margin-right:var(--spacer);transition:transform .3s ease}:host .mobile-menu-item mat-icon.opened{transform:rotate(180deg)}:host .mobile-menu-item mat-icon.end{margin-left:auto}:host .mobile-menu-item .indent-spacer{width:var(--double-spacer);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
46
62
  }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatNavigationItemComponent, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatNavigationItemComponent, decorators: [{
48
64
  type: Component,
49
65
  args: [{ selector: 'onemrva-mat-navigation-item', imports: [
50
66
  MatIcon,
@@ -60,23 +76,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
60
76
 
61
77
  class OnemrvaMatNavigationTreeComponent {
62
78
  constructor() {
63
- this.items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
64
- this.level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
65
- this.translate = input(true, ...(ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []));
79
+ this.items = input([], /* @ts-ignore */
80
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
81
+ this.level = input(0, /* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
83
+ this.translate = input(true, /* @ts-ignore */
84
+ ...(ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []));
66
85
  }
67
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatNavigationTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
68
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: OnemrvaMatNavigationTreeComponent, isStandalone: true, selector: "onemrva-mat-navigation-tree", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, translate: { classPropertyName: "translate", publicName: "translate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (item of items(); track item) {\n <onemrva-mat-navigation-item\n [label]=\"item.label\"\n [icon]=\"item.icon\"\n [routerLink]=\"item.routerLink\"\n [level]=\"level()\"\n [dataCy]=\"item.dataCy\"\n [highlighted]=\"item.highlighted\"\n [children]=\"item.children\"\n [opened]=\"item.opened\"\n [translate]=\"translate()\"\n >\n @if (item.children?.length) {\n <onemrva-mat-navigation-tree\n [items]=\"item.children ?? []\"\n [level]=\"level() + 1\"\n />\n }\n </onemrva-mat-navigation-item>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;overflow-x:hidden}\n"], dependencies: [{ kind: "component", type: OnemrvaMatNavigationTreeComponent, selector: "onemrva-mat-navigation-tree", inputs: ["items", "level", "translate"] }, { kind: "component", type: OnemrvaMatNavigationItemComponent, selector: "onemrva-mat-navigation-item", inputs: ["routerLink", "routerLinkActiveOptions", "dataCy", "baseRouteForActiveMenu", "label", "icon", "level", "highlighted", "opened", "children", "customNgClass", "translate"] }] }); }
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatNavigationTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
87
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: OnemrvaMatNavigationTreeComponent, isStandalone: true, selector: "onemrva-mat-navigation-tree", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, translate: { classPropertyName: "translate", publicName: "translate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (item of items(); track item) {\n <onemrva-mat-navigation-item\n [label]=\"item.label\"\n [icon]=\"item.icon\"\n [routerLink]=\"item.routerLink\"\n [level]=\"level()\"\n [dataCy]=\"item.dataCy\"\n [highlighted]=\"item.highlighted\"\n [children]=\"item.children\"\n [opened]=\"item.opened\"\n [translate]=\"translate()\"\n >\n @if (item.children?.length) {\n <onemrva-mat-navigation-tree\n [items]=\"item.children || []\"\n [level]=\"level() + 1\"\n />\n }\n </onemrva-mat-navigation-item>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;overflow-x:hidden}\n"], dependencies: [{ kind: "component", type: OnemrvaMatNavigationTreeComponent, selector: "onemrva-mat-navigation-tree", inputs: ["items", "level", "translate"] }, { kind: "component", type: OnemrvaMatNavigationItemComponent, selector: "onemrva-mat-navigation-item", inputs: ["routerLink", "routerLinkActiveOptions", "dataCy", "baseRouteForActiveMenu", "label", "icon", "level", "highlighted", "opened", "children", "customNgClass", "translate"] }] }); }
69
88
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatNavigationTreeComponent, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatNavigationTreeComponent, decorators: [{
71
90
  type: Component,
72
- args: [{ selector: 'onemrva-mat-navigation-tree', imports: [OnemrvaMatNavigationItemComponent], standalone: true, template: "@for (item of items(); track item) {\n <onemrva-mat-navigation-item\n [label]=\"item.label\"\n [icon]=\"item.icon\"\n [routerLink]=\"item.routerLink\"\n [level]=\"level()\"\n [dataCy]=\"item.dataCy\"\n [highlighted]=\"item.highlighted\"\n [children]=\"item.children\"\n [opened]=\"item.opened\"\n [translate]=\"translate()\"\n >\n @if (item.children?.length) {\n <onemrva-mat-navigation-tree\n [items]=\"item.children ?? []\"\n [level]=\"level() + 1\"\n />\n }\n </onemrva-mat-navigation-item>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;overflow-x:hidden}\n"] }]
91
+ args: [{ selector: 'onemrva-mat-navigation-tree', imports: [OnemrvaMatNavigationItemComponent], standalone: true, template: "@for (item of items(); track item) {\n <onemrva-mat-navigation-item\n [label]=\"item.label\"\n [icon]=\"item.icon\"\n [routerLink]=\"item.routerLink\"\n [level]=\"level()\"\n [dataCy]=\"item.dataCy\"\n [highlighted]=\"item.highlighted\"\n [children]=\"item.children\"\n [opened]=\"item.opened\"\n [translate]=\"translate()\"\n >\n @if (item.children?.length) {\n <onemrva-mat-navigation-tree\n [items]=\"item.children || []\"\n [level]=\"level() + 1\"\n />\n }\n </onemrva-mat-navigation-item>\n}\n", styles: [":host{display:flex;flex-direction:column;width:100%;overflow-x:hidden}\n"] }]
73
92
  }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], translate: [{ type: i0.Input, args: [{ isSignal: true, alias: "translate", required: false }] }] } });
74
93
 
75
94
  class OnemrvaMatNavigationComponent {
76
95
  constructor() {
77
- this.items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
78
- this.level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
79
- this.translate = input(true, ...(ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []));
96
+ this.items = input([], /* @ts-ignore */
97
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
98
+ this.level = input(0, /* @ts-ignore */
99
+ ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
100
+ this.translate = input(true, /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "translate" }] : /* istanbul ignore next */ []));
80
102
  this.router = inject(Router);
81
103
  this.router.events
82
104
  .pipe(filter(event => event instanceof NavigationEnd))
@@ -124,10 +146,10 @@ class OnemrvaMatNavigationComponent {
124
146
  }
125
147
  return [];
126
148
  }
127
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
128
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: OnemrvaMatNavigationComponent, isStandalone: true, selector: "onemrva-mat-navigation", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, translate: { classPropertyName: "translate", publicName: "translate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<onemrva-mat-navigation-tree [items]=\"items()\" [level]=\"level() + 1\" />\n", styles: ["onemrva-mat-navigation{display:flex;width:100%;max-height:calc(100vh - var(--layout-header-height));overflow-y:auto;padding:var(--double-spacer) 0}onemrva-mat-navigation .mat-expansion-panel-body{padding:0}onemrva-mat-navigation .mobile-menu-item{display:flex;width:100%;background:var(--mat-sys-background);padding:var(--double-spacer);border:none;box-shadow:none;align-items:center;text-align:left;font:var(--mat-sys-body-large)}onemrva-mat-navigation .mobile-menu-item:active button,onemrva-mat-navigation .mobile-menu-item.active button{border-left:4px solid var(--mat-sys-tertiary)}onemrva-mat-navigation .mobile-menu-item:hover,onemrva-mat-navigation .mobile-menu-item:focus{background:var(--mat-sys-surface-container-low)}onemrva-mat-navigation .mobile-menu-item mat-icon{margin-left:var(--half-spacer)}onemrva-mat-navigation .mobile-menu-item mat-icon:first-child{margin-right:var(--spacer)}onemrva-mat-navigation .mobile-menu-item mat-icon.end{margin-left:auto}\n"], dependencies: [{ kind: "component", type: OnemrvaMatNavigationTreeComponent, selector: "onemrva-mat-navigation-tree", inputs: ["items", "level", "translate"] }], encapsulation: i0.ViewEncapsulation.None }); }
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
150
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: OnemrvaMatNavigationComponent, isStandalone: true, selector: "onemrva-mat-navigation", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, translate: { classPropertyName: "translate", publicName: "translate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<onemrva-mat-navigation-tree [items]=\"items()\" [level]=\"level() + 1\" />\n", styles: ["onemrva-mat-navigation{display:flex;width:100%;max-height:calc(100vh - var(--layout-header-height));overflow-y:auto;padding:var(--double-spacer) 0}onemrva-mat-navigation .mat-expansion-panel-body{padding:0}onemrva-mat-navigation .mobile-menu-item{display:flex;width:100%;background:var(--mat-sys-background);padding:var(--double-spacer);border:none;box-shadow:none;align-items:center;text-align:left;font:var(--mat-sys-body-large)}onemrva-mat-navigation .mobile-menu-item:active button,onemrva-mat-navigation .mobile-menu-item.active button{border-left:4px solid var(--mat-sys-tertiary)}onemrva-mat-navigation .mobile-menu-item:hover,onemrva-mat-navigation .mobile-menu-item:focus{background:var(--mat-sys-surface-container-low)}onemrva-mat-navigation .mobile-menu-item mat-icon{margin-left:var(--half-spacer)}onemrva-mat-navigation .mobile-menu-item mat-icon:first-child{margin-right:var(--spacer)}onemrva-mat-navigation .mobile-menu-item mat-icon.end{margin-left:auto}\n"], dependencies: [{ kind: "component", type: OnemrvaMatNavigationTreeComponent, selector: "onemrva-mat-navigation-tree", inputs: ["items", "level", "translate"] }], encapsulation: i0.ViewEncapsulation.None }); }
129
151
  }
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatNavigationComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: OnemrvaMatNavigationComponent, decorators: [{
131
153
  type: Component,
132
154
  args: [{ selector: 'onemrva-mat-navigation', imports: [OnemrvaMatNavigationTreeComponent], encapsulation: ViewEncapsulation.None, standalone: true, template: "<onemrva-mat-navigation-tree [items]=\"items()\" [level]=\"level() + 1\" />\n", styles: ["onemrva-mat-navigation{display:flex;width:100%;max-height:calc(100vh - var(--layout-header-height));overflow-y:auto;padding:var(--double-spacer) 0}onemrva-mat-navigation .mat-expansion-panel-body{padding:0}onemrva-mat-navigation .mobile-menu-item{display:flex;width:100%;background:var(--mat-sys-background);padding:var(--double-spacer);border:none;box-shadow:none;align-items:center;text-align:left;font:var(--mat-sys-body-large)}onemrva-mat-navigation .mobile-menu-item:active button,onemrva-mat-navigation .mobile-menu-item.active button{border-left:4px solid var(--mat-sys-tertiary)}onemrva-mat-navigation .mobile-menu-item:hover,onemrva-mat-navigation .mobile-menu-item:focus{background:var(--mat-sys-surface-container-low)}onemrva-mat-navigation .mobile-menu-item mat-icon{margin-left:var(--half-spacer)}onemrva-mat-navigation .mobile-menu-item mat-icon:first-child{margin-right:var(--spacer)}onemrva-mat-navigation .mobile-menu-item mat-icon.end{margin-left:auto}\n"] }]
133
155
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], translate: [{ type: i0.Input, args: [{ isSignal: true, alias: "translate", required: false }] }] } });