@onemrvapublic/design-system 1.0.0-beta.4 → 1.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 (512) hide show
  1. package/README.md +9 -4
  2. package/assets/i18n/de.json +84 -12
  3. package/assets/i18n/en.json +78 -6
  4. package/assets/i18n/fr.json +79 -7
  5. package/assets/i18n/nl.json +84 -12
  6. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +49 -0
  7. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -0
  8. package/fesm2022/onemrvapublic-design-system-layout.mjs +948 -0
  9. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -0
  10. package/fesm2022/onemrvapublic-design-system-mat-address.mjs +111 -0
  11. package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -0
  12. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +318 -0
  13. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -0
  14. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +125 -0
  15. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -0
  16. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +208 -0
  17. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -0
  18. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +84 -0
  19. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -0
  20. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +90 -0
  21. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -0
  22. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +33 -0
  23. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -0
  24. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +211 -0
  25. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -0
  26. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +42 -0
  27. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -0
  28. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +810 -0
  29. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -0
  30. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +138 -0
  31. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -0
  32. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +135 -0
  33. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -0
  34. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +98 -0
  35. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -0
  36. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +189 -0
  37. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -0
  38. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +308 -0
  39. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -0
  40. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +295 -0
  41. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -0
  42. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +210 -0
  43. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -0
  44. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +225 -0
  45. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -0
  46. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +169 -0
  47. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -0
  48. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +103 -0
  49. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -0
  50. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +269 -0
  51. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -0
  52. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +185 -0
  53. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -0
  54. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +118 -0
  55. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -0
  56. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +52 -0
  57. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -0
  58. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +612 -0
  59. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -0
  60. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +96 -0
  61. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -0
  62. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +72 -0
  63. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -0
  64. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +241 -0
  65. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -0
  66. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +65 -0
  67. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -0
  68. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +146 -0
  69. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -0
  70. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +36 -0
  71. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -0
  72. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +232 -0
  73. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -0
  74. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +170 -0
  75. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -0
  76. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +1363 -0
  77. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -0
  78. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +73 -0
  79. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -0
  80. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +166 -0
  81. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -0
  82. package/fesm2022/onemrvapublic-design-system-page-error.mjs +80 -0
  83. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -0
  84. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +211 -0
  85. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -0
  86. package/fesm2022/onemrvapublic-design-system-shared.mjs +2188 -0
  87. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -0
  88. package/fesm2022/onemrvapublic-design-system-utils.mjs +35 -0
  89. package/fesm2022/onemrvapublic-design-system-utils.mjs.map +1 -0
  90. package/fesm2022/onemrvapublic-design-system.mjs +10573 -0
  91. package/fesm2022/onemrvapublic-design-system.mjs.map +1 -0
  92. package/flag-icon/index.d.ts +18 -0
  93. package/flag-icon/src/flag-icon.component.scss +12 -0
  94. package/index.d.ts +3140 -0
  95. package/layout/index.d.ts +293 -0
  96. package/layout/src/components/layout/layout.component.scss +90 -80
  97. package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.scss +3 -2
  98. package/layout/src/components/layout-drawer-content/layout-drawer-content.component.scss +9 -0
  99. package/layout/src/components/layout-drawer-title/layout-drawer-title.component.scss +9 -5
  100. package/layout/src/components/layout-left-sidenav/layout-left-sidenav.component.scss +5 -0
  101. package/layout/src/components/layout-sidenav/layout-sidenav.component.scss +43 -0
  102. package/layout/src/index.scss +0 -1
  103. package/mat-address/index.d.ts +36 -0
  104. package/mat-address/src/onemrva-address.scss +14 -0
  105. package/mat-avatar/index.d.ts +187 -0
  106. package/mat-avatar/src/onemrva-mat-avatar.component.scss +79 -123
  107. package/mat-breadcrumb/index.d.ts +40 -0
  108. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +39 -53
  109. package/mat-carousel/index.d.ts +52 -0
  110. package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.scss +10 -0
  111. package/mat-carousel/src/onemrva-mat-carousel.component.scss +38 -45
  112. package/mat-choice-chip/index.d.ts +20 -0
  113. package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +83 -0
  114. package/mat-copy-to-clipboard/index.d.ts +26 -0
  115. package/mat-country-item/index.d.ts +10 -0
  116. package/{mat-input-birthplace/src/country-item.component.scss → mat-country-item/src/onemrva-mat-country-item.component.scss} +6 -1
  117. package/mat-datepicker-header/index.d.ts +44 -0
  118. package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.scss +8 -0
  119. package/mat-empty-row/index.d.ts +19 -0
  120. package/mat-empty-row/src/onemrva-mat-empty-row.component.scss +29 -0
  121. package/mat-file-upload/index.d.ts +301 -0
  122. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +48 -16
  123. package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +72 -218
  124. package/mat-input-address/index.d.ts +32 -0
  125. package/mat-input-address/src/onemrva-mat-input-address.component.scss +8 -0
  126. package/mat-input-birthplace/index.d.ts +36 -0
  127. package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.scss +4 -2
  128. package/mat-input-country/index.d.ts +32 -0
  129. package/mat-input-country/src/onemrva-mat-input-country.component.scss +13 -0
  130. package/mat-input-enterprise-number/index.d.ts +37 -0
  131. package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +7 -0
  132. package/mat-input-iban/index.d.ts +79 -0
  133. package/mat-input-iban/src/onemrva-mat-input-iban.component.scss +10 -0
  134. package/mat-input-phone/index.d.ts +44 -0
  135. package/mat-message-box/index.d.ts +101 -0
  136. package/mat-message-box/src/onemrva-mat-message-box.component.scss +13 -65
  137. package/mat-multi-select/index.d.ts +57 -0
  138. package/mat-multi-select/src/onemrva-mat-multi-select.component.scss +35 -0
  139. package/mat-navigation/index.d.ts +54 -0
  140. package/mat-navigation/src/mat-navigation-item/onemrva-mat-navigation-item.component.scss +66 -0
  141. package/mat-navigation/src/onemrva-mat-navigation.component.scss +36 -0
  142. package/mat-notification/index.d.ts +43 -0
  143. package/mat-notification/src/onemrva-mat-notification.component.scss +26 -0
  144. package/mat-paginator/index.d.ts +58 -0
  145. package/mat-paginator/src/onemrva-mat-paginator.component.scss +146 -0
  146. package/mat-panel/index.d.ts +66 -0
  147. package/mat-panel/src/mat-expansion-panel-header-arrow-divider.scss +11 -0
  148. package/mat-panel/src/onemrva-mat-panel-content.scss +8 -0
  149. package/mat-panel/src/onemrva-mat-panel-icon.scss +7 -0
  150. package/mat-panel/src/onemrva-mat-panel-title.scss +13 -0
  151. package/mat-panel/src/onemrva-mat-panel.component.scss +75 -82
  152. package/mat-pop-over/index.d.ts +40 -0
  153. package/mat-pop-over/src/onemrva-mat-pop-over.component.scss +11 -11
  154. package/mat-progress-bar/index.d.ts +18 -0
  155. package/mat-progress-bar/src/onemrva-mat-progress-bar.component.scss +26 -0
  156. package/mat-select-search/index.d.ts +197 -0
  157. package/mat-select-search/src/mat-select-search.component.scss +62 -109
  158. package/mat-selectable-box/index.d.ts +29 -0
  159. package/mat-selectable-box/src/onemrva-mat-selectable-box.component.scss +68 -90
  160. package/mat-side-menu/index.d.ts +33 -0
  161. package/mat-side-menu/src/onemrva-mat-side-menu.component.scss +36 -38
  162. package/mat-skeleton/index.d.ts +100 -0
  163. package/mat-skeleton/src/onemrva-mat-skeleton.component.scss +10 -59
  164. package/mat-spinner/index.d.ts +25 -0
  165. package/mat-spinner/src/onemrva-mat-spinner.component.scss +21 -0
  166. package/mat-stepper/index.d.ts +36 -0
  167. package/mat-stepper/src/onemrva-mat-stepper.scss +40 -105
  168. package/mat-sticker/index.d.ts +14 -0
  169. package/mat-sticker/src/onemrva-mat-sticker.component.scss +26 -63
  170. package/mat-table-of-content/index.d.ts +84 -0
  171. package/mat-table-of-content/src/onemrva-mat-table-of-content.component.scss +57 -0
  172. package/mat-task-list/index.d.ts +57 -0
  173. package/mat-task-list/src/onemrva-mat-task-content.scss +11 -0
  174. package/mat-task-list/src/onemrva-mat-task-list.component.scss +0 -150
  175. package/mat-task-list/src/onemrva-mat-task-title.scss +16 -0
  176. package/mat-task-list/src/onemrva-mat-task.component.scss +67 -0
  177. package/mat-timepicker/index.d.ts +386 -0
  178. package/mat-timepicker/src/clock/clock.component.scss +13 -7
  179. package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +2 -7
  180. package/mat-toast/index.d.ts +30 -0
  181. package/mat-toast/src/onemrva-mat-toast.component.scss +7 -49
  182. package/mat-tooltip/index.d.ts +39 -0
  183. package/mat-tooltip/src/onemrva-mat-tooltip.component.scss +8 -5
  184. package/package.json +196 -26
  185. package/page-error/index.d.ts +34 -0
  186. package/page-error/src/page-error.component.scss +25 -0
  187. package/page-not-found/index.d.ts +54 -0
  188. package/page-not-found/src/page-not-found-mixin.component.scss +1 -1
  189. package/page-not-found/src/page-not-found.component.scss +2 -2
  190. package/shared/index.d.ts +541 -0
  191. package/utils/index.d.ts +32 -0
  192. package/.eslintrc.json +0 -33
  193. package/_index.scss +0 -34
  194. package/_utils.scss +0 -30
  195. package/core/index.ts +0 -3
  196. package/core/ng-package.json +0 -6
  197. package/core/src/lib/core.module.ts +0 -26
  198. package/core/src/lib/modules/index.ts +0 -1
  199. package/core/src/lib/modules/translate.loader.ts +0 -34
  200. package/core/src/lib/modules/translate.module.ts +0 -66
  201. package/core/src/lib/services/index.ts +0 -2
  202. package/core/src/lib/services/onemrva-error-handler.service.ts +0 -24
  203. package/core/src/lib/services/onemrva-missing-translation.service.ts +0 -12
  204. package/core/src/test.ts +0 -30
  205. package/layout/index.ts +0 -7
  206. package/layout/ng-package.json +0 -6
  207. package/layout/src/components/index.ts +0 -37
  208. package/layout/src/components/layout/_layout-mixin.component.scss +0 -189
  209. package/layout/src/components/layout/layout.component.html +0 -213
  210. package/layout/src/components/layout/layout.component.spec.ts +0 -59
  211. package/layout/src/components/layout/layout.component.ts +0 -185
  212. package/layout/src/components/layout-after-nav/layout-after-nav.component.spec.ts +0 -24
  213. package/layout/src/components/layout-after-nav/layout-after-nav.component.ts +0 -24
  214. package/layout/src/components/layout-content/layout-content.component.spec.ts +0 -24
  215. package/layout/src/components/layout-content/layout-content.component.ts +0 -24
  216. package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.html +0 -1
  217. package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.ts +0 -14
  218. package/layout/src/components/layout-drawer-content/layout-drawer-content.component.html +0 -1
  219. package/layout/src/components/layout-drawer-content/layout-drawer-content.component.ts +0 -14
  220. package/layout/src/components/layout-drawer-title/layout-drawer-title.component.html +0 -7
  221. package/layout/src/components/layout-drawer-title/layout-drawer-title.component.ts +0 -18
  222. package/layout/src/components/layout-footer/layout-footer.component.ts +0 -11
  223. package/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +0 -24
  224. package/layout/src/components/layout-login-menu/layout-login-menu.component.ts +0 -24
  225. package/layout/src/components/layout-route/layout-route.component.html +0 -64
  226. package/layout/src/components/layout-route/layout-route.component.spec.ts +0 -24
  227. package/layout/src/components/layout-route/layout-route.component.ts +0 -57
  228. package/layout/src/components/layout-sidenav/layout-sidenav.component.html +0 -104
  229. package/layout/src/components/layout-sidenav/layout-sidenav.component.ts +0 -88
  230. package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +0 -9
  231. package/layout/src/components/layout-subroute/layout-subroute.component.html +0 -43
  232. package/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +0 -24
  233. package/layout/src/components/layout-subroute/layout-subroute.component.ts +0 -62
  234. package/layout/src/components/layout-title/layout-title.component.spec.ts +0 -24
  235. package/layout/src/components/layout-title/layout-title.component.ts +0 -24
  236. package/layout/src/decorators/coerce-boolean-input.decorator.ts +0 -19
  237. package/layout/src/decorators/observable-content.decorator.ts +0 -13
  238. package/layout/src/directives/drawer-host.directive.ts +0 -42
  239. package/layout/src/enums/environment.enum.ts +0 -6
  240. package/layout/src/layout.module.ts +0 -47
  241. package/layout/src/models/onem-language.model.ts +0 -4
  242. package/layout/src/models/onemrva-profile.model.ts +0 -57
  243. package/layout/src/services/drawer.service.ts +0 -30
  244. package/layout/src/striphtml.pipe.ts +0 -10
  245. package/layout/src/test.ts +0 -31
  246. package/mat-avatar/index.ts +0 -2
  247. package/mat-avatar/ng-package.json +0 -6
  248. package/mat-avatar/src/onemrva-mat-avatar.component.html +0 -21
  249. package/mat-avatar/src/onemrva-mat-avatar.component.ts +0 -421
  250. package/mat-avatar/src/onemrva-mat-avatar.module.ts +0 -11
  251. package/mat-avatar/src/onemrva-mat.avatar.component.spec.ts +0 -54
  252. package/mat-badge/index.ts +0 -6
  253. package/mat-badge/ng-package.json +0 -6
  254. package/mat-badge/src/onemrva-mat-badge.component.scss +0 -157
  255. package/mat-badge/src/onemrva-mat-badge.component.ts +0 -331
  256. package/mat-badge/src/onemrva-mat-badge.module.ts +0 -8
  257. package/mat-breadcrumb/index.ts +0 -7
  258. package/mat-breadcrumb/ng-package.json +0 -6
  259. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +0 -37
  260. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +0 -16
  261. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +0 -4
  262. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +0 -12
  263. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +0 -65
  264. package/mat-carousel/index.ts +0 -2
  265. package/mat-carousel/ng-package.json +0 -6
  266. package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.html +0 -5
  267. package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.ts +0 -27
  268. package/mat-carousel/src/onemrva-mat-carousel-item.directive.ts +0 -8
  269. package/mat-carousel/src/onemrva-mat-carousel.component.html +0 -43
  270. package/mat-carousel/src/onemrva-mat-carousel.component.ts +0 -160
  271. package/mat-copy-to-clipboard/index.ts +0 -1
  272. package/mat-copy-to-clipboard/ng-package.json +0 -6
  273. package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.html +0 -14
  274. package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.ts +0 -76
  275. package/mat-datepicker-header/index.ts +0 -5
  276. package/mat-datepicker-header/ng-package.json +0 -6
  277. package/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +0 -12
  278. package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +0 -54
  279. package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +0 -283
  280. package/mat-file-upload/index.ts +0 -11
  281. package/mat-file-upload/ng-package.json +0 -6
  282. package/mat-file-upload/src/components/index.ts +0 -10
  283. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +0 -59
  284. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +0 -79
  285. package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +0 -58
  286. package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +0 -209
  287. package/mat-file-upload/src/directives/dnd.directive.ts +0 -41
  288. package/mat-file-upload/src/models/action-config.model.ts +0 -10
  289. package/mat-file-upload/src/models/progress-file.model.ts +0 -94
  290. package/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +0 -79
  291. package/mat-file-upload/src/onemrva-mat-file-upload.module.ts +0 -28
  292. package/mat-file-upload/src/onemrva-mat-file-upload.service.ts +0 -68
  293. package/mat-file-upload/src/onemrva-mat-file-upload.store.ts +0 -482
  294. package/mat-input-bank-account/index.ts +0 -5
  295. package/mat-input-bank-account/ng-package.json +0 -6
  296. package/mat-input-bank-account/src/bank-account.component.html +0 -36
  297. package/mat-input-bank-account/src/bank-account.component.scss +0 -42
  298. package/mat-input-bank-account/src/bank-account.component.ts +0 -308
  299. package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +0 -11
  300. package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +0 -14
  301. package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +0 -82
  302. package/mat-input-birthplace/index.ts +0 -5
  303. package/mat-input-birthplace/ng-package.json +0 -6
  304. package/mat-input-birthplace/src/country-item.component.html +0 -8
  305. package/mat-input-birthplace/src/country-item.component.ts +0 -33
  306. package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.html +0 -28
  307. package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.ts +0 -129
  308. package/mat-input-country/index.ts +0 -6
  309. package/mat-input-country/ng-package.json +0 -6
  310. package/mat-input-country/src/countries.ts +0 -3198
  311. package/mat-input-country/src/onemrva-mat-input-country.component.html +0 -25
  312. package/mat-input-country/src/onemrva-mat-input-country.component.ts +0 -152
  313. package/mat-input-enterprise-number/index.ts +0 -5
  314. package/mat-input-enterprise-number/ng-package.json +0 -6
  315. package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +0 -42
  316. package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +0 -212
  317. package/mat-input-phone/index.ts +0 -6
  318. package/mat-input-phone/ng-package.json +0 -6
  319. package/mat-input-phone/src/onemrva-mat-input-phone.component.html +0 -47
  320. package/mat-input-phone/src/onemrva-mat-input-phone.component.ts +0 -274
  321. package/mat-input-phone/src/phone-number.directive.ts +0 -46
  322. package/mat-message-box/index.ts +0 -2
  323. package/mat-message-box/ng-package.json +0 -6
  324. package/mat-message-box/src/onemrva-mat-message-box.component.html +0 -3
  325. package/mat-message-box/src/onemrva-mat-message-box.component.ts +0 -172
  326. package/mat-message-box/src/onemrva-mat-message-box.module.ts +0 -12
  327. package/mat-multi-select/index.ts +0 -2
  328. package/mat-multi-select/ng-package.json +0 -6
  329. package/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +0 -66
  330. package/mat-multi-select/src/onemrva-mat-multi-select.component.html +0 -44
  331. package/mat-multi-select/src/onemrva-mat-multi-select.component.ts +0 -194
  332. package/mat-multi-select/src/onemrva-mat-multi-select.module.ts +0 -27
  333. package/mat-multi-select/src/onemrva-mat-select-counter.component.ts +0 -0
  334. package/mat-notification/index.ts +0 -1
  335. package/mat-notification/ng-package.json +0 -6
  336. package/mat-notification/src/_onemrva-mat-notification.component.scss +0 -102
  337. package/mat-notification/src/onemrva-mat-notification.component.html +0 -15
  338. package/mat-notification/src/onemrva-mat-notification.component.ts +0 -158
  339. package/mat-paginator/index.ts +0 -6
  340. package/mat-paginator/ng-package.json +0 -6
  341. package/mat-paginator/src/_onemrva-mat-paginator.component.scss +0 -122
  342. package/mat-paginator/src/onemrva-mat-paginator.component.html +0 -108
  343. package/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +0 -184
  344. package/mat-paginator/src/onemrva-mat-paginator.component.ts +0 -216
  345. package/mat-paginator/src/onemrva-mat-paginator.module.ts +0 -21
  346. package/mat-panel/index.ts +0 -6
  347. package/mat-panel/ng-package.json +0 -6
  348. package/mat-panel/src/onemrva-mat-panel-content.component.ts +0 -11
  349. package/mat-panel/src/onemrva-mat-panel-content.html +0 -5
  350. package/mat-panel/src/onemrva-mat-panel-icon.component.ts +0 -11
  351. package/mat-panel/src/onemrva-mat-panel-icon.html +0 -5
  352. package/mat-panel/src/onemrva-mat-panel-title-action.component.ts +0 -11
  353. package/mat-panel/src/onemrva-mat-panel-title-action.html +0 -5
  354. package/mat-panel/src/onemrva-mat-panel-title.component.ts +0 -29
  355. package/mat-panel/src/onemrva-mat-panel-title.html +0 -8
  356. package/mat-panel/src/onemrva-mat-panel.component.html +0 -10
  357. package/mat-panel/src/onemrva-mat-panel.component.ts +0 -122
  358. package/mat-panel/src/onemrva-mat-panel.module.ts +0 -26
  359. package/mat-pop-over/index.ts +0 -4
  360. package/mat-pop-over/ng-package.json +0 -6
  361. package/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +0 -13
  362. package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +0 -13
  363. package/mat-pop-over/src/onemrva-mat-pop-over.component.html +0 -29
  364. package/mat-pop-over/src/onemrva-mat-pop-over.component.ts +0 -46
  365. package/mat-pop-over/src/onemrva-mat-pop-over.module.ts +0 -19
  366. package/mat-progress-bar/index.ts +0 -1
  367. package/mat-progress-bar/ng-package.json +0 -6
  368. package/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +0 -37
  369. package/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +0 -13
  370. package/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +0 -27
  371. package/mat-select-search/index.ts +0 -3
  372. package/mat-select-search/ng-package.json +0 -6
  373. package/mat-select-search/src/default-options.ts +0 -48
  374. package/mat-select-search/src/mat-select-no-entries-found.directive.ts +0 -15
  375. package/mat-select-search/src/mat-select-search-clear.directive.ts +0 -13
  376. package/mat-select-search/src/mat-select-search.component.html +0 -82
  377. package/mat-select-search/src/mat-select-search.component.spec.ts +0 -790
  378. package/mat-select-search/src/mat-select-search.component.ts +0 -705
  379. package/mat-select-search/src/mat-select-search.module.ts +0 -52
  380. package/mat-selectable-box/index.ts +0 -6
  381. package/mat-selectable-box/ng-package.json +0 -6
  382. package/mat-selectable-box/src/onemrva-mat-selectable-box.component.ts +0 -99
  383. package/mat-selectable-box/src/onemrva-mat-selectable-box.module.ts +0 -30
  384. package/mat-side-menu/index.ts +0 -6
  385. package/mat-side-menu/ng-package.json +0 -6
  386. package/mat-side-menu/src/onemrva-mat-side-menu.component.html +0 -36
  387. package/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +0 -66
  388. package/mat-side-menu/src/onemrva-mat-side-menu.component.ts +0 -58
  389. package/mat-side-menu/src/onemrva-mat-side-menu.module.ts +0 -14
  390. package/mat-skeleton/index.ts +0 -3
  391. package/mat-skeleton/ng-package.json +0 -6
  392. package/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +0 -32
  393. package/mat-skeleton/src/onemrva-mat-skeleton.component.html +0 -14
  394. package/mat-skeleton/src/onemrva-mat-skeleton.component.ts +0 -187
  395. package/mat-skeleton/src/onemrva-mat-skeleton.module.ts +0 -10
  396. package/mat-spinner/index.ts +0 -7
  397. package/mat-spinner/ng-package.json +0 -6
  398. package/mat-spinner/src/_onemrva-mat-spinner.component.scss +0 -151
  399. package/mat-spinner/src/onemrva-mat-loading.directive.ts +0 -41
  400. package/mat-spinner/src/onemrva-mat-spinner.component.html +0 -2138
  401. package/mat-spinner/src/onemrva-mat-spinner.component.ts +0 -52
  402. package/mat-spinner/src/onemrva-mat-spinner.module.ts +0 -10
  403. package/mat-stepper/index.ts +0 -6
  404. package/mat-stepper/ng-package.json +0 -6
  405. package/mat-stepper/src/_stepper-variables.scss +0 -29
  406. package/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +0 -22
  407. package/mat-stepper/src/onemrva-mat-stepper.component.ts +0 -57
  408. package/mat-stepper/src/onemrva-mat-stepper.html +0 -61
  409. package/mat-stepper/src/onemrva-mat-stepper.module.ts +0 -24
  410. package/mat-stepper/src/onemrva-stepper-animations.ts +0 -42
  411. package/mat-sticker/index.ts +0 -6
  412. package/mat-sticker/ng-package.json +0 -6
  413. package/mat-sticker/src/onemrva-mat-sticker.component.spec.ts +0 -16
  414. package/mat-sticker/src/onemrva-mat-sticker.component.ts +0 -58
  415. package/mat-sticker/src/onemrva-mat-sticker.module.ts +0 -10
  416. package/mat-table-of-content/index.ts +0 -8
  417. package/mat-table-of-content/ng-package.json +0 -6
  418. package/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +0 -79
  419. package/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +0 -23
  420. package/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +0 -126
  421. package/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +0 -67
  422. package/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +0 -51
  423. package/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +0 -24
  424. package/mat-task-list/index.ts +0 -5
  425. package/mat-task-list/ng-package.json +0 -6
  426. package/mat-task-list/src/onemrva-mat-task-content.component.ts +0 -11
  427. package/mat-task-list/src/onemrva-mat-task-content.html +0 -5
  428. package/mat-task-list/src/onemrva-mat-task-list.component.html +0 -1
  429. package/mat-task-list/src/onemrva-mat-task-list.component.ts +0 -39
  430. package/mat-task-list/src/onemrva-mat-task-list.module.ts +0 -31
  431. package/mat-task-list/src/onemrva-mat-task-title.component.ts +0 -24
  432. package/mat-task-list/src/onemrva-mat-task-title.html +0 -5
  433. package/mat-task-list/src/onemrva-mat-task.component.html +0 -23
  434. package/mat-task-list/src/onemrva-mat-task.component.ts +0 -121
  435. package/mat-timepicker/index.ts +0 -6
  436. package/mat-timepicker/ng-package.json +0 -6
  437. package/mat-timepicker/src/clock/clock.component.html +0 -109
  438. package/mat-timepicker/src/clock/clock.component.spec.ts +0 -38
  439. package/mat-timepicker/src/clock/clock.component.ts +0 -274
  440. package/mat-timepicker/src/interfaces-and-types.ts +0 -18
  441. package/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
  442. package/mat-timepicker/src/onemrva-mat-timepicker.component.ts +0 -300
  443. package/mat-timepicker/src/onemrva-mat-timepicker.module.ts +0 -40
  444. package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +0 -53
  445. package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +0 -41
  446. package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +0 -176
  447. package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +0 -15
  448. package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +0 -140
  449. package/mat-timepicker/src/timepicker.directive.ts +0 -596
  450. package/mat-timepicker/src/util.ts +0 -109
  451. package/mat-toast/index.ts +0 -6
  452. package/mat-toast/ng-package.json +0 -6
  453. package/mat-toast/src/onemrva-mat-toast.component.ts +0 -36
  454. package/mat-toast/src/onemrva-mat-toast.module.ts +0 -11
  455. package/mat-tooltip/index.ts +0 -4
  456. package/mat-tooltip/ng-package.json +0 -6
  457. package/mat-tooltip/src/onemrva-mat-tooltip.component.ts +0 -21
  458. package/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +0 -123
  459. package/mat-tooltip/src/onemrva-mat-tooltip.module.ts +0 -11
  460. package/ng-package.json +0 -25
  461. package/npm-shrinkwrap.json +0 -30
  462. package/page-not-found/index.ts +0 -5
  463. package/page-not-found/ng-package.json +0 -6
  464. package/page-not-found/src/page-not-found-action.component.ts +0 -9
  465. package/page-not-found/src/page-not-found-extra.component.ts +0 -9
  466. package/page-not-found/src/page-not-found-invader.component.ts +0 -93
  467. package/page-not-found/src/page-not-found.component.html +0 -47
  468. package/page-not-found/src/page-not-found.component.ts +0 -60
  469. package/page-not-found/src/page-not-found.module.ts +0 -24
  470. package/shared/index.ts +0 -17
  471. package/shared/ng-package.json +0 -6
  472. package/shared/src/lib/OnemrvaDateAdapter.ts +0 -78
  473. package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.css +0 -0
  474. package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.html +0 -1
  475. package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.spec.ts +0 -21
  476. package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.ts +0 -18
  477. package/shared/src/lib/containers/WebComponentOverlayContainer.ts +0 -90
  478. package/shared/src/lib/containers/index.ts +0 -1
  479. package/shared/src/lib/date.format.ts +0 -11
  480. package/shared/src/lib/directives/clipboard.directive.ts +0 -52
  481. package/shared/src/lib/directives/color.directive.ts +0 -46
  482. package/shared/src/lib/directives/digit-only.directive.ts +0 -46
  483. package/shared/src/lib/directives/if-width-is.directive.ts +0 -39
  484. package/shared/src/lib/directives/index.ts +0 -22
  485. package/shared/src/lib/directives/mask.directive.ts +0 -223
  486. package/shared/src/lib/directives/mat-row-clickable.directive.ts +0 -66
  487. package/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.ts +0 -23
  488. package/shared/src/lib/interfaces/index.ts +0 -1
  489. package/shared/src/lib/pipes/index.ts +0 -2
  490. package/shared/src/lib/pipes/onemrva-bce.pipe.ts +0 -18
  491. package/shared/src/lib/pipes/onemrva-niss.pipe.ts +0 -18
  492. package/shared/src/lib/services/commonCountryLookup.service.ts +0 -50
  493. package/shared/src/lib/services/index.ts +0 -1
  494. package/shared/src/lib/shared.datepicker.module.ts +0 -60
  495. package/shared/src/lib/shared.module.ts +0 -10
  496. package/shared/src/lib/validators/bankAccountValidator.utils.ts +0 -61
  497. package/shared/src/lib/validators/onemrva-validators.spec.ts +0 -79
  498. package/shared/src/lib/validators/onemrva-validators.ts +0 -97
  499. package/shared/src/onemrva-validators.spec.ts +0 -14
  500. package/src/polyfills.ts +0 -52
  501. package/src/public-api.spec.ts +0 -7
  502. package/src/public-api.ts +0 -5
  503. package/tsconfig.lib.json +0 -12
  504. package/tsconfig.lib.prod.json +0 -10
  505. package/tsconfig.spec.json +0 -10
  506. package/utils/index.ts +0 -2
  507. package/utils/ng-package.json +0 -6
  508. package/utils/src/enum.utils.ts +0 -8
  509. package/utils/src/enums/color.enum.ts +0 -14
  510. package/utils/src/enums/index.ts +0 -2
  511. package/utils/src/enums/size.enum.ts +0 -11
  512. /package/{assets/.gitkeep → mat-navigation/src/mat-navigation-tree/onemrva-mat-navigation-tree.component.scss} +0 -0
@@ -1,18 +0,0 @@
1
- import { Component, ElementRef } from '@angular/core';
2
- import { MatIconModule } from '@angular/material/icon';
3
- import { MatTooltipModule } from '@angular/material/tooltip';
4
- import { Clipboard } from '@angular/cdk/clipboard';
5
-
6
- @Component({
7
- selector: 'lib-clipboard-icon',
8
- templateUrl: './clipboard-icon.component.html',
9
- styleUrls: ['./clipboard-icon.component.css'],
10
- standalone: true,
11
- imports: [MatIconModule, MatTooltipModule],
12
- })
13
- export class ClipboardIconComponent {
14
- constructor(
15
- public _elementRef: ElementRef,
16
- private clipboardService: Clipboard,
17
- ) {}
18
- }
@@ -1,90 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
-
9
- import { DOCUMENT } from '@angular/common';
10
- import { Inject, Injectable, OnDestroy } from '@angular/core';
11
- import { Platform, _isTestEnvironment } from '@angular/cdk/platform';
12
-
13
- /** Container inside which all overlays will render. */
14
- @Injectable({ providedIn: 'root' })
15
- export class WebComponentOverlayContainer implements OnDestroy {
16
- protected _containerElement: HTMLElement | null = null;
17
- protected _document: Document;
18
-
19
- constructor(
20
- @Inject(DOCUMENT) document: any,
21
- protected _platform: Platform,
22
- ) {
23
- this._document = document;
24
- }
25
-
26
- ngOnDestroy() {
27
- this._containerElement?.remove();
28
- }
29
-
30
- /**
31
- * This method returns the overlay container element. It will lazily
32
- * create the element the first time it is called to facilitate using
33
- * the container in non-browser environments.
34
- * @returns the container element
35
- */
36
- getContainerElement(): HTMLElement | null {
37
- if (this._containerElement === null) {
38
- this._createContainer();
39
- }
40
-
41
- return this._containerElement;
42
- }
43
-
44
- /**
45
- * Create the overlay container element, which is simply a div
46
- * with the 'cdk-overlay-container' class on the document body.
47
- */
48
- protected _createContainer(): void {
49
- const containerClass = 'cdk-overlay-container';
50
-
51
- // module or Angular starts tearing down the testing `NgModule`. See:
52
- // https://github.com/angular/angular/issues/18831
53
- if (this._platform.isBrowser || _isTestEnvironment()) {
54
- const oppositePlatformContainers = this._document.querySelectorAll(
55
- `.${containerClass}[platform="server"], ` +
56
- `.${containerClass}[platform="test"]`,
57
- );
58
-
59
- // Remove any old containers from the opposite platform.
60
- // This can happen when transitioning from the server to the client.
61
- for (let i = 0; i < oppositePlatformContainers.length; i++) {
62
- oppositePlatformContainers[i].remove();
63
- }
64
- }
65
-
66
- const containerwrap = this._document.createElement('div');
67
- containerwrap.classList.add('onemrva-theme');
68
-
69
- const container = this._document.createElement('div');
70
- container.classList.add(containerClass);
71
-
72
- // A long time ago we kept adding new overlay containers whenever a new app was instantiated,
73
- // but at some point we added logic which clears the duplicate ones in order to avoid leaks.
74
- // The new logic was a little too aggressive since it was breaking some legitimate use cases.
75
- // To mitigate the problem we made it so that only containers from a different platform are
76
- // cleared, but the side-effect was that people started depending on the overly-aggressive
77
- // logic to clean up their tests for them. Until we can introduce an overlay-specific testing
78
- // module which does the cleanup, we try to detect that we're in a test environment and we
79
- // always clear the container. See #17006.
80
- if (_isTestEnvironment()) {
81
- container.setAttribute('platform', 'test');
82
- } else if (!this._platform.isBrowser) {
83
- container.setAttribute('platform', 'server');
84
- }
85
-
86
- containerwrap.appendChild(container);
87
- this._document.body.appendChild(containerwrap);
88
- this._containerElement = container;
89
- }
90
- }
@@ -1 +0,0 @@
1
- export * from './WebComponentOverlayContainer';
@@ -1,11 +0,0 @@
1
- export const ONEMRVA_FORMAT = {
2
- parse: {
3
- dateInput: 'LL',
4
- },
5
- display: {
6
- dateInput: 'DD/MM/YYYY',
7
- monthYearLabel: 'MMM YYYY',
8
- dateA11yLabel: 'LL',
9
- monthYearA11yLabel: 'MMMM YYYY',
10
- },
11
- };
@@ -1,52 +0,0 @@
1
- import {
2
- ComponentFactoryResolver,
3
- ComponentRef,
4
- Directive,
5
- ElementRef,
6
- HostBinding,
7
- Input,
8
- OnInit,
9
- Renderer2,
10
- ViewContainerRef,
11
- } from '@angular/core';
12
- import { Clipboard } from '@angular/cdk/clipboard';
13
- import { ClipboardIconComponent } from '../components/clipboard-icon/clipboard-icon.component';
14
-
15
- /**
16
- * Conditionally adds component to the tree if screen width matches at least one size in input
17
- */
18
- @Directive({
19
- selector: 'span[clipboard]',
20
- })
21
- export class OnemRvaClipboardDirective implements OnInit {
22
- private icon: ComponentRef<ClipboardIconComponent>;
23
- private iconEl: any;
24
-
25
- constructor(
26
- private elementRef: ElementRef,
27
- private renderer: Renderer2,
28
- private factory: ComponentFactoryResolver,
29
- private vcRef: ViewContainerRef,
30
- private clipboardService: Clipboard,
31
- ) {
32
- const miFactory = this.factory.resolveComponentFactory(
33
- ClipboardIconComponent,
34
- );
35
- this.icon = this.vcRef.createComponent(miFactory);
36
- this.iconEl = this.icon.injector.get(
37
- ClipboardIconComponent,
38
- )._elementRef.nativeElement;
39
- }
40
-
41
- @HostBinding('class')
42
- class = '';
43
-
44
- @Input()
45
- clipboard: string = '';
46
-
47
- ngOnInit(): void {
48
- this.vcRef.clear();
49
-
50
- this.renderer.appendChild(this.elementRef.nativeElement, this.iconEl);
51
- }
52
- }
@@ -1,46 +0,0 @@
1
- import { Directive, HostBinding, Input } from '@angular/core';
2
- import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
3
-
4
- /**
5
- * Conditionally adds component to the tree if screen width matches at least one size in input
6
- */
7
- @Directive({
8
- selector: 'mat-card[color],mat-chip[color]',
9
- })
10
- export class OnemRvaColorDirective {
11
- constructor() {}
12
-
13
- @Input()
14
- color: OnemrvaMatColor = '';
15
-
16
- /** @hidden @internal */
17
- @HostBinding('class.mat-primary')
18
- public get _isPrimary(): boolean {
19
- return this.color === OnemrvaMatColor.PRIMARY;
20
- }
21
- /** @hidden @internal */
22
- @HostBinding('class.mat-accent')
23
- public get _isAccent(): boolean {
24
- return this.color === OnemrvaMatColor.ACCENT;
25
- }
26
- /** @hidden @internal */
27
- @HostBinding('class.mat-error')
28
- public get _isError(): boolean {
29
- return this.color === OnemrvaMatColor.ERROR;
30
- }
31
- /** @hidden @internal */
32
- @HostBinding('class.mat-warn')
33
- public get _isWarn(): boolean {
34
- return this.color === OnemrvaMatColor.WARN;
35
- }
36
- /** @hidden @internal */
37
- @HostBinding('class.mat-success')
38
- public get _isSuccess(): boolean {
39
- return this.color === OnemrvaMatColor.SUCCESS;
40
- }
41
- /** @hidden @internal */
42
- @HostBinding('class.mat-info')
43
- public get _isInfo(): boolean {
44
- return this.color === OnemrvaMatColor.INFO;
45
- }
46
- }
@@ -1,46 +0,0 @@
1
- import { Directive, HostListener } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[digitOnly]',
5
- })
6
- export class DigitOnlyDirective {
7
- constructor() {}
8
-
9
- @HostListener('keydown', ['$event']) onKeyDown(event: any) {
10
- const e = <KeyboardEvent>event;
11
-
12
- const allowedKey = [
13
- '0',
14
- '1',
15
- '2',
16
- '3',
17
- '4',
18
- '5',
19
- '6',
20
- '7',
21
- '8',
22
- '9',
23
- '.',
24
- ',',
25
- ' ',
26
- 'Backspace',
27
- 'Delete',
28
- 'Tab',
29
- '-',
30
- 'Enter',
31
- 'ArrowLeft',
32
- 'ArrowRight',
33
- 'ArrowUp',
34
- 'ArrowDown',
35
- 'Home',
36
- 'End',
37
- ];
38
- if (allowedKey.indexOf(e.key) >= 0) return;
39
-
40
- // HWKTODO manage ctrl Z and ctrl U
41
- const allowedCtrlShortcuts = ['a', 'c', 'x', 'v'];
42
- if (e.ctrlKey && allowedCtrlShortcuts.indexOf(e.key) >= 0) return;
43
-
44
- e.preventDefault();
45
- }
46
- }
@@ -1,39 +0,0 @@
1
- import {
2
- BreakpointObserver,
3
- Breakpoints,
4
- BreakpointState,
5
- } from '@angular/cdk/layout';
6
- import {
7
- Directive,
8
- Input,
9
- OnInit,
10
- TemplateRef,
11
- ViewContainerRef,
12
- } from '@angular/core';
13
-
14
- /**
15
- * Conditionally adds component to the tree if screen width matches at least one size in input
16
- */
17
- @Directive({
18
- selector: '[ifWidthIs]',
19
- })
20
- export class IfWidthIsDirective implements OnInit {
21
- @Input() ifWidthIs!: (typeof Breakpoints)[keyof typeof Breakpoints][];
22
-
23
- constructor(
24
- public breakpointObserver: BreakpointObserver,
25
- private _templateRef: TemplateRef<any>,
26
- private _viewContainer: ViewContainerRef,
27
- ) {}
28
-
29
- ngOnInit() {
30
- this.breakpointObserver
31
- .observe([...this.ifWidthIs])
32
- .subscribe((state: BreakpointState) => {
33
- this._viewContainer.clear();
34
- if (state.matches) {
35
- this._viewContainer.createEmbeddedView(this._templateRef);
36
- }
37
- });
38
- }
39
- }
@@ -1,22 +0,0 @@
1
- import { DigitOnlyDirective } from './digit-only.directive';
2
- import { MatRowClickableDirective } from './mat-row-clickable.directive';
3
- import { IfWidthIsDirective } from './if-width-is.directive';
4
- import { OnemRvaColorDirective } from './color.directive';
5
- import { OnemrvaMaskDirective } from './mask.directive';
6
- import { OnemRvaClipboardDirective } from './clipboard.directive';
7
-
8
- export const directives: any[] = [
9
- DigitOnlyDirective,
10
- MatRowClickableDirective,
11
- OnemRvaClipboardDirective,
12
- IfWidthIsDirective,
13
- OnemRvaColorDirective,
14
- OnemrvaMaskDirective,
15
- ];
16
-
17
- export * from './digit-only.directive';
18
- export * from './mat-row-clickable.directive';
19
- export * from './if-width-is.directive';
20
- export * from './color.directive';
21
- export * from './mask.directive';
22
- export * from './clipboard.directive';
@@ -1,223 +0,0 @@
1
- import { Directive, ElementRef, HostListener, Input } from '@angular/core';
2
-
3
- const UNDO_STACK_MAX_LENGTH = 50;
4
-
5
- /**
6
- * 0: digits
7
- * A: letters (uppercase or lowercase) and digits
8
- * S: only letters (uppercase or lowercase)
9
- * U: only letters uppercase
10
- * L: only letters lowercase
11
- */
12
-
13
- @Directive({
14
- selector: '[onemrvamask]',
15
- })
16
- export class OnemrvaMaskDirective {
17
- @Input() onemrvamask!: string;
18
-
19
- private inputStack: string[] = ['']; // Stack for undo/redo
20
- private stackIdx: number = 0; // Current index in undo/redo stack
21
-
22
- markForDelete = false;
23
-
24
- @HostListener('keydown', ['$event']) onKeyDown(event: KeyboardEvent) {
25
- // Allow functional keystrokes
26
- const e = <KeyboardEvent>event;
27
-
28
- let specialKeys = [
29
- 'Tab',
30
- 'Enter',
31
- 'ArrowLeft',
32
- 'ArrowRight',
33
- 'ArrowUp',
34
- 'ArrowDown',
35
- 'Home',
36
- 'End',
37
- ];
38
- if (specialKeys.indexOf(e.key) >= 0) return;
39
-
40
- specialKeys = ['Backspace', 'Delete'];
41
- if (specialKeys.indexOf(e.key) >= 0) {
42
- this.markForDelete = true;
43
- return;
44
- }
45
-
46
- // Undo
47
- if (e.ctrlKey && 'z' === e.key && this.stackIdx > 0) {
48
- this.stackIdx--;
49
- this.el.nativeElement.value = this.inputStack[this.stackIdx];
50
- event.preventDefault();
51
- }
52
-
53
- // Redo
54
- if (
55
- e.ctrlKey &&
56
- 'u' === e.key &&
57
- this.stackIdx < this.inputStack.length - 1
58
- ) {
59
- this.stackIdx++;
60
- this.el.nativeElement.value = this.inputStack[this.stackIdx];
61
- event.preventDefault();
62
- }
63
-
64
- const allowedCtrlShortcuts = ['a', 'c', 'x', 'v'];
65
- if (e.ctrlKey && allowedCtrlShortcuts.indexOf(e.key) >= 0) return;
66
- }
67
-
68
- @HostListener('input', ['$event']) onInput(event: any) {
69
- const selectionStart = event.target?.selectionStart;
70
-
71
- /*
72
- * Step 1
73
- * This block lets a delete execution if the new value is compliant.
74
- * There are 2 deletion cases, after which the new value is not compliant
75
- * - dd/MX/yyyy: X is deleted, then the date becomes dd/M/yyyy
76
- * This case is resolved by step 2 and the date will become: dd/My/yyy
77
- * - dd/MMXyyyy: the last '/' is deleted, then the date becomes dd/MMyyyy
78
- * In this particular case, step 2 will automatically add the missing slash, so the date will remain dd/MM/yyyy
79
- * The issue is that the caret position will remain stuck where it was, so if the user keeps hitting the delete key, nothing will change at all. This is resolved in step 4 by moving the caret to the left
80
- */
81
- if (this.markForDelete) {
82
- const isCompliantAfterDeletion =
83
- [...this.el.nativeElement.value].findIndex((char, idx) => {
84
- const rule = this.onemrvamask[idx];
85
-
86
- if (rule === null || rule === undefined) return true;
87
-
88
- if (isNaN(char) && char.toLowerCase() === char.toUpperCase())
89
- return char !== rule;
90
-
91
- return !isAllowed(rule, char);
92
- }) < 0;
93
-
94
- if (isCompliantAfterDeletion) {
95
- this.markForDelete = false;
96
- return;
97
- }
98
- }
99
-
100
- // Step 2
101
- const compliantValue = [...this.el.nativeElement.value]
102
- .filter(char => isAllowed('A', char)) // Necessary when several special char in a row
103
- .reduce((newValue, char) => {
104
- let idx = newValue.length;
105
- const rule = this.onemrvamask[idx];
106
-
107
- if (rule === null || rule === undefined) return newValue;
108
-
109
- newValue = !isAllowed(rule, char) ? newValue : newValue + char;
110
-
111
- // Add all trailing special characters
112
- let nextRule = this.onemrvamask[++idx];
113
- let i = 0;
114
-
115
- while (
116
- nextRule !== null &&
117
- nextRule !== undefined &&
118
- ['0', 'A', 'S', 'U', 'L'].indexOf(nextRule) < 0
119
- ) {
120
- i++;
121
- newValue += nextRule;
122
- nextRule = this.onemrvamask[++idx];
123
-
124
- if (i > 50) break;
125
- }
126
-
127
- return newValue;
128
- }, '');
129
-
130
- this.el.nativeElement.value = compliantValue;
131
-
132
- // Step 3 - Find the new cursor position. If the last new character is just before special character, move the caret after
133
- let idx = selectionStart;
134
- let nextRule = this.onemrvamask[idx];
135
- while (
136
- nextRule !== null &&
137
- nextRule !== undefined &&
138
- ['0', 'A', 'S', 'U', 'L'].indexOf(nextRule) < 0
139
- ) {
140
- idx++;
141
- nextRule = this.onemrvamask[idx];
142
- if (
143
- nextRule !== null &&
144
- nextRule &&
145
- ['0', 'A', 'S', 'U', 'L'].indexOf(nextRule) < 0
146
- ) {
147
- /* empty */
148
- } else break;
149
- }
150
-
151
- // Step 4 - Update inputStack only when all characters are processed
152
- if (compliantValue !== this.inputStack[this.stackIdx]) {
153
- this.stackIdx++;
154
-
155
- const stack =
156
- this.stackIdx > UNDO_STACK_MAX_LENGTH - 1
157
- ? this.inputStack.slice(1)
158
- : this.inputStack.splice(0, this.stackIdx);
159
- this.stackIdx =
160
- this.stackIdx > UNDO_STACK_MAX_LENGTH - 1
161
- ? UNDO_STACK_MAX_LENGTH - 1
162
- : this.stackIdx;
163
-
164
- this.inputStack = [...stack, compliantValue];
165
-
166
- this.el.nativeElement.setSelectionRange(idx, idx);
167
- } else {
168
- if (this.markForDelete) {
169
- let i = idx - 1;
170
- /* Finds the last rule character before the special character.
171
- * e.g: (nnn)/nnnn
172
- * If the user tries to delete '/', the caret will move just before ')'
173
- */
174
- while (i > 0) {
175
- const previousRule = this.onemrvamask[i - 1];
176
- if (['0', 'A', 'S', 'U', 'L'].indexOf(previousRule) < 0) {
177
- i--;
178
- } else break;
179
- }
180
- this.el.nativeElement.setSelectionRange(i, i);
181
- }
182
- }
183
- this.markForDelete = false;
184
- }
185
-
186
- constructor(private el: ElementRef) {}
187
- }
188
-
189
- function isAllowed(rule: string, character: string) {
190
- switch (rule) {
191
- // Any digit
192
- case '0':
193
- if (character === ' ') return false;
194
- return !isNaN(+character);
195
-
196
- // A: letters (uppercase or lowercase) and digits
197
- case 'A':
198
- if (character === ' ') return false;
199
- return (
200
- !isNaN(+character) || character.toLowerCase() != character.toUpperCase()
201
- );
202
-
203
- // only letters (uppercase or lowercase)
204
- case 'S':
205
- return character.toLowerCase() != character.toUpperCase();
206
-
207
- // only uppercase letters
208
- case 'U':
209
- return (
210
- character.toLowerCase() != character.toUpperCase() &&
211
- character === character.toUpperCase()
212
- );
213
-
214
- // only lowercase letters
215
- case 'L':
216
- return (
217
- character.toLowerCase() != character.toUpperCase() &&
218
- character === character.toLowerCase()
219
- );
220
- }
221
-
222
- return false;
223
- }
@@ -1,66 +0,0 @@
1
- import {
2
- Directive,
3
- ElementRef,
4
- EventEmitter,
5
- HostBinding,
6
- HostListener,
7
- Input,
8
- Output,
9
- } from '@angular/core';
10
- import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
11
-
12
- @Directive({
13
- selector: '[mat-row-clickable]',
14
- })
15
- export class MatRowClickableDirective {
16
- @Output() matRowClickable = new EventEmitter<any>();
17
-
18
- @Input()
19
- color: OnemrvaMatColor = '';
20
-
21
- constructor(private el: ElementRef) {}
22
-
23
- @HostListener('click', ['$event'])
24
- click() {
25
- this.matRowClickable.emit();
26
- }
27
-
28
- @HostBinding('class.onemrva-clickable-row')
29
- public cssClass = true;
30
-
31
- /** @hidden @internal */
32
- @HostBinding('class.mat-primary')
33
- public get _isPrimary(): boolean {
34
- return this.color === OnemrvaMatColor.PRIMARY;
35
- }
36
-
37
- /** @hidden @internal */
38
- @HostBinding('class.mat-accent')
39
- public get _isAccent(): boolean {
40
- return this.color === OnemrvaMatColor.ACCENT;
41
- }
42
-
43
- /** @hidden @internal */
44
- @HostBinding('class.mat-error')
45
- public get _isError(): boolean {
46
- return this.color === OnemrvaMatColor.ERROR;
47
- }
48
-
49
- /** @hidden @internal */
50
- @HostBinding('class.mat-warn')
51
- public get _isWarn(): boolean {
52
- return this.color === OnemrvaMatColor.WARN;
53
- }
54
-
55
- /** @hidden @internal */
56
- @HostBinding('class.mat-success')
57
- public get _isSuccess(): boolean {
58
- return this.color === OnemrvaMatColor.SUCCESS;
59
- }
60
-
61
- /** @hidden @internal */
62
- @HostBinding('class.mat-info')
63
- public get _isInfo(): boolean {
64
- return this.color === OnemrvaMatColor.INFO;
65
- }
66
- }
@@ -1,23 +0,0 @@
1
- export interface OnemRvaCommonCountry {
2
- className: 'be.fgov.onerva.lookup.wppt.persistence.model.common.Country';
3
- id: number;
4
- code: string;
5
- codeMultiple: Record<string, any>;
6
- descFr: string;
7
- descNl: string;
8
- beginDate: string;
9
- endDate: string;
10
- singlePropertiesMap: {
11
- lastUpdateUserId: string;
12
- flagCee: string;
13
- flagLock: string;
14
- vergunArbeid: string;
15
- aa: string;
16
- commentLegal: string;
17
- codeSepa: string;
18
- vergunVerblijf: string;
19
- lastUpdateDate: string;
20
- };
21
- multiPropertiesCollectionMap: Record<string, any>;
22
- singlePropertisCollectionMap: Record<string, any>;
23
- }
@@ -1 +0,0 @@
1
- export * from './OnemRvaCommonCountry.interface';
@@ -1,2 +0,0 @@
1
- export * from './onemrva-bce.pipe';
2
- export * from './onemrva-niss.pipe';
@@ -1,18 +0,0 @@
1
- import { Pipe, PipeTransform } from '@angular/core';
2
-
3
- @Pipe({
4
- name: 'onemrvaBce',
5
- standalone: true,
6
- })
7
- export class OnemrvaBcePipe implements PipeTransform {
8
- transform(value: string): string {
9
- const strOut = value.trim().replace(/\/|\.|-/g, '');
10
-
11
- if (strOut.length !== 10) return '?01?.???.???';
12
-
13
- return `${strOut.substring(0, 4)}.${strOut.substring(
14
- 4,
15
- 7,
16
- )}.${strOut.substring(7, 10)}`;
17
- }
18
- }
@@ -1,18 +0,0 @@
1
- import { Pipe, PipeTransform } from '@angular/core';
2
-
3
- @Pipe({
4
- name: 'onemrvaNiss',
5
- standalone: true,
6
- })
7
- export class OnemrvaNissPipe implements PipeTransform {
8
- transform(value: string): string {
9
- const strOut = value.trim().replace(/\/|\.|-/g, '');
10
-
11
- if (strOut.length !== 11) return '??01??/???-??';
12
-
13
- return `${strOut.substring(0, 6)}/${strOut.substring(
14
- 6,
15
- 9,
16
- )}-${strOut.substring(9, 11)}`;
17
- }
18
- }