@onemrvapublic/design-system 18.3.0-develop.1 → 19.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 (438) hide show
  1. package/_index.scss +0 -1
  2. package/_utils.scss +3 -3
  3. package/fesm2022/onemrvapublic-design-system-core.mjs +7 -7
  4. package/fesm2022/onemrvapublic-design-system-core.mjs.map +1 -1
  5. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +3 -3
  6. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
  7. package/fesm2022/onemrvapublic-design-system-layout.mjs +188 -97
  8. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  9. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +11 -11
  10. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
  11. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +27 -18
  12. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
  13. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +6 -6
  14. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
  15. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +3 -3
  16. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
  17. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +3 -3
  18. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
  19. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +3 -3
  20. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
  21. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +107 -86
  22. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
  23. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +6 -6
  24. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  25. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +3 -3
  26. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  27. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +3 -3
  28. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  29. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +4 -4
  30. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  31. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +6 -6
  32. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  33. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +10 -13
  34. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
  35. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +31 -51
  36. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  37. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +3 -3
  38. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  39. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +24 -35
  40. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  41. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +28 -29
  42. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
  43. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +20 -20
  44. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
  45. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
  46. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
  47. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +48 -149
  48. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  49. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +21 -53
  50. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  51. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +14 -17
  52. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
  53. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +11 -12
  54. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
  55. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +12 -13
  56. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
  57. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +16 -41
  58. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
  59. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +11 -11
  60. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
  61. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +9 -9
  62. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
  63. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +26 -41
  64. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
  65. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +51 -64
  66. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
  67. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +12 -12
  68. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
  69. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +18 -18
  70. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
  71. package/fesm2022/onemrvapublic-design-system-page-error.mjs +6 -6
  72. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
  73. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +32 -26
  74. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
  75. package/fesm2022/onemrvapublic-design-system-shared.mjs +70 -62
  76. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  77. package/layout/index.d.ts +5 -5
  78. package/layout/src/components/layout/_layout-mixin.component.scss +5 -5
  79. package/layout/src/components/layout/layout.component.d.ts +1 -1
  80. package/layout/src/components/layout/layout.component.scss +7 -0
  81. package/layout/src/components/layout-after-nav/layout-after-nav.component.d.ts +1 -1
  82. package/layout/src/components/layout-content/layout-content.component.d.ts +1 -1
  83. package/layout/src/components/layout-footer/layout-footer.component.d.ts +1 -1
  84. package/layout/src/components/layout-login-menu/layout-login-menu.component.d.ts +1 -1
  85. package/layout/src/components/layout-route/layout-route.component.d.ts +1 -1
  86. package/layout/src/components/layout-sidenav/layout-sidenav.component.d.ts +1 -1
  87. package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.d.ts +1 -1
  88. package/layout/src/components/layout-subroute/layout-subroute.component.d.ts +1 -1
  89. package/layout/src/components/layout-title/layout-title.component.d.ts +1 -1
  90. package/layout/src/decorators/coerce-boolean-input.decorator.d.ts +1 -0
  91. package/layout/src/decorators/index.d.ts +2 -0
  92. package/layout/src/decorators/observable-content.decorator.d.ts +1 -0
  93. package/layout/src/directives/drawer-host.directive.d.ts +1 -1
  94. package/layout/src/directives/index.d.ts +2 -0
  95. package/layout/src/{striphtml.pipe.d.ts → directives/striphtml.pipe.d.ts} +1 -1
  96. package/layout/src/enums/index.d.ts +1 -0
  97. package/layout/src/layout.module.d.ts +3 -3
  98. package/layout/src/models/index.d.ts +2 -0
  99. package/layout/src/services/index.d.ts +1 -0
  100. package/mat-avatar/src/onemrva-mat-avatar.component.d.ts +1 -1
  101. package/mat-avatar/src/onemrva-mat-avatar.module.d.ts +1 -3
  102. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.d.ts +1 -1
  103. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.d.ts +5 -5
  104. package/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +1 -1
  105. package/mat-file-upload/index.d.ts +1 -0
  106. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.d.ts +1 -1
  107. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +3 -3
  108. package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.d.ts +1 -1
  109. package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +2 -1
  110. package/mat-file-upload/src/directives/dnd.directive.d.ts +1 -1
  111. package/mat-file-upload/src/onemrva-mat-file-upload.module.d.ts +1 -1
  112. package/mat-message-box/src/onemrva-mat-message-box.component.d.ts +1 -1
  113. package/mat-message-box/src/onemrva-mat-message-box.module.d.ts +1 -4
  114. package/mat-multi-select/src/onemrva-mat-multi-select.component.d.ts +1 -1
  115. package/mat-multi-select/src/onemrva-mat-multi-select.module.d.ts +1 -9
  116. package/mat-paginator/src/onemrva-mat-paginator.component.d.ts +1 -1
  117. package/mat-paginator/src/onemrva-mat-paginator.module.d.ts +1 -6
  118. package/mat-panel/src/onemrva-mat-panel-content.component.d.ts +1 -1
  119. package/mat-panel/src/onemrva-mat-panel-icon.component.d.ts +1 -1
  120. package/mat-panel/src/onemrva-mat-panel-title-action.component.d.ts +1 -1
  121. package/mat-panel/src/onemrva-mat-panel-title.component.d.ts +1 -1
  122. package/mat-panel/src/onemrva-mat-panel.component.d.ts +1 -1
  123. package/mat-panel/src/onemrva-mat-panel.module.d.ts +1 -2
  124. package/mat-pop-over/src/onemrva-mat-pop-over-content.component.d.ts +1 -1
  125. package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.d.ts +1 -1
  126. package/mat-pop-over/src/onemrva-mat-pop-over.component.d.ts +1 -1
  127. package/mat-pop-over/src/onemrva-mat-pop-over.module.d.ts +1 -3
  128. package/mat-select-search/src/mat-select-no-entries-found.directive.d.ts +1 -1
  129. package/mat-select-search/src/mat-select-search-clear.directive.d.ts +1 -1
  130. package/mat-select-search/src/mat-select-search.component.d.ts +1 -79
  131. package/mat-select-search/src/mat-select-search.module.d.ts +1 -12
  132. package/mat-selectable-box/src/onemrva-mat-selectable-box.component.d.ts +1 -1
  133. package/mat-selectable-box/src/onemrva-mat-selectable-box.module.d.ts +1 -11
  134. package/mat-side-menu/src/onemrva-mat-side-menu.component.d.ts +1 -1
  135. package/mat-side-menu/src/onemrva-mat-side-menu.module.d.ts +1 -5
  136. package/mat-skeleton/src/onemrva-mat-skeleton.component.d.ts +1 -1
  137. package/mat-skeleton/src/onemrva-mat-skeleton.module.d.ts +1 -2
  138. package/mat-spinner/src/onemrva-mat-spinner.component.d.ts +1 -1
  139. package/mat-spinner/src/onemrva-mat-spinner.module.d.ts +1 -1
  140. package/mat-stepper/src/onemrva-mat-stepper.component.d.ts +1 -1
  141. package/mat-stepper/src/onemrva-mat-stepper.module.d.ts +2 -7
  142. package/mat-stepper/src/onemrva-mat-stepper.scss +1 -1
  143. package/mat-sticker/src/onemrva-mat-sticker.component.d.ts +1 -1
  144. package/mat-sticker/src/onemrva-mat-sticker.module.d.ts +1 -2
  145. package/mat-task-list/src/onemrva-mat-task-content.component.d.ts +1 -1
  146. package/mat-task-list/src/onemrva-mat-task-list.component.d.ts +1 -1
  147. package/mat-task-list/src/onemrva-mat-task-list.module.d.ts +1 -5
  148. package/mat-task-list/src/onemrva-mat-task-title.component.d.ts +1 -1
  149. package/mat-task-list/src/onemrva-mat-task.component.d.ts +1 -1
  150. package/mat-timepicker/src/clock/clock.component.d.ts +1 -1
  151. package/mat-timepicker/src/onemrva-mat-timepicker.component.d.ts +1 -1
  152. package/mat-timepicker/src/onemrva-mat-timepicker.module.d.ts +1 -7
  153. package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.d.ts +1 -1
  154. package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.d.ts +2 -2
  155. package/mat-timepicker/src/timepicker.directive.d.ts +1 -1
  156. package/mat-toast/src/onemrva-mat-toast.component.d.ts +1 -1
  157. package/mat-toast/src/onemrva-mat-toast.module.d.ts +2 -3
  158. package/mat-tooltip/src/onemrva-mat-tooltip.component.d.ts +1 -1
  159. package/mat-tooltip/src/onemrva-mat-tooltip.directive.d.ts +1 -1
  160. package/mat-tooltip/src/onemrva-mat-tooltip.module.d.ts +1 -2
  161. package/package.json +5 -89
  162. package/page-not-found/src/page-not-found-action.component.d.ts +1 -1
  163. package/page-not-found/src/page-not-found-extra.component.d.ts +1 -1
  164. package/page-not-found/src/page-not-found-invader.component.d.ts +1 -1
  165. package/page-not-found/src/page-not-found-mixin.component.scss +1 -1
  166. package/page-not-found/src/page-not-found.component.d.ts +1 -1
  167. package/page-not-found/src/page-not-found.module.d.ts +1 -3
  168. package/shared/src/lib/directives/clipboard.directive.d.ts +1 -1
  169. package/shared/src/lib/directives/color.directive.d.ts +1 -1
  170. package/shared/src/lib/directives/digit-only.directive.d.ts +1 -1
  171. package/shared/src/lib/directives/iconRight.directive.d.ts +1 -1
  172. package/shared/src/lib/directives/if-width-is.directive.d.ts +1 -1
  173. package/shared/src/lib/directives/mask.directive.d.ts +1 -1
  174. package/shared/src/lib/directives/mat-row-clickable.directive.d.ts +1 -1
  175. package/shared/src/lib/shared.module.d.ts +1 -2
  176. package/esm2022/core/index.mjs +0 -4
  177. package/esm2022/core/onemrvapublic-design-system-core.mjs +0 -5
  178. package/esm2022/core/src/lib/core.module.mjs +0 -39
  179. package/esm2022/core/src/lib/services/index.mjs +0 -3
  180. package/esm2022/core/src/lib/services/onemrva-error-handler.service.mjs +0 -26
  181. package/esm2022/core/src/lib/services/onemrva-missing-translation.service.mjs +0 -6
  182. package/esm2022/flag-icon/index.mjs +0 -2
  183. package/esm2022/flag-icon/onemrvapublic-design-system-flag-icon.mjs +0 -5
  184. package/esm2022/flag-icon/src/flag-icon.component.mjs +0 -41
  185. package/esm2022/layout/index.mjs +0 -8
  186. package/esm2022/layout/onemrvapublic-design-system-layout.mjs +0 -5
  187. package/esm2022/layout/src/components/index.mjs +0 -36
  188. package/esm2022/layout/src/components/layout/layout.component.mjs +0 -177
  189. package/esm2022/layout/src/components/layout-after-nav/layout-after-nav.component.mjs +0 -25
  190. package/esm2022/layout/src/components/layout-content/layout-content.component.mjs +0 -25
  191. package/esm2022/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.mjs +0 -16
  192. package/esm2022/layout/src/components/layout-drawer-content/layout-drawer-content.component.mjs +0 -16
  193. package/esm2022/layout/src/components/layout-drawer-title/layout-drawer-title.component.mjs +0 -20
  194. package/esm2022/layout/src/components/layout-footer/layout-footer.component.mjs +0 -17
  195. package/esm2022/layout/src/components/layout-login-menu/layout-login-menu.component.mjs +0 -25
  196. package/esm2022/layout/src/components/layout-route/layout-route.component.mjs +0 -65
  197. package/esm2022/layout/src/components/layout-sidenav/layout-sidenav.component.mjs +0 -83
  198. package/esm2022/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.mjs +0 -17
  199. package/esm2022/layout/src/components/layout-subroute/layout-subroute.component.mjs +0 -55
  200. package/esm2022/layout/src/components/layout-title/layout-title.component.mjs +0 -25
  201. package/esm2022/layout/src/directives/drawer-host.directive.mjs +0 -41
  202. package/esm2022/layout/src/enums/environment.enum.mjs +0 -8
  203. package/esm2022/layout/src/layout.module.mjs +0 -95
  204. package/esm2022/layout/src/models/onem-language.model.mjs +0 -2
  205. package/esm2022/layout/src/models/onemrva-profile.model.mjs +0 -46
  206. package/esm2022/layout/src/services/drawer.service.mjs +0 -31
  207. package/esm2022/layout/src/striphtml.pipe.mjs +0 -16
  208. package/esm2022/mat-avatar/index.mjs +0 -3
  209. package/esm2022/mat-avatar/onemrvapublic-design-system-mat-avatar.mjs +0 -5
  210. package/esm2022/mat-avatar/src/onemrva-mat-avatar.component.mjs +0 -440
  211. package/esm2022/mat-avatar/src/onemrva-mat-avatar.module.mjs +0 -19
  212. package/esm2022/mat-badge/index.mjs +0 -6
  213. package/esm2022/mat-badge/onemrvapublic-design-system-mat-badge.mjs +0 -5
  214. package/esm2022/mat-badge/src/onemrva-mat-badge.component.mjs +0 -250
  215. package/esm2022/mat-badge/src/onemrva-mat-badge.module.mjs +0 -16
  216. package/esm2022/mat-breadcrumb/index.mjs +0 -7
  217. package/esm2022/mat-breadcrumb/onemrvapublic-design-system-mat-breadcrumb.mjs +0 -5
  218. package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.mjs +0 -19
  219. package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.mjs +0 -2
  220. package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.mjs +0 -20
  221. package/esm2022/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.mjs +0 -59
  222. package/esm2022/mat-carousel/index.mjs +0 -3
  223. package/esm2022/mat-carousel/onemrvapublic-design-system-mat-carousel.mjs +0 -5
  224. package/esm2022/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.mjs +0 -23
  225. package/esm2022/mat-carousel/src/onemrva-mat-carousel.component.mjs +0 -175
  226. package/esm2022/mat-copy-to-clipboard/index.mjs +0 -2
  227. package/esm2022/mat-copy-to-clipboard/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +0 -5
  228. package/esm2022/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.mjs +0 -85
  229. package/esm2022/mat-datepicker-header/index.mjs +0 -5
  230. package/esm2022/mat-datepicker-header/onemrvapublic-design-system-mat-datepicker-header.mjs +0 -5
  231. package/esm2022/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.mjs +0 -203
  232. package/esm2022/mat-empty-row/index.mjs +0 -2
  233. package/esm2022/mat-empty-row/onemrvapublic-design-system-mat-empty-row.mjs +0 -5
  234. package/esm2022/mat-empty-row/src/onemrva-mat-empty-row.component.mjs +0 -35
  235. package/esm2022/mat-file-upload/index.mjs +0 -11
  236. package/esm2022/mat-file-upload/onemrvapublic-design-system-mat-file-upload.mjs +0 -5
  237. package/esm2022/mat-file-upload/src/components/index.mjs +0 -9
  238. package/esm2022/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.mjs +0 -88
  239. package/esm2022/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.mjs +0 -195
  240. package/esm2022/mat-file-upload/src/directives/dnd.directive.mjs +0 -53
  241. package/esm2022/mat-file-upload/src/models/action-config.model.mjs +0 -2
  242. package/esm2022/mat-file-upload/src/models/progress-file.model.mjs +0 -49
  243. package/esm2022/mat-file-upload/src/onemrva-mat-file-upload-itf.store.mjs +0 -2
  244. package/esm2022/mat-file-upload/src/onemrva-mat-file-upload.module.mjs +0 -51
  245. package/esm2022/mat-file-upload/src/onemrva-mat-file-upload.service.mjs +0 -49
  246. package/esm2022/mat-file-upload/src/onemrva-mat-file-upload.store.mjs +0 -320
  247. package/esm2022/mat-input-birthplace/index.mjs +0 -5
  248. package/esm2022/mat-input-birthplace/onemrvapublic-design-system-mat-input-birthplace.mjs +0 -5
  249. package/esm2022/mat-input-birthplace/src/country-item.component.mjs +0 -31
  250. package/esm2022/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.mjs +0 -120
  251. package/esm2022/mat-input-country/index.mjs +0 -5
  252. package/esm2022/mat-input-country/onemrvapublic-design-system-mat-input-country.mjs +0 -5
  253. package/esm2022/mat-input-country/src/onemrva-mat-input-country.component.mjs +0 -90
  254. package/esm2022/mat-input-enterprise-number/index.mjs +0 -5
  255. package/esm2022/mat-input-enterprise-number/onemrvapublic-design-system-mat-input-enterprise-number.mjs +0 -5
  256. package/esm2022/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.mjs +0 -180
  257. package/esm2022/mat-input-iban/index.mjs +0 -5
  258. package/esm2022/mat-input-iban/onemrvapublic-design-system-mat-input-iban.mjs +0 -5
  259. package/esm2022/mat-input-iban/src/onemrva-mat-input-iban.component.mjs +0 -295
  260. package/esm2022/mat-input-phone/index.mjs +0 -6
  261. package/esm2022/mat-input-phone/onemrvapublic-design-system-mat-input-phone.mjs +0 -5
  262. package/esm2022/mat-input-phone/src/onemrva-mat-input-phone.component.mjs +0 -234
  263. package/esm2022/mat-input-phone/src/phone-number.directive.mjs +0 -51
  264. package/esm2022/mat-message-box/index.mjs +0 -3
  265. package/esm2022/mat-message-box/onemrvapublic-design-system-mat-message-box.mjs +0 -5
  266. package/esm2022/mat-message-box/src/onemrva-mat-message-box.component.mjs +0 -175
  267. package/esm2022/mat-message-box/src/onemrva-mat-message-box.module.mjs +0 -20
  268. package/esm2022/mat-multi-select/index.mjs +0 -3
  269. package/esm2022/mat-multi-select/onemrvapublic-design-system-mat-multi-select.mjs +0 -5
  270. package/esm2022/mat-multi-select/src/onemrva-mat-multi-select.component.mjs +0 -200
  271. package/esm2022/mat-multi-select/src/onemrva-mat-multi-select.module.mjs +0 -51
  272. package/esm2022/mat-notification/index.mjs +0 -2
  273. package/esm2022/mat-notification/onemrvapublic-design-system-mat-notification.mjs +0 -5
  274. package/esm2022/mat-notification/src/onemrva-mat-notification.component.mjs +0 -165
  275. package/esm2022/mat-paginator/index.mjs +0 -6
  276. package/esm2022/mat-paginator/onemrvapublic-design-system-mat-paginator.mjs +0 -5
  277. package/esm2022/mat-paginator/src/onemrva-mat-paginator.component.mjs +0 -217
  278. package/esm2022/mat-paginator/src/onemrva-mat-paginator.module.mjs +0 -36
  279. package/esm2022/mat-panel/index.mjs +0 -7
  280. package/esm2022/mat-panel/onemrvapublic-design-system-mat-panel.mjs +0 -5
  281. package/esm2022/mat-panel/src/onemrva-mat-panel-content.component.mjs +0 -17
  282. package/esm2022/mat-panel/src/onemrva-mat-panel-icon.component.mjs +0 -17
  283. package/esm2022/mat-panel/src/onemrva-mat-panel-title-action.component.mjs +0 -17
  284. package/esm2022/mat-panel/src/onemrva-mat-panel-title.component.mjs +0 -27
  285. package/esm2022/mat-panel/src/onemrva-mat-panel.component.mjs +0 -132
  286. package/esm2022/mat-panel/src/onemrva-mat-panel.module.mjs +0 -42
  287. package/esm2022/mat-pop-over/index.mjs +0 -5
  288. package/esm2022/mat-pop-over/onemrvapublic-design-system-mat-pop-over.mjs +0 -5
  289. package/esm2022/mat-pop-over/src/onemrva-mat-pop-over-content.component.mjs +0 -23
  290. package/esm2022/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.mjs +0 -23
  291. package/esm2022/mat-pop-over/src/onemrva-mat-pop-over.component.mjs +0 -46
  292. package/esm2022/mat-pop-over/src/onemrva-mat-pop-over.module.mjs +0 -30
  293. package/esm2022/mat-progress-bar/index.mjs +0 -2
  294. package/esm2022/mat-progress-bar/onemrvapublic-design-system-mat-progress-bar.mjs +0 -5
  295. package/esm2022/mat-progress-bar/src/onemrva-mat-progress-bar.component.mjs +0 -29
  296. package/esm2022/mat-select-search/index.mjs +0 -4
  297. package/esm2022/mat-select-search/onemrvapublic-design-system-mat-select-search.mjs +0 -5
  298. package/esm2022/mat-select-search/src/default-options.mjs +0 -35
  299. package/esm2022/mat-select-search/src/mat-select-no-entries-found.directive.mjs +0 -22
  300. package/esm2022/mat-select-search/src/mat-select-search-clear.directive.mjs +0 -20
  301. package/esm2022/mat-select-search/src/mat-select-search.component.mjs +0 -589
  302. package/esm2022/mat-select-search/src/mat-select-search.module.mjs +0 -79
  303. package/esm2022/mat-selectable-box/index.mjs +0 -6
  304. package/esm2022/mat-selectable-box/onemrvapublic-design-system-mat-selectable-box.mjs +0 -5
  305. package/esm2022/mat-selectable-box/src/onemrva-mat-selectable-box.component.mjs +0 -56
  306. package/esm2022/mat-selectable-box/src/onemrva-mat-selectable-box.module.mjs +0 -56
  307. package/esm2022/mat-side-menu/index.mjs +0 -6
  308. package/esm2022/mat-side-menu/onemrvapublic-design-system-mat-side-menu.mjs +0 -5
  309. package/esm2022/mat-side-menu/src/onemrva-mat-side-menu.component.mjs +0 -48
  310. package/esm2022/mat-side-menu/src/onemrva-mat-side-menu.module.mjs +0 -21
  311. package/esm2022/mat-skeleton/index.mjs +0 -4
  312. package/esm2022/mat-skeleton/onemrvapublic-design-system-mat-skeleton.mjs +0 -5
  313. package/esm2022/mat-skeleton/src/onemrva-mat-skeleton-enums.mjs +0 -20
  314. package/esm2022/mat-skeleton/src/onemrva-mat-skeleton.component.mjs +0 -202
  315. package/esm2022/mat-skeleton/src/onemrva-mat-skeleton.module.mjs +0 -18
  316. package/esm2022/mat-spinner/index.mjs +0 -7
  317. package/esm2022/mat-spinner/onemrvapublic-design-system-mat-spinner.mjs +0 -5
  318. package/esm2022/mat-spinner/src/onemrva-mat-loading.directive.mjs +0 -33
  319. package/esm2022/mat-spinner/src/onemrva-mat-spinner.component.mjs +0 -73
  320. package/esm2022/mat-spinner/src/onemrva-mat-spinner.module.mjs +0 -18
  321. package/esm2022/mat-stepper/index.mjs +0 -6
  322. package/esm2022/mat-stepper/onemrvapublic-design-system-mat-stepper.mjs +0 -5
  323. package/esm2022/mat-stepper/src/onemrva-mat-stepper.component.mjs +0 -74
  324. package/esm2022/mat-stepper/src/onemrva-mat-stepper.module.mjs +0 -44
  325. package/esm2022/mat-stepper/src/onemrva-stepper-animations.mjs +0 -28
  326. package/esm2022/mat-sticker/index.mjs +0 -6
  327. package/esm2022/mat-sticker/onemrvapublic-design-system-mat-sticker.mjs +0 -5
  328. package/esm2022/mat-sticker/src/onemrva-mat-sticker.component.mjs +0 -69
  329. package/esm2022/mat-sticker/src/onemrva-mat-sticker.module.mjs +0 -18
  330. package/esm2022/mat-table-of-content/index.mjs +0 -8
  331. package/esm2022/mat-table-of-content/onemrvapublic-design-system-mat-table-of-content.mjs +0 -5
  332. package/esm2022/mat-table-of-content/src/onemrva-mat-table-of-content.component.mjs +0 -104
  333. package/esm2022/mat-table-of-content/src/onemrva-mat-table-of-content.directive.mjs +0 -60
  334. package/esm2022/mat-table-of-content/src/onemrva-mat-table-of-content.service.mjs +0 -46
  335. package/esm2022/mat-table-of-content/src/onemrva-mat-toc-anchor.model.mjs +0 -11
  336. package/esm2022/mat-task-list/index.mjs +0 -6
  337. package/esm2022/mat-task-list/onemrvapublic-design-system-mat-task-list.mjs +0 -5
  338. package/esm2022/mat-task-list/src/onemrva-mat-task-content.component.mjs +0 -17
  339. package/esm2022/mat-task-list/src/onemrva-mat-task-list.component.mjs +0 -36
  340. package/esm2022/mat-task-list/src/onemrva-mat-task-list.module.mjs +0 -51
  341. package/esm2022/mat-task-list/src/onemrva-mat-task-title.component.mjs +0 -23
  342. package/esm2022/mat-task-list/src/onemrva-mat-task.component.mjs +0 -140
  343. package/esm2022/mat-timepicker/index.mjs +0 -7
  344. package/esm2022/mat-timepicker/onemrvapublic-design-system-mat-timepicker.mjs +0 -5
  345. package/esm2022/mat-timepicker/src/clock/clock.component.mjs +0 -232
  346. package/esm2022/mat-timepicker/src/interfaces-and-types.mjs +0 -2
  347. package/esm2022/mat-timepicker/src/onemrva-mat-timepicker.component.mjs +0 -279
  348. package/esm2022/mat-timepicker/src/onemrva-mat-timepicker.module.mjs +0 -62
  349. package/esm2022/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.mjs +0 -129
  350. package/esm2022/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.mjs +0 -115
  351. package/esm2022/mat-timepicker/src/timepicker.directive.mjs +0 -512
  352. package/esm2022/mat-timepicker/src/util.mjs +0 -83
  353. package/esm2022/mat-toast/index.mjs +0 -6
  354. package/esm2022/mat-toast/onemrvapublic-design-system-mat-toast.mjs +0 -5
  355. package/esm2022/mat-toast/src/onemrva-mat-toast.component.mjs +0 -52
  356. package/esm2022/mat-toast/src/onemrva-mat-toast.module.mjs +0 -19
  357. package/esm2022/mat-tooltip/index.mjs +0 -5
  358. package/esm2022/mat-tooltip/onemrvapublic-design-system-mat-tooltip.mjs +0 -5
  359. package/esm2022/mat-tooltip/src/onemrva-mat-tooltip.component.mjs +0 -36
  360. package/esm2022/mat-tooltip/src/onemrva-mat-tooltip.directive.mjs +0 -111
  361. package/esm2022/mat-tooltip/src/onemrva-mat-tooltip.module.mjs +0 -19
  362. package/esm2022/onemrvapublic-design-system.mjs +0 -5
  363. package/esm2022/page-error/index.mjs +0 -3
  364. package/esm2022/page-error/onemrvapublic-design-system-page-error.mjs +0 -5
  365. package/esm2022/page-error/src/page-error-action.component.mjs +0 -18
  366. package/esm2022/page-error/src/page-error.component.mjs +0 -61
  367. package/esm2022/page-not-found/index.mjs +0 -6
  368. package/esm2022/page-not-found/onemrvapublic-design-system-page-not-found.mjs +0 -5
  369. package/esm2022/page-not-found/src/page-not-found-action.component.mjs +0 -17
  370. package/esm2022/page-not-found/src/page-not-found-extra.component.mjs +0 -17
  371. package/esm2022/page-not-found/src/page-not-found-invader.component.mjs +0 -94
  372. package/esm2022/page-not-found/src/page-not-found.component.mjs +0 -54
  373. package/esm2022/page-not-found/src/page-not-found.module.mjs +0 -38
  374. package/esm2022/public-api.mjs +0 -5
  375. package/esm2022/shared/index.mjs +0 -19
  376. package/esm2022/shared/onemrvapublic-design-system-shared.mjs +0 -5
  377. package/esm2022/shared/src/lib/adapters/index.mjs +0 -3
  378. package/esm2022/shared/src/lib/adapters/luxon.date.adapter.mjs +0 -251
  379. package/esm2022/shared/src/lib/adapters/luxon.utils.mjs +0 -23
  380. package/esm2022/shared/src/lib/adapters/native.date.adapter.mjs +0 -66
  381. package/esm2022/shared/src/lib/components/clipboard-icon/clipboard-icon.component.mjs +0 -20
  382. package/esm2022/shared/src/lib/components/index.mjs +0 -2
  383. package/esm2022/shared/src/lib/constants/CDNUrlModeOptions.mjs +0 -6
  384. package/esm2022/shared/src/lib/constants/cdn.mjs +0 -3
  385. package/esm2022/shared/src/lib/constants/constants.mjs +0 -7
  386. package/esm2022/shared/src/lib/constants/date.format.mjs +0 -95
  387. package/esm2022/shared/src/lib/constants/index.mjs +0 -5
  388. package/esm2022/shared/src/lib/containers/WebComponentOverlayContainer.mjs +0 -84
  389. package/esm2022/shared/src/lib/containers/index.mjs +0 -2
  390. package/esm2022/shared/src/lib/decorators/HttpCacheDecorator.mjs +0 -123
  391. package/esm2022/shared/src/lib/decorators/index.mjs +0 -2
  392. package/esm2022/shared/src/lib/directives/clipboard.directive.mjs +0 -39
  393. package/esm2022/shared/src/lib/directives/color.directive.mjs +0 -64
  394. package/esm2022/shared/src/lib/directives/digit-only.directive.mjs +0 -52
  395. package/esm2022/shared/src/lib/directives/iconRight.directive.mjs +0 -22
  396. package/esm2022/shared/src/lib/directives/if-width-is.directive.mjs +0 -34
  397. package/esm2022/shared/src/lib/directives/index.mjs +0 -24
  398. package/esm2022/shared/src/lib/directives/mask.directive.mjs +0 -198
  399. package/esm2022/shared/src/lib/directives/mat-row-clickable.directive.mjs +0 -74
  400. package/esm2022/shared/src/lib/helpers/index.mjs +0 -2
  401. package/esm2022/shared/src/lib/helpers/translation-helper.mjs +0 -58
  402. package/esm2022/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.mjs +0 -2
  403. package/esm2022/shared/src/lib/interfaces/index.mjs +0 -2
  404. package/esm2022/shared/src/lib/loaders/index.mjs +0 -3
  405. package/esm2022/shared/src/lib/loaders/onemrva-translate-cdn-loader.mjs +0 -15
  406. package/esm2022/shared/src/lib/loaders/onemrva-translate-http-loader.mjs +0 -30
  407. package/esm2022/shared/src/lib/pipes/index.mjs +0 -3
  408. package/esm2022/shared/src/lib/pipes/onemrva-bce.pipe.mjs +0 -20
  409. package/esm2022/shared/src/lib/pipes/onemrva-niss.pipe.mjs +0 -20
  410. package/esm2022/shared/src/lib/providers/index.mjs +0 -5
  411. package/esm2022/shared/src/lib/providers/onemrva.date.luxon.provider.mjs +0 -16
  412. package/esm2022/shared/src/lib/providers/onemrva.date.luxon.year.month.provider.mjs +0 -16
  413. package/esm2022/shared/src/lib/providers/onemrva.date.native.provider.mjs +0 -16
  414. package/esm2022/shared/src/lib/providers/onemrva.date.native.year.month.provider.mjs +0 -16
  415. package/esm2022/shared/src/lib/services/cache.service.mjs +0 -31
  416. package/esm2022/shared/src/lib/services/cdn.service.mjs +0 -105
  417. package/esm2022/shared/src/lib/services/country-cdn.service.mjs +0 -75
  418. package/esm2022/shared/src/lib/services/country-lookup.service.mjs +0 -43
  419. package/esm2022/shared/src/lib/services/index.mjs +0 -5
  420. package/esm2022/shared/src/lib/services/mime-cdn.service.mjs +0 -45
  421. package/esm2022/shared/src/lib/shared.module.mjs +0 -25
  422. package/esm2022/shared/src/lib/tokens/index.mjs +0 -2
  423. package/esm2022/shared/src/lib/tokens/lookup.token.mjs +0 -7
  424. package/esm2022/shared/src/lib/validators/bank-account.validator.utils.mjs +0 -56
  425. package/esm2022/shared/src/lib/validators/index.mjs +0 -3
  426. package/esm2022/shared/src/lib/validators/onemrva-validators.mjs +0 -75
  427. package/esm2022/utils/index.mjs +0 -3
  428. package/esm2022/utils/onemrvapublic-design-system-utils.mjs +0 -5
  429. package/esm2022/utils/src/enum.utils.mjs +0 -7
  430. package/esm2022/utils/src/enums/color.enum.mjs +0 -12
  431. package/esm2022/utils/src/enums/index.mjs +0 -3
  432. package/esm2022/utils/src/enums/size.enum.mjs +0 -9
  433. package/fesm2022/onemrvapublic-design-system-mat-badge.mjs +0 -274
  434. package/fesm2022/onemrvapublic-design-system-mat-badge.mjs.map +0 -1
  435. package/mat-badge/index.d.ts +0 -2
  436. package/mat-badge/src/onemrva-mat-badge.component.d.ts +0 -89
  437. package/mat-badge/src/onemrva-mat-badge.component.scss +0 -157
  438. package/mat-badge/src/onemrva-mat-badge.module.d.ts +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-file-upload.mjs","sources":["../../../../projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/components/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts","../../../../projects/onemrva/design-system/mat-file-upload/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/onemrvapublic-design-system-mat-file-upload.ts"],"sourcesContent":["import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface ProgressFile {\n file?: File;\n message: string;\n progress: number;\n color: OnemrvaMatColor; // color 1 - 1 with status\n url: string | null;\n id: string | null; // backend identifier\n enableProgressBar: boolean;\n data?: any;\n\n name: string;\n lastModified?: number;\n size: number;\n type: string;\n}\n\nexport interface ReferencedProgressFile extends ProgressFile {\n ref: symbol; // ref is a frontend identifier\n}\n\n/**\n * format bytes\n * @param bytes (File size in bytes)\n * @param decimals (Decimals point)\n */\nexport function formatBytes(bytes: number, decimals = 2) {\n if (bytes === 0) {\n return '0 Bytes';\n }\n const k = 1024;\n const dm = decimals <= 0 ? 0 : decimals || 2;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];\n}\n\nexport function formattedSize(size: number, decimals = 2) {\n return formatBytes(size, decimals);\n}\n\nexport function convertToProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n): ProgressFile {\n return {\n id: id!,\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n };\n}\n\nexport function convertToReferencedProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n): ReferencedProgressFile {\n return {\n id: id!,\n ref: Symbol(name),\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n} from '@angular/core';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\nimport { of } from 'rxjs';\nimport { ActionConfig } from '../../models/action-config.model';\nimport {\n formattedSize,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'file-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./onemrva-file-panel.component.scss'],\n templateUrl: './onemrva-file-panel.component.html',\n})\nexport class OnemrvaFilePanelComponent {\n @HostBinding('attr.id')\n @Input()\n public id = `onemrva-file-panel-${NEXT_ID++}`;\n\n @HostBinding('attr.data-cy')\n @Input()\n dataCy: string = 'onemrva-file-panel-' + NEXT_ID;\n\n @Input()\n file!: ReferencedProgressFile;\n\n @Input()\n actions: ActionConfig[] = [];\n\n @Input()\n showProgress = true;\n\n @Input()\n displayDate = '';\n\n get progress$() {\n return of(this.file.progress);\n }\n\n get size() {\n return formattedSize(this.file.size);\n }\n\n get color(): OnemrvaMatColor {\n return this.file.color;\n }\n\n /** @hidden @internal */\n @HostBinding('mat-accent')\n public get _colorAccent(): boolean {\n return this.color === OnemrvaMatColor.ACCENT;\n }\n\n /** @hidden @internal */\n @HostBinding('class.mat-error')\n public get _isError(): boolean {\n return this.color === OnemrvaMatColor.ERROR;\n }\n /** @hidden @internal */\n @HostBinding('class.mat-warn')\n public get _isWarn(): boolean {\n return this.color === OnemrvaMatColor.WARN;\n }\n /** @hidden @internal */\n @HostBinding('class.mat-success')\n public get _isSuccess(): boolean {\n return this.color === OnemrvaMatColor.SUCCESS;\n }\n /** @hidden @internal */\n @HostBinding('class.mat-primary')\n public get _isPrimary(): boolean {\n return this.color === OnemrvaMatColor.PRIMARY;\n }\n}\n","<div class=\"file-panel-title\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <mat-icon *ngIf=\"file.color === 'error'\" class=\"filled mat-error\"\n >error</mat-icon\n >\n <mat-icon *ngIf=\"file.color === 'success'\" class=\"filled mat-success\"\n >check_circle</mat-icon\n >\n <mat-icon *ngIf=\"file.color === 'warn'\" class=\"filled mat-warn\"\n >warning</mat-icon\n >\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action\">\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\n <div\n class=\"onemrva-progress-bar\"\n *ngIf=\"showProgress && file.enableProgressBar\"\n >\n <div class=\"onemrva-progress-bar-outer mt-s\" #onemrvaProgressBar>\n <div\n class=\"onemrva-progress-bar-inner\"\n [ngStyle]=\"{ width: (progress$ | async) + '%' }\"\n [ngClass]=\"{\n 'progress-success': (progress$ | async)! >= 100,\n }\"\n data-cy=\"file-upload-progress\"\n [attr.value]=\"progress$ | async\"\n ></div>\n </div>\n </div>\n </ng-container>\n <p *ngIf=\"file.message !== ''\" class=\"message\">{{ file.message }}</p>\n</div>\n","import {\n HttpEvent,\n HttpEventType,\n HttpProgressEvent,\n HttpResponse,\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n BehaviorSubject,\n catchError,\n interval,\n map,\n Observable,\n of,\n take,\n} from 'rxjs';\nimport { ProgressFile } from './models/progress-file.model';\n\nexport interface OnemrvaMatFileUploadInterface {\n listUploadedFiles: (inputs: any) => Observable<ProgressFile[]>;\n upload: (file: ProgressFile) => Observable<HttpEvent<any>>;\n deleteFile: (id: any) => Observable<any>;\n retry: (file: any) => Observable<any>;\n downloadFile?: (id: any) => Observable<any>;\n isSending: BehaviorSubject<boolean>;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OnemrvaMatFileUploadService\n implements OnemrvaMatFileUploadInterface\n{\n public isSending = new BehaviorSubject(false);\n\n constructor() {\n alert(\n \"Don't forget to add a provider in your component with your own implementation of OnemrvaMatFileUploadInterface. Check out the demo to have an example of how to do it\",\n );\n }\n\n listUploadedFiles(_inputs: any): Observable<ProgressFile[]> {\n return of([]);\n }\n\n upload(_file: ProgressFile): Observable<HttpEvent<any>> {\n return interval(50).pipe(\n take(101),\n map(i => {\n if (i < 100) {\n return {\n type: HttpEventType.UploadProgress,\n loaded: i,\n total: 100,\n } as HttpProgressEvent;\n } else {\n if (i >= 100 && Math.random() > 0.5) {\n throw 'Fake error thrown';\n }\n return new HttpResponse<any>();\n }\n }),\n catchError(() => of(new HttpResponse<any>({ body: {}, status: 500 }))),\n );\n }\n\n deleteFile(_id: any): Observable<any> {\n return of('F = m.a');\n }\n\n retry(file: any): Observable<any> {\n return of(file);\n }\n\n downloadFile(id: any): Observable<any> {\n alert(`Missing download implementation for file ID ${id}`);\n return of(true);\n }\n}\n","import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';\nimport { ComponentStore } from '@ngrx/component-store';\nimport { TranslateService } from '@ngx-translate/core';\nimport {\n catchError,\n filter,\n forkJoin,\n interval,\n map,\n merge,\n mergeMap,\n Observable,\n of,\n switchMap,\n take,\n takeWhile,\n tap,\n throttle,\n withLatestFrom,\n} from 'rxjs';\nimport { OnemrvaMatFileUploadService } from './onemrva-mat-file-upload.service';\nimport {\n formattedSize,\n ProgressFile,\n ReferencedProgressFile,\n} from './models/progress-file.model';\nimport { HttpEvent, HttpEventType } from '@angular/common/http';\nimport { OnemrvaMatFileUploadStoreItf } from './onemrva-mat-file-upload-itf.store';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface FileUploadStoreEvent {\n type: string;\n payload?: any;\n}\n\nexport interface UploadState {\n upload: ReferencedProgressFile[];\n accept: string[];\n maxFileSize: number;\n fileUploadError: string;\n event: FileUploadStoreEvent;\n}\n\nconst INIT_STATE: UploadState = {\n upload: [],\n accept: [],\n maxFileSize: 0,\n fileUploadError: '',\n event: {\n type: 'INIT',\n },\n};\n\nexport type CustomValidationFn = (\n input: [ReferencedProgressFile, ReferencedProgressFile[]],\n) => ReferencedProgressFile;\n\nexport const CUSTOM_VALIDATION_FN = new InjectionToken<CustomValidationFn>(\n 'x1, x2 = (-b -+ sqrt(rho))/2a',\n);\n\n@Injectable()\nexport class OnemrvaMatFileUploadStore\n extends ComponentStore<UploadState>\n implements OnemrvaMatFileUploadStoreItf\n{\n private fn: CustomValidationFn = (\n x: [ReferencedProgressFile, ReferencedProgressFile[]],\n ) => {\n return x[0];\n };\n\n public isSending = this.fileUploadService.isSending;\n\n constructor(\n private fileUploadService: OnemrvaMatFileUploadService,\n private translateService: TranslateService,\n @Optional()\n @Inject(CUSTOM_VALIDATION_FN)\n public customValidationFn: CustomValidationFn,\n ) {\n super(INIT_STATE);\n if (customValidationFn) this.fn = customValidationFn;\n }\n\n /*\n * U P D A T E R S\n */\n public readonly setAccept = this.updater((state, accept: string[]) => ({\n ...state,\n accept,\n event: {\n type: 'setAccept',\n payload: accept,\n },\n }));\n\n public readonly setMaxFileSize = this.updater(\n (state, maxFileSize: number) => ({\n ...state,\n maxFileSize,\n event: {\n type: 'setMaxFileSize',\n payload: maxFileSize,\n },\n }),\n );\n\n private readonly emptyList = this.updater(state => {\n return {\n ...state,\n upload: [],\n event: {\n type: 'emptyList',\n },\n };\n });\n\n private readonly pushFile = this.updater(\n (state, payload: ReferencedProgressFile) => {\n return {\n ...state,\n upload: [...state.upload, { ...payload }],\n event: {\n type: 'pushFile',\n payload,\n },\n };\n },\n );\n\n public readonly setData = this.updater(\n (state, payload: { ref: symbol; data: any }) => {\n return {\n ...state,\n upload: state.upload.map((file: ReferencedProgressFile) =>\n file.ref === payload.ref ? { ...file, data: payload.data } : file,\n ),\n event: {\n type: 'setData',\n payload,\n },\n };\n },\n );\n\n private readonly setSuccess = this.updater(\n (state, payload: { ref: symbol; body: any }) => {\n const newFile = {\n ...state.upload.find(f => f.ref === payload.ref),\n ...payload.body,\n color: 'success',\n progress: 100,\n };\n\n return {\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref ? newFile : file,\n ),\n event: {\n type: 'setData',\n payload: newFile,\n },\n };\n },\n );\n\n private readonly setFail = this.updater(\n (\n state,\n payload: { ref: symbol; message: string; color: OnemrvaMatColor },\n ) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, message: payload.message, color: payload.color }\n : file,\n ),\n event: {\n type: 'setFail',\n payload,\n },\n }),\n );\n\n private readonly setProgress = this.updater(\n (state, payload: { ref: symbol; progress: number }) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, progress: payload.progress }\n : file,\n ),\n event: {\n type: 'setProgress',\n payload,\n },\n }),\n );\n\n private readonly reset = this.updater((state, ref: symbol) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === ref\n ? { ...file, progress: 0, message: '', color: '' }\n : file,\n ),\n event: {\n type: 'reset',\n payload: ref,\n },\n }));\n\n private readonly remove = this.updater(\n (state, payload: ReferencedProgressFile) => ({\n ...state,\n upload: state.upload.filter(f => f.ref !== payload.ref),\n event: {\n type: 'remove',\n payload,\n },\n }),\n );\n\n private readonly enableProgressBar = this.updater(state => ({\n ...state,\n upload: state.upload.map(file => ({ ...file, enableProgressBar: true })),\n event: {\n type: 'enableProgressBar',\n },\n }));\n\n public readonly setFileUploadError = this.updater(\n (state, fileUploadError: string) => ({\n ...state,\n fileUploadError,\n event: {\n type: 'setFileUploadError',\n payload: fileUploadError,\n },\n }),\n );\n\n public readonly clearFileUploadError = this.updater(state => ({\n ...state,\n fileUploadError: '',\n event: {\n type: 'clearFileUploadError',\n },\n }));\n\n /*\n * S E L E C T O R S\n */\n readonly files$ = this.select(state => state.upload);\n readonly accept$ = this.select(state => state.accept);\n readonly event$ = this.select(state => state.event);\n readonly maxFileSize$ = this.select(state => state.maxFileSize);\n readonly fileUploadError$ = this.select(state => state.fileUploadError);\n\n /*\n * A C T I O N S / E F F E C T S\n */\n readonly listUploadedFiles = this.effect((inputs$: Observable<any>) => {\n return inputs$.pipe(\n tap(() => {\n this.emptyList();\n }),\n mergeMap((inputs: any) => {\n return this.fileUploadService.listUploadedFiles(inputs).pipe(\n //take(1),\n withLatestFrom(this.files$),\n tap(() => {\n // added to avoid ide errors\n }),\n tap(([newfiles, registeredFiles]) => {\n newfiles.forEach(file => {\n if (\n registeredFiles.findIndex(rfile => rfile.id === file.id) < 0\n ) {\n this.pushFile({\n ...file,\n color: 'success',\n progress: 100,\n ref: Symbol('H.psi = E.psi'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n });\n }\n });\n }),\n catchError(() => of([])),\n );\n }),\n );\n });\n\n readonly deleteFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n mergeMap((file: any) =>\n this.fileUploadService.deleteFile(file.id).pipe(\n //take(1),\n tap(() => {\n this.remove(file);\n }),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.delete.error',\n });\n return of(null);\n }),\n ),\n ),\n );\n },\n );\n\n readonly removeFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n tap(file => {\n this.remove(file);\n }),\n );\n },\n );\n\n private progressFileChecker = (file$: Observable<any>) => {\n return file$.pipe(\n withLatestFrom(this.accept$),\n\n map(([file, accept]) => {\n // Step 1 - Add a new file in the view\n let f: ReferencedProgressFile = { ...file };\n if (file.ref === undefined) {\n f = {\n ...f,\n ref: Symbol('v_sound = sqrt(gamma.P / rho)'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n };\n this.pushFile(f);\n }\n\n // Step 2 - Check file extension\n if (!accept.includes(file.file!.type)) {\n this.setFail({\n ref: f.ref,\n color: OnemrvaMatColor.ERROR,\n message: this.translateService.instant(\n 'file.upload.type.not.supported',\n ),\n });\n // This trick coupled with the next filter is used to avoid catchError, which would break the effect\n return { ...f, message: 'ERROR' };\n }\n return f;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.maxFileSize$),\n\n map(([refFile, maxFileSize]) => {\n // Step 3 - Check file size\n if (maxFileSize !== 0 && refFile.size > maxFileSize) {\n this.setFail({\n ref: refFile.ref,\n color: OnemrvaMatColor.ERROR,\n message:\n this.translateService.instant('file.upload.too.big') +\n ' ' +\n formattedSize(refFile.size),\n });\n // Same trick for error management\n return { ...refFile, message: 'ERROR' };\n }\n return refFile;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.files$),\n map(this.fn), // For custom validations\n tap(x => {\n if (!!x.message && x.message.startsWith('ERROR:'))\n this.setFileUploadError(x.message.replace('ERROR:', '').trim());\n else this.clearFileUploadError();\n }),\n filter(x => !x.message.startsWith('ERROR')),\n );\n };\n\n private loadStep = (file: any) => {\n if (file.color === OnemrvaMatColor.WARN) this.reset(file.ref);\n\n this.enableProgressBar();\n\n return this.fileUploadService.upload(file).pipe(\n throttle(() => interval(200), { leading: true, trailing: true }),\n tap((event: HttpEvent<any>) => {\n if (event.type === HttpEventType.UploadProgress) {\n this.setProgress({\n ref: file.ref,\n progress: Math.round((100 * event.loaded) / event.total!),\n });\n }\n\n if (event.type === HttpEventType.Response) {\n this.setSuccess({ ref: file.ref, body: event.body });\n }\n }),\n takeWhile(\n (event: HttpEvent<any>) => event.type === HttpEventType.UploadProgress,\n ),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.retry.error',\n });\n return of(null);\n }),\n );\n };\n\n /**\n * For adding one file panel (creation of file panel reference skipped if already created) at a time.\n * Upload to BE not triggered\n */\n readonly addForPotentialUpload = this.effect(\n (file$: Observable<ProgressFile>) => this.progressFileChecker(file$),\n );\n\n /**\n * For adding an array of file panels (creation of file panels reference skipped if already created).\n * Uploads to BE not triggered\n */\n readonly addSeveralForPotentialUpload = this.effect(\n (files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n forkJoin(files.map(file => this.progressFileChecker(of(file)))),\n ),\n ),\n );\n\n /**\n * For adding a file panel (creation of file panels reference skipped if already created) then uploading it\n */\n readonly uploadFile = this.effect((file$: Observable<ProgressFile>) => {\n return this.progressFileChecker(file$).pipe(mergeMap(this.loadStep));\n });\n\n readonly retryFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) =>\n this.progressFileChecker(file$).pipe(mergeMap(this.loadStep)),\n );\n\n /**\n * For adding several file panels (creation of file panels reference skipped if already created) then uploading them\n */\n readonly uploadFiles = this.effect((files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n merge(\n ...files.map(file =>\n this.progressFileChecker(of(file)).pipe(switchMap(this.loadStep)),\n ),\n ),\n ),\n ),\n );\n}\n","import {\n Directive,\n Output,\n EventEmitter,\n HostBinding,\n HostListener,\n} from '@angular/core';\n\n@Directive({\n selector: '[appDnd]',\n})\nexport class DndDirective {\n @HostBinding('class.fileover') fileOver = false;\n\n @Output() fileDropped = new EventEmitter<any>();\n\n // Dragover listener\n @HostListener('dragover', ['$event']) onDragOver(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver = true;\n }\n\n // Dragleave listener\n @HostListener('dragleave', ['$event']) public onDragLeave(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver = false;\n }\n\n // Drop listener\n @HostListener('drop', ['$event']) public ondrop(evt: any) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver = false;\n const files = evt.dataTransfer.files;\n if (files.length > 0) {\n this.fileDropped.emit(files);\n }\n }\n}\n","import {\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Input,\n OnInit,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { map, Observable, take } from 'rxjs';\nimport {\n state,\n keyframes,\n style,\n animate,\n trigger,\n transition,\n} from '@angular/animations';\nimport {\n formatBytes,\n ProgressFile,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { OnemrvaMatFileUploadStore } from '../../onemrva-mat-file-upload.store';\nimport { TranslateService } from '@ngx-translate/core';\nimport { OnemRvaCDNMimeService } from '@onemrvapublic/design-system/shared';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-file-upload',\n templateUrl: 'onemrva-mat-file-upload.component.html',\n animations: [\n trigger('inOutAnimation', [\n state('in', style({ opacity: 1 })),\n transition(':enter', [\n animate(\n 300,\n keyframes([\n style({ opacity: 0, offset: 0 }),\n style({ opacity: 0.25, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.75, offset: 0.75 }),\n style({ opacity: 1, offset: 1 }),\n ]),\n ),\n ]),\n transition(':leave', [\n animate(\n 300,\n keyframes([\n style({ opacity: 1, offset: 0 }),\n style({ opacity: 0.75, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.25, offset: 0.75 }),\n style({ opacity: 0, offset: 1 }),\n ]),\n ),\n ]),\n ]),\n ],\n})\nexport class OnemrvaMatFileUploadComponent implements OnInit {\n @Input()\n accept: string[] = [];\n\n acceptString$?: Observable<any>;\n\n @Input()\n maxFileSize = 0;\n\n @Input()\n numberOfFiles = 0;\n\n @Input()\n maxTotalFileSize = 0;\n\n @Input()\n uploadOnDrop = true;\n\n @Input()\n initialFiles: ProgressFile[] = [];\n\n @Input()\n errorMessage = '';\n\n @Input()\n dropFilesHereTextTranslationKey = 'file.upload.drag.and.drop';\n\n fileUploadErrorMessage$: Observable<string>;\n\n files$: Observable<ReferencedProgressFile[]>;\n\n @Input() filePanelTemplate!: TemplateRef<any>;\n\n retryFile = new EventEmitter<{ index: number; cmpRef: symbol }>();\n\n /**\n * Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `\"onemrva-mat-multi-select-0\"`.\n *\n * @example\n * ```html\n * <onemrva-mat-multi-select id=\"my-first-multi-select\"></onemrva-mat-multi-select>\n * ```\n */\n @HostBinding('attr.data-cy')\n @Input()\n public dataCy = `onemrva-mat-multi-select-${NEXT_ID++}`;\n\n @ViewChild(`fileDropRef`)\n fileDropRef!: ElementRef;\n\n inputId = `fileDropRef-${NEXT_ID}`;\n maxFileSizeFormatted = '';\n\n constructor(\n public dialog: MatDialog,\n public mimeCDN: OnemRvaCDNMimeService,\n private translate: TranslateService,\n private fileUploadStore: OnemrvaMatFileUploadStore,\n ) {\n this.files$ = fileUploadStore.files$;\n\n this.fileUploadErrorMessage$ = this.fileUploadStore.fileUploadError$;\n }\n\n ngOnInit(): void {\n if (this.accept.length > 0) {\n this.acceptString$ = this.mimeCDN\n .getExtensionsForMime(this.accept)\n .pipe(map(arr => arr.map(item => `.${item}`).join(', ')));\n this.fileUploadStore.setAccept(this.accept);\n }\n\n this.maxFileSizeFormatted = formatBytes(this.maxFileSize);\n this.fileUploadStore.setMaxFileSize(this.maxFileSize);\n }\n\n /**\n * on file drop handler\n */\n onFileDropped($event: FileList) {\n this.prepareFilesList($event);\n }\n\n /**\n * handle file from browsing\n */\n fileBrowseHandler($event: Event) {\n const elm = $event.target as HTMLInputElement,\n files = elm.files as FileList;\n\n this.prepareFilesList(files);\n }\n\n /**\n * Convert Files list to normal array list\n * @param files (Files List)\n */\n prepareFilesList(files: FileList) {\n this.fileUploadStore.files$.pipe(take(1)).subscribe(currentFiles => {\n // if numberOffiles is set and the total length of files is smal\n // ler than it\n if (\n this.numberOfFiles > 0 &&\n files.length + currentFiles.length > this.numberOfFiles\n ) {\n // too many files\n this.errorMessage = this.translate.instant(\n 'file.upload.too.many.files',\n );\n return;\n }\n if (this.maxTotalFileSize > 0) {\n const total: number =\n Object.values(files).reduce((sum, obj) => sum + obj.size, 0) +\n currentFiles.reduce((sum, obj) => sum + obj.size, 0);\n if (total > this.maxTotalFileSize) {\n this.errorMessage = this.translate.instant(\n 'file.upload.total.max.size.exceeded',\n );\n return;\n }\n }\n\n // clear error message\n this.errorMessage = '';\n\n const fs: ProgressFile[] = [];\n for (let i = 0; i < files.length; i++) {\n const file = files.item(i);\n if (file === null) continue;\n\n const item: ProgressFile = {\n file,\n progress: 0,\n message: '',\n color: 'primary',\n url: null,\n id: null,\n enableProgressBar: this.uploadOnDrop,\n\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n };\n\n fs.push(item);\n }\n\n if (this.uploadOnDrop) this.fileUploadStore.uploadFiles(fs);\n else this.fileUploadStore.addSeveralForPotentialUpload(fs);\n\n this.fileDropRef.nativeElement.value = null;\n });\n }\n}\n","<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 'fu-error': errorMessage !== '',\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\n <mat-error *ngIf=\"errorMessage\">{{ errorMessage | translate }}</mat-error>\n\n <mat-error *ngIf=\"fileUploadErrorMessage$ | async as fileUploadErrorMessage\">\n {{ fileUploadErrorMessage | translate }}\n </mat-error>\n</ng-container>\n","import { OnemrvaFilePanelComponent } from './onemrva-mat-file-panel/onemrva-file-panel.component';\nimport { OnemrvaMatFileUploadComponent } from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n\nexport const components: any[] = [\n OnemrvaFilePanelComponent,\n OnemrvaMatFileUploadComponent,\n];\n\nexport * from './onemrva-mat-file-panel/onemrva-file-panel.component';\nexport * from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DndDirective } from './directives/dnd.directive';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { components } from './components';\nimport { MatInputModule } from '@angular/material/input';\n\n@NgModule({\n declarations: [components, DndDirective],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatTooltipModule,\n MatDialogModule,\n TranslateModule,\n MatIconModule,\n MatInputModule,\n ],\n exports: [components],\n})\nexport class OnemrvaMatFileUploadModule {}\n","/*\n * Public API Surface of mat-file upload\n */\n\nexport * from './src/components';\nexport * from './src/onemrva-mat-file-upload.module';\nexport * from './src/onemrva-mat-file-upload.store';\nexport * from './src/onemrva-mat-file-upload.service';\nexport * from './src/models/progress-file.model';\nexport * from './src/models/action-config.model';\nexport * from './src/onemrva-mat-file-upload-itf.store';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["NEXT_ID","i4","i1","i2","i3","i4.OnemrvaMatFileUploadStore","i5","i6","i8.DndDirective","i1.OnemrvaFilePanelComponent","i2.OnemrvaMatFileUploadComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA;;;;AAIG;SACa,WAAW,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC,EAAA;AACrD,IAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,QAAA,OAAO,SAAS,CAAC;KAClB;IACD,MAAM,CAAC,GAAG,IAAI,CAAC;AACf,IAAA,MAAM,EAAE,GAAG,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACxE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EA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CAAA,EAAA,CAAA,CAAA,EAAA;;4FAIL,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAdtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACxC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,gBAAgB;wBAChB,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,cAAc;AACf,qBAAA;oBACD,OAAO,EAAE,CAAC,UAAU,CAAC;AACtB,iBAAA,CAAA;;;AC1BD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-file-upload.mjs","sources":["../../../../projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/components/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts","../../../../projects/onemrva/design-system/mat-file-upload/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/onemrvapublic-design-system-mat-file-upload.ts"],"sourcesContent":["import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface ProgressFile {\n file?: File;\n message: string;\n progress: number;\n color: OnemrvaMatColor; // color 1 - 1 with status\n url: string | null;\n id: string | null; // backend identifier\n enableProgressBar: boolean;\n data?: any;\n\n name: string;\n lastModified?: number;\n size: number;\n type: string;\n}\n\nexport interface ReferencedProgressFile extends ProgressFile {\n ref: symbol; // ref is a frontend identifier\n}\n\n/**\n * format bytes\n * @param bytes (File size in bytes)\n * @param decimals (Decimals point)\n */\nexport function formatBytes(bytes: number, decimals = 2) {\n if (bytes === 0) {\n return '0 Bytes';\n }\n const k = 1024;\n const dm = decimals <= 0 ? 0 : decimals || 2;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];\n}\n\nexport function formattedSize(size: number, decimals = 2) {\n return formatBytes(size, decimals);\n}\n\nexport function convertToProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n): ProgressFile {\n return {\n id: id!,\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n };\n}\n\nexport function convertToReferencedProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n): ReferencedProgressFile {\n return {\n id: id!,\n ref: Symbol(name),\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n} from '@angular/core';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\nimport { of } from 'rxjs';\nimport { ActionConfig } from '../../models/action-config.model';\nimport {\n formattedSize,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { MatIcon } from '@angular/material/icon';\nimport { AsyncPipe, NgClass, NgForOf, NgIf, NgStyle } from '@angular/common';\nimport { MatTooltip } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'file-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./onemrva-file-panel.component.scss'],\n templateUrl: './onemrva-file-panel.component.html',\n standalone: true,\n imports: [\n MatIcon,\n NgIf,\n MatTooltip,\n TranslatePipe,\n NgForOf,\n AsyncPipe,\n NgStyle,\n NgClass,\n ],\n})\nexport class OnemrvaFilePanelComponent {\n @HostBinding('attr.id')\n @Input()\n public id = `onemrva-file-panel-${NEXT_ID++}`;\n\n @HostBinding('attr.data-cy')\n @Input()\n dataCy: string = 'onemrva-file-panel-' + NEXT_ID;\n\n @Input()\n file!: ReferencedProgressFile;\n\n @Input()\n actions: ActionConfig[] = [];\n\n @Input()\n showProgress = true;\n\n @Input()\n displayDate = '';\n\n get progress$() {\n return of(this.file.progress);\n }\n\n get size() {\n return formattedSize(this.file.size);\n }\n\n get color(): OnemrvaMatColor {\n return this.file.color;\n }\n\n /** @hidden @internal */\n @HostBinding('mat-accent')\n public get _colorAccent(): boolean {\n return this.color === OnemrvaMatColor.ACCENT;\n }\n\n /** @hidden @internal */\n @HostBinding('class.mat-error')\n public get _isError(): boolean {\n return this.color === OnemrvaMatColor.ERROR;\n }\n /** @hidden @internal */\n @HostBinding('class.mat-warn')\n public get _isWarn(): boolean {\n return this.color === OnemrvaMatColor.WARN;\n }\n /** @hidden @internal */\n @HostBinding('class.mat-success')\n public get _isSuccess(): boolean {\n return this.color === OnemrvaMatColor.SUCCESS;\n }\n /** @hidden @internal */\n @HostBinding('class.mat-primary')\n public get _isPrimary(): boolean {\n return this.color === OnemrvaMatColor.PRIMARY;\n }\n}\n","<div class=\"file-panel-title\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <mat-icon *ngIf=\"file.color === 'error'\" class=\"filled mat-error\"\n >error</mat-icon\n >\n <mat-icon *ngIf=\"file.color === 'success'\" class=\"filled mat-success\"\n >check_circle</mat-icon\n >\n <mat-icon *ngIf=\"file.color === 'warn'\" class=\"filled mat-warn\"\n >warning</mat-icon\n >\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action\">\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\n <div\n class=\"onemrva-progress-bar\"\n *ngIf=\"showProgress && file.enableProgressBar\"\n >\n <div class=\"onemrva-progress-bar-outer mt-s\">\n <div\n class=\"onemrva-progress-bar-inner\"\n [ngStyle]=\"{ width: (progress$ | async) + '%' }\"\n [ngClass]=\"{\n 'progress-success': (progress$ | async)! >= 100,\n }\"\n data-cy=\"file-upload-progress\"\n [attr.value]=\"progress$ | async\"\n ></div>\n </div>\n </div>\n </ng-container>\n <p *ngIf=\"file.message !== ''\" class=\"message\">{{ file.message }}</p>\n</div>\n","import {\n Directive,\n Output,\n EventEmitter,\n HostBinding,\n HostListener,\n} from '@angular/core';\n\n@Directive({\n selector: '[appDnd]',\n standalone: true,\n})\nexport class DndDirective {\n @HostBinding('class.fileover') fileOver = false;\n\n @Output() fileDropped = new EventEmitter<any>();\n\n // Dragover listener\n @HostListener('dragover', ['$event']) onDragOver(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver = true;\n }\n\n // Dragleave listener\n @HostListener('dragleave', ['$event']) public onDragLeave(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver = false;\n }\n\n // Drop listener\n @HostListener('drop', ['$event']) public ondrop(evt: any) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver = false;\n const files = evt.dataTransfer.files;\n if (files.length > 0) {\n this.fileDropped.emit(files);\n }\n }\n}\n","import {\n HttpEvent,\n HttpEventType,\n HttpProgressEvent,\n HttpResponse,\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n BehaviorSubject,\n catchError,\n interval,\n map,\n Observable,\n of,\n take,\n} from 'rxjs';\nimport { ProgressFile } from './models/progress-file.model';\n\nexport interface OnemrvaMatFileUploadInterface {\n listUploadedFiles: (inputs: any) => Observable<ProgressFile[]>;\n upload: (file: ProgressFile) => Observable<HttpEvent<any>>;\n deleteFile: (id: any) => Observable<any>;\n retry: (file: any) => Observable<any>;\n downloadFile?: (id: any) => Observable<any>;\n isSending: BehaviorSubject<boolean>;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OnemrvaMatFileUploadService\n implements OnemrvaMatFileUploadInterface\n{\n public isSending = new BehaviorSubject(false);\n\n constructor() {\n alert(\n \"Don't forget to add a provider in your component with your own implementation of OnemrvaMatFileUploadInterface. Check out the demo to have an example of how to do it\",\n );\n }\n\n listUploadedFiles(_inputs: any): Observable<ProgressFile[]> {\n return of([]);\n }\n\n upload(_file: ProgressFile): Observable<HttpEvent<any>> {\n return interval(50).pipe(\n take(101),\n map(i => {\n if (i < 100) {\n return {\n type: HttpEventType.UploadProgress,\n loaded: i,\n total: 100,\n } as HttpProgressEvent;\n } else {\n if (i >= 100 && Math.random() > 0.5) {\n throw 'Fake error thrown';\n }\n return new HttpResponse<any>();\n }\n }),\n catchError(() => of(new HttpResponse<any>({ body: {}, status: 500 }))),\n );\n }\n\n deleteFile(_id: any): Observable<any> {\n return of('F = m.a');\n }\n\n retry(file: any): Observable<any> {\n return of(file);\n }\n\n downloadFile(id: any): Observable<any> {\n alert(`Missing download implementation for file ID ${id}`);\n return of(true);\n }\n}\n","import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';\nimport { ComponentStore } from '@ngrx/component-store';\nimport { TranslateService } from '@ngx-translate/core';\nimport {\n catchError,\n filter,\n forkJoin,\n interval,\n map,\n merge,\n mergeMap,\n Observable,\n of,\n switchMap,\n take,\n takeWhile,\n tap,\n throttle,\n withLatestFrom,\n} from 'rxjs';\nimport { OnemrvaMatFileUploadService } from './onemrva-mat-file-upload.service';\nimport {\n formattedSize,\n ProgressFile,\n ReferencedProgressFile,\n} from './models/progress-file.model';\nimport { HttpEvent, HttpEventType } from '@angular/common/http';\nimport { OnemrvaMatFileUploadStoreItf } from './onemrva-mat-file-upload-itf.store';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface FileUploadStoreEvent {\n type: string;\n payload?: any;\n}\n\nexport interface UploadState {\n upload: ReferencedProgressFile[];\n accept: string[];\n maxFileSize: number;\n fileUploadError: string;\n event: FileUploadStoreEvent;\n}\n\nconst INIT_STATE: UploadState = {\n upload: [],\n accept: [],\n maxFileSize: 0,\n fileUploadError: '',\n event: {\n type: 'INIT',\n },\n};\n\nexport type CustomValidationFn = (\n input: [ReferencedProgressFile, ReferencedProgressFile[]],\n) => ReferencedProgressFile;\n\nexport const CUSTOM_VALIDATION_FN = new InjectionToken<CustomValidationFn>(\n 'x1, x2 = (-b -+ sqrt(rho))/2a',\n);\n\n@Injectable()\nexport class OnemrvaMatFileUploadStore\n extends ComponentStore<UploadState>\n implements OnemrvaMatFileUploadStoreItf\n{\n private fn: CustomValidationFn = (\n x: [ReferencedProgressFile, ReferencedProgressFile[]],\n ) => {\n return x[0];\n };\n\n public isSending = this.fileUploadService.isSending;\n\n constructor(\n private fileUploadService: OnemrvaMatFileUploadService,\n private translateService: TranslateService,\n @Optional()\n @Inject(CUSTOM_VALIDATION_FN)\n public customValidationFn: CustomValidationFn,\n ) {\n super(INIT_STATE);\n if (customValidationFn) this.fn = customValidationFn;\n }\n\n /*\n * U P D A T E R S\n */\n public readonly setAccept = this.updater((state, accept: string[]) => ({\n ...state,\n accept,\n event: {\n type: 'setAccept',\n payload: accept,\n },\n }));\n\n public readonly setMaxFileSize = this.updater(\n (state, maxFileSize: number) => ({\n ...state,\n maxFileSize,\n event: {\n type: 'setMaxFileSize',\n payload: maxFileSize,\n },\n }),\n );\n\n private readonly emptyList = this.updater(state => {\n return {\n ...state,\n upload: [],\n event: {\n type: 'emptyList',\n },\n };\n });\n\n private readonly pushFile = this.updater(\n (state, payload: ReferencedProgressFile) => {\n return {\n ...state,\n upload: [...state.upload, { ...payload }],\n event: {\n type: 'pushFile',\n payload,\n },\n };\n },\n );\n\n public readonly setData = this.updater(\n (state, payload: { ref: symbol; data: any }) => {\n return {\n ...state,\n upload: state.upload.map((file: ReferencedProgressFile) =>\n file.ref === payload.ref ? { ...file, data: payload.data } : file,\n ),\n event: {\n type: 'setData',\n payload,\n },\n };\n },\n );\n\n private readonly setSuccess = this.updater(\n (state, payload: { ref: symbol; body: any }) => {\n const newFile = {\n ...state.upload.find(f => f.ref === payload.ref),\n ...payload.body,\n color: 'success',\n progress: 100,\n };\n\n return {\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref ? newFile : file,\n ),\n event: {\n type: 'setData',\n payload: newFile,\n },\n };\n },\n );\n\n private readonly setFail = this.updater(\n (\n state,\n payload: { ref: symbol; message: string; color: OnemrvaMatColor },\n ) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, message: payload.message, color: payload.color }\n : file,\n ),\n event: {\n type: 'setFail',\n payload,\n },\n }),\n );\n\n private readonly setProgress = this.updater(\n (state, payload: { ref: symbol; progress: number }) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, progress: payload.progress }\n : file,\n ),\n event: {\n type: 'setProgress',\n payload,\n },\n }),\n );\n\n private readonly reset = this.updater((state, ref: symbol) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === ref\n ? { ...file, progress: 0, message: '', color: '' }\n : file,\n ),\n event: {\n type: 'reset',\n payload: ref,\n },\n }));\n\n private readonly remove = this.updater(\n (state, payload: ReferencedProgressFile) => ({\n ...state,\n upload: state.upload.filter(f => f.ref !== payload.ref),\n event: {\n type: 'remove',\n payload,\n },\n }),\n );\n\n private readonly enableProgressBar = this.updater(state => ({\n ...state,\n upload: state.upload.map(file => ({ ...file, enableProgressBar: true })),\n event: {\n type: 'enableProgressBar',\n },\n }));\n\n public readonly setFileUploadError = this.updater(\n (state, fileUploadError: string) => ({\n ...state,\n fileUploadError,\n event: {\n type: 'setFileUploadError',\n payload: fileUploadError,\n },\n }),\n );\n\n public readonly clearFileUploadError = this.updater(state => ({\n ...state,\n fileUploadError: '',\n event: {\n type: 'clearFileUploadError',\n },\n }));\n\n /*\n * S E L E C T O R S\n */\n readonly files$ = this.select(state => state.upload);\n readonly accept$ = this.select(state => state.accept);\n readonly event$ = this.select(state => state.event);\n readonly maxFileSize$ = this.select(state => state.maxFileSize);\n readonly fileUploadError$ = this.select(state => state.fileUploadError);\n\n /*\n * A C T I O N S / E F F E C T S\n */\n readonly listUploadedFiles = this.effect((inputs$: Observable<any>) => {\n return inputs$.pipe(\n tap(() => {\n this.emptyList();\n }),\n mergeMap((inputs: any) => {\n return this.fileUploadService.listUploadedFiles(inputs).pipe(\n //take(1),\n withLatestFrom(this.files$),\n tap(() => {\n // added to avoid ide errors\n }),\n tap(([newfiles, registeredFiles]) => {\n newfiles.forEach(file => {\n if (\n registeredFiles.findIndex(rfile => rfile.id === file.id) < 0\n ) {\n this.pushFile({\n ...file,\n color: 'success',\n progress: 100,\n ref: Symbol('H.psi = E.psi'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n });\n }\n });\n }),\n catchError(() => of([])),\n );\n }),\n );\n });\n\n readonly deleteFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n mergeMap((file: any) =>\n this.fileUploadService.deleteFile(file.id).pipe(\n //take(1),\n tap(() => {\n this.remove(file);\n }),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.delete.error',\n });\n return of(null);\n }),\n ),\n ),\n );\n },\n );\n\n readonly removeFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n tap(file => {\n this.remove(file);\n }),\n );\n },\n );\n\n private progressFileChecker = (file$: Observable<any>) => {\n return file$.pipe(\n withLatestFrom(this.accept$),\n\n map(([file, accept]) => {\n // Step 1 - Add a new file in the view\n let f: ReferencedProgressFile = { ...file };\n if (file.ref === undefined) {\n f = {\n ...f,\n ref: Symbol('v_sound = sqrt(gamma.P / rho)'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n };\n this.pushFile(f);\n }\n\n // Step 2 - Check file extension\n if (!accept.includes(file.file!.type)) {\n this.setFail({\n ref: f.ref,\n color: OnemrvaMatColor.ERROR,\n message: this.translateService.instant(\n 'file.upload.type.not.supported',\n ),\n });\n // This trick coupled with the next filter is used to avoid catchError, which would break the effect\n return { ...f, message: 'ERROR' };\n }\n return f;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.maxFileSize$),\n\n map(([refFile, maxFileSize]) => {\n // Step 3 - Check file size\n if (maxFileSize !== 0 && refFile.size > maxFileSize) {\n this.setFail({\n ref: refFile.ref,\n color: OnemrvaMatColor.ERROR,\n message:\n this.translateService.instant('file.upload.too.big') +\n ' ' +\n formattedSize(refFile.size),\n });\n // Same trick for error management\n return { ...refFile, message: 'ERROR' };\n }\n return refFile;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.files$),\n map(this.fn), // For custom validations\n tap(x => {\n if (!!x.message && x.message.startsWith('ERROR:'))\n this.setFileUploadError(x.message.replace('ERROR:', '').trim());\n else this.clearFileUploadError();\n }),\n filter(x => !x.message.startsWith('ERROR')),\n );\n };\n\n private loadStep = (file: any) => {\n if (file.color === OnemrvaMatColor.WARN) this.reset(file.ref);\n\n this.enableProgressBar();\n\n return this.fileUploadService.upload(file).pipe(\n throttle(() => interval(200), { leading: true, trailing: true }),\n tap((event: HttpEvent<any>) => {\n if (event.type === HttpEventType.UploadProgress) {\n this.setProgress({\n ref: file.ref,\n progress: Math.round((100 * event.loaded) / event.total!),\n });\n }\n\n if (event.type === HttpEventType.Response) {\n this.setSuccess({ ref: file.ref, body: event.body });\n }\n }),\n takeWhile(\n (event: HttpEvent<any>) => event.type === HttpEventType.UploadProgress,\n ),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.retry.error',\n });\n return of(null);\n }),\n );\n };\n\n /**\n * For adding one file panel (creation of file panel reference skipped if already created) at a time.\n * Upload to BE not triggered\n */\n readonly addForPotentialUpload = this.effect(\n (file$: Observable<ProgressFile>) => this.progressFileChecker(file$),\n );\n\n /**\n * For adding an array of file panels (creation of file panels reference skipped if already created).\n * Uploads to BE not triggered\n */\n readonly addSeveralForPotentialUpload = this.effect(\n (files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n forkJoin(files.map(file => this.progressFileChecker(of(file)))),\n ),\n ),\n );\n\n /**\n * For adding a file panel (creation of file panels reference skipped if already created) then uploading it\n */\n readonly uploadFile = this.effect((file$: Observable<ProgressFile>) => {\n return this.progressFileChecker(file$).pipe(mergeMap(this.loadStep));\n });\n\n readonly retryFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) =>\n this.progressFileChecker(file$).pipe(mergeMap(this.loadStep)),\n );\n\n /**\n * For adding several file panels (creation of file panels reference skipped if already created) then uploading them\n */\n readonly uploadFiles = this.effect((files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n merge(\n ...files.map(file =>\n this.progressFileChecker(of(file)).pipe(switchMap(this.loadStep)),\n ),\n ),\n ),\n ),\n );\n}\n","import {\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Input,\n OnInit,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { map, Observable, take } from 'rxjs';\nimport {\n state,\n keyframes,\n style,\n animate,\n trigger,\n transition,\n} from '@angular/animations';\nimport {\n formatBytes,\n ProgressFile,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { OnemrvaMatFileUploadStore } from '../../onemrva-mat-file-upload.store';\nimport { TranslatePipe, TranslateService } from '@ngx-translate/core';\nimport { OnemRvaCDNMimeService } from '@onemrvapublic/design-system/shared';\nimport {\n AsyncPipe,\n NgClass,\n NgForOf,\n NgIf,\n NgTemplateOutlet,\n} from '@angular/common';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatError } from '@angular/material/form-field';\nimport { DndDirective } from '../../directives/dnd.directive';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'onemrva-mat-file-upload',\n standalone: true,\n templateUrl: 'onemrva-mat-file-upload.component.html',\n animations: [\n trigger('inOutAnimation', [\n state('in', style({ opacity: 1 })),\n transition(':enter', [\n animate(\n 300,\n keyframes([\n style({ opacity: 0, offset: 0 }),\n style({ opacity: 0.25, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.75, offset: 0.75 }),\n style({ opacity: 1, offset: 1 }),\n ]),\n ),\n ]),\n transition(':leave', [\n animate(\n 300,\n keyframes([\n style({ opacity: 1, offset: 0 }),\n style({ opacity: 0.75, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.25, offset: 0.75 }),\n style({ opacity: 0, offset: 1 }),\n ]),\n ),\n ]),\n ]),\n ],\n imports: [\n NgClass,\n AsyncPipe,\n MatIcon,\n TranslatePipe,\n NgForOf,\n NgTemplateOutlet,\n MatError,\n NgIf,\n DndDirective,\n ],\n})\nexport class OnemrvaMatFileUploadComponent implements OnInit {\n @Input()\n accept: string[] = [];\n\n acceptString$?: Observable<any>;\n\n @Input()\n maxFileSize = 0;\n\n @Input()\n numberOfFiles = 0;\n\n @Input()\n maxTotalFileSize = 0;\n\n @Input()\n uploadOnDrop = true;\n\n @Input()\n initialFiles: ProgressFile[] = [];\n\n @Input()\n errorMessage = '';\n\n @Input()\n dropFilesHereTextTranslationKey = 'file.upload.drag.and.drop';\n\n fileUploadErrorMessage$: Observable<string>;\n\n files$: Observable<ReferencedProgressFile[]>;\n\n @Input() filePanelTemplate!: TemplateRef<any>;\n\n retryFile = new EventEmitter<{ index: number; cmpRef: symbol }>();\n\n /**\n * Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `\"onemrva-mat-multi-select-0\"`.\n *\n * @example\n * ```html\n * <onemrva-mat-multi-select id=\"my-first-multi-select\"></onemrva-mat-multi-select>\n * ```\n */\n @HostBinding('attr.data-cy')\n @Input()\n public dataCy = `onemrva-mat-multi-select-${NEXT_ID++}`;\n\n @ViewChild(`fileDropRef`)\n fileDropRef!: ElementRef;\n\n inputId = `fileDropRef-${NEXT_ID}`;\n maxFileSizeFormatted = '';\n\n constructor(\n public dialog: MatDialog,\n public mimeCDN: OnemRvaCDNMimeService,\n private translate: TranslateService,\n private fileUploadStore: OnemrvaMatFileUploadStore,\n ) {\n this.files$ = fileUploadStore.files$;\n\n this.fileUploadErrorMessage$ = this.fileUploadStore.fileUploadError$;\n }\n\n ngOnInit(): void {\n if (this.accept.length > 0) {\n this.acceptString$ = this.mimeCDN\n .getExtensionsForMime(this.accept)\n .pipe(map(arr => arr.map(item => `.${item}`).join(', ')));\n this.fileUploadStore.setAccept(this.accept);\n }\n\n this.maxFileSizeFormatted = formatBytes(this.maxFileSize);\n this.fileUploadStore.setMaxFileSize(this.maxFileSize);\n }\n\n /**\n * on file drop handler\n */\n onFileDropped($event: FileList) {\n this.prepareFilesList($event);\n }\n\n /**\n * handle file from browsing\n */\n fileBrowseHandler($event: Event) {\n const elm = $event.target as HTMLInputElement,\n files = elm.files as FileList;\n\n this.prepareFilesList(files);\n }\n\n /**\n * Convert Files list to normal array list\n * @param files (Files List)\n */\n prepareFilesList(files: FileList) {\n this.fileUploadStore.files$.pipe(take(1)).subscribe(currentFiles => {\n // if numberOffiles is set and the total length of files is smal\n // ler than it\n if (\n this.numberOfFiles > 0 &&\n files.length + currentFiles.length > this.numberOfFiles\n ) {\n // too many files\n this.errorMessage = this.translate.instant(\n 'file.upload.too.many.files',\n );\n return;\n }\n if (this.maxTotalFileSize > 0) {\n const total: number =\n Object.values(files).reduce((sum, obj) => sum + obj.size, 0) +\n currentFiles.reduce((sum, obj) => sum + obj.size, 0);\n if (total > this.maxTotalFileSize) {\n this.errorMessage = this.translate.instant(\n 'file.upload.total.max.size.exceeded',\n );\n return;\n }\n }\n\n // clear error message\n this.errorMessage = '';\n\n const fs: ProgressFile[] = [];\n for (let i = 0; i < files.length; i++) {\n const file = files.item(i);\n if (file === null) continue;\n\n const item: ProgressFile = {\n file,\n progress: 0,\n message: '',\n color: 'primary',\n url: null,\n id: null,\n enableProgressBar: this.uploadOnDrop,\n\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n };\n\n fs.push(item);\n }\n\n if (this.uploadOnDrop) this.fileUploadStore.uploadFiles(fs);\n else this.fileUploadStore.addSeveralForPotentialUpload(fs);\n\n this.fileDropRef.nativeElement.value = null;\n });\n }\n}\n","<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 'fu-error': errorMessage !== '',\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\n <mat-error *ngIf=\"errorMessage\">{{ errorMessage | translate }}</mat-error>\n\n <mat-error *ngIf=\"fileUploadErrorMessage$ | async as fileUploadErrorMessage\">\n {{ fileUploadErrorMessage | translate }}\n </mat-error>\n</ng-container>\n","import { OnemrvaFilePanelComponent } from './onemrva-mat-file-panel/onemrva-file-panel.component';\nimport { OnemrvaMatFileUploadComponent } from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n\nexport const components: any[] = [\n OnemrvaFilePanelComponent,\n OnemrvaMatFileUploadComponent,\n];\n\nexport * from './onemrva-mat-file-panel/onemrva-file-panel.component';\nexport * from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DndDirective } from './directives/dnd.directive';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { components } from './components';\nimport { MatInputModule } from '@angular/material/input';\n\n@NgModule({\n declarations: [],\n imports: [\n components,\n DndDirective,\n CommonModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatTooltipModule,\n MatDialogModule,\n TranslateModule,\n MatIconModule,\n MatInputModule,\n ],\n exports: [components, DndDirective],\n})\nexport class OnemrvaMatFileUploadModule {}\n","/*\n * Public API Surface of mat-file upload\n */\n\nexport * from './src/components';\nexport * from './src/onemrva-mat-file-upload.module';\nexport * from './src/onemrva-mat-file-upload.store';\nexport * from './src/onemrva-mat-file-upload.service';\nexport * from './src/models/progress-file.model';\nexport * from './src/models/action-config.model';\nexport * from './src/onemrva-mat-file-upload-itf.store';\nexport * from './src/directives/dnd.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["NEXT_ID","i2","i3","i4.OnemrvaMatFileUploadStore"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;;;;AAIG;SACa,WAAW,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC,EAAA;AACrD,IAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,QAAA,OAAO,SAAS;;IAElB,MAAM,CAAC,GAAG,IAAI;AACd,IAAA,MAAM,EAAE,GAAG,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC;IAC5C,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;IACvE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnD,OAAO,UAAU,CAAC,CAAC,KAAK,GAA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country?.descFr?.toLowerCase();
34
34
  }
35
35
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaCountryItemComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: OnemrvaCountryItemComponent, isStandalone: true, selector: "country-item", inputs: { country: "country" }, ngImport: i0, template: "<div class=\"onemrva-country-item\">\n <flag-icon [countryCode]=\"country?.singlePropertiesMap?.codeSepa\" />\n <span class=\"description\">{{ countryDescription }}</span>\n</div>\n", styles: [".onemrva-country-item{display:flex;align-items:center}.onemrva-country-item .description{display:flex;margin-left:.5em;text-transform:capitalize}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }], encapsulation: i0.ViewEncapsulation.None }); }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaCountryItemComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: OnemrvaCountryItemComponent, isStandalone: true, selector: "country-item", inputs: { country: "country" }, ngImport: i0, template: "<div class=\"onemrva-country-item\">\n <flag-icon [countryCode]=\"country?.singlePropertiesMap?.codeSepa\" />\n <span class=\"description\">{{ countryDescription }}</span>\n</div>\n", styles: [".onemrva-country-item{display:flex;align-items:center}.onemrva-country-item .description{display:flex;margin-left:.5em;text-transform:capitalize}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }], encapsulation: i0.ViewEncapsulation.None }); }
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaCountryItemComponent, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaCountryItemComponent, decorators: [{
40
40
  type: Component,
41
41
  args: [{ selector: 'country-item', standalone: true, imports: [CommonModule, TranslateModule, FlagIconComponent], encapsulation: ViewEncapsulation.None, template: "<div class=\"onemrva-country-item\">\n <flag-icon [countryCode]=\"country?.singlePropertiesMap?.codeSepa\" />\n <span class=\"description\">{{ countryDescription }}</span>\n</div>\n", styles: [".onemrva-country-item{display:flex;align-items:center}.onemrva-country-item .description{display:flex;margin-left:.5em;text-transform:capitalize}\n"] }]
42
42
  }], ctorParameters: () => [{ type: i1.TranslateService }], propDecorators: { country: [{
@@ -109,10 +109,10 @@ class OnemrvaMatInputBirthPlaceComponent {
109
109
  return country;
110
110
  }
111
111
  }
112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, deps: [{ token: i1$1.CommonCountryLookupService }], target: i0.ɵɵFactoryTarget.Component }); }
113
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: OnemrvaMatInputBirthPlaceComponent, isStandalone: true, selector: "onemrva-mat-input-birthplace", inputs: { readonly: "readonly", countryCode: "countryCode", label: "label", noEntriesFoundLabel: "noEntriesFoundLabel", hint: "hint", placeholderLabel: "placeholderLabel", searchAriaLabel: "searchAriaLabel", returnValue: "returnValue" }, outputs: { getCountry: "getCountry" }, ngImport: i0, template: "<mat-form-field class=\"onemrva-input-country-common\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n class=\"onemrva-country-select-common\"\n [formControl]=\"countryCode\"\n [placeholder]=\"placeholderLabel\"\n >\n <mat-select-trigger>\n <country-item [country]=\"country | async\" />\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async; trackBy: trackById\"\n [value]=\"getValue(country)\"\n >\n <country-item [country]=\"country\" />\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"countryCode.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n", styles: ["mat-option.mdc-list-item .mdc-list-item__primary-text{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i6.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "component", type: OnemrvaCountryItemComponent, selector: "country-item", inputs: ["country"] }], encapsulation: i0.ViewEncapsulation.None }); }
112
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, deps: [{ token: i1$1.CommonCountryLookupService }], target: i0.ɵɵFactoryTarget.Component }); }
113
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: OnemrvaMatInputBirthPlaceComponent, isStandalone: true, selector: "onemrva-mat-input-birthplace", inputs: { readonly: "readonly", countryCode: "countryCode", label: "label", noEntriesFoundLabel: "noEntriesFoundLabel", hint: "hint", placeholderLabel: "placeholderLabel", searchAriaLabel: "searchAriaLabel", returnValue: "returnValue" }, outputs: { getCountry: "getCountry" }, ngImport: i0, template: "<mat-form-field class=\"onemrva-input-country-common\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n class=\"onemrva-country-select-common\"\n [formControl]=\"countryCode\"\n [placeholder]=\"placeholderLabel\"\n >\n <mat-select-trigger>\n <country-item [country]=\"country | async\" />\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async; trackBy: trackById\"\n [value]=\"getValue(country)\"\n >\n <country-item [country]=\"country\" />\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"countryCode.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n", styles: ["mat-option.mdc-list-item .mdc-list-item__primary-text{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i6.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "component", type: OnemrvaCountryItemComponent, selector: "country-item", inputs: ["country"] }], encapsulation: i0.ViewEncapsulation.None }); }
114
114
  }
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, decorators: [{
116
116
  type: Component,
117
117
  args: [{ selector: 'onemrva-mat-input-birthplace', standalone: true, imports: [
118
118
  CommonModule,
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-input-birthplace.mjs","sources":["../../../../projects/onemrva/design-system/mat-input-birthplace/src/country-item.component.ts","../../../../projects/onemrva/design-system/mat-input-birthplace/src/country-item.component.html","../../../../projects/onemrva/design-system/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.ts","../../../../projects/onemrva/design-system/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.html","../../../../projects/onemrva/design-system/mat-input-birthplace/index.ts","../../../../projects/onemrva/design-system/mat-input-birthplace/onemrvapublic-design-system-mat-input-birthplace.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\n\nimport { OnemRvaCommonCountry } from '@onemrvapublic/design-system/shared';\nimport { FlagIconComponent } from '@onemrvapublic/design-system/flag-icon';\n\n@Component({\n selector: 'country-item',\n styleUrls: ['./country-item.component.scss'],\n templateUrl: './country-item.component.html',\n standalone: true,\n imports: [CommonModule, TranslateModule, FlagIconComponent],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaCountryItemComponent {\n @Input() country: OnemRvaCommonCountry | null = null;\n\n constructor(public translate: TranslateService) {}\n\n public get countryDescription() {\n switch (this.translate.currentLang) {\n case 'nl':\n return this.country?.descNl?.toLowerCase();\n case 'fr':\n return this.country?.descFr?.toLowerCase();\n default:\n return this.country?.descFr?.toLowerCase();\n }\n }\n}\n","<div class=\"onemrva-country-item\">\n <flag-icon [countryCode]=\"country?.singlePropertiesMap?.codeSepa\" />\n <span class=\"description\">{{ countryDescription }}</span>\n</div>\n","import { CommonModule } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\nimport {\n Observable,\n Subject,\n map,\n startWith,\n debounceTime,\n takeUntil,\n of,\n combineLatest,\n} from 'rxjs';\nimport { MatSelectSearchModule } from '@onemrvapublic/design-system/mat-select-search';\nimport { OnemrvaCountryItemComponent } from './country-item.component';\nimport { CommonCountryLookupService } from '@onemrvapublic/design-system/shared';\nimport { OnemRvaCommonCountry } from '@onemrvapublic/design-system/shared';\n\n@Component({\n selector: 'onemrva-mat-input-birthplace',\n styleUrls: ['onemrva-mat-input-birthplace.component.scss'],\n templateUrl: 'onemrva-mat-input-birthplace.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatSelectSearchModule,\n ReactiveFormsModule,\n TranslateModule,\n OnemrvaCountryItemComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatInputBirthPlaceComponent implements OnInit, OnDestroy {\n @Input()\n readonly = false;\n\n @Input() countryCode = new FormControl<string | null>(null);\n\n @Input() label = 'Country';\n @Input() noEntriesFoundLabel = 'Not found';\n @Input() hint = '';\n @Input() placeholderLabel = 'Search';\n @Input() searchAriaLabel = '';\n @Input() returnValue: 'id' | 'code' | 'object' = 'object';\n @Output() getCountry = new EventEmitter<any>();\n\n public filterCtrl: FormControl<string | null> = new FormControl<string>('');\n\n destroyNotifier$ = new Subject<void>();\n\n public filteredCountries$: Observable<OnemRvaCommonCountry[]> = of([]);\n\n private countries$ = this.commonCountryLookupService.getCountries();\n\n constructor(private commonCountryLookupService: CommonCountryLookupService) {\n this.filteredCountries$ = combineLatest([\n this.filterCtrl.valueChanges.pipe(startWith('')),\n this.countries$,\n ]).pipe(\n debounceTime(400),\n map(([search, countries]) => {\n return countries.filter((country: OnemRvaCommonCountry) => {\n if (!search || search === '') return countries;\n if (country.descNl === undefined) return false;\n return (\n country.descNl.toLowerCase().indexOf(search.toLowerCase()) > -1\n );\n });\n }),\n map(country =>\n country.sort((a, b) => {\n return a.descNl.localeCompare(b.descNl);\n }),\n ),\n );\n }\n\n public get country() {\n return this.commonCountryLookupService.getCountryByCode(\n this.countryCode.value,\n );\n }\n\n ngOnInit(): void {\n this.countryCode.valueChanges.pipe(\n startWith(this.countryCode),\n takeUntil(this.destroyNotifier$),\n );\n }\n\n ngOnDestroy() {\n this.destroyNotifier$.next();\n this.destroyNotifier$.complete();\n }\n\n trackById(index: number, country: OnemRvaCommonCountry) {\n return country.code;\n }\n\n errors() {\n // if (this.countryCode.errors !== null) {\n // for (const k in this.countryCode.errors) {\n // if (k === 'required') {\n // return 'input.country.required';\n // } else {\n // return 'input.country.invalid';\n // }\n // }\n // }\n return 'input.country.unknown.error';\n }\n\n getValue(country: OnemRvaCommonCountry) {\n switch (this.returnValue) {\n case 'id':\n return country.id;\n case 'code':\n return country.code;\n case 'object':\n return country;\n }\n }\n}\n","<mat-form-field class=\"onemrva-input-country-common\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n class=\"onemrva-country-select-common\"\n [formControl]=\"countryCode\"\n [placeholder]=\"placeholderLabel\"\n >\n <mat-select-trigger>\n <country-item [country]=\"country | async\" />\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async; trackBy: trackById\"\n [value]=\"getValue(country)\"\n >\n <country-item [country]=\"country\" />\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"countryCode.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n","/*\n * Public API Surface of mat-bank-account-input\n */\n\nexport * from './src/onemrva-mat-input-birthplace.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;MAea,2BAA2B,CAAA;AAGtC,IAAA,WAAA,CAAmB,SAA2B,EAAA;QAA3B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAkB;QAFrC,IAAO,CAAA,OAAA,GAAgC,IAAI,CAAC;KAEH;AAElD,IAAA,IAAW,kBAAkB,GAAA;AAC3B,QAAA,QAAQ,IAAI,CAAC,SAAS,CAAC,WAAW;AAChC,YAAA,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAC7C,YAAA,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAC7C,YAAA;gBACE,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;SAC9C;KACF;+GAdU,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,2BAA2B,wGCfxC,yLAIA,EAAA,MAAA,EAAA,CAAA,qJAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDQY,YAAY,EAAE,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,eA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,KAAK;gBAGG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBAEG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,mBAAmB,EAAA,CAAA;sBAA3B,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACI,UAAU,EAAA,CAAA;sBAAnB,MAAM;;;AE3DT;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-input-birthplace.mjs","sources":["../../../../projects/onemrva/design-system/mat-input-birthplace/src/country-item.component.ts","../../../../projects/onemrva/design-system/mat-input-birthplace/src/country-item.component.html","../../../../projects/onemrva/design-system/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.ts","../../../../projects/onemrva/design-system/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.html","../../../../projects/onemrva/design-system/mat-input-birthplace/index.ts","../../../../projects/onemrva/design-system/mat-input-birthplace/onemrvapublic-design-system-mat-input-birthplace.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\n\nimport { OnemRvaCommonCountry } from '@onemrvapublic/design-system/shared';\nimport { FlagIconComponent } from '@onemrvapublic/design-system/flag-icon';\n\n@Component({\n selector: 'country-item',\n styleUrls: ['./country-item.component.scss'],\n templateUrl: './country-item.component.html',\n standalone: true,\n imports: [CommonModule, TranslateModule, FlagIconComponent],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaCountryItemComponent {\n @Input() country: OnemRvaCommonCountry | null = null;\n\n constructor(public translate: TranslateService) {}\n\n public get countryDescription() {\n switch (this.translate.currentLang) {\n case 'nl':\n return this.country?.descNl?.toLowerCase();\n case 'fr':\n return this.country?.descFr?.toLowerCase();\n default:\n return this.country?.descFr?.toLowerCase();\n }\n }\n}\n","<div class=\"onemrva-country-item\">\n <flag-icon [countryCode]=\"country?.singlePropertiesMap?.codeSepa\" />\n <span class=\"description\">{{ countryDescription }}</span>\n</div>\n","import { CommonModule } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\nimport {\n Observable,\n Subject,\n map,\n startWith,\n debounceTime,\n takeUntil,\n of,\n combineLatest,\n} from 'rxjs';\nimport { MatSelectSearchModule } from '@onemrvapublic/design-system/mat-select-search';\nimport { OnemrvaCountryItemComponent } from './country-item.component';\nimport { CommonCountryLookupService } from '@onemrvapublic/design-system/shared';\nimport { OnemRvaCommonCountry } from '@onemrvapublic/design-system/shared';\n\n@Component({\n selector: 'onemrva-mat-input-birthplace',\n styleUrls: ['onemrva-mat-input-birthplace.component.scss'],\n templateUrl: 'onemrva-mat-input-birthplace.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatSelectSearchModule,\n ReactiveFormsModule,\n TranslateModule,\n OnemrvaCountryItemComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatInputBirthPlaceComponent implements OnInit, OnDestroy {\n @Input()\n readonly = false;\n\n @Input() countryCode = new FormControl<string | null>(null);\n\n @Input() label = 'Country';\n @Input() noEntriesFoundLabel = 'Not found';\n @Input() hint = '';\n @Input() placeholderLabel = 'Search';\n @Input() searchAriaLabel = '';\n @Input() returnValue: 'id' | 'code' | 'object' = 'object';\n @Output() getCountry = new EventEmitter<any>();\n\n public filterCtrl: FormControl<string | null> = new FormControl<string>('');\n\n destroyNotifier$ = new Subject<void>();\n\n public filteredCountries$: Observable<OnemRvaCommonCountry[]> = of([]);\n\n private countries$ = this.commonCountryLookupService.getCountries();\n\n constructor(private commonCountryLookupService: CommonCountryLookupService) {\n this.filteredCountries$ = combineLatest([\n this.filterCtrl.valueChanges.pipe(startWith('')),\n this.countries$,\n ]).pipe(\n debounceTime(400),\n map(([search, countries]) => {\n return countries.filter((country: OnemRvaCommonCountry) => {\n if (!search || search === '') return countries;\n if (country.descNl === undefined) return false;\n return (\n country.descNl.toLowerCase().indexOf(search.toLowerCase()) > -1\n );\n });\n }),\n map(country =>\n country.sort((a, b) => {\n return a.descNl.localeCompare(b.descNl);\n }),\n ),\n );\n }\n\n public get country() {\n return this.commonCountryLookupService.getCountryByCode(\n this.countryCode.value,\n );\n }\n\n ngOnInit(): void {\n this.countryCode.valueChanges.pipe(\n startWith(this.countryCode),\n takeUntil(this.destroyNotifier$),\n );\n }\n\n ngOnDestroy() {\n this.destroyNotifier$.next();\n this.destroyNotifier$.complete();\n }\n\n trackById(index: number, country: OnemRvaCommonCountry) {\n return country.code;\n }\n\n errors() {\n // if (this.countryCode.errors !== null) {\n // for (const k in this.countryCode.errors) {\n // if (k === 'required') {\n // return 'input.country.required';\n // } else {\n // return 'input.country.invalid';\n // }\n // }\n // }\n return 'input.country.unknown.error';\n }\n\n getValue(country: OnemRvaCommonCountry) {\n switch (this.returnValue) {\n case 'id':\n return country.id;\n case 'code':\n return country.code;\n case 'object':\n return country;\n }\n }\n}\n","<mat-form-field class=\"onemrva-input-country-common\">\n <mat-label>{{ label }}</mat-label>\n <mat-select\n class=\"onemrva-country-select-common\"\n [formControl]=\"countryCode\"\n [placeholder]=\"placeholderLabel\"\n >\n <mat-select-trigger>\n <country-item [country]=\"country | async\" />\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async; trackBy: trackById\"\n [value]=\"getValue(country)\"\n >\n <country-item [country]=\"country\" />\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"countryCode.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n","/*\n * Public API Surface of mat-bank-account-input\n */\n\nexport * from './src/onemrva-mat-input-birthplace.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;MAea,2BAA2B,CAAA;AAGtC,IAAA,WAAA,CAAmB,SAA2B,EAAA;QAA3B,IAAS,CAAA,SAAA,GAAT,SAAS;QAFnB,IAAO,CAAA,OAAA,GAAgC,IAAI;;AAIpD,IAAA,IAAW,kBAAkB,GAAA;AAC3B,QAAA,QAAQ,IAAI,CAAC,SAAS,CAAC,WAAW;AAChC,YAAA,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE;AAC5C,YAAA,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE;AAC5C,YAAA;gBACE,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE;;;8GAZrC,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,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,wGCfxC,yLAIA,EAAA,MAAA,EAAA,CAAA,qJAAA,CAAA,EAAA,YAAA,EAAA,CAAA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CAAA;sBAAZ;gBACQ,gBAAgB,EAAA,CAAA;sBAAxB;gBACQ,eAAe,EAAA,CAAA;sBAAvB;gBACQ,WAAW,EAAA,CAAA;sBAAnB;gBACS,UAAU,EAAA,CAAA;sBAAnB;;;AE3DH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -56,10 +56,10 @@ class OnemrvaMatInputCountryComponent {
56
56
  }
57
57
  return 'input.country.unknown.error';
58
58
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatInputCountryComponent, deps: [{ token: i1.OnemRvaCDNCountryService }], target: i0.ɵɵFactoryTarget.Component }); }
60
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: OnemrvaMatInputCountryComponent, isStandalone: true, selector: "onemrva-mat-input-country", inputs: { readonly: "readonly", country: "country", label: "label", noEntriesFoundLabel: "noEntriesFoundLabel", hint: "hint", placeholderLabel: "placeholderLabel", searchAriaLabel: "searchAriaLabel" }, outputs: { getCountry: "getCountry" }, ngImport: i0, template: "<mat-form-field class=\"onemrva-input-country\">\n <mat-label>{{ label }}</mat-label>\n <mat-select class=\"onemrva-country-select\" [formControl]=\"country\">\n <mat-select-trigger>\n <flag-icon [countryCode]=\"country.getRawValue()\" />&nbsp;&nbsp;{{\n (selectedCountry$ | async)?.name\n }}\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async\"\n [value]=\"country.code\"\n ><span class=\"country\">\n <flag-icon [countryCode]=\"country.code\" />&nbsp;&nbsp;{{ country.name }}\n </span>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"country.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n", styles: ["mat-option.mdc-list-item .country{position:relative;display:block;padding-top:4px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i6.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }], encapsulation: i0.ViewEncapsulation.None }); }
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaMatInputCountryComponent, deps: [{ token: i1.OnemRvaCDNCountryService }], target: i0.ɵɵFactoryTarget.Component }); }
60
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: OnemrvaMatInputCountryComponent, isStandalone: true, selector: "onemrva-mat-input-country", inputs: { readonly: "readonly", country: "country", label: "label", noEntriesFoundLabel: "noEntriesFoundLabel", hint: "hint", placeholderLabel: "placeholderLabel", searchAriaLabel: "searchAriaLabel" }, outputs: { getCountry: "getCountry" }, ngImport: i0, template: "<mat-form-field class=\"onemrva-input-country\">\n <mat-label>{{ label }}</mat-label>\n <mat-select class=\"onemrva-country-select\" [formControl]=\"country\">\n <mat-select-trigger>\n <flag-icon [countryCode]=\"country.getRawValue()\" />&nbsp;&nbsp;{{\n (selectedCountry$ | async)?.name\n }}\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async\"\n [value]=\"country.code\"\n ><span class=\"country\">\n <flag-icon [countryCode]=\"country.code\" />&nbsp;&nbsp;{{ country.name }}\n </span>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"country.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n", styles: ["mat-option.mdc-list-item .country{position:relative;display:block;padding-top:4px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i4.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i6.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }], encapsulation: i0.ViewEncapsulation.None }); }
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatInputCountryComponent, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaMatInputCountryComponent, decorators: [{
63
63
  type: Component,
64
64
  args: [{ selector: 'onemrva-mat-input-country', standalone: true, imports: [
65
65
  CommonModule,
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-input-country.mjs","sources":["../../../../projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.ts","../../../../projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.html","../../../../projects/onemrva/design-system/mat-input-country/index.ts","../../../../projects/onemrva/design-system/mat-input-country/onemrvapublic-design-system-mat-input-country.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { TranslateModule } from '@ngx-translate/core';\nimport {\n Observable,\n map,\n startWith,\n debounceTime,\n combineLatestWith,\n} from 'rxjs';\nimport { MatSelectSearchModule } from '@onemrvapublic/design-system/mat-select-search';\nimport { FlagIconComponent } from '@onemrvapublic/design-system/flag-icon';\nimport {\n OnemRvaCDNCountryService,\n OnemrvaMaterialCountry,\n} from '@onemrvapublic/design-system/shared';\n\n@Component({\n selector: 'onemrva-mat-input-country',\n styleUrls: ['onemrva-mat-input-country.component.scss'],\n templateUrl: 'onemrva-mat-input-country.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatSelectSearchModule,\n ReactiveFormsModule,\n TranslateModule,\n FlagIconComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatInputCountryComponent implements OnInit {\n @Input()\n readonly = false;\n\n @Input() country!: FormControl;\n\n @Input() label = 'Country';\n @Input() noEntriesFoundLabel = 'Not found';\n @Input() hint = '';\n @Input() placeholderLabel = 'Search';\n @Input() searchAriaLabel = '';\n @Output() getCountry = new EventEmitter<any>();\n\n public filterCtrl: FormControl<string | null> = new FormControl<string>('');\n\n public countries$: Observable<OnemrvaMaterialCountry[]>;\n public filteredCountries$: Observable<OnemrvaMaterialCountry[]>;\n public selectedCountry$?: Observable<OnemrvaMaterialCountry | undefined>;\n\n constructor(private cdn: OnemRvaCDNCountryService) {\n this.countries$ = this.cdn.getCountries();\n\n this.filteredCountries$ = this.filterCtrl.valueChanges.pipe(\n debounceTime(400),\n startWith(''),\n combineLatestWith(this.countries$),\n map(([search, countries]) => {\n return countries.filter((country: OnemrvaMaterialCountry) => {\n if (!search || search === '') return countries;\n if (country.name === undefined) return false;\n return country.name.toLowerCase().indexOf(search.toLowerCase()) > -1;\n });\n }),\n );\n }\n\n ngOnInit(): void {\n this.selectedCountry$ = this.country.valueChanges.pipe(\n startWith(this.country.getRawValue()),\n combineLatestWith(this.countries$),\n map(([value, countries]) => {\n return countries.find(\n (country: OnemrvaMaterialCountry) =>\n country.code === value?.substring(0, country.code.length),\n );\n }),\n );\n }\n\n handleClick(e: any) {\n e.stopPropagation();\n }\n\n public errors() {\n for (const k in this.country.errors) {\n if (k === 'required') {\n return 'input.country.required';\n }\n }\n return 'input.country.unknown.error';\n }\n}\n","<mat-form-field class=\"onemrva-input-country\">\n <mat-label>{{ label }}</mat-label>\n <mat-select class=\"onemrva-country-select\" [formControl]=\"country\">\n <mat-select-trigger>\n <flag-icon [countryCode]=\"country.getRawValue()\" />&nbsp;&nbsp;{{\n (selectedCountry$ | async)?.name\n }}\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async\"\n [value]=\"country.code\"\n ><span class=\"country\">\n <flag-icon [countryCode]=\"country.code\" />&nbsp;&nbsp;{{ country.name }}\n </span>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"country.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n","/*\n * Public API Surface of mat-bank-account-input\n */\n\nexport * from './src/onemrva-mat-input-country.component';\n","/**\n * Generated bundle index. Do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AAe;wBACf,iBAAiB;qBAClB,EACc,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,4hCAAA,EAAA,MAAA,EAAA,CAAA,sFAAA,CAAA,EAAA,CAAA;6FAIrC,QAAQ,EAAA,CAAA;sBADP,KAAK;gBAGG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBAEG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,mBAAmB,EAAA,CAAA;sBAA3B,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;gBACG,eAAe,EAAA,CAAA;sBAAvB,KAAK;gBACI,UAAU,EAAA,CAAA;sBAAnB,MAAM;;;AExDT;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-input-country.mjs","sources":["../../../../projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.ts","../../../../projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.html","../../../../projects/onemrva/design-system/mat-input-country/index.ts","../../../../projects/onemrva/design-system/mat-input-country/onemrvapublic-design-system-mat-input-country.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { TranslateModule } from '@ngx-translate/core';\nimport {\n Observable,\n map,\n startWith,\n debounceTime,\n combineLatestWith,\n} from 'rxjs';\nimport { MatSelectSearchModule } from '@onemrvapublic/design-system/mat-select-search';\nimport { FlagIconComponent } from '@onemrvapublic/design-system/flag-icon';\nimport {\n OnemRvaCDNCountryService,\n OnemrvaMaterialCountry,\n} from '@onemrvapublic/design-system/shared';\n\n@Component({\n selector: 'onemrva-mat-input-country',\n styleUrls: ['onemrva-mat-input-country.component.scss'],\n templateUrl: 'onemrva-mat-input-country.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatSelectSearchModule,\n ReactiveFormsModule,\n TranslateModule,\n FlagIconComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatInputCountryComponent implements OnInit {\n @Input()\n readonly = false;\n\n @Input() country!: FormControl;\n\n @Input() label = 'Country';\n @Input() noEntriesFoundLabel = 'Not found';\n @Input() hint = '';\n @Input() placeholderLabel = 'Search';\n @Input() searchAriaLabel = '';\n @Output() getCountry = new EventEmitter<any>();\n\n public filterCtrl: FormControl<string | null> = new FormControl<string>('');\n\n public countries$: Observable<OnemrvaMaterialCountry[]>;\n public filteredCountries$: Observable<OnemrvaMaterialCountry[]>;\n public selectedCountry$?: Observable<OnemrvaMaterialCountry | undefined>;\n\n constructor(private cdn: OnemRvaCDNCountryService) {\n this.countries$ = this.cdn.getCountries();\n\n this.filteredCountries$ = this.filterCtrl.valueChanges.pipe(\n debounceTime(400),\n startWith(''),\n combineLatestWith(this.countries$),\n map(([search, countries]) => {\n return countries.filter((country: OnemrvaMaterialCountry) => {\n if (!search || search === '') return countries;\n if (country.name === undefined) return false;\n return country.name.toLowerCase().indexOf(search.toLowerCase()) > -1;\n });\n }),\n );\n }\n\n ngOnInit(): void {\n this.selectedCountry$ = this.country.valueChanges.pipe(\n startWith(this.country.getRawValue()),\n combineLatestWith(this.countries$),\n map(([value, countries]) => {\n return countries.find(\n (country: OnemrvaMaterialCountry) =>\n country.code === value?.substring(0, country.code.length),\n );\n }),\n );\n }\n\n handleClick(e: any) {\n e.stopPropagation();\n }\n\n public errors() {\n for (const k in this.country.errors) {\n if (k === 'required') {\n return 'input.country.required';\n }\n }\n return 'input.country.unknown.error';\n }\n}\n","<mat-form-field class=\"onemrva-input-country\">\n <mat-label>{{ label }}</mat-label>\n <mat-select class=\"onemrva-country-select\" [formControl]=\"country\">\n <mat-select-trigger>\n <flag-icon [countryCode]=\"country.getRawValue()\" />&nbsp;&nbsp;{{\n (selectedCountry$ | async)?.name\n }}\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async\"\n [value]=\"country.code\"\n ><span class=\"country\">\n <flag-icon [countryCode]=\"country.code\" />&nbsp;&nbsp;{{ country.name }}\n </span>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"country.invalid\">{{ errors() | translate }}</mat-error>\n</mat-form-field>\n","/*\n * Public API Surface of mat-bank-account-input\n */\n\nexport * from './src/onemrva-mat-input-country.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MA6Ca,+BAA+B,CAAA;AAmB1C,IAAA,WAAA,CAAoB,GAA6B,EAAA;QAA7B,IAAG,CAAA,GAAA,GAAH,GAAG;QAjBvB,IAAQ,CAAA,QAAA,GAAG,KAAK;QAIP,IAAK,CAAA,KAAA,GAAG,SAAS;QACjB,IAAmB,CAAA,mBAAA,GAAG,WAAW;QACjC,IAAI,CAAA,IAAA,GAAG,EAAE;QACT,IAAgB,CAAA,gBAAA,GAAG,QAAQ;QAC3B,IAAe,CAAA,eAAA,GAAG,EAAE;AACnB,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,EAAO;AAEvC,QAAA,IAAA,CAAA,UAAU,GAA+B,IAAI,WAAW,CAAS,EAAE,CAAC;QAOzE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;AAEzC,QAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI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QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,eAAe,4FACf,iBAAiB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAIR,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAjB3C,SAAS;+BACE,2BAA2B,EAAA,UAAA,EAGzB,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,cAAc;wBACd,kBAAkB;wBAClB,eAAe;wBACf,qBAAqB;wBACrB,mBAAmB;wBACnB,eAAe;wBACf,iBAAiB;qBAClB,EACc,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,4hCAAA,EAAA,MAAA,EAAA,CAAA,sFAAA,CAAA,EAAA;6FAIrC,QAAQ,EAAA,CAAA;sBADP;gBAGQ,OAAO,EAAA,CAAA;sBAAf;gBAEQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,mBAAmB,EAAA,CAAA;sBAA3B;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,gBAAgB,EAAA,CAAA;sBAAxB;gBACQ,eAAe,EAAA,CAAA;sBAAvB;gBACS,UAAU,EAAA,CAAA;sBAAnB;;;AExDH;;AAEG;;ACFH;;AAEG;;;;"}
@@ -141,10 +141,10 @@ class OnemrvaMatInputEnterpriseNumberComponent {
141
141
  }
142
142
  return 'input.vies.unknown.error';
143
143
  }
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatInputEnterpriseNumberComponent, deps: [{ token: i1.OnemRvaCDNCountryService }], target: i0.ɵɵFactoryTarget.Component }); }
145
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: OnemrvaMatInputEnterpriseNumberComponent, isStandalone: true, selector: "onemrva-mat-input-enterprise-number", inputs: { readonly: "readonly", enterpriseNumber: "enterpriseNumber", label: "label", noEntriesFoundLabel: "noEntriesFoundLabel", placeholderLabel: "placeholderLabel", defaultCountry: "defaultCountry", searchAriaLabel: "searchAriaLabel", hint: "hint" }, outputs: { getCountry: "getCountry" }, viewQueries: [{ propertyName: "numberInput", first: true, predicate: ["numberInput"], descendants: true }], ngImport: i0, template: "<ng-container>\n <mat-form-field class=\"onemrva-input-enterprise-number\">\n <mat-label>{{ label }}</mat-label>\n <input\n (click)=\"handleClick($event)\"\n type=\"text\"\n matInput\n #numberInput\n placeholder=\"\"\n [formControl]=\"enterpriseNumber\"\n class=\"onemrva-text-enterprise-number\"\n />\n <mat-select\n matTextPrefix\n class=\"onemrva-phone-number-select\"\n [formControl]=\"countryCode\"\n >\n <mat-select-trigger>\n <flag-icon [countryCode]=\"countryCode.getRawValue()\" />\n </mat-select-trigger>\n\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async\"\n [value]=\"country.code\"\n >\n <flag-icon [countryCode]=\"country.code\" />&nbsp;&nbsp;{{ country.name }}\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"number.invalid\">{{ errors() | translate }}</mat-error>\n </mat-form-field>\n</ng-container>\n", styles: [".onemrva-input-enterprise-number mat-select{padding:0 0 0 8px}.onemrva-input-enterprise-number mat-select .mat-mdc-select-placeholder{width:1em!important;display:block!important}.onemrva-input-enterprise-number mat-select .mat-mdc-select-placeholder:before{width:1em!important;height:1em!important;background:#eee!important;visibility:visible!important;margin:10px 0!important}.onemrva-input-enterprise-number mat-select .mat-mdc-select-value{padding-right:8px}.onemrva-input-enterprise-number .onemrva-text-enterprise-number{padding-left:12px!important;vertical-align:middle}.onemrva-input-enterprise-number .mat-mdc-form-field-text-prefix mat-select{line-height:14px!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i5.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i9.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }], encapsulation: i0.ViewEncapsulation.None }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaMatInputEnterpriseNumberComponent, deps: [{ token: i1.OnemRvaCDNCountryService }], target: i0.ɵɵFactoryTarget.Component }); }
145
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.6", type: OnemrvaMatInputEnterpriseNumberComponent, isStandalone: true, selector: "onemrva-mat-input-enterprise-number", inputs: { readonly: "readonly", enterpriseNumber: "enterpriseNumber", label: "label", noEntriesFoundLabel: "noEntriesFoundLabel", placeholderLabel: "placeholderLabel", defaultCountry: "defaultCountry", searchAriaLabel: "searchAriaLabel", hint: "hint" }, outputs: { getCountry: "getCountry" }, viewQueries: [{ propertyName: "numberInput", first: true, predicate: ["numberInput"], descendants: true }], ngImport: i0, template: "<ng-container>\n <mat-form-field class=\"onemrva-input-enterprise-number\">\n <mat-label>{{ label }}</mat-label>\n <input\n (click)=\"handleClick($event)\"\n type=\"text\"\n matInput\n #numberInput\n placeholder=\"\"\n [formControl]=\"enterpriseNumber\"\n class=\"onemrva-text-enterprise-number\"\n />\n <mat-select\n matTextPrefix\n class=\"onemrva-phone-number-select\"\n [formControl]=\"countryCode\"\n >\n <mat-select-trigger>\n <flag-icon [countryCode]=\"countryCode.getRawValue()\" />\n </mat-select-trigger>\n\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\n [placeholderLabel]=\"placeholderLabel\"\n ></mat-select-search>\n </mat-option>\n\n <mat-option\n *ngFor=\"let country of filteredCountries$ | async\"\n [value]=\"country.code\"\n >\n <flag-icon [countryCode]=\"country.code\" />&nbsp;&nbsp;{{ country.name }}\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint !== ''\">{{ hint }}</mat-hint>\n <mat-error *ngIf=\"number.invalid\">{{ errors() | translate }}</mat-error>\n </mat-form-field>\n</ng-container>\n", styles: [".onemrva-input-enterprise-number mat-select{padding:0 0 0 8px}.onemrva-input-enterprise-number mat-select .mat-mdc-select-placeholder{width:1em!important;display:block!important}.onemrva-input-enterprise-number mat-select .mat-mdc-select-placeholder:before{width:1em!important;height:1em!important;background:#eee!important;visibility:visible!important;margin:10px 0!important}.onemrva-input-enterprise-number mat-select .mat-mdc-select-value{padding-right:8px}.onemrva-input-enterprise-number .onemrva-text-enterprise-number{padding-left:12px!important;vertical-align:middle}.onemrva-input-enterprise-number .mat-mdc-form-field-text-prefix mat-select{line-height:14px!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i5.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i9.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }], encapsulation: i0.ViewEncapsulation.None }); }
146
146
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OnemrvaMatInputEnterpriseNumberComponent, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.6", ngImport: i0, type: OnemrvaMatInputEnterpriseNumberComponent, decorators: [{
148
148
  type: Component,
149
149
  args: [{ selector: 'onemrva-mat-input-enterprise-number', standalone: true, imports: [
150
150
  CommonModule,