@angular/material 13.1.2 → 13.2.0-rc.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/autocomplete/autocomplete-trigger.d.ts +1 -1
- package/button/button.d.ts +11 -5
- package/core/option/option.d.ts +11 -11
- package/core/theming/_palette.scss +1 -1
- package/core/theming/_theming.scss +15 -4
- package/esm2020/autocomplete/autocomplete-module.mjs +5 -5
- package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
- package/esm2020/autocomplete/autocomplete-trigger.mjs +20 -18
- package/esm2020/autocomplete/autocomplete.mjs +7 -7
- package/esm2020/badge/badge-module.mjs +5 -5
- package/esm2020/badge/badge.mjs +4 -4
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +4 -4
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
- package/esm2020/bottom-sheet/bottom-sheet.mjs +4 -4
- package/esm2020/button/button-module.mjs +5 -5
- package/esm2020/button/button.mjs +35 -15
- package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2020/button-toggle/button-toggle.mjs +7 -7
- package/esm2020/card/card-module.mjs +5 -5
- package/esm2020/card/card.mjs +44 -44
- package/esm2020/checkbox/checkbox-module.mjs +9 -9
- package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2020/checkbox/checkbox.mjs +4 -4
- package/esm2020/chips/chip-input.mjs +4 -4
- package/esm2020/chips/chip-list.mjs +4 -4
- package/esm2020/chips/chip.mjs +13 -13
- package/esm2020/chips/chips-module.mjs +5 -5
- package/esm2020/core/common-behaviors/common-module.mjs +7 -11
- package/esm2020/core/datetime/index.mjs +9 -9
- package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
- package/esm2020/core/error/error-options.mjs +7 -7
- package/esm2020/core/line/line.mjs +8 -8
- package/esm2020/core/option/index.mjs +5 -5
- package/esm2020/core/option/optgroup.mjs +7 -7
- package/esm2020/core/option/option.mjs +7 -7
- package/esm2020/core/ripple/index.mjs +5 -5
- package/esm2020/core/ripple/ripple.mjs +4 -4
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +5 -5
- package/esm2020/datepicker/calendar.mjs +7 -7
- package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2020/datepicker/date-range-input.mjs +4 -4
- package/esm2020/datepicker/date-range-picker.mjs +4 -4
- package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
- package/esm2020/datepicker/date-selection-model.mjs +10 -10
- package/esm2020/datepicker/datepicker-actions.mjs +10 -10
- package/esm2020/datepicker/datepicker-base.mjs +7 -7
- package/esm2020/datepicker/datepicker-input-base.mjs +4 -4
- package/esm2020/datepicker/datepicker-input.mjs +4 -4
- package/esm2020/datepicker/datepicker-intl.mjs +4 -4
- package/esm2020/datepicker/datepicker-module.mjs +5 -5
- package/esm2020/datepicker/datepicker-toggle.mjs +7 -7
- package/esm2020/datepicker/datepicker.mjs +4 -4
- package/esm2020/datepicker/month-view.mjs +4 -4
- package/esm2020/datepicker/multi-year-view.mjs +4 -4
- package/esm2020/datepicker/year-view.mjs +4 -4
- package/esm2020/dialog/dialog-container.mjs +7 -7
- package/esm2020/dialog/dialog-content-directives.mjs +13 -13
- package/esm2020/dialog/dialog-module.mjs +5 -5
- package/esm2020/dialog/dialog.mjs +7 -7
- package/esm2020/divider/divider-module.mjs +5 -5
- package/esm2020/divider/divider.mjs +4 -4
- package/esm2020/expansion/accordion.mjs +4 -4
- package/esm2020/expansion/expansion-module.mjs +5 -5
- package/esm2020/expansion/expansion-panel-content.mjs +4 -4
- package/esm2020/expansion/expansion-panel-header.mjs +10 -10
- package/esm2020/expansion/expansion-panel.mjs +7 -7
- package/esm2020/form-field/error.mjs +4 -4
- package/esm2020/form-field/form-field-control.mjs +4 -4
- package/esm2020/form-field/form-field-module.mjs +5 -5
- package/esm2020/form-field/form-field.mjs +17 -13
- package/esm2020/form-field/hint.mjs +4 -4
- package/esm2020/form-field/label.mjs +4 -4
- package/esm2020/form-field/placeholder.mjs +4 -4
- package/esm2020/form-field/prefix.mjs +4 -4
- package/esm2020/form-field/suffix.mjs +4 -4
- package/esm2020/grid-list/grid-list-module.mjs +5 -5
- package/esm2020/grid-list/grid-list.mjs +4 -4
- package/esm2020/grid-list/grid-tile.mjs +16 -16
- package/esm2020/icon/icon-module.mjs +5 -5
- package/esm2020/icon/icon-registry.mjs +4 -4
- package/esm2020/icon/icon.mjs +4 -4
- package/esm2020/icon/testing/fake-icon-registry.mjs +8 -8
- package/esm2020/input/input-module.mjs +5 -5
- package/esm2020/input/input.mjs +7 -4
- package/esm2020/list/list-module.mjs +5 -5
- package/esm2020/list/list.mjs +19 -19
- package/esm2020/list/selection-list.mjs +7 -7
- package/esm2020/list/testing/list-item-harness-base.mjs +5 -1
- package/esm2020/list/testing/selection-list-harness.mjs +1 -5
- package/esm2020/menu/menu-content.mjs +7 -7
- package/esm2020/menu/menu-item.mjs +4 -4
- package/esm2020/menu/menu-module.mjs +5 -5
- package/esm2020/menu/menu-trigger.mjs +7 -7
- package/esm2020/menu/menu.mjs +11 -7
- package/esm2020/paginator/paginator-intl.mjs +4 -4
- package/esm2020/paginator/paginator-module.mjs +5 -5
- package/esm2020/paginator/paginator.mjs +7 -7
- package/esm2020/progress-bar/progress-bar-module.mjs +5 -5
- package/esm2020/progress-bar/progress-bar.mjs +21 -11
- package/esm2020/progress-spinner/progress-spinner-module.mjs +5 -5
- package/esm2020/progress-spinner/progress-spinner.mjs +56 -18
- package/esm2020/radio/radio-module.mjs +5 -5
- package/esm2020/radio/radio.mjs +13 -13
- package/esm2020/select/select-module.mjs +5 -5
- package/esm2020/select/select.mjs +14 -11
- package/esm2020/sidenav/drawer.mjs +60 -14
- package/esm2020/sidenav/sidenav-module.mjs +5 -5
- package/esm2020/sidenav/sidenav.mjs +25 -14
- package/esm2020/slide-toggle/slide-toggle-module.mjs +9 -9
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2020/slide-toggle/slide-toggle.mjs +4 -4
- package/esm2020/slider/slider-module.mjs +5 -5
- package/esm2020/slider/slider.mjs +14 -6
- package/esm2020/snack-bar/simple-snack-bar.mjs +5 -5
- package/esm2020/snack-bar/snack-bar-container.mjs +4 -4
- package/esm2020/snack-bar/snack-bar-module.mjs +5 -5
- package/esm2020/snack-bar/snack-bar.mjs +28 -14
- package/esm2020/sort/sort-header-intl.mjs +4 -4
- package/esm2020/sort/sort-header.mjs +4 -4
- package/esm2020/sort/sort-module.mjs +5 -5
- package/esm2020/sort/sort.mjs +4 -4
- package/esm2020/stepper/step-content.mjs +4 -4
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-icon.mjs +4 -4
- package/esm2020/stepper/stepper-intl.mjs +4 -4
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +16 -16
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/row.mjs +22 -22
- package/esm2020/table/table-data-source.mjs +2 -1
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +7 -7
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/tabs/ink-bar.mjs +4 -4
- package/esm2020/tabs/paginated-tab-header.mjs +4 -4
- package/esm2020/tabs/public-api.mjs +2 -2
- package/esm2020/tabs/tab-body.mjs +10 -10
- package/esm2020/tabs/tab-content.mjs +4 -4
- package/esm2020/tabs/tab-group.mjs +21 -9
- package/esm2020/tabs/tab-header.mjs +7 -7
- package/esm2020/tabs/tab-label-wrapper.mjs +4 -4
- package/esm2020/tabs/tab-label.mjs +4 -4
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +97 -15
- package/esm2020/tabs/tab.mjs +8 -4
- package/esm2020/tabs/tabs-module.mjs +10 -6
- package/esm2020/tabs/testing/tab-harness-filters.mjs +1 -1
- package/esm2020/tabs/testing/tab-nav-bar-harness.mjs +13 -1
- package/esm2020/tabs/testing/tab-nav-panel-harness.mjs +27 -0
- package/esm2020/toolbar/toolbar-module.mjs +5 -5
- package/esm2020/toolbar/toolbar.mjs +7 -7
- package/esm2020/tooltip/tooltip-module.mjs +5 -5
- package/esm2020/tooltip/tooltip.mjs +23 -28
- package/esm2020/tree/node.mjs +10 -10
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +4 -4
- package/fesm2015/autocomplete.mjs +35 -33
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/badge.mjs +7 -7
- package/fesm2015/badge.mjs.map +1 -1
- package/fesm2015/bottom-sheet.mjs +10 -10
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/button-toggle.mjs +10 -10
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/button.mjs +37 -17
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card.mjs +47 -47
- package/fesm2015/card.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +14 -14
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips.mjs +22 -22
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +63 -68
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +83 -83
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog.mjs +28 -28
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider.mjs +7 -7
- package/fesm2015/divider.mjs.map +1 -1
- package/fesm2015/expansion.mjs +25 -25
- package/fesm2015/expansion.mjs.map +1 -1
- package/fesm2015/form-field.mjs +41 -37
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list.mjs +22 -22
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon/testing.mjs +7 -7
- package/fesm2015/icon/testing.mjs.map +1 -1
- package/fesm2015/icon.mjs +10 -10
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/input.mjs +10 -7
- package/fesm2015/input.mjs.map +1 -1
- package/fesm2015/list/testing.mjs +6 -6
- package/fesm2015/list/testing.mjs.map +1 -1
- package/fesm2015/list.mjs +28 -28
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu.mjs +29 -25
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/paginator.mjs +13 -13
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-bar.mjs +25 -13
- package/fesm2015/progress-bar.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +58 -20
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/radio.mjs +16 -16
- package/fesm2015/radio.mjs.map +1 -1
- package/fesm2015/select.mjs +17 -14
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +88 -31
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/slide-toggle.mjs +14 -14
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider.mjs +17 -9
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +41 -25
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort.mjs +13 -13
- package/fesm2015/sort.mjs.map +1 -1
- package/fesm2015/stepper.mjs +40 -40
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +56 -55
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs/testing.mjs +34 -0
- package/fesm2015/tabs/testing.mjs.map +1 -1
- package/fesm2015/tabs.mjs +162 -60
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +10 -10
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2015/tooltip.mjs +26 -31
- package/fesm2015/tooltip.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/autocomplete.mjs +35 -33
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/badge.mjs +7 -7
- package/fesm2020/badge.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +10 -10
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +10 -10
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/button.mjs +37 -17
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card.mjs +47 -47
- package/fesm2020/card.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +14 -14
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips.mjs +22 -22
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +63 -68
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +83 -83
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog.mjs +28 -28
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider.mjs +7 -7
- package/fesm2020/divider.mjs.map +1 -1
- package/fesm2020/expansion.mjs +25 -25
- package/fesm2020/expansion.mjs.map +1 -1
- package/fesm2020/form-field.mjs +41 -37
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list.mjs +22 -22
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon/testing.mjs +7 -7
- package/fesm2020/icon/testing.mjs.map +1 -1
- package/fesm2020/icon.mjs +10 -10
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/input.mjs +10 -7
- package/fesm2020/input.mjs.map +1 -1
- package/fesm2020/list/testing.mjs +4 -4
- package/fesm2020/list/testing.mjs.map +1 -1
- package/fesm2020/list.mjs +28 -28
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu.mjs +29 -25
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/paginator.mjs +13 -13
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-bar.mjs +23 -13
- package/fesm2020/progress-bar.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +57 -20
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/radio.mjs +16 -16
- package/fesm2020/radio.mjs.map +1 -1
- package/fesm2020/select.mjs +17 -14
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +87 -30
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/slide-toggle.mjs +14 -14
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider.mjs +17 -9
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +39 -25
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort.mjs +13 -13
- package/fesm2020/sort.mjs.map +1 -1
- package/fesm2020/stepper.mjs +40 -40
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +56 -55
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs/testing.mjs +37 -0
- package/fesm2020/tabs/testing.mjs.map +1 -1
- package/fesm2020/tabs.mjs +161 -60
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +10 -10
- package/fesm2020/toolbar.mjs.map +1 -1
- package/fesm2020/tooltip.mjs +26 -31
- package/fesm2020/tooltip.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -25
- package/fesm2020/tree.mjs.map +1 -1
- package/input/input.d.ts +6 -1
- package/list/_list-theme.scss +4 -3
- package/list/testing/list-item-harness-base.d.ts +2 -0
- package/list/testing/selection-list-harness.d.ts +0 -2
- package/package.json +2 -2
- package/paginator/paginator.d.ts +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/progress-bar.d.ts +13 -3
- package/progress-spinner/progress-spinner.d.ts +20 -8
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/tsconfig.json +1 -0
- package/sidenav/drawer.d.ts +16 -3
- package/slider/_slider-theme.scss +12 -10
- package/snack-bar/snack-bar.d.ts +18 -10
- package/tabs/public-api.d.ts +1 -1
- package/tabs/tab-group.d.ts +10 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +29 -2
- package/tabs/tab.d.ts +11 -1
- package/tabs/tabs-module.d.ts +1 -1
- package/tabs/testing/tab-harness-filters.d.ts +3 -0
- package/tabs/testing/tab-nav-bar-harness.d.ts +3 -0
- package/tabs/testing/tab-nav-panel-harness.d.ts +23 -0
- package/tooltip/tooltip.d.ts +0 -5
|
@@ -52,16 +52,18 @@
|
|
|
52
52
|
background-color: $mat-slider-off-color;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.mat-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
.mat-slider {
|
|
56
|
+
&.mat-primary {
|
|
57
|
+
@include _inner-content-theme($primary);
|
|
58
|
+
}
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
&.mat-accent {
|
|
61
|
+
@include _inner-content-theme($accent);
|
|
62
|
+
}
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
&.mat-warn {
|
|
65
|
+
@include _inner-content-theme($warn);
|
|
66
|
+
}
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.mat-slider:hover,
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
.mat-slider-disabled {
|
|
76
|
+
.mat-slider.mat-slider-disabled {
|
|
75
77
|
.mat-slider-track-background,
|
|
76
78
|
.mat-slider-track-fill,
|
|
77
79
|
.mat-slider-thumb {
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
.mat-slider-min-value {
|
|
90
|
+
.mat-slider.mat-slider-min-value {
|
|
89
91
|
.mat-slider-focus-ring {
|
|
90
92
|
$opacity: 0.12;
|
|
91
93
|
$color: theming.get-color-from-palette($foreground, base, $opacity);
|
package/snack-bar/snack-bar.d.ts
CHANGED
|
@@ -10,19 +10,16 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|
|
10
10
|
import { Overlay } from '@angular/cdk/overlay';
|
|
11
11
|
import { ComponentType } from '@angular/cdk/portal';
|
|
12
12
|
import { EmbeddedViewRef, InjectionToken, Injector, TemplateRef, OnDestroy, Type } from '@angular/core';
|
|
13
|
-
import { TextOnlySnackBar } from './simple-snack-bar';
|
|
13
|
+
import { TextOnlySnackBar, SimpleSnackBar } from './simple-snack-bar';
|
|
14
14
|
import { MatSnackBarConfig } from './snack-bar-config';
|
|
15
|
-
import { _SnackBarContainer } from './snack-bar-container';
|
|
15
|
+
import { MatSnackBarContainer, _SnackBarContainer } from './snack-bar-container';
|
|
16
16
|
import { MatSnackBarRef } from './snack-bar-ref';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
/** Injection token that can be used to specify default snack bar. */
|
|
19
19
|
export declare const MAT_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken<MatSnackBarConfig<any>>;
|
|
20
20
|
/** @docs-private */
|
|
21
21
|
export declare function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(): MatSnackBarConfig;
|
|
22
|
-
|
|
23
|
-
* Service to dispatch Material Design snack bar messages.
|
|
24
|
-
*/
|
|
25
|
-
export declare class MatSnackBar implements OnDestroy {
|
|
22
|
+
export declare abstract class _MatSnackBarBase implements OnDestroy {
|
|
26
23
|
private _overlay;
|
|
27
24
|
private _live;
|
|
28
25
|
private _injector;
|
|
@@ -36,15 +33,15 @@ export declare class MatSnackBar implements OnDestroy {
|
|
|
36
33
|
*/
|
|
37
34
|
private _snackBarRefAtThisLevel;
|
|
38
35
|
/** The component that should be rendered as the snack bar's simple component. */
|
|
39
|
-
protected simpleSnackBarComponent: Type<TextOnlySnackBar>;
|
|
36
|
+
protected abstract simpleSnackBarComponent: Type<TextOnlySnackBar>;
|
|
40
37
|
/** The container component that attaches the provided template or component. */
|
|
41
|
-
protected snackBarContainerComponent: Type<_SnackBarContainer>;
|
|
38
|
+
protected abstract snackBarContainerComponent: Type<_SnackBarContainer>;
|
|
42
39
|
/** The CSS class to apply for handset mode. */
|
|
43
|
-
protected handsetCssClass: string;
|
|
40
|
+
protected abstract handsetCssClass: string;
|
|
44
41
|
/** Reference to the currently opened snackbar at *any* level. */
|
|
45
42
|
get _openedSnackBarRef(): MatSnackBarRef<any> | null;
|
|
46
43
|
set _openedSnackBarRef(value: MatSnackBarRef<any> | null);
|
|
47
|
-
constructor(_overlay: Overlay, _live: LiveAnnouncer, _injector: Injector, _breakpointObserver: BreakpointObserver, _parentSnackBar:
|
|
44
|
+
constructor(_overlay: Overlay, _live: LiveAnnouncer, _injector: Injector, _breakpointObserver: BreakpointObserver, _parentSnackBar: _MatSnackBarBase, _defaultConfig: MatSnackBarConfig);
|
|
48
45
|
/**
|
|
49
46
|
* Creates and dispatches a snack bar with a custom component for the content, removing any
|
|
50
47
|
* currently opened snack bars.
|
|
@@ -94,6 +91,17 @@ export declare class MatSnackBar implements OnDestroy {
|
|
|
94
91
|
* @param snackBarRef Reference to the snack bar.
|
|
95
92
|
*/
|
|
96
93
|
private _createInjector;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_MatSnackBarBase, [null, null, null, null, { optional: true; skipSelf: true; }, null]>;
|
|
95
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<_MatSnackBarBase>;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Service to dispatch Material Design snack bar messages.
|
|
99
|
+
*/
|
|
100
|
+
export declare class MatSnackBar extends _MatSnackBarBase {
|
|
101
|
+
protected simpleSnackBarComponent: typeof SimpleSnackBar;
|
|
102
|
+
protected snackBarContainerComponent: typeof MatSnackBarContainer;
|
|
103
|
+
protected handsetCssClass: string;
|
|
104
|
+
constructor(overlay: Overlay, live: LiveAnnouncer, injector: Injector, breakpointObserver: BreakpointObserver, parentSnackBar: MatSnackBar, defaultConfig: MatSnackBarConfig);
|
|
97
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBar, [null, null, null, null, { optional: true; skipSelf: true; }, null]>;
|
|
98
106
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatSnackBar>;
|
|
99
107
|
}
|
package/tabs/public-api.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { MatTabHeader, _MatTabHeaderBase } from './tab-header';
|
|
|
13
13
|
export { MatTabLabelWrapper } from './tab-label-wrapper';
|
|
14
14
|
export { MatTab, MAT_TAB_GROUP } from './tab';
|
|
15
15
|
export { MatTabLabel, MAT_TAB } from './tab-label';
|
|
16
|
-
export { MatTabNav, MatTabLink, _MatTabNavBase, _MatTabLinkBase } from './tab-nav-bar/index';
|
|
16
|
+
export { MatTabNav, MatTabLink, MatTabNavPanel, _MatTabNavBase, _MatTabLinkBase, } from './tab-nav-bar/index';
|
|
17
17
|
export { MatTabContent } from './tab-content';
|
|
18
18
|
export { ScrollDirection } from './paginated-tab-header';
|
|
19
19
|
export * from './tabs-animations';
|
package/tabs/tab-group.d.ts
CHANGED
|
@@ -28,7 +28,8 @@ declare const _MatTabGroupMixinBase: import("@angular/material/core")._Construct
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
interface MatTabGroupBaseHeader {
|
|
31
|
-
_alignInkBarToSelectedTab
|
|
31
|
+
_alignInkBarToSelectedTab(): void;
|
|
32
|
+
updatePagination(): void;
|
|
32
33
|
focusIndex: number;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
@@ -110,6 +111,14 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
|
|
|
110
111
|
ngOnDestroy(): void;
|
|
111
112
|
/** Re-aligns the ink bar to the selected tab element. */
|
|
112
113
|
realignInkBar(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Recalculates the tab group's pagination dimensions.
|
|
116
|
+
*
|
|
117
|
+
* WARNING: Calling this method can be very costly in terms of performance. It should be called
|
|
118
|
+
* as infrequently as possible from outside of the Tabs component as it causes a reflow of the
|
|
119
|
+
* page.
|
|
120
|
+
*/
|
|
121
|
+
updatePagination(): void;
|
|
113
122
|
/**
|
|
114
123
|
* Sets focus to a particular tab.
|
|
115
124
|
* @param index Index of the tab to be focused.
|
|
@@ -23,6 +23,7 @@ export declare abstract class _MatTabNavBase extends MatPaginatedTabHeader imple
|
|
|
23
23
|
/** Query list of all tab links of the tab navigation. */
|
|
24
24
|
abstract _items: QueryList<MatPaginatedTabHeaderItem & {
|
|
25
25
|
active: boolean;
|
|
26
|
+
id: string;
|
|
26
27
|
}>;
|
|
27
28
|
/** Background color of the tab nav. */
|
|
28
29
|
get backgroundColor(): ThemePalette;
|
|
@@ -34,13 +35,20 @@ export declare abstract class _MatTabNavBase extends MatPaginatedTabHeader imple
|
|
|
34
35
|
private _disableRipple;
|
|
35
36
|
/** Theme color of the nav bar. */
|
|
36
37
|
color: ThemePalette;
|
|
38
|
+
/**
|
|
39
|
+
* Associated tab panel controlled by the nav bar. If not provided, then the nav bar
|
|
40
|
+
* follows the ARIA link / navigation landmark pattern. If provided, it follows the
|
|
41
|
+
* ARIA tabs design pattern.
|
|
42
|
+
*/
|
|
43
|
+
tabPanel?: MatTabNavPanel;
|
|
37
44
|
constructor(elementRef: ElementRef, dir: Directionality, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, platform: Platform, animationMode?: string);
|
|
38
45
|
protected _itemSelected(): void;
|
|
39
46
|
ngAfterContentInit(): void;
|
|
40
47
|
/** Notifies the component that the active link has been changed. */
|
|
41
48
|
updateActiveLink(): void;
|
|
49
|
+
_getRole(): string | null;
|
|
42
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatTabNavBase, [null, { optional: true; }, null, null, null, null, { optional: true; }]>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabNavBase, never, never, { "backgroundColor": "backgroundColor"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never>;
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabNavBase, never, never, { "backgroundColor": "backgroundColor"; "disableRipple": "disableRipple"; "color": "color"; "tabPanel": "tabPanel"; }, {}, never>;
|
|
44
52
|
}
|
|
45
53
|
/**
|
|
46
54
|
* Navigation component matching the styles of the tab group header.
|
|
@@ -83,6 +91,8 @@ export declare class _MatTabLinkBase extends _MatTabLinkMixinBase implements Aft
|
|
|
83
91
|
* @docs-private
|
|
84
92
|
*/
|
|
85
93
|
get rippleDisabled(): boolean;
|
|
94
|
+
/** Unique id for the tab. */
|
|
95
|
+
id: string;
|
|
86
96
|
constructor(_tabNavBar: _MatTabNavBase,
|
|
87
97
|
/** @docs-private */ elementRef: ElementRef, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, _focusMonitor: FocusMonitor, animationMode?: string);
|
|
88
98
|
/** Focuses the tab link. */
|
|
@@ -90,8 +100,14 @@ export declare class _MatTabLinkBase extends _MatTabLinkMixinBase implements Aft
|
|
|
90
100
|
ngAfterViewInit(): void;
|
|
91
101
|
ngOnDestroy(): void;
|
|
92
102
|
_handleFocus(): void;
|
|
103
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
104
|
+
_getAriaControls(): string | null;
|
|
105
|
+
_getAriaSelected(): string | null;
|
|
106
|
+
_getAriaCurrent(): string | null;
|
|
107
|
+
_getRole(): string | null;
|
|
108
|
+
_getTabIndex(): number;
|
|
93
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatTabLinkBase, [null, null, { optional: true; }, { attribute: "tabindex"; }, null, { optional: true; }]>;
|
|
94
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabLinkBase, never, never, { "active": "active"; }, {}, never>;
|
|
110
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabLinkBase, never, never, { "active": "active"; "id": "id"; }, {}, never>;
|
|
95
111
|
}
|
|
96
112
|
/**
|
|
97
113
|
* Link inside of a `mat-tab-nav-bar`.
|
|
@@ -104,4 +120,15 @@ export declare class MatTabLink extends _MatTabLinkBase implements OnDestroy {
|
|
|
104
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLink, [null, null, null, null, { optional: true; }, { attribute: "tabindex"; }, null, { optional: true; }]>;
|
|
105
121
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLink, "[mat-tab-link], [matTabLink]", ["matTabLink"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never>;
|
|
106
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Tab panel component associated with MatTabNav.
|
|
125
|
+
*/
|
|
126
|
+
export declare class MatTabNavPanel {
|
|
127
|
+
/** Unique id for the tab panel. */
|
|
128
|
+
id: string;
|
|
129
|
+
/** Id of the active tab in the nav bar. */
|
|
130
|
+
_activeTabId?: string;
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabNavPanel, never>;
|
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabNavPanel, "mat-tab-nav-panel", ["matTabNavPanel"], { "id": "id"; }, {}, never, ["*"]>;
|
|
133
|
+
}
|
|
107
134
|
export {};
|
package/tabs/tab.d.ts
CHANGED
|
@@ -42,6 +42,16 @@ export declare class MatTab extends _MatTabBase implements OnInit, CanDisable, O
|
|
|
42
42
|
* Will be cleared if `aria-label` is set at the same time.
|
|
43
43
|
*/
|
|
44
44
|
ariaLabelledby: string;
|
|
45
|
+
/**
|
|
46
|
+
* Classes to be passed to the tab label inside the mat-tab-header container.
|
|
47
|
+
* Supports string and string array values, same as `ngClass`.
|
|
48
|
+
*/
|
|
49
|
+
labelClass: string | string[];
|
|
50
|
+
/**
|
|
51
|
+
* Classes to be passed to the tab mat-tab-body container.
|
|
52
|
+
* Supports string and string array values, same as `ngClass`.
|
|
53
|
+
*/
|
|
54
|
+
bodyClass: string | string[];
|
|
45
55
|
/** Portal that will be the hosted content of the tab */
|
|
46
56
|
private _contentPortal;
|
|
47
57
|
/** @docs-private */
|
|
@@ -74,6 +84,6 @@ export declare class MatTab extends _MatTabBase implements OnInit, CanDisable, O
|
|
|
74
84
|
*/
|
|
75
85
|
protected _setTemplateLabelInput(value: MatTabLabel | undefined): void;
|
|
76
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTab, [null, { optional: true; }]>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTab, "mat-tab", ["matTab"], { "disabled": "disabled"; "textLabel": "label"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; }, {}, ["templateLabel", "_explicitContent"], ["*"]>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTab, "mat-tab", ["matTab"], { "disabled": "disabled"; "textLabel": "label"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "labelClass": "labelClass"; "bodyClass": "bodyClass"; }, {}, ["templateLabel", "_explicitContent"], ["*"]>;
|
|
78
88
|
}
|
|
79
89
|
export {};
|
package/tabs/tabs-module.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ import * as i13 from "@angular/cdk/observers";
|
|
|
15
15
|
import * as i14 from "@angular/cdk/a11y";
|
|
16
16
|
export declare class MatTabsModule {
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabsModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, [typeof i1.MatTabGroup, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i4.MatInkBar, typeof i5.MatTabLabelWrapper, typeof i6.MatTabNav, typeof i6.MatTabLink, typeof i7.MatTabBody, typeof i7.MatTabBodyPortal, typeof i8.MatTabHeader, typeof i9.MatTabContent], [typeof i10.CommonModule, typeof i11.MatCommonModule, typeof i12.PortalModule, typeof i11.MatRippleModule, typeof i13.ObserversModule, typeof i14.A11yModule], [typeof i11.MatCommonModule, typeof i1.MatTabGroup, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i6.MatTabNav, typeof i6.MatTabLink, typeof i9.MatTabContent]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, [typeof i1.MatTabGroup, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i4.MatInkBar, typeof i5.MatTabLabelWrapper, typeof i6.MatTabNav, typeof i6.MatTabNavPanel, typeof i6.MatTabLink, typeof i7.MatTabBody, typeof i7.MatTabBodyPortal, typeof i8.MatTabHeader, typeof i9.MatTabContent], [typeof i10.CommonModule, typeof i11.MatCommonModule, typeof i12.PortalModule, typeof i11.MatRippleModule, typeof i13.ObserversModule, typeof i14.A11yModule], [typeof i11.MatCommonModule, typeof i1.MatTabGroup, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i6.MatTabNav, typeof i6.MatTabNavPanel, typeof i6.MatTabLink, typeof i9.MatTabContent]>;
|
|
19
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatTabsModule>;
|
|
20
20
|
}
|
|
@@ -24,3 +24,6 @@ export interface TabLinkHarnessFilters extends BaseHarnessFilters {
|
|
|
24
24
|
/** A set of criteria that can be used to filter a list of `MatTabNavBarHarness` instances. */
|
|
25
25
|
export interface TabNavBarHarnessFilters extends BaseHarnessFilters {
|
|
26
26
|
}
|
|
27
|
+
/** A set of criteria that can be used to filter a list of `MatTabNavBarHarness` instances. */
|
|
28
|
+
export interface TabNavPanelHarnessFilters extends BaseHarnessFilters {
|
|
29
|
+
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
9
9
|
import { TabNavBarHarnessFilters, TabLinkHarnessFilters } from './tab-harness-filters';
|
|
10
10
|
import { MatTabLinkHarness } from './tab-link-harness';
|
|
11
|
+
import { MatTabNavPanelHarness } from './tab-nav-panel-harness';
|
|
11
12
|
/** Harness for interacting with a standard mat-tab-nav-bar in tests. */
|
|
12
13
|
export declare class MatTabNavBarHarness extends ComponentHarness {
|
|
13
14
|
/** The selector for the host element of a `MatTabNavBar` instance. */
|
|
@@ -32,4 +33,6 @@ export declare class MatTabNavBarHarness extends ComponentHarness {
|
|
|
32
33
|
* will be clicked.
|
|
33
34
|
*/
|
|
34
35
|
clickLink(filter?: TabLinkHarnessFilters): Promise<void>;
|
|
36
|
+
/** Gets the panel associated with the nav bar. */
|
|
37
|
+
getPanel(): Promise<MatTabNavPanelHarness>;
|
|
35
38
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
9
|
+
import { TabNavPanelHarnessFilters } from './tab-harness-filters';
|
|
10
|
+
/** Harness for interacting with a standard mat-tab-nav-panel in tests. */
|
|
11
|
+
export declare class MatTabNavPanelHarness extends ContentContainerComponentHarness {
|
|
12
|
+
/** The selector for the host element of a `MatTabNavPanel` instance. */
|
|
13
|
+
static hostSelector: string;
|
|
14
|
+
/**
|
|
15
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatTabNavPanel` that meets
|
|
16
|
+
* certain criteria.
|
|
17
|
+
* @param options Options for filtering which tab nav panel instances are considered a match.
|
|
18
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
19
|
+
*/
|
|
20
|
+
static with(options?: TabNavPanelHarnessFilters): HarnessPredicate<MatTabNavPanelHarness>;
|
|
21
|
+
/** Gets the tab panel text content. */
|
|
22
|
+
getTextContent(): Promise<string>;
|
|
23
|
+
}
|
package/tooltip/tooltip.d.ts
CHANGED
|
@@ -147,11 +147,6 @@ export declare abstract class _MatTooltipBase<T extends _TooltipComponentBase> i
|
|
|
147
147
|
toggle(): void;
|
|
148
148
|
/** Returns true if the tooltip is currently visible to the user */
|
|
149
149
|
_isTooltipVisible(): boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Handles the keydown events on the host element.
|
|
152
|
-
* Needs to be an arrow function so that we can use it in addEventListener.
|
|
153
|
-
*/
|
|
154
|
-
private _handleKeydown;
|
|
155
150
|
/** Create the overlay config and position strategy */
|
|
156
151
|
private _createOverlay;
|
|
157
152
|
/** Detaches the currently-attached tooltip. */
|