@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,20 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
- import { HostBinding, Input, ChangeDetectionStrategy, Component, EventEmitter, HostListener, Output, Directive, Injectable, InjectionToken, Optional, Inject, ViewChild, NgModule } from '@angular/core';
2
+ import { HostBinding, Input, ChangeDetectionStrategy, Component, Injectable, InjectionToken, inject, EventEmitter, HostListener, Output, Directive, ViewChild, NgModule } from '@angular/core';
3
3
  import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
4
4
  import { of, BehaviorSubject, interval, take, map, catchError, tap, mergeMap, withLatestFrom, filter, throttle, takeWhile, switchMap, forkJoin, merge, Subject } from 'rxjs';
5
5
  import { MatIcon, MatIconModule } from '@angular/material/icon';
6
- import { NgIf, NgForOf, AsyncPipe, NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
6
+ import { AsyncPipe, NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
7
7
  import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
8
- import * as i2 from '@ngx-translate/core';
9
- import { TranslatePipe, TranslateModule } from '@ngx-translate/core';
8
+ import { TranslatePipe, TranslateService, TranslateModule } from '@ngx-translate/core';
10
9
  import { MatProgressBar } from '@angular/material/progress-bar';
10
+ import { MatDialog, MatDialogModule } from '@angular/material/dialog';
11
11
  import { trigger, state, transition, style, animate, keyframes } from '@angular/animations';
12
- import { MatError } from '@angular/material/form-field';
13
- import * as i1 from '@angular/material/dialog';
14
- import { MatDialogModule } from '@angular/material/dialog';
15
- import * as i2$1 from '@onemrvapublic/design-system/shared';
16
12
  import { ComponentStore } from '@ngrx/component-store';
17
13
  import { HttpEventType, HttpResponse } from '@angular/common/http';
14
+ import { OnemRvaCDNMimeService } from '@onemrvapublic/design-system/shared';
15
+ import { MatError } from '@angular/material/form-field';
18
16
  import { MatButtonModule } from '@angular/material/button';
19
17
  import { ReactiveFormsModule } from '@angular/forms';
20
18
  import { MatInputModule } from '@angular/material/input';
@@ -114,20 +112,12 @@ class OnemrvaFilePanelComponent {
114
112
  get _isPrimary() {
115
113
  return this.color === OnemrvaMatColor.PRIMARY;
116
114
  }
117
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaFilePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
118
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: OnemrvaFilePanelComponent, isStandalone: true, selector: "file-panel", inputs: { id: "id", dataCy: "dataCy", file: "file", actions: "actions", showProgress: "showProgress", displayDate: "displayDate", maxFileSize: "maxFileSize", color: "color" }, host: { properties: { "attr.id": "this.id", "attr.data-cy": "this.dataCy", "mat-accent": "this._colorAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-primary": "this._isPrimary" } }, ngImport: i0, template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n <ng-container *ngIf=\"actions.length > 0\">\n <ng-container *ngFor=\"let action of actions\">\n <mat-icon\n *ngIf=\"action.showAction(file)\"\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n </ng-container>\n </ng-container>\n </div>\n</div>\n<div class=\"file-panel-content\">\n <ng-container *ngIf=\"file.message === ''\">\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n <span class=\"float-right\" *ngIf=\"file.size > 0\">{{ size }}</span>\n </div>\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n *ngIf=\"showProgress && file.enableProgressBar\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n </ng-container>\n <p *ngIf=\"file.message !== ''\" class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaFilePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
116
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: OnemrvaFilePanelComponent, isStandalone: true, selector: "file-panel", inputs: { id: "id", dataCy: "dataCy", file: "file", actions: "actions", showProgress: "showProgress", displayDate: "displayDate", maxFileSize: "maxFileSize", color: "color" }, host: { properties: { "attr.id": "this.id", "attr.data-cy": "this.dataCy", "mat-accent": "this._colorAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-primary": "this._isPrimary" } }, ngImport: i0, template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n @if (actions.length > 0) {\n @for (action of actions; track action.dataCy) {\n @if (action.showAction(file)) {\n <mat-icon\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n }\n }\n }\n </div>\n</div>\n<div class=\"file-panel-content\">\n @if (file.message === '') {\n <ng-container>\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n @if (file.size > 0) {\n <span class=\"float-right\">{{ size }}</span>\n }\n </div>\n @if (showProgress && file.enableProgressBar) {\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n }\n </ng-container>\n }\n @if (file.message !== '') {\n <p class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n }\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
119
117
  }
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaFilePanelComponent, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaFilePanelComponent, decorators: [{
121
119
  type: Component,
122
- args: [{ selector: 'file-panel', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
123
- MatIcon,
124
- NgIf,
125
- MatTooltip,
126
- TranslatePipe,
127
- NgForOf,
128
- AsyncPipe,
129
- MatProgressBar,
130
- ], template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n <ng-container *ngIf=\"actions.length > 0\">\n <ng-container *ngFor=\"let action of actions\">\n <mat-icon\n *ngIf=\"action.showAction(file)\"\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n </ng-container>\n </ng-container>\n </div>\n</div>\n<div class=\"file-panel-content\">\n <ng-container *ngIf=\"file.message === ''\">\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n <span class=\"float-right\" *ngIf=\"file.size > 0\">{{ size }}</span>\n </div>\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n *ngIf=\"showProgress && file.enableProgressBar\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n </ng-container>\n <p *ngIf=\"file.message !== ''\" class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"] }]
120
+ args: [{ selector: 'file-panel', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIcon, MatTooltip, TranslatePipe, AsyncPipe, MatProgressBar], template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n @if (actions.length > 0) {\n @for (action of actions; track action.dataCy) {\n @if (action.showAction(file)) {\n <mat-icon\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n }\n }\n }\n </div>\n</div>\n<div class=\"file-panel-content\">\n @if (file.message === '') {\n <ng-container>\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n @if (file.size > 0) {\n <span class=\"float-right\">{{ size }}</span>\n }\n </div>\n @if (showProgress && file.enableProgressBar) {\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n }\n </ng-container>\n }\n @if (file.message !== '') {\n <p class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n }\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"] }]
131
121
  }], propDecorators: { id: [{
132
122
  type: HostBinding,
133
123
  args: ['attr.id']
@@ -167,58 +157,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
167
157
  args: ['class.mat-primary']
168
158
  }] } });
169
159
 
170
- class DndDirective {
171
- constructor() {
172
- this.fileOver = false;
173
- this.fileDropped = new EventEmitter();
174
- }
175
- // Dragover listener
176
- onDragOver(evt) {
177
- evt.preventDefault();
178
- evt.stopPropagation();
179
- this.fileOver = true;
180
- }
181
- // Dragleave listener
182
- onDragLeave(evt) {
183
- evt.preventDefault();
184
- evt.stopPropagation();
185
- this.fileOver = false;
186
- }
187
- // Drop listener
188
- ondrop(evt) {
189
- evt.preventDefault();
190
- evt.stopPropagation();
191
- this.fileOver = false;
192
- const files = evt.dataTransfer.files;
193
- if (files.length > 0) {
194
- this.fileDropped.emit(files);
195
- }
196
- }
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DndDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
198
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: DndDirective, isStandalone: true, selector: "[appDnd]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.fileover": "this.fileOver" } }, ngImport: i0 }); }
199
- }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DndDirective, decorators: [{
201
- type: Directive,
202
- args: [{
203
- selector: '[appDnd]',
204
- standalone: true,
205
- }]
206
- }], propDecorators: { fileOver: [{
207
- type: HostBinding,
208
- args: ['class.fileover']
209
- }], fileDropped: [{
210
- type: Output
211
- }], onDragOver: [{
212
- type: HostListener,
213
- args: ['dragover', ['$event']]
214
- }], onDragLeave: [{
215
- type: HostListener,
216
- args: ['dragleave', ['$event']]
217
- }], ondrop: [{
218
- type: HostListener,
219
- args: ['drop', ['$event']]
220
- }] } });
221
-
222
160
  class OnemrvaMatFileUploadService {
223
161
  constructor() {
224
162
  this.isSending = new BehaviorSubject(false);
@@ -254,10 +192,10 @@ class OnemrvaMatFileUploadService {
254
192
  alert(`Missing download implementation for file ID ${id}`);
255
193
  return of(true);
256
194
  }
257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
258
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadService, providedIn: 'root' }); }
195
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
196
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadService, providedIn: 'root' }); }
259
197
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadService, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadService, decorators: [{
261
199
  type: Injectable,
262
200
  args: [{
263
201
  providedIn: 'root',
@@ -275,14 +213,16 @@ const INIT_STATE = {
275
213
  };
276
214
  const CUSTOM_VALIDATION_FN = new InjectionToken('x1, x2 = (-b -+ sqrt(rho))/2a');
277
215
  class OnemrvaMatFileUploadStore extends ComponentStore {
278
- constructor(fileUploadService, translateService, customValidationFn) {
216
+ constructor() {
279
217
  super(INIT_STATE);
280
- this.fileUploadService = fileUploadService;
281
- this.translateService = translateService;
282
- this.customValidationFn = customValidationFn;
283
218
  this.fn = (x) => {
284
219
  return x[0];
285
220
  };
221
+ this.fileUploadService = inject(OnemrvaMatFileUploadService);
222
+ this.translateService = inject(TranslateService);
223
+ this.customValidationFn = inject(CUSTOM_VALIDATION_FN, {
224
+ optional: true,
225
+ });
286
226
  this.isSending = this.fileUploadService.isSending;
287
227
  /*
288
228
  * U P D A T E R S
@@ -558,27 +498,71 @@ class OnemrvaMatFileUploadStore extends ComponentStore {
558
498
  * For adding several file panels (creation of file panels reference skipped if already created) then uploading them
559
499
  */
560
500
  this.uploadFiles = this.effect((files$) => files$.pipe(switchMap(files => merge(...files.map(file => this.progressFileChecker(of(file)).pipe(switchMap(this.loadStep)))))));
561
- if (customValidationFn)
562
- this.fn = customValidationFn;
501
+ if (this.customValidationFn)
502
+ this.fn = this.customValidationFn;
563
503
  }
564
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadStore, deps: [{ token: OnemrvaMatFileUploadService }, { token: i2.TranslateService }, { token: CUSTOM_VALIDATION_FN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
565
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadStore }); }
504
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
505
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadStore }); }
566
506
  }
567
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadStore, decorators: [{
507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadStore, decorators: [{
568
508
  type: Injectable
569
- }], ctorParameters: () => [{ type: OnemrvaMatFileUploadService }, { type: i2.TranslateService }, { type: undefined, decorators: [{
570
- type: Optional
571
- }, {
572
- type: Inject,
573
- args: [CUSTOM_VALIDATION_FN]
574
- }] }] });
509
+ }], ctorParameters: () => [] });
510
+
511
+ class DndDirective {
512
+ constructor() {
513
+ this.fileOver = false;
514
+ this.fileDropped = new EventEmitter();
515
+ }
516
+ // Dragover listener
517
+ onDragOver(evt) {
518
+ evt.preventDefault();
519
+ evt.stopPropagation();
520
+ this.fileOver = true;
521
+ }
522
+ // Dragleave listener
523
+ onDragLeave(evt) {
524
+ evt.preventDefault();
525
+ evt.stopPropagation();
526
+ this.fileOver = false;
527
+ }
528
+ // Drop listener
529
+ ondrop(evt) {
530
+ evt.preventDefault();
531
+ evt.stopPropagation();
532
+ this.fileOver = false;
533
+ const files = evt.dataTransfer.files;
534
+ if (files.length > 0) {
535
+ this.fileDropped.emit(files);
536
+ }
537
+ }
538
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DndDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
539
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: DndDirective, isStandalone: true, selector: "[appDnd]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.fileover": "this.fileOver" } }, ngImport: i0 }); }
540
+ }
541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DndDirective, decorators: [{
542
+ type: Directive,
543
+ args: [{
544
+ selector: '[appDnd]',
545
+ standalone: true,
546
+ }]
547
+ }], propDecorators: { fileOver: [{
548
+ type: HostBinding,
549
+ args: ['class.fileover']
550
+ }], fileDropped: [{
551
+ type: Output
552
+ }], onDragOver: [{
553
+ type: HostListener,
554
+ args: ['dragover', ['$event']]
555
+ }], onDragLeave: [{
556
+ type: HostListener,
557
+ args: ['dragleave', ['$event']]
558
+ }], ondrop: [{
559
+ type: HostListener,
560
+ args: ['drop', ['$event']]
561
+ }] } });
575
562
 
576
563
  let NEXT_ID = 0;
577
564
  class OnemrvaMatFileUploadComponent {
578
- constructor(dialog, mimeCDN, fileUploadStore) {
579
- this.dialog = dialog;
580
- this.mimeCDN = mimeCDN;
581
- this.fileUploadStore = fileUploadStore;
565
+ constructor() {
582
566
  this.accept = [];
583
567
  this.maxFileSize = 0;
584
568
  this.numberOfFiles = 0;
@@ -601,8 +585,11 @@ class OnemrvaMatFileUploadComponent {
601
585
  this.inputId = `fileDropRef-${NEXT_ID}`;
602
586
  this.maxFileSizeFormatted = '';
603
587
  this.error$ = new Subject();
588
+ this.dialog = inject(MatDialog);
589
+ this.mimeCDN = inject(OnemRvaCDNMimeService);
590
+ this.fileUploadStore = inject(OnemrvaMatFileUploadStore);
604
591
  this.formattedSize = formattedSize;
605
- this.files$ = fileUploadStore.files$;
592
+ this.files$ = this.fileUploadStore.files$;
606
593
  this.fileUploadErrorMessage$ = merge(this.fileUploadStore.fileUploadError$, this.error$);
607
594
  }
608
595
  ngOnInit() {
@@ -676,8 +663,8 @@ class OnemrvaMatFileUploadComponent {
676
663
  this.fileDropRef.nativeElement.value = null;
677
664
  });
678
665
  }
679
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadComponent, deps: [{ token: i1.MatDialog }, { token: i2$1.OnemRvaCDNMimeService }, { token: OnemrvaMatFileUploadStore }], target: i0.ɵɵFactoryTarget.Component }); }
680
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: OnemrvaMatFileUploadComponent, isStandalone: true, selector: "onemrva-mat-file-upload", inputs: { accept: "accept", maxFileSize: "maxFileSize", numberOfFiles: "numberOfFiles", maxTotalFileSize: "maxTotalFileSize", uploadOnDrop: "uploadOnDrop", initialFiles: "initialFiles", errorMessage: "errorMessage", hideExtensions: "hideExtensions", dropFilesHereTextTranslationKey: "dropFilesHereTextTranslationKey", filePanelTemplate: "filePanelTemplate", dataCy: "dataCy" }, host: { properties: { "attr.data-cy": "this.dataCy" } }, viewQueries: [{ propertyName: "fileDropRef", first: true, predicate: ["fileDropRef"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"files$ | async as files\">\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [ngClass]=\"{\n filein: files.length > 0,\n }\"\n >\n <input\n type=\"file\"\n #fileDropRef\n [attr.id]=\"inputId\"\n role=\"button\"\n multiple\n (change)=\"fileBrowseHandler($event)\"\n accept=\"{{ acceptString$ | async }}\"\n />\n <div\n class=\"download-outer\"\n *ngIf=\"numberOfFiles === 0 || numberOfFiles > files.length\"\n >\n <div class=\"download-icon\">\n <mat-icon class=\"onemrva-upload xxlarge\">download</mat-icon>\n </div>\n\n <div class=\"download-text\">\n {{ dropFilesHereTextTranslationKey | translate }}\n {{ 'file.upload.or' | translate }}\n <label for=\"{{ inputId }}\" class=\"content\">\n {{ 'file.upload.browse.for.file' | translate }} </label\n ><br />\n <span class=\"restrictions\" *ngIf=\"maxFileSize > 0\">\n {{ 'file.upload.maximum' | translate }}\n {{ maxFileSizeFormatted }}\n\n <span *ngIf=\"accept.length > 0\">{{ '| ' }}</span>\n\n {{ acceptString$ | async }}\n </span>\n </div>\n </div>\n <ul class=\"files-list\">\n <li *ngFor=\"let file of files\">\n <ng-container\n *ngTemplateOutlet=\"\n filePanelTemplate;\n context: { file, $implicit: file }\n \"\n ></ng-container>\n </li>\n </ul>\n </div>\n <mat-error *ngIf=\"fileUploadErrorMessage$ | async as fileUploadErrorMessage\">\n {{\n fileUploadErrorMessage\n | translate\n : {\n limit: numberOfFiles,\n maxTotalFileSize: formattedSize(maxTotalFileSize),\n }\n }}\n @if (errorMessage !== '') {\n [ {{ errorMessage }} ]\n }\n </mat-error>\n</ng-container>\n", styles: [":host .mat-mdc-form-field-error{margin-bottom:var(--spacer);padding:var(--spacer) 1em;background-color:var(--mat-sys-error-container);color:var(--mat-sys-on-error-container);border-bottom:1px solid var(--mat-sys-error);display:flex;line-height:1.125rem}:host .mat-mdc-form-field-error:before{font-family:var(--icon-font);content:\"\\e000\";float:left;font-size:1rem;font-variation-settings:\"FILL\" 1;margin-right:var(--spacer);vertical-align:baseline;flex:0 0 var(--double-spacer)}:host ul{list-style:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}:host ul li{width:100%}:host .onemrva-mat-file-upload-drop-area{padding:var(--triple-spacer);text-align:left;border:dashed 2px var(--mat-sys-outline);position:relative;border-radius:var(--border-radius);transition:background-color .3s ease-in-out,border .3s ease-in-out}:host .onemrva-mat-file-upload-drop-area mat-icon{color:var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area.fu-error{border:dashed 2px var(--mat-sys-error)}:host .onemrva-mat-file-upload-drop-area input[type=file]{display:none}:host .onemrva-mat-file-upload-drop-area .download-outer{display:flex;width:100%;margin:0}:host .onemrva-mat-file-upload-drop-area .download-outer .download-icon{padding-right:var(--double-spacer)}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text label{display:block;color:var(--mat-sys-primary);text-decoration:underline;cursor:pointer;font-weight:700}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text .restrictions{display:block;color:var(--mat-sys-outline);margin-bottom:0}:host .onemrva-mat-file-upload-drop-area.filein .download-outer{margin:0 0 var(--triple-spacer) 0}:host .onemrva-mat-file-upload-drop-area.fileover{background:var(--mat-sys-primary-container);border:2px dashed var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area .files-list{display:flex;flex-flow:row wrap;gap:var(--double-spacer)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: DndDirective, selector: "[appDnd]", outputs: ["fileDropped"] }], animations: [
666
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
667
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: OnemrvaMatFileUploadComponent, isStandalone: true, selector: "onemrva-mat-file-upload", inputs: { accept: "accept", maxFileSize: "maxFileSize", numberOfFiles: "numberOfFiles", maxTotalFileSize: "maxTotalFileSize", uploadOnDrop: "uploadOnDrop", initialFiles: "initialFiles", errorMessage: "errorMessage", hideExtensions: "hideExtensions", dropFilesHereTextTranslationKey: "dropFilesHereTextTranslationKey", filePanelTemplate: "filePanelTemplate", dataCy: "dataCy" }, host: { properties: { "attr.data-cy": "this.dataCy" } }, viewQueries: [{ propertyName: "fileDropRef", first: true, predicate: ["fileDropRef"], descendants: true }], ngImport: i0, template: "@if (files$ | async; as files) {\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [ngClass]=\"{\n filein: files.length > 0,\n }\"\n >\n <input\n type=\"file\"\n #fileDropRef\n [attr.id]=\"inputId\"\n role=\"button\"\n multiple\n (change)=\"fileBrowseHandler($event)\"\n accept=\"{{ acceptString$ | async }}\"\n />\n @if (numberOfFiles === 0 || numberOfFiles > files.length) {\n <div class=\"download-outer\">\n <div class=\"download-icon\">\n <mat-icon class=\"onemrva-upload xxlarge\">download</mat-icon>\n </div>\n\n <div class=\"download-text\">\n {{ dropFilesHereTextTranslationKey | translate }}\n {{ 'file.upload.or' | translate }}\n <label for=\"{{ inputId }}\" class=\"content\">\n {{ 'file.upload.browse.for.file' | translate }} </label\n ><br />\n @if (maxFileSize > 0) {\n <span class=\"restrictions\">\n {{ 'file.upload.maximum' | translate }}\n {{ maxFileSizeFormatted }}\n\n @if (accept.length > 0) {\n <span>{{ '| ' }}</span>\n }\n\n {{ acceptString$ | async }}\n </span>\n }\n </div>\n </div>\n }\n <ul class=\"files-list\">\n @for (file of files; track file.id) {\n <li>\n <ng-container\n *ngTemplateOutlet=\"\n filePanelTemplate;\n context: { file, $implicit: file }\n \"\n ></ng-container>\n </li>\n }\n </ul>\n </div>\n @if (fileUploadErrorMessage$ | async; as fileUploadErrorMessage) {\n <mat-error>\n {{\n fileUploadErrorMessage\n | translate\n : {\n limit: numberOfFiles,\n maxTotalFileSize: formattedSize(maxTotalFileSize),\n }\n }}\n @if (errorMessage !== '') {\n [ {{ errorMessage }} ]\n }\n </mat-error>\n }\n}\n", styles: [":host .mat-mdc-form-field-error{margin-bottom:var(--spacer);padding:var(--spacer) 1em;background-color:var(--mat-sys-error-container);color:var(--mat-sys-on-error-container);border-bottom:1px solid var(--mat-sys-error);display:flex;line-height:1.125rem}:host .mat-mdc-form-field-error:before{font-family:var(--icon-font);content:\"\\e000\";float:left;font-size:1rem;font-variation-settings:\"FILL\" 1;margin-right:var(--spacer);vertical-align:baseline;flex:0 0 var(--double-spacer)}:host ul{list-style:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}:host ul li{width:100%}:host .onemrva-mat-file-upload-drop-area{padding:var(--triple-spacer);text-align:left;border:dashed 2px var(--mat-sys-outline);position:relative;border-radius:var(--border-radius);transition:background-color .3s ease-in-out,border .3s ease-in-out}:host .onemrva-mat-file-upload-drop-area mat-icon{color:var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area.fu-error{border:dashed 2px var(--mat-sys-error)}:host .onemrva-mat-file-upload-drop-area input[type=file]{display:none}:host .onemrva-mat-file-upload-drop-area .download-outer{display:flex;width:100%;margin:0}:host .onemrva-mat-file-upload-drop-area .download-outer .download-icon{padding-right:var(--double-spacer)}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text label{display:block;color:var(--mat-sys-primary);text-decoration:underline;cursor:pointer;font-weight:700}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text .restrictions{display:block;color:var(--mat-sys-outline);margin-bottom:0}:host .onemrva-mat-file-upload-drop-area.filein .download-outer{margin:0 0 var(--triple-spacer) 0}:host .onemrva-mat-file-upload-drop-area.fileover{background:var(--mat-sys-primary-container);border:2px dashed var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area .files-list{display:flex;flex-flow:row wrap;gap:var(--double-spacer)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: DndDirective, selector: "[appDnd]", outputs: ["fileDropped"] }], animations: [
681
668
  trigger('inOutAnimation', [
682
669
  state('in', style({ opacity: 1 })),
683
670
  transition(':enter', [
@@ -701,7 +688,7 @@ class OnemrvaMatFileUploadComponent {
701
688
  ]),
702
689
  ] }); }
703
690
  }
704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadComponent, decorators: [{
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadComponent, decorators: [{
705
692
  type: Component,
706
693
  args: [{ selector: 'onemrva-mat-file-upload', standalone: true, animations: [
707
694
  trigger('inOutAnimation', [
@@ -730,13 +717,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
730
717
  AsyncPipe,
731
718
  MatIcon,
732
719
  TranslatePipe,
733
- NgForOf,
734
720
  NgTemplateOutlet,
735
721
  MatError,
736
- NgIf,
737
722
  DndDirective,
738
- ], template: "<ng-container *ngIf=\"files$ | async as files\">\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [ngClass]=\"{\n filein: files.length > 0,\n }\"\n >\n <input\n type=\"file\"\n #fileDropRef\n [attr.id]=\"inputId\"\n role=\"button\"\n multiple\n (change)=\"fileBrowseHandler($event)\"\n accept=\"{{ acceptString$ | async }}\"\n />\n <div\n class=\"download-outer\"\n *ngIf=\"numberOfFiles === 0 || numberOfFiles > files.length\"\n >\n <div class=\"download-icon\">\n <mat-icon class=\"onemrva-upload xxlarge\">download</mat-icon>\n </div>\n\n <div class=\"download-text\">\n {{ dropFilesHereTextTranslationKey | translate }}\n {{ 'file.upload.or' | translate }}\n <label for=\"{{ inputId }}\" class=\"content\">\n {{ 'file.upload.browse.for.file' | translate }} </label\n ><br />\n <span class=\"restrictions\" *ngIf=\"maxFileSize > 0\">\n {{ 'file.upload.maximum' | translate }}\n {{ maxFileSizeFormatted }}\n\n <span *ngIf=\"accept.length > 0\">{{ '| ' }}</span>\n\n {{ acceptString$ | async }}\n </span>\n </div>\n </div>\n <ul class=\"files-list\">\n <li *ngFor=\"let file of files\">\n <ng-container\n *ngTemplateOutlet=\"\n filePanelTemplate;\n context: { file, $implicit: file }\n \"\n ></ng-container>\n </li>\n </ul>\n </div>\n <mat-error *ngIf=\"fileUploadErrorMessage$ | async as fileUploadErrorMessage\">\n {{\n fileUploadErrorMessage\n | translate\n : {\n limit: numberOfFiles,\n maxTotalFileSize: formattedSize(maxTotalFileSize),\n }\n }}\n @if (errorMessage !== '') {\n [ {{ errorMessage }} ]\n }\n </mat-error>\n</ng-container>\n", styles: [":host .mat-mdc-form-field-error{margin-bottom:var(--spacer);padding:var(--spacer) 1em;background-color:var(--mat-sys-error-container);color:var(--mat-sys-on-error-container);border-bottom:1px solid var(--mat-sys-error);display:flex;line-height:1.125rem}:host .mat-mdc-form-field-error:before{font-family:var(--icon-font);content:\"\\e000\";float:left;font-size:1rem;font-variation-settings:\"FILL\" 1;margin-right:var(--spacer);vertical-align:baseline;flex:0 0 var(--double-spacer)}:host ul{list-style:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}:host ul li{width:100%}:host .onemrva-mat-file-upload-drop-area{padding:var(--triple-spacer);text-align:left;border:dashed 2px var(--mat-sys-outline);position:relative;border-radius:var(--border-radius);transition:background-color .3s ease-in-out,border .3s ease-in-out}:host .onemrva-mat-file-upload-drop-area mat-icon{color:var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area.fu-error{border:dashed 2px var(--mat-sys-error)}:host .onemrva-mat-file-upload-drop-area input[type=file]{display:none}:host .onemrva-mat-file-upload-drop-area .download-outer{display:flex;width:100%;margin:0}:host .onemrva-mat-file-upload-drop-area .download-outer .download-icon{padding-right:var(--double-spacer)}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text label{display:block;color:var(--mat-sys-primary);text-decoration:underline;cursor:pointer;font-weight:700}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text .restrictions{display:block;color:var(--mat-sys-outline);margin-bottom:0}:host .onemrva-mat-file-upload-drop-area.filein .download-outer{margin:0 0 var(--triple-spacer) 0}:host .onemrva-mat-file-upload-drop-area.fileover{background:var(--mat-sys-primary-container);border:2px dashed var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area .files-list{display:flex;flex-flow:row wrap;gap:var(--double-spacer)}\n"] }]
739
- }], ctorParameters: () => [{ type: i1.MatDialog }, { type: i2$1.OnemRvaCDNMimeService }, { type: OnemrvaMatFileUploadStore }], propDecorators: { accept: [{
723
+ ], template: "@if (files$ | async; as files) {\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [ngClass]=\"{\n filein: files.length > 0,\n }\"\n >\n <input\n type=\"file\"\n #fileDropRef\n [attr.id]=\"inputId\"\n role=\"button\"\n multiple\n (change)=\"fileBrowseHandler($event)\"\n accept=\"{{ acceptString$ | async }}\"\n />\n @if (numberOfFiles === 0 || numberOfFiles > files.length) {\n <div class=\"download-outer\">\n <div class=\"download-icon\">\n <mat-icon class=\"onemrva-upload xxlarge\">download</mat-icon>\n </div>\n\n <div class=\"download-text\">\n {{ dropFilesHereTextTranslationKey | translate }}\n {{ 'file.upload.or' | translate }}\n <label for=\"{{ inputId }}\" class=\"content\">\n {{ 'file.upload.browse.for.file' | translate }} </label\n ><br />\n @if (maxFileSize > 0) {\n <span class=\"restrictions\">\n {{ 'file.upload.maximum' | translate }}\n {{ maxFileSizeFormatted }}\n\n @if (accept.length > 0) {\n <span>{{ '| ' }}</span>\n }\n\n {{ acceptString$ | async }}\n </span>\n }\n </div>\n </div>\n }\n <ul class=\"files-list\">\n @for (file of files; track file.id) {\n <li>\n <ng-container\n *ngTemplateOutlet=\"\n filePanelTemplate;\n context: { file, $implicit: file }\n \"\n ></ng-container>\n </li>\n }\n </ul>\n </div>\n @if (fileUploadErrorMessage$ | async; as fileUploadErrorMessage) {\n <mat-error>\n {{\n fileUploadErrorMessage\n | translate\n : {\n limit: numberOfFiles,\n maxTotalFileSize: formattedSize(maxTotalFileSize),\n }\n }}\n @if (errorMessage !== '') {\n [ {{ errorMessage }} ]\n }\n </mat-error>\n }\n}\n", styles: [":host .mat-mdc-form-field-error{margin-bottom:var(--spacer);padding:var(--spacer) 1em;background-color:var(--mat-sys-error-container);color:var(--mat-sys-on-error-container);border-bottom:1px solid var(--mat-sys-error);display:flex;line-height:1.125rem}:host .mat-mdc-form-field-error:before{font-family:var(--icon-font);content:\"\\e000\";float:left;font-size:1rem;font-variation-settings:\"FILL\" 1;margin-right:var(--spacer);vertical-align:baseline;flex:0 0 var(--double-spacer)}:host ul{list-style:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}:host ul li{width:100%}:host .onemrva-mat-file-upload-drop-area{padding:var(--triple-spacer);text-align:left;border:dashed 2px var(--mat-sys-outline);position:relative;border-radius:var(--border-radius);transition:background-color .3s ease-in-out,border .3s ease-in-out}:host .onemrva-mat-file-upload-drop-area mat-icon{color:var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area.fu-error{border:dashed 2px var(--mat-sys-error)}:host .onemrva-mat-file-upload-drop-area input[type=file]{display:none}:host .onemrva-mat-file-upload-drop-area .download-outer{display:flex;width:100%;margin:0}:host .onemrva-mat-file-upload-drop-area .download-outer .download-icon{padding-right:var(--double-spacer)}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text label{display:block;color:var(--mat-sys-primary);text-decoration:underline;cursor:pointer;font-weight:700}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text .restrictions{display:block;color:var(--mat-sys-outline);margin-bottom:0}:host .onemrva-mat-file-upload-drop-area.filein .download-outer{margin:0 0 var(--triple-spacer) 0}:host .onemrva-mat-file-upload-drop-area.fileover{background:var(--mat-sys-primary-container);border:2px dashed var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area .files-list{display:flex;flex-flow:row wrap;gap:var(--double-spacer)}\n"] }]
724
+ }], ctorParameters: () => [], propDecorators: { accept: [{
740
725
  type: Input
741
726
  }], maxFileSize: [{
742
727
  type: Input
@@ -772,8 +757,8 @@ const components = [
772
757
  ];
773
758
 
774
759
  class OnemrvaMatFileUploadModule {
775
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
776
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadModule, imports: [OnemrvaFilePanelComponent, OnemrvaMatFileUploadComponent, DndDirective,
760
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
761
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, imports: [OnemrvaFilePanelComponent, OnemrvaMatFileUploadComponent, DndDirective,
777
762
  CommonModule,
778
763
  ReactiveFormsModule,
779
764
  MatButtonModule,
@@ -782,7 +767,7 @@ class OnemrvaMatFileUploadModule {
782
767
  TranslateModule,
783
768
  MatIconModule,
784
769
  MatInputModule], exports: [OnemrvaFilePanelComponent, OnemrvaMatFileUploadComponent, DndDirective] }); }
785
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadModule, imports: [components,
770
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, providers: [OnemrvaMatFileUploadStore, OnemrvaMatFileUploadService], imports: [components,
786
771
  CommonModule,
787
772
  ReactiveFormsModule,
788
773
  MatButtonModule,
@@ -792,7 +777,7 @@ class OnemrvaMatFileUploadModule {
792
777
  MatIconModule,
793
778
  MatInputModule] }); }
794
779
  }
795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: OnemrvaMatFileUploadModule, decorators: [{
780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, decorators: [{
796
781
  type: NgModule,
797
782
  args: [{
798
783
  declarations: [],
@@ -809,6 +794,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
809
794
  MatInputModule,
810
795
  ],
811
796
  exports: [components, DndDirective],
797
+ providers: [OnemrvaMatFileUploadStore, OnemrvaMatFileUploadService],
812
798
  }]
813
799
  }] });
814
800