@angular/material 13.0.0-rc.0 → 13.0.0-rc.1
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/testing/autocomplete-harness.d.ts +4 -4
- package/core/common-behaviors/index.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete-module.mjs +4 -17
- package/esm2020/autocomplete/autocomplete-origin.mjs +1 -1
- package/esm2020/autocomplete/autocomplete-trigger.mjs +30 -25
- package/esm2020/autocomplete/autocomplete.mjs +10 -10
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +7 -8
- package/esm2020/badge/badge-module.mjs +4 -11
- package/esm2020/badge/badge.mjs +13 -5
- package/esm2020/badge/testing/badge-harness.mjs +2 -3
- package/esm2020/bottom-sheet/bottom-sheet-animations.mjs +2 -2
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +5 -3
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +4 -14
- package/esm2020/bottom-sheet/bottom-sheet-ref.mjs +10 -4
- package/esm2020/bottom-sheet/bottom-sheet.mjs +9 -8
- package/esm2020/bottom-sheet/testing/bottom-sheet-harness.mjs +1 -1
- package/esm2020/button/button-module.mjs +6 -23
- package/esm2020/button/button.mjs +1 -1
- package/esm2020/button/public-api.mjs +1 -1
- package/esm2020/button/testing/button-harness.mjs +2 -3
- package/esm2020/button-toggle/button-toggle-module.mjs +1 -1
- package/esm2020/button-toggle/button-toggle.mjs +25 -13
- package/esm2020/button-toggle/public-api.mjs +1 -1
- package/esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs +1 -1
- package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +3 -3
- package/esm2020/button-toggle/testing/button-toggle-harness.mjs +2 -2
- package/esm2020/card/card-module.mjs +29 -7
- package/esm2020/card/card.mjs +14 -14
- package/esm2020/card/public-api.mjs +1 -1
- package/esm2020/card/testing/card-harness.mjs +1 -1
- package/esm2020/checkbox/checkbox-config.mjs +2 -2
- package/esm2020/checkbox/checkbox-module.mjs +3 -9
- package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2020/checkbox/checkbox.mjs +32 -14
- package/esm2020/checkbox/public-api.mjs +1 -1
- package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -3
- package/esm2020/chips/chip-default-options.mjs +1 -1
- package/esm2020/chips/chip-input.mjs +18 -8
- package/esm2020/chips/chip-list.mjs +29 -14
- package/esm2020/chips/chip-text-control.mjs +1 -1
- package/esm2020/chips/chip.mjs +28 -19
- package/esm2020/chips/chips-module.mjs +8 -8
- package/esm2020/chips/testing/chip-harness.mjs +2 -2
- package/esm2020/chips/testing/chip-input-harness.mjs +2 -2
- package/esm2020/chips/testing/chip-list-harness.mjs +5 -5
- package/esm2020/chips/testing/chip-listbox-harness.mjs +1 -1
- package/esm2020/chips/testing/chip-option-harness.mjs +1 -1
- package/esm2020/core/animation/animation.mjs +1 -1
- package/esm2020/core/common-behaviors/color.mjs +4 -2
- package/esm2020/core/common-behaviors/common-module.mjs +10 -5
- package/esm2020/core/common-behaviors/constructor.mjs +1 -1
- package/esm2020/core/common-behaviors/disable-ripple.mjs +7 -3
- package/esm2020/core/common-behaviors/disabled.mjs +7 -3
- package/esm2020/core/common-behaviors/error-state.mjs +1 -1
- package/esm2020/core/common-behaviors/index.mjs +1 -1
- package/esm2020/core/common-behaviors/initialized.mjs +1 -1
- package/esm2020/core/common-behaviors/tabindex.mjs +4 -2
- package/esm2020/core/datetime/date-adapter.mjs +4 -4
- package/esm2020/core/datetime/date-formats.mjs +1 -1
- package/esm2020/core/datetime/index.mjs +3 -7
- package/esm2020/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2020/core/datetime/native-date-formats.mjs +2 -2
- package/esm2020/core/line/line.mjs +3 -3
- package/esm2020/core/option/index.mjs +2 -2
- package/esm2020/core/option/optgroup.mjs +2 -2
- package/esm2020/core/option/option-parent.mjs +1 -1
- package/esm2020/core/option/option.mjs +16 -6
- package/esm2020/core/ripple/ripple-ref.mjs +1 -1
- package/esm2020/core/ripple/ripple-renderer.mjs +8 -8
- package/esm2020/core/ripple/ripple.mjs +10 -6
- package/esm2020/core/selection/index.mjs +2 -2
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +1 -1
- package/esm2020/core/testing/optgroup-harness.mjs +2 -3
- package/esm2020/core/testing/option-harness.mjs +2 -2
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +8 -4
- package/esm2020/datepicker/calendar.mjs +40 -26
- package/esm2020/datepicker/date-range-input-parts.mjs +22 -19
- package/esm2020/datepicker/date-range-input.mjs +23 -12
- package/esm2020/datepicker/date-range-picker.mjs +2 -2
- package/esm2020/datepicker/date-range-selection-strategy.mjs +1 -1
- package/esm2020/datepicker/date-selection-model.mjs +6 -5
- package/esm2020/datepicker/datepicker-actions.mjs +4 -4
- package/esm2020/datepicker/datepicker-animations.mjs +6 -6
- package/esm2020/datepicker/datepicker-base.mjs +37 -34
- package/esm2020/datepicker/datepicker-errors.mjs +1 -1
- package/esm2020/datepicker/datepicker-input-base.mjs +20 -15
- package/esm2020/datepicker/datepicker-input.mjs +15 -9
- package/esm2020/datepicker/datepicker-intl.mjs +1 -1
- package/esm2020/datepicker/datepicker-module.mjs +6 -15
- package/esm2020/datepicker/datepicker-toggle.mjs +9 -8
- package/esm2020/datepicker/datepicker.mjs +2 -2
- package/esm2020/datepicker/month-view.mjs +37 -23
- package/esm2020/datepicker/multi-year-view.mjs +26 -16
- package/esm2020/datepicker/testing/calendar-cell-harness.mjs +1 -1
- package/esm2020/datepicker/testing/calendar-harness.mjs +1 -1
- package/esm2020/datepicker/testing/date-range-input-harness.mjs +4 -5
- package/esm2020/datepicker/testing/datepicker-input-harness-base.mjs +4 -4
- package/esm2020/datepicker/testing/datepicker-input-harness.mjs +1 -1
- package/esm2020/datepicker/testing/datepicker-toggle-harness.mjs +1 -1
- package/esm2020/datepicker/testing/datepicker-trigger-harness-base.mjs +2 -2
- package/esm2020/datepicker/year-view.mjs +29 -16
- package/esm2020/dialog/dialog-animations.mjs +2 -2
- package/esm2020/dialog/dialog-config.mjs +1 -1
- package/esm2020/dialog/dialog-container.mjs +8 -5
- package/esm2020/dialog/dialog-content-directives.mjs +4 -4
- package/esm2020/dialog/dialog-module.mjs +5 -21
- package/esm2020/dialog/dialog-ref.mjs +10 -5
- package/esm2020/dialog/dialog.mjs +19 -16
- package/esm2020/dialog/testing/dialog-harness.mjs +3 -3
- package/esm2020/divider/divider-module.mjs +1 -1
- package/esm2020/divider/divider.mjs +14 -6
- package/esm2020/divider/testing/divider-harness-filters.mjs +1 -1
- package/esm2020/divider/testing/divider-harness.mjs +1 -1
- package/esm2020/expansion/accordion-base.mjs +1 -1
- package/esm2020/expansion/accordion.mjs +19 -11
- package/esm2020/expansion/expansion-animations.mjs +2 -2
- package/esm2020/expansion/expansion-module.mjs +1 -1
- package/esm2020/expansion/expansion-panel-content.mjs +2 -2
- package/esm2020/expansion/expansion-panel-header.mjs +13 -21
- package/esm2020/expansion/expansion-panel.mjs +10 -6
- package/esm2020/expansion/testing/accordion-harness.mjs +1 -1
- package/esm2020/expansion/testing/expansion-harness-filters.mjs +1 -1
- package/esm2020/expansion/testing/expansion-harness.mjs +3 -3
- package/esm2020/form-field/form-field-animations.mjs +2 -2
- package/esm2020/form-field/form-field-control.mjs +1 -1
- package/esm2020/form-field/form-field-module.mjs +5 -29
- package/esm2020/form-field/form-field.mjs +45 -33
- package/esm2020/form-field/label.mjs +2 -2
- package/esm2020/form-field/placeholder.mjs +2 -2
- package/esm2020/form-field/testing/form-field-harness.mjs +12 -9
- package/esm2020/grid-list/grid-list-module.mjs +4 -4
- package/esm2020/grid-list/grid-list.mjs +24 -13
- package/esm2020/grid-list/grid-tile.mjs +17 -9
- package/esm2020/grid-list/testing/grid-list-harness-filters.mjs +1 -1
- package/esm2020/grid-list/testing/grid-list-harness.mjs +9 -5
- package/esm2020/grid-list/testing/grid-tile-harness.mjs +1 -1
- package/esm2020/grid-list/tile-coordinator.mjs +5 -3
- package/esm2020/grid-list/tile-styler.mjs +7 -6
- package/esm2020/icon/fake-svgs.mjs +2 -2
- package/esm2020/icon/icon-module.mjs +1 -1
- package/esm2020/icon/icon-registry.mjs +6 -6
- package/esm2020/icon/icon.mjs +26 -16
- package/esm2020/icon/public-api.mjs +1 -1
- package/esm2020/icon/testing/fake-icon-registry.mjs +2 -2
- package/esm2020/icon/testing/icon-harness-filters.mjs +1 -1
- package/esm2020/icon/testing/icon-harness.mjs +2 -2
- package/esm2020/icon/trusted-types.mjs +1 -1
- package/esm2020/input/input-module.mjs +4 -14
- package/esm2020/input/input-value-accessor.mjs +1 -1
- package/esm2020/input/input.mjs +46 -20
- package/esm2020/input/public-api.mjs +1 -1
- package/esm2020/input/testing/input-harness.mjs +6 -6
- package/esm2020/input/testing/native-option-harness.mjs +3 -3
- package/esm2020/input/testing/native-select-harness.mjs +4 -4
- package/esm2020/list/list-module.mjs +3 -3
- package/esm2020/list/list.mjs +10 -9
- package/esm2020/list/public-api.mjs +1 -1
- package/esm2020/list/selection-list.mjs +34 -15
- package/esm2020/list/testing/action-list-harness.mjs +1 -1
- package/esm2020/list/testing/list-harness-base.mjs +12 -5
- package/esm2020/list/testing/list-harness.mjs +1 -1
- package/esm2020/list/testing/list-item-harness-base.mjs +5 -7
- package/esm2020/list/testing/nav-list-harness.mjs +2 -3
- package/esm2020/list/testing/selection-list-harness.mjs +9 -9
- package/esm2020/menu/menu-animations.mjs +7 -7
- package/esm2020/menu/menu-content.mjs +1 -1
- package/esm2020/menu/menu-errors.mjs +1 -1
- package/esm2020/menu/menu-item.mjs +1 -1
- package/esm2020/menu/menu-module.mjs +6 -19
- package/esm2020/menu/menu-panel.mjs +1 -1
- package/esm2020/menu/menu-trigger.mjs +25 -16
- package/esm2020/menu/menu.mjs +28 -25
- package/esm2020/menu/public-api.mjs +2 -2
- package/esm2020/menu/testing/menu-harness.mjs +4 -5
- package/esm2020/paginator/paginator-intl.mjs +3 -5
- package/esm2020/paginator/paginator-module.mjs +4 -20
- package/esm2020/paginator/paginator.mjs +24 -13
- package/esm2020/paginator/public-api.mjs +1 -1
- package/esm2020/paginator/testing/paginator-harness-filters.mjs +1 -1
- package/esm2020/paginator/testing/paginator-harness.mjs +2 -2
- package/esm2020/progress-bar/progress-bar-module.mjs +1 -1
- package/esm2020/progress-bar/progress-bar.mjs +20 -15
- package/esm2020/progress-bar/public-api.mjs +1 -1
- package/esm2020/progress-bar/testing/progress-bar-harness.mjs +1 -1
- package/esm2020/progress-spinner/progress-spinner-module.mjs +4 -14
- package/esm2020/progress-spinner/progress-spinner.mjs +10 -8
- package/esm2020/progress-spinner/testing/progress-spinner-harness.mjs +2 -2
- package/esm2020/radio/public-api.mjs +1 -1
- package/esm2020/radio/radio-module.mjs +1 -1
- package/esm2020/radio/radio.mjs +40 -24
- package/esm2020/radio/testing/radio-harness.mjs +3 -4
- package/esm2020/select/public-api.mjs +2 -2
- package/esm2020/select/select-animations.mjs +7 -7
- package/esm2020/select/select-module.mjs +6 -19
- package/esm2020/select/select.mjs +61 -44
- package/esm2020/select/testing/select-harness.mjs +9 -6
- package/esm2020/sidenav/drawer-animations.mjs +3 -3
- package/esm2020/sidenav/drawer.mjs +71 -35
- package/esm2020/sidenav/sidenav-module.mjs +4 -17
- package/esm2020/sidenav/sidenav.mjs +31 -15
- package/esm2020/sidenav/testing/drawer-container-harness.mjs +1 -1
- package/esm2020/sidenav/testing/drawer-content-harness.mjs +1 -1
- package/esm2020/sidenav/testing/drawer-harness.mjs +2 -3
- package/esm2020/sidenav/testing/sidenav-container-harness.mjs +1 -1
- package/esm2020/sidenav/testing/sidenav-content-harness.mjs +1 -1
- package/esm2020/sidenav/testing/sidenav-harness.mjs +2 -3
- package/esm2020/slide-toggle/slide-toggle-config.mjs +2 -2
- package/esm2020/slide-toggle/slide-toggle-module.mjs +3 -8
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2020/slide-toggle/slide-toggle.mjs +16 -10
- package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +3 -3
- package/esm2020/slider/public-api.mjs +1 -1
- package/esm2020/slider/slider-module.mjs +1 -1
- package/esm2020/slider/slider.mjs +49 -30
- package/esm2020/slider/testing/slider-harness.mjs +6 -2
- package/esm2020/snack-bar/simple-snack-bar.mjs +1 -1
- package/esm2020/snack-bar/snack-bar-animations.mjs +3 -3
- package/esm2020/snack-bar/snack-bar-container.mjs +2 -2
- package/esm2020/snack-bar/snack-bar-module.mjs +4 -20
- package/esm2020/snack-bar/snack-bar-ref.mjs +1 -1
- package/esm2020/snack-bar/snack-bar.mjs +11 -8
- package/esm2020/snack-bar/testing/snack-bar-harness.mjs +5 -6
- package/esm2020/sort/sort-animations.mjs +11 -26
- package/esm2020/sort/sort-header-intl.mjs +2 -2
- package/esm2020/sort/sort-header.mjs +29 -26
- package/esm2020/sort/sort-module.mjs +2 -2
- package/esm2020/sort/sort.mjs +16 -9
- package/esm2020/sort/testing/sort-harness-filters.mjs +1 -1
- package/esm2020/sort/testing/sort-harness.mjs +1 -1
- package/esm2020/sort/testing/sort-header-harness.mjs +1 -1
- package/esm2020/stepper/step-content.mjs +2 -2
- package/esm2020/stepper/step-header.mjs +2 -2
- package/esm2020/stepper/stepper-animations.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +3 -3
- package/esm2020/stepper/stepper-intl.mjs +2 -2
- package/esm2020/stepper/stepper-module.mjs +1 -1
- package/esm2020/stepper/stepper.mjs +10 -6
- package/esm2020/stepper/testing/step-harness-filters.mjs +1 -1
- package/esm2020/stepper/testing/step-harness.mjs +1 -1
- package/esm2020/stepper/testing/stepper-button-harnesses.mjs +3 -5
- package/esm2020/stepper/testing/stepper-harness.mjs +5 -5
- package/esm2020/table/cell.mjs +12 -8
- package/esm2020/table/row.mjs +2 -2
- package/esm2020/table/table-data-source.mjs +30 -21
- package/esm2020/table/table-module.mjs +5 -12
- package/esm2020/table/table.mjs +5 -9
- package/esm2020/table/testing/cell-harness.mjs +6 -3
- package/esm2020/table/testing/row-harness.mjs +2 -2
- package/esm2020/table/testing/table-harness-filters.mjs +1 -1
- package/esm2020/table/testing/table-harness.mjs +3 -3
- package/esm2020/table/text-column.mjs +1 -1
- package/esm2020/tabs/ink-bar.mjs +2 -2
- package/esm2020/tabs/paginated-tab-header.mjs +16 -9
- package/esm2020/tabs/public-api.mjs +2 -2
- package/esm2020/tabs/tab-body.mjs +7 -7
- package/esm2020/tabs/tab-content.mjs +2 -3
- package/esm2020/tabs/tab-group.mjs +43 -28
- package/esm2020/tabs/tab-header.mjs +7 -3
- package/esm2020/tabs/tab-label-wrapper.mjs +2 -2
- package/esm2020/tabs/tab-label.mjs +1 -1
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +19 -9
- package/esm2020/tabs/tab.mjs +7 -3
- package/esm2020/tabs/tabs-animations.mjs +5 -5
- package/esm2020/tabs/tabs-module.mjs +1 -1
- package/esm2020/tabs/testing/tab-group-harness.mjs +2 -3
- package/esm2020/tabs/testing/tab-harness.mjs +2 -3
- package/esm2020/tabs/testing/tab-link-harness.mjs +2 -3
- package/esm2020/toolbar/public-api.mjs +1 -1
- package/esm2020/toolbar/testing/toolbar-harness.mjs +3 -4
- package/esm2020/toolbar/toolbar-module.mjs +1 -1
- package/esm2020/toolbar/toolbar.mjs +1 -1
- package/esm2020/tooltip/tooltip-animations.mjs +3 -3
- package/esm2020/tooltip/tooltip-module.mjs +5 -18
- package/esm2020/tooltip/tooltip.mjs +55 -30
- package/esm2020/tree/data-source/flat-data-source.mjs +4 -2
- package/esm2020/tree/data-source/nested-data-source.mjs +8 -5
- package/esm2020/tree/node.mjs +17 -13
- package/esm2020/tree/outlet.mjs +12 -8
- package/esm2020/tree/padding.mjs +14 -6
- package/esm2020/tree/public-api.mjs +1 -1
- package/esm2020/tree/testing/node-harness.mjs +1 -1
- package/esm2020/tree/testing/tree-harness-filters.mjs +1 -1
- package/esm2020/tree/testing/tree-harness.mjs +2 -2
- package/esm2020/tree/toggle.mjs +5 -3
- package/esm2020/tree/tree-module.mjs +2 -2
- package/esm2020/tree/tree.mjs +1 -1
- package/fesm2015/autocomplete/testing.mjs +2 -3
- package/fesm2015/autocomplete/testing.mjs.map +1 -1
- package/fesm2015/autocomplete.mjs +40 -48
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/badge/testing.mjs +1 -2
- package/fesm2015/badge/testing.mjs.map +1 -1
- package/fesm2015/badge.mjs +15 -14
- package/fesm2015/badge.mjs.map +1 -1
- package/fesm2015/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2015/bottom-sheet.mjs +25 -26
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/button/testing.mjs +1 -2
- package/fesm2015/button/testing.mjs.map +1 -1
- package/fesm2015/button-toggle/testing.mjs.map +1 -1
- package/fesm2015/button-toggle.mjs +23 -11
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/button.mjs +5 -22
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card/testing.mjs.map +1 -1
- package/fesm2015/card.mjs +41 -19
- package/fesm2015/card.mjs.map +1 -1
- package/fesm2015/checkbox/testing.mjs +2 -2
- package/fesm2015/checkbox/testing.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +35 -23
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips/testing.mjs +2 -2
- package/fesm2015/chips/testing.mjs.map +1 -1
- package/fesm2015/chips.mjs +77 -43
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core/testing.mjs +1 -2
- package/fesm2015/core/testing.mjs.map +1 -1
- package/fesm2015/core.mjs +69 -42
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker/testing.mjs +5 -6
- package/fesm2015/datepicker/testing.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +267 -191
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog/testing.mjs +2 -2
- package/fesm2015/dialog/testing.mjs.map +1 -1
- package/fesm2015/dialog.mjs +40 -45
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider/testing.mjs.map +1 -1
- package/fesm2015/divider.mjs +13 -5
- package/fesm2015/divider.mjs.map +1 -1
- package/fesm2015/expansion/testing.mjs.map +1 -1
- package/fesm2015/expansion.mjs +40 -36
- package/fesm2015/expansion.mjs.map +1 -1
- package/fesm2015/form-field/testing.mjs +5 -2
- package/fesm2015/form-field/testing.mjs.map +1 -1
- package/fesm2015/form-field.mjs +50 -62
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list/testing.mjs +8 -4
- package/fesm2015/grid-list/testing.mjs.map +1 -1
- package/fesm2015/grid-list.mjs +51 -29
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon/testing.mjs +1 -1
- package/fesm2015/icon/testing.mjs.map +1 -1
- package/fesm2015/icon.mjs +30 -20
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/input/testing.mjs +8 -8
- package/fesm2015/input/testing.mjs.map +1 -1
- package/fesm2015/input.mjs +47 -31
- package/fesm2015/input.mjs.map +1 -1
- package/fesm2015/list/testing.mjs +17 -13
- package/fesm2015/list/testing.mjs.map +1 -1
- package/fesm2015/list.mjs +41 -22
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu/testing.mjs +1 -2
- package/fesm2015/menu/testing.mjs.map +1 -1
- package/fesm2015/menu.mjs +62 -63
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/paginator/testing.mjs +1 -1
- package/fesm2015/paginator/testing.mjs.map +1 -1
- package/fesm2015/paginator.mjs +27 -34
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-bar/testing.mjs.map +1 -1
- package/fesm2015/progress-bar.mjs +19 -14
- package/fesm2015/progress-bar.mjs.map +1 -1
- package/fesm2015/progress-spinner/testing.mjs +1 -1
- package/fesm2015/progress-spinner/testing.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +12 -20
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/radio/testing.mjs +1 -2
- package/fesm2015/radio/testing.mjs.map +1 -1
- package/fesm2015/radio.mjs +39 -23
- package/fesm2015/radio.mjs.map +1 -1
- package/fesm2015/select/testing.mjs +4 -1
- package/fesm2015/select/testing.mjs.map +1 -1
- package/fesm2015/select.mjs +70 -66
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/sidenav/testing.mjs +2 -4
- package/fesm2015/sidenav/testing.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +103 -64
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/slide-toggle/testing.mjs +2 -2
- package/fesm2015/slide-toggle/testing.mjs.map +1 -1
- package/fesm2015/slide-toggle.mjs +18 -17
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider/testing.mjs +5 -1
- package/fesm2015/slider/testing.mjs.map +1 -1
- package/fesm2015/slider.mjs +47 -28
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar/testing.mjs +1 -2
- package/fesm2015/snack-bar/testing.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +16 -29
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort/testing.mjs.map +1 -1
- package/fesm2015/sort.mjs +53 -57
- package/fesm2015/sort.mjs.map +1 -1
- package/fesm2015/stepper/testing.mjs +6 -8
- package/fesm2015/stepper/testing.mjs.map +1 -1
- package/fesm2015/stepper.mjs +17 -13
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table/testing.mjs +7 -4
- package/fesm2015/table/testing.mjs.map +1 -1
- package/fesm2015/table.mjs +45 -43
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs/testing.mjs +3 -6
- package/fesm2015/tabs/testing.mjs.map +1 -1
- package/fesm2015/tabs.mjs +99 -60
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar/testing.mjs +2 -3
- package/fesm2015/toolbar/testing.mjs.map +1 -1
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2015/tooltip.mjs +60 -48
- package/fesm2015/tooltip.mjs.map +1 -1
- package/fesm2015/tree/testing.mjs +1 -1
- package/fesm2015/tree/testing.mjs.map +1 -1
- package/fesm2015/tree.mjs +53 -30
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/autocomplete/testing.mjs +5 -6
- package/fesm2020/autocomplete/testing.mjs.map +1 -1
- package/fesm2020/autocomplete.mjs +40 -48
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/badge/testing.mjs +1 -2
- package/fesm2020/badge/testing.mjs.map +1 -1
- package/fesm2020/badge.mjs +15 -14
- package/fesm2020/badge.mjs.map +1 -1
- package/fesm2020/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +25 -26
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/button/testing.mjs +1 -2
- package/fesm2020/button/testing.mjs.map +1 -1
- package/fesm2020/button-toggle/testing.mjs +3 -3
- package/fesm2020/button-toggle/testing.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +23 -11
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/button.mjs +5 -22
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card/testing.mjs.map +1 -1
- package/fesm2020/card.mjs +41 -19
- package/fesm2020/card.mjs.map +1 -1
- package/fesm2020/checkbox/testing.mjs +2 -2
- package/fesm2020/checkbox/testing.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +35 -23
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips/testing.mjs +6 -6
- package/fesm2020/chips/testing.mjs.map +1 -1
- package/fesm2020/chips.mjs +77 -43
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core/testing.mjs +2 -3
- package/fesm2020/core/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +70 -43
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker/testing.mjs +6 -7
- package/fesm2020/datepicker/testing.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +267 -191
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog/testing.mjs +2 -2
- package/fesm2020/dialog/testing.mjs.map +1 -1
- package/fesm2020/dialog.mjs +40 -45
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider/testing.mjs.map +1 -1
- package/fesm2020/divider.mjs +13 -5
- package/fesm2020/divider.mjs.map +1 -1
- package/fesm2020/expansion/testing.mjs +2 -2
- package/fesm2020/expansion/testing.mjs.map +1 -1
- package/fesm2020/expansion.mjs +40 -36
- package/fesm2020/expansion.mjs.map +1 -1
- package/fesm2020/form-field/testing.mjs +10 -7
- package/fesm2020/form-field/testing.mjs.map +1 -1
- package/fesm2020/form-field.mjs +50 -62
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list/testing.mjs +8 -4
- package/fesm2020/grid-list/testing.mjs.map +1 -1
- package/fesm2020/grid-list.mjs +51 -29
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon/testing.mjs +2 -2
- package/fesm2020/icon/testing.mjs.map +1 -1
- package/fesm2020/icon.mjs +30 -20
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/input/testing.mjs +10 -10
- package/fesm2020/input/testing.mjs.map +1 -1
- package/fesm2020/input.mjs +47 -31
- package/fesm2020/input.mjs.map +1 -1
- package/fesm2020/list/testing.mjs +23 -19
- package/fesm2020/list/testing.mjs.map +1 -1
- package/fesm2020/list.mjs +43 -23
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu/testing.mjs +3 -4
- package/fesm2020/menu/testing.mjs.map +1 -1
- package/fesm2020/menu.mjs +62 -63
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/paginator/testing.mjs +1 -1
- package/fesm2020/paginator/testing.mjs.map +1 -1
- package/fesm2020/paginator.mjs +27 -34
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-bar/testing.mjs.map +1 -1
- package/fesm2020/progress-bar.mjs +19 -14
- package/fesm2020/progress-bar.mjs.map +1 -1
- package/fesm2020/progress-spinner/testing.mjs +1 -1
- package/fesm2020/progress-spinner/testing.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +12 -20
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/radio/testing.mjs +2 -3
- package/fesm2020/radio/testing.mjs.map +1 -1
- package/fesm2020/radio.mjs +39 -23
- package/fesm2020/radio.mjs.map +1 -1
- package/fesm2020/select/testing.mjs +8 -5
- package/fesm2020/select/testing.mjs.map +1 -1
- package/fesm2020/select.mjs +70 -66
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/sidenav/testing.mjs +2 -4
- package/fesm2020/sidenav/testing.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +103 -64
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/slide-toggle/testing.mjs +2 -2
- package/fesm2020/slide-toggle/testing.mjs.map +1 -1
- package/fesm2020/slide-toggle.mjs +18 -17
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider/testing.mjs +5 -1
- package/fesm2020/slider/testing.mjs.map +1 -1
- package/fesm2020/slider.mjs +47 -28
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar/testing.mjs +4 -5
- package/fesm2020/snack-bar/testing.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +16 -29
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort/testing.mjs.map +1 -1
- package/fesm2020/sort.mjs +54 -59
- package/fesm2020/sort.mjs.map +1 -1
- package/fesm2020/stepper/testing.mjs +6 -8
- package/fesm2020/stepper/testing.mjs.map +1 -1
- package/fesm2020/stepper.mjs +17 -13
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table/testing.mjs +7 -4
- package/fesm2020/table/testing.mjs.map +1 -1
- package/fesm2020/table.mjs +45 -43
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs/testing.mjs +3 -6
- package/fesm2020/tabs/testing.mjs.map +1 -1
- package/fesm2020/tabs.mjs +99 -60
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar/testing.mjs +2 -3
- package/fesm2020/toolbar/testing.mjs.map +1 -1
- package/fesm2020/toolbar.mjs.map +1 -1
- package/fesm2020/tooltip.mjs +60 -48
- package/fesm2020/tooltip.mjs.map +1 -1
- package/fesm2020/tree/testing.mjs +1 -1
- package/fesm2020/tree/testing.mjs.map +1 -1
- package/fesm2020/tree.mjs +53 -30
- package/fesm2020/tree.mjs.map +1 -1
- package/grid-list/testing/grid-list-harness.d.ts +1 -1
- package/icon/icon-registry.d.ts +1 -1
- package/input/_input-theme.scss +8 -6
- package/input/input.d.ts +2 -0
- package/list/testing/list-harness-base.d.ts +2 -2
- package/menu/public-api.d.ts +1 -1
- package/menu/testing/menu-harness.d.ts +2 -2
- package/package.json +2 -2
- 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/radio/testing/radio-harness.d.ts +2 -2
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-add/package-config.js +4 -2
- package/schematics/ng-add/package-config.mjs +4 -2
- package/schematics/ng-add/setup-project.js +2 -3
- package/schematics/ng-add/setup-project.mjs +2 -3
- package/schematics/ng-add/theming/create-custom-theme.js +1 -1
- package/schematics/ng-add/theming/create-custom-theme.mjs +1 -1
- package/schematics/ng-add/theming/theming.js +6 -6
- package/schematics/ng-add/theming/theming.mjs +6 -6
- package/schematics/ng-generate/address-form/index.js +2 -2
- package/schematics/ng-generate/address-form/index.mjs +2 -2
- package/schematics/ng-generate/dashboard/index.js +2 -2
- package/schematics/ng-generate/dashboard/index.mjs +2 -2
- package/schematics/ng-generate/navigation/index.js +2 -2
- package/schematics/ng-generate/navigation/index.mjs +2 -2
- package/schematics/ng-generate/table/index.js +3 -3
- package/schematics/ng-generate/table/index.mjs +3 -3
- package/schematics/ng-generate/tree/index.js +2 -2
- package/schematics/ng-generate/tree/index.mjs +2 -2
- package/schematics/ng-update/data/class-names.js +6 -8
- package/schematics/ng-update/data/class-names.mjs +6 -8
- package/schematics/ng-update/data/constructor-checks.js +33 -32
- package/schematics/ng-update/data/constructor-checks.mjs +33 -32
- package/schematics/ng-update/data/css-selectors.js +11 -9
- package/schematics/ng-update/data/css-selectors.mjs +11 -9
- package/schematics/ng-update/data/element-selectors.js +6 -4
- package/schematics/ng-update/data/element-selectors.mjs +6 -4
- package/schematics/ng-update/data/input-names.js +31 -23
- package/schematics/ng-update/data/input-names.mjs +31 -23
- package/schematics/ng-update/data/method-call-checks.js +10 -6
- package/schematics/ng-update/data/method-call-checks.mjs +10 -6
- package/schematics/ng-update/data/property-names.js +62 -50
- package/schematics/ng-update/data/property-names.mjs +62 -50
- package/schematics/ng-update/data/symbol-removal.js +6 -6
- package/schematics/ng-update/data/symbol-removal.mjs +6 -6
- package/schematics/ng-update/index.js +1 -1
- package/schematics/ng-update/index.mjs +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.js +5 -3
- package/schematics/ng-update/migrations/hammer-gestures-v9/find-main-module.mjs +5 -3
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +53 -27
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +53 -27
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.js +38 -7
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-template-check.mjs +38 -7
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +28 -14
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +28 -14
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.js +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-array-element.mjs +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.js +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/remove-element-from-html.mjs +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +3 -2
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.mjs +3 -2
- package/schematics/ng-update/migrations/misc-checks/misc-class-names.js +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-class-names.mjs +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-imports.js +6 -3
- package/schematics/ng-update/migrations/misc-checks/misc-imports.mjs +6 -3
- package/schematics/ng-update/migrations/misc-checks/misc-property-names.js +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-property-names.mjs +1 -1
- package/schematics/ng-update/migrations/misc-checks/misc-template.js +7 -13
- package/schematics/ng-update/migrations/misc-checks/misc-template.mjs +7 -13
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +1 -1
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.mjs +1 -1
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +3 -2
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +3 -2
- package/schematics/ng-update/migrations/theming-api-v12/config.js +59 -10
- package/schematics/ng-update/migrations/theming-api-v12/config.mjs +59 -10
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +19 -11
- package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +19 -11
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +6 -3
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.mjs +6 -3
- package/schematics/ng-update/typescript/module-specifiers.js +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/select/public-api.d.ts +1 -1
- package/select/testing/select-harness.d.ts +4 -4
- package/table/table-data-source.d.ts +3 -3
- package/table/testing/row-harness.d.ts +2 -2
- package/table/testing/table-harness.d.ts +4 -4
- package/tabs/_tabs-theme.scss +6 -2
- package/tabs/public-api.d.ts +1 -1
- package/tabs/tab-content.d.ts +2 -3
package/fesm2020/tabs.mjs
CHANGED
|
@@ -31,7 +31,7 @@ import { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';
|
|
|
31
31
|
/** Injection token for the MatInkBar's Positioner. */
|
|
32
32
|
const _MAT_INK_BAR_POSITIONER = new InjectionToken('MatInkBarPositioner', {
|
|
33
33
|
providedIn: 'root',
|
|
34
|
-
factory: _MAT_INK_BAR_POSITIONER_FACTORY
|
|
34
|
+
factory: _MAT_INK_BAR_POSITIONER_FACTORY,
|
|
35
35
|
});
|
|
36
36
|
/**
|
|
37
37
|
* The default positioner function for the MatInkBar.
|
|
@@ -126,8 +126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
126
126
|
const MAT_TAB_CONTENT = new InjectionToken('MatTabContent');
|
|
127
127
|
/** Decorates the `ng-template` tags and reads out the template from it. */
|
|
128
128
|
class MatTabContent {
|
|
129
|
-
constructor(
|
|
130
|
-
/** Content for the tab. */ template) {
|
|
129
|
+
constructor(/** Content for the tab. */ template) {
|
|
131
130
|
this.template = template;
|
|
132
131
|
}
|
|
133
132
|
}
|
|
@@ -217,8 +216,12 @@ class MatTab extends _MatTabBase {
|
|
|
217
216
|
this.isActive = false;
|
|
218
217
|
}
|
|
219
218
|
/** Content for the tab label given by `<ng-template mat-tab-label>`. */
|
|
220
|
-
get templateLabel() {
|
|
221
|
-
|
|
219
|
+
get templateLabel() {
|
|
220
|
+
return this._templateLabel;
|
|
221
|
+
}
|
|
222
|
+
set templateLabel(value) {
|
|
223
|
+
this._setTemplateLabelInput(value);
|
|
224
|
+
}
|
|
222
225
|
/** @docs-private */
|
|
223
226
|
get content() {
|
|
224
227
|
return this._contentPortal;
|
|
@@ -305,13 +308,13 @@ const matTabsAnimations = {
|
|
|
305
308
|
transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),
|
|
306
309
|
transition('void => left-origin-center', [
|
|
307
310
|
style({ transform: 'translate3d(-100%, 0, 0)' }),
|
|
308
|
-
animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
|
|
311
|
+
animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),
|
|
309
312
|
]),
|
|
310
313
|
transition('void => right-origin-center', [
|
|
311
314
|
style({ transform: 'translate3d(100%, 0, 0)' }),
|
|
312
|
-
animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
|
|
313
|
-
])
|
|
314
|
-
])
|
|
315
|
+
animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),
|
|
316
|
+
]),
|
|
317
|
+
]),
|
|
315
318
|
};
|
|
316
319
|
|
|
317
320
|
/**
|
|
@@ -360,7 +363,7 @@ MatTabBodyPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", versi
|
|
|
360
363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabBodyPortal, decorators: [{
|
|
361
364
|
type: Directive,
|
|
362
365
|
args: [{
|
|
363
|
-
selector: '[matTabBodyHost]'
|
|
366
|
+
selector: '[matTabBodyHost]',
|
|
364
367
|
}]
|
|
365
368
|
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: MatTabBody, decorators: [{
|
|
366
369
|
type: Inject,
|
|
@@ -401,9 +404,11 @@ class _MatTabBodyBase {
|
|
|
401
404
|
}
|
|
402
405
|
// Ensure that we get unique animation events, because the `.done` callback can get
|
|
403
406
|
// invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.
|
|
404
|
-
this._translateTabComplete
|
|
407
|
+
this._translateTabComplete
|
|
408
|
+
.pipe(distinctUntilChanged((x, y) => {
|
|
405
409
|
return x.fromState === y.fromState && x.toState === y.toState;
|
|
406
|
-
}))
|
|
410
|
+
}))
|
|
411
|
+
.subscribe(event => {
|
|
407
412
|
// If the transition to the center is complete, emit an event.
|
|
408
413
|
if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {
|
|
409
414
|
this._onCentered.emit();
|
|
@@ -444,9 +449,7 @@ class _MatTabBodyBase {
|
|
|
444
449
|
}
|
|
445
450
|
/** Whether the provided position state is considered center, regardless of origin. */
|
|
446
451
|
_isCenterPosition(position) {
|
|
447
|
-
return position == 'center' ||
|
|
448
|
-
position == 'left-origin-center' ||
|
|
449
|
-
position == 'right-origin-center';
|
|
452
|
+
return (position == 'center' || position == 'left-origin-center' || position == 'right-origin-center');
|
|
450
453
|
}
|
|
451
454
|
/** Computes the position state that will be used for the tab-body animation trigger. */
|
|
452
455
|
_computePositionAnimationState(dir = this._getLayoutDirection()) {
|
|
@@ -563,7 +566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
563
566
|
host: {
|
|
564
567
|
'[class.mat-tab-disabled]': 'disabled',
|
|
565
568
|
'[attr.aria-disabled]': '!!disabled',
|
|
566
|
-
}
|
|
569
|
+
},
|
|
567
570
|
}]
|
|
568
571
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
569
572
|
|
|
@@ -575,7 +578,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
575
578
|
* found in the LICENSE file at https://angular.io/license
|
|
576
579
|
*/
|
|
577
580
|
/** Config used to bind passive event listeners */
|
|
578
|
-
const passiveEventListenerOptions = normalizePassiveListenerOptions({
|
|
581
|
+
const passiveEventListenerOptions = normalizePassiveListenerOptions({
|
|
582
|
+
passive: true,
|
|
583
|
+
});
|
|
579
584
|
/**
|
|
580
585
|
* The distance in pixels that will be overshot when scrolling a tab label into view. This helps
|
|
581
586
|
* provide a small affordance to the label next to it.
|
|
@@ -638,7 +643,9 @@ class MatPaginatedTabHeader {
|
|
|
638
643
|
});
|
|
639
644
|
}
|
|
640
645
|
/** The index of the active tab. */
|
|
641
|
-
get selectedIndex() {
|
|
646
|
+
get selectedIndex() {
|
|
647
|
+
return this._selectedIndex;
|
|
648
|
+
}
|
|
642
649
|
set selectedIndex(value) {
|
|
643
650
|
value = coerceNumberProperty(value);
|
|
644
651
|
if (this._selectedIndex != value) {
|
|
@@ -679,7 +686,9 @@ class MatPaginatedTabHeader {
|
|
|
679
686
|
typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame(realign) : realign();
|
|
680
687
|
// On dir change or window resize, realign the ink bar and update the orientation of
|
|
681
688
|
// the key manager if the direction has changed.
|
|
682
|
-
merge(dirChange, resize, this._items.changes)
|
|
689
|
+
merge(dirChange, resize, this._items.changes)
|
|
690
|
+
.pipe(takeUntil(this._destroyed))
|
|
691
|
+
.subscribe(() => {
|
|
683
692
|
// We need to defer this to give the browser some time to recalculate
|
|
684
693
|
// the element dimensions. The call has to be wrapped in `NgZone.run`,
|
|
685
694
|
// because the viewport change handler runs outside of Angular.
|
|
@@ -844,7 +853,9 @@ class MatPaginatedTabHeader {
|
|
|
844
853
|
}
|
|
845
854
|
}
|
|
846
855
|
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
|
|
847
|
-
get scrollDistance() {
|
|
856
|
+
get scrollDistance() {
|
|
857
|
+
return this._scrollDistance;
|
|
858
|
+
}
|
|
848
859
|
set scrollDistance(value) {
|
|
849
860
|
this._scrollTo(value);
|
|
850
861
|
}
|
|
@@ -859,7 +870,7 @@ class MatPaginatedTabHeader {
|
|
|
859
870
|
_scrollHeader(direction) {
|
|
860
871
|
const viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
861
872
|
// Move the scroll distance one-third the length of the tab list's viewport.
|
|
862
|
-
const scrollAmount = (direction == 'before' ? -1 : 1) * viewLength / 3;
|
|
873
|
+
const scrollAmount = ((direction == 'before' ? -1 : 1) * viewLength) / 3;
|
|
863
874
|
return this._scrollTo(this._scrollDistance + scrollAmount);
|
|
864
875
|
}
|
|
865
876
|
/** Handles click events on the pagination arrows. */
|
|
@@ -957,12 +968,11 @@ class MatPaginatedTabHeader {
|
|
|
957
968
|
_getMaxScrollDistance() {
|
|
958
969
|
const lengthOfTabList = this._tabList.nativeElement.scrollWidth;
|
|
959
970
|
const viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
960
|
-
return
|
|
971
|
+
return lengthOfTabList - viewLength || 0;
|
|
961
972
|
}
|
|
962
973
|
/** Tells the ink-bar to align itself to the current label wrapper */
|
|
963
974
|
_alignInkBarToSelectedTab() {
|
|
964
|
-
const selectedItem = this._items && this._items.length ?
|
|
965
|
-
this._items.toArray()[this.selectedIndex] : null;
|
|
975
|
+
const selectedItem = this._items && this._items.length ? this._items.toArray()[this.selectedIndex] : null;
|
|
966
976
|
const selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;
|
|
967
977
|
if (selectedLabelWrapper) {
|
|
968
978
|
this._inkBar.alignToElement(selectedLabelWrapper);
|
|
@@ -1050,8 +1060,12 @@ class _MatTabHeaderBase extends MatPaginatedTabHeader {
|
|
|
1050
1060
|
this._disableRipple = false;
|
|
1051
1061
|
}
|
|
1052
1062
|
/** Whether the ripple effect is disabled or not. */
|
|
1053
|
-
get disableRipple() {
|
|
1054
|
-
|
|
1063
|
+
get disableRipple() {
|
|
1064
|
+
return this._disableRipple;
|
|
1065
|
+
}
|
|
1066
|
+
set disableRipple(value) {
|
|
1067
|
+
this._disableRipple = coerceBooleanProperty(value);
|
|
1068
|
+
}
|
|
1055
1069
|
_itemSelected(event) {
|
|
1056
1070
|
event.preventDefault();
|
|
1057
1071
|
}
|
|
@@ -1168,24 +1182,34 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1168
1182
|
/** Event emitted when the tab selection has changed. */
|
|
1169
1183
|
this.selectedTabChange = new EventEmitter(true);
|
|
1170
1184
|
this._groupId = nextId++;
|
|
1171
|
-
this.animationDuration =
|
|
1172
|
-
defaultConfig.animationDuration : '500ms';
|
|
1173
|
-
this.disablePagination =
|
|
1174
|
-
defaultConfig.disablePagination
|
|
1175
|
-
|
|
1176
|
-
|
|
1185
|
+
this.animationDuration =
|
|
1186
|
+
defaultConfig && defaultConfig.animationDuration ? defaultConfig.animationDuration : '500ms';
|
|
1187
|
+
this.disablePagination =
|
|
1188
|
+
defaultConfig && defaultConfig.disablePagination != null
|
|
1189
|
+
? defaultConfig.disablePagination
|
|
1190
|
+
: false;
|
|
1191
|
+
this.dynamicHeight =
|
|
1192
|
+
defaultConfig && defaultConfig.dynamicHeight != null ? defaultConfig.dynamicHeight : false;
|
|
1177
1193
|
this.contentTabIndex = defaultConfig?.contentTabIndex ?? null;
|
|
1178
1194
|
}
|
|
1179
1195
|
/** Whether the tab group should grow to the size of the active tab. */
|
|
1180
|
-
get dynamicHeight() {
|
|
1181
|
-
|
|
1196
|
+
get dynamicHeight() {
|
|
1197
|
+
return this._dynamicHeight;
|
|
1198
|
+
}
|
|
1199
|
+
set dynamicHeight(value) {
|
|
1200
|
+
this._dynamicHeight = coerceBooleanProperty(value);
|
|
1201
|
+
}
|
|
1182
1202
|
/** The index of the active tab. */
|
|
1183
|
-
get selectedIndex() {
|
|
1203
|
+
get selectedIndex() {
|
|
1204
|
+
return this._selectedIndex;
|
|
1205
|
+
}
|
|
1184
1206
|
set selectedIndex(value) {
|
|
1185
1207
|
this._indexToSelect = coerceNumberProperty(value, null);
|
|
1186
1208
|
}
|
|
1187
1209
|
/** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */
|
|
1188
|
-
get animationDuration() {
|
|
1210
|
+
get animationDuration() {
|
|
1211
|
+
return this._animationDuration;
|
|
1212
|
+
}
|
|
1189
1213
|
set animationDuration(value) {
|
|
1190
1214
|
this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
|
|
1191
1215
|
}
|
|
@@ -1195,12 +1219,16 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1195
1219
|
* The `tabindex` will be removed automatically for inactive tabs.
|
|
1196
1220
|
* Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html
|
|
1197
1221
|
*/
|
|
1198
|
-
get contentTabIndex() {
|
|
1222
|
+
get contentTabIndex() {
|
|
1223
|
+
return this._contentTabIndex;
|
|
1224
|
+
}
|
|
1199
1225
|
set contentTabIndex(value) {
|
|
1200
1226
|
this._contentTabIndex = coerceNumberProperty(value, null);
|
|
1201
1227
|
}
|
|
1202
1228
|
/** Background color of the tab group. */
|
|
1203
|
-
get backgroundColor() {
|
|
1229
|
+
get backgroundColor() {
|
|
1230
|
+
return this._backgroundColor;
|
|
1231
|
+
}
|
|
1204
1232
|
set backgroundColor(value) {
|
|
1205
1233
|
const nativeElement = this._elementRef.nativeElement;
|
|
1206
1234
|
nativeElement.classList.remove(`mat-background-${this.backgroundColor}`);
|
|
@@ -1218,7 +1246,7 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1218
1246
|
ngAfterContentChecked() {
|
|
1219
1247
|
// Don't clamp the `indexToSelect` immediately in the setter because it can happen that
|
|
1220
1248
|
// the amount of tabs changes before the actual change detection runs.
|
|
1221
|
-
const indexToSelect = this._indexToSelect = this._clampTabIndex(this._indexToSelect);
|
|
1249
|
+
const indexToSelect = (this._indexToSelect = this._clampTabIndex(this._indexToSelect));
|
|
1222
1250
|
// If there is a change in selected index, emit a change event. Should not trigger if
|
|
1223
1251
|
// the selected index has not yet been initialized.
|
|
1224
1252
|
if (this._selectedIndex != indexToSelect) {
|
|
@@ -1233,7 +1261,7 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1233
1261
|
// Changing these values after change detection has run
|
|
1234
1262
|
// since the checked content may contain references to them.
|
|
1235
1263
|
Promise.resolve().then(() => {
|
|
1236
|
-
this._tabs.forEach((tab, index) => tab.isActive = index === indexToSelect);
|
|
1264
|
+
this._tabs.forEach((tab, index) => (tab.isActive = index === indexToSelect));
|
|
1237
1265
|
if (!isFirstRun) {
|
|
1238
1266
|
this.selectedIndexChange.emit(indexToSelect);
|
|
1239
1267
|
// Clear the min-height, this was needed during tab change to avoid
|
|
@@ -1285,9 +1313,7 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1285
1313
|
// Since we use a query with `descendants: true` to pick up the tabs, we may end up catching
|
|
1286
1314
|
// some that are inside of nested tab groups. We filter them out manually by checking that
|
|
1287
1315
|
// the closest group to the tab is the current one.
|
|
1288
|
-
this._allTabs.changes
|
|
1289
|
-
.pipe(startWith(this._allTabs))
|
|
1290
|
-
.subscribe((tabs) => {
|
|
1316
|
+
this._allTabs.changes.pipe(startWith(this._allTabs)).subscribe((tabs) => {
|
|
1291
1317
|
this._tabs.reset(tabs.filter(tab => {
|
|
1292
1318
|
return tab._closestTabGroup === this || !tab._closestTabGroup;
|
|
1293
1319
|
}));
|
|
@@ -1319,7 +1345,7 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1319
1345
|
this.focusChange.emit(this._createChangeEvent(index));
|
|
1320
1346
|
}
|
|
1321
1347
|
_createChangeEvent(index) {
|
|
1322
|
-
const event = new MatTabChangeEvent;
|
|
1348
|
+
const event = new MatTabChangeEvent();
|
|
1323
1349
|
event.index = index;
|
|
1324
1350
|
if (this._tabs && this._tabs.length) {
|
|
1325
1351
|
event.tab = this._tabs.toArray()[index];
|
|
@@ -1336,8 +1362,7 @@ class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
|
1336
1362
|
if (this._tabLabelSubscription) {
|
|
1337
1363
|
this._tabLabelSubscription.unsubscribe();
|
|
1338
1364
|
}
|
|
1339
|
-
this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges))
|
|
1340
|
-
.subscribe(() => this._changeDetectorRef.markForCheck());
|
|
1365
|
+
this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges)).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
1341
1366
|
}
|
|
1342
1367
|
/** Clamps the given index to the bounds of 0 and the tabs length. */
|
|
1343
1368
|
_clampTabIndex(index) {
|
|
@@ -1449,16 +1474,20 @@ class MatTabGroup extends _MatTabGroupBase {
|
|
|
1449
1474
|
}
|
|
1450
1475
|
}
|
|
1451
1476
|
MatTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabGroup, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1452
|
-
MatTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabGroup, selector: "mat-tab-group", inputs: { color: "color", disableRipple: "disableRipple" }, host: { properties: { "class.mat-tab-group-dynamic-height": "dynamicHeight", "class.mat-tab-group-inverted-header": "headerPosition === \"below\"" }, classAttribute: "mat-tab-group" }, providers: [
|
|
1477
|
+
MatTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabGroup, selector: "mat-tab-group", inputs: { color: "color", disableRipple: "disableRipple" }, host: { properties: { "class.mat-tab-group-dynamic-height": "dynamicHeight", "class.mat-tab-group-inverted-header": "headerPosition === \"below\"" }, classAttribute: "mat-tab-group" }, providers: [
|
|
1478
|
+
{
|
|
1453
1479
|
provide: MAT_TAB_GROUP,
|
|
1454
|
-
useExisting: MatTabGroup
|
|
1455
|
-
}
|
|
1480
|
+
useExisting: MatTabGroup,
|
|
1481
|
+
},
|
|
1482
|
+
], queries: [{ propertyName: "_allTabs", predicate: MatTab, descendants: true }], viewQueries: [{ propertyName: "_tabBodyWrapper", first: true, predicate: ["tabBodyWrapper"], descendants: true }, { propertyName: "_tabHeader", first: true, predicate: ["tabHeader"], descendants: true }], exportAs: ["matTabGroup"], usesInheritance: true, ngImport: i0, template: "<mat-tab-header #tabHeader\n [selectedIndex]=\"selectedIndex || 0\"\n [disableRipple]=\"disableRipple\"\n [disablePagination]=\"disablePagination\"\n (indexFocused)=\"_focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabLabelId(i)\"\n [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"_tabs.length\"\n [attr.aria-controls]=\"_getTabContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"tab.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n [class.mat-tab-label-active]=\"selectedIndex == i\"\n [disabled]=\"tab.disabled\"\n [matRippleDisabled]=\"tab.disabled || disableRipple\"\n (click)=\"_handleClick(tab, tabHeader, i)\"\n (cdkFocusChange)=\"_tabFocusChanged($event, i)\">\n\n\n <div class=\"mat-tab-label-content\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class=\"mat-tab-body-wrapper\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabBodyWrapper>\n <mat-tab-body role=\"tabpanel\"\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabContentId(i)\"\n [attr.tabindex]=\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\"\n [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n [class.mat-tab-body-active]=\"selectedIndex === i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin\"\n [animationDuration]=\"animationDuration\"\n (_onCentered)=\"_removeTabBodyWrapperHeight()\"\n (_onCentering)=\"_setTabBodyWrapperHeight($event)\">\n </mat-tab-body>\n</div>\n", styles: [".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"], components: [{ type: MatTabHeader, selector: "mat-tab-header", inputs: ["selectedIndex"], outputs: ["selectFocusedIndex", "indexFocused"] }, { type: MatTabBody, selector: "mat-tab-body" }], directives: [{ type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: MatTabLabelWrapper, selector: "[matTabLabelWrapper]", inputs: ["disabled"] }, { type: i4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i7.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
1456
1483
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabGroup, decorators: [{
|
|
1457
1484
|
type: Component,
|
|
1458
|
-
args: [{ selector: 'mat-tab-group', exportAs: 'matTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, inputs: ['color', 'disableRipple'], providers: [
|
|
1485
|
+
args: [{ selector: 'mat-tab-group', exportAs: 'matTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, inputs: ['color', 'disableRipple'], providers: [
|
|
1486
|
+
{
|
|
1459
1487
|
provide: MAT_TAB_GROUP,
|
|
1460
|
-
useExisting: MatTabGroup
|
|
1461
|
-
}
|
|
1488
|
+
useExisting: MatTabGroup,
|
|
1489
|
+
},
|
|
1490
|
+
], host: {
|
|
1462
1491
|
'class': 'mat-tab-group',
|
|
1463
1492
|
'[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
|
|
1464
1493
|
'[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
|
|
@@ -1503,7 +1532,9 @@ class _MatTabNavBase extends MatPaginatedTabHeader {
|
|
|
1503
1532
|
this.color = 'primary';
|
|
1504
1533
|
}
|
|
1505
1534
|
/** Background color of the tab nav. */
|
|
1506
|
-
get backgroundColor() {
|
|
1535
|
+
get backgroundColor() {
|
|
1536
|
+
return this._backgroundColor;
|
|
1537
|
+
}
|
|
1507
1538
|
set backgroundColor(value) {
|
|
1508
1539
|
const classList = this._elementRef.nativeElement.classList;
|
|
1509
1540
|
classList.remove(`mat-background-${this.backgroundColor}`);
|
|
@@ -1513,8 +1544,12 @@ class _MatTabNavBase extends MatPaginatedTabHeader {
|
|
|
1513
1544
|
this._backgroundColor = value;
|
|
1514
1545
|
}
|
|
1515
1546
|
/** Whether the ripple effect is disabled or not. */
|
|
1516
|
-
get disableRipple() {
|
|
1517
|
-
|
|
1547
|
+
get disableRipple() {
|
|
1548
|
+
return this._disableRipple;
|
|
1549
|
+
}
|
|
1550
|
+
set disableRipple(value) {
|
|
1551
|
+
this._disableRipple = coerceBooleanProperty(value);
|
|
1552
|
+
}
|
|
1518
1553
|
_itemSelected() {
|
|
1519
1554
|
// noop
|
|
1520
1555
|
}
|
|
@@ -1629,7 +1664,9 @@ class _MatTabLinkBase extends _MatTabLinkMixinBase {
|
|
|
1629
1664
|
}
|
|
1630
1665
|
}
|
|
1631
1666
|
/** Whether the link is active. */
|
|
1632
|
-
get active() {
|
|
1667
|
+
get active() {
|
|
1668
|
+
return this._isActive;
|
|
1669
|
+
}
|
|
1633
1670
|
set active(value) {
|
|
1634
1671
|
const newValue = coerceBooleanProperty(value);
|
|
1635
1672
|
if (newValue !== this._isActive) {
|
|
@@ -1642,8 +1679,10 @@ class _MatTabLinkBase extends _MatTabLinkMixinBase {
|
|
|
1642
1679
|
* @docs-private
|
|
1643
1680
|
*/
|
|
1644
1681
|
get rippleDisabled() {
|
|
1645
|
-
return this.disabled ||
|
|
1646
|
-
|
|
1682
|
+
return (this.disabled ||
|
|
1683
|
+
this.disableRipple ||
|
|
1684
|
+
this._tabNavBar.disableRipple ||
|
|
1685
|
+
!!this.rippleConfig.disabled);
|
|
1647
1686
|
}
|
|
1648
1687
|
/** Focuses the tab link. */
|
|
1649
1688
|
focus() {
|
|
@@ -1710,8 +1749,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
|
|
|
1710
1749
|
'[attr.tabIndex]': 'tabIndex',
|
|
1711
1750
|
'[class.mat-tab-disabled]': 'disabled',
|
|
1712
1751
|
'[class.mat-tab-label-active]': 'active',
|
|
1713
|
-
'(focus)': '_handleFocus()'
|
|
1714
|
-
}
|
|
1752
|
+
'(focus)': '_handleFocus()',
|
|
1753
|
+
},
|
|
1715
1754
|
}]
|
|
1716
1755
|
}], ctorParameters: function () { return [{ type: MatTabNav }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1717
1756
|
type: Optional
|