@angular/material 18.0.0-next.6 → 18.0.0-rc.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 +1 -1
- package/button/index.d.ts +1 -1
- package/core/tokens/_m3-tokens.scss +28 -885
- package/core/tokens/_token-utils.scss +151 -0
- package/core/tokens/m2/mat/_switch.scss +1 -0
- package/core/tokens/m3/_index.scss +161 -0
- package/core/tokens/m3/mat/_app.scss +19 -0
- package/core/tokens/m3/mat/_autocomplete.scss +22 -0
- package/core/tokens/m3/mat/_badge.scss +77 -0
- package/core/tokens/m3/mat/_bottom-sheet.scss +24 -0
- package/core/tokens/m3/mat/_card.scss +24 -0
- package/core/tokens/m3/mat/_checkbox.scss +21 -0
- package/core/tokens/m3/mat/_chip.scss +46 -0
- package/core/tokens/m3/mat/_datepicker.scss +123 -0
- package/core/tokens/m3/mat/_dialog.scss +30 -0
- package/core/tokens/m3/mat/_divider.scss +19 -0
- package/core/tokens/m3/mat/_expansion.scss +41 -0
- package/core/tokens/m3/mat/_fab-small.scss +50 -0
- package/core/tokens/m3/mat/_fab.scss +50 -0
- package/core/tokens/m3/mat/_filled-button.scss +54 -0
- package/core/tokens/m3/mat/_form-field.scss +59 -0
- package/core/tokens/m3/mat/_full-pseudo-checkbox.scss +42 -0
- package/core/tokens/m3/mat/_grid-list.scss +21 -0
- package/core/tokens/m3/mat/_icon-button.scss +27 -0
- package/core/tokens/m3/mat/_icon.scss +33 -0
- package/core/tokens/m3/mat/_list.scss +19 -0
- package/core/tokens/m3/mat/_menu.scss +42 -0
- package/core/tokens/m3/mat/_minimal-pseudo-checkbox.scss +33 -0
- package/core/tokens/m3/mat/_optgroup.scss +22 -0
- package/core/tokens/m3/mat/_option.scss +55 -0
- package/core/tokens/m3/mat/_outlined-button.scss +54 -0
- package/core/tokens/m3/mat/_paginator.scss +27 -0
- package/core/tokens/m3/mat/_protected-button.scss +55 -0
- package/core/tokens/m3/mat/_radio.scss +34 -0
- package/core/tokens/m3/mat/_ripple.scss +19 -0
- package/core/tokens/m3/mat/_select.scss +46 -0
- package/core/tokens/m3/mat/_sidenav.scss +28 -0
- package/core/tokens/m3/mat/_slider.scss +56 -0
- package/core/tokens/m3/mat/_snack-bar.scss +18 -0
- package/core/tokens/m3/mat/_sort.scss +18 -0
- package/core/tokens/m3/mat/_standard-button-toggle.scss +57 -0
- package/core/tokens/m3/mat/_stepper.scss +79 -0
- package/core/tokens/m3/mat/_switch.scss +45 -0
- package/core/tokens/m3/mat/_tab-header.scss +51 -0
- package/core/tokens/m3/mat/_table.scss +28 -0
- package/core/tokens/m3/mat/_text-button.scss +55 -0
- package/core/tokens/m3/mat/_toolbar.scss +23 -0
- package/core/tokens/m3/mat/_tree.scss +22 -0
- package/core/tokens/m3/mdc/_checkbox.scss +110 -0
- package/core/tokens/m3/mdc/_chip.scss +91 -0
- package/core/tokens/m3/mdc/_circular-progress.scss +29 -0
- package/core/tokens/m3/mdc/_dialog.scss +39 -0
- package/core/tokens/m3/mdc/_elevated-card.scss +15 -0
- package/core/tokens/m3/mdc/_extended-fab.scss +21 -0
- package/core/tokens/m3/mdc/_fab-small.scss +21 -0
- package/core/tokens/m3/mdc/_fab.scss +21 -0
- package/core/tokens/m3/mdc/_filled-button.scss +86 -0
- package/core/tokens/m3/mdc/_filled-text-field.scss +92 -0
- package/core/tokens/m3/mdc/_form-field.scss +25 -0
- package/core/tokens/m3/mdc/_icon-button.scss +39 -0
- package/core/tokens/m3/mdc/_linear-progress.scss +32 -0
- package/core/tokens/m3/mdc/_list.scss +37 -0
- package/core/tokens/m3/mdc/_outlined-button.scss +83 -0
- package/core/tokens/m3/mdc/_outlined-card.scss +15 -0
- package/core/tokens/m3/mdc/_outlined-text-field.scss +85 -0
- package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
- package/core/tokens/m3/mdc/_protected-button.scss +84 -0
- package/core/tokens/m3/mdc/_radio.scss +46 -0
- package/core/tokens/m3/mdc/_slider.scss +61 -0
- package/core/tokens/m3/mdc/_snack-bar.scss +15 -0
- package/core/tokens/m3/mdc/_switch.scss +70 -0
- package/core/tokens/m3/mdc/_tab-indicator.scss +33 -0
- package/core/tokens/m3/mdc/_tab.scss +15 -0
- package/core/tokens/m3/mdc/_text-button.scss +79 -0
- package/dialog/index.d.ts +4 -3
- 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 +7 -7
- package/esm2022/button/fab.mjs +13 -13
- package/esm2022/button/icon-button.mjs +8 -8
- 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 +4 -4
- 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 +6 -6
- package/esm2022/chips/chip-row.mjs +6 -6
- package/esm2022/chips/chip-set.mjs +4 -4
- package/esm2022/chips/chip.mjs +5 -5
- 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 +4 -4
- 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 +19 -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 +10 -10
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/esm2022/list/list.mjs +7 -7
- package/esm2022/list/nav-list.mjs +4 -4
- package/esm2022/list/selection-list.mjs +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +10 -10
- package/esm2022/tabs/tab.mjs +4 -4
- 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 +11 -8
- 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 +35 -35
- 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 +45 -45
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +59 -59
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +82 -82
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +28 -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 +25 -25
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +34 -34
- 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 +49 -49
- 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 +7 -7
- 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 +16 -16
- 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 +43 -43
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +14 -11
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -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/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/m3-theme/index_bundled.js +4 -3
- package/schematics/ng-generate/m3-theme/index_bundled.js.map +2 -2
- package/schematics/ng-generate/m3-theme/schema.json +3 -20
- package/core/tokens/_custom-tokens.scss +0 -1918
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../token-utils';
|
|
3
|
+
|
|
4
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
|
+
$prefix: (mdc, switch);
|
|
6
|
+
|
|
7
|
+
/// Generates the tokens for MDC switch
|
|
8
|
+
/// @param {Map} $systems The MDC system tokens
|
|
9
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
|
+
/// @param {Map} $token-slots Possible token slots
|
|
11
|
+
/// @return {Map} A set of tokens for the MDC switch
|
|
12
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
|
+
$mdc-tokens: token-utils.get-mdc-tokens('switch', $systems, $exclude-hardcoded);
|
|
14
|
+
$variant-tokens: (
|
|
15
|
+
primary: (), // Default, no overrides needed
|
|
16
|
+
secondary: (
|
|
17
|
+
selected-focus-handle-color: map.get($systems, md-sys-color, secondary-container),
|
|
18
|
+
selected-focus-icon-color: map.get($systems, md-sys-color, on-secondary-container),
|
|
19
|
+
selected-focus-state-layer-color: map.get($systems, md-sys-color, secondary),
|
|
20
|
+
selected-focus-track-color: map.get($systems, md-sys-color, secondary),
|
|
21
|
+
selected-handle-color: map.get($systems, md-sys-color, on-secondary),
|
|
22
|
+
selected-hover-handle-color: map.get($systems, md-sys-color, secondary-container),
|
|
23
|
+
selected-hover-icon-color: map.get($systems, md-sys-color, on-secondary-container),
|
|
24
|
+
selected-hover-state-layer-color: map.get($systems, md-sys-color, secondary),
|
|
25
|
+
selected-hover-track-color: map.get($systems, md-sys-color, secondary),
|
|
26
|
+
selected-icon-color: map.get($systems, md-sys-color, on-secondary-container),
|
|
27
|
+
selected-pressed-handle-color: map.get($systems, md-sys-color, secondary-container),
|
|
28
|
+
selected-pressed-icon-color: map.get($systems, md-sys-color, on-secondary-container),
|
|
29
|
+
selected-pressed-state-layer-color: map.get($systems, md-sys-color, secondary),
|
|
30
|
+
selected-pressed-track-color: map.get($systems, md-sys-color, secondary),
|
|
31
|
+
selected-track-color: map.get($systems, md-sys-color, secondary),
|
|
32
|
+
),
|
|
33
|
+
tertiary: (
|
|
34
|
+
selected-focus-handle-color: map.get($systems, md-sys-color, tertiary-container),
|
|
35
|
+
selected-focus-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
36
|
+
selected-focus-state-layer-color: map.get($systems, md-sys-color, tertiary),
|
|
37
|
+
selected-focus-track-color: map.get($systems, md-sys-color, tertiary),
|
|
38
|
+
selected-handle-color: map.get($systems, md-sys-color, on-tertiary),
|
|
39
|
+
selected-hover-handle-color: map.get($systems, md-sys-color, tertiary-container),
|
|
40
|
+
selected-hover-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
41
|
+
selected-hover-state-layer-color: map.get($systems, md-sys-color, tertiary),
|
|
42
|
+
selected-hover-track-color: map.get($systems, md-sys-color, tertiary),
|
|
43
|
+
selected-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
44
|
+
selected-pressed-handle-color: map.get($systems, md-sys-color, tertiary-container),
|
|
45
|
+
selected-pressed-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
46
|
+
selected-pressed-state-layer-color: map.get($systems, md-sys-color, tertiary),
|
|
47
|
+
selected-pressed-track-color: map.get($systems, md-sys-color, tertiary),
|
|
48
|
+
selected-track-color: map.get($systems, md-sys-color, tertiary),
|
|
49
|
+
),
|
|
50
|
+
error: (
|
|
51
|
+
selected-focus-handle-color: map.get($systems, md-sys-color, error-container),
|
|
52
|
+
selected-focus-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
53
|
+
selected-focus-state-layer-color: map.get($systems, md-sys-color, error),
|
|
54
|
+
selected-focus-track-color: map.get($systems, md-sys-color, error),
|
|
55
|
+
selected-handle-color: map.get($systems, md-sys-color, on-error),
|
|
56
|
+
selected-hover-handle-color: map.get($systems, md-sys-color, error-container),
|
|
57
|
+
selected-hover-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
58
|
+
selected-hover-state-layer-color: map.get($systems, md-sys-color, error),
|
|
59
|
+
selected-hover-track-color: map.get($systems, md-sys-color, error),
|
|
60
|
+
selected-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
61
|
+
selected-pressed-handle-color: map.get($systems, md-sys-color, error-container),
|
|
62
|
+
selected-pressed-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
63
|
+
selected-pressed-state-layer-color: map.get($systems, md-sys-color, error),
|
|
64
|
+
selected-pressed-track-color: map.get($systems, md-sys-color, error),
|
|
65
|
+
selected-track-color: map.get($systems, md-sys-color, error),
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
@return token-utils.namespace-tokens($prefix, ($mdc-tokens, $variant-tokens), $token-slots);
|
|
70
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../token-utils';
|
|
3
|
+
|
|
4
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
|
+
$prefix: (mdc, tab-indicator);
|
|
6
|
+
|
|
7
|
+
/// Generates the tokens for MDC tab-indicator
|
|
8
|
+
/// @param {Map} $systems The MDC system tokens
|
|
9
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
|
+
/// @param {Map} $token-slots Possible token slots
|
|
11
|
+
/// @return {Map} A set of tokens for the MDC tab-indicator
|
|
12
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
|
+
$tokens: (
|
|
14
|
+
active-indicator-height: token-utils.hardcode(2px, $exclude-hardcoded),
|
|
15
|
+
active-indicator-shape: token-utils.hardcode(0, $exclude-hardcoded),
|
|
16
|
+
active-indicator-color: map.get($systems, md-sys-color, primary),
|
|
17
|
+
);
|
|
18
|
+
$variant-tokens: (
|
|
19
|
+
// Color variants
|
|
20
|
+
primary: (), // Default, no overrides needed
|
|
21
|
+
secondary: (
|
|
22
|
+
active-indicator-color: map.get($systems, md-sys-color, secondary),
|
|
23
|
+
),
|
|
24
|
+
tertiary: (
|
|
25
|
+
active-indicator-color: map.get($systems, md-sys-color, tertiary),
|
|
26
|
+
),
|
|
27
|
+
error: (
|
|
28
|
+
active-indicator-color: map.get($systems, md-sys-color, error),
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
@return token-utils.namespace-tokens($prefix, ($tokens, $variant-tokens), $token-slots);
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use '../../token-utils';
|
|
2
|
+
|
|
3
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
4
|
+
$prefix: (mdc, tab);
|
|
5
|
+
|
|
6
|
+
/// Generates the tokens for MDC tab
|
|
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 tab
|
|
11
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
12
|
+
$mdc-tokens: token-utils.get-mdc-tokens('secondary-navigation-tab', $systems, $exclude-hardcoded);
|
|
13
|
+
|
|
14
|
+
@return token-utils.namespace-tokens($prefix, $mdc-tokens, $token-slots);
|
|
15
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use '../../token-utils';
|
|
4
|
+
|
|
5
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
|
+
$prefix: (mdc, text-button);
|
|
7
|
+
|
|
8
|
+
/// Generates the tokens for MDC text-button
|
|
9
|
+
/// @param {Map} $systems The MDC system tokens
|
|
10
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
|
+
/// @param {Map} $token-slots Possible token slots
|
|
12
|
+
/// @return {Map} A set of tokens for the MDC text-button
|
|
13
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
|
+
$mdc-tokens: token-utils.get-mdc-tokens('text-button', $systems, $exclude-hardcoded);
|
|
15
|
+
$variant-tokens: (
|
|
16
|
+
primary: (), // Default, no overrides needed.
|
|
17
|
+
secondary: (
|
|
18
|
+
focus-label-text-color: map.get($systems, md-sys-color, secondary),
|
|
19
|
+
focus-state-layer-color: map.get($systems, md-sys-color, secondary),
|
|
20
|
+
hover-label-text-color: map.get($systems, md-sys-color, secondary),
|
|
21
|
+
hover-state-layer-color: map.get($systems, md-sys-color, secondary),
|
|
22
|
+
label-text-color: map.get($systems, md-sys-color, secondary),
|
|
23
|
+
pressed-label-text-color: map.get($systems, md-sys-color, secondary),
|
|
24
|
+
pressed-state-layer-color: map.get($systems, md-sys-color, secondary),
|
|
25
|
+
with-icon-focus-icon-color: map.get($systems, md-sys-color, secondary),
|
|
26
|
+
with-icon-hover-icon-color: map.get($systems, md-sys-color, secondary),
|
|
27
|
+
with-icon-icon-color: map.get($systems, md-sys-color, secondary),
|
|
28
|
+
with-icon-pressed-icon-color: map.get($systems, md-sys-color, secondary)
|
|
29
|
+
),
|
|
30
|
+
tertiary: (
|
|
31
|
+
focus-label-text-color: map.get($systems, md-sys-color, tertiary),
|
|
32
|
+
focus-state-layer-color: map.get($systems, md-sys-color, tertiary),
|
|
33
|
+
hover-label-text-color: map.get($systems, md-sys-color, tertiary),
|
|
34
|
+
hover-state-layer-color: map.get($systems, md-sys-color, tertiary),
|
|
35
|
+
label-text-color: map.get($systems, md-sys-color, tertiary),
|
|
36
|
+
pressed-label-text-color: map.get($systems, md-sys-color, tertiary),
|
|
37
|
+
pressed-state-layer-color: map.get($systems, md-sys-color, tertiary),
|
|
38
|
+
with-icon-focus-icon-color: map.get($systems, md-sys-color, tertiary),
|
|
39
|
+
with-icon-hover-icon-color: map.get($systems, md-sys-color, tertiary),
|
|
40
|
+
with-icon-icon-color: map.get($systems, md-sys-color, tertiary),
|
|
41
|
+
with-icon-pressed-icon-color: map.get($systems, md-sys-color, tertiary)
|
|
42
|
+
),
|
|
43
|
+
error: (
|
|
44
|
+
focus-label-text-color: map.get($systems, md-sys-color, error),
|
|
45
|
+
focus-state-layer-color: map.get($systems, md-sys-color, error),
|
|
46
|
+
hover-label-text-color: map.get($systems, md-sys-color, error),
|
|
47
|
+
hover-state-layer-color: map.get($systems, md-sys-color, error),
|
|
48
|
+
label-text-color: map.get($systems, md-sys-color, error),
|
|
49
|
+
pressed-label-text-color: map.get($systems, md-sys-color, error),
|
|
50
|
+
pressed-state-layer-color: map.get($systems, md-sys-color, error),
|
|
51
|
+
with-icon-focus-icon-color: map.get($systems, md-sys-color, error),
|
|
52
|
+
with-icon-hover-icon-color: map.get($systems, md-sys-color, error),
|
|
53
|
+
with-icon-icon-color: map.get($systems, md-sys-color, error),
|
|
54
|
+
with-icon-pressed-icon-color: map.get($systems, md-sys-color, error)
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
@return token-utils.namespace-tokens($prefix, (
|
|
59
|
+
_fix-tokens($mdc-tokens),
|
|
60
|
+
token-utils.map-values($variant-tokens, meta.get-function(_fix-tokens))
|
|
61
|
+
), $token-slots);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/// Fixes inconsistent values in the text button tokens so that they can produce valid styles.
|
|
66
|
+
/// @param {Map} $initial-tokens Map of text button tokens currently being generated.
|
|
67
|
+
/// @return {Map} The given tokens, with the invalid values replaced with valid ones.
|
|
68
|
+
@function _fix-tokens($initial-tokens) {
|
|
69
|
+
// Need to get the hardcoded values, because they include opacities that are used for the disabled
|
|
70
|
+
// state.
|
|
71
|
+
$hardcoded-tokens: token-utils.get-mdc-tokens('text-button', (), false);
|
|
72
|
+
|
|
73
|
+
@return token-utils.combine-color-tokens($initial-tokens, $hardcoded-tokens, (
|
|
74
|
+
(
|
|
75
|
+
color: disabled-label-text-color,
|
|
76
|
+
opacity: disabled-label-text-opacity,
|
|
77
|
+
),
|
|
78
|
+
));
|
|
79
|
+
}
|
package/dialog/index.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ import { FocusMonitor } from '@angular/cdk/a11y';
|
|
|
13
13
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
14
14
|
import { FocusTrapFactory } from '@angular/cdk/a11y';
|
|
15
15
|
import * as i0 from '@angular/core';
|
|
16
|
-
import * as i1 from '@angular/cdk/
|
|
16
|
+
import * as i1 from '@angular/cdk/scrolling';
|
|
17
|
+
import * as i1_2 from '@angular/cdk/dialog';
|
|
17
18
|
import * as i2 from '@angular/cdk/overlay';
|
|
18
19
|
import * as i3 from '@angular/cdk/portal';
|
|
19
20
|
import * as i4 from '@angular/material/core';
|
|
@@ -395,7 +396,7 @@ export declare class MatDialogContainer extends CdkDialogContainer<MatDialogConf
|
|
|
395
396
|
*/
|
|
396
397
|
export declare class MatDialogContent {
|
|
397
398
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContent, never>;
|
|
398
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, true,
|
|
399
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkScrollable; inputs: {}; outputs: {}; }]>;
|
|
399
400
|
}
|
|
400
401
|
|
|
401
402
|
declare abstract class MatDialogLayoutSection implements OnInit, OnDestroy {
|
|
@@ -413,7 +414,7 @@ declare abstract class MatDialogLayoutSection implements OnInit, OnDestroy {
|
|
|
413
414
|
|
|
414
415
|
export declare class MatDialogModule {
|
|
415
416
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogModule, never>;
|
|
416
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDialogModule, never, [typeof
|
|
417
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDialogModule, never, [typeof i1_2.DialogModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.MatCommonModule, typeof i5.MatDialogContainer, typeof i6.MatDialogClose, typeof i6.MatDialogTitle, typeof i6.MatDialogActions, typeof i6.MatDialogContent], [typeof i4.MatCommonModule, typeof i5.MatDialogContainer, typeof i6.MatDialogClose, typeof i6.MatDialogTitle, typeof i6.MatDialogActions, typeof i6.MatDialogContent]>;
|
|
417
418
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatDialogModule>;
|
|
418
419
|
}
|
|
419
420
|
|
|
@@ -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.0.0-
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-rc.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.0.0-rc.0", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-rc.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.0.0-next.5",
|
|
|
28
28
|
standalone: true,
|
|
29
29
|
}]
|
|
30
30
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLW9yaWdpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9hdXRvY29tcGxldGUvYXV0b2NvbXBsZXRlLW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFcEQ7OztHQUdHO0FBTUgsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQztJQUNFLGtFQUFrRTtJQUMzRCxVQUFtQztRQUFuQyxlQUFVLEdBQVYsVUFBVSxDQUF5QjtJQUN6QyxDQUFDO21IQUpPLHFCQUFxQjt1R0FBckIscUJBQXFCOztnR0FBckIscUJBQXFCO2tCQUxqQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSx5QkFBeUI7b0JBQ25DLFFBQVEsRUFBRSx1QkFBdUI7b0JBQ2pDLFVBQVUsRUFBRSxJQUFJO2lCQUNqQiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge0RpcmVjdGl2ZSwgRWxlbWVudFJlZn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogRGlyZWN0aXZlIGFwcGxpZWQgdG8gYW4gZWxlbWVudCB0byBtYWtlIGl0IHVzYWJsZVxuICogYXMgYSBjb25uZWN0aW9uIHBvaW50IGZvciBhbiBhdXRvY29tcGxldGUgcGFuZWwuXG4gKi9cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1ttYXRBdXRvY29tcGxldGVPcmlnaW5dJyxcbiAgZXhwb3J0QXM6ICdtYXRBdXRvY29tcGxldGVPcmlnaW4nLFxuICBzdGFuZGFsb25lOiB0cnVlLFxufSlcbmV4cG9ydCBjbGFzcyBNYXRBdXRvY29tcGxldGVPcmlnaW4ge1xuICBjb25zdHJ1Y3RvcihcbiAgICAvKiogUmVmZXJlbmNlIHRvIHRoZSBlbGVtZW50IG9uIHdoaWNoIHRoZSBkaXJlY3RpdmUgaXMgYXBwbGllZC4gKi9cbiAgICBwdWJsaWMgZWxlbWVudFJlZjogRWxlbWVudFJlZjxIVE1MRWxlbWVudD4sXG4gICkge31cbn1cbiJdfQ==
|