@angular/material 17.3.0-rc.0 → 18.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chips/index.d.ts +1 -0
- package/core/index.d.ts +4 -0
- package/core/theming/_theming.scss +4 -3
- package/core/tokens/m2/mat/_fab-small.scss +3 -1
- package/core/tokens/m2/mat/_fab.scss +3 -1
- package/core/tokens/m2/mat/_filled-button.scss +3 -1
- package/core/tokens/m2/mat/_icon-button.scss +5 -1
- package/core/tokens/m2/mat/_outlined-button.scss +5 -1
- package/core/tokens/m2/mat/_protected-button.scss +3 -1
- package/core/tokens/m2/mat/_text-button.scss +5 -1
- package/datepicker/index.d.ts +8 -2
- 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 +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 +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 +4 -4
- package/esm2022/chips/chip-row.mjs +4 -4
- package/esm2022/chips/chip-set.mjs +4 -4
- package/esm2022/chips/chip.mjs +10 -10
- 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 +6 -6
- 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 +15 -17
- 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 +18 -11
- 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 +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 +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 +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 +4 -4
- package/esm2022/slider/module.mjs +5 -5
- package/esm2022/slider/slider-input.mjs +9 -7
- package/esm2022/slider/slider-interface.mjs +1 -1
- 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 +10 -9
- 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 +13 -10
- 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 +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 +47 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +61 -61
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +104 -98
- 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 +25 -25
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -36
- 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 +14 -14
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +18 -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 +49 -48
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +16 -13
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +7 -7
- package/schematics/migration.json +4 -4
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +2099 -2090
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
- package/schematics/ng-update/index_bundled.js +5 -404
- package/schematics/ng-update/index_bundled.js.map +4 -4
- package/slider/index.d.ts +2 -0
- package/tabs/index.d.ts +1 -0
- package/tooltip/index.d.ts +1 -0
package/chips/index.d.ts
CHANGED
|
@@ -226,6 +226,7 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
226
226
|
* Used to improve initial load time of large applications.
|
|
227
227
|
*/
|
|
228
228
|
_rippleLoader: MatRippleLoader;
|
|
229
|
+
private _injector;
|
|
229
230
|
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
230
231
|
ngOnInit(): void;
|
|
231
232
|
ngAfterViewInit(): void;
|
package/core/index.d.ts
CHANGED
|
@@ -1040,6 +1040,10 @@ export declare interface RippleGlobalOptions {
|
|
|
1040
1040
|
* default, ripples will wait for the enter animation to complete and for mouse or touch release.
|
|
1041
1041
|
*/
|
|
1042
1042
|
terminateOnPointerUp?: boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* A namespace to use for ripple loader to allow multiple instances to exist on the same page.
|
|
1045
|
+
*/
|
|
1046
|
+
namespace?: string;
|
|
1043
1047
|
}
|
|
1044
1048
|
|
|
1045
1049
|
/**
|
|
@@ -432,9 +432,10 @@ $_internals: _mat-theming-internals-do-not-access;
|
|
|
432
432
|
// Checks for duplicate styles in a `theme-version: 0` style theme.
|
|
433
433
|
@mixin _check-duplicate-theme-styles-v0($theme-or-color-config, $id) {
|
|
434
434
|
$theme: private-legacy-get-theme($theme-or-color-config);
|
|
435
|
-
$color-config: get-color-config($theme);
|
|
436
|
-
$density-config: get-density-config($theme);
|
|
437
|
-
$typography-config:
|
|
435
|
+
$color-config: map.get($theme, $_internals, m2-config, color) or get-color-config($theme);
|
|
436
|
+
$density-config: map.get($theme, $_internals, m2-config, density) or get-density-config($theme);
|
|
437
|
+
$typography-config:
|
|
438
|
+
map.get($theme, $_internals, m2-config, typography) or get-typography-config($theme);
|
|
438
439
|
// Lists of previous `color`, `density` and `typography` configurations.
|
|
439
440
|
$previous-color: map.get($_emitted-color, $id) or ();
|
|
440
441
|
$previous-typography: map.get($_emitted-typography, $id) or ();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -63,8 +64,9 @@ $prefix: (mat, fab-small);
|
|
|
63
64
|
$foreground-color: null;
|
|
64
65
|
$state-layer-color: null;
|
|
65
66
|
$ripple-color: null;
|
|
67
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
66
68
|
|
|
67
|
-
@if (token-utils.$private-is-internal-build) {
|
|
69
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
68
70
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
69
71
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
70
72
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -63,8 +64,9 @@ $prefix: (mat, fab);
|
|
|
63
64
|
$foreground-color: null;
|
|
64
65
|
$state-layer-color: null;
|
|
65
66
|
$ripple-color: null;
|
|
67
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
66
68
|
|
|
67
|
-
@if (token-utils.$private-is-internal-build) {
|
|
69
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
68
70
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
69
71
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
70
72
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -58,10 +59,11 @@ $prefix: (mat, filled-button);
|
|
|
58
59
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
59
60
|
$state-layer-color: null;
|
|
60
61
|
$ripple-color: null;
|
|
62
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
61
63
|
|
|
62
64
|
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
|
|
63
65
|
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
|
|
64
|
-
@if (token-utils.$private-is-internal-build) {
|
|
66
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
65
67
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
66
68
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
67
69
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -47,10 +47,14 @@ $prefix: (mat, icon-button);
|
|
|
47
47
|
// Generates the mapping for the properties that change based on the button palette color.
|
|
48
48
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
49
49
|
$color: inspection.get-theme-color($theme, $palette-name);
|
|
50
|
+
$ripple-opacity: 0.1;
|
|
50
51
|
|
|
51
52
|
@return (
|
|
52
53
|
state-layer-color: $color,
|
|
53
|
-
ripple-color: if(
|
|
54
|
+
ripple-color: if(
|
|
55
|
+
meta.type-of($color) == color,
|
|
56
|
+
rgba($color, $ripple-opacity),
|
|
57
|
+
inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
|
|
54
58
|
);
|
|
55
59
|
}
|
|
56
60
|
|
|
@@ -57,10 +57,14 @@ $prefix: (mat, outlined-button);
|
|
|
57
57
|
// Generates the mapping for the properties that change based on the button palette color.
|
|
58
58
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
59
59
|
$color: inspection.get-theme-color($theme, $palette-name);
|
|
60
|
+
$ripple-opacity: 0.1;
|
|
60
61
|
|
|
61
62
|
@return (
|
|
62
63
|
state-layer-color: $color,
|
|
63
|
-
ripple-color: if(
|
|
64
|
+
ripple-color: if(
|
|
65
|
+
meta.type-of($color) == color,
|
|
66
|
+
rgba($color, $ripple-opacity),
|
|
67
|
+
inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
|
|
64
68
|
);
|
|
65
69
|
}
|
|
66
70
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -58,10 +59,11 @@ $prefix: (mat, protected-button);
|
|
|
58
59
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
59
60
|
$state-layer-color: null;
|
|
60
61
|
$ripple-color: null;
|
|
62
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
61
63
|
|
|
62
64
|
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
|
|
63
65
|
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
|
|
64
|
-
@if (token-utils.$private-is-internal-build) {
|
|
66
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
65
67
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
66
68
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
67
69
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -60,10 +60,14 @@ $prefix: (mat, text-button);
|
|
|
60
60
|
// Generates the mapping for the properties that change based on the button palette color.
|
|
61
61
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
62
62
|
$color: inspection.get-theme-color($theme, $palette-name);
|
|
63
|
+
$ripple-opacity: 0.1;
|
|
63
64
|
|
|
64
65
|
@return (
|
|
65
66
|
state-layer-color: $color,
|
|
66
|
-
ripple-color: if(
|
|
67
|
+
ripple-color: if(
|
|
68
|
+
meta.type-of($color) == color,
|
|
69
|
+
rgba($color, $ripple-opacity),
|
|
70
|
+
inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
|
|
67
71
|
);
|
|
68
72
|
}
|
|
69
73
|
|
package/datepicker/index.d.ts
CHANGED
|
@@ -455,6 +455,7 @@ export declare class MatCalendarBody<D = any> implements OnChanges, OnDestroy, A
|
|
|
455
455
|
/** Width of an individual cell. */
|
|
456
456
|
_cellWidth: string;
|
|
457
457
|
private _didDragSinceMouseDown;
|
|
458
|
+
private _injector;
|
|
458
459
|
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
|
|
459
460
|
/** Called when a cell is clicked. */
|
|
460
461
|
_cellClicked(cell: MatCalendarCell, event: MouseEvent): void;
|
|
@@ -673,7 +674,6 @@ export declare class MatDatepickerApply {
|
|
|
673
674
|
/** Base class for a datepicker. */
|
|
674
675
|
declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D = ExtractDateTypeFromSelection<S>> implements MatDatepickerPanel<C, S, D>, OnDestroy, OnChanges {
|
|
675
676
|
private _overlay;
|
|
676
|
-
private _ngZone;
|
|
677
677
|
private _viewContainerRef;
|
|
678
678
|
private _dateAdapter;
|
|
679
679
|
private _dir;
|
|
@@ -764,7 +764,13 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
764
764
|
datepickerInput: C;
|
|
765
765
|
/** Emits when the datepicker's state changes. */
|
|
766
766
|
readonly stateChanges: Subject<void>;
|
|
767
|
-
|
|
767
|
+
private _injector;
|
|
768
|
+
constructor(_overlay: Overlay,
|
|
769
|
+
/**
|
|
770
|
+
* @deprecated parameter is unused and will be removed
|
|
771
|
+
* @breaking-change 19.0.0
|
|
772
|
+
*/
|
|
773
|
+
_unusedNgZone: NgZone, _viewContainerRef: ViewContainerRef, scrollStrategy: any, _dateAdapter: DateAdapter<D>, _dir: Directionality, _model: MatDateSelectionModel<S, D>);
|
|
768
774
|
ngOnChanges(changes: SimpleChanges): void;
|
|
769
775
|
ngOnDestroy(): void;
|
|
770
776
|
/** Selects the given date */
|
|
@@ -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: "
|
|
21
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.0+sha-37d1f71", 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-next.0+sha-37d1f71", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.0+sha-37d1f71", 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: "17.2.0", ngImpor
|
|
|
28
28
|
standalone: true,
|
|
29
29
|
}]
|
|
30
30
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLW9yaWdpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9hdXRvY29tcGxldGUvYXV0b2NvbXBsZXRlLW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFcEQ7OztHQUdHO0FBTUgsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQztJQUNFLGtFQUFrRTtJQUMzRCxVQUFtQztRQUFuQyxlQUFVLEdBQVYsVUFBVSxDQUF5QjtJQUN6QyxDQUFDO2lJQUpPLHFCQUFxQjtxSEFBckIscUJBQXFCOzs4R0FBckIscUJBQXFCO2tCQUxqQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSx5QkFBeUI7b0JBQ25DLFFBQVEsRUFBRSx1QkFBdUI7b0JBQ2pDLFVBQVUsRUFBRSxJQUFJO2lCQUNqQiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge0RpcmVjdGl2ZSwgRWxlbWVudFJlZn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICogRGlyZWN0aXZlIGFwcGxpZWQgdG8gYW4gZWxlbWVudCB0byBtYWtlIGl0IHVzYWJsZVxuICogYXMgYSBjb25uZWN0aW9uIHBvaW50IGZvciBhbiBhdXRvY29tcGxldGUgcGFuZWwuXG4gKi9cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1ttYXRBdXRvY29tcGxldGVPcmlnaW5dJyxcbiAgZXhwb3J0QXM6ICdtYXRBdXRvY29tcGxldGVPcmlnaW4nLFxuICBzdGFuZGFsb25lOiB0cnVlLFxufSlcbmV4cG9ydCBjbGFzcyBNYXRBdXRvY29tcGxldGVPcmlnaW4ge1xuICBjb25zdHJ1Y3RvcihcbiAgICAvKiogUmVmZXJlbmNlIHRvIHRoZSBlbGVtZW50IG9uIHdoaWNoIHRoZSBkaXJlY3RpdmUgaXMgYXBwbGllZC4gKi9cbiAgICBwdWJsaWMgZWxlbWVudFJlZjogRWxlbWVudFJlZjxIVE1MRWxlbWVudD4sXG4gICkge31cbn1cbiJdfQ==
|