@ng-matero/extensions 16.1.3 → 16.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/_index.scss +0 -3
  2. package/_theming.scss +0 -3
  3. package/alert/_alert-theme.scss +12 -28
  4. package/alert/alert.scss +28 -0
  5. package/colorpicker/_colorpicker-theme.scss +20 -8
  6. package/colorpicker/colorpicker-toggle.scss +23 -17
  7. package/column-resize/column-resize-notifier.d.ts +1 -1
  8. package/column-resize/polyfill.d.ts +1 -3
  9. package/column-resize/resizable.d.ts +1 -0
  10. package/column-resize/resize-strategy.d.ts +4 -3
  11. package/core/style/_sass-utils.scss +49 -0
  12. package/core/theming/_all-theme.scss +0 -2
  13. package/core/tokens/_token-utils.scss +127 -0
  14. package/core/tokens/m2/_index.scss +49 -0
  15. package/core/tokens/m2/mdc/_plain-tooltip.scss +72 -0
  16. package/core/tokens/m2/mtx/_alert.scss +55 -0
  17. package/core/tokens/m2/mtx/_colorpicker.scss +55 -0
  18. package/core/tokens/m2/mtx/_datetimepicker.scss +155 -0
  19. package/core/tokens/m2/mtx/_drawer.scss +45 -0
  20. package/core/tokens/m2/mtx/_grid.scss +57 -0
  21. package/core/tokens/m2/mtx/_loader.scss +45 -0
  22. package/core/tokens/m2/mtx/_popover.scss +46 -0
  23. package/core/tokens/m2/mtx/_progress.scss +56 -0
  24. package/core/tokens/m2/mtx/_select.scss +83 -0
  25. package/core/tokens/m2/mtx/_split.scss +54 -0
  26. package/core/typography/_typography.scss +203 -36
  27. package/datetimepicker/_datetimepicker-theme.scss +31 -183
  28. package/datetimepicker/calendar-body.scss +81 -1
  29. package/datetimepicker/calendar.scss +33 -3
  30. package/datetimepicker/clock.scss +50 -10
  31. package/datetimepicker/datetimepicker-content.scss +12 -0
  32. package/datetimepicker/datetimepicker-toggle.scss +23 -17
  33. package/datetimepicker/time.scss +41 -1
  34. package/drawer/_drawer-theme.scss +6 -10
  35. package/drawer/drawer-container.scss +11 -0
  36. package/esm2022/alert/alert.mjs +4 -4
  37. package/esm2022/colorpicker/colorpicker-toggle.mjs +2 -2
  38. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +3 -9
  39. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +3 -9
  40. package/esm2022/column-resize/column-resize-directives/constants.mjs +1 -1
  41. package/esm2022/column-resize/column-resize-notifier.mjs +7 -2
  42. package/esm2022/column-resize/column-resize.mjs +3 -3
  43. package/esm2022/column-resize/event-dispatcher.mjs +5 -2
  44. package/esm2022/column-resize/polyfill.mjs +3 -19
  45. package/esm2022/column-resize/resizable.mjs +7 -7
  46. package/esm2022/column-resize/resize-ref.mjs +1 -1
  47. package/esm2022/column-resize/resize-strategy.mjs +16 -10
  48. package/esm2022/datetimepicker/calendar-body.mjs +2 -2
  49. package/esm2022/datetimepicker/calendar.mjs +3 -3
  50. package/esm2022/datetimepicker/clock.mjs +2 -2
  51. package/esm2022/datetimepicker/datetimepicker-toggle.mjs +2 -2
  52. package/esm2022/datetimepicker/datetimepicker.mjs +3 -3
  53. package/esm2022/datetimepicker/time.mjs +3 -3
  54. package/esm2022/drawer/drawer-container.mjs +3 -3
  55. package/esm2022/grid/cell.mjs +3 -19
  56. package/esm2022/grid/column-resize/column-resize-directives/common.mjs +1 -8
  57. package/esm2022/grid/column-resize/overlay-handle.mjs +11 -6
  58. package/esm2022/grid/column-resize/resizable-directives/common.mjs +1 -1
  59. package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +3 -2
  60. package/esm2022/grid/column-resize/resize-strategy.mjs +10 -5
  61. package/esm2022/grid/grid-module.mjs +13 -9
  62. package/esm2022/grid/grid-utils.mjs +1 -9
  63. package/esm2022/grid/grid.mjs +28 -21
  64. package/esm2022/loader/loader.mjs +2 -2
  65. package/esm2022/photoviewer/mtxPhotoviewer.mjs +5 -0
  66. package/esm2022/photoviewer/photoviewer-module.mjs +17 -0
  67. package/esm2022/photoviewer/photoviewer.mjs +63 -0
  68. package/esm2022/photoviewer/public-api.mjs +3 -0
  69. package/esm2022/popover/popover-interfaces.mjs +1 -1
  70. package/esm2022/popover/popover.mjs +13 -3
  71. package/esm2022/progress/progress.mjs +4 -4
  72. package/esm2022/select/select.mjs +11 -3
  73. package/esm2022/split/split.mjs +2 -2
  74. package/esm2022/tooltip/tooltip.mjs +2 -2
  75. package/fesm2022/mtxAlert.mjs +3 -3
  76. package/fesm2022/mtxAlert.mjs.map +1 -1
  77. package/fesm2022/mtxColorpicker.mjs +2 -2
  78. package/fesm2022/mtxColorpicker.mjs.map +1 -1
  79. package/fesm2022/mtxColumnResize.mjs +38 -52
  80. package/fesm2022/mtxColumnResize.mjs.map +1 -1
  81. package/fesm2022/mtxDatetimepicker.mjs +12 -12
  82. package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
  83. package/fesm2022/mtxDrawer.mjs +2 -2
  84. package/fesm2022/mtxDrawer.mjs.map +1 -1
  85. package/fesm2022/mtxGrid.mjs +188 -197
  86. package/fesm2022/mtxGrid.mjs.map +1 -1
  87. package/fesm2022/mtxLoader.mjs +2 -2
  88. package/fesm2022/mtxLoader.mjs.map +1 -1
  89. package/fesm2022/mtxPhotoviewer.mjs +84 -0
  90. package/fesm2022/mtxPhotoviewer.mjs.map +1 -0
  91. package/fesm2022/mtxPopover.mjs +12 -2
  92. package/fesm2022/mtxPopover.mjs.map +1 -1
  93. package/fesm2022/mtxProgress.mjs +3 -3
  94. package/fesm2022/mtxProgress.mjs.map +1 -1
  95. package/fesm2022/mtxSelect.mjs +10 -2
  96. package/fesm2022/mtxSelect.mjs.map +1 -1
  97. package/fesm2022/mtxSplit.mjs +2 -2
  98. package/fesm2022/mtxSplit.mjs.map +1 -1
  99. package/fesm2022/mtxTooltip.mjs +2 -2
  100. package/fesm2022/mtxTooltip.mjs.map +1 -1
  101. package/grid/_grid-theme.scss +14 -86
  102. package/grid/cell.d.ts +0 -2
  103. package/grid/cell.scss +0 -1
  104. package/grid/column-resize/_column-resize.scss +88 -94
  105. package/grid/column-resize/column-resize-directives/common.d.ts +0 -7
  106. package/grid/column-resize/overlay-handle.d.ts +1 -0
  107. package/grid/column-resize/resize-strategy.d.ts +2 -2
  108. package/grid/grid-module.d.ts +4 -4
  109. package/grid/grid-utils.d.ts +0 -6
  110. package/grid/grid.d.ts +10 -7
  111. package/grid/grid.scss +103 -15
  112. package/loader/_loader-theme.scss +6 -6
  113. package/loader/loader.scss +7 -0
  114. package/package.json +25 -25
  115. package/{slider → photoviewer}/index.d.ts +1 -1
  116. package/photoviewer/photoviewer-module.d.ts +7 -0
  117. package/photoviewer/photoviewer.d.ts +17 -0
  118. package/photoviewer/public-api.d.ts +2 -0
  119. package/popover/_popover-theme.scss +6 -40
  120. package/popover/popover-interfaces.d.ts +1 -0
  121. package/popover/popover.d.ts +6 -1
  122. package/popover/popover.scss +36 -2
  123. package/prebuilt-themes/deeppurple-amber.css +1 -1
  124. package/prebuilt-themes/indigo-pink.css +1 -1
  125. package/prebuilt-themes/pink-bluegrey.css +1 -1
  126. package/prebuilt-themes/purple-green.css +1 -1
  127. package/progress/_progress-theme.scss +6 -25
  128. package/progress/progress.scss +42 -0
  129. package/select/_select-theme.scss +19 -133
  130. package/select/select.d.ts +1 -0
  131. package/select/select.scss +147 -36
  132. package/split/_split-theme.scss +21 -18
  133. package/split/split.scss +13 -0
  134. package/tooltip/_tooltip-theme.scss +19 -24
  135. package/tooltip/tooltip.scss +18 -17
  136. package/esm2022/slider/mtxSlider.mjs +0 -5
  137. package/esm2022/slider/public-api.mjs +0 -3
  138. package/esm2022/slider/slider-module.mjs +0 -19
  139. package/esm2022/slider/slider.mjs +0 -1115
  140. package/fesm2022/mtxSlider.mjs +0 -1137
  141. package/fesm2022/mtxSlider.mjs.map +0 -1
  142. package/slider/_slider-theme.import.scss +0 -2
  143. package/slider/_slider-theme.scss +0 -232
  144. package/slider/public-api.d.ts +0 -2
  145. package/slider/slider-module.d.ts +0 -9
  146. package/slider/slider.d.ts +0 -277
  147. package/slider/slider.scss +0 -514
@@ -0,0 +1,55 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
5
+ @use '../../../theming/palette';
6
+
7
+ // The prefix used to generate the fully qualified name for tokens in this file.
8
+ $prefix: (mtx, alert);
9
+
10
+ // Tokens that can't be configured through Angular Material's current theming API,
11
+ // but may be in a future version of the theming API.
12
+ @function get-unthemable-tokens() {
13
+ @return ();
14
+ }
15
+
16
+ // Tokens that can be configured through Angular Material's color theming API.
17
+ @function get-color-tokens($config) {
18
+ $foreground: map.get($config, foreground);
19
+ $background: map.get($config, background);
20
+ $is-dark-theme: map.get($config, is-dark);
21
+
22
+ @return (
23
+ background-color: theming.get-color-from-palette($background, dialog),
24
+ text-color: theming.get-color-from-palette($foreground, text),
25
+ info-background-color: theming.get-color-from-palette(palette.$blue-palette, if($is-dark-theme, 900, 500)),
26
+ info-text-color: white,
27
+ success-background-color: theming.get-color-from-palette(palette.$green-palette, if($is-dark-theme, 900, 500)),
28
+ success-text-color: white,
29
+ warning-background-color: theming.get-color-from-palette(palette.$orange-palette, if($is-dark-theme, 900, 500)),
30
+ warning-text-color: white,
31
+ danger-background-color: theming.get-color-from-palette(palette.$red-palette, if($is-dark-theme, 900, 500)),
32
+ danger-text-color: white,
33
+ );
34
+ }
35
+
36
+ // Tokens that can be configured through Angular Material's typography theming API.
37
+ @function get-typography-tokens($config) {
38
+ @return ();
39
+ }
40
+
41
+ // Tokens that can be configured through Angular Material's density theming API.
42
+ @function get-density-tokens($config) {
43
+ @return ();
44
+ }
45
+
46
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
47
+ // This is used to create token slots.
48
+ @function get-token-slots() {
49
+ @return sass-utils.deep-merge-all(
50
+ get-unthemable-tokens(),
51
+ get-color-tokens(token-utils.$placeholder-color-config),
52
+ get-typography-tokens(token-utils.$placeholder-typography-config),
53
+ get-density-tokens(token-utils.$placeholder-density-config)
54
+ );
55
+ }
@@ -0,0 +1,55 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+ @use '../../token-utils';
5
+ @use '../../../theming/theming';
6
+ @use '../../../style/sass-utils';
7
+
8
+ // The prefix used to generate the fully qualified name for tokens in this file.
9
+ $prefix: (mtx, colorpicker);
10
+
11
+ @function private-get-toggle-color-palette-color-tokens($config, $palette-name) {
12
+ $palette: map.get($config, $palette-name);
13
+
14
+ @return (
15
+ toggle-active-state-icon-color: theming.get-color-from-palette($palette, text),
16
+ );
17
+ }
18
+
19
+ // Tokens that can't be configured through Angular Material's current theming API,
20
+ // but may be in a future version of the theming API.
21
+ @function get-unthemable-tokens() {
22
+ @return ();
23
+ }
24
+
25
+ // Tokens that can be configured through Angular Material's color theming API.
26
+ @function get-color-tokens($config) {
27
+ $foreground: map.get($config, foreground);
28
+ $inactive-icon-color: theming.get-color-from-palette($foreground, icon);
29
+ $toggle-tokens: private-get-toggle-color-palette-color-tokens($config, primary);
30
+
31
+ @return sass-utils.merge-all($toggle-tokens, (
32
+ toggle-icon-color: $inactive-icon-color
33
+ ));
34
+ }
35
+
36
+ // Tokens that can be configured through Angular Material's typography theming API.
37
+ @function get-typography-tokens($config) {
38
+ @return ();
39
+ }
40
+
41
+ // Tokens that can be configured through Angular Material's density theming API.
42
+ @function get-density-tokens($config) {
43
+ @return ();
44
+ }
45
+
46
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
47
+ // This is used to create token slots.
48
+ @function get-token-slots() {
49
+ @return sass-utils.deep-merge-all(
50
+ get-unthemable-tokens(),
51
+ get-color-tokens(token-utils.$placeholder-color-config),
52
+ get-typography-tokens(token-utils.$placeholder-typography-config),
53
+ get-density-tokens(token-utils.$placeholder-density-config)
54
+ );
55
+ }
@@ -0,0 +1,155 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+ @use '../../token-utils';
5
+ @use '../../../theming/theming';
6
+ @use '../../../style/sass-utils';
7
+ @use '../../../typography/typography-utils';
8
+
9
+ // The prefix used to generate the fully qualified name for tokens in this file.
10
+ $prefix: (mtx, datetimepicker);
11
+
12
+ $_selected-fade-amount: .6;
13
+ $_today-fade-amount: .2;
14
+
15
+ @function private-get-calendar-color-palette-color-tokens($config, $palette-name) {
16
+ $foreground: map.get($config, foreground);
17
+ $background: map.get($config, background);
18
+ $palette: map.get($config, $palette-name);
19
+ $palette-color: theming.get-color-from-palette($palette);
20
+ $default-contrast: theming.get-color-from-palette($palette, default-contrast);
21
+ $active-background-color: theming.get-color-from-palette($palette, .3);
22
+ $active-disabled-color: null;
23
+
24
+ @if (meta.type-of($palette-color) == color) {
25
+ $active-disabled-color: color.adjust($palette-color, $alpha: -$_selected-fade-amount);
26
+ }
27
+ @else {
28
+ $active-disabled-color: theming.get-color-from-palette($foreground, disabled-button);
29
+ }
30
+
31
+ @return (
32
+ calendar-header-background-color: $palette-color,
33
+
34
+ calendar-date-selected-state-text-color: $default-contrast,
35
+ calendar-date-selected-state-background-color: $palette-color,
36
+ calendar-date-selected-disabled-state-background-color: $active-disabled-color,
37
+ calendar-date-today-selected-state-outline-color: $default-contrast,
38
+ calendar-date-focus-state-background-color: $active-background-color,
39
+ calendar-date-hover-state-background-color: $active-background-color,
40
+
41
+ clock-hand-background-color: $palette-color,
42
+ clock-cell-selected-state-background-color: $palette-color,
43
+
44
+ time-input-active-state-text-color: $palette-color,
45
+ time-input-active-state-background-color: theming.get-color-from-palette($palette, .2),
46
+ time-input-focus-state-border-color: $palette-color,
47
+ time-input-focus-state-placeholder-text-color: theming.get-color-from-palette($palette, .6),
48
+ );
49
+ }
50
+
51
+ @function private-get-toggle-color-palette-color-tokens($config, $palette-name) {
52
+ $palette: map.get($config, $palette-name);
53
+
54
+ @return (
55
+ toggle-active-state-icon-color: theming.get-color-from-palette($palette, text),
56
+ );
57
+ }
58
+
59
+ // Tokens that can't be configured through Angular Material's current theming API,
60
+ // but may be in a future version of the theming API.
61
+ @function get-unthemable-tokens() {
62
+ @return ();
63
+ }
64
+
65
+ // Tokens that can be configured through Angular Material's color theming API.
66
+ @function get-color-tokens($config) {
67
+ $foreground: map.get($config, foreground);
68
+ $background: map.get($config, background);
69
+ $primary: map.get($config, primary);
70
+ $accent: map.get($config, accent);
71
+ $warn: map.get($config, warn);
72
+ $inactive-icon-color: theming.get-color-from-palette($foreground, icon);
73
+ $text-color: theming.get-color-from-palette($foreground, text);
74
+ $secondary-text-color: theming.get-color-from-palette($foreground, secondary-text);
75
+ $disabled-text-color: theming.get-color-from-palette($foreground, disabled-text);
76
+ $divider-color: theming.get-color-from-palette($foreground, divider);
77
+ $hint-text-color: theming.get-color-from-palette($foreground, hint-text);
78
+ $preview-outline-color: $divider-color;
79
+ $today-disabled-outline-color: null;
80
+
81
+ $primary-color: theming.get-color-from-palette(map.get($config, primary));
82
+ $calendar-tokens: private-get-calendar-color-palette-color-tokens($config, primary);
83
+ $toggle-tokens: private-get-toggle-color-palette-color-tokens($config, primary);
84
+
85
+ @return sass-utils.merge-all($calendar-tokens, $toggle-tokens, (
86
+ toggle-icon-color: $inactive-icon-color,
87
+ calendar-body-label-text-color: $secondary-text-color,
88
+ // calendar-period-button-icon-color: $inactive-icon-color,
89
+ // calendar-navigation-button-icon-color: $inactive-icon-color,
90
+ calendar-header-text-color: white,
91
+ calendar-header-divider-color: $divider-color,
92
+ calendar-table-header-text-color: $secondary-text-color,
93
+
94
+ // Note: though it's not text, the border is a hint about the fact
95
+ // that this is today's date, so we use the hint color.
96
+ calendar-date-today-outline-color: $hint-text-color,
97
+ // calendar-date-today-disabled-state-outline-color: $today-disabled-outline-color,
98
+ calendar-date-text-color: $text-color,
99
+ calendar-date-outline-color: transparent,
100
+ calendar-date-disabled-state-text-color: $disabled-text-color,
101
+ // calendar-date-preview-state-outline-color: $preview-outline-color,
102
+
103
+ calendar-container-background-color: theming.get-color-from-palette($background, card),
104
+ calendar-container-text-color: $text-color,
105
+
106
+ clock-dial-background-color: $divider-color,
107
+ clock-cell-text-color: $text-color,
108
+ clock-cell-hover-state-background-color: theming.get-color-from-palette($background, hover),
109
+ clock-cell-disabled-state-text-color: $disabled-text-color,
110
+
111
+ time-input-text-color: $text-color,
112
+ time-input-background-color: $divider-color,
113
+ time-input-focus-state-background-color: theming.get-color-from-palette($background, background),
114
+ time-input-warn-state-border-color: theming.get-color-from-palette($warn),
115
+ time-ampm-text-color: theming.get-color-from-palette($foreground, text, .75),
116
+ time-ampm-border-color: $hint-text-color,
117
+ time-ampm-selected-state-text-color: theming.get-color-from-palette($foreground, text),
118
+ time-ampm-selected-state-background-color: theming.get-color-from-palette($accent, .2),
119
+ ));
120
+ }
121
+
122
+ // Tokens that can be configured through Angular Material's typography theming API.
123
+ @function get-typography-tokens($config) {
124
+ @return (
125
+ calendar-text-font: typography-utils.font-family($config),
126
+ calendar-text-size: 13px,
127
+
128
+ calendar-body-label-text-size: typography-utils.font-size($config, button),
129
+ calendar-body-label-text-weight: typography-utils.font-weight($config, button),
130
+
131
+ calendar-period-button-text-size: typography-utils.font-size($config, button),
132
+ calendar-period-button-text-weight: typography-utils.font-weight($config, button),
133
+
134
+ calendar-table-header-text-size: 11px,
135
+ calendar-table-header-text-weight: typography-utils.font-weight($config, body-1),
136
+
137
+ clock-text-size: 14px,
138
+ );
139
+ }
140
+
141
+ // Tokens that can be configured through Angular Material's density theming API.
142
+ @function get-density-tokens($config) {
143
+ @return ();
144
+ }
145
+
146
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
147
+ // This is used to create token slots.
148
+ @function get-token-slots() {
149
+ @return sass-utils.deep-merge-all(
150
+ get-unthemable-tokens(),
151
+ get-color-tokens(token-utils.$placeholder-color-config),
152
+ get-typography-tokens(token-utils.$placeholder-typography-config),
153
+ get-density-tokens(token-utils.$placeholder-density-config)
154
+ );
155
+ }
@@ -0,0 +1,45 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
5
+
6
+ // The prefix used to generate the fully qualified name for tokens in this file.
7
+ $prefix: (mtx, drawer);
8
+
9
+ // Tokens that can't be configured through Angular Material's current theming API,
10
+ // but may be in a future version of the theming API.
11
+ @function get-unthemable-tokens() {
12
+ @return ();
13
+ }
14
+
15
+ // Tokens that can be configured through Angular Material's color theming API.
16
+ @function get-color-tokens($config) {
17
+ $foreground: map.get($config, foreground);
18
+ $background: map.get($config, background);
19
+
20
+ @return (
21
+ container-background-color: theming.get-color-from-palette($background, dialog),
22
+ container-text-color: theming.get-color-from-palette($foreground, text),
23
+ );
24
+ }
25
+
26
+ // Tokens that can be configured through Angular Material's typography theming API.
27
+ @function get-typography-tokens($config) {
28
+ @return ();
29
+ }
30
+
31
+ // Tokens that can be configured through Angular Material's density theming API.
32
+ @function get-density-tokens($config) {
33
+ @return ();
34
+ }
35
+
36
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
37
+ // This is used to create token slots.
38
+ @function get-token-slots() {
39
+ @return sass-utils.deep-merge-all(
40
+ get-unthemable-tokens(),
41
+ get-color-tokens(token-utils.$placeholder-color-config),
42
+ get-typography-tokens(token-utils.$placeholder-typography-config),
43
+ get-density-tokens(token-utils.$placeholder-density-config)
44
+ );
45
+ }
@@ -0,0 +1,57 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
5
+
6
+ // The prefix used to generate the fully qualified name for tokens in this file.
7
+ $prefix: (mtx, grid);
8
+
9
+ // Tokens that can't be configured through Angular Material's current theming API,
10
+ // but may be in a future version of the theming API.
11
+ @function get-unthemable-tokens() {
12
+ @return ();
13
+ }
14
+
15
+ // Tokens that can be configured through Angular Material's color theming API.
16
+ @function get-color-tokens($config) {
17
+ $is-dark-theme: map.get($config, is-dark);
18
+ $foreground: map.get($config, foreground);
19
+ $background: map.get($config, background);
20
+ $primary: map.get($config, primary);
21
+ $accent: map.get($config, accent);
22
+
23
+ @return (
24
+ outline-color: theming.get-color-from-palette($foreground, secondary-text, .2),
25
+ column-menu-text-color: theming.get-color-from-palette($foreground, text),
26
+ column-menu-divider-color: theming.get-color-from-palette($foreground, divider),
27
+ table-footer-background-color: theming.get-color-from-palette($background, app-bar),
28
+ table-row-striped-background-color: if($is-dark-theme, #3a3a3a, #f5f5f5),
29
+ table-row-hover-background-color: if($is-dark-theme, #2a2a2a, #e5e5e5),
30
+ table-row-selected-background-color: if($is-dark-theme, #2a2a2a, #e5e5e5),
31
+ table-cell-selected-outline-color: theming.get-color-from-palette($accent),
32
+ resizable-handle-active-background-color: theming.get-color-from-palette($primary),
33
+ resizable-handle-hover-background-color: theming.get-color-from-palette($primary),
34
+ resizable-handle-disabled-background-color: theming.get-color-from-palette($foreground, divider),
35
+ );
36
+ }
37
+
38
+ // Tokens that can be configured through Angular Material's typography theming API.
39
+ @function get-typography-tokens($config) {
40
+ @return ();
41
+ }
42
+
43
+ // Tokens that can be configured through Angular Material's density theming API.
44
+ @function get-density-tokens($config) {
45
+ @return ();
46
+ }
47
+
48
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
49
+ // This is used to create token slots.
50
+ @function get-token-slots() {
51
+ @return sass-utils.deep-merge-all(
52
+ get-unthemable-tokens(),
53
+ get-color-tokens(token-utils.$placeholder-color-config),
54
+ get-typography-tokens(token-utils.$placeholder-typography-config),
55
+ get-density-tokens(token-utils.$placeholder-density-config)
56
+ );
57
+ }
@@ -0,0 +1,45 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+ @use '../../token-utils';
5
+ @use '../../../theming/theming';
6
+ @use '../../../style/sass-utils';
7
+
8
+ // The prefix used to generate the fully qualified name for tokens in this file.
9
+ $prefix: (mtx, loader);
10
+
11
+ // Tokens that can't be configured through Angular Material's current theming API,
12
+ // but may be in a future version of the theming API.
13
+ @function get-unthemable-tokens() {
14
+ @return ();
15
+ }
16
+
17
+ // Tokens that can be configured through Angular Material's color theming API.
18
+ @function get-color-tokens($config) {
19
+ $background: map.get($config, background);
20
+
21
+ @return (
22
+ backdrop-background-color: theming.get-color-from-palette($background, background, .75),
23
+ );
24
+ }
25
+
26
+ // Tokens that can be configured through Angular Material's typography theming API.
27
+ @function get-typography-tokens($config) {
28
+ @return ();
29
+ }
30
+
31
+ // Tokens that can be configured through Angular Material's density theming API.
32
+ @function get-density-tokens($config) {
33
+ @return ();
34
+ }
35
+
36
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
37
+ // This is used to create token slots.
38
+ @function get-token-slots() {
39
+ @return sass-utils.deep-merge-all(
40
+ get-unthemable-tokens(),
41
+ get-color-tokens(token-utils.$placeholder-color-config),
42
+ get-typography-tokens(token-utils.$placeholder-typography-config),
43
+ get-density-tokens(token-utils.$placeholder-density-config)
44
+ );
45
+ }
@@ -0,0 +1,46 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
5
+
6
+ // The prefix used to generate the fully qualified name for tokens in this file.
7
+ $prefix: (mtx, popover);
8
+
9
+ // Tokens that can't be configured through Angular Material's current theming API,
10
+ // but may be in a future version of the theming API.
11
+ @function get-unthemable-tokens() {
12
+ @return ();
13
+ }
14
+
15
+ // Tokens that can be configured through Angular Material's color theming API.
16
+ @function get-color-tokens($config) {
17
+ $foreground: map.get($config, foreground);
18
+ $background: map.get($config, background);
19
+
20
+ @return (
21
+ background-color: theming.get-color-from-palette($background, card),
22
+ text-color: theming.get-color-from-palette($foreground, text),
23
+ arrow-outline-color: theming.get-color-from-palette($foreground, divider),
24
+ );
25
+ }
26
+
27
+ // Tokens that can be configured through Angular Material's typography theming API.
28
+ @function get-typography-tokens($config) {
29
+ @return ();
30
+ }
31
+
32
+ // Tokens that can be configured through Angular Material's density theming API.
33
+ @function get-density-tokens($config) {
34
+ @return ();
35
+ }
36
+
37
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
38
+ // This is used to create token slots.
39
+ @function get-token-slots() {
40
+ @return sass-utils.deep-merge-all(
41
+ get-unthemable-tokens(),
42
+ get-color-tokens(token-utils.$placeholder-color-config),
43
+ get-typography-tokens(token-utils.$placeholder-typography-config),
44
+ get-density-tokens(token-utils.$placeholder-density-config)
45
+ );
46
+ }
@@ -0,0 +1,56 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
5
+ @use '../../../theming/palette';
6
+
7
+ // The prefix used to generate the fully qualified name for tokens in this file.
8
+ $prefix: (mtx, progress);
9
+
10
+ // Tokens that can't be configured through Angular Material's current theming API,
11
+ // but may be in a future version of the theming API.
12
+ @function get-unthemable-tokens() {
13
+ @return ();
14
+ }
15
+
16
+ // Tokens that can be configured through Angular Material's color theming API.
17
+ @function get-color-tokens($config) {
18
+ $foreground: map.get($config, foreground);
19
+ $background: map.get($config, background);
20
+ $is-dark-theme: map.get($config, is-dark);
21
+
22
+ @return (
23
+ track-color: theming.get-color-from-palette($background, hover),
24
+ indicator-color: theming.get-color-from-palette($foreground, divider),
25
+ text-color: theming.get-color-from-palette($foreground, text),
26
+ info-indicator-color: theming.get-color-from-palette(palette.$blue-palette, if($is-dark-theme, 900, 500)),
27
+ info-text-color: white,
28
+ success-indicator-color: theming.get-color-from-palette(palette.$green-palette, if($is-dark-theme, 900, 500)),
29
+ success-text-color: white,
30
+ warning-indicator-color: theming.get-color-from-palette(palette.$orange-palette, if($is-dark-theme, 900, 500)),
31
+ warning-text-color: white,
32
+ danger-indicator-color: theming.get-color-from-palette(palette.$red-palette, if($is-dark-theme, 900, 500)),
33
+ danger-text-color: white,
34
+ );
35
+ }
36
+
37
+ // Tokens that can be configured through Angular Material's typography theming API.
38
+ @function get-typography-tokens($config) {
39
+ @return ();
40
+ }
41
+
42
+ // Tokens that can be configured through Angular Material's density theming API.
43
+ @function get-density-tokens($config) {
44
+ @return ();
45
+ }
46
+
47
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
48
+ // This is used to create token slots.
49
+ @function get-token-slots() {
50
+ @return sass-utils.deep-merge-all(
51
+ get-unthemable-tokens(),
52
+ get-color-tokens(token-utils.$placeholder-color-config),
53
+ get-typography-tokens(token-utils.$placeholder-typography-config),
54
+ get-density-tokens(token-utils.$placeholder-density-config)
55
+ );
56
+ }
@@ -0,0 +1,83 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
5
+
6
+ // The prefix used to generate the fully qualified name for tokens in this file.
7
+ $prefix: (mtx, select);
8
+
9
+ // Generates the tokens used to theme the option based on a palette.
10
+ @function private-get-color-palette-color-tokens($config, $palette-name) {
11
+ $palette: map.get($config, $palette-name);
12
+
13
+ @return (
14
+ option-selected-state-text-color: theming.get-color-from-palette($palette),
15
+ );
16
+ }
17
+
18
+ // Tokens that can't be configured through Angular Material's current theming API,
19
+ // but may be in a future version of the theming API.
20
+ @function get-unthemable-tokens() {
21
+ @return ();
22
+ }
23
+
24
+ // Tokens that can be configured through Angular Material's color theming API.
25
+ @function get-color-tokens($config) {
26
+ $foreground: map.get($config, foreground);
27
+ $background: map.get($config, background);
28
+ $primary: map.get($config, primary);
29
+ $warn: map.get($config, warn);
30
+ $text-color: theming.get-color-from-palette($foreground, text);
31
+ $hint-text-color: theming.get-color-from-palette($foreground, hint-text);
32
+ $secondary-text-color: theming.get-color-from-palette($foreground, secondary-text);
33
+ $disabled-text-color: theming.get-color-from-palette($foreground, disabled-text);
34
+ $divider-color: theming.get-color-from-palette($foreground, divider);
35
+ $hover-color: theming.get-color-from-palette($background, hover);
36
+ $palette-tokens: private-get-color-palette-color-tokens($config, primary);
37
+
38
+ @return map.merge($palette-tokens, (
39
+ container-text-color: $text-color,
40
+ placeholder-text-color: $hint-text-color,
41
+ disabled-text-color: $hint-text-color,
42
+
43
+ multiple-value-background-color: theming.get-color-from-palette($background, unselected-chip),
44
+ multiple-value-border-color: $divider-color,
45
+ multiple-value-icon-hover-background-color: $divider-color,
46
+
47
+ clear-icon-color: $secondary-text-color,
48
+ clear-icon-hover-color: theming.get-color-from-palette($warn),
49
+
50
+ enabled-arrow-color: $secondary-text-color,
51
+ disabled-arrow-color: $disabled-text-color,
52
+ invalid-arrow-color: theming.get-color-from-palette($warn),
53
+
54
+ panel-background-color: theming.get-color-from-palette($background, card),
55
+ panel-divider-color: $divider-color,
56
+ optgroup-label-text-color: $secondary-text-color,
57
+ option-label-text-color: $text-color,
58
+ option-selected-state-background-color: $hover-color,
59
+ option-hover-state-background-color: $hover-color,
60
+ option-disabled-state-text-color: $hint-text-color,
61
+ ));
62
+ }
63
+
64
+ // Tokens that can be configured through Angular Material's typography theming API.
65
+ @function get-typography-tokens($config) {
66
+ @return ();
67
+ }
68
+
69
+ // Tokens that can be configured through Angular Material's density theming API.
70
+ @function get-density-tokens($config) {
71
+ @return ();
72
+ }
73
+
74
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
75
+ // This is used to create token slots.
76
+ @function get-token-slots() {
77
+ @return sass-utils.deep-merge-all(
78
+ get-unthemable-tokens(),
79
+ get-color-tokens(token-utils.$placeholder-color-config),
80
+ get-typography-tokens(token-utils.$placeholder-typography-config),
81
+ get-density-tokens(token-utils.$placeholder-density-config)
82
+ );
83
+ }
@@ -0,0 +1,54 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+ @use '../../token-utils';
5
+ @use '../../../theming/theming';
6
+ @use '../../../style/sass-utils';
7
+
8
+ // The prefix used to generate the fully qualified name for tokens in this file.
9
+ $prefix: (mtx, split);
10
+
11
+ @function private-get-color-palette-color-tokens($config, $palette-name) {
12
+ $palette: map.get($config, $palette-name);
13
+
14
+ @return (
15
+ gutter-hover-state-background-color: theming.get-color-from-palette($palette, text),
16
+ );
17
+ }
18
+
19
+ // Tokens that can't be configured through Angular Material's current theming API,
20
+ // but may be in a future version of the theming API.
21
+ @function get-unthemable-tokens() {
22
+ @return ();
23
+ }
24
+
25
+ // Tokens that can be configured through Angular Material's color theming API.
26
+ @function get-color-tokens($config) {
27
+ $foreground: map.get($config, foreground);
28
+ $gutter-tokens: private-get-color-palette-color-tokens($config, primary);
29
+
30
+ @return sass-utils.merge-all($gutter-tokens, (
31
+ gutter-background-color: theming.get-color-from-palette($foreground, divider, .12),
32
+ ));
33
+ }
34
+
35
+ // Tokens that can be configured through Angular Material's typography theming API.
36
+ @function get-typography-tokens($config) {
37
+ @return ();
38
+ }
39
+
40
+ // Tokens that can be configured through Angular Material's density theming API.
41
+ @function get-density-tokens($config) {
42
+ @return ();
43
+ }
44
+
45
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
46
+ // This is used to create token slots.
47
+ @function get-token-slots() {
48
+ @return sass-utils.deep-merge-all(
49
+ get-unthemable-tokens(),
50
+ get-color-tokens(token-utils.$placeholder-color-config),
51
+ get-typography-tokens(token-utils.$placeholder-typography-config),
52
+ get-density-tokens(token-utils.$placeholder-density-config)
53
+ );
54
+ }