@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,74 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ .cdk-drag-placeholder {
6
+ background: var(--mat-sys-primary-container);
7
+ border: 2px dotted var(--mat-sys-primary);
8
+ min-height: 3.5rem;
9
+ border-radius: var(--half-border-radius);
10
+ margin-bottom: var(--spacer);
11
+ transition: transform 200ms cubic-bezier(0, 0, 0.2, 1);
12
+ }
13
+ .cdk-drag-preview {
14
+ box-shadow:
15
+ 0 5px 5px -3px rgba(0, 0, 0, 0.2),
16
+ 0 8px 10px 1px rgba(0, 0, 0, 0.14),
17
+ 0 3px 14px 2px rgba(0, 0, 0, 0.12);
18
+ background: var(--mat-sys-primary-container);
19
+ }
20
+ .cdk-drop-list-dragging {
21
+ cursor: grabbing;
22
+ .cdk-drag:not(.cdk-drag-placeholder) {
23
+ height: auto !important;
24
+ }
25
+ }
26
+
27
+ .cdk-drag:not(.mat-mdc-chip):not(tr):not(mat-row) {
28
+ position: relative;
29
+ display: flex;
30
+ cursor: grab;
31
+ // transition: transform 100ms cubic-bezier(0, 0, 0.2, 1);
32
+ background-color: var(--mat-sys-surface-container);
33
+ padding: var(--double-spacer) var(--double-spacer) var(--double-spacer)
34
+ calc(var(--spacer) * 7);
35
+ border-radius: var(--half-border-radius);
36
+ margin-bottom: var(--spacer);
37
+
38
+ &:before {
39
+ border-radius: var(--half-border-radius) 0 0 var(--half-border-radius);
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ bottom: 0;
44
+ font-family: var(--icon-font);
45
+ content: '\e945';
46
+ align-items: center;
47
+ display: inline-flex;
48
+ padding: var(--double-spacer) var(--spacer);
49
+ //padding: 15px 10px 15px 14px; // THe icon is slightly narrower than in the DS so it's shifted to the left so as to be centered
50
+ color: var(--mat-sys-primary);
51
+ background-color: var(--mat-sys-surface-container);
52
+ width: 1.5rem;
53
+ font-size: 2rem;
54
+ }
55
+ }
56
+
57
+ trn mat-row {
58
+ &.cdk-drag-preview {
59
+ display: flex;
60
+ justify-content: space-between;
61
+ align-items: center;
62
+ width: 100%;
63
+ //padding: 0 0 var(--double-spacer) 0;
64
+ overflow: hidden;
65
+ border-radius: var(--half-border-radius);
66
+ }
67
+ .cdk-drag-preview {
68
+ height: 2.8rem;
69
+ }
70
+ &.cdk-drag-placeholder {
71
+ opacity: 0.2;
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,51 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.expansion-overrides(
5
+ (
6
+ container-shape: none,
7
+ header-text-font: var(--mat-sys-title-small-font),
8
+ header-text-size: var(--mat-sys-title-small-size),
9
+ header-hover-state-layer-color: transparent,
10
+ container-text-weight: var(--mat-sys-label-medium-weight),
11
+ )
12
+ );
13
+
14
+ .mat-expansion-panel {
15
+ &:not([class*='mat-elevation-z']) {
16
+ box-shadow: none;
17
+ }
18
+
19
+ // Ensure expansion panels are full width
20
+ // In wave they caused misalignment
21
+ .mat-expansion-panel-header {
22
+ padding: 0;
23
+
24
+ .mat-expansion-indicator {
25
+ margin-right: 12px;
26
+ }
27
+ }
28
+
29
+ .mat-expansion-panel-header-title {
30
+ align-items: center;
31
+ display: flex;
32
+ gap: var(--spacer);
33
+
34
+ h1,
35
+ h2,
36
+ h3,
37
+ h4,
38
+ h5,
39
+ h6 {
40
+ margin: 0;
41
+ }
42
+ &:after {
43
+ content: '';
44
+ width: 130px;
45
+ height: 1px;
46
+ background: var(--mat-sys-outline-variant);
47
+ flex: 1000000 0 10px;
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,45 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.fab-overrides(
5
+ (
6
+ container-shape: var(--button-border-radius),
7
+ small-container-shape: var(--button-border-radius),
8
+ )
9
+ );
10
+ button {
11
+ &.mat-mdc-fab-base {
12
+ &.mat-accent {
13
+ background: var(--background-gradient);
14
+ color: var(--on-background-gradient);
15
+ }
16
+ &.mat-primary,
17
+ &.mat-secondary,
18
+ &.mat-tertiary,
19
+ &.mat-success,
20
+ &.mat-info,
21
+ &.mat-error,
22
+ &.mat-warn {
23
+ @include mat.fab-overrides(
24
+ (
25
+ container-color: var(--mat-sys-primary),
26
+ small-container-color: var(--mat-sys-primary),
27
+ foreground-color: var(--mat-sys-on-primary),
28
+ small-foreground-color: var(--mat-sys-on-primary),
29
+ )
30
+ );
31
+ }
32
+ &.mat-neutral,
33
+ &.mat-grayscale {
34
+ @include mat.fab-overrides(
35
+ (
36
+ container-color: var(--mat-sys-primary-container),
37
+ small-container-color: var(--mat-sys-primary-container),
38
+ foreground-color: var(--mat-sys-on-primary-container),
39
+ small-foreground-color: var(--mat-sys-on-primary-container),
40
+ )
41
+ );
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,223 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+ @use '../utilities/palettes' as palettes;
4
+
5
+ @mixin defaultSubscriptElements() {
6
+ background-color: var(--mat-sys-error-container);
7
+ padding: 0 var(--spacer-and-half) 0
8
+ calc(var(--triple-spacer) + var(--spacer-and-half));
9
+ font: var(--mat-sys-label-small);
10
+ border-bottom: 1px solid var(--mat-sys-error);
11
+
12
+ &:before {
13
+ font-size: 1rem;
14
+ font-variation-settings:
15
+ 'FILL' 1,
16
+ 'wght' 400,
17
+ 'GRAD' 0,
18
+ 'opsz' 24;
19
+ /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
20
+ font-family: var(--icon-font);
21
+ position: relative;
22
+ top: var(--half-spacer);
23
+ margin-left: calc(-1 * var(--triple-spacer));
24
+ padding-right: var(--half-spacer);
25
+ }
26
+ }
27
+
28
+ // hint or error as type value
29
+ @mixin formFieldSubscript($type) {
30
+ .mat-mdc-form-field-#{$type}-wrapper {
31
+ padding: 0;
32
+
33
+ .mat-mdc-form-field-hint-spacer {
34
+ display: none;
35
+ }
36
+
37
+ @if $type == error {
38
+ mat-error {
39
+ @include defaultSubscriptElements();
40
+
41
+ &:before {
42
+ content: '\e000';
43
+ }
44
+ }
45
+ }
46
+
47
+ @if $type == hint {
48
+ // The mat-warn is set by the color directive
49
+ mat-hint {
50
+ padding-top: var(--half-spacer);
51
+ }
52
+
53
+ mat-hint.mat-warn {
54
+ @include defaultSubscriptElements();
55
+
56
+ width: 100%;
57
+ background-color: var(--mat-sys-primary-container);
58
+ border-bottom: 1px solid var(--mat-sys-primary);
59
+ color: var(--mat-sys-primary);
60
+ padding: 0
61
+ var(--spacer-and-half)
62
+ var(--half-spacer)
63
+ calc(var(--triple-spacer) + var(--spacer-and-half));
64
+
65
+ &:before {
66
+ content: '\e002';
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ @mixin override() {
74
+ @include mat.form-field-overrides(
75
+ (
76
+ outlined-label-text-color: var(--mat-sys-on-surface),
77
+ outlined-focus-label-text-color: var(--mat-sys-on-surface),
78
+ outlined-hover-label-text-color: var(--mat-sys-on-surface),
79
+ container-height: var(--input-height),
80
+ container-vertical-padding: var(--spacer-and-half),
81
+ outlined-outline-color: var(--mat-sys-outline-variant),
82
+ outlined-focus-outline-color: var(--mat-sys-on-surface),
83
+ outlined-hover-outline-color: var(--mat-sys-on-surface),
84
+ outlined-outline-width: 1px,
85
+ outlined-focus-outline-width: 2px,
86
+ outlined-label-text-weight: var(--mat-sys-label-small-weight),
87
+ outlined-input-text-placeholder-color: var(--mat-sys-outline),
88
+ container-text-weight: var(--mat-sys-label-small-weight),
89
+ )
90
+ );
91
+
92
+ mat-form-field {
93
+ padding: var(--spacer);
94
+ //margin-bottom: var(--spacer);
95
+
96
+ .mat-mdc-form-field-subscript-wrapper {
97
+ @include formFieldSubscript(error);
98
+ @include formFieldSubscript(hint);
99
+ }
100
+
101
+ .mat-mdc-form-field-required-marker {
102
+ @include mat.form-field-overrides(
103
+ (
104
+ outlined-label-text-color: var(--mat-sys-error),
105
+ )
106
+ );
107
+ color: var(--mat-form-field-outlined-label-text-color);
108
+ }
109
+
110
+ .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
111
+ .mdc-notched-outline--upgraded {
112
+ .mdc-floating-label--float-above {
113
+ --mat-form-field-container-height: 44px;
114
+ --mat-mdc-form-field-floating-label-scale: 0.75;
115
+ --mat-mdc-form-field-label-transform: translateY(
116
+ calc(
117
+ calc(
118
+ 6.75px + var(--mat-form-field-container-height, 56px) / 2
119
+ ) *
120
+ -1.1
121
+ )
122
+ )
123
+ scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));
124
+ }
125
+ }
126
+ }
127
+
128
+ &.mat-warn,
129
+ &.force-warn {
130
+ .mat-mdc-form-field-subscript-wrapper {
131
+ .mat-mdc-form-field-error-wrapper {
132
+ mat-error {
133
+ background-color: var(--mat-sys-primary-container);
134
+ border-bottom: 1px solid var(--mat-sys-primary);
135
+ &:before {
136
+ content: '\e002';
137
+ }
138
+ }
139
+ }
140
+ }
141
+ @include mat.form-field-overrides(
142
+ (
143
+ outlined-error-caret-color: var(--mat-sys-primary),
144
+ outlined-error-focus-outline-color: var(--mat-sys-primary),
145
+ outlined-error-focus-label-text-color: var(--mat-sys-primary),
146
+ outlined-error-hover-label-text-color: var(--mat-sys-primary),
147
+ outlined-error-hover-outline-color: var(--mat-sys-primary),
148
+ outlined-error-label-text-color: var(--mat-sys-primary),
149
+ outlined-error-outline-color: var(--mat-sys-primary),
150
+ )
151
+ );
152
+ }
153
+ }
154
+
155
+ /* BEGINNING - HERE TO FORCE READONLY STATE */
156
+ // TODO : should use the var as much as possible !!
157
+
158
+ .onemrva-readonly,
159
+ form.onemrva-readonly {
160
+ pointer-events: none;
161
+ &,
162
+ * {
163
+ cursor: not-allowed !important;
164
+ }
165
+
166
+ &:not(.mat-form-field-disabled),
167
+ mat-form-field:not(.mat-form-field-disabled) {
168
+ input,
169
+ select,
170
+ textarea {
171
+ &::placeholder {
172
+ opacity: 0 !important;
173
+ }
174
+ }
175
+
176
+ mat-label,
177
+ label {
178
+ pointer-events: none !important;
179
+ }
180
+
181
+ .mat-select-counter,
182
+ button[type='submit'] {
183
+ display: none !important;
184
+ }
185
+
186
+ @include mat.form-field-overrides(
187
+ (
188
+ outlined-outline-width: 0px,
189
+ outlined-focus-outline-width: 0px,
190
+ outlined-label-text-weight: var(--mat-sys-label-small-weight),
191
+ subscript-text-weight: bold,
192
+ )
193
+ );
194
+
195
+ mat-hint,
196
+ .mat-mdc-form-field-icon-suffix,
197
+ .mat-mdc-select-arrow-wrapper,
198
+ .mat-mdc-select-placeholder,
199
+ .mat-mdc-form-field-icon-prefix {
200
+ display: none;
201
+ }
202
+ .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
203
+ padding-left: max(
204
+ 16px,
205
+ var(
206
+ --mat-form-field-outlined-container-shape,
207
+ var(--mat-sys-corner-extra-small)
208
+ ) +
209
+ 4px
210
+ );
211
+ }
212
+ .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
213
+ padding-right: max(
214
+ 16px,
215
+ var(
216
+ --mat-form-field-outlined-container-shape,
217
+ var(--mat-sys-corner-extra-small)
218
+ )
219
+ );
220
+ }
221
+ }
222
+ }
223
+ }
@@ -0,0 +1,24 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/variables' as variables;
3
+
4
+ @mixin override() {
5
+ button {
6
+ &.mdc-icon-button {
7
+ &.small {
8
+ --mdc-icon-button-state-layer-size: calc(var(--icon-size-small) * 1.5);
9
+ --mdc-icon-button-icon-size: var(--icon-size-small);
10
+ mat-icon {
11
+ height: var(--icon-size-small);
12
+ font-size: var(--icon-size-small);
13
+ width: var(--icon-size-small);
14
+ }
15
+ }
16
+ }
17
+
18
+ &.onemrva-icon-button.mat-mdc-icon-button {
19
+ .mat-mdc-button-persistent-ripple::before {
20
+ --mat-icon-button-state-layer-color: var(--mat-sys-surface);
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,97 @@
1
+ @mixin override() {
2
+ mat-icon {
3
+ font-variation-settings:
4
+ 'FILL' 0,
5
+ 'wght' 300,
6
+ 'GRAD' 0,
7
+ 'opsz' 24;
8
+
9
+ &.xsmall {
10
+ font-size: var(--icon-size-xsmall);
11
+ line-height: var(--icon-size-xsmall);
12
+ height: var(--icon-size-xsmall);
13
+ width: var(--icon-size-xsmall);
14
+ font-variation-settings:
15
+ 'FILL' 0,
16
+ 'wght' 400,
17
+ 'GRAD' 0,
18
+ 'opsz' 12;
19
+ }
20
+
21
+ &.small {
22
+ font-size: var(--icon-size-small);
23
+ line-height: var(--icon-size-small);
24
+ height: var(--icon-size-small);
25
+ width: var(--icon-size-small);
26
+ font-variation-settings:
27
+ 'FILL' 0,
28
+ 'wght' 400,
29
+ 'GRAD' 0,
30
+ 'opsz' 16;
31
+ }
32
+
33
+ &.medium {
34
+ height: var(--icon-size-medium);
35
+ width: var(--icon-size-medium);
36
+ line-height: var(--icon-size-medium);
37
+ font-variation-settings:
38
+ 'FILL' 0,
39
+ 'wght' 400,
40
+ 'GRAD' 0,
41
+ 'opsz' 20;
42
+ }
43
+
44
+ &.large {
45
+ font-size: var(--icon-size-large);
46
+ line-height: var(--icon-size-large);
47
+ height: var(--icon-size-large);
48
+ width: var(--icon-size-large);
49
+ font-variation-settings:
50
+ 'FILL' 0,
51
+ 'wght' 400,
52
+ 'GRAD' 0,
53
+ 'opsz' 24;
54
+ }
55
+
56
+ &.xlarge {
57
+ font-size: var(--icon-size-xlarge);
58
+ line-height: var(--icon-size-xlarge);
59
+ height: var(--icon-size-xlarge);
60
+ width: var(--icon-size-xlarge);
61
+ font-variation-settings:
62
+ 'FILL' 0,
63
+ 'wght' 300,
64
+ 'GRAD' 0,
65
+ 'opsz' 62;
66
+ }
67
+
68
+ &.xxlarge {
69
+ font-size: var(--icon-size-xxlarge);
70
+ line-height: var(--icon-size-xxlarge);
71
+ height: var(--icon-size-xxlarge);
72
+ width: var(--icon-size-xxlarge);
73
+ font-variation-settings:
74
+ 'FILL' 0,
75
+ 'wght' 300,
76
+ 'GRAD' 0,
77
+ 'opsz' 40;
78
+ }
79
+
80
+ &.mat-primary,
81
+ &.mat-secondary,
82
+ &.mat-tertiary,
83
+ &.mat-success,
84
+ &.mat-info,
85
+ &.mat-error,
86
+ &.mat-warn,
87
+ &.mat-neutral,
88
+ &.mat-grayscale,
89
+ &.mat-accent {
90
+ color: var(--mat-sys-primary);
91
+ }
92
+
93
+ &.filled {
94
+ font-variation-settings: 'FILL' 1;
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,18 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ &.mat-focused,
6
+ &:hover {
7
+ .mdc-notched-outline {
8
+ .mdc-notched-outline__leading,
9
+ .mdc-notched-outline__trailing {
10
+ border-width: 2px;
11
+ }
12
+
13
+ .mdc-notched-outline__notch {
14
+ border-width: 2px;
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,35 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ //&:not(.light-theme) {
5
+ // @media (prefers-color-scheme: dark) {
6
+ // header {
7
+ // .logo {
8
+ // filter: brightness(0) invert(1);
9
+ // }
10
+ // .application-title {
11
+ // color: var(--mat-sys-on-surface) !important;
12
+ // }
13
+ // }
14
+ // }
15
+ //}
16
+
17
+ &.dark-theme {
18
+ header {
19
+ .logo {
20
+ filter: brightness(0) invert(1);
21
+ }
22
+ .application-title {
23
+ color: var(--mat-sys-on-surface);
24
+ }
25
+ }
26
+ }
27
+
28
+ .bkg {
29
+ .mat-drawer-content {
30
+ background-image: var(--background-error-page);
31
+ background-size: cover;
32
+ background-repeat: no-repeat;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,45 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.menu-overrides(
5
+ (
6
+ container-color: var(--mat-sys-surface),
7
+ item-with-icon-leading-spacing: var(--double-spacer),
8
+ item-with-icon-trailing-spacing: var(--double-spacer),
9
+ item-label-text-line-height: var(--quad-spacer),
10
+ container-shape: 0,
11
+ item-leading-spacing: var(--double-spacer),
12
+ item-trailing-spacing: var(--double-spacer),
13
+ container-elevation-shadow: none,
14
+ item-hover-state-layer-color: var(--mat-sys-surface-container-low),
15
+ item-focus-state-layer-color: var(--mat-sys-surface-container-low),
16
+ )
17
+ );
18
+ }
19
+
20
+ .layout-menu-offset {
21
+ margin-top: 28px;
22
+ margin-left: -16px;
23
+ }
24
+
25
+ .mat-mdc-menu-panel {
26
+ border: 1px solid var(--mat-sys-outline-variant);
27
+ box-shadow: unset;
28
+ }
29
+
30
+ .mat-mdc-menu-item {
31
+ min-height: 38px !important;
32
+ }
33
+
34
+ .mat-mdc-menu-item-text {
35
+ display: flex;
36
+ }
37
+
38
+ .language-trigger__menu-item {
39
+ display: flex;
40
+ min-width: 200px;
41
+
42
+ img {
43
+ width: 22px;
44
+ }
45
+ }
@@ -0,0 +1,15 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.option-overrides(
5
+ (
6
+ label-text-size: var(--mat-sys-body-medium-size),
7
+ label-text-weight: var(--mat-sys-body-medium-weight),
8
+ label-text-font: var(--mat-sys-body-medium-font),
9
+ label-text-line-height: var(--mat-sys-body-medium-line-height),
10
+ )
11
+ );
12
+ .mat-radio-inner-circle {
13
+ background: var(--background-gradient);
14
+ }
15
+ }
@@ -0,0 +1,59 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ //&:not(.light-theme) {
5
+ // onemrva-mat-panel {
6
+ // &[class^='mat-'] {
7
+ // @media (prefers-color-scheme: dark) {
8
+ // @include mat.form-field-overrides(
9
+ // (
10
+ // outlined-label-text-color: var(--mat-sys-on-background),
11
+ // outlined-outline-color: var(--mat-sys-on-background),
12
+ // outlined-focus-label-text-color: var(--mat-sys-on-background),
13
+ // outlined-focus-outline-color: var(--mat-sys-on-background),
14
+ // outlined-hover-label-text-color: var(--mat-sys-on-background),
15
+ // outlined-hover-outline-color: var(--mat-sys-on-background),
16
+ // outlined-input-text-placeholder-color: var(--mat-sys-outline),
17
+ // )
18
+ // );
19
+ // @include mat.select-overrides(
20
+ // (
21
+ // enabled-arrow-color: var(--mat-sys-on-background),
22
+ // focused-arrow-color: var(--mat-sys-on-background),
23
+ // placeholder-text-color: var(--mat-sys-on-background),
24
+ // enabled-trigger-text-color: var(--mat-sys-on-background),
25
+ // )
26
+ // );
27
+ // }
28
+ // }
29
+ // }
30
+ //}
31
+ &.dark-theme {
32
+ onemrva-mat-panel {
33
+ onemrva-mat-panel {
34
+ &[class^='mat-'] {
35
+ @include mat.form-field-overrides(
36
+ (
37
+ outlined-label-text-color: var(--mat-sys-on-background),
38
+ outlined-outline-color: var(--mat-sys-on-background),
39
+ outlined-focus-label-text-color: var(--mat-sys-on-background),
40
+ outlined-focus-outline-color: var(--mat-sys-on-background),
41
+ outlined-hover-label-text-color: var(--mat-sys-on-background),
42
+ outlined-hover-outline-color: var(--mat-sys-on-background),
43
+ outlined-input-text-color: var(--mat-sys-on-background),
44
+ outlined-input-text-placeholder-color: var(--mat-sys-outline),
45
+ )
46
+ );
47
+ @include mat.select-overrides(
48
+ (
49
+ enabled-arrow-color: var(--mat-sys-on-background),
50
+ focused-arrow-color: var(--mat-sys-on-background),
51
+ placeholder-text-color: var(--mat-sys-on-background),
52
+ enabled-trigger-text-color: var(--mat-sys-on-background),
53
+ )
54
+ );
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }