@angular/material-experimental 13.3.3 → 14.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +3 -0
- package/column-resize/_column-resize-theme.scss +15 -17
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +13 -13
- package/esm2020/column-resize/overlay-handle.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
- package/esm2020/column-resize/resize-strategy.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete.mjs +5 -5
- package/esm2020/mdc-autocomplete/module.mjs +5 -5
- package/esm2020/mdc-button/button-base.mjs +7 -7
- package/esm2020/mdc-button/button.mjs +9 -9
- package/esm2020/mdc-button/fab.mjs +17 -17
- package/esm2020/mdc-button/icon-button.mjs +9 -9
- package/esm2020/mdc-button/module.mjs +5 -5
- package/esm2020/mdc-card/card.mjs +44 -44
- package/esm2020/mdc-card/module.mjs +5 -5
- package/esm2020/mdc-checkbox/checkbox.mjs +5 -5
- package/esm2020/mdc-checkbox/module.mjs +5 -5
- package/esm2020/mdc-checkbox/testing/checkbox-harness.mjs +3 -2
- package/esm2020/mdc-chips/chip-action.mjs +4 -4
- package/esm2020/mdc-chips/chip-edit-input.mjs +4 -4
- package/esm2020/mdc-chips/chip-grid.mjs +19 -11
- package/esm2020/mdc-chips/chip-icons.mjs +10 -10
- package/esm2020/mdc-chips/chip-input.mjs +4 -4
- package/esm2020/mdc-chips/chip-listbox.mjs +8 -11
- package/esm2020/mdc-chips/chip-option.mjs +5 -5
- package/esm2020/mdc-chips/chip-row.mjs +5 -5
- package/esm2020/mdc-chips/chip-set.mjs +13 -13
- package/esm2020/mdc-chips/chip.mjs +5 -5
- package/esm2020/mdc-chips/module.mjs +5 -5
- package/esm2020/mdc-core/option/index.mjs +5 -5
- package/esm2020/mdc-core/option/optgroup.mjs +5 -5
- package/esm2020/mdc-core/option/option.mjs +5 -5
- package/esm2020/mdc-dialog/dialog-container.mjs +6 -7
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +27 -15
- package/esm2020/mdc-dialog/dialog.mjs +4 -4
- package/esm2020/mdc-dialog/module.mjs +5 -5
- package/esm2020/mdc-form-field/directives/error.mjs +4 -4
- package/esm2020/mdc-form-field/directives/floating-label.mjs +4 -4
- package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
- package/esm2020/mdc-form-field/directives/label.mjs +4 -4
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +4 -4
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +4 -4
- package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
- package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
- package/esm2020/mdc-form-field/form-field.mjs +53 -41
- package/esm2020/mdc-form-field/module.mjs +5 -5
- package/esm2020/mdc-form-field/testing/public-api.mjs +4 -4
- package/esm2020/mdc-input/input.mjs +4 -4
- package/esm2020/mdc-input/module.mjs +5 -5
- package/esm2020/mdc-list/action-list.mjs +5 -5
- package/esm2020/mdc-list/interactive-list-base.mjs +4 -4
- package/esm2020/mdc-list/list-base.mjs +7 -7
- package/esm2020/mdc-list/list-item-sections.mjs +19 -19
- package/esm2020/mdc-list/list-option.mjs +6 -6
- package/esm2020/mdc-list/list.mjs +21 -9
- package/esm2020/mdc-list/module.mjs +5 -5
- package/esm2020/mdc-list/nav-list.mjs +5 -5
- package/esm2020/mdc-list/selection-list.mjs +6 -6
- package/esm2020/mdc-list/subheader.mjs +4 -4
- package/esm2020/mdc-menu/directives.mjs +7 -7
- package/esm2020/mdc-menu/menu-item.mjs +4 -4
- package/esm2020/mdc-menu/menu.mjs +5 -5
- package/esm2020/mdc-menu/module.mjs +5 -5
- package/esm2020/mdc-paginator/module.mjs +5 -5
- package/esm2020/mdc-paginator/paginator.mjs +5 -5
- package/esm2020/mdc-paginator/public-api.mjs +1 -1
- package/esm2020/mdc-progress-bar/module.mjs +5 -5
- package/esm2020/mdc-progress-bar/progress-bar.mjs +5 -5
- package/esm2020/mdc-progress-spinner/module.mjs +5 -5
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +8 -5
- package/esm2020/mdc-radio/module.mjs +5 -5
- package/esm2020/mdc-radio/radio.mjs +8 -8
- package/esm2020/mdc-radio/testing/radio-harness.mjs +3 -2
- package/esm2020/mdc-select/module.mjs +5 -5
- package/esm2020/mdc-select/select.mjs +9 -9
- package/esm2020/mdc-slide-toggle/module.mjs +5 -5
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +5 -5
- package/esm2020/mdc-slide-toggle/testing/slide-toggle-harness.mjs +4 -2
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
- package/esm2020/mdc-slider/module.mjs +5 -5
- package/esm2020/mdc-slider/slider.mjs +12 -12
- package/esm2020/mdc-snack-bar/module.mjs +5 -5
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +5 -5
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +5 -5
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
- package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
- package/esm2020/mdc-table/cell.mjs +22 -22
- package/esm2020/mdc-table/module.mjs +5 -5
- package/esm2020/mdc-table/row.mjs +22 -22
- package/esm2020/mdc-table/table.mjs +9 -9
- package/esm2020/mdc-table/text-column.mjs +4 -4
- package/esm2020/mdc-tabs/module.mjs +5 -5
- package/esm2020/mdc-tabs/tab-body.mjs +8 -8
- package/esm2020/mdc-tabs/tab-content.mjs +4 -4
- package/esm2020/mdc-tabs/tab-group.mjs +18 -6
- package/esm2020/mdc-tabs/tab-header.mjs +5 -5
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +4 -4
- package/esm2020/mdc-tabs/tab-label.mjs +4 -4
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +29 -12
- package/esm2020/mdc-tabs/tab.mjs +4 -4
- package/esm2020/mdc-tooltip/module.mjs +5 -5
- package/esm2020/mdc-tooltip/tooltip.mjs +8 -8
- package/esm2020/menubar/menubar-item.mjs +19 -5
- package/esm2020/menubar/menubar-module.mjs +5 -5
- package/esm2020/menubar/menubar.mjs +11 -14
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
- package/esm2020/popover-edit/table-directives.mjs +13 -13
- package/esm2020/selection/row-selection.mjs +4 -4
- package/esm2020/selection/select-all.mjs +4 -4
- package/esm2020/selection/selection-column.mjs +6 -6
- package/esm2020/selection/selection-module.mjs +5 -5
- package/esm2020/selection/selection-toggle.mjs +4 -4
- package/esm2020/selection/selection.mjs +4 -4
- package/esm2020/version.mjs +1 -1
- package/fesm2015/column-resize.mjs +36 -36
- package/fesm2015/column-resize.mjs.map +1 -1
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/mdc-autocomplete.mjs +14 -14
- package/fesm2015/mdc-autocomplete.mjs.map +1 -1
- package/fesm2015/mdc-button.mjs +42 -42
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +47 -47
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox/testing.mjs +2 -1
- package/fesm2015/mdc-checkbox/testing.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +8 -8
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +70 -66
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +12 -12
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +38 -27
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field/testing.mjs +1 -1
- package/fesm2015/mdc-form-field/testing.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +81 -69
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +7 -7
- package/fesm2015/mdc-input.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +70 -59
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +17 -17
- package/fesm2015/mdc-menu.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +8 -8
- package/fesm2015/mdc-paginator.mjs.map +1 -1
- package/fesm2015/mdc-progress-bar.mjs +8 -8
- package/fesm2015/mdc-progress-bar.mjs.map +1 -1
- package/fesm2015/mdc-progress-spinner.mjs +11 -8
- package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2015/mdc-radio/testing.mjs +2 -1
- package/fesm2015/mdc-radio/testing.mjs.map +1 -1
- package/fesm2015/mdc-radio.mjs +11 -11
- package/fesm2015/mdc-radio.mjs.map +1 -1
- package/fesm2015/mdc-select.mjs +12 -12
- package/fesm2015/mdc-select.mjs.map +1 -1
- package/fesm2015/mdc-slide-toggle/testing.mjs +3 -1
- package/fesm2015/mdc-slide-toggle/testing.mjs.map +1 -1
- package/fesm2015/mdc-slide-toggle.mjs +8 -8
- package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +18 -18
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-snack-bar.mjs +24 -24
- package/fesm2015/mdc-snack-bar.mjs.map +1 -1
- package/fesm2015/mdc-table.mjs +57 -57
- package/fesm2015/mdc-table.mjs.map +1 -1
- package/fesm2015/mdc-tabs.mjs +72 -43
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +11 -11
- package/fesm2015/mdc-tooltip.mjs.map +1 -1
- package/fesm2015/menubar.mjs +32 -20
- package/fesm2015/menubar.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +25 -25
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/selection.mjs +21 -21
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +36 -36
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-autocomplete.mjs +14 -14
- package/fesm2020/mdc-autocomplete.mjs.map +1 -1
- package/fesm2020/mdc-button.mjs +42 -42
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +47 -47
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox/testing.mjs +2 -1
- package/fesm2020/mdc-checkbox/testing.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +8 -8
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +70 -66
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +12 -12
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +38 -27
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field/testing.mjs +1 -1
- package/fesm2020/mdc-form-field/testing.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +80 -68
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +7 -7
- package/fesm2020/mdc-input.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +70 -59
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +17 -17
- package/fesm2020/mdc-menu.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +8 -8
- package/fesm2020/mdc-paginator.mjs.map +1 -1
- package/fesm2020/mdc-progress-bar.mjs +8 -8
- package/fesm2020/mdc-progress-bar.mjs.map +1 -1
- package/fesm2020/mdc-progress-spinner.mjs +11 -8
- package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2020/mdc-radio/testing.mjs +2 -1
- package/fesm2020/mdc-radio/testing.mjs.map +1 -1
- package/fesm2020/mdc-radio.mjs +11 -11
- package/fesm2020/mdc-radio.mjs.map +1 -1
- package/fesm2020/mdc-select.mjs +12 -12
- package/fesm2020/mdc-select.mjs.map +1 -1
- package/fesm2020/mdc-slide-toggle/testing.mjs +3 -1
- package/fesm2020/mdc-slide-toggle/testing.mjs.map +1 -1
- package/fesm2020/mdc-slide-toggle.mjs +8 -8
- package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +18 -18
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-snack-bar.mjs +24 -24
- package/fesm2020/mdc-snack-bar.mjs.map +1 -1
- package/fesm2020/mdc-table.mjs +57 -57
- package/fesm2020/mdc-table.mjs.map +1 -1
- package/fesm2020/mdc-tabs.mjs +72 -43
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +11 -11
- package/fesm2020/mdc-tooltip.mjs.map +1 -1
- package/fesm2020/menubar.mjs +31 -20
- package/fesm2020/menubar.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +25 -25
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/selection.mjs +21 -21
- package/fesm2020/selection.mjs.map +1 -1
- package/mdc-autocomplete/_autocomplete-theme.scss +10 -10
- package/mdc-button/_button-base.scss +4 -3
- package/mdc-button/_button-theme-private.scss +0 -1
- package/mdc-button/_button-theme.scss +11 -11
- package/mdc-button/_fab-theme.scss +10 -10
- package/mdc-button/_icon-button-theme.scss +11 -11
- package/mdc-card/_card-theme.scss +11 -11
- package/mdc-checkbox/_checkbox-theme.scss +16 -17
- package/mdc-chips/_chips-theme.scss +13 -13
- package/mdc-chips/chip-grid.d.ts +18 -5
- package/mdc-chips/chip-input.d.ts +2 -5
- package/mdc-chips/chip-listbox.d.ts +1 -2
- package/mdc-chips/chip-set.d.ts +3 -1
- package/mdc-color/_all-color.scss +4 -3
- package/mdc-core/_core-theme.scss +13 -13
- package/mdc-core/option/_optgroup-theme.scss +11 -11
- package/mdc-core/option/_option-theme.scss +11 -11
- package/mdc-density/_all-density.scss +4 -3
- package/mdc-dialog/_dialog-theme.scss +49 -13
- package/mdc-dialog/dialog-content-directives.d.ts +5 -1
- package/mdc-form-field/_form-field-density.scss +4 -3
- package/mdc-form-field/_form-field-focus-overlay.scss +2 -2
- package/mdc-form-field/_form-field-high-contrast.scss +5 -5
- package/mdc-form-field/_form-field-native-select.scss +5 -4
- package/mdc-form-field/_form-field-subscript.scss +5 -3
- package/mdc-form-field/_form-field-theme.scss +16 -16
- package/mdc-form-field/form-field.d.ts +23 -11
- package/mdc-form-field/testing/public-api.d.ts +1 -1
- package/mdc-helpers/_focus-indicators-theme.scss +6 -6
- package/mdc-helpers/_focus-indicators.scss +2 -2
- package/mdc-helpers/_mdc-helpers.scss +12 -14
- package/mdc-input/_input-theme.scss +10 -10
- package/mdc-list/_interactive-list-theme.scss +2 -2
- package/mdc-list/_list-theme.scss +15 -17
- package/mdc-list/list.d.ts +5 -1
- package/mdc-menu/_menu-theme.scss +10 -10
- package/mdc-paginator/_paginator-theme.scss +20 -23
- package/mdc-paginator/public-api.d.ts +1 -1
- package/mdc-progress-bar/_progress-bar-theme.scss +8 -7
- package/mdc-progress-spinner/_progress-spinner-theme.scss +8 -7
- package/mdc-radio/_radio-theme.scss +13 -14
- package/mdc-select/_select-theme.scss +10 -10
- package/mdc-slide-toggle/_slide-toggle-theme.scss +14 -15
- package/mdc-slider/_slider-theme.scss +11 -12
- package/mdc-snack-bar/_snack-bar-theme.scss +11 -11
- package/mdc-table/_table-theme.scss +12 -12
- package/mdc-tabs/_tabs-common.scss +5 -4
- package/mdc-tabs/_tabs-theme.scss +14 -14
- package/mdc-tabs/tab-group.d.ts +5 -1
- package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +8 -3
- package/mdc-theming/_all-theme.scss +3 -2
- package/mdc-theming/prebuilt/deeppurple-amber.css +1 -1
- package/mdc-theming/prebuilt/indigo-pink.css +1 -1
- package/mdc-theming/prebuilt/pink-bluegrey.css +1 -1
- package/mdc-theming/prebuilt/purple-green.css +1 -1
- package/mdc-tooltip/_tooltip-theme.scss +12 -13
- package/mdc-typography/_all-typography.scss +5 -5
- package/menubar/menubar-item.d.ts +1 -0
- package/package.json +55 -9
- package/popover-edit/_popover-edit-theme.scss +23 -26
- package/selection/_selection.scss +3 -3
package/mdc-list/list.d.ts
CHANGED
|
@@ -21,7 +21,11 @@ export declare class MatListItem extends MatListItemBase {
|
|
|
21
21
|
_meta: QueryList<MatListItemMeta>;
|
|
22
22
|
_unscopedContent: ElementRef<HTMLSpanElement>;
|
|
23
23
|
_itemText: ElementRef<HTMLElement>;
|
|
24
|
+
/** Indicates whether an item in a `<mat-nav-list>` is the currently active page. */
|
|
25
|
+
get activated(): boolean;
|
|
26
|
+
set activated(activated: boolean);
|
|
27
|
+
_activated: boolean;
|
|
24
28
|
constructor(element: ElementRef, ngZone: NgZone, listBase: MatListBase, platform: Platform, globalRippleOptions?: RippleGlobalOptions, animationMode?: string);
|
|
25
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatListItem, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], {}, {}, ["_lines", "_titles", "_meta"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "[matListItemMeta]", "mat-divider"]>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], { "activated": "activated"; }, {}, ["_lines", "_titles", "_meta"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "[matListItemMeta]", "mat-divider"]>;
|
|
27
31
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
2
3
|
@use '@material/theme/theme' as mdc-theme;
|
|
3
4
|
@use '@material/menu-surface' as mdc-menu-surface;
|
|
4
5
|
@use '@material/list/evolution-mixins' as mdc-list;
|
|
5
6
|
@use '@material/typography' as mdc-typography;
|
|
6
7
|
@use '@material/ripple' as mdc-ripple;
|
|
8
|
+
|
|
7
9
|
@use '../mdc-helpers/mdc-helpers';
|
|
8
|
-
@use '../../material/core/typography/typography';
|
|
9
|
-
@use '../../material/core/theming/theming';
|
|
10
10
|
|
|
11
11
|
@mixin color($config-or-theme) {
|
|
12
|
-
$config:
|
|
12
|
+
$config: mat.get-color-config($config-or-theme);
|
|
13
13
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
14
14
|
@include mdc-menu-surface.core-styles(mdc-helpers.$mat-theme-styles-query);
|
|
15
15
|
@include mdc-list.without-ripple(mdc-helpers.$mat-theme-styles-query);
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@mixin typography($config-or-theme) {
|
|
48
|
-
$config:
|
|
49
|
-
|
|
48
|
+
$config: mat.private-typography-to-2018-config(
|
|
49
|
+
mat.get-typography-config($config-or-theme));
|
|
50
50
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
51
51
|
@include mdc-menu-surface.core-styles(mdc-helpers.$mat-typography-styles-query);
|
|
52
52
|
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
@mixin density($config-or-theme) {}
|
|
69
69
|
|
|
70
70
|
@mixin theme($theme-or-color-config) {
|
|
71
|
-
$theme:
|
|
72
|
-
@include
|
|
73
|
-
$color:
|
|
74
|
-
$density:
|
|
75
|
-
$typography:
|
|
71
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
72
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-menu') {
|
|
73
|
+
$color: mat.get-color-config($theme);
|
|
74
|
+
$density: mat.get-density-config($theme);
|
|
75
|
+
$typography: mat.get-typography-config($theme);
|
|
76
76
|
|
|
77
77
|
@if $color != null {
|
|
78
78
|
@include color($color);
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use '@material/density' as mdc-density;
|
|
1
3
|
@use '@material/typography' as mdc-typography;
|
|
2
4
|
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@use '../../material/core/density/private/compatibility';
|
|
5
|
-
@use '../../material/core/typography/typography';
|
|
5
|
+
|
|
6
6
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
7
|
@use './paginator-variables';
|
|
8
|
-
@use '../../material/core/typography/typography-utils';
|
|
9
8
|
|
|
10
9
|
@mixin color($config-or-theme) {
|
|
11
|
-
$config:
|
|
10
|
+
$config: mat.get-color-config($config-or-theme);
|
|
12
11
|
$background: map.get($config, background);
|
|
13
12
|
$foreground: map.get($config, foreground);
|
|
14
|
-
$icon-color: rgba(
|
|
15
|
-
$disabled-color: rgba(
|
|
13
|
+
$icon-color: rgba(mat.get-color-from-palette($foreground, base), 0.54);
|
|
14
|
+
$disabled-color: rgba(mat.get-color-from-palette($foreground, base), 0.12);
|
|
16
15
|
|
|
17
16
|
.mat-mdc-paginator {
|
|
18
|
-
background:
|
|
19
|
-
color: rgba(
|
|
17
|
+
background: mat.get-color-from-palette($background, card);
|
|
18
|
+
color: rgba(mat.get-color-from-palette($foreground, base), 0.87);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
.mat-mdc-paginator-icon {
|
|
@@ -49,8 +48,8 @@
|
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
@mixin typography($config-or-theme) {
|
|
52
|
-
$config:
|
|
53
|
-
|
|
51
|
+
$config: mat.private-typography-to-2018-config(
|
|
52
|
+
mat.get-typography-config($config-or-theme));
|
|
54
53
|
|
|
55
54
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
56
55
|
.mat-mdc-paginator {
|
|
@@ -58,29 +57,27 @@
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.mat-mdc-paginator .mat-mdc-select-value {
|
|
61
|
-
font-size:
|
|
60
|
+
font-size: mat.font-size($config, caption);
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
@mixin density($config-or-theme) {
|
|
67
|
-
$density-scale:
|
|
68
|
-
$height:
|
|
66
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
67
|
+
$height: mdc-density.prop-value(
|
|
69
68
|
paginator-variables.$density-config, $density-scale, height);
|
|
70
69
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
min-height: $height;
|
|
74
|
-
}
|
|
70
|
+
.mat-mdc-paginator-container {
|
|
71
|
+
min-height: $height;
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
@mixin theme($theme-or-color-config) {
|
|
79
|
-
$theme:
|
|
80
|
-
@include
|
|
81
|
-
$color:
|
|
82
|
-
$density:
|
|
83
|
-
$typography:
|
|
76
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
77
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-paginator') {
|
|
78
|
+
$color: mat.get-color-config($theme);
|
|
79
|
+
$density: mat.get-density-config($theme);
|
|
80
|
+
$typography: mat.get-typography-config($theme);
|
|
84
81
|
|
|
85
82
|
@if $color != null {
|
|
86
83
|
@include color($color);
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export * from './module';
|
|
9
9
|
export * from './paginator';
|
|
10
|
-
export { MatPaginatorIntl, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MAT_PAGINATOR_INTL_PROVIDER, PageEvent, } from '@angular/material/paginator';
|
|
10
|
+
export { MatPaginatorIntl, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MAT_PAGINATOR_INTL_PROVIDER, PageEvent, MatPaginatorSelectConfig, } from '@angular/material/paginator';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
2
3
|
@use '@material/linear-progress' as mdc-linear-progress;
|
|
3
4
|
@use 'sass:color';
|
|
5
|
+
|
|
4
6
|
@use '../mdc-helpers/mdc-helpers';
|
|
5
|
-
@use '../../material/core/theming/theming';
|
|
6
7
|
|
|
7
8
|
@mixin _palette-styles($color) {
|
|
8
9
|
// TODO(crisbeto): the buffer color should come from somewhere in MDC, however at the time of
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
@mixin color($config-or-theme) {
|
|
19
|
-
$config:
|
|
20
|
+
$config: mat.get-color-config($config-or-theme);
|
|
20
21
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
21
22
|
.mat-mdc-progress-bar {
|
|
22
23
|
@include _palette-styles(primary);
|
|
@@ -37,11 +38,11 @@
|
|
|
37
38
|
@mixin density($config-or-theme) {}
|
|
38
39
|
|
|
39
40
|
@mixin theme($theme-or-color-config) {
|
|
40
|
-
$theme:
|
|
41
|
-
@include
|
|
42
|
-
$color:
|
|
43
|
-
$density:
|
|
44
|
-
$typography:
|
|
41
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
42
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-progress-bar') {
|
|
43
|
+
$color: mat.get-color-config($theme);
|
|
44
|
+
$density: mat.get-density-config($theme);
|
|
45
|
+
$typography: mat.get-typography-config($theme);
|
|
45
46
|
|
|
46
47
|
@if $color != null {
|
|
47
48
|
@include color($color);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/circular-progress' as mdc-circular-progress;
|
|
3
|
+
|
|
2
4
|
@use '../mdc-helpers/mdc-helpers';
|
|
3
|
-
@use '../../material/core/theming/theming';
|
|
4
5
|
|
|
5
6
|
@mixin _palette-styles($color) {
|
|
6
7
|
@include mdc-circular-progress.color($color, $query: mdc-helpers.$mat-theme-styles-query);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@mixin color($config-or-theme) {
|
|
10
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
11
12
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
12
13
|
.mat-mdc-progress-spinner {
|
|
13
14
|
@include _palette-styles(primary);
|
|
@@ -28,11 +29,11 @@
|
|
|
28
29
|
@mixin density($config-or-theme) {}
|
|
29
30
|
|
|
30
31
|
@mixin theme($theme-or-color-config) {
|
|
31
|
-
$theme:
|
|
32
|
-
@include
|
|
33
|
-
$color:
|
|
34
|
-
$density:
|
|
35
|
-
$typography:
|
|
32
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
33
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-progress-spinner') {
|
|
34
|
+
$color: mat.get-color-config($theme);
|
|
35
|
+
$density: mat.get-density-config($theme);
|
|
36
|
+
$typography: mat.get-typography-config($theme);
|
|
36
37
|
|
|
37
38
|
@if $color != null {
|
|
38
39
|
@include color($color);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
3
4
|
@use '@material/radio/radio-theme' as mdc-radio-theme;
|
|
4
5
|
@use '@material/radio/radio' as mdc-radio;
|
|
5
6
|
@use '@material/form-field' as mdc-form-field;
|
|
6
7
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
|
-
@use '../../material/core/typography/typography';
|
|
8
|
-
@use '../../material/core/theming/theming';
|
|
9
8
|
|
|
10
9
|
@mixin _color-palette($color-palette) {
|
|
11
10
|
@include mdc-radio-theme.theme((
|
|
@@ -19,10 +18,10 @@
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@mixin color($config-or-theme) {
|
|
22
|
-
$config:
|
|
23
|
-
$primary:
|
|
24
|
-
$accent:
|
|
25
|
-
$warn:
|
|
21
|
+
$config: mat.get-color-config($config-or-theme);
|
|
22
|
+
$primary: mat.get-color-from-palette(map.get($config, primary));
|
|
23
|
+
$accent: mat.get-color-from-palette(map.get($config, accent));
|
|
24
|
+
$warn: mat.get-color-from-palette(map.get($config, warn));
|
|
26
25
|
|
|
27
26
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
28
27
|
$on-surface: rgba(mdc-theme-color.$on-surface, 0.54);
|
|
@@ -58,8 +57,8 @@
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
@mixin typography($config-or-theme) {
|
|
61
|
-
$config:
|
|
62
|
-
|
|
60
|
+
$config: mat.private-typography-to-2018-config(
|
|
61
|
+
mat.get-typography-config($config-or-theme));
|
|
63
62
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
64
63
|
@include mdc-radio.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
65
64
|
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
@mixin density($config-or-theme) {
|
|
70
|
-
$density-scale:
|
|
69
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
71
70
|
.mat-mdc-radio-button .mdc-radio {
|
|
72
71
|
@include mdc-radio-theme.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
|
|
73
72
|
}
|
|
@@ -80,11 +79,11 @@
|
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
@mixin theme($theme-or-color-config) {
|
|
83
|
-
$theme:
|
|
84
|
-
@include
|
|
85
|
-
$color:
|
|
86
|
-
$density:
|
|
87
|
-
$typography:
|
|
82
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
83
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-radio') {
|
|
84
|
+
$color: mat.get-color-config($theme);
|
|
85
|
+
$density: mat.get-density-config($theme);
|
|
86
|
+
$typography: mat.get-typography-config($theme);
|
|
88
87
|
|
|
89
88
|
@if $color != null {
|
|
90
89
|
@include color($color);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
2
3
|
@use '@material/menu-surface' as mdc-menu-surface;
|
|
3
4
|
@use '@material/list/evolution-mixins' as mdc-list;
|
|
4
5
|
@use '@material/typography' as mdc-typography;
|
|
6
|
+
|
|
5
7
|
@use '../mdc-helpers/mdc-helpers';
|
|
6
|
-
@use '../../material/core/typography/typography';
|
|
7
|
-
@use '../../material/core/theming/theming';
|
|
8
8
|
|
|
9
9
|
// Gets the color to use for some text that is highlighted while a select has focus.
|
|
10
10
|
@function _get-mdc-focused-text-color($palette) {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@mixin color($config-or-theme) {
|
|
15
|
-
$config:
|
|
15
|
+
$config: mat.get-color-config($config-or-theme);
|
|
16
16
|
|
|
17
17
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
18
18
|
$disabled-color: rgba(mdc-theme-color.prop-value(on-surface), 0.38);
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@mixin typography($config-or-theme) {
|
|
65
|
-
$config:
|
|
66
|
-
|
|
65
|
+
$config: mat.private-typography-to-2018-config(
|
|
66
|
+
mat.get-typography-config($config-or-theme));
|
|
67
67
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
68
68
|
@include mdc-menu-surface.core-styles(mdc-helpers.$mat-typography-styles-query);
|
|
69
69
|
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
@mixin density($config-or-theme) {}
|
|
81
81
|
|
|
82
82
|
@mixin theme($theme-or-color-config) {
|
|
83
|
-
$theme:
|
|
84
|
-
@include
|
|
85
|
-
$color:
|
|
86
|
-
$density:
|
|
87
|
-
$typography:
|
|
83
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
84
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-select') {
|
|
85
|
+
$color: mat.get-color-config($theme);
|
|
86
|
+
$density: mat.get-density-config($theme);
|
|
87
|
+
$typography: mat.get-typography-config($theme);
|
|
88
88
|
|
|
89
89
|
@if $color != null {
|
|
90
90
|
@include color($color);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:color';
|
|
3
|
+
@use '@angular/material' as mat;
|
|
3
4
|
@use '@material/switch/switch-theme' as mdc-switch-theme;
|
|
4
5
|
@use '@material/theme/color-palette' as mdc-color-palette;
|
|
5
6
|
@use '@material/form-field' as mdc-form-field;
|
|
7
|
+
|
|
6
8
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
|
-
@use '../../material/core/typography/typography';
|
|
8
|
-
@use '../../material/core/theming/theming';
|
|
9
|
-
@use '../../material/core/theming/palette';
|
|
10
9
|
|
|
11
10
|
// Generates all color mapping for the properties that only change based on the theme.
|
|
12
11
|
@function _get-theme-base-map($is-dark) {
|
|
@@ -70,10 +69,10 @@
|
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
@mixin color($config-or-theme) {
|
|
73
|
-
$config:
|
|
74
|
-
$primary:
|
|
75
|
-
$accent:
|
|
76
|
-
$warn:
|
|
72
|
+
$config: mat.get-color-config($config-or-theme);
|
|
73
|
+
$primary: mat.get-color-from-palette(map.get($config, primary));
|
|
74
|
+
$accent: mat.get-color-from-palette(map.get($config, accent));
|
|
75
|
+
$warn: mat.get-color-from-palette(map.get($config, warn));
|
|
77
76
|
$is-dark: map.get($config, is-dark);
|
|
78
77
|
|
|
79
78
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
@@ -99,27 +98,27 @@
|
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
@mixin typography($config-or-theme) {
|
|
102
|
-
$config:
|
|
103
|
-
|
|
101
|
+
$config: mat.private-typography-to-2018-config(
|
|
102
|
+
mat.get-typography-config($config-or-theme));
|
|
104
103
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
105
104
|
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
@mixin density($config-or-theme) {
|
|
110
|
-
$density-scale:
|
|
109
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
111
110
|
.mat-mdc-slide-toggle {
|
|
112
111
|
@include mdc-switch-theme.theme(mdc-switch-theme.density($density-scale));
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
@mixin theme($theme-or-color-config) {
|
|
117
|
-
$theme:
|
|
116
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
118
117
|
|
|
119
|
-
@include
|
|
120
|
-
$color:
|
|
121
|
-
$density:
|
|
122
|
-
$typography:
|
|
118
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-slide-toggle') {
|
|
119
|
+
$color: mat.get-color-config($theme);
|
|
120
|
+
$density: mat.get-density-config($theme);
|
|
121
|
+
$typography: mat.get-typography-config($theme);
|
|
123
122
|
|
|
124
123
|
@if $color != null {
|
|
125
124
|
@include color($color);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
|
+
@use '@angular/material' as mat;
|
|
3
4
|
@use '@material/slider/slider' as mdc-slider;
|
|
4
5
|
@use '@material/slider/slider-theme';
|
|
5
6
|
@use '@material/theme/variables' as theme-variables;
|
|
7
|
+
|
|
6
8
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
|
-
@use '../../material/core/typography/typography';
|
|
8
|
-
@use '../../material/core/ripple/ripple-theme';
|
|
9
|
-
@use '../../material/core/theming/theming';
|
|
10
9
|
|
|
11
10
|
@mixin color($config-or-theme) {
|
|
12
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
13
12
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
14
13
|
@include mdc-slider.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
|
|
15
14
|
|
|
@@ -47,8 +46,8 @@
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
@mixin typography($config-or-theme) {
|
|
50
|
-
$config:
|
|
51
|
-
|
|
49
|
+
$config: mat.private-typography-to-2018-config(
|
|
50
|
+
mat.get-typography-config($config-or-theme));
|
|
52
51
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
53
52
|
@include mdc-slider.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
54
53
|
}
|
|
@@ -57,11 +56,11 @@
|
|
|
57
56
|
@mixin density($config-or-theme) {}
|
|
58
57
|
|
|
59
58
|
@mixin theme($theme-or-color-config) {
|
|
60
|
-
$theme:
|
|
61
|
-
@include
|
|
62
|
-
$color:
|
|
63
|
-
$density:
|
|
64
|
-
$typography:
|
|
59
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
60
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-slider') {
|
|
61
|
+
$color: mat.get-color-config($theme);
|
|
62
|
+
$density: mat.get-density-config($theme);
|
|
63
|
+
$typography: mat.get-typography-config($theme);
|
|
65
64
|
|
|
66
65
|
@if $color != null {
|
|
67
66
|
@include color($color);
|
|
@@ -112,7 +111,7 @@
|
|
|
112
111
|
$query: mdc-helpers.$mat-theme-styles-query
|
|
113
112
|
);
|
|
114
113
|
$ripple-color: map.get(theme-variables.$property-values, $color);
|
|
115
|
-
@include ripple-
|
|
114
|
+
@include mat.ripple-color((
|
|
116
115
|
foreground: (
|
|
117
116
|
base: $ripple-color
|
|
118
117
|
),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
2
3
|
@use '@material/snackbar' as mdc-snackbar;
|
|
3
4
|
@use 'sass:color';
|
|
4
5
|
@use 'sass:map';
|
|
6
|
+
|
|
5
7
|
@use '../mdc-helpers/mdc-helpers';
|
|
6
|
-
@use '../../material/core/typography/typography';
|
|
7
|
-
@use '../../material/core/theming/theming';
|
|
8
8
|
|
|
9
9
|
@mixin color($config-or-theme) {
|
|
10
|
-
$config:
|
|
10
|
+
$config: mat.get-color-config($config-or-theme);
|
|
11
11
|
|
|
12
12
|
$orig-fill-color: mdc-snackbar.$fill-color;
|
|
13
13
|
$orig-label-ink-color: mdc-snackbar.$label-ink-color;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-actions .mdc-snackbar__action.mdc-snackbar__action {
|
|
42
42
|
$is-dark-theme: map.get($config, is-dark);
|
|
43
43
|
$accent: map.get($config, accent);
|
|
44
|
-
color: if($is-dark-theme, inherit,
|
|
44
|
+
color: if($is-dark-theme, inherit, mat.get-color-from-palette($accent, text));
|
|
45
45
|
|
|
46
46
|
.mat-ripple-element {
|
|
47
47
|
background-color: currentColor;
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@mixin typography($config-or-theme) {
|
|
54
|
-
$config:
|
|
55
|
-
|
|
54
|
+
$config: mat.private-typography-to-2018-config(
|
|
55
|
+
mat.get-typography-config($config-or-theme));
|
|
56
56
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
57
57
|
@include mdc-snackbar.core-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
58
58
|
}
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
@mixin density($config-or-theme) {}
|
|
62
62
|
|
|
63
63
|
@mixin theme($theme-or-color-config) {
|
|
64
|
-
$theme:
|
|
65
|
-
@include
|
|
66
|
-
$color:
|
|
67
|
-
$density:
|
|
68
|
-
$typography:
|
|
64
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
65
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-snack-bar') {
|
|
66
|
+
$color: mat.get-color-config($theme);
|
|
67
|
+
$density: mat.get-density-config($theme);
|
|
68
|
+
$typography: mat.get-typography-config($theme);
|
|
69
69
|
|
|
70
70
|
@if $color != null {
|
|
71
71
|
@include color($color);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
3
4
|
@use '@material/data-table/data-table' as mdc-data-table;
|
|
4
5
|
@use '@material/data-table' as mdc-data-table-theme;
|
|
6
|
+
|
|
5
7
|
@use '../mdc-helpers/mdc-helpers';
|
|
6
|
-
@use '../../material/core/typography/typography';
|
|
7
|
-
@use '../../material/core/theming/theming';
|
|
8
8
|
|
|
9
9
|
@mixin color($config-or-theme) {
|
|
10
|
-
$config:
|
|
10
|
+
$config: mat.get-color-config($config-or-theme);
|
|
11
11
|
// Save original values of MDC global variables. We need to save these so we can restore the
|
|
12
12
|
// variables to their original values and prevent unintended side effects from using this mixin.
|
|
13
13
|
$orig-selected-row-fill-color: mdc-data-table-theme.$selected-row-fill-color;
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
|
|
39
39
|
.mat-mdc-table {
|
|
40
40
|
$background: map.get($config, background);
|
|
41
|
-
background:
|
|
41
|
+
background: mat.get-color-from-palette($background, 'card');
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@mixin typography($config-or-theme) {
|
|
46
|
-
$config:
|
|
47
|
-
|
|
46
|
+
$config: mat.private-typography-to-2018-config(
|
|
47
|
+
mat.get-typography-config($config-or-theme));
|
|
48
48
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
49
49
|
@include mdc-data-table.table-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@mixin density($config-or-theme) {
|
|
54
|
-
$density-scale:
|
|
54
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
55
55
|
.mat-mdc-table {
|
|
56
56
|
@include mdc-data-table-theme.density($density-scale,
|
|
57
57
|
$query: mdc-helpers.$mat-base-styles-query);
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@mixin theme($theme-or-color-config) {
|
|
62
|
-
$theme:
|
|
63
|
-
@include
|
|
64
|
-
$color:
|
|
65
|
-
$density:
|
|
66
|
-
$typography:
|
|
62
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
63
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-table') {
|
|
64
|
+
$color: mat.get-color-config($theme);
|
|
65
|
+
$density: mat.get-density-config($theme);
|
|
66
|
+
$typography: mat.get-typography-config($theme);
|
|
67
67
|
|
|
68
68
|
@if $color != null {
|
|
69
69
|
@include color($color);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
@use '@angular/cdk';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
1
3
|
@use '@material/ripple' as mdc-ripple;
|
|
2
4
|
@use '@material/tab' as mdc-tab;
|
|
3
5
|
@use '@material/tab-indicator' as mdc-tab-indicator;
|
|
4
6
|
@use 'sass:map';
|
|
5
|
-
|
|
6
|
-
@use '../../cdk/a11y';
|
|
7
|
+
|
|
7
8
|
@use '../mdc-helpers/mdc-helpers';
|
|
8
9
|
|
|
9
10
|
$mat-tab-animation-duration: 500ms !default;
|
|
@@ -71,7 +72,7 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
71
72
|
|
|
72
73
|
// The usual focus indication is color-based so it won't show up in
|
|
73
74
|
// high contrast mode. Add an outline which is a bit more visible.
|
|
74
|
-
@include
|
|
75
|
+
@include cdk.high-contrast {
|
|
75
76
|
$outline-width: 2px;
|
|
76
77
|
outline: dotted $outline-width;
|
|
77
78
|
outline-offset: -$outline-width; // Not supported on IE, but looks better everywhere else.
|
|
@@ -94,7 +95,7 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
.mat-mdc-tab-header-pagination {
|
|
97
|
-
@include
|
|
98
|
+
@include mat.private-user-select(none);
|
|
98
99
|
position: relative;
|
|
99
100
|
display: none;
|
|
100
101
|
justify-content: center;
|