@angular/material 14.0.0-next.0 → 14.0.0-next.11
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 +20 -1
- package/autocomplete/autocomplete-trigger.d.ts +14 -3
- package/autocomplete/autocomplete.d.ts +7 -1
- package/badge/_badge-theme.scss +11 -2
- package/button-toggle/_button-toggle-theme.scss +14 -2
- package/checkbox/_checkbox-theme.scss +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/testing/checkbox-harness-filters.d.ts +2 -0
- package/chips/chip-input.d.ts +2 -5
- package/chips/chip-list.d.ts +21 -6
- package/chips/chip.d.ts +4 -4
- package/core/_core.scss +5 -7
- package/core/common-behaviors/error-state.d.ts +1 -2
- package/core/datetime/index.d.ts +1 -2
- package/core/ripple/_ripple.scss +2 -2
- package/core/ripple/index.d.ts +1 -2
- package/core/ripple/ripple-ref.d.ts +2 -1
- package/core/ripple/ripple-renderer.d.ts +16 -3
- package/core/style/_menu-common.scss +3 -2
- package/core/style/_vendor-prefixes.scss +1 -17
- package/core/theming/_theming.scss +9 -0
- package/core/typography/_typography.scss +51 -14
- package/datepicker/calendar-body.d.ts +34 -4
- package/datepicker/date-range-input-parts.d.ts +4 -1
- package/datepicker/datepicker-base.d.ts +2 -0
- package/datepicker/month-view.d.ts +18 -0
- package/datepicker/multi-year-view.d.ts +18 -0
- package/datepicker/year-view.d.ts +18 -0
- package/dialog/dialog-animations.d.ts +10 -0
- package/dialog/dialog-config.d.ts +12 -1
- package/dialog/dialog-container.d.ts +12 -4
- package/dialog/dialog-content-directives.d.ts +5 -1
- package/dialog/dialog.d.ts +12 -6
- package/dialog/public-api.d.ts +1 -1
- package/dialog/testing/dialog-opener.d.ts +33 -0
- package/dialog/testing/public-api.d.ts +1 -0
- package/esm2020/autocomplete/autocomplete-module.mjs +5 -5
- package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
- package/esm2020/autocomplete/autocomplete-trigger.mjs +96 -49
- package/esm2020/autocomplete/autocomplete.mjs +19 -9
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +7 -1
- package/esm2020/badge/badge-module.mjs +5 -5
- package/esm2020/badge/badge.mjs +4 -4
- package/esm2020/bottom-sheet/bottom-sheet-animations.mjs +10 -4
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +12 -7
- 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 +10 -10
- package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2020/button-toggle/button-toggle.mjs +8 -8
- 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 +12 -8
- package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
- package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -2
- package/esm2020/chips/chip-input.mjs +4 -4
- package/esm2020/chips/chip-list.mjs +34 -9
- package/esm2020/chips/chip.mjs +20 -17
- package/esm2020/chips/chips-module.mjs +5 -5
- package/esm2020/core/common-behaviors/common-module.mjs +5 -5
- package/esm2020/core/common-behaviors/error-state.mjs +1 -8
- package/esm2020/core/datetime/index.mjs +9 -11
- 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 +8 -8
- package/esm2020/core/option/option.mjs +8 -8
- package/esm2020/core/ripple/index.mjs +6 -7
- package/esm2020/core/ripple/ripple-ref.mjs +5 -2
- package/esm2020/core/ripple/ripple-renderer.mjs +112 -54
- 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 +5 -5
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +57 -12
- package/esm2020/datepicker/calendar.mjs +26 -15
- package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2020/datepicker/date-range-input.mjs +6 -6
- 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 +12 -12
- package/esm2020/datepicker/datepicker-base.mjs +9 -17
- package/esm2020/datepicker/datepicker-input-base.mjs +12 -7
- 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 +8 -8
- package/esm2020/datepicker/datepicker.mjs +4 -4
- package/esm2020/datepicker/month-view.mjs +36 -9
- package/esm2020/datepicker/multi-year-view.mjs +42 -10
- package/esm2020/datepicker/year-view.mjs +41 -10
- package/esm2020/dialog/dialog-animations.mjs +17 -4
- package/esm2020/dialog/dialog-config.mjs +8 -1
- package/esm2020/dialog/dialog-container.mjs +44 -26
- package/esm2020/dialog/dialog-content-directives.mjs +31 -15
- package/esm2020/dialog/dialog-module.mjs +5 -5
- package/esm2020/dialog/dialog.mjs +24 -40
- package/esm2020/dialog/public-api.mjs +2 -2
- package/esm2020/dialog/testing/dialog-opener.mjs +67 -0
- package/esm2020/dialog/testing/public-api.mjs +2 -1
- package/esm2020/divider/divider-module.mjs +5 -5
- package/esm2020/divider/divider.mjs +5 -5
- package/esm2020/expansion/accordion.mjs +4 -4
- package/esm2020/expansion/expansion-module.mjs +5 -5
- package/esm2020/expansion/expansion-panel-base.mjs +14 -0
- package/esm2020/expansion/expansion-panel-content.mjs +14 -7
- package/esm2020/expansion/expansion-panel-header.mjs +11 -11
- package/esm2020/expansion/expansion-panel.mjs +13 -10
- package/esm2020/expansion/public-api.mjs +2 -1
- 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 +22 -14
- 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/form-field/testing/public-api.mjs +4 -4
- package/esm2020/grid-list/grid-list-module.mjs +5 -5
- package/esm2020/grid-list/grid-list.mjs +6 -6
- package/esm2020/grid-list/grid-tile.mjs +17 -17
- package/esm2020/icon/icon-module.mjs +5 -5
- package/esm2020/icon/icon-registry.mjs +12 -14
- package/esm2020/icon/icon.mjs +31 -28
- package/esm2020/icon/testing/fake-icon-registry.mjs +9 -9
- package/esm2020/input/input-module.mjs +5 -5
- package/esm2020/input/input.mjs +41 -24
- package/esm2020/list/list-module.mjs +5 -5
- package/esm2020/list/list.mjs +21 -23
- package/esm2020/list/selection-list.mjs +15 -38
- package/esm2020/list/testing/list-item-harness-base.mjs +1 -9
- package/esm2020/menu/menu-content.mjs +7 -7
- package/esm2020/menu/menu-errors.mjs +1 -12
- package/esm2020/menu/menu-item.mjs +8 -4
- package/esm2020/menu/menu-module.mjs +5 -5
- package/esm2020/menu/menu-trigger.mjs +79 -65
- package/esm2020/menu/menu.mjs +35 -14
- package/esm2020/paginator/paginator-intl.mjs +4 -4
- package/esm2020/paginator/paginator-module.mjs +5 -5
- package/esm2020/paginator/paginator.mjs +12 -8
- package/esm2020/paginator/testing/paginator-harness.mjs +11 -1
- package/esm2020/progress-bar/progress-bar-module.mjs +5 -5
- package/esm2020/progress-bar/progress-bar.mjs +8 -5
- package/esm2020/progress-spinner/progress-spinner-module.mjs +8 -8
- package/esm2020/progress-spinner/progress-spinner.mjs +14 -51
- package/esm2020/progress-spinner/public-api.mjs +10 -2
- package/esm2020/radio/radio-module.mjs +5 -5
- package/esm2020/radio/radio.mjs +42 -14
- package/esm2020/radio/testing/radio-harness-filters.mjs +1 -1
- package/esm2020/radio/testing/radio-harness.mjs +3 -2
- package/esm2020/select/select-module.mjs +5 -5
- package/esm2020/select/select.mjs +66 -28
- package/esm2020/sidenav/drawer.mjs +19 -14
- package/esm2020/sidenav/sidenav-module.mjs +7 -8
- package/esm2020/sidenav/sidenav.mjs +12 -12
- 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 +6 -5
- package/esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs +1 -1
- package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +4 -2
- package/esm2020/slider/slider-module.mjs +5 -5
- package/esm2020/slider/slider.mjs +15 -8
- package/esm2020/snack-bar/simple-snack-bar.mjs +5 -5
- package/esm2020/snack-bar/snack-bar-container.mjs +24 -18
- package/esm2020/snack-bar/snack-bar-module.mjs +5 -5
- package/esm2020/snack-bar/snack-bar.mjs +7 -7
- package/esm2020/sort/sort-header-intl.mjs +4 -4
- package/esm2020/sort/sort-header.mjs +16 -8
- package/esm2020/sort/sort-module.mjs +5 -5
- package/esm2020/sort/sort.mjs +4 -4
- package/esm2020/stepper/public-api.mjs +2 -2
- package/esm2020/stepper/step-content.mjs +4 -4
- package/esm2020/stepper/step-header.mjs +5 -5
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-animations.mjs +9 -3
- 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 +6 -10
- package/esm2020/stepper/stepper.mjs +39 -63
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/row.mjs +22 -22
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +9 -9
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/tabs/ink-bar.mjs +11 -22
- package/esm2020/tabs/paginated-tab-header.mjs +27 -13
- package/esm2020/tabs/tab-body.mjs +18 -12
- package/esm2020/tabs/tab-config.mjs +1 -1
- package/esm2020/tabs/tab-content.mjs +4 -4
- package/esm2020/tabs/tab-group.mjs +55 -11
- package/esm2020/tabs/tab-header.mjs +8 -8
- 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 +18 -18
- package/esm2020/tabs/tab.mjs +4 -4
- package/esm2020/tabs/tabs-animations.mjs +16 -6
- package/esm2020/tabs/tabs-module.mjs +5 -5
- package/esm2020/toolbar/toolbar-module.mjs +5 -5
- package/esm2020/toolbar/toolbar.mjs +8 -8
- package/esm2020/tooltip/testing/tooltip-harness.mjs +12 -7
- package/esm2020/tooltip/tooltip-module.mjs +5 -5
- package/esm2020/tooltip/tooltip.mjs +126 -51
- 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 +5 -5
- package/expansion/expansion-panel-base.d.ts +22 -0
- package/expansion/expansion-panel-content.d.ts +4 -2
- package/expansion/public-api.d.ts +1 -0
- package/fesm2015/autocomplete/testing.mjs +6 -0
- package/fesm2015/autocomplete/testing.mjs.map +1 -1
- package/fesm2015/autocomplete.mjs +125 -67
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/badge/testing.mjs.map +1 -1
- package/fesm2015/badge.mjs +7 -7
- package/fesm2015/badge.mjs.map +1 -1
- package/fesm2015/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2015/bottom-sheet.mjs +27 -16
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/button/testing.mjs.map +1 -1
- package/fesm2015/button-toggle/testing.mjs.map +1 -1
- package/fesm2015/button-toggle.mjs +11 -11
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/button.mjs +13 -13
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card/testing.mjs.map +1 -1
- package/fesm2015/card.mjs +47 -47
- package/fesm2015/card.mjs.map +1 -1
- package/fesm2015/checkbox/testing.mjs +2 -1
- package/fesm2015/checkbox/testing.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +22 -18
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips/testing.mjs.map +1 -1
- package/fesm2015/chips.mjs +59 -31
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core/testing.mjs.map +1 -1
- package/fesm2015/core.mjs +181 -126
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker/testing.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +273 -130
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog/testing.mjs +65 -2
- package/fesm2015/dialog/testing.mjs.map +1 -1
- package/fesm2015/dialog.mjs +144 -106
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider/testing.mjs.map +1 -1
- package/fesm2015/divider.mjs +8 -8
- package/fesm2015/divider.mjs.map +1 -1
- package/fesm2015/expansion/testing.mjs.map +1 -1
- package/fesm2015/expansion.mjs +56 -33
- package/fesm2015/expansion.mjs.map +1 -1
- package/fesm2015/form-field/testing/control.mjs.map +1 -1
- package/fesm2015/form-field/testing.mjs +1 -1
- package/fesm2015/form-field/testing.mjs.map +1 -1
- package/fesm2015/form-field.mjs +47 -38
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list/testing.mjs.map +1 -1
- package/fesm2015/grid-list.mjs +25 -25
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon/testing.mjs +8 -8
- package/fesm2015/icon/testing.mjs.map +1 -1
- package/fesm2015/icon.mjs +45 -44
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/input/testing.mjs.map +1 -1
- package/fesm2015/input.mjs +45 -28
- package/fesm2015/input.mjs.map +1 -1
- package/fesm2015/list/testing.mjs +0 -10
- package/fesm2015/list/testing.mjs.map +1 -1
- package/fesm2015/list.mjs +41 -67
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/material.mjs.map +1 -1
- package/fesm2015/menu/testing.mjs.map +1 -1
- package/fesm2015/menu.mjs +131 -99
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/paginator/testing.mjs +14 -0
- package/fesm2015/paginator/testing.mjs.map +1 -1
- package/fesm2015/paginator.mjs +18 -14
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-bar/testing.mjs.map +1 -1
- package/fesm2015/progress-bar.mjs +11 -8
- package/fesm2015/progress-bar.mjs.map +1 -1
- package/fesm2015/progress-spinner/testing.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +31 -63
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/radio/testing.mjs +2 -1
- package/fesm2015/radio/testing.mjs.map +1 -1
- package/fesm2015/radio.mjs +46 -17
- package/fesm2015/radio.mjs.map +1 -1
- package/fesm2015/select/testing.mjs.map +1 -1
- package/fesm2015/select.mjs +70 -32
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/sidenav/testing.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +36 -32
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/slide-toggle/testing.mjs +3 -1
- package/fesm2015/slide-toggle/testing.mjs.map +1 -1
- package/fesm2015/slide-toggle.mjs +16 -15
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider/testing.mjs.map +1 -1
- package/fesm2015/slider.mjs +18 -11
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar/testing.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +37 -31
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort/testing.mjs.map +1 -1
- package/fesm2015/sort.mjs +128 -120
- package/fesm2015/sort.mjs.map +1 -1
- package/fesm2015/stepper/testing.mjs.map +1 -1
- package/fesm2015/stepper.mjs +72 -93
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table/testing.mjs.map +1 -1
- package/fesm2015/table.mjs +57 -57
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs/testing.mjs.map +1 -1
- package/fesm2015/tabs.mjs +162 -99
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar/testing.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +11 -11
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2015/tooltip/testing.mjs +11 -8
- package/fesm2015/tooltip/testing.mjs.map +1 -1
- package/fesm2015/tooltip.mjs +154 -79
- package/fesm2015/tooltip.mjs.map +1 -1
- package/fesm2015/tree/testing.mjs.map +1 -1
- package/fesm2015/tree.mjs +26 -26
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/autocomplete/testing.mjs +6 -0
- package/fesm2020/autocomplete/testing.mjs.map +1 -1
- package/fesm2020/autocomplete.mjs +124 -67
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/badge/testing.mjs.map +1 -1
- package/fesm2020/badge.mjs +7 -7
- package/fesm2020/badge.mjs.map +1 -1
- package/fesm2020/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +27 -16
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/button/testing.mjs.map +1 -1
- package/fesm2020/button-toggle/testing.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +11 -11
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/button.mjs +13 -13
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card/testing.mjs.map +1 -1
- package/fesm2020/card.mjs +47 -47
- package/fesm2020/card.mjs.map +1 -1
- package/fesm2020/checkbox/testing.mjs +2 -1
- package/fesm2020/checkbox/testing.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +22 -18
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips/testing.mjs.map +1 -1
- package/fesm2020/chips.mjs +59 -31
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +180 -126
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker/testing.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +273 -130
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog/testing.mjs +65 -1
- package/fesm2020/dialog/testing.mjs.map +1 -1
- package/fesm2020/dialog.mjs +143 -106
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider/testing.mjs.map +1 -1
- package/fesm2020/divider.mjs +8 -8
- package/fesm2020/divider.mjs.map +1 -1
- package/fesm2020/expansion/testing.mjs.map +1 -1
- package/fesm2020/expansion.mjs +54 -33
- package/fesm2020/expansion.mjs.map +1 -1
- package/fesm2020/form-field/testing/control.mjs.map +1 -1
- package/fesm2020/form-field/testing.mjs +1 -1
- package/fesm2020/form-field/testing.mjs.map +1 -1
- package/fesm2020/form-field.mjs +46 -38
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list/testing.mjs.map +1 -1
- package/fesm2020/grid-list.mjs +25 -25
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon/testing.mjs +8 -8
- package/fesm2020/icon/testing.mjs.map +1 -1
- package/fesm2020/icon.mjs +45 -44
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/input/testing.mjs.map +1 -1
- package/fesm2020/input.mjs +44 -27
- package/fesm2020/input.mjs.map +1 -1
- package/fesm2020/list/testing.mjs +0 -8
- package/fesm2020/list/testing.mjs.map +1 -1
- package/fesm2020/list.mjs +38 -63
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/material.mjs.map +1 -1
- package/fesm2020/menu/testing.mjs.map +1 -1
- package/fesm2020/menu.mjs +127 -99
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/paginator/testing.mjs +10 -0
- package/fesm2020/paginator/testing.mjs.map +1 -1
- package/fesm2020/paginator.mjs +18 -14
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-bar/testing.mjs.map +1 -1
- package/fesm2020/progress-bar.mjs +11 -8
- package/fesm2020/progress-bar.mjs.map +1 -1
- package/fesm2020/progress-spinner/testing.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +31 -61
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/radio/testing.mjs +2 -1
- package/fesm2020/radio/testing.mjs.map +1 -1
- package/fesm2020/radio.mjs +45 -17
- package/fesm2020/radio.mjs.map +1 -1
- package/fesm2020/select/testing.mjs.map +1 -1
- package/fesm2020/select.mjs +70 -32
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/sidenav/testing.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +36 -32
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/slide-toggle/testing.mjs +3 -1
- package/fesm2020/slide-toggle/testing.mjs.map +1 -1
- package/fesm2020/slide-toggle.mjs +16 -15
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider/testing.mjs.map +1 -1
- package/fesm2020/slider.mjs +18 -11
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar/testing.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +37 -31
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort/testing.mjs.map +1 -1
- package/fesm2020/sort.mjs +24 -16
- package/fesm2020/sort.mjs.map +1 -1
- package/fesm2020/stepper/testing.mjs.map +1 -1
- package/fesm2020/stepper.mjs +72 -93
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table/testing.mjs.map +1 -1
- package/fesm2020/table.mjs +57 -57
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs/testing.mjs.map +1 -1
- package/fesm2020/tabs.mjs +161 -99
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar/testing.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +11 -11
- package/fesm2020/toolbar.mjs.map +1 -1
- package/fesm2020/tooltip/testing.mjs +11 -6
- package/fesm2020/tooltip/testing.mjs.map +1 -1
- package/fesm2020/tooltip.mjs +147 -71
- package/fesm2020/tooltip.mjs.map +1 -1
- package/fesm2020/tree/testing.mjs.map +1 -1
- package/fesm2020/tree.mjs +26 -26
- package/fesm2020/tree.mjs.map +1 -1
- package/form-field/form-field-control.d.ts +3 -3
- package/form-field/form-field.d.ts +15 -8
- package/form-field/testing/public-api.d.ts +1 -1
- package/icon/icon-registry.d.ts +7 -9
- package/icon/icon.d.ts +12 -3
- package/icon/testing/fake-icon-registry.d.ts +1 -1
- package/input/input.d.ts +12 -1
- package/list/selection-list.d.ts +4 -21
- package/list/testing/list-item-harness-base.d.ts +1 -7
- package/menu/menu-errors.d.ts +0 -5
- package/menu/menu-item.d.ts +3 -2
- package/menu/menu-trigger.d.ts +21 -11
- package/menu/menu.d.ts +8 -3
- package/package.json +7 -7
- package/paginator/paginator.d.ts +12 -1
- package/paginator/testing/paginator-harness.d.ts +3 -0
- 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-spinner/progress-spinner-module.d.ts +1 -1
- package/progress-spinner/progress-spinner.d.ts +4 -19
- package/progress-spinner/public-api.d.ts +8 -1
- package/radio/radio.d.ts +7 -2
- package/radio/testing/radio-harness-filters.d.ts +2 -0
- package/schematics/collection.json +4 -2
- package/schematics/migration.json +5 -0
- package/schematics/ng-add/fonts/material-fonts.js +4 -13
- package/schematics/ng-add/fonts/material-fonts.mjs +4 -13
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-add/schema.d.ts +2 -2
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.json +29 -9
- package/schematics/ng-add/schema.mjs +1 -1
- package/schematics/ng-add/setup-project.js +16 -23
- package/schematics/ng-add/setup-project.mjs +16 -23
- package/schematics/ng-add/theming/theming.js +28 -39
- package/schematics/ng-add/theming/theming.mjs +28 -39
- package/schematics/ng-generate/address-form/index.js +5 -14
- package/schematics/ng-generate/address-form/index.mjs +5 -14
- package/schematics/ng-generate/address-form/schema.json +1 -1
- package/schematics/ng-generate/dashboard/index.js +5 -14
- package/schematics/ng-generate/dashboard/index.mjs +5 -14
- package/schematics/ng-generate/dashboard/schema.json +1 -1
- package/schematics/ng-generate/navigation/index.js +5 -14
- package/schematics/ng-generate/navigation/index.mjs +5 -14
- package/schematics/ng-generate/navigation/schema.json +1 -1
- package/schematics/ng-generate/table/index.js +5 -14
- package/schematics/ng-generate/table/index.mjs +5 -14
- package/schematics/ng-generate/table/schema.json +1 -1
- package/schematics/ng-generate/tree/index.js +5 -14
- package/schematics/ng-generate/tree/index.mjs +5 -14
- package/schematics/ng-generate/tree/schema.json +1 -1
- package/schematics/ng-update/data/constructor-checks.js +11 -1
- package/schematics/ng-update/data/constructor-checks.mjs +11 -1
- package/schematics/ng-update/data/css-selectors.js +7 -1
- package/schematics/ng-update/data/css-selectors.mjs +7 -1
- package/schematics/ng-update/data/index.js +6 -2
- package/schematics/ng-update/data/index.mjs +6 -2
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +7 -2
- package/schematics/ng-update/index.mjs +7 -2
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +4 -4
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +4 -4
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +14 -23
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +14 -23
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +3 -15
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +3 -15
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +5 -5
- package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +5 -5
- package/schematics/tsconfig.json +1 -4
- package/select/select.d.ts +25 -4
- package/sidenav/sidenav-module.d.ts +2 -3
- package/slide-toggle/testing/slide-toggle-harness-filters.d.ts +4 -0
- package/snack-bar/snack-bar.d.ts +1 -1
- package/sort/sort-header.d.ts +4 -4
- package/sort/sort.d.ts +4 -0
- package/stepper/public-api.d.ts +1 -1
- package/stepper/stepper-animations.d.ts +2 -0
- package/stepper/stepper-module.d.ts +1 -1
- package/stepper/stepper.d.ts +15 -38
- package/tabs/_tabs-common.scss +15 -5
- package/tabs/ink-bar.d.ts +0 -5
- package/tabs/paginated-tab-header.d.ts +4 -2
- package/tabs/tab-body.d.ts +3 -1
- package/tabs/tab-config.d.ts +6 -0
- package/tabs/tab-group.d.ts +15 -3
- package/tooltip/testing/tooltip-harness.d.ts +6 -0
- package/tooltip/tooltip.d.ts +36 -8
package/stepper/stepper.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { Directionality } from '@angular/cdk/bidi';
|
|
|
9
9
|
import { CdkStep, CdkStepper, StepperOptions } from '@angular/cdk/stepper';
|
|
10
10
|
import { AnimationEvent } from '@angular/animations';
|
|
11
11
|
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
12
|
-
import {
|
|
12
|
+
import { UntypedFormControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
13
13
|
import { ErrorStateMatcher, ThemePalette } from '@angular/material/core';
|
|
14
14
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
15
15
|
import { Subject } from 'rxjs';
|
|
@@ -34,42 +34,10 @@ export declare class MatStep extends CdkStep implements ErrorStateMatcher, After
|
|
|
34
34
|
ngAfterContentInit(): void;
|
|
35
35
|
ngOnDestroy(): void;
|
|
36
36
|
/** Custom error state matcher that additionally checks for validity of interacted form. */
|
|
37
|
-
isErrorState(control:
|
|
37
|
+
isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatStep, [null, { skipSelf: true; }, null, { optional: true; }]>;
|
|
39
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": "color"; }, {}, ["stepLabel", "_lazyContent"], ["*"]>;
|
|
40
40
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Proxies the public APIs from `MatStepper` to the deprecated `MatHorizontalStepper` and
|
|
43
|
-
* `MatVerticalStepper`.
|
|
44
|
-
* @deprecated Use `MatStepper` instead.
|
|
45
|
-
* @breaking-change 13.0.0
|
|
46
|
-
* @docs-private
|
|
47
|
-
*/
|
|
48
|
-
declare abstract class _MatProxyStepperBase extends CdkStepper {
|
|
49
|
-
readonly steps: QueryList<MatStep>;
|
|
50
|
-
readonly animationDone: EventEmitter<void>;
|
|
51
|
-
disableRipple: boolean;
|
|
52
|
-
color: ThemePalette;
|
|
53
|
-
labelPosition: 'bottom' | 'end';
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<_MatProxyStepperBase, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatProxyStepperBase, never, never, {}, {}, never>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated Use `MatStepper` instead.
|
|
59
|
-
* @breaking-change 13.0.0
|
|
60
|
-
*/
|
|
61
|
-
export declare class MatHorizontalStepper extends _MatProxyStepperBase {
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatHorizontalStepper, never>;
|
|
63
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatHorizontalStepper, "mat-horizontal-stepper", never, {}, {}, never>;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated Use `MatStepper` instead.
|
|
67
|
-
* @breaking-change 13.0.0
|
|
68
|
-
*/
|
|
69
|
-
export declare class MatVerticalStepper extends _MatProxyStepperBase {
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatVerticalStepper, never>;
|
|
71
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatVerticalStepper, "mat-vertical-stepper", never, {}, {}, never>;
|
|
72
|
-
}
|
|
73
41
|
export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
|
74
42
|
/** The list of step headers of the steps in the stepper. */
|
|
75
43
|
_stepHeader: QueryList<MatStepHeader>;
|
|
@@ -90,14 +58,23 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
|
|
|
90
58
|
* Only applies in the `horizontal` orientation.
|
|
91
59
|
*/
|
|
92
60
|
labelPosition: 'bottom' | 'end';
|
|
61
|
+
/**
|
|
62
|
+
* Position of the stepper's header.
|
|
63
|
+
* Only applies in the `horizontal` orientation.
|
|
64
|
+
*/
|
|
65
|
+
headerPosition: 'top' | 'bottom';
|
|
93
66
|
/** Consumer-specified template-refs to be used to override the header icons. */
|
|
94
67
|
_iconOverrides: Record<string, TemplateRef<MatStepperIconContext>>;
|
|
95
68
|
/** Stream of animation `done` events when the body expands/collapses. */
|
|
96
69
|
readonly _animationDone: Subject<AnimationEvent>;
|
|
97
|
-
|
|
70
|
+
/** Duration for the animation. Will be normalized to milliseconds if no units are set. */
|
|
71
|
+
get animationDuration(): string;
|
|
72
|
+
set animationDuration(value: string);
|
|
73
|
+
private _animationDuration;
|
|
74
|
+
constructor(dir: Directionality, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
|
|
98
75
|
ngAfterContentInit(): void;
|
|
99
76
|
_stepIsNavigable(index: number, step: MatStep): boolean;
|
|
100
|
-
|
|
101
|
-
static
|
|
77
|
+
_getAnimationDuration(): string;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatStepper, [{ optional: true; }, null, null]>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatStepper, "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", ["matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": "selectedIndex"; "disableRipple": "disableRipple"; "color": "color"; "labelPosition": "labelPosition"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never>;
|
|
102
80
|
}
|
|
103
|
-
export {};
|
package/tabs/_tabs-common.scss
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
@use '@angular/cdk';
|
|
2
|
+
|
|
1
3
|
@use '../core/style/variables';
|
|
2
4
|
@use '../core/style/private';
|
|
3
5
|
@use '../core/style/vendor-prefixes';
|
|
4
|
-
@use '../../cdk/a11y';
|
|
5
6
|
|
|
6
7
|
$tab-bar-height: 48px !default;
|
|
7
8
|
$tab-animation-duration: 500ms !default;
|
|
@@ -27,7 +28,7 @@ $tab-animation-duration: 500ms !default;
|
|
|
27
28
|
opacity: 1;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
@include
|
|
31
|
+
@include cdk.high-contrast(active, off) {
|
|
31
32
|
$outline-width: 2px;
|
|
32
33
|
outline: dotted $outline-width;
|
|
33
34
|
outline-offset: -$outline-width; // Not supported on IE, but looks better everywhere else.
|
|
@@ -37,7 +38,7 @@ $tab-animation-duration: 500ms !default;
|
|
|
37
38
|
&.mat-tab-disabled {
|
|
38
39
|
cursor: default;
|
|
39
40
|
|
|
40
|
-
@include
|
|
41
|
+
@include cdk.high-contrast(active, off) {
|
|
41
42
|
opacity: 0.5;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
@@ -49,7 +50,7 @@ $tab-animation-duration: 500ms !default;
|
|
|
49
50
|
white-space: nowrap;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
@include
|
|
53
|
+
@include cdk.high-contrast(active, off) {
|
|
53
54
|
opacity: 1;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
@@ -69,7 +70,7 @@ $tab-animation-duration: 500ms !default;
|
|
|
69
70
|
top: 0;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
@include
|
|
73
|
+
@include cdk.high-contrast(active, off) {
|
|
73
74
|
outline: solid $height;
|
|
74
75
|
height: 0;
|
|
75
76
|
}
|
|
@@ -95,6 +96,15 @@ $tab-animation-duration: 500ms !default;
|
|
|
95
96
|
z-index: 2;
|
|
96
97
|
-webkit-tap-highlight-color: transparent;
|
|
97
98
|
touch-action: none;
|
|
99
|
+
box-sizing: content-box;
|
|
100
|
+
background: none;
|
|
101
|
+
border: none;
|
|
102
|
+
outline: 0;
|
|
103
|
+
padding: 0;
|
|
104
|
+
|
|
105
|
+
&::-moz-focus-inner {
|
|
106
|
+
border: 0;
|
|
107
|
+
}
|
|
98
108
|
|
|
99
109
|
.mat-tab-header-pagination-controls-enabled & {
|
|
100
110
|
display: flex;
|
package/tabs/ink-bar.d.ts
CHANGED
|
@@ -44,11 +44,6 @@ export declare class MatInkBar {
|
|
|
44
44
|
show(): void;
|
|
45
45
|
/** Hides the ink bar. */
|
|
46
46
|
hide(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the proper styles to the ink bar element.
|
|
49
|
-
* @param element
|
|
50
|
-
*/
|
|
51
|
-
private _setStyles;
|
|
52
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatInkBar, [null, null, null, { optional: true; }]>;
|
|
53
48
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatInkBar, "mat-ink-bar", never, {}, {}, never>;
|
|
54
49
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ChangeDetectorRef, ElementRef, NgZone, QueryList, EventEmitter, AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
9
9
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
10
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
10
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
11
11
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
12
12
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
13
13
|
import { Subject } from 'rxjs';
|
|
@@ -74,7 +74,9 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
|
|
|
74
74
|
* Whether pagination should be disabled. This can be used to avoid unnecessary
|
|
75
75
|
* layout recalculations if it's known that pagination won't be required.
|
|
76
76
|
*/
|
|
77
|
-
disablePagination: boolean;
|
|
77
|
+
get disablePagination(): boolean;
|
|
78
|
+
set disablePagination(value: BooleanInput);
|
|
79
|
+
private _disablePagination;
|
|
78
80
|
/** The index of the active tab. */
|
|
79
81
|
get selectedIndex(): number;
|
|
80
82
|
set selectedIndex(value: NumberInput);
|
package/tabs/tab-body.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export declare abstract class _MatTabBodyBase implements OnInit, OnDestroy {
|
|
|
78
78
|
origin: number | null;
|
|
79
79
|
/** Duration for the tab's animation. */
|
|
80
80
|
animationDuration: string;
|
|
81
|
+
/** Whether the tab's content should be kept in the DOM while it's off-screen. */
|
|
82
|
+
preserveContent: boolean;
|
|
81
83
|
/** The shifted index position of the tab body, where zero represents the active center tab. */
|
|
82
84
|
set position(position: number);
|
|
83
85
|
constructor(_elementRef: ElementRef<HTMLElement>, _dir: Directionality, changeDetectorRef: ChangeDetectorRef);
|
|
@@ -100,7 +102,7 @@ export declare abstract class _MatTabBodyBase implements OnInit, OnDestroy {
|
|
|
100
102
|
*/
|
|
101
103
|
private _computePositionFromOrigin;
|
|
102
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatTabBodyBase, [null, { optional: true; }, null]>;
|
|
103
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabBodyBase, never, never, { "_content": "content"; "origin": "origin"; "animationDuration": "animationDuration"; "position": "position"; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_afterLeavingCenter": "_afterLeavingCenter"; "_onCentered": "_onCentered"; }, never>;
|
|
105
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabBodyBase, never, never, { "_content": "content"; "origin": "origin"; "animationDuration": "animationDuration"; "preserveContent": "preserveContent"; "position": "position"; }, { "_onCentering": "_onCentering"; "_beforeCentering": "_beforeCentering"; "_afterLeavingCenter": "_afterLeavingCenter"; "_onCentered": "_onCentered"; }, never>;
|
|
104
106
|
}
|
|
105
107
|
/**
|
|
106
108
|
* Wrapper for the contents of a tab.
|
package/tabs/tab-config.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ export interface MatTabsConfig {
|
|
|
24
24
|
dynamicHeight?: boolean;
|
|
25
25
|
/** `tabindex` to be set on the inner element that wraps the tab content. */
|
|
26
26
|
contentTabIndex?: number;
|
|
27
|
+
/**
|
|
28
|
+
* By default tabs remove their content from the DOM while it's off-screen.
|
|
29
|
+
* Setting this to `true` will keep it in the DOM which will prevent elements
|
|
30
|
+
* like iframes and videos from reloading next time it comes back into the view.
|
|
31
|
+
*/
|
|
32
|
+
preserveContent?: boolean;
|
|
27
33
|
}
|
|
28
34
|
/** Injection token that can be used to provide the default options the tabs module. */
|
|
29
35
|
export declare const MAT_TABS_CONFIG: InjectionToken<MatTabsConfig>;
|
package/tabs/tab-group.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
|
|
|
50
50
|
_tabs: QueryList<MatTab>;
|
|
51
51
|
/** The tab index that should be selected after the content has been checked. */
|
|
52
52
|
private _indexToSelect;
|
|
53
|
+
/** Index of the tab that was focused last. */
|
|
54
|
+
private _lastFocusedTabIndex;
|
|
53
55
|
/** Snapshot of the height of the tab body wrapper before another tab is activated. */
|
|
54
56
|
private _tabBodyWrapperHeight;
|
|
55
57
|
/** Subscription to tabs being added/removed. */
|
|
@@ -83,7 +85,17 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
|
|
|
83
85
|
* Whether pagination should be disabled. This can be used to avoid unnecessary
|
|
84
86
|
* layout recalculations if it's known that pagination won't be required.
|
|
85
87
|
*/
|
|
86
|
-
disablePagination: boolean;
|
|
88
|
+
get disablePagination(): boolean;
|
|
89
|
+
set disablePagination(value: BooleanInput);
|
|
90
|
+
private _disablePagination;
|
|
91
|
+
/**
|
|
92
|
+
* By default tabs remove their content from the DOM while it's off-screen.
|
|
93
|
+
* Setting this to `true` will keep it in the DOM which will prevent elements
|
|
94
|
+
* like iframes and videos from reloading next time it comes back into the view.
|
|
95
|
+
*/
|
|
96
|
+
get preserveContent(): boolean;
|
|
97
|
+
set preserveContent(value: BooleanInput);
|
|
98
|
+
private _preserveContent;
|
|
87
99
|
/** Background color of the tab group. */
|
|
88
100
|
get backgroundColor(): ThemePalette;
|
|
89
101
|
set backgroundColor(value: ThemePalette);
|
|
@@ -149,11 +161,11 @@ export declare abstract class _MatTabGroupBase extends _MatTabGroupMixinBase imp
|
|
|
149
161
|
/** Handle click events, setting new selected index if appropriate. */
|
|
150
162
|
_handleClick(tab: MatTab, tabHeader: MatTabGroupBaseHeader, index: number): void;
|
|
151
163
|
/** Retrieves the tabindex for the tab. */
|
|
152
|
-
_getTabIndex(tab: MatTab,
|
|
164
|
+
_getTabIndex(tab: MatTab, index: number): number | null;
|
|
153
165
|
/** Callback for when the focused state of a tab has changed. */
|
|
154
166
|
_tabFocusChanged(focusOrigin: FocusOrigin, index: number): void;
|
|
155
167
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatTabGroupBase, [null, null, { optional: true; }, { optional: true; }]>;
|
|
156
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabGroupBase, never, never, { "dynamicHeight": "dynamicHeight"; "selectedIndex": "selectedIndex"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; "contentTabIndex": "contentTabIndex"; "disablePagination": "disablePagination"; "backgroundColor": "backgroundColor"; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, never>;
|
|
168
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_MatTabGroupBase, never, never, { "dynamicHeight": "dynamicHeight"; "selectedIndex": "selectedIndex"; "headerPosition": "headerPosition"; "animationDuration": "animationDuration"; "contentTabIndex": "contentTabIndex"; "disablePagination": "disablePagination"; "preserveContent": "preserveContent"; "backgroundColor": "backgroundColor"; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, never>;
|
|
157
169
|
}
|
|
158
170
|
/**
|
|
159
171
|
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
|
|
@@ -9,6 +9,9 @@ import { AsyncFactoryFn, ComponentHarness, HarnessPredicate, TestElement } from
|
|
|
9
9
|
import { TooltipHarnessFilters } from './tooltip-harness-filters';
|
|
10
10
|
export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
|
|
11
11
|
protected abstract _optionalPanel: AsyncFactoryFn<TestElement | null>;
|
|
12
|
+
protected abstract _hiddenClass: string;
|
|
13
|
+
protected abstract _showAnimationName: string;
|
|
14
|
+
protected abstract _hideAnimationName: string;
|
|
12
15
|
/** Shows the tooltip. */
|
|
13
16
|
show(): Promise<void>;
|
|
14
17
|
/** Hides the tooltip. */
|
|
@@ -21,6 +24,9 @@ export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
|
|
|
21
24
|
/** Harness for interacting with a standard mat-tooltip in tests. */
|
|
22
25
|
export declare class MatTooltipHarness extends _MatTooltipHarnessBase {
|
|
23
26
|
protected _optionalPanel: AsyncFactoryFn<TestElement | null>;
|
|
27
|
+
protected _hiddenClass: string;
|
|
28
|
+
protected _showAnimationName: string;
|
|
29
|
+
protected _hideAnimationName: string;
|
|
24
30
|
static hostSelector: string;
|
|
25
31
|
/**
|
|
26
32
|
* Gets a `HarnessPredicate` that can be used to search
|
package/tooltip/tooltip.d.ts
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { AnimationEvent } from '@angular/animations';
|
|
9
8
|
import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
|
|
10
9
|
import { Directionality } from '@angular/cdk/bidi';
|
|
11
10
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
12
11
|
import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
|
|
13
|
-
import {
|
|
12
|
+
import { OriginConnectionPosition, Overlay, OverlayConnectionPosition, OverlayRef, ScrollStrategy, ConnectedPosition } from '@angular/cdk/overlay';
|
|
14
13
|
import { Platform } from '@angular/cdk/platform';
|
|
15
14
|
import { ComponentType } from '@angular/cdk/portal';
|
|
16
15
|
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
@@ -51,11 +50,18 @@ export declare const MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
|
51
50
|
};
|
|
52
51
|
/** Default `matTooltip` options that can be overridden. */
|
|
53
52
|
export interface MatTooltipDefaultOptions {
|
|
53
|
+
/** Default delay when the tooltip is shown. */
|
|
54
54
|
showDelay: number;
|
|
55
|
+
/** Default delay when the tooltip is hidden. */
|
|
55
56
|
hideDelay: number;
|
|
57
|
+
/** Default delay when hiding the tooltip on a touch device. */
|
|
56
58
|
touchendHideDelay: number;
|
|
59
|
+
/** Default touch gesture handling for tooltips. */
|
|
57
60
|
touchGestures?: TooltipTouchGestures;
|
|
61
|
+
/** Default position for tooltips. */
|
|
58
62
|
position?: TooltipPosition;
|
|
63
|
+
/** Disables the ability for the user to interact with the tooltip element. */
|
|
64
|
+
disableTooltipInteractivity?: boolean;
|
|
59
65
|
}
|
|
60
66
|
/** Injection token to be used to override the default options for `matTooltip`. */
|
|
61
67
|
export declare const MAT_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MatTooltipDefaultOptions>;
|
|
@@ -214,11 +220,25 @@ export declare abstract class _TooltipComponentBase implements OnDestroy {
|
|
|
214
220
|
_hideTimeoutId: number | undefined;
|
|
215
221
|
/** Property watched by the animation framework to show or hide the tooltip */
|
|
216
222
|
_visibility: TooltipVisibility;
|
|
223
|
+
/** Element that caused the tooltip to open. */
|
|
224
|
+
_triggerElement: HTMLElement;
|
|
225
|
+
/** Amount of milliseconds to delay the closing sequence. */
|
|
226
|
+
_mouseLeaveHideDelay: number;
|
|
227
|
+
/** Whether animations are currently disabled. */
|
|
228
|
+
private _animationsDisabled;
|
|
229
|
+
/** Reference to the internal tooltip element. */
|
|
230
|
+
abstract _tooltip: ElementRef<HTMLElement>;
|
|
217
231
|
/** Whether interactions on the page should close the tooltip */
|
|
218
232
|
private _closeOnInteraction;
|
|
233
|
+
/** Whether the tooltip is currently visible. */
|
|
234
|
+
private _isVisible;
|
|
219
235
|
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
220
236
|
private readonly _onHide;
|
|
221
|
-
|
|
237
|
+
/** Name of the show animation and the class that toggles it. */
|
|
238
|
+
protected abstract readonly _showAnimation: string;
|
|
239
|
+
/** Name of the hide animation and the class that toggles it. */
|
|
240
|
+
protected abstract readonly _hideAnimation: string;
|
|
241
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, animationMode?: string);
|
|
222
242
|
/**
|
|
223
243
|
* Shows the tooltip with an animation originating from the provided origin
|
|
224
244
|
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
@@ -234,8 +254,6 @@ export declare abstract class _TooltipComponentBase implements OnDestroy {
|
|
|
234
254
|
/** Whether the tooltip is being displayed. */
|
|
235
255
|
isVisible(): boolean;
|
|
236
256
|
ngOnDestroy(): void;
|
|
237
|
-
_animationStart(): void;
|
|
238
|
-
_animationDone(event: AnimationEvent): void;
|
|
239
257
|
/**
|
|
240
258
|
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
241
259
|
* material design spec.
|
|
@@ -248,13 +266,20 @@ export declare abstract class _TooltipComponentBase implements OnDestroy {
|
|
|
248
266
|
* can be problematic in components with OnPush change detection.
|
|
249
267
|
*/
|
|
250
268
|
_markForCheck(): void;
|
|
269
|
+
_handleMouseLeave({ relatedTarget }: MouseEvent): void;
|
|
251
270
|
/**
|
|
252
271
|
* Callback for when the timeout in this.show() gets completed.
|
|
253
272
|
* This method is only needed by the mdc-tooltip, and so it is only implemented
|
|
254
273
|
* in the mdc-tooltip, not here.
|
|
255
274
|
*/
|
|
256
275
|
protected _onShow(): void;
|
|
257
|
-
|
|
276
|
+
/** Event listener dispatched when an animation on the tooltip finishes. */
|
|
277
|
+
_handleAnimationEnd({ animationName }: AnimationEvent): void;
|
|
278
|
+
/** Handles the cleanup after an animation has finished. */
|
|
279
|
+
private _finalizeAnimation;
|
|
280
|
+
/** Toggles the visibility of the tooltip element. */
|
|
281
|
+
private _toggleVisibility;
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_TooltipComponentBase, [null, { optional: true; }]>;
|
|
258
283
|
static ɵdir: i0.ɵɵDirectiveDeclaration<_TooltipComponentBase, never, never, {}, {}, never>;
|
|
259
284
|
}
|
|
260
285
|
/**
|
|
@@ -265,7 +290,10 @@ export declare class TooltipComponent extends _TooltipComponentBase {
|
|
|
265
290
|
private _breakpointObserver;
|
|
266
291
|
/** Stream that emits whether the user has a handset-sized display. */
|
|
267
292
|
_isHandset: Observable<BreakpointState>;
|
|
268
|
-
|
|
269
|
-
|
|
293
|
+
_showAnimation: string;
|
|
294
|
+
_hideAnimation: string;
|
|
295
|
+
_tooltip: ElementRef<HTMLElement>;
|
|
296
|
+
constructor(changeDetectorRef: ChangeDetectorRef, _breakpointObserver: BreakpointObserver, animationMode?: string);
|
|
297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, [null, null, { optional: true; }]>;
|
|
270
298
|
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mat-tooltip-component", never, {}, {}, never, never>;
|
|
271
299
|
}
|