@angular/material 18.1.0-rc.0 → 18.1.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/button/_button-base.scss +13 -6
- package/button/_button-theme.scss +26 -27
- package/button/_icon-button-theme.scss +18 -9
- package/core/theming/_color-api-backwards-compatibility.scss +2 -0
- package/core/tokens/_token-utils.scss +33 -23
- package/core/tokens/m2/mat/_form-field.scss +2 -3
- package/core/tokens/m2/mat/_optgroup.scss +0 -9
- package/core/tokens/m2/mat/_option.scss +0 -9
- package/core/tokens/m2/mat/_paginator.scss +1 -2
- package/core/tokens/m2/mdc/_circular-progress.scss +2 -2
- package/core/tokens/m2/mdc/_extended-fab.scss +5 -6
- package/core/tokens/m2/mdc/_fab-small.scss +4 -4
- package/core/tokens/m2/mdc/_fab.scss +4 -4
- package/core/tokens/m2/mdc/_protected-button.scss +13 -7
- package/core/tokens/m2/mdc/_slider.scss +3 -6
- package/core/tokens/m2/mdc/_switch.scss +12 -8
- package/core/tokens/m3/mat/_icon-button.scss +31 -2
- package/core/tokens/m3/mdc/_icon-button.scss +21 -2
- package/core/tokens/m3/mdc/_protected-button.scss +22 -5
- package/core/tokens/m3/mdc/_slider.scss +9 -2
- package/core/tokens/m3/mdc/_switch.scss +13 -2
- package/datepicker/index.d.ts +5 -1
- package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2022/autocomplete/autocomplete.mjs +4 -4
- package/esm2022/autocomplete/module.mjs +5 -5
- package/esm2022/badge/badge-module.mjs +5 -5
- package/esm2022/badge/badge.mjs +7 -7
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
- package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
- package/esm2022/button/button-base.mjs +7 -7
- package/esm2022/button/button.mjs +9 -9
- package/esm2022/button/fab.mjs +17 -17
- package/esm2022/button/icon-button.mjs +7 -7
- package/esm2022/button/module.mjs +5 -5
- package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2022/button-toggle/button-toggle.mjs +7 -7
- package/esm2022/card/card.mjs +43 -43
- package/esm2022/card/module.mjs +5 -5
- package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2022/checkbox/checkbox.mjs +4 -4
- package/esm2022/checkbox/module.mjs +9 -9
- package/esm2022/chips/chip-action.mjs +4 -4
- package/esm2022/chips/chip-edit-input.mjs +4 -4
- package/esm2022/chips/chip-grid.mjs +28 -10
- package/esm2022/chips/chip-icons.mjs +10 -10
- package/esm2022/chips/chip-input.mjs +4 -4
- package/esm2022/chips/chip-listbox.mjs +4 -4
- package/esm2022/chips/chip-option.mjs +4 -4
- package/esm2022/chips/chip-row.mjs +4 -4
- package/esm2022/chips/chip-set.mjs +4 -4
- package/esm2022/chips/chip.mjs +4 -4
- package/esm2022/chips/module.mjs +5 -5
- package/esm2022/core/common-behaviors/common-module.mjs +5 -5
- package/esm2022/core/datetime/index.mjs +9 -9
- package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
- package/esm2022/core/error/error-options.mjs +7 -7
- package/esm2022/core/internal-form-field/internal-form-field.mjs +5 -5
- package/esm2022/core/line/line.mjs +8 -8
- package/esm2022/core/option/index.mjs +5 -5
- package/esm2022/core/option/optgroup.mjs +4 -4
- package/esm2022/core/option/option.mjs +4 -4
- package/esm2022/core/private/ripple-loader.mjs +4 -4
- package/esm2022/core/ripple/index.mjs +5 -5
- package/esm2022/core/ripple/ripple.mjs +4 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +4 -4
- package/esm2022/datepicker/calendar.mjs +7 -7
- package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2022/datepicker/date-range-input.mjs +4 -4
- package/esm2022/datepicker/date-range-picker.mjs +4 -4
- package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
- package/esm2022/datepicker/date-selection-model.mjs +10 -10
- package/esm2022/datepicker/datepicker-actions.mjs +10 -10
- package/esm2022/datepicker/datepicker-base.mjs +7 -7
- package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
- package/esm2022/datepicker/datepicker-input.mjs +4 -4
- package/esm2022/datepicker/datepicker-intl.mjs +4 -4
- package/esm2022/datepicker/datepicker-module.mjs +5 -5
- package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
- package/esm2022/datepicker/datepicker.mjs +4 -4
- package/esm2022/datepicker/month-view.mjs +4 -4
- package/esm2022/datepicker/multi-year-view.mjs +4 -4
- package/esm2022/datepicker/year-view.mjs +4 -4
- package/esm2022/dialog/dialog-container.mjs +4 -4
- package/esm2022/dialog/dialog-content-directives.mjs +16 -16
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/dialog/module.mjs +5 -5
- package/esm2022/divider/divider-module.mjs +5 -5
- package/esm2022/divider/divider.mjs +4 -4
- package/esm2022/expansion/accordion.mjs +4 -4
- package/esm2022/expansion/expansion-module.mjs +5 -5
- package/esm2022/expansion/expansion-panel-content.mjs +4 -4
- package/esm2022/expansion/expansion-panel-header.mjs +11 -11
- package/esm2022/expansion/expansion-panel.mjs +7 -7
- package/esm2022/form-field/directives/error.mjs +4 -4
- package/esm2022/form-field/directives/floating-label.mjs +4 -4
- package/esm2022/form-field/directives/hint.mjs +4 -4
- package/esm2022/form-field/directives/label.mjs +4 -4
- package/esm2022/form-field/directives/line-ripple.mjs +4 -4
- package/esm2022/form-field/directives/notched-outline.mjs +5 -5
- package/esm2022/form-field/directives/prefix.mjs +4 -4
- package/esm2022/form-field/directives/suffix.mjs +4 -4
- package/esm2022/form-field/form-field-control.mjs +4 -4
- package/esm2022/form-field/form-field.mjs +6 -6
- package/esm2022/form-field/module.mjs +5 -5
- package/esm2022/grid-list/grid-list-module.mjs +5 -5
- package/esm2022/grid-list/grid-list.mjs +4 -4
- package/esm2022/grid-list/grid-tile.mjs +16 -16
- package/esm2022/icon/icon-module.mjs +5 -5
- package/esm2022/icon/icon-registry.mjs +4 -4
- package/esm2022/icon/icon.mjs +4 -4
- package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
- package/esm2022/input/input.mjs +4 -4
- package/esm2022/input/module.mjs +5 -5
- package/esm2022/list/action-list.mjs +5 -5
- package/esm2022/list/list-base.mjs +7 -7
- package/esm2022/list/list-item-sections.mjs +19 -19
- package/esm2022/list/list-module.mjs +5 -5
- package/esm2022/list/list-option.mjs +20 -6
- package/esm2022/list/list.mjs +14 -8
- package/esm2022/list/nav-list.mjs +5 -5
- package/esm2022/list/selection-list.mjs +6 -6
- package/esm2022/list/subheader.mjs +4 -4
- package/esm2022/menu/menu-content.mjs +4 -4
- package/esm2022/menu/menu-item.mjs +4 -4
- package/esm2022/menu/menu-trigger.mjs +4 -4
- package/esm2022/menu/menu.mjs +4 -4
- package/esm2022/menu/module.mjs +5 -5
- package/esm2022/paginator/module.mjs +5 -5
- package/esm2022/paginator/paginator-intl.mjs +4 -4
- package/esm2022/paginator/paginator.mjs +4 -4
- package/esm2022/progress-bar/module.mjs +5 -5
- package/esm2022/progress-bar/progress-bar.mjs +4 -4
- package/esm2022/progress-spinner/module.mjs +5 -5
- package/esm2022/progress-spinner/progress-spinner.mjs +5 -5
- package/esm2022/radio/module.mjs +5 -5
- package/esm2022/radio/radio.mjs +7 -7
- package/esm2022/select/module.mjs +5 -5
- package/esm2022/select/select.mjs +7 -7
- package/esm2022/sidenav/drawer.mjs +10 -10
- package/esm2022/sidenav/sidenav-module.mjs +5 -5
- package/esm2022/sidenav/sidenav.mjs +10 -10
- package/esm2022/slide-toggle/module.mjs +9 -9
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
- package/esm2022/slider/module.mjs +5 -5
- package/esm2022/slider/slider-input.mjs +7 -7
- package/esm2022/slider/slider-thumb.mjs +4 -4
- package/esm2022/slider/slider.mjs +5 -5
- package/esm2022/snack-bar/module.mjs +5 -5
- package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
- package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
- package/esm2022/snack-bar/snack-bar.mjs +4 -4
- package/esm2022/sort/sort-header-intl.mjs +4 -4
- package/esm2022/sort/sort-header.mjs +4 -4
- package/esm2022/sort/sort-module.mjs +5 -5
- package/esm2022/sort/sort.mjs +4 -4
- package/esm2022/stepper/step-content.mjs +4 -4
- package/esm2022/stepper/step-header.mjs +4 -4
- package/esm2022/stepper/step-label.mjs +4 -4
- package/esm2022/stepper/stepper-button.mjs +7 -7
- package/esm2022/stepper/stepper-icon.mjs +4 -4
- package/esm2022/stepper/stepper-intl.mjs +4 -4
- package/esm2022/stepper/stepper-module.mjs +5 -5
- package/esm2022/stepper/stepper.mjs +7 -7
- package/esm2022/table/cell.mjs +22 -22
- package/esm2022/table/module.mjs +5 -5
- package/esm2022/table/row.mjs +22 -22
- package/esm2022/table/table.mjs +7 -7
- package/esm2022/table/text-column.mjs +4 -4
- package/esm2022/tabs/ink-bar.mjs +4 -4
- package/esm2022/tabs/module.mjs +5 -5
- package/esm2022/tabs/paginated-tab-header.mjs +4 -4
- package/esm2022/tabs/tab-body.mjs +7 -7
- package/esm2022/tabs/tab-content.mjs +4 -4
- package/esm2022/tabs/tab-group.mjs +4 -4
- package/esm2022/tabs/tab-header.mjs +5 -5
- package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
- package/esm2022/tabs/tab-label.mjs +4 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +11 -11
- package/esm2022/tabs/tab.mjs +4 -4
- package/esm2022/tabs/tabs-animations.mjs +2 -2
- package/esm2022/toolbar/toolbar-module.mjs +5 -5
- package/esm2022/toolbar/toolbar.mjs +7 -7
- package/esm2022/tooltip/module.mjs +5 -5
- package/esm2022/tooltip/tooltip.mjs +7 -7
- package/esm2022/tree/node.mjs +10 -10
- package/esm2022/tree/outlet.mjs +4 -4
- package/esm2022/tree/padding.mjs +4 -4
- package/esm2022/tree/toggle.mjs +4 -4
- package/esm2022/tree/tree-module.mjs +5 -5
- package/esm2022/tree/tree.mjs +4 -4
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +10 -10
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +40 -40
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +14 -14
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +64 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +60 -60
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +82 -82
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -25
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +26 -26
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +37 -37
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +76 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +16 -16
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +10 -10
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +8 -8
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +10 -10
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +10 -10
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +22 -22
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +16 -16
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +17 -17
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +13 -13
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +31 -31
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +46 -46
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +10 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-subscript.scss +1 -3
- package/form-field/_form-field-theme.scss +20 -20
- package/form-field/_mdc-text-field-density-overrides.scss +2 -2
- package/form-field/_mdc-text-field-structure-overrides.scss +2 -13
- package/form-field/_mdc-text-field-structure.scss +610 -0
- package/list/_list-inherited-structure.scss +516 -0
- package/list/_list-item-hcm-indicator.scss +2 -3
- package/list/_list-theme.scss +17 -18
- package/list/index.d.ts +2 -0
- package/package.json +7 -7
- 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-spinner/_progress-spinner-theme.scss +11 -14
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/slide-toggle/_slide-toggle-theme.scss +21 -26
- package/slider/_slider-theme.scss +24 -41
- package/tabs/_tabs-common.scss +14 -0
- package/list/_list-option-trailing-avatar-compat.scss +0 -59
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
1
3
|
@use '../../token-utils';
|
|
2
4
|
|
|
3
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -9,9 +11,26 @@ $prefix: (mdc, icon-button);
|
|
|
9
11
|
/// @param {Map} $token-slots Possible token slots
|
|
10
12
|
/// @return {Map} A set of tokens for the MDC icon-button
|
|
11
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
12
|
-
$
|
|
14
|
+
$tokens: token-utils.get-mdc-tokens('icon-button', $systems, $exclude-hardcoded);
|
|
15
|
+
$variant-tokens: (
|
|
16
|
+
primary: (
|
|
17
|
+
icon-color: map.get($systems, md-sys-color, primary)
|
|
18
|
+
),
|
|
19
|
+
secondary: (
|
|
20
|
+
icon-color: map.get($systems, md-sys-color, secondary)
|
|
21
|
+
),
|
|
22
|
+
tertiary: (
|
|
23
|
+
icon-color: map.get($systems, md-sys-color, tertiary)
|
|
24
|
+
),
|
|
25
|
+
error: (
|
|
26
|
+
icon-color: map.get($systems, md-sys-color, error)
|
|
27
|
+
)
|
|
28
|
+
);
|
|
13
29
|
|
|
14
|
-
@return token-utils.namespace-tokens($prefix,
|
|
30
|
+
@return token-utils.namespace-tokens($prefix, (
|
|
31
|
+
_fix-tokens($tokens),
|
|
32
|
+
token-utils.map-values($variant-tokens, meta.get-function(_fix-tokens))
|
|
33
|
+
), $token-slots);
|
|
15
34
|
}
|
|
16
35
|
|
|
17
36
|
/// Fixes inconsistent values in the icon button tokens so that they can produce valid styles.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:meta';
|
|
3
|
+
@use '../../../style/elevation';
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
|
|
5
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -12,7 +13,7 @@ $prefix: (mdc, protected-button);
|
|
|
12
13
|
/// @return {Map} A set of tokens for the MDC protected-button
|
|
13
14
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
15
|
// Note: in M3 the "protected" button is called "elevated".
|
|
15
|
-
$
|
|
16
|
+
$tokens: token-utils.get-mdc-tokens('elevated-button', $systems, $exclude-hardcoded);
|
|
16
17
|
$variant-tokens: (
|
|
17
18
|
primary: (), // Default, no overrides needed.
|
|
18
19
|
secondary: (
|
|
@@ -57,7 +58,7 @@ $prefix: (mdc, protected-button);
|
|
|
57
58
|
);
|
|
58
59
|
|
|
59
60
|
@return token-utils.namespace-tokens($prefix, (
|
|
60
|
-
_fix-tokens($
|
|
61
|
+
_fix-tokens($tokens),
|
|
61
62
|
token-utils.map-values($variant-tokens, meta.get-function(_fix-tokens)),
|
|
62
63
|
), $token-slots);
|
|
63
64
|
}
|
|
@@ -67,11 +68,27 @@ $prefix: (mdc, protected-button);
|
|
|
67
68
|
/// @param {Map} $initial-tokens Map of protected button tokens currently being generated.
|
|
68
69
|
/// @return {Map} The given tokens, with the invalid values replaced with valid ones.
|
|
69
70
|
@function _fix-tokens($initial-tokens) {
|
|
70
|
-
// Need to get the hardcoded values, because they include
|
|
71
|
-
// state.
|
|
71
|
+
// Need to get the hardcoded values, because they include
|
|
72
|
+
// opacities that are used for the disabled state.
|
|
72
73
|
$hardcoded-tokens: token-utils.get-mdc-tokens('elevated-button', (), false);
|
|
74
|
+
$tokens: $initial-tokens;
|
|
75
|
+
$elevation-tokens: (
|
|
76
|
+
container-elevation,
|
|
77
|
+
disabled-container-elevation,
|
|
78
|
+
focus-container-elevation,
|
|
79
|
+
hover-container-elevation,
|
|
80
|
+
pressed-container-elevation,
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
@each $token in $elevation-tokens {
|
|
84
|
+
$elevation: map.get($tokens, $token);
|
|
85
|
+
|
|
86
|
+
@if ($elevation != null) {
|
|
87
|
+
$tokens: map.set($tokens, $token + '-shadow', elevation.get-box-shadow($elevation));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
73
90
|
|
|
74
|
-
@return token-utils.combine-color-tokens($
|
|
91
|
+
@return token-utils.combine-color-tokens($tokens, $hardcoded-tokens, (
|
|
75
92
|
(
|
|
76
93
|
color: disabled-label-text-color,
|
|
77
94
|
opacity: disabled-label-text-opacity,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '../../../style/elevation';
|
|
2
3
|
@use '../../token-utils';
|
|
3
4
|
|
|
4
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -10,7 +11,13 @@ $prefix: (mdc, slider);
|
|
|
10
11
|
/// @param {Map} $token-slots Possible token slots
|
|
11
12
|
/// @return {Map} A set of tokens for the MDC slider
|
|
12
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
|
-
$
|
|
14
|
+
$tokens: token-utils.get-mdc-tokens('slider', $systems, $exclude-hardcoded);
|
|
15
|
+
$handle-elevation: map.get($tokens, 'handle-elevation');
|
|
16
|
+
|
|
17
|
+
@if ($handle-elevation != null) {
|
|
18
|
+
$tokens: map.set($tokens, 'handle-elevation', elevation.get-box-shadow($handle-elevation));
|
|
19
|
+
}
|
|
20
|
+
|
|
14
21
|
$variant-tokens: (
|
|
15
22
|
primary: (), // Default, no overrides needed
|
|
16
23
|
secondary: (
|
|
@@ -57,5 +64,5 @@ $prefix: (mdc, slider);
|
|
|
57
64
|
),
|
|
58
65
|
);
|
|
59
66
|
|
|
60
|
-
@return token-utils.namespace-tokens($prefix, ($
|
|
67
|
+
@return token-utils.namespace-tokens($prefix, ($tokens, $variant-tokens), $token-slots);
|
|
61
68
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '../../../style/elevation';
|
|
2
3
|
@use '../../token-utils';
|
|
3
4
|
|
|
4
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -10,7 +11,17 @@ $prefix: (mdc, switch);
|
|
|
10
11
|
/// @param {Map} $token-slots Possible token slots
|
|
11
12
|
/// @return {Map} A set of tokens for the MDC switch
|
|
12
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
|
-
$
|
|
14
|
+
$tokens: token-utils.get-mdc-tokens('switch', $systems, $exclude-hardcoded);
|
|
15
|
+
$elevation-tokens: (handle-elevation, disabled-handle-elevation);
|
|
16
|
+
|
|
17
|
+
@each $token in $elevation-tokens {
|
|
18
|
+
$elevation: map.get($tokens, $token);
|
|
19
|
+
|
|
20
|
+
@if ($elevation != null) {
|
|
21
|
+
$tokens: map.set($tokens, $token + '-shadow', elevation.get-box-shadow($elevation));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
14
25
|
$variant-tokens: (
|
|
15
26
|
primary: (), // Default, no overrides needed
|
|
16
27
|
secondary: (
|
|
@@ -66,5 +77,5 @@ $prefix: (mdc, switch);
|
|
|
66
77
|
),
|
|
67
78
|
);
|
|
68
79
|
|
|
69
|
-
@return token-utils.namespace-tokens($prefix, ($
|
|
80
|
+
@return token-utils.namespace-tokens($prefix, ($tokens, $variant-tokens), $token-slots);
|
|
70
81
|
}
|
package/datepicker/index.d.ts
CHANGED
|
@@ -52,7 +52,11 @@ import { ValidatorFn } from '@angular/forms';
|
|
|
52
52
|
import { ViewContainerRef } from '@angular/core';
|
|
53
53
|
import { WritableSignal } from '@angular/core';
|
|
54
54
|
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Function that can be used to filter out dates from a calendar.
|
|
57
|
+
* Datepicker can sometimes receive a null value as input for the date argument.
|
|
58
|
+
* This doesn't represent a "null date" but rather signifies that no date has been selected yet in the calendar.
|
|
59
|
+
*/
|
|
56
60
|
export declare type DateFilterFn<D> = (date: D | null) => boolean;
|
|
57
61
|
|
|
58
62
|
/** Possible positions for the datepicker dropdown along the X axis. */
|
|
@@ -17,10 +17,10 @@ export class MatAutocompleteOrigin {
|
|
|
17
17
|
elementRef) {
|
|
18
18
|
this.elementRef = elementRef;
|
|
19
19
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
21
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: MatAutocompleteOrigin, decorators: [{
|
|
24
24
|
type: Directive,
|
|
25
25
|
args: [{
|
|
26
26
|
selector: '[matAutocompleteOrigin]',
|
|
@@ -28,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3",
|
|
|
28
28
|
standalone: true,
|
|
29
29
|
}]
|
|
30
30
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLW9yaWdpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9hdXRvY29tcGxldGUvYXV0b2NvbXBsZXRlLW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFcEQ7OztHQUdHO0FBTUgsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQztJQUNFLGtFQUFrRTtJQUMzRCxVQUFtQztRQUFuQyxlQUFVLEdBQVYsVUFBVSxDQUF5QjtJQUN6QyxDQUFDOzhHQUpPLHFCQUFxQjtrR0FBckIscUJBQXFCOzsyRkFBckIscUJBQXFCO2tCQUxqQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSx5QkFBeUI7b0JBQ25DLFFBQVEsRUFBRSx1QkFBdUI7b0JBQ2pDLFVBQVUsRUFBRSxJQUFJO2lCQUNqQiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge0RpcmVjdGl2ZSwgRWxlbWVudFJlZn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogRGlyZWN0aXZlIGFwcGxpZWQgdG8gYW4gZWxlbWVudCB0byBtYWtlIGl0IHVzYWJsZVxuICogYXMgYSBjb25uZWN0aW9uIHBvaW50IGZvciBhbiBhdXRvY29tcGxldGUgcGFuZWwuXG4gKi9cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1ttYXRBdXRvY29tcGxldGVPcmlnaW5dJyxcbiAgZXhwb3J0QXM6ICdtYXRBdXRvY29tcGxldGVPcmlnaW4nLFxuICBzdGFuZGFsb25lOiB0cnVlLFxufSlcbmV4cG9ydCBjbGFzcyBNYXRBdXRvY29tcGxldGVPcmlnaW4ge1xuICBjb25zdHJ1Y3RvcihcbiAgICAvKiogUmVmZXJlbmNlIHRvIHRoZSBlbGVtZW50IG9uIHdoaWNoIHRoZSBkaXJlY3RpdmUgaXMgYXBwbGllZC4gKi9cbiAgICBwdWJsaWMgZWxlbWVudFJlZjogRWxlbWVudFJlZjxIVE1MRWxlbWVudD4sXG4gICkge31cbn1cbiJdfQ==
|