@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,29 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/palettes' as palettes;
3
+
4
+ @mixin override() {
5
+ @include mat.progress-bar-overrides(
6
+ (
7
+ track-height: 0.25rem,
8
+ )
9
+ );
10
+ //
11
+ //.mat-mdc-progress-bar {
12
+ // border-radius: var(--button-border-radius);
13
+ //
14
+ // .mdc-linear-progress__bar-inner {
15
+ // border-radius: var(--button-border-radius);
16
+ // }
17
+ // &[aria-valuenow='100'] {
18
+ // .mdc-linear-progress__bar-inner {
19
+ // @include mat.theme(
20
+ // (
21
+ // color: (
22
+ // primary: palettes.$success-palette,
23
+ // ),
24
+ // )
25
+ // );
26
+ // }
27
+ // }
28
+ //}
29
+ }
@@ -0,0 +1,16 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.radio-overrides(
5
+ (
6
+ selected-icon-color: var(--mat-sys-tertiary),
7
+ selected-hover-icon-color: var(--mat-sys-tertiary),
8
+ selected-focus-icon-color: var(--mat-sys-tertiary),
9
+ label-text-size: var(--mat-sys-label-large-size),
10
+ label-text-weight: var(--mat-sys-label-large-weight),
11
+ )
12
+ );
13
+ .mat-radio-inner-circle {
14
+ background: var(--background-gradient);
15
+ }
16
+ }
@@ -0,0 +1,124 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ @include mat.select-overrides(
6
+ (
7
+ panel-background-color: var(--mat-sys-surface),
8
+ trigger-text-font: var(--mat-sys-body-medium-font),
9
+ trigger-text-size: var(--mat-sys-body-medium-size),
10
+ trigger-text-weight: var(--mat-sys-body-medium-weight),
11
+ )
12
+ );
13
+
14
+ mat-select {
15
+ &.mat-mdc-select-multiple {
16
+ .mat-mdc-select-value-text {
17
+ padding-right: calc(7 * var(--spacer));
18
+ display: block;
19
+ }
20
+ }
21
+ }
22
+
23
+ .onemrva-readonly {
24
+ .mat-mdc-select-value-text,
25
+ .mat-mdc-select-value {
26
+ white-space: unset;
27
+ }
28
+ }
29
+
30
+ .cdk-overlay-pane {
31
+ .mat-mdc-select-panel {
32
+ overflow: hidden;
33
+ padding: 0;
34
+ .selection-choice {
35
+ font: var(--mat-sys-title-small);
36
+ width: 98%;
37
+ a {
38
+ text-decoration: underline;
39
+ }
40
+ span {
41
+ &.grey {
42
+ color: var(--mat-sys-neutral10);
43
+ }
44
+ }
45
+ .mat-disabled {
46
+ pointer-events: none;
47
+ font-weight: 400;
48
+ cursor: default;
49
+ // color: var(--mat-sys-neutral10);
50
+ text-decoration: none;
51
+ }
52
+ }
53
+ .option-list {
54
+ overflow-y: auto;
55
+ height: auto;
56
+ max-height: 226px;
57
+ }
58
+ }
59
+ .mat-mdc-option[aria-disabled='true'].contains-mat-select-search {
60
+ position: sticky;
61
+ top: 0;
62
+ z-index: 1;
63
+ opacity: 1;
64
+ margin-top: calc(-1 * var(--spacer));
65
+ pointer-events: all;
66
+
67
+ .mat-icon {
68
+ margin-right: 0;
69
+ margin-left: 0;
70
+ }
71
+ mat-pseudo-checkbox {
72
+ display: none;
73
+ }
74
+ .mdc-list-item__primary-text {
75
+ opacity: 1;
76
+ }
77
+ }
78
+ .mat-select-search-toggle-all-checkbox {
79
+ padding-left: var(--half-spacer);
80
+ }
81
+ }
82
+
83
+ .xlarge {
84
+ @include mat.dialog-overrides(
85
+ (
86
+ container-max-width: 1280px,
87
+ container-min-width: 996px,
88
+ )
89
+ );
90
+ }
91
+ .large {
92
+ @include mat.dialog-overrides(
93
+ (
94
+ container-max-width: 996px,
95
+ container-min-width: 812px,
96
+ )
97
+ );
98
+ }
99
+ .medium {
100
+ @include mat.dialog-overrides(
101
+ (
102
+ container-max-width: 812px,
103
+ container-min-width: 628px,
104
+ )
105
+ );
106
+ }
107
+ .small {
108
+ @include mat.dialog-overrides(
109
+ (
110
+ container-max-width: 628px,
111
+ container-min-width: 444px,
112
+ )
113
+ );
114
+ }
115
+
116
+ //.mat-mdc-select {
117
+ // padding: 0;
118
+ // --mat-select-invalid-arrow-color: #{µ.error($theme, 500)};
119
+ // //.mat-mdc-text-field-wrapper.mdc-text-field--outlined
120
+ // // .mat-mdc-form-field-infix {
121
+ // // padding: 12px 0;
122
+ // //}
123
+ //}
124
+ }
@@ -0,0 +1,13 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ @include mat.sidenav-overrides(
6
+ (
7
+ container-elevation-shadow: var(--mat-sys-level2),
8
+ )
9
+ );
10
+ .mat-drawer-inner-container {
11
+ overflow: hidden;
12
+ }
13
+ }
@@ -0,0 +1,53 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ $size: 24px;
5
+ $handleSize: calc($size - 4px);
6
+ $margin: 0 4px;
7
+
8
+ @include mat.slide-toggle-overrides(
9
+ (
10
+ //unselected-track-color: var(--mat-sys-outline),
11
+ unselected-icon-color: white,
12
+ track-outline-color: var(--mat-sys-surface-variant),
13
+ selected-track-outline-color: var(--mat-sys-secondary),
14
+ label-text-font: var(--mat-sys-body-medium-font),
15
+ label-text-size: var(--mat-sys-body-medium-size),
16
+ label-text-weight: var(--mat-sys-body-medium-weight),
17
+ label-text-line-height: var(--mat-sys-body-medium-line-height),
18
+ track-height: $size,
19
+ handle-height: $size,
20
+
21
+ touch-target-size: $size,
22
+ state-layer-size: $size,
23
+ handle-width: $size,
24
+ track-width: 42px,
25
+
26
+ selected-icon-size: $handleSize,
27
+ pressed-handle-size: $handleSize,
28
+ unselected-handle-size: $handleSize,
29
+ with-icon-handle-size: $handleSize,
30
+
31
+ selected-handle-horizontal-margin: $margin,
32
+ unselected-pressed-handle-horizontal-margin: $margin,
33
+ selected-with-icon-handle-horizontal-margin: 0,
34
+ selected-pressed-handle-horizontal-margin: 0,
35
+ unselected-handle-horizontal-margin: $margin,
36
+ unselected-with-icon-handle-horizontal-margin: $margin,
37
+
38
+ track-outline-width: 0,
39
+ selected-track-outline-width: 0,
40
+ disabled-unselected-track-outline-width: 0
41
+ )
42
+ );
43
+
44
+ .mat-mdc-slide-toggle {
45
+ .mdc-switch:enabled:hover:not(:active),
46
+ .mdc-switch:enabled:focus:not(:active),
47
+ .mdc-switch:enabled {
48
+ .mdc-switch__track:after {
49
+ background: var(--background-gradient);
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,196 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ @include mat.stepper-overrides(
6
+ (
7
+ header-icon-foreground-color: var(--mat-sys-outline-variant),
8
+ header-icon-background-color: var(--mat-sys-background),
9
+ header-selected-state-icon-background-color: var(--mat-sys-primary),
10
+ header-done-state-icon-background-color: var(--mat-sys-primary),
11
+ header-edit-state-icon-background-color: var(--mat-sys-primary),
12
+ header-selected-state-icon-foreground-color: var(--mat-sys-on-primary),
13
+ header-done-state-icon-foreground-color: var(--mat-sys-on-primary),
14
+ header-edit-state-icon-foreground-color: var(--mat-sys-on-primary),
15
+ )
16
+ );
17
+
18
+ mat-stepper,
19
+ mat-vertical-stepper,
20
+ onemrva-mat-vertical-stepper {
21
+ .mat-vertical-stepper-header {
22
+ .mat-step-icon {
23
+ border: 2px solid var(--mat-sys-outline-variant);
24
+ height: 2.5rem;
25
+ width: 2.5rem;
26
+ margin-right: 1rem;
27
+ .mat-step-icon-content {
28
+ mat-icon {
29
+ height: 1.6rem;
30
+ width: 1.6rem;
31
+ line-height: 1.6rem;
32
+ font-size: 1.6rem;
33
+ }
34
+ span {
35
+ font-size: 1.2rem;
36
+ }
37
+ }
38
+ }
39
+ .mat-step-icon-selected {
40
+ border: 2px solid var(--mat-sys-background);
41
+ outline: 2px solid var(--mat-sys-primary);
42
+ }
43
+ .mat-step-icon-state-done {
44
+ border: 2px solid var(--mat-sys-primary);
45
+ }
46
+ .mat-step-icon-state-error {
47
+ border: 2px solid var(--mat-sys-error);
48
+ }
49
+ }
50
+
51
+ .mat-vertical-content-container {
52
+ .mat-vertical-stepper-content {
53
+ .mat-vertical-content {
54
+ margin: var(--spacer);
55
+ padding: 0 1.5rem 1.5rem 1.5rem;
56
+
57
+ .mat-step-summary {
58
+ height: auto;
59
+ opacity: 1;
60
+ overflow: inherit;
61
+ transition:
62
+ height 0s 1s,
63
+ opacity 1s linear;
64
+ }
65
+
66
+ .mat-step-form {
67
+ height: 0;
68
+ opacity: 0;
69
+ overflow: hidden;
70
+ transition: none;
71
+
72
+ mat-form-field {
73
+ opacity: 0;
74
+ }
75
+ }
76
+ }
77
+
78
+ &[aria-expanded='true'] {
79
+ .mat-vertical-content {
80
+ .mat-step-summary {
81
+ height: 0;
82
+ opacity: 0;
83
+ overflow: hidden;
84
+ transition: none;
85
+ }
86
+
87
+ .mat-step-form {
88
+ height: auto;
89
+ opacity: 1;
90
+ transition:
91
+ height 0s 1s,
92
+ opacity 1s linear;
93
+ overflow: inherit;
94
+
95
+ mat-form-field {
96
+ opacity: 1;
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ &.mat-stepper-vertical-line {
103
+ &:before {
104
+ --mat-stepper-header-height: 3rem;
105
+ left: var(--spacer);
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ //mat-stepper,
112
+ //mat-vertical-stepper,
113
+ //onemrva-mat-vertical-stepper {
114
+ // .mat-step-header {
115
+ // .mat-step-icon {
116
+ // background-color: white;
117
+ // border: 2px solid white;
118
+ // color: var(--mat-sys-background);
119
+ // height: 38px;
120
+ // width: 38px;
121
+ //
122
+ // &:not(.mat-step-icon-state-done):not(.mat-step-icon-state-edit):not(
123
+ // .mat-step-icon-selected
124
+ // ):not(.mat-step-icon-state-error) {
125
+ // //border: 2px solid µ.grayscale($theme);
126
+ // }
127
+ //
128
+ // .mat-icon {
129
+ // height: inherit;
130
+ // }
131
+ // }
132
+ // .mat-step-icon-selected,
133
+ // .mat-step-icon-state-done,
134
+ // .mat-step-icon-state-edit {
135
+ // //background-color: µ.primary($theme);
136
+ // color: white;
137
+ // border: none;
138
+ // border: 2px solid white;
139
+ // }
140
+ //
141
+ // .mat-step-icon-selected {
142
+ // border: 2px solid white;
143
+ // //outline: 2px solid µ.primary($theme);
144
+ // }
145
+ // .mat-step-icon-state-error {
146
+ // //background-color: µ.warn($theme, 600);
147
+ // color: white;
148
+ // outline: none;
149
+ // border: none;
150
+ // mat-icon {
151
+ // font-size: 16px;
152
+ // height: 16px;
153
+ // width: 16px;
154
+ // }
155
+ // }
156
+ //
157
+ // .mat-step-label.mat-step-label-error {
158
+ // //color: µ.warn($theme, 600);
159
+ // }
160
+ // }
161
+ // .mat-step-icon-state-done + .mat-stepper-horizontal-line {
162
+ // //border-top-color: µ.primary($theme);
163
+ // }
164
+ //
165
+ // .mat-stepper-horizontal-line {
166
+ // margin: unset;
167
+ // }
168
+ //
169
+ // .mat-stepper-vertical-line:before {
170
+ // top: 0;
171
+ // bottom: 0;
172
+ // }
173
+ //
174
+ // .mat-step-text-label {
175
+ // font-weight: 600;
176
+ // font-family: 'Source Sans Pro';
177
+ // }
178
+ //
179
+ // .mat-horizontal-content-container {
180
+ // padding-top: var(--spacer);
181
+ // }
182
+ //
183
+ // .mat-horizontal-stepper-header {
184
+ // padding: 0 16px;
185
+ // height: 58px;
186
+ // }
187
+ //
188
+ // .mat-vertical-stepper-header {
189
+ // padding: 16px;
190
+ // }
191
+ //}
192
+ //
193
+ //.mat-step-icon-content {
194
+ // font-family: 'Source Sans Pro';
195
+ //}
196
+ }
@@ -0,0 +1,13 @@
1
+ @use '@angular/material' as mat;
2
+ @mixin override() {
3
+ onemrva-mat-sticker {
4
+ .mat-icon {
5
+ $font-size: 0.8rem;
6
+ $icon-size: 1rem;
7
+ margin-right: var(--half-spacer);
8
+ height: $icon-size;
9
+ width: $icon-size;
10
+ font-size: $icon-size;
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,115 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/variables' as variables;
3
+ @mixin override() {
4
+ @include mat.table-overrides(
5
+ (
6
+ header-headline-size: 1rem,
7
+ header-headline-weight: 600,
8
+ row-item-label-text-size: 1rem,
9
+ footer-supporting-text-size: 1rem,
10
+ header-headline-font: var(--brand-font),
11
+ )
12
+ );
13
+
14
+ .mat-mdc-table {
15
+ .mat-mdc-table-sticky-border-elem-left {
16
+ border-right: 1px solid var(--mat-sys-outline, rgba(0, 0, 0, 0.12));
17
+ }
18
+
19
+ &:not(.mat-card-table) {
20
+ tbody tr,
21
+ mat-row {
22
+ &:nth-child(even) {
23
+ background-color: var(--mat-sys-primary-container);
24
+ // a {
25
+ // color: var(--mat-sys-on-primary-container);
26
+ // }
27
+ }
28
+ }
29
+ }
30
+ th,
31
+ mat-header-row {
32
+ &.cdk-column-check {
33
+ width: 50px;
34
+ .mat-mdc-checkbox {
35
+ .mdc-checkbox {
36
+ padding: var(--spacer);
37
+ }
38
+ }
39
+ }
40
+ &.mat-mdc-header-cell {
41
+ vertical-align: bottom;
42
+ padding-bottom: var(--spacer);
43
+ }
44
+ }
45
+ tr,
46
+ mat-row {
47
+ transition: background-color 400ms ease-out;
48
+ &.onemrva-notice-row {
49
+ background: var(--mat-sys-surface-bright);
50
+ }
51
+ &.onemrva-clickable-row {
52
+ background: var(--mat-sys-primary-container);
53
+ color: var(--mat-sys-on-surface);
54
+ border-radius: var(--half-border-radius);
55
+ td:first-child {
56
+ border-radius: var(--half-border-radius) 0 0 var(--half-border-radius);
57
+ }
58
+ td:last-child {
59
+ border-radius: 0 var(--half-border-radius) var(--half-border-radius) 0;
60
+ padding-right: var(--spacer);
61
+ }
62
+ td:only-child {
63
+ border-radius: var(--half-border-radius);
64
+ }
65
+
66
+ &.clickable:hover,
67
+ &.clickable:active {
68
+ box-shadow: var(--mat-sys-level2);
69
+ }
70
+ }
71
+ }
72
+
73
+ &.mat-card-table {
74
+ border-spacing: 0 var(--spacer) !important;
75
+ .mat-divider {
76
+ color: var(--mat-sys-surface-bright);
77
+ &.mat-divider-vertical {
78
+ display: inline-flex;
79
+ height: 1.5em;
80
+ }
81
+ }
82
+ }
83
+ tr {
84
+ padding: var(--double-spacer);
85
+ }
86
+ tr,
87
+ mat-row {
88
+ &:not(.cdk-drag-preview) {
89
+ transition: background-color 400ms ease-out;
90
+
91
+ td,
92
+ mat-cell {
93
+ &.mat-mdc-cell {
94
+ line-height: 1.5rem;
95
+ padding-top: var(--spacer);
96
+ padding-bottom: var(--spacer);
97
+ border-bottom: 1px solid var(--mat-sys-outline-variant);
98
+ &:not(:last-child) {
99
+ padding-right: var(--spacer-and-half);
100
+ }
101
+ mat-error {
102
+ line-height: 3rem;
103
+ color: var(--mat-sys-error);
104
+ mat-icon {
105
+ float: left;
106
+ margin-top: var(--spacer-and-half);
107
+ color: var(--mat-sys-error);
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,20 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.tabs-overrides(
5
+ (
6
+ active-indicator-color: var(--mat-sys-tertiary),
7
+ active-focus-indicator-color: var(--mat-sys-tertiary),
8
+ active-hover-indicator-color: var(--mat-sys-tertiary),
9
+ active-indicator-height: 3px,
10
+ label-text-font: var(--mat-sys-title-medium-font),
11
+ label-text-size: var(--mat-sys-title-medium-size),
12
+ //label-text-weight: var(--mat-sys-title-medium-weight),
13
+ label-text-line-height: var(--mat-sys-title-medium-height),
14
+ )
15
+ );
16
+
17
+ .mdc-tab-indicator--active {
18
+ font-weight: 600;
19
+ }
20
+ }
@@ -0,0 +1,16 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ //@include mat.snack-bar-overrides((
5
+ // container-color: orange,
6
+ // supporting-text-color: red,
7
+ //));
8
+
9
+ //.mat-mdc-tab-link {
10
+ // &.mdc-tab--active {
11
+ // .mdc-tab__text-label {
12
+ // //text-shadow: 0 0 2px var(--mat-sys-on-surface); // THC HACK
13
+ // }
14
+ // }
15
+ //}
16
+ }
@@ -0,0 +1,26 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ .toc-content {
5
+ display: block;
6
+ padding-left: clamp(
7
+ var(--double-spacer),
8
+ var(--toc-width) - (100vw - 2200px),
9
+ var(--toc-width)
10
+ );
11
+
12
+ .onemrva-mat-toc-anchor {
13
+ scroll-margin-top: calc(
14
+ var(--layout-header-height) + var(--double-spacer)
15
+ );
16
+ }
17
+ mat-list-item {
18
+ &.onemrva-anchor-for-subsection {
19
+ .mdc-list-item__primary-text {
20
+ font-weight: 400;
21
+ padding-left: var(--double-spacer);
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ @use '@angular/material' as mat;
2
+ @mixin override() {
3
+ mat-toolbar {
4
+ &.sticky {
5
+ @include mat.toolbar-overrides(
6
+ (
7
+ container-background-color: var(--mat-sys-primary-container),
8
+ )
9
+ );
10
+ position: sticky !important;
11
+ bottom: 0 !important;
12
+ top: var(--layout-header-height, 0);
13
+ .spacer {
14
+ flex: 1 1 auto;
15
+ }
16
+ }
17
+ &.mat-accent {
18
+ @include mat.toolbar-overrides(
19
+ (
20
+ container-background-color: var(--background-gradient),
21
+ container-text-color: var(--on-background-gradient),
22
+ )
23
+ );
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,19 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.tooltip-overrides(
5
+ (
6
+ supporting-text-font: var(--mat-sys-label-small-font),
7
+ supporting-text-size: var(--mat-sys-label-small-size),
8
+ container-color: var(--mat-sys-surface),
9
+ supporting-text-color: var(--mat-sys-on-surface),
10
+ supporting-text-line-height: var(--mat-sys-label-small-line-height),
11
+ supporting-text-weight: var(--mat-sys-label-small-weight),
12
+ )
13
+ );
14
+
15
+ .mat-mdc-tooltip-surface {
16
+ padding: var(--spacer);
17
+ box-shadow: var(--mat-sys-level3) !important;
18
+ }
19
+ }