@onemrvapublic/design-system 20.11.3 → 21.0.0-develop.2

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 (205) hide show
  1. package/README.md +5 -9
  2. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +14 -20
  3. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
  4. package/fesm2022/onemrvapublic-design-system-layout.mjs +207 -290
  5. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  6. package/fesm2022/onemrvapublic-design-system-mat-address.mjs +19 -25
  7. package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -1
  8. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +58 -223
  9. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
  10. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +47 -53
  11. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
  12. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +50 -71
  13. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
  14. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +27 -29
  15. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
  16. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +24 -42
  17. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
  18. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +8 -12
  19. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -1
  20. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +4 -4
  21. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
  22. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +10 -18
  23. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
  24. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +98 -173
  25. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
  26. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +32 -52
  27. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
  28. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +10 -13
  29. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  30. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +10 -13
  31. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  32. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +24 -44
  33. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  34. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +22 -40
  35. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  36. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +26 -39
  37. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  38. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +45 -180
  39. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
  40. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +38 -63
  41. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  42. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +40 -65
  43. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -1
  44. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +19 -59
  45. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  46. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +23 -49
  47. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  48. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +61 -101
  49. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
  50. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +30 -50
  51. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
  52. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +26 -38
  53. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
  54. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +66 -105
  55. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  56. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +23 -43
  57. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  58. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +15 -26
  59. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
  60. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +62 -177
  61. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
  62. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +17 -21
  63. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
  64. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +14 -22
  65. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
  66. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +8 -8
  67. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
  68. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +79 -93
  69. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
  70. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +59 -94
  71. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
  72. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +178 -245
  73. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
  74. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +7 -7
  75. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
  76. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +33 -43
  77. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
  78. package/fesm2022/onemrvapublic-design-system-page-error.mjs +33 -39
  79. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
  80. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +38 -42
  81. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
  82. package/fesm2022/onemrvapublic-design-system-shared.mjs +188 -312
  83. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  84. package/fesm2022/onemrvapublic-design-system-utils.mjs.map +1 -1
  85. package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +13 -3
  86. package/mat-empty-row/src/onemrva-mat-empty-row.component.scss +2 -2
  87. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +1 -1
  88. package/mat-input-phone/src/onemrva-mat-input-phone.component.scss +1 -1
  89. package/mat-panel/src/onemrva-mat-panel-content.scss +1 -1
  90. package/mat-skeleton/src/onemrva-mat-skeleton.component.scss +1 -1
  91. package/mat-table-of-content/src/onemrva-mat-table-of-content.component.scss +10 -2
  92. package/package.json +72 -62
  93. package/theme/index.scss +230 -0
  94. package/theme/overrides/_autocomplete.scss +9 -0
  95. package/theme/overrides/_button-toggle.scss +14 -0
  96. package/theme/overrides/_button.scss +140 -0
  97. package/theme/overrides/_card.scss +34 -0
  98. package/theme/overrides/_carousel.scss +13 -0
  99. package/theme/overrides/_checkbox.scss +49 -0
  100. package/theme/overrides/_chips.scss +42 -0
  101. package/theme/overrides/_datepicker.scss +10 -0
  102. package/theme/overrides/_dialogs.scss +118 -0
  103. package/theme/overrides/_divider.scss +9 -0
  104. package/theme/overrides/_drag-and-drop.scss +74 -0
  105. package/theme/overrides/_expansion.scss +51 -0
  106. package/theme/overrides/_fab.scss +45 -0
  107. package/theme/overrides/_form-field.scss +223 -0
  108. package/theme/overrides/_icon-button.scss +24 -0
  109. package/theme/overrides/_icon.scss +97 -0
  110. package/theme/overrides/_input.scss +18 -0
  111. package/theme/overrides/_layout.scss +35 -0
  112. package/theme/overrides/_menu.scss +45 -0
  113. package/theme/overrides/_option.scss +15 -0
  114. package/theme/overrides/_panel.scss +59 -0
  115. package/theme/overrides/_progress-bar.scss +29 -0
  116. package/theme/overrides/_radio.scss +16 -0
  117. package/theme/overrides/_select.scss +124 -0
  118. package/theme/overrides/_sidenav.scss +13 -0
  119. package/theme/overrides/_slide-toggle.scss +53 -0
  120. package/theme/overrides/_stepper.scss +196 -0
  121. package/theme/overrides/_stickers.scss +13 -0
  122. package/theme/overrides/_table.scss +115 -0
  123. package/theme/overrides/_tabs.scss +20 -0
  124. package/theme/overrides/_toast.scss +16 -0
  125. package/theme/overrides/_toc.scss +26 -0
  126. package/theme/overrides/_toolbar.scss +26 -0
  127. package/theme/overrides/_tooltip.scss +19 -0
  128. package/theme/palettes/_palette.scss +189 -0
  129. package/theme/utilities/_animations.scss +54 -0
  130. package/theme/utilities/_container.scss +14 -0
  131. package/theme/utilities/_fonts.scss +170 -0
  132. package/theme/utilities/_grid.scss +75 -0
  133. package/theme/utilities/_media.scss +33 -0
  134. package/theme/utilities/_palettes.scss +120 -0
  135. package/theme/utilities/_spacing.scss +86 -0
  136. package/theme/utilities/_tokens.scss +123 -0
  137. package/theme/utilities/_utilities.scss +351 -0
  138. package/theme/utilities/_variables.scss +42 -0
  139. package/types/onemrvapublic-design-system-flag-icon.d.ts +18 -0
  140. package/types/onemrvapublic-design-system-layout.d.ts +305 -0
  141. package/{mat-address/index.d.ts → types/onemrvapublic-design-system-mat-address.d.ts} +8 -8
  142. package/types/onemrvapublic-design-system-mat-avatar.d.ts +67 -0
  143. package/{mat-breadcrumb/index.d.ts → types/onemrvapublic-design-system-mat-breadcrumb.d.ts} +8 -6
  144. package/types/onemrvapublic-design-system-mat-carousel.d.ts +52 -0
  145. package/types/onemrvapublic-design-system-mat-choice-chip.d.ts +23 -0
  146. package/types/onemrvapublic-design-system-mat-copy-to-clipboard.d.ts +25 -0
  147. package/types/onemrvapublic-design-system-mat-country-item.d.ts +10 -0
  148. package/types/onemrvapublic-design-system-mat-empty-row.d.ts +18 -0
  149. package/{mat-file-upload/index.d.ts → types/onemrvapublic-design-system-mat-file-upload.d.ts} +53 -51
  150. package/types/onemrvapublic-design-system-mat-input-address.d.ts +32 -0
  151. package/{mat-input-birthplace/index.d.ts → types/onemrvapublic-design-system-mat-input-birthplace.d.ts} +10 -10
  152. package/{mat-input-country/index.d.ts → types/onemrvapublic-design-system-mat-input-country.d.ts} +2 -2
  153. package/types/onemrvapublic-design-system-mat-input-enterprise-number.d.ts +37 -0
  154. package/{mat-input-iban/index.d.ts → types/onemrvapublic-design-system-mat-input-iban.d.ts} +12 -13
  155. package/{mat-input-phone/index.d.ts → types/onemrvapublic-design-system-mat-input-phone.d.ts} +12 -12
  156. package/types/onemrvapublic-design-system-mat-message-box.d.ts +29 -0
  157. package/types/onemrvapublic-design-system-mat-multi-select.d.ts +57 -0
  158. package/types/onemrvapublic-design-system-mat-navigation.d.ts +55 -0
  159. package/types/onemrvapublic-design-system-mat-notification.d.ts +23 -0
  160. package/types/onemrvapublic-design-system-mat-paginator.d.ts +58 -0
  161. package/types/onemrvapublic-design-system-mat-panel.d.ts +66 -0
  162. package/types/onemrvapublic-design-system-mat-pop-over.d.ts +40 -0
  163. package/types/onemrvapublic-design-system-mat-progress-bar.d.ts +16 -0
  164. package/{mat-select-search/index.d.ts → types/onemrvapublic-design-system-mat-select-search.d.ts} +35 -35
  165. package/types/onemrvapublic-design-system-mat-selectable-box.d.ts +26 -0
  166. package/{mat-side-menu/index.d.ts → types/onemrvapublic-design-system-mat-side-menu.d.ts} +6 -6
  167. package/types/onemrvapublic-design-system-mat-skeleton.d.ts +82 -0
  168. package/{mat-spinner/index.d.ts → types/onemrvapublic-design-system-mat-spinner.d.ts} +3 -4
  169. package/{mat-stepper/index.d.ts → types/onemrvapublic-design-system-mat-stepper.d.ts} +3 -6
  170. package/types/onemrvapublic-design-system-mat-table-of-content.d.ts +85 -0
  171. package/types/onemrvapublic-design-system-mat-task-list.d.ts +56 -0
  172. package/{mat-timepicker/index.d.ts → types/onemrvapublic-design-system-mat-timepicker.d.ts} +50 -66
  173. package/types/onemrvapublic-design-system-mat-tooltip.d.ts +40 -0
  174. package/types/onemrvapublic-design-system-page-error.d.ts +29 -0
  175. package/{page-not-found/index.d.ts → types/onemrvapublic-design-system-page-not-found.d.ts} +6 -6
  176. package/{shared/index.d.ts → types/onemrvapublic-design-system-shared.d.ts} +47 -71
  177. package/flag-icon/index.d.ts +0 -18
  178. package/layout/index.d.ts +0 -295
  179. package/mat-avatar/index.d.ts +0 -187
  180. package/mat-carousel/index.d.ts +0 -52
  181. package/mat-choice-chip/index.d.ts +0 -21
  182. package/mat-copy-to-clipboard/index.d.ts +0 -25
  183. package/mat-country-item/index.d.ts +0 -10
  184. package/mat-empty-row/index.d.ts +0 -19
  185. package/mat-input-address/index.d.ts +0 -32
  186. package/mat-input-enterprise-number/index.d.ts +0 -37
  187. package/mat-message-box/index.d.ts +0 -101
  188. package/mat-multi-select/index.d.ts +0 -57
  189. package/mat-navigation/index.d.ts +0 -54
  190. package/mat-notification/index.d.ts +0 -43
  191. package/mat-paginator/index.d.ts +0 -58
  192. package/mat-panel/index.d.ts +0 -66
  193. package/mat-pop-over/index.d.ts +0 -40
  194. package/mat-progress-bar/index.d.ts +0 -18
  195. package/mat-selectable-box/index.d.ts +0 -29
  196. package/mat-skeleton/index.d.ts +0 -100
  197. package/mat-table-of-content/index.d.ts +0 -84
  198. package/mat-task-list/index.d.ts +0 -57
  199. package/mat-tooltip/index.d.ts +0 -40
  200. package/page-error/index.d.ts +0 -34
  201. /package/{mat-datepicker-header/index.d.ts → types/onemrvapublic-design-system-mat-datepicker-header.d.ts} +0 -0
  202. /package/{mat-sticker/index.d.ts → types/onemrvapublic-design-system-mat-sticker.d.ts} +0 -0
  203. /package/{mat-toast/index.d.ts → types/onemrvapublic-design-system-mat-toast.d.ts} +0 -0
  204. /package/{utils/index.d.ts → types/onemrvapublic-design-system-utils.d.ts} +0 -0
  205. /package/{index.d.ts → types/onemrvapublic-design-system.d.ts} +0 -0
@@ -2,20 +2,20 @@ import * as i0 from '@angular/core';
2
2
  import { ViewEncapsulation, Component, NgModule } from '@angular/core';
3
3
 
4
4
  class OnemrvaMatStickerComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatStickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: OnemrvaMatStickerComponent, isStandalone: true, selector: "onemrva-mat-sticker", ngImport: i0, template: ` <ng-content></ng-content>`, isInline: true, styles: [":host{--sticker-border-width: 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;flex-shrink:0;align-items:center;cursor:default;background:var(--mat-sys-surface);opacity:1;border-radius:var(--small-border-radius);padding:var(--quarter-spacer) var(--spacer);font:var(--mat-sys-label-medium);box-sizing:border-box;border:2px solid var(--mat-sys-primary);color:var(--mat-sys-primary)}:host.mat-accent{background:var(--background-gradient)!important;border:none;padding:calc(var(--quarter-spacer) + var(--sticker-border-width)) calc(var(--spacer) + var(--sticker-border-width));color:var(--on-background-gradient)}\n"] }); }
5
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatStickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.1", type: OnemrvaMatStickerComponent, isStandalone: true, selector: "onemrva-mat-sticker", ngImport: i0, template: ` <ng-content />`, isInline: true, styles: [":host{--sticker-border-width: 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;flex-shrink:0;align-items:center;cursor:default;background:var(--mat-sys-surface);opacity:1;border-radius:var(--small-border-radius);padding:var(--quarter-spacer) var(--spacer);font:var(--mat-sys-label-medium);box-sizing:border-box;border:2px solid var(--mat-sys-primary);color:var(--mat-sys-primary)}:host.mat-accent{background:var(--background-gradient)!important;border:none;padding:calc(var(--quarter-spacer) + var(--sticker-border-width)) calc(var(--spacer) + var(--sticker-border-width));color:var(--on-background-gradient)}\n"] }); }
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatStickerComponent, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatStickerComponent, decorators: [{
9
9
  type: Component,
10
- args: [{ selector: 'onemrva-mat-sticker', template: ` <ng-content></ng-content>`, imports: [], standalone: true, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--sticker-border-width: 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;flex-shrink:0;align-items:center;cursor:default;background:var(--mat-sys-surface);opacity:1;border-radius:var(--small-border-radius);padding:var(--quarter-spacer) var(--spacer);font:var(--mat-sys-label-medium);box-sizing:border-box;border:2px solid var(--mat-sys-primary);color:var(--mat-sys-primary)}:host.mat-accent{background:var(--background-gradient)!important;border:none;padding:calc(var(--quarter-spacer) + var(--sticker-border-width)) calc(var(--spacer) + var(--sticker-border-width));color:var(--on-background-gradient)}\n"] }]
10
+ args: [{ selector: 'onemrva-mat-sticker', template: ` <ng-content />`, imports: [], standalone: true, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--sticker-border-width: 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;flex-shrink:0;align-items:center;cursor:default;background:var(--mat-sys-surface);opacity:1;border-radius:var(--small-border-radius);padding:var(--quarter-spacer) var(--spacer);font:var(--mat-sys-label-medium);box-sizing:border-box;border:2px solid var(--mat-sys-primary);color:var(--mat-sys-primary)}:host.mat-accent{background:var(--background-gradient)!important;border:none;padding:calc(var(--quarter-spacer) + var(--sticker-border-width)) calc(var(--spacer) + var(--sticker-border-width));color:var(--on-background-gradient)}\n"] }]
11
11
  }] });
12
12
 
13
13
  class OnemrvaMatStickerModule {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatStickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatStickerModule, imports: [OnemrvaMatStickerComponent], exports: [OnemrvaMatStickerComponent] }); }
16
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatStickerModule }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatStickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatStickerModule, imports: [OnemrvaMatStickerComponent], exports: [OnemrvaMatStickerComponent] }); }
16
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatStickerModule }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatStickerModule, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatStickerModule, decorators: [{
19
19
  type: NgModule,
20
20
  args: [{
21
21
  declarations: [],
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-sticker.mjs","sources":["../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.component.ts","../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.module.ts","../../../../projects/onemrva/design-system/mat-sticker/index.ts","../../../../projects/onemrva/design-system/mat-sticker/onemrvapublic-design-system-mat-sticker.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'onemrva-mat-sticker',\n template: ` <ng-content></ng-content>`,\n styleUrl: 'onemrva-mat-sticker.component.scss',\n imports: [],\n standalone: true,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatStickerComponent {}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatStickerComponent } from './onemrva-mat-sticker.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatStickerComponent],\n exports: [OnemrvaMatStickerComponent],\n})\nexport class OnemrvaMatStickerModule {}\n","/*\n * Public API Surface of mat-sticker\n */\n\nexport * from './src/onemrva-mat-sticker.component';\nexport * from './src/onemrva-mat-sticker.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,0BAA0B,CAAA;+GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,0BAA0B,+EAN3B,CAAA,0BAAA,CAA4B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,soBAAA,CAAA,EAAA,CAAA,CAAA;;4FAM3B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBARtC,SAAS;+BACE,qBAAqB,EAAA,QAAA,EACrB,4BAA4B,EAAA,OAAA,EAE7B,EAAE,cACC,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,soBAAA,CAAA,EAAA;;;MCA9B,uBAAuB,CAAA;+GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAvB,uBAAuB,EAAA,OAAA,EAAA,CAHxB,0BAA0B,CAAA,EAAA,OAAA,EAAA,CAC1B,0BAA0B,CAAA,EAAA,CAAA,CAAA;gHAEzB,uBAAuB,EAAA,CAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,0BAA0B,CAAC;oBACrC,OAAO,EAAE,CAAC,0BAA0B,CAAC;AACtC,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-sticker.mjs","sources":["../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.component.ts","../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.module.ts","../../../../projects/onemrva/design-system/mat-sticker/index.ts","../../../../projects/onemrva/design-system/mat-sticker/onemrvapublic-design-system-mat-sticker.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'onemrva-mat-sticker',\n template: ` <ng-content />`,\n styleUrl: 'onemrva-mat-sticker.component.scss',\n imports: [],\n standalone: true,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatStickerComponent {}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatStickerComponent } from './onemrva-mat-sticker.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatStickerComponent],\n exports: [OnemrvaMatStickerComponent],\n})\nexport class OnemrvaMatStickerModule {}\n","/*\n * Public API Surface of mat-sticker\n */\n\nexport * from './src/onemrva-mat-sticker.component';\nexport * from './src/onemrva-mat-sticker.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,+EAN3B,CAAA,eAAA,CAAiB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,soBAAA,CAAA,EAAA,CAAA,CAAA;;2FAMhB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBARtC,SAAS;+BACE,qBAAqB,EAAA,QAAA,EACrB,iBAAiB,EAAA,OAAA,EAElB,EAAE,cACC,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,soBAAA,CAAA,EAAA;;;MCA9B,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAvB,uBAAuB,EAAA,OAAA,EAAA,CAHxB,0BAA0B,CAAA,EAAA,OAAA,EAAA,CAC1B,0BAA0B,CAAA,EAAA,CAAA,CAAA;+GAEzB,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,0BAA0B,CAAC;oBACrC,OAAO,EAAE,CAAC,0BAA0B,CAAC;AACtC,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,13 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, Input, HostBinding, ViewEncapsulation, Component, ChangeDetectorRef, Directive } from '@angular/core';
2
+ import { Injectable, input, signal, computed, inject, ViewEncapsulation, Component, ChangeDetectorRef, Directive } from '@angular/core';
3
3
  import * as i1 from '@angular/material/list';
4
4
  import { MatListModule } from '@angular/material/list';
5
- import * as i4 from '@ngx-translate/core';
5
+ import * as i3 from '@ngx-translate/core';
6
6
  import { TranslateModule, TranslateService } from '@ngx-translate/core';
7
7
  import { BehaviorSubject, Subject, takeUntil, map, tap } from 'rxjs';
8
- import * as i2 from '@angular/common';
9
- import { Location, CommonModule } from '@angular/common';
10
- import * as i3 from '@angular/material/icon';
8
+ import { Location, AsyncPipe } from '@angular/common';
9
+ import * as i2 from '@angular/material/icon';
11
10
  import { MatIconModule } from '@angular/material/icon';
12
11
  import { ActivatedRoute, Router, RouterLink } from '@angular/router';
13
12
 
@@ -57,17 +56,25 @@ class OnemrvaMatTableOfContentService {
57
56
  this._toc = {};
58
57
  this._toc$.next(this._toc);
59
58
  }
60
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
61
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentService }); }
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
60
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentService }); }
62
61
  }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentService, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentService, decorators: [{
64
63
  type: Injectable
65
64
  }] });
66
65
 
67
66
  class OnemrvaMatTableOfContentComponent {
68
67
  constructor() {
69
- this.dataCy = 'onemrva-mat-toc';
70
- this.scrollShift = 0;
68
+ // Inputs (immutable)
69
+ this.titleKeyIn = input(...(ngDevMode ? [undefined, { debugName: "titleKeyIn" }] : []));
70
+ this.tocName = input.required(...(ngDevMode ? [{ debugName: "tocName" }] : []));
71
+ this.tableOfContentName = input(...(ngDevMode ? [undefined, { debugName: "tableOfContentName" }] : []));
72
+ this.scrollShift = input(0, ...(ngDevMode ? [{ debugName: "scrollShift" }] : []));
73
+ this.dataCy = input('onemrva-mat-toc', ...(ngDevMode ? [{ debugName: "dataCy" }] : []));
74
+ // Internal override for titleKey
75
+ this._titleKeyOverride = signal(null, ...(ngDevMode ? [{ debugName: "_titleKeyOverride" }] : []));
76
+ // What the template should use
77
+ this.titleKey = computed(() => this._titleKeyOverride() ?? this.titleKeyIn(), ...(ngDevMode ? [{ debugName: "titleKey" }] : []));
71
78
  this.activePath = '';
72
79
  this.destroy$ = new Subject();
73
80
  this.level = OnemrvaMatTocAnchorLevel;
@@ -83,102 +90,93 @@ class OnemrvaMatTableOfContentComponent {
83
90
  this.activePath = fragment ?? '';
84
91
  });
85
92
  this.toc$ = this.tocService.toc$.pipe(map(tocMap => {
86
- const toc = tocMap[this.tocName]?.filter(entry => !entry.hidden) ?? [];
93
+ const toc = tocMap[this.tocName()]?.filter(entry => !entry.hidden) ?? [];
87
94
  return toc.map(entry => ({
88
95
  ...entry,
89
96
  path: entry.path?.startsWith('#') ? entry.path.slice(1) : entry.path,
90
97
  }));
91
98
  }), tap(toc => {
92
99
  if (!toc.length) {
93
- this.titleKey = 'tocName.notFound';
100
+ this._titleKeyOverride.set('tocName.notFound');
94
101
  }
95
102
  else {
103
+ this._titleKeyOverride.set(null);
96
104
  this.activePath = toc[0].path;
97
105
  }
98
106
  }));
99
107
  }
100
- ngOnDestroy() {
101
- this.destroy$.next(true);
102
- this.tocService.resetToc();
103
- }
104
108
  ngAfterViewInit() {
105
109
  const elements = document.querySelectorAll('.onemrva-mat-toc-anchor');
106
110
  this.observer = new IntersectionObserver(entries => {
107
- entries.forEach(entry => {
108
- if (entry.isIntersecting) {
109
- const id = entry.target.getAttribute('id');
110
- if (id) {
111
- if (this.timeoutId !== null)
112
- clearTimeout(this.timeoutId);
113
- this.timeoutId = setTimeout(() => {
114
- this.location.replaceState(this.router.url.split('#')[0] + `#${id}`);
115
- this.activePath = id;
116
- this.timeoutId = null;
117
- }, 200);
118
- }
119
- }
120
- });
121
- }, {
122
- root: null,
123
- threshold: 0,
124
- rootMargin: '-92px 0px -75% 0px',
125
- });
111
+ for (const entry of entries) {
112
+ if (!entry.isIntersecting)
113
+ continue;
114
+ const id = entry.target.getAttribute('id');
115
+ if (!id)
116
+ continue;
117
+ if (this.timeoutId !== null)
118
+ clearTimeout(this.timeoutId);
119
+ this.timeoutId = setTimeout(() => {
120
+ this.location.replaceState(this.router.url.split('#')[0] + `#${id}`);
121
+ this.activePath = id;
122
+ this.timeoutId = null;
123
+ }, 200);
124
+ }
125
+ }, { root: null, threshold: 0, rootMargin: '-92px 0px -75% 0px' });
126
126
  elements.forEach(el => this.observer.observe(el));
127
127
  }
128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
129
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: OnemrvaMatTableOfContentComponent, isStandalone: true, selector: "onemrva-mat-table-of-content", inputs: { titleKey: "titleKey", tocName: "tocName", dataCy: "dataCy", tableOfContentName: "tableOfContentName", scrollShift: "scrollShift" }, host: { properties: { "attr.data-cy": "this.dataCy" } }, ngImport: i0, template: "<div class=\"onemrva-mat-toc\">\n <h3 class=\"onemrva-mat-toc-title\">{{ titleKey | translate }}</h3>\n\n <mat-list>\n @for (anchor of toc$ | async; track anchor.path) {\n <mat-list-item\n [routerLink]=\"[]\"\n [fragment]=\"anchor.path\"\n [ngClass]=\"{\n 'active-anchor': anchor.path === activePath,\n 'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,\n 'onemrva-mat-hidden-toc-anchor': anchor.directive?.hiddenInToc,\n }\"\n >\n {{ anchor.titleKey | translate }}\n @if (anchor.status === status.CHECKMARK) {\n <mat-icon class=\"mat-success\">check</mat-icon>\n }\n @if (anchor.status === status.WARNING) {\n <mat-icon class=\"anchor-warning\">priority_high</mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n</div>\n", styles: [":host{position:fixed;width:var(--toc-width, 280px);top:var(--layout-header-height, 82px);left:0;bottom:0;overflow:auto;background-color:var(--mat-sys-surface-container);padding:var(--triple-spacer) var(--spacer) var(--spacer) var(--triple-spacer);box-sizing:border-box}:host .onemrva-mat-toc-title{color:var(--mat-sys-secondary);line-height:1.5rem;margin-bottom:var(--double-spacer)}:host mat-list{padding:0}:host mat-list mat-list-item{padding:var(--half-spacer) 0 var(--half-spacer) var(--spacer);height:2rem!important;border-left:1px solid var(--mat-sys-outline-variant)}:host mat-list mat-list-item.onemrva-mat-hidden-toc-anchor{display:none}:host mat-list mat-list-item .mdc-list-item__primary-text{font-weight:600;color:var(--mat-sys-outline)}:host mat-list mat-list-item.active-anchor{border-left:3px solid var(--mat-sys-secondary);padding-left:6px}:host mat-list mat-list-item.active-anchor .mdc-list-item__primary-text{color:var(--mat-sys-outline-variant)}:host mat-list mat-list-item:hover{cursor:pointer}:host mat-list mat-list-item mat-icon{vertical-align:bottom!important}:host mat-list mat-list-item mat-icon.anchor-warning{color:var(--mat-sys-secondary)}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
128
+ ngOnDestroy() {
129
+ this.destroy$.next();
130
+ this.destroy$.complete();
131
+ if (this.timeoutId !== null) {
132
+ clearTimeout(this.timeoutId);
133
+ this.timeoutId = null;
134
+ }
135
+ this.observer?.disconnect();
136
+ this.tocService.resetToc();
137
+ }
138
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
139
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: OnemrvaMatTableOfContentComponent, isStandalone: true, selector: "onemrva-mat-table-of-content", inputs: { titleKeyIn: { classPropertyName: "titleKeyIn", publicName: "titleKeyIn", isSignal: true, isRequired: false, transformFunction: null }, tocName: { classPropertyName: "tocName", publicName: "tocName", isSignal: true, isRequired: true, transformFunction: null }, tableOfContentName: { classPropertyName: "tableOfContentName", publicName: "tableOfContentName", isSignal: true, isRequired: false, transformFunction: null }, scrollShift: { classPropertyName: "scrollShift", publicName: "scrollShift", isSignal: true, isRequired: false, transformFunction: null }, dataCy: { classPropertyName: "dataCy", publicName: "dataCy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-cy": "dataCy()" } }, ngImport: i0, template: "<div class=\"onemrva-mat-toc\">\n <h3 class=\"onemrva-mat-toc-title\">{{ titleKey() | translate }}</h3>\n\n <mat-list>\n @for (anchor of toc$ | async; track anchor.path) {\n <mat-list-item\n [routerLink]=\"[]\"\n [fragment]=\"anchor.path\"\n [class]=\"{\n 'active-anchor': anchor.path === activePath,\n 'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,\n 'onemrva-mat-hidden-toc-anchor': anchor.directive?.hiddenInToc(),\n }\"\n >\n {{ anchor.titleKey | translate }}\n @if (anchor.status === status.CHECKMARK) {\n <mat-icon class=\"mat-success\">check</mat-icon>\n }\n @if (anchor.status === status.WARNING) {\n <mat-icon class=\"anchor-warning\">priority_high</mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n</div>\n", styles: [":host{position:fixed;width:var(--toc-width, 280px);top:var(--layout-header-height, 82px);left:0;bottom:0;overflow:auto;background-color:var(--mat-sys-surface-container);padding:var(--triple-spacer) var(--spacer) var(--spacer) var(--triple-spacer);box-sizing:border-box}:host .onemrva-mat-toc-title{color:var(--mat-sys-secondary);line-height:1.5rem;margin-bottom:var(--double-spacer)}:host mat-list{padding:0}:host mat-list mat-list-item{--mat-list-list-item-focus-state-layer-color: transparant;padding:var(--half-spacer) 0 var(--half-spacer) var(--spacer);height:2rem!important;border-left:1px solid var(--mat-sys-outline-variant)}:host mat-list mat-list-item.onemrva-mat-hidden-toc-anchor{display:none}:host mat-list mat-list-item .mdc-list-item__primary-text{font-weight:600;color:var(--mat-sys-outline)}:host mat-list mat-list-item.active-anchor{border-left:3px solid var(--mat-sys-on-tertiary-fixed-variant);padding-left:6px}:host mat-list mat-list-item.active-anchor .mdc-list-item__primary-text{color:var(--mat-sys-outline-variant)}:host mat-list mat-list-item:hover{cursor:pointer}:host mat-list mat-list-item mat-icon{vertical-align:bottom!important}:host mat-list mat-list-item mat-icon.anchor-warning{color:var(--mat-sys-on-tertiary-fixed-variant)}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
130
140
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentComponent, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentComponent, decorators: [{
132
142
  type: Component,
133
143
  args: [{ selector: 'onemrva-mat-table-of-content', standalone: true, imports: [
134
144
  MatListModule,
135
145
  TranslateModule,
136
- CommonModule,
137
146
  MatIconModule,
138
147
  RouterLink,
139
- ], encapsulation: ViewEncapsulation.Emulated, template: "<div class=\"onemrva-mat-toc\">\n <h3 class=\"onemrva-mat-toc-title\">{{ titleKey | translate }}</h3>\n\n <mat-list>\n @for (anchor of toc$ | async; track anchor.path) {\n <mat-list-item\n [routerLink]=\"[]\"\n [fragment]=\"anchor.path\"\n [ngClass]=\"{\n 'active-anchor': anchor.path === activePath,\n 'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,\n 'onemrva-mat-hidden-toc-anchor': anchor.directive?.hiddenInToc,\n }\"\n >\n {{ anchor.titleKey | translate }}\n @if (anchor.status === status.CHECKMARK) {\n <mat-icon class=\"mat-success\">check</mat-icon>\n }\n @if (anchor.status === status.WARNING) {\n <mat-icon class=\"anchor-warning\">priority_high</mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n</div>\n", styles: [":host{position:fixed;width:var(--toc-width, 280px);top:var(--layout-header-height, 82px);left:0;bottom:0;overflow:auto;background-color:var(--mat-sys-surface-container);padding:var(--triple-spacer) var(--spacer) var(--spacer) var(--triple-spacer);box-sizing:border-box}:host .onemrva-mat-toc-title{color:var(--mat-sys-secondary);line-height:1.5rem;margin-bottom:var(--double-spacer)}:host mat-list{padding:0}:host mat-list mat-list-item{padding:var(--half-spacer) 0 var(--half-spacer) var(--spacer);height:2rem!important;border-left:1px solid var(--mat-sys-outline-variant)}:host mat-list mat-list-item.onemrva-mat-hidden-toc-anchor{display:none}:host mat-list mat-list-item .mdc-list-item__primary-text{font-weight:600;color:var(--mat-sys-outline)}:host mat-list mat-list-item.active-anchor{border-left:3px solid var(--mat-sys-secondary);padding-left:6px}:host mat-list mat-list-item.active-anchor .mdc-list-item__primary-text{color:var(--mat-sys-outline-variant)}:host mat-list mat-list-item:hover{cursor:pointer}:host mat-list mat-list-item mat-icon{vertical-align:bottom!important}:host mat-list mat-list-item mat-icon.anchor-warning{color:var(--mat-sys-secondary)}\n"] }]
140
- }], propDecorators: { titleKey: [{
141
- type: Input
142
- }], tocName: [{
143
- type: Input
144
- }], dataCy: [{
145
- type: HostBinding,
146
- args: ['attr.data-cy']
147
- }, {
148
- type: Input
149
- }], tableOfContentName: [{
150
- type: Input
151
- }], scrollShift: [{
152
- type: Input
153
- }] } });
148
+ AsyncPipe,
149
+ ], encapsulation: ViewEncapsulation.Emulated, host: {
150
+ '[attr.data-cy]': 'dataCy()',
151
+ }, template: "<div class=\"onemrva-mat-toc\">\n <h3 class=\"onemrva-mat-toc-title\">{{ titleKey() | translate }}</h3>\n\n <mat-list>\n @for (anchor of toc$ | async; track anchor.path) {\n <mat-list-item\n [routerLink]=\"[]\"\n [fragment]=\"anchor.path\"\n [class]=\"{\n 'active-anchor': anchor.path === activePath,\n 'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,\n 'onemrva-mat-hidden-toc-anchor': anchor.directive?.hiddenInToc(),\n }\"\n >\n {{ anchor.titleKey | translate }}\n @if (anchor.status === status.CHECKMARK) {\n <mat-icon class=\"mat-success\">check</mat-icon>\n }\n @if (anchor.status === status.WARNING) {\n <mat-icon class=\"anchor-warning\">priority_high</mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n</div>\n", styles: [":host{position:fixed;width:var(--toc-width, 280px);top:var(--layout-header-height, 82px);left:0;bottom:0;overflow:auto;background-color:var(--mat-sys-surface-container);padding:var(--triple-spacer) var(--spacer) var(--spacer) var(--triple-spacer);box-sizing:border-box}:host .onemrva-mat-toc-title{color:var(--mat-sys-secondary);line-height:1.5rem;margin-bottom:var(--double-spacer)}:host mat-list{padding:0}:host mat-list mat-list-item{--mat-list-list-item-focus-state-layer-color: transparant;padding:var(--half-spacer) 0 var(--half-spacer) var(--spacer);height:2rem!important;border-left:1px solid var(--mat-sys-outline-variant)}:host mat-list mat-list-item.onemrva-mat-hidden-toc-anchor{display:none}:host mat-list mat-list-item .mdc-list-item__primary-text{font-weight:600;color:var(--mat-sys-outline)}:host mat-list mat-list-item.active-anchor{border-left:3px solid var(--mat-sys-on-tertiary-fixed-variant);padding-left:6px}:host mat-list mat-list-item.active-anchor .mdc-list-item__primary-text{color:var(--mat-sys-outline-variant)}:host mat-list mat-list-item:hover{cursor:pointer}:host mat-list mat-list-item mat-icon{vertical-align:bottom!important}:host mat-list mat-list-item mat-icon.anchor-warning{color:var(--mat-sys-on-tertiary-fixed-variant)}\n"] }]
152
+ }], propDecorators: { titleKeyIn: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleKeyIn", required: false }] }], tocName: [{ type: i0.Input, args: [{ isSignal: true, alias: "tocName", required: true }] }], tableOfContentName: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableOfContentName", required: false }] }], scrollShift: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollShift", required: false }] }], dataCy: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataCy", required: false }] }] } });
154
153
 
155
154
  /**
156
155
  * For accessibility purpose, aria-label and will be displayed
157
156
  */
158
157
  class OnemrvaMatTableOfContentDirective {
159
158
  constructor() {
160
- this.role = '';
161
- this.clazz = 'onemrva-mat-toc-anchor';
162
- this.id = '';
163
- this.hiddenInToc = false;
159
+ this.onemrvaMatToc = input.required(...(ngDevMode ? [{ debugName: "onemrvaMatToc" }] : []));
160
+ this.role = signal('', ...(ngDevMode ? [{ debugName: "role" }] : []));
161
+ this.clazz = signal('onemrva-mat-toc-anchor', ...(ngDevMode ? [{ debugName: "clazz" }] : []));
162
+ this.id = signal('', ...(ngDevMode ? [{ debugName: "id" }] : []));
163
+ this._ariaLabel = computed(() => this.translateService.instant(this.onemrvaMatToc()?.titleKey), ...(ngDevMode ? [{ debugName: "_ariaLabel" }] : []));
164
+ this.hiddenInToc = input(false, ...(ngDevMode ? [{ debugName: "hiddenInToc" }] : []));
165
+ this._ariaToc = computed(() => {
166
+ const onemrvaMatToc = this.onemrvaMatToc();
167
+ if (onemrvaMatToc && onemrvaMatToc.path && onemrvaMatToc.path[0] !== '#')
168
+ return '#' + onemrvaMatToc?.path;
169
+ return onemrvaMatToc?.path;
170
+ }, ...(ngDevMode ? [{ debugName: "_ariaToc" }] : []));
164
171
  this.tocService = inject(OnemrvaMatTableOfContentService);
165
172
  this.cd = inject(ChangeDetectorRef);
166
173
  this.translateService = inject(TranslateService);
167
174
  this.route = inject(ActivatedRoute);
168
175
  }
169
- get ariaLabel() {
170
- return this.translateService.instant(this.onemrvaMatToc?.titleKey);
171
- }
172
- get ariaToc() {
173
- if (this.onemrvaMatToc &&
174
- this.onemrvaMatToc.path &&
175
- this.onemrvaMatToc.path[0] !== '#')
176
- return '#' + this.onemrvaMatToc?.path;
177
- return this.onemrvaMatToc?.path;
178
- }
179
176
  ngOnInit() {
180
- this.tocService.addAnchor({ ...this.onemrvaMatToc, directive: this });
181
- this.id = this.onemrvaMatToc.path.slice(1, this.onemrvaMatToc.path.length);
177
+ const onemrvaMatToc = this.onemrvaMatToc();
178
+ this.tocService.addAnchor({ ...onemrvaMatToc, directive: this });
179
+ this.id.set(onemrvaMatToc.path.slice(1, onemrvaMatToc.path.length));
182
180
  // console.log(' HWK this.hidden', this.hidden);
183
181
  }
184
182
  ngAfterViewInit() {
@@ -190,35 +188,23 @@ class OnemrvaMatTableOfContentDirective {
190
188
  }
191
189
  });
192
190
  }
193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
194
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: OnemrvaMatTableOfContentDirective, isStandalone: true, selector: "[onemrvaMatToc]", inputs: { onemrvaMatToc: "onemrvaMatToc", hiddenInToc: "hiddenInToc" }, host: { properties: { "attr.role": "this.role", "attr.class": "this.clazz", "attr.id": "this.id", "attr.aria-label": "this.ariaLabel", "attr.rvaonem-toc-anchor": "this.ariaToc" } }, ngImport: i0 }); }
191
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
192
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.1", type: OnemrvaMatTableOfContentDirective, isStandalone: true, selector: "[onemrvaMatToc]", inputs: { onemrvaMatToc: { classPropertyName: "onemrvaMatToc", publicName: "onemrvaMatToc", isSignal: true, isRequired: true, transformFunction: null }, hiddenInToc: { classPropertyName: "hiddenInToc", publicName: "hiddenInToc", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "role()", "attr.class": "clazz()", "attr.id": "id()", "attr.aria-label": "_ariaLabel()", "attr.rvaonem-toc-anchor": "_ariaToc()" } }, ngImport: i0 }); }
195
193
  }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: OnemrvaMatTableOfContentDirective, decorators: [{
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatTableOfContentDirective, decorators: [{
197
195
  type: Directive,
198
196
  args: [{
199
197
  selector: '[onemrvaMatToc]',
200
198
  standalone: true,
199
+ host: {
200
+ '[attr.role]': 'role()',
201
+ '[attr.class]': 'clazz()',
202
+ '[attr.id]': 'id()',
203
+ '[attr.aria-label]': '_ariaLabel()',
204
+ '[attr.rvaonem-toc-anchor]': '_ariaToc()',
205
+ },
201
206
  }]
202
- }], propDecorators: { onemrvaMatToc: [{
203
- type: Input
204
- }], role: [{
205
- type: HostBinding,
206
- args: ['attr.role']
207
- }], clazz: [{
208
- type: HostBinding,
209
- args: ['attr.class']
210
- }], id: [{
211
- type: HostBinding,
212
- args: ['attr.id']
213
- }], ariaLabel: [{
214
- type: HostBinding,
215
- args: ['attr.aria-label']
216
- }], hiddenInToc: [{
217
- type: Input
218
- }], ariaToc: [{
219
- type: HostBinding,
220
- args: ['attr.rvaonem-toc-anchor']
221
- }] } });
207
+ }], propDecorators: { onemrvaMatToc: [{ type: i0.Input, args: [{ isSignal: true, alias: "onemrvaMatToc", required: true }] }], hiddenInToc: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenInToc", required: false }] }] } });
222
208
 
223
209
  /*
224
210
  * Public API Surface of mat-summary-stepper
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-table-of-content.mjs","sources":["../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.html","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts","../../../../projects/onemrva/design-system/mat-table-of-content/index.ts","../../../../projects/onemrva/design-system/mat-table-of-content/onemrvapublic-design-system-mat-table-of-content.ts"],"sourcesContent":["export enum OnemrvaMatTocAnchorStatus {\n CHECKMARK,\n WARNING,\n}\n\nexport enum OnemrvaMatTocAnchorLevel {\n SECTION,\n SUBSECTION,\n}\n\nexport interface OnemrvaMatTocAnchor {\n tocName: string;\n titleKey: string;\n path: string;\n order?: number; // You can manually set the order of your links\n status?: OnemrvaMatTocAnchorStatus; // checkmarck add a checkmark icon at the end of the line. Warning adds an exclamation mark\n level?: OnemrvaMatTocAnchorLevel; // Section level by default\n hidden?: boolean;\n directive?: any;\n}\n\nexport type OnemrvaMatToc = Record<string, OnemrvaMatTocAnchor[]>;\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport {\n OnemrvaMatTocAnchor,\n OnemrvaMatToc,\n OnemrvaMatTocAnchorLevel,\n} from './onemrva-mat-toc-anchor.model';\n\n@Injectable()\nexport class OnemrvaMatTableOfContentService {\n private _toc: OnemrvaMatToc = {};\n private _toc$ = new BehaviorSubject<OnemrvaMatToc>({});\n toc$: Observable<OnemrvaMatToc> = this._toc$.asObservable();\n\n addAnchor(anchor: OnemrvaMatTocAnchor) {\n if (!anchor.level) {\n anchor.level = OnemrvaMatTocAnchorLevel.SECTION;\n }\n\n if (!this._toc[anchor.tocName])\n this._toc = { ...this._toc, [anchor.tocName]: [anchor] };\n else if (\n this._toc[anchor.tocName].findIndex(a => anchor.path === a.path) < 0\n ) {\n let idx = -1;\n if (anchor.order) {\n idx = this._toc[anchor.tocName].findIndex(\n a => a.order && anchor.order! < a.order,\n );\n }\n\n const newToc = [...this._toc[anchor.tocName]];\n if (idx >= 0) {\n newToc.splice(idx, 0, anchor);\n } else {\n newToc.push(anchor);\n }\n this._toc = {\n ...this._toc,\n [anchor.tocName]: newToc,\n };\n }\n\n this._toc$.next(this._toc);\n }\n\n resetToc() {\n this._toc = {};\n this._toc$.next(this._toc);\n }\n}\n","import {\n AfterViewInit,\n Component,\n HostBinding,\n inject,\n Input,\n OnDestroy,\n OnInit,\n ViewEncapsulation,\n} from '@angular/core';\nimport { MatListModule } from '@angular/material/list';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { OnemrvaMatTableOfContentService } from './onemrva-mat-table-of-content.service';\nimport { Observable, map, tap, Subject, takeUntil } from 'rxjs';\nimport {\n OnemrvaMatTocAnchor,\n OnemrvaMatTocAnchorLevel,\n OnemrvaMatTocAnchorStatus,\n} from './onemrva-mat-toc-anchor.model';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\nimport { Location } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-table-of-content',\n templateUrl: 'onemrva-mat-table-of-content.component.html',\n styleUrl: 'onemrva-mat-table-of-content.component.scss',\n standalone: true,\n imports: [\n MatListModule,\n TranslateModule,\n CommonModule,\n MatIconModule,\n RouterLink,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatTableOfContentComponent\n implements OnInit, OnDestroy, AfterViewInit\n{\n @Input()\n titleKey!: string;\n\n @Input()\n tocName!: string;\n\n @HostBinding('attr.data-cy')\n @Input()\n dataCy = 'onemrva-mat-toc';\n\n @Input()\n tableOfContentName!: string;\n\n @Input()\n scrollShift = 0;\n\n toc$!: Observable<OnemrvaMatTocAnchor[]>;\n\n activePath = '';\n\n destroy$ = new Subject<boolean>();\n\n level = OnemrvaMatTocAnchorLevel;\n status = OnemrvaMatTocAnchorStatus;\n\n location = inject(Location);\n route = inject(ActivatedRoute);\n router = inject(Router);\n tocService = inject(OnemrvaMatTableOfContentService);\n\n ngOnInit(): void {\n this.route.fragment.pipe(takeUntil(this.destroy$)).subscribe(fragment => {\n this.activePath = fragment ?? '';\n });\n\n this.toc$ = this.tocService.toc$.pipe(\n map(tocMap => {\n const toc = tocMap[this.tocName]?.filter(entry => !entry.hidden) ?? [];\n return toc.map(entry => ({\n ...entry,\n path: entry.path?.startsWith('#') ? entry.path.slice(1) : entry.path,\n }));\n }),\n tap(toc => {\n if (!toc.length) {\n this.titleKey = 'tocName.notFound';\n } else {\n this.activePath = toc[0].path;\n }\n }),\n );\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.tocService.resetToc();\n }\n\n private observer!: IntersectionObserver;\n private timeoutId: ReturnType<typeof setTimeout> | null = null;\n\n ngAfterViewInit(): void {\n const elements = document.querySelectorAll<HTMLElement>(\n '.onemrva-mat-toc-anchor',\n );\n\n this.observer = new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n const id = entry.target.getAttribute('id');\n if (id) {\n if (this.timeoutId !== null) clearTimeout(this.timeoutId);\n this.timeoutId = setTimeout(() => {\n this.location.replaceState(\n this.router.url.split('#')[0] + `#${id}`,\n );\n this.activePath = id;\n this.timeoutId = null;\n }, 200);\n }\n }\n });\n },\n {\n root: null,\n threshold: 0,\n rootMargin: '-92px 0px -75% 0px',\n },\n );\n elements.forEach(el => this.observer.observe(el));\n }\n}\n","<div class=\"onemrva-mat-toc\">\n <h3 class=\"onemrva-mat-toc-title\">{{ titleKey | translate }}</h3>\n\n <mat-list>\n @for (anchor of toc$ | async; track anchor.path) {\n <mat-list-item\n [routerLink]=\"[]\"\n [fragment]=\"anchor.path\"\n [ngClass]=\"{\n 'active-anchor': anchor.path === activePath,\n 'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,\n 'onemrva-mat-hidden-toc-anchor': anchor.directive?.hiddenInToc,\n }\"\n >\n {{ anchor.titleKey | translate }}\n @if (anchor.status === status.CHECKMARK) {\n <mat-icon class=\"mat-success\">check</mat-icon>\n }\n @if (anchor.status === status.WARNING) {\n <mat-icon class=\"anchor-warning\">priority_high</mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n</div>\n","import {\n OnInit,\n Directive,\n Input,\n HostBinding,\n AfterViewInit,\n ChangeDetectorRef,\n inject,\n} from '@angular/core';\nimport { OnemrvaMatTableOfContentService } from './onemrva-mat-table-of-content.service';\nimport { OnemrvaMatTocAnchor } from './onemrva-mat-toc-anchor.model';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ActivatedRoute } from '@angular/router';\n\n/**\n * For accessibility purpose, aria-label and will be displayed\n */\n\n@Directive({\n selector: '[onemrvaMatToc]',\n standalone: true,\n})\nexport class OnemrvaMatTableOfContentDirective\n implements OnInit, AfterViewInit\n{\n @Input()\n onemrvaMatToc!: OnemrvaMatTocAnchor;\n\n @HostBinding('attr.role')\n role = '';\n\n @HostBinding('attr.class')\n clazz = 'onemrva-mat-toc-anchor';\n\n @HostBinding('attr.id')\n id = '';\n\n @HostBinding('attr.aria-label')\n get ariaLabel() {\n return this.translateService.instant(this.onemrvaMatToc?.titleKey);\n }\n\n @Input()\n hiddenInToc = false;\n\n @HostBinding('attr.rvaonem-toc-anchor')\n get ariaToc() {\n if (\n this.onemrvaMatToc &&\n this.onemrvaMatToc.path &&\n this.onemrvaMatToc.path[0] !== '#'\n )\n return '#' + this.onemrvaMatToc?.path;\n return this.onemrvaMatToc?.path;\n }\n\n tocService = inject(OnemrvaMatTableOfContentService);\n cd = inject(ChangeDetectorRef);\n translateService = inject(TranslateService);\n route = inject(ActivatedRoute);\n\n ngOnInit(): void {\n this.tocService.addAnchor({ ...this.onemrvaMatToc, directive: this });\n\n this.id = this.onemrvaMatToc.path.slice(1, this.onemrvaMatToc.path.length);\n // console.log(' HWK this.hidden', this.hidden);\n }\n\n ngAfterViewInit(): void {\n this.cd.detectChanges();\n this.route.fragment.subscribe(fragment => {\n const el = document.getElementById(fragment!);\n if (el) {\n el.scrollIntoView({ behavior: 'smooth' });\n }\n });\n }\n}\n","/*\n * Public API Surface of mat-summary-stepper\n */\n\nexport * from './src/onemrva-mat-table-of-content.component';\nexport * from './src/onemrva-mat-table-of-content.directive';\nexport * from './src/onemrva-mat-table-of-content.service';\nexport * from './src/onemrva-mat-toc-anchor.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,yBAAyB,EAAA;AACnC,IAAA,yBAAA,CAAA,yBAAA,CAAA,WAAA,CAAA,GAAA,CAAA,CAAA,GAAA,WAAS;AACT,IAAA,yBAAA,CAAA,yBAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAO;AACT,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,GAAA,EAAA,CAAA,CAAA;IAKzB;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAO;AACP,IAAA,wBAAA,CAAA,wBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAU;AACZ,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;;MCIvB,+BAA+B,CAAA;AAD5C,IAAA,WAAA,GAAA;QAEU,IAAA,CAAA,IAAI,GAAkB,EAAE;AACxB,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,eAAe,CAAgB,EAAE,CAAC;AACtD,QAAA,IAAA,CAAA,IAAI,GAA8B,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;AAsC5D,IAAA;AApCC,IAAA,SAAS,CAAC,MAA2B,EAAA;AACnC,QAAA,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;AACjB,YAAA,MAAM,CAAC,KAAK,GAAG,wBAA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WAAW;uBAAC,iBAAiB;;sBAK7B;;sBAGA,WAAW;uBAAC,yBAAyB;;;AC7CxC;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-table-of-content.mjs","sources":["../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.html","../../../../projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts","../../../../projects/onemrva/design-system/mat-table-of-content/index.ts","../../../../projects/onemrva/design-system/mat-table-of-content/onemrvapublic-design-system-mat-table-of-content.ts"],"sourcesContent":["export enum OnemrvaMatTocAnchorStatus {\n CHECKMARK,\n WARNING,\n}\n\nexport enum OnemrvaMatTocAnchorLevel {\n SECTION,\n SUBSECTION,\n}\n\nexport interface OnemrvaMatTocAnchor {\n tocName: string;\n titleKey: string;\n path: string;\n order?: number; // You can manually set the order of your links\n status?: OnemrvaMatTocAnchorStatus; // checkmarck add a checkmark icon at the end of the line. Warning adds an exclamation mark\n level?: OnemrvaMatTocAnchorLevel; // Section level by default\n hidden?: boolean;\n directive?: any;\n}\n\nexport type OnemrvaMatToc = Record<string, OnemrvaMatTocAnchor[]>;\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport {\n OnemrvaMatTocAnchor,\n OnemrvaMatToc,\n OnemrvaMatTocAnchorLevel,\n} from './onemrva-mat-toc-anchor.model';\n\n@Injectable()\nexport class OnemrvaMatTableOfContentService {\n private _toc: OnemrvaMatToc = {};\n private _toc$ = new BehaviorSubject<OnemrvaMatToc>({});\n toc$: Observable<OnemrvaMatToc> = this._toc$.asObservable();\n\n addAnchor(anchor: OnemrvaMatTocAnchor) {\n if (!anchor.level) {\n anchor.level = OnemrvaMatTocAnchorLevel.SECTION;\n }\n\n if (!this._toc[anchor.tocName])\n this._toc = { ...this._toc, [anchor.tocName]: [anchor] };\n else if (\n this._toc[anchor.tocName].findIndex(a => anchor.path === a.path) < 0\n ) {\n let idx = -1;\n if (anchor.order) {\n idx = this._toc[anchor.tocName].findIndex(\n a => a.order && anchor.order! < a.order,\n );\n }\n\n const newToc = [...this._toc[anchor.tocName]];\n if (idx >= 0) {\n newToc.splice(idx, 0, anchor);\n } else {\n newToc.push(anchor);\n }\n this._toc = {\n ...this._toc,\n [anchor.tocName]: newToc,\n };\n }\n\n this._toc$.next(this._toc);\n }\n\n resetToc() {\n this._toc = {};\n this._toc$.next(this._toc);\n }\n}\n","import {\n AfterViewInit,\n Component,\n inject,\n OnDestroy,\n OnInit,\n ViewEncapsulation,\n input,\n signal,\n computed,\n} from '@angular/core';\nimport { MatListModule } from '@angular/material/list';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { OnemrvaMatTableOfContentService } from './onemrva-mat-table-of-content.service';\nimport { Observable, map, tap, Subject, takeUntil } from 'rxjs';\nimport {\n OnemrvaMatTocAnchor,\n OnemrvaMatTocAnchorLevel,\n OnemrvaMatTocAnchorStatus,\n} from './onemrva-mat-toc-anchor.model';\nimport { Location, AsyncPipe } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\n\n@Component({\n selector: 'onemrva-mat-table-of-content',\n templateUrl: 'onemrva-mat-table-of-content.component.html',\n styleUrl: 'onemrva-mat-table-of-content.component.scss',\n standalone: true,\n imports: [\n MatListModule,\n TranslateModule,\n MatIconModule,\n RouterLink,\n AsyncPipe,\n ],\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.data-cy]': 'dataCy()',\n },\n})\nexport class OnemrvaMatTableOfContentComponent\n implements OnInit, OnDestroy, AfterViewInit\n{\n // Inputs (immutable)\n readonly titleKeyIn = input<string>();\n readonly tocName = input.required<string>();\n readonly tableOfContentName = input<string>();\n readonly scrollShift = input(0);\n\n readonly dataCy = input('onemrva-mat-toc');\n\n // Internal override for titleKey\n private readonly _titleKeyOverride = signal<string | null>(null);\n\n // What the template should use\n readonly titleKey = computed(\n () => this._titleKeyOverride() ?? this.titleKeyIn(),\n );\n\n toc$!: Observable<OnemrvaMatTocAnchor[]>;\n activePath = '';\n\n private readonly destroy$ = new Subject<void>();\n\n level = OnemrvaMatTocAnchorLevel;\n status = OnemrvaMatTocAnchorStatus;\n\n private readonly location = inject(Location);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly tocService = inject(OnemrvaMatTableOfContentService);\n\n private observer!: IntersectionObserver;\n private timeoutId: ReturnType<typeof setTimeout> | null = null;\n\n ngOnInit(): void {\n this.route.fragment.pipe(takeUntil(this.destroy$)).subscribe(fragment => {\n this.activePath = fragment ?? '';\n });\n\n this.toc$ = this.tocService.toc$.pipe(\n map(tocMap => {\n const toc =\n tocMap[this.tocName()]?.filter(entry => !entry.hidden) ?? [];\n return toc.map(entry => ({\n ...entry,\n path: entry.path?.startsWith('#') ? entry.path.slice(1) : entry.path,\n }));\n }),\n tap(toc => {\n if (!toc.length) {\n this._titleKeyOverride.set('tocName.notFound');\n } else {\n this._titleKeyOverride.set(null);\n this.activePath = toc[0].path;\n }\n }),\n );\n }\n\n ngAfterViewInit(): void {\n const elements = document.querySelectorAll<HTMLElement>(\n '.onemrva-mat-toc-anchor',\n );\n\n this.observer = new IntersectionObserver(\n entries => {\n for (const entry of entries) {\n if (!entry.isIntersecting) continue;\n\n const id = entry.target.getAttribute('id');\n if (!id) continue;\n\n if (this.timeoutId !== null) clearTimeout(this.timeoutId);\n\n this.timeoutId = setTimeout(() => {\n this.location.replaceState(\n this.router.url.split('#')[0] + `#${id}`,\n );\n this.activePath = id;\n this.timeoutId = null;\n }, 200);\n }\n },\n { root: null, threshold: 0, rootMargin: '-92px 0px -75% 0px' },\n );\n\n elements.forEach(el => this.observer.observe(el));\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n\n if (this.timeoutId !== null) {\n clearTimeout(this.timeoutId);\n this.timeoutId = null;\n }\n\n this.observer?.disconnect();\n this.tocService.resetToc();\n }\n}\n","<div class=\"onemrva-mat-toc\">\n <h3 class=\"onemrva-mat-toc-title\">{{ titleKey() | translate }}</h3>\n\n <mat-list>\n @for (anchor of toc$ | async; track anchor.path) {\n <mat-list-item\n [routerLink]=\"[]\"\n [fragment]=\"anchor.path\"\n [class]=\"{\n 'active-anchor': anchor.path === activePath,\n 'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,\n 'onemrva-mat-hidden-toc-anchor': anchor.directive?.hiddenInToc(),\n }\"\n >\n {{ anchor.titleKey | translate }}\n @if (anchor.status === status.CHECKMARK) {\n <mat-icon class=\"mat-success\">check</mat-icon>\n }\n @if (anchor.status === status.WARNING) {\n <mat-icon class=\"anchor-warning\">priority_high</mat-icon>\n }\n </mat-list-item>\n }\n </mat-list>\n</div>\n","import {\n OnInit,\n Directive,\n AfterViewInit,\n ChangeDetectorRef,\n inject,\n input,\n computed,\n signal,\n} from '@angular/core';\nimport { OnemrvaMatTableOfContentService } from './onemrva-mat-table-of-content.service';\nimport { OnemrvaMatTocAnchor } from './onemrva-mat-toc-anchor.model';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ActivatedRoute } from '@angular/router';\n\n/**\n * For accessibility purpose, aria-label and will be displayed\n */\n\n@Directive({\n selector: '[onemrvaMatToc]',\n standalone: true,\n host: {\n '[attr.role]': 'role()',\n '[attr.class]': 'clazz()',\n '[attr.id]': 'id()',\n '[attr.aria-label]': '_ariaLabel()',\n '[attr.rvaonem-toc-anchor]': '_ariaToc()',\n },\n})\nexport class OnemrvaMatTableOfContentDirective\n implements OnInit, AfterViewInit\n{\n readonly onemrvaMatToc = input.required<OnemrvaMatTocAnchor>();\n\n readonly role = signal('');\n readonly clazz = signal('onemrva-mat-toc-anchor');\n readonly id = signal('');\n\n readonly _ariaLabel = computed(() =>\n this.translateService.instant(this.onemrvaMatToc()?.titleKey),\n );\n\n readonly hiddenInToc = input(false);\n\n readonly _ariaToc = computed(() => {\n const onemrvaMatToc = this.onemrvaMatToc();\n if (onemrvaMatToc && onemrvaMatToc.path && onemrvaMatToc.path[0] !== '#')\n return '#' + onemrvaMatToc?.path;\n return onemrvaMatToc?.path;\n });\n\n tocService = inject(OnemrvaMatTableOfContentService);\n cd = inject(ChangeDetectorRef);\n translateService = inject(TranslateService);\n route = inject(ActivatedRoute);\n\n ngOnInit(): void {\n const onemrvaMatToc = this.onemrvaMatToc();\n this.tocService.addAnchor({ ...onemrvaMatToc, directive: this });\n\n this.id.set(onemrvaMatToc.path.slice(1, onemrvaMatToc.path.length));\n // console.log(' HWK this.hidden', this.hidden);\n }\n\n ngAfterViewInit(): void {\n this.cd.detectChanges();\n this.route.fragment.subscribe(fragment => {\n const el = document.getElementById(fragment!);\n if (el) {\n el.scrollIntoView({ behavior: 'smooth' });\n }\n });\n }\n}\n","/*\n * Public API Surface of mat-summary-stepper\n */\n\nexport * from './src/onemrva-mat-table-of-content.component';\nexport * from './src/onemrva-mat-table-of-content.directive';\nexport * from './src/onemrva-mat-table-of-content.service';\nexport * from './src/onemrva-mat-toc-anchor.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,yBAAyB,EAAA;AACnC,IAAA,yBAAA,CAAA,yBAAA,CAAA,WAAA,CAAA,GAAA,CAAA,CAAA,GAAA,WAAS;AACT,IAAA,yBAAA,CAAA,yBAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAO;AACT,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,GAAA,EAAA,CAAA,CAAA;IAKzB;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,wBAAA,CAAA,SAAA,CAAA,GAAA,CAAA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