@onemrvapublic/design-system 20.11.3 → 21.0.0-develop.2

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 (205) hide show
  1. package/README.md +5 -9
  2. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +14 -20
  3. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
  4. package/fesm2022/onemrvapublic-design-system-layout.mjs +207 -290
  5. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  6. package/fesm2022/onemrvapublic-design-system-mat-address.mjs +19 -25
  7. package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -1
  8. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +58 -223
  9. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
  10. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +47 -53
  11. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
  12. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +50 -71
  13. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
  14. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +27 -29
  15. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
  16. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +24 -42
  17. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
  18. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +8 -12
  19. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -1
  20. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +4 -4
  21. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
  22. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +10 -18
  23. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
  24. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +98 -173
  25. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
  26. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +32 -52
  27. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
  28. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +10 -13
  29. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  30. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +10 -13
  31. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  32. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +24 -44
  33. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  34. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +22 -40
  35. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  36. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +26 -39
  37. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  38. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +45 -180
  39. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
  40. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +38 -63
  41. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  42. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +40 -65
  43. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -1
  44. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +19 -59
  45. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  46. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +23 -49
  47. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  48. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +61 -101
  49. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
  50. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +30 -50
  51. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
  52. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +26 -38
  53. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
  54. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +66 -105
  55. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  56. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +23 -43
  57. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  58. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +15 -26
  59. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
  60. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +62 -177
  61. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
  62. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +17 -21
  63. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
  64. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +14 -22
  65. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
  66. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +8 -8
  67. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
  68. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +79 -93
  69. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
  70. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +59 -94
  71. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
  72. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +178 -245
  73. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
  74. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +7 -7
  75. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
  76. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +33 -43
  77. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
  78. package/fesm2022/onemrvapublic-design-system-page-error.mjs +33 -39
  79. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
  80. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +38 -42
  81. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
  82. package/fesm2022/onemrvapublic-design-system-shared.mjs +188 -312
  83. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  84. package/fesm2022/onemrvapublic-design-system-utils.mjs.map +1 -1
  85. package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +13 -3
  86. package/mat-empty-row/src/onemrva-mat-empty-row.component.scss +2 -2
  87. package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +1 -1
  88. package/mat-input-phone/src/onemrva-mat-input-phone.component.scss +1 -1
  89. package/mat-panel/src/onemrva-mat-panel-content.scss +1 -1
  90. package/mat-skeleton/src/onemrva-mat-skeleton.component.scss +1 -1
  91. package/mat-table-of-content/src/onemrva-mat-table-of-content.component.scss +10 -2
  92. package/package.json +72 -62
  93. package/theme/index.scss +230 -0
  94. package/theme/overrides/_autocomplete.scss +9 -0
  95. package/theme/overrides/_button-toggle.scss +14 -0
  96. package/theme/overrides/_button.scss +140 -0
  97. package/theme/overrides/_card.scss +34 -0
  98. package/theme/overrides/_carousel.scss +13 -0
  99. package/theme/overrides/_checkbox.scss +49 -0
  100. package/theme/overrides/_chips.scss +42 -0
  101. package/theme/overrides/_datepicker.scss +10 -0
  102. package/theme/overrides/_dialogs.scss +118 -0
  103. package/theme/overrides/_divider.scss +9 -0
  104. package/theme/overrides/_drag-and-drop.scss +74 -0
  105. package/theme/overrides/_expansion.scss +51 -0
  106. package/theme/overrides/_fab.scss +45 -0
  107. package/theme/overrides/_form-field.scss +223 -0
  108. package/theme/overrides/_icon-button.scss +24 -0
  109. package/theme/overrides/_icon.scss +97 -0
  110. package/theme/overrides/_input.scss +18 -0
  111. package/theme/overrides/_layout.scss +35 -0
  112. package/theme/overrides/_menu.scss +45 -0
  113. package/theme/overrides/_option.scss +15 -0
  114. package/theme/overrides/_panel.scss +59 -0
  115. package/theme/overrides/_progress-bar.scss +29 -0
  116. package/theme/overrides/_radio.scss +16 -0
  117. package/theme/overrides/_select.scss +124 -0
  118. package/theme/overrides/_sidenav.scss +13 -0
  119. package/theme/overrides/_slide-toggle.scss +53 -0
  120. package/theme/overrides/_stepper.scss +196 -0
  121. package/theme/overrides/_stickers.scss +13 -0
  122. package/theme/overrides/_table.scss +115 -0
  123. package/theme/overrides/_tabs.scss +20 -0
  124. package/theme/overrides/_toast.scss +16 -0
  125. package/theme/overrides/_toc.scss +26 -0
  126. package/theme/overrides/_toolbar.scss +26 -0
  127. package/theme/overrides/_tooltip.scss +19 -0
  128. package/theme/palettes/_palette.scss +189 -0
  129. package/theme/utilities/_animations.scss +54 -0
  130. package/theme/utilities/_container.scss +14 -0
  131. package/theme/utilities/_fonts.scss +170 -0
  132. package/theme/utilities/_grid.scss +75 -0
  133. package/theme/utilities/_media.scss +33 -0
  134. package/theme/utilities/_palettes.scss +120 -0
  135. package/theme/utilities/_spacing.scss +86 -0
  136. package/theme/utilities/_tokens.scss +123 -0
  137. package/theme/utilities/_utilities.scss +351 -0
  138. package/theme/utilities/_variables.scss +42 -0
  139. package/types/onemrvapublic-design-system-flag-icon.d.ts +18 -0
  140. package/types/onemrvapublic-design-system-layout.d.ts +305 -0
  141. package/{mat-address/index.d.ts → types/onemrvapublic-design-system-mat-address.d.ts} +8 -8
  142. package/types/onemrvapublic-design-system-mat-avatar.d.ts +67 -0
  143. package/{mat-breadcrumb/index.d.ts → types/onemrvapublic-design-system-mat-breadcrumb.d.ts} +8 -6
  144. package/types/onemrvapublic-design-system-mat-carousel.d.ts +52 -0
  145. package/types/onemrvapublic-design-system-mat-choice-chip.d.ts +23 -0
  146. package/types/onemrvapublic-design-system-mat-copy-to-clipboard.d.ts +25 -0
  147. package/types/onemrvapublic-design-system-mat-country-item.d.ts +10 -0
  148. package/types/onemrvapublic-design-system-mat-empty-row.d.ts +18 -0
  149. package/{mat-file-upload/index.d.ts → types/onemrvapublic-design-system-mat-file-upload.d.ts} +53 -51
  150. package/types/onemrvapublic-design-system-mat-input-address.d.ts +32 -0
  151. package/{mat-input-birthplace/index.d.ts → types/onemrvapublic-design-system-mat-input-birthplace.d.ts} +10 -10
  152. package/{mat-input-country/index.d.ts → types/onemrvapublic-design-system-mat-input-country.d.ts} +2 -2
  153. package/types/onemrvapublic-design-system-mat-input-enterprise-number.d.ts +37 -0
  154. package/{mat-input-iban/index.d.ts → types/onemrvapublic-design-system-mat-input-iban.d.ts} +12 -13
  155. package/{mat-input-phone/index.d.ts → types/onemrvapublic-design-system-mat-input-phone.d.ts} +12 -12
  156. package/types/onemrvapublic-design-system-mat-message-box.d.ts +29 -0
  157. package/types/onemrvapublic-design-system-mat-multi-select.d.ts +57 -0
  158. package/types/onemrvapublic-design-system-mat-navigation.d.ts +55 -0
  159. package/types/onemrvapublic-design-system-mat-notification.d.ts +23 -0
  160. package/types/onemrvapublic-design-system-mat-paginator.d.ts +58 -0
  161. package/types/onemrvapublic-design-system-mat-panel.d.ts +66 -0
  162. package/types/onemrvapublic-design-system-mat-pop-over.d.ts +40 -0
  163. package/types/onemrvapublic-design-system-mat-progress-bar.d.ts +16 -0
  164. package/{mat-select-search/index.d.ts → types/onemrvapublic-design-system-mat-select-search.d.ts} +35 -35
  165. package/types/onemrvapublic-design-system-mat-selectable-box.d.ts +26 -0
  166. package/{mat-side-menu/index.d.ts → types/onemrvapublic-design-system-mat-side-menu.d.ts} +6 -6
  167. package/types/onemrvapublic-design-system-mat-skeleton.d.ts +82 -0
  168. package/{mat-spinner/index.d.ts → types/onemrvapublic-design-system-mat-spinner.d.ts} +3 -4
  169. package/{mat-stepper/index.d.ts → types/onemrvapublic-design-system-mat-stepper.d.ts} +3 -6
  170. package/types/onemrvapublic-design-system-mat-table-of-content.d.ts +85 -0
  171. package/types/onemrvapublic-design-system-mat-task-list.d.ts +56 -0
  172. package/{mat-timepicker/index.d.ts → types/onemrvapublic-design-system-mat-timepicker.d.ts} +50 -66
  173. package/types/onemrvapublic-design-system-mat-tooltip.d.ts +40 -0
  174. package/types/onemrvapublic-design-system-page-error.d.ts +29 -0
  175. package/{page-not-found/index.d.ts → types/onemrvapublic-design-system-page-not-found.d.ts} +6 -6
  176. package/{shared/index.d.ts → types/onemrvapublic-design-system-shared.d.ts} +47 -71
  177. package/flag-icon/index.d.ts +0 -18
  178. package/layout/index.d.ts +0 -295
  179. package/mat-avatar/index.d.ts +0 -187
  180. package/mat-carousel/index.d.ts +0 -52
  181. package/mat-choice-chip/index.d.ts +0 -21
  182. package/mat-copy-to-clipboard/index.d.ts +0 -25
  183. package/mat-country-item/index.d.ts +0 -10
  184. package/mat-empty-row/index.d.ts +0 -19
  185. package/mat-input-address/index.d.ts +0 -32
  186. package/mat-input-enterprise-number/index.d.ts +0 -37
  187. package/mat-message-box/index.d.ts +0 -101
  188. package/mat-multi-select/index.d.ts +0 -57
  189. package/mat-navigation/index.d.ts +0 -54
  190. package/mat-notification/index.d.ts +0 -43
  191. package/mat-paginator/index.d.ts +0 -58
  192. package/mat-panel/index.d.ts +0 -66
  193. package/mat-pop-over/index.d.ts +0 -40
  194. package/mat-progress-bar/index.d.ts +0 -18
  195. package/mat-selectable-box/index.d.ts +0 -29
  196. package/mat-skeleton/index.d.ts +0 -100
  197. package/mat-table-of-content/index.d.ts +0 -84
  198. package/mat-task-list/index.d.ts +0 -57
  199. package/mat-tooltip/index.d.ts +0 -40
  200. package/page-error/index.d.ts +0 -34
  201. /package/{mat-datepicker-header/index.d.ts → types/onemrvapublic-design-system-mat-datepicker-header.d.ts} +0 -0
  202. /package/{mat-sticker/index.d.ts → types/onemrvapublic-design-system-mat-sticker.d.ts} +0 -0
  203. /package/{mat-toast/index.d.ts → types/onemrvapublic-design-system-mat-toast.d.ts} +0 -0
  204. /package/{utils/index.d.ts → types/onemrvapublic-design-system-utils.d.ts} +0 -0
  205. /package/{index.d.ts → types/onemrvapublic-design-system.d.ts} +0 -0
@@ -0,0 +1,230 @@
1
+ @forward './overrides/autocomplete' as autocomplete-*;
2
+ @forward './overrides/button' as button-*;
3
+ @forward './overrides/button-toggle' as button-toggle-*;
4
+ @forward './overrides/card' as cards-*;
5
+ @forward './overrides/checkbox' as checkbox-*;
6
+ @forward './overrides/chips' as chips-*;
7
+ @forward './overrides/datepicker' as datepicker-*;
8
+ @forward './overrides/drag-and-drop' as drag-and-drop-*;
9
+ @forward './overrides/dialogs' as dialogs-*;
10
+ @forward './overrides/divider' as divider-*;
11
+ @forward './overrides/expansion' as expansion-*;
12
+ @forward './overrides/form-field' as form-field-*;
13
+ @forward './overrides/icon' as icon-*;
14
+ @forward './overrides/icon-button' as icon-button-*;
15
+ @forward './overrides/menu' as menu-*;
16
+ @forward './overrides/option' as option-*;
17
+ @forward './overrides/progress-bar' as progress-bar-*;
18
+ @forward './overrides/radio' as radio-*;
19
+ @forward './overrides/slide-toggle' as slide-toggle-*;
20
+ @forward './overrides/table' as tables-*;
21
+ @forward './overrides/tabs' as tabs-*;
22
+ @forward './overrides/input' as input-*;
23
+ @forward './overrides/stepper' as stepper-*;
24
+ @forward './overrides/icon' as icon-*;
25
+ @forward './overrides/tooltip' as tooltip-*;
26
+ @forward './overrides/toolbar' as toolbar-*;
27
+ @forward './overrides/select' as select-*;
28
+ @forward './overrides/sidenav' as sidenav-*;
29
+ @forward './overrides/fab' as fab-*;
30
+
31
+ @forward './utilities/spacing' show spacing;
32
+ @forward './utilities/grid' show grid;
33
+ @forward './utilities/utilities' show utilities;
34
+
35
+ // ------------------------------------------------------------
36
+ @use '@angular/material' as mat;
37
+
38
+ @use './utilities/palettes' as palettes;
39
+ @use './utilities/tokens' as tokens;
40
+ @use './utilities/variables' as variables;
41
+ @use './utilities/utilities';
42
+ @use './utilities/animations';
43
+ @use './utilities/fonts';
44
+ @use './utilities/spacing';
45
+ @use './utilities/grid';
46
+ @use './utilities/container' as container;
47
+
48
+ @use './overrides/autocomplete';
49
+ @use './overrides/button-toggle';
50
+ @use './overrides/button';
51
+ @use './overrides/checkbox';
52
+ @use './overrides/card';
53
+ @use './overrides/carousel';
54
+ @use './overrides/chips';
55
+ @use './overrides/datepicker';
56
+ @use './overrides/dialogs';
57
+ @use './overrides/divider';
58
+ @use './overrides/drag-and-drop';
59
+ @use './overrides/expansion';
60
+ @use './overrides/fab';
61
+ @use './overrides/icon';
62
+ @use './overrides/icon-button';
63
+ @use './overrides/form-field';
64
+ @use './overrides/menu';
65
+ @use './overrides/option';
66
+ @use './overrides/progress-bar';
67
+ @use './overrides/panel';
68
+ @use './overrides/tabs';
69
+ @use './overrides/radio';
70
+ @use './overrides/select';
71
+ @use './overrides/sidenav';
72
+ @use './overrides/slide-toggle';
73
+ @use './overrides/table';
74
+ @use './overrides/layout';
75
+ @use './overrides/tooltip';
76
+ @use './overrides/toast';
77
+ @use './overrides/toolbar';
78
+ @use './overrides/toc';
79
+ @use './overrides/stepper';
80
+ @use './overrides/stickers';
81
+
82
+ @mixin onemrva($colorScheme: light) {
83
+ // Force light mode only
84
+ color-scheme: light;
85
+ background: var(--mat-sys-surface);
86
+ color: var(--mat-sys-on-surface);
87
+ margin: 0;
88
+ padding: 0;
89
+
90
+ // &.dark-theme {
91
+ // color-scheme: dark !important;
92
+ // @media (prefers-color-scheme: light) {
93
+ // color-scheme: dark !important;
94
+ // }
95
+ // }
96
+
97
+ // Dark theme disabled - always use light mode
98
+ &.light-theme {
99
+ color-scheme: light !important;
100
+ @media (prefers-color-scheme: dark) {
101
+ color-scheme: light !important;
102
+ }
103
+ }
104
+
105
+ // The overlay for datepicker needs to be able to go above the
106
+ // top navbar of Wave
107
+ .cdk-overlay-container {
108
+ z-index: 1500;
109
+ }
110
+
111
+ @include fonts.theme();
112
+ @include layout.override();
113
+ @include utilities.utilities();
114
+ @include animations.animations();
115
+ @include spacing.spacing();
116
+ @include grid.grid();
117
+
118
+ @include mat.theme(
119
+ (
120
+ color: (
121
+ use-system-variables: true,
122
+ primary: palettes.$primary-palette,
123
+ tertiary: palettes.$tertiary-palette,
124
+ ),
125
+ //typography: (
126
+ // use-system-variables: false,
127
+ // plain-family: Source Sans Pro,
128
+ // brand-family: Poppins,
129
+ // bold-weight: 900,
130
+ // medium-weight: 600,
131
+ // regular-weight: 400,
132
+ //),
133
+ //density: 0,
134
+ )
135
+ );
136
+ .mat-accent {
137
+ @include mat.theme(
138
+ (
139
+ color: (
140
+ primary: palettes.$tertiary-palette,
141
+ ),
142
+ )
143
+ );
144
+ }
145
+ .mat-success {
146
+ @include mat.theme(
147
+ (
148
+ color: (
149
+ primary: palettes.$success-palette,
150
+ ),
151
+ )
152
+ );
153
+ }
154
+ .mat-error {
155
+ @include mat.theme(
156
+ (
157
+ color: (
158
+ primary: palettes.$error-palette,
159
+ ),
160
+ )
161
+ );
162
+ }
163
+ .mat-warn {
164
+ @include mat.theme(
165
+ (
166
+ color: (
167
+ primary: palettes.$warn-palette,
168
+ ),
169
+ )
170
+ );
171
+ }
172
+ .mat-info {
173
+ @include mat.theme(
174
+ (
175
+ color: (
176
+ primary: palettes.$info-palette,
177
+ ),
178
+ )
179
+ );
180
+ }
181
+ .mat-grayscale,
182
+ .mat-disabled,
183
+ .mdc-checkbox--disabled,
184
+ .mat-neutral {
185
+ @include mat.theme(
186
+ (
187
+ color: (
188
+ primary: palettes.$neutral-palette,
189
+ ),
190
+ )
191
+ );
192
+ }
193
+ @include container.theme();
194
+
195
+ @include autocomplete.override();
196
+ @include button.override();
197
+ @include button-toggle.override();
198
+ @include checkbox.override();
199
+ @include card.override();
200
+ @include chips.override();
201
+ @include carousel.override();
202
+ @include datepicker.override();
203
+ @include dialogs.override();
204
+ @include divider.override();
205
+ @include drag-and-drop.override();
206
+ @include expansion.override();
207
+ @include form-field.override();
208
+ @include fab.override();
209
+ @include icon.override();
210
+ @include icon-button.override();
211
+ @include menu.override();
212
+ @include option.override();
213
+ @include panel.override();
214
+ @include progress-bar.override();
215
+ @include radio.override();
216
+ @include select.override();
217
+ @include slide-toggle.override();
218
+ @include table.override();
219
+ @include tabs.override();
220
+ @include toast.override();
221
+ @include toolbar.override();
222
+ @include tooltip.override();
223
+ @include toc.override();
224
+ @include toolbar.override();
225
+ @include stepper.override();
226
+ @include sidenav.override();
227
+ @include stickers.override();
228
+
229
+ @include tokens.theme();
230
+ }
@@ -0,0 +1,9 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.autocomplete-overrides(
5
+ (
6
+ background-color: var(--mat-sys-surface),
7
+ )
8
+ );
9
+ }
@@ -0,0 +1,14 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.button-toggle-overrides(
5
+ (
6
+ selected-state-background-color: var(--mat-sys-primary),
7
+ selected-state-text-color: var(--mat-sys-on-primary),
8
+ height: 36px,
9
+ label-text-font: var(--brand-font),
10
+ label-text-size: 1rem,
11
+ label-text-weight: 600,
12
+ )
13
+ );
14
+ }
@@ -0,0 +1,140 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/variables' as variables;
3
+
4
+ @mixin override() {
5
+ @include mat.button-overrides(
6
+ (
7
+ filled-label-text-font: var(--brand-font),
8
+ outlined-label-text-font: var(--brand-font),
9
+ text-label-text-font: var(--brand-font),
10
+ outlined-outline-color: var(--mat-sys-primary),
11
+ outlined-label-text-color: var(--mat-sys-primary),
12
+ outlined-outline-width: 2px,
13
+ outlined-container-height: 2.25rem,
14
+ outlined-label-text-size: 1rem,
15
+ outlined-label-text-weight: 500,
16
+ outlined-hover-state-layer-opacity: 0,
17
+ outlined-focus-state-layer-opacity: 0,
18
+ outlined-pressed-state-layer-opacity: 0,
19
+
20
+ filled-horizontal-padding: var(--double-spacer),
21
+ filled-container-height: 2.25rem,
22
+ filled-label-text-color: var(--on-background-gradient),
23
+ protected-focus-container-elevation-shadow: -4px -4px 5px 0px
24
+ rgba(200, 200, 200, 0.5),
25
+ protected-hover-container-elevation-shadow: -4px -4px 5px 0px
26
+ rgba(200, 200, 200, 0.5),
27
+ protected-container-shape: square,
28
+ )
29
+ );
30
+ .mdc-icon-button {
31
+ &:hover {
32
+ box-shadow: var(--mat-sys-level2);
33
+ }
34
+ }
35
+ .mdc-button,
36
+ .mdc-icon-button {
37
+ // transition: all 1s ease; // has issues with WAVE when used in dialod, should be removed ?
38
+
39
+ &[mat-stroked-button]:hover {
40
+ box-shadow: var(--mat-sys-level2);
41
+ }
42
+
43
+ &:focus-visible:not(:active) {
44
+ &:not(.mat-mdc-outlined-button) {
45
+ --shift: -1px;
46
+ }
47
+ &.mat-mdc-outlined-button {
48
+ --shift: -3px;
49
+
50
+ &.small {
51
+ --shift: -2px;
52
+ }
53
+ }
54
+ &:after {
55
+ outline: 5px solid var(--mat-sys-primary-fixed-dim);
56
+ position: absolute;
57
+ content: '';
58
+ top: var(--shift);
59
+ left: var(--shift);
60
+ right: var(--shift);
61
+ bottom: var(--shift);
62
+ border: 1px solid transparent;
63
+ border-radius: 500px;
64
+ }
65
+ }
66
+ &.mat-mdc-unelevated-button:not(:disabled) {
67
+ background: var(--background-gradient);
68
+ .onemrva-spinner {
69
+ svg {
70
+ fill: color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent);
71
+ }
72
+ }
73
+ &.mat-accent {
74
+ .onemrva-spinner {
75
+ svg {
76
+ fill: var(--on-background-gradient);
77
+ }
78
+ }
79
+ }
80
+
81
+ &:hover,
82
+ &:active {
83
+ box-shadow: var(--mat-sys-level2);
84
+ }
85
+ }
86
+ &.mdc-button--outlined {
87
+ background: var(--mat-sys-surface);
88
+ }
89
+ &.mat-mdc-button-disabled {
90
+ .onemrva-spinner {
91
+ svg {
92
+ fill: color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent);
93
+ }
94
+ }
95
+ }
96
+ onemrva-mat-spinner {
97
+ display: none;
98
+ }
99
+
100
+ &.has-spinner {
101
+ .mdc-button__label {
102
+ margin-left: 20px;
103
+ }
104
+ onemrva-mat-spinner {
105
+ display: inline-block;
106
+ }
107
+ }
108
+ onemrva-mat-spinner {
109
+ .onemrva-spinner {
110
+ svg {
111
+ height: 18px !important;
112
+ width: 18px !important;
113
+ margin-left: 8px;
114
+
115
+ top: 17px !important;
116
+ left: 37px !important;
117
+ transform: none;
118
+ }
119
+ }
120
+ }
121
+ &.small {
122
+ @include mat.button-overrides(
123
+ (
124
+ outlined-outline-width: 1px,
125
+ outlined-container-height: 24px,
126
+ outlined-label-text-size: 0.8rem,
127
+ outlined-horizontal-padding: 12px,
128
+ filled-container-height: 24px,
129
+ filled-label-text-size: 0.8rem,
130
+ text-horizontal-padding: 12px,
131
+ text-container-height: 24px,
132
+ text-label-text-size: 0.8rem,
133
+ )
134
+ );
135
+ mat-icon {
136
+ height: auto;
137
+ }
138
+ }
139
+ }
140
+ }
@@ -0,0 +1,34 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ @include mat.card-overrides(
6
+ (
7
+ title-text-font: var(--mat-sys-title-large-font),
8
+ title-text-line-height: var(--mat-sys-title-large-height),
9
+ title-text-size: var(--mat-sys-title-large-size),
10
+ title-text-weight: var(--mat-sys-title-large-weight),
11
+ subtitle-text-font: var(--mat-sys-label-small-font),
12
+ subtitle-text-line-height: var(--mat-sys-label-small-height),
13
+ subtitle-text-size: var(--mat-sys-label-small-size),
14
+ subtitle-text-weight: var(--mat-sys-label-small-weight),
15
+ elevated-container-shape: var(--border-radius),
16
+ elevated-container-elevation: none,
17
+ elevated-container-color: var(--mat-sys-surface),
18
+ )
19
+ );
20
+ mat-card {
21
+ img.mat-mdc-card-image {
22
+ border-radius: var(--border-radius);
23
+ }
24
+ mat-card-content {
25
+ p {
26
+ margin: var(--spacer) 0;
27
+ display: -webkit-box;
28
+ -webkit-line-clamp: 2;
29
+ -webkit-box-orient: vertical;
30
+ overflow: hidden;
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,13 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+ @use '../utilities/variables' as variables;
4
+
5
+ @mixin override() {
6
+ onemrva-mat-carousel {
7
+ onemrva-mat-carousel-item {
8
+ onemrva-mat-panel {
9
+ height: calc(100% - 50px);
10
+ }
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,49 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.checkbox-overrides(
5
+ (
6
+ selected-checkmark-color: var(--on-background-gradient),
7
+ selected-icon-color: var(--mat-sys-primary),
8
+ selected-pressed-icon-color: var(--mat-sys-primary),
9
+ selected-focus-icon-color: var(--mat-sys-primary),
10
+ selected-focus-state-layer-color: var(--mat-sys-primary),
11
+ selected-hover-state-layer-color: var(--mat-sys-primary),
12
+ selected-pressed-state-layer-color: var(--mat-sys-primary),
13
+ label-text-size: var(--mat-sys-label-large-size),
14
+ label-text-weight: var(--mat-sys-label-large-weight),
15
+ label-text-line-height: var(--mat-sys-label-large-height),
16
+ )
17
+ );
18
+
19
+ .mat-mdc-checkbox {
20
+ .mat-internal-form-field > label {
21
+ padding-left: 0;
22
+ }
23
+
24
+ .mdc-checkbox__native-control:enabled:checked,
25
+ .mdc-checkbox__native-control:enabled:indeterminate {
26
+ ~ .mdc-checkbox__background {
27
+ background: var(--background-gradient);
28
+ border: 2px solid var(--mat-sys-tertiary);
29
+ }
30
+ }
31
+
32
+ &.mat-success {
33
+ @include mat.checkbox-overrides(
34
+ (
35
+ selected-checkmark-color: var(--mat-sys-on-primary),
36
+ )
37
+ );
38
+
39
+ // strangely, the overrides don't work when it's pre-checked
40
+ .mdc-checkbox__native-control:enabled:checked,
41
+ .mdc-checkbox__native-control:enabled:indeterminate {
42
+ ~ .mdc-checkbox__background {
43
+ background: var(--mat-sys-primary);
44
+ border: 2px solid var(--mat-sys-primary);
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,42 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/variables' as variables;
3
+
4
+ @mixin override() {
5
+ @include mat.chips-overrides(
6
+ (
7
+ container-shape-radius: var(--button-border-radius),
8
+ outline-color: var(--mat-sys-primary),
9
+ elevated-container-color: var(--mat-sys-primary-container),
10
+ container-height: 38px,
11
+ label-text-color: var(--mat-sys-primary),
12
+ label-text-font: var(--mat-sys-label-large-font),
13
+ label-text-size: var(--mat-sys-label-large-size),
14
+ label-text-line-height: var(--mat-sys-label-large-height),
15
+ with-trailing-icon-trailing-icon-color: var(--mat-sys-primary),
16
+ )
17
+ );
18
+ mat-chip-option,
19
+ mat-chip-row,
20
+ mat-chip {
21
+ &.mat-accent:not(.mat-mdc-chip-disabled) {
22
+ background: var(--background-gradient);
23
+ @include mat.chips-overrides(
24
+ (
25
+ outline-color: var(--mat-sys-tertiary),
26
+ with-trailing-icon-trailing-icon-color: var(--on-background-gradient),
27
+ label-text-color: var(--on-background-gradient),
28
+ )
29
+ );
30
+ }
31
+ &.mat-error:not(.mat-mdc-chip-disabled) {
32
+ @include mat.chips-overrides(
33
+ (
34
+ elevated-container-color: var(--mat-sys-error-container),
35
+ outline-color: var(--mat-sys-on-error-container),
36
+ with-trailing-icon-trailing-icon-color: var(--mat-sys-primary),
37
+ label-text-color: var(--mat-sys-primary),
38
+ )
39
+ );
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,10 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.datepicker-overrides(
5
+ (
6
+ calendar-container-background-color: var(--mat-sys-surface),
7
+ calendar-container-elevation-shadow: var(--mat-sys-level2),
8
+ )
9
+ );
10
+ }
@@ -0,0 +1,118 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/palettes' as palettes;
3
+
4
+ @mixin override() {
5
+ @include mat.dialog-overrides(
6
+ (
7
+ container-shape: var(--half-border-radius),
8
+ )
9
+ );
10
+
11
+ .cdk-overlay-container {
12
+ .mat-mdc-dialog-title {
13
+ padding: var(--triple-spacer);
14
+ &:before {
15
+ display: none;
16
+ font-family: var(--icon-font);
17
+ font-size: 1.23rem;
18
+ font-variation-settings:
19
+ 'FILL' 1,
20
+ 'wght' 400,
21
+ 'GRAD' 0,
22
+ 'opsz' 24;
23
+ position: absolute;
24
+ }
25
+ }
26
+ .mat-mdc-dialog-actions {
27
+ @include mat.theme(
28
+ (
29
+ color: (
30
+ use-system-variables: true,
31
+ primary: palettes.$primary-palette,
32
+ tertiary: palettes.$tertiary-palette,
33
+ ),
34
+ //typography: (
35
+ // use-system-variables: false,
36
+ // plain-family: Source Sans Pro,
37
+ // brand-family: Poppins,
38
+ // bold-weight: 900,
39
+ // medium-weight: 600,
40
+ // regular-weight: 400,
41
+ //),
42
+ //density: 0,
43
+ )
44
+ );
45
+ }
46
+
47
+ .cdk-overlay-pane.mat-warn,
48
+ .cdk-overlay-pane.mat-success,
49
+ .cdk-overlay-pane.mat-error {
50
+ @include mat.dialog-overrides(
51
+ (
52
+ subhead-color: var(--mat-sys-primary),
53
+ )
54
+ );
55
+ .mat-mdc-dialog-title {
56
+ margin-left: var(--quad-spacer);
57
+ position: relative;
58
+ &:before {
59
+ display: inline-block;
60
+ margin-left: calc(-1 * var(--quad-spacer));
61
+ content: var(--message-icon);
62
+ /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
63
+ }
64
+ }
65
+ }
66
+ .cdk-overlay-container.mat-error {
67
+ @include mat.dialog-overrides(
68
+ (
69
+ subhead-color: var(--mat-sys-error),
70
+ )
71
+ );
72
+ }
73
+
74
+ .close-dialog {
75
+ float: right;
76
+ mat-icon {
77
+ color: var(--mat-sys-primary);
78
+ font-size: 1.7rem;
79
+ }
80
+ &:hover {
81
+ cursor: pointer;
82
+ }
83
+ }
84
+
85
+ .xlarge {
86
+ @include mat.dialog-overrides(
87
+ (
88
+ container-max-width: 1280px,
89
+ container-min-width: 996px,
90
+ )
91
+ );
92
+ }
93
+ .large {
94
+ @include mat.dialog-overrides(
95
+ (
96
+ container-max-width: 996px,
97
+ container-min-width: 812px,
98
+ )
99
+ );
100
+ }
101
+ .medium {
102
+ @include mat.dialog-overrides(
103
+ (
104
+ container-max-width: 812px,
105
+ container-min-width: 628px,
106
+ )
107
+ );
108
+ }
109
+ .small {
110
+ @include mat.dialog-overrides(
111
+ (
112
+ container-max-width: 628px,
113
+ container-min-width: 444px,
114
+ )
115
+ );
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,9 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.divider-overrides(
5
+ (
6
+ color: var(--mat-sys-outline-variant),
7
+ )
8
+ );
9
+ }