@ng-matero/extensions 18.4.1 → 19.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.
- package/_index.scss +3 -1
- package/alert/_alert-theme.scss +19 -8
- package/alert/alert.d.ts +1 -2
- package/button/button-loading.d.ts +1 -2
- package/checkbox-group/checkbox-group.d.ts +12 -4
- package/colorpicker/_colorpicker-theme.scss +19 -8
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +3 -3
- package/colorpicker/colorpicker.d.ts +4 -7
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +2 -1
- package/column-resize/column-resize-directives/column-resize.d.ts +2 -1
- package/column-resize/column-resize-notifier.d.ts +0 -1
- package/column-resize/column-resize.d.ts +1 -1
- package/column-resize/event-dispatcher.d.ts +0 -9
- package/column-resize/overlay-handle.d.ts +1 -1
- package/column-resize/resizable.d.ts +1 -1
- package/column-resize/resize-strategy.d.ts +4 -4
- package/core/datetime/datetime-adapter.d.ts +1 -2
- package/core/datetime/native-datetime-adapter.d.ts +3 -3
- package/core/style/_button-common.scss +18 -0
- package/core/theming/_config-validation.scss +4 -4
- package/core/theming/_definition.scss +12 -2
- package/core/theming/prebuilt/azure-blue.scss +10 -22
- package/core/theming/prebuilt/cyan-orange.scss +10 -22
- package/core/theming/prebuilt/magenta-violet.scss +10 -22
- package/core/theming/prebuilt/rose-red.scss +10 -22
- package/core/tokens/_m3-system.scss +273 -0
- package/core/tokens/_m3-tokens.scss +8 -151
- package/core/tokens/_token-utils.scss +102 -43
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -0
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +51 -0
- package/core/tokens/m3/index.scss +2 -0
- package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
- package/core/tokens/m3/mtx/_alert.scss +14 -14
- package/core/tokens/m3/mtx/_colorpicker.scss +2 -2
- package/core/tokens/m3/mtx/_datetimepicker.scss +2 -2
- package/core/tokens/m3/mtx/_drawer.scss +2 -2
- package/core/tokens/m3/mtx/_grid.scss +2 -2
- package/core/tokens/m3/mtx/_loader.scss +2 -2
- package/core/tokens/m3/mtx/_popover.scss +2 -2
- package/core/tokens/m3/mtx/_progress.scss +2 -2
- package/core/tokens/m3/mtx/_select.scss +2 -2
- package/core/tokens/m3/mtx/_split.scss +2 -2
- package/datetimepicker/_datetimepicker-theme.scss +23 -10
- package/datetimepicker/calendar-body.d.ts +26 -4
- package/datetimepicker/calendar-body.scss +58 -9
- package/datetimepicker/calendar.d.ts +31 -31
- package/datetimepicker/clock.d.ts +11 -5
- package/datetimepicker/datetimepicker-actions.d.ts +9 -5
- package/datetimepicker/datetimepicker-content.scss +15 -0
- package/datetimepicker/datetimepicker-input.d.ts +4 -5
- package/datetimepicker/datetimepicker-module.d.ts +2 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +4 -3
- package/datetimepicker/datetimepicker.d.ts +12 -8
- package/datetimepicker/month-view.d.ts +22 -7
- package/datetimepicker/multi-year-view.d.ts +20 -20
- package/datetimepicker/public-api.d.ts +2 -2
- package/datetimepicker/{time.d.ts → time-view.d.ts} +21 -9
- package/datetimepicker/{time.scss → time-view.scss} +1 -1
- package/datetimepicker/year-view.d.ts +21 -11
- package/dialog/dialog-container.d.ts +1 -2
- package/dialog/dialog.d.ts +0 -1
- package/drawer/_drawer-theme.scss +19 -8
- package/drawer/drawer-container.d.ts +2 -5
- package/drawer/drawer.d.ts +3 -5
- package/fesm2022/mtxAlert.mjs +15 -15
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +13 -14
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +51 -31
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +91 -109
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +79 -96
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +31 -36
- package/fesm2022/mtxCore.mjs.map +1 -1
- package/fesm2022/mtxDatetimepicker.mjs +1181 -1093
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +30 -41
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +36 -52
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +168 -204
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +12 -12
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +11 -12
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +106 -119
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +8 -8
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +157 -169
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +39 -40
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +105 -91
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +23 -10
- package/grid/cell.d.ts +1 -4
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -1
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -1
- package/grid/column-resize/overlay-handle.d.ts +1 -2
- package/grid/column-resize/resizable-directives/resizable.d.ts +2 -3
- package/grid/column-resize/resize-strategy.d.ts +2 -4
- package/grid/grid-pipes.d.ts +0 -2
- package/grid/grid.d.ts +5 -5
- package/grid/grid.scss +5 -6
- package/loader/_loader-theme.scss +19 -8
- package/loader/loader.d.ts +0 -2
- package/package.json +11 -47
- package/photoviewer/photoviewer.d.ts +1 -2
- package/popover/_popover-theme.scss +19 -8
- package/popover/popover-content.d.ts +1 -1
- package/popover/popover-target.d.ts +1 -2
- package/popover/popover-trigger.d.ts +5 -6
- package/popover/popover.d.ts +1 -2
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress/_progress-theme.scss +23 -10
- package/select/_select-theme.scss +23 -10
- package/select/option.d.ts +0 -1
- package/select/select-intl.d.ts +2 -4
- package/select/select.d.ts +8 -7
- package/select/select.scss +3 -3
- package/select/templates.d.ts +0 -12
- package/split/_split-theme.scss +19 -8
- package/split/split-pane.d.ts +3 -4
- package/split/split.d.ts +4 -4
- package/split/split.scss +1 -1
- package/tooltip/_tooltip-theme.scss +11 -4
- package/tooltip/tooltip.d.ts +17 -9
- package/tooltip/tooltip.scss +8 -3
- package/esm2022/alert/alert-module.mjs +0 -17
- package/esm2022/alert/alert.mjs +0 -46
- package/esm2022/alert/mtxAlert.mjs +0 -5
- package/esm2022/alert/public-api.mjs +0 -3
- package/esm2022/button/button-loading.mjs +0 -66
- package/esm2022/button/button-module.mjs +0 -19
- package/esm2022/button/mtxButton.mjs +0 -5
- package/esm2022/button/public-api.mjs +0 -3
- package/esm2022/checkbox-group/checkbox-group-module.mjs +0 -20
- package/esm2022/checkbox-group/checkbox-group.mjs +0 -222
- package/esm2022/checkbox-group/interfaces.mjs +0 -2
- package/esm2022/checkbox-group/mtxCheckboxGroup.mjs +0 -5
- package/esm2022/checkbox-group/public-api.mjs +0 -4
- package/esm2022/colorpicker/colorpicker-animations.mjs +0 -16
- package/esm2022/colorpicker/colorpicker-input.mjs +0 -228
- package/esm2022/colorpicker/colorpicker-module.mjs +0 -64
- package/esm2022/colorpicker/colorpicker-toggle.mjs +0 -102
- package/esm2022/colorpicker/colorpicker.mjs +0 -363
- package/esm2022/colorpicker/mtxColorpicker.mjs +0 -5
- package/esm2022/colorpicker/public-api.mjs +0 -6
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/constants.mjs +0 -21
- package/esm2022/column-resize/column-resize-module.mjs +0 -28
- package/esm2022/column-resize/column-resize-notifier.mjs +0 -52
- package/esm2022/column-resize/column-resize.mjs +0 -82
- package/esm2022/column-resize/column-size-store.mjs +0 -20
- package/esm2022/column-resize/event-dispatcher.mjs +0 -70
- package/esm2022/column-resize/mtxColumnResize.mjs +0 -5
- package/esm2022/column-resize/overlay-handle.mjs +0 -146
- package/esm2022/column-resize/polyfill.mjs +0 -19
- package/esm2022/column-resize/public-api.mjs +0 -13
- package/esm2022/column-resize/resizable.mjs +0 -199
- package/esm2022/column-resize/resize-ref.mjs +0 -17
- package/esm2022/column-resize/resize-strategy.mjs +0 -238
- package/esm2022/column-resize/selectors.mjs +0 -13
- package/esm2022/core/datetime/datetime-adapter.mjs +0 -132
- package/esm2022/core/datetime/datetime-formats.mjs +0 -3
- package/esm2022/core/datetime/datetime.module.mjs +0 -38
- package/esm2022/core/datetime/index.mjs +0 -6
- package/esm2022/core/datetime/native-datetime-adapter.mjs +0 -138
- package/esm2022/core/datetime/native-datetime-formats.mjs +0 -20
- package/esm2022/core/mtxCore.mjs +0 -5
- package/esm2022/core/pipes/index.mjs +0 -4
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +0 -14
- package/esm2022/core/pipes/pipes.module.mjs +0 -18
- package/esm2022/core/pipes/to-observable.pipe.mjs +0 -15
- package/esm2022/core/public-api.mjs +0 -3
- package/esm2022/datetimepicker/calendar-body.mjs +0 -77
- package/esm2022/datetimepicker/calendar.mjs +0 -661
- package/esm2022/datetimepicker/clock.mjs +0 -362
- package/esm2022/datetimepicker/datetimepicker-actions.mjs +0 -88
- package/esm2022/datetimepicker/datetimepicker-animations.mjs +0 -44
- package/esm2022/datetimepicker/datetimepicker-errors.mjs +0 -8
- package/esm2022/datetimepicker/datetimepicker-filtertype.mjs +0 -7
- package/esm2022/datetimepicker/datetimepicker-input.mjs +0 -349
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +0 -63
- package/esm2022/datetimepicker/datetimepicker-module.mjs +0 -116
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +0 -105
- package/esm2022/datetimepicker/datetimepicker-types.mjs +0 -2
- package/esm2022/datetimepicker/datetimepicker.mjs +0 -580
- package/esm2022/datetimepicker/month-view.mjs +0 -148
- package/esm2022/datetimepicker/mtxDatetimepicker.mjs +0 -5
- package/esm2022/datetimepicker/multi-year-view.mjs +0 -215
- package/esm2022/datetimepicker/public-api.mjs +0 -17
- package/esm2022/datetimepicker/time.mjs +0 -470
- package/esm2022/datetimepicker/year-view.mjs +0 -139
- package/esm2022/dialog/dialog-config.mjs +0 -2
- package/esm2022/dialog/dialog-container.mjs +0 -43
- package/esm2022/dialog/dialog-module.mjs +0 -40
- package/esm2022/dialog/dialog.mjs +0 -75
- package/esm2022/dialog/mtxDialog.mjs +0 -5
- package/esm2022/dialog/public-api.mjs +0 -5
- package/esm2022/drawer/drawer-animations.mjs +0 -18
- package/esm2022/drawer/drawer-config.mjs +0 -35
- package/esm2022/drawer/drawer-container.mjs +0 -88
- package/esm2022/drawer/drawer-module.mjs +0 -21
- package/esm2022/drawer/drawer-ref.mjs +0 -99
- package/esm2022/drawer/drawer.mjs +0 -144
- package/esm2022/drawer/mtxDrawer.mjs +0 -5
- package/esm2022/drawer/public-api.mjs +0 -7
- package/esm2022/grid/cell.mjs +0 -132
- package/esm2022/grid/column-menu.mjs +0 -133
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/common.mjs +0 -27
- package/esm2022/grid/column-resize/column-resize-module.mjs +0 -42
- package/esm2022/grid/column-resize/index.mjs +0 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +0 -66
- package/esm2022/grid/column-resize/resizable-directives/common.mjs +0 -29
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +0 -64
- package/esm2022/grid/column-resize/resize-strategy.mjs +0 -47
- package/esm2022/grid/expansion-toggle.mjs +0 -65
- package/esm2022/grid/grid-module.mjs +0 -151
- package/esm2022/grid/grid-pipes.mjs +0 -129
- package/esm2022/grid/grid-utils.mjs +0 -56
- package/esm2022/grid/grid.mjs +0 -644
- package/esm2022/grid/interfaces.mjs +0 -2
- package/esm2022/grid/mtxGrid.mjs +0 -5
- package/esm2022/grid/public-api.mjs +0 -18
- package/esm2022/grid/selectable-cell.mjs +0 -53
- package/esm2022/loader/loader-module.mjs +0 -19
- package/esm2022/loader/loader.mjs +0 -57
- package/esm2022/loader/mtxLoader.mjs +0 -5
- package/esm2022/loader/public-api.mjs +0 -3
- package/esm2022/ng-matero-extensions.mjs +0 -5
- package/esm2022/photoviewer/mtxPhotoviewer.mjs +0 -5
- package/esm2022/photoviewer/photoviewer-module.mjs +0 -16
- package/esm2022/photoviewer/photoviewer.mjs +0 -64
- package/esm2022/photoviewer/public-api.mjs +0 -3
- package/esm2022/popover/mtxPopover.mjs +0 -5
- package/esm2022/popover/popover-animations.mjs +0 -25
- package/esm2022/popover/popover-content.mjs +0 -91
- package/esm2022/popover/popover-errors.mjs +0 -27
- package/esm2022/popover/popover-interfaces.mjs +0 -2
- package/esm2022/popover/popover-module.mjs +0 -39
- package/esm2022/popover/popover-target.mjs +0 -18
- package/esm2022/popover/popover-trigger.mjs +0 -480
- package/esm2022/popover/popover-types.mjs +0 -2
- package/esm2022/popover/popover.mjs +0 -325
- package/esm2022/popover/public-api.mjs +0 -9
- package/esm2022/progress/mtxProgress.mjs +0 -5
- package/esm2022/progress/progress-module.mjs +0 -17
- package/esm2022/progress/progress.mjs +0 -43
- package/esm2022/progress/public-api.mjs +0 -3
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/select/mtxSelect.mjs +0 -5
- package/esm2022/select/option.mjs +0 -52
- package/esm2022/select/public-api.mjs +0 -6
- package/esm2022/select/select-intl.mjs +0 -32
- package/esm2022/select/select-module.mjs +0 -89
- package/esm2022/select/select.mjs +0 -611
- package/esm2022/select/templates.mjs +0 -135
- package/esm2022/split/interfaces.mjs +0 -2
- package/esm2022/split/mtxSplit.mjs +0 -5
- package/esm2022/split/public-api.mjs +0 -6
- package/esm2022/split/split-module.mjs +0 -18
- package/esm2022/split/split-pane.mjs +0 -161
- package/esm2022/split/split.mjs +0 -634
- package/esm2022/split/utils.mjs +0 -219
- package/esm2022/tooltip/mtxTooltip.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/tooltip-animations.mjs +0 -17
- package/esm2022/tooltip/tooltip-module.mjs +0 -41
- package/esm2022/tooltip/tooltip.mjs +0 -915
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
@use 'sass:string';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
5
|
@use '../style/elevation';
|
|
6
|
+
@use './m3-system';
|
|
6
7
|
@use './m3-tokens';
|
|
7
8
|
|
|
8
9
|
$_tokens: null;
|
|
9
10
|
$_component-prefix: null;
|
|
10
|
-
$_system-fallbacks: m3-
|
|
11
|
+
$_system-fallbacks: m3-system.create-system-fallbacks();
|
|
11
12
|
|
|
12
13
|
// Sets the token prefix and map to use when creating token slots.
|
|
13
14
|
@mixin use-tokens($prefix, $tokens) {
|
|
@@ -113,19 +114,20 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
|
|
|
113
114
|
@return _create-var($sys-fallback, $fallback);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
|
-
|
|
117
|
-
// Changing this will affect clients that do not properly call theme mixins since the tokens
|
|
118
|
-
// will be undefined and now default to M3 system values, causing a number of screenshot failures.
|
|
119
|
-
// @return $sys-fallback;
|
|
120
|
-
@return $fallback;
|
|
117
|
+
@return $sys-fallback;
|
|
121
118
|
}
|
|
122
119
|
|
|
123
120
|
// Outputs a map of tokens under a specific prefix.
|
|
124
121
|
@mixin create-token-values($prefix, $tokens) {
|
|
125
122
|
@if $tokens != null {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
// TODO: The `&` adds to the file size of theme, but it's necessary for compatibility
|
|
124
|
+
// with https://sass-lang.com/documentation/breaking-changes/mixed-decls/. We should
|
|
125
|
+
// figure out a better way to do this or move all the concrete styles out of the theme.
|
|
126
|
+
& {
|
|
127
|
+
@each $key, $value in $tokens {
|
|
128
|
+
@if $value != null {
|
|
129
|
+
#{_create-var-name($prefix, $key)}: #{$value};
|
|
130
|
+
}
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
133
|
}
|
|
@@ -137,10 +139,13 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
|
|
|
137
139
|
@function resolve-elevation($tokens, $elevation-token, $shadow-color-token) {
|
|
138
140
|
$elevation: map.get($tokens, $elevation-token);
|
|
139
141
|
$shadow-color: map.get($tokens, $shadow-color-token);
|
|
140
|
-
@return map.merge(
|
|
141
|
-
$
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
@return map.merge(
|
|
143
|
+
$tokens,
|
|
144
|
+
(
|
|
145
|
+
$elevation-token: elevation.get-box-shadow($elevation, $shadow-color),
|
|
146
|
+
$shadow-color-token: null,
|
|
147
|
+
)
|
|
148
|
+
);
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
/// Checks whether a list starts wih a given prefix
|
|
@@ -194,7 +199,8 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
|
|
|
194
199
|
$overrides: map.get($tokens, list.append($prefix, $color-variant));
|
|
195
200
|
@if $overrides == null {
|
|
196
201
|
$variants: _supported-color-variants($tokens, $prefix);
|
|
197
|
-
$secondary-message: if(
|
|
202
|
+
$secondary-message: if(
|
|
203
|
+
$variants == (),
|
|
198
204
|
'Mixin does not support color variants',
|
|
199
205
|
'Supported color variants are: #{$variants}'
|
|
200
206
|
);
|
|
@@ -207,41 +213,94 @@ $_system-fallbacks: m3-tokens.create-system-fallbacks();
|
|
|
207
213
|
/// Emits new token values for the given token overrides.
|
|
208
214
|
/// Verifies that the overrides passed in are valid tokens.
|
|
209
215
|
/// New token values are emitted under the current selector or root.
|
|
210
|
-
@mixin batch-create-token-values($overrides: (), $
|
|
211
|
-
@include
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
$
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
$
|
|
216
|
+
@mixin batch-create-token-values($overrides: (), $namespace-configs...) {
|
|
217
|
+
@include mat.private-current-selector-or-root() {
|
|
218
|
+
$prefixed-name-data: ();
|
|
219
|
+
$unprefixed-name-data: ();
|
|
220
|
+
$all-names: ();
|
|
221
|
+
|
|
222
|
+
@each $config in $namespace-configs {
|
|
223
|
+
$namespace: map.get($config, namespace);
|
|
224
|
+
$prefix: if(map.has-key($config, prefix), map.get($config, prefix), '');
|
|
225
|
+
$tokens: _filter-nulls(map.get($config, tokens));
|
|
226
|
+
@each $name, $value in $tokens {
|
|
227
|
+
$prefixed-name: $prefix + $name;
|
|
228
|
+
$all-names: list.append($all-names, $prefixed-name, $separator: comma);
|
|
229
|
+
@if map.has-key($prefixed-name-data, $prefixed-name) {
|
|
230
|
+
@error #{
|
|
231
|
+
'Error overriding token: Ambiguous token name `'
|
|
232
|
+
}#{
|
|
233
|
+
$prefixed-name
|
|
234
|
+
}#{
|
|
235
|
+
'` exists in multiple namespaces: `('
|
|
236
|
+
}#{
|
|
237
|
+
list.nth(map.get($prefixed-name-data, $prefixed-name), 1)
|
|
238
|
+
}#{
|
|
239
|
+
')` and `('
|
|
240
|
+
}#{
|
|
241
|
+
$namespace
|
|
242
|
+
}#{
|
|
243
|
+
')`'
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
$prefixed-name-data: map.set($prefixed-name-data, $prefixed-name, ($namespace, $name));
|
|
247
|
+
$unprefixed-data: map.has-key($unprefixed-name-data, $name) and
|
|
248
|
+
map.get($unprefixed-name-data, $name) or
|
|
249
|
+
();
|
|
250
|
+
$unprefixed-data: list.append($unprefixed-data, ($namespace, $prefixed-name));
|
|
251
|
+
$unprefixed-name-data: map.set($unprefixed-name-data, $name, $unprefixed-data);
|
|
252
|
+
}
|
|
219
253
|
}
|
|
220
254
|
|
|
221
|
-
@
|
|
222
|
-
@
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
$
|
|
255
|
+
@each $name, $value in $overrides {
|
|
256
|
+
@if map.has-key($prefixed-name-data, $name) {
|
|
257
|
+
$data: map.get($prefixed-name-data, $name);
|
|
258
|
+
$namespace: list.nth($data, 1);
|
|
259
|
+
$name: list.nth($data, 2);
|
|
260
|
+
@include create-token-values(
|
|
261
|
+
$namespace,
|
|
262
|
+
(
|
|
263
|
+
$name: $value,
|
|
264
|
+
)
|
|
265
|
+
);
|
|
266
|
+
} @else if (map.has-key($unprefixed-name-data, $name)) {
|
|
267
|
+
$datalist: map.get($unprefixed-name-data, $name);
|
|
268
|
+
$prefixed-names: ();
|
|
269
|
+
@each $data in $datalist {
|
|
270
|
+
$namespace: list.nth($data, 1);
|
|
271
|
+
$prefixed-names: list.append($prefixed-names, list.nth($data, 2), $separator: comma);
|
|
272
|
+
@include create-token-values(
|
|
273
|
+
$namespace,
|
|
274
|
+
(
|
|
275
|
+
$name: $value,
|
|
276
|
+
)
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
@warn #{
|
|
280
|
+
'Token `'
|
|
281
|
+
}#{
|
|
282
|
+
$name
|
|
283
|
+
}#{
|
|
284
|
+
'` is deprecated. Please use one of the following alternatives: '
|
|
285
|
+
}#{
|
|
286
|
+
$prefixed-names
|
|
287
|
+
};
|
|
288
|
+
} @else {
|
|
289
|
+
@error #{'Invalid token name `'}#{$name}#{'`. '}#{'Valid tokens are: '}#{$all-names};
|
|
235
290
|
}
|
|
236
291
|
}
|
|
237
292
|
}
|
|
293
|
+
}
|
|
238
294
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
295
|
+
/// Filters keys with a null value out of the map.
|
|
296
|
+
/// @param {Map} $map The map to filter.
|
|
297
|
+
/// @return {Map} The given map with all of the null keys filtered out.
|
|
298
|
+
@function _filter-nulls($map) {
|
|
299
|
+
$result: ();
|
|
300
|
+
@each $key, $val in $map {
|
|
301
|
+
@if $val != null {
|
|
302
|
+
$result: map.set($result, $key, $val);
|
|
245
303
|
}
|
|
246
304
|
}
|
|
305
|
+
@return $result;
|
|
247
306
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@use './mtx/progress' as tokens-mtx-progress;
|
|
12
12
|
@use './mtx/select' as tokens-mtx-select;
|
|
13
13
|
@use './mtx/split' as tokens-mtx-split;
|
|
14
|
+
@use './mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
14
15
|
|
|
15
16
|
/// Gets the tokens for the given theme, m2 tokens module, and theming system.
|
|
16
17
|
/// @param {Map} $theme The Angular Material theme object to generate token values from.
|
|
@@ -65,5 +66,6 @@
|
|
|
65
66
|
_get-tokens-for-module($theme, tokens-mtx-progress),
|
|
66
67
|
_get-tokens-for-module($theme, tokens-mtx-select),
|
|
67
68
|
_get-tokens-for-module($theme, tokens-mtx-split),
|
|
69
|
+
_get-tokens-for-module($theme, tokens-mdc-plain-tooltip),
|
|
68
70
|
);
|
|
69
71
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
|
|
8
|
+
@use './md-sys-color';
|
|
9
|
+
|
|
10
|
+
@use './md-sys-shape';
|
|
11
|
+
|
|
12
|
+
@use './md-sys-typescale';
|
|
13
|
+
|
|
14
|
+
$_default: (
|
|
15
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
16
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
17
|
+
'md-sys-typescale': md-sys-typescale.values(),
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
21
|
+
@return (
|
|
22
|
+
'container-color': map.get($deps, 'md-sys-color', 'inverse-surface'),
|
|
23
|
+
'container-shape': map.get($deps, 'md-sys-shape', 'corner-extra-small'),
|
|
24
|
+
'supporting-text-color':
|
|
25
|
+
map.get($deps, 'md-sys-color', 'inverse-on-surface'),
|
|
26
|
+
'supporting-text-font':
|
|
27
|
+
map.get($deps, 'md-sys-typescale', 'body-small-font'),
|
|
28
|
+
'supporting-text-line-height':
|
|
29
|
+
map.get($deps, 'md-sys-typescale', 'body-small-line-height'),
|
|
30
|
+
'supporting-text-size':
|
|
31
|
+
map.get($deps, 'md-sys-typescale', 'body-small-size'),
|
|
32
|
+
'supporting-text-tracking':
|
|
33
|
+
map.get($deps, 'md-sys-typescale', 'body-small-tracking'),
|
|
34
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
35
|
+
// Tokens md.comp.plain-tooltip.supporting-text.tracking cannot be represented in the
|
|
36
|
+
// "font" property shorthand. Consider using the discrete properties instead.
|
|
37
|
+
'supporting-text-type':
|
|
38
|
+
if(
|
|
39
|
+
$exclude-hardcoded-values,
|
|
40
|
+
null,
|
|
41
|
+
map.get($deps, 'md-sys-typescale', 'body-small-weight')
|
|
42
|
+
map.get($deps, 'md-sys-typescale', 'body-small-size') #{'/'} map.get(
|
|
43
|
+
$deps,
|
|
44
|
+
'md-sys-typescale',
|
|
45
|
+
'body-small-line-height'
|
|
46
|
+
) map.get($deps, 'md-sys-typescale', 'body-small-font')
|
|
47
|
+
),
|
|
48
|
+
'supporting-text-weight':
|
|
49
|
+
map.get($deps, 'md-sys-typescale', 'body-small-weight')
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@use './mtx/progress' as tokens-mtx-progress;
|
|
11
11
|
@use './mtx/select' as tokens-mtx-select;
|
|
12
12
|
@use './mtx/split' as tokens-mtx-split;
|
|
13
|
+
@use './mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
13
14
|
|
|
14
15
|
$_module-names: (
|
|
15
16
|
// Custom tokens
|
|
@@ -23,6 +24,7 @@ $_module-names: (
|
|
|
23
24
|
tokens-mtx-progress,
|
|
24
25
|
tokens-mtx-select,
|
|
25
26
|
tokens-mtx-split,
|
|
27
|
+
tokens-mdc-plain-tooltip,
|
|
26
28
|
);
|
|
27
29
|
|
|
28
30
|
/// Gets the full set of M3 tokens for the given theme object.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use '../../token-definition';
|
|
2
|
+
|
|
3
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
4
|
+
$prefix: (mdc, plain-tooltip);
|
|
5
|
+
|
|
6
|
+
/// Generates the tokens for MDC plain-tooltip
|
|
7
|
+
/// @param {Map} $systems The MDC system tokens
|
|
8
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
9
|
+
/// @param {Map} $token-slots Possible token slots
|
|
10
|
+
/// @return {Map} A set of tokens for the MDC plain-tooltip
|
|
11
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
12
|
+
$mdc-tokens: token-definition.get-mdc-tokens('plain-tooltip', $systems, $exclude-hardcoded);
|
|
13
|
+
|
|
14
|
+
@return token-definition.namespace-tokens($prefix, $mdc-tokens, $token-slots);
|
|
15
|
+
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mtx, alert);
|
|
7
7
|
|
|
8
|
-
/// Generates custom tokens for the
|
|
8
|
+
/// Generates custom tokens for the mtx-alert.
|
|
9
9
|
/// @param {Map} $systems The MDC system tokens
|
|
10
10
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
11
|
/// @param {Map} $token-slots Possible token slots
|
|
12
|
-
/// @return {Map} A set of custom tokens for the
|
|
12
|
+
/// @return {Map} A set of custom tokens for the mtx-alert
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$is-dark: map.get($systems, md-sys-type) == dark;
|
|
15
15
|
|
|
@@ -20,21 +20,21 @@ $prefix: (mtx, alert);
|
|
|
20
20
|
background-color: map.get($systems, md-sys-color, surface-container),
|
|
21
21
|
text-color: map.get($systems, md-sys-color, on-surface),
|
|
22
22
|
|
|
23
|
-
info-outline-color: map.get(mat.$azure-palette,
|
|
24
|
-
info-background-color: map.get(mat.$azure-palette,
|
|
25
|
-
info-text-color: map.get(mat.$azure-palette,
|
|
23
|
+
info-outline-color: light-dark(map.get(mat.$azure-palette, 80), map.get(mat.$azure-palette, 40)),
|
|
24
|
+
info-background-color: light-dark(map.get(mat.$azure-palette, 90), map.get(mat.$azure-palette, 20)),
|
|
25
|
+
info-text-color: light-dark(map.get(mat.$azure-palette, 20), map.get(mat.$azure-palette, 90)),
|
|
26
26
|
|
|
27
|
-
success-outline-color: map.get(mat.$green-palette,
|
|
28
|
-
success-background-color: map.get(mat.$green-palette,
|
|
29
|
-
success-text-color: map.get(mat.$green-palette,
|
|
27
|
+
success-outline-color: light-dark(map.get(mat.$green-palette, 80), map.get(mat.$green-palette, 40)),
|
|
28
|
+
success-background-color: light-dark(map.get(mat.$green-palette, 95), map.get(mat.$green-palette, 20)),
|
|
29
|
+
success-text-color: light-dark(map.get(mat.$green-palette, 20), map.get(mat.$green-palette, 95)),
|
|
30
30
|
|
|
31
|
-
warning-outline-color: map.get(mat.$yellow-palette,
|
|
32
|
-
warning-background-color: map.get(mat.$yellow-palette,
|
|
33
|
-
warning-text-color: map.get(mat.$yellow-palette,
|
|
31
|
+
warning-outline-color: light-dark(map.get(mat.$yellow-palette, 80), map.get(mat.$yellow-palette, 40)),
|
|
32
|
+
warning-background-color: light-dark(map.get(mat.$yellow-palette, 98), map.get(mat.$yellow-palette, 20)),
|
|
33
|
+
warning-text-color: light-dark(map.get(mat.$yellow-palette, 20), map.get(mat.$yellow-palette, 98)),
|
|
34
34
|
|
|
35
|
-
danger-outline-color: map.get(mat.$red-palette,
|
|
36
|
-
danger-background-color: map.get(mat.$red-palette,
|
|
37
|
-
danger-text-color: map.get(mat.$red-palette,
|
|
35
|
+
danger-outline-color: light-dark(map.get(mat.$red-palette, 80), map.get(mat.$red-palette, 40)),
|
|
36
|
+
danger-background-color: light-dark(map.get(mat.$red-palette, 90), map.get(mat.$red-palette, 20)),
|
|
37
|
+
danger-text-color: light-dark(map.get(mat.$red-palette, 20), map.get(mat.$red-palette, 90)),
|
|
38
38
|
);
|
|
39
39
|
|
|
40
40
|
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mtx, colorpicker);
|
|
6
6
|
|
|
7
|
-
/// Generates custom tokens for the
|
|
7
|
+
/// Generates custom tokens for the mtx-colorpicker.
|
|
8
8
|
/// @param {Map} $systems The MDC system tokens
|
|
9
9
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
10
|
/// @param {Map} $token-slots Possible token slots
|
|
11
|
-
/// @return {Map} A set of custom tokens for the
|
|
11
|
+
/// @return {Map} A set of custom tokens for the mtx-colorpicker
|
|
12
12
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
13
|
$tokens: (
|
|
14
14
|
toggle-active-state-icon-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mtx, datetimepicker);
|
|
8
8
|
|
|
9
|
-
/// Generates custom tokens for the
|
|
9
|
+
/// Generates custom tokens for the mtx-datetimepicker.
|
|
10
10
|
/// @param {Map} $systems The MDC system tokens
|
|
11
11
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
12
12
|
/// @param {Map} $token-slots Possible token slots
|
|
13
|
-
/// @return {Map} A set of custom tokens for the
|
|
13
|
+
/// @return {Map} A set of custom tokens for the mtx-datetimepicker
|
|
14
14
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
15
|
$tokens: ((
|
|
16
16
|
calendar-header-background-color: token-definition.hardcode(transparent, $exclude-hardcoded),
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mtx, drawer);
|
|
7
7
|
|
|
8
|
-
/// Generates custom tokens for the
|
|
8
|
+
/// Generates custom tokens for the mtx-drawer.
|
|
9
9
|
/// @param {Map} $systems The MDC system tokens
|
|
10
10
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
11
|
/// @param {Map} $token-slots Possible token slots
|
|
12
|
-
/// @return {Map} A set of custom tokens for the
|
|
12
|
+
/// @return {Map} A set of custom tokens for the mtx-drawer
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: (
|
|
15
15
|
container-shape: map.get($systems, md-sys-shape, corner-large),
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mtx, grid);
|
|
6
6
|
|
|
7
|
-
/// Generates custom tokens for the
|
|
7
|
+
/// Generates custom tokens for the mtx-grid.
|
|
8
8
|
/// @param {Map} $systems The MDC system tokens
|
|
9
9
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
10
|
/// @param {Map} $token-slots Possible token slots
|
|
11
|
-
/// @return {Map} A set of custom tokens for the
|
|
11
|
+
/// @return {Map} A set of custom tokens for the mtx-grid
|
|
12
12
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
13
|
$tokens: (
|
|
14
14
|
container-shape: map.get($systems, md-sys-shape, corner-medium),
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mtx, loader);
|
|
7
7
|
|
|
8
|
-
/// Generates custom tokens for the
|
|
8
|
+
/// Generates custom tokens for the mtx-loader.
|
|
9
9
|
/// @param {Map} $systems The MDC system tokens
|
|
10
10
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
11
|
/// @param {Map} $token-slots Possible token slots
|
|
12
|
-
/// @return {Map} A set of custom tokens for the
|
|
12
|
+
/// @return {Map} A set of custom tokens for the mtx-loader
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: (
|
|
15
15
|
backdrop-background-color: mat.private-safe-color-change(
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mtx, popover);
|
|
6
6
|
|
|
7
|
-
/// Generates custom tokens for the
|
|
7
|
+
/// Generates custom tokens for the mtx-popover.
|
|
8
8
|
/// @param {Map} $systems The MDC system tokens
|
|
9
9
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
10
|
/// @param {Map} $token-slots Possible token slots
|
|
11
|
-
/// @return {Map} A set of custom tokens for the
|
|
11
|
+
/// @return {Map} A set of custom tokens for the mtx-popover
|
|
12
12
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
13
|
$tokens: (
|
|
14
14
|
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
6
|
$prefix: (mtx, progress);
|
|
7
7
|
|
|
8
|
-
/// Generates custom tokens for the
|
|
8
|
+
/// Generates custom tokens for the mtx-progress.
|
|
9
9
|
/// @param {Map} $systems The MDC system tokens
|
|
10
10
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
11
|
/// @param {Map} $token-slots Possible token slots
|
|
12
|
-
/// @return {Map} A set of custom tokens for the
|
|
12
|
+
/// @return {Map} A set of custom tokens for the mtx-progress
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: (
|
|
15
15
|
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mtx, select);
|
|
8
8
|
|
|
9
|
-
/// Generates custom tokens for the
|
|
9
|
+
/// Generates custom tokens for the mtx-select.
|
|
10
10
|
/// @param {Map} $systems The MDC system tokens
|
|
11
11
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
12
12
|
/// @param {Map} $token-slots Possible token slots
|
|
13
|
-
/// @return {Map} A set of custom tokens for the
|
|
13
|
+
/// @return {Map} A set of custom tokens for the mtx-select
|
|
14
14
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
15
|
$tokens: ((
|
|
16
16
|
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
5
|
$prefix: (mtx, split);
|
|
6
6
|
|
|
7
|
-
/// Generates custom tokens for the
|
|
7
|
+
/// Generates custom tokens for the mtx-split.
|
|
8
8
|
/// @param {Map} $systems The MDC system tokens
|
|
9
9
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
10
|
/// @param {Map} $token-slots Possible token slots
|
|
11
|
-
/// @return {Map} A set of custom tokens for the
|
|
11
|
+
/// @return {Map} A set of custom tokens for the mtx-split
|
|
12
12
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
13
|
$tokens: ((
|
|
14
14
|
gutter-background-color: map.get($systems, md-sys-color, outline-variant),
|
|
@@ -18,8 +18,10 @@
|
|
|
18
18
|
}
|
|
19
19
|
@else {
|
|
20
20
|
@include mat.private-current-selector-or-root() {
|
|
21
|
-
@include token-utils.create-token-values(
|
|
22
|
-
tokens-mtx-datetimepicker
|
|
21
|
+
@include token-utils.create-token-values(
|
|
22
|
+
tokens-mtx-datetimepicker.$prefix,
|
|
23
|
+
tokens-mtx-datetimepicker.get-unthemable-tokens()
|
|
24
|
+
);
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
}
|
|
@@ -30,8 +32,10 @@
|
|
|
30
32
|
}
|
|
31
33
|
@else {
|
|
32
34
|
@include mat.private-current-selector-or-root() {
|
|
33
|
-
@include token-utils.create-token-values(
|
|
34
|
-
tokens-mtx-datetimepicker
|
|
35
|
+
@include token-utils.create-token-values(
|
|
36
|
+
tokens-mtx-datetimepicker.$prefix,
|
|
37
|
+
tokens-mtx-datetimepicker.get-color-tokens($theme)
|
|
38
|
+
);
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
.mtx-datetimepicker-content {
|
|
@@ -64,8 +68,10 @@
|
|
|
64
68
|
}
|
|
65
69
|
@else {
|
|
66
70
|
@include mat.private-current-selector-or-root() {
|
|
67
|
-
@include token-utils.create-token-values(
|
|
68
|
-
tokens-mtx-datetimepicker
|
|
71
|
+
@include token-utils.create-token-values(
|
|
72
|
+
tokens-mtx-datetimepicker.$prefix,
|
|
73
|
+
tokens-mtx-datetimepicker.get-typography-tokens($theme)
|
|
74
|
+
);
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
}
|
|
@@ -77,13 +83,20 @@
|
|
|
77
83
|
@else {}
|
|
78
84
|
}
|
|
79
85
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
(
|
|
86
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
87
|
+
@function _define-overrides() {
|
|
88
|
+
@return (
|
|
89
|
+
(
|
|
90
|
+
namespace: tokens-mtx-datetimepicker.$prefix,
|
|
91
|
+
tokens: tokens-mtx-datetimepicker.get-token-slots(),
|
|
92
|
+
),
|
|
84
93
|
);
|
|
85
94
|
}
|
|
86
95
|
|
|
96
|
+
@mixin overrides($tokens: ()) {
|
|
97
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
98
|
+
}
|
|
99
|
+
|
|
87
100
|
@mixin theme($theme, $options...) {
|
|
88
101
|
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-datetimepicker') {
|
|
89
102
|
@if mat.get-theme-version($theme) == 1 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* An internal class that represents the data corresponding to a single calendar cell.
|
|
@@ -9,17 +9,26 @@ export declare class MtxCalendarCell {
|
|
|
9
9
|
displayValue: string;
|
|
10
10
|
ariaLabel: string;
|
|
11
11
|
enabled: boolean;
|
|
12
|
+
readonly id: number;
|
|
12
13
|
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean);
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* An internal component used to display calendar data in a table.
|
|
16
17
|
* @docs-private
|
|
17
18
|
*/
|
|
18
|
-
export declare class MtxCalendarBody {
|
|
19
|
+
export declare class MtxCalendarBody implements OnChanges {
|
|
20
|
+
private _elementRef;
|
|
21
|
+
private _ngZone;
|
|
22
|
+
private _injector;
|
|
19
23
|
/** The label for the table. (e.g. "Jan 2017"). */
|
|
20
24
|
label: string;
|
|
21
25
|
/** The cells to display in the table. */
|
|
22
26
|
rows: MtxCalendarCell[][];
|
|
27
|
+
/**
|
|
28
|
+
* The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be
|
|
29
|
+
* maintained even as the table resizes.
|
|
30
|
+
*/
|
|
31
|
+
cellAspectRatio: number;
|
|
23
32
|
/** The value in the table that corresponds to today. */
|
|
24
33
|
todayValue: number;
|
|
25
34
|
/** The value in the table that is currently selected. */
|
|
@@ -35,9 +44,22 @@ export declare class MtxCalendarBody {
|
|
|
35
44
|
/** Emits when a new value is selected. */
|
|
36
45
|
selectedValueChange: EventEmitter<number>;
|
|
37
46
|
/** The number of blank cells to put at the beginning for the first row. */
|
|
38
|
-
|
|
47
|
+
_firstRowOffset: number;
|
|
48
|
+
/** Padding for the individual date cells. */
|
|
49
|
+
_cellPadding: string;
|
|
50
|
+
/** Width of an individual cell. */
|
|
51
|
+
_cellWidth: string;
|
|
39
52
|
_cellClicked(cell: MtxCalendarCell): void;
|
|
53
|
+
_emitActiveDateChange(cell: MtxCalendarCell, event: FocusEvent): void;
|
|
40
54
|
_isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Tracking function for rows based on their identity. Ideally we would use some sort of
|
|
57
|
+
* key on the row, but that would require a breaking change for the `rows` input. We don't
|
|
58
|
+
* use the built-in identity tracking, because it logs warnings.
|
|
59
|
+
*/
|
|
60
|
+
_trackRow: (row: MtxCalendarCell[]) => MtxCalendarCell[];
|
|
61
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
62
|
+
_focusActiveCell(movePreview?: boolean): void;
|
|
41
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendarBody, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "allowDisabledSelection": { "alias": "allowDisabledSelection"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendarBody, "[mtx-calendar-body]", ["mtxCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cellAspectRatio": { "alias": "cellAspectRatio"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "allowDisabledSelection": { "alias": "allowDisabledSelection"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
43
65
|
}
|