@angular/material 18.1.0-next.1 → 18.1.0-next.3
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/autocomplete/index.d.ts +4 -1
- package/badge/index.d.ts +4 -1
- package/bottom-sheet/index.d.ts +1 -2
- package/button/index.d.ts +7 -1
- package/checkbox/index.d.ts +12 -2
- package/chips/index.d.ts +11 -3
- package/core/_core-theme.scss +8 -14
- package/core/_core.scss +18 -4
- package/core/index.d.ts +1 -1
- package/core/m2/_typography.scss +1 -1
- package/core/theming/_config-validation.scss +3 -2
- package/core/theming/_definition.scss +4 -2
- package/core/theming/_palettes.scss +2 -0
- package/core/tokens/_density.scss +1 -0
- package/core/tokens/_m3-tokens.scss +168 -152
- package/core/tokens/m2/mat/_app.scss +13 -1
- package/core/tokens/m2/mat/_menu.scss +3 -0
- package/core/tokens/m2/mat/_paginator.scss +1 -0
- package/core/tokens/m3/mat/_app.scss +9 -0
- package/core/tokens/m3/mat/_divider.scss +1 -1
- package/core/tokens/m3/mat/_expansion.scss +1 -1
- package/core/tokens/m3/mat/_menu.scss +3 -0
- package/core/tokens/m3/mat/_stepper.scss +1 -1
- package/core/tokens/m3/mat/_table.scss +1 -1
- package/datepicker/index.d.ts +27 -3
- package/dialog/index.d.ts +0 -1
- package/dialog/testing/index.d.ts +1 -0
- package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.mjs +38 -10
- 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 +11 -8
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +9 -10
- 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 +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-config.mjs +1 -1
- package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2022/checkbox/checkbox.mjs +6 -13
- 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 +14 -7
- 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 +11 -16
- package/esm2022/chips/chip-set.mjs +10 -6
- package/esm2022/chips/chip.mjs +9 -9
- 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 +5 -5
- package/esm2022/core/option/option.mjs +5 -5
- 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 +21 -17
- package/esm2022/datepicker/date-range-input.mjs +20 -10
- 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 +24 -23
- package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
- package/esm2022/datepicker/datepicker-input.mjs +18 -7
- 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 -9
- 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/dialog/testing/dialog-opener.mjs +4 -3
- 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 +15 -9
- 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 +11 -5
- 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 +6 -6
- package/esm2022/list/list.mjs +7 -7
- package/esm2022/list/nav-list.mjs +4 -4
- package/esm2022/list/selection-list.mjs +12 -5
- 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 +15 -6
- 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 +5 -5
- 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 +9 -8
- 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 +4 -4
- package/esm2022/slider/module.mjs +5 -5
- package/esm2022/slider/slider-input.mjs +7 -7
- package/esm2022/slider/slider-interface.mjs +2 -2
- 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 +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 +18 -12
- 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 +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 +41 -13
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +14 -11
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +15 -16
- 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 +34 -34
- 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 +59 -53
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +61 -61
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +121 -88
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +3 -2
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -30
- 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 +43 -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 +17 -11
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -52
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +27 -18
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -11
- 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 +12 -11
- 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 +14 -14
- 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 +52 -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/index.d.ts +12 -2
- package/icon/index.d.ts +14 -2
- package/list/_list-theme.scss +8 -5
- package/list/index.d.ts +8 -1
- package/package.json +2 -2
- package/paginator/index.d.ts +7 -1
- 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/radio/_radio-common.scss +238 -0
- package/radio/_radio-theme.scss +25 -32
- package/radio/index.d.ts +7 -1
- package/schematics/ng-add/fonts/material-fonts.js +2 -3
- package/schematics/ng-add/fonts/material-fonts.mjs +2 -3
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.js +3 -4
- package/schematics/ng-add/package-config.mjs +3 -4
- package/schematics/ng-add/setup-project.js +2 -2
- package/schematics/ng-add/setup-project.mjs +2 -2
- package/schematics/ng-add/theming/create-custom-theme.js +2 -3
- package/schematics/ng-add/theming/create-custom-theme.mjs +2 -3
- package/schematics/ng-add/theming/theming.js +3 -4
- package/schematics/ng-add/theming/theming.mjs +3 -4
- package/schematics/ng-generate/address-form/index.js +2 -2
- package/schematics/ng-generate/address-form/index.mjs +2 -2
- package/schematics/ng-generate/dashboard/index.js +2 -2
- package/schematics/ng-generate/dashboard/index.mjs +2 -2
- package/schematics/ng-generate/m3-theme/index_bundled.js +81 -2
- package/schematics/ng-generate/m3-theme/index_bundled.js.map +3 -3
- package/schematics/ng-generate/navigation/index.js +2 -2
- package/schematics/ng-generate/navigation/index.mjs +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/table/index.js +2 -2
- package/schematics/ng-generate/table/index.mjs +2 -2
- package/schematics/ng-generate/tree/index.js +2 -2
- package/schematics/ng-generate/tree/index.mjs +2 -2
- package/schematics/ng-update/index_bundled.js +160 -24
- package/schematics/ng-update/index_bundled.js.map +2 -2
- package/slide-toggle/index.d.ts +7 -1
- package/slider/index.d.ts +1 -1
- package/sort/index.d.ts +1 -1
- package/stepper/index.d.ts +21 -3
- package/tabs/index.d.ts +7 -1
- package/toolbar/index.d.ts +7 -1
- package/tree/index.d.ts +2 -2
package/_index.scss
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
@forward './slider/slider-theme' as slider-* show slider-theme, slider-color, slider-typography,
|
|
128
128
|
slider-density, slider-base, slider-overrides;
|
|
129
129
|
@forward './snack-bar/snack-bar-theme' as snack-bar-* show snack-bar-theme, snack-bar-color,
|
|
130
|
-
snack-bar-typography, snack-bar-density, snack-bar-base, bar-overrides;
|
|
130
|
+
snack-bar-typography, snack-bar-density, snack-bar-base, snack-bar-overrides;
|
|
131
131
|
@forward './sort/sort-theme' as sort-* show sort-theme, sort-color, sort-typography, sort-density,
|
|
132
132
|
sort-base, sort-overrides;
|
|
133
133
|
@forward './stepper/stepper-theme' as stepper-* show stepper-theme, stepper-color,
|
package/autocomplete/index.d.ts
CHANGED
|
@@ -289,6 +289,9 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
289
289
|
private _closingActionsSubscription;
|
|
290
290
|
/** Subscription to viewport size changes. */
|
|
291
291
|
private _viewportSubscription;
|
|
292
|
+
/** Implements BreakpointObserver to be used to detect handset landscape */
|
|
293
|
+
private _breakpointObserver;
|
|
294
|
+
private _handsetLandscapeSubscription;
|
|
292
295
|
/**
|
|
293
296
|
* Whether the autocomplete can open the next time it is focused. Used to prevent a focused,
|
|
294
297
|
* closed autocomplete from being reopened if the user switches to another browser tab and then
|
|
@@ -340,7 +343,7 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
340
343
|
autocompleteDisabled: boolean;
|
|
341
344
|
private _initialized;
|
|
342
345
|
private _injector;
|
|
343
|
-
constructor(_element: ElementRef<HTMLInputElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _zone: NgZone, _changeDetectorRef: ChangeDetectorRef, scrollStrategy: any, _dir: Directionality | null, _formField: MatFormField | null, _document: any, _viewportRuler: ViewportRuler, _defaults?: MatAutocompleteDefaultOptions | null | undefined);
|
|
346
|
+
constructor(_element: ElementRef<HTMLInputElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _zone: NgZone, _changeDetectorRef: ChangeDetectorRef, scrollStrategy: any, _dir: Directionality | null, _formField: MatFormField | null, _document: any, _viewportRuler: ViewportRuler, _defaults?: (MatAutocompleteDefaultOptions | null) | undefined);
|
|
344
347
|
/** Class to apply to the panel when it's above the input. */
|
|
345
348
|
private _aboveClass;
|
|
346
349
|
ngAfterViewInit(): void;
|
package/badge/index.d.ts
CHANGED
|
@@ -25,7 +25,10 @@ export declare class MatBadge implements OnInit, OnDestroy {
|
|
|
25
25
|
private _ariaDescriber;
|
|
26
26
|
private _renderer;
|
|
27
27
|
private _animationMode?;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The color of the badge. Can be `primary`, `accent`, or `warn`.
|
|
30
|
+
* Not recommended in M3, for more information see https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
|
|
31
|
+
*/
|
|
29
32
|
get color(): ThemePalette;
|
|
30
33
|
set color(value: ThemePalette);
|
|
31
34
|
private _color;
|
package/bottom-sheet/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare class MatBottomSheet implements OnDestroy {
|
|
|
54
54
|
/** Reference to the currently opened bottom sheet. */
|
|
55
55
|
get _openedBottomSheetRef(): MatBottomSheetRef<any> | null;
|
|
56
56
|
set _openedBottomSheetRef(value: MatBottomSheetRef<any> | null);
|
|
57
|
-
constructor(_overlay: Overlay, injector: Injector, _parentBottomSheet: MatBottomSheet, _defaultOptions?: MatBottomSheetConfig
|
|
57
|
+
constructor(_overlay: Overlay, injector: Injector, _parentBottomSheet: MatBottomSheet, _defaultOptions?: MatBottomSheetConfig | undefined);
|
|
58
58
|
/**
|
|
59
59
|
* Opens a bottom sheet containing the given component.
|
|
60
60
|
* @param component Type of the component to load into the bottom sheet.
|
|
@@ -148,7 +148,6 @@ export declare class MatBottomSheetContainer extends CdkDialogContainer implemen
|
|
|
148
148
|
_onAnimationDone(event: AnimationEvent_2): void;
|
|
149
149
|
_onAnimationStart(event: AnimationEvent_2): void;
|
|
150
150
|
protected _captureInitialFocus(): void;
|
|
151
|
-
private _toggleClass;
|
|
152
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, [null, null, { optional: true; }, null, null, null, null, null, null]>;
|
|
153
152
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
|
|
154
153
|
}
|
package/button/index.d.ts
CHANGED
|
@@ -114,7 +114,13 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
|
|
|
114
114
|
*/
|
|
115
115
|
get ripple(): MatRipple;
|
|
116
116
|
set ripple(v: MatRipple);
|
|
117
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Theme color of the button. This API is supported in M2 themes only, it has
|
|
119
|
+
* no effect in M3 themes.
|
|
120
|
+
*
|
|
121
|
+
* For information on applying color variants in M3, see
|
|
122
|
+
* https://material.angular.io/guide/theming#using-component-color-variants.
|
|
123
|
+
*/
|
|
118
124
|
color?: string | null;
|
|
119
125
|
/** Whether the ripple effect is disabled or not. */
|
|
120
126
|
get disableRipple(): boolean;
|
package/checkbox/index.d.ts
CHANGED
|
@@ -109,7 +109,13 @@ export declare class MatCheckbox implements AfterViewInit, OnChanges, ControlVal
|
|
|
109
109
|
_labelElement: ElementRef<HTMLInputElement>;
|
|
110
110
|
/** Tabindex for the checkbox. */
|
|
111
111
|
tabIndex: number;
|
|
112
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* Theme color of the checkbox. This API is supported in M2 themes only, it
|
|
114
|
+
* has no effect in M3 themes.
|
|
115
|
+
*
|
|
116
|
+
* For information on applying color variants in M3, see
|
|
117
|
+
* https://material.angular.io/guide/theming#using-component-color-variants.
|
|
118
|
+
*/
|
|
113
119
|
color: string | undefined;
|
|
114
120
|
/**
|
|
115
121
|
* Reference to the MatRipple instance of the checkbox.
|
|
@@ -211,7 +217,11 @@ export declare type MatCheckboxClickAction = 'noop' | 'check' | 'check-indetermi
|
|
|
211
217
|
|
|
212
218
|
/** Default `mat-checkbox` options that can be overridden. */
|
|
213
219
|
export declare interface MatCheckboxDefaultOptions {
|
|
214
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Default theme color palette to be used for checkboxes. This API is supported in M2 themes
|
|
222
|
+
* only, it has no effect in M3 themes. For information on applying color variants in M3, see
|
|
223
|
+
* https://material.angular.io/guide/theming#using-component-color-variants
|
|
224
|
+
*/
|
|
215
225
|
color?: ThemePalette;
|
|
216
226
|
/** Default checkbox click action for checkboxes. */
|
|
217
227
|
clickAction?: MatCheckboxClickAction;
|
package/chips/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { FormGroupDirective } from '@angular/forms';
|
|
|
13
13
|
import * as i0 from '@angular/core';
|
|
14
14
|
import * as i1 from '@angular/material/core';
|
|
15
15
|
import { InjectionToken } from '@angular/core';
|
|
16
|
+
import { Injector } from '@angular/core';
|
|
16
17
|
import { MatFormField } from '@angular/material/form-field';
|
|
17
18
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
18
19
|
import { MatRipple } from '@angular/material/core';
|
|
@@ -184,7 +185,13 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
184
185
|
get value(): any;
|
|
185
186
|
set value(value: any);
|
|
186
187
|
protected _value: any;
|
|
187
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* Theme color of the chip. This API is supported in M2 themes only, it has no
|
|
190
|
+
* effect in M3 themes.
|
|
191
|
+
*
|
|
192
|
+
* For information on applying color variants in M3, see
|
|
193
|
+
* https://material.angular.io/guide/theming#using-component-color-variants.
|
|
194
|
+
*/
|
|
188
195
|
color?: string | null;
|
|
189
196
|
/**
|
|
190
197
|
* Determines whether or not the chip displays the remove styling and emits (removed) events.
|
|
@@ -226,7 +233,7 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
226
233
|
* Used to improve initial load time of large applications.
|
|
227
234
|
*/
|
|
228
235
|
_rippleLoader: MatRippleLoader;
|
|
229
|
-
|
|
236
|
+
protected _injector: Injector;
|
|
230
237
|
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
231
238
|
ngOnInit(): void;
|
|
232
239
|
ngAfterViewInit(): void;
|
|
@@ -354,7 +361,7 @@ export declare interface MatChipEvent {
|
|
|
354
361
|
* An extension of the MatChipSet component used with MatChipRow chips and
|
|
355
362
|
* the matChipInputFor directive.
|
|
356
363
|
*/
|
|
357
|
-
export declare class MatChipGrid extends MatChipSet implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy {
|
|
364
|
+
export declare class MatChipGrid extends MatChipSet implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy, OnInit {
|
|
358
365
|
ngControl: NgControl;
|
|
359
366
|
/**
|
|
360
367
|
* Implemented as part of MatFormFieldControl.
|
|
@@ -447,6 +454,7 @@ export declare class MatChipGrid extends MatChipSet implements AfterContentInit,
|
|
|
447
454
|
get errorState(): boolean;
|
|
448
455
|
set errorState(value: boolean);
|
|
449
456
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngControl: NgControl);
|
|
457
|
+
ngOnInit(): void;
|
|
450
458
|
ngAfterContentInit(): void;
|
|
451
459
|
ngAfterViewInit(): void;
|
|
452
460
|
ngDoCheck(): void;
|
package/core/_core-theme.scss
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
@use './theming/theming';
|
|
2
2
|
@use './theming/inspection';
|
|
3
3
|
@use './theming/validation';
|
|
4
|
-
@use './style/private';
|
|
5
4
|
@use './ripple/ripple-theme';
|
|
6
5
|
@use './option/option-theme';
|
|
7
6
|
@use './option/optgroup-theme';
|
|
8
7
|
@use './selection/pseudo-checkbox/pseudo-checkbox-theme';
|
|
9
|
-
@use './style/elevation';
|
|
10
8
|
@use './style/sass-utils';
|
|
11
9
|
@use './typography/typography';
|
|
12
10
|
@use './tokens/token-utils';
|
|
13
11
|
@use './tokens/m2/mat/app' as tokens-mat-app;
|
|
14
12
|
@use './tokens/m2/mat/ripple' as tokens-mat-ripple;
|
|
15
13
|
@use './tokens/m2/mat/option' as tokens-mat-option;
|
|
14
|
+
@use './tokens/m2/mat/optgroup' as tokens-mat-optgroup;
|
|
16
15
|
@use './tokens/m2/mat/full-pseudo-checkbox' as tokens-mat-full-pseudo-checkbox;
|
|
17
16
|
@use './tokens/m2/mat/minimal-pseudo-checkbox' as tokens-mat-minimal-pseudo-checkbox;
|
|
18
17
|
|
|
@@ -41,6 +40,10 @@ $_has-inserted-loaded-marker: false;
|
|
|
41
40
|
@include option-theme.base($theme);
|
|
42
41
|
@include optgroup-theme.base($theme);
|
|
43
42
|
@include pseudo-checkbox-theme.base($theme);
|
|
43
|
+
@include sass-utils.current-selector-or-root() {
|
|
44
|
+
@include token-utils.create-token-values(tokens-mat-app.$prefix,
|
|
45
|
+
tokens-mat-app.get-unthemable-tokens());
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
// The marker is a concrete style no matter which Material version we're targeting.
|
|
@@ -60,18 +63,6 @@ $_has-inserted-loaded-marker: false;
|
|
|
60
63
|
@include token-utils.create-token-values(tokens-mat-app.$prefix,
|
|
61
64
|
tokens-mat-app.get-color-tokens($theme));
|
|
62
65
|
}
|
|
63
|
-
|
|
64
|
-
// Provides external CSS classes for each elevation value. Each CSS class is formatted as
|
|
65
|
-
// `mat-elevation-z$zValue` where `$zValue` corresponds to the z-space to which the element is
|
|
66
|
-
// elevated.
|
|
67
|
-
@for $zValue from 0 through 24 {
|
|
68
|
-
$selector: elevation.$prefix + $zValue;
|
|
69
|
-
// We need the `mat-mdc-elevation-specific`, because some MDC mixins
|
|
70
|
-
// come with elevation baked in and we don't have a way of removing it.
|
|
71
|
-
.#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
|
|
72
|
-
@include private.private-theme-elevation($zValue, $theme);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
66
|
}
|
|
76
67
|
}
|
|
77
68
|
|
|
@@ -149,6 +140,8 @@ $_has-inserted-loaded-marker: false;
|
|
|
149
140
|
$mat-app-tokens: token-utils.get-tokens-for($tokens, tokens-mat-app.$prefix, $options...);
|
|
150
141
|
$mat-ripple-tokens: token-utils.get-tokens-for($tokens, tokens-mat-ripple.$prefix, $options...);
|
|
151
142
|
$mat-option-tokens: token-utils.get-tokens-for($tokens, tokens-mat-option.$prefix, $options...);
|
|
143
|
+
$mat-optgroup-tokens:
|
|
144
|
+
token-utils.get-tokens-for($tokens, tokens-mat-optgroup.$prefix, $options...);
|
|
152
145
|
$mat-full-pseudo-checkbox-tokens: token-utils.get-tokens-for($tokens,
|
|
153
146
|
tokens-mat-full-pseudo-checkbox.$prefix, $options...);
|
|
154
147
|
$mat-minimal-pseudo-checkbox-tokens: token-utils.get-tokens-for($tokens,
|
|
@@ -157,6 +150,7 @@ $_has-inserted-loaded-marker: false;
|
|
|
157
150
|
@include token-utils.create-token-values(tokens-mat-app.$prefix, $mat-app-tokens);
|
|
158
151
|
@include token-utils.create-token-values(tokens-mat-ripple.$prefix, $mat-ripple-tokens);
|
|
159
152
|
@include token-utils.create-token-values(tokens-mat-option.$prefix, $mat-option-tokens);
|
|
153
|
+
@include token-utils.create-token-values(tokens-mat-optgroup.$prefix, $mat-optgroup-tokens);
|
|
160
154
|
@include token-utils.create-token-values(tokens-mat-full-pseudo-checkbox.$prefix,
|
|
161
155
|
$mat-full-pseudo-checkbox-tokens);
|
|
162
156
|
@include token-utils.create-token-values(tokens-mat-minimal-pseudo-checkbox.$prefix,
|
package/core/_core.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use './tokens/m2/mat/app' as tokens-mat-app;
|
|
3
3
|
@use './tokens/token-utils';
|
|
4
4
|
@use './ripple/ripple';
|
|
5
|
+
@use './style/elevation';
|
|
5
6
|
@use './focus-indicators/private';
|
|
6
7
|
@use './mdc-helpers/mdc-helpers';
|
|
7
8
|
|
|
@@ -18,13 +19,26 @@
|
|
|
18
19
|
// Wrapper element that provides the theme background when the
|
|
19
20
|
// user's content isn't inside of a `mat-sidenav-container`.
|
|
20
21
|
@at-root {
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
// Note: we need to emit fallback values here to avoid errors in internal builds.
|
|
23
|
+
@include mdc-helpers.disable-mdc-fallback-declarations {
|
|
24
|
+
@include token-utils.use-tokens(tokens-mat-app.$prefix, tokens-mat-app.get-token-slots()) {
|
|
25
|
+
.mat-app-background {
|
|
25
26
|
@include token-utils.create-token-slot(background-color, background-color, transparent);
|
|
26
27
|
@include token-utils.create-token-slot(color, text-color, inherit);
|
|
27
28
|
}
|
|
29
|
+
|
|
30
|
+
// Provides external CSS classes for each elevation value. Each CSS class is formatted as
|
|
31
|
+
// `mat-elevation-z$zValue` where `$zValue` corresponds to the z-space to which the element
|
|
32
|
+
// is elevated.
|
|
33
|
+
@for $zValue from 0 through 24 {
|
|
34
|
+
$selector: elevation.$prefix + $zValue;
|
|
35
|
+
// We need the `mat-mdc-elevation-specific`, because some MDC mixins
|
|
36
|
+
// come with elevation baked in and we don't have a way of removing it.
|
|
37
|
+
.#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
|
|
38
|
+
@include token-utils.create-token-slot(box-shadow, 'elevation-shadow-level-#{$zValue}',
|
|
39
|
+
none);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
28
42
|
}
|
|
29
43
|
}
|
|
30
44
|
}
|
package/core/index.d.ts
CHANGED
|
@@ -970,7 +970,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
|
|
|
970
970
|
* invalid date for all other values.
|
|
971
971
|
*/
|
|
972
972
|
deserialize(value: any): Date | null;
|
|
973
|
-
isDateInstance(obj: any):
|
|
973
|
+
isDateInstance(obj: any): obj is Date;
|
|
974
974
|
isValid(date: Date): boolean;
|
|
975
975
|
invalid(): Date;
|
|
976
976
|
/** Creates a date but allows the month and date to overflow. */
|
package/core/m2/_typography.scss
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
/// @param {Map} $input Configuration for the "input" typographic level.
|
|
49
49
|
/// @returns {Map} A typography config for the application.
|
|
50
50
|
///
|
|
51
|
-
/// @deprecated Use `mat.m2-define-typography-config` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
|
|
51
|
+
/// @deprecated Use `mat.m2-define-typography-config` instead. See https://v17.material.angular.io/guide/mdc-migration for information about migrating.
|
|
52
52
|
/// @breaking-change 17.0.0
|
|
53
53
|
@function define-legacy-typography-config(
|
|
54
54
|
$font-family: 'Roboto, "Helvetica Neue", sans-serif',
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
@if $err {
|
|
90
90
|
@return (#{'$config should be a color configuration object. Got:'} $config);
|
|
91
91
|
}
|
|
92
|
-
$allowed: (theme-type, primary, tertiary, use-system-variables);
|
|
92
|
+
$allowed: (theme-type, primary, tertiary, use-system-variables, system-variables-prefix);
|
|
93
93
|
$err: validation.validate-allowed-values(map.keys($config or ()), $allowed...);
|
|
94
94
|
@if $err {
|
|
95
95
|
@return (
|
|
@@ -134,7 +134,8 @@
|
|
|
134
134
|
bold-weight,
|
|
135
135
|
medium-weight,
|
|
136
136
|
regular-weight,
|
|
137
|
-
use-system-variables
|
|
137
|
+
use-system-variables,
|
|
138
|
+
system-variables-prefix
|
|
138
139
|
);
|
|
139
140
|
$err: validation.validate-allowed-values(map.keys($config or ()), $allowed...);
|
|
140
141
|
@if $err {
|
|
@@ -40,6 +40,7 @@ $theme-version: 1;
|
|
|
40
40
|
$type: map.get($config, theme-type) or light;
|
|
41
41
|
$primary: map.get($config, primary) or palettes.$violet-palette;
|
|
42
42
|
$tertiary: map.get($config, tertiary) or $primary;
|
|
43
|
+
$system-variables-prefix: map.get($config, system-variables-prefix) or sys;
|
|
43
44
|
sass-utils.$use-system-color-variables: map.get($config, use-system-variables) or false;
|
|
44
45
|
|
|
45
46
|
@return (
|
|
@@ -55,7 +56,7 @@ $theme-version: 1;
|
|
|
55
56
|
error: map.get($primary, error),
|
|
56
57
|
),
|
|
57
58
|
color-tokens: m3-tokens.generate-color-tokens(
|
|
58
|
-
$type, $primary, $tertiary, map.get($primary, error))
|
|
59
|
+
$type, $primary, $tertiary, map.get($primary, error), $system-variables-prefix)
|
|
59
60
|
)
|
|
60
61
|
);
|
|
61
62
|
}
|
|
@@ -74,6 +75,7 @@ $theme-version: 1;
|
|
|
74
75
|
$bold: map.get($config, bold-weight) or 700;
|
|
75
76
|
$medium: map.get($config, medium-weight) or 500;
|
|
76
77
|
$regular: map.get($config, regular-weight) or 400;
|
|
78
|
+
$system-variables-prefix: map.get($config, system-variables-prefix) or sys;
|
|
77
79
|
sass-utils.$use-system-typography-variables: map.get($config, use-system-variables) or false;
|
|
78
80
|
|
|
79
81
|
@return (
|
|
@@ -87,7 +89,7 @@ $theme-version: 1;
|
|
|
87
89
|
regular: $regular,
|
|
88
90
|
),
|
|
89
91
|
typography-tokens: m3-tokens.generate-typography-tokens(
|
|
90
|
-
$brand, $plain, $bold, $medium, $regular)
|
|
92
|
+
$brand, $plain, $bold, $medium, $regular, $system-variables-prefix)
|
|
91
93
|
)
|
|
92
94
|
);
|
|
93
95
|
}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
/// The Material Design spec references some neutral hues that are not generated by
|
|
13
13
|
/// https://m3.material.io/theme-builder. For now we use this function to estimate the missing hues
|
|
14
14
|
/// by blending the nearest hues that are generated.
|
|
15
|
+
/// Note: when updating, the corresponding logic in the theme generation schematic should be
|
|
16
|
+
/// updated as well. See `src/material/schematics/ng-generate/m3-theme/index.ts#patchMissingHues`
|
|
15
17
|
@function _patch-missing-hues($palette) {
|
|
16
18
|
$neutral: map.get($palette, neutral);
|
|
17
19
|
$palette: map.set($palette, neutral, 4, _estimate-hue($neutral, 4, 0, 10));
|
|
@@ -120,6 +120,7 @@ $_density-tokens: (
|
|
|
120
120
|
container-size: (56px, 52px, 48px, 40px),
|
|
121
121
|
form-field-container-height: (40px, 40px, 40px, 40px, 40px, 36px),
|
|
122
122
|
form-field-container-vertical-padding: (8px, 8px, 8px, 8px, 8px, 6px),
|
|
123
|
+
touch-target-display: (block, block, none, none),
|
|
123
124
|
),
|
|
124
125
|
(mat, radio): (
|
|
125
126
|
touch-target-display: (block, block, none, none),
|