@onemrvapublic/design-system 19.4.0-alpha.9 → 20.0.0-develop.1

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 (325) hide show
  1. package/address/index.d.ts +8 -0
  2. package/address/src/address.scss +0 -0
  3. package/fesm2022/onemrvapublic-design-system-address.mjs +22 -0
  4. package/fesm2022/onemrvapublic-design-system-address.mjs.map +1 -0
  5. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +10 -9
  6. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
  7. package/fesm2022/onemrvapublic-design-system-layout.mjs +125 -141
  8. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  9. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +119 -118
  10. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
  11. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +37 -32
  12. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
  13. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +30 -24
  14. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
  15. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +43 -5
  16. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
  17. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +14 -16
  18. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
  19. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +33 -0
  20. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -0
  21. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +30 -29
  22. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
  23. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +10 -10
  24. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
  25. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +92 -106
  26. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
  27. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +18 -15
  28. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
  29. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +43 -48
  30. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  31. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +17 -17
  32. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  33. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +15 -15
  34. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  35. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +26 -36
  36. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  37. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +18 -18
  38. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  39. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +18 -8
  40. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
  41. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +20 -26
  42. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  43. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +11 -13
  44. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  45. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +40 -42
  46. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  47. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +29 -29
  48. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
  49. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +19 -19
  50. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
  51. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
  52. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
  53. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +36 -56
  54. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  55. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +11 -11
  56. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  57. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +14 -15
  58. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
  59. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +9 -9
  60. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
  61. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +16 -16
  62. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
  63. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +35 -17
  64. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
  65. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +8 -8
  66. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
  67. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +35 -36
  68. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
  69. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +33 -33
  70. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
  71. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +75 -96
  72. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
  73. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +13 -16
  74. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
  75. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +17 -17
  76. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
  77. package/fesm2022/onemrvapublic-design-system-page-error.mjs +18 -18
  78. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
  79. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +25 -31
  80. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
  81. package/fesm2022/onemrvapublic-design-system-shared.mjs +207 -187
  82. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  83. package/fesm2022/onemrvapublic-design-system.mjs +10269 -3
  84. package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
  85. package/flag-icon/index.d.ts +18 -1
  86. package/index.d.ts +3063 -3
  87. package/layout/index.d.ts +259 -7
  88. package/mat-avatar/index.d.ts +248 -2
  89. package/mat-avatar/src/onemrva-mat-avatar.component.scss +48 -11
  90. package/mat-breadcrumb/index.d.ts +40 -3
  91. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +7 -11
  92. package/mat-carousel/index.d.ts +52 -2
  93. package/mat-carousel/src/onemrva-mat-carousel.component.scss +4 -3
  94. package/mat-choice-chip/index.d.ts +19 -1
  95. package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +10 -2
  96. package/mat-copy-to-clipboard/index.d.ts +26 -1
  97. package/mat-country-item/index.d.ts +10 -0
  98. package/mat-datepicker-header/index.d.ts +44 -1
  99. package/mat-empty-row/index.d.ts +19 -1
  100. package/mat-file-upload/index.d.ts +301 -8
  101. package/mat-input-address/index.d.ts +31 -1
  102. package/mat-input-birthplace/index.d.ts +36 -1
  103. package/mat-input-country/index.d.ts +30 -1
  104. package/mat-input-country/src/onemrva-mat-input-country.component.scss +1 -1
  105. package/mat-input-enterprise-number/index.d.ts +37 -1
  106. package/mat-input-iban/index.d.ts +79 -1
  107. package/mat-input-phone/index.d.ts +44 -2
  108. package/mat-message-box/index.d.ts +101 -2
  109. package/mat-multi-select/index.d.ts +57 -2
  110. package/mat-notification/index.d.ts +43 -1
  111. package/mat-paginator/index.d.ts +58 -2
  112. package/mat-panel/index.d.ts +55 -6
  113. package/mat-panel/src/onemrva-mat-panel.component.scss +34 -2
  114. package/mat-pop-over/index.d.ts +40 -4
  115. package/mat-pop-over/src/onemrva-mat-pop-over.component.scss +9 -9
  116. package/mat-progress-bar/index.d.ts +18 -1
  117. package/mat-select-search/index.d.ts +197 -3
  118. package/mat-selectable-box/index.d.ts +29 -2
  119. package/mat-side-menu/index.d.ts +33 -2
  120. package/mat-skeleton/index.d.ts +100 -3
  121. package/mat-spinner/index.d.ts +25 -3
  122. package/mat-stepper/index.d.ts +36 -2
  123. package/mat-stepper/src/onemrva-mat-stepper.scss +2 -0
  124. package/mat-sticker/index.d.ts +14 -2
  125. package/mat-sticker/src/onemrva-mat-sticker.component.scss +5 -0
  126. package/mat-table-of-content/index.d.ts +84 -4
  127. package/mat-task-list/index.d.ts +57 -5
  128. package/mat-timepicker/index.d.ts +386 -6
  129. package/mat-timepicker/src/clock/clock.component.scss +7 -6
  130. package/mat-toast/index.d.ts +30 -2
  131. package/mat-tooltip/index.d.ts +39 -4
  132. package/package.json +24 -15
  133. package/page-error/index.d.ts +34 -2
  134. package/page-not-found/index.d.ts +54 -5
  135. package/shared/index.d.ts +532 -15
  136. package/utils/index.d.ts +32 -2
  137. package/flag-icon/src/flag-icon.component.d.ts +0 -16
  138. package/layout/src/components/index.d.ts +0 -23
  139. package/layout/src/components/layout/layout.component.d.ts +0 -60
  140. package/layout/src/components/layout-after-nav/layout-after-nav.component.d.ts +0 -11
  141. package/layout/src/components/layout-content/layout-content.component.d.ts +0 -11
  142. package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.d.ts +0 -8
  143. package/layout/src/components/layout-drawer-content/layout-drawer-content.component.d.ts +0 -8
  144. package/layout/src/components/layout-drawer-title/layout-drawer-title.component.d.ts +0 -9
  145. package/layout/src/components/layout-footer/layout-footer.component.d.ts +0 -7
  146. package/layout/src/components/layout-login-menu/layout-login-menu.component.d.ts +0 -11
  147. package/layout/src/components/layout-route/layout-route.component.d.ts +0 -24
  148. package/layout/src/components/layout-sidenav/layout-sidenav.component.d.ts +0 -24
  149. package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.d.ts +0 -7
  150. package/layout/src/components/layout-subroute/layout-subroute.component.d.ts +0 -20
  151. package/layout/src/components/layout-title/layout-title.component.d.ts +0 -11
  152. package/layout/src/decorators/coerce-boolean-input.decorator.d.ts +0 -1
  153. package/layout/src/decorators/index.d.ts +0 -2
  154. package/layout/src/decorators/observable-content.decorator.d.ts +0 -1
  155. package/layout/src/directives/drawer-host.directive.d.ts +0 -14
  156. package/layout/src/directives/index.d.ts +0 -2
  157. package/layout/src/directives/striphtml.pipe.d.ts +0 -7
  158. package/layout/src/enums/environment.enum.d.ts +0 -6
  159. package/layout/src/enums/index.d.ts +0 -1
  160. package/layout/src/layout.module.d.ts +0 -32
  161. package/layout/src/models/index.d.ts +0 -2
  162. package/layout/src/models/onem-language.model.d.ts +0 -4
  163. package/layout/src/models/onemrva-profile.model.d.ts +0 -16
  164. package/layout/src/services/drawer.service.d.ts +0 -13
  165. package/layout/src/services/index.d.ts +0 -1
  166. package/mat-avatar/src/onemrva-mat-avatar.component.d.ts +0 -240
  167. package/mat-avatar/src/onemrva-mat-avatar.module.d.ts +0 -7
  168. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.d.ts +0 -11
  169. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.d.ts +0 -5
  170. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.d.ts +0 -10
  171. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.d.ts +0 -12
  172. package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.d.ts +0 -11
  173. package/mat-carousel/src/onemrva-mat-carousel.component.d.ts +0 -40
  174. package/mat-choice-chip/src/onemrva-mat-choice-chip.component.d.ts +0 -10
  175. package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.d.ts +0 -26
  176. package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.d.ts +0 -43
  177. package/mat-empty-row/src/onemrva-mat-empty-row.component.d.ts +0 -19
  178. package/mat-file-upload/src/components/index.d.ts +0 -3
  179. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.d.ts +0 -29
  180. package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.d.ts +0 -60
  181. package/mat-file-upload/src/directives/dnd.directive.d.ts +0 -11
  182. package/mat-file-upload/src/models/action-config.model.d.ts +0 -9
  183. package/mat-file-upload/src/models/progress-file.model.d.ts +0 -28
  184. package/mat-file-upload/src/onemrva-mat-file-upload-itf.store.d.ts +0 -55
  185. package/mat-file-upload/src/onemrva-mat-file-upload.module.d.ts +0 -17
  186. package/mat-file-upload/src/onemrva-mat-file-upload.service.d.ts +0 -23
  187. package/mat-file-upload/src/onemrva-mat-file-upload.store.d.ts +0 -79
  188. package/mat-input-address/src/onemrva-mat-input-address.component.d.ts +0 -28
  189. package/mat-input-birthplace/src/country-item.component.d.ts +0 -11
  190. package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.d.ts +0 -31
  191. package/mat-input-country/src/onemrva-mat-input-country.component.d.ts +0 -27
  192. package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.d.ts +0 -34
  193. package/mat-input-iban/src/onemrva-mat-input-iban.component.d.ts +0 -77
  194. package/mat-input-phone/src/onemrva-mat-input-phone.component.d.ts +0 -35
  195. package/mat-input-phone/src/phone-number.directive.d.ts +0 -6
  196. package/mat-message-box/src/onemrva-mat-message-box.component.d.ts +0 -90
  197. package/mat-message-box/src/onemrva-mat-message-box.module.d.ts +0 -7
  198. package/mat-multi-select/src/onemrva-mat-multi-select.component.d.ts +0 -48
  199. package/mat-multi-select/src/onemrva-mat-multi-select.module.d.ts +0 -7
  200. package/mat-notification/src/onemrva-mat-notification.component.d.ts +0 -40
  201. package/mat-paginator/src/onemrva-mat-paginator.component.d.ts +0 -50
  202. package/mat-paginator/src/onemrva-mat-paginator.module.d.ts +0 -7
  203. package/mat-panel/src/onemrva-mat-panel-content.component.d.ts +0 -8
  204. package/mat-panel/src/onemrva-mat-panel-icon.component.d.ts +0 -8
  205. package/mat-panel/src/onemrva-mat-panel-title-action.component.d.ts +0 -8
  206. package/mat-panel/src/onemrva-mat-panel-title.component.d.ts +0 -13
  207. package/mat-panel/src/onemrva-mat-panel.component.d.ts +0 -19
  208. package/mat-panel/src/onemrva-mat-panel.module.d.ts +0 -11
  209. package/mat-pop-over/src/onemrva-mat-pop-over-content.component.d.ts +0 -8
  210. package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.d.ts +0 -8
  211. package/mat-pop-over/src/onemrva-mat-pop-over.component.d.ts +0 -20
  212. package/mat-pop-over/src/onemrva-mat-pop-over.module.d.ts +0 -9
  213. package/mat-progress-bar/src/onemrva-mat-progress-bar.component.d.ts +0 -15
  214. package/mat-select-search/src/default-options.d.ts +0 -25
  215. package/mat-select-search/src/mat-select-no-entries-found.directive.d.ts +0 -14
  216. package/mat-select-search/src/mat-select-search-clear.directive.d.ts +0 -12
  217. package/mat-select-search/src/mat-select-search.component.d.ts +0 -141
  218. package/mat-select-search/src/mat-select-search.module.d.ts +0 -13
  219. package/mat-selectable-box/src/onemrva-mat-selectable-box.component.d.ts +0 -21
  220. package/mat-selectable-box/src/onemrva-mat-selectable-box.module.d.ts +0 -7
  221. package/mat-side-menu/src/onemrva-mat-side-menu.component.d.ts +0 -24
  222. package/mat-side-menu/src/onemrva-mat-side-menu.module.d.ts +0 -7
  223. package/mat-skeleton/src/onemrva-mat-skeleton-enums.d.ts +0 -21
  224. package/mat-skeleton/src/onemrva-mat-skeleton.component.d.ts +0 -69
  225. package/mat-skeleton/src/onemrva-mat-skeleton.module.d.ts +0 -7
  226. package/mat-spinner/src/onemrva-mat-loading.directive.d.ts +0 -12
  227. package/mat-spinner/src/onemrva-mat-spinner.component.d.ts +0 -5
  228. package/mat-spinner/src/onemrva-mat-spinner.module.d.ts +0 -8
  229. package/mat-stepper/src/_stepper-variables.scss +0 -29
  230. package/mat-stepper/src/onemrva-mat-stepper.component.d.ts +0 -21
  231. package/mat-stepper/src/onemrva-mat-stepper.module.d.ts +0 -8
  232. package/mat-stepper/src/onemrva-stepper-animations.d.ts +0 -16
  233. package/mat-sticker/src/onemrva-mat-sticker.component.d.ts +0 -5
  234. package/mat-sticker/src/onemrva-mat-sticker.module.d.ts +0 -7
  235. package/mat-table-of-content/src/onemrva-mat-table-of-content.component.d.ts +0 -31
  236. package/mat-table-of-content/src/onemrva-mat-table-of-content.directive.d.ts +0 -27
  237. package/mat-table-of-content/src/onemrva-mat-table-of-content.service.d.ts +0 -12
  238. package/mat-table-of-content/src/onemrva-mat-toc-anchor.model.d.ts +0 -19
  239. package/mat-task-list/src/onemrva-mat-task-content.component.d.ts +0 -8
  240. package/mat-task-list/src/onemrva-mat-task-list.component.d.ts +0 -13
  241. package/mat-task-list/src/onemrva-mat-task-list.module.d.ts +0 -10
  242. package/mat-task-list/src/onemrva-mat-task-title.component.d.ts +0 -11
  243. package/mat-task-list/src/onemrva-mat-task.component.d.ts +0 -25
  244. package/mat-timepicker/src/clock/clock.component.d.ts +0 -50
  245. package/mat-timepicker/src/interfaces-and-types.d.ts +0 -13
  246. package/mat-timepicker/src/onemrva-mat-timepicker.component.d.ts +0 -129
  247. package/mat-timepicker/src/onemrva-mat-timepicker.module.d.ts +0 -11
  248. package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.d.ts +0 -60
  249. package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.d.ts +0 -42
  250. package/mat-timepicker/src/timepicker.directive.d.ts +0 -102
  251. package/mat-timepicker/src/util.d.ts +0 -12
  252. package/mat-toast/src/onemrva-mat-toast.component.d.ts +0 -24
  253. package/mat-toast/src/onemrva-mat-toast.module.d.ts +0 -8
  254. package/mat-tooltip/src/onemrva-mat-tooltip.component.d.ts +0 -8
  255. package/mat-tooltip/src/onemrva-mat-tooltip.directive.d.ts +0 -24
  256. package/mat-tooltip/src/onemrva-mat-tooltip.module.d.ts +0 -8
  257. package/page-error/src/page-error-action.component.d.ts +0 -7
  258. package/page-error/src/page-error.component.d.ts +0 -27
  259. package/page-not-found/src/page-not-found-action.component.d.ts +0 -7
  260. package/page-not-found/src/page-not-found-extra.component.d.ts +0 -7
  261. package/page-not-found/src/page-not-found-invader.component.d.ts +0 -21
  262. package/page-not-found/src/page-not-found.component.d.ts +0 -17
  263. package/page-not-found/src/page-not-found.module.d.ts +0 -10
  264. package/public-api.d.ts +0 -1
  265. package/shared/src/lib/adapters/index.d.ts +0 -2
  266. package/shared/src/lib/adapters/luxon.date.adapter.d.ts +0 -50
  267. package/shared/src/lib/adapters/luxon.utils.d.ts +0 -26
  268. package/shared/src/lib/adapters/native.date.adapter.d.ts +0 -17
  269. package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.d.ts +0 -10
  270. package/shared/src/lib/components/index.d.ts +0 -1
  271. package/shared/src/lib/constants/CDNUrlModeOptions.d.ts +0 -4
  272. package/shared/src/lib/constants/cdn.d.ts +0 -2
  273. package/shared/src/lib/constants/constants.d.ts +0 -6
  274. package/shared/src/lib/constants/date.format.d.ts +0 -5
  275. package/shared/src/lib/constants/index.d.ts +0 -4
  276. package/shared/src/lib/containers/WebComponentOverlayContainer.d.ts +0 -25
  277. package/shared/src/lib/containers/index.d.ts +0 -1
  278. package/shared/src/lib/decorators/HttpCacheDecorator.d.ts +0 -28
  279. package/shared/src/lib/decorators/index.d.ts +0 -1
  280. package/shared/src/lib/directives/clipboard.directive.d.ts +0 -21
  281. package/shared/src/lib/directives/color.directive.d.ts +0 -24
  282. package/shared/src/lib/directives/date-format.directive.d.ts +0 -19
  283. package/shared/src/lib/directives/digit-only.directive.d.ts +0 -6
  284. package/shared/src/lib/directives/iconRight.directive.d.ts +0 -9
  285. package/shared/src/lib/directives/if-width-is.directive.d.ts +0 -16
  286. package/shared/src/lib/directives/index.d.ts +0 -10
  287. package/shared/src/lib/directives/mask.directive.d.ts +0 -21
  288. package/shared/src/lib/directives/mat-row-clickable.directive.d.ts +0 -12
  289. package/shared/src/lib/directives/size.directive.d.ts +0 -20
  290. package/shared/src/lib/helpers/index.d.ts +0 -1
  291. package/shared/src/lib/helpers/translation-helper.d.ts +0 -17
  292. package/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.d.ts +0 -23
  293. package/shared/src/lib/interfaces/index.d.ts +0 -1
  294. package/shared/src/lib/loaders/index.d.ts +0 -2
  295. package/shared/src/lib/loaders/onemrva-translate-cdn-loader.d.ts +0 -14
  296. package/shared/src/lib/loaders/onemrva-translate-http-loader.d.ts +0 -14
  297. package/shared/src/lib/pipes/index.d.ts +0 -2
  298. package/shared/src/lib/pipes/onemrva-bce.pipe.d.ts +0 -7
  299. package/shared/src/lib/pipes/onemrva-niss.pipe.d.ts +0 -7
  300. package/shared/src/lib/providers/index.d.ts +0 -5
  301. package/shared/src/lib/providers/onemrva.date.luxon.provider.d.ts +0 -2
  302. package/shared/src/lib/providers/onemrva.date.luxon.year.month.provider.d.ts +0 -2
  303. package/shared/src/lib/providers/onemrva.date.native.provider.d.ts +0 -2
  304. package/shared/src/lib/providers/onemrva.date.native.year.month.provider.d.ts +0 -2
  305. package/shared/src/lib/providers/onemrva.theme.provider.d.ts +0 -2
  306. package/shared/src/lib/services/cache.service.d.ts +0 -10
  307. package/shared/src/lib/services/cdn.service.d.ts +0 -30
  308. package/shared/src/lib/services/country-cdn.service.d.ts +0 -30
  309. package/shared/src/lib/services/country-lookup.service.d.ts +0 -15
  310. package/shared/src/lib/services/index.d.ts +0 -8
  311. package/shared/src/lib/services/mime-cdn.service.d.ts +0 -15
  312. package/shared/src/lib/services/onemrva-error-handler.service.d.ts +0 -12
  313. package/shared/src/lib/services/onemrva-missing-translation.service.d.ts +0 -4
  314. package/shared/src/lib/services/osm.service.d.ts +0 -45
  315. package/shared/src/lib/shared.module.d.ts +0 -14
  316. package/shared/src/lib/tokens/index.d.ts +0 -1
  317. package/shared/src/lib/tokens/lookup.token.d.ts +0 -2
  318. package/shared/src/lib/validators/bank-account.validator.utils.d.ts +0 -4
  319. package/shared/src/lib/validators/index.d.ts +0 -2
  320. package/shared/src/lib/validators/onemrva-validators.d.ts +0 -8
  321. package/utils/src/enum.utils.d.ts +0 -6
  322. package/utils/src/enums/color.enum.d.ts +0 -12
  323. package/utils/src/enums/index.d.ts +0 -2
  324. package/utils/src/enums/size.enum.d.ts +0 -10
  325. /package/{mat-input-birthplace/src/country-item.component.scss → mat-country-item/src/onemrva-mat-country-item.component.scss} +0 -0
@@ -1,31 +1,34 @@
1
1
  import { CommonModule } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { Optional, Inject, ChangeDetectionStrategy, Component } from '@angular/core';
4
- import * as i3 from '@angular/material/button';
3
+ import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import * as i1 from '@angular/material/button';
5
5
  import { MatButtonModule } from '@angular/material/button';
6
- import * as i2 from '@angular/material/core';
7
- import { MAT_DATE_FORMATS } from '@angular/material/core';
8
- import * as i4 from '@angular/material/icon';
6
+ import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
7
+ import { MatDatepickerIntl, MatCalendar } from '@angular/material/datepicker';
8
+ import * as i2 from '@angular/material/icon';
9
9
  import { MatIconModule } from '@angular/material/icon';
10
- import * as i5 from '@ngx-translate/core';
10
+ import * as i3 from '@ngx-translate/core';
11
11
  import { TranslateModule } from '@ngx-translate/core';
12
12
  import { MatTooltip } from '@angular/material/tooltip';
13
13
  import { DateTime } from 'luxon';
14
- import * as i1 from '@angular/material/datepicker';
15
14
 
16
15
  const YEARS_PER_PAGE = 24;
17
16
  let calendarHeaderId = 1;
18
17
  class OnemrvaMatDatepickerHeaderComponent {
19
- constructor(_intl, calendar, _dateAdapter, _dateFormats) {
20
- this._intl = _intl;
21
- this.calendar = calendar;
22
- this._dateAdapter = _dateAdapter;
23
- this._dateFormats = _dateFormats;
18
+ constructor() {
19
+ this._intl = inject(MatDatepickerIntl);
20
+ this.calendar = inject(MatCalendar);
21
+ this._dateAdapter = inject(DateAdapter, {
22
+ optional: true,
23
+ });
24
+ this._dateFormats = inject(MAT_DATE_FORMATS, {
25
+ optional: true,
26
+ });
24
27
  this._id = `mat-calendar-header-${calendarHeaderId++}`;
25
28
  this._periodButtonLabelId = `${this._id}-period-label`;
26
29
  }
27
30
  setToday() {
28
- if (this._dateAdapter.constructor.name.includes('Luxon')) {
31
+ if (this._dateAdapter?.constructor.name.includes('Luxon')) {
29
32
  this.calendar._goToDateInView(DateTime.now(), 'month');
30
33
  }
31
34
  else {
@@ -35,24 +38,28 @@ class OnemrvaMatDatepickerHeaderComponent {
35
38
  /** The display text for the current calendar view. */
36
39
  get periodButtonText() {
37
40
  if (this.calendar.activeDate !== null &&
38
- this.calendar.currentView == 'month') {
41
+ this.calendar.currentView == 'month' &&
42
+ this._dateAdapter &&
43
+ this._dateFormats) {
39
44
  return this._dateAdapter
40
45
  .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)
41
46
  .toLocaleUpperCase();
42
47
  }
43
- if (this.calendar.currentView == 'year') {
48
+ if (this.calendar.currentView == 'year' && this._dateAdapter) {
44
49
  return this._dateAdapter.getYearName(this.calendar.activeDate);
45
50
  }
46
51
  return this._intl.formatYearRange(...this._formatMinAndMaxYearLabels());
47
52
  }
48
53
  /** The aria description for the current calendar view. */
49
54
  get periodButtonDescription() {
50
- if (this.calendar.currentView == 'month') {
55
+ if (this.calendar.currentView == 'month' &&
56
+ this._dateFormats &&
57
+ this._dateAdapter) {
51
58
  return this._dateAdapter
52
59
  .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)
53
60
  .toLocaleUpperCase();
54
61
  }
55
- if (this.calendar.currentView == 'year') {
62
+ if (this.calendar.currentView == 'year' && this._dateAdapter) {
56
63
  return this._dateAdapter.getYearName(this.calendar.activeDate);
57
64
  }
58
65
  // Format a label for the window of years displayed in the multi-year calendar view. Use
@@ -116,7 +123,8 @@ class OnemrvaMatDatepickerHeaderComponent {
116
123
  /** Whether the two dates represent the same view in the current view mode (month or year). */
117
124
  _isSameView(date1, date2) {
118
125
  if (this.calendar.currentView == 'month') {
119
- return (this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&
126
+ return (this._dateAdapter.getYear(date1) ==
127
+ this._dateAdapter.getYear(date2) &&
120
128
  this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2));
121
129
  }
122
130
  if (this.calendar.currentView == 'year') {
@@ -142,10 +150,10 @@ class OnemrvaMatDatepickerHeaderComponent {
142
150
  const maxYearLabel = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));
143
151
  return [minYearLabel, maxYearLabel];
144
152
  }
145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatDatepickerHeaderComponent, deps: [{ token: i1.MatDatepickerIntl }, { token: i1.MatCalendar }, { token: i2.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
146
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: OnemrvaMatDatepickerHeaderComponent, isStandalone: true, selector: "onemrva-mat-datepicker-header", providers: [], ngImport: i0, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button\n mat-button\n type=\"button\"\n class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\"\n [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\"\n aria-live=\"polite\"\n >\n <span aria-hidden=\"true\">{{ periodButtonText }}</span>\n <svg\n class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\"\n focusable=\"false\"\n aria-hidden=\"true\"\n >\n <polygon points=\"0,0 5,5 10,0\" />\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!previousEnabled()\"\n (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\"\n [matTooltip]=\"'Previous Month' | translate\"\n >\n <mat-icon>keyboard_arrow_left</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"setToday()\"\n [attr.aria-label]=\"'Today' | translate\"\n [matTooltip]=\"'Today' | translate\"\n >\n <mat-icon>today</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\"\n [matTooltip]=\"'Next Month' | translate\"\n >\n <mat-icon>keyboard_arrow_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: ["a.onemrva-calendar-header-today{font-size:12px;color:var(--mat-sys-primary);text-decoration:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatDatepickerHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
154
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: OnemrvaMatDatepickerHeaderComponent, isStandalone: true, selector: "onemrva-mat-datepicker-header", providers: [], ngImport: i0, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button\n mat-button\n type=\"button\"\n class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\"\n [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\"\n aria-live=\"polite\"\n >\n <span aria-hidden=\"true\">{{ periodButtonText }}</span>\n <svg\n class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\"\n focusable=\"false\"\n aria-hidden=\"true\"\n >\n <polygon points=\"0,0 5,5 10,0\" />\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!previousEnabled()\"\n (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\"\n [matTooltip]=\"'Previous Month' | translate\"\n >\n <mat-icon>keyboard_arrow_left</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"setToday()\"\n [attr.aria-label]=\"'Today' | translate\"\n [matTooltip]=\"'Today' | translate\"\n >\n <mat-icon>today</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\"\n [matTooltip]=\"'Next Month' | translate\"\n >\n <mat-icon>keyboard_arrow_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: ["a.onemrva-calendar-header-today{font-size:12px;color:var(--mat-sys-primary);text-decoration:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
155
  }
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatDatepickerHeaderComponent, decorators: [{
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatDatepickerHeaderComponent, decorators: [{
149
157
  type: Component,
150
158
  args: [{ selector: 'onemrva-mat-datepicker-header', standalone: true, imports: [
151
159
  CommonModule,
@@ -154,14 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
154
162
  TranslateModule,
155
163
  MatTooltip,
156
164
  ], providers: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button\n mat-button\n type=\"button\"\n class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\"\n [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\"\n aria-live=\"polite\"\n >\n <span aria-hidden=\"true\">{{ periodButtonText }}</span>\n <svg\n class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\"\n focusable=\"false\"\n aria-hidden=\"true\"\n >\n <polygon points=\"0,0 5,5 10,0\" />\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!previousEnabled()\"\n (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\"\n [matTooltip]=\"'Previous Month' | translate\"\n >\n <mat-icon>keyboard_arrow_left</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"setToday()\"\n [attr.aria-label]=\"'Today' | translate\"\n [matTooltip]=\"'Today' | translate\"\n >\n <mat-icon>today</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\"\n [matTooltip]=\"'Next Month' | translate\"\n >\n <mat-icon>keyboard_arrow_right</mat-icon>\n </button>\n </div>\n</div>\n", styles: ["a.onemrva-calendar-header-today{font-size:12px;color:var(--mat-sys-primary);text-decoration:none}\n"] }]
157
- }], ctorParameters: () => [{ type: i1.MatDatepickerIntl }, { type: i1.MatCalendar }, { type: i2.DateAdapter, decorators: [{
158
- type: Optional
159
- }] }, { type: undefined, decorators: [{
160
- type: Optional
161
- }, {
162
- type: Inject,
163
- args: [MAT_DATE_FORMATS]
164
- }] }] });
165
+ }] });
165
166
  function isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {
166
167
  const year1 = dateAdapter.getYear(date1);
167
168
  const year2 = dateAdapter.getYear(date2);
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-datepicker-header.mjs","sources":["../../../../projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts","../../../../projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html","../../../../projects/onemrva/design-system/mat-datepicker-header/index.ts","../../../../projects/onemrva/design-system/mat-datepicker-header/onemrvapublic-design-system-mat-datepicker-header.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n Component,\n Inject,\n Optional,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport {\n DateAdapter,\n MAT_DATE_FORMATS,\n MatDateFormats,\n} from '@angular/material/core';\nimport { MatCalendar, MatDatepickerIntl } from '@angular/material/datepicker';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatTooltip } from '@angular/material/tooltip';\nimport { DateTime } from 'luxon';\n\nconst YEARS_PER_PAGE = 24;\nlet calendarHeaderId = 1;\n\n@Component({\n selector: 'onemrva-mat-datepicker-header',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n TranslateModule,\n MatTooltip,\n ],\n templateUrl: 'onemrva-mat-datepicker-header.component.html',\n styleUrl: 'onemrva-mat-datepicker-header.component.scss',\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OnemrvaMatDatepickerHeaderComponent<D> {\n constructor(\n private _intl: MatDatepickerIntl,\n public calendar: MatCalendar<D>,\n @Optional() private _dateAdapter: DateAdapter<D>,\n @Optional()\n @Inject(MAT_DATE_FORMATS)\n private _dateFormats: MatDateFormats,\n ) {}\n\n setToday() {\n if (this._dateAdapter.constructor.name.includes('Luxon')) {\n (this.calendar as unknown as MatCalendar<DateTime>)._goToDateInView(\n DateTime.now(),\n 'month',\n );\n } else {\n (this.calendar as unknown as MatCalendar<Date>)._goToDateInView(\n new Date(),\n 'month',\n );\n }\n }\n\n /** The display text for the current calendar view. */\n get periodButtonText(): string {\n if (\n this.calendar.activeDate !== null &&\n this.calendar.currentView == 'month'\n ) {\n return this._dateAdapter\n .format(\n this.calendar.activeDate,\n this._dateFormats.display.monthYearLabel,\n )\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n\n return this._intl.formatYearRange(...this._formatMinAndMaxYearLabels());\n }\n\n /** The aria description for the current calendar view. */\n get periodButtonDescription(): string {\n if (this.calendar.currentView == 'month') {\n return this._dateAdapter\n .format(\n this.calendar.activeDate,\n this._dateFormats.display.monthYearLabel,\n )\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n\n // Format a label for the window of years displayed in the multi-year calendar view. Use\n // `formatYearRangeLabel` because it is TTS friendly.\n return this._intl.formatYearRangeLabel(\n ...this._formatMinAndMaxYearLabels(),\n );\n }\n\n /** The `aria-label` for changing the calendar view. */\n get periodButtonLabel(): string {\n return this.calendar.currentView == 'month'\n ? this._intl.switchToMultiYearViewLabel\n : this._intl.switchToMonthViewLabel;\n }\n\n /** The label for the previous button. */\n get prevButtonLabel(): string {\n return {\n month: this._intl.prevMonthLabel,\n year: this._intl.prevYearLabel,\n 'multi-year': this._intl.prevMultiYearLabel,\n }[this.calendar.currentView];\n }\n\n /** The label for the next button. */\n get nextButtonLabel(): string {\n return {\n month: this._intl.nextMonthLabel,\n year: this._intl.nextYearLabel,\n 'multi-year': this._intl.nextMultiYearLabel,\n }[this.calendar.currentView];\n }\n\n /** Handles user clicks on the period label. */\n currentPeriodClicked(): void {\n this.calendar.currentView =\n this.calendar.currentView == 'month' ? 'multi-year' : 'month';\n }\n\n /** Handles user clicks on the previous button. */\n previousClicked(): void {\n this.calendar.activeDate =\n this.calendar.currentView == 'month'\n ? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1)\n : this._dateAdapter.addCalendarYears(\n this.calendar.activeDate,\n this.calendar.currentView == 'year' ? -1 : -YEARS_PER_PAGE,\n );\n }\n\n /** Handles user clicks on the next button. */\n nextClicked(): void {\n this.calendar.activeDate =\n this.calendar.currentView == 'month'\n ? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1)\n : this._dateAdapter.addCalendarYears(\n this.calendar.activeDate,\n this.calendar.currentView == 'year' ? 1 : YEARS_PER_PAGE,\n );\n }\n\n /** Whether the previous period button is enabled. */\n previousEnabled(): boolean {\n if (!this.calendar.minDate) {\n return true;\n }\n return (\n !this.calendar.minDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.minDate)\n );\n }\n\n /** Whether the next period button is enabled. */\n nextEnabled(): boolean {\n return (\n !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate)\n );\n }\n\n /** Whether the two dates represent the same view in the current view mode (month or year). */\n private _isSameView(date1: D, date2: D): boolean {\n if (this.calendar.currentView == 'month') {\n return (\n this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&\n this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2)\n );\n }\n if (this.calendar.currentView == 'year') {\n return (\n this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2)\n );\n }\n // Otherwise we are in 'multi-year' view.\n return isSameMultiYearView(\n this._dateAdapter,\n date1,\n date2,\n this.calendar.minDate,\n this.calendar.maxDate,\n );\n }\n\n /**\n * Format two individual labels for the minimum year and maximum year available in the multi-year\n * calendar view. Returns an array of two strings where the first string is the formatted label\n * for the minimum year, and the second string is the formatted label for the maximum year.\n */\n private _formatMinAndMaxYearLabels(): [\n minYearLabel: string,\n maxYearLabel: string,\n ] {\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view, and the last year is\n // just yearsPerPage - 1 away.\n const activeYear = this._dateAdapter.getYear(this.calendar.activeDate);\n const minYearOfPage =\n activeYear -\n getActiveOffset(\n this._dateAdapter,\n this.calendar.activeDate,\n this.calendar.minDate,\n this.calendar.maxDate,\n );\n const maxYearOfPage = minYearOfPage + YEARS_PER_PAGE - 1;\n const minYearLabel = this._dateAdapter.getYearName(\n this._dateAdapter.createDate(minYearOfPage, 0, 1),\n );\n const maxYearLabel = this._dateAdapter.getYearName(\n this._dateAdapter.createDate(maxYearOfPage, 0, 1),\n );\n\n return [minYearLabel, maxYearLabel];\n }\n\n private _id = `mat-calendar-header-${calendarHeaderId++}`;\n\n _periodButtonLabelId = `${this._id}-period-label`;\n}\n\nfunction isSameMultiYearView<D>(\n dateAdapter: DateAdapter<D>,\n date1: D,\n date2: D,\n minDate: D | null,\n maxDate: D | null,\n): boolean {\n const year1 = dateAdapter.getYear(date1);\n const year2 = dateAdapter.getYear(date2);\n const startingYear = getStartingYear(dateAdapter, minDate, maxDate);\n return (\n Math.floor((year1 - startingYear) / YEARS_PER_PAGE) ===\n Math.floor((year2 - startingYear) / YEARS_PER_PAGE)\n );\n}\n\n/**\n * We pick a \"starting\" year such that either the maximum year would be at the end\n * or the minimum year would be at the beginning of a page.\n */\nfunction getStartingYear<D>(\n dateAdapter: DateAdapter<D>,\n minDate: D | null,\n maxDate: D | null,\n): number {\n let startingYear = 0;\n if (maxDate) {\n const maxYear = dateAdapter.getYear(maxDate);\n startingYear = maxYear - YEARS_PER_PAGE + 1;\n } else if (minDate) {\n startingYear = dateAdapter.getYear(minDate);\n }\n return startingYear;\n}\n\n/**\n * When the multi-year view is first opened, the active year will be in view.\n * So we compute how many years are between the active year and the *slot* where our\n * \"startingYear\" will render when paged into view.\n */\nfunction getActiveOffset<D>(\n dateAdapter: DateAdapter<D>,\n activeDate: D,\n minDate: D | null,\n maxDate: D | null,\n): number {\n const activeYear = dateAdapter.getYear(activeDate);\n return euclideanModulo(\n activeYear - getStartingYear(dateAdapter, minDate, maxDate),\n YEARS_PER_PAGE,\n );\n}\n\n/** Gets remainder that is non-negative, even if first number is negative */\nfunction euclideanModulo(a: number, b: number): number {\n return ((a % b) + b) % b;\n}\n","<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button\n mat-button\n type=\"button\"\n class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\"\n [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\"\n aria-live=\"polite\"\n >\n <span aria-hidden=\"true\">{{ periodButtonText }}</span>\n <svg\n class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\"\n focusable=\"false\"\n aria-hidden=\"true\"\n >\n <polygon points=\"0,0 5,5 10,0\" />\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!previousEnabled()\"\n (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\"\n [matTooltip]=\"'Previous Month' | translate\"\n >\n <mat-icon>keyboard_arrow_left</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"setToday()\"\n [attr.aria-label]=\"'Today' | translate\"\n [matTooltip]=\"'Today' | translate\"\n >\n <mat-icon>today</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\"\n [matTooltip]=\"'Next Month' | translate\"\n >\n <mat-icon>keyboard_arrow_right</mat-icon>\n </button>\n </div>\n</div>\n","/*\n * Public API Surface of mat-file upload\n */\n\nexport * from './src/onemrva-mat-datepicker-header.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAM,cAAc,GAAG,EAAE;AACzB,IAAI,gBAAgB,GAAG,CAAC;MAiBX,mCAAmC,CAAA;AAC9C,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AAG,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC;AACnE,IAAA,QACE,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,YAAY,IAAI,cAAc,CAAC;AACnD,QAAA,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,YAAY,IAAI,cAAc,CAAC;AAEvD;AAEA;;;AAGG;AACH,SAAS,eAAe,CACtB,WAA2B,EAC3B,OAAiB,EACjB,OAAiB,EAAA;IAEjB,IAAI,YAAY,GAAG,CAAC;IACpB,IAAI,OAAO,EAAE;QACX,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;AAC5C,QAAA,YAAY,GAAG,OAAO,GAAG,cAAc,GAAG,CAAC;;SACtC,IAAI,OAAO,EAAE;AAClB,QAAA,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;;AAE7C,IAAA,OAAO,YAAY;AACrB;AAEA;;;;AAIG;AACH,SAAS,eAAe,CACtB,WAA2B,EAC3B,UAAa,EACb,OAAiB,EACjB,OAAiB,EAAA;IAEjB,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC;AAClD,IAAA,OAAO,eAAe,CACpB,UAAU,GAAG,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,EAC3D,cAAc,CACf;AACH;AAEA;AACA,SAAS,eAAe,CAAC,CAAS,EAAE,CAAS,EAAA;IAC3C,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;AAC1B;;AElSA;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-datepicker-header.mjs","sources":["../../../../projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts","../../../../projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html","../../../../projects/onemrva/design-system/mat-datepicker-header/index.ts","../../../../projects/onemrva/design-system/mat-datepicker-header/onemrvapublic-design-system-mat-datepicker-header.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, ChangeDetectionStrategy, inject } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport {\n DateAdapter,\n MAT_DATE_FORMATS,\n MatDateFormats,\n} from '@angular/material/core';\nimport { MatCalendar, MatDatepickerIntl } from '@angular/material/datepicker';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatTooltip } from '@angular/material/tooltip';\nimport { DateTime } from 'luxon';\n\nconst YEARS_PER_PAGE = 24;\nlet calendarHeaderId = 1;\n\n@Component({\n selector: 'onemrva-mat-datepicker-header',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n MatIconModule,\n TranslateModule,\n MatTooltip,\n ],\n templateUrl: 'onemrva-mat-datepicker-header.component.html',\n styleUrl: 'onemrva-mat-datepicker-header.component.scss',\n providers: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OnemrvaMatDatepickerHeaderComponent<D> {\n private _intl = inject(MatDatepickerIntl);\n calendar = inject<MatCalendar<D>>(MatCalendar);\n private _dateAdapter = inject<DateAdapter<D>>(DateAdapter, {\n optional: true,\n });\n private _dateFormats = inject<MatDateFormats>(MAT_DATE_FORMATS, {\n optional: true,\n });\n\n setToday() {\n if (this._dateAdapter?.constructor.name.includes('Luxon')) {\n (this.calendar as unknown as MatCalendar<DateTime>)._goToDateInView(\n DateTime.now(),\n 'month',\n );\n } else {\n (this.calendar as unknown as MatCalendar<Date>)._goToDateInView(\n new Date(),\n 'month',\n );\n }\n }\n\n /** The display text for the current calendar view. */\n get periodButtonText(): string {\n if (\n this.calendar.activeDate !== null &&\n this.calendar.currentView == 'month' &&\n this._dateAdapter &&\n this._dateFormats\n ) {\n return this._dateAdapter\n .format(\n this.calendar.activeDate,\n this._dateFormats.display.monthYearLabel,\n )\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year' && this._dateAdapter) {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n\n return this._intl.formatYearRange(...this._formatMinAndMaxYearLabels());\n }\n\n /** The aria description for the current calendar view. */\n get periodButtonDescription(): string {\n if (\n this.calendar.currentView == 'month' &&\n this._dateFormats &&\n this._dateAdapter\n ) {\n return this._dateAdapter\n .format(\n this.calendar.activeDate,\n this._dateFormats.display.monthYearLabel,\n )\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year' && this._dateAdapter) {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n\n // Format a label for the window of years displayed in the multi-year calendar view. Use\n // `formatYearRangeLabel` because it is TTS friendly.\n return this._intl.formatYearRangeLabel(\n ...this._formatMinAndMaxYearLabels(),\n );\n }\n\n /** The `aria-label` for changing the calendar view. */\n get periodButtonLabel(): string {\n return this.calendar.currentView == 'month'\n ? this._intl.switchToMultiYearViewLabel\n : this._intl.switchToMonthViewLabel;\n }\n\n /** The label for the previous button. */\n get prevButtonLabel(): string {\n return {\n month: this._intl.prevMonthLabel,\n year: this._intl.prevYearLabel,\n 'multi-year': this._intl.prevMultiYearLabel,\n }[this.calendar.currentView];\n }\n\n /** The label for the next button. */\n get nextButtonLabel(): string {\n return {\n month: this._intl.nextMonthLabel,\n year: this._intl.nextYearLabel,\n 'multi-year': this._intl.nextMultiYearLabel,\n }[this.calendar.currentView];\n }\n\n /** Handles user clicks on the period label. */\n currentPeriodClicked(): void {\n this.calendar.currentView =\n this.calendar.currentView == 'month' ? 'multi-year' : 'month';\n }\n\n /** Handles user clicks on the previous button. */\n previousClicked(): void {\n this.calendar.activeDate =\n this.calendar.currentView == 'month'\n ? this._dateAdapter!.addCalendarMonths(this.calendar.activeDate, -1)\n : this._dateAdapter!.addCalendarYears(\n this.calendar.activeDate,\n this.calendar.currentView == 'year' ? -1 : -YEARS_PER_PAGE,\n );\n }\n\n /** Handles user clicks on the next button. */\n nextClicked(): void {\n this.calendar.activeDate =\n this.calendar.currentView == 'month'\n ? this._dateAdapter!.addCalendarMonths(this.calendar.activeDate, 1)\n : this._dateAdapter!.addCalendarYears(\n this.calendar.activeDate,\n this.calendar.currentView == 'year' ? 1 : YEARS_PER_PAGE,\n );\n }\n\n /** Whether the previous period button is enabled. */\n previousEnabled(): boolean {\n if (!this.calendar.minDate) {\n return true;\n }\n return (\n !this.calendar.minDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.minDate)\n );\n }\n\n /** Whether the next period button is enabled. */\n nextEnabled(): boolean {\n return (\n !this.calendar.maxDate ||\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate)\n );\n }\n\n /** Whether the two dates represent the same view in the current view mode (month or year). */\n private _isSameView(date1: D, date2: D): boolean {\n if (this.calendar.currentView == 'month') {\n return (\n this._dateAdapter!.getYear(date1) ==\n this._dateAdapter!.getYear(date2) &&\n this._dateAdapter!.getMonth(date1) == this._dateAdapter!.getMonth(date2)\n );\n }\n if (this.calendar.currentView == 'year') {\n return (\n this._dateAdapter!.getYear(date1) == this._dateAdapter!.getYear(date2)\n );\n }\n // Otherwise we are in 'multi-year' view.\n return isSameMultiYearView(\n this._dateAdapter!,\n date1,\n date2,\n this.calendar.minDate,\n this.calendar.maxDate,\n );\n }\n\n /**\n * Format two individual labels for the minimum year and maximum year available in the multi-year\n * calendar view. Returns an array of two strings where the first string is the formatted label\n * for the minimum year, and the second string is the formatted label for the maximum year.\n */\n private _formatMinAndMaxYearLabels(): [\n minYearLabel: string,\n maxYearLabel: string,\n ] {\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view, and the last year is\n // just yearsPerPage - 1 away.\n const activeYear = this._dateAdapter!.getYear(this.calendar.activeDate);\n const minYearOfPage =\n activeYear -\n getActiveOffset(\n this._dateAdapter!,\n this.calendar.activeDate,\n this.calendar.minDate,\n this.calendar.maxDate,\n );\n const maxYearOfPage = minYearOfPage + YEARS_PER_PAGE - 1;\n const minYearLabel = this._dateAdapter!.getYearName(\n this._dateAdapter!.createDate(minYearOfPage, 0, 1),\n );\n const maxYearLabel = this._dateAdapter!.getYearName(\n this._dateAdapter!.createDate(maxYearOfPage, 0, 1),\n );\n\n return [minYearLabel, maxYearLabel];\n }\n\n private _id = `mat-calendar-header-${calendarHeaderId++}`;\n\n _periodButtonLabelId = `${this._id}-period-label`;\n}\n\nfunction isSameMultiYearView<D>(\n dateAdapter: DateAdapter<D>,\n date1: D,\n date2: D,\n minDate: D | null,\n maxDate: D | null,\n): boolean {\n const year1 = dateAdapter.getYear(date1);\n const year2 = dateAdapter.getYear(date2);\n const startingYear = getStartingYear(dateAdapter, minDate, maxDate);\n return (\n Math.floor((year1 - startingYear) / YEARS_PER_PAGE) ===\n Math.floor((year2 - startingYear) / YEARS_PER_PAGE)\n );\n}\n\n/**\n * We pick a \"starting\" year such that either the maximum year would be at the end\n * or the minimum year would be at the beginning of a page.\n */\nfunction getStartingYear<D>(\n dateAdapter: DateAdapter<D>,\n minDate: D | null,\n maxDate: D | null,\n): number {\n let startingYear = 0;\n if (maxDate) {\n const maxYear = dateAdapter.getYear(maxDate);\n startingYear = maxYear - YEARS_PER_PAGE + 1;\n } else if (minDate) {\n startingYear = dateAdapter.getYear(minDate);\n }\n return startingYear;\n}\n\n/**\n * When the multi-year view is first opened, the active year will be in view.\n * So we compute how many years are between the active year and the *slot* where our\n * \"startingYear\" will render when paged into view.\n */\nfunction getActiveOffset<D>(\n dateAdapter: DateAdapter<D>,\n activeDate: D,\n minDate: D | null,\n maxDate: D | null,\n): number {\n const activeYear = dateAdapter.getYear(activeDate);\n return euclideanModulo(\n activeYear - getStartingYear(dateAdapter, minDate, maxDate),\n YEARS_PER_PAGE,\n );\n}\n\n/** Gets remainder that is non-negative, even if first number is negative */\nfunction euclideanModulo(a: number, b: number): number {\n return ((a % b) + b) % b;\n}\n","<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button\n mat-button\n type=\"button\"\n class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\"\n [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_periodButtonLabelId\"\n aria-live=\"polite\"\n >\n <span aria-hidden=\"true\">{{ periodButtonText }}</span>\n <svg\n class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"\n viewBox=\"0 0 10 5\"\n focusable=\"false\"\n aria-hidden=\"true\"\n >\n <polygon points=\"0,0 5,5 10,0\" />\n </svg>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!previousEnabled()\"\n (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\"\n [matTooltip]=\"'Previous Month' | translate\"\n >\n <mat-icon>keyboard_arrow_left</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"setToday()\"\n [attr.aria-label]=\"'Today' | translate\"\n [matTooltip]=\"'Today' | translate\"\n >\n <mat-icon>today</mat-icon>\n </button>\n\n <button\n mat-icon-button\n type=\"button\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\"\n [matTooltip]=\"'Next Month' | translate\"\n >\n <mat-icon>keyboard_arrow_right</mat-icon>\n </button>\n </div>\n</div>\n","/*\n * Public API Surface of mat-file upload\n */\n\nexport * from './src/onemrva-mat-datepicker-header.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,cAAc,GAAG,EAAE;AACzB,IAAI,gBAAgB,GAAG,CAAC;MAiBX,mCAAmC,CAAA;AAfhD,IAAA,WAAA,GAAA;AAgBU,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACzC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAiB,WAAW,CAAC;AACtC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM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AW,EAAE,OAAO,EAAE,OAAO,CAAC;AACnE,IAAA,QACE,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,YAAY,IAAI,cAAc,CAAC;AACnD,QAAA,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,YAAY,IAAI,cAAc,CAAC;AAEvD;AAEA;;;AAGG;AACH,SAAS,eAAe,CACtB,WAA2B,EAC3B,OAAiB,EACjB,OAAiB,EAAA;IAEjB,IAAI,YAAY,GAAG,CAAC;IACpB,IAAI,OAAO,EAAE;QACX,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;AAC5C,QAAA,YAAY,GAAG,OAAO,GAAG,cAAc,GAAG,CAAC;;SACtC,IAAI,OAAO,EAAE;AAClB,QAAA,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;;AAE7C,IAAA,OAAO,YAAY;AACrB;AAEA;;;;AAIG;AACH,SAAS,eAAe,CACtB,WAA2B,EAC3B,UAAa,EACb,OAAiB,EACjB,OAAiB,EAAA;IAEjB,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC;AAClD,IAAA,OAAO,eAAe,CACpB,UAAU,GAAG,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,EAC3D,cAAc,CACf;AACH;AAEA;AACA,SAAS,eAAe,CAAC,CAAS,EAAE,CAAS,EAAA;IAC3C,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;AAC1B;;AEpSA;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,30 +1,30 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Output, Input, ViewEncapsulation, Component } from '@angular/core';
2
+ import { inject, EventEmitter, Output, Input, ViewEncapsulation, Component } from '@angular/core';
3
+ import { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';
4
+ import { TranslateService } from '@ngx-translate/core';
3
5
  import { MatButton } from '@angular/material/button';
4
6
  import { NgOptimizedImage } from '@angular/common';
5
- import * as i1 from '@onemrvapublic/design-system/shared';
6
- import * as i2 from '@ngx-translate/core';
7
7
 
8
8
  /**
9
9
  *
10
10
  */
11
11
  class OnemrvaMatEmptyRowComponent {
12
- constructor(cdn, translate) {
13
- this.cdn = cdn;
14
- this.translate = translate;
12
+ constructor() {
13
+ this.cdn = inject(OnemRvaCDNService);
14
+ this.translate = inject(TranslateService);
15
15
  this.noresultimg = this.cdn.getOri('wordless.svg');
16
16
  this.buttonText = this.translate.instant('Reset filters');
17
17
  this.text = this.translate.instant('Sorry, there is no results for this search.');
18
18
  this.imageAlt = this.translate.instant('Ori is wordless');
19
19
  this.clear = new EventEmitter();
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatEmptyRowComponent, deps: [{ token: i1.OnemRvaCDNService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: OnemrvaMatEmptyRowComponent, isStandalone: true, selector: "onemrva-mat-empty-row", inputs: { buttonText: "buttonText", text: "text", imageAlt: "imageAlt" }, outputs: { clear: "clear" }, ngImport: i0, template: "<span class=\"img\">\n <img [ngSrc]=\"noresultimg\" alt=\"{{ imageAlt }}\" fill priority />\n</span>\n<span class=\"text\">\n {{ text }}\n <ng-content></ng-content>\n</span>\n<button mat-stroked-button (click)=\"clear.emit()\">{{ buttonText }}</button>\n", styles: ["onemrva-mat-empty-row{display:grid;grid-template-columns:repeat(6,1FR);grid-template-rows:repeat(2,1FR);justify-items:center;gap:15px}onemrva-mat-empty-row span.img{grid-area:1/1/3/2;display:block;min-width:80px;min-height:80px;height:10vw;width:10vw;margin:32px;position:relative;float:left}onemrva-mat-empty-row span.text{grid-area:1/2/2/7;justify-self:start;align-self:end}onemrva-mat-empty-row button{grid-area:2/2/3/7;justify-self:start;align-self:start}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }], encapsulation: i0.ViewEncapsulation.None }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatEmptyRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: OnemrvaMatEmptyRowComponent, isStandalone: true, selector: "onemrva-mat-empty-row", inputs: { buttonText: "buttonText", text: "text", imageAlt: "imageAlt" }, outputs: { clear: "clear" }, ngImport: i0, template: "<span class=\"img\">\n <img [ngSrc]=\"noresultimg\" alt=\"{{ imageAlt }}\" fill priority />\n</span>\n<span class=\"text\">\n {{ text }}\n <ng-content></ng-content>\n</span>\n<button mat-stroked-button (click)=\"clear.emit()\">{{ buttonText }}</button>\n", styles: ["onemrva-mat-empty-row{display:grid;grid-template-columns:repeat(6,1FR);grid-template-rows:repeat(2,1FR);justify-items:center;gap:15px}onemrva-mat-empty-row span.img{grid-area:1/1/3/2;display:block;min-width:80px;min-height:80px;height:10vw;width:10vw;margin:32px;position:relative;float:left}onemrva-mat-empty-row span.text{grid-area:1/2/2/7;justify-self:start;align-self:end}onemrva-mat-empty-row button{grid-area:2/2/3/7;justify-self:start;align-self:start}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], encapsulation: i0.ViewEncapsulation.None }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatEmptyRowComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatEmptyRowComponent, decorators: [{
25
25
  type: Component,
26
26
  args: [{ selector: 'onemrva-mat-empty-row', standalone: true, imports: [NgOptimizedImage, MatButton], encapsulation: ViewEncapsulation.None, template: "<span class=\"img\">\n <img [ngSrc]=\"noresultimg\" alt=\"{{ imageAlt }}\" fill priority />\n</span>\n<span class=\"text\">\n {{ text }}\n <ng-content></ng-content>\n</span>\n<button mat-stroked-button (click)=\"clear.emit()\">{{ buttonText }}</button>\n", styles: ["onemrva-mat-empty-row{display:grid;grid-template-columns:repeat(6,1FR);grid-template-rows:repeat(2,1FR);justify-items:center;gap:15px}onemrva-mat-empty-row span.img{grid-area:1/1/3/2;display:block;min-width:80px;min-height:80px;height:10vw;width:10vw;margin:32px;position:relative;float:left}onemrva-mat-empty-row span.text{grid-area:1/2/2/7;justify-self:start;align-self:end}onemrva-mat-empty-row button{grid-area:2/2/3/7;justify-self:start;align-self:start}\n"] }]
27
- }], ctorParameters: () => [{ type: i1.OnemRvaCDNService }, { type: i2.TranslateService }], propDecorators: { buttonText: [{
27
+ }], propDecorators: { buttonText: [{
28
28
  type: Input
29
29
  }], text: [{
30
30
  type: Input
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-empty-row.mjs","sources":["../../../../projects/onemrva/design-system/mat-empty-row/src/onemrva-mat-empty-row.component.ts","../../../../projects/onemrva/design-system/mat-empty-row/src/onemrva-mat-empty-row.component.html","../../../../projects/onemrva/design-system/mat-empty-row/onemrvapublic-design-system-mat-empty-row.ts"],"sourcesContent":["import {\n Component,\n EventEmitter,\n Input,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';\nimport { TranslateService } from '@ngx-translate/core';\nimport { MatButton } from '@angular/material/button';\nimport { NgOptimizedImage } from '@angular/common';\n\n/**\n *\n */\n@Component({\n selector: 'onemrva-mat-empty-row',\n templateUrl: 'onemrva-mat-empty-row.component.html',\n styleUrls: ['onemrva-mat-empty-row.component.scss'],\n standalone: true,\n imports: [NgOptimizedImage, MatButton],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatEmptyRowComponent {\n noresultimg: string = this.cdn.getOri('wordless.svg');\n\n constructor(\n private cdn: OnemRvaCDNService,\n private translate: TranslateService,\n ) {}\n\n @Input()\n buttonText: string = this.translate.instant('Reset filters');\n\n @Input()\n text: string = this.translate.instant(\n 'Sorry, there is no results for this search.',\n );\n\n @Input()\n imageAlt: string = this.translate.instant('Ori is wordless');\n\n @Output()\n clear = new EventEmitter<any>();\n}\n","<span class=\"img\">\n <img [ngSrc]=\"noresultimg\" alt=\"{{ imageAlt }}\" fill priority />\n</span>\n<span class=\"text\">\n {{ text }}\n <ng-content></ng-content>\n</span>\n<button mat-stroked-button (click)=\"clear.emit()\">{{ buttonText }}</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAYA;;AAEG;MASU,2BAA2B,CAAA;IAGtC,WACU,CAAA,GAAsB,EACtB,SAA2B,EAAA;QAD3B,IAAG,CAAA,GAAA,GAAH,GAAG;QACH,IAAS,CAAA,SAAA,GAAT,SAAS;QAJnB,IAAW,CAAA,WAAA,GAAW,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC;QAQrD,IAAU,CAAA,UAAA,GAAW,IAAI,CAAC,SAAS,CAAC,OAAO,CAA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S,CAAC,EAAA,aAAA,EACvB,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,mQAAA,EAAA,MAAA,EAAA,CAAA,+cAAA,CAAA,EAAA;qHAWrC,UAAU,EAAA,CAAA;sBADT;gBAID,IAAI,EAAA,CAAA;sBADH;gBAMD,QAAQ,EAAA,CAAA;sBADP;gBAID,KAAK,EAAA,CAAA;sBADJ;;;AE1CH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-empty-row.mjs","sources":["../../../../projects/onemrva/design-system/mat-empty-row/src/onemrva-mat-empty-row.component.ts","../../../../projects/onemrva/design-system/mat-empty-row/src/onemrva-mat-empty-row.component.html","../../../../projects/onemrva/design-system/mat-empty-row/onemrvapublic-design-system-mat-empty-row.ts"],"sourcesContent":["import {\n Component,\n EventEmitter,\n Input,\n Output,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';\nimport { TranslateService } from '@ngx-translate/core';\nimport { MatButton } from '@angular/material/button';\nimport { NgOptimizedImage } from '@angular/common';\n\n/**\n *\n */\n@Component({\n selector: 'onemrva-mat-empty-row',\n templateUrl: 'onemrva-mat-empty-row.component.html',\n styleUrls: ['onemrva-mat-empty-row.component.scss'],\n standalone: true,\n imports: [NgOptimizedImage, MatButton],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatEmptyRowComponent {\n private cdn = inject(OnemRvaCDNService);\n private translate = inject(TranslateService);\n\n noresultimg: string = this.cdn.getOri('wordless.svg');\n\n @Input()\n buttonText: string = this.translate.instant('Reset filters');\n\n @Input()\n text: string = this.translate.instant(\n 'Sorry, there is no results for this search.',\n );\n\n @Input()\n imageAlt: string = this.translate.instant('Ori is wordless');\n\n @Output()\n clear = new EventEmitter<any>();\n}\n","<span class=\"img\">\n <img [ngSrc]=\"noresultimg\" alt=\"{{ imageAlt }}\" fill priority />\n</span>\n<span class=\"text\">\n {{ text }}\n <ng-content></ng-content>\n</span>\n<button mat-stroked-button (click)=\"clear.emit()\">{{ buttonText }}</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAaA;;AAEG;MASU,2BAA2B,CAAA;AARxC,IAAA,WAAA,GAAA;AASU,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC/B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAE5C,IAAW,CAAA,WAAA,GAAW,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC;QAGrD,IAAU,CAAA,UAAA,GAAW,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC;QAG5D,IAAI,CAAA,IAAA,GAAW,IAAI,CAAC,SAAS,CAAC,OAAO,CACnC,6CAA6C,CAC9C;QAGD,IAAQ,CAAA,QAAA,GAAW,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC;AAG5D,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,YAAY,EAAO;AAChC;8GAnBY,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,ECxBxC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,mQAQA,EDaY,MAAA,EAAA,CAAA,+cAAA,CAAA,EAAA,YAAA,EA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