@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,1147 @@
|
|
|
1
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
2
|
+
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
3
|
+
import * as i3 from '@angular/cdk/portal';
|
|
4
|
+
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';
|
|
7
|
+
import { MatCommonModule } from '@angular/material/core';
|
|
8
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
9
|
+
import * as i2 from '@angular/common';
|
|
10
|
+
import { DOCUMENT } from '@angular/common';
|
|
11
|
+
import { Subject, defer, Subscription, of } from 'rxjs';
|
|
12
|
+
import { filter, take, startWith } from 'rxjs/operators';
|
|
13
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
14
|
+
import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
15
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
16
|
+
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
17
|
+
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright Google LLC All Rights Reserved.
|
|
22
|
+
*
|
|
23
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
24
|
+
* found in the LICENSE file at https://angular.io/license
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Configuration for opening a modal dialog with the MatDialog service.
|
|
28
|
+
*/
|
|
29
|
+
class MatDialogConfig {
|
|
30
|
+
constructor() {
|
|
31
|
+
/** The ARIA role of the dialog element. */
|
|
32
|
+
this.role = 'dialog';
|
|
33
|
+
/** Custom class for the overlay pane. */
|
|
34
|
+
this.panelClass = '';
|
|
35
|
+
/** Whether the dialog has a backdrop. */
|
|
36
|
+
this.hasBackdrop = true;
|
|
37
|
+
/** Custom class for the backdrop. */
|
|
38
|
+
this.backdropClass = '';
|
|
39
|
+
/** Whether the user can use escape or clicking on the backdrop to close the modal. */
|
|
40
|
+
this.disableClose = false;
|
|
41
|
+
/** Width of the dialog. */
|
|
42
|
+
this.width = '';
|
|
43
|
+
/** Height of the dialog. */
|
|
44
|
+
this.height = '';
|
|
45
|
+
/** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
|
|
46
|
+
this.maxWidth = '80vw';
|
|
47
|
+
/** Data being injected into the child component. */
|
|
48
|
+
this.data = null;
|
|
49
|
+
/** ID of the element that describes the dialog. */
|
|
50
|
+
this.ariaDescribedBy = null;
|
|
51
|
+
/** ID of the element that labels the dialog. */
|
|
52
|
+
this.ariaLabelledBy = null;
|
|
53
|
+
/** Aria label to assign to the dialog element. */
|
|
54
|
+
this.ariaLabel = null;
|
|
55
|
+
/**
|
|
56
|
+
* Where the dialog should focus on open.
|
|
57
|
+
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
58
|
+
* AutoFocusTarget instead.
|
|
59
|
+
*/
|
|
60
|
+
this.autoFocus = 'first-tabbable';
|
|
61
|
+
/**
|
|
62
|
+
* Whether the dialog should restore focus to the
|
|
63
|
+
* previously-focused element, after it's closed.
|
|
64
|
+
*/
|
|
65
|
+
this.restoreFocus = true;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the dialog should close when the user goes backwards/forwards in history.
|
|
68
|
+
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
69
|
+
* the `HashLocationStrategy`).
|
|
70
|
+
*/
|
|
71
|
+
this.closeOnNavigation = true;
|
|
72
|
+
// TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @license
|
|
78
|
+
* Copyright Google LLC All Rights Reserved.
|
|
79
|
+
*
|
|
80
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
81
|
+
* found in the LICENSE file at https://angular.io/license
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* Animations used by MatDialog.
|
|
85
|
+
* @docs-private
|
|
86
|
+
*/
|
|
87
|
+
const matDialogAnimations = {
|
|
88
|
+
/** Animation that is applied on the dialog container by default. */
|
|
89
|
+
dialogContainer: trigger('dialogContainer', [
|
|
90
|
+
// Note: The `enter` animation transitions to `transform: none`, because for some reason
|
|
91
|
+
// specifying the transform explicitly, causes IE both to blur the dialog content and
|
|
92
|
+
// decimate the animation performance. Leaving it as `none` solves both issues.
|
|
93
|
+
state('void, exit', style({ opacity: 0, transform: 'scale(0.7)' })),
|
|
94
|
+
state('enter', style({ transform: 'none' })),
|
|
95
|
+
transition('* => enter', animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 }))),
|
|
96
|
+
transition('* => void, * => exit', animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 }))),
|
|
97
|
+
])
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Throws an exception for the case when a ComponentPortal is
|
|
102
|
+
* attached to a DomPortalOutlet without an origin.
|
|
103
|
+
* @docs-private
|
|
104
|
+
*/
|
|
105
|
+
function throwMatDialogContentAlreadyAttachedError() {
|
|
106
|
+
throw Error('Attempting to attach dialog content after content is already attached');
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Base class for the `MatDialogContainer`. The base class does not implement
|
|
110
|
+
* animations as these are left to implementers of the dialog container.
|
|
111
|
+
*/
|
|
112
|
+
class _MatDialogContainerBase extends BasePortalOutlet {
|
|
113
|
+
constructor(_elementRef, _focusTrapFactory, _changeDetectorRef, _document,
|
|
114
|
+
/** The dialog configuration. */
|
|
115
|
+
_config, _interactivityChecker, _ngZone, _focusMonitor) {
|
|
116
|
+
super();
|
|
117
|
+
this._elementRef = _elementRef;
|
|
118
|
+
this._focusTrapFactory = _focusTrapFactory;
|
|
119
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
120
|
+
this._config = _config;
|
|
121
|
+
this._interactivityChecker = _interactivityChecker;
|
|
122
|
+
this._ngZone = _ngZone;
|
|
123
|
+
this._focusMonitor = _focusMonitor;
|
|
124
|
+
/** Emits when an animation state changes. */
|
|
125
|
+
this._animationStateChanged = new EventEmitter();
|
|
126
|
+
/** Element that was focused before the dialog was opened. Save this to restore upon close. */
|
|
127
|
+
this._elementFocusedBeforeDialogWasOpened = null;
|
|
128
|
+
/**
|
|
129
|
+
* Type of interaction that led to the dialog being closed. This is used to determine
|
|
130
|
+
* whether the focus style will be applied when returning focus to its original location
|
|
131
|
+
* after the dialog is closed.
|
|
132
|
+
*/
|
|
133
|
+
this._closeInteractionType = null;
|
|
134
|
+
/**
|
|
135
|
+
* Attaches a DOM portal to the dialog container.
|
|
136
|
+
* @param portal Portal to be attached.
|
|
137
|
+
* @deprecated To be turned into a method.
|
|
138
|
+
* @breaking-change 10.0.0
|
|
139
|
+
*/
|
|
140
|
+
this.attachDomPortal = (portal) => {
|
|
141
|
+
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
142
|
+
throwMatDialogContentAlreadyAttachedError();
|
|
143
|
+
}
|
|
144
|
+
return this._portalOutlet.attachDomPortal(portal);
|
|
145
|
+
};
|
|
146
|
+
this._ariaLabelledBy = _config.ariaLabelledBy || null;
|
|
147
|
+
this._document = _document;
|
|
148
|
+
}
|
|
149
|
+
/** Initializes the dialog container with the attached content. */
|
|
150
|
+
_initializeWithAttachedContent() {
|
|
151
|
+
this._setupFocusTrap();
|
|
152
|
+
// Save the previously focused element. This element will be re-focused
|
|
153
|
+
// when the dialog closes.
|
|
154
|
+
this._capturePreviouslyFocusedElement();
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Attach a ComponentPortal as content to this dialog container.
|
|
158
|
+
* @param portal Portal to be attached as the dialog content.
|
|
159
|
+
*/
|
|
160
|
+
attachComponentPortal(portal) {
|
|
161
|
+
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
162
|
+
throwMatDialogContentAlreadyAttachedError();
|
|
163
|
+
}
|
|
164
|
+
return this._portalOutlet.attachComponentPortal(portal);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Attach a TemplatePortal as content to this dialog container.
|
|
168
|
+
* @param portal Portal to be attached as the dialog content.
|
|
169
|
+
*/
|
|
170
|
+
attachTemplatePortal(portal) {
|
|
171
|
+
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
172
|
+
throwMatDialogContentAlreadyAttachedError();
|
|
173
|
+
}
|
|
174
|
+
return this._portalOutlet.attachTemplatePortal(portal);
|
|
175
|
+
}
|
|
176
|
+
/** Moves focus back into the dialog if it was moved out. */
|
|
177
|
+
_recaptureFocus() {
|
|
178
|
+
if (!this._containsFocus()) {
|
|
179
|
+
this._trapFocus();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Focuses the provided element. If the element is not focusable, it will add a tabIndex
|
|
184
|
+
* attribute to forcefully focus it. The attribute is removed after focus is moved.
|
|
185
|
+
* @param element The element to focus.
|
|
186
|
+
*/
|
|
187
|
+
_forceFocus(element, options) {
|
|
188
|
+
if (!this._interactivityChecker.isFocusable(element)) {
|
|
189
|
+
element.tabIndex = -1;
|
|
190
|
+
// The tabindex attribute should be removed to avoid navigating to that element again
|
|
191
|
+
this._ngZone.runOutsideAngular(() => {
|
|
192
|
+
element.addEventListener('blur', () => element.removeAttribute('tabindex'));
|
|
193
|
+
element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
element.focus(options);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Focuses the first element that matches the given selector within the focus trap.
|
|
200
|
+
* @param selector The CSS selector for the element to set focus to.
|
|
201
|
+
*/
|
|
202
|
+
_focusByCssSelector(selector, options) {
|
|
203
|
+
let elementToFocus = this._elementRef.nativeElement.querySelector(selector);
|
|
204
|
+
if (elementToFocus) {
|
|
205
|
+
this._forceFocus(elementToFocus, options);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
|
|
210
|
+
* cannot be moved then focus will go to the dialog container.
|
|
211
|
+
*/
|
|
212
|
+
_trapFocus() {
|
|
213
|
+
const element = this._elementRef.nativeElement;
|
|
214
|
+
// If were to attempt to focus immediately, then the content of the dialog would not yet be
|
|
215
|
+
// ready in instances where change detection has to run first. To deal with this, we simply
|
|
216
|
+
// wait for the microtask queue to be empty when setting focus when autoFocus isn't set to
|
|
217
|
+
// dialog. If the element inside the dialog can't be focused, then the container is focused
|
|
218
|
+
// so the user can't tab into other elements behind it.
|
|
219
|
+
switch (this._config.autoFocus) {
|
|
220
|
+
case false:
|
|
221
|
+
case 'dialog':
|
|
222
|
+
// Ensure that focus is on the dialog container. It's possible that a different
|
|
223
|
+
// component tried to move focus while the open animation was running. See:
|
|
224
|
+
// https://github.com/angular/components/issues/16215. Note that we only want to do this
|
|
225
|
+
// if the focus isn't inside the dialog already, because it's possible that the consumer
|
|
226
|
+
// turned off `autoFocus` in order to move focus themselves.
|
|
227
|
+
if (!this._containsFocus()) {
|
|
228
|
+
element.focus();
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
case true:
|
|
232
|
+
case 'first-tabbable':
|
|
233
|
+
this._focusTrap.focusInitialElementWhenReady().then(focusedSuccessfully => {
|
|
234
|
+
// If we weren't able to find a focusable element in the dialog, then focus the dialog
|
|
235
|
+
// container instead.
|
|
236
|
+
if (!focusedSuccessfully) {
|
|
237
|
+
this._focusDialogContainer();
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
break;
|
|
241
|
+
case 'first-heading':
|
|
242
|
+
this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');
|
|
243
|
+
break;
|
|
244
|
+
default:
|
|
245
|
+
this._focusByCssSelector(this._config.autoFocus);
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/** Restores focus to the element that was focused before the dialog opened. */
|
|
250
|
+
_restoreFocus() {
|
|
251
|
+
const previousElement = this._elementFocusedBeforeDialogWasOpened;
|
|
252
|
+
// We need the extra check, because IE can set the `activeElement` to null in some cases.
|
|
253
|
+
if (this._config.restoreFocus && previousElement &&
|
|
254
|
+
typeof previousElement.focus === 'function') {
|
|
255
|
+
const activeElement = _getFocusedElementPierceShadowDom();
|
|
256
|
+
const element = this._elementRef.nativeElement;
|
|
257
|
+
// Make sure that focus is still inside the dialog or is on the body (usually because a
|
|
258
|
+
// non-focusable element like the backdrop was clicked) before moving it. It's possible that
|
|
259
|
+
// the consumer moved it themselves before the animation was done, in which case we shouldn't
|
|
260
|
+
// do anything.
|
|
261
|
+
if (!activeElement || activeElement === this._document.body || activeElement === element ||
|
|
262
|
+
element.contains(activeElement)) {
|
|
263
|
+
if (this._focusMonitor) {
|
|
264
|
+
this._focusMonitor.focusVia(previousElement, this._closeInteractionType);
|
|
265
|
+
this._closeInteractionType = null;
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
previousElement.focus();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (this._focusTrap) {
|
|
273
|
+
this._focusTrap.destroy();
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
/** Sets up the focus trap. */
|
|
277
|
+
_setupFocusTrap() {
|
|
278
|
+
this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
|
|
279
|
+
}
|
|
280
|
+
/** Captures the element that was focused before the dialog was opened. */
|
|
281
|
+
_capturePreviouslyFocusedElement() {
|
|
282
|
+
if (this._document) {
|
|
283
|
+
this._elementFocusedBeforeDialogWasOpened = _getFocusedElementPierceShadowDom();
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
/** Focuses the dialog container. */
|
|
287
|
+
_focusDialogContainer() {
|
|
288
|
+
// Note that there is no focus method when rendering on the server.
|
|
289
|
+
if (this._elementRef.nativeElement.focus) {
|
|
290
|
+
this._elementRef.nativeElement.focus();
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/** Returns whether focus is inside the dialog. */
|
|
294
|
+
_containsFocus() {
|
|
295
|
+
const element = this._elementRef.nativeElement;
|
|
296
|
+
const activeElement = _getFocusedElementPierceShadowDom();
|
|
297
|
+
return element === activeElement || element.contains(activeElement);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
_MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatDialogContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
|
|
301
|
+
_MatDialogContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatDialogContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatDialogContainerBase, decorators: [{
|
|
303
|
+
type: Directive
|
|
304
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
305
|
+
type: Optional
|
|
306
|
+
}, {
|
|
307
|
+
type: Inject,
|
|
308
|
+
args: [DOCUMENT]
|
|
309
|
+
}] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1.FocusMonitor }]; }, propDecorators: { _portalOutlet: [{
|
|
310
|
+
type: ViewChild,
|
|
311
|
+
args: [CdkPortalOutlet, { static: true }]
|
|
312
|
+
}] } });
|
|
313
|
+
/**
|
|
314
|
+
* Internal component that wraps user-provided dialog content.
|
|
315
|
+
* Animation is based on https://material.io/guidelines/motion/choreography.html.
|
|
316
|
+
* @docs-private
|
|
317
|
+
*/
|
|
318
|
+
class MatDialogContainer extends _MatDialogContainerBase {
|
|
319
|
+
constructor() {
|
|
320
|
+
super(...arguments);
|
|
321
|
+
/** State of the dialog animation. */
|
|
322
|
+
this._state = 'enter';
|
|
323
|
+
}
|
|
324
|
+
/** Callback, invoked whenever an animation on the host completes. */
|
|
325
|
+
_onAnimationDone({ toState, totalTime }) {
|
|
326
|
+
if (toState === 'enter') {
|
|
327
|
+
this._trapFocus();
|
|
328
|
+
this._animationStateChanged.next({ state: 'opened', totalTime });
|
|
329
|
+
}
|
|
330
|
+
else if (toState === 'exit') {
|
|
331
|
+
this._restoreFocus();
|
|
332
|
+
this._animationStateChanged.next({ state: 'closed', totalTime });
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
/** Callback, invoked when an animation on the host starts. */
|
|
336
|
+
_onAnimationStart({ toState, totalTime }) {
|
|
337
|
+
if (toState === 'enter') {
|
|
338
|
+
this._animationStateChanged.next({ state: 'opening', totalTime });
|
|
339
|
+
}
|
|
340
|
+
else if (toState === 'exit' || toState === 'void') {
|
|
341
|
+
this._animationStateChanged.next({ state: 'closing', totalTime });
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
/** Starts the dialog exit animation. */
|
|
345
|
+
_startExitAnimation() {
|
|
346
|
+
this._state = 'exit';
|
|
347
|
+
// Mark the container for check so it can react if the
|
|
348
|
+
// view container is using OnPush change detection.
|
|
349
|
+
this._changeDetectorRef.markForCheck();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
353
|
+
MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDialogContainer, selector: "mat-dialog-container", host: { attributes: { "tabindex": "-1", "aria-modal": "true" }, listeners: { "@dialogContainer.start": "_onAnimationStart($event)", "@dialogContainer.done": "_onAnimationDone($event)" }, properties: { "id": "_id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledBy", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null", "@dialogContainer": "_state" }, classAttribute: "mat-dialog-container" }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogContainer, decorators: [{
|
|
355
|
+
type: Component,
|
|
356
|
+
args: [{ selector: 'mat-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matDialogAnimations.dialogContainer], host: {
|
|
357
|
+
'class': 'mat-dialog-container',
|
|
358
|
+
'tabindex': '-1',
|
|
359
|
+
'aria-modal': 'true',
|
|
360
|
+
'[id]': '_id',
|
|
361
|
+
'[attr.role]': '_config.role',
|
|
362
|
+
'[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',
|
|
363
|
+
'[attr.aria-label]': '_config.ariaLabel',
|
|
364
|
+
'[attr.aria-describedby]': '_config.ariaDescribedBy || null',
|
|
365
|
+
'[@dialogContainer]': '_state',
|
|
366
|
+
'(@dialogContainer.start)': '_onAnimationStart($event)',
|
|
367
|
+
'(@dialogContainer.done)': '_onAnimationDone($event)',
|
|
368
|
+
}, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"] }]
|
|
369
|
+
}] });
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @license
|
|
373
|
+
* Copyright Google LLC All Rights Reserved.
|
|
374
|
+
*
|
|
375
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
376
|
+
* found in the LICENSE file at https://angular.io/license
|
|
377
|
+
*/
|
|
378
|
+
// TODO(jelbourn): resizing
|
|
379
|
+
// Counter for unique dialog ids.
|
|
380
|
+
let uniqueId = 0;
|
|
381
|
+
/**
|
|
382
|
+
* Reference to a dialog opened via the MatDialog service.
|
|
383
|
+
*/
|
|
384
|
+
class MatDialogRef {
|
|
385
|
+
constructor(_overlayRef, _containerInstance,
|
|
386
|
+
/** Id of the dialog. */
|
|
387
|
+
id = `mat-dialog-${uniqueId++}`) {
|
|
388
|
+
this._overlayRef = _overlayRef;
|
|
389
|
+
this._containerInstance = _containerInstance;
|
|
390
|
+
this.id = id;
|
|
391
|
+
/** Whether the user is allowed to close the dialog. */
|
|
392
|
+
this.disableClose = this._containerInstance._config.disableClose;
|
|
393
|
+
/** Subject for notifying the user that the dialog has finished opening. */
|
|
394
|
+
this._afterOpened = new Subject();
|
|
395
|
+
/** Subject for notifying the user that the dialog has finished closing. */
|
|
396
|
+
this._afterClosed = new Subject();
|
|
397
|
+
/** Subject for notifying the user that the dialog has started closing. */
|
|
398
|
+
this._beforeClosed = new Subject();
|
|
399
|
+
/** Current state of the dialog. */
|
|
400
|
+
this._state = 0 /* OPEN */;
|
|
401
|
+
// Pass the id along to the container.
|
|
402
|
+
_containerInstance._id = id;
|
|
403
|
+
// Emit when opening animation completes
|
|
404
|
+
_containerInstance._animationStateChanged.pipe(filter(event => event.state === 'opened'), take(1))
|
|
405
|
+
.subscribe(() => {
|
|
406
|
+
this._afterOpened.next();
|
|
407
|
+
this._afterOpened.complete();
|
|
408
|
+
});
|
|
409
|
+
// Dispose overlay when closing animation is complete
|
|
410
|
+
_containerInstance._animationStateChanged.pipe(filter(event => event.state === 'closed'), take(1)).subscribe(() => {
|
|
411
|
+
clearTimeout(this._closeFallbackTimeout);
|
|
412
|
+
this._finishDialogClose();
|
|
413
|
+
});
|
|
414
|
+
_overlayRef.detachments().subscribe(() => {
|
|
415
|
+
this._beforeClosed.next(this._result);
|
|
416
|
+
this._beforeClosed.complete();
|
|
417
|
+
this._afterClosed.next(this._result);
|
|
418
|
+
this._afterClosed.complete();
|
|
419
|
+
this.componentInstance = null;
|
|
420
|
+
this._overlayRef.dispose();
|
|
421
|
+
});
|
|
422
|
+
_overlayRef.keydownEvents()
|
|
423
|
+
.pipe(filter(event => {
|
|
424
|
+
return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);
|
|
425
|
+
}))
|
|
426
|
+
.subscribe(event => {
|
|
427
|
+
event.preventDefault();
|
|
428
|
+
_closeDialogVia(this, 'keyboard');
|
|
429
|
+
});
|
|
430
|
+
_overlayRef.backdropClick().subscribe(() => {
|
|
431
|
+
if (this.disableClose) {
|
|
432
|
+
this._containerInstance._recaptureFocus();
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
_closeDialogVia(this, 'mouse');
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Close the dialog.
|
|
441
|
+
* @param dialogResult Optional result to return to the dialog opener.
|
|
442
|
+
*/
|
|
443
|
+
close(dialogResult) {
|
|
444
|
+
this._result = dialogResult;
|
|
445
|
+
// Transition the backdrop in parallel to the dialog.
|
|
446
|
+
this._containerInstance._animationStateChanged.pipe(filter(event => event.state === 'closing'), take(1))
|
|
447
|
+
.subscribe(event => {
|
|
448
|
+
this._beforeClosed.next(dialogResult);
|
|
449
|
+
this._beforeClosed.complete();
|
|
450
|
+
this._overlayRef.detachBackdrop();
|
|
451
|
+
// The logic that disposes of the overlay depends on the exit animation completing, however
|
|
452
|
+
// it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
|
|
453
|
+
// timeout which will clean everything up if the animation hasn't fired within the specified
|
|
454
|
+
// amount of time plus 100ms. We don't need to run this outside the NgZone, because for the
|
|
455
|
+
// vast majority of cases the timeout will have been cleared before it has the chance to fire.
|
|
456
|
+
this._closeFallbackTimeout = setTimeout(() => this._finishDialogClose(), event.totalTime + 100);
|
|
457
|
+
});
|
|
458
|
+
this._state = 1 /* CLOSING */;
|
|
459
|
+
this._containerInstance._startExitAnimation();
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Gets an observable that is notified when the dialog is finished opening.
|
|
463
|
+
*/
|
|
464
|
+
afterOpened() {
|
|
465
|
+
return this._afterOpened;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Gets an observable that is notified when the dialog is finished closing.
|
|
469
|
+
*/
|
|
470
|
+
afterClosed() {
|
|
471
|
+
return this._afterClosed;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Gets an observable that is notified when the dialog has started closing.
|
|
475
|
+
*/
|
|
476
|
+
beforeClosed() {
|
|
477
|
+
return this._beforeClosed;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
481
|
+
*/
|
|
482
|
+
backdropClick() {
|
|
483
|
+
return this._overlayRef.backdropClick();
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
487
|
+
*/
|
|
488
|
+
keydownEvents() {
|
|
489
|
+
return this._overlayRef.keydownEvents();
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Updates the dialog's position.
|
|
493
|
+
* @param position New dialog position.
|
|
494
|
+
*/
|
|
495
|
+
updatePosition(position) {
|
|
496
|
+
let strategy = this._getPositionStrategy();
|
|
497
|
+
if (position && (position.left || position.right)) {
|
|
498
|
+
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
strategy.centerHorizontally();
|
|
502
|
+
}
|
|
503
|
+
if (position && (position.top || position.bottom)) {
|
|
504
|
+
position.top ? strategy.top(position.top) : strategy.bottom(position.bottom);
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
strategy.centerVertically();
|
|
508
|
+
}
|
|
509
|
+
this._overlayRef.updatePosition();
|
|
510
|
+
return this;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Updates the dialog's width and height.
|
|
514
|
+
* @param width New width of the dialog.
|
|
515
|
+
* @param height New height of the dialog.
|
|
516
|
+
*/
|
|
517
|
+
updateSize(width = '', height = '') {
|
|
518
|
+
this._overlayRef.updateSize({ width, height });
|
|
519
|
+
this._overlayRef.updatePosition();
|
|
520
|
+
return this;
|
|
521
|
+
}
|
|
522
|
+
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
523
|
+
addPanelClass(classes) {
|
|
524
|
+
this._overlayRef.addPanelClass(classes);
|
|
525
|
+
return this;
|
|
526
|
+
}
|
|
527
|
+
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
528
|
+
removePanelClass(classes) {
|
|
529
|
+
this._overlayRef.removePanelClass(classes);
|
|
530
|
+
return this;
|
|
531
|
+
}
|
|
532
|
+
/** Gets the current state of the dialog's lifecycle. */
|
|
533
|
+
getState() {
|
|
534
|
+
return this._state;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Finishes the dialog close by updating the state of the dialog
|
|
538
|
+
* and disposing the overlay.
|
|
539
|
+
*/
|
|
540
|
+
_finishDialogClose() {
|
|
541
|
+
this._state = 2 /* CLOSED */;
|
|
542
|
+
this._overlayRef.dispose();
|
|
543
|
+
}
|
|
544
|
+
/** Fetches the position strategy object from the overlay ref. */
|
|
545
|
+
_getPositionStrategy() {
|
|
546
|
+
return this._overlayRef.getConfig().positionStrategy;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Closes the dialog with the specified interaction type. This is currently not part of
|
|
551
|
+
* `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.
|
|
552
|
+
* More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
|
|
553
|
+
*/
|
|
554
|
+
// TODO: TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.
|
|
555
|
+
function _closeDialogVia(ref, interactionType, result) {
|
|
556
|
+
// Some mock dialog ref instances in tests do not have the `_containerInstance` property.
|
|
557
|
+
// For those, we keep the behavior as is and do not deal with the interaction type.
|
|
558
|
+
if (ref._containerInstance !== undefined) {
|
|
559
|
+
ref._containerInstance._closeInteractionType = interactionType;
|
|
560
|
+
}
|
|
561
|
+
return ref.close(result);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @license
|
|
566
|
+
* Copyright Google LLC All Rights Reserved.
|
|
567
|
+
*
|
|
568
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
569
|
+
* found in the LICENSE file at https://angular.io/license
|
|
570
|
+
*/
|
|
571
|
+
/** Injection token that can be used to access the data that was passed in to a dialog. */
|
|
572
|
+
const MAT_DIALOG_DATA = new InjectionToken('MatDialogData');
|
|
573
|
+
/** Injection token that can be used to specify default dialog options. */
|
|
574
|
+
const MAT_DIALOG_DEFAULT_OPTIONS = new InjectionToken('mat-dialog-default-options');
|
|
575
|
+
/** Injection token that determines the scroll handling while the dialog is open. */
|
|
576
|
+
const MAT_DIALOG_SCROLL_STRATEGY = new InjectionToken('mat-dialog-scroll-strategy');
|
|
577
|
+
/** @docs-private */
|
|
578
|
+
function MAT_DIALOG_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
579
|
+
return () => overlay.scrollStrategies.block();
|
|
580
|
+
}
|
|
581
|
+
/** @docs-private */
|
|
582
|
+
function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
583
|
+
return () => overlay.scrollStrategies.block();
|
|
584
|
+
}
|
|
585
|
+
/** @docs-private */
|
|
586
|
+
const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
587
|
+
provide: MAT_DIALOG_SCROLL_STRATEGY,
|
|
588
|
+
deps: [Overlay],
|
|
589
|
+
useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Base class for dialog services. The base dialog service allows
|
|
593
|
+
* for arbitrary dialog refs and dialog container components.
|
|
594
|
+
*/
|
|
595
|
+
class _MatDialogBase {
|
|
596
|
+
constructor(_overlay, _injector, _defaultOptions, _parentDialog, _overlayContainer, scrollStrategy, _dialogRefConstructor, _dialogContainerType, _dialogDataToken, _animationMode) {
|
|
597
|
+
this._overlay = _overlay;
|
|
598
|
+
this._injector = _injector;
|
|
599
|
+
this._defaultOptions = _defaultOptions;
|
|
600
|
+
this._parentDialog = _parentDialog;
|
|
601
|
+
this._overlayContainer = _overlayContainer;
|
|
602
|
+
this._dialogRefConstructor = _dialogRefConstructor;
|
|
603
|
+
this._dialogContainerType = _dialogContainerType;
|
|
604
|
+
this._dialogDataToken = _dialogDataToken;
|
|
605
|
+
this._animationMode = _animationMode;
|
|
606
|
+
this._openDialogsAtThisLevel = [];
|
|
607
|
+
this._afterAllClosedAtThisLevel = new Subject();
|
|
608
|
+
this._afterOpenedAtThisLevel = new Subject();
|
|
609
|
+
this._ariaHiddenElements = new Map();
|
|
610
|
+
this._dialogAnimatingOpen = false;
|
|
611
|
+
// TODO (jelbourn): tighten the typing right-hand side of this expression.
|
|
612
|
+
/**
|
|
613
|
+
* Stream that emits when all open dialog have finished closing.
|
|
614
|
+
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
615
|
+
*/
|
|
616
|
+
this.afterAllClosed = defer(() => this.openDialogs.length ?
|
|
617
|
+
this._getAfterAllClosed() :
|
|
618
|
+
this._getAfterAllClosed().pipe(startWith(undefined)));
|
|
619
|
+
this._scrollStrategy = scrollStrategy;
|
|
620
|
+
}
|
|
621
|
+
/** Keeps track of the currently-open dialogs. */
|
|
622
|
+
get openDialogs() {
|
|
623
|
+
return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;
|
|
624
|
+
}
|
|
625
|
+
/** Stream that emits when a dialog has been opened. */
|
|
626
|
+
get afterOpened() {
|
|
627
|
+
return this._parentDialog ? this._parentDialog.afterOpened : this._afterOpenedAtThisLevel;
|
|
628
|
+
}
|
|
629
|
+
_getAfterAllClosed() {
|
|
630
|
+
const parent = this._parentDialog;
|
|
631
|
+
return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;
|
|
632
|
+
}
|
|
633
|
+
open(componentOrTemplateRef, config) {
|
|
634
|
+
config = _applyConfigDefaults(config, this._defaultOptions || new MatDialogConfig());
|
|
635
|
+
if (config.id && this.getDialogById(config.id) &&
|
|
636
|
+
(typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
637
|
+
throw Error(`Dialog with id "${config.id}" exists already. The dialog id must be unique.`);
|
|
638
|
+
}
|
|
639
|
+
// If there is a dialog that is currently animating open, return the MatDialogRef of that dialog
|
|
640
|
+
if (this._dialogAnimatingOpen) {
|
|
641
|
+
return this._lastDialogRef;
|
|
642
|
+
}
|
|
643
|
+
const overlayRef = this._createOverlay(config);
|
|
644
|
+
const dialogContainer = this._attachDialogContainer(overlayRef, config);
|
|
645
|
+
if (this._animationMode !== 'NoopAnimations') {
|
|
646
|
+
const animationStateSubscription = dialogContainer._animationStateChanged.subscribe((dialogAnimationEvent) => {
|
|
647
|
+
if (dialogAnimationEvent.state === 'opening') {
|
|
648
|
+
this._dialogAnimatingOpen = true;
|
|
649
|
+
}
|
|
650
|
+
if (dialogAnimationEvent.state === 'opened') {
|
|
651
|
+
this._dialogAnimatingOpen = false;
|
|
652
|
+
animationStateSubscription.unsubscribe();
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
if (!this._animationStateSubscriptions) {
|
|
656
|
+
this._animationStateSubscriptions = new Subscription();
|
|
657
|
+
}
|
|
658
|
+
this._animationStateSubscriptions.add(animationStateSubscription);
|
|
659
|
+
}
|
|
660
|
+
const dialogRef = this._attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config);
|
|
661
|
+
this._lastDialogRef = dialogRef;
|
|
662
|
+
// If this is the first dialog that we're opening, hide all the non-overlay content.
|
|
663
|
+
if (!this.openDialogs.length) {
|
|
664
|
+
this._hideNonDialogContentFromAssistiveTechnology();
|
|
665
|
+
}
|
|
666
|
+
this.openDialogs.push(dialogRef);
|
|
667
|
+
dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));
|
|
668
|
+
this.afterOpened.next(dialogRef);
|
|
669
|
+
// Notify the dialog container that the content has been attached.
|
|
670
|
+
dialogContainer._initializeWithAttachedContent();
|
|
671
|
+
return dialogRef;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Closes all of the currently-open dialogs.
|
|
675
|
+
*/
|
|
676
|
+
closeAll() {
|
|
677
|
+
this._closeDialogs(this.openDialogs);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Finds an open dialog by its id.
|
|
681
|
+
* @param id ID to use when looking up the dialog.
|
|
682
|
+
*/
|
|
683
|
+
getDialogById(id) {
|
|
684
|
+
return this.openDialogs.find(dialog => dialog.id === id);
|
|
685
|
+
}
|
|
686
|
+
ngOnDestroy() {
|
|
687
|
+
// Only close the dialogs at this level on destroy
|
|
688
|
+
// since the parent service may still be active.
|
|
689
|
+
this._closeDialogs(this._openDialogsAtThisLevel);
|
|
690
|
+
this._afterAllClosedAtThisLevel.complete();
|
|
691
|
+
this._afterOpenedAtThisLevel.complete();
|
|
692
|
+
// Clean up any subscriptions to dialogs that never finished opening.
|
|
693
|
+
if (this._animationStateSubscriptions) {
|
|
694
|
+
this._animationStateSubscriptions.unsubscribe();
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Creates the overlay into which the dialog will be loaded.
|
|
699
|
+
* @param config The dialog configuration.
|
|
700
|
+
* @returns A promise resolving to the OverlayRef for the created overlay.
|
|
701
|
+
*/
|
|
702
|
+
_createOverlay(config) {
|
|
703
|
+
const overlayConfig = this._getOverlayConfig(config);
|
|
704
|
+
return this._overlay.create(overlayConfig);
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Creates an overlay config from a dialog config.
|
|
708
|
+
* @param dialogConfig The dialog configuration.
|
|
709
|
+
* @returns The overlay configuration.
|
|
710
|
+
*/
|
|
711
|
+
_getOverlayConfig(dialogConfig) {
|
|
712
|
+
const state = new OverlayConfig({
|
|
713
|
+
positionStrategy: this._overlay.position().global(),
|
|
714
|
+
scrollStrategy: dialogConfig.scrollStrategy || this._scrollStrategy(),
|
|
715
|
+
panelClass: dialogConfig.panelClass,
|
|
716
|
+
hasBackdrop: dialogConfig.hasBackdrop,
|
|
717
|
+
direction: dialogConfig.direction,
|
|
718
|
+
minWidth: dialogConfig.minWidth,
|
|
719
|
+
minHeight: dialogConfig.minHeight,
|
|
720
|
+
maxWidth: dialogConfig.maxWidth,
|
|
721
|
+
maxHeight: dialogConfig.maxHeight,
|
|
722
|
+
disposeOnNavigation: dialogConfig.closeOnNavigation
|
|
723
|
+
});
|
|
724
|
+
if (dialogConfig.backdropClass) {
|
|
725
|
+
state.backdropClass = dialogConfig.backdropClass;
|
|
726
|
+
}
|
|
727
|
+
return state;
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Attaches a dialog container to a dialog's already-created overlay.
|
|
731
|
+
* @param overlay Reference to the dialog's underlying overlay.
|
|
732
|
+
* @param config The dialog configuration.
|
|
733
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
734
|
+
*/
|
|
735
|
+
_attachDialogContainer(overlay, config) {
|
|
736
|
+
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
737
|
+
const injector = Injector.create({
|
|
738
|
+
parent: userInjector || this._injector,
|
|
739
|
+
providers: [{ provide: MatDialogConfig, useValue: config }]
|
|
740
|
+
});
|
|
741
|
+
const containerPortal = new ComponentPortal(this._dialogContainerType, config.viewContainerRef, injector, config.componentFactoryResolver);
|
|
742
|
+
const containerRef = overlay.attach(containerPortal);
|
|
743
|
+
return containerRef.instance;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Attaches the user-provided component to the already-created dialog container.
|
|
747
|
+
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
748
|
+
* or a TemplateRef to instantiate as the content.
|
|
749
|
+
* @param dialogContainer Reference to the wrapping dialog container.
|
|
750
|
+
* @param overlayRef Reference to the overlay in which the dialog resides.
|
|
751
|
+
* @param config The dialog configuration.
|
|
752
|
+
* @returns A promise resolving to the MatDialogRef that should be returned to the user.
|
|
753
|
+
*/
|
|
754
|
+
_attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
755
|
+
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
756
|
+
// to modify and close it.
|
|
757
|
+
const dialogRef = new this._dialogRefConstructor(overlayRef, dialogContainer, config.id);
|
|
758
|
+
if (componentOrTemplateRef instanceof TemplateRef) {
|
|
759
|
+
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, { $implicit: config.data, dialogRef }));
|
|
760
|
+
}
|
|
761
|
+
else {
|
|
762
|
+
const injector = this._createInjector(config, dialogRef, dialogContainer);
|
|
763
|
+
const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector));
|
|
764
|
+
dialogRef.componentInstance = contentRef.instance;
|
|
765
|
+
}
|
|
766
|
+
dialogRef
|
|
767
|
+
.updateSize(config.width, config.height)
|
|
768
|
+
.updatePosition(config.position);
|
|
769
|
+
return dialogRef;
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
773
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
774
|
+
* @param config Config object that is used to construct the dialog.
|
|
775
|
+
* @param dialogRef Reference to the dialog.
|
|
776
|
+
* @param dialogContainer Dialog container element that wraps all of the contents.
|
|
777
|
+
* @returns The custom injector that can be used inside the dialog.
|
|
778
|
+
*/
|
|
779
|
+
_createInjector(config, dialogRef, dialogContainer) {
|
|
780
|
+
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
781
|
+
// The dialog container should be provided as the dialog container and the dialog's
|
|
782
|
+
// content are created out of the same `ViewContainerRef` and as such, are siblings
|
|
783
|
+
// for injector purposes. To allow the hierarchy that is expected, the dialog
|
|
784
|
+
// container is explicitly provided in the injector.
|
|
785
|
+
const providers = [
|
|
786
|
+
{ provide: this._dialogContainerType, useValue: dialogContainer },
|
|
787
|
+
{ provide: this._dialogDataToken, useValue: config.data },
|
|
788
|
+
{ provide: this._dialogRefConstructor, useValue: dialogRef }
|
|
789
|
+
];
|
|
790
|
+
if (config.direction && (!userInjector ||
|
|
791
|
+
!userInjector.get(Directionality, null, InjectFlags.Optional))) {
|
|
792
|
+
providers.push({
|
|
793
|
+
provide: Directionality,
|
|
794
|
+
useValue: { value: config.direction, change: of() }
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
return Injector.create({ parent: userInjector || this._injector, providers });
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Removes a dialog from the array of open dialogs.
|
|
801
|
+
* @param dialogRef Dialog to be removed.
|
|
802
|
+
*/
|
|
803
|
+
_removeOpenDialog(dialogRef) {
|
|
804
|
+
const index = this.openDialogs.indexOf(dialogRef);
|
|
805
|
+
if (index > -1) {
|
|
806
|
+
this.openDialogs.splice(index, 1);
|
|
807
|
+
// If all the dialogs were closed, remove/restore the `aria-hidden`
|
|
808
|
+
// to a the siblings and emit to the `afterAllClosed` stream.
|
|
809
|
+
if (!this.openDialogs.length) {
|
|
810
|
+
this._ariaHiddenElements.forEach((previousValue, element) => {
|
|
811
|
+
if (previousValue) {
|
|
812
|
+
element.setAttribute('aria-hidden', previousValue);
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
element.removeAttribute('aria-hidden');
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
this._ariaHiddenElements.clear();
|
|
819
|
+
this._getAfterAllClosed().next();
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Hides all of the content that isn't an overlay from assistive technology.
|
|
825
|
+
*/
|
|
826
|
+
_hideNonDialogContentFromAssistiveTechnology() {
|
|
827
|
+
const overlayContainer = this._overlayContainer.getContainerElement();
|
|
828
|
+
// Ensure that the overlay container is attached to the DOM.
|
|
829
|
+
if (overlayContainer.parentElement) {
|
|
830
|
+
const siblings = overlayContainer.parentElement.children;
|
|
831
|
+
for (let i = siblings.length - 1; i > -1; i--) {
|
|
832
|
+
let sibling = siblings[i];
|
|
833
|
+
if (sibling !== overlayContainer &&
|
|
834
|
+
sibling.nodeName !== 'SCRIPT' &&
|
|
835
|
+
sibling.nodeName !== 'STYLE' &&
|
|
836
|
+
!sibling.hasAttribute('aria-live')) {
|
|
837
|
+
this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));
|
|
838
|
+
sibling.setAttribute('aria-hidden', 'true');
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
/** Closes all of the dialogs in an array. */
|
|
844
|
+
_closeDialogs(dialogs) {
|
|
845
|
+
let i = dialogs.length;
|
|
846
|
+
while (i--) {
|
|
847
|
+
// The `_openDialogs` property isn't updated after close until the rxjs subscription
|
|
848
|
+
// runs on the next microtask, in addition to modifying the array as we're going
|
|
849
|
+
// through it. We loop through all of them and call close without assuming that
|
|
850
|
+
// they'll be removed from the list instantaneously.
|
|
851
|
+
dialogs[i].close();
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
_MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatDialogBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
856
|
+
_MatDialogBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: _MatDialogBase, ngImport: i0 });
|
|
857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: _MatDialogBase, decorators: [{
|
|
858
|
+
type: Directive
|
|
859
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i1$1.OverlayContainer }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }, { type: undefined }]; } });
|
|
860
|
+
/**
|
|
861
|
+
* Service to open Material Design modal dialogs.
|
|
862
|
+
*/
|
|
863
|
+
class MatDialog extends _MatDialogBase {
|
|
864
|
+
constructor(overlay, injector,
|
|
865
|
+
/**
|
|
866
|
+
* @deprecated `_location` parameter to be removed.
|
|
867
|
+
* @breaking-change 10.0.0
|
|
868
|
+
*/
|
|
869
|
+
location, defaultOptions, scrollStrategy, parentDialog, overlayContainer, animationMode) {
|
|
870
|
+
super(overlay, injector, defaultOptions, parentDialog, overlayContainer, scrollStrategy, MatDialogRef, MatDialogContainer, MAT_DIALOG_DATA, animationMode);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialog, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i2.Location, optional: true }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: MAT_DIALOG_SCROLL_STRATEGY }, { token: MatDialog, optional: true, skipSelf: true }, { token: i1$1.OverlayContainer }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
874
|
+
MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialog });
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialog, decorators: [{
|
|
876
|
+
type: Injectable
|
|
877
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i2.Location, decorators: [{
|
|
878
|
+
type: Optional
|
|
879
|
+
}] }, { type: MatDialogConfig, decorators: [{
|
|
880
|
+
type: Optional
|
|
881
|
+
}, {
|
|
882
|
+
type: Inject,
|
|
883
|
+
args: [MAT_DIALOG_DEFAULT_OPTIONS]
|
|
884
|
+
}] }, { type: undefined, decorators: [{
|
|
885
|
+
type: Inject,
|
|
886
|
+
args: [MAT_DIALOG_SCROLL_STRATEGY]
|
|
887
|
+
}] }, { type: MatDialog, decorators: [{
|
|
888
|
+
type: Optional
|
|
889
|
+
}, {
|
|
890
|
+
type: SkipSelf
|
|
891
|
+
}] }, { type: i1$1.OverlayContainer }, { type: undefined, decorators: [{
|
|
892
|
+
type: Optional
|
|
893
|
+
}, {
|
|
894
|
+
type: Inject,
|
|
895
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
896
|
+
}] }]; } });
|
|
897
|
+
/**
|
|
898
|
+
* Applies default options to the dialog config.
|
|
899
|
+
* @param config Config to be modified.
|
|
900
|
+
* @param defaultOptions Default options provided.
|
|
901
|
+
* @returns The new configuration object.
|
|
902
|
+
*/
|
|
903
|
+
function _applyConfigDefaults(config, defaultOptions) {
|
|
904
|
+
return { ...defaultOptions, ...config };
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* @license
|
|
909
|
+
* Copyright Google LLC All Rights Reserved.
|
|
910
|
+
*
|
|
911
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
912
|
+
* found in the LICENSE file at https://angular.io/license
|
|
913
|
+
*/
|
|
914
|
+
/** Counter used to generate unique IDs for dialog elements. */
|
|
915
|
+
let dialogElementUid = 0;
|
|
916
|
+
/**
|
|
917
|
+
* Button that will close the current dialog.
|
|
918
|
+
*/
|
|
919
|
+
class MatDialogClose {
|
|
920
|
+
constructor(
|
|
921
|
+
/**
|
|
922
|
+
* Reference to the containing dialog.
|
|
923
|
+
* @deprecated `dialogRef` property to become private.
|
|
924
|
+
* @breaking-change 13.0.0
|
|
925
|
+
*/
|
|
926
|
+
// The dialog title directive is always used in combination with a `MatDialogRef`.
|
|
927
|
+
// tslint:disable-next-line: lightweight-tokens
|
|
928
|
+
dialogRef, _elementRef, _dialog) {
|
|
929
|
+
this.dialogRef = dialogRef;
|
|
930
|
+
this._elementRef = _elementRef;
|
|
931
|
+
this._dialog = _dialog;
|
|
932
|
+
/** Default to "button" to prevents accidental form submits. */
|
|
933
|
+
this.type = 'button';
|
|
934
|
+
}
|
|
935
|
+
ngOnInit() {
|
|
936
|
+
if (!this.dialogRef) {
|
|
937
|
+
// When this directive is included in a dialog via TemplateRef (rather than being
|
|
938
|
+
// in a Component), the DialogRef isn't available via injection because embedded
|
|
939
|
+
// views cannot be given a custom injector. Instead, we look up the DialogRef by
|
|
940
|
+
// ID. This must occur in `onInit`, as the ID binding for the dialog container won't
|
|
941
|
+
// be resolved at constructor time.
|
|
942
|
+
this.dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
ngOnChanges(changes) {
|
|
946
|
+
const proxiedChange = changes['_matDialogClose'] || changes['_matDialogCloseResult'];
|
|
947
|
+
if (proxiedChange) {
|
|
948
|
+
this.dialogResult = proxiedChange.currentValue;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
_onButtonClick(event) {
|
|
952
|
+
// Determinate the focus origin using the click event, because using the FocusMonitor will
|
|
953
|
+
// result in incorrect origins. Most of the time, close buttons will be auto focused in the
|
|
954
|
+
// dialog, and therefore clicking the button won't result in a focus change. This means that
|
|
955
|
+
// the FocusMonitor won't detect any origin change, and will always output `program`.
|
|
956
|
+
_closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
960
|
+
MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["mat-dialog-close", "dialogResult"], _matDialogClose: ["matDialogClose", "_matDialogClose"] }, host: { listeners: { "click": "_onButtonClick($event)" }, properties: { "attr.aria-label": "ariaLabel || null", "attr.type": "type" } }, exportAs: ["matDialogClose"], usesOnChanges: true, ngImport: i0 });
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogClose, decorators: [{
|
|
962
|
+
type: Directive,
|
|
963
|
+
args: [{
|
|
964
|
+
selector: '[mat-dialog-close], [matDialogClose]',
|
|
965
|
+
exportAs: 'matDialogClose',
|
|
966
|
+
host: {
|
|
967
|
+
'(click)': '_onButtonClick($event)',
|
|
968
|
+
'[attr.aria-label]': 'ariaLabel || null',
|
|
969
|
+
'[attr.type]': 'type',
|
|
970
|
+
}
|
|
971
|
+
}]
|
|
972
|
+
}], ctorParameters: function () { return [{ type: MatDialogRef, decorators: [{
|
|
973
|
+
type: Optional
|
|
974
|
+
}] }, { type: i0.ElementRef }, { type: MatDialog }]; }, propDecorators: { ariaLabel: [{
|
|
975
|
+
type: Input,
|
|
976
|
+
args: ['aria-label']
|
|
977
|
+
}], type: [{
|
|
978
|
+
type: Input
|
|
979
|
+
}], dialogResult: [{
|
|
980
|
+
type: Input,
|
|
981
|
+
args: ['mat-dialog-close']
|
|
982
|
+
}], _matDialogClose: [{
|
|
983
|
+
type: Input,
|
|
984
|
+
args: ['matDialogClose']
|
|
985
|
+
}] } });
|
|
986
|
+
/**
|
|
987
|
+
* Title of a dialog element. Stays fixed to the top of the dialog when scrolling.
|
|
988
|
+
*/
|
|
989
|
+
class MatDialogTitle {
|
|
990
|
+
constructor(
|
|
991
|
+
// The dialog title directive is always used in combination with a `MatDialogRef`.
|
|
992
|
+
// tslint:disable-next-line: lightweight-tokens
|
|
993
|
+
_dialogRef, _elementRef, _dialog) {
|
|
994
|
+
this._dialogRef = _dialogRef;
|
|
995
|
+
this._elementRef = _elementRef;
|
|
996
|
+
this._dialog = _dialog;
|
|
997
|
+
/** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
|
|
998
|
+
this.id = `mat-dialog-title-${dialogElementUid++}`;
|
|
999
|
+
}
|
|
1000
|
+
ngOnInit() {
|
|
1001
|
+
if (!this._dialogRef) {
|
|
1002
|
+
this._dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);
|
|
1003
|
+
}
|
|
1004
|
+
if (this._dialogRef) {
|
|
1005
|
+
Promise.resolve().then(() => {
|
|
1006
|
+
const container = this._dialogRef._containerInstance;
|
|
1007
|
+
if (container && !container._ariaLabelledBy) {
|
|
1008
|
+
container._ariaLabelledBy = this.id;
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1015
|
+
MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: { id: "id" }, host: { properties: { "id": "id" }, classAttribute: "mat-dialog-title" }, exportAs: ["matDialogTitle"], ngImport: i0 });
|
|
1016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogTitle, decorators: [{
|
|
1017
|
+
type: Directive,
|
|
1018
|
+
args: [{
|
|
1019
|
+
selector: '[mat-dialog-title], [matDialogTitle]',
|
|
1020
|
+
exportAs: 'matDialogTitle',
|
|
1021
|
+
host: {
|
|
1022
|
+
'class': 'mat-dialog-title',
|
|
1023
|
+
'[id]': 'id',
|
|
1024
|
+
},
|
|
1025
|
+
}]
|
|
1026
|
+
}], ctorParameters: function () { return [{ type: MatDialogRef, decorators: [{
|
|
1027
|
+
type: Optional
|
|
1028
|
+
}] }, { type: i0.ElementRef }, { type: MatDialog }]; }, propDecorators: { id: [{
|
|
1029
|
+
type: Input
|
|
1030
|
+
}] } });
|
|
1031
|
+
/**
|
|
1032
|
+
* Scrollable content container of a dialog.
|
|
1033
|
+
*/
|
|
1034
|
+
class MatDialogContent {
|
|
1035
|
+
}
|
|
1036
|
+
MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1037
|
+
MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]", host: { classAttribute: "mat-dialog-content" }, ngImport: i0 });
|
|
1038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogContent, decorators: [{
|
|
1039
|
+
type: Directive,
|
|
1040
|
+
args: [{
|
|
1041
|
+
selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,
|
|
1042
|
+
host: { 'class': 'mat-dialog-content' }
|
|
1043
|
+
}]
|
|
1044
|
+
}] });
|
|
1045
|
+
/**
|
|
1046
|
+
* Container for the bottom action buttons in a dialog.
|
|
1047
|
+
* Stays fixed to the bottom when scrolling.
|
|
1048
|
+
*/
|
|
1049
|
+
class MatDialogActions {
|
|
1050
|
+
}
|
|
1051
|
+
MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1052
|
+
MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", host: { classAttribute: "mat-dialog-actions" }, ngImport: i0 });
|
|
1053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogActions, decorators: [{
|
|
1054
|
+
type: Directive,
|
|
1055
|
+
args: [{
|
|
1056
|
+
selector: `[mat-dialog-actions], mat-dialog-actions, [matDialogActions]`,
|
|
1057
|
+
host: { 'class': 'mat-dialog-actions' }
|
|
1058
|
+
}]
|
|
1059
|
+
}] });
|
|
1060
|
+
/**
|
|
1061
|
+
* Finds the closest MatDialogRef to an element by looking at the DOM.
|
|
1062
|
+
* @param element Element relative to which to look for a dialog.
|
|
1063
|
+
* @param openDialogs References to the currently-open dialogs.
|
|
1064
|
+
*/
|
|
1065
|
+
function getClosestDialog(element, openDialogs) {
|
|
1066
|
+
let parent = element.nativeElement.parentElement;
|
|
1067
|
+
while (parent && !parent.classList.contains('mat-dialog-container')) {
|
|
1068
|
+
parent = parent.parentElement;
|
|
1069
|
+
}
|
|
1070
|
+
return parent ? openDialogs.find(dialog => dialog.id === parent.id) : null;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* @license
|
|
1075
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1076
|
+
*
|
|
1077
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1078
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1079
|
+
*/
|
|
1080
|
+
class MatDialogModule {
|
|
1081
|
+
}
|
|
1082
|
+
MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1083
|
+
MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,
|
|
1084
|
+
MatDialogClose,
|
|
1085
|
+
MatDialogTitle,
|
|
1086
|
+
MatDialogActions,
|
|
1087
|
+
MatDialogContent], imports: [OverlayModule,
|
|
1088
|
+
PortalModule,
|
|
1089
|
+
MatCommonModule], exports: [MatDialogContainer,
|
|
1090
|
+
MatDialogClose,
|
|
1091
|
+
MatDialogTitle,
|
|
1092
|
+
MatDialogContent,
|
|
1093
|
+
MatDialogActions,
|
|
1094
|
+
MatCommonModule] });
|
|
1095
|
+
MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogModule, providers: [
|
|
1096
|
+
MatDialog,
|
|
1097
|
+
MAT_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
1098
|
+
], imports: [[
|
|
1099
|
+
OverlayModule,
|
|
1100
|
+
PortalModule,
|
|
1101
|
+
MatCommonModule,
|
|
1102
|
+
], MatCommonModule] });
|
|
1103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatDialogModule, decorators: [{
|
|
1104
|
+
type: NgModule,
|
|
1105
|
+
args: [{
|
|
1106
|
+
imports: [
|
|
1107
|
+
OverlayModule,
|
|
1108
|
+
PortalModule,
|
|
1109
|
+
MatCommonModule,
|
|
1110
|
+
],
|
|
1111
|
+
exports: [
|
|
1112
|
+
MatDialogContainer,
|
|
1113
|
+
MatDialogClose,
|
|
1114
|
+
MatDialogTitle,
|
|
1115
|
+
MatDialogContent,
|
|
1116
|
+
MatDialogActions,
|
|
1117
|
+
MatCommonModule,
|
|
1118
|
+
],
|
|
1119
|
+
declarations: [
|
|
1120
|
+
MatDialogContainer,
|
|
1121
|
+
MatDialogClose,
|
|
1122
|
+
MatDialogTitle,
|
|
1123
|
+
MatDialogActions,
|
|
1124
|
+
MatDialogContent,
|
|
1125
|
+
],
|
|
1126
|
+
providers: [
|
|
1127
|
+
MatDialog,
|
|
1128
|
+
MAT_DIALOG_SCROLL_STRATEGY_PROVIDER,
|
|
1129
|
+
],
|
|
1130
|
+
entryComponents: [MatDialogContainer],
|
|
1131
|
+
}]
|
|
1132
|
+
}] });
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* @license
|
|
1136
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1137
|
+
*
|
|
1138
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1139
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1140
|
+
*/
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Generated bundle index. Do not edit.
|
|
1144
|
+
*/
|
|
1145
|
+
|
|
1146
|
+
export { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MAT_DIALOG_SCROLL_STRATEGY_FACTORY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MatDialog, MatDialogActions, MatDialogClose, MatDialogConfig, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle, _MatDialogBase, _MatDialogContainerBase, _closeDialogVia, matDialogAnimations, throwMatDialogContentAlreadyAttachedError };
|
|
1147
|
+
//# sourceMappingURL=dialog.mjs.map
|