@onemrvapublic/design-system 0.0.0

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 (434) hide show
  1. package/.dockerignore +4 -0
  2. package/.editorconfig +16 -0
  3. package/.github/workflows/npm-publish.yml +34 -0
  4. package/README.md +27 -0
  5. package/angular.json +214 -0
  6. package/build.sh +108 -0
  7. package/cypress.config.ts +40 -0
  8. package/index.html +10 -0
  9. package/npm-publish.sh +11 -0
  10. package/package.json +89 -0
  11. package/projects/onemrva/design-system/README.md +24 -0
  12. package/projects/onemrva/design-system/_index.scss +29 -0
  13. package/projects/onemrva/design-system/_utils.scss +25 -0
  14. package/projects/onemrva/design-system/layout/assets/logo_de.svg +3 -0
  15. package/projects/onemrva/design-system/layout/assets/logo_en.svg +3 -0
  16. package/projects/onemrva/design-system/layout/assets/logo_fr.svg +3 -0
  17. package/projects/onemrva/design-system/layout/assets/logo_nl.svg +3 -0
  18. package/projects/onemrva/design-system/layout/assets/logo_onem_rva.svg +32 -0
  19. package/projects/onemrva/design-system/layout/index.ts +7 -0
  20. package/projects/onemrva/design-system/layout/ng-package.json +6 -0
  21. package/projects/onemrva/design-system/layout/src/components/index.ts +31 -0
  22. package/projects/onemrva/design-system/layout/src/components/layout/_layout-mixin.component.scss +159 -0
  23. package/projects/onemrva/design-system/layout/src/components/layout/layout.component.html +194 -0
  24. package/projects/onemrva/design-system/layout/src/components/layout/layout.component.scss +137 -0
  25. package/projects/onemrva/design-system/layout/src/components/layout/layout.component.spec.ts +24 -0
  26. package/projects/onemrva/design-system/layout/src/components/layout/layout.component.ts +187 -0
  27. package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.spec.ts +24 -0
  28. package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.ts +23 -0
  29. package/projects/onemrva/design-system/layout/src/components/layout-footer/layout-footer.component.ts +11 -0
  30. package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +25 -0
  31. package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.ts +17 -0
  32. package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.html +57 -0
  33. package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.spec.ts +24 -0
  34. package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.ts +56 -0
  35. package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.html +104 -0
  36. package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.ts +88 -0
  37. package/projects/onemrva/design-system/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +9 -0
  38. package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.html +44 -0
  39. package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +24 -0
  40. package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.ts +35 -0
  41. package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.spec.ts +25 -0
  42. package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.ts +17 -0
  43. package/projects/onemrva/design-system/layout/src/decorators/coerce-boolean-input.decorator.ts +19 -0
  44. package/projects/onemrva/design-system/layout/src/decorators/observable-content.decorator.ts +13 -0
  45. package/projects/onemrva/design-system/layout/src/directives/drawer-host.directive.ts +10 -0
  46. package/projects/onemrva/design-system/layout/src/enums/environment.enum.ts +6 -0
  47. package/projects/onemrva/design-system/layout/src/layout.component.spec.ts +24 -0
  48. package/projects/onemrva/design-system/layout/src/layout.module.ts +103 -0
  49. package/projects/onemrva/design-system/layout/src/models/onem-language.model.ts +4 -0
  50. package/projects/onemrva/design-system/layout/src/models/onemrva-profile.model.ts +57 -0
  51. package/projects/onemrva/design-system/layout/src/services/drawer.service.ts +28 -0
  52. package/projects/onemrva/design-system/layout/src/striphtml.pipe.ts +11 -0
  53. package/projects/onemrva/design-system/layout/src/test.ts +25 -0
  54. package/projects/onemrva/design-system/mat-avatar/index.ts +2 -0
  55. package/projects/onemrva/design-system/mat-avatar/ng-package.json +6 -0
  56. package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.html +17 -0
  57. package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.scss +130 -0
  58. package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.ts +421 -0
  59. package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.module.ts +17 -0
  60. package/projects/onemrva/design-system/mat-badge/index.ts +6 -0
  61. package/projects/onemrva/design-system/mat-badge/ng-package.json +6 -0
  62. package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.scss +152 -0
  63. package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.ts +291 -0
  64. package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.module.ts +8 -0
  65. package/projects/onemrva/design-system/mat-breadcrumb/index.ts +7 -0
  66. package/projects/onemrva/design-system/mat-breadcrumb/ng-package.json +6 -0
  67. package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +37 -0
  68. package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +70 -0
  69. package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +16 -0
  70. package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +4 -0
  71. package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +12 -0
  72. package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +65 -0
  73. package/projects/onemrva/design-system/mat-clipboard/index.ts +6 -0
  74. package/projects/onemrva/design-system/mat-clipboard/ng-package.json +6 -0
  75. package/projects/onemrva/design-system/mat-clipboard/src/_onemrva-mat-spinner.component.scss +62 -0
  76. package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.component.ts +16 -0
  77. package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.module.ts +14 -0
  78. package/projects/onemrva/design-system/mat-datepicker-header/index.ts +5 -0
  79. package/projects/onemrva/design-system/mat-datepicker-header/ng-package.json +6 -0
  80. package/projects/onemrva/design-system/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +11 -0
  81. package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +53 -0
  82. package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +285 -0
  83. package/projects/onemrva/design-system/mat-file-upload/index.ts +11 -0
  84. package/projects/onemrva/design-system/mat-file-upload/ng-package.json +6 -0
  85. package/projects/onemrva/design-system/mat-file-upload/src/components/index.ts +10 -0
  86. package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +59 -0
  87. package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +24 -0
  88. package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +79 -0
  89. package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +53 -0
  90. package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +248 -0
  91. package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +185 -0
  92. package/projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts +43 -0
  93. package/projects/onemrva/design-system/mat-file-upload/src/models/action-config.model.ts +10 -0
  94. package/projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts +94 -0
  95. package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +79 -0
  96. package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts +28 -0
  97. package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts +68 -0
  98. package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts +473 -0
  99. package/projects/onemrva/design-system/mat-input-bank-account/index.ts +5 -0
  100. package/projects/onemrva/design-system/mat-input-bank-account/ng-package.json +6 -0
  101. package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +32 -0
  102. package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +9 -0
  103. package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +125 -0
  104. package/projects/onemrva/design-system/mat-input-country/index.ts +6 -0
  105. package/projects/onemrva/design-system/mat-input-country/ng-package.json +6 -0
  106. package/projects/onemrva/design-system/mat-input-country/src/countries.ts +3182 -0
  107. package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.html +29 -0
  108. package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.scss +29 -0
  109. package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.ts +144 -0
  110. package/projects/onemrva/design-system/mat-input-enterprise-number/index.ts +5 -0
  111. package/projects/onemrva/design-system/mat-input-enterprise-number/ng-package.json +6 -0
  112. package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +39 -0
  113. package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +25 -0
  114. package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +190 -0
  115. package/projects/onemrva/design-system/mat-input-phone/index.ts +6 -0
  116. package/projects/onemrva/design-system/mat-input-phone/ng-package.json +6 -0
  117. package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.html +43 -0
  118. package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.scss +29 -0
  119. package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.ts +261 -0
  120. package/projects/onemrva/design-system/mat-input-phone/src/phone-number.directive.ts +47 -0
  121. package/projects/onemrva/design-system/mat-message-box/index.ts +2 -0
  122. package/projects/onemrva/design-system/mat-message-box/ng-package.json +6 -0
  123. package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.scss +60 -0
  124. package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.ts +134 -0
  125. package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.module.ts +12 -0
  126. package/projects/onemrva/design-system/mat-multi-select/index.ts +2 -0
  127. package/projects/onemrva/design-system/mat-multi-select/ng-package.json +6 -0
  128. package/projects/onemrva/design-system/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +66 -0
  129. package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.html +24 -0
  130. package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts +152 -0
  131. package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts +31 -0
  132. package/projects/onemrva/design-system/mat-notification/index.ts +1 -0
  133. package/projects/onemrva/design-system/mat-notification/ng-package.json +6 -0
  134. package/projects/onemrva/design-system/mat-notification/src/_onemrva-mat-notification.component.scss +71 -0
  135. package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.html +10 -0
  136. package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts +158 -0
  137. package/projects/onemrva/design-system/mat-paginator/index.ts +6 -0
  138. package/projects/onemrva/design-system/mat-paginator/ng-package.json +7 -0
  139. package/projects/onemrva/design-system/mat-paginator/package.json +7 -0
  140. package/projects/onemrva/design-system/mat-paginator/src/_onemrva-mat-paginator.component.scss +122 -0
  141. package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.html +104 -0
  142. package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +184 -0
  143. package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.ts +214 -0
  144. package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.module.ts +15 -0
  145. package/projects/onemrva/design-system/mat-panel/index.ts +6 -0
  146. package/projects/onemrva/design-system/mat-panel/ng-package.json +6 -0
  147. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.component.ts +12 -0
  148. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.html +5 -0
  149. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.component.ts +12 -0
  150. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.html +5 -0
  151. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts +12 -0
  152. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.html +5 -0
  153. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.component.ts +20 -0
  154. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.html +8 -0
  155. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.html +10 -0
  156. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.scss +100 -0
  157. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.ts +122 -0
  158. package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.module.ts +26 -0
  159. package/projects/onemrva/design-system/mat-pop-over/index.ts +4 -0
  160. package/projects/onemrva/design-system/mat-pop-over/ng-package.json +6 -0
  161. package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +13 -0
  162. package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +13 -0
  163. package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.html +29 -0
  164. package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.scss +141 -0
  165. package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.ts +47 -0
  166. package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module.ts +19 -0
  167. package/projects/onemrva/design-system/mat-progress-bar/index.ts +1 -0
  168. package/projects/onemrva/design-system/mat-progress-bar/ng-package.json +6 -0
  169. package/projects/onemrva/design-system/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +37 -0
  170. package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +13 -0
  171. package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +27 -0
  172. package/projects/onemrva/design-system/mat-select-search/index.ts +3 -0
  173. package/projects/onemrva/design-system/mat-select-search/ng-package.json +6 -0
  174. package/projects/onemrva/design-system/mat-select-search/src/default-options.ts +42 -0
  175. package/projects/onemrva/design-system/mat-select-search/src/mat-select-no-entries-found.directive.ts +15 -0
  176. package/projects/onemrva/design-system/mat-select-search/src/mat-select-search-clear.directive.ts +13 -0
  177. package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.html +67 -0
  178. package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.scss +126 -0
  179. package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.spec.ts +790 -0
  180. package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.ts +612 -0
  181. package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.module.ts +53 -0
  182. package/projects/onemrva/design-system/mat-side-menu/index.ts +6 -0
  183. package/projects/onemrva/design-system/mat-side-menu/ng-package.json +6 -0
  184. package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.html +36 -0
  185. package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.scss +50 -0
  186. package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +66 -0
  187. package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.ts +46 -0
  188. package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.module.ts +14 -0
  189. package/projects/onemrva/design-system/mat-skeleton/index.ts +3 -0
  190. package/projects/onemrva/design-system/mat-skeleton/ng-package.json +6 -0
  191. package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +32 -0
  192. package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.html +17 -0
  193. package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.scss +216 -0
  194. package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.ts +173 -0
  195. package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.module.ts +16 -0
  196. package/projects/onemrva/design-system/mat-spinner/index.ts +6 -0
  197. package/projects/onemrva/design-system/mat-spinner/ng-package.json +6 -0
  198. package/projects/onemrva/design-system/mat-spinner/src/_onemrva-mat-spinner.component.scss +62 -0
  199. package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.component.ts +11 -0
  200. package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.module.ts +8 -0
  201. package/projects/onemrva/design-system/mat-stepper/index.ts +6 -0
  202. package/projects/onemrva/design-system/mat-stepper/ng-package.json +6 -0
  203. package/projects/onemrva/design-system/mat-stepper/src/_stepper-variables.scss +29 -0
  204. package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +23 -0
  205. package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.ts +60 -0
  206. package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.html +53 -0
  207. package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.module.ts +30 -0
  208. package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.scss +106 -0
  209. package/projects/onemrva/design-system/mat-stepper/src/onemrva-stepper-animations.ts +40 -0
  210. package/projects/onemrva/design-system/mat-table-of-content/index.ts +8 -0
  211. package/projects/onemrva/design-system/mat-table-of-content/ng-package.json +6 -0
  212. package/projects/onemrva/design-system/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +79 -0
  213. package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +23 -0
  214. package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +128 -0
  215. package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +67 -0
  216. package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +51 -0
  217. package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +24 -0
  218. package/projects/onemrva/design-system/mat-task-list/index.ts +5 -0
  219. package/projects/onemrva/design-system/mat-task-list/ng-package.json +6 -0
  220. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.component.ts +12 -0
  221. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.html +5 -0
  222. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.html +1 -0
  223. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.scss +150 -0
  224. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.ts +50 -0
  225. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.module.ts +31 -0
  226. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.component.ts +18 -0
  227. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.html +5 -0
  228. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.html +17 -0
  229. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.scss +0 -0
  230. package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.ts +117 -0
  231. package/projects/onemrva/design-system/mat-timepicker/index.ts +6 -0
  232. package/projects/onemrva/design-system/mat-timepicker/ng-package.json +6 -0
  233. package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.html +42 -0
  234. package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.scss +129 -0
  235. package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.spec.ts +25 -0
  236. package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.ts +273 -0
  237. package/projects/onemrva/design-system/mat-timepicker/src/interfaces-and-types.ts +16 -0
  238. package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
  239. package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.ts +289 -0
  240. package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.module.ts +40 -0
  241. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +53 -0
  242. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +69 -0
  243. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +25 -0
  244. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +169 -0
  245. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +15 -0
  246. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.scss +32 -0
  247. package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +135 -0
  248. package/projects/onemrva/design-system/mat-timepicker/src/timepicker.directive.ts +594 -0
  249. package/projects/onemrva/design-system/mat-timepicker/src/util.ts +97 -0
  250. package/projects/onemrva/design-system/mat-toast/index.ts +6 -0
  251. package/projects/onemrva/design-system/mat-toast/ng-package.json +6 -0
  252. package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.scss +54 -0
  253. package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.ts +36 -0
  254. package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.module.ts +11 -0
  255. package/projects/onemrva/design-system/mat-tooltip/index.ts +4 -0
  256. package/projects/onemrva/design-system/mat-tooltip/ng-package.json +6 -0
  257. package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.scss +9 -0
  258. package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts +21 -0
  259. package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +119 -0
  260. package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts +11 -0
  261. package/projects/onemrva/design-system/ng-package.json +20 -0
  262. package/projects/onemrva/design-system/package.json +27 -0
  263. package/projects/onemrva/design-system/page-not-found/assets/404/Arri/303/250re-plan.svg +22 -0
  264. package/projects/onemrva/design-system/page-not-found/assets/404/Halo.svg +10 -0
  265. package/projects/onemrva/design-system/page-not-found/assets/404/Ombre.svg +3 -0
  266. package/projects/onemrva/design-system/page-not-found/assets/404/Page.svg +21 -0
  267. package/projects/onemrva/design-system/page-not-found/assets/404/Page2.svg +19 -0
  268. package/projects/onemrva/design-system/page-not-found/assets/404/Soucoupe.svg +70 -0
  269. package/projects/onemrva/design-system/page-not-found/assets/404/Yeux.svg +6 -0
  270. package/projects/onemrva/design-system/page-not-found/assets/404/shape.svg +3 -0
  271. package/projects/onemrva/design-system/page-not-found/index.ts +5 -0
  272. package/projects/onemrva/design-system/page-not-found/ng-package.json +9 -0
  273. package/projects/onemrva/design-system/page-not-found/src/page-not-found-action.component.ts +9 -0
  274. package/projects/onemrva/design-system/page-not-found/src/page-not-found-extra.component.ts +9 -0
  275. package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.scss +16 -0
  276. package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.ts +84 -0
  277. package/projects/onemrva/design-system/page-not-found/src/page-not-found-mixin.component.scss +12 -0
  278. package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.html +31 -0
  279. package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.scss +206 -0
  280. package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.ts +59 -0
  281. package/projects/onemrva/design-system/page-not-found/src/page-not-found.module.ts +24 -0
  282. package/projects/onemrva/design-system/src/public-api.ts +5 -0
  283. package/projects/onemrva/design-system/tsconfig.lib.json +12 -0
  284. package/projects/onemrva/design-system/tsconfig.lib.prod.json +10 -0
  285. package/projects/onemrva/design-system/utils/index.ts +2 -0
  286. package/projects/onemrva/design-system/utils/ng-package.json +6 -0
  287. package/projects/onemrva/design-system/utils/src/enum.utils.ts +6 -0
  288. package/projects/onemrva/design-system/utils/src/enums/color.enum.ts +14 -0
  289. package/projects/onemrva/design-system/utils/src/enums/index.ts +2 -0
  290. package/projects/onemrva/design-system/utils/src/enums/size.enum.ts +11 -0
  291. package/projects/schematics/README.md +40 -0
  292. package/projects/schematics/package.json +25 -0
  293. package/projects/schematics/src/cmp-demo/schema.json +15 -0
  294. package/projects/schematics/src/collection.json +17 -0
  295. package/projects/schematics/src/component/files/root/ng-package.json +6 -0
  296. package/projects/schematics/src/component/files/src/onemrva-mat-__name__.component.html +4 -0
  297. package/projects/schematics/src/component/schema.json +11 -0
  298. package/projects/schematics/src/demo/files/demo/demo-__name__.component.html +2 -0
  299. package/projects/schematics/src/demo/files/demo/readme.md +26 -0
  300. package/projects/schematics/src/demo/schema.json +15 -0
  301. package/projects/schematics/tsconfig.json +24 -0
  302. package/projects/test/.nycrc +5 -0
  303. package/projects/test/cypress/coverage.webpack.ts +20 -0
  304. package/projects/test/cypress/cucumber-json/basictest.cucumber.json +402 -0
  305. package/projects/test/cypress/fixtures/example.json +5 -0
  306. package/projects/test/cypress/integration/basictest.feature +53 -0
  307. package/projects/test/cypress/integration/common/basicTestSteps.ts +54 -0
  308. package/projects/test/cypress/plugins/index.ts +13 -0
  309. package/projects/test/cypress/support/commands.ts +44 -0
  310. package/projects/test/cypress/support/e2e.ts +20 -0
  311. package/projects/test/cypress/tsconfig.json +10 -0
  312. package/projects/test/cypress/videos/basictest.feature.mp4 +0 -0
  313. package/projects/test/karma.conf.js +44 -0
  314. package/projects/test/src/app/app-routing.module.ts +14 -0
  315. package/projects/test/src/app/app.component.html +14 -0
  316. package/projects/test/src/app/app.component.scss +0 -0
  317. package/projects/test/src/app/app.component.spec.ts +35 -0
  318. package/projects/test/src/app/app.component.ts +51 -0
  319. package/projects/test/src/app/app.module.ts +103 -0
  320. package/projects/test/src/app/demos/avatar/demo-avatar.component.html +77 -0
  321. package/projects/test/src/app/demos/avatar/demo-avatar.component.scss +4 -0
  322. package/projects/test/src/app/demos/avatar/demo-avatar.component.ts +13 -0
  323. package/projects/test/src/app/demos/badge/demo-badge.component.html +389 -0
  324. package/projects/test/src/app/demos/badge/demo-badge.component.scss +4 -0
  325. package/projects/test/src/app/demos/badge/demo-badge.component.ts +22 -0
  326. package/projects/test/src/app/demos/badge/readme.md +30 -0
  327. package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.html +20 -0
  328. package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.ts +7 -0
  329. package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.module.ts +89 -0
  330. package/projects/test/src/app/demos/breadcrumb/readme.md +29 -0
  331. package/projects/test/src/app/demos/datepicker/demo-datepicker.component.html +10 -0
  332. package/projects/test/src/app/demos/datepicker/demo-datepicker.component.scss +5 -0
  333. package/projects/test/src/app/demos/datepicker/demo-datepicker.component.ts +12 -0
  334. package/projects/test/src/app/demos/datepicker/demo-datepicker.module.ts +43 -0
  335. package/projects/test/src/app/demos/datepicker/readme.md +36 -0
  336. package/projects/test/src/app/demos/file-upload/demo-file-upload.component.html +30 -0
  337. package/projects/test/src/app/demos/file-upload/demo-file-upload.component.ts +132 -0
  338. package/projects/test/src/app/demos/file-upload/demo-file-upload.service.ts +60 -0
  339. package/projects/test/src/app/demos/file-upload/readme.md +26 -0
  340. package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.component.ts +19 -0
  341. package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.module.ts +20 -0
  342. package/projects/test/src/app/demos/input-country/demo-input-country.component.html +9 -0
  343. package/projects/test/src/app/demos/input-country/demo-input-country.component.ts +14 -0
  344. package/projects/test/src/app/demos/input-country/demo-input-country.module.ts +26 -0
  345. package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.component.ts +13 -0
  346. package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.module.ts +20 -0
  347. package/projects/test/src/app/demos/input-phone/demo-input-phone.component.html +16 -0
  348. package/projects/test/src/app/demos/input-phone/demo-input-phone.component.ts +16 -0
  349. package/projects/test/src/app/demos/input-phone/demo-input-phone.module.ts +21 -0
  350. package/projects/test/src/app/demos/message-box/demo-message-box.component.html +32 -0
  351. package/projects/test/src/app/demos/message-box/demo-message-box.component.ts +12 -0
  352. package/projects/test/src/app/demos/message-box/readme.md +26 -0
  353. package/projects/test/src/app/demos/multiselect/demo-multiselect.component.html +53 -0
  354. package/projects/test/src/app/demos/multiselect/demo-multiselect.component.scss +23 -0
  355. package/projects/test/src/app/demos/multiselect/demo-multiselect.component.ts +53 -0
  356. package/projects/test/src/app/demos/multiselect/demo-multiselect.module.ts +38 -0
  357. package/projects/test/src/app/demos/multiselect/readme.md +34 -0
  358. package/projects/test/src/app/demos/not-found/demo-not-found.component.html +21 -0
  359. package/projects/test/src/app/demos/not-found/demo-not-found.component.scss +6 -0
  360. package/projects/test/src/app/demos/not-found/demo-not-found.component.ts +50 -0
  361. package/projects/test/src/app/demos/not-found/readme.md +44 -0
  362. package/projects/test/src/app/demos/notification/demo-notification.component.html +5 -0
  363. package/projects/test/src/app/demos/notification/demo-notification.component.ts +10 -0
  364. package/projects/test/src/app/demos/paginator/demo-paginator.component.html +35 -0
  365. package/projects/test/src/app/demos/paginator/demo-paginator.component.ts +25 -0
  366. package/projects/test/src/app/demos/paginator/readme.md +89 -0
  367. package/projects/test/src/app/demos/panel/demo-panel.component.html +53 -0
  368. package/projects/test/src/app/demos/panel/demo-panel.component.scss +3 -0
  369. package/projects/test/src/app/demos/panel/demo-panel.component.ts +20 -0
  370. package/projects/test/src/app/demos/panel/readme.md +26 -0
  371. package/projects/test/src/app/demos/pop-over/demo-pop-over.component.html +130 -0
  372. package/projects/test/src/app/demos/pop-over/demo-pop-over.component.scss +9 -0
  373. package/projects/test/src/app/demos/pop-over/demo-pop-over.component.ts +13 -0
  374. package/projects/test/src/app/demos/pop-over/readme.md +26 -0
  375. package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.html +19 -0
  376. package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.ts +35 -0
  377. package/projects/test/src/app/demos/side-menu/demo-side-menu.component.html +5 -0
  378. package/projects/test/src/app/demos/side-menu/demo-side-menu.component.ts +34 -0
  379. package/projects/test/src/app/demos/side-menu/readme.md +30 -0
  380. package/projects/test/src/app/demos/skeleton/demo-skeleton.component.html +119 -0
  381. package/projects/test/src/app/demos/skeleton/demo-skeleton.component.scss +0 -0
  382. package/projects/test/src/app/demos/skeleton/demo-skeleton.component.ts +35 -0
  383. package/projects/test/src/app/demos/spinner/demo-spinner.component.html +1 -0
  384. package/projects/test/src/app/demos/spinner/demo-spinner.component.ts +10 -0
  385. package/projects/test/src/app/demos/spinner/readme.md +24 -0
  386. package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.html +108 -0
  387. package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.scss +3 -0
  388. package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.ts +55 -0
  389. package/projects/test/src/app/demos/summary-stepper/readme.md +26 -0
  390. package/projects/test/src/app/demos/table/demo-table-datasource.ts +140 -0
  391. package/projects/test/src/app/demos/table/demo-table.component.html +41 -0
  392. package/projects/test/src/app/demos/table/demo-table.component.scss +17 -0
  393. package/projects/test/src/app/demos/table/demo-table.component.ts +51 -0
  394. package/projects/test/src/app/demos/table/demo-table.module.ts +45 -0
  395. package/projects/test/src/app/demos/table/readme.md +27 -0
  396. package/projects/test/src/app/demos/task-list/demo-task-list.component.html +37 -0
  397. package/projects/test/src/app/demos/task-list/demo-task-list.component.scss +3 -0
  398. package/projects/test/src/app/demos/task-list/demo-task-list.component.ts +14 -0
  399. package/projects/test/src/app/demos/task-list/demo-task-list.module.ts +29 -0
  400. package/projects/test/src/app/demos/task-list/readme.md +26 -0
  401. package/projects/test/src/app/demos/timepicker/demo-timepicker.component.html +9 -0
  402. package/projects/test/src/app/demos/timepicker/demo-timepicker.component.ts +31 -0
  403. package/projects/test/src/app/demos/timepicker/readme.md +26 -0
  404. package/projects/test/src/app/demos/toast/demo-toast.component.html +8 -0
  405. package/projects/test/src/app/demos/toast/demo-toast.component.scss +3 -0
  406. package/projects/test/src/app/demos/toast/demo-toast.component.ts +61 -0
  407. package/projects/test/src/app/demos/toast/readme.md +30 -0
  408. package/projects/test/src/app/demos/toc/demo-toc.component.html +288 -0
  409. package/projects/test/src/app/demos/toc/demo-toc.component.ts +26 -0
  410. package/projects/test/src/app/demos/tooltip/demo-tooltip.component.html +73 -0
  411. package/projects/test/src/app/demos/tooltip/demo-tooltip.component.scss +11 -0
  412. package/projects/test/src/app/demos/tooltip/demo-tooltip.component.ts +14 -0
  413. package/projects/test/src/app/home.component.ts +54 -0
  414. package/projects/test/src/app/material.module.ts +39 -0
  415. package/projects/test/src/app/onemrva-translate-http-loader.ts +35 -0
  416. package/projects/test/src/app/routes.ts +198 -0
  417. package/projects/test/src/assets/.gitkeep +0 -0
  418. package/projects/test/src/assets/i18n/de.json +80 -0
  419. package/projects/test/src/assets/i18n/en.json +80 -0
  420. package/projects/test/src/assets/i18n/fr.json +80 -0
  421. package/projects/test/src/assets/i18n/nl.json +79 -0
  422. package/projects/test/src/environments/environment.e2e.ts +3 -0
  423. package/projects/test/src/environments/environment.prod.ts +3 -0
  424. package/projects/test/src/environments/environment.ts +16 -0
  425. package/projects/test/src/favicon.ico +0 -0
  426. package/projects/test/src/index.html +15 -0
  427. package/projects/test/src/main.ts +12 -0
  428. package/projects/test/src/polyfills.ts +53 -0
  429. package/projects/test/src/styles.scss +22 -0
  430. package/projects/test/src/test.ts +26 -0
  431. package/projects/test/tsconfig.app.json +15 -0
  432. package/projects/test/tsconfig.spec.json +18 -0
  433. package/rva.crt +36 -0
  434. package/tsconfig.json +44 -0
@@ -0,0 +1,53 @@
1
+ import { Component } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import {debounceTime, Observable, map} from "rxjs";
4
+ import {startWith} from "rxjs/operators";
5
+
6
+ @Component({
7
+ selector: 'app-demo-multiselect',
8
+ templateUrl: './demo-multiselect.component.html',
9
+ styleUrls: ['./demo-multiselect.component.scss'],
10
+ })
11
+ export class DemoMultiSelectComponent {
12
+ toppings: FormControl = new FormControl('');
13
+ toppingList: string[] = [
14
+ 'Arugula',
15
+ 'Beef',
16
+ 'Cale',
17
+ 'Egg',
18
+ 'Eggplant',
19
+ 'Extra cheese',
20
+ 'Ham',
21
+ 'Mushroom',
22
+ 'Onion',
23
+ 'Parmesan',
24
+ 'Paprika',
25
+ 'Pepper',
26
+ 'Pepperoni',
27
+ 'Raisin',
28
+ 'Sausage',
29
+ 'Tomato'
30
+ ];
31
+ toppingList$ : Observable<string[]>;
32
+
33
+ multiselect = new FormControl();
34
+
35
+ public filterCtrl: FormControl<string | null> = new FormControl<string>('');
36
+
37
+ constructor(
38
+ ) {
39
+
40
+ this.toppingList$ = this.filterCtrl.valueChanges.pipe(
41
+ debounceTime(400),
42
+ startWith(''),
43
+ map( (search : any) => {
44
+ return this.toppingList.filter(
45
+ (value : string) => {
46
+ if (!search || search === '') return this.toppings;
47
+ return value.toLowerCase().indexOf(search.toLowerCase()) > -1
48
+ }
49
+ )
50
+ })
51
+ );
52
+ }
53
+ }
@@ -0,0 +1,38 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { DemoMultiSelectComponent } from './demo-multiselect.component';
3
+
4
+ import { CommonModule } from '@angular/common';
5
+ import { TranslateModule } from '@ngx-translate/core';
6
+ import { MatSelectModule } from '@angular/material/select';
7
+ import { MatInputModule } from '@angular/material/input';
8
+ import { ReactiveFormsModule } from '@angular/forms';
9
+ import { MatFormFieldModule } from '@angular/material/form-field';
10
+ import { Route, RouterModule } from '@angular/router';
11
+ import {MatSelectSearchModule} from "@onemrvapublic/design-system/mat-select-search";
12
+ import {OnemrvaMatMultiSelectModule} from "../../../../../onemrva/design-system/mat-multi-select";
13
+
14
+ const routes: Route[] = [
15
+ {
16
+ path: '',
17
+ component: DemoMultiSelectComponent,
18
+ data: {
19
+ navigationTitle: 'Multiselect',
20
+ },
21
+ },
22
+ ];
23
+
24
+ @NgModule({
25
+ declarations: [DemoMultiSelectComponent],
26
+ imports: [
27
+ CommonModule,
28
+ ReactiveFormsModule,
29
+ TranslateModule,
30
+ MatInputModule,
31
+ MatSelectModule,
32
+ MatFormFieldModule,
33
+ MatSelectSearchModule,
34
+ RouterModule.forChild(routes),
35
+ OnemrvaMatMultiSelectModule,
36
+ ],
37
+ })
38
+ export class DemoMultiselectModule {}
@@ -0,0 +1,34 @@
1
+ # Installation
2
+
3
+ ```bash
4
+ npm install --save @onemrvapublic/theme
5
+ npm install --save @onemrvapublic/design-system // for the multi-select only
6
+ ```
7
+
8
+ In style.scss:
9
+
10
+ ```scss
11
+ @use "@onemrvapublic/theme" as theme;
12
+ @use "../../material" as onemrvaMat; // for the multiselect only
13
+
14
+ @include theme.reset();
15
+
16
+ .onemrva-theme {
17
+ @include theme.onemrva();
18
+ @include onemrvaMat.multiselect(
19
+ theme.$onemrva-theme
20
+ ); // for the multiselect only
21
+ }
22
+ ```
23
+
24
+ Import MatButtonModule in your module (and MatIconModule if you want to use icons inside the buttons)
25
+
26
+ # Changelog
27
+
28
+ ## 14.1.764
29
+
30
+ Added custom ONEM/RVA multi select
31
+
32
+ ## 14.1.441
33
+
34
+ Compliant version with DS4
@@ -0,0 +1,21 @@
1
+ <page-not-found>
2
+ <page-not-found-action>
3
+ <button mat-stroked-button color="primary" (click)="contact()"><mat-icon>email</mat-icon> {{ '404.contact.us' | translate }}</button>
4
+ </page-not-found-action>
5
+ <page-not-found-action>
6
+ <button mat-flat-button color="accent" (click)="home()"><mat-icon>home</mat-icon> {{ '404.go.back' | translate }}</button>
7
+ </page-not-found-action>
8
+ <page-not-found-extra>
9
+ <h2>
10
+ {{ '404.extra' | translate }}
11
+ </h2>
12
+
13
+ <mat-form-field style="width: 400px">
14
+ <mat-label for="searchInput">{{ '404.search.input.label' | translate }}</mat-label>
15
+ <input id="searchInput" matInput [formControl]="searchInput" />
16
+ <mat-icon matSuffix>search</mat-icon>
17
+ </mat-form-field>
18
+ <br />
19
+ <button mat-flat-button color="accent" (click)="search()">Search</button>
20
+ </page-not-found-extra>
21
+ </page-not-found>
@@ -0,0 +1,6 @@
1
+ .extra {
2
+ margin-bottom: 32px;
3
+ font-size: 24px;
4
+ line-height: 36px;
5
+ font-weight: 700;
6
+ }
@@ -0,0 +1,50 @@
1
+ import { Component } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+
4
+ import { CommonModule } from '@angular/common';
5
+ import { MatFormFieldModule } from '@angular/material/form-field';
6
+ import { MatIconModule } from '@angular/material/icon';
7
+ import { ReactiveFormsModule } from '@angular/forms';
8
+ import { TranslateModule } from '@ngx-translate/core';
9
+ import { MatInputModule } from '@angular/material/input';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import { OnemrvaPageNotFoundModule } from '../../../../../onemrva/design-system/page-not-found';
12
+
13
+ @Component({
14
+ selector: 'app-demo-not-found',
15
+ standalone: true,
16
+ imports: [
17
+ CommonModule,
18
+ MatFormFieldModule,
19
+ MatIconModule,
20
+ ReactiveFormsModule,
21
+ TranslateModule,
22
+ MatInputModule,
23
+ MatButtonModule,
24
+ OnemrvaPageNotFoundModule,
25
+ ],
26
+ styleUrls: ['./demo-not-found.component.scss'],
27
+ templateUrl: 'demo-not-found.component.html',
28
+ })
29
+ export class DemoNotFoundComponent {
30
+ searchInput: FormControl = new FormControl('');
31
+
32
+ constructor() {}
33
+
34
+ search() {
35
+ if (this.searchInput.value.trim() !== '') {
36
+ // Do not try this at home!
37
+ // Use the usual Router when you play with the url.
38
+ // We use the window object so we can make it work in wordpress
39
+ window.location.href = '/?s=' + this.searchInput.value.trim();
40
+ }
41
+ }
42
+
43
+ contact() {
44
+ window.location.href = '/contact';
45
+ }
46
+
47
+ home() {
48
+ window.location.href = '/';
49
+ }
50
+ }
@@ -0,0 +1,44 @@
1
+ # Installation
2
+
3
+ ```bash
4
+ npm install --save @onemrvapublic/theme
5
+ npm install --save @onemrvapublic/design-system
6
+ ```
7
+
8
+ In angular.json, add the following configuration in projects/(projectName)/architect/build/options/assets:
9
+
10
+ ```
11
+ {
12
+ "glob": "**/*",
13
+ "input": "node_modules/@onemrvapublic/design-system/page-not-found/assets",
14
+ "output": "/assets/"
15
+ }
16
+ ```
17
+
18
+ In style.scss:
19
+
20
+ ```scss
21
+ @use '@onemrvapublic/theme' as theme;
22
+ @use '@onemrvapublic/design-system' as onemrvaMat;
23
+
24
+ @include theme.reset();
25
+
26
+ .onemrva-theme {
27
+ @include theme.onemrva();
28
+ @include onemrvaMat.pageNotFound(theme.$onemrva-theme);
29
+ }
30
+ ```
31
+
32
+ # Changelog
33
+
34
+ ## 14.1.651
35
+
36
+ Fix background shape
37
+
38
+ ## 14.1.604
39
+
40
+ Migration from @onemrvapublic/core to @onemrvapublic/design-system
41
+
42
+ ## 14.1.512
43
+
44
+ Draft version
@@ -0,0 +1,5 @@
1
+ <onemrva-mat-notification
2
+ message="importantMessage"
3
+ color="success"
4
+ [closable]="false"
5
+ ></onemrva-mat-notification>
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+ import { OnemrvaMatNotificationComponent } from '../../../../../onemrva/design-system/mat-notification';
3
+
4
+ @Component({
5
+ selector: 'app-demo-notification',
6
+ standalone: true,
7
+ templateUrl: 'demo-notification.component.html',
8
+ imports: [OnemrvaMatNotificationComponent],
9
+ })
10
+ export class DemoNotificationComponent {}
@@ -0,0 +1,35 @@
1
+ <h3>type = 'default'</h3>
2
+ <p>
3
+ The default paginator shows pages 5 by 5 except if there are only 6 remaining
4
+ pages. Buttons '...' are fast back/forward.
5
+ </p>
6
+
7
+ <onemrva-mat-paginator
8
+ [pageIndex]="pageIndex"
9
+ [pageSize]="10"
10
+ [length]="69"
11
+ (page)="changePage($event)"
12
+ recordKey="recordsPerpage"
13
+ #paginator
14
+ >
15
+ </onemrva-mat-paginator>
16
+
17
+ <br />
18
+
19
+ <h3>type = 'complex'</h3>
20
+
21
+ <p>
22
+ To get the complex paginator, you need to set the type to 'complex'. It shows
23
+ pages 5 by 5 except if there are max 7 remaining pages. Buttons '...' are fast
24
+ back/forward. First and last pages are always reachable.
25
+ </p>
26
+
27
+ <onemrva-mat-paginator
28
+ [pageIndex]="pageIndex2"
29
+ [pageSize]="20"
30
+ [length]="339"
31
+ type="complex"
32
+ (onRequestPage)="changePageIndex($event)"
33
+ #paginator
34
+ >
35
+ </onemrva-mat-paginator>
@@ -0,0 +1,25 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ import { CommonModule } from '@angular/common';
4
+ import { TranslateModule } from '@ngx-translate/core';
5
+ import { OnemrvaMatPaginatorModule } from '../../../../../onemrva/design-system/mat-paginator';
6
+ import {PageEvent} from "@angular/material/paginator";
7
+
8
+ @Component({
9
+ selector: 'app-demo-paginator',
10
+ standalone: true,
11
+ imports: [CommonModule, TranslateModule, OnemrvaMatPaginatorModule],
12
+ templateUrl: 'demo-paginator.component.html',
13
+ })
14
+ export class DemoPaginatorComponent {
15
+ pageIndex = 0;
16
+ pageIndex2 = 0;
17
+
18
+ changePage(event: PageEvent) {
19
+ this.pageIndex = event.pageIndex;
20
+ }
21
+
22
+ changePageIndex(pageIndex: number) {
23
+ this.pageIndex2 = pageIndex;
24
+ }
25
+ }
@@ -0,0 +1,89 @@
1
+ # Installation
2
+
3
+ ```bash
4
+ npm install --save @onemrvapublic/theme
5
+ npm install --save @onemrvapublic/design-system
6
+ ```
7
+
8
+ API
9
+
10
+ ```
11
+ @Input() type: 'default' | 'complex' = 'default';
12
+ @Input() pageSizeSelector = true; // Specs: DS-74
13
+ @Input() pageSizeOptions: number[] = [10, 20, 50, 100]; // Specs: DS-74
14
+ @Input() pageSizeDefaultOption: number = 10;
15
+ @Input() recordKey: string = 'recordsPerPage'; // this record key will be inside key "paginator". I.e the default key value that will be generated out of this input is paginator.recordsPerPage
16
+
17
+ @Input()
18
+ public set pageIndex(index: number) {
19
+ this._pageIndex = index;
20
+ this.refreshState();
21
+ }
22
+
23
+ public get length(): number {
24
+ return this._length;
25
+ }
26
+
27
+ @Input()
28
+ public set length(length: number) {
29
+ this._length = length;
30
+ this.refreshState();
31
+ }
32
+
33
+ public get pageSize(): number {
34
+ return this._pageSize;
35
+ }
36
+
37
+ @Input()
38
+ public set pageSize(pageSize: number) {
39
+ this._pageSize = pageSize;
40
+ this.pageSize$.next(this._pageSize);
41
+ this._pageIndex = 0;
42
+ this.refreshState();
43
+ }
44
+
45
+ get totalNumberOfPages(): number {
46
+ return this._totalNumberOfPages;
47
+ }
48
+
49
+ @Input() previousKey: string = 'Previous';
50
+ @Input() nextKey: string = 'Next';
51
+
52
+ @Output() onRequestPage: EventEmitter<number> = new EventEmitter(); // Pages are displayed starting from 1 but the index starts at 0
53
+
54
+ pageIndex$: BehaviorSubject<number> = new BehaviorSubject(0);
55
+ pageSize$: BehaviorSubject<number> = new BehaviorSubject(this.pageSizeDefaultOption);
56
+
57
+ ```
58
+
59
+ In style.scss:
60
+
61
+ ```scss
62
+ @use '@onemrvapublic/theme' as theme;
63
+ @use '@onemrvapublic/design-system' as onemrvaMat;
64
+
65
+ @include theme.reset();
66
+
67
+ .onemrva-theme {
68
+ @include theme.onemrva();
69
+ @include onemrvaMat.paginator(theme.$onemrva-theme);
70
+ }
71
+ ```
72
+
73
+ # Changelog
74
+
75
+ ## 14.1.672
76
+
77
+ The wording key for records is now an input (e.g 10 "records par page", "records per page" dictionary key is now customizable)
78
+
79
+ ## 14.1.661
80
+
81
+ Page size selector (it's optional but visible by default). The wording keys are now prefixed with "paginator.", so in your dictionaries, you need to put all the related key in "paginator" key
82
+
83
+ ## 14.1.604
84
+
85
+ Migration to @onemrvapublic/design-system library
86
+
87
+ ## 14.1.441
88
+
89
+ Compliant version with DS4
@@ -0,0 +1,53 @@
1
+ <onemrva-mat-panel>
2
+ <onemrva-mat-panel-content>
3
+ <p>Here is a simple panel for all your structural needs</p>
4
+ <p>Enjoy!</p>
5
+ </onemrva-mat-panel-content>
6
+ </onemrva-mat-panel>
7
+
8
+ <onemrva-mat-panel color="primary">
9
+ <onemrva-mat-panel-title> This is an ID panel with a title </onemrva-mat-panel-title>
10
+ <onemrva-mat-panel-content>
11
+ <p>
12
+ Lucas ipsum dolor sit amet hutt alderaan skywalker padmé anakin mon hoth k-3po jango hutt. Ponda gonk darth
13
+ windu ahsoka wedge organa qui-gon fett. Mustafar darth darth kashyyyk. Jade antilles bothan calrissian wedge
14
+ fett han. Darth antilles amidala dooku watto fisto. Amidala mandalore wicket lobot ventress. Wampa calamari
15
+ darth hutt hutt kamino ahsoka anakin. Moff kamino solo mothma zabrak aayla mara. Coruscant zabrak organa
16
+ skywalker. Bothan solo darth windu anakin darth hutt jawa. Palpatine mon sebulba darth.
17
+ </p>
18
+ </onemrva-mat-panel-content>
19
+ </onemrva-mat-panel>
20
+
21
+ <onemrva-mat-panel color="primary">
22
+ <onemrva-mat-panel-title>
23
+ This is an ID panel with a title and an action
24
+ <onemrva-mat-panel-title-action>
25
+ <button mat-stroked-button color="primary" class="small"><mat-icon>edit</mat-icon>Edit</button>
26
+ </onemrva-mat-panel-title-action>
27
+ </onemrva-mat-panel-title>
28
+ <onemrva-mat-panel-content>
29
+ <p>
30
+ Kamino neimoidia calrissian quarren darth raymus. Unduli mon luuke sal-solo tierce. Quelli desann dash veila
31
+ galen kushiban sesswenna thistleborn. Kota terrik vuffi nadon kwi bibble anomid max moore. Ansion trandoshan
32
+ bib pa'lowick thennqora gilad zhell. Tenel anzati secura rom isolder. Haruun karrde lahara frozarns wroonian
33
+ bimm skakoan gallia zuckuss. Nien wicket balosar bardan gen'dai kor-uj aka mod. B'omarr hssis priapulin
34
+ ogemite. Zuggs drovian h'nemthean keyan shmi vulptereen amanin cal. Thistleborn gilad airen wookiee.
35
+ </p>
36
+ </onemrva-mat-panel-content>
37
+ </onemrva-mat-panel>
38
+
39
+ <onemrva-mat-panel>
40
+ <onemrva-mat-panel-icon>
41
+ <mat-icon class="xlarge">home</mat-icon>
42
+ </onemrva-mat-panel-icon>
43
+ <onemrva-mat-panel-title>
44
+ This is an ID panel with a title and an action
45
+ <onemrva-mat-panel-title-action>
46
+ <button mat-stroked-button color="primary" class="small"><mat-icon>edit</mat-icon>Edit</button>
47
+ </onemrva-mat-panel-title-action>
48
+ </onemrva-mat-panel-title>
49
+ <onemrva-mat-panel-content>
50
+ <p>Here is a simple panel for all your structural needs</p>
51
+ <p>Enjoy!</p>
52
+ </onemrva-mat-panel-content>
53
+ </onemrva-mat-panel>
@@ -0,0 +1,3 @@
1
+ onemrva-mat-panel {
2
+ margin: 8px 0;
3
+ }
@@ -0,0 +1,20 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ import { CommonModule } from '@angular/common';
4
+ import { MatButtonModule } from '@angular/material/button';
5
+ import { MatIconModule } from '@angular/material/icon';
6
+ import { OnemrvaMatPanelModule } from '../../../../../onemrva/design-system/mat-panel';
7
+
8
+ @Component({
9
+ selector: 'app-demo-panel',
10
+ standalone: true,
11
+ imports: [
12
+ CommonModule,
13
+ OnemrvaMatPanelModule,
14
+ MatButtonModule,
15
+ MatIconModule,
16
+ ],
17
+ styleUrls: ['demo-panel.component.scss'],
18
+ templateUrl: 'demo-panel.component.html',
19
+ })
20
+ export class DemoPanelComponent {}
@@ -0,0 +1,26 @@
1
+ # Installation
2
+
3
+ ```bash
4
+ npm install --save @onemrvapublic/theme
5
+ npm install --save @onemrvapublic/design-system
6
+ ```
7
+
8
+ In style.scss:
9
+
10
+ ```scss
11
+ @use '@onemrvapublic/theme' as theme;
12
+ @use '@onemrvapublic/design-system' as onemrvaMat;
13
+
14
+ @include theme.reset();
15
+
16
+ .onemrva-theme {
17
+ @include theme.onemrva();
18
+ @include onemrvaMat.panel(theme.$onemrva-theme);
19
+ }
20
+ ```
21
+
22
+ # Changelog
23
+
24
+ ## 14.1.604
25
+
26
+ Panels initial version
@@ -0,0 +1,130 @@
1
+ <div class="pop-over-container">
2
+ <onemrva-mat-pop-over>
3
+ <onemrva-mat-pop-over-trigger
4
+ >I am a trigger (bottom-right)</onemrva-mat-pop-over-trigger
5
+ >
6
+ <onemrva-mat-pop-over-content>I am a content</onemrva-mat-pop-over-content>
7
+ </onemrva-mat-pop-over>
8
+ <onemrva-mat-pop-over position="bottom-left">
9
+ <onemrva-mat-pop-over-trigger
10
+ >I am a trigger (bottom-left)</onemrva-mat-pop-over-trigger
11
+ >
12
+ <onemrva-mat-pop-over-content>I am a content</onemrva-mat-pop-over-content>
13
+ </onemrva-mat-pop-over>
14
+ <onemrva-mat-pop-over position="top-right">
15
+ <onemrva-mat-pop-over-trigger
16
+ >I am a trigger (top-right)</onemrva-mat-pop-over-trigger
17
+ >
18
+ <onemrva-mat-pop-over-content>I am a content</onemrva-mat-pop-over-content>
19
+ </onemrva-mat-pop-over>
20
+ <onemrva-mat-pop-over position="top-left">
21
+ <onemrva-mat-pop-over-trigger
22
+ >I am a trigger (top-left)</onemrva-mat-pop-over-trigger
23
+ >
24
+ <onemrva-mat-pop-over-content>I am a content</onemrva-mat-pop-over-content>
25
+ </onemrva-mat-pop-over>
26
+ </div>
27
+
28
+ <!--div>
29
+ <button
30
+ mat-raised-button
31
+ cdkOverlayOrigin
32
+ #trigger="cdkOverlayOrigin"
33
+ [class.drop-down-input-active]="config['topLeft'].isOpen"
34
+ (click)="config['topLeft'].isOpen = true"
35
+ >
36
+ top-left
37
+ </button>
38
+
39
+ <ng-template
40
+ cdkConnectedOverlay
41
+ cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
42
+ [cdkConnectedOverlayHasBackdrop]="true"
43
+ [cdkConnectedOverlayOrigin]="trigger"
44
+ [cdkConnectedOverlayOpen]="config['topLeft'].isOpen"
45
+ [cdkConnectedOverlayPositions]="config['topLeft'].position"
46
+ ><div class="onemrva-pop-over top-left">
47
+ <h4>Title</h4>
48
+ <div>It turns out that popovers are pastries</div>
49
+ <button mat-stroked-button color="primary" class="small">Show me</button>
50
+ </div>
51
+ </ng-template>
52
+ </div>
53
+
54
+ <div>
55
+ <button
56
+ mat-raised-button
57
+ cdkOverlayOrigin
58
+ #trigger="cdkOverlayOrigin"
59
+ [class.drop-down-input-active]="config['topRight'].isOpen"
60
+ (click)="config['topRight'].isOpen = true"
61
+ >
62
+ top-right
63
+ </button>
64
+
65
+ <ng-template
66
+ cdkConnectedOverlay
67
+ cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
68
+ [cdkConnectedOverlayHasBackdrop]="true"
69
+ [cdkConnectedOverlayOrigin]="trigger"
70
+ [cdkConnectedOverlayOpen]="config['topRight'].isOpen"
71
+ [cdkConnectedOverlayPositions]="config['topRight'].position"
72
+ ><div class="onemrva-pop-over top-right">
73
+ <h4>Title</h4>
74
+ <div>It turns out that popovers are pastries</div>
75
+ <button mat-stroked-button color="primary" class="small">Show me</button>
76
+ </div>
77
+ </ng-template>
78
+ </div>
79
+
80
+ <div>
81
+ <button
82
+ mat-raised-button
83
+ cdkOverlayOrigin
84
+ #trigger="cdkOverlayOrigin"
85
+ [class.drop-down-input-active]="config['bottomLeft'].isOpen"
86
+ (click)="config['bottomLeft'].isOpen = true"
87
+ >
88
+ bottom-left
89
+ </button>
90
+
91
+ <ng-template
92
+ cdkConnectedOverlay
93
+ cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
94
+ [cdkConnectedOverlayHasBackdrop]="true"
95
+ [cdkConnectedOverlayOrigin]="trigger"
96
+ [cdkConnectedOverlayOpen]="config['bottomLeft'].isOpen"
97
+ [cdkConnectedOverlayPositions]="config['bottomLeft'].position"
98
+ ><div class="onemrva-pop-over bottom-left">
99
+ <h4>Title</h4>
100
+ <div>It turns out that popovers are pastries</div>
101
+ <button mat-stroked-button color="primary" class="small">Show me</button>
102
+ </div>
103
+ </ng-template>
104
+ </div>
105
+
106
+ <div>
107
+ <button
108
+ mat-raised-button
109
+ cdkOverlayOrigin
110
+ #trigger="cdkOverlayOrigin"
111
+ [class.drop-down-input-active]="config['bottomRight'].isOpen"
112
+ (click)="config['bottomRight'].isOpen = true"
113
+ >
114
+ bottom-right
115
+ </button>
116
+
117
+ <ng-template
118
+ cdkConnectedOverlay
119
+ cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
120
+ [cdkConnectedOverlayHasBackdrop]="true"
121
+ [cdkConnectedOverlayOrigin]="trigger"
122
+ [cdkConnectedOverlayOpen]="config['bottomRight'].isOpen"
123
+ [cdkConnectedOverlayPositions]="config['bottomRight'].position"
124
+ ><div class="onemrva-pop-over bottom-right">
125
+ <h4>Title</h4>
126
+ <div>It turns out that popovers are pastries</div>
127
+ <button mat-stroked-button color="primary" class="small">Show me</button>
128
+ </div>
129
+ </ng-template>
130
+ </div-->
@@ -0,0 +1,9 @@
1
+ .pop-over-container {
2
+ display: flex;
3
+ flex-flow: row wrap;
4
+ gap: 50px;
5
+
6
+ onemrva-mat-pop-over {
7
+ flex: 1 0 45%;
8
+ }
9
+ }