@angular/material 13.0.0-next.4 → 13.0.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/autocomplete-module.d.ts +11 -7
- package/autocomplete/autocomplete-origin.d.ts +5 -0
- package/autocomplete/autocomplete-trigger.d.ts +5 -0
- package/autocomplete/autocomplete.d.ts +6 -1
- package/autocomplete/package.json +5 -5
- package/autocomplete/testing/package.json +5 -5
- package/badge/badge-module.d.ts +7 -7
- package/badge/badge.d.ts +19 -15
- package/badge/package.json +5 -5
- package/badge/testing/package.json +5 -5
- package/bottom-sheet/bottom-sheet-container.d.ts +6 -3
- package/bottom-sheet/bottom-sheet-module.d.ts +8 -7
- package/bottom-sheet/bottom-sheet.d.ts +3 -7
- package/bottom-sheet/package.json +5 -5
- package/bottom-sheet/testing/package.json +5 -5
- package/button/button-module.d.ts +6 -7
- package/button/button.d.ts +6 -1
- package/button/package.json +5 -5
- package/button/testing/package.json +5 -5
- package/button-toggle/button-toggle-module.d.ts +6 -7
- package/button-toggle/button-toggle.d.ts +6 -1
- package/button-toggle/package.json +5 -5
- package/button-toggle/testing/package.json +5 -5
- package/card/card-module.d.ts +6 -7
- package/card/card.d.ts +29 -7
- package/card/package.json +5 -5
- package/card/testing/package.json +5 -5
- package/checkbox/checkbox-module.d.ts +11 -7
- package/checkbox/checkbox-required-validator.d.ts +3 -0
- package/checkbox/checkbox.d.ts +4 -1
- package/checkbox/package.json +5 -5
- package/checkbox/testing/package.json +5 -5
- package/chips/chip-input.d.ts +3 -0
- package/chips/chip-list.d.ts +4 -1
- package/chips/chip.d.ts +10 -1
- package/chips/chips-module.d.ts +8 -7
- package/chips/package.json +5 -5
- package/chips/testing/package.json +5 -5
- package/core/common-behaviors/color.d.ts +2 -6
- package/core/common-behaviors/common-module.d.ts +5 -4
- package/core/common-behaviors/disable-ripple.d.ts +2 -6
- package/core/common-behaviors/disabled.d.ts +2 -6
- package/core/common-behaviors/error-state.d.ts +2 -6
- package/core/common-behaviors/index.d.ts +7 -6
- package/core/common-behaviors/initialized.d.ts +2 -6
- package/core/common-behaviors/tabindex.d.ts +2 -6
- package/core/datetime/index.d.ts +8 -7
- package/core/datetime/native-date-adapter.d.ts +3 -0
- package/core/error/error-options.d.ts +5 -7
- package/core/index.d.ts +0 -1
- package/core/line/line.d.ts +7 -0
- package/core/option/index.d.ts +10 -7
- package/core/option/optgroup.d.ts +6 -1
- package/core/option/option.d.ts +5 -0
- package/core/package.json +5 -5
- package/core/ripple/index.d.ts +7 -7
- package/core/ripple/ripple.d.ts +3 -0
- package/core/selection/index.d.ts +6 -7
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -7
- package/core/testing/package.json +5 -5
- package/core/typography/_typography.scss +7 -2
- package/datepicker/_datepicker-theme.scss +1 -4
- package/datepicker/calendar-body.d.ts +3 -0
- package/datepicker/calendar.d.ts +5 -0
- package/datepicker/date-range-input-parts.d.ts +8 -1
- package/datepicker/date-range-input.d.ts +3 -0
- package/datepicker/date-range-picker.d.ts +3 -7
- package/datepicker/date-range-selection-strategy.d.ts +3 -0
- package/datepicker/date-selection-model.d.ts +7 -0
- package/datepicker/datepicker-actions.d.ts +7 -0
- package/datepicker/datepicker-base.d.ts +7 -12
- package/datepicker/datepicker-input-base.d.ts +3 -0
- package/datepicker/datepicker-input.d.ts +3 -0
- package/datepicker/datepicker-intl.d.ts +3 -7
- package/datepicker/datepicker-module.d.ts +24 -7
- package/datepicker/datepicker-toggle.d.ts +5 -0
- package/datepicker/datepicker.d.ts +3 -7
- package/datepicker/index.d.ts +0 -4
- package/datepicker/month-view.d.ts +3 -7
- package/datepicker/multi-year-view.d.ts +3 -7
- package/datepicker/package.json +5 -5
- package/datepicker/testing/package.json +5 -5
- package/datepicker/year-view.d.ts +3 -7
- package/dialog/dialog-container.d.ts +5 -0
- package/dialog/dialog-content-directives.d.ts +9 -0
- package/dialog/dialog-module.d.ts +9 -7
- package/dialog/dialog.d.ts +5 -7
- package/dialog/package.json +5 -5
- package/dialog/testing/dialog-harness.d.ts +14 -11
- package/dialog/testing/package.json +5 -5
- package/divider/divider-module.d.ts +6 -7
- package/divider/divider.d.ts +3 -7
- package/divider/package.json +5 -5
- package/divider/testing/package.json +5 -5
- package/esm2020/autocomplete/autocomplete-module.mjs +58 -0
- package/esm2020/autocomplete/autocomplete-origin.mjs +38 -0
- package/esm2020/autocomplete/autocomplete-trigger.mjs +651 -0
- package/esm2020/autocomplete/autocomplete.mjs +216 -0
- package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
- package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
- package/{esm2015/autocomplete/testing/autocomplete-harness-filters.js → esm2020/autocomplete/testing/autocomplete-harness-filters.mjs} +0 -0
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +101 -0
- package/{esm2015/autocomplete/testing/index.js → esm2020/autocomplete/testing/index.mjs} +0 -0
- package/{esm2015/autocomplete/testing/public-api.js → esm2020/autocomplete/testing/public-api.mjs} +0 -0
- package/esm2020/badge/badge-module.mjs +33 -0
- package/esm2020/badge/badge.mjs +228 -0
- package/{esm2015/badge/index.js → esm2020/badge/index.mjs} +0 -0
- package/{esm2015/badge/public-api.js → esm2020/badge/public-api.mjs} +0 -0
- package/{esm2015/badge/testing/badge-harness-filters.js → esm2020/badge/testing/badge-harness-filters.mjs} +0 -0
- package/esm2020/badge/testing/badge-harness.mjs +72 -0
- package/{esm2015/badge/testing/index.js → esm2020/badge/testing/index.mjs} +0 -0
- package/{esm2015/badge/testing/public-api.js → esm2020/badge/testing/public-api.mjs} +0 -0
- package/{esm2015/bottom-sheet/bottom-sheet-animations.js → esm2020/bottom-sheet/bottom-sheet-animations.mjs} +0 -0
- package/{esm2015/bottom-sheet/bottom-sheet-config.js → esm2020/bottom-sheet/bottom-sheet-config.mjs} +0 -0
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +230 -0
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +38 -0
- package/esm2020/bottom-sheet/bottom-sheet-ref.mjs +91 -0
- package/esm2020/bottom-sheet/bottom-sheet.mjs +172 -0
- package/{esm2015/bottom-sheet/index.js → esm2020/bottom-sheet/index.mjs} +0 -0
- package/{esm2015/bottom-sheet/public-api.js → esm2020/bottom-sheet/public-api.mjs} +0 -0
- package/{esm2015/bottom-sheet/testing/bottom-sheet-harness-filters.js → esm2020/bottom-sheet/testing/bottom-sheet-harness-filters.mjs} +0 -0
- package/esm2020/bottom-sheet/testing/bottom-sheet-harness.mjs +35 -0
- package/{esm2015/bottom-sheet/testing/index.js → esm2020/bottom-sheet/testing/index.mjs} +0 -0
- package/{esm2015/bottom-sheet/testing/public-api.js → esm2020/bottom-sheet/testing/public-api.mjs} +0 -0
- package/esm2020/button/button-module.mjs +42 -0
- package/esm2020/button/button.mjs +153 -0
- package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
- package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
- package/{esm2015/button/testing/button-harness-filters.js → esm2020/button/testing/button-harness-filters.mjs} +0 -0
- package/esm2020/button/testing/button-harness.mjs +51 -0
- package/{esm2015/button/testing/index.js → esm2020/button/testing/index.mjs} +0 -0
- package/{esm2015/button/testing/public-api.js → esm2020/button/testing/public-api.mjs} +0 -0
- package/esm2020/button-toggle/button-toggle-module.mjs +25 -0
- package/esm2020/button-toggle/button-toggle.mjs +470 -0
- package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
- package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
- package/{esm2015/button-toggle/testing/button-toggle-group-harness-filters.js → esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs} +0 -0
- package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +45 -0
- package/{esm2015/button-toggle/testing/button-toggle-harness-filters.js → esm2020/button-toggle/testing/button-toggle-harness-filters.mjs} +0 -0
- package/esm2020/button-toggle/testing/button-toggle-harness.mjs +98 -0
- package/{esm2015/button-toggle/testing/index.js → esm2020/button-toggle/testing/index.mjs} +0 -0
- package/{esm2015/button-toggle/testing/public-api.js → esm2020/button-toggle/testing/public-api.mjs} +0 -0
- package/esm2020/card/card-module.mjs +61 -0
- package/esm2020/card/card.mjs +247 -0
- package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
- package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
- package/{esm2015/card/testing/card-harness-filters.js → esm2020/card/testing/card-harness-filters.mjs} +0 -0
- package/esm2020/card/testing/card-harness.mjs +43 -0
- package/{esm2015/card/testing/index.js → esm2020/card/testing/index.mjs} +0 -0
- package/{esm2015/card/testing/public-api.js → esm2020/card/testing/public-api.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
- package/esm2020/checkbox/checkbox-module.mjs +46 -0
- package/esm2020/checkbox/checkbox-required-validator.mjs +33 -0
- package/esm2020/checkbox/checkbox.mjs +403 -0
- package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
- package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
- package/{esm2015/checkbox/testing/checkbox-harness-filters.js → esm2020/checkbox/testing/checkbox-harness-filters.mjs} +0 -0
- package/esm2020/checkbox/testing/checkbox-harness.mjs +123 -0
- package/{esm2015/checkbox/testing/index.js → esm2020/checkbox/testing/index.mjs} +0 -0
- package/{esm2015/checkbox/testing/public-api.js → esm2020/checkbox/testing/public-api.mjs} +0 -0
- package/{esm2015/chips/chip-default-options.js → esm2020/chips/chip-default-options.mjs} +0 -0
- package/esm2020/chips/chip-input.mjs +192 -0
- package/esm2020/chips/chip-list.mjs +673 -0
- package/{esm2015/chips/chip-text-control.js → esm2020/chips/chip-text-control.mjs} +0 -0
- package/esm2020/chips/chip.mjs +415 -0
- package/esm2020/chips/chips-module.mjs +64 -0
- package/{esm2015/chips/index.js → esm2020/chips/index.mjs} +0 -0
- package/{esm2015/chips/public-api.js → esm2020/chips/public-api.mjs} +0 -0
- package/{esm2015/chips/testing/chip-avatar-harness.js → esm2020/chips/testing/chip-avatar-harness.mjs} +0 -0
- package/{esm2015/chips/testing/chip-harness-filters.js → esm2020/chips/testing/chip-harness-filters.mjs} +0 -0
- package/esm2020/chips/testing/chip-harness.mjs +91 -0
- package/esm2020/chips/testing/chip-input-harness.mjs +82 -0
- package/esm2020/chips/testing/chip-list-harness.mjs +82 -0
- package/esm2020/chips/testing/chip-listbox-harness.mjs +44 -0
- package/esm2020/chips/testing/chip-option-harness.mjs +45 -0
- package/esm2020/chips/testing/chip-remove-harness.mjs +26 -0
- package/{esm2015/chips/testing/index.js → esm2020/chips/testing/index.mjs} +0 -0
- package/{esm2015/chips/testing/public-api.js → esm2020/chips/testing/public-api.mjs} +0 -0
- package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
- package/esm2020/core/common-behaviors/color.mjs +31 -0
- package/esm2020/core/common-behaviors/common-module.mjs +122 -0
- package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
- package/esm2020/core/common-behaviors/disable-ripple.mjs +20 -0
- package/esm2020/core/common-behaviors/disabled.mjs +19 -0
- package/esm2020/core/common-behaviors/error-state.mjs +36 -0
- package/esm2020/core/common-behaviors/index.mjs +15 -0
- package/esm2020/core/common-behaviors/initialized.mjs +58 -0
- package/esm2020/core/common-behaviors/tabindex.mjs +23 -0
- package/{esm2015/core/datetime/date-adapter.js → esm2020/core/datetime/date-adapter.mjs} +0 -0
- package/{esm2015/core/datetime/date-formats.js → esm2020/core/datetime/date-formats.mjs} +0 -0
- package/esm2020/core/datetime/index.mjs +47 -0
- package/esm2020/core/datetime/native-date-adapter.mjs +218 -0
- package/{esm2015/core/datetime/native-date-formats.js → esm2020/core/datetime/native-date-formats.mjs} +0 -0
- package/esm2020/core/error/error-options.mjs +33 -0
- package/esm2020/core/index.mjs +5 -0
- package/esm2020/core/line/line.mjs +64 -0
- package/esm2020/core/option/index.mjs +32 -0
- package/esm2020/core/option/optgroup.mjs +73 -0
- package/{esm2015/core/option/option-parent.js → esm2020/core/option/option-parent.mjs} +0 -0
- package/esm2020/core/option/option.mjs +276 -0
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
- package/esm2020/core/ripple/index.mjs +29 -0
- package/{esm2015/core/ripple/ripple-ref.js → esm2020/core/ripple/ripple-ref.mjs} +0 -0
- package/esm2020/core/ripple/ripple-renderer.mjs +261 -0
- package/esm2020/core/ripple/ripple.mjs +152 -0
- package/esm2020/core/selection/index.mjs +26 -0
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +54 -0
- package/{esm2015/core/testing/index.js → esm2020/core/testing/index.mjs} +0 -0
- package/{esm2015/core/testing/optgroup-harness-filters.js → esm2020/core/testing/optgroup-harness-filters.mjs} +0 -0
- package/esm2020/core/testing/optgroup-harness.mjs +44 -0
- package/{esm2015/core/testing/option-harness-filters.js → esm2020/core/testing/option-harness-filters.mjs} +0 -0
- package/esm2020/core/testing/option-harness.mjs +54 -0
- package/{esm2015/core/testing/public-api.js → esm2020/core/testing/public-api.mjs} +0 -0
- package/esm2020/core/version.mjs +11 -0
- package/esm2020/datepicker/calendar-body.mjs +298 -0
- package/esm2020/datepicker/calendar.mjs +354 -0
- package/esm2020/datepicker/date-range-input-parts.mjs +342 -0
- package/esm2020/datepicker/date-range-input.mjs +331 -0
- package/esm2020/datepicker/date-range-picker.mjs +48 -0
- package/esm2020/datepicker/date-range-selection-strategy.mjs +59 -0
- package/esm2020/datepicker/date-selection-model.mjs +187 -0
- package/esm2020/datepicker/datepicker-actions.mjs +89 -0
- package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
- package/esm2020/datepicker/datepicker-base.mjs +549 -0
- package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
- package/esm2020/datepicker/datepicker-input-base.mjs +298 -0
- package/esm2020/datepicker/datepicker-input.mjs +183 -0
- package/esm2020/datepicker/datepicker-intl.mjs +53 -0
- package/esm2020/datepicker/datepicker-module.mjs +148 -0
- package/esm2020/datepicker/datepicker-toggle.mjs +113 -0
- package/esm2020/datepicker/datepicker.mjs +37 -0
- package/esm2020/datepicker/index.mjs +5 -0
- package/esm2020/datepicker/month-view.mjs +364 -0
- package/esm2020/datepicker/multi-year-view.mjs +289 -0
- package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
- package/esm2020/datepicker/testing/calendar-cell-harness.mjs +138 -0
- package/esm2020/datepicker/testing/calendar-harness.mjs +76 -0
- package/esm2020/datepicker/testing/date-range-input-harness.mjs +99 -0
- package/{esm2015/datepicker/testing/datepicker-harness-filters.js → esm2020/datepicker/testing/datepicker-harness-filters.mjs} +0 -0
- package/esm2020/datepicker/testing/datepicker-input-harness-base.mjs +81 -0
- package/esm2020/datepicker/testing/datepicker-input-harness.mjs +58 -0
- package/esm2020/datepicker/testing/datepicker-toggle-harness.mjs +41 -0
- package/esm2020/datepicker/testing/datepicker-trigger-harness-base.mjs +65 -0
- package/{esm2015/datepicker/testing/index.js → esm2020/datepicker/testing/index.mjs} +0 -0
- package/{esm2015/datepicker/testing/public-api.js → esm2020/datepicker/testing/public-api.mjs} +0 -0
- package/esm2020/datepicker/year-view.mjs +281 -0
- package/{esm2015/dialog/dialog-animations.js → esm2020/dialog/dialog-animations.mjs} +0 -0
- package/{esm2015/dialog/dialog-config.js → esm2020/dialog/dialog-config.mjs} +0 -0
- package/esm2020/dialog/dialog-container.mjs +282 -0
- package/esm2020/dialog/dialog-content-directives.mjs +172 -0
- package/esm2020/dialog/dialog-module.mjs +69 -0
- package/esm2020/dialog/dialog-ref.mjs +196 -0
- package/esm2020/dialog/dialog.mjs +358 -0
- package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
- package/{esm2015/dialog/public-api.js → esm2020/dialog/public-api.mjs} +0 -0
- package/{esm2015/dialog/testing/dialog-harness-filters.js → esm2020/dialog/testing/dialog-harness-filters.mjs} +0 -0
- package/esm2020/dialog/testing/dialog-harness.mjs +83 -0
- package/{esm2015/dialog/testing/index.js → esm2020/dialog/testing/index.mjs} +0 -0
- package/{esm2015/dialog/testing/public-api.js → esm2020/dialog/testing/public-api.mjs} +0 -0
- package/esm2020/divider/divider-module.mjs +25 -0
- package/esm2020/divider/divider.mjs +40 -0
- package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
- package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
- package/{esm2015/divider/testing/divider-harness-filters.js → esm2020/divider/testing/divider-harness-filters.mjs} +0 -0
- package/esm2020/divider/testing/divider-harness.mjs +22 -0
- package/{esm2015/divider/testing/index.js → esm2020/divider/testing/index.mjs} +0 -0
- package/{esm2015/divider/testing/public-api.js → esm2020/divider/testing/public-api.mjs} +0 -0
- package/{esm2015/expansion/accordion-base.js → esm2020/expansion/accordion-base.mjs} +0 -0
- package/esm2020/expansion/accordion.mjs +93 -0
- package/{esm2015/expansion/expansion-animations.js → esm2020/expansion/expansion-animations.mjs} +0 -0
- package/esm2020/expansion/expansion-module.mjs +59 -0
- package/esm2020/expansion/expansion-panel-content.mjs +27 -0
- package/esm2020/expansion/expansion-panel-header.mjs +226 -0
- package/esm2020/expansion/expansion-panel.mjs +195 -0
- package/{esm2015/expansion/index.js → esm2020/expansion/index.mjs} +0 -0
- package/{esm2015/expansion/public-api.js → esm2020/expansion/public-api.mjs} +0 -0
- package/esm2020/expansion/testing/accordion-harness.mjs +31 -0
- package/{esm2015/expansion/testing/expansion-harness-filters.js → esm2020/expansion/testing/expansion-harness-filters.mjs} +0 -0
- package/esm2020/expansion/testing/expansion-harness.mjs +120 -0
- package/{esm2015/expansion/testing/index.js → esm2020/expansion/testing/index.mjs} +0 -0
- package/{esm2015/expansion/testing/public-api.js → esm2020/expansion/testing/public-api.mjs} +0 -0
- package/esm2020/form-field/error.mjs +47 -0
- package/{esm2015/form-field/form-field-animations.js → esm2020/form-field/form-field-animations.mjs} +0 -0
- package/esm2020/form-field/form-field-control.mjs +11 -0
- package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/form-field/form-field-module.mjs +73 -0
- package/esm2020/form-field/form-field.mjs +510 -0
- package/esm2020/form-field/hint.mjs +49 -0
- package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
- package/esm2020/form-field/label.mjs +21 -0
- package/esm2020/form-field/placeholder.mjs +26 -0
- package/esm2020/form-field/prefix.mjs +28 -0
- package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
- package/esm2020/form-field/suffix.mjs +28 -0
- package/{esm2015/form-field/testing/control/form-field-control-harness.js → esm2020/form-field/testing/control/form-field-control-harness.mjs} +0 -0
- package/{esm2015/form-field/testing/control/index.js → esm2020/form-field/testing/control/index.mjs} +0 -0
- package/{esm2015/form-field/testing/form-field-harness-filters.js → esm2020/form-field/testing/form-field-harness-filters.mjs} +0 -0
- package/esm2020/form-field/testing/form-field-harness.mjs +181 -0
- package/{esm2015/form-field/testing/index.js → esm2020/form-field/testing/index.mjs} +0 -0
- package/{esm2015/form-field/testing/public-api.js → esm2020/form-field/testing/public-api.mjs} +0 -0
- package/{esm2015/grid-list/grid-list-base.js → esm2020/grid-list/grid-list-base.mjs} +0 -0
- package/esm2020/grid-list/grid-list-module.mjs +55 -0
- package/esm2020/grid-list/grid-list.mjs +135 -0
- package/esm2020/grid-list/grid-tile.mjs +117 -0
- package/esm2020/grid-list/index.mjs +5 -0
- package/{esm2015/grid-list/public-api.js → esm2020/grid-list/public-api.mjs} +0 -0
- package/{esm2015/grid-list/testing/grid-list-harness-filters.js → esm2020/grid-list/testing/grid-list-harness-filters.mjs} +0 -0
- package/esm2020/grid-list/testing/grid-list-harness.mjs +72 -0
- package/esm2020/grid-list/testing/grid-tile-harness.mjs +65 -0
- package/{esm2015/grid-list/testing/index.js → esm2020/grid-list/testing/index.mjs} +0 -0
- package/{esm2015/grid-list/testing/public-api.js → esm2020/grid-list/testing/public-api.mjs} +0 -0
- package/{esm2015/grid-list/tile-coordinator.js → esm2020/grid-list/tile-coordinator.mjs} +0 -0
- package/{esm2015/grid-list/tile-styler.js → esm2020/grid-list/tile-styler.mjs} +0 -0
- package/{esm2015/icon/fake-svgs.js → esm2020/icon/fake-svgs.mjs} +0 -0
- package/esm2020/icon/icon-module.mjs +25 -0
- package/esm2020/icon/icon-registry.mjs +582 -0
- package/esm2020/icon/icon.mjs +357 -0
- package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
- package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
- package/esm2020/icon/testing/fake-icon-registry.mjs +92 -0
- package/{esm2015/icon/testing/icon-harness-filters.js → esm2020/icon/testing/icon-harness-filters.mjs} +0 -0
- package/esm2020/icon/testing/icon-harness.mjs +54 -0
- package/{esm2015/icon/testing/index.js → esm2020/icon/testing/index.mjs} +0 -0
- package/{esm2015/icon/testing/public-api.js → esm2020/icon/testing/public-api.mjs} +0 -0
- package/esm2020/icon/trusted-types.mjs +43 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
- package/esm2020/input/input-module.mjs +51 -0
- package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
- package/esm2020/input/input.mjs +428 -0
- package/esm2020/input/public-api.mjs +12 -0
- package/{esm2015/input/testing/index.js → esm2020/input/testing/index.mjs} +0 -0
- package/{esm2015/input/testing/input-harness-filters.js → esm2020/input/testing/input-harness-filters.mjs} +0 -0
- package/esm2020/input/testing/input-harness.mjs +113 -0
- package/esm2020/input/testing/native-option-harness.mjs +42 -0
- package/{esm2015/input/testing/native-select-harness-filters.js → esm2020/input/testing/native-select-harness-filters.mjs} +0 -0
- package/esm2020/input/testing/native-select-harness.mjs +79 -0
- package/{esm2015/input/testing/public-api.js → esm2020/input/testing/public-api.mjs} +0 -0
- package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
- package/esm2020/list/list-module.mjs +71 -0
- package/esm2020/list/list.mjs +216 -0
- package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
- package/esm2020/list/selection-list.mjs +612 -0
- package/esm2020/list/testing/action-list-harness.mjs +59 -0
- package/{esm2015/list/testing/index.js → esm2020/list/testing/index.mjs} +0 -0
- package/esm2020/list/testing/list-harness-base.mjs +88 -0
- package/{esm2015/list/testing/list-harness-filters.js → esm2020/list/testing/list-harness-filters.mjs} +0 -0
- package/{esm2015/list/testing/list-harness.js → esm2020/list/testing/list-harness.mjs} +0 -0
- package/esm2020/list/testing/list-item-harness-base.mjs +72 -0
- package/esm2020/list/testing/nav-list-harness.mjs +64 -0
- package/{esm2015/list/testing/public-api.js → esm2020/list/testing/public-api.mjs} +0 -0
- package/esm2020/list/testing/selection-list-harness.mjs +125 -0
- package/esm2020/menu/index.mjs +5 -0
- package/{esm2015/menu/menu-animations.js → esm2020/menu/menu-animations.mjs} +0 -0
- package/esm2020/menu/menu-content.mjs +97 -0
- package/{esm2015/menu/menu-errors.js → esm2020/menu/menu-errors.mjs} +0 -0
- package/esm2020/menu/menu-item.mjs +164 -0
- package/esm2020/menu/menu-module.mjs +58 -0
- package/{esm2015/menu/menu-panel.js → esm2020/menu/menu-panel.mjs} +0 -0
- package/{esm2015/menu/menu-positions.js → esm2020/menu/menu-positions.mjs} +0 -0
- package/esm2020/menu/menu-trigger.mjs +540 -0
- package/esm2020/menu/menu.mjs +401 -0
- package/esm2020/menu/public-api.mjs +16 -0
- package/{esm2015/menu/testing/index.js → esm2020/menu/testing/index.mjs} +0 -0
- package/{esm2015/menu/testing/menu-harness-filters.js → esm2020/menu/testing/menu-harness-filters.mjs} +0 -0
- package/esm2020/menu/testing/menu-harness.mjs +183 -0
- package/{esm2015/menu/testing/public-api.js → esm2020/menu/testing/public-api.mjs} +0 -0
- package/{esm2015/paginator/index.js → esm2020/paginator/index.mjs} +0 -0
- package/esm2020/paginator/paginator-intl.mjs +64 -0
- package/esm2020/paginator/paginator-module.mjs +47 -0
- package/esm2020/paginator/paginator.mjs +268 -0
- package/{esm2015/paginator/public-api.js → esm2020/paginator/public-api.mjs} +0 -0
- package/{esm2015/paginator/testing/index.js → esm2020/paginator/testing/index.mjs} +0 -0
- package/{esm2015/paginator/testing/paginator-harness-filters.js → esm2020/paginator/testing/paginator-harness-filters.mjs} +0 -0
- package/esm2020/paginator/testing/paginator-harness.mjs +91 -0
- package/{esm2015/paginator/testing/public-api.js → esm2020/paginator/testing/public-api.mjs} +0 -0
- package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
- package/esm2020/progress-bar/progress-bar-module.mjs +26 -0
- package/esm2020/progress-bar/progress-bar.mjs +187 -0
- package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
- package/{esm2015/progress-bar/testing/index.js → esm2020/progress-bar/testing/index.mjs} +0 -0
- package/{esm2015/progress-bar/testing/progress-bar-harness-filters.js → esm2020/progress-bar/testing/progress-bar-harness-filters.mjs} +0 -0
- package/esm2020/progress-bar/testing/progress-bar-harness.mjs +34 -0
- package/{esm2015/progress-bar/testing/public-api.js → esm2020/progress-bar/testing/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
- package/esm2020/progress-spinner/progress-spinner-module.mjs +36 -0
- package/esm2020/progress-spinner/progress-spinner.mjs +280 -0
- package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/testing/index.js → esm2020/progress-spinner/testing/index.mjs} +0 -0
- package/{esm2015/progress-spinner/testing/progress-spinner-harness-filters.js → esm2020/progress-spinner/testing/progress-spinner-harness-filters.mjs} +0 -0
- package/esm2020/progress-spinner/testing/progress-spinner-harness.mjs +35 -0
- package/{esm2015/progress-spinner/testing/public-api.js → esm2020/progress-spinner/testing/public-api.mjs} +0 -0
- package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
- package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
- package/esm2020/radio/radio-module.mjs +25 -0
- package/esm2020/radio/radio.mjs +570 -0
- package/{esm2015/radio/testing/index.js → esm2020/radio/testing/index.mjs} +0 -0
- package/{esm2015/radio/testing/public-api.js → esm2020/radio/testing/public-api.mjs} +0 -0
- package/{esm2015/radio/testing/radio-harness-filters.js → esm2020/radio/testing/radio-harness-filters.mjs} +0 -0
- package/esm2020/radio/testing/radio-harness.mjs +231 -0
- package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
- package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/{esm2015/select/select-animations.js → esm2020/select/select-animations.mjs} +0 -0
- package/{esm2015/select/select-errors.js → esm2020/select/select-errors.mjs} +0 -0
- package/esm2020/select/select-module.mjs +58 -0
- package/esm2020/select/select.mjs +1188 -0
- package/{esm2015/select/testing/index.js → esm2020/select/testing/index.mjs} +0 -0
- package/{esm2015/select/testing/public-api.js → esm2020/select/testing/public-api.mjs} +0 -0
- package/{esm2015/select/testing/select-harness-filters.js → esm2020/select/testing/select-harness-filters.mjs} +0 -0
- package/esm2020/select/testing/select-harness.mjs +130 -0
- package/{esm2015/sidenav/drawer-animations.js → esm2020/sidenav/drawer-animations.mjs} +0 -0
- package/esm2020/sidenav/drawer.mjs +788 -0
- package/esm2020/sidenav/index.mjs +5 -0
- package/{esm2015/sidenav/public-api.js → esm2020/sidenav/public-api.mjs} +0 -0
- package/esm2020/sidenav/sidenav-module.mjs +71 -0
- package/esm2020/sidenav/sidenav.mjs +115 -0
- package/esm2020/sidenav/testing/drawer-container-harness.mjs +36 -0
- package/{esm2015/sidenav/testing/drawer-content-harness.js → esm2020/sidenav/testing/drawer-content-harness.mjs} +0 -0
- package/{esm2015/sidenav/testing/drawer-harness-filters.js → esm2020/sidenav/testing/drawer-harness-filters.mjs} +0 -0
- package/esm2020/sidenav/testing/drawer-harness.mjs +50 -0
- package/{esm2015/sidenav/testing/index.js → esm2020/sidenav/testing/index.mjs} +0 -0
- package/{esm2015/sidenav/testing/public-api.js → esm2020/sidenav/testing/public-api.mjs} +0 -0
- package/esm2020/sidenav/testing/sidenav-container-harness.mjs +36 -0
- package/{esm2015/sidenav/testing/sidenav-content-harness.js → esm2020/sidenav/testing/sidenav-content-harness.mjs} +0 -0
- package/esm2020/sidenav/testing/sidenav-harness.mjs +29 -0
- package/{esm2015/slide-toggle/index.js → esm2020/slide-toggle/index.mjs} +0 -0
- package/{esm2015/slide-toggle/public-api.js → esm2020/slide-toggle/public-api.mjs} +0 -0
- package/{esm2015/slide-toggle/slide-toggle-config.js → esm2020/slide-toggle/slide-toggle-config.mjs} +0 -0
- package/esm2020/slide-toggle/slide-toggle-module.mjs +57 -0
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +36 -0
- package/esm2020/slide-toggle/slide-toggle.mjs +253 -0
- package/{esm2015/slide-toggle/testing/index.js → esm2020/slide-toggle/testing/index.mjs} +0 -0
- package/{esm2015/slide-toggle/testing/public-api.js → esm2020/slide-toggle/testing/public-api.mjs} +0 -0
- package/{esm2015/slide-toggle/testing/slide-toggle-harness-filters.js → esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs} +0 -0
- package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +110 -0
- package/{esm2015/slider/index.js → esm2020/slider/index.mjs} +0 -0
- package/{esm2015/slider/public-api.js → esm2020/slider/public-api.mjs} +0 -0
- package/esm2020/slider/slider-module.mjs +26 -0
- package/esm2020/slider/slider.mjs +801 -0
- package/{esm2015/slider/testing/index.js → esm2020/slider/testing/index.mjs} +0 -0
- package/{esm2015/slider/testing/public-api.js → esm2020/slider/testing/public-api.mjs} +0 -0
- package/{esm2015/slider/testing/slider-harness-filters.js → esm2020/slider/testing/slider-harness-filters.mjs} +0 -0
- package/esm2020/slider/testing/slider-harness.mjs +114 -0
- package/{esm2015/snack-bar/index.js → esm2020/snack-bar/index.mjs} +0 -0
- package/{esm2015/snack-bar/public-api.js → esm2020/snack-bar/public-api.mjs} +0 -0
- package/esm2020/snack-bar/simple-snack-bar.mjs +44 -0
- package/{esm2015/snack-bar/snack-bar-animations.js → esm2020/snack-bar/snack-bar-animations.mjs} +0 -0
- package/{esm2015/snack-bar/snack-bar-config.js → esm2020/snack-bar/snack-bar-config.mjs} +0 -0
- package/esm2020/snack-bar/snack-bar-container.mjs +205 -0
- package/esm2020/snack-bar/snack-bar-module.mjs +47 -0
- package/esm2020/snack-bar/snack-bar-ref.mjs +90 -0
- package/esm2020/snack-bar/snack-bar.mjs +265 -0
- package/{esm2015/snack-bar/testing/index.js → esm2020/snack-bar/testing/index.mjs} +0 -0
- package/{esm2015/snack-bar/testing/public-api.js → esm2020/snack-bar/testing/public-api.mjs} +0 -0
- package/{esm2015/snack-bar/testing/snack-bar-harness-filters.js → esm2020/snack-bar/testing/snack-bar-harness-filters.mjs} +0 -0
- package/esm2020/snack-bar/testing/snack-bar-harness.mjs +118 -0
- package/{esm2015/sort/index.js → esm2020/sort/index.mjs} +0 -0
- package/{esm2015/sort/public-api.js → esm2020/sort/public-api.mjs} +0 -0
- package/{esm2015/sort/sort-animations.js → esm2020/sort/sort-animations.mjs} +0 -0
- package/{esm2015/sort/sort-direction.js → esm2020/sort/sort-direction.mjs} +0 -0
- package/{esm2015/sort/sort-errors.js → esm2020/sort/sort-errors.mjs} +0 -0
- package/esm2020/sort/sort-header-intl.mjs +43 -0
- package/esm2020/sort/sort-header.mjs +275 -0
- package/esm2020/sort/sort-module.mjs +29 -0
- package/esm2020/sort/sort.mjs +154 -0
- package/{esm2015/sort/testing/index.js → esm2020/sort/testing/index.mjs} +0 -0
- package/{esm2015/sort/testing/public-api.js → esm2020/sort/testing/public-api.mjs} +0 -0
- package/{esm2015/sort/testing/sort-harness-filters.js → esm2020/sort/testing/sort-harness-filters.mjs} +0 -0
- package/esm2020/sort/testing/sort-harness.mjs +36 -0
- package/esm2020/sort/testing/sort-header-harness.mjs +56 -0
- package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
- package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
- package/esm2020/stepper/step-content.mjs +26 -0
- package/esm2020/stepper/step-header.mjs +110 -0
- package/esm2020/stepper/step-label.mjs +21 -0
- package/{esm2015/stepper/stepper-animations.js → esm2020/stepper/stepper-animations.mjs} +0 -0
- package/esm2020/stepper/stepper-button.mjs +43 -0
- package/esm2020/stepper/stepper-icon.mjs +29 -0
- package/esm2020/stepper/stepper-intl.mjs +43 -0
- package/esm2020/stepper/stepper-module.mjs +97 -0
- package/esm2020/stepper/stepper.mjs +213 -0
- package/{esm2015/stepper/testing/index.js → esm2020/stepper/testing/index.mjs} +0 -0
- package/{esm2015/stepper/testing/public-api.js → esm2020/stepper/testing/public-api.mjs} +0 -0
- package/{esm2015/stepper/testing/step-harness-filters.js → esm2020/stepper/testing/step-harness-filters.mjs} +0 -0
- package/esm2020/stepper/testing/step-harness.mjs +90 -0
- package/esm2020/stepper/testing/stepper-button-harnesses.mjs +50 -0
- package/esm2020/stepper/testing/stepper-harness.mjs +50 -0
- package/esm2020/table/cell.mjs +139 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/esm2020/table/row.mjs +139 -0
- package/esm2020/table/table-data-source.mjs +310 -0
- package/esm2020/table/table-module.mjs +101 -0
- package/esm2020/table/table.mjs +71 -0
- package/esm2020/table/testing/cell-harness.mjs +72 -0
- package/{esm2015/table/testing/index.js → esm2020/table/testing/index.mjs} +0 -0
- package/{esm2015/table/testing/public-api.js → esm2020/table/testing/public-api.mjs} +0 -0
- package/esm2020/table/testing/row-harness.mjs +84 -0
- package/{esm2015/table/testing/table-harness-filters.js → esm2020/table/testing/table-harness-filters.mjs} +0 -0
- package/esm2020/table/testing/table-harness.mjs +88 -0
- package/esm2020/table/text-column.mjs +58 -0
- package/esm2020/tabs/index.mjs +5 -0
- package/esm2020/tabs/ink-bar.mjs +93 -0
- package/esm2020/tabs/paginated-tab-header.mjs +480 -0
- package/esm2020/tabs/public-api.mjs +20 -0
- package/esm2020/tabs/tab-body.mjs +214 -0
- package/{esm2015/tabs/tab-config.js → esm2020/tabs/tab-config.mjs} +0 -0
- package/esm2020/tabs/tab-content.mjs +32 -0
- package/esm2020/tabs/tab-group.mjs +382 -0
- package/esm2020/tabs/tab-header.mjs +101 -0
- package/esm2020/tabs/tab-label-wrapper.mjs +41 -0
- package/esm2020/tabs/tab-label.mjs +43 -0
- package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +263 -0
- package/esm2020/tabs/tab.mjs +106 -0
- package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
- package/esm2020/tabs/tabs-module.mjs +93 -0
- package/{esm2015/tabs/testing/index.js → esm2020/tabs/testing/index.mjs} +0 -0
- package/{esm2015/tabs/testing/public-api.js → esm2020/tabs/testing/public-api.mjs} +0 -0
- package/esm2020/tabs/testing/tab-group-harness.mjs +58 -0
- package/{esm2015/tabs/testing/tab-harness-filters.js → esm2020/tabs/testing/tab-harness-filters.mjs} +0 -0
- package/esm2020/tabs/testing/tab-harness.mjs +66 -0
- package/esm2020/tabs/testing/tab-link-harness.mjs +42 -0
- package/esm2020/tabs/testing/tab-nav-bar-harness.mjs +54 -0
- package/{esm2015/toolbar/index.js → esm2020/toolbar/index.mjs} +0 -0
- package/{esm2015/toolbar/public-api.js → esm2020/toolbar/public-api.mjs} +0 -0
- package/{esm2015/toolbar/testing/index.js → esm2020/toolbar/testing/index.mjs} +0 -0
- package/{esm2015/toolbar/testing/public-api.js → esm2020/toolbar/testing/public-api.mjs} +0 -0
- package/{esm2015/toolbar/testing/toolbar-harness-filters.js → esm2020/toolbar/testing/toolbar-harness-filters.mjs} +0 -0
- package/esm2020/toolbar/testing/toolbar-harness.mjs +40 -0
- package/esm2020/toolbar/toolbar-module.mjs +25 -0
- package/esm2020/toolbar/toolbar.mjs +88 -0
- package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
- package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{esm2015/tooltip/testing/index.js → esm2020/tooltip/testing/index.mjs} +0 -0
- package/{esm2015/tooltip/testing/public-api.js → esm2020/tooltip/testing/public-api.mjs} +0 -0
- package/{esm2015/tooltip/testing/tooltip-harness-filters.js → esm2020/tooltip/testing/tooltip-harness-filters.mjs} +0 -0
- package/esm2020/tooltip/testing/tooltip-harness.mjs +57 -0
- package/{esm2015/tooltip/tooltip-animations.js → esm2020/tooltip/tooltip-animations.mjs} +0 -0
- package/esm2020/tooltip/tooltip-module.mjs +44 -0
- package/esm2020/tooltip/tooltip.mjs +739 -0
- package/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -0
- package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/esm2020/tree/node.mjs +143 -0
- package/esm2020/tree/outlet.mjs +41 -0
- package/esm2020/tree/padding.mjs +37 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/{esm2015/tree/testing/index.js → esm2020/tree/testing/index.mjs} +0 -0
- package/esm2020/tree/testing/node-harness.mjs +69 -0
- package/{esm2015/tree/testing/public-api.js → esm2020/tree/testing/public-api.mjs} +0 -0
- package/{esm2015/tree/testing/tree-harness-filters.js → esm2020/tree/testing/tree-harness-filters.mjs} +0 -0
- package/esm2020/tree/testing/tree-harness.mjs +123 -0
- package/esm2020/tree/toggle.mjs +36 -0
- package/esm2020/tree/tree-module.mjs +51 -0
- package/esm2020/tree/tree.mjs +37 -0
- package/expansion/accordion.d.ts +3 -0
- package/expansion/expansion-module.d.ts +12 -7
- package/expansion/expansion-panel-content.d.ts +3 -0
- package/expansion/expansion-panel-header.d.ts +8 -1
- package/expansion/expansion-panel.d.ts +5 -0
- package/expansion/package.json +5 -5
- package/expansion/testing/package.json +5 -5
- package/fesm2015/autocomplete/testing.mjs +132 -0
- package/fesm2015/autocomplete/testing.mjs.map +1 -0
- package/fesm2015/autocomplete.mjs +958 -0
- package/fesm2015/autocomplete.mjs.map +1 -0
- package/fesm2015/badge/testing.mjs +97 -0
- package/fesm2015/badge/testing.mjs.map +1 -0
- package/fesm2015/badge.mjs +266 -0
- package/fesm2015/badge.mjs.map +1 -0
- package/fesm2015/bottom-sheet/testing.mjs +52 -0
- package/fesm2015/bottom-sheet/testing.mjs.map +1 -0
- package/fesm2015/bottom-sheet.mjs +596 -0
- package/fesm2015/bottom-sheet.mjs.map +1 -0
- package/fesm2015/button/testing.mjs +76 -0
- package/fesm2015/button/testing.mjs.map +1 -0
- package/fesm2015/button-toggle/testing.mjs +181 -0
- package/fesm2015/button-toggle/testing.mjs.map +1 -0
- package/fesm2015/button-toggle.mjs +502 -0
- package/fesm2015/button-toggle.mjs.map +1 -0
- package/fesm2015/button.mjs +202 -0
- package/fesm2015/button.mjs.map +1 -0
- package/fesm2015/card/testing.mjs +64 -0
- package/fesm2015/card/testing.mjs.map +1 -0
- package/fesm2015/card.mjs +322 -0
- package/fesm2015/card.mjs.map +1 -0
- package/fesm2015/checkbox/testing.mjs +168 -0
- package/fesm2015/checkbox/testing.mjs.map +1 -0
- package/fesm2015/checkbox.mjs +503 -0
- package/fesm2015/checkbox.mjs.map +1 -0
- package/fesm2015/chips/testing.mjs +423 -0
- package/fesm2015/chips/testing.mjs.map +1 -0
- package/fesm2015/chips.mjs +1354 -0
- package/fesm2015/chips.mjs.map +1 -0
- package/fesm2015/core/testing.mjs +120 -0
- package/fesm2015/core/testing.mjs.map +1 -0
- package/fesm2015/core.mjs +1719 -0
- package/fesm2015/core.mjs.map +1 -0
- package/fesm2015/datepicker/testing.mjs +635 -0
- package/fesm2015/datepicker/testing.mjs.map +1 -0
- package/fesm2015/datepicker.mjs +3948 -0
- package/fesm2015/datepicker.mjs.map +1 -0
- package/fesm2015/dialog/testing.mjs +119 -0
- package/fesm2015/dialog/testing.mjs.map +1 -0
- package/fesm2015/dialog.mjs +1155 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/divider/testing.mjs +39 -0
- package/fesm2015/divider/testing.mjs.map +1 -0
- package/fesm2015/divider.mjs +77 -0
- package/fesm2015/divider.mjs.map +1 -0
- package/fesm2015/expansion/testing.mjs +187 -0
- package/fesm2015/expansion/testing.mjs.map +1 -0
- package/fesm2015/expansion.mjs +641 -0
- package/fesm2015/expansion.mjs.map +1 -0
- package/fesm2015/form-field/testing/control.mjs +26 -0
- package/fesm2015/form-field/testing/control.mjs.map +1 -0
- package/fesm2015/form-field/testing.mjs +231 -0
- package/fesm2015/form-field/testing.mjs.map +1 -0
- package/fesm2015/form-field.mjs +814 -0
- package/fesm2015/form-field.mjs.map +1 -0
- package/fesm2015/grid-list/testing.mjs +161 -0
- package/fesm2015/grid-list/testing.mjs.map +1 -0
- package/fesm2015/grid-list.mjs +700 -0
- package/fesm2015/grid-list.mjs.map +1 -0
- package/fesm2015/icon/testing.mjs +163 -0
- package/fesm2015/icon/testing.mjs.map +1 -0
- package/fesm2015/icon.mjs +1016 -0
- package/fesm2015/icon.mjs.map +1 -0
- package/fesm2015/input/testing.mjs +281 -0
- package/fesm2015/input/testing.mjs.map +1 -0
- package/fesm2015/input.mjs +515 -0
- package/fesm2015/input.mjs.map +1 -0
- package/fesm2015/list/testing.mjs +486 -0
- package/fesm2015/list/testing.mjs.map +1 -0
- package/fesm2015/list.mjs +908 -0
- package/fesm2015/list.mjs.map +1 -0
- package/fesm2015/material.mjs +16 -0
- package/fesm2015/material.mjs.map +1 -0
- package/fesm2015/menu/testing.mjs +235 -0
- package/fesm2015/menu/testing.mjs.map +1 -0
- package/fesm2015/menu.mjs +1363 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/paginator/testing.mjs +118 -0
- package/fesm2015/paginator/testing.mjs.map +1 -0
- package/fesm2015/paginator.mjs +387 -0
- package/fesm2015/paginator.mjs.map +1 -0
- package/fesm2015/progress-bar/testing.mjs +51 -0
- package/fesm2015/progress-bar/testing.mjs.map +1 -0
- package/fesm2015/progress-bar.mjs +225 -0
- package/fesm2015/progress-bar.mjs.map +1 -0
- package/fesm2015/progress-spinner/testing.mjs +52 -0
- package/fesm2015/progress-spinner/testing.mjs.map +1 -0
- package/fesm2015/progress-spinner.mjs +330 -0
- package/fesm2015/progress-spinner.mjs.map +1 -0
- package/fesm2015/radio/testing.mjs +284 -0
- package/fesm2015/radio/testing.mjs.map +1 -0
- package/fesm2015/radio.mjs +599 -0
- package/fesm2015/radio.mjs.map +1 -0
- package/fesm2015/select/testing.mjs +169 -0
- package/fesm2015/select/testing.mjs.map +1 -0
- package/fesm2015/select.mjs +1346 -0
- package/fesm2015/select.mjs.map +1 -0
- package/fesm2015/sidenav/testing.mjs +195 -0
- package/fesm2015/sidenav/testing.mjs.map +1 -0
- package/fesm2015/sidenav.mjs +1013 -0
- package/fesm2015/sidenav.mjs.map +1 -0
- package/fesm2015/slide-toggle/testing.mjs +151 -0
- package/fesm2015/slide-toggle/testing.mjs.map +1 -0
- package/fesm2015/slide-toggle.mjs +359 -0
- package/fesm2015/slide-toggle.mjs.map +1 -0
- package/fesm2015/slider/testing.mjs +153 -0
- package/fesm2015/slider/testing.mjs.map +1 -0
- package/fesm2015/slider.mjs +830 -0
- package/fesm2015/slider.mjs.map +1 -0
- package/fesm2015/snack-bar/testing.mjs +153 -0
- package/fesm2015/snack-bar/testing.mjs.map +1 -0
- package/fesm2015/snack-bar.mjs +698 -0
- package/fesm2015/snack-bar.mjs.map +1 -0
- package/fesm2015/sort/testing.mjs +110 -0
- package/fesm2015/sort/testing.mjs.map +1 -0
- package/fesm2015/sort.mjs +605 -0
- package/fesm2015/sort.mjs.map +1 -0
- package/fesm2015/stepper/testing.mjs +216 -0
- package/fesm2015/stepper/testing.mjs.map +1 -0
- package/fesm2015/stepper.mjs +579 -0
- package/fesm2015/stepper.mjs.map +1 -0
- package/fesm2015/table/testing.mjs +259 -0
- package/fesm2015/table/testing.mjs.map +1 -0
- package/fesm2015/table.mjs +817 -0
- package/fesm2015/table.mjs.map +1 -0
- package/fesm2015/tabs/testing.mjs +245 -0
- package/fesm2015/tabs/testing.mjs.map +1 -0
- package/fesm2015/tabs.mjs +1846 -0
- package/fesm2015/tabs.mjs.map +1 -0
- package/fesm2015/toolbar/testing.mjs +59 -0
- package/fesm2015/toolbar/testing.mjs.map +1 -0
- package/fesm2015/toolbar.mjs +118 -0
- package/fesm2015/toolbar.mjs.map +1 -0
- package/fesm2015/tooltip/testing.mjs +80 -0
- package/fesm2015/tooltip/testing.mjs.map +1 -0
- package/fesm2015/tooltip.mjs +820 -0
- package/fesm2015/tooltip.mjs.map +1 -0
- package/fesm2015/tree/testing.mjs +215 -0
- package/fesm2015/tree/testing.mjs.map +1 -0
- package/fesm2015/tree.mjs +520 -0
- package/fesm2015/tree.mjs.map +1 -0
- package/fesm2020/autocomplete/testing.mjs +128 -0
- package/fesm2020/autocomplete/testing.mjs.map +1 -0
- package/fesm2020/autocomplete.mjs +958 -0
- package/fesm2020/autocomplete.mjs.map +1 -0
- package/fesm2020/badge/testing.mjs +99 -0
- package/fesm2020/badge/testing.mjs.map +1 -0
- package/fesm2020/badge.mjs +271 -0
- package/fesm2020/badge.mjs.map +1 -0
- package/fesm2020/bottom-sheet/testing.mjs +62 -0
- package/fesm2020/bottom-sheet/testing.mjs.map +1 -0
- package/fesm2020/bottom-sheet.mjs +592 -0
- package/fesm2020/bottom-sheet.mjs.map +1 -0
- package/fesm2020/button/testing.mjs +78 -0
- package/fesm2020/button/testing.mjs.map +1 -0
- package/fesm2020/button-toggle/testing.mjs +176 -0
- package/fesm2020/button-toggle/testing.mjs.map +1 -0
- package/fesm2020/button-toggle.mjs +505 -0
- package/fesm2020/button-toggle.mjs.map +1 -0
- package/fesm2020/button.mjs +205 -0
- package/fesm2020/button.mjs.map +1 -0
- package/fesm2020/card/testing.mjs +70 -0
- package/fesm2020/card/testing.mjs.map +1 -0
- package/fesm2020/card.mjs +320 -0
- package/fesm2020/card.mjs.map +1 -0
- package/fesm2020/checkbox/testing.mjs +150 -0
- package/fesm2020/checkbox/testing.mjs.map +1 -0
- package/fesm2020/checkbox.mjs +507 -0
- package/fesm2020/checkbox.mjs.map +1 -0
- package/fesm2020/chips/testing.mjs +398 -0
- package/fesm2020/chips/testing.mjs.map +1 -0
- package/fesm2020/chips.mjs +1346 -0
- package/fesm2020/chips.mjs.map +1 -0
- package/fesm2020/core/testing.mjs +131 -0
- package/fesm2020/core/testing.mjs.map +1 -0
- package/fesm2020/core.mjs +1731 -0
- package/fesm2020/core.mjs.map +1 -0
- package/fesm2020/datepicker/testing.mjs +572 -0
- package/fesm2020/datepicker/testing.mjs.map +1 -0
- package/fesm2020/datepicker.mjs +3921 -0
- package/fesm2020/datepicker.mjs.map +1 -0
- package/fesm2020/dialog/testing.mjs +110 -0
- package/fesm2020/dialog/testing.mjs.map +1 -0
- package/fesm2020/dialog.mjs +1147 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/divider/testing.mjs +49 -0
- package/fesm2020/divider/testing.mjs.map +1 -0
- package/fesm2020/divider.mjs +77 -0
- package/fesm2020/divider.mjs.map +1 -0
- package/fesm2020/expansion/testing.mjs +176 -0
- package/fesm2020/expansion/testing.mjs.map +1 -0
- package/fesm2020/expansion.mjs +644 -0
- package/fesm2020/expansion.mjs.map +1 -0
- package/fesm2020/form-field/testing/control.mjs +26 -0
- package/fesm2020/form-field/testing/control.mjs.map +1 -0
- package/fesm2020/form-field/testing.mjs +209 -0
- package/fesm2020/form-field/testing.mjs.map +1 -0
- package/fesm2020/form-field.mjs +817 -0
- package/fesm2020/form-field.mjs.map +1 -0
- package/fesm2020/grid-list/testing.mjs +162 -0
- package/fesm2020/grid-list/testing.mjs.map +1 -0
- package/fesm2020/grid-list.mjs +696 -0
- package/fesm2020/grid-list.mjs.map +1 -0
- package/fesm2020/icon/testing.mjs +169 -0
- package/fesm2020/icon/testing.mjs.map +1 -0
- package/fesm2020/icon.mjs +1010 -0
- package/fesm2020/icon.mjs.map +1 -0
- package/fesm2020/input/testing.mjs +265 -0
- package/fesm2020/input/testing.mjs.map +1 -0
- package/fesm2020/input.mjs +512 -0
- package/fesm2020/input.mjs.map +1 -0
- package/fesm2020/list/testing.mjs +464 -0
- package/fesm2020/list/testing.mjs.map +1 -0
- package/fesm2020/list.mjs +901 -0
- package/fesm2020/list.mjs.map +1 -0
- package/fesm2020/material.mjs +16 -0
- package/fesm2020/material.mjs.map +1 -0
- package/fesm2020/menu/testing.mjs +210 -0
- package/fesm2020/menu/testing.mjs.map +1 -0
- package/fesm2020/menu.mjs +1365 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/paginator/testing.mjs +118 -0
- package/fesm2020/paginator/testing.mjs.map +1 -0
- package/fesm2020/paginator.mjs +385 -0
- package/fesm2020/paginator.mjs.map +1 -0
- package/fesm2020/progress-bar/testing.mjs +61 -0
- package/fesm2020/progress-bar/testing.mjs.map +1 -0
- package/fesm2020/progress-bar.mjs +223 -0
- package/fesm2020/progress-bar.mjs.map +1 -0
- package/fesm2020/progress-spinner/testing.mjs +62 -0
- package/fesm2020/progress-spinner/testing.mjs.map +1 -0
- package/fesm2020/progress-spinner.mjs +326 -0
- package/fesm2020/progress-spinner.mjs.map +1 -0
- package/fesm2020/radio/testing.mjs +258 -0
- package/fesm2020/radio/testing.mjs.map +1 -0
- package/fesm2020/radio.mjs +604 -0
- package/fesm2020/radio.mjs.map +1 -0
- package/fesm2020/select/testing.mjs +157 -0
- package/fesm2020/select/testing.mjs.map +1 -0
- package/fesm2020/select.mjs +1338 -0
- package/fesm2020/select.mjs.map +1 -0
- package/fesm2020/sidenav/testing.mjs +214 -0
- package/fesm2020/sidenav/testing.mjs.map +1 -0
- package/fesm2020/sidenav.mjs +1004 -0
- package/fesm2020/sidenav.mjs.map +1 -0
- package/fesm2020/slide-toggle/testing.mjs +137 -0
- package/fesm2020/slide-toggle/testing.mjs.map +1 -0
- package/fesm2020/slide-toggle.mjs +364 -0
- package/fesm2020/slide-toggle.mjs.map +1 -0
- package/fesm2020/slider/testing.mjs +133 -0
- package/fesm2020/slider/testing.mjs.map +1 -0
- package/fesm2020/slider.mjs +835 -0
- package/fesm2020/slider.mjs.map +1 -0
- package/fesm2020/snack-bar/testing.mjs +145 -0
- package/fesm2020/snack-bar/testing.mjs.map +1 -0
- package/fesm2020/snack-bar.mjs +701 -0
- package/fesm2020/snack-bar.mjs.map +1 -0
- package/fesm2020/sort/testing.mjs +109 -0
- package/fesm2020/sort/testing.mjs.map +1 -0
- package/fesm2020/sort.mjs +609 -0
- package/fesm2020/sort.mjs.map +1 -0
- package/fesm2020/stepper/testing.mjs +206 -0
- package/fesm2020/stepper/testing.mjs.map +1 -0
- package/fesm2020/stepper.mjs +589 -0
- package/fesm2020/stepper.mjs.map +1 -0
- package/fesm2020/table/testing.mjs +259 -0
- package/fesm2020/table/testing.mjs.map +1 -0
- package/fesm2020/table.mjs +814 -0
- package/fesm2020/table.mjs.map +1 -0
- package/fesm2020/tabs/testing.mjs +234 -0
- package/fesm2020/tabs/testing.mjs.map +1 -0
- package/fesm2020/tabs.mjs +1829 -0
- package/fesm2020/tabs.mjs.map +1 -0
- package/fesm2020/toolbar/testing.mjs +67 -0
- package/fesm2020/toolbar/testing.mjs.map +1 -0
- package/fesm2020/toolbar.mjs +123 -0
- package/fesm2020/toolbar.mjs.map +1 -0
- package/fesm2020/tooltip/testing.mjs +84 -0
- package/fesm2020/tooltip/testing.mjs.map +1 -0
- package/fesm2020/tooltip.mjs +815 -0
- package/fesm2020/tooltip.mjs.map +1 -0
- package/fesm2020/tree/testing.mjs +217 -0
- package/fesm2020/tree/testing.mjs.map +1 -0
- package/fesm2020/tree.mjs +514 -0
- package/fesm2020/tree.mjs.map +1 -0
- package/form-field/error.d.ts +3 -0
- package/form-field/form-field-control.d.ts +3 -0
- package/form-field/form-field-module.d.ts +14 -7
- package/form-field/form-field.d.ts +4 -1
- package/form-field/hint.d.ts +3 -0
- package/form-field/label.d.ts +3 -7
- package/form-field/package.json +5 -5
- package/form-field/placeholder.d.ts +3 -7
- package/form-field/prefix.d.ts +3 -0
- package/form-field/suffix.d.ts +3 -0
- package/form-field/testing/control/package.json +5 -5
- package/form-field/testing/package.json +5 -5
- package/grid-list/grid-list-module.d.ts +7 -7
- package/grid-list/grid-list.d.ts +3 -0
- package/grid-list/grid-tile.d.ts +11 -0
- package/grid-list/index.d.ts +0 -1
- package/grid-list/package.json +5 -5
- package/grid-list/testing/package.json +5 -5
- package/icon/icon-module.d.ts +6 -7
- package/icon/icon-registry.d.ts +3 -7
- package/icon/icon.d.ts +4 -1
- package/icon/package.json +5 -5
- package/icon/testing/fake-icon-registry.d.ts +6 -0
- package/icon/testing/package.json +5 -5
- package/input/input-module.d.ts +8 -7
- package/input/input.d.ts +4 -1
- package/input/package.json +5 -5
- package/input/public-api.d.ts +0 -1
- package/input/testing/package.json +5 -5
- package/list/list-module.d.ts +9 -7
- package/list/list.d.ts +15 -2
- package/list/package.json +5 -5
- package/list/selection-list.d.ts +7 -2
- package/list/testing/package.json +5 -5
- package/menu/index.d.ts +0 -2
- package/menu/menu-content.d.ts +11 -11
- package/menu/menu-item.d.ts +4 -1
- package/menu/menu-module.d.ts +12 -13
- package/menu/menu-trigger.d.ts +12 -2
- package/menu/menu.d.ts +5 -0
- package/menu/package.json +5 -5
- package/menu/public-api.d.ts +1 -1
- package/menu/testing/package.json +5 -5
- package/package.json +612 -8
- package/paginator/package.json +5 -5
- package/paginator/paginator-intl.d.ts +3 -0
- package/paginator/paginator-module.d.ts +10 -7
- package/paginator/paginator.d.ts +6 -1
- package/paginator/testing/package.json +5 -5
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/package.json +5 -5
- package/progress-bar/progress-bar-module.d.ts +7 -7
- package/progress-bar/progress-bar.d.ts +4 -1
- package/progress-bar/testing/package.json +5 -5
- package/progress-spinner/package.json +5 -5
- package/progress-spinner/progress-spinner-module.d.ts +7 -0
- package/progress-spinner/progress-spinner.d.ts +6 -1
- package/progress-spinner/testing/package.json +5 -5
- package/radio/package.json +5 -5
- package/radio/radio-module.d.ts +6 -7
- package/radio/radio.d.ts +10 -1
- package/radio/testing/package.json +5 -5
- package/schematics/ng-add/fonts/material-fonts.js +8 -17
- package/schematics/ng-add/fonts/material-fonts.mjs +8 -17
- package/schematics/ng-add/index.js +8 -8
- package/schematics/ng-add/index.mjs +8 -8
- package/schematics/ng-add/setup-project.js +23 -32
- package/schematics/ng-add/setup-project.mjs +23 -32
- package/schematics/ng-add/theming/create-custom-theme.js +2 -2
- package/schematics/ng-add/theming/create-custom-theme.mjs +2 -2
- package/schematics/ng-add/theming/theming.js +35 -46
- package/schematics/ng-add/theming/theming.mjs +35 -46
- package/schematics/ng-generate/address-form/index.js +13 -22
- package/schematics/ng-generate/address-form/index.mjs +13 -22
- package/schematics/ng-generate/dashboard/index.js +13 -22
- package/schematics/ng-generate/dashboard/index.mjs +13 -22
- package/schematics/ng-generate/navigation/index.js +13 -22
- package/schematics/ng-generate/navigation/index.mjs +13 -22
- package/schematics/ng-generate/table/index.js +10 -19
- package/schematics/ng-generate/table/index.mjs +10 -19
- package/schematics/ng-generate/tree/index.js +10 -19
- package/schematics/ng-generate/tree/index.mjs +10 -19
- package/schematics/ng-update/data/constructor-checks.js +5 -1
- package/schematics/ng-update/data/constructor-checks.mjs +5 -1
- package/schematics/ng-update/index.js +9 -9
- package/schematics/ng-update/index.mjs +9 -9
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +24 -24
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +24 -24
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +5 -5
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +5 -5
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.mjs +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-imports.js +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-imports.mjs +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-template.js +4 -4
- package/schematics/ng-update/migrations/misc-checks/misc-template.mjs +4 -4
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +7 -7
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.mjs +7 -7
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +2 -3
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +2 -3
- package/schematics/ng-update/migrations/theming-api-v12/migration.d.ts +6 -6
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +12 -12
- package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +12 -12
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +3 -3
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.mjs +3 -3
- package/schematics/ng-update/typescript/module-specifiers.js +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/schematics/package.json +3 -0
- package/schematics/paths.js +3 -3
- package/schematics/paths.mjs +3 -3
- package/select/package.json +5 -5
- package/select/select-module.d.ts +10 -7
- package/select/select.d.ts +8 -1
- package/select/testing/package.json +5 -5
- package/sidenav/drawer.d.ts +7 -0
- package/sidenav/index.d.ts +0 -1
- package/sidenav/package.json +5 -5
- package/sidenav/sidenav-module.d.ts +10 -0
- package/sidenav/sidenav.d.ts +7 -0
- package/sidenav/testing/package.json +5 -5
- package/slide-toggle/package.json +5 -5
- package/slide-toggle/slide-toggle-module.d.ts +11 -7
- package/slide-toggle/slide-toggle-required-validator.d.ts +3 -0
- package/slide-toggle/slide-toggle.d.ts +4 -1
- package/slide-toggle/testing/package.json +5 -5
- package/slider/package.json +5 -5
- package/slider/slider-module.d.ts +7 -7
- package/slider/slider.d.ts +4 -1
- package/slider/testing/package.json +5 -5
- package/snack-bar/package.json +5 -5
- package/snack-bar/simple-snack-bar.d.ts +3 -7
- package/snack-bar/snack-bar-container.d.ts +3 -0
- package/snack-bar/snack-bar-module.d.ts +11 -7
- package/snack-bar/snack-bar.d.ts +3 -0
- package/snack-bar/testing/package.json +5 -5
- package/snack-bar/testing/snack-bar-harness.d.ts +8 -9
- package/sort/package.json +5 -5
- package/sort/sort-header-intl.d.ts +3 -0
- package/sort/sort-header.d.ts +4 -1
- package/sort/sort-module.d.ts +8 -7
- package/sort/sort.d.ts +4 -1
- package/sort/testing/package.json +5 -5
- package/stepper/package.json +5 -5
- package/stepper/step-content.d.ts +3 -0
- package/stepper/step-header.d.ts +6 -1
- package/stepper/step-label.d.ts +3 -7
- package/stepper/stepper-button.d.ts +5 -0
- package/stepper/stepper-icon.d.ts +3 -0
- package/stepper/stepper-intl.d.ts +7 -0
- package/stepper/stepper-module.d.ts +16 -7
- package/stepper/stepper.d.ts +11 -0
- package/stepper/testing/package.json +5 -5
- package/table/cell.d.ts +15 -7
- package/table/package.json +5 -5
- package/table/row.d.ts +15 -0
- package/table/table-module.d.ts +10 -7
- package/table/table.d.ts +5 -0
- package/table/testing/package.json +5 -5
- package/table/text-column.d.ts +3 -0
- package/tabs/index.d.ts +0 -4
- package/tabs/ink-bar.d.ts +3 -0
- package/tabs/package.json +5 -5
- package/tabs/paginated-tab-header.d.ts +3 -0
- package/tabs/public-api.d.ts +1 -1
- package/tabs/tab-body.d.ts +7 -0
- package/tabs/tab-content.d.ts +3 -0
- package/tabs/tab-group.d.ts +6 -1
- package/tabs/tab-header.d.ts +5 -0
- package/tabs/tab-label-wrapper.d.ts +4 -1
- package/tabs/tab-label.d.ts +11 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +10 -1
- package/tabs/tab.d.ts +5 -2
- package/tabs/tabs-module.d.ts +18 -7
- package/tabs/testing/package.json +5 -5
- package/toolbar/package.json +5 -5
- package/toolbar/testing/package.json +5 -5
- package/toolbar/toolbar-module.d.ts +6 -7
- package/toolbar/toolbar.d.ts +6 -1
- package/tooltip/package.json +5 -5
- package/tooltip/testing/package.json +5 -5
- package/tooltip/tooltip-module.d.ts +10 -7
- package/tooltip/tooltip.d.ts +11 -2
- package/tree/node.d.ts +8 -1
- package/tree/outlet.d.ts +3 -0
- package/tree/package.json +5 -5
- package/tree/padding.d.ts +3 -0
- package/tree/testing/package.json +5 -5
- package/tree/toggle.d.ts +3 -7
- package/tree/tree-module.d.ts +11 -7
- package/tree/tree.d.ts +3 -0
- package/autocomplete/index.metadata.json +0 -1
- package/badge/index.metadata.json +0 -1
- package/bottom-sheet/index.metadata.json +0 -1
- package/bundles/material-autocomplete-testing.umd.js +0 -564
- package/bundles/material-autocomplete-testing.umd.js.map +0 -1
- package/bundles/material-autocomplete.umd.js +0 -1266
- package/bundles/material-autocomplete.umd.js.map +0 -1
- package/bundles/material-badge-testing.umd.js +0 -474
- package/bundles/material-badge-testing.umd.js.map +0 -1
- package/bundles/material-badge.umd.js +0 -606
- package/bundles/material-badge.umd.js.map +0 -1
- package/bundles/material-bottom-sheet-testing.umd.js +0 -396
- package/bundles/material-bottom-sheet-testing.umd.js.map +0 -1
- package/bundles/material-bottom-sheet.umd.js +0 -955
- package/bundles/material-bottom-sheet.umd.js.map +0 -1
- package/bundles/material-button-testing.umd.js +0 -444
- package/bundles/material-button-testing.umd.js.map +0 -1
- package/bundles/material-button-toggle-testing.umd.js +0 -628
- package/bundles/material-button-toggle-testing.umd.js.map +0 -1
- package/bundles/material-button-toggle.umd.js +0 -850
- package/bundles/material-button-toggle.umd.js.map +0 -1
- package/bundles/material-button.umd.js +0 -545
- package/bundles/material-button.umd.js.map +0 -1
- package/bundles/material-card-testing.umd.js +0 -408
- package/bundles/material-card-testing.umd.js.map +0 -1
- package/bundles/material-card.umd.js +0 -337
- package/bundles/material-card.umd.js.map +0 -1
- package/bundles/material-checkbox-testing.umd.js +0 -615
- package/bundles/material-checkbox-testing.umd.js.map +0 -1
- package/bundles/material-checkbox.umd.js +0 -829
- package/bundles/material-checkbox.umd.js.map +0 -1
- package/bundles/material-chips-testing.umd.js +0 -1023
- package/bundles/material-chips-testing.umd.js.map +0 -1
- package/bundles/material-chips.umd.js +0 -1753
- package/bundles/material-chips.umd.js.map +0 -1
- package/bundles/material-core-testing.umd.js +0 -518
- package/bundles/material-core-testing.umd.js.map +0 -1
- package/bundles/material-core.umd.js +0 -2186
- package/bundles/material-core.umd.js.map +0 -1
- package/bundles/material-datepicker-testing.umd.js +0 -1366
- package/bundles/material-datepicker-testing.umd.js.map +0 -1
- package/bundles/material-datepicker.umd.js +0 -4344
- package/bundles/material-datepicker.umd.js.map +0 -1
- package/bundles/material-dialog-testing.umd.js +0 -500
- package/bundles/material-dialog-testing.umd.js.map +0 -1
- package/bundles/material-dialog.umd.js +0 -1487
- package/bundles/material-dialog.umd.js.map +0 -1
- package/bundles/material-divider-testing.umd.js +0 -380
- package/bundles/material-divider-testing.umd.js.map +0 -1
- package/bundles/material-divider.umd.js +0 -95
- package/bundles/material-divider.umd.js.map +0 -1
- package/bundles/material-expansion-testing.umd.js +0 -627
- package/bundles/material-expansion-testing.umd.js.map +0 -1
- package/bundles/material-expansion.umd.js +0 -949
- package/bundles/material-expansion.umd.js.map +0 -1
- package/bundles/material-form-field-testing-control.umd.js +0 -350
- package/bundles/material-form-field-testing-control.umd.js.map +0 -1
- package/bundles/material-form-field-testing.umd.js +0 -708
- package/bundles/material-form-field-testing.umd.js.map +0 -1
- package/bundles/material-form-field.umd.js +0 -1131
- package/bundles/material-form-field.umd.js.map +0 -1
- package/bundles/material-grid-list-testing.umd.js +0 -566
- package/bundles/material-grid-list-testing.umd.js.map +0 -1
- package/bundles/material-grid-list.umd.js +0 -1070
- package/bundles/material-grid-list.umd.js.map +0 -1
- package/bundles/material-icon-testing.umd.js +0 -527
- package/bundles/material-icon-testing.umd.js.map +0 -1
- package/bundles/material-icon.umd.js +0 -1391
- package/bundles/material-icon.umd.js.map +0 -1
- package/bundles/material-input-testing.umd.js +0 -806
- package/bundles/material-input-testing.umd.js.map +0 -1
- package/bundles/material-input.umd.js +0 -875
- package/bundles/material-input.umd.js.map +0 -1
- package/bundles/material-list-testing.umd.js +0 -1092
- package/bundles/material-list-testing.umd.js.map +0 -1
- package/bundles/material-list.umd.js +0 -1284
- package/bundles/material-list.umd.js.map +0 -1
- package/bundles/material-menu-testing.umd.js +0 -722
- package/bundles/material-menu-testing.umd.js.map +0 -1
- package/bundles/material-menu.umd.js +0 -1661
- package/bundles/material-menu.umd.js.map +0 -1
- package/bundles/material-paginator-testing.umd.js +0 -504
- package/bundles/material-paginator-testing.umd.js.map +0 -1
- package/bundles/material-paginator.umd.js +0 -746
- package/bundles/material-paginator.umd.js.map +0 -1
- package/bundles/material-progress-bar-testing.umd.js +0 -395
- package/bundles/material-progress-bar-testing.umd.js.map +0 -1
- package/bundles/material-progress-bar.umd.js +0 -546
- package/bundles/material-progress-bar.umd.js.map +0 -1
- package/bundles/material-progress-spinner-testing.umd.js +0 -399
- package/bundles/material-progress-spinner-testing.umd.js.map +0 -1
- package/bundles/material-progress-spinner.umd.js +0 -631
- package/bundles/material-progress-spinner.umd.js.map +0 -1
- package/bundles/material-radio-testing.umd.js +0 -812
- package/bundles/material-radio-testing.umd.js.map +0 -1
- package/bundles/material-radio.umd.js +0 -971
- package/bundles/material-radio.umd.js.map +0 -1
- package/bundles/material-select-testing.umd.js +0 -620
- package/bundles/material-select-testing.umd.js.map +0 -1
- package/bundles/material-select.umd.js +0 -1665
- package/bundles/material-select.umd.js.map +0 -1
- package/bundles/material-sidenav-testing.umd.js +0 -603
- package/bundles/material-sidenav-testing.umd.js.map +0 -1
- package/bundles/material-sidenav.umd.js +0 -1368
- package/bundles/material-sidenav.umd.js.map +0 -1
- package/bundles/material-slide-toggle-testing.umd.js +0 -582
- package/bundles/material-slide-toggle-testing.umd.js.map +0 -1
- package/bundles/material-slide-toggle.umd.js +0 -670
- package/bundles/material-slide-toggle.umd.js.map +0 -1
- package/bundles/material-slider-testing.umd.js +0 -587
- package/bundles/material-slider-testing.umd.js.map +0 -1
- package/bundles/material-slider.umd.js +0 -1186
- package/bundles/material-slider.umd.js.map +0 -1
- package/bundles/material-snack-bar-testing.umd.js +0 -554
- package/bundles/material-snack-bar-testing.umd.js.map +0 -1
- package/bundles/material-snack-bar.umd.js +0 -1076
- package/bundles/material-snack-bar.umd.js.map +0 -1
- package/bundles/material-sort-testing.umd.js +0 -493
- package/bundles/material-sort-testing.umd.js.map +0 -1
- package/bundles/material-sort.umd.js +0 -943
- package/bundles/material-sort.umd.js.map +0 -1
- package/bundles/material-stepper-testing.umd.js +0 -703
- package/bundles/material-stepper-testing.umd.js.map +0 -1
- package/bundles/material-stepper.umd.js +0 -893
- package/bundles/material-stepper.umd.js.map +0 -1
- package/bundles/material-table-testing.umd.js +0 -700
- package/bundles/material-table-testing.umd.js.map +0 -1
- package/bundles/material-table.umd.js +0 -1121
- package/bundles/material-table.umd.js.map +0 -1
- package/bundles/material-tabs-testing.umd.js +0 -744
- package/bundles/material-tabs-testing.umd.js.map +0 -1
- package/bundles/material-tabs.umd.js +0 -2169
- package/bundles/material-tabs.umd.js.map +0 -1
- package/bundles/material-toolbar-testing.umd.js +0 -406
- package/bundles/material-toolbar-testing.umd.js.map +0 -1
- package/bundles/material-toolbar.umd.js +0 -454
- package/bundles/material-toolbar.umd.js.map +0 -1
- package/bundles/material-tooltip-testing.umd.js +0 -460
- package/bundles/material-tooltip-testing.umd.js.map +0 -1
- package/bundles/material-tooltip.umd.js +0 -1170
- package/bundles/material-tooltip.umd.js.map +0 -1
- package/bundles/material-tree-testing.umd.js +0 -636
- package/bundles/material-tree-testing.umd.js.map +0 -1
- package/bundles/material-tree.umd.js +0 -837
- package/bundles/material-tree.umd.js.map +0 -1
- package/bundles/material.umd.js +0 -26
- package/bundles/material.umd.js.map +0 -1
- package/button/index.metadata.json +0 -1
- package/button-toggle/index.metadata.json +0 -1
- package/card/index.metadata.json +0 -1
- package/checkbox/index.metadata.json +0 -1
- package/chips/index.metadata.json +0 -1
- package/core/index.metadata.json +0 -1
- package/datepicker/index.metadata.json +0 -1
- package/dialog/index.metadata.json +0 -1
- package/divider/index.metadata.json +0 -1
- package/esm2015/autocomplete/autocomplete-module.js +0 -38
- package/esm2015/autocomplete/autocomplete-origin.js +0 -35
- package/esm2015/autocomplete/autocomplete-trigger.js +0 -627
- package/esm2015/autocomplete/autocomplete.externs.js +0 -6
- package/esm2015/autocomplete/autocomplete.js +0 -202
- package/esm2015/autocomplete/testing/autocomplete-harness.js +0 -120
- package/esm2015/autocomplete/testing/testing.externs.js +0 -0
- package/esm2015/badge/badge-module.js +0 -24
- package/esm2015/badge/badge.externs.js +0 -6
- package/esm2015/badge/badge.js +0 -230
- package/esm2015/badge/testing/badge-harness.js +0 -85
- package/esm2015/badge/testing/testing.externs.js +0 -0
- package/esm2015/bottom-sheet/bottom-sheet-container.js +0 -253
- package/esm2015/bottom-sheet/bottom-sheet-module.js +0 -27
- package/esm2015/bottom-sheet/bottom-sheet-ref.js +0 -91
- package/esm2015/bottom-sheet/bottom-sheet.externs.js +0 -6
- package/esm2015/bottom-sheet/bottom-sheet.js +0 -167
- package/esm2015/bottom-sheet/testing/bottom-sheet-harness.js +0 -40
- package/esm2015/bottom-sheet/testing/testing.externs.js +0 -0
- package/esm2015/button/button-module.js +0 -30
- package/esm2015/button/button.externs.js +0 -6
- package/esm2015/button/button.js +0 -163
- package/esm2015/button/testing/button-harness.js +0 -64
- package/esm2015/button/testing/testing.externs.js +0 -0
- package/esm2015/button-toggle/button-toggle-module.js +0 -20
- package/esm2015/button-toggle/button-toggle.externs.js +0 -6
- package/esm2015/button-toggle/button-toggle.js +0 -441
- package/esm2015/button-toggle/testing/button-toggle-group-harness.js +0 -54
- package/esm2015/button-toggle/testing/button-toggle-harness.js +0 -125
- package/esm2015/button-toggle/testing/testing.externs.js +0 -0
- package/esm2015/card/card-module.js +0 -40
- package/esm2015/card/card.externs.js +0 -6
- package/esm2015/card/card.js +0 -223
- package/esm2015/card/testing/card-harness.js +0 -52
- package/esm2015/card/testing/testing.externs.js +0 -0
- package/esm2015/checkbox/checkbox-module.js +0 -34
- package/esm2015/checkbox/checkbox-required-validator.js +0 -29
- package/esm2015/checkbox/checkbox.externs.js +0 -6
- package/esm2015/checkbox/checkbox.js +0 -385
- package/esm2015/checkbox/testing/checkbox-harness.js +0 -156
- package/esm2015/checkbox/testing/testing.externs.js +0 -0
- package/esm2015/chips/chip-input.js +0 -180
- package/esm2015/chips/chip-list.js +0 -663
- package/esm2015/chips/chip.js +0 -394
- package/esm2015/chips/chips-module.js +0 -43
- package/esm2015/chips/chips.externs.js +0 -6
- package/esm2015/chips/testing/chip-harness.js +0 -110
- package/esm2015/chips/testing/chip-input-harness.js +0 -101
- package/esm2015/chips/testing/chip-list-harness.js +0 -99
- package/esm2015/chips/testing/chip-listbox-harness.js +0 -49
- package/esm2015/chips/testing/chip-option-harness.js +0 -54
- package/esm2015/chips/testing/chip-remove-harness.js +0 -29
- package/esm2015/chips/testing/testing.externs.js +0 -0
- package/esm2015/core/common-behaviors/color.js +0 -31
- package/esm2015/core/common-behaviors/common-module.js +0 -122
- package/esm2015/core/common-behaviors/disable-ripple.js +0 -20
- package/esm2015/core/common-behaviors/disabled.js +0 -19
- package/esm2015/core/common-behaviors/error-state.js +0 -36
- package/esm2015/core/common-behaviors/index.js +0 -15
- package/esm2015/core/common-behaviors/initialized.js +0 -58
- package/esm2015/core/common-behaviors/tabindex.js +0 -23
- package/esm2015/core/core.externs.js +0 -6
- package/esm2015/core/datetime/index.js +0 -38
- package/esm2015/core/datetime/native-date-adapter.js +0 -213
- package/esm2015/core/error/error-options.js +0 -29
- package/esm2015/core/index.js +0 -6
- package/esm2015/core/line/line.js +0 -57
- package/esm2015/core/option/index.js +0 -27
- package/esm2015/core/option/optgroup.js +0 -84
- package/esm2015/core/option/option.js +0 -274
- package/esm2015/core/ripple/index.js +0 -24
- package/esm2015/core/ripple/ripple-renderer.js +0 -261
- package/esm2015/core/ripple/ripple.js +0 -128
- package/esm2015/core/selection/index.js +0 -21
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -55
- package/esm2015/core/testing/optgroup-harness.js +0 -51
- package/esm2015/core/testing/option-harness.js +0 -67
- package/esm2015/core/testing/testing.externs.js +0 -0
- package/esm2015/core/version.js +0 -11
- package/esm2015/datepicker/calendar-body.js +0 -291
- package/esm2015/datepicker/calendar.js +0 -330
- package/esm2015/datepicker/date-range-input-parts.js +0 -315
- package/esm2015/datepicker/date-range-input.js +0 -316
- package/esm2015/datepicker/date-range-picker.js +0 -40
- package/esm2015/datepicker/date-range-selection-strategy.js +0 -58
- package/esm2015/datepicker/date-selection-model.js +0 -189
- package/esm2015/datepicker/datepicker-actions.js +0 -89
- package/esm2015/datepicker/datepicker-base.js +0 -542
- package/esm2015/datepicker/datepicker-input-base.js +0 -290
- package/esm2015/datepicker/datepicker-input.js +0 -164
- package/esm2015/datepicker/datepicker-intl.js +0 -51
- package/esm2015/datepicker/datepicker-module.js +0 -93
- package/esm2015/datepicker/datepicker-toggle.js +0 -104
- package/esm2015/datepicker/datepicker.externs.js +0 -6
- package/esm2015/datepicker/datepicker.js +0 -30
- package/esm2015/datepicker/index.js +0 -9
- package/esm2015/datepicker/month-view.js +0 -344
- package/esm2015/datepicker/multi-year-view.js +0 -280
- package/esm2015/datepicker/testing/calendar-cell-harness.js +0 -181
- package/esm2015/datepicker/testing/calendar-harness.js +0 -91
- package/esm2015/datepicker/testing/date-range-input-harness.js +0 -116
- package/esm2015/datepicker/testing/datepicker-input-harness-base.js +0 -102
- package/esm2015/datepicker/testing/datepicker-input-harness.js +0 -69
- package/esm2015/datepicker/testing/datepicker-toggle-harness.js +0 -48
- package/esm2015/datepicker/testing/datepicker-trigger-harness-base.js +0 -77
- package/esm2015/datepicker/testing/testing.externs.js +0 -0
- package/esm2015/datepicker/year-view.js +0 -268
- package/esm2015/dialog/dialog-container.js +0 -295
- package/esm2015/dialog/dialog-content-directives.js +0 -159
- package/esm2015/dialog/dialog-module.js +0 -46
- package/esm2015/dialog/dialog-ref.js +0 -196
- package/esm2015/dialog/dialog.externs.js +0 -6
- package/esm2015/dialog/dialog.js +0 -353
- package/esm2015/dialog/testing/dialog-harness.js +0 -103
- package/esm2015/dialog/testing/testing.externs.js +0 -0
- package/esm2015/divider/divider-module.js +0 -20
- package/esm2015/divider/divider.externs.js +0 -6
- package/esm2015/divider/divider.js +0 -43
- package/esm2015/divider/testing/divider-harness.js +0 -27
- package/esm2015/divider/testing/testing.externs.js +0 -0
- package/esm2015/expansion/accordion.js +0 -83
- package/esm2015/expansion/expansion-module.js +0 -42
- package/esm2015/expansion/expansion-panel-content.js +0 -26
- package/esm2015/expansion/expansion-panel-header.js +0 -214
- package/esm2015/expansion/expansion-panel.js +0 -186
- package/esm2015/expansion/expansion.externs.js +0 -6
- package/esm2015/expansion/testing/accordion-harness.js +0 -36
- package/esm2015/expansion/testing/expansion-harness.js +0 -149
- package/esm2015/expansion/testing/testing.externs.js +0 -0
- package/esm2015/form-field/error.js +0 -45
- package/esm2015/form-field/form-field-control.js +0 -15
- package/esm2015/form-field/form-field-module.js +0 -49
- package/esm2015/form-field/form-field.externs.js +0 -6
- package/esm2015/form-field/form-field.js +0 -482
- package/esm2015/form-field/hint.js +0 -45
- package/esm2015/form-field/label.js +0 -17
- package/esm2015/form-field/placeholder.js +0 -22
- package/esm2015/form-field/prefix.js +0 -24
- package/esm2015/form-field/suffix.js +0 -24
- package/esm2015/form-field/testing/control/control.externs.js +0 -0
- package/esm2015/form-field/testing/form-field-harness.js +0 -218
- package/esm2015/form-field/testing/testing.externs.js +0 -0
- package/esm2015/grid-list/grid-list-module.js +0 -37
- package/esm2015/grid-list/grid-list.externs.js +0 -6
- package/esm2015/grid-list/grid-list.js +0 -135
- package/esm2015/grid-list/grid-tile.js +0 -116
- package/esm2015/grid-list/index.js +0 -6
- package/esm2015/grid-list/testing/grid-list-harness.js +0 -79
- package/esm2015/grid-list/testing/grid-tile-harness.js +0 -80
- package/esm2015/grid-list/testing/testing.externs.js +0 -0
- package/esm2015/icon/icon-module.js +0 -20
- package/esm2015/icon/icon-registry.js +0 -581
- package/esm2015/icon/icon.externs.js +0 -6
- package/esm2015/icon/icon.js +0 -362
- package/esm2015/icon/testing/fake-icon-registry.js +0 -85
- package/esm2015/icon/testing/icon-harness.js +0 -63
- package/esm2015/icon/testing/testing.externs.js +0 -6
- package/esm2015/icon/trusted-types.js +0 -44
- package/esm2015/input/autosize.js +0 -44
- package/esm2015/input/input-module.js +0 -35
- package/esm2015/input/input.externs.js +0 -6
- package/esm2015/input/input.js +0 -395
- package/esm2015/input/public-api.js +0 -13
- package/esm2015/input/testing/input-harness.js +0 -138
- package/esm2015/input/testing/native-option-harness.js +0 -51
- package/esm2015/input/testing/native-select-harness.js +0 -100
- package/esm2015/input/testing/testing.externs.js +0 -0
- package/esm2015/list/list-module.js +0 -45
- package/esm2015/list/list.externs.js +0 -6
- package/esm2015/list/list.js +0 -218
- package/esm2015/list/selection-list.js +0 -608
- package/esm2015/list/testing/action-list-harness.js +0 -68
- package/esm2015/list/testing/list-harness-base.js +0 -97
- package/esm2015/list/testing/list-item-harness-base.js +0 -85
- package/esm2015/list/testing/nav-list-harness.js +0 -75
- package/esm2015/list/testing/selection-list-harness.js +0 -152
- package/esm2015/list/testing/testing.externs.js +0 -0
- package/esm2015/material.externs.js +0 -0
- package/esm2015/menu/index.js +0 -7
- package/esm2015/menu/menu-content.js +0 -92
- package/esm2015/menu/menu-item.js +0 -164
- package/esm2015/menu/menu-module.js +0 -49
- package/esm2015/menu/menu-trigger.js +0 -493
- package/esm2015/menu/menu.externs.js +0 -6
- package/esm2015/menu/menu.js +0 -381
- package/esm2015/menu/public-api.js +0 -16
- package/esm2015/menu/testing/menu-harness.js +0 -223
- package/esm2015/menu/testing/testing.externs.js +0 -0
- package/esm2015/paginator/paginator-intl.js +0 -62
- package/esm2015/paginator/paginator-module.js +0 -32
- package/esm2015/paginator/paginator.externs.js +0 -6
- package/esm2015/paginator/paginator.js +0 -263
- package/esm2015/paginator/testing/paginator-harness.js +0 -106
- package/esm2015/paginator/testing/testing.externs.js +0 -0
- package/esm2015/progress-bar/progress-bar-module.js +0 -21
- package/esm2015/progress-bar/progress-bar.externs.js +0 -6
- package/esm2015/progress-bar/progress-bar.js +0 -179
- package/esm2015/progress-bar/testing/progress-bar-harness.js +0 -39
- package/esm2015/progress-bar/testing/testing.externs.js +0 -0
- package/esm2015/progress-spinner/progress-spinner-module.js +0 -28
- package/esm2015/progress-spinner/progress-spinner.externs.js +0 -6
- package/esm2015/progress-spinner/progress-spinner.js +0 -274
- package/esm2015/progress-spinner/testing/progress-spinner-harness.js +0 -40
- package/esm2015/progress-spinner/testing/testing.externs.js +0 -0
- package/esm2015/radio/radio-module.js +0 -20
- package/esm2015/radio/radio.externs.js +0 -6
- package/esm2015/radio/radio.js +0 -546
- package/esm2015/radio/testing/radio-harness.js +0 -272
- package/esm2015/radio/testing/testing.externs.js +0 -0
- package/esm2015/select/select-module.js +0 -37
- package/esm2015/select/select.externs.js +0 -6
- package/esm2015/select/select.js +0 -1138
- package/esm2015/select/testing/select-harness.js +0 -157
- package/esm2015/select/testing/testing.externs.js +0 -0
- package/esm2015/sidenav/drawer.js +0 -766
- package/esm2015/sidenav/index.js +0 -6
- package/esm2015/sidenav/sidenav-module.js +0 -45
- package/esm2015/sidenav/sidenav.externs.js +0 -6
- package/esm2015/sidenav/sidenav.js +0 -118
- package/esm2015/sidenav/testing/drawer-container-harness.js +0 -41
- package/esm2015/sidenav/testing/drawer-harness.js +0 -57
- package/esm2015/sidenav/testing/sidenav-container-harness.js +0 -41
- package/esm2015/sidenav/testing/sidenav-harness.js +0 -32
- package/esm2015/sidenav/testing/testing.externs.js +0 -0
- package/esm2015/slide-toggle/slide-toggle-module.js +0 -40
- package/esm2015/slide-toggle/slide-toggle-required-validator.js +0 -32
- package/esm2015/slide-toggle/slide-toggle.externs.js +0 -6
- package/esm2015/slide-toggle/slide-toggle.js +0 -236
- package/esm2015/slide-toggle/testing/slide-toggle-harness.js +0 -139
- package/esm2015/slide-toggle/testing/testing.externs.js +0 -0
- package/esm2015/slider/slider-module.js +0 -21
- package/esm2015/slider/slider.externs.js +0 -6
- package/esm2015/slider/slider.js +0 -788
- package/esm2015/slider/testing/slider-harness.js +0 -141
- package/esm2015/slider/testing/testing.externs.js +0 -0
- package/esm2015/snack-bar/simple-snack-bar.js +0 -45
- package/esm2015/snack-bar/snack-bar-container.js +0 -224
- package/esm2015/snack-bar/snack-bar-module.js +0 -32
- package/esm2015/snack-bar/snack-bar-ref.js +0 -90
- package/esm2015/snack-bar/snack-bar.externs.js +0 -6
- package/esm2015/snack-bar/snack-bar.js +0 -265
- package/esm2015/snack-bar/testing/snack-bar-harness.js +0 -142
- package/esm2015/snack-bar/testing/testing.externs.js +0 -0
- package/esm2015/sort/sort-header-intl.js +0 -41
- package/esm2015/sort/sort-header.js +0 -268
- package/esm2015/sort/sort-module.js +0 -24
- package/esm2015/sort/sort.externs.js +0 -6
- package/esm2015/sort/sort.js +0 -140
- package/esm2015/sort/testing/sort-harness.js +0 -41
- package/esm2015/sort/testing/sort-header-harness.js +0 -67
- package/esm2015/sort/testing/testing.externs.js +0 -0
- package/esm2015/stepper/step-content.js +0 -25
- package/esm2015/stepper/step-header.js +0 -108
- package/esm2015/stepper/step-label.js +0 -17
- package/esm2015/stepper/stepper-button.js +0 -36
- package/esm2015/stepper/stepper-icon.js +0 -28
- package/esm2015/stepper/stepper-intl.js +0 -37
- package/esm2015/stepper/stepper-module.js +0 -61
- package/esm2015/stepper/stepper.externs.js +0 -6
- package/esm2015/stepper/stepper.js +0 -187
- package/esm2015/stepper/testing/step-harness.js +0 -111
- package/esm2015/stepper/testing/stepper-button-harnesses.js +0 -55
- package/esm2015/stepper/testing/stepper-harness.js +0 -57
- package/esm2015/stepper/testing/testing.externs.js +0 -0
- package/esm2015/table/cell.js +0 -114
- package/esm2015/table/row.js +0 -116
- package/esm2015/table/table-data-source.js +0 -312
- package/esm2015/table/table-module.js +0 -50
- package/esm2015/table/table.externs.js +0 -6
- package/esm2015/table/table.js +0 -63
- package/esm2015/table/testing/cell-harness.js +0 -77
- package/esm2015/table/testing/row-harness.js +0 -91
- package/esm2015/table/testing/table-harness.js +0 -99
- package/esm2015/table/testing/testing.externs.js +0 -0
- package/esm2015/table/text-column.js +0 -44
- package/esm2015/tabs/index.js +0 -9
- package/esm2015/tabs/ink-bar.js +0 -87
- package/esm2015/tabs/paginated-tab-header.js +0 -477
- package/esm2015/tabs/public-api.js +0 -20
- package/esm2015/tabs/tab-body.js +0 -212
- package/esm2015/tabs/tab-content.js +0 -31
- package/esm2015/tabs/tab-group.js +0 -357
- package/esm2015/tabs/tab-header.js +0 -94
- package/esm2015/tabs/tab-label-wrapper.js +0 -47
- package/esm2015/tabs/tab-label.js +0 -25
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -241
- package/esm2015/tabs/tab.js +0 -106
- package/esm2015/tabs/tabs-module.js +0 -60
- package/esm2015/tabs/tabs.externs.js +0 -6
- package/esm2015/tabs/testing/tab-group-harness.js +0 -65
- package/esm2015/tabs/testing/tab-harness.js +0 -85
- package/esm2015/tabs/testing/tab-link-harness.js +0 -51
- package/esm2015/tabs/testing/tab-nav-bar-harness.js +0 -61
- package/esm2015/tabs/testing/testing.externs.js +0 -0
- package/esm2015/toolbar/testing/testing.externs.js +0 -0
- package/esm2015/toolbar/testing/toolbar-harness.js +0 -47
- package/esm2015/toolbar/toolbar-module.js +0 -20
- package/esm2015/toolbar/toolbar.externs.js +0 -6
- package/esm2015/toolbar/toolbar.js +0 -91
- package/esm2015/tooltip/testing/testing.externs.js +0 -0
- package/esm2015/tooltip/testing/tooltip-harness.js +0 -68
- package/esm2015/tooltip/tooltip-module.js +0 -31
- package/esm2015/tooltip/tooltip.externs.js +0 -6
- package/esm2015/tooltip/tooltip.js +0 -737
- package/esm2015/tree/node.js +0 -131
- package/esm2015/tree/outlet.js +0 -33
- package/esm2015/tree/padding.js +0 -31
- package/esm2015/tree/testing/node-harness.js +0 -84
- package/esm2015/tree/testing/testing.externs.js +0 -0
- package/esm2015/tree/testing/tree-harness.js +0 -129
- package/esm2015/tree/toggle.js +0 -32
- package/esm2015/tree/tree-module.js +0 -34
- package/esm2015/tree/tree.externs.js +0 -6
- package/esm2015/tree/tree.js +0 -43
- package/expansion/index.metadata.json +0 -1
- package/fesm2015/autocomplete/testing.js +0 -147
- package/fesm2015/autocomplete/testing.js.map +0 -1
- package/fesm2015/autocomplete.js +0 -901
- package/fesm2015/autocomplete.js.map +0 -1
- package/fesm2015/badge/testing.js +0 -112
- package/fesm2015/badge/testing.js.map +0 -1
- package/fesm2015/badge.js +0 -265
- package/fesm2015/badge.js.map +0 -1
- package/fesm2015/bottom-sheet/testing.js +0 -67
- package/fesm2015/bottom-sheet/testing.js.map +0 -1
- package/fesm2015/bottom-sheet.js +0 -603
- package/fesm2015/bottom-sheet.js.map +0 -1
- package/fesm2015/button/testing.js +0 -91
- package/fesm2015/button/testing.js.map +0 -1
- package/fesm2015/button-toggle/testing.js +0 -211
- package/fesm2015/button-toggle/testing.js.map +0 -1
- package/fesm2015/button-toggle.js +0 -473
- package/fesm2015/button-toggle.js.map +0 -1
- package/fesm2015/button.js +0 -205
- package/fesm2015/button.js.map +0 -1
- package/fesm2015/card/testing.js +0 -79
- package/fesm2015/card/testing.js.map +0 -1
- package/fesm2015/card.js +0 -276
- package/fesm2015/card.js.map +0 -1
- package/fesm2015/checkbox/testing.js +0 -183
- package/fesm2015/checkbox/testing.js.map +0 -1
- package/fesm2015/checkbox.js +0 -476
- package/fesm2015/checkbox.js.map +0 -1
- package/fesm2015/chips/testing.js +0 -465
- package/fesm2015/chips/testing.js.map +0 -1
- package/fesm2015/chips.js +0 -1286
- package/fesm2015/chips.js.map +0 -1
- package/fesm2015/core/testing.js +0 -150
- package/fesm2015/core/testing.js.map +0 -1
- package/fesm2015/core.js +0 -1692
- package/fesm2015/core.js.map +0 -1
- package/fesm2015/datepicker/testing.js +0 -692
- package/fesm2015/datepicker/testing.js.map +0 -1
- package/fesm2015/datepicker.js +0 -3745
- package/fesm2015/datepicker.js.map +0 -1
- package/fesm2015/dialog/testing.js +0 -130
- package/fesm2015/dialog/testing.js.map +0 -1
- package/fesm2015/dialog.js +0 -1127
- package/fesm2015/dialog.js.map +0 -1
- package/fesm2015/divider/testing.js +0 -54
- package/fesm2015/divider/testing.js.map +0 -1
- package/fesm2015/divider.js +0 -76
- package/fesm2015/divider.js.map +0 -1
- package/fesm2015/expansion/testing.js +0 -209
- package/fesm2015/expansion/testing.js.map +0 -1
- package/fesm2015/expansion.js +0 -600
- package/fesm2015/expansion.js.map +0 -1
- package/fesm2015/form-field/testing/control.js +0 -26
- package/fesm2015/form-field/testing/control.js.map +0 -1
- package/fesm2015/form-field/testing.js +0 -246
- package/fesm2015/form-field/testing.js.map +0 -1
- package/fesm2015/form-field.js +0 -757
- package/fesm2015/form-field.js.map +0 -1
- package/fesm2015/grid-list/testing.js +0 -183
- package/fesm2015/grid-list/testing.js.map +0 -1
- package/fesm2015/grid-list.js +0 -680
- package/fesm2015/grid-list.js.map +0 -1
- package/fesm2015/icon/testing.js +0 -171
- package/fesm2015/icon/testing.js.map +0 -1
- package/fesm2015/icon.js +0 -1012
- package/fesm2015/icon.js.map +0 -1
- package/fesm2015/input/testing.js +0 -318
- package/fesm2015/input/testing.js.map +0 -1
- package/fesm2015/input.js +0 -506
- package/fesm2015/input.js.map +0 -1
- package/fesm2015/list/testing.js +0 -529
- package/fesm2015/list/testing.js.map +0 -1
- package/fesm2015/list.js +0 -876
- package/fesm2015/list.js.map +0 -1
- package/fesm2015/material.js +0 -16
- package/fesm2015/material.js.map +0 -1
- package/fesm2015/menu/testing.js +0 -250
- package/fesm2015/menu/testing.js.map +0 -1
- package/fesm2015/menu.js +0 -1292
- package/fesm2015/menu.js.map +0 -1
- package/fesm2015/paginator/testing.js +0 -133
- package/fesm2015/paginator/testing.js.map +0 -1
- package/fesm2015/paginator.js +0 -366
- package/fesm2015/paginator.js.map +0 -1
- package/fesm2015/progress-bar/testing.js +0 -66
- package/fesm2015/progress-bar/testing.js.map +0 -1
- package/fesm2015/progress-bar.js +0 -211
- package/fesm2015/progress-bar.js.map +0 -1
- package/fesm2015/progress-spinner/testing.js +0 -67
- package/fesm2015/progress-spinner/testing.js.map +0 -1
- package/fesm2015/progress-spinner.js +0 -313
- package/fesm2015/progress-spinner.js.map +0 -1
- package/fesm2015/radio/testing.js +0 -299
- package/fesm2015/radio/testing.js.map +0 -1
- package/fesm2015/radio.js +0 -578
- package/fesm2015/radio.js.map +0 -1
- package/fesm2015/select/testing.js +0 -184
- package/fesm2015/select/testing.js.map +0 -1
- package/fesm2015/select.js +0 -1269
- package/fesm2015/select.js.map +0 -1
- package/fesm2015/sidenav/testing.js +0 -231
- package/fesm2015/sidenav/testing.js.map +0 -1
- package/fesm2015/sidenav.js +0 -965
- package/fesm2015/sidenav.js.map +0 -1
- package/fesm2015/slide-toggle/testing.js +0 -166
- package/fesm2015/slide-toggle/testing.js.map +0 -1
- package/fesm2015/slide-toggle.js +0 -329
- package/fesm2015/slide-toggle.js.map +0 -1
- package/fesm2015/slider/testing.js +0 -160
- package/fesm2015/slider/testing.js.map +0 -1
- package/fesm2015/slider.js +0 -820
- package/fesm2015/slider.js.map +0 -1
- package/fesm2015/snack-bar/testing.js +0 -169
- package/fesm2015/snack-bar/testing.js.map +0 -1
- package/fesm2015/snack-bar.js +0 -713
- package/fesm2015/snack-bar.js.map +0 -1
- package/fesm2015/sort/testing.js +0 -124
- package/fesm2015/sort/testing.js.map +0 -1
- package/fesm2015/sort.js +0 -587
- package/fesm2015/sort.js.map +0 -1
- package/fesm2015/stepper/testing.js +0 -237
- package/fesm2015/stepper/testing.js.map +0 -1
- package/fesm2015/stepper.js +0 -519
- package/fesm2015/stepper.js.map +0 -1
- package/fesm2015/table/testing.js +0 -280
- package/fesm2015/table/testing.js.map +0 -1
- package/fesm2015/table.js +0 -701
- package/fesm2015/table.js.map +0 -1
- package/fesm2015/tabs/testing.js +0 -273
- package/fesm2015/tabs/testing.js.map +0 -1
- package/fesm2015/tabs.js +0 -1746
- package/fesm2015/tabs.js.map +0 -1
- package/fesm2015/toolbar/testing.js +0 -74
- package/fesm2015/toolbar/testing.js.map +0 -1
- package/fesm2015/toolbar.js +0 -123
- package/fesm2015/toolbar.js.map +0 -1
- package/fesm2015/tooltip/testing.js +0 -95
- package/fesm2015/tooltip/testing.js.map +0 -1
- package/fesm2015/tooltip.js +0 -802
- package/fesm2015/tooltip.js.map +0 -1
- package/fesm2015/tree/testing.js +0 -237
- package/fesm2015/tree/testing.js.map +0 -1
- package/fesm2015/tree.js +0 -479
- package/fesm2015/tree.js.map +0 -1
- package/form-field/index.metadata.json +0 -1
- package/grid-list/index.metadata.json +0 -1
- package/icon/index.metadata.json +0 -1
- package/icon/testing/index.metadata.json +0 -1
- package/input/autosize.d.ts +0 -23
- package/input/index.metadata.json +0 -1
- package/list/index.metadata.json +0 -1
- package/menu/index.metadata.json +0 -1
- package/paginator/index.metadata.json +0 -1
- package/progress-bar/index.metadata.json +0 -1
- package/progress-spinner/index.metadata.json +0 -1
- package/radio/index.metadata.json +0 -1
- package/select/index.metadata.json +0 -1
- package/sidenav/index.metadata.json +0 -1
- package/slide-toggle/index.metadata.json +0 -1
- package/slider/index.metadata.json +0 -1
- package/snack-bar/index.metadata.json +0 -1
- package/sort/index.metadata.json +0 -1
- package/stepper/index.metadata.json +0 -1
- package/table/index.metadata.json +0 -1
- package/tabs/index.metadata.json +0 -1
- package/toolbar/index.metadata.json +0 -1
- package/tooltip/index.metadata.json +0 -1
- package/tree/index.metadata.json +0 -1
|
@@ -0,0 +1,1846 @@
|
|
|
1
|
+
import * as i7 from '@angular/cdk/a11y';
|
|
2
|
+
import { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';
|
|
3
|
+
import * as i5 from '@angular/cdk/observers';
|
|
4
|
+
import { ObserversModule } from '@angular/cdk/observers';
|
|
5
|
+
import * as i7$1 from '@angular/cdk/portal';
|
|
6
|
+
import { CdkPortal, TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
7
|
+
import * as i3$1 from '@angular/common';
|
|
8
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
9
|
+
import * as i0 from '@angular/core';
|
|
10
|
+
import { InjectionToken, Directive, Inject, Optional, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChild, ViewChild, Input, forwardRef, EventEmitter, Output, ContentChildren, QueryList, Attribute, NgModule } from '@angular/core';
|
|
11
|
+
import * as i4 from '@angular/material/core';
|
|
12
|
+
import { mixinDisabled, mixinColor, mixinDisableRipple, mixinTabIndex, MAT_RIPPLE_GLOBAL_OPTIONS, RippleRenderer, MatCommonModule, MatRippleModule } from '@angular/material/core';
|
|
13
|
+
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
14
|
+
import { Subject, Subscription, fromEvent, of, merge, timer } from 'rxjs';
|
|
15
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
16
|
+
import { startWith, distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
17
|
+
import * as i1 from '@angular/cdk/bidi';
|
|
18
|
+
import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
19
|
+
import { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';
|
|
20
|
+
import * as i3 from '@angular/cdk/platform';
|
|
21
|
+
import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
|
|
22
|
+
import * as i1$1 from '@angular/cdk/scrolling';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright Google LLC All Rights Reserved.
|
|
27
|
+
*
|
|
28
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
29
|
+
* found in the LICENSE file at https://angular.io/license
|
|
30
|
+
*/
|
|
31
|
+
/** Injection token for the MatInkBar's Positioner. */
|
|
32
|
+
const _MAT_INK_BAR_POSITIONER = new InjectionToken('MatInkBarPositioner', {
|
|
33
|
+
providedIn: 'root',
|
|
34
|
+
factory: _MAT_INK_BAR_POSITIONER_FACTORY
|
|
35
|
+
});
|
|
36
|
+
/**
|
|
37
|
+
* The default positioner function for the MatInkBar.
|
|
38
|
+
* @docs-private
|
|
39
|
+
*/
|
|
40
|
+
function _MAT_INK_BAR_POSITIONER_FACTORY() {
|
|
41
|
+
const method = (element) => ({
|
|
42
|
+
left: element ? (element.offsetLeft || 0) + 'px' : '0',
|
|
43
|
+
width: element ? (element.offsetWidth || 0) + 'px' : '0',
|
|
44
|
+
});
|
|
45
|
+
return method;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The ink-bar is used to display and animate the line underneath the current active tab label.
|
|
49
|
+
* @docs-private
|
|
50
|
+
*/
|
|
51
|
+
class MatInkBar {
|
|
52
|
+
constructor(_elementRef, _ngZone, _inkBarPositioner, _animationMode) {
|
|
53
|
+
this._elementRef = _elementRef;
|
|
54
|
+
this._ngZone = _ngZone;
|
|
55
|
+
this._inkBarPositioner = _inkBarPositioner;
|
|
56
|
+
this._animationMode = _animationMode;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Calculates the styles from the provided element in order to align the ink-bar to that element.
|
|
60
|
+
* Shows the ink bar if previously set as hidden.
|
|
61
|
+
* @param element
|
|
62
|
+
*/
|
|
63
|
+
alignToElement(element) {
|
|
64
|
+
this.show();
|
|
65
|
+
if (typeof requestAnimationFrame !== 'undefined') {
|
|
66
|
+
this._ngZone.runOutsideAngular(() => {
|
|
67
|
+
requestAnimationFrame(() => this._setStyles(element));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this._setStyles(element);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/** Shows the ink bar. */
|
|
75
|
+
show() {
|
|
76
|
+
this._elementRef.nativeElement.style.visibility = 'visible';
|
|
77
|
+
}
|
|
78
|
+
/** Hides the ink bar. */
|
|
79
|
+
hide() {
|
|
80
|
+
this._elementRef.nativeElement.style.visibility = 'hidden';
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Sets the proper styles to the ink bar element.
|
|
84
|
+
* @param element
|
|
85
|
+
*/
|
|
86
|
+
_setStyles(element) {
|
|
87
|
+
const positions = this._inkBarPositioner(element);
|
|
88
|
+
const inkBar = this._elementRef.nativeElement;
|
|
89
|
+
inkBar.style.left = positions.left;
|
|
90
|
+
inkBar.style.width = positions.width;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
MatInkBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatInkBar, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: _MAT_INK_BAR_POSITIONER }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
94
|
+
MatInkBar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatInkBar, selector: "mat-ink-bar", host: { properties: { "class._mat-animation-noopable": "_animationMode === 'NoopAnimations'" }, classAttribute: "mat-ink-bar" }, ngImport: i0 });
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatInkBar, decorators: [{
|
|
96
|
+
type: Directive,
|
|
97
|
+
args: [{
|
|
98
|
+
selector: 'mat-ink-bar',
|
|
99
|
+
host: {
|
|
100
|
+
'class': 'mat-ink-bar',
|
|
101
|
+
'[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,
|
|
102
|
+
},
|
|
103
|
+
}]
|
|
104
|
+
}], ctorParameters: function () {
|
|
105
|
+
return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
106
|
+
type: Inject,
|
|
107
|
+
args: [_MAT_INK_BAR_POSITIONER]
|
|
108
|
+
}] }, { type: undefined, decorators: [{
|
|
109
|
+
type: Optional
|
|
110
|
+
}, {
|
|
111
|
+
type: Inject,
|
|
112
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
113
|
+
}] }];
|
|
114
|
+
} });
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @license
|
|
118
|
+
* Copyright Google LLC All Rights Reserved.
|
|
119
|
+
*
|
|
120
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
121
|
+
* found in the LICENSE file at https://angular.io/license
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* Injection token that can be used to reference instances of `MatTabContent`. It serves as
|
|
125
|
+
* alternative token to the actual `MatTabContent` class which could cause unnecessary
|
|
126
|
+
* retention of the class and its directive metadata.
|
|
127
|
+
*/
|
|
128
|
+
const MAT_TAB_CONTENT = new InjectionToken('MatTabContent');
|
|
129
|
+
/** Decorates the `ng-template` tags and reads out the template from it. */
|
|
130
|
+
class MatTabContent {
|
|
131
|
+
constructor(
|
|
132
|
+
/** Content for the tab. */ template) {
|
|
133
|
+
this.template = template;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
MatTabContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
137
|
+
MatTabContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabContent, selector: "[matTabContent]", providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }], ngImport: i0 });
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabContent, decorators: [{
|
|
139
|
+
type: Directive,
|
|
140
|
+
args: [{
|
|
141
|
+
selector: '[matTabContent]',
|
|
142
|
+
providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],
|
|
143
|
+
}]
|
|
144
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @license
|
|
148
|
+
* Copyright Google LLC All Rights Reserved.
|
|
149
|
+
*
|
|
150
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
151
|
+
* found in the LICENSE file at https://angular.io/license
|
|
152
|
+
*/
|
|
153
|
+
/**
|
|
154
|
+
* Injection token that can be used to reference instances of `MatTabLabel`. It serves as
|
|
155
|
+
* alternative token to the actual `MatTabLabel` class which could cause unnecessary
|
|
156
|
+
* retention of the class and its directive metadata.
|
|
157
|
+
*/
|
|
158
|
+
const MAT_TAB_LABEL = new InjectionToken('MatTabLabel');
|
|
159
|
+
/**
|
|
160
|
+
* Used to provide a tab label to a tab without causing a circular dependency.
|
|
161
|
+
* @docs-private
|
|
162
|
+
*/
|
|
163
|
+
const MAT_TAB = new InjectionToken('MAT_TAB');
|
|
164
|
+
/** Used to flag tab labels for use with the portal directive */
|
|
165
|
+
class MatTabLabel extends CdkPortal {
|
|
166
|
+
constructor(templateRef, viewContainerRef, _closestTab) {
|
|
167
|
+
super(templateRef, viewContainerRef);
|
|
168
|
+
this._closestTab = _closestTab;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
MatTabLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabLabel, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: MAT_TAB, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
172
|
+
MatTabLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabLabel, selector: "[mat-tab-label], [matTabLabel]", providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }], usesInheritance: true, ngImport: i0 });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabLabel, decorators: [{
|
|
174
|
+
type: Directive,
|
|
175
|
+
args: [{
|
|
176
|
+
selector: '[mat-tab-label], [matTabLabel]',
|
|
177
|
+
providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }],
|
|
178
|
+
}]
|
|
179
|
+
}], ctorParameters: function () {
|
|
180
|
+
return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
181
|
+
type: Inject,
|
|
182
|
+
args: [MAT_TAB]
|
|
183
|
+
}, {
|
|
184
|
+
type: Optional
|
|
185
|
+
}] }];
|
|
186
|
+
} });
|
|
187
|
+
|
|
188
|
+
// Boilerplate for applying mixins to MatTab.
|
|
189
|
+
/** @docs-private */
|
|
190
|
+
const _MatTabBase = mixinDisabled(class {
|
|
191
|
+
});
|
|
192
|
+
/**
|
|
193
|
+
* Used to provide a tab group to a tab without causing a circular dependency.
|
|
194
|
+
* @docs-private
|
|
195
|
+
*/
|
|
196
|
+
const MAT_TAB_GROUP = new InjectionToken('MAT_TAB_GROUP');
|
|
197
|
+
class MatTab extends _MatTabBase {
|
|
198
|
+
constructor(_viewContainerRef, _closestTabGroup) {
|
|
199
|
+
super();
|
|
200
|
+
this._viewContainerRef = _viewContainerRef;
|
|
201
|
+
this._closestTabGroup = _closestTabGroup;
|
|
202
|
+
/** Plain text label for the tab, used when there is no template label. */
|
|
203
|
+
this.textLabel = '';
|
|
204
|
+
/** Portal that will be the hosted content of the tab */
|
|
205
|
+
this._contentPortal = null;
|
|
206
|
+
/** Emits whenever the internal state of the tab changes. */
|
|
207
|
+
this._stateChanges = new Subject();
|
|
208
|
+
/**
|
|
209
|
+
* The relatively indexed position where 0 represents the center, negative is left, and positive
|
|
210
|
+
* represents the right.
|
|
211
|
+
*/
|
|
212
|
+
this.position = null;
|
|
213
|
+
/**
|
|
214
|
+
* The initial relatively index origin of the tab if it was created and selected after there
|
|
215
|
+
* was already a selected tab. Provides context of what position the tab should originate from.
|
|
216
|
+
*/
|
|
217
|
+
this.origin = null;
|
|
218
|
+
/**
|
|
219
|
+
* Whether the tab is currently active.
|
|
220
|
+
*/
|
|
221
|
+
this.isActive = false;
|
|
222
|
+
}
|
|
223
|
+
/** Content for the tab label given by `<ng-template mat-tab-label>`. */
|
|
224
|
+
get templateLabel() { return this._templateLabel; }
|
|
225
|
+
set templateLabel(value) { this._setTemplateLabelInput(value); }
|
|
226
|
+
/** @docs-private */
|
|
227
|
+
get content() {
|
|
228
|
+
return this._contentPortal;
|
|
229
|
+
}
|
|
230
|
+
ngOnChanges(changes) {
|
|
231
|
+
if (changes.hasOwnProperty('textLabel') || changes.hasOwnProperty('disabled')) {
|
|
232
|
+
this._stateChanges.next();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
ngOnDestroy() {
|
|
236
|
+
this._stateChanges.complete();
|
|
237
|
+
}
|
|
238
|
+
ngOnInit() {
|
|
239
|
+
this._contentPortal = new TemplatePortal(this._explicitContent || this._implicitContent, this._viewContainerRef);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* This has been extracted to a util because of TS 4 and VE.
|
|
243
|
+
* View Engine doesn't support property rename inheritance.
|
|
244
|
+
* TS 4.0 doesn't allow properties to override accessors or vice-versa.
|
|
245
|
+
* @docs-private
|
|
246
|
+
*/
|
|
247
|
+
_setTemplateLabelInput(value) {
|
|
248
|
+
// Only update the label if the query managed to find one. This works around an issue where a
|
|
249
|
+
// user may have manually set `templateLabel` during creation mode, which would then get
|
|
250
|
+
// clobbered by `undefined` when the query resolves. Also note that we check that the closest
|
|
251
|
+
// tab matches the current one so that we don't pick up labels from nested tabs.
|
|
252
|
+
if (value && value._closestTab === this) {
|
|
253
|
+
this._templateLabel = value;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
MatTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTab, deps: [{ token: i0.ViewContainerRef }, { token: MAT_TAB_GROUP, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
+
MatTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTab, selector: "mat-tab", inputs: { disabled: "disabled", textLabel: ["label", "textLabel"], ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"] }, providers: [{ provide: MAT_TAB, useExisting: MatTab }], queries: [{ propertyName: "templateLabel", first: true, predicate: MAT_TAB_LABEL, descendants: true }, { propertyName: "_explicitContent", first: true, predicate: MAT_TAB_CONTENT, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "_implicitContent", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: ["matTab"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n tab-group. -->\n<ng-template><ng-content></ng-content></ng-template>\n", changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTab, decorators: [{
|
|
260
|
+
type: Component,
|
|
261
|
+
args: [{ selector: 'mat-tab', inputs: ['disabled'], changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, exportAs: 'matTab', providers: [{ provide: MAT_TAB, useExisting: MatTab }], template: "<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n tab-group. -->\n<ng-template><ng-content></ng-content></ng-template>\n" }]
|
|
262
|
+
}], ctorParameters: function () {
|
|
263
|
+
return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
264
|
+
type: Inject,
|
|
265
|
+
args: [MAT_TAB_GROUP]
|
|
266
|
+
}, {
|
|
267
|
+
type: Optional
|
|
268
|
+
}] }];
|
|
269
|
+
}, propDecorators: { templateLabel: [{
|
|
270
|
+
type: ContentChild,
|
|
271
|
+
args: [MAT_TAB_LABEL]
|
|
272
|
+
}], _explicitContent: [{
|
|
273
|
+
type: ContentChild,
|
|
274
|
+
args: [MAT_TAB_CONTENT, { read: TemplateRef, static: true }]
|
|
275
|
+
}], _implicitContent: [{
|
|
276
|
+
type: ViewChild,
|
|
277
|
+
args: [TemplateRef, { static: true }]
|
|
278
|
+
}], textLabel: [{
|
|
279
|
+
type: Input,
|
|
280
|
+
args: ['label']
|
|
281
|
+
}], ariaLabel: [{
|
|
282
|
+
type: Input,
|
|
283
|
+
args: ['aria-label']
|
|
284
|
+
}], ariaLabelledby: [{
|
|
285
|
+
type: Input,
|
|
286
|
+
args: ['aria-labelledby']
|
|
287
|
+
}] } });
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @license
|
|
291
|
+
* Copyright Google LLC All Rights Reserved.
|
|
292
|
+
*
|
|
293
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
294
|
+
* found in the LICENSE file at https://angular.io/license
|
|
295
|
+
*/
|
|
296
|
+
/**
|
|
297
|
+
* Animations used by the Material tabs.
|
|
298
|
+
* @docs-private
|
|
299
|
+
*/
|
|
300
|
+
const matTabsAnimations = {
|
|
301
|
+
/** Animation translates a tab along the X axis. */
|
|
302
|
+
translateTab: trigger('translateTab', [
|
|
303
|
+
// Note: transitions to `none` instead of 0, because some browsers might blur the content.
|
|
304
|
+
state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),
|
|
305
|
+
// If the tab is either on the left or right, we additionally add a `min-height` of 1px
|
|
306
|
+
// in order to ensure that the element has a height before its state changes. This is
|
|
307
|
+
// necessary because Chrome does seem to skip the transition in RTL mode if the element does
|
|
308
|
+
// not have a static height and is not rendered. See related issue: #9465
|
|
309
|
+
state('left', style({ transform: 'translate3d(-100%, 0, 0)', minHeight: '1px' })),
|
|
310
|
+
state('right', style({ transform: 'translate3d(100%, 0, 0)', minHeight: '1px' })),
|
|
311
|
+
transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),
|
|
312
|
+
transition('void => left-origin-center', [
|
|
313
|
+
style({ transform: 'translate3d(-100%, 0, 0)' }),
|
|
314
|
+
animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
|
|
315
|
+
]),
|
|
316
|
+
transition('void => right-origin-center', [
|
|
317
|
+
style({ transform: 'translate3d(100%, 0, 0)' }),
|
|
318
|
+
animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
|
|
319
|
+
])
|
|
320
|
+
])
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @license
|
|
325
|
+
* Copyright Google LLC All Rights Reserved.
|
|
326
|
+
*
|
|
327
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
328
|
+
* found in the LICENSE file at https://angular.io/license
|
|
329
|
+
*/
|
|
330
|
+
/**
|
|
331
|
+
* The portal host directive for the contents of the tab.
|
|
332
|
+
* @docs-private
|
|
333
|
+
*/
|
|
334
|
+
class MatTabBodyPortal extends CdkPortalOutlet {
|
|
335
|
+
constructor(componentFactoryResolver, viewContainerRef, _host, _document) {
|
|
336
|
+
super(componentFactoryResolver, viewContainerRef, _document);
|
|
337
|
+
this._host = _host;
|
|
338
|
+
/** Subscription to events for when the tab body begins centering. */
|
|
339
|
+
this._centeringSub = Subscription.EMPTY;
|
|
340
|
+
/** Subscription to events for when the tab body finishes leaving from center position. */
|
|
341
|
+
this._leavingSub = Subscription.EMPTY;
|
|
342
|
+
}
|
|
343
|
+
/** Set initial visibility or set up subscription for changing visibility. */
|
|
344
|
+
ngOnInit() {
|
|
345
|
+
super.ngOnInit();
|
|
346
|
+
this._centeringSub = this._host._beforeCentering
|
|
347
|
+
.pipe(startWith(this._host._isCenterPosition(this._host._position)))
|
|
348
|
+
.subscribe((isCentering) => {
|
|
349
|
+
if (isCentering && !this.hasAttached()) {
|
|
350
|
+
this.attach(this._host._content);
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
this._leavingSub = this._host._afterLeavingCenter.subscribe(() => {
|
|
354
|
+
this.detach();
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
/** Clean up centering subscription. */
|
|
358
|
+
ngOnDestroy() {
|
|
359
|
+
super.ngOnDestroy();
|
|
360
|
+
this._centeringSub.unsubscribe();
|
|
361
|
+
this._leavingSub.unsubscribe();
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
MatTabBodyPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabBodyPortal, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: forwardRef(() => MatTabBody) }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
365
|
+
MatTabBodyPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabBodyPortal, selector: "[matTabBodyHost]", usesInheritance: true, ngImport: i0 });
|
|
366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabBodyPortal, decorators: [{
|
|
367
|
+
type: Directive,
|
|
368
|
+
args: [{
|
|
369
|
+
selector: '[matTabBodyHost]'
|
|
370
|
+
}]
|
|
371
|
+
}], ctorParameters: function () {
|
|
372
|
+
return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: MatTabBody, decorators: [{
|
|
373
|
+
type: Inject,
|
|
374
|
+
args: [forwardRef(() => MatTabBody)]
|
|
375
|
+
}] }, { type: undefined, decorators: [{
|
|
376
|
+
type: Inject,
|
|
377
|
+
args: [DOCUMENT]
|
|
378
|
+
}] }];
|
|
379
|
+
} });
|
|
380
|
+
/**
|
|
381
|
+
* Base class with all of the `MatTabBody` functionality.
|
|
382
|
+
* @docs-private
|
|
383
|
+
*/
|
|
384
|
+
class _MatTabBodyBase {
|
|
385
|
+
constructor(_elementRef, _dir, changeDetectorRef) {
|
|
386
|
+
this._elementRef = _elementRef;
|
|
387
|
+
this._dir = _dir;
|
|
388
|
+
/** Subscription to the directionality change observable. */
|
|
389
|
+
this._dirChangeSubscription = Subscription.EMPTY;
|
|
390
|
+
/** Emits when an animation on the tab is complete. */
|
|
391
|
+
this._translateTabComplete = new Subject();
|
|
392
|
+
/** Event emitted when the tab begins to animate towards the center as the active tab. */
|
|
393
|
+
this._onCentering = new EventEmitter();
|
|
394
|
+
/** Event emitted before the centering of the tab begins. */
|
|
395
|
+
this._beforeCentering = new EventEmitter();
|
|
396
|
+
/** Event emitted before the centering of the tab begins. */
|
|
397
|
+
this._afterLeavingCenter = new EventEmitter();
|
|
398
|
+
/** Event emitted when the tab completes its animation towards the center. */
|
|
399
|
+
this._onCentered = new EventEmitter(true);
|
|
400
|
+
// Note that the default value will always be overwritten by `MatTabBody`, but we need one
|
|
401
|
+
// anyway to prevent the animations module from throwing an error if the body is used on its own.
|
|
402
|
+
/** Duration for the tab's animation. */
|
|
403
|
+
this.animationDuration = '500ms';
|
|
404
|
+
if (_dir) {
|
|
405
|
+
this._dirChangeSubscription = _dir.change.subscribe((dir) => {
|
|
406
|
+
this._computePositionAnimationState(dir);
|
|
407
|
+
changeDetectorRef.markForCheck();
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
// Ensure that we get unique animation events, because the `.done` callback can get
|
|
411
|
+
// invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.
|
|
412
|
+
this._translateTabComplete.pipe(distinctUntilChanged((x, y) => {
|
|
413
|
+
return x.fromState === y.fromState && x.toState === y.toState;
|
|
414
|
+
})).subscribe(event => {
|
|
415
|
+
// If the transition to the center is complete, emit an event.
|
|
416
|
+
if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {
|
|
417
|
+
this._onCentered.emit();
|
|
418
|
+
}
|
|
419
|
+
if (this._isCenterPosition(event.fromState) && !this._isCenterPosition(this._position)) {
|
|
420
|
+
this._afterLeavingCenter.emit();
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/** The shifted index position of the tab body, where zero represents the active center tab. */
|
|
425
|
+
set position(position) {
|
|
426
|
+
this._positionIndex = position;
|
|
427
|
+
this._computePositionAnimationState();
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* After initialized, check if the content is centered and has an origin. If so, set the
|
|
431
|
+
* special position states that transition the tab from the left or right before centering.
|
|
432
|
+
*/
|
|
433
|
+
ngOnInit() {
|
|
434
|
+
if (this._position == 'center' && this.origin != null) {
|
|
435
|
+
this._position = this._computePositionFromOrigin(this.origin);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
ngOnDestroy() {
|
|
439
|
+
this._dirChangeSubscription.unsubscribe();
|
|
440
|
+
this._translateTabComplete.complete();
|
|
441
|
+
}
|
|
442
|
+
_onTranslateTabStarted(event) {
|
|
443
|
+
const isCentering = this._isCenterPosition(event.toState);
|
|
444
|
+
this._beforeCentering.emit(isCentering);
|
|
445
|
+
if (isCentering) {
|
|
446
|
+
this._onCentering.emit(this._elementRef.nativeElement.clientHeight);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
/** The text direction of the containing app. */
|
|
450
|
+
_getLayoutDirection() {
|
|
451
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
452
|
+
}
|
|
453
|
+
/** Whether the provided position state is considered center, regardless of origin. */
|
|
454
|
+
_isCenterPosition(position) {
|
|
455
|
+
return position == 'center' ||
|
|
456
|
+
position == 'left-origin-center' ||
|
|
457
|
+
position == 'right-origin-center';
|
|
458
|
+
}
|
|
459
|
+
/** Computes the position state that will be used for the tab-body animation trigger. */
|
|
460
|
+
_computePositionAnimationState(dir = this._getLayoutDirection()) {
|
|
461
|
+
if (this._positionIndex < 0) {
|
|
462
|
+
this._position = dir == 'ltr' ? 'left' : 'right';
|
|
463
|
+
}
|
|
464
|
+
else if (this._positionIndex > 0) {
|
|
465
|
+
this._position = dir == 'ltr' ? 'right' : 'left';
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
this._position = 'center';
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Computes the position state based on the specified origin position. This is used if the
|
|
473
|
+
* tab is becoming visible immediately after creation.
|
|
474
|
+
*/
|
|
475
|
+
_computePositionFromOrigin(origin) {
|
|
476
|
+
const dir = this._getLayoutDirection();
|
|
477
|
+
if ((dir == 'ltr' && origin <= 0) || (dir == 'rtl' && origin > 0)) {
|
|
478
|
+
return 'left-origin-center';
|
|
479
|
+
}
|
|
480
|
+
return 'right-origin-center';
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
_MatTabBodyBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabBodyBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
484
|
+
_MatTabBodyBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatTabBodyBase, inputs: { _content: ["content", "_content"], origin: "origin", animationDuration: "animationDuration", position: "position" }, outputs: { _onCentering: "_onCentering", _beforeCentering: "_beforeCentering", _afterLeavingCenter: "_afterLeavingCenter", _onCentered: "_onCentered" }, ngImport: i0 });
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabBodyBase, decorators: [{
|
|
486
|
+
type: Directive
|
|
487
|
+
}], ctorParameters: function () {
|
|
488
|
+
return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{
|
|
489
|
+
type: Optional
|
|
490
|
+
}] }, { type: i0.ChangeDetectorRef }];
|
|
491
|
+
}, propDecorators: { _onCentering: [{
|
|
492
|
+
type: Output
|
|
493
|
+
}], _beforeCentering: [{
|
|
494
|
+
type: Output
|
|
495
|
+
}], _afterLeavingCenter: [{
|
|
496
|
+
type: Output
|
|
497
|
+
}], _onCentered: [{
|
|
498
|
+
type: Output
|
|
499
|
+
}], _content: [{
|
|
500
|
+
type: Input,
|
|
501
|
+
args: ['content']
|
|
502
|
+
}], origin: [{
|
|
503
|
+
type: Input
|
|
504
|
+
}], animationDuration: [{
|
|
505
|
+
type: Input
|
|
506
|
+
}], position: [{
|
|
507
|
+
type: Input
|
|
508
|
+
}] } });
|
|
509
|
+
/**
|
|
510
|
+
* Wrapper for the contents of a tab.
|
|
511
|
+
* @docs-private
|
|
512
|
+
*/
|
|
513
|
+
class MatTabBody extends _MatTabBodyBase {
|
|
514
|
+
constructor(elementRef, dir, changeDetectorRef) {
|
|
515
|
+
super(elementRef, dir, changeDetectorRef);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
MatTabBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabBody, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
519
|
+
MatTabBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabBody, selector: "mat-tab-body", host: { classAttribute: "mat-tab-body" }, viewQueries: [{ propertyName: "_portalHost", first: true, predicate: CdkPortalOutlet, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"mat-tab-body-content\" #content\n [@translateTab]=\"{\n value: _position,\n params: {animationDuration: animationDuration}\n }\"\n (@translateTab.start)=\"_onTranslateTabStarted($event)\"\n (@translateTab.done)=\"_translateTabComplete.next($event)\"\n cdkScrollable>\n <ng-template matTabBodyHost></ng-template>\n</div>\n", styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"], directives: [{ type: MatTabBodyPortal, selector: "[matTabBodyHost]" }], animations: [matTabsAnimations.translateTab], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabBody, decorators: [{
|
|
521
|
+
type: Component,
|
|
522
|
+
args: [{ selector: 'mat-tab-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matTabsAnimations.translateTab], host: {
|
|
523
|
+
'class': 'mat-tab-body',
|
|
524
|
+
}, template: "<div class=\"mat-tab-body-content\" #content\n [@translateTab]=\"{\n value: _position,\n params: {animationDuration: animationDuration}\n }\"\n (@translateTab.start)=\"_onTranslateTabStarted($event)\"\n (@translateTab.done)=\"_translateTabComplete.next($event)\"\n cdkScrollable>\n <ng-template matTabBodyHost></ng-template>\n</div>\n", styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"] }]
|
|
525
|
+
}], ctorParameters: function () {
|
|
526
|
+
return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{
|
|
527
|
+
type: Optional
|
|
528
|
+
}] }, { type: i0.ChangeDetectorRef }];
|
|
529
|
+
}, propDecorators: { _portalHost: [{
|
|
530
|
+
type: ViewChild,
|
|
531
|
+
args: [CdkPortalOutlet]
|
|
532
|
+
}] } });
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* @license
|
|
536
|
+
* Copyright Google LLC All Rights Reserved.
|
|
537
|
+
*
|
|
538
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
539
|
+
* found in the LICENSE file at https://angular.io/license
|
|
540
|
+
*/
|
|
541
|
+
/** Injection token that can be used to provide the default options the tabs module. */
|
|
542
|
+
const MAT_TABS_CONFIG = new InjectionToken('MAT_TABS_CONFIG');
|
|
543
|
+
|
|
544
|
+
// Boilerplate for applying mixins to MatTabLabelWrapper.
|
|
545
|
+
/** @docs-private */
|
|
546
|
+
const _MatTabLabelWrapperBase = mixinDisabled(class {
|
|
547
|
+
});
|
|
548
|
+
/**
|
|
549
|
+
* Used in the `mat-tab-group` view to display tab labels.
|
|
550
|
+
* @docs-private
|
|
551
|
+
*/
|
|
552
|
+
class MatTabLabelWrapper extends _MatTabLabelWrapperBase {
|
|
553
|
+
constructor(elementRef) {
|
|
554
|
+
super();
|
|
555
|
+
this.elementRef = elementRef;
|
|
556
|
+
}
|
|
557
|
+
/** Sets focus on the wrapper element */
|
|
558
|
+
focus() {
|
|
559
|
+
this.elementRef.nativeElement.focus();
|
|
560
|
+
}
|
|
561
|
+
getOffsetLeft() {
|
|
562
|
+
return this.elementRef.nativeElement.offsetLeft;
|
|
563
|
+
}
|
|
564
|
+
getOffsetWidth() {
|
|
565
|
+
return this.elementRef.nativeElement.offsetWidth;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
MatTabLabelWrapper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabLabelWrapper, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
569
|
+
MatTabLabelWrapper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabLabelWrapper, selector: "[matTabLabelWrapper]", inputs: { disabled: "disabled" }, host: { properties: { "class.mat-tab-disabled": "disabled", "attr.aria-disabled": "!!disabled" } }, usesInheritance: true, ngImport: i0 });
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabLabelWrapper, decorators: [{
|
|
571
|
+
type: Directive,
|
|
572
|
+
args: [{
|
|
573
|
+
selector: '[matTabLabelWrapper]',
|
|
574
|
+
inputs: ['disabled'],
|
|
575
|
+
host: {
|
|
576
|
+
'[class.mat-tab-disabled]': 'disabled',
|
|
577
|
+
'[attr.aria-disabled]': '!!disabled',
|
|
578
|
+
}
|
|
579
|
+
}]
|
|
580
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* @license
|
|
584
|
+
* Copyright Google LLC All Rights Reserved.
|
|
585
|
+
*
|
|
586
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
587
|
+
* found in the LICENSE file at https://angular.io/license
|
|
588
|
+
*/
|
|
589
|
+
/** Config used to bind passive event listeners */
|
|
590
|
+
const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
|
|
591
|
+
/**
|
|
592
|
+
* The distance in pixels that will be overshot when scrolling a tab label into view. This helps
|
|
593
|
+
* provide a small affordance to the label next to it.
|
|
594
|
+
*/
|
|
595
|
+
const EXAGGERATED_OVERSCROLL = 60;
|
|
596
|
+
/**
|
|
597
|
+
* Amount of milliseconds to wait before starting to scroll the header automatically.
|
|
598
|
+
* Set a little conservatively in order to handle fake events dispatched on touch devices.
|
|
599
|
+
*/
|
|
600
|
+
const HEADER_SCROLL_DELAY = 650;
|
|
601
|
+
/**
|
|
602
|
+
* Interval in milliseconds at which to scroll the header
|
|
603
|
+
* while the user is holding their pointer.
|
|
604
|
+
*/
|
|
605
|
+
const HEADER_SCROLL_INTERVAL = 100;
|
|
606
|
+
/**
|
|
607
|
+
* Base class for a tab header that supported pagination.
|
|
608
|
+
* @docs-private
|
|
609
|
+
*/
|
|
610
|
+
class MatPaginatedTabHeader {
|
|
611
|
+
constructor(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform, _animationMode) {
|
|
612
|
+
this._elementRef = _elementRef;
|
|
613
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
614
|
+
this._viewportRuler = _viewportRuler;
|
|
615
|
+
this._dir = _dir;
|
|
616
|
+
this._ngZone = _ngZone;
|
|
617
|
+
this._platform = _platform;
|
|
618
|
+
this._animationMode = _animationMode;
|
|
619
|
+
/** The distance in pixels that the tab labels should be translated to the left. */
|
|
620
|
+
this._scrollDistance = 0;
|
|
621
|
+
/** Whether the header should scroll to the selected index after the view has been checked. */
|
|
622
|
+
this._selectedIndexChanged = false;
|
|
623
|
+
/** Emits when the component is destroyed. */
|
|
624
|
+
this._destroyed = new Subject();
|
|
625
|
+
/** Whether the controls for pagination should be displayed */
|
|
626
|
+
this._showPaginationControls = false;
|
|
627
|
+
/** Whether the tab list can be scrolled more towards the end of the tab label list. */
|
|
628
|
+
this._disableScrollAfter = true;
|
|
629
|
+
/** Whether the tab list can be scrolled more towards the beginning of the tab label list. */
|
|
630
|
+
this._disableScrollBefore = true;
|
|
631
|
+
/** Stream that will stop the automated scrolling. */
|
|
632
|
+
this._stopScrolling = new Subject();
|
|
633
|
+
/**
|
|
634
|
+
* Whether pagination should be disabled. This can be used to avoid unnecessary
|
|
635
|
+
* layout recalculations if it's known that pagination won't be required.
|
|
636
|
+
*/
|
|
637
|
+
this.disablePagination = false;
|
|
638
|
+
this._selectedIndex = 0;
|
|
639
|
+
/** Event emitted when the option is selected. */
|
|
640
|
+
this.selectFocusedIndex = new EventEmitter();
|
|
641
|
+
/** Event emitted when a label is focused. */
|
|
642
|
+
this.indexFocused = new EventEmitter();
|
|
643
|
+
// Bind the `mouseleave` event on the outside since it doesn't change anything in the view.
|
|
644
|
+
_ngZone.runOutsideAngular(() => {
|
|
645
|
+
fromEvent(_elementRef.nativeElement, 'mouseleave')
|
|
646
|
+
.pipe(takeUntil(this._destroyed))
|
|
647
|
+
.subscribe(() => {
|
|
648
|
+
this._stopInterval();
|
|
649
|
+
});
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
/** The index of the active tab. */
|
|
653
|
+
get selectedIndex() { return this._selectedIndex; }
|
|
654
|
+
set selectedIndex(value) {
|
|
655
|
+
value = coerceNumberProperty(value);
|
|
656
|
+
if (this._selectedIndex != value) {
|
|
657
|
+
this._selectedIndexChanged = true;
|
|
658
|
+
this._selectedIndex = value;
|
|
659
|
+
if (this._keyManager) {
|
|
660
|
+
this._keyManager.updateActiveItem(value);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
ngAfterViewInit() {
|
|
665
|
+
// We need to handle these events manually, because we want to bind passive event listeners.
|
|
666
|
+
fromEvent(this._previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)
|
|
667
|
+
.pipe(takeUntil(this._destroyed))
|
|
668
|
+
.subscribe(() => {
|
|
669
|
+
this._handlePaginatorPress('before');
|
|
670
|
+
});
|
|
671
|
+
fromEvent(this._nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)
|
|
672
|
+
.pipe(takeUntil(this._destroyed))
|
|
673
|
+
.subscribe(() => {
|
|
674
|
+
this._handlePaginatorPress('after');
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
ngAfterContentInit() {
|
|
678
|
+
const dirChange = this._dir ? this._dir.change : of('ltr');
|
|
679
|
+
const resize = this._viewportRuler.change(150);
|
|
680
|
+
const realign = () => {
|
|
681
|
+
this.updatePagination();
|
|
682
|
+
this._alignInkBarToSelectedTab();
|
|
683
|
+
};
|
|
684
|
+
this._keyManager = new FocusKeyManager(this._items)
|
|
685
|
+
.withHorizontalOrientation(this._getLayoutDirection())
|
|
686
|
+
.withHomeAndEnd()
|
|
687
|
+
.withWrap();
|
|
688
|
+
this._keyManager.updateActiveItem(this._selectedIndex);
|
|
689
|
+
// Defer the first call in order to allow for slower browsers to lay out the elements.
|
|
690
|
+
// This helps in cases where the user lands directly on a page with paginated tabs.
|
|
691
|
+
typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame(realign) : realign();
|
|
692
|
+
// On dir change or window resize, realign the ink bar and update the orientation of
|
|
693
|
+
// the key manager if the direction has changed.
|
|
694
|
+
merge(dirChange, resize, this._items.changes).pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
695
|
+
// We need to defer this to give the browser some time to recalculate
|
|
696
|
+
// the element dimensions. The call has to be wrapped in `NgZone.run`,
|
|
697
|
+
// because the viewport change handler runs outside of Angular.
|
|
698
|
+
this._ngZone.run(() => Promise.resolve().then(realign));
|
|
699
|
+
this._keyManager.withHorizontalOrientation(this._getLayoutDirection());
|
|
700
|
+
});
|
|
701
|
+
// If there is a change in the focus key manager we need to emit the `indexFocused`
|
|
702
|
+
// event in order to provide a public event that notifies about focus changes. Also we realign
|
|
703
|
+
// the tabs container by scrolling the new focused tab into the visible section.
|
|
704
|
+
this._keyManager.change.pipe(takeUntil(this._destroyed)).subscribe(newFocusIndex => {
|
|
705
|
+
this.indexFocused.emit(newFocusIndex);
|
|
706
|
+
this._setTabFocus(newFocusIndex);
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
ngAfterContentChecked() {
|
|
710
|
+
// If the number of tab labels have changed, check if scrolling should be enabled
|
|
711
|
+
if (this._tabLabelCount != this._items.length) {
|
|
712
|
+
this.updatePagination();
|
|
713
|
+
this._tabLabelCount = this._items.length;
|
|
714
|
+
this._changeDetectorRef.markForCheck();
|
|
715
|
+
}
|
|
716
|
+
// If the selected index has changed, scroll to the label and check if the scrolling controls
|
|
717
|
+
// should be disabled.
|
|
718
|
+
if (this._selectedIndexChanged) {
|
|
719
|
+
this._scrollToLabel(this._selectedIndex);
|
|
720
|
+
this._checkScrollingControls();
|
|
721
|
+
this._alignInkBarToSelectedTab();
|
|
722
|
+
this._selectedIndexChanged = false;
|
|
723
|
+
this._changeDetectorRef.markForCheck();
|
|
724
|
+
}
|
|
725
|
+
// If the scroll distance has been changed (tab selected, focused, scroll controls activated),
|
|
726
|
+
// then translate the header to reflect this.
|
|
727
|
+
if (this._scrollDistanceChanged) {
|
|
728
|
+
this._updateTabScrollPosition();
|
|
729
|
+
this._scrollDistanceChanged = false;
|
|
730
|
+
this._changeDetectorRef.markForCheck();
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
ngOnDestroy() {
|
|
734
|
+
this._destroyed.next();
|
|
735
|
+
this._destroyed.complete();
|
|
736
|
+
this._stopScrolling.complete();
|
|
737
|
+
}
|
|
738
|
+
/** Handles keyboard events on the header. */
|
|
739
|
+
_handleKeydown(event) {
|
|
740
|
+
// We don't handle any key bindings with a modifier key.
|
|
741
|
+
if (hasModifierKey(event)) {
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
switch (event.keyCode) {
|
|
745
|
+
case ENTER:
|
|
746
|
+
case SPACE:
|
|
747
|
+
if (this.focusIndex !== this.selectedIndex) {
|
|
748
|
+
this.selectFocusedIndex.emit(this.focusIndex);
|
|
749
|
+
this._itemSelected(event);
|
|
750
|
+
}
|
|
751
|
+
break;
|
|
752
|
+
default:
|
|
753
|
+
this._keyManager.onKeydown(event);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Callback for when the MutationObserver detects that the content has changed.
|
|
758
|
+
*/
|
|
759
|
+
_onContentChanges() {
|
|
760
|
+
const textContent = this._elementRef.nativeElement.textContent;
|
|
761
|
+
// We need to diff the text content of the header, because the MutationObserver callback
|
|
762
|
+
// will fire even if the text content didn't change which is inefficient and is prone
|
|
763
|
+
// to infinite loops if a poorly constructed expression is passed in (see #14249).
|
|
764
|
+
if (textContent !== this._currentTextContent) {
|
|
765
|
+
this._currentTextContent = textContent || '';
|
|
766
|
+
// The content observer runs outside the `NgZone` by default, which
|
|
767
|
+
// means that we need to bring the callback back in ourselves.
|
|
768
|
+
this._ngZone.run(() => {
|
|
769
|
+
this.updatePagination();
|
|
770
|
+
this._alignInkBarToSelectedTab();
|
|
771
|
+
this._changeDetectorRef.markForCheck();
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Updates the view whether pagination should be enabled or not.
|
|
777
|
+
*
|
|
778
|
+
* WARNING: Calling this method can be very costly in terms of performance. It should be called
|
|
779
|
+
* as infrequently as possible from outside of the Tabs component as it causes a reflow of the
|
|
780
|
+
* page.
|
|
781
|
+
*/
|
|
782
|
+
updatePagination() {
|
|
783
|
+
this._checkPaginationEnabled();
|
|
784
|
+
this._checkScrollingControls();
|
|
785
|
+
this._updateTabScrollPosition();
|
|
786
|
+
}
|
|
787
|
+
/** Tracks which element has focus; used for keyboard navigation */
|
|
788
|
+
get focusIndex() {
|
|
789
|
+
return this._keyManager ? this._keyManager.activeItemIndex : 0;
|
|
790
|
+
}
|
|
791
|
+
/** When the focus index is set, we must manually send focus to the correct label */
|
|
792
|
+
set focusIndex(value) {
|
|
793
|
+
if (!this._isValidIndex(value) || this.focusIndex === value || !this._keyManager) {
|
|
794
|
+
return;
|
|
795
|
+
}
|
|
796
|
+
this._keyManager.setActiveItem(value);
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
|
|
800
|
+
* providing a valid index and return true.
|
|
801
|
+
*/
|
|
802
|
+
_isValidIndex(index) {
|
|
803
|
+
if (!this._items) {
|
|
804
|
+
return true;
|
|
805
|
+
}
|
|
806
|
+
const tab = this._items ? this._items.toArray()[index] : null;
|
|
807
|
+
return !!tab && !tab.disabled;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Sets focus on the HTML element for the label wrapper and scrolls it into the view if
|
|
811
|
+
* scrolling is enabled.
|
|
812
|
+
*/
|
|
813
|
+
_setTabFocus(tabIndex) {
|
|
814
|
+
if (this._showPaginationControls) {
|
|
815
|
+
this._scrollToLabel(tabIndex);
|
|
816
|
+
}
|
|
817
|
+
if (this._items && this._items.length) {
|
|
818
|
+
this._items.toArray()[tabIndex].focus();
|
|
819
|
+
// Do not let the browser manage scrolling to focus the element, this will be handled
|
|
820
|
+
// by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width
|
|
821
|
+
// should be the full width minus the offset width.
|
|
822
|
+
const containerEl = this._tabListContainer.nativeElement;
|
|
823
|
+
const dir = this._getLayoutDirection();
|
|
824
|
+
if (dir == 'ltr') {
|
|
825
|
+
containerEl.scrollLeft = 0;
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
/** The layout direction of the containing app. */
|
|
833
|
+
_getLayoutDirection() {
|
|
834
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
835
|
+
}
|
|
836
|
+
/** Performs the CSS transformation on the tab list that will cause the list to scroll. */
|
|
837
|
+
_updateTabScrollPosition() {
|
|
838
|
+
if (this.disablePagination) {
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
const scrollDistance = this.scrollDistance;
|
|
842
|
+
const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
|
|
843
|
+
// Don't use `translate3d` here because we don't want to create a new layer. A new layer
|
|
844
|
+
// seems to cause flickering and overflow in Internet Explorer. For example, the ink bar
|
|
845
|
+
// and ripples will exceed the boundaries of the visible tab bar.
|
|
846
|
+
// See: https://github.com/angular/components/issues/10276
|
|
847
|
+
// We round the `transform` here, because transforms with sub-pixel precision cause some
|
|
848
|
+
// browsers to blur the content of the element.
|
|
849
|
+
this._tabList.nativeElement.style.transform = `translateX(${Math.round(translateX)}px)`;
|
|
850
|
+
// Setting the `transform` on IE will change the scroll offset of the parent, causing the
|
|
851
|
+
// position to be thrown off in some cases. We have to reset it ourselves to ensure that
|
|
852
|
+
// it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing
|
|
853
|
+
// with the scroll position throws off Chrome 71+ in RTL mode (see #14689).
|
|
854
|
+
if (this._platform.TRIDENT || this._platform.EDGE) {
|
|
855
|
+
this._tabListContainer.nativeElement.scrollLeft = 0;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
/** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
|
|
859
|
+
get scrollDistance() { return this._scrollDistance; }
|
|
860
|
+
set scrollDistance(value) {
|
|
861
|
+
this._scrollTo(value);
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
|
|
865
|
+
* the end of the list, respectively). The distance to scroll is computed to be a third of the
|
|
866
|
+
* length of the tab list view window.
|
|
867
|
+
*
|
|
868
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
869
|
+
* should be called sparingly.
|
|
870
|
+
*/
|
|
871
|
+
_scrollHeader(direction) {
|
|
872
|
+
const viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
873
|
+
// Move the scroll distance one-third the length of the tab list's viewport.
|
|
874
|
+
const scrollAmount = (direction == 'before' ? -1 : 1) * viewLength / 3;
|
|
875
|
+
return this._scrollTo(this._scrollDistance + scrollAmount);
|
|
876
|
+
}
|
|
877
|
+
/** Handles click events on the pagination arrows. */
|
|
878
|
+
_handlePaginatorClick(direction) {
|
|
879
|
+
this._stopInterval();
|
|
880
|
+
this._scrollHeader(direction);
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Moves the tab list such that the desired tab label (marked by index) is moved into view.
|
|
884
|
+
*
|
|
885
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
886
|
+
* should be called sparingly.
|
|
887
|
+
*/
|
|
888
|
+
_scrollToLabel(labelIndex) {
|
|
889
|
+
if (this.disablePagination) {
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
const selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;
|
|
893
|
+
if (!selectedLabel) {
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
// The view length is the visible width of the tab labels.
|
|
897
|
+
const viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
898
|
+
const { offsetLeft, offsetWidth } = selectedLabel.elementRef.nativeElement;
|
|
899
|
+
let labelBeforePos, labelAfterPos;
|
|
900
|
+
if (this._getLayoutDirection() == 'ltr') {
|
|
901
|
+
labelBeforePos = offsetLeft;
|
|
902
|
+
labelAfterPos = labelBeforePos + offsetWidth;
|
|
903
|
+
}
|
|
904
|
+
else {
|
|
905
|
+
labelAfterPos = this._tabList.nativeElement.offsetWidth - offsetLeft;
|
|
906
|
+
labelBeforePos = labelAfterPos - offsetWidth;
|
|
907
|
+
}
|
|
908
|
+
const beforeVisiblePos = this.scrollDistance;
|
|
909
|
+
const afterVisiblePos = this.scrollDistance + viewLength;
|
|
910
|
+
if (labelBeforePos < beforeVisiblePos) {
|
|
911
|
+
// Scroll header to move label to the before direction
|
|
912
|
+
this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
|
|
913
|
+
}
|
|
914
|
+
else if (labelAfterPos > afterVisiblePos) {
|
|
915
|
+
// Scroll header to move label to the after direction
|
|
916
|
+
this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Evaluate whether the pagination controls should be displayed. If the scroll width of the
|
|
921
|
+
* tab list is wider than the size of the header container, then the pagination controls should
|
|
922
|
+
* be shown.
|
|
923
|
+
*
|
|
924
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
925
|
+
* should be called sparingly.
|
|
926
|
+
*/
|
|
927
|
+
_checkPaginationEnabled() {
|
|
928
|
+
if (this.disablePagination) {
|
|
929
|
+
this._showPaginationControls = false;
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
const isEnabled = this._tabList.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;
|
|
933
|
+
if (!isEnabled) {
|
|
934
|
+
this.scrollDistance = 0;
|
|
935
|
+
}
|
|
936
|
+
if (isEnabled !== this._showPaginationControls) {
|
|
937
|
+
this._changeDetectorRef.markForCheck();
|
|
938
|
+
}
|
|
939
|
+
this._showPaginationControls = isEnabled;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* Evaluate whether the before and after controls should be enabled or disabled.
|
|
944
|
+
* If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
|
|
945
|
+
* before button. If the header is at the end of the list (scroll distance is equal to the
|
|
946
|
+
* maximum distance we can scroll), then disable the after button.
|
|
947
|
+
*
|
|
948
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
949
|
+
* should be called sparingly.
|
|
950
|
+
*/
|
|
951
|
+
_checkScrollingControls() {
|
|
952
|
+
if (this.disablePagination) {
|
|
953
|
+
this._disableScrollAfter = this._disableScrollBefore = true;
|
|
954
|
+
}
|
|
955
|
+
else {
|
|
956
|
+
// Check if the pagination arrows should be activated.
|
|
957
|
+
this._disableScrollBefore = this.scrollDistance == 0;
|
|
958
|
+
this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();
|
|
959
|
+
this._changeDetectorRef.markForCheck();
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Determines what is the maximum length in pixels that can be set for the scroll distance. This
|
|
964
|
+
* is equal to the difference in width between the tab list container and tab header container.
|
|
965
|
+
*
|
|
966
|
+
* This is an expensive call that forces a layout reflow to compute box and scroll metrics and
|
|
967
|
+
* should be called sparingly.
|
|
968
|
+
*/
|
|
969
|
+
_getMaxScrollDistance() {
|
|
970
|
+
const lengthOfTabList = this._tabList.nativeElement.scrollWidth;
|
|
971
|
+
const viewLength = this._tabListContainer.nativeElement.offsetWidth;
|
|
972
|
+
return (lengthOfTabList - viewLength) || 0;
|
|
973
|
+
}
|
|
974
|
+
/** Tells the ink-bar to align itself to the current label wrapper */
|
|
975
|
+
_alignInkBarToSelectedTab() {
|
|
976
|
+
const selectedItem = this._items && this._items.length ?
|
|
977
|
+
this._items.toArray()[this.selectedIndex] : null;
|
|
978
|
+
const selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;
|
|
979
|
+
if (selectedLabelWrapper) {
|
|
980
|
+
this._inkBar.alignToElement(selectedLabelWrapper);
|
|
981
|
+
}
|
|
982
|
+
else {
|
|
983
|
+
this._inkBar.hide();
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
/** Stops the currently-running paginator interval. */
|
|
987
|
+
_stopInterval() {
|
|
988
|
+
this._stopScrolling.next();
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Handles the user pressing down on one of the paginators.
|
|
992
|
+
* Starts scrolling the header after a certain amount of time.
|
|
993
|
+
* @param direction In which direction the paginator should be scrolled.
|
|
994
|
+
*/
|
|
995
|
+
_handlePaginatorPress(direction, mouseEvent) {
|
|
996
|
+
// Don't start auto scrolling for right mouse button clicks. Note that we shouldn't have to
|
|
997
|
+
// null check the `button`, but we do it so we don't break tests that use fake events.
|
|
998
|
+
if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {
|
|
999
|
+
return;
|
|
1000
|
+
}
|
|
1001
|
+
// Avoid overlapping timers.
|
|
1002
|
+
this._stopInterval();
|
|
1003
|
+
// Start a timer after the delay and keep firing based on the interval.
|
|
1004
|
+
timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL)
|
|
1005
|
+
// Keep the timer going until something tells it to stop or the component is destroyed.
|
|
1006
|
+
.pipe(takeUntil(merge(this._stopScrolling, this._destroyed)))
|
|
1007
|
+
.subscribe(() => {
|
|
1008
|
+
const { maxScrollDistance, distance } = this._scrollHeader(direction);
|
|
1009
|
+
// Stop the timer if we've reached the start or the end.
|
|
1010
|
+
if (distance === 0 || distance >= maxScrollDistance) {
|
|
1011
|
+
this._stopInterval();
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Scrolls the header to a given position.
|
|
1017
|
+
* @param position Position to which to scroll.
|
|
1018
|
+
* @returns Information on the current scroll distance and the maximum.
|
|
1019
|
+
*/
|
|
1020
|
+
_scrollTo(position) {
|
|
1021
|
+
if (this.disablePagination) {
|
|
1022
|
+
return { maxScrollDistance: 0, distance: 0 };
|
|
1023
|
+
}
|
|
1024
|
+
const maxScrollDistance = this._getMaxScrollDistance();
|
|
1025
|
+
this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));
|
|
1026
|
+
// Mark that the scroll distance has changed so that after the view is checked, the CSS
|
|
1027
|
+
// transformation can move the header.
|
|
1028
|
+
this._scrollDistanceChanged = true;
|
|
1029
|
+
this._checkScrollingControls();
|
|
1030
|
+
return { maxScrollDistance, distance: this._scrollDistance };
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
MatPaginatedTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatPaginatedTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1034
|
+
MatPaginatedTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatPaginatedTabHeader, inputs: { disablePagination: "disablePagination" }, ngImport: i0 });
|
|
1035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatPaginatedTabHeader, decorators: [{
|
|
1036
|
+
type: Directive
|
|
1037
|
+
}], ctorParameters: function () {
|
|
1038
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{
|
|
1039
|
+
type: Optional
|
|
1040
|
+
}] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1041
|
+
type: Optional
|
|
1042
|
+
}, {
|
|
1043
|
+
type: Inject,
|
|
1044
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1045
|
+
}] }];
|
|
1046
|
+
}, propDecorators: { disablePagination: [{
|
|
1047
|
+
type: Input
|
|
1048
|
+
}] } });
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Base class with all of the `MatTabHeader` functionality.
|
|
1052
|
+
* @docs-private
|
|
1053
|
+
*/
|
|
1054
|
+
class _MatTabHeaderBase extends MatPaginatedTabHeader {
|
|
1055
|
+
constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
|
|
1056
|
+
super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
|
|
1057
|
+
this._disableRipple = false;
|
|
1058
|
+
}
|
|
1059
|
+
/** Whether the ripple effect is disabled or not. */
|
|
1060
|
+
get disableRipple() { return this._disableRipple; }
|
|
1061
|
+
set disableRipple(value) { this._disableRipple = coerceBooleanProperty(value); }
|
|
1062
|
+
_itemSelected(event) {
|
|
1063
|
+
event.preventDefault();
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
_MatTabHeaderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabHeaderBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1067
|
+
_MatTabHeaderBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatTabHeaderBase, inputs: { disableRipple: "disableRipple" }, usesInheritance: true, ngImport: i0 });
|
|
1068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabHeaderBase, decorators: [{
|
|
1069
|
+
type: Directive
|
|
1070
|
+
}], ctorParameters: function () {
|
|
1071
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{
|
|
1072
|
+
type: Optional
|
|
1073
|
+
}] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1074
|
+
type: Optional
|
|
1075
|
+
}, {
|
|
1076
|
+
type: Inject,
|
|
1077
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1078
|
+
}] }];
|
|
1079
|
+
}, propDecorators: { disableRipple: [{
|
|
1080
|
+
type: Input
|
|
1081
|
+
}] } });
|
|
1082
|
+
/**
|
|
1083
|
+
* The header of the tab group which displays a list of all the tabs in the tab group. Includes
|
|
1084
|
+
* an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
|
|
1085
|
+
* width of the header container, then arrows will be displayed to allow the user to scroll
|
|
1086
|
+
* left and right across the header.
|
|
1087
|
+
* @docs-private
|
|
1088
|
+
*/
|
|
1089
|
+
class MatTabHeader extends _MatTabHeaderBase {
|
|
1090
|
+
constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
|
|
1091
|
+
super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
MatTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1095
|
+
MatTabHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabHeader, selector: "mat-tab-header", inputs: { selectedIndex: "selectedIndex" }, outputs: { selectFocusedIndex: "selectFocusedIndex", indexFocused: "indexFocused" }, host: { properties: { "class.mat-tab-header-pagination-controls-enabled": "_showPaginationControls", "class.mat-tab-header-rtl": "_getLayoutDirection() == 'rtl'" }, classAttribute: "mat-tab-header" }, queries: [{ propertyName: "_items", predicate: MatTabLabelWrapper }], viewQueries: [{ propertyName: "_inkBar", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, static: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, static: true }, { propertyName: "_nextPaginator", first: true, predicate: ["nextPaginator"], descendants: true }, { propertyName: "_previousPaginator", first: true, predicate: ["previousPaginator"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n #tabList\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n role=\"tablist\"\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-labels\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n", styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.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{min-width:72px}}\n"], directives: [{ type: i4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i5.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }, { type: MatInkBar, selector: "mat-ink-bar" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
1096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabHeader, decorators: [{
|
|
1097
|
+
type: Component,
|
|
1098
|
+
args: [{ selector: 'mat-tab-header', inputs: ['selectedIndex'], outputs: ['selectFocusedIndex', 'indexFocused'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, host: {
|
|
1099
|
+
'class': 'mat-tab-header',
|
|
1100
|
+
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1101
|
+
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1102
|
+
}, template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n #tabList\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n role=\"tablist\"\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-labels\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n", styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.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{min-width:72px}}\n"] }]
|
|
1103
|
+
}], ctorParameters: function () {
|
|
1104
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{
|
|
1105
|
+
type: Optional
|
|
1106
|
+
}] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1107
|
+
type: Optional
|
|
1108
|
+
}, {
|
|
1109
|
+
type: Inject,
|
|
1110
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1111
|
+
}] }];
|
|
1112
|
+
}, propDecorators: { _items: [{
|
|
1113
|
+
type: ContentChildren,
|
|
1114
|
+
args: [MatTabLabelWrapper, { descendants: false }]
|
|
1115
|
+
}], _inkBar: [{
|
|
1116
|
+
type: ViewChild,
|
|
1117
|
+
args: [MatInkBar, { static: true }]
|
|
1118
|
+
}], _tabListContainer: [{
|
|
1119
|
+
type: ViewChild,
|
|
1120
|
+
args: ['tabListContainer', { static: true }]
|
|
1121
|
+
}], _tabList: [{
|
|
1122
|
+
type: ViewChild,
|
|
1123
|
+
args: ['tabList', { static: true }]
|
|
1124
|
+
}], _nextPaginator: [{
|
|
1125
|
+
type: ViewChild,
|
|
1126
|
+
args: ['nextPaginator']
|
|
1127
|
+
}], _previousPaginator: [{
|
|
1128
|
+
type: ViewChild,
|
|
1129
|
+
args: ['previousPaginator']
|
|
1130
|
+
}] } });
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* @license
|
|
1134
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1135
|
+
*
|
|
1136
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1137
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1138
|
+
*/
|
|
1139
|
+
/** Used to generate unique ID's for each tab component */
|
|
1140
|
+
let nextId = 0;
|
|
1141
|
+
/** A simple change event emitted on focus or selection changes. */
|
|
1142
|
+
class MatTabChangeEvent {
|
|
1143
|
+
}
|
|
1144
|
+
// Boilerplate for applying mixins to MatTabGroup.
|
|
1145
|
+
/** @docs-private */
|
|
1146
|
+
const _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(class {
|
|
1147
|
+
constructor(_elementRef) {
|
|
1148
|
+
this._elementRef = _elementRef;
|
|
1149
|
+
}
|
|
1150
|
+
}), 'primary');
|
|
1151
|
+
/**
|
|
1152
|
+
* Base class with all of the `MatTabGroupBase` functionality.
|
|
1153
|
+
* @docs-private
|
|
1154
|
+
*/
|
|
1155
|
+
class _MatTabGroupBase extends _MatTabGroupMixinBase {
|
|
1156
|
+
constructor(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {
|
|
1157
|
+
var _a;
|
|
1158
|
+
super(elementRef);
|
|
1159
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1160
|
+
this._animationMode = _animationMode;
|
|
1161
|
+
/** All of the tabs that belong to the group. */
|
|
1162
|
+
this._tabs = new QueryList();
|
|
1163
|
+
/** The tab index that should be selected after the content has been checked. */
|
|
1164
|
+
this._indexToSelect = 0;
|
|
1165
|
+
/** Snapshot of the height of the tab body wrapper before another tab is activated. */
|
|
1166
|
+
this._tabBodyWrapperHeight = 0;
|
|
1167
|
+
/** Subscription to tabs being added/removed. */
|
|
1168
|
+
this._tabsSubscription = Subscription.EMPTY;
|
|
1169
|
+
/** Subscription to changes in the tab labels. */
|
|
1170
|
+
this._tabLabelSubscription = Subscription.EMPTY;
|
|
1171
|
+
this._selectedIndex = null;
|
|
1172
|
+
/** Position of the tab header. */
|
|
1173
|
+
this.headerPosition = 'above';
|
|
1174
|
+
/** Output to enable support for two-way binding on `[(selectedIndex)]` */
|
|
1175
|
+
this.selectedIndexChange = new EventEmitter();
|
|
1176
|
+
/** Event emitted when focus has changed within a tab group. */
|
|
1177
|
+
this.focusChange = new EventEmitter();
|
|
1178
|
+
/** Event emitted when the body animation has completed */
|
|
1179
|
+
this.animationDone = new EventEmitter();
|
|
1180
|
+
/** Event emitted when the tab selection has changed. */
|
|
1181
|
+
this.selectedTabChange = new EventEmitter(true);
|
|
1182
|
+
this._groupId = nextId++;
|
|
1183
|
+
this.animationDuration = defaultConfig && defaultConfig.animationDuration ?
|
|
1184
|
+
defaultConfig.animationDuration : '500ms';
|
|
1185
|
+
this.disablePagination = defaultConfig && defaultConfig.disablePagination != null ?
|
|
1186
|
+
defaultConfig.disablePagination : false;
|
|
1187
|
+
this.dynamicHeight = defaultConfig && defaultConfig.dynamicHeight != null ?
|
|
1188
|
+
defaultConfig.dynamicHeight : false;
|
|
1189
|
+
this.contentTabIndex = (_a = defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.contentTabIndex) !== null && _a !== void 0 ? _a : null;
|
|
1190
|
+
}
|
|
1191
|
+
/** Whether the tab group should grow to the size of the active tab. */
|
|
1192
|
+
get dynamicHeight() { return this._dynamicHeight; }
|
|
1193
|
+
set dynamicHeight(value) { this._dynamicHeight = coerceBooleanProperty(value); }
|
|
1194
|
+
/** The index of the active tab. */
|
|
1195
|
+
get selectedIndex() { return this._selectedIndex; }
|
|
1196
|
+
set selectedIndex(value) {
|
|
1197
|
+
this._indexToSelect = coerceNumberProperty(value, null);
|
|
1198
|
+
}
|
|
1199
|
+
/** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */
|
|
1200
|
+
get animationDuration() { return this._animationDuration; }
|
|
1201
|
+
set animationDuration(value) {
|
|
1202
|
+
this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved
|
|
1206
|
+
* accessibility when the tab does not have focusable elements or if it has scrollable content.
|
|
1207
|
+
* The `tabindex` will be removed automatically for inactive tabs.
|
|
1208
|
+
* Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html
|
|
1209
|
+
*/
|
|
1210
|
+
get contentTabIndex() { return this._contentTabIndex; }
|
|
1211
|
+
set contentTabIndex(value) {
|
|
1212
|
+
this._contentTabIndex = coerceNumberProperty(value, null);
|
|
1213
|
+
}
|
|
1214
|
+
/** Background color of the tab group. */
|
|
1215
|
+
get backgroundColor() { return this._backgroundColor; }
|
|
1216
|
+
set backgroundColor(value) {
|
|
1217
|
+
const nativeElement = this._elementRef.nativeElement;
|
|
1218
|
+
nativeElement.classList.remove(`mat-background-${this.backgroundColor}`);
|
|
1219
|
+
if (value) {
|
|
1220
|
+
nativeElement.classList.add(`mat-background-${value}`);
|
|
1221
|
+
}
|
|
1222
|
+
this._backgroundColor = value;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* After the content is checked, this component knows what tabs have been defined
|
|
1226
|
+
* and what the selected index should be. This is where we can know exactly what position
|
|
1227
|
+
* each tab should be in according to the new selected index, and additionally we know how
|
|
1228
|
+
* a new selected tab should transition in (from the left or right).
|
|
1229
|
+
*/
|
|
1230
|
+
ngAfterContentChecked() {
|
|
1231
|
+
// Don't clamp the `indexToSelect` immediately in the setter because it can happen that
|
|
1232
|
+
// the amount of tabs changes before the actual change detection runs.
|
|
1233
|
+
const indexToSelect = this._indexToSelect = this._clampTabIndex(this._indexToSelect);
|
|
1234
|
+
// If there is a change in selected index, emit a change event. Should not trigger if
|
|
1235
|
+
// the selected index has not yet been initialized.
|
|
1236
|
+
if (this._selectedIndex != indexToSelect) {
|
|
1237
|
+
const isFirstRun = this._selectedIndex == null;
|
|
1238
|
+
if (!isFirstRun) {
|
|
1239
|
+
this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));
|
|
1240
|
+
// Preserve the height so page doesn't scroll up during tab change.
|
|
1241
|
+
// Fixes https://stackblitz.com/edit/mat-tabs-scroll-page-top-on-tab-change
|
|
1242
|
+
const wrapper = this._tabBodyWrapper.nativeElement;
|
|
1243
|
+
wrapper.style.minHeight = wrapper.clientHeight + 'px';
|
|
1244
|
+
}
|
|
1245
|
+
// Changing these values after change detection has run
|
|
1246
|
+
// since the checked content may contain references to them.
|
|
1247
|
+
Promise.resolve().then(() => {
|
|
1248
|
+
this._tabs.forEach((tab, index) => tab.isActive = index === indexToSelect);
|
|
1249
|
+
if (!isFirstRun) {
|
|
1250
|
+
this.selectedIndexChange.emit(indexToSelect);
|
|
1251
|
+
// Clear the min-height, this was needed during tab change to avoid
|
|
1252
|
+
// unnecessary scrolling.
|
|
1253
|
+
this._tabBodyWrapper.nativeElement.style.minHeight = '';
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
// Setup the position for each tab and optionally setup an origin on the next selected tab.
|
|
1258
|
+
this._tabs.forEach((tab, index) => {
|
|
1259
|
+
tab.position = index - indexToSelect;
|
|
1260
|
+
// If there is already a selected tab, then set up an origin for the next selected tab
|
|
1261
|
+
// if it doesn't have one already.
|
|
1262
|
+
if (this._selectedIndex != null && tab.position == 0 && !tab.origin) {
|
|
1263
|
+
tab.origin = indexToSelect - this._selectedIndex;
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
if (this._selectedIndex !== indexToSelect) {
|
|
1267
|
+
this._selectedIndex = indexToSelect;
|
|
1268
|
+
this._changeDetectorRef.markForCheck();
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
ngAfterContentInit() {
|
|
1272
|
+
this._subscribeToAllTabChanges();
|
|
1273
|
+
this._subscribeToTabLabels();
|
|
1274
|
+
// Subscribe to changes in the amount of tabs, in order to be
|
|
1275
|
+
// able to re-render the content as new tabs are added or removed.
|
|
1276
|
+
this._tabsSubscription = this._tabs.changes.subscribe(() => {
|
|
1277
|
+
const indexToSelect = this._clampTabIndex(this._indexToSelect);
|
|
1278
|
+
// Maintain the previously-selected tab if a new tab is added or removed and there is no
|
|
1279
|
+
// explicit change that selects a different tab.
|
|
1280
|
+
if (indexToSelect === this._selectedIndex) {
|
|
1281
|
+
const tabs = this._tabs.toArray();
|
|
1282
|
+
for (let i = 0; i < tabs.length; i++) {
|
|
1283
|
+
if (tabs[i].isActive) {
|
|
1284
|
+
// Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed
|
|
1285
|
+
// event, otherwise the consumer may end up in an infinite loop in some edge cases like
|
|
1286
|
+
// adding a tab within the `selectedIndexChange` event.
|
|
1287
|
+
this._indexToSelect = this._selectedIndex = i;
|
|
1288
|
+
break;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
this._changeDetectorRef.markForCheck();
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
/** Listens to changes in all of the tabs. */
|
|
1296
|
+
_subscribeToAllTabChanges() {
|
|
1297
|
+
// Since we use a query with `descendants: true` to pick up the tabs, we may end up catching
|
|
1298
|
+
// some that are inside of nested tab groups. We filter them out manually by checking that
|
|
1299
|
+
// the closest group to the tab is the current one.
|
|
1300
|
+
this._allTabs.changes
|
|
1301
|
+
.pipe(startWith(this._allTabs))
|
|
1302
|
+
.subscribe((tabs) => {
|
|
1303
|
+
this._tabs.reset(tabs.filter(tab => {
|
|
1304
|
+
return tab._closestTabGroup === this || !tab._closestTabGroup;
|
|
1305
|
+
}));
|
|
1306
|
+
this._tabs.notifyOnChanges();
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
ngOnDestroy() {
|
|
1310
|
+
this._tabs.destroy();
|
|
1311
|
+
this._tabsSubscription.unsubscribe();
|
|
1312
|
+
this._tabLabelSubscription.unsubscribe();
|
|
1313
|
+
}
|
|
1314
|
+
/** Re-aligns the ink bar to the selected tab element. */
|
|
1315
|
+
realignInkBar() {
|
|
1316
|
+
if (this._tabHeader) {
|
|
1317
|
+
this._tabHeader._alignInkBarToSelectedTab();
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* Sets focus to a particular tab.
|
|
1322
|
+
* @param index Index of the tab to be focused.
|
|
1323
|
+
*/
|
|
1324
|
+
focusTab(index) {
|
|
1325
|
+
const header = this._tabHeader;
|
|
1326
|
+
if (header) {
|
|
1327
|
+
header.focusIndex = index;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
_focusChanged(index) {
|
|
1331
|
+
this.focusChange.emit(this._createChangeEvent(index));
|
|
1332
|
+
}
|
|
1333
|
+
_createChangeEvent(index) {
|
|
1334
|
+
const event = new MatTabChangeEvent;
|
|
1335
|
+
event.index = index;
|
|
1336
|
+
if (this._tabs && this._tabs.length) {
|
|
1337
|
+
event.tab = this._tabs.toArray()[index];
|
|
1338
|
+
}
|
|
1339
|
+
return event;
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
|
|
1343
|
+
* on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the
|
|
1344
|
+
* binding to be updated, we need to subscribe to changes in it and trigger change detection
|
|
1345
|
+
* manually.
|
|
1346
|
+
*/
|
|
1347
|
+
_subscribeToTabLabels() {
|
|
1348
|
+
if (this._tabLabelSubscription) {
|
|
1349
|
+
this._tabLabelSubscription.unsubscribe();
|
|
1350
|
+
}
|
|
1351
|
+
this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges))
|
|
1352
|
+
.subscribe(() => this._changeDetectorRef.markForCheck());
|
|
1353
|
+
}
|
|
1354
|
+
/** Clamps the given index to the bounds of 0 and the tabs length. */
|
|
1355
|
+
_clampTabIndex(index) {
|
|
1356
|
+
// Note the `|| 0`, which ensures that values like NaN can't get through
|
|
1357
|
+
// and which would otherwise throw the component into an infinite loop
|
|
1358
|
+
// (since Math.max(NaN, 0) === NaN).
|
|
1359
|
+
return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));
|
|
1360
|
+
}
|
|
1361
|
+
/** Returns a unique id for each tab label element */
|
|
1362
|
+
_getTabLabelId(i) {
|
|
1363
|
+
return `mat-tab-label-${this._groupId}-${i}`;
|
|
1364
|
+
}
|
|
1365
|
+
/** Returns a unique id for each tab content element */
|
|
1366
|
+
_getTabContentId(i) {
|
|
1367
|
+
return `mat-tab-content-${this._groupId}-${i}`;
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Sets the height of the body wrapper to the height of the activating tab if dynamic
|
|
1371
|
+
* height property is true.
|
|
1372
|
+
*/
|
|
1373
|
+
_setTabBodyWrapperHeight(tabHeight) {
|
|
1374
|
+
if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
const wrapper = this._tabBodyWrapper.nativeElement;
|
|
1378
|
+
wrapper.style.height = this._tabBodyWrapperHeight + 'px';
|
|
1379
|
+
// This conditional forces the browser to paint the height so that
|
|
1380
|
+
// the animation to the new height can have an origin.
|
|
1381
|
+
if (this._tabBodyWrapper.nativeElement.offsetHeight) {
|
|
1382
|
+
wrapper.style.height = tabHeight + 'px';
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
/** Removes the height of the tab body wrapper. */
|
|
1386
|
+
_removeTabBodyWrapperHeight() {
|
|
1387
|
+
const wrapper = this._tabBodyWrapper.nativeElement;
|
|
1388
|
+
this._tabBodyWrapperHeight = wrapper.clientHeight;
|
|
1389
|
+
wrapper.style.height = '';
|
|
1390
|
+
this.animationDone.emit();
|
|
1391
|
+
}
|
|
1392
|
+
/** Handle click events, setting new selected index if appropriate. */
|
|
1393
|
+
_handleClick(tab, tabHeader, index) {
|
|
1394
|
+
if (!tab.disabled) {
|
|
1395
|
+
this.selectedIndex = tabHeader.focusIndex = index;
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
/** Retrieves the tabindex for the tab. */
|
|
1399
|
+
_getTabIndex(tab, idx) {
|
|
1400
|
+
if (tab.disabled) {
|
|
1401
|
+
return null;
|
|
1402
|
+
}
|
|
1403
|
+
return this.selectedIndex === idx ? 0 : -1;
|
|
1404
|
+
}
|
|
1405
|
+
/** Callback for when the focused state of a tab has changed. */
|
|
1406
|
+
_tabFocusChanged(focusOrigin, index) {
|
|
1407
|
+
// Mouse/touch focus happens during the `mousedown`/`touchstart` phase which
|
|
1408
|
+
// can cause the tab to be moved out from under the pointer, interrupting the
|
|
1409
|
+
// click sequence (see #21898). We don't need to scroll the tab into view for
|
|
1410
|
+
// such cases anyway, because it will be done when the tab becomes selected.
|
|
1411
|
+
if (focusOrigin && focusOrigin !== 'mouse' && focusOrigin !== 'touch') {
|
|
1412
|
+
this._tabHeader.focusIndex = index;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
_MatTabGroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabGroupBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1417
|
+
_MatTabGroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatTabGroupBase, inputs: { dynamicHeight: "dynamicHeight", selectedIndex: "selectedIndex", headerPosition: "headerPosition", animationDuration: "animationDuration", contentTabIndex: "contentTabIndex", disablePagination: "disablePagination", backgroundColor: "backgroundColor" }, outputs: { selectedIndexChange: "selectedIndexChange", focusChange: "focusChange", animationDone: "animationDone", selectedTabChange: "selectedTabChange" }, usesInheritance: true, ngImport: i0 });
|
|
1418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabGroupBase, decorators: [{
|
|
1419
|
+
type: Directive
|
|
1420
|
+
}], ctorParameters: function () {
|
|
1421
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
1422
|
+
type: Inject,
|
|
1423
|
+
args: [MAT_TABS_CONFIG]
|
|
1424
|
+
}, {
|
|
1425
|
+
type: Optional
|
|
1426
|
+
}] }, { type: undefined, decorators: [{
|
|
1427
|
+
type: Optional
|
|
1428
|
+
}, {
|
|
1429
|
+
type: Inject,
|
|
1430
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1431
|
+
}] }];
|
|
1432
|
+
}, propDecorators: { dynamicHeight: [{
|
|
1433
|
+
type: Input
|
|
1434
|
+
}], selectedIndex: [{
|
|
1435
|
+
type: Input
|
|
1436
|
+
}], headerPosition: [{
|
|
1437
|
+
type: Input
|
|
1438
|
+
}], animationDuration: [{
|
|
1439
|
+
type: Input
|
|
1440
|
+
}], contentTabIndex: [{
|
|
1441
|
+
type: Input
|
|
1442
|
+
}], disablePagination: [{
|
|
1443
|
+
type: Input
|
|
1444
|
+
}], backgroundColor: [{
|
|
1445
|
+
type: Input
|
|
1446
|
+
}], selectedIndexChange: [{
|
|
1447
|
+
type: Output
|
|
1448
|
+
}], focusChange: [{
|
|
1449
|
+
type: Output
|
|
1450
|
+
}], animationDone: [{
|
|
1451
|
+
type: Output
|
|
1452
|
+
}], selectedTabChange: [{
|
|
1453
|
+
type: Output
|
|
1454
|
+
}] } });
|
|
1455
|
+
/**
|
|
1456
|
+
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
|
|
1457
|
+
* animated ink-bar, keyboard navigation, and screen reader.
|
|
1458
|
+
* See: https://material.io/design/components/tabs.html
|
|
1459
|
+
*/
|
|
1460
|
+
class MatTabGroup extends _MatTabGroupBase {
|
|
1461
|
+
constructor(elementRef, changeDetectorRef, defaultConfig, animationMode) {
|
|
1462
|
+
super(elementRef, changeDetectorRef, defaultConfig, animationMode);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
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 });
|
|
1466
|
+
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: [{
|
|
1467
|
+
provide: MAT_TAB_GROUP,
|
|
1468
|
+
useExisting: MatTabGroup
|
|
1469
|
+
}], 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 });
|
|
1470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabGroup, decorators: [{
|
|
1471
|
+
type: Component,
|
|
1472
|
+
args: [{ selector: 'mat-tab-group', exportAs: 'matTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, inputs: ['color', 'disableRipple'], providers: [{
|
|
1473
|
+
provide: MAT_TAB_GROUP,
|
|
1474
|
+
useExisting: MatTabGroup
|
|
1475
|
+
}], host: {
|
|
1476
|
+
'class': 'mat-tab-group',
|
|
1477
|
+
'[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
|
|
1478
|
+
'[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
|
|
1479
|
+
}, 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"] }]
|
|
1480
|
+
}], ctorParameters: function () {
|
|
1481
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
1482
|
+
type: Inject,
|
|
1483
|
+
args: [MAT_TABS_CONFIG]
|
|
1484
|
+
}, {
|
|
1485
|
+
type: Optional
|
|
1486
|
+
}] }, { type: undefined, decorators: [{
|
|
1487
|
+
type: Optional
|
|
1488
|
+
}, {
|
|
1489
|
+
type: Inject,
|
|
1490
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1491
|
+
}] }];
|
|
1492
|
+
}, propDecorators: { _allTabs: [{
|
|
1493
|
+
type: ContentChildren,
|
|
1494
|
+
args: [MatTab, { descendants: true }]
|
|
1495
|
+
}], _tabBodyWrapper: [{
|
|
1496
|
+
type: ViewChild,
|
|
1497
|
+
args: ['tabBodyWrapper']
|
|
1498
|
+
}], _tabHeader: [{
|
|
1499
|
+
type: ViewChild,
|
|
1500
|
+
args: ['tabHeader']
|
|
1501
|
+
}] } });
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Base class with all of the `MatTabNav` functionality.
|
|
1505
|
+
* @docs-private
|
|
1506
|
+
*/
|
|
1507
|
+
class _MatTabNavBase extends MatPaginatedTabHeader {
|
|
1508
|
+
constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {
|
|
1509
|
+
super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
|
|
1510
|
+
this._disableRipple = false;
|
|
1511
|
+
/** Theme color of the nav bar. */
|
|
1512
|
+
this.color = 'primary';
|
|
1513
|
+
}
|
|
1514
|
+
/** Background color of the tab nav. */
|
|
1515
|
+
get backgroundColor() { return this._backgroundColor; }
|
|
1516
|
+
set backgroundColor(value) {
|
|
1517
|
+
const classList = this._elementRef.nativeElement.classList;
|
|
1518
|
+
classList.remove(`mat-background-${this.backgroundColor}`);
|
|
1519
|
+
if (value) {
|
|
1520
|
+
classList.add(`mat-background-${value}`);
|
|
1521
|
+
}
|
|
1522
|
+
this._backgroundColor = value;
|
|
1523
|
+
}
|
|
1524
|
+
/** Whether the ripple effect is disabled or not. */
|
|
1525
|
+
get disableRipple() { return this._disableRipple; }
|
|
1526
|
+
set disableRipple(value) { this._disableRipple = coerceBooleanProperty(value); }
|
|
1527
|
+
_itemSelected() {
|
|
1528
|
+
// noop
|
|
1529
|
+
}
|
|
1530
|
+
ngAfterContentInit() {
|
|
1531
|
+
// We need this to run before the `changes` subscription in parent to ensure that the
|
|
1532
|
+
// selectedIndex is up-to-date by the time the super class starts looking for it.
|
|
1533
|
+
this._items.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
|
|
1534
|
+
this.updateActiveLink();
|
|
1535
|
+
});
|
|
1536
|
+
super.ngAfterContentInit();
|
|
1537
|
+
}
|
|
1538
|
+
/** Notifies the component that the active link has been changed. */
|
|
1539
|
+
updateActiveLink() {
|
|
1540
|
+
if (!this._items) {
|
|
1541
|
+
return;
|
|
1542
|
+
}
|
|
1543
|
+
const items = this._items.toArray();
|
|
1544
|
+
for (let i = 0; i < items.length; i++) {
|
|
1545
|
+
if (items[i].active) {
|
|
1546
|
+
this.selectedIndex = i;
|
|
1547
|
+
this._changeDetectorRef.markForCheck();
|
|
1548
|
+
return;
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
// The ink bar should hide itself if no items are active.
|
|
1552
|
+
this.selectedIndex = -1;
|
|
1553
|
+
this._inkBar.hide();
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
_MatTabNavBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabNavBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1557
|
+
_MatTabNavBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatTabNavBase, inputs: { backgroundColor: "backgroundColor", disableRipple: "disableRipple", color: "color" }, usesInheritance: true, ngImport: i0 });
|
|
1558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabNavBase, decorators: [{
|
|
1559
|
+
type: Directive
|
|
1560
|
+
}], ctorParameters: function () {
|
|
1561
|
+
return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{
|
|
1562
|
+
type: Optional
|
|
1563
|
+
}] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1564
|
+
type: Optional
|
|
1565
|
+
}, {
|
|
1566
|
+
type: Inject,
|
|
1567
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1568
|
+
}] }];
|
|
1569
|
+
}, propDecorators: { backgroundColor: [{
|
|
1570
|
+
type: Input
|
|
1571
|
+
}], disableRipple: [{
|
|
1572
|
+
type: Input
|
|
1573
|
+
}], color: [{
|
|
1574
|
+
type: Input
|
|
1575
|
+
}] } });
|
|
1576
|
+
/**
|
|
1577
|
+
* Navigation component matching the styles of the tab group header.
|
|
1578
|
+
* Provides anchored navigation with animated ink bar.
|
|
1579
|
+
*/
|
|
1580
|
+
class MatTabNav extends _MatTabNavBase {
|
|
1581
|
+
constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {
|
|
1582
|
+
super(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
MatTabNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabNav, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1586
|
+
MatTabNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabNav, selector: "[mat-tab-nav-bar]", inputs: { color: "color" }, host: { properties: { "class.mat-tab-header-pagination-controls-enabled": "_showPaginationControls", "class.mat-tab-header-rtl": "_getLayoutDirection() == 'rtl'", "class.mat-primary": "color !== \"warn\" && color !== \"accent\"", "class.mat-accent": "color === \"accent\"", "class.mat-warn": "color === \"warn\"" }, classAttribute: "mat-tab-nav-bar mat-tab-header" }, queries: [{ propertyName: "_items", predicate: MatTabLink, descendants: true }], viewQueries: [{ propertyName: "_inkBar", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, static: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, static: true }, { propertyName: "_nextPaginator", first: true, predicate: ["nextPaginator"], descendants: true }, { propertyName: "_previousPaginator", first: true, predicate: ["previousPaginator"], descendants: true }], exportAs: ["matTabNavBar", "matTabNav"], usesInheritance: true, ngImport: i0, template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-link-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabList\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-links\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n", styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"], directives: [{ type: i4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i5.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }, { type: MatInkBar, selector: "mat-ink-bar" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
1587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabNav, decorators: [{
|
|
1588
|
+
type: Component,
|
|
1589
|
+
args: [{ selector: '[mat-tab-nav-bar]', exportAs: 'matTabNavBar, matTabNav', inputs: ['color'], host: {
|
|
1590
|
+
'class': 'mat-tab-nav-bar mat-tab-header',
|
|
1591
|
+
'[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
|
|
1592
|
+
'[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
|
|
1593
|
+
'[class.mat-primary]': 'color !== "warn" && color !== "accent"',
|
|
1594
|
+
'[class.mat-accent]': 'color === "accent"',
|
|
1595
|
+
'[class.mat-warn]': 'color === "warn"',
|
|
1596
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n #previousPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n (click)=\"_handlePaginatorClick('before')\"\n (mousedown)=\"_handlePaginatorPress('before', $event)\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-link-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n <div\n class=\"mat-tab-list\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabList\n (cdkObserveContent)=\"_onContentChanges()\">\n <div class=\"mat-tab-links\">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n #nextPaginator\n aria-hidden=\"true\"\n mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n (mousedown)=\"_handlePaginatorPress('after', $event)\"\n (click)=\"_handlePaginatorClick('after')\"\n (touchend)=\"_stopInterval()\">\n <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n", styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"] }]
|
|
1597
|
+
}], ctorParameters: function () {
|
|
1598
|
+
return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{
|
|
1599
|
+
type: Optional
|
|
1600
|
+
}] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1601
|
+
type: Optional
|
|
1602
|
+
}, {
|
|
1603
|
+
type: Inject,
|
|
1604
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1605
|
+
}] }];
|
|
1606
|
+
}, propDecorators: { _items: [{
|
|
1607
|
+
type: ContentChildren,
|
|
1608
|
+
args: [forwardRef(() => MatTabLink), { descendants: true }]
|
|
1609
|
+
}], _inkBar: [{
|
|
1610
|
+
type: ViewChild,
|
|
1611
|
+
args: [MatInkBar, { static: true }]
|
|
1612
|
+
}], _tabListContainer: [{
|
|
1613
|
+
type: ViewChild,
|
|
1614
|
+
args: ['tabListContainer', { static: true }]
|
|
1615
|
+
}], _tabList: [{
|
|
1616
|
+
type: ViewChild,
|
|
1617
|
+
args: ['tabList', { static: true }]
|
|
1618
|
+
}], _nextPaginator: [{
|
|
1619
|
+
type: ViewChild,
|
|
1620
|
+
args: ['nextPaginator']
|
|
1621
|
+
}], _previousPaginator: [{
|
|
1622
|
+
type: ViewChild,
|
|
1623
|
+
args: ['previousPaginator']
|
|
1624
|
+
}] } });
|
|
1625
|
+
// Boilerplate for applying mixins to MatTabLink.
|
|
1626
|
+
const _MatTabLinkMixinBase = mixinTabIndex(mixinDisableRipple(mixinDisabled(class {
|
|
1627
|
+
})));
|
|
1628
|
+
/** Base class with all of the `MatTabLink` functionality. */
|
|
1629
|
+
class _MatTabLinkBase extends _MatTabLinkMixinBase {
|
|
1630
|
+
constructor(_tabNavBar,
|
|
1631
|
+
/** @docs-private */ elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {
|
|
1632
|
+
super();
|
|
1633
|
+
this._tabNavBar = _tabNavBar;
|
|
1634
|
+
this.elementRef = elementRef;
|
|
1635
|
+
this._focusMonitor = _focusMonitor;
|
|
1636
|
+
/** Whether the tab link is active or not. */
|
|
1637
|
+
this._isActive = false;
|
|
1638
|
+
this.rippleConfig = globalRippleOptions || {};
|
|
1639
|
+
this.tabIndex = parseInt(tabIndex) || 0;
|
|
1640
|
+
if (animationMode === 'NoopAnimations') {
|
|
1641
|
+
this.rippleConfig.animation = { enterDuration: 0, exitDuration: 0 };
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
/** Whether the link is active. */
|
|
1645
|
+
get active() { return this._isActive; }
|
|
1646
|
+
set active(value) {
|
|
1647
|
+
const newValue = coerceBooleanProperty(value);
|
|
1648
|
+
if (newValue !== this._isActive) {
|
|
1649
|
+
this._isActive = value;
|
|
1650
|
+
this._tabNavBar.updateActiveLink();
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Whether ripples are disabled on interaction.
|
|
1655
|
+
* @docs-private
|
|
1656
|
+
*/
|
|
1657
|
+
get rippleDisabled() {
|
|
1658
|
+
return this.disabled || this.disableRipple || this._tabNavBar.disableRipple ||
|
|
1659
|
+
!!this.rippleConfig.disabled;
|
|
1660
|
+
}
|
|
1661
|
+
/** Focuses the tab link. */
|
|
1662
|
+
focus() {
|
|
1663
|
+
this.elementRef.nativeElement.focus();
|
|
1664
|
+
}
|
|
1665
|
+
ngAfterViewInit() {
|
|
1666
|
+
this._focusMonitor.monitor(this.elementRef);
|
|
1667
|
+
}
|
|
1668
|
+
ngOnDestroy() {
|
|
1669
|
+
this._focusMonitor.stopMonitoring(this.elementRef);
|
|
1670
|
+
}
|
|
1671
|
+
_handleFocus() {
|
|
1672
|
+
// Since we allow navigation through tabbing in the nav bar, we
|
|
1673
|
+
// have to update the focused index whenever the link receives focus.
|
|
1674
|
+
this._tabNavBar.focusIndex = this._tabNavBar._items.toArray().indexOf(this);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
_MatTabLinkBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabLinkBase, deps: [{ token: _MatTabNavBase }, { token: i0.ElementRef }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1678
|
+
_MatTabLinkBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatTabLinkBase, inputs: { active: "active" }, usesInheritance: true, ngImport: i0 });
|
|
1679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatTabLinkBase, decorators: [{
|
|
1680
|
+
type: Directive
|
|
1681
|
+
}], ctorParameters: function () {
|
|
1682
|
+
return [{ type: _MatTabNavBase }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
1683
|
+
type: Optional
|
|
1684
|
+
}, {
|
|
1685
|
+
type: Inject,
|
|
1686
|
+
args: [MAT_RIPPLE_GLOBAL_OPTIONS]
|
|
1687
|
+
}] }, { type: undefined, decorators: [{
|
|
1688
|
+
type: Attribute,
|
|
1689
|
+
args: ['tabindex']
|
|
1690
|
+
}] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{
|
|
1691
|
+
type: Optional
|
|
1692
|
+
}, {
|
|
1693
|
+
type: Inject,
|
|
1694
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1695
|
+
}] }];
|
|
1696
|
+
}, propDecorators: { active: [{
|
|
1697
|
+
type: Input
|
|
1698
|
+
}] } });
|
|
1699
|
+
/**
|
|
1700
|
+
* Link inside of a `mat-tab-nav-bar`.
|
|
1701
|
+
*/
|
|
1702
|
+
class MatTabLink extends _MatTabLinkBase {
|
|
1703
|
+
constructor(tabNavBar, elementRef, ngZone, platform, globalRippleOptions, tabIndex, focusMonitor, animationMode) {
|
|
1704
|
+
super(tabNavBar, elementRef, globalRippleOptions, tabIndex, focusMonitor, animationMode);
|
|
1705
|
+
this._tabLinkRipple = new RippleRenderer(this, ngZone, elementRef, platform);
|
|
1706
|
+
this._tabLinkRipple.setupTriggerEvents(elementRef.nativeElement);
|
|
1707
|
+
}
|
|
1708
|
+
ngOnDestroy() {
|
|
1709
|
+
super.ngOnDestroy();
|
|
1710
|
+
this._tabLinkRipple._removeTriggerEvents();
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
MatTabLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabLink, deps: [{ token: MatTabNav }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1714
|
+
MatTabLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: { disabled: "disabled", disableRipple: "disableRipple", tabIndex: "tabIndex" }, host: { listeners: { "focus": "_handleFocus()" }, properties: { "attr.aria-current": "active ? \"page\" : null", "attr.aria-disabled": "disabled", "attr.tabIndex": "tabIndex", "class.mat-tab-disabled": "disabled", "class.mat-tab-label-active": "active" }, classAttribute: "mat-tab-link mat-focus-indicator" }, exportAs: ["matTabLink"], usesInheritance: true, ngImport: i0 });
|
|
1715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabLink, decorators: [{
|
|
1716
|
+
type: Directive,
|
|
1717
|
+
args: [{
|
|
1718
|
+
selector: '[mat-tab-link], [matTabLink]',
|
|
1719
|
+
exportAs: 'matTabLink',
|
|
1720
|
+
inputs: ['disabled', 'disableRipple', 'tabIndex'],
|
|
1721
|
+
host: {
|
|
1722
|
+
'class': 'mat-tab-link mat-focus-indicator',
|
|
1723
|
+
'[attr.aria-current]': 'active ? "page" : null',
|
|
1724
|
+
'[attr.aria-disabled]': 'disabled',
|
|
1725
|
+
'[attr.tabIndex]': 'tabIndex',
|
|
1726
|
+
'[class.mat-tab-disabled]': 'disabled',
|
|
1727
|
+
'[class.mat-tab-label-active]': 'active',
|
|
1728
|
+
'(focus)': '_handleFocus()'
|
|
1729
|
+
}
|
|
1730
|
+
}]
|
|
1731
|
+
}], ctorParameters: function () {
|
|
1732
|
+
return [{ type: MatTabNav }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
1733
|
+
type: Optional
|
|
1734
|
+
}, {
|
|
1735
|
+
type: Inject,
|
|
1736
|
+
args: [MAT_RIPPLE_GLOBAL_OPTIONS]
|
|
1737
|
+
}] }, { type: undefined, decorators: [{
|
|
1738
|
+
type: Attribute,
|
|
1739
|
+
args: ['tabindex']
|
|
1740
|
+
}] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{
|
|
1741
|
+
type: Optional
|
|
1742
|
+
}, {
|
|
1743
|
+
type: Inject,
|
|
1744
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
1745
|
+
}] }];
|
|
1746
|
+
} });
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* @license
|
|
1750
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1751
|
+
*
|
|
1752
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1753
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1754
|
+
*/
|
|
1755
|
+
class MatTabsModule {
|
|
1756
|
+
}
|
|
1757
|
+
MatTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1758
|
+
MatTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabsModule, declarations: [MatTabGroup,
|
|
1759
|
+
MatTabLabel,
|
|
1760
|
+
MatTab,
|
|
1761
|
+
MatInkBar,
|
|
1762
|
+
MatTabLabelWrapper,
|
|
1763
|
+
MatTabNav,
|
|
1764
|
+
MatTabLink,
|
|
1765
|
+
MatTabBody,
|
|
1766
|
+
MatTabBodyPortal,
|
|
1767
|
+
MatTabHeader,
|
|
1768
|
+
MatTabContent], imports: [CommonModule,
|
|
1769
|
+
MatCommonModule,
|
|
1770
|
+
PortalModule,
|
|
1771
|
+
MatRippleModule,
|
|
1772
|
+
ObserversModule,
|
|
1773
|
+
A11yModule], exports: [MatCommonModule,
|
|
1774
|
+
MatTabGroup,
|
|
1775
|
+
MatTabLabel,
|
|
1776
|
+
MatTab,
|
|
1777
|
+
MatTabNav,
|
|
1778
|
+
MatTabLink,
|
|
1779
|
+
MatTabContent] });
|
|
1780
|
+
MatTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabsModule, imports: [[
|
|
1781
|
+
CommonModule,
|
|
1782
|
+
MatCommonModule,
|
|
1783
|
+
PortalModule,
|
|
1784
|
+
MatRippleModule,
|
|
1785
|
+
ObserversModule,
|
|
1786
|
+
A11yModule,
|
|
1787
|
+
], MatCommonModule] });
|
|
1788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatTabsModule, decorators: [{
|
|
1789
|
+
type: NgModule,
|
|
1790
|
+
args: [{
|
|
1791
|
+
imports: [
|
|
1792
|
+
CommonModule,
|
|
1793
|
+
MatCommonModule,
|
|
1794
|
+
PortalModule,
|
|
1795
|
+
MatRippleModule,
|
|
1796
|
+
ObserversModule,
|
|
1797
|
+
A11yModule,
|
|
1798
|
+
],
|
|
1799
|
+
// Don't export all components because some are only to be used internally.
|
|
1800
|
+
exports: [
|
|
1801
|
+
MatCommonModule,
|
|
1802
|
+
MatTabGroup,
|
|
1803
|
+
MatTabLabel,
|
|
1804
|
+
MatTab,
|
|
1805
|
+
MatTabNav,
|
|
1806
|
+
MatTabLink,
|
|
1807
|
+
MatTabContent,
|
|
1808
|
+
],
|
|
1809
|
+
declarations: [
|
|
1810
|
+
MatTabGroup,
|
|
1811
|
+
MatTabLabel,
|
|
1812
|
+
MatTab,
|
|
1813
|
+
MatInkBar,
|
|
1814
|
+
MatTabLabelWrapper,
|
|
1815
|
+
MatTabNav,
|
|
1816
|
+
MatTabLink,
|
|
1817
|
+
MatTabBody,
|
|
1818
|
+
MatTabBodyPortal,
|
|
1819
|
+
MatTabHeader,
|
|
1820
|
+
MatTabContent,
|
|
1821
|
+
],
|
|
1822
|
+
}]
|
|
1823
|
+
}] });
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* @license
|
|
1827
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1828
|
+
*
|
|
1829
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1830
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1831
|
+
*/
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* @license
|
|
1835
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1836
|
+
*
|
|
1837
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1838
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1839
|
+
*/
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Generated bundle index. Do not edit.
|
|
1843
|
+
*/
|
|
1844
|
+
|
|
1845
|
+
export { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_GROUP, MatInkBar, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabsModule, _MAT_INK_BAR_POSITIONER, _MatTabBodyBase, _MatTabGroupBase, _MatTabHeaderBase, _MatTabLinkBase, _MatTabNavBase, matTabsAnimations };
|
|
1846
|
+
//# sourceMappingURL=tabs.mjs.map
|