@ng-matero/extensions 19.4.1 → 20.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/_index.scss +1 -1
  2. package/alert/_alert-theme.scss +26 -31
  3. package/alert/_m2-alert.scss +59 -0
  4. package/alert/_m3-alert.scss +41 -0
  5. package/alert/alert.scss +27 -31
  6. package/alert/index.d.ts +30 -5
  7. package/button/index.d.ts +31 -5
  8. package/checkbox-group/index.d.ts +117 -5
  9. package/colorpicker/_colorpicker-theme.scss +31 -36
  10. package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
  11. package/colorpicker/_m3-colorpicker.scss +23 -0
  12. package/colorpicker/colorpicker-toggle.scss +4 -9
  13. package/colorpicker/index.d.ts +285 -3
  14. package/column-resize/index.d.ts +456 -3
  15. package/core/index.d.ts +147 -5
  16. package/core/theming/_color-api-backwards-compatibility.scss +8 -15
  17. package/core/theming/_definition.scss +81 -75
  18. package/core/theming/_palettes.scss +1036 -0
  19. package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
  20. package/core/tokens/_m2-utils.scss +108 -0
  21. package/core/tokens/_m3-system.scss +128 -106
  22. package/core/tokens/_m3-tokens.scss +36 -282
  23. package/core/tokens/_m3-utils.scss +48 -0
  24. package/core/tokens/_token-utils.scss +67 -239
  25. package/core/tokens/m3/_index.scss +7 -0
  26. package/core/tokens/m3/_md-sys-color.scss +156 -0
  27. package/core/tokens/m3/_md-sys-elevation.scss +15 -0
  28. package/core/tokens/m3/_md-sys-motion.scss +35 -0
  29. package/core/tokens/m3/_md-sys-shape.scss +21 -0
  30. package/core/tokens/m3/_md-sys-state.scss +13 -0
  31. package/core/tokens/m3/_md-sys-typescale.scss +128 -0
  32. package/core/tokens/m3/_theme.scss +47 -0
  33. package/datetimepicker/_datetimepicker-theme.scss +29 -39
  34. package/datetimepicker/_m2-datetimepicker.scss +149 -0
  35. package/datetimepicker/_m3-datetimepicker.scss +81 -0
  36. package/datetimepicker/calendar-body.scss +31 -56
  37. package/datetimepicker/calendar.scss +43 -79
  38. package/datetimepicker/clock.scss +28 -47
  39. package/datetimepicker/datetimepicker-content.scss +9 -15
  40. package/datetimepicker/datetimepicker-toggle.scss +4 -9
  41. package/datetimepicker/index.d.ts +1208 -3
  42. package/datetimepicker/time-view.scss +26 -32
  43. package/dialog/index.d.ts +54 -5
  44. package/drawer/_drawer-theme.scss +25 -30
  45. package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
  46. package/drawer/_m3-drawer.scss +24 -0
  47. package/drawer/drawer-container.scss +13 -24
  48. package/drawer/index.d.ts +221 -3
  49. package/fesm2022/mtxAlert.mjs +7 -7
  50. package/fesm2022/mtxAlert.mjs.map +1 -1
  51. package/fesm2022/mtxButton.mjs +11 -11
  52. package/fesm2022/mtxButton.mjs.map +1 -1
  53. package/fesm2022/mtxCheckboxGroup.mjs +7 -7
  54. package/fesm2022/mtxColorpicker.mjs +21 -21
  55. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  56. package/fesm2022/mtxColumnResize.mjs +232 -103
  57. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  58. package/fesm2022/mtxCore.mjs +21 -21
  59. package/fesm2022/mtxDatetimepicker.mjs +63 -67
  60. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  61. package/fesm2022/mtxDialog.mjs +10 -10
  62. package/fesm2022/mtxDialog.mjs.map +1 -1
  63. package/fesm2022/mtxDrawer.mjs +10 -10
  64. package/fesm2022/mtxGrid.mjs +78 -77
  65. package/fesm2022/mtxGrid.mjs.map +1 -1
  66. package/fesm2022/mtxLoader.mjs +7 -7
  67. package/fesm2022/mtxPhotoviewer.mjs +7 -7
  68. package/fesm2022/mtxPopover.mjs +24 -25
  69. package/fesm2022/mtxPopover.mjs.map +1 -1
  70. package/fesm2022/mtxProgress.mjs +7 -7
  71. package/fesm2022/mtxSelect.mjs +54 -54
  72. package/fesm2022/mtxSelect.mjs.map +1 -1
  73. package/fesm2022/mtxSplit.mjs +10 -10
  74. package/fesm2022/mtxTooltip.mjs +13 -13
  75. package/fesm2022/mtxTooltip.mjs.map +1 -1
  76. package/grid/_grid-theme.scss +24 -34
  77. package/grid/_m2-grid.scss +66 -0
  78. package/grid/_m3-grid.scss +35 -0
  79. package/grid/column-menu.scss +6 -23
  80. package/grid/column-resize/_column-resize.scss +35 -30
  81. package/grid/grid.scss +41 -74
  82. package/grid/index.d.ts +799 -3
  83. package/index.d.ts +2 -5
  84. package/loader/_loader-theme.scss +26 -31
  85. package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
  86. package/loader/_m3-loader.scss +20 -0
  87. package/loader/index.d.ts +43 -5
  88. package/loader/loader.scss +4 -5
  89. package/package.json +28 -28
  90. package/photoviewer/index.d.ts +26 -5
  91. package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
  92. package/popover/_m3-popover.scss +26 -0
  93. package/popover/_popover-theme.scss +26 -31
  94. package/popover/index.d.ts +399 -3
  95. package/popover/popover.scss +23 -29
  96. package/prebuilt-themes/azure-blue.css +1 -1
  97. package/prebuilt-themes/cyan-orange.css +1 -1
  98. package/prebuilt-themes/deeppurple-amber.css +1 -1
  99. package/prebuilt-themes/indigo-pink.css +1 -1
  100. package/prebuilt-themes/magenta-violet.css +1 -1
  101. package/prebuilt-themes/pink-bluegrey.css +1 -1
  102. package/prebuilt-themes/purple-green.css +1 -1
  103. package/prebuilt-themes/rose-red.css +1 -1
  104. package/progress/_m2-progress.scss +53 -0
  105. package/progress/_m3-progress.scss +33 -0
  106. package/progress/_progress-theme.scss +22 -34
  107. package/progress/index.d.ts +35 -5
  108. package/progress/progress.scss +28 -43
  109. package/select/_m2-select.scss +79 -0
  110. package/select/_m3-select.scss +46 -0
  111. package/select/_select-theme.scss +27 -37
  112. package/select/index.d.ts +381 -3
  113. package/select/select.scss +189 -205
  114. package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
  115. package/split/_m3-split.scss +23 -0
  116. package/split/_split-theme.scss +31 -34
  117. package/split/index.d.ts +255 -3
  118. package/split/split.scss +8 -11
  119. package/tooltip/_m2-tooltip.scss +50 -0
  120. package/tooltip/_m3-tooltip.scss +28 -0
  121. package/tooltip/_tooltip-theme.scss +23 -47
  122. package/tooltip/index.d.ts +345 -3
  123. package/tooltip/tooltip.scss +11 -15
  124. package/alert/alert-module.d.ts +0 -8
  125. package/alert/alert.d.ts +0 -19
  126. package/alert/public-api.d.ts +0 -2
  127. package/button/button-loading.d.ts +0 -19
  128. package/button/button-module.d.ts +0 -10
  129. package/button/public-api.d.ts +0 -2
  130. package/checkbox-group/checkbox-group-module.d.ts +0 -11
  131. package/checkbox-group/checkbox-group.d.ts +0 -86
  132. package/checkbox-group/interfaces.d.ts +0 -17
  133. package/checkbox-group/public-api.d.ts +0 -3
  134. package/colorpicker/colorpicker-animations.d.ts +0 -9
  135. package/colorpicker/colorpicker-input.d.ts +0 -88
  136. package/colorpicker/colorpicker-module.d.ts +0 -15
  137. package/colorpicker/colorpicker-toggle.d.ts +0 -39
  138. package/colorpicker/colorpicker.d.ts +0 -140
  139. package/colorpicker/public-api.d.ts +0 -5
  140. package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
  141. package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
  142. package/column-resize/column-resize-directives/constants.d.ts +0 -10
  143. package/column-resize/column-resize-module.d.ts +0 -12
  144. package/column-resize/column-resize-notifier.d.ts +0 -48
  145. package/column-resize/column-resize.d.ts +0 -39
  146. package/column-resize/column-size-store.d.ts +0 -12
  147. package/column-resize/event-dispatcher.d.ts +0 -35
  148. package/column-resize/overlay-handle.d.ts +0 -43
  149. package/column-resize/polyfill.d.ts +0 -9
  150. package/column-resize/public-api.d.ts +0 -12
  151. package/column-resize/resizable.d.ts +0 -63
  152. package/column-resize/resize-ref.d.ts +0 -17
  153. package/column-resize/resize-strategy.d.ts +0 -84
  154. package/column-resize/selectors.d.ts +0 -10
  155. package/core/datetime/datetime-adapter.d.ts +0 -45
  156. package/core/datetime/datetime-formats.d.ts +0 -22
  157. package/core/datetime/datetime.module.d.ts +0 -15
  158. package/core/datetime/index.d.ts +0 -5
  159. package/core/datetime/native-datetime-adapter.d.ts +0 -40
  160. package/core/datetime/native-datetime-formats.d.ts +0 -2
  161. package/core/pipes/index.d.ts +0 -3
  162. package/core/pipes/is-template-ref.pipe.d.ts +0 -7
  163. package/core/pipes/pipes.module.d.ts +0 -9
  164. package/core/pipes/to-observable.pipe.d.ts +0 -8
  165. package/core/public-api.d.ts +0 -2
  166. package/core/theming/_inspection.scss +0 -38
  167. package/core/theming/_validation.scss +0 -5
  168. package/core/tokens/_density.scss +0 -49
  169. package/core/tokens/_format-tokens.scss +0 -5
  170. package/core/tokens/_token-definition.scss +0 -271
  171. package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
  172. package/core/tokens/m2/mtx/_alert.scss +0 -62
  173. package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
  174. package/core/tokens/m2/mtx/_grid.scss +0 -69
  175. package/core/tokens/m2/mtx/_progress.scss +0 -56
  176. package/core/tokens/m2/mtx/_select.scss +0 -82
  177. package/core/tokens/m3/definitions/_index.scss +0 -9
  178. package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
  179. package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
  180. package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
  181. package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
  182. package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
  183. package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
  184. package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
  185. package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
  186. package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
  187. package/core/tokens/m3/index.scss +0 -47
  188. package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
  189. package/core/tokens/m3/mtx/_alert.scss +0 -41
  190. package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
  191. package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
  192. package/core/tokens/m3/mtx/_drawer.scss +0 -22
  193. package/core/tokens/m3/mtx/_grid.scss +0 -32
  194. package/core/tokens/m3/mtx/_loader.scss +0 -22
  195. package/core/tokens/m3/mtx/_popover.scss +0 -25
  196. package/core/tokens/m3/mtx/_progress.scss +0 -32
  197. package/core/tokens/m3/mtx/_select.scss +0 -76
  198. package/core/tokens/m3/mtx/_split.scss +0 -30
  199. package/datetimepicker/calendar-body.d.ts +0 -66
  200. package/datetimepicker/calendar.d.ts +0 -157
  201. package/datetimepicker/clock.d.ts +0 -101
  202. package/datetimepicker/datetimepicker-actions.d.ts +0 -36
  203. package/datetimepicker/datetimepicker-animations.d.ts +0 -11
  204. package/datetimepicker/datetimepicker-errors.d.ts +0 -2
  205. package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
  206. package/datetimepicker/datetimepicker-input.d.ts +0 -105
  207. package/datetimepicker/datetimepicker-intl.d.ts +0 -53
  208. package/datetimepicker/datetimepicker-module.d.ts +0 -22
  209. package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
  210. package/datetimepicker/datetimepicker-types.d.ts +0 -6
  211. package/datetimepicker/datetimepicker.d.ts +0 -274
  212. package/datetimepicker/month-view.d.ts +0 -80
  213. package/datetimepicker/multi-year-view.d.ts +0 -86
  214. package/datetimepicker/public-api.d.ts +0 -16
  215. package/datetimepicker/time-view.d.ts +0 -147
  216. package/datetimepicker/year-view.d.ts +0 -68
  217. package/dialog/dialog-config.d.ts +0 -17
  218. package/dialog/dialog-container.d.ts +0 -11
  219. package/dialog/dialog-module.d.ts +0 -12
  220. package/dialog/dialog.d.ts +0 -15
  221. package/dialog/public-api.d.ts +0 -4
  222. package/drawer/drawer-animations.d.ts +0 -8
  223. package/drawer/drawer-config.d.ts +0 -63
  224. package/drawer/drawer-container.d.ts +0 -35
  225. package/drawer/drawer-module.d.ts +0 -10
  226. package/drawer/drawer-ref.d.ts +0 -53
  227. package/drawer/drawer.d.ts +0 -59
  228. package/drawer/public-api.d.ts +0 -6
  229. package/grid/cell.d.ts +0 -32
  230. package/grid/column-menu.d.ts +0 -39
  231. package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
  232. package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
  233. package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
  234. package/grid/column-resize/column-resize-module.d.ts +0 -17
  235. package/grid/column-resize/index.d.ts +0 -7
  236. package/grid/column-resize/overlay-handle.d.ts +0 -32
  237. package/grid/column-resize/resizable-directives/common.d.ts +0 -19
  238. package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
  239. package/grid/column-resize/resize-strategy.d.ts +0 -20
  240. package/grid/expansion-toggle.d.ts +0 -17
  241. package/grid/grid-module.d.ts +0 -31
  242. package/grid/grid-pipes.d.ts +0 -39
  243. package/grid/grid-utils.d.ts +0 -33
  244. package/grid/grid.d.ts +0 -268
  245. package/grid/interfaces.d.ts +0 -180
  246. package/grid/public-api.d.ts +0 -17
  247. package/grid/selectable-cell.d.ts +0 -16
  248. package/loader/loader-module.d.ts +0 -10
  249. package/loader/loader.d.ts +0 -30
  250. package/loader/public-api.d.ts +0 -2
  251. package/photoviewer/photoviewer-module.d.ts +0 -7
  252. package/photoviewer/photoviewer.d.ts +0 -17
  253. package/photoviewer/public-api.d.ts +0 -2
  254. package/popover/popover-animations.d.ts +0 -11
  255. package/popover/popover-content.d.ts +0 -43
  256. package/popover/popover-errors.d.ts +0 -14
  257. package/popover/popover-interfaces.d.ts +0 -50
  258. package/popover/popover-module.d.ts +0 -13
  259. package/popover/popover-target.d.ts +0 -7
  260. package/popover/popover-trigger.d.ts +0 -132
  261. package/popover/popover-types.d.ts +0 -10
  262. package/popover/popover.d.ts +0 -147
  263. package/popover/public-api.d.ts +0 -8
  264. package/progress/progress-module.d.ts +0 -8
  265. package/progress/progress.d.ts +0 -24
  266. package/progress/public-api.d.ts +0 -2
  267. package/public-api.d.ts +0 -2
  268. package/select/option.d.ts +0 -21
  269. package/select/public-api.d.ts +0 -5
  270. package/select/select-intl.d.ts +0 -18
  271. package/select/select-module.d.ts +0 -12
  272. package/select/select.d.ts +0 -270
  273. package/select/templates.d.ts +0 -67
  274. package/split/interfaces.d.ts +0 -52
  275. package/split/public-api.d.ts +0 -5
  276. package/split/split-module.d.ts +0 -9
  277. package/split/split-pane.d.ts +0 -53
  278. package/split/split.d.ts +0 -133
  279. package/split/utils.d.ts +0 -13
  280. package/tooltip/public-api.d.ts +0 -3
  281. package/tooltip/tooltip-animations.d.ts +0 -9
  282. package/tooltip/tooltip-module.d.ts +0 -13
  283. package/tooltip/tooltip.d.ts +0 -321
@@ -1,9 +1,9 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
3
  @use '../../core/tokens/token-utils';
4
- @use '../../core/tokens/m2/mtx/grid' as tokens-mtx-grid;
4
+ @use '../m3-grid';
5
5
 
6
- $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
6
+ $fallbacks: m3-grid.get-tokens();
7
7
 
8
8
  // Required for resizing to work properly.
9
9
  .mat-column-resize-table.cdk-column-resize-with-resized-column {
@@ -34,7 +34,8 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
34
34
  right: 0;
35
35
  width: 1px;
36
36
  background: transparent;
37
- transition: background mat.$private-swift-ease-in-duration mat.$private-swift-ease-in-timing-function;
37
+ transition: background mat.$private-swift-ease-in-duration
38
+ mat.$private-swift-ease-in-timing-function;
38
39
  }
39
40
 
40
41
  .mat-mdc-header-cell:not(.mat-resizable)::after {
@@ -61,18 +62,16 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
61
62
  border-right: none;
62
63
  }
63
64
 
64
- @include token-utils.use-tokens($_tokens...) {
65
- .mat-mdc-header-cell:not(.mat-resizable)::after {
66
- @include token-utils.create-token-slot(background-color, resizable-handle-disabled-background-color);
67
- }
65
+ .mat-mdc-header-cell:not(.mat-resizable)::after {
66
+ background-color: token-utils.slot(grid-resizable-handle-disabled-background-color, $fallbacks);
67
+ }
68
68
 
69
- .mat-resizable-handle {
70
- @include token-utils.create-token-slot(background-color, resizable-handle-hover-background-color);
71
- }
69
+ .mat-resizable-handle {
70
+ background-color: token-utils.slot(grid-resizable-handle-hover-background-color, $fallbacks);
72
71
  }
73
72
  }
74
73
 
75
- .mat-resizable.cdk-resizable-overlay-thumb-active>.mat-resizable-handle {
74
+ .mat-resizable.cdk-resizable-overlay-thumb-active > .mat-resizable-handle {
76
75
  opacity: 0;
77
76
  transition: none;
78
77
  }
@@ -80,10 +79,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
80
79
  .mat-resizable-handle:focus,
81
80
  .mat-mdc-header-row.cdk-column-resize-hover-or-active .mat-resizable-handle:focus {
82
81
  outline: none;
83
-
84
- @include token-utils.use-tokens($_tokens...) {
85
- @include token-utils.create-token-slot(background-color, resizable-handle-active-background-color);
86
- }
82
+ background-color: token-utils.slot(grid-resizable-handle-active-background-color, $fallbacks);
87
83
  }
88
84
 
89
85
  .mat-column-resize-overlay-thumb {
@@ -91,27 +87,36 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
91
87
  cursor: col-resize;
92
88
  width: 100%;
93
89
  height: 100%;
94
- transition: background mat.$private-swift-ease-in-duration mat.$private-swift-ease-in-timing-function;
90
+ transition: background mat.$private-swift-ease-in-duration
91
+ mat.$private-swift-ease-in-timing-function;
95
92
 
96
93
  @include mat.private-user-select(none);
97
94
 
98
95
  &:active {
99
96
  will-change: transform;
100
97
 
101
- @include token-utils.use-tokens($_tokens...) {
102
- $background-color: token-utils.get-token-variable(resizable-handle-active-background-color);
103
-
104
- background: linear-gradient(90deg,
105
- transparent, transparent 7px,
106
- $background-color 7px, $background-color 9px,
107
- transparent 9px, transparent);
108
-
109
- .mat-column-resize-overlay-thumb-top {
110
- background: linear-gradient(90deg,
111
- transparent, transparent 4px,
112
- $background-color 4px, $background-color 12px,
113
- transparent 12px, transparent);
114
- }
98
+ $bg-color: token-utils.slot(grid-resizable-handle-active-background-color, $fallbacks);
99
+
100
+ background: linear-gradient(
101
+ 90deg,
102
+ transparent,
103
+ transparent 7px,
104
+ $bg-color 7px,
105
+ $bg-color 9px,
106
+ transparent 9px,
107
+ transparent
108
+ );
109
+
110
+ .mat-column-resize-overlay-thumb-top {
111
+ background: linear-gradient(
112
+ 90deg,
113
+ transparent,
114
+ transparent 4px,
115
+ $bg-color 4px,
116
+ $bg-color 12px,
117
+ transparent 12px,
118
+ transparent
119
+ );
115
120
  }
116
121
  }
117
122
  }
package/grid/grid.scss CHANGED
@@ -1,8 +1,7 @@
1
1
  @use '../core/tokens/token-utils';
2
- @use '../core/tokens/m2/mtx/grid' as tokens-mtx-grid;
3
- @use './column-resize/column-resize';
2
+ @use './m3-grid';
4
3
 
5
- $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
4
+ $fallbacks: m3-grid.get-tokens();
6
5
 
7
6
  .mtx-grid {
8
7
  position: relative;
@@ -10,40 +9,32 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
10
9
  flex-direction: column;
11
10
  width: 100%;
12
11
  overflow: hidden;
12
+ border: 1px solid token-utils.slot(grid-outline-color, $fallbacks);
13
+ border-radius: token-utils.slot(grid-container-shape, $fallbacks);
13
14
 
14
- @include token-utils.use-tokens($_tokens...) {
15
- $border-color: token-utils.get-token-variable(outline-color);
15
+ .mat-mdc-table {
16
+ --mat-table-row-item-outline-color: #{token-utils.slot(grid-outline-color, $fallbacks)};
16
17
 
17
- border: 1px solid $border-color;
18
-
19
- @include token-utils.create-token-slot(border-radius, container-shape);
20
-
21
- .mat-mdc-table {
22
- --mat-table-row-item-outline-color: #{$border-color};
23
-
24
- &.mat-table-striped .mat-row-odd {
25
- @include token-utils.create-token-slot(background-color, table-row-striped-background-color);
26
- }
27
-
28
- &.mat-table-hover {
29
- .mat-mdc-row:hover {
30
- @include token-utils.create-token-slot(background-color, table-row-hover-background-color);
31
- }
18
+ &.mat-table-striped .mat-row-odd {
19
+ background-color: token-utils.slot(grid-table-row-striped-background-color, $fallbacks);
20
+ }
32
21
 
33
- .mat-mdc-row.selected:hover {
34
- @include token-utils.create-token-slot(background-color, table-row-selected-hover-background-color);
35
- }
22
+ &.mat-table-hover {
23
+ .mat-mdc-row:hover {
24
+ background-color: token-utils.slot(grid-table-row-hover-background-color, $fallbacks);
36
25
  }
37
26
 
38
- .mat-mdc-row.selected {
39
- @include token-utils.create-token-slot(background-color, table-row-selected-background-color);
27
+ .mat-mdc-row.selected:hover {
28
+ background-color: token-utils.slot(grid-table-row-selected-hover-background-color, $fallbacks);
40
29
  }
30
+ }
41
31
 
42
- .mat-mdc-cell.selected {
43
- $shadow-color: token-utils.get-token-variable(table-cell-selected-outline-color);
32
+ .mat-mdc-row.selected {
33
+ background-color: token-utils.slot(grid-table-row-selected-background-color, $fallbacks);
34
+ }
44
35
 
45
- box-shadow: inset 0 0 0 1px $shadow-color;
46
- }
36
+ .mat-mdc-cell.selected {
37
+ box-shadow: inset 0 0 0 1px token-utils.slot(grid-table-cell-selected-outline-color, $fallbacks);
47
38
  }
48
39
  }
49
40
 
@@ -63,9 +54,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
63
54
  .mat-mdc-footer-cell,
64
55
  .mat-mdc-cell {
65
56
  &:not(.mtx-grid-checkbox-cell) {
66
- @include token-utils.use-tokens($_tokens...) {
67
- @include token-utils.create-token-slot(min-width, table-cell-min-width);
68
- }
57
+ min-width: token-utils.slot(grid-table-cell-min-width, $fallbacks);
69
58
  }
70
59
  }
71
60
  }
@@ -90,10 +79,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
90
79
 
91
80
  .mat-mdc-footer-cell {
92
81
  border-top: 1px solid var(--mat-table-row-item-outline-color);
93
-
94
- @include token-utils.use-tokens($_tokens...) {
95
- @include token-utils.create-token-slot(background-color, table-footer-background-color);
96
- }
82
+ background-color: token-utils.slot(grid-table-footer-background-color, $fallbacks);
97
83
  }
98
84
 
99
85
  .mat-mdc-row.mtx-grid-expansion {
@@ -126,14 +112,9 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
126
112
  }
127
113
 
128
114
  .mat-mdc-paginator {
129
- @include token-utils.use-tokens($_tokens...) {
130
- $border-color: token-utils.get-token-variable(outline-color);
131
-
132
- border-top: 1px solid $border-color;
133
-
134
- @include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
135
- @include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
136
- }
115
+ border-top: 1px solid token-utils.slot(grid-outline-color, $fallbacks);
116
+ border-bottom-left-radius: token-utils.slot(grid-container-shape, $fallbacks);
117
+ border-bottom-right-radius: token-utils.slot(grid-container-shape, $fallbacks);
137
118
  }
138
119
 
139
120
  .mat-paginator-hidden {
@@ -143,7 +124,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
143
124
  .mtx-grid-checkbox-cell {
144
125
  width: 60px;
145
126
  min-width: 60px;
146
- padding: 0 calc((60px - var(--mdc-checkbox-state-layer-size, 40px)) / 2);
127
+ padding: 0 calc((60px - var(--mat-checkbox-state-layer-size, 40px)) / 2);
147
128
  }
148
129
  }
149
130
 
@@ -161,12 +142,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
161
142
  min-height: var(--mat-table-header-container-height, 56px);
162
143
  padding: 8px;
163
144
  box-sizing: border-box;
164
-
165
- @include token-utils.use-tokens($_tokens...) {
166
- $border-color: token-utils.get-token-variable(outline-color);
167
-
168
- border-bottom: 1px solid $border-color;
169
- }
145
+ border-bottom: 1px solid token-utils.slot(grid-outline-color, $fallbacks);
170
146
  }
171
147
 
172
148
  .mtx-grid-toolbar-content {
@@ -188,16 +164,11 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
188
164
 
189
165
  .mtx-grid-sidebar {
190
166
  max-width: 50%;
167
+ border-left: 1px solid token-utils.slot(grid-outline-color, $fallbacks);
191
168
 
192
- @include token-utils.use-tokens($_tokens...) {
193
- $border-color: token-utils.get-token-variable(outline-color);
194
-
195
- border-left: 1px solid $border-color;
196
-
197
- [dir='rtl'] & {
198
- border-left-width: 0;
199
- border-right: 1px solid $border-color;
200
- }
169
+ [dir='rtl'] & {
170
+ border-left-width: 0;
171
+ border-right: 1px solid token-utils.slot(grid-outline-color, $fallbacks);
201
172
  }
202
173
  }
203
174
 
@@ -212,12 +183,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
212
183
  min-height: var(--mat-table-header-container-height, 56px);
213
184
  padding: 8px;
214
185
  box-sizing: border-box;
215
-
216
- @include token-utils.use-tokens($_tokens...) {
217
- $border-color: token-utils.get-token-variable(outline-color);
218
-
219
- border-top: 1px solid $border-color;
220
- }
186
+ border-top: 1px solid token-utils.slot(grid-outline-color, $fallbacks);
221
187
  }
222
188
 
223
189
  .mtx-grid-no-result {
@@ -231,13 +197,14 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
231
197
  .mtx-grid-expansion-placeholder {
232
198
  display: inline-block;
233
199
  vertical-align: middle;
234
-
235
- @include token-utils.use-tokens($_tokens...) {
236
- $compat-size: token-utils.get-token-variable(row-expand-button-size, 40px);
237
-
238
- width: var(--mdc-icon-button-state-layer-size, $compat-size);
239
- height: var(--mdc-icon-button-state-layer-size, $compat-size);
240
- }
200
+ width: var(
201
+ --mat-icon-button-state-layer-size,
202
+ token-utils.slot(grid-row-expand-button-size, $fallbacks)
203
+ );
204
+ height: var(
205
+ --mat-icon-button-state-layer-size,
206
+ token-utils.slot(grid-row-expand-button-size, $fallbacks)
207
+ );
241
208
  }
242
209
 
243
210
  .mtx-grid-expansion-detail-wrapper {
@@ -267,7 +234,7 @@ $_tokens: tokens-mtx-grid.$prefix, tokens-mtx-grid.get-token-slots();
267
234
  }
268
235
 
269
236
  &.mat-mdc-icon-button,
270
- +mtx-grid-cell {
237
+ + mtx-grid-cell {
271
238
  vertical-align: middle;
272
239
  }
273
240
  }