@angular/material 13.0.0-next.7 → 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 +4 -1
- package/badge/package.json +5 -5
- package/badge/testing/package.json +5 -5
- package/bottom-sheet/bottom-sheet-container.d.ts +3 -0
- 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/common-module.d.ts +5 -0
- package/core/common-behaviors/index.d.ts +1 -0
- 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/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 +6 -1
- 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/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -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/{esm2015/core/common-behaviors/disable-ripple.js → esm2020/core/common-behaviors/disable-ripple.mjs} +0 -0
- package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
- package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
- package/esm2020/core/common-behaviors/index.mjs +15 -0
- package/{esm2015/core/common-behaviors/initialized.js → esm2020/core/common-behaviors/initialized.mjs} +0 -0
- package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -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/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -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/{esm2015/menu/public-api.js → esm2020/menu/public-api.mjs} +0 -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/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -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/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 +5 -7
- package/menu/menu-item.d.ts +4 -1
- package/menu/menu-module.d.ts +12 -7
- package/menu/menu-trigger.d.ts +5 -0
- package/menu/menu.d.ts +5 -0
- package/menu/package.json +5 -5
- 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/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/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/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/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 +3 -0
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +10 -1
- package/tabs/tab.d.ts +4 -1
- 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 -604
- 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 -948
- 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 -2175
- 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 -4332
- 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 -817
- 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 -1677
- 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 -1667
- 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 -553
- package/bundles/material-snack-bar-testing.umd.js.map +0 -1
- package/bundles/material-snack-bar.umd.js +0 -1075
- 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 -2183
- 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 -213
- 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 -246
- 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/common-module.js +0 -113
- package/esm2015/core/common-behaviors/index.js +0 -15
- 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 -56
- 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 -529
- 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/input-module.js +0 -33
- package/esm2015/input/input.externs.js +0 -6
- package/esm2015/input/input.js +0 -395
- 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 -97
- package/esm2015/menu/menu-item.js +0 -164
- package/esm2015/menu/menu-module.js +0 -39
- package/esm2015/menu/menu-trigger.js +0 -505
- package/esm2015/menu/menu.externs.js +0 -6
- package/esm2015/menu/menu.js +0 -381
- 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 -1140
- 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 -264
- package/esm2015/snack-bar/testing/snack-bar-harness.js +0 -141
- 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/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 -39
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -241
- package/esm2015/tabs/tab.js +0 -107
- 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 -248
- 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 -596
- 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 -1681
- 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 -3733
- 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 -463
- 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 -1299
- 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 -1271
- 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 -168
- package/fesm2015/snack-bar/testing.js.map +0 -1
- package/fesm2015/snack-bar.js +0 -712
- 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 -1761
- 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/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,1363 @@
|
|
|
1
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
2
|
+
import { FocusKeyManager, isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
|
|
3
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
4
|
+
import { UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, ESCAPE, hasModifierKey, ENTER, SPACE } from '@angular/cdk/keycodes';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Directive, Inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Input, HostListener, QueryList, EventEmitter, TemplateRef, ContentChildren, ViewChild, ContentChild, Output, Self, HostBinding, NgModule } from '@angular/core';
|
|
7
|
+
import { Subject, Subscription, merge, of, asapScheduler } from 'rxjs';
|
|
8
|
+
import { startWith, switchMap, take, filter, takeUntil, delay } from 'rxjs/operators';
|
|
9
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
10
|
+
import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';
|
|
11
|
+
import * as i3 from '@angular/common';
|
|
12
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
13
|
+
import * as i2 from '@angular/material/core';
|
|
14
|
+
import { mixinDisableRipple, mixinDisabled, MatCommonModule, MatRippleModule } from '@angular/material/core';
|
|
15
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
16
|
+
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
17
|
+
import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
|
|
18
|
+
import * as i3$1 from '@angular/cdk/bidi';
|
|
19
|
+
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright Google LLC All Rights Reserved.
|
|
24
|
+
*
|
|
25
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
26
|
+
* found in the LICENSE file at https://angular.io/license
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Animations used by the mat-menu component.
|
|
30
|
+
* Animation duration and timing values are based on:
|
|
31
|
+
* https://material.io/guidelines/components/menus.html#menus-usage
|
|
32
|
+
* @docs-private
|
|
33
|
+
*/
|
|
34
|
+
const matMenuAnimations = {
|
|
35
|
+
/**
|
|
36
|
+
* This animation controls the menu panel's entry and exit from the page.
|
|
37
|
+
*
|
|
38
|
+
* When the menu panel is added to the DOM, it scales in and fades in its border.
|
|
39
|
+
*
|
|
40
|
+
* When the menu panel is removed from the DOM, it simply fades out after a brief
|
|
41
|
+
* delay to display the ripple.
|
|
42
|
+
*/
|
|
43
|
+
transformMenu: trigger('transformMenu', [
|
|
44
|
+
state('void', style({
|
|
45
|
+
opacity: 0,
|
|
46
|
+
transform: 'scale(0.8)'
|
|
47
|
+
})),
|
|
48
|
+
transition('void => enter', animate('120ms cubic-bezier(0, 0, 0.2, 1)', style({
|
|
49
|
+
opacity: 1,
|
|
50
|
+
transform: 'scale(1)'
|
|
51
|
+
}))),
|
|
52
|
+
transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 })))
|
|
53
|
+
]),
|
|
54
|
+
/**
|
|
55
|
+
* This animation fades in the background color and content of the menu panel
|
|
56
|
+
* after its containing element is scaled in.
|
|
57
|
+
*/
|
|
58
|
+
fadeInItems: trigger('fadeInItems', [
|
|
59
|
+
// TODO(crisbeto): this is inside the `transformMenu`
|
|
60
|
+
// now. Remove next time we do breaking changes.
|
|
61
|
+
state('showing', style({ opacity: 1 })),
|
|
62
|
+
transition('void => *', [
|
|
63
|
+
style({ opacity: 0 }),
|
|
64
|
+
animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')
|
|
65
|
+
])
|
|
66
|
+
])
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated
|
|
70
|
+
* @breaking-change 8.0.0
|
|
71
|
+
* @docs-private
|
|
72
|
+
*/
|
|
73
|
+
const fadeInItems = matMenuAnimations.fadeInItems;
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated
|
|
76
|
+
* @breaking-change 8.0.0
|
|
77
|
+
* @docs-private
|
|
78
|
+
*/
|
|
79
|
+
const transformMenu = matMenuAnimations.transformMenu;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @license
|
|
83
|
+
* Copyright Google LLC All Rights Reserved.
|
|
84
|
+
*
|
|
85
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
86
|
+
* found in the LICENSE file at https://angular.io/license
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Injection token that can be used to reference instances of `MatMenuContent`. It serves
|
|
90
|
+
* as alternative token to the actual `MatMenuContent` class which could cause unnecessary
|
|
91
|
+
* retention of the class and its directive metadata.
|
|
92
|
+
*/
|
|
93
|
+
const MAT_MENU_CONTENT = new InjectionToken('MatMenuContent');
|
|
94
|
+
class _MatMenuContentBase {
|
|
95
|
+
constructor(_template, _componentFactoryResolver, _appRef, _injector, _viewContainerRef, _document, _changeDetectorRef) {
|
|
96
|
+
this._template = _template;
|
|
97
|
+
this._componentFactoryResolver = _componentFactoryResolver;
|
|
98
|
+
this._appRef = _appRef;
|
|
99
|
+
this._injector = _injector;
|
|
100
|
+
this._viewContainerRef = _viewContainerRef;
|
|
101
|
+
this._document = _document;
|
|
102
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
103
|
+
/** Emits when the menu content has been attached. */
|
|
104
|
+
this._attached = new Subject();
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Attaches the content with a particular context.
|
|
108
|
+
* @docs-private
|
|
109
|
+
*/
|
|
110
|
+
attach(context = {}) {
|
|
111
|
+
if (!this._portal) {
|
|
112
|
+
this._portal = new TemplatePortal(this._template, this._viewContainerRef);
|
|
113
|
+
}
|
|
114
|
+
this.detach();
|
|
115
|
+
if (!this._outlet) {
|
|
116
|
+
this._outlet = new DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);
|
|
117
|
+
}
|
|
118
|
+
const element = this._template.elementRef.nativeElement;
|
|
119
|
+
// Because we support opening the same menu from different triggers (which in turn have their
|
|
120
|
+
// own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
|
|
121
|
+
// risk it staying attached to a pane that's no longer in the DOM.
|
|
122
|
+
element.parentNode.insertBefore(this._outlet.outletElement, element);
|
|
123
|
+
// When `MatMenuContent` is used in an `OnPush` component, the insertion of the menu
|
|
124
|
+
// content via `createEmbeddedView` does not cause the content to be seen as "dirty"
|
|
125
|
+
// by Angular. This causes the `@ContentChildren` for menu items within the menu to
|
|
126
|
+
// not be updated by Angular. By explicitly marking for check here, we tell Angular that
|
|
127
|
+
// it needs to check for new menu items and update the `@ContentChild` in `MatMenu`.
|
|
128
|
+
// @breaking-change 9.0.0 Make change detector ref required
|
|
129
|
+
if (this._changeDetectorRef) {
|
|
130
|
+
this._changeDetectorRef.markForCheck();
|
|
131
|
+
}
|
|
132
|
+
this._portal.attach(this._outlet, context);
|
|
133
|
+
this._attached.next();
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Detaches the content.
|
|
137
|
+
* @docs-private
|
|
138
|
+
*/
|
|
139
|
+
detach() {
|
|
140
|
+
if (this._portal.isAttached) {
|
|
141
|
+
this._portal.detach();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
ngOnDestroy() {
|
|
145
|
+
if (this._outlet) {
|
|
146
|
+
this._outlet.dispose();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
_MatMenuContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatMenuContentBase, deps: [{ token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: DOCUMENT }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
151
|
+
_MatMenuContentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatMenuContentBase, ngImport: i0 });
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatMenuContentBase, decorators: [{
|
|
153
|
+
type: Directive
|
|
154
|
+
}], ctorParameters: function () {
|
|
155
|
+
return [{ type: i0.TemplateRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
156
|
+
type: Inject,
|
|
157
|
+
args: [DOCUMENT]
|
|
158
|
+
}] }, { type: i0.ChangeDetectorRef }];
|
|
159
|
+
} });
|
|
160
|
+
/**
|
|
161
|
+
* Menu content that will be rendered lazily once the menu is opened.
|
|
162
|
+
*/
|
|
163
|
+
class MatMenuContent extends _MatMenuContentBase {
|
|
164
|
+
}
|
|
165
|
+
MatMenuContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuContent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
166
|
+
MatMenuContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatMenuContent, selector: "ng-template[matMenuContent]", providers: [{ provide: MAT_MENU_CONTENT, useExisting: MatMenuContent }], usesInheritance: true, ngImport: i0 });
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuContent, decorators: [{
|
|
168
|
+
type: Directive,
|
|
169
|
+
args: [{
|
|
170
|
+
selector: 'ng-template[matMenuContent]',
|
|
171
|
+
providers: [{ provide: MAT_MENU_CONTENT, useExisting: MatMenuContent }],
|
|
172
|
+
}]
|
|
173
|
+
}] });
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @license
|
|
177
|
+
* Copyright Google LLC All Rights Reserved.
|
|
178
|
+
*
|
|
179
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
180
|
+
* found in the LICENSE file at https://angular.io/license
|
|
181
|
+
*/
|
|
182
|
+
/**
|
|
183
|
+
* Throws an exception for the case when menu trigger doesn't have a valid mat-menu instance
|
|
184
|
+
* @docs-private
|
|
185
|
+
*/
|
|
186
|
+
function throwMatMenuMissingError() {
|
|
187
|
+
throw Error(`matMenuTriggerFor: must pass in an mat-menu instance.
|
|
188
|
+
|
|
189
|
+
Example:
|
|
190
|
+
<mat-menu #menu="matMenu"></mat-menu>
|
|
191
|
+
<button [matMenuTriggerFor]="menu"></button>`);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Throws an exception for the case when menu's x-position value isn't valid.
|
|
195
|
+
* In other words, it doesn't match 'before' or 'after'.
|
|
196
|
+
* @docs-private
|
|
197
|
+
*/
|
|
198
|
+
function throwMatMenuInvalidPositionX() {
|
|
199
|
+
throw Error(`xPosition value must be either 'before' or after'.
|
|
200
|
+
Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>`);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Throws an exception for the case when menu's y-position value isn't valid.
|
|
204
|
+
* In other words, it doesn't match 'above' or 'below'.
|
|
205
|
+
* @docs-private
|
|
206
|
+
*/
|
|
207
|
+
function throwMatMenuInvalidPositionY() {
|
|
208
|
+
throw Error(`yPosition value must be either 'above' or below'.
|
|
209
|
+
Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>`);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Throws an exception for the case when a menu is assigned
|
|
213
|
+
* to a trigger that is placed inside the same menu.
|
|
214
|
+
* @docs-private
|
|
215
|
+
*/
|
|
216
|
+
function throwMatMenuRecursiveError() {
|
|
217
|
+
throw Error(`matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is ` +
|
|
218
|
+
`not a parent of the trigger or move the trigger outside of the menu.`);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @license
|
|
223
|
+
* Copyright Google LLC All Rights Reserved.
|
|
224
|
+
*
|
|
225
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
226
|
+
* found in the LICENSE file at https://angular.io/license
|
|
227
|
+
*/
|
|
228
|
+
/**
|
|
229
|
+
* Injection token used to provide the parent menu to menu-specific components.
|
|
230
|
+
* @docs-private
|
|
231
|
+
*/
|
|
232
|
+
const MAT_MENU_PANEL = new InjectionToken('MAT_MENU_PANEL');
|
|
233
|
+
|
|
234
|
+
// Boilerplate for applying mixins to MatMenuItem.
|
|
235
|
+
/** @docs-private */
|
|
236
|
+
const _MatMenuItemBase = mixinDisableRipple(mixinDisabled(class {
|
|
237
|
+
}));
|
|
238
|
+
/**
|
|
239
|
+
* Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment.
|
|
240
|
+
*/
|
|
241
|
+
class MatMenuItem extends _MatMenuItemBase {
|
|
242
|
+
constructor(_elementRef,
|
|
243
|
+
/**
|
|
244
|
+
* @deprecated `_document` parameter is no longer being used and will be removed.
|
|
245
|
+
* @breaking-change 12.0.0
|
|
246
|
+
*/
|
|
247
|
+
_document, _focusMonitor, _parentMenu,
|
|
248
|
+
/**
|
|
249
|
+
* @deprecated `_changeDetectorRef` to become a required parameter.
|
|
250
|
+
* @breaking-change 14.0.0
|
|
251
|
+
*/
|
|
252
|
+
_changeDetectorRef) {
|
|
253
|
+
// @breaking-change 8.0.0 make `_focusMonitor` and `document` required params.
|
|
254
|
+
super();
|
|
255
|
+
this._elementRef = _elementRef;
|
|
256
|
+
this._focusMonitor = _focusMonitor;
|
|
257
|
+
this._parentMenu = _parentMenu;
|
|
258
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
259
|
+
/** ARIA role for the menu item. */
|
|
260
|
+
this.role = 'menuitem';
|
|
261
|
+
/** Stream that emits when the menu item is hovered. */
|
|
262
|
+
this._hovered = new Subject();
|
|
263
|
+
/** Stream that emits when the menu item is focused. */
|
|
264
|
+
this._focused = new Subject();
|
|
265
|
+
/** Whether the menu item is highlighted. */
|
|
266
|
+
this._highlighted = false;
|
|
267
|
+
/** Whether the menu item acts as a trigger for a sub-menu. */
|
|
268
|
+
this._triggersSubmenu = false;
|
|
269
|
+
if (_parentMenu && _parentMenu.addItem) {
|
|
270
|
+
_parentMenu.addItem(this);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/** Focuses the menu item. */
|
|
274
|
+
focus(origin, options) {
|
|
275
|
+
if (this._focusMonitor && origin) {
|
|
276
|
+
this._focusMonitor.focusVia(this._getHostElement(), origin, options);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
this._getHostElement().focus(options);
|
|
280
|
+
}
|
|
281
|
+
this._focused.next(this);
|
|
282
|
+
}
|
|
283
|
+
ngAfterViewInit() {
|
|
284
|
+
if (this._focusMonitor) {
|
|
285
|
+
// Start monitoring the element so it gets the appropriate focused classes. We want
|
|
286
|
+
// to show the focus style for menu items only when the focus was not caused by a
|
|
287
|
+
// mouse or touch interaction.
|
|
288
|
+
this._focusMonitor.monitor(this._elementRef, false);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
ngOnDestroy() {
|
|
292
|
+
if (this._focusMonitor) {
|
|
293
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
294
|
+
}
|
|
295
|
+
if (this._parentMenu && this._parentMenu.removeItem) {
|
|
296
|
+
this._parentMenu.removeItem(this);
|
|
297
|
+
}
|
|
298
|
+
this._hovered.complete();
|
|
299
|
+
this._focused.complete();
|
|
300
|
+
}
|
|
301
|
+
/** Used to set the `tabindex`. */
|
|
302
|
+
_getTabIndex() {
|
|
303
|
+
return this.disabled ? '-1' : '0';
|
|
304
|
+
}
|
|
305
|
+
/** Returns the host DOM element. */
|
|
306
|
+
_getHostElement() {
|
|
307
|
+
return this._elementRef.nativeElement;
|
|
308
|
+
}
|
|
309
|
+
/** Prevents the default element actions if it is disabled. */
|
|
310
|
+
// We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
|
|
311
|
+
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
|
|
312
|
+
// ViewEngine they're overwritten.
|
|
313
|
+
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
|
|
314
|
+
// tslint:disable-next-line:no-host-decorator-in-concrete
|
|
315
|
+
_checkDisabled(event) {
|
|
316
|
+
if (this.disabled) {
|
|
317
|
+
event.preventDefault();
|
|
318
|
+
event.stopPropagation();
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
/** Emits to the hover stream. */
|
|
322
|
+
// We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
|
|
323
|
+
// In Ivy the `host` bindings will be merged when this class is extended, whereas in
|
|
324
|
+
// ViewEngine they're overwritten.
|
|
325
|
+
// TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
|
|
326
|
+
// tslint:disable-next-line:no-host-decorator-in-concrete
|
|
327
|
+
_handleMouseEnter() {
|
|
328
|
+
this._hovered.next(this);
|
|
329
|
+
}
|
|
330
|
+
/** Gets the label to be used when determining whether the option should be focused. */
|
|
331
|
+
getLabel() {
|
|
332
|
+
var _a;
|
|
333
|
+
const clone = this._elementRef.nativeElement.cloneNode(true);
|
|
334
|
+
const icons = clone.querySelectorAll('mat-icon, .material-icons');
|
|
335
|
+
// Strip away icons so they don't show up in the text.
|
|
336
|
+
for (let i = 0; i < icons.length; i++) {
|
|
337
|
+
icons[i].remove();
|
|
338
|
+
}
|
|
339
|
+
return ((_a = clone.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
|
340
|
+
}
|
|
341
|
+
_setHighlighted(isHighlighted) {
|
|
342
|
+
var _a;
|
|
343
|
+
// We need to mark this for check for the case where the content is coming from a
|
|
344
|
+
// `matMenuContent` whose change detection tree is at the declaration position,
|
|
345
|
+
// not the insertion position. See #23175.
|
|
346
|
+
// @breaking-change 14.0.0 Remove null check for `_changeDetectorRef`.
|
|
347
|
+
this._highlighted = isHighlighted;
|
|
348
|
+
(_a = this._changeDetectorRef) === null || _a === void 0 ? void 0 : _a.markForCheck();
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
MatMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuItem, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }, { token: i1.FocusMonitor }, { token: MAT_MENU_PANEL, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
352
|
+
MatMenuItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatMenuItem, selector: "[mat-menu-item]", inputs: { disabled: "disabled", disableRipple: "disableRipple", role: "role" }, host: { listeners: { "click": "_checkDisabled($event)", "mouseenter": "_handleMouseEnter()" }, properties: { "attr.role": "role", "class.mat-menu-item": "true", "class.mat-menu-item-highlighted": "_highlighted", "class.mat-menu-item-submenu-trigger": "_triggersSubmenu", "attr.tabindex": "_getTabIndex()", "attr.aria-disabled": "disabled.toString()", "attr.disabled": "disabled || null" }, classAttribute: "mat-focus-indicator" }, exportAs: ["matMenuItem"], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n<div class=\"mat-menu-ripple\" matRipple\n [matRippleDisabled]=\"disableRipple || disabled\"\n [matRippleTrigger]=\"_getHostElement()\">\n</div>\n\n<svg\n *ngIf=\"_triggersSubmenu\"\n class=\"mat-menu-submenu-icon\"\n viewBox=\"0 0 5 10\"\n focusable=\"false\"><polygon points=\"0,0 5,5 0,10\"/></svg>\n", directives: [{ type: i2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuItem, decorators: [{
|
|
354
|
+
type: Component,
|
|
355
|
+
args: [{ selector: '[mat-menu-item]', exportAs: 'matMenuItem', inputs: ['disabled', 'disableRipple'], host: {
|
|
356
|
+
'[attr.role]': 'role',
|
|
357
|
+
'[class.mat-menu-item]': 'true',
|
|
358
|
+
'[class.mat-menu-item-highlighted]': '_highlighted',
|
|
359
|
+
'[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',
|
|
360
|
+
'[attr.tabindex]': '_getTabIndex()',
|
|
361
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
362
|
+
'[attr.disabled]': 'disabled || null',
|
|
363
|
+
'class': 'mat-focus-indicator',
|
|
364
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content></ng-content>\n<div class=\"mat-menu-ripple\" matRipple\n [matRippleDisabled]=\"disableRipple || disabled\"\n [matRippleTrigger]=\"_getHostElement()\">\n</div>\n\n<svg\n *ngIf=\"_triggersSubmenu\"\n class=\"mat-menu-submenu-icon\"\n viewBox=\"0 0 5 10\"\n focusable=\"false\"><polygon points=\"0,0 5,5 0,10\"/></svg>\n" }]
|
|
365
|
+
}], ctorParameters: function () {
|
|
366
|
+
return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
367
|
+
type: Inject,
|
|
368
|
+
args: [DOCUMENT]
|
|
369
|
+
}] }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{
|
|
370
|
+
type: Inject,
|
|
371
|
+
args: [MAT_MENU_PANEL]
|
|
372
|
+
}, {
|
|
373
|
+
type: Optional
|
|
374
|
+
}] }, { type: i0.ChangeDetectorRef }];
|
|
375
|
+
}, propDecorators: { role: [{
|
|
376
|
+
type: Input
|
|
377
|
+
}], _checkDisabled: [{
|
|
378
|
+
type: HostListener,
|
|
379
|
+
args: ['click', ['$event']]
|
|
380
|
+
}], _handleMouseEnter: [{
|
|
381
|
+
type: HostListener,
|
|
382
|
+
args: ['mouseenter']
|
|
383
|
+
}] } });
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @license
|
|
387
|
+
* Copyright Google LLC All Rights Reserved.
|
|
388
|
+
*
|
|
389
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
390
|
+
* found in the LICENSE file at https://angular.io/license
|
|
391
|
+
*/
|
|
392
|
+
/** Injection token to be used to override the default options for `mat-menu`. */
|
|
393
|
+
const MAT_MENU_DEFAULT_OPTIONS = new InjectionToken('mat-menu-default-options', {
|
|
394
|
+
providedIn: 'root',
|
|
395
|
+
factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY
|
|
396
|
+
});
|
|
397
|
+
/** @docs-private */
|
|
398
|
+
function MAT_MENU_DEFAULT_OPTIONS_FACTORY() {
|
|
399
|
+
return {
|
|
400
|
+
overlapTrigger: false,
|
|
401
|
+
xPosition: 'after',
|
|
402
|
+
yPosition: 'below',
|
|
403
|
+
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
let menuPanelUid = 0;
|
|
407
|
+
/** Base class with all of the `MatMenu` functionality. */
|
|
408
|
+
class _MatMenuBase {
|
|
409
|
+
constructor(_elementRef, _ngZone, _defaultOptions) {
|
|
410
|
+
this._elementRef = _elementRef;
|
|
411
|
+
this._ngZone = _ngZone;
|
|
412
|
+
this._defaultOptions = _defaultOptions;
|
|
413
|
+
this._xPosition = this._defaultOptions.xPosition;
|
|
414
|
+
this._yPosition = this._defaultOptions.yPosition;
|
|
415
|
+
/** Only the direct descendant menu items. */
|
|
416
|
+
this._directDescendantItems = new QueryList();
|
|
417
|
+
/** Subscription to tab events on the menu panel */
|
|
418
|
+
this._tabSubscription = Subscription.EMPTY;
|
|
419
|
+
/** Config object to be passed into the menu's ngClass */
|
|
420
|
+
this._classList = {};
|
|
421
|
+
/** Current state of the panel animation. */
|
|
422
|
+
this._panelAnimationState = 'void';
|
|
423
|
+
/** Emits whenever an animation on the menu completes. */
|
|
424
|
+
this._animationDone = new Subject();
|
|
425
|
+
/** Class or list of classes to be added to the overlay panel. */
|
|
426
|
+
this.overlayPanelClass = this._defaultOptions.overlayPanelClass || '';
|
|
427
|
+
/** Class to be added to the backdrop element. */
|
|
428
|
+
this.backdropClass = this._defaultOptions.backdropClass;
|
|
429
|
+
this._overlapTrigger = this._defaultOptions.overlapTrigger;
|
|
430
|
+
this._hasBackdrop = this._defaultOptions.hasBackdrop;
|
|
431
|
+
/** Event emitted when the menu is closed. */
|
|
432
|
+
this.closed = new EventEmitter();
|
|
433
|
+
/**
|
|
434
|
+
* Event emitted when the menu is closed.
|
|
435
|
+
* @deprecated Switch to `closed` instead
|
|
436
|
+
* @breaking-change 8.0.0
|
|
437
|
+
*/
|
|
438
|
+
this.close = this.closed;
|
|
439
|
+
this.panelId = `mat-menu-panel-${menuPanelUid++}`;
|
|
440
|
+
}
|
|
441
|
+
/** Position of the menu in the X axis. */
|
|
442
|
+
get xPosition() { return this._xPosition; }
|
|
443
|
+
set xPosition(value) {
|
|
444
|
+
if (value !== 'before' && value !== 'after' &&
|
|
445
|
+
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
446
|
+
throwMatMenuInvalidPositionX();
|
|
447
|
+
}
|
|
448
|
+
this._xPosition = value;
|
|
449
|
+
this.setPositionClasses();
|
|
450
|
+
}
|
|
451
|
+
/** Position of the menu in the Y axis. */
|
|
452
|
+
get yPosition() { return this._yPosition; }
|
|
453
|
+
set yPosition(value) {
|
|
454
|
+
if (value !== 'above' && value !== 'below' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
455
|
+
throwMatMenuInvalidPositionY();
|
|
456
|
+
}
|
|
457
|
+
this._yPosition = value;
|
|
458
|
+
this.setPositionClasses();
|
|
459
|
+
}
|
|
460
|
+
/** Whether the menu should overlap its trigger. */
|
|
461
|
+
get overlapTrigger() { return this._overlapTrigger; }
|
|
462
|
+
set overlapTrigger(value) {
|
|
463
|
+
this._overlapTrigger = coerceBooleanProperty(value);
|
|
464
|
+
}
|
|
465
|
+
/** Whether the menu has a backdrop. */
|
|
466
|
+
get hasBackdrop() { return this._hasBackdrop; }
|
|
467
|
+
set hasBackdrop(value) {
|
|
468
|
+
this._hasBackdrop = coerceBooleanProperty(value);
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* This method takes classes set on the host mat-menu element and applies them on the
|
|
472
|
+
* menu template that displays in the overlay container. Otherwise, it's difficult
|
|
473
|
+
* to style the containing menu from outside the component.
|
|
474
|
+
* @param classes list of class names
|
|
475
|
+
*/
|
|
476
|
+
set panelClass(classes) {
|
|
477
|
+
const previousPanelClass = this._previousPanelClass;
|
|
478
|
+
if (previousPanelClass && previousPanelClass.length) {
|
|
479
|
+
previousPanelClass.split(' ').forEach((className) => {
|
|
480
|
+
this._classList[className] = false;
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
this._previousPanelClass = classes;
|
|
484
|
+
if (classes && classes.length) {
|
|
485
|
+
classes.split(' ').forEach((className) => {
|
|
486
|
+
this._classList[className] = true;
|
|
487
|
+
});
|
|
488
|
+
this._elementRef.nativeElement.className = '';
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* This method takes classes set on the host mat-menu element and applies them on the
|
|
493
|
+
* menu template that displays in the overlay container. Otherwise, it's difficult
|
|
494
|
+
* to style the containing menu from outside the component.
|
|
495
|
+
* @deprecated Use `panelClass` instead.
|
|
496
|
+
* @breaking-change 8.0.0
|
|
497
|
+
*/
|
|
498
|
+
get classList() { return this.panelClass; }
|
|
499
|
+
set classList(classes) { this.panelClass = classes; }
|
|
500
|
+
ngOnInit() {
|
|
501
|
+
this.setPositionClasses();
|
|
502
|
+
}
|
|
503
|
+
ngAfterContentInit() {
|
|
504
|
+
this._updateDirectDescendants();
|
|
505
|
+
this._keyManager = new FocusKeyManager(this._directDescendantItems)
|
|
506
|
+
.withWrap()
|
|
507
|
+
.withTypeAhead()
|
|
508
|
+
.withHomeAndEnd();
|
|
509
|
+
this._tabSubscription = this._keyManager.tabOut.subscribe(() => this.closed.emit('tab'));
|
|
510
|
+
// If a user manually (programmatically) focuses a menu item, we need to reflect that focus
|
|
511
|
+
// change back to the key manager. Note that we don't need to unsubscribe here because _focused
|
|
512
|
+
// is internal and we know that it gets completed on destroy.
|
|
513
|
+
this._directDescendantItems.changes.pipe(startWith(this._directDescendantItems), switchMap(items => merge(...items.map((item) => item._focused)))).subscribe(focusedItem => this._keyManager.updateActiveItem(focusedItem));
|
|
514
|
+
}
|
|
515
|
+
ngOnDestroy() {
|
|
516
|
+
this._directDescendantItems.destroy();
|
|
517
|
+
this._tabSubscription.unsubscribe();
|
|
518
|
+
this.closed.complete();
|
|
519
|
+
}
|
|
520
|
+
/** Stream that emits whenever the hovered menu item changes. */
|
|
521
|
+
_hovered() {
|
|
522
|
+
// Coerce the `changes` property because Angular types it as `Observable<any>`
|
|
523
|
+
const itemChanges = this._directDescendantItems.changes;
|
|
524
|
+
return itemChanges.pipe(startWith(this._directDescendantItems), switchMap(items => merge(...items.map((item) => item._hovered))));
|
|
525
|
+
}
|
|
526
|
+
/*
|
|
527
|
+
* Registers a menu item with the menu.
|
|
528
|
+
* @docs-private
|
|
529
|
+
* @deprecated No longer being used. To be removed.
|
|
530
|
+
* @breaking-change 9.0.0
|
|
531
|
+
*/
|
|
532
|
+
addItem(_item) { }
|
|
533
|
+
/**
|
|
534
|
+
* Removes an item from the menu.
|
|
535
|
+
* @docs-private
|
|
536
|
+
* @deprecated No longer being used. To be removed.
|
|
537
|
+
* @breaking-change 9.0.0
|
|
538
|
+
*/
|
|
539
|
+
removeItem(_item) { }
|
|
540
|
+
/** Handle a keyboard event from the menu, delegating to the appropriate action. */
|
|
541
|
+
_handleKeydown(event) {
|
|
542
|
+
const keyCode = event.keyCode;
|
|
543
|
+
const manager = this._keyManager;
|
|
544
|
+
switch (keyCode) {
|
|
545
|
+
case ESCAPE:
|
|
546
|
+
if (!hasModifierKey(event)) {
|
|
547
|
+
event.preventDefault();
|
|
548
|
+
this.closed.emit('keydown');
|
|
549
|
+
}
|
|
550
|
+
break;
|
|
551
|
+
case LEFT_ARROW:
|
|
552
|
+
if (this.parentMenu && this.direction === 'ltr') {
|
|
553
|
+
this.closed.emit('keydown');
|
|
554
|
+
}
|
|
555
|
+
break;
|
|
556
|
+
case RIGHT_ARROW:
|
|
557
|
+
if (this.parentMenu && this.direction === 'rtl') {
|
|
558
|
+
this.closed.emit('keydown');
|
|
559
|
+
}
|
|
560
|
+
break;
|
|
561
|
+
default:
|
|
562
|
+
if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {
|
|
563
|
+
manager.setFocusOrigin('keyboard');
|
|
564
|
+
}
|
|
565
|
+
manager.onKeydown(event);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Focus the first item in the menu.
|
|
570
|
+
* @param origin Action from which the focus originated. Used to set the correct styling.
|
|
571
|
+
*/
|
|
572
|
+
focusFirstItem(origin = 'program') {
|
|
573
|
+
// When the content is rendered lazily, it takes a bit before the items are inside the DOM.
|
|
574
|
+
if (this.lazyContent) {
|
|
575
|
+
this._ngZone.onStable
|
|
576
|
+
.pipe(take(1))
|
|
577
|
+
.subscribe(() => this._focusFirstItem(origin));
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
this._focusFirstItem(origin);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Actual implementation that focuses the first item. Needs to be separated
|
|
585
|
+
* out so we don't repeat the same logic in the public `focusFirstItem` method.
|
|
586
|
+
*/
|
|
587
|
+
_focusFirstItem(origin) {
|
|
588
|
+
const manager = this._keyManager;
|
|
589
|
+
manager.setFocusOrigin(origin).setFirstItemActive();
|
|
590
|
+
// If there's no active item at this point, it means that all the items are disabled.
|
|
591
|
+
// Move focus to the menu panel so keyboard events like Escape still work. Also this will
|
|
592
|
+
// give _some_ feedback to screen readers.
|
|
593
|
+
if (!manager.activeItem && this._directDescendantItems.length) {
|
|
594
|
+
let element = this._directDescendantItems.first._getHostElement().parentElement;
|
|
595
|
+
// Because the `mat-menu` is at the DOM insertion point, not inside the overlay, we don't
|
|
596
|
+
// have a nice way of getting a hold of the menu panel. We can't use a `ViewChild` either
|
|
597
|
+
// because the panel is inside an `ng-template`. We work around it by starting from one of
|
|
598
|
+
// the items and walking up the DOM.
|
|
599
|
+
while (element) {
|
|
600
|
+
if (element.getAttribute('role') === 'menu') {
|
|
601
|
+
element.focus();
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
else {
|
|
605
|
+
element = element.parentElement;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Resets the active item in the menu. This is used when the menu is opened, allowing
|
|
612
|
+
* the user to start from the first option when pressing the down arrow.
|
|
613
|
+
*/
|
|
614
|
+
resetActiveItem() {
|
|
615
|
+
this._keyManager.setActiveItem(-1);
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Sets the menu panel elevation.
|
|
619
|
+
* @param depth Number of parent menus that come before the menu.
|
|
620
|
+
*/
|
|
621
|
+
setElevation(depth) {
|
|
622
|
+
// The elevation starts at the base and increases by one for each level.
|
|
623
|
+
// Capped at 24 because that's the maximum elevation defined in the Material design spec.
|
|
624
|
+
const elevation = Math.min(this._baseElevation + depth, 24);
|
|
625
|
+
const newElevation = `${this._elevationPrefix}${elevation}`;
|
|
626
|
+
const customElevation = Object.keys(this._classList).find(className => {
|
|
627
|
+
return className.startsWith(this._elevationPrefix);
|
|
628
|
+
});
|
|
629
|
+
if (!customElevation || customElevation === this._previousElevation) {
|
|
630
|
+
if (this._previousElevation) {
|
|
631
|
+
this._classList[this._previousElevation] = false;
|
|
632
|
+
}
|
|
633
|
+
this._classList[newElevation] = true;
|
|
634
|
+
this._previousElevation = newElevation;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Adds classes to the menu panel based on its position. Can be used by
|
|
639
|
+
* consumers to add specific styling based on the position.
|
|
640
|
+
* @param posX Position of the menu along the x axis.
|
|
641
|
+
* @param posY Position of the menu along the y axis.
|
|
642
|
+
* @docs-private
|
|
643
|
+
*/
|
|
644
|
+
setPositionClasses(posX = this.xPosition, posY = this.yPosition) {
|
|
645
|
+
const classes = this._classList;
|
|
646
|
+
classes['mat-menu-before'] = posX === 'before';
|
|
647
|
+
classes['mat-menu-after'] = posX === 'after';
|
|
648
|
+
classes['mat-menu-above'] = posY === 'above';
|
|
649
|
+
classes['mat-menu-below'] = posY === 'below';
|
|
650
|
+
}
|
|
651
|
+
/** Starts the enter animation. */
|
|
652
|
+
_startAnimation() {
|
|
653
|
+
// @breaking-change 8.0.0 Combine with _resetAnimation.
|
|
654
|
+
this._panelAnimationState = 'enter';
|
|
655
|
+
}
|
|
656
|
+
/** Resets the panel animation to its initial state. */
|
|
657
|
+
_resetAnimation() {
|
|
658
|
+
// @breaking-change 8.0.0 Combine with _startAnimation.
|
|
659
|
+
this._panelAnimationState = 'void';
|
|
660
|
+
}
|
|
661
|
+
/** Callback that is invoked when the panel animation completes. */
|
|
662
|
+
_onAnimationDone(event) {
|
|
663
|
+
this._animationDone.next(event);
|
|
664
|
+
this._isAnimating = false;
|
|
665
|
+
}
|
|
666
|
+
_onAnimationStart(event) {
|
|
667
|
+
this._isAnimating = true;
|
|
668
|
+
// Scroll the content element to the top as soon as the animation starts. This is necessary,
|
|
669
|
+
// because we move focus to the first item while it's still being animated, which can throw
|
|
670
|
+
// the browser off when it determines the scroll position. Alternatively we can move focus
|
|
671
|
+
// when the animation is done, however moving focus asynchronously will interrupt screen
|
|
672
|
+
// readers which are in the process of reading out the menu already. We take the `element`
|
|
673
|
+
// from the `event` since we can't use a `ViewChild` to access the pane.
|
|
674
|
+
if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) {
|
|
675
|
+
event.element.scrollTop = 0;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Sets up a stream that will keep track of any newly-added menu items and will update the list
|
|
680
|
+
* of direct descendants. We collect the descendants this way, because `_allItems` can include
|
|
681
|
+
* items that are part of child menus, and using a custom way of registering items is unreliable
|
|
682
|
+
* when it comes to maintaining the item order.
|
|
683
|
+
*/
|
|
684
|
+
_updateDirectDescendants() {
|
|
685
|
+
this._allItems.changes
|
|
686
|
+
.pipe(startWith(this._allItems))
|
|
687
|
+
.subscribe((items) => {
|
|
688
|
+
this._directDescendantItems.reset(items.filter(item => item._parentMenu === this));
|
|
689
|
+
this._directDescendantItems.notifyOnChanges();
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
_MatMenuBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatMenuBase, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: MAT_MENU_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });
|
|
694
|
+
_MatMenuBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatMenuBase, inputs: { backdropClass: "backdropClass", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], ariaDescribedby: ["aria-describedby", "ariaDescribedby"], xPosition: "xPosition", yPosition: "yPosition", overlapTrigger: "overlapTrigger", hasBackdrop: "hasBackdrop", panelClass: ["class", "panelClass"], classList: "classList" }, outputs: { closed: "closed", close: "close" }, queries: [{ propertyName: "lazyContent", first: true, predicate: MAT_MENU_CONTENT, descendants: true }, { propertyName: "_allItems", predicate: MatMenuItem, descendants: true }, { propertyName: "items", predicate: MatMenuItem }], viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });
|
|
695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatMenuBase, decorators: [{
|
|
696
|
+
type: Directive
|
|
697
|
+
}], ctorParameters: function () {
|
|
698
|
+
return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
699
|
+
type: Inject,
|
|
700
|
+
args: [MAT_MENU_DEFAULT_OPTIONS]
|
|
701
|
+
}] }];
|
|
702
|
+
}, propDecorators: { _allItems: [{
|
|
703
|
+
type: ContentChildren,
|
|
704
|
+
args: [MatMenuItem, { descendants: true }]
|
|
705
|
+
}], backdropClass: [{
|
|
706
|
+
type: Input
|
|
707
|
+
}], ariaLabel: [{
|
|
708
|
+
type: Input,
|
|
709
|
+
args: ['aria-label']
|
|
710
|
+
}], ariaLabelledby: [{
|
|
711
|
+
type: Input,
|
|
712
|
+
args: ['aria-labelledby']
|
|
713
|
+
}], ariaDescribedby: [{
|
|
714
|
+
type: Input,
|
|
715
|
+
args: ['aria-describedby']
|
|
716
|
+
}], xPosition: [{
|
|
717
|
+
type: Input
|
|
718
|
+
}], yPosition: [{
|
|
719
|
+
type: Input
|
|
720
|
+
}], templateRef: [{
|
|
721
|
+
type: ViewChild,
|
|
722
|
+
args: [TemplateRef]
|
|
723
|
+
}], items: [{
|
|
724
|
+
type: ContentChildren,
|
|
725
|
+
args: [MatMenuItem, { descendants: false }]
|
|
726
|
+
}], lazyContent: [{
|
|
727
|
+
type: ContentChild,
|
|
728
|
+
args: [MAT_MENU_CONTENT]
|
|
729
|
+
}], overlapTrigger: [{
|
|
730
|
+
type: Input
|
|
731
|
+
}], hasBackdrop: [{
|
|
732
|
+
type: Input
|
|
733
|
+
}], panelClass: [{
|
|
734
|
+
type: Input,
|
|
735
|
+
args: ['class']
|
|
736
|
+
}], classList: [{
|
|
737
|
+
type: Input
|
|
738
|
+
}], closed: [{
|
|
739
|
+
type: Output
|
|
740
|
+
}], close: [{
|
|
741
|
+
type: Output
|
|
742
|
+
}] } });
|
|
743
|
+
/** @docs-public MatMenu */
|
|
744
|
+
class MatMenu extends _MatMenuBase {
|
|
745
|
+
constructor(elementRef, ngZone, defaultOptions) {
|
|
746
|
+
super(elementRef, ngZone, defaultOptions);
|
|
747
|
+
this._elevationPrefix = 'mat-elevation-z';
|
|
748
|
+
this._baseElevation = 4;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
MatMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenu, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: MAT_MENU_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
752
|
+
MatMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatMenu, selector: "mat-menu", host: { properties: { "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.aria-describedby": "null" } }, providers: [
|
|
753
|
+
{ provide: MAT_MENU_PANEL, useExisting: MatMenu },
|
|
754
|
+
], exportAs: ["matMenu"], usesInheritance: true, ngImport: i0, template: "<ng-template>\n <div\n class=\"mat-menu-panel\"\n [id]=\"panelId\"\n [ngClass]=\"_classList\"\n (keydown)=\"_handleKeydown($event)\"\n (click)=\"closed.emit('click')\"\n [@transformMenu]=\"_panelAnimationState\"\n (@transformMenu.start)=\"_onAnimationStart($event)\"\n (@transformMenu.done)=\"_onAnimationDone($event)\"\n tabindex=\"-1\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n [attr.aria-describedby]=\"ariaDescribedby || null\">\n <div class=\"mat-menu-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: ["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
755
|
+
matMenuAnimations.transformMenu,
|
|
756
|
+
matMenuAnimations.fadeInItems
|
|
757
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenu, decorators: [{
|
|
759
|
+
type: Component,
|
|
760
|
+
args: [{ selector: 'mat-menu', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matMenu', host: {
|
|
761
|
+
'[attr.aria-label]': 'null',
|
|
762
|
+
'[attr.aria-labelledby]': 'null',
|
|
763
|
+
'[attr.aria-describedby]': 'null',
|
|
764
|
+
}, animations: [
|
|
765
|
+
matMenuAnimations.transformMenu,
|
|
766
|
+
matMenuAnimations.fadeInItems
|
|
767
|
+
], providers: [
|
|
768
|
+
{ provide: MAT_MENU_PANEL, useExisting: MatMenu },
|
|
769
|
+
], template: "<ng-template>\n <div\n class=\"mat-menu-panel\"\n [id]=\"panelId\"\n [ngClass]=\"_classList\"\n (keydown)=\"_handleKeydown($event)\"\n (click)=\"closed.emit('click')\"\n [@transformMenu]=\"_panelAnimationState\"\n (@transformMenu.start)=\"_onAnimationStart($event)\"\n (@transformMenu.done)=\"_onAnimationDone($event)\"\n tabindex=\"-1\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n [attr.aria-describedby]=\"ariaDescribedby || null\">\n <div class=\"mat-menu-content\">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: ["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"] }]
|
|
770
|
+
}], ctorParameters: function () {
|
|
771
|
+
return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
772
|
+
type: Inject,
|
|
773
|
+
args: [MAT_MENU_DEFAULT_OPTIONS]
|
|
774
|
+
}] }];
|
|
775
|
+
} });
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* @license
|
|
779
|
+
* Copyright Google LLC All Rights Reserved.
|
|
780
|
+
*
|
|
781
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
782
|
+
* found in the LICENSE file at https://angular.io/license
|
|
783
|
+
*/
|
|
784
|
+
/** Injection token that determines the scroll handling while the menu is open. */
|
|
785
|
+
const MAT_MENU_SCROLL_STRATEGY = new InjectionToken('mat-menu-scroll-strategy');
|
|
786
|
+
/** @docs-private */
|
|
787
|
+
function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
788
|
+
return () => overlay.scrollStrategies.reposition();
|
|
789
|
+
}
|
|
790
|
+
/** @docs-private */
|
|
791
|
+
const MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
792
|
+
provide: MAT_MENU_SCROLL_STRATEGY,
|
|
793
|
+
deps: [Overlay],
|
|
794
|
+
useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY,
|
|
795
|
+
};
|
|
796
|
+
/** Default top padding of the menu panel. */
|
|
797
|
+
const MENU_PANEL_TOP_PADDING = 8;
|
|
798
|
+
/** Options for binding a passive event listener. */
|
|
799
|
+
const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
|
|
800
|
+
// TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors
|
|
801
|
+
class _MatMenuTriggerBase {
|
|
802
|
+
constructor(_overlay, _element, _viewContainerRef, scrollStrategy, parentMenu,
|
|
803
|
+
// `MatMenuTrigger` is commonly used in combination with a `MatMenuItem`.
|
|
804
|
+
// tslint:disable-next-line: lightweight-tokens
|
|
805
|
+
_menuItemInstance, _dir,
|
|
806
|
+
// TODO(crisbeto): make the _focusMonitor required when doing breaking changes.
|
|
807
|
+
// @breaking-change 8.0.0
|
|
808
|
+
_focusMonitor) {
|
|
809
|
+
this._overlay = _overlay;
|
|
810
|
+
this._element = _element;
|
|
811
|
+
this._viewContainerRef = _viewContainerRef;
|
|
812
|
+
this._menuItemInstance = _menuItemInstance;
|
|
813
|
+
this._dir = _dir;
|
|
814
|
+
this._focusMonitor = _focusMonitor;
|
|
815
|
+
this._overlayRef = null;
|
|
816
|
+
this._menuOpen = false;
|
|
817
|
+
this._closingActionsSubscription = Subscription.EMPTY;
|
|
818
|
+
this._hoverSubscription = Subscription.EMPTY;
|
|
819
|
+
this._menuCloseSubscription = Subscription.EMPTY;
|
|
820
|
+
/**
|
|
821
|
+
* Handles touch start events on the trigger.
|
|
822
|
+
* Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
|
|
823
|
+
*/
|
|
824
|
+
this._handleTouchStart = (event) => {
|
|
825
|
+
if (!isFakeTouchstartFromScreenReader(event)) {
|
|
826
|
+
this._openedBy = 'touch';
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
// Tracking input type is necessary so it's possible to only auto-focus
|
|
830
|
+
// the first item of the list when the menu is opened via the keyboard
|
|
831
|
+
this._openedBy = undefined;
|
|
832
|
+
this._ariaHaspopup = true;
|
|
833
|
+
/**
|
|
834
|
+
* Whether focus should be restored when the menu is closed.
|
|
835
|
+
* Note that disabling this option can have accessibility implications
|
|
836
|
+
* and it's up to you to manage focus, if you decide to turn it off.
|
|
837
|
+
*/
|
|
838
|
+
this.restoreFocus = true;
|
|
839
|
+
/** Event emitted when the associated menu is opened. */
|
|
840
|
+
this.menuOpened = new EventEmitter();
|
|
841
|
+
/**
|
|
842
|
+
* Event emitted when the associated menu is opened.
|
|
843
|
+
* @deprecated Switch to `menuOpened` instead
|
|
844
|
+
* @breaking-change 8.0.0
|
|
845
|
+
*/
|
|
846
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
847
|
+
this.onMenuOpen = this.menuOpened;
|
|
848
|
+
/** Event emitted when the associated menu is closed. */
|
|
849
|
+
this.menuClosed = new EventEmitter();
|
|
850
|
+
/**
|
|
851
|
+
* Event emitted when the associated menu is closed.
|
|
852
|
+
* @deprecated Switch to `menuClosed` instead
|
|
853
|
+
* @breaking-change 8.0.0
|
|
854
|
+
*/
|
|
855
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
856
|
+
this.onMenuClose = this.menuClosed;
|
|
857
|
+
this._scrollStrategy = scrollStrategy;
|
|
858
|
+
this._parentMaterialMenu = parentMenu instanceof _MatMenuBase ? parentMenu : undefined;
|
|
859
|
+
_element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
860
|
+
if (_menuItemInstance) {
|
|
861
|
+
_menuItemInstance._triggersSubmenu = this.triggersSubmenu();
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
get _ariaExpanded() {
|
|
865
|
+
return this.menuOpen || null;
|
|
866
|
+
}
|
|
867
|
+
get _ariaControl() {
|
|
868
|
+
return this.menuOpen ? this.menu.panelId : null;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* @deprecated
|
|
872
|
+
* @breaking-change 8.0.0
|
|
873
|
+
*/
|
|
874
|
+
get _deprecatedMatMenuTriggerFor() { return this.menu; }
|
|
875
|
+
set _deprecatedMatMenuTriggerFor(v) {
|
|
876
|
+
this.menu = v;
|
|
877
|
+
}
|
|
878
|
+
/** References the menu instance that the trigger is associated with. */
|
|
879
|
+
get menu() { return this._menu; }
|
|
880
|
+
set menu(menu) {
|
|
881
|
+
if (menu === this._menu) {
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
this._menu = menu;
|
|
885
|
+
this._menuCloseSubscription.unsubscribe();
|
|
886
|
+
if (menu) {
|
|
887
|
+
if (menu === this._parentMaterialMenu && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
888
|
+
throwMatMenuRecursiveError();
|
|
889
|
+
}
|
|
890
|
+
this._menuCloseSubscription = menu.close.subscribe((reason) => {
|
|
891
|
+
this._destroyMenu(reason);
|
|
892
|
+
// If a click closed the menu, we should close the entire chain of nested menus.
|
|
893
|
+
if ((reason === 'click' || reason === 'tab') && this._parentMaterialMenu) {
|
|
894
|
+
this._parentMaterialMenu.closed.emit(reason);
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
ngAfterContentInit() {
|
|
900
|
+
this._checkMenu();
|
|
901
|
+
this._handleHover();
|
|
902
|
+
}
|
|
903
|
+
ngOnDestroy() {
|
|
904
|
+
if (this._overlayRef) {
|
|
905
|
+
this._overlayRef.dispose();
|
|
906
|
+
this._overlayRef = null;
|
|
907
|
+
}
|
|
908
|
+
this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
909
|
+
this._menuCloseSubscription.unsubscribe();
|
|
910
|
+
this._closingActionsSubscription.unsubscribe();
|
|
911
|
+
this._hoverSubscription.unsubscribe();
|
|
912
|
+
}
|
|
913
|
+
/** Whether the menu is open. */
|
|
914
|
+
get menuOpen() {
|
|
915
|
+
return this._menuOpen;
|
|
916
|
+
}
|
|
917
|
+
/** The text direction of the containing app. */
|
|
918
|
+
get dir() {
|
|
919
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
920
|
+
}
|
|
921
|
+
/** Whether the menu triggers a sub-menu or a top-level one. */
|
|
922
|
+
triggersSubmenu() {
|
|
923
|
+
return !!(this._menuItemInstance && this._parentMaterialMenu);
|
|
924
|
+
}
|
|
925
|
+
/** Toggles the menu between the open and closed states. */
|
|
926
|
+
toggleMenu() {
|
|
927
|
+
return this._menuOpen ? this.closeMenu() : this.openMenu();
|
|
928
|
+
}
|
|
929
|
+
/** Opens the menu. */
|
|
930
|
+
openMenu() {
|
|
931
|
+
if (this._menuOpen) {
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
this._checkMenu();
|
|
935
|
+
const overlayRef = this._createOverlay();
|
|
936
|
+
const overlayConfig = overlayRef.getConfig();
|
|
937
|
+
this._setPosition(overlayConfig.positionStrategy);
|
|
938
|
+
overlayConfig.hasBackdrop = this.menu.hasBackdrop == null ? !this.triggersSubmenu() :
|
|
939
|
+
this.menu.hasBackdrop;
|
|
940
|
+
overlayRef.attach(this._getPortal());
|
|
941
|
+
if (this.menu.lazyContent) {
|
|
942
|
+
this.menu.lazyContent.attach(this.menuData);
|
|
943
|
+
}
|
|
944
|
+
this._closingActionsSubscription = this._menuClosingActions().subscribe(() => this.closeMenu());
|
|
945
|
+
this._initMenu();
|
|
946
|
+
if (this.menu instanceof _MatMenuBase) {
|
|
947
|
+
this.menu._startAnimation();
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
/** Closes the menu. */
|
|
951
|
+
closeMenu() {
|
|
952
|
+
this.menu.close.emit();
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Focuses the menu trigger.
|
|
956
|
+
* @param origin Source of the menu trigger's focus.
|
|
957
|
+
*/
|
|
958
|
+
focus(origin, options) {
|
|
959
|
+
if (this._focusMonitor && origin) {
|
|
960
|
+
this._focusMonitor.focusVia(this._element, origin, options);
|
|
961
|
+
}
|
|
962
|
+
else {
|
|
963
|
+
this._element.nativeElement.focus(options);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Updates the position of the menu to ensure that it fits all options within the viewport.
|
|
968
|
+
*/
|
|
969
|
+
updatePosition() {
|
|
970
|
+
var _a;
|
|
971
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
972
|
+
}
|
|
973
|
+
/** Closes the menu and does the necessary cleanup. */
|
|
974
|
+
_destroyMenu(reason) {
|
|
975
|
+
if (!this._overlayRef || !this.menuOpen) {
|
|
976
|
+
return;
|
|
977
|
+
}
|
|
978
|
+
const menu = this.menu;
|
|
979
|
+
this._closingActionsSubscription.unsubscribe();
|
|
980
|
+
this._overlayRef.detach();
|
|
981
|
+
// Always restore focus if the user is navigating using the keyboard or the menu was opened
|
|
982
|
+
// programmatically. We don't restore for non-root triggers, because it can prevent focus
|
|
983
|
+
// from making it back to the root trigger when closing a long chain of menus by clicking
|
|
984
|
+
// on the backdrop.
|
|
985
|
+
if (this.restoreFocus && (reason === 'keydown' || !this._openedBy || !this.triggersSubmenu())) {
|
|
986
|
+
this.focus(this._openedBy);
|
|
987
|
+
}
|
|
988
|
+
this._openedBy = undefined;
|
|
989
|
+
if (menu instanceof _MatMenuBase) {
|
|
990
|
+
menu._resetAnimation();
|
|
991
|
+
if (menu.lazyContent) {
|
|
992
|
+
// Wait for the exit animation to finish before detaching the content.
|
|
993
|
+
menu._animationDone
|
|
994
|
+
.pipe(filter(event => event.toState === 'void'), take(1),
|
|
995
|
+
// Interrupt if the content got re-attached.
|
|
996
|
+
takeUntil(menu.lazyContent._attached))
|
|
997
|
+
.subscribe({
|
|
998
|
+
next: () => menu.lazyContent.detach(),
|
|
999
|
+
// No matter whether the content got re-attached, reset the menu.
|
|
1000
|
+
complete: () => this._setIsMenuOpen(false)
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
else {
|
|
1004
|
+
this._setIsMenuOpen(false);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
this._setIsMenuOpen(false);
|
|
1009
|
+
if (menu.lazyContent) {
|
|
1010
|
+
menu.lazyContent.detach();
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* This method sets the menu state to open and focuses the first item if
|
|
1016
|
+
* the menu was opened via the keyboard.
|
|
1017
|
+
*/
|
|
1018
|
+
_initMenu() {
|
|
1019
|
+
this.menu.parentMenu = this.triggersSubmenu() ? this._parentMaterialMenu : undefined;
|
|
1020
|
+
this.menu.direction = this.dir;
|
|
1021
|
+
this._setMenuElevation();
|
|
1022
|
+
this.menu.focusFirstItem(this._openedBy || 'program');
|
|
1023
|
+
this._setIsMenuOpen(true);
|
|
1024
|
+
}
|
|
1025
|
+
/** Updates the menu elevation based on the amount of parent menus that it has. */
|
|
1026
|
+
_setMenuElevation() {
|
|
1027
|
+
if (this.menu.setElevation) {
|
|
1028
|
+
let depth = 0;
|
|
1029
|
+
let parentMenu = this.menu.parentMenu;
|
|
1030
|
+
while (parentMenu) {
|
|
1031
|
+
depth++;
|
|
1032
|
+
parentMenu = parentMenu.parentMenu;
|
|
1033
|
+
}
|
|
1034
|
+
this.menu.setElevation(depth);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1038
|
+
_setIsMenuOpen(isOpen) {
|
|
1039
|
+
this._menuOpen = isOpen;
|
|
1040
|
+
this._menuOpen ? this.menuOpened.emit() : this.menuClosed.emit();
|
|
1041
|
+
if (this.triggersSubmenu()) {
|
|
1042
|
+
this._menuItemInstance._setHighlighted(isOpen);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* This method checks that a valid instance of MatMenu has been passed into
|
|
1047
|
+
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1048
|
+
*/
|
|
1049
|
+
_checkMenu() {
|
|
1050
|
+
if (!this.menu && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
1051
|
+
throwMatMenuMissingError();
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* This method creates the overlay from the provided menu's template and saves its
|
|
1056
|
+
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1057
|
+
*/
|
|
1058
|
+
_createOverlay() {
|
|
1059
|
+
if (!this._overlayRef) {
|
|
1060
|
+
const config = this._getOverlayConfig();
|
|
1061
|
+
this._subscribeToPositions(config.positionStrategy);
|
|
1062
|
+
this._overlayRef = this._overlay.create(config);
|
|
1063
|
+
// Consume the `keydownEvents` in order to prevent them from going to another overlay.
|
|
1064
|
+
// Ideally we'd also have our keyboard event logic in here, however doing so will
|
|
1065
|
+
// break anybody that may have implemented the `MatMenuPanel` themselves.
|
|
1066
|
+
this._overlayRef.keydownEvents().subscribe();
|
|
1067
|
+
}
|
|
1068
|
+
return this._overlayRef;
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1072
|
+
* @returns OverlayConfig
|
|
1073
|
+
*/
|
|
1074
|
+
_getOverlayConfig() {
|
|
1075
|
+
return new OverlayConfig({
|
|
1076
|
+
positionStrategy: this._overlay.position()
|
|
1077
|
+
.flexibleConnectedTo(this._element)
|
|
1078
|
+
.withLockedPosition()
|
|
1079
|
+
.withGrowAfterOpen()
|
|
1080
|
+
.withTransformOriginOn('.mat-menu-panel, .mat-mdc-menu-panel'),
|
|
1081
|
+
backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop',
|
|
1082
|
+
panelClass: this.menu.overlayPanelClass,
|
|
1083
|
+
scrollStrategy: this._scrollStrategy(),
|
|
1084
|
+
direction: this._dir
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1089
|
+
* on the menu based on the new position. This ensures the animation origin is always
|
|
1090
|
+
* correct, even if a fallback position is used for the overlay.
|
|
1091
|
+
*/
|
|
1092
|
+
_subscribeToPositions(position) {
|
|
1093
|
+
if (this.menu.setPositionClasses) {
|
|
1094
|
+
position.positionChanges.subscribe(change => {
|
|
1095
|
+
const posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
|
|
1096
|
+
const posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1097
|
+
this.menu.setPositionClasses(posX, posY);
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Sets the appropriate positions on a position strategy
|
|
1103
|
+
* so the overlay connects with the trigger correctly.
|
|
1104
|
+
* @param positionStrategy Strategy whose position to update.
|
|
1105
|
+
*/
|
|
1106
|
+
_setPosition(positionStrategy) {
|
|
1107
|
+
let [originX, originFallbackX] = this.menu.xPosition === 'before' ? ['end', 'start'] : ['start', 'end'];
|
|
1108
|
+
let [overlayY, overlayFallbackY] = this.menu.yPosition === 'above' ? ['bottom', 'top'] : ['top', 'bottom'];
|
|
1109
|
+
let [originY, originFallbackY] = [overlayY, overlayFallbackY];
|
|
1110
|
+
let [overlayX, overlayFallbackX] = [originX, originFallbackX];
|
|
1111
|
+
let offsetY = 0;
|
|
1112
|
+
if (this.triggersSubmenu()) {
|
|
1113
|
+
// When the menu is a sub-menu, it should always align itself
|
|
1114
|
+
// to the edges of the trigger, instead of overlapping it.
|
|
1115
|
+
overlayFallbackX = originX = this.menu.xPosition === 'before' ? 'start' : 'end';
|
|
1116
|
+
originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';
|
|
1117
|
+
offsetY = overlayY === 'bottom' ? MENU_PANEL_TOP_PADDING : -MENU_PANEL_TOP_PADDING;
|
|
1118
|
+
}
|
|
1119
|
+
else if (!this.menu.overlapTrigger) {
|
|
1120
|
+
originY = overlayY === 'top' ? 'bottom' : 'top';
|
|
1121
|
+
originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';
|
|
1122
|
+
}
|
|
1123
|
+
positionStrategy.withPositions([
|
|
1124
|
+
{ originX, originY, overlayX, overlayY, offsetY },
|
|
1125
|
+
{ originX: originFallbackX, originY, overlayX: overlayFallbackX, overlayY, offsetY },
|
|
1126
|
+
{
|
|
1127
|
+
originX,
|
|
1128
|
+
originY: originFallbackY,
|
|
1129
|
+
overlayX,
|
|
1130
|
+
overlayY: overlayFallbackY,
|
|
1131
|
+
offsetY: -offsetY
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
originX: originFallbackX,
|
|
1135
|
+
originY: originFallbackY,
|
|
1136
|
+
overlayX: overlayFallbackX,
|
|
1137
|
+
overlayY: overlayFallbackY,
|
|
1138
|
+
offsetY: -offsetY
|
|
1139
|
+
}
|
|
1140
|
+
]);
|
|
1141
|
+
}
|
|
1142
|
+
/** Returns a stream that emits whenever an action that should close the menu occurs. */
|
|
1143
|
+
_menuClosingActions() {
|
|
1144
|
+
const backdrop = this._overlayRef.backdropClick();
|
|
1145
|
+
const detachments = this._overlayRef.detachments();
|
|
1146
|
+
const parentClose = this._parentMaterialMenu ? this._parentMaterialMenu.closed : of();
|
|
1147
|
+
const hover = this._parentMaterialMenu ? this._parentMaterialMenu._hovered().pipe(filter(active => active !== this._menuItemInstance), filter(() => this._menuOpen)) : of();
|
|
1148
|
+
return merge(backdrop, parentClose, hover, detachments);
|
|
1149
|
+
}
|
|
1150
|
+
/** Handles mouse presses on the trigger. */
|
|
1151
|
+
_handleMousedown(event) {
|
|
1152
|
+
if (!isFakeMousedownFromScreenReader(event)) {
|
|
1153
|
+
// Since right or middle button clicks won't trigger the `click` event,
|
|
1154
|
+
// we shouldn't consider the menu as opened by mouse in those cases.
|
|
1155
|
+
this._openedBy = event.button === 0 ? 'mouse' : undefined;
|
|
1156
|
+
// Since clicking on the trigger won't close the menu if it opens a sub-menu,
|
|
1157
|
+
// we should prevent focus from moving onto it via click to avoid the
|
|
1158
|
+
// highlight from lingering on the menu item.
|
|
1159
|
+
if (this.triggersSubmenu()) {
|
|
1160
|
+
event.preventDefault();
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
/** Handles key presses on the trigger. */
|
|
1165
|
+
_handleKeydown(event) {
|
|
1166
|
+
const keyCode = event.keyCode;
|
|
1167
|
+
// Pressing enter on the trigger will trigger the click handler later.
|
|
1168
|
+
if (keyCode === ENTER || keyCode === SPACE) {
|
|
1169
|
+
this._openedBy = 'keyboard';
|
|
1170
|
+
}
|
|
1171
|
+
if (this.triggersSubmenu() && ((keyCode === RIGHT_ARROW && this.dir === 'ltr') ||
|
|
1172
|
+
(keyCode === LEFT_ARROW && this.dir === 'rtl'))) {
|
|
1173
|
+
this._openedBy = 'keyboard';
|
|
1174
|
+
this.openMenu();
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
/** Handles click events on the trigger. */
|
|
1178
|
+
_handleClick(event) {
|
|
1179
|
+
if (this.triggersSubmenu()) {
|
|
1180
|
+
// Stop event propagation to avoid closing the parent menu.
|
|
1181
|
+
event.stopPropagation();
|
|
1182
|
+
this.openMenu();
|
|
1183
|
+
}
|
|
1184
|
+
else {
|
|
1185
|
+
this.toggleMenu();
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
/** Handles the cases where the user hovers over the trigger. */
|
|
1189
|
+
_handleHover() {
|
|
1190
|
+
// Subscribe to changes in the hovered item in order to toggle the panel.
|
|
1191
|
+
if (!this.triggersSubmenu() || !this._parentMaterialMenu) {
|
|
1192
|
+
return;
|
|
1193
|
+
}
|
|
1194
|
+
this._hoverSubscription = this._parentMaterialMenu._hovered()
|
|
1195
|
+
// Since we might have multiple competing triggers for the same menu (e.g. a sub-menu
|
|
1196
|
+
// with different data and triggers), we have to delay it by a tick to ensure that
|
|
1197
|
+
// it won't be closed immediately after it is opened.
|
|
1198
|
+
.pipe(filter(active => active === this._menuItemInstance && !active.disabled), delay(0, asapScheduler))
|
|
1199
|
+
.subscribe(() => {
|
|
1200
|
+
this._openedBy = 'mouse';
|
|
1201
|
+
// If the same menu is used between multiple triggers, it might still be animating
|
|
1202
|
+
// while the new trigger tries to re-open it. Wait for the animation to finish
|
|
1203
|
+
// before doing so. Also interrupt if the user moves to another item.
|
|
1204
|
+
if (this.menu instanceof _MatMenuBase && this.menu._isAnimating) {
|
|
1205
|
+
// We need the `delay(0)` here in order to avoid
|
|
1206
|
+
// 'changed after checked' errors in some cases. See #12194.
|
|
1207
|
+
this.menu._animationDone
|
|
1208
|
+
.pipe(take(1), delay(0, asapScheduler), takeUntil(this._parentMaterialMenu._hovered()))
|
|
1209
|
+
.subscribe(() => this.openMenu());
|
|
1210
|
+
}
|
|
1211
|
+
else {
|
|
1212
|
+
this.openMenu();
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
/** Gets the portal that should be attached to the overlay. */
|
|
1217
|
+
_getPortal() {
|
|
1218
|
+
// Note that we can avoid this check by keeping the portal on the menu panel.
|
|
1219
|
+
// While it would be cleaner, we'd have to introduce another required method on
|
|
1220
|
+
// `MatMenuPanel`, making it harder to consume.
|
|
1221
|
+
if (!this._portal || this._portal.templateRef !== this.menu.templateRef) {
|
|
1222
|
+
this._portal = new TemplatePortal(this.menu.templateRef, this._viewContainerRef);
|
|
1223
|
+
}
|
|
1224
|
+
return this._portal;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
_MatMenuTriggerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatMenuTriggerBase, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: MAT_MENU_SCROLL_STRATEGY }, { token: MAT_MENU_PANEL, optional: true }, { token: MatMenuItem, optional: true, self: true }, { token: i3$1.Directionality, optional: true }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1228
|
+
_MatMenuTriggerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatMenuTriggerBase, inputs: { _deprecatedMatMenuTriggerFor: ["mat-menu-trigger-for", "_deprecatedMatMenuTriggerFor"], menu: ["matMenuTriggerFor", "menu"], menuData: ["matMenuTriggerData", "menuData"], restoreFocus: ["matMenuTriggerRestoreFocus", "restoreFocus"] }, outputs: { menuOpened: "menuOpened", onMenuOpen: "onMenuOpen", menuClosed: "menuClosed", onMenuClose: "onMenuClose" }, host: { listeners: { "mousedown": "_handleMousedown($event)", "keydown": "_handleKeydown($event)", "click": "_handleClick($event)" }, properties: { "attr.aria-expanded": "this._ariaExpanded", "attr.aria-controls": "this._ariaControl", "attr.aria-haspopup": "this._ariaHaspopup" } }, ngImport: i0 });
|
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatMenuTriggerBase, decorators: [{
|
|
1230
|
+
type: Directive
|
|
1231
|
+
}], ctorParameters: function () {
|
|
1232
|
+
return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
1233
|
+
type: Inject,
|
|
1234
|
+
args: [MAT_MENU_SCROLL_STRATEGY]
|
|
1235
|
+
}] }, { type: undefined, decorators: [{
|
|
1236
|
+
type: Inject,
|
|
1237
|
+
args: [MAT_MENU_PANEL]
|
|
1238
|
+
}, {
|
|
1239
|
+
type: Optional
|
|
1240
|
+
}] }, { type: MatMenuItem, decorators: [{
|
|
1241
|
+
type: Optional
|
|
1242
|
+
}, {
|
|
1243
|
+
type: Self
|
|
1244
|
+
}] }, { type: i3$1.Directionality, decorators: [{
|
|
1245
|
+
type: Optional
|
|
1246
|
+
}] }, { type: i1.FocusMonitor }];
|
|
1247
|
+
}, propDecorators: { _ariaExpanded: [{
|
|
1248
|
+
type: HostBinding,
|
|
1249
|
+
args: ['attr.aria-expanded']
|
|
1250
|
+
}], _ariaControl: [{
|
|
1251
|
+
type: HostBinding,
|
|
1252
|
+
args: ['attr.aria-controls']
|
|
1253
|
+
}], _ariaHaspopup: [{
|
|
1254
|
+
type: HostBinding,
|
|
1255
|
+
args: ['attr.aria-haspopup']
|
|
1256
|
+
}], _deprecatedMatMenuTriggerFor: [{
|
|
1257
|
+
type: Input,
|
|
1258
|
+
args: ['mat-menu-trigger-for']
|
|
1259
|
+
}], menu: [{
|
|
1260
|
+
type: Input,
|
|
1261
|
+
args: ['matMenuTriggerFor']
|
|
1262
|
+
}], menuData: [{
|
|
1263
|
+
type: Input,
|
|
1264
|
+
args: ['matMenuTriggerData']
|
|
1265
|
+
}], restoreFocus: [{
|
|
1266
|
+
type: Input,
|
|
1267
|
+
args: ['matMenuTriggerRestoreFocus']
|
|
1268
|
+
}], menuOpened: [{
|
|
1269
|
+
type: Output
|
|
1270
|
+
}], onMenuOpen: [{
|
|
1271
|
+
type: Output
|
|
1272
|
+
}], menuClosed: [{
|
|
1273
|
+
type: Output
|
|
1274
|
+
}], onMenuClose: [{
|
|
1275
|
+
type: Output
|
|
1276
|
+
}], _handleMousedown: [{
|
|
1277
|
+
type: HostListener,
|
|
1278
|
+
args: ['mousedown', ['$event']]
|
|
1279
|
+
}], _handleKeydown: [{
|
|
1280
|
+
type: HostListener,
|
|
1281
|
+
args: ['keydown', ['$event']]
|
|
1282
|
+
}], _handleClick: [{
|
|
1283
|
+
type: HostListener,
|
|
1284
|
+
args: ['click', ['$event']]
|
|
1285
|
+
}] } });
|
|
1286
|
+
/** Directive applied to an element that should trigger a `mat-menu`. */
|
|
1287
|
+
class MatMenuTrigger extends _MatMenuTriggerBase {
|
|
1288
|
+
}
|
|
1289
|
+
MatMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuTrigger, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1290
|
+
MatMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", host: { classAttribute: "mat-menu-trigger" }, exportAs: ["matMenuTrigger"], usesInheritance: true, ngImport: i0 });
|
|
1291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuTrigger, decorators: [{
|
|
1292
|
+
type: Directive,
|
|
1293
|
+
args: [{
|
|
1294
|
+
selector: `[mat-menu-trigger-for], [matMenuTriggerFor]`,
|
|
1295
|
+
host: {
|
|
1296
|
+
'class': 'mat-menu-trigger',
|
|
1297
|
+
},
|
|
1298
|
+
exportAs: 'matMenuTrigger'
|
|
1299
|
+
}]
|
|
1300
|
+
}] });
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* @license
|
|
1304
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1305
|
+
*
|
|
1306
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1307
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1308
|
+
*/
|
|
1309
|
+
class MatMenuModule {
|
|
1310
|
+
}
|
|
1311
|
+
MatMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1312
|
+
MatMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuModule, declarations: [MatMenu, MatMenuItem, MatMenuTrigger, MatMenuContent], imports: [CommonModule,
|
|
1313
|
+
MatCommonModule,
|
|
1314
|
+
MatRippleModule,
|
|
1315
|
+
OverlayModule], exports: [CdkScrollableModule,
|
|
1316
|
+
MatCommonModule,
|
|
1317
|
+
MatMenu,
|
|
1318
|
+
MatMenuItem,
|
|
1319
|
+
MatMenuTrigger,
|
|
1320
|
+
MatMenuContent] });
|
|
1321
|
+
MatMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuModule, providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
|
|
1322
|
+
CommonModule,
|
|
1323
|
+
MatCommonModule,
|
|
1324
|
+
MatRippleModule,
|
|
1325
|
+
OverlayModule,
|
|
1326
|
+
], CdkScrollableModule,
|
|
1327
|
+
MatCommonModule] });
|
|
1328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatMenuModule, decorators: [{
|
|
1329
|
+
type: NgModule,
|
|
1330
|
+
args: [{
|
|
1331
|
+
imports: [
|
|
1332
|
+
CommonModule,
|
|
1333
|
+
MatCommonModule,
|
|
1334
|
+
MatRippleModule,
|
|
1335
|
+
OverlayModule,
|
|
1336
|
+
],
|
|
1337
|
+
exports: [
|
|
1338
|
+
CdkScrollableModule,
|
|
1339
|
+
MatCommonModule,
|
|
1340
|
+
MatMenu,
|
|
1341
|
+
MatMenuItem,
|
|
1342
|
+
MatMenuTrigger,
|
|
1343
|
+
MatMenuContent
|
|
1344
|
+
],
|
|
1345
|
+
declarations: [MatMenu, MatMenuItem, MatMenuTrigger, MatMenuContent],
|
|
1346
|
+
providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER]
|
|
1347
|
+
}]
|
|
1348
|
+
}] });
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* @license
|
|
1352
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1353
|
+
*
|
|
1354
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1355
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1356
|
+
*/
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Generated bundle index. Do not edit.
|
|
1360
|
+
*/
|
|
1361
|
+
|
|
1362
|
+
export { MAT_MENU_CONTENT, MAT_MENU_DEFAULT_OPTIONS, MAT_MENU_PANEL, MAT_MENU_SCROLL_STRATEGY, MatMenu, MatMenuContent, MatMenuItem, MatMenuModule, MatMenuTrigger, _MatMenuBase, _MatMenuContentBase, _MatMenuTriggerBase, fadeInItems, matMenuAnimations, transformMenu };
|
|
1363
|
+
//# sourceMappingURL=menu.mjs.map
|