@angular/material 14.0.0-next.7 → 14.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +20 -1
- package/autocomplete/index.d.ts +436 -6
- package/autocomplete/testing/index.d.ts +71 -8
- package/badge/_badge-theme.scss +3 -2
- package/badge/index.d.ts +107 -8
- package/badge/testing/index.d.ts +36 -8
- package/bottom-sheet/index.d.ts +266 -6
- package/bottom-sheet/testing/index.d.ts +27 -8
- package/button/index.d.ts +77 -6
- package/button/testing/index.d.ts +44 -8
- package/button-toggle/index.d.ts +245 -6
- package/button-toggle/testing/index.d.ts +91 -8
- package/card/index.d.ts +165 -5
- package/card/testing/index.d.ts +44 -8
- package/checkbox/index.d.ts +246 -6
- package/checkbox/testing/index.d.ts +91 -8
- package/chips/index.d.ts +650 -5
- package/chips/testing/index.d.ts +256 -8
- package/core/_core.scss +5 -7
- package/core/index.d.ts +1079 -5
- package/core/ripple/_ripple.scss +2 -2
- package/core/style/_menu-common.scss +3 -2
- package/core/style/_private.scss +5 -14
- package/core/style/_vendor-prefixes.scss +1 -17
- package/core/testing/index.d.ts +64 -8
- package/core/theming/_theming.scss +2 -2
- package/core/typography/_typography.scss +51 -14
- package/datepicker/index.d.ts +1782 -6
- package/datepicker/testing/index.d.ts +307 -8
- package/dialog/index.d.ts +489 -6
- package/dialog/testing/index.d.ts +97 -8
- package/divider/index.d.ts +30 -8
- package/divider/testing/index.d.ts +16 -8
- package/esm2020/autocomplete/autocomplete-module.mjs +5 -5
- package/esm2020/autocomplete/autocomplete-origin.mjs +7 -7
- package/esm2020/autocomplete/autocomplete-trigger.mjs +38 -20
- package/esm2020/autocomplete/autocomplete.mjs +9 -9
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +5 -1
- package/esm2020/badge/badge-module.mjs +5 -5
- package/esm2020/badge/badge.mjs +4 -4
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +12 -7
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +5 -5
- package/esm2020/bottom-sheet/bottom-sheet.mjs +4 -4
- package/esm2020/button/button-module.mjs +5 -5
- package/esm2020/button/button.mjs +9 -9
- package/esm2020/button-toggle/button-toggle-module.mjs +5 -5
- package/esm2020/button-toggle/button-toggle.mjs +8 -8
- package/esm2020/card/card-module.mjs +5 -5
- package/esm2020/card/card.mjs +44 -44
- package/esm2020/checkbox/checkbox-module.mjs +9 -9
- package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2020/checkbox/checkbox.mjs +23 -21
- package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
- package/esm2020/checkbox/testing/checkbox-harness.mjs +3 -2
- package/esm2020/chips/chip-input.mjs +4 -4
- package/esm2020/chips/chip-list.mjs +5 -5
- package/esm2020/chips/chip.mjs +15 -16
- package/esm2020/chips/chips-module.mjs +6 -6
- package/esm2020/core/common-behaviors/common-module.mjs +5 -5
- package/esm2020/core/common-behaviors/error-state.mjs +1 -1
- package/esm2020/core/datetime/index.mjs +9 -9
- package/esm2020/core/datetime/native-date-adapter.mjs +4 -4
- package/esm2020/core/error/error-options.mjs +7 -7
- package/esm2020/core/line/line.mjs +8 -8
- package/esm2020/core/option/index.mjs +5 -5
- package/esm2020/core/option/optgroup.mjs +8 -8
- package/esm2020/core/option/option.mjs +10 -10
- package/esm2020/core/ripple/index.mjs +5 -5
- package/esm2020/core/ripple/ripple-ref.mjs +2 -2
- package/esm2020/core/ripple/ripple-renderer.mjs +36 -19
- package/esm2020/core/ripple/ripple.mjs +4 -4
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +5 -5
- package/esm2020/datepicker/calendar.mjs +26 -15
- package/esm2020/datepicker/date-range-input-parts.mjs +10 -10
- package/esm2020/datepicker/date-range-input.mjs +6 -6
- package/esm2020/datepicker/date-range-picker.mjs +4 -4
- package/esm2020/datepicker/date-range-selection-strategy.mjs +4 -4
- package/esm2020/datepicker/date-selection-model.mjs +10 -10
- package/esm2020/datepicker/datepicker-actions.mjs +12 -12
- package/esm2020/datepicker/datepicker-base.mjs +11 -11
- package/esm2020/datepicker/datepicker-input-base.mjs +6 -7
- package/esm2020/datepicker/datepicker-input.mjs +4 -4
- package/esm2020/datepicker/datepicker-intl.mjs +4 -4
- package/esm2020/datepicker/datepicker-module.mjs +10 -12
- package/esm2020/datepicker/datepicker-toggle.mjs +10 -10
- package/esm2020/datepicker/datepicker.mjs +4 -4
- package/esm2020/datepicker/month-view.mjs +6 -6
- package/esm2020/datepicker/multi-year-view.mjs +4 -4
- package/esm2020/datepicker/testing/calendar-harness.mjs +4 -4
- package/esm2020/datepicker/year-view.mjs +4 -4
- package/esm2020/dialog/dialog-config.mjs +1 -1
- package/esm2020/dialog/dialog-container.mjs +42 -215
- package/esm2020/dialog/dialog-content-directives.mjs +14 -14
- package/esm2020/dialog/dialog-module.mjs +8 -7
- package/esm2020/dialog/dialog-ref.mjs +28 -60
- package/esm2020/dialog/dialog.mjs +74 -197
- package/esm2020/dialog/testing/dialog-harness.mjs +4 -4
- package/esm2020/divider/divider-module.mjs +5 -5
- package/esm2020/divider/divider.mjs +5 -5
- package/esm2020/expansion/accordion.mjs +4 -4
- package/esm2020/expansion/expansion-module.mjs +5 -5
- package/esm2020/expansion/expansion-panel-content.mjs +4 -4
- package/esm2020/expansion/expansion-panel-header.mjs +11 -11
- package/esm2020/expansion/expansion-panel.mjs +9 -9
- package/esm2020/expansion/testing/expansion-harness.mjs +6 -6
- package/esm2020/form-field/error.mjs +4 -4
- package/esm2020/form-field/form-field-control.mjs +4 -4
- package/esm2020/form-field/form-field-module.mjs +5 -5
- package/esm2020/form-field/form-field.mjs +11 -8
- package/esm2020/form-field/hint.mjs +4 -4
- package/esm2020/form-field/label.mjs +4 -4
- package/esm2020/form-field/placeholder.mjs +4 -4
- package/esm2020/form-field/prefix.mjs +4 -4
- package/esm2020/form-field/suffix.mjs +4 -4
- package/esm2020/form-field/testing/public-api.mjs +4 -4
- package/esm2020/grid-list/grid-list-module.mjs +5 -5
- package/esm2020/grid-list/grid-list.mjs +6 -6
- package/esm2020/grid-list/grid-tile.mjs +17 -17
- package/esm2020/grid-list/testing/grid-tile-harness.mjs +3 -3
- package/esm2020/icon/icon-module.mjs +5 -5
- package/esm2020/icon/icon-registry.mjs +4 -4
- package/esm2020/icon/icon.mjs +5 -12
- package/esm2020/icon/testing/fake-icon-registry.mjs +8 -8
- package/esm2020/icon/testing/icon-harness.mjs +3 -3
- package/esm2020/input/input-module.mjs +5 -5
- package/esm2020/input/input.mjs +29 -22
- package/esm2020/list/list-module.mjs +5 -5
- package/esm2020/list/list.mjs +21 -21
- package/esm2020/list/selection-list.mjs +9 -9
- package/esm2020/menu/menu-content.mjs +7 -7
- package/esm2020/menu/menu-item.mjs +6 -6
- package/esm2020/menu/menu-module.mjs +5 -5
- package/esm2020/menu/menu-trigger.mjs +7 -7
- package/esm2020/menu/menu.mjs +28 -40
- package/esm2020/paginator/paginator-intl.mjs +4 -4
- package/esm2020/paginator/paginator-module.mjs +5 -5
- package/esm2020/paginator/paginator.mjs +13 -13
- package/esm2020/paginator/testing/paginator-harness.mjs +11 -1
- package/esm2020/progress-bar/progress-bar-module.mjs +5 -5
- package/esm2020/progress-bar/progress-bar.mjs +8 -5
- package/esm2020/progress-spinner/progress-spinner-module.mjs +5 -5
- package/esm2020/progress-spinner/progress-spinner.mjs +5 -5
- package/esm2020/radio/radio-module.mjs +5 -5
- package/esm2020/radio/radio.mjs +42 -14
- package/esm2020/radio/testing/radio-harness-filters.mjs +1 -1
- package/esm2020/radio/testing/radio-harness.mjs +3 -2
- package/esm2020/select/select-module.mjs +5 -5
- package/esm2020/select/select.mjs +44 -28
- package/esm2020/sidenav/drawer.mjs +19 -14
- package/esm2020/sidenav/sidenav-module.mjs +5 -5
- package/esm2020/sidenav/sidenav.mjs +12 -12
- package/esm2020/slide-toggle/slide-toggle-module.mjs +12 -14
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +4 -4
- package/esm2020/slide-toggle/slide-toggle.mjs +5 -5
- package/esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs +1 -1
- package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +4 -2
- package/esm2020/slider/slider-module.mjs +5 -5
- package/esm2020/slider/slider.mjs +5 -5
- package/esm2020/snack-bar/simple-snack-bar.mjs +7 -7
- package/esm2020/snack-bar/snack-bar-container.mjs +24 -18
- package/esm2020/snack-bar/snack-bar-module.mjs +5 -5
- package/esm2020/snack-bar/snack-bar-ref.mjs +2 -3
- package/esm2020/snack-bar/snack-bar.mjs +7 -7
- package/esm2020/sort/sort-header-intl.mjs +4 -4
- package/esm2020/sort/sort-header.mjs +5 -5
- package/esm2020/sort/sort-module.mjs +5 -5
- package/esm2020/sort/sort.mjs +4 -4
- package/esm2020/stepper/step-content.mjs +4 -4
- package/esm2020/stepper/step-header.mjs +8 -8
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-icon.mjs +4 -4
- package/esm2020/stepper/stepper-intl.mjs +4 -4
- package/esm2020/stepper/stepper-module.mjs +11 -13
- package/esm2020/stepper/stepper.mjs +11 -11
- package/esm2020/stepper/testing/stepper-harness.mjs +3 -3
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/row.mjs +22 -22
- package/esm2020/table/table-data-source.mjs +1 -1
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +9 -9
- package/esm2020/table/text-column.mjs +5 -5
- package/esm2020/tabs/ink-bar.mjs +4 -4
- package/esm2020/tabs/paginated-tab-header.mjs +11 -5
- package/esm2020/tabs/tab-body.mjs +11 -11
- package/esm2020/tabs/tab-content.mjs +4 -4
- package/esm2020/tabs/tab-group.mjs +35 -18
- package/esm2020/tabs/tab-header.mjs +8 -8
- package/esm2020/tabs/tab-label-wrapper.mjs +4 -4
- package/esm2020/tabs/tab-label.mjs +4 -4
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -17
- package/esm2020/tabs/tab.mjs +4 -4
- package/esm2020/tabs/tabs-module.mjs +10 -12
- package/esm2020/toolbar/testing/toolbar-harness.mjs +2 -2
- package/esm2020/toolbar/toolbar-module.mjs +5 -5
- package/esm2020/toolbar/toolbar.mjs +8 -8
- package/esm2020/tooltip/tooltip-module.mjs +5 -5
- package/esm2020/tooltip/tooltip.mjs +14 -14
- package/esm2020/tree/node.mjs +10 -10
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +5 -5
- package/expansion/index.d.ts +343 -5
- package/expansion/testing/index.d.ts +106 -8
- package/fesm2015/autocomplete/testing.mjs +6 -0
- package/fesm2015/autocomplete/testing.mjs.map +1 -1
- package/fesm2015/autocomplete.mjs +55 -37
- package/fesm2015/autocomplete.mjs.map +1 -1
- package/fesm2015/badge.mjs +7 -7
- package/fesm2015/badge.mjs.map +1 -1
- package/fesm2015/bottom-sheet.mjs +18 -13
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/button-toggle.mjs +11 -11
- package/fesm2015/button-toggle.mjs.map +1 -1
- package/fesm2015/button.mjs +12 -12
- package/fesm2015/button.mjs.map +1 -1
- package/fesm2015/card.mjs +47 -47
- package/fesm2015/card.mjs.map +1 -1
- package/fesm2015/checkbox/testing.mjs +2 -1
- package/fesm2015/checkbox/testing.mjs.map +1 -1
- package/fesm2015/checkbox.mjs +33 -31
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/chips.mjs +26 -27
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +99 -81
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker/testing.mjs +3 -3
- package/fesm2015/datepicker/testing.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +111 -103
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/dialog/testing.mjs +3 -3
- package/fesm2015/dialog/testing.mjs.map +1 -1
- package/fesm2015/dialog.mjs +152 -485
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/divider.mjs +8 -8
- package/fesm2015/divider.mjs.map +1 -1
- package/fesm2015/expansion/testing.mjs +5 -5
- package/fesm2015/expansion/testing.mjs.map +1 -1
- package/fesm2015/expansion.mjs +28 -28
- package/fesm2015/expansion.mjs.map +1 -1
- package/fesm2015/form-field/testing.mjs +1 -1
- package/fesm2015/form-field/testing.mjs.map +1 -1
- package/fesm2015/form-field.mjs +35 -32
- package/fesm2015/form-field.mjs.map +1 -1
- package/fesm2015/grid-list/testing.mjs +2 -2
- package/fesm2015/grid-list/testing.mjs.map +1 -1
- package/fesm2015/grid-list.mjs +25 -25
- package/fesm2015/grid-list.mjs.map +1 -1
- package/fesm2015/icon/testing.mjs +9 -9
- package/fesm2015/icon/testing.mjs.map +1 -1
- package/fesm2015/icon.mjs +11 -18
- package/fesm2015/icon.mjs.map +1 -1
- package/fesm2015/input.mjs +33 -26
- package/fesm2015/input.mjs.map +1 -1
- package/fesm2015/list.mjs +32 -32
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/menu.mjs +48 -60
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/paginator/testing.mjs +14 -0
- package/fesm2015/paginator/testing.mjs.map +1 -1
- package/fesm2015/paginator.mjs +19 -19
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/progress-bar.mjs +11 -8
- package/fesm2015/progress-bar.mjs.map +1 -1
- package/fesm2015/progress-spinner.mjs +8 -8
- package/fesm2015/progress-spinner.mjs.map +1 -1
- package/fesm2015/radio/testing.mjs +2 -1
- package/fesm2015/radio/testing.mjs.map +1 -1
- package/fesm2015/radio.mjs +46 -17
- package/fesm2015/radio.mjs.map +1 -1
- package/fesm2015/select.mjs +48 -32
- package/fesm2015/select.mjs.map +1 -1
- package/fesm2015/sidenav.mjs +33 -28
- package/fesm2015/sidenav.mjs.map +1 -1
- package/fesm2015/slide-toggle/testing.mjs +3 -1
- package/fesm2015/slide-toggle/testing.mjs.map +1 -1
- package/fesm2015/slide-toggle.mjs +18 -20
- package/fesm2015/slide-toggle.mjs.map +1 -1
- package/fesm2015/slider.mjs +8 -8
- package/fesm2015/slider.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +40 -35
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/sort.mjs +14 -14
- package/fesm2015/sort.mjs.map +1 -1
- package/fesm2015/stepper/testing.mjs +2 -2
- package/fesm2015/stepper/testing.mjs.map +1 -1
- package/fesm2015/stepper.mjs +42 -44
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +58 -58
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/tabs.mjs +97 -75
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2015/toolbar/testing.mjs +1 -1
- package/fesm2015/toolbar/testing.mjs.map +1 -1
- package/fesm2015/toolbar.mjs +11 -11
- package/fesm2015/toolbar.mjs.map +1 -1
- package/fesm2015/tooltip.mjs +17 -17
- package/fesm2015/tooltip.mjs.map +1 -1
- package/fesm2015/tree.mjs +26 -26
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/autocomplete/testing.mjs +4 -0
- package/fesm2020/autocomplete/testing.mjs.map +1 -1
- package/fesm2020/autocomplete.mjs +55 -37
- package/fesm2020/autocomplete.mjs.map +1 -1
- package/fesm2020/badge.mjs +7 -7
- package/fesm2020/badge.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +18 -13
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/button-toggle.mjs +11 -11
- package/fesm2020/button-toggle.mjs.map +1 -1
- package/fesm2020/button.mjs +12 -12
- package/fesm2020/button.mjs.map +1 -1
- package/fesm2020/card.mjs +47 -47
- package/fesm2020/card.mjs.map +1 -1
- package/fesm2020/checkbox/testing.mjs +2 -1
- package/fesm2020/checkbox/testing.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +33 -31
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/chips.mjs +26 -27
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +98 -81
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker/testing.mjs +3 -3
- package/fesm2020/datepicker/testing.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +111 -103
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/dialog/testing.mjs +3 -3
- package/fesm2020/dialog/testing.mjs.map +1 -1
- package/fesm2020/dialog.mjs +155 -484
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/divider.mjs +8 -8
- package/fesm2020/divider.mjs.map +1 -1
- package/fesm2020/expansion/testing.mjs +5 -5
- package/fesm2020/expansion/testing.mjs.map +1 -1
- package/fesm2020/expansion.mjs +28 -28
- package/fesm2020/expansion.mjs.map +1 -1
- package/fesm2020/form-field/testing.mjs +1 -1
- package/fesm2020/form-field/testing.mjs.map +1 -1
- package/fesm2020/form-field.mjs +35 -32
- package/fesm2020/form-field.mjs.map +1 -1
- package/fesm2020/grid-list/testing.mjs +2 -2
- package/fesm2020/grid-list/testing.mjs.map +1 -1
- package/fesm2020/grid-list.mjs +25 -25
- package/fesm2020/grid-list.mjs.map +1 -1
- package/fesm2020/icon/testing.mjs +9 -9
- package/fesm2020/icon/testing.mjs.map +1 -1
- package/fesm2020/icon.mjs +11 -18
- package/fesm2020/icon.mjs.map +1 -1
- package/fesm2020/input.mjs +32 -25
- package/fesm2020/input.mjs.map +1 -1
- package/fesm2020/list.mjs +32 -32
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/menu.mjs +48 -60
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/paginator/testing.mjs +10 -0
- package/fesm2020/paginator/testing.mjs.map +1 -1
- package/fesm2020/paginator.mjs +19 -19
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/progress-bar.mjs +11 -8
- package/fesm2020/progress-bar.mjs.map +1 -1
- package/fesm2020/progress-spinner.mjs +8 -8
- package/fesm2020/progress-spinner.mjs.map +1 -1
- package/fesm2020/radio/testing.mjs +2 -1
- package/fesm2020/radio/testing.mjs.map +1 -1
- package/fesm2020/radio.mjs +45 -17
- package/fesm2020/radio.mjs.map +1 -1
- package/fesm2020/select.mjs +48 -32
- package/fesm2020/select.mjs.map +1 -1
- package/fesm2020/sidenav.mjs +33 -28
- package/fesm2020/sidenav.mjs.map +1 -1
- package/fesm2020/slide-toggle/testing.mjs +3 -1
- package/fesm2020/slide-toggle/testing.mjs.map +1 -1
- package/fesm2020/slide-toggle.mjs +18 -20
- package/fesm2020/slide-toggle.mjs.map +1 -1
- package/fesm2020/slider.mjs +8 -8
- package/fesm2020/slider.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +40 -35
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/sort.mjs +14 -14
- package/fesm2020/sort.mjs.map +1 -1
- package/fesm2020/stepper/testing.mjs +2 -2
- package/fesm2020/stepper/testing.mjs.map +1 -1
- package/fesm2020/stepper.mjs +42 -44
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +58 -58
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/tabs.mjs +96 -75
- package/fesm2020/tabs.mjs.map +1 -1
- package/fesm2020/toolbar/testing.mjs +1 -1
- package/fesm2020/toolbar/testing.mjs.map +1 -1
- package/fesm2020/toolbar.mjs +11 -11
- package/fesm2020/toolbar.mjs.map +1 -1
- package/fesm2020/tooltip.mjs +17 -17
- package/fesm2020/tooltip.mjs.map +1 -1
- package/fesm2020/tree.mjs +26 -26
- package/fesm2020/tree.mjs.map +1 -1
- package/form-field/index.d.ts +401 -5
- package/form-field/testing/control/index.d.ts +8 -6
- package/form-field/testing/index.d.ts +127 -8
- package/grid-list/index.d.ts +232 -5
- package/grid-list/testing/index.d.ts +86 -8
- package/icon/index.d.ts +443 -5
- package/icon/testing/index.d.ts +81 -6
- package/index.d.ts +3 -7
- package/input/index.d.ts +209 -6
- package/input/testing/index.d.ts +129 -8
- package/list/index.d.ts +369 -6
- package/list/testing/index.d.ts +329 -6
- package/menu/index.d.ts +613 -6
- package/menu/testing/index.d.ts +115 -8
- package/package.json +38 -38
- package/paginator/index.d.ts +224 -6
- package/paginator/testing/index.d.ts +65 -8
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +147 -6
- package/progress-bar/testing/index.d.ts +26 -8
- package/progress-spinner/index.d.ts +138 -6
- package/progress-spinner/testing/index.d.ts +27 -8
- package/radio/index.d.ts +305 -6
- package/radio/testing/index.d.ts +130 -8
- package/schematics/collection.json +4 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/gesture-config.template +1 -1
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +5 -5
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +5 -5
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +23 -32
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +23 -32
- package/select/index.d.ts +534 -5
- package/select/testing/index.d.ts +79 -8
- package/sidenav/index.d.ts +395 -5
- package/sidenav/testing/index.d.ts +124 -6
- package/slide-toggle/index.d.ts +173 -5
- package/slide-toggle/testing/index.d.ts +77 -8
- package/slider/index.d.ts +289 -6
- package/slider/testing/index.d.ts +60 -8
- package/snack-bar/index.d.ts +372 -6
- package/snack-bar/testing/index.d.ts +72 -8
- package/sort/index.d.ts +326 -5
- package/sort/testing/index.d.ts +50 -8
- package/stepper/index.d.ts +288 -6
- package/stepper/testing/index.d.ts +142 -6
- package/table/index.d.ts +382 -5
- package/table/testing/index.d.ts +178 -8
- package/tabs/_tabs-common.scss +6 -5
- package/tabs/index.d.ts +963 -5
- package/tabs/testing/index.d.ts +153 -8
- package/toolbar/index.d.ts +56 -6
- package/toolbar/testing/index.d.ts +35 -8
- package/tooltip/index.d.ts +362 -5
- package/tooltip/testing/index.d.ts +42 -8
- package/tree/index.d.ts +243 -5
- package/tree/testing/index.d.ts +122 -8
- package/autocomplete/autocomplete-module.d.ts +0 -13
- package/autocomplete/autocomplete-origin.d.ts +0 -27
- package/autocomplete/autocomplete-trigger.d.ts +0 -211
- package/autocomplete/autocomplete.d.ts +0 -150
- package/autocomplete/autocomplete_public_index.d.ts +0 -4
- package/autocomplete/package.json +0 -9
- package/autocomplete/public-api.d.ts +0 -11
- package/autocomplete/testing/autocomplete-harness-filters.d.ts +0 -13
- package/autocomplete/testing/autocomplete-harness.d.ts +0 -61
- package/autocomplete/testing/package.json +0 -9
- package/autocomplete/testing/public-api.d.ts +0 -9
- package/badge/badge-module.d.ts +0 -9
- package/badge/badge.d.ts +0 -86
- package/badge/badge_public_index.d.ts +0 -4
- package/badge/package.json +0 -9
- package/badge/public-api.d.ts +0 -9
- package/badge/testing/badge-harness-filters.d.ts +0 -11
- package/badge/testing/badge-harness.d.ts +0 -34
- package/badge/testing/package.json +0 -9
- package/badge/testing/public-api.d.ts +0 -9
- package/bottom-sheet/bottom-sheet-animations.d.ts +0 -12
- package/bottom-sheet/bottom-sheet-config.d.ts +0 -54
- package/bottom-sheet/bottom-sheet-container.d.ts +0 -87
- package/bottom-sheet/bottom-sheet-module.d.ts +0 -10
- package/bottom-sheet/bottom-sheet-ref.d.ts +0 -51
- package/bottom-sheet/bottom-sheet.d.ts +0 -59
- package/bottom-sheet/bottom-sheet_public_index.d.ts +0 -4
- package/bottom-sheet/package.json +0 -9
- package/bottom-sheet/public-api.d.ts +0 -13
- package/bottom-sheet/testing/bottom-sheet-harness-filters.d.ts +0 -10
- package/bottom-sheet/testing/bottom-sheet-harness.d.ts +0 -27
- package/bottom-sheet/testing/package.json +0 -9
- package/bottom-sheet/testing/public-api.d.ts +0 -9
- package/button/button-module.d.ts +0 -8
- package/button/button.d.ts +0 -58
- package/button/button_public_index.d.ts +0 -4
- package/button/package.json +0 -9
- package/button/public-api.d.ts +0 -9
- package/button/testing/button-harness-filters.d.ts +0 -13
- package/button/testing/button-harness.d.ts +0 -41
- package/button/testing/package.json +0 -9
- package/button/testing/public-api.d.ts +0 -9
- package/button-toggle/button-toggle-module.d.ts +0 -8
- package/button-toggle/button-toggle.d.ts +0 -212
- package/button-toggle/button-toggle_public_index.d.ts +0 -4
- package/button-toggle/package.json +0 -9
- package/button-toggle/public-api.d.ts +0 -9
- package/button-toggle/testing/button-toggle-group-harness-filters.d.ts +0 -11
- package/button-toggle/testing/button-toggle-group-harness.d.ts +0 -35
- package/button-toggle/testing/button-toggle-harness-filters.d.ts +0 -17
- package/button-toggle/testing/button-toggle-harness.d.ts +0 -56
- package/button-toggle/testing/package.json +0 -9
- package/button-toggle/testing/public-api.d.ts +0 -11
- package/card/card-module.d.ts +0 -8
- package/card/card.d.ts +0 -126
- package/card/card_public_index.d.ts +0 -4
- package/card/package.json +0 -9
- package/card/public-api.d.ts +0 -9
- package/card/testing/card-harness-filters.d.ts +0 -17
- package/card/testing/card-harness.d.ts +0 -36
- package/card/testing/package.json +0 -9
- package/card/testing/public-api.d.ts +0 -9
- package/checkbox/checkbox-config.d.ts +0 -28
- package/checkbox/checkbox-module.d.ts +0 -16
- package/checkbox/checkbox-required-validator.d.ts +0 -20
- package/checkbox/checkbox.d.ts +0 -166
- package/checkbox/checkbox_public_index.d.ts +0 -4
- package/checkbox/package.json +0 -9
- package/checkbox/public-api.d.ts +0 -11
- package/checkbox/testing/checkbox-harness-filters.d.ts +0 -15
- package/checkbox/testing/checkbox-harness.d.ts +0 -81
- package/checkbox/testing/package.json +0 -9
- package/checkbox/testing/public-api.d.ts +0 -9
- package/chips/chip-default-options.d.ts +0 -15
- package/chips/chip-input.d.ts +0 -91
- package/chips/chip-list.d.ts +0 -289
- package/chips/chip-text-control.d.ts +0 -20
- package/chips/chip.d.ts +0 -210
- package/chips/chips-module.d.ts +0 -10
- package/chips/chips_public_index.d.ts +0 -4
- package/chips/package.json +0 -9
- package/chips/public-api.d.ts +0 -12
- package/chips/testing/chip-avatar-harness.d.ts +0 -20
- package/chips/testing/chip-harness-filters.d.ts +0 -43
- package/chips/testing/chip-harness.d.ts +0 -63
- package/chips/testing/chip-input-harness.d.ts +0 -47
- package/chips/testing/chip-list-harness.d.ts +0 -54
- package/chips/testing/chip-listbox-harness.d.ts +0 -34
- package/chips/testing/chip-option-harness.d.ts +0 -29
- package/chips/testing/chip-remove-harness.d.ts +0 -22
- package/chips/testing/package.json +0 -9
- package/chips/testing/public-api.d.ts +0 -14
- package/core/animation/animation.d.ts +0 -20
- package/core/common-behaviors/color.d.ts +0 -26
- package/core/common-behaviors/common-module.d.ts +0 -44
- package/core/common-behaviors/constructor.d.ts +0 -14
- package/core/common-behaviors/disable-ripple.d.ts +0 -17
- package/core/common-behaviors/disabled.d.ts +0 -17
- package/core/common-behaviors/error-state.d.ts +0 -35
- package/core/common-behaviors/index.d.ts +0 -15
- package/core/common-behaviors/initialized.d.ts +0 -30
- package/core/common-behaviors/tabindex.d.ts +0 -20
- package/core/core_public_index.d.ts +0 -4
- package/core/datetime/date-adapter.d.ts +0 -215
- package/core/datetime/date-formats.d.ts +0 -21
- package/core/datetime/index.d.ts +0 -15
- package/core/datetime/native-date-adapter.d.ts +0 -74
- package/core/datetime/native-date-formats.d.ts +0 -9
- package/core/error/error-options.d.ts +0 -14
- package/core/line/line.d.ts +0 -29
- package/core/option/index.d.ts +0 -15
- package/core/option/optgroup.d.ts +0 -40
- package/core/option/option-parent.d.ts +0 -22
- package/core/option/option.d.ts +0 -135
- package/core/package.json +0 -9
- package/core/public-api.d.ts +0 -16
- package/core/ripple/index.d.ts +0 -11
- package/core/ripple/ripple-ref.d.ts +0 -54
- package/core/ripple/ripple-renderer.d.ts +0 -99
- package/core/ripple/ripple.d.ts +0 -113
- package/core/selection/index.d.ts +0 -9
- package/core/selection/pseudo-checkbox/pseudo-checkbox-module.d.ts +0 -8
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +0 -29
- package/core/testing/optgroup-harness-filters.d.ts +0 -11
- package/core/testing/optgroup-harness.d.ts +0 -33
- package/core/testing/option-harness-filters.d.ts +0 -12
- package/core/testing/option-harness.d.ts +0 -35
- package/core/testing/package.json +0 -9
- package/core/testing/public-api.d.ts +0 -11
- package/core/version.d.ts +0 -10
- package/datepicker/calendar-body.d.ts +0 -176
- package/datepicker/calendar.d.ts +0 -156
- package/datepicker/date-range-input-parts.d.ts +0 -108
- package/datepicker/date-range-input.d.ts +0 -133
- package/datepicker/date-range-picker.d.ts +0 -17
- package/datepicker/date-range-selection-strategy.d.ts +0 -48
- package/datepicker/date-selection-model.d.ts +0 -139
- package/datepicker/datepicker-actions.d.ts +0 -40
- package/datepicker/datepicker-animations.d.ts +0 -16
- package/datepicker/datepicker-base.d.ts +0 -272
- package/datepicker/datepicker-errors.d.ts +0 -9
- package/datepicker/datepicker-input-base.d.ts +0 -136
- package/datepicker/datepicker-input.d.ts +0 -67
- package/datepicker/datepicker-intl.d.ts +0 -36
- package/datepicker/datepicker-module.d.ts +0 -26
- package/datepicker/datepicker-toggle.d.ts +0 -47
- package/datepicker/datepicker.d.ts +0 -7
- package/datepicker/datepicker_public_index.d.ts +0 -4
- package/datepicker/month-view.d.ts +0 -139
- package/datepicker/multi-year-view.d.ts +0 -103
- package/datepicker/package.json +0 -9
- package/datepicker/public-api.d.ts +0 -26
- package/datepicker/testing/calendar-cell-harness.d.ts +0 -64
- package/datepicker/testing/calendar-harness.d.ts +0 -53
- package/datepicker/testing/date-range-input-harness.d.ts +0 -59
- package/datepicker/testing/datepicker-harness-filters.d.ts +0 -45
- package/datepicker/testing/datepicker-input-harness-base.d.ts +0 -44
- package/datepicker/testing/datepicker-input-harness.d.ts +0 -36
- package/datepicker/testing/datepicker-toggle-harness.d.ts +0 -28
- package/datepicker/testing/datepicker-trigger-harness-base.d.ts +0 -44
- package/datepicker/testing/package.json +0 -9
- package/datepicker/testing/public-api.d.ts +0 -13
- package/datepicker/year-view.d.ts +0 -114
- package/dialog/dialog-animations.d.ts +0 -25
- package/dialog/dialog-config.d.ts +0 -100
- package/dialog/dialog-container.d.ts +0 -133
- package/dialog/dialog-content-directives.d.ts +0 -76
- package/dialog/dialog-module.d.ts +0 -11
- package/dialog/dialog-ref.d.ts +0 -101
- package/dialog/dialog.d.ts +0 -154
- package/dialog/dialog_public_index.d.ts +0 -4
- package/dialog/package.json +0 -9
- package/dialog/public-api.d.ts +0 -14
- package/dialog/testing/dialog-harness-filters.d.ts +0 -11
- package/dialog/testing/dialog-harness.d.ts +0 -58
- package/dialog/testing/dialog-opener.d.ts +0 -33
- package/dialog/testing/package.json +0 -9
- package/dialog/testing/public-api.d.ts +0 -10
- package/divider/divider-module.d.ts +0 -8
- package/divider/divider.d.ts +0 -14
- package/divider/divider_public_index.d.ts +0 -4
- package/divider/package.json +0 -9
- package/divider/public-api.d.ts +0 -9
- package/divider/testing/divider-harness-filters.d.ts +0 -10
- package/divider/testing/divider-harness.d.ts +0 -16
- package/divider/testing/package.json +0 -9
- package/divider/testing/public-api.d.ts +0 -9
- package/expansion/accordion-base.d.ts +0 -34
- package/expansion/accordion.d.ts +0 -45
- package/expansion/expansion-animations.d.ts +0 -36
- package/expansion/expansion-module.d.ts +0 -14
- package/expansion/expansion-panel-base.d.ts +0 -22
- package/expansion/expansion-panel-content.d.ts +0 -21
- package/expansion/expansion-panel-header.d.ts +0 -83
- package/expansion/expansion-panel.d.ts +0 -96
- package/expansion/expansion_public_index.d.ts +0 -4
- package/expansion/package.json +0 -9
- package/expansion/public-api.d.ts +0 -15
- package/expansion/testing/accordion-harness.d.ts +0 -25
- package/expansion/testing/expansion-harness-filters.d.ts +0 -17
- package/expansion/testing/expansion-harness.d.ts +0 -79
- package/expansion/testing/package.json +0 -9
- package/expansion/testing/public-api.d.ts +0 -10
- package/form-field/error.d.ts +0 -22
- package/form-field/form-field-animations.d.ts +0 -15
- package/form-field/form-field-control.d.ts +0 -60
- package/form-field/form-field-errors.d.ts +0 -13
- package/form-field/form-field-module.d.ts +0 -16
- package/form-field/form-field.d.ts +0 -186
- package/form-field/form-field_public_index.d.ts +0 -4
- package/form-field/hint.d.ts +0 -27
- package/form-field/label.d.ts +0 -6
- package/form-field/package.json +0 -9
- package/form-field/placeholder.d.ts +0 -11
- package/form-field/prefix.d.ts +0 -20
- package/form-field/public-api.d.ts +0 -18
- package/form-field/suffix.d.ts +0 -20
- package/form-field/testing/control/form-field-control-harness.d.ts +0 -14
- package/form-field/testing/control/package.json +0 -9
- package/form-field/testing/form-field-harness-filters.d.ts +0 -15
- package/form-field/testing/form-field-harness.d.ts +0 -114
- package/form-field/testing/package.json +0 -9
- package/form-field/testing/public-api.d.ts +0 -10
- package/grid-list/grid-list-base.d.ts +0 -22
- package/grid-list/grid-list-module.d.ts +0 -9
- package/grid-list/grid-list.d.ts +0 -63
- package/grid-list/grid-list_public_index.d.ts +0 -4
- package/grid-list/grid-tile.d.ts +0 -64
- package/grid-list/package.json +0 -9
- package/grid-list/public-api.d.ts +0 -12
- package/grid-list/testing/grid-list-harness-filters.d.ts +0 -18
- package/grid-list/testing/grid-list-harness.d.ts +0 -41
- package/grid-list/testing/grid-tile-harness.d.ts +0 -43
- package/grid-list/testing/package.json +0 -9
- package/grid-list/testing/public-api.d.ts +0 -10
- package/grid-list/tile-coordinator.d.ts +0 -79
- package/grid-list/tile-styler.d.ts +0 -134
- package/icon/fake-svgs.d.ts +0 -23
- package/icon/icon-module.d.ts +0 -8
- package/icon/icon-registry.d.ts +0 -262
- package/icon/icon.d.ts +0 -147
- package/icon/icon_public_index.d.ts +0 -4
- package/icon/package.json +0 -9
- package/icon/public-api.d.ts +0 -10
- package/icon/testing/fake-icon-registry.d.ts +0 -46
- package/icon/testing/icon-harness-filters.d.ts +0 -22
- package/icon/testing/icon-harness.d.ts +0 -29
- package/icon/testing/package.json +0 -9
- package/icon/testing/public-api.d.ts +0 -10
- package/icon/testing/testing_public_index.d.ts +0 -4
- package/icon/trusted-types.d.ts +0 -37
- package/input/input-errors.d.ts +0 -9
- package/input/input-module.d.ts +0 -10
- package/input/input-value-accessor.d.ts +0 -17
- package/input/input.d.ts +0 -173
- package/input/input_public_index.d.ts +0 -4
- package/input/package.json +0 -9
- package/input/public-api.d.ts +0 -11
- package/input/testing/input-harness-filters.d.ts +0 -15
- package/input/testing/input-harness.d.ts +0 -57
- package/input/testing/native-option-harness.d.ts +0 -29
- package/input/testing/native-select-harness-filters.d.ts +0 -17
- package/input/testing/native-select-harness.d.ts +0 -45
- package/input/testing/package.json +0 -9
- package/input/testing/public-api.d.ts +0 -12
- package/list/list-module.d.ts +0 -11
- package/list/list.d.ts +0 -99
- package/list/list_public_index.d.ts +0 -4
- package/list/package.json +0 -9
- package/list/public-api.d.ts +0 -10
- package/list/selection-list.d.ts +0 -226
- package/list/testing/action-list-harness.d.ts +0 -44
- package/list/testing/list-harness-base.d.ts +0 -100
- package/list/testing/list-harness-filters.d.ts +0 -32
- package/list/testing/list-harness.d.ts +0 -36
- package/list/testing/list-item-harness-base.d.ts +0 -48
- package/list/testing/nav-list-harness.d.ts +0 -46
- package/list/testing/package.json +0 -9
- package/list/testing/public-api.d.ts +0 -13
- package/list/testing/selection-list-harness.d.ts +0 -74
- package/menu/menu-animations.d.ts +0 -30
- package/menu/menu-content.d.ts +0 -47
- package/menu/menu-errors.d.ts +0 -25
- package/menu/menu-item.d.ts +0 -61
- package/menu/menu-module.d.ts +0 -14
- package/menu/menu-panel.d.ts +0 -49
- package/menu/menu-positions.d.ts +0 -9
- package/menu/menu-trigger.d.ts +0 -180
- package/menu/menu.d.ts +0 -207
- package/menu/menu_public_index.d.ts +0 -4
- package/menu/package.json +0 -9
- package/menu/public-api.d.ts +0 -15
- package/menu/testing/menu-harness-filters.d.ts +0 -20
- package/menu/testing/menu-harness.d.ts +0 -98
- package/menu/testing/package.json +0 -9
- package/menu/testing/public-api.d.ts +0 -9
- package/paginator/package.json +0 -9
- package/paginator/paginator-intl.d.ts +0 -43
- package/paginator/paginator-module.d.ts +0 -12
- package/paginator/paginator.d.ts +0 -157
- package/paginator/paginator_public_index.d.ts +0 -4
- package/paginator/public-api.d.ts +0 -10
- package/paginator/testing/package.json +0 -9
- package/paginator/testing/paginator-harness-filters.d.ts +0 -11
- package/paginator/testing/paginator-harness.d.ts +0 -58
- package/paginator/testing/public-api.d.ts +0 -9
- package/progress-bar/package.json +0 -9
- package/progress-bar/progress-bar-module.d.ts +0 -9
- package/progress-bar/progress-bar.d.ts +0 -116
- package/progress-bar/progress-bar_public_index.d.ts +0 -4
- package/progress-bar/public-api.d.ts +0 -9
- package/progress-bar/testing/package.json +0 -9
- package/progress-bar/testing/progress-bar-harness-filters.d.ts +0 -11
- package/progress-bar/testing/progress-bar-harness.d.ts +0 -25
- package/progress-bar/testing/public-api.d.ts +0 -9
- package/progress-spinner/package.json +0 -9
- package/progress-spinner/progress-spinner-module.d.ts +0 -9
- package/progress-spinner/progress-spinner.d.ts +0 -107
- package/progress-spinner/progress-spinner_public_index.d.ts +0 -4
- package/progress-spinner/public-api.d.ts +0 -16
- package/progress-spinner/testing/package.json +0 -9
- package/progress-spinner/testing/progress-spinner-harness-filters.d.ts +0 -11
- package/progress-spinner/testing/progress-spinner-harness.d.ts +0 -26
- package/progress-spinner/testing/public-api.d.ts +0 -9
- package/radio/package.json +0 -9
- package/radio/public-api.d.ts +0 -9
- package/radio/radio-module.d.ts +0 -8
- package/radio/radio.d.ts +0 -260
- package/radio/radio_public_index.d.ts +0 -4
- package/radio/testing/package.json +0 -9
- package/radio/testing/public-api.d.ts +0 -9
- package/radio/testing/radio-harness-filters.d.ts +0 -20
- package/radio/testing/radio-harness.d.ts +0 -111
- package/select/package.json +0 -9
- package/select/public-api.d.ts +0 -10
- package/select/select-animations.d.ts +0 -19
- package/select/select-errors.d.ts +0 -26
- package/select/select-module.d.ts +0 -12
- package/select/select.d.ts +0 -450
- package/select/select_public_index.d.ts +0 -4
- package/select/testing/package.json +0 -9
- package/select/testing/public-api.d.ts +0 -9
- package/select/testing/select-harness-filters.d.ts +0 -11
- package/select/testing/select-harness.d.ts +0 -73
- package/sidenav/drawer-animations.d.ts +0 -15
- package/sidenav/drawer.d.ts +0 -299
- package/sidenav/package.json +0 -9
- package/sidenav/public-api.d.ts +0 -11
- package/sidenav/sidenav-module.d.ts +0 -11
- package/sidenav/sidenav.d.ts +0 -45
- package/sidenav/sidenav_public_index.d.ts +0 -4
- package/sidenav/testing/drawer-container-harness.d.ts +0 -30
- package/sidenav/testing/drawer-content-harness.d.ts +0 -21
- package/sidenav/testing/drawer-harness-filters.d.ts +0 -19
- package/sidenav/testing/drawer-harness.d.ts +0 -33
- package/sidenav/testing/package.json +0 -9
- package/sidenav/testing/public-api.d.ts +0 -14
- package/sidenav/testing/sidenav-container-harness.d.ts +0 -30
- package/sidenav/testing/sidenav-content-harness.d.ts +0 -21
- package/sidenav/testing/sidenav-harness.d.ts +0 -24
- package/slide-toggle/package.json +0 -9
- package/slide-toggle/public-api.d.ts +0 -11
- package/slide-toggle/slide-toggle-config.d.ts +0 -18
- package/slide-toggle/slide-toggle-module.d.ts +0 -16
- package/slide-toggle/slide-toggle-required-validator.d.ts +0 -23
- package/slide-toggle/slide-toggle.d.ts +0 -109
- package/slide-toggle/slide-toggle_public_index.d.ts +0 -4
- package/slide-toggle/testing/package.json +0 -9
- package/slide-toggle/testing/public-api.d.ts +0 -9
- package/slide-toggle/testing/slide-toggle-harness-filters.d.ts +0 -15
- package/slide-toggle/testing/slide-toggle-harness.d.ts +0 -65
- package/slider/package.json +0 -9
- package/slider/public-api.d.ts +0 -9
- package/slider/slider-module.d.ts +0 -9
- package/slider/slider.d.ts +0 -267
- package/slider/slider_public_index.d.ts +0 -4
- package/slider/testing/package.json +0 -9
- package/slider/testing/public-api.d.ts +0 -9
- package/slider/testing/slider-harness-filters.d.ts +0 -11
- package/slider/testing/slider-harness.d.ts +0 -59
- package/snack-bar/package.json +0 -9
- package/snack-bar/public-api.d.ts +0 -14
- package/snack-bar/simple-snack-bar.d.ts +0 -33
- package/snack-bar/snack-bar-animations.d.ts +0 -15
- package/snack-bar/snack-bar-config.d.ts +0 -45
- package/snack-bar/snack-bar-container.d.ts +0 -101
- package/snack-bar/snack-bar-module.d.ts +0 -13
- package/snack-bar/snack-bar-ref.d.ts +0 -64
- package/snack-bar/snack-bar.d.ts +0 -107
- package/snack-bar/snack-bar_public_index.d.ts +0 -4
- package/snack-bar/testing/package.json +0 -9
- package/snack-bar/testing/public-api.d.ts +0 -9
- package/snack-bar/testing/snack-bar-harness-filters.d.ts +0 -11
- package/snack-bar/testing/snack-bar-harness.d.ts +0 -71
- package/sort/package.json +0 -9
- package/sort/public-api.d.ts +0 -13
- package/sort/sort-animations.d.ts +0 -20
- package/sort/sort-direction.d.ts +0 -8
- package/sort/sort-errors.d.ts +0 -15
- package/sort/sort-header-intl.d.ts +0 -31
- package/sort/sort-header.d.ts +0 -166
- package/sort/sort-module.d.ts +0 -10
- package/sort/sort.d.ts +0 -93
- package/sort/sort_public_index.d.ts +0 -4
- package/sort/testing/package.json +0 -9
- package/sort/testing/public-api.d.ts +0 -10
- package/sort/testing/sort-harness-filters.d.ts +0 -15
- package/sort/testing/sort-harness.d.ts +0 -24
- package/sort/testing/sort-header-harness.d.ts +0 -30
- package/stepper/package.json +0 -9
- package/stepper/public-api.d.ts +0 -17
- package/stepper/step-content.d.ts +0 -18
- package/stepper/step-header.d.ts +0 -66
- package/stepper/step-label.d.ts +0 -6
- package/stepper/stepper-animations.d.ts +0 -18
- package/stepper/stepper-button.d.ts +0 -19
- package/stepper/stepper-icon.d.ts +0 -30
- package/stepper/stepper-intl.d.ts +0 -34
- package/stepper/stepper-module.d.ts +0 -18
- package/stepper/stepper.d.ts +0 -80
- package/stepper/stepper_public_index.d.ts +0 -4
- package/stepper/testing/package.json +0 -9
- package/stepper/testing/public-api.d.ts +0 -11
- package/stepper/testing/step-harness-filters.d.ts +0 -37
- package/stepper/testing/step-harness.d.ts +0 -52
- package/stepper/testing/stepper-button-harnesses.d.ts +0 -41
- package/stepper/testing/stepper-harness.d.ts +0 -35
- package/table/cell.d.ts +0 -59
- package/table/package.json +0 -9
- package/table/public-api.d.ts +0 -13
- package/table/row.d.ts +0 -55
- package/table/table-data-source.d.ts +0 -169
- package/table/table-module.d.ts +0 -12
- package/table/table.d.ts +0 -28
- package/table/table_public_index.d.ts +0 -4
- package/table/testing/cell-harness.d.ts +0 -49
- package/table/testing/package.json +0 -9
- package/table/testing/public-api.d.ts +0 -11
- package/table/testing/row-harness.d.ts +0 -66
- package/table/testing/table-harness-filters.d.ts +0 -21
- package/table/testing/table-harness.d.ts +0 -58
- package/table/text-column.d.ts +0 -22
- package/tabs/ink-bar.d.ts +0 -49
- package/tabs/package.json +0 -9
- package/tabs/paginated-tab-header.d.ts +0 -196
- package/tabs/public-api.d.ts +0 -20
- package/tabs/tab-body.d.ts +0 -116
- package/tabs/tab-config.d.ts +0 -35
- package/tabs/tab-content.d.ts +0 -22
- package/tabs/tab-group.d.ts +0 -181
- package/tabs/tab-header.d.ts +0 -49
- package/tabs/tab-label-wrapper.d.ts +0 -29
- package/tabs/tab-label.d.ts +0 -28
- package/tabs/tab-nav-bar/index.d.ts +0 -8
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -134
- package/tabs/tab.d.ts +0 -89
- package/tabs/tabs-animations.d.ts +0 -15
- package/tabs/tabs-module.d.ts +0 -20
- package/tabs/tabs_public_index.d.ts +0 -4
- package/tabs/testing/package.json +0 -9
- package/tabs/testing/public-api.d.ts +0 -12
- package/tabs/testing/tab-group-harness.d.ts +0 -35
- package/tabs/testing/tab-harness-filters.d.ts +0 -29
- package/tabs/testing/tab-harness.d.ts +0 -38
- package/tabs/testing/tab-link-harness.d.ts +0 -29
- package/tabs/testing/tab-nav-bar-harness.d.ts +0 -38
- package/tabs/testing/tab-nav-panel-harness.d.ts +0 -23
- package/toolbar/package.json +0 -9
- package/toolbar/public-api.d.ts +0 -9
- package/toolbar/testing/package.json +0 -9
- package/toolbar/testing/public-api.d.ts +0 -9
- package/toolbar/testing/toolbar-harness-filters.d.ts +0 -13
- package/toolbar/testing/toolbar-harness.d.ts +0 -31
- package/toolbar/toolbar-module.d.ts +0 -8
- package/toolbar/toolbar.d.ts +0 -41
- package/toolbar/toolbar_public_index.d.ts +0 -4
- package/tooltip/package.json +0 -9
- package/tooltip/public-api.d.ts +0 -10
- package/tooltip/testing/package.json +0 -9
- package/tooltip/testing/public-api.d.ts +0 -9
- package/tooltip/testing/tooltip-harness-filters.d.ts +0 -11
- package/tooltip/testing/tooltip-harness.d.ts +0 -38
- package/tooltip/tooltip-animations.d.ts +0 -15
- package/tooltip/tooltip-module.d.ts +0 -12
- package/tooltip/tooltip.d.ts +0 -299
- package/tooltip/tooltip_public_index.d.ts +0 -4
- package/tree/data-source/flat-data-source.d.ts +0 -83
- package/tree/data-source/nested-data-source.d.ts +0 -25
- package/tree/node.d.ts +0 -53
- package/tree/outlet.d.ts +0 -21
- package/tree/package.json +0 -9
- package/tree/padding.d.ts +0 -23
- package/tree/public-api.d.ts +0 -15
- package/tree/testing/node-harness.d.ts +0 -35
- package/tree/testing/package.json +0 -9
- package/tree/testing/public-api.d.ts +0 -10
- package/tree/testing/tree-harness-filters.d.ts +0 -22
- package/tree/testing/tree-harness.d.ts +0 -79
- package/tree/toggle.d.ts +0 -16
- package/tree/tree-module.d.ts +0 -13
- package/tree/tree.d.ts +0 -18
- package/tree/tree_public_index.d.ts +0 -4
package/fesm2020/dialog.mjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
+
import { CdkDialogContainer, Dialog, DialogConfig, DialogModule } from '@angular/cdk/dialog';
|
|
1
2
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
2
|
-
import { Overlay,
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
3
|
+
import { Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
4
|
+
import * as i4 from '@angular/cdk/portal';
|
|
5
|
+
import { PortalModule } from '@angular/cdk/portal';
|
|
5
6
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter,
|
|
7
|
+
import { EventEmitter, Component, Optional, Inject, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injectable, SkipSelf, Directive, Input, NgModule } from '@angular/core';
|
|
7
8
|
import { MatCommonModule } from '@angular/material/core';
|
|
8
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
9
9
|
import * as i2 from '@angular/common';
|
|
10
10
|
import { DOCUMENT } from '@angular/common';
|
|
11
|
-
import { Subject,
|
|
11
|
+
import { Subject, merge, defer } from 'rxjs';
|
|
12
12
|
import { filter, take, startWith } from 'rxjs/operators';
|
|
13
13
|
import { trigger, state, style, transition, group, animate, query, animateChild } from '@angular/animations';
|
|
14
14
|
import * as i1 from '@angular/cdk/a11y';
|
|
15
|
-
import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
16
15
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
17
16
|
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
18
17
|
|
|
@@ -116,235 +115,62 @@ class MatDialogConfig {
|
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
|
|
119
|
-
/**
|
|
120
|
-
* Throws an exception for the case when a ComponentPortal is
|
|
121
|
-
* attached to a DomPortalOutlet without an origin.
|
|
122
|
-
* @docs-private
|
|
123
|
-
*/
|
|
124
|
-
function throwMatDialogContentAlreadyAttachedError() {
|
|
125
|
-
throw Error('Attempting to attach dialog content after content is already attached');
|
|
126
|
-
}
|
|
127
118
|
/**
|
|
128
119
|
* Base class for the `MatDialogContainer`. The base class does not implement
|
|
129
120
|
* animations as these are left to implementers of the dialog container.
|
|
130
121
|
*/
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
super();
|
|
136
|
-
this._elementRef = _elementRef;
|
|
137
|
-
this._focusTrapFactory = _focusTrapFactory;
|
|
138
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
139
|
-
this._config = _config;
|
|
140
|
-
this._interactivityChecker = _interactivityChecker;
|
|
141
|
-
this._ngZone = _ngZone;
|
|
142
|
-
this._focusMonitor = _focusMonitor;
|
|
122
|
+
// tslint:disable-next-line:validate-decorators
|
|
123
|
+
class _MatDialogContainerBase extends CdkDialogContainer {
|
|
124
|
+
constructor(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, focusMonitor) {
|
|
125
|
+
super(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, focusMonitor);
|
|
143
126
|
/** Emits when an animation state changes. */
|
|
144
127
|
this._animationStateChanged = new EventEmitter();
|
|
145
|
-
/** Element that was focused before the dialog was opened. Save this to restore upon close. */
|
|
146
|
-
this._elementFocusedBeforeDialogWasOpened = null;
|
|
147
|
-
/**
|
|
148
|
-
* Type of interaction that led to the dialog being closed. This is used to determine
|
|
149
|
-
* whether the focus style will be applied when returning focus to its original location
|
|
150
|
-
* after the dialog is closed.
|
|
151
|
-
*/
|
|
152
|
-
this._closeInteractionType = null;
|
|
153
|
-
/**
|
|
154
|
-
* Attaches a DOM portal to the dialog container.
|
|
155
|
-
* @param portal Portal to be attached.
|
|
156
|
-
* @deprecated To be turned into a method.
|
|
157
|
-
* @breaking-change 10.0.0
|
|
158
|
-
*/
|
|
159
|
-
this.attachDomPortal = (portal) => {
|
|
160
|
-
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
161
|
-
throwMatDialogContentAlreadyAttachedError();
|
|
162
|
-
}
|
|
163
|
-
return this._portalOutlet.attachDomPortal(portal);
|
|
164
|
-
};
|
|
165
|
-
this._ariaLabelledBy = _config.ariaLabelledBy || null;
|
|
166
|
-
this._document = _document;
|
|
167
|
-
}
|
|
168
|
-
/** Initializes the dialog container with the attached content. */
|
|
169
|
-
_initializeWithAttachedContent() {
|
|
170
|
-
this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
|
|
171
|
-
// Save the previously focused element. This element will be re-focused
|
|
172
|
-
// when the dialog closes.
|
|
173
|
-
if (this._document) {
|
|
174
|
-
this._elementFocusedBeforeDialogWasOpened = _getFocusedElementPierceShadowDom();
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Attach a ComponentPortal as content to this dialog container.
|
|
179
|
-
* @param portal Portal to be attached as the dialog content.
|
|
180
|
-
*/
|
|
181
|
-
attachComponentPortal(portal) {
|
|
182
|
-
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
183
|
-
throwMatDialogContentAlreadyAttachedError();
|
|
184
|
-
}
|
|
185
|
-
return this._portalOutlet.attachComponentPortal(portal);
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Attach a TemplatePortal as content to this dialog container.
|
|
189
|
-
* @param portal Portal to be attached as the dialog content.
|
|
190
|
-
*/
|
|
191
|
-
attachTemplatePortal(portal) {
|
|
192
|
-
if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
193
|
-
throwMatDialogContentAlreadyAttachedError();
|
|
194
|
-
}
|
|
195
|
-
return this._portalOutlet.attachTemplatePortal(portal);
|
|
196
128
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (!this._containsFocus()) {
|
|
129
|
+
_captureInitialFocus() {
|
|
130
|
+
if (!this._config.delayFocusTrap) {
|
|
200
131
|
this._trapFocus();
|
|
201
132
|
}
|
|
202
133
|
}
|
|
203
134
|
/**
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* @param element The element to focus.
|
|
207
|
-
*/
|
|
208
|
-
_forceFocus(element, options) {
|
|
209
|
-
if (!this._interactivityChecker.isFocusable(element)) {
|
|
210
|
-
element.tabIndex = -1;
|
|
211
|
-
// The tabindex attribute should be removed to avoid navigating to that element again
|
|
212
|
-
this._ngZone.runOutsideAngular(() => {
|
|
213
|
-
element.addEventListener('blur', () => element.removeAttribute('tabindex'));
|
|
214
|
-
element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
element.focus(options);
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Focuses the first element that matches the given selector within the focus trap.
|
|
221
|
-
* @param selector The CSS selector for the element to set focus to.
|
|
222
|
-
*/
|
|
223
|
-
_focusByCssSelector(selector, options) {
|
|
224
|
-
let elementToFocus = this._elementRef.nativeElement.querySelector(selector);
|
|
225
|
-
if (elementToFocus) {
|
|
226
|
-
this._forceFocus(elementToFocus, options);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
|
|
231
|
-
* cannot be moved then focus will go to the dialog container.
|
|
135
|
+
* Callback for when the open dialog animation has finished. Intended to
|
|
136
|
+
* be called by sub-classes that use different animation implementations.
|
|
232
137
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
// ready in instances where change detection has to run first. To deal with this, we simply
|
|
237
|
-
// wait for the microtask queue to be empty when setting focus when autoFocus isn't set to
|
|
238
|
-
// dialog. If the element inside the dialog can't be focused, then the container is focused
|
|
239
|
-
// so the user can't tab into other elements behind it.
|
|
240
|
-
switch (this._config.autoFocus) {
|
|
241
|
-
case false:
|
|
242
|
-
case 'dialog':
|
|
243
|
-
// Ensure that focus is on the dialog container. It's possible that a different
|
|
244
|
-
// component tried to move focus while the open animation was running. See:
|
|
245
|
-
// https://github.com/angular/components/issues/16215. Note that we only want to do this
|
|
246
|
-
// if the focus isn't inside the dialog already, because it's possible that the consumer
|
|
247
|
-
// turned off `autoFocus` in order to move focus themselves.
|
|
248
|
-
if (!this._containsFocus()) {
|
|
249
|
-
element.focus();
|
|
250
|
-
}
|
|
251
|
-
break;
|
|
252
|
-
case true:
|
|
253
|
-
case 'first-tabbable':
|
|
254
|
-
this._focusTrap.focusInitialElementWhenReady().then(focusedSuccessfully => {
|
|
255
|
-
// If we weren't able to find a focusable element in the dialog, then focus the dialog
|
|
256
|
-
// container instead.
|
|
257
|
-
if (!focusedSuccessfully) {
|
|
258
|
-
this._focusDialogContainer();
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
break;
|
|
262
|
-
case 'first-heading':
|
|
263
|
-
this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');
|
|
264
|
-
break;
|
|
265
|
-
default:
|
|
266
|
-
this._focusByCssSelector(this._config.autoFocus);
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
/** Restores focus to the element that was focused before the dialog opened. */
|
|
271
|
-
_restoreFocus() {
|
|
272
|
-
const previousElement = this._elementFocusedBeforeDialogWasOpened;
|
|
273
|
-
// We need the extra check, because IE can set the `activeElement` to null in some cases.
|
|
274
|
-
if (this._config.restoreFocus &&
|
|
275
|
-
previousElement &&
|
|
276
|
-
typeof previousElement.focus === 'function') {
|
|
277
|
-
const activeElement = _getFocusedElementPierceShadowDom();
|
|
278
|
-
const element = this._elementRef.nativeElement;
|
|
279
|
-
// Make sure that focus is still inside the dialog or is on the body (usually because a
|
|
280
|
-
// non-focusable element like the backdrop was clicked) before moving it. It's possible that
|
|
281
|
-
// the consumer moved it themselves before the animation was done, in which case we shouldn't
|
|
282
|
-
// do anything.
|
|
283
|
-
if (!activeElement ||
|
|
284
|
-
activeElement === this._document.body ||
|
|
285
|
-
activeElement === element ||
|
|
286
|
-
element.contains(activeElement)) {
|
|
287
|
-
if (this._focusMonitor) {
|
|
288
|
-
this._focusMonitor.focusVia(previousElement, this._closeInteractionType);
|
|
289
|
-
this._closeInteractionType = null;
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
previousElement.focus();
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
if (this._focusTrap) {
|
|
297
|
-
this._focusTrap.destroy();
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
/** Focuses the dialog container. */
|
|
301
|
-
_focusDialogContainer() {
|
|
302
|
-
// Note that there is no focus method when rendering on the server.
|
|
303
|
-
if (this._elementRef.nativeElement.focus) {
|
|
304
|
-
this._elementRef.nativeElement.focus();
|
|
138
|
+
_openAnimationDone(totalTime) {
|
|
139
|
+
if (this._config.delayFocusTrap) {
|
|
140
|
+
this._trapFocus();
|
|
305
141
|
}
|
|
306
|
-
|
|
307
|
-
/** Returns whether focus is inside the dialog. */
|
|
308
|
-
_containsFocus() {
|
|
309
|
-
const element = this._elementRef.nativeElement;
|
|
310
|
-
const activeElement = _getFocusedElementPierceShadowDom();
|
|
311
|
-
return element === activeElement || element.contains(activeElement);
|
|
142
|
+
this._animationStateChanged.next({ state: 'opened', totalTime });
|
|
312
143
|
}
|
|
313
144
|
}
|
|
314
|
-
_MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
315
|
-
_MatDialogContainerBase.ɵ
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
317
|
-
type:
|
|
318
|
-
|
|
145
|
+
_MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1$1.OverlayRef }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
|
|
146
|
+
_MatDialogContainerBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0-next.16", type: _MatDialogContainerBase, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogContainerBase, decorators: [{
|
|
148
|
+
type: Component,
|
|
149
|
+
args: [{ template: '' }]
|
|
150
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: undefined, decorators: [{
|
|
319
151
|
type: Optional
|
|
320
152
|
}, {
|
|
321
153
|
type: Inject,
|
|
322
154
|
args: [DOCUMENT]
|
|
323
|
-
}] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1.FocusMonitor }]; }
|
|
324
|
-
type: ViewChild,
|
|
325
|
-
args: [CdkPortalOutlet, { static: true }]
|
|
326
|
-
}] } });
|
|
155
|
+
}] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1$1.OverlayRef }, { type: i1.FocusMonitor }]; } });
|
|
327
156
|
/**
|
|
328
157
|
* Internal component that wraps user-provided dialog content.
|
|
329
158
|
* Animation is based on https://material.io/guidelines/motion/choreography.html.
|
|
330
159
|
* @docs-private
|
|
331
160
|
*/
|
|
332
161
|
class MatDialogContainer extends _MatDialogContainerBase {
|
|
333
|
-
constructor() {
|
|
334
|
-
super(
|
|
162
|
+
constructor(elementRef, focusTrapFactory, document, dialogConfig, checker, ngZone, overlayRef, _changeDetectorRef, focusMonitor) {
|
|
163
|
+
super(elementRef, focusTrapFactory, document, dialogConfig, checker, ngZone, overlayRef, focusMonitor);
|
|
164
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
335
165
|
/** State of the dialog animation. */
|
|
336
166
|
this._state = 'enter';
|
|
337
167
|
}
|
|
338
168
|
/** Callback, invoked whenever an animation on the host completes. */
|
|
339
169
|
_onAnimationDone({ toState, totalTime }) {
|
|
340
170
|
if (toState === 'enter') {
|
|
341
|
-
|
|
342
|
-
this._trapFocus();
|
|
343
|
-
}
|
|
344
|
-
this._animationStateChanged.next({ state: 'opened', totalTime });
|
|
171
|
+
this._openAnimationDone(totalTime);
|
|
345
172
|
}
|
|
346
173
|
else if (toState === 'exit') {
|
|
347
|
-
this._restoreFocus();
|
|
348
174
|
this._animationStateChanged.next({ state: 'closed', totalTime });
|
|
349
175
|
}
|
|
350
176
|
}
|
|
@@ -364,12 +190,6 @@ class MatDialogContainer extends _MatDialogContainerBase {
|
|
|
364
190
|
// view container is using OnPush change detection.
|
|
365
191
|
this._changeDetectorRef.markForCheck();
|
|
366
192
|
}
|
|
367
|
-
_initializeWithAttachedContent() {
|
|
368
|
-
super._initializeWithAttachedContent();
|
|
369
|
-
if (!this._config.delayFocusTrap) {
|
|
370
|
-
this._trapFocus();
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
193
|
_getAnimationState() {
|
|
374
194
|
return {
|
|
375
195
|
value: this._state,
|
|
@@ -380,15 +200,15 @@ class MatDialogContainer extends _MatDialogContainerBase {
|
|
|
380
200
|
};
|
|
381
201
|
}
|
|
382
202
|
}
|
|
383
|
-
MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
384
|
-
MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
203
|
+
MatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContainer, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1$1.OverlayRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
|
|
204
|
+
MatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogContainer, selector: "mat-dialog-container", host: { attributes: { "tabindex": "-1" }, listeners: { "@dialogContainer.start": "_onAnimationStart($event)", "@dialogContainer.done": "_onAnimationDone($event)" }, properties: { "attr.aria-modal": "_config.ariaModal", "id": "_config.id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledBy", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null", "@dialogContainer": "_getAnimationState()" }, 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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"], dependencies: [{ kind: "directive", type: i4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContainer, decorators: [{
|
|
386
206
|
type: Component,
|
|
387
207
|
args: [{ selector: 'mat-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matDialogAnimations.dialogContainer], host: {
|
|
388
208
|
'class': 'mat-dialog-container',
|
|
389
209
|
'tabindex': '-1',
|
|
390
|
-
'aria-modal': '
|
|
391
|
-
'[id]': '
|
|
210
|
+
'[attr.aria-modal]': '_config.ariaModal',
|
|
211
|
+
'[id]': '_config.id',
|
|
392
212
|
'[attr.role]': '_config.role',
|
|
393
213
|
'[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',
|
|
394
214
|
'[attr.aria-label]': '_config.ariaLabel',
|
|
@@ -396,8 +216,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
|
|
|
396
216
|
'[@dialogContainer]': `_getAnimationState()`,
|
|
397
217
|
'(@dialogContainer.start)': '_onAnimationStart($event)',
|
|
398
218
|
'(@dialogContainer.done)': '_onAnimationDone($event)',
|
|
399
|
-
}, 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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}
|
|
400
|
-
}] }
|
|
219
|
+
}, 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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"] }]
|
|
220
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: undefined, decorators: [{
|
|
221
|
+
type: Optional
|
|
222
|
+
}, {
|
|
223
|
+
type: Inject,
|
|
224
|
+
args: [DOCUMENT]
|
|
225
|
+
}] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1$1.OverlayRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusMonitor }]; } });
|
|
401
226
|
|
|
402
227
|
/**
|
|
403
228
|
* @license
|
|
@@ -406,31 +231,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
|
|
|
406
231
|
* Use of this source code is governed by an MIT-style license that can be
|
|
407
232
|
* found in the LICENSE file at https://angular.io/license
|
|
408
233
|
*/
|
|
409
|
-
// TODO(jelbourn): resizing
|
|
410
|
-
// Counter for unique dialog ids.
|
|
411
|
-
let uniqueId = 0;
|
|
412
234
|
/**
|
|
413
235
|
* Reference to a dialog opened via the MatDialog service.
|
|
414
236
|
*/
|
|
415
237
|
class MatDialogRef {
|
|
416
|
-
constructor(
|
|
417
|
-
|
|
418
|
-
id = `mat-dialog-${uniqueId++}`) {
|
|
419
|
-
this._overlayRef = _overlayRef;
|
|
238
|
+
constructor(_ref, config, _containerInstance) {
|
|
239
|
+
this._ref = _ref;
|
|
420
240
|
this._containerInstance = _containerInstance;
|
|
421
|
-
this.id = id;
|
|
422
|
-
/** Whether the user is allowed to close the dialog. */
|
|
423
|
-
this.disableClose = this._containerInstance._config.disableClose;
|
|
424
241
|
/** Subject for notifying the user that the dialog has finished opening. */
|
|
425
242
|
this._afterOpened = new Subject();
|
|
426
|
-
/** Subject for notifying the user that the dialog has finished closing. */
|
|
427
|
-
this._afterClosed = new Subject();
|
|
428
243
|
/** Subject for notifying the user that the dialog has started closing. */
|
|
429
244
|
this._beforeClosed = new Subject();
|
|
430
245
|
/** Current state of the dialog. */
|
|
431
|
-
this._state = 0 /* OPEN */;
|
|
432
|
-
|
|
433
|
-
|
|
246
|
+
this._state = 0 /* MatDialogState.OPEN */;
|
|
247
|
+
this.disableClose = config.disableClose;
|
|
248
|
+
this.id = _ref.id;
|
|
434
249
|
// Emit when opening animation completes
|
|
435
250
|
_containerInstance._animationStateChanged
|
|
436
251
|
.pipe(filter(event => event.state === 'opened'), take(1))
|
|
@@ -445,29 +260,15 @@ class MatDialogRef {
|
|
|
445
260
|
clearTimeout(this._closeFallbackTimeout);
|
|
446
261
|
this._finishDialogClose();
|
|
447
262
|
});
|
|
448
|
-
|
|
263
|
+
_ref.overlayRef.detachments().subscribe(() => {
|
|
449
264
|
this._beforeClosed.next(this._result);
|
|
450
265
|
this._beforeClosed.complete();
|
|
451
|
-
this.
|
|
452
|
-
this._afterClosed.complete();
|
|
453
|
-
this.componentInstance = null;
|
|
454
|
-
this._overlayRef.dispose();
|
|
455
|
-
});
|
|
456
|
-
_overlayRef
|
|
457
|
-
.keydownEvents()
|
|
458
|
-
.pipe(filter(event => {
|
|
459
|
-
return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);
|
|
460
|
-
}))
|
|
461
|
-
.subscribe(event => {
|
|
462
|
-
event.preventDefault();
|
|
463
|
-
_closeDialogVia(this, 'keyboard');
|
|
266
|
+
this._finishDialogClose();
|
|
464
267
|
});
|
|
465
|
-
|
|
466
|
-
if (this.disableClose) {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
else {
|
|
470
|
-
_closeDialogVia(this, 'mouse');
|
|
268
|
+
merge(this.backdropClick(), this.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)))).subscribe(event => {
|
|
269
|
+
if (!this.disableClose) {
|
|
270
|
+
event.preventDefault();
|
|
271
|
+
_closeDialogVia(this, event.type === 'keydown' ? 'keyboard' : 'mouse');
|
|
471
272
|
}
|
|
472
273
|
});
|
|
473
274
|
}
|
|
@@ -483,7 +284,7 @@ class MatDialogRef {
|
|
|
483
284
|
.subscribe(event => {
|
|
484
285
|
this._beforeClosed.next(dialogResult);
|
|
485
286
|
this._beforeClosed.complete();
|
|
486
|
-
this.
|
|
287
|
+
this._ref.overlayRef.detachBackdrop();
|
|
487
288
|
// The logic that disposes of the overlay depends on the exit animation completing, however
|
|
488
289
|
// it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
|
|
489
290
|
// timeout which will clean everything up if the animation hasn't fired within the specified
|
|
@@ -491,7 +292,7 @@ class MatDialogRef {
|
|
|
491
292
|
// vast majority of cases the timeout will have been cleared before it has the chance to fire.
|
|
492
293
|
this._closeFallbackTimeout = setTimeout(() => this._finishDialogClose(), event.totalTime + 100);
|
|
493
294
|
});
|
|
494
|
-
this._state = 1 /* CLOSING */;
|
|
295
|
+
this._state = 1 /* MatDialogState.CLOSING */;
|
|
495
296
|
this._containerInstance._startExitAnimation();
|
|
496
297
|
}
|
|
497
298
|
/**
|
|
@@ -504,7 +305,7 @@ class MatDialogRef {
|
|
|
504
305
|
* Gets an observable that is notified when the dialog is finished closing.
|
|
505
306
|
*/
|
|
506
307
|
afterClosed() {
|
|
507
|
-
return this.
|
|
308
|
+
return this._ref.closed;
|
|
508
309
|
}
|
|
509
310
|
/**
|
|
510
311
|
* Gets an observable that is notified when the dialog has started closing.
|
|
@@ -516,20 +317,20 @@ class MatDialogRef {
|
|
|
516
317
|
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
517
318
|
*/
|
|
518
319
|
backdropClick() {
|
|
519
|
-
return this.
|
|
320
|
+
return this._ref.backdropClick;
|
|
520
321
|
}
|
|
521
322
|
/**
|
|
522
323
|
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
523
324
|
*/
|
|
524
325
|
keydownEvents() {
|
|
525
|
-
return this.
|
|
326
|
+
return this._ref.keydownEvents;
|
|
526
327
|
}
|
|
527
328
|
/**
|
|
528
329
|
* Updates the dialog's position.
|
|
529
330
|
* @param position New dialog position.
|
|
530
331
|
*/
|
|
531
332
|
updatePosition(position) {
|
|
532
|
-
let strategy = this.
|
|
333
|
+
let strategy = this._ref.config.positionStrategy;
|
|
533
334
|
if (position && (position.left || position.right)) {
|
|
534
335
|
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
535
336
|
}
|
|
@@ -542,7 +343,7 @@ class MatDialogRef {
|
|
|
542
343
|
else {
|
|
543
344
|
strategy.centerVertically();
|
|
544
345
|
}
|
|
545
|
-
this.
|
|
346
|
+
this._ref.updatePosition();
|
|
546
347
|
return this;
|
|
547
348
|
}
|
|
548
349
|
/**
|
|
@@ -551,18 +352,17 @@ class MatDialogRef {
|
|
|
551
352
|
* @param height New height of the dialog.
|
|
552
353
|
*/
|
|
553
354
|
updateSize(width = '', height = '') {
|
|
554
|
-
this.
|
|
555
|
-
this._overlayRef.updatePosition();
|
|
355
|
+
this._ref.updateSize(width, height);
|
|
556
356
|
return this;
|
|
557
357
|
}
|
|
558
358
|
/** Add a CSS class or an array of classes to the overlay pane. */
|
|
559
359
|
addPanelClass(classes) {
|
|
560
|
-
this.
|
|
360
|
+
this._ref.addPanelClass(classes);
|
|
561
361
|
return this;
|
|
562
362
|
}
|
|
563
363
|
/** Remove a CSS class or an array of classes from the overlay pane. */
|
|
564
364
|
removePanelClass(classes) {
|
|
565
|
-
this.
|
|
365
|
+
this._ref.removePanelClass(classes);
|
|
566
366
|
return this;
|
|
567
367
|
}
|
|
568
368
|
/** Gets the current state of the dialog's lifecycle. */
|
|
@@ -574,12 +374,9 @@ class MatDialogRef {
|
|
|
574
374
|
* and disposing the overlay.
|
|
575
375
|
*/
|
|
576
376
|
_finishDialogClose() {
|
|
577
|
-
this._state = 2 /* CLOSED */;
|
|
578
|
-
this.
|
|
579
|
-
|
|
580
|
-
/** Fetches the position strategy object from the overlay ref. */
|
|
581
|
-
_getPositionStrategy() {
|
|
582
|
-
return this._overlayRef.getConfig().positionStrategy;
|
|
377
|
+
this._state = 2 /* MatDialogState.CLOSED */;
|
|
378
|
+
this._ref.close(this._result, { focusOrigin: this._closeInteractionType });
|
|
379
|
+
this.componentInstance = null;
|
|
583
380
|
}
|
|
584
381
|
}
|
|
585
382
|
/**
|
|
@@ -587,13 +384,9 @@ class MatDialogRef {
|
|
|
587
384
|
* `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.
|
|
588
385
|
* More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
|
|
589
386
|
*/
|
|
590
|
-
// TODO:
|
|
387
|
+
// TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.
|
|
591
388
|
function _closeDialogVia(ref, interactionType, result) {
|
|
592
|
-
|
|
593
|
-
// For those, we keep the behavior as is and do not deal with the interaction type.
|
|
594
|
-
if (ref._containerInstance !== undefined) {
|
|
595
|
-
ref._containerInstance._closeInteractionType = interactionType;
|
|
596
|
-
}
|
|
389
|
+
ref._closeInteractionType = interactionType;
|
|
597
390
|
return ref.close(result);
|
|
598
391
|
}
|
|
599
392
|
|
|
@@ -624,30 +417,34 @@ const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
|
624
417
|
deps: [Overlay],
|
|
625
418
|
useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
|
|
626
419
|
};
|
|
420
|
+
// Counter for unique dialog ids.
|
|
421
|
+
let uniqueId = 0;
|
|
627
422
|
/**
|
|
628
423
|
* Base class for dialog services. The base dialog service allows
|
|
629
424
|
* for arbitrary dialog refs and dialog container components.
|
|
630
425
|
*/
|
|
631
426
|
class _MatDialogBase {
|
|
632
|
-
constructor(_overlay,
|
|
427
|
+
constructor(_overlay, injector, _defaultOptions, _parentDialog,
|
|
428
|
+
/**
|
|
429
|
+
* @deprecated No longer used. To be removed.
|
|
430
|
+
* @breaking-change 15.0.0
|
|
431
|
+
*/
|
|
432
|
+
_overlayContainer, scrollStrategy, _dialogRefConstructor, _dialogContainerType, _dialogDataToken,
|
|
633
433
|
/**
|
|
634
434
|
* @deprecated No longer used. To be removed.
|
|
635
435
|
* @breaking-change 14.0.0
|
|
636
436
|
*/
|
|
637
437
|
_animationMode) {
|
|
638
438
|
this._overlay = _overlay;
|
|
639
|
-
this._injector = _injector;
|
|
640
439
|
this._defaultOptions = _defaultOptions;
|
|
641
440
|
this._parentDialog = _parentDialog;
|
|
642
|
-
this._overlayContainer = _overlayContainer;
|
|
643
441
|
this._dialogRefConstructor = _dialogRefConstructor;
|
|
644
442
|
this._dialogContainerType = _dialogContainerType;
|
|
645
443
|
this._dialogDataToken = _dialogDataToken;
|
|
646
444
|
this._openDialogsAtThisLevel = [];
|
|
647
445
|
this._afterAllClosedAtThisLevel = new Subject();
|
|
648
446
|
this._afterOpenedAtThisLevel = new Subject();
|
|
649
|
-
this.
|
|
650
|
-
// TODO (jelbourn): tighten the typing right-hand side of this expression.
|
|
447
|
+
this._idPrefix = 'mat-dialog-';
|
|
651
448
|
/**
|
|
652
449
|
* Stream that emits when all open dialog have finished closing.
|
|
653
450
|
* Will emit on subscribe if there are no open dialogs to begin with.
|
|
@@ -656,6 +453,7 @@ class _MatDialogBase {
|
|
|
656
453
|
? this._getAfterAllClosed()
|
|
657
454
|
: this._getAfterAllClosed().pipe(startWith(undefined)));
|
|
658
455
|
this._scrollStrategy = scrollStrategy;
|
|
456
|
+
this._dialog = injector.get(Dialog);
|
|
659
457
|
}
|
|
660
458
|
/** Keeps track of the currently-open dialogs. */
|
|
661
459
|
get openDialogs() {
|
|
@@ -670,24 +468,54 @@ class _MatDialogBase {
|
|
|
670
468
|
return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;
|
|
671
469
|
}
|
|
672
470
|
open(componentOrTemplateRef, config) {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
471
|
+
let dialogRef;
|
|
472
|
+
config = { ...(this._defaultOptions || new MatDialogConfig()), ...config };
|
|
473
|
+
config.id = config.id || `${this._idPrefix}${uniqueId++}`;
|
|
474
|
+
config.scrollStrategy = config.scrollStrategy || this._scrollStrategy();
|
|
475
|
+
const cdkRef = this._dialog.open(componentOrTemplateRef, {
|
|
476
|
+
...config,
|
|
477
|
+
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
478
|
+
// Disable closing since we need to sync it up to the animation ourselves.
|
|
479
|
+
disableClose: true,
|
|
480
|
+
// Disable closing on destroy, because this service cleans up its open dialogs as well.
|
|
481
|
+
// We want to do the cleanup here, rather than the CDK service, because the CDK destroys
|
|
482
|
+
// the dialogs immediately whereas we want it to wait for the animations to finish.
|
|
483
|
+
closeOnDestroy: false,
|
|
484
|
+
container: {
|
|
485
|
+
type: this._dialogContainerType,
|
|
486
|
+
providers: () => [
|
|
487
|
+
// Provide our config as the CDK config as well since it has the same interface as the
|
|
488
|
+
// CDK one, but it contains the actual values passed in by the user for things like
|
|
489
|
+
// `disableClose` which we disable for the CDK dialog since we handle it ourselves.
|
|
490
|
+
{ provide: MatDialogConfig, useValue: config },
|
|
491
|
+
{ provide: DialogConfig, useValue: config },
|
|
492
|
+
],
|
|
493
|
+
},
|
|
494
|
+
templateContext: () => ({ dialogRef }),
|
|
495
|
+
providers: (ref, cdkConfig, dialogContainer) => {
|
|
496
|
+
dialogRef = new this._dialogRefConstructor(ref, config, dialogContainer);
|
|
497
|
+
dialogRef.updatePosition(config?.position);
|
|
498
|
+
return [
|
|
499
|
+
{ provide: this._dialogContainerType, useValue: dialogContainer },
|
|
500
|
+
{ provide: this._dialogDataToken, useValue: cdkConfig.data },
|
|
501
|
+
{ provide: this._dialogRefConstructor, useValue: dialogRef },
|
|
502
|
+
];
|
|
503
|
+
},
|
|
504
|
+
});
|
|
505
|
+
// This can't be assigned in the `providers` callback, because
|
|
506
|
+
// the instance hasn't been assigned to the CDK ref yet.
|
|
507
|
+
dialogRef.componentInstance = cdkRef.componentInstance;
|
|
686
508
|
this.openDialogs.push(dialogRef);
|
|
687
|
-
dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));
|
|
688
509
|
this.afterOpened.next(dialogRef);
|
|
689
|
-
|
|
690
|
-
|
|
510
|
+
dialogRef.afterClosed().subscribe(() => {
|
|
511
|
+
const index = this.openDialogs.indexOf(dialogRef);
|
|
512
|
+
if (index > -1) {
|
|
513
|
+
this.openDialogs.splice(index, 1);
|
|
514
|
+
if (!this.openDialogs.length) {
|
|
515
|
+
this._getAfterAllClosed().next();
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
});
|
|
691
519
|
return dialogRef;
|
|
692
520
|
}
|
|
693
521
|
/**
|
|
@@ -710,170 +538,17 @@ class _MatDialogBase {
|
|
|
710
538
|
this._afterAllClosedAtThisLevel.complete();
|
|
711
539
|
this._afterOpenedAtThisLevel.complete();
|
|
712
540
|
}
|
|
713
|
-
/**
|
|
714
|
-
* Creates the overlay into which the dialog will be loaded.
|
|
715
|
-
* @param config The dialog configuration.
|
|
716
|
-
* @returns A promise resolving to the OverlayRef for the created overlay.
|
|
717
|
-
*/
|
|
718
|
-
_createOverlay(config) {
|
|
719
|
-
const overlayConfig = this._getOverlayConfig(config);
|
|
720
|
-
return this._overlay.create(overlayConfig);
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* Creates an overlay config from a dialog config.
|
|
724
|
-
* @param dialogConfig The dialog configuration.
|
|
725
|
-
* @returns The overlay configuration.
|
|
726
|
-
*/
|
|
727
|
-
_getOverlayConfig(dialogConfig) {
|
|
728
|
-
const state = new OverlayConfig({
|
|
729
|
-
positionStrategy: this._overlay.position().global(),
|
|
730
|
-
scrollStrategy: dialogConfig.scrollStrategy || this._scrollStrategy(),
|
|
731
|
-
panelClass: dialogConfig.panelClass,
|
|
732
|
-
hasBackdrop: dialogConfig.hasBackdrop,
|
|
733
|
-
direction: dialogConfig.direction,
|
|
734
|
-
minWidth: dialogConfig.minWidth,
|
|
735
|
-
minHeight: dialogConfig.minHeight,
|
|
736
|
-
maxWidth: dialogConfig.maxWidth,
|
|
737
|
-
maxHeight: dialogConfig.maxHeight,
|
|
738
|
-
disposeOnNavigation: dialogConfig.closeOnNavigation,
|
|
739
|
-
});
|
|
740
|
-
if (dialogConfig.backdropClass) {
|
|
741
|
-
state.backdropClass = dialogConfig.backdropClass;
|
|
742
|
-
}
|
|
743
|
-
return state;
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Attaches a dialog container to a dialog's already-created overlay.
|
|
747
|
-
* @param overlay Reference to the dialog's underlying overlay.
|
|
748
|
-
* @param config The dialog configuration.
|
|
749
|
-
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
750
|
-
*/
|
|
751
|
-
_attachDialogContainer(overlay, config) {
|
|
752
|
-
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
753
|
-
const injector = Injector.create({
|
|
754
|
-
parent: userInjector || this._injector,
|
|
755
|
-
providers: [{ provide: MatDialogConfig, useValue: config }],
|
|
756
|
-
});
|
|
757
|
-
const containerPortal = new ComponentPortal(this._dialogContainerType, config.viewContainerRef, injector, config.componentFactoryResolver);
|
|
758
|
-
const containerRef = overlay.attach(containerPortal);
|
|
759
|
-
return containerRef.instance;
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* Attaches the user-provided component to the already-created dialog container.
|
|
763
|
-
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
764
|
-
* or a TemplateRef to instantiate as the content.
|
|
765
|
-
* @param dialogContainer Reference to the wrapping dialog container.
|
|
766
|
-
* @param overlayRef Reference to the overlay in which the dialog resides.
|
|
767
|
-
* @param config The dialog configuration.
|
|
768
|
-
* @returns A promise resolving to the MatDialogRef that should be returned to the user.
|
|
769
|
-
*/
|
|
770
|
-
_attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
771
|
-
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
772
|
-
// to modify and close it.
|
|
773
|
-
const dialogRef = new this._dialogRefConstructor(overlayRef, dialogContainer, config.id);
|
|
774
|
-
const injector = this._createInjector(config, dialogRef, dialogContainer);
|
|
775
|
-
if (componentOrTemplateRef instanceof TemplateRef) {
|
|
776
|
-
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {
|
|
777
|
-
$implicit: config.data,
|
|
778
|
-
dialogRef,
|
|
779
|
-
}, injector));
|
|
780
|
-
}
|
|
781
|
-
else {
|
|
782
|
-
const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector, config.componentFactoryResolver));
|
|
783
|
-
dialogRef.componentInstance = contentRef.instance;
|
|
784
|
-
}
|
|
785
|
-
dialogRef.updateSize(config.width, config.height).updatePosition(config.position);
|
|
786
|
-
return dialogRef;
|
|
787
|
-
}
|
|
788
|
-
/**
|
|
789
|
-
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
790
|
-
* of a dialog to close itself and, optionally, to return a value.
|
|
791
|
-
* @param config Config object that is used to construct the dialog.
|
|
792
|
-
* @param dialogRef Reference to the dialog.
|
|
793
|
-
* @param dialogContainer Dialog container element that wraps all of the contents.
|
|
794
|
-
* @returns The custom injector that can be used inside the dialog.
|
|
795
|
-
*/
|
|
796
|
-
_createInjector(config, dialogRef, dialogContainer) {
|
|
797
|
-
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
798
|
-
// The dialog container should be provided as the dialog container and the dialog's
|
|
799
|
-
// content are created out of the same `ViewContainerRef` and as such, are siblings
|
|
800
|
-
// for injector purposes. To allow the hierarchy that is expected, the dialog
|
|
801
|
-
// container is explicitly provided in the injector.
|
|
802
|
-
const providers = [
|
|
803
|
-
{ provide: this._dialogContainerType, useValue: dialogContainer },
|
|
804
|
-
{ provide: this._dialogDataToken, useValue: config.data },
|
|
805
|
-
{ provide: this._dialogRefConstructor, useValue: dialogRef },
|
|
806
|
-
];
|
|
807
|
-
if (config.direction &&
|
|
808
|
-
(!userInjector ||
|
|
809
|
-
!userInjector.get(Directionality, null, InjectFlags.Optional))) {
|
|
810
|
-
providers.push({
|
|
811
|
-
provide: Directionality,
|
|
812
|
-
useValue: { value: config.direction, change: of() },
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
return Injector.create({ parent: userInjector || this._injector, providers });
|
|
816
|
-
}
|
|
817
|
-
/**
|
|
818
|
-
* Removes a dialog from the array of open dialogs.
|
|
819
|
-
* @param dialogRef Dialog to be removed.
|
|
820
|
-
*/
|
|
821
|
-
_removeOpenDialog(dialogRef) {
|
|
822
|
-
const index = this.openDialogs.indexOf(dialogRef);
|
|
823
|
-
if (index > -1) {
|
|
824
|
-
this.openDialogs.splice(index, 1);
|
|
825
|
-
// If all the dialogs were closed, remove/restore the `aria-hidden`
|
|
826
|
-
// to a the siblings and emit to the `afterAllClosed` stream.
|
|
827
|
-
if (!this.openDialogs.length) {
|
|
828
|
-
this._ariaHiddenElements.forEach((previousValue, element) => {
|
|
829
|
-
if (previousValue) {
|
|
830
|
-
element.setAttribute('aria-hidden', previousValue);
|
|
831
|
-
}
|
|
832
|
-
else {
|
|
833
|
-
element.removeAttribute('aria-hidden');
|
|
834
|
-
}
|
|
835
|
-
});
|
|
836
|
-
this._ariaHiddenElements.clear();
|
|
837
|
-
this._getAfterAllClosed().next();
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
/**
|
|
842
|
-
* Hides all of the content that isn't an overlay from assistive technology.
|
|
843
|
-
*/
|
|
844
|
-
_hideNonDialogContentFromAssistiveTechnology() {
|
|
845
|
-
const overlayContainer = this._overlayContainer.getContainerElement();
|
|
846
|
-
// Ensure that the overlay container is attached to the DOM.
|
|
847
|
-
if (overlayContainer.parentElement) {
|
|
848
|
-
const siblings = overlayContainer.parentElement.children;
|
|
849
|
-
for (let i = siblings.length - 1; i > -1; i--) {
|
|
850
|
-
let sibling = siblings[i];
|
|
851
|
-
if (sibling !== overlayContainer &&
|
|
852
|
-
sibling.nodeName !== 'SCRIPT' &&
|
|
853
|
-
sibling.nodeName !== 'STYLE' &&
|
|
854
|
-
!sibling.hasAttribute('aria-live')) {
|
|
855
|
-
this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));
|
|
856
|
-
sibling.setAttribute('aria-hidden', 'true');
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
/** Closes all of the dialogs in an array. */
|
|
862
541
|
_closeDialogs(dialogs) {
|
|
863
542
|
let i = dialogs.length;
|
|
864
543
|
while (i--) {
|
|
865
|
-
// The `_openDialogs` property isn't updated after close until the rxjs subscription
|
|
866
|
-
// runs on the next microtask, in addition to modifying the array as we're going
|
|
867
|
-
// through it. We loop through all of them and call close without assuming that
|
|
868
|
-
// they'll be removed from the list instantaneously.
|
|
869
544
|
dialogs[i].close();
|
|
870
545
|
}
|
|
871
546
|
}
|
|
872
547
|
}
|
|
873
|
-
_MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
874
|
-
_MatDialogBase.ɵ
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
876
|
-
type:
|
|
548
|
+
_MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
549
|
+
_MatDialogBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogBase });
|
|
550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: _MatDialogBase, decorators: [{
|
|
551
|
+
type: Injectable
|
|
877
552
|
}], 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 }]; } });
|
|
878
553
|
/**
|
|
879
554
|
* Service to open Material Design modal dialogs.
|
|
@@ -884,7 +559,12 @@ class MatDialog extends _MatDialogBase {
|
|
|
884
559
|
* @deprecated `_location` parameter to be removed.
|
|
885
560
|
* @breaking-change 10.0.0
|
|
886
561
|
*/
|
|
887
|
-
|
|
562
|
+
_location, defaultOptions, scrollStrategy, parentDialog,
|
|
563
|
+
/**
|
|
564
|
+
* @deprecated No longer used. To be removed.
|
|
565
|
+
* @breaking-change 15.0.0
|
|
566
|
+
*/
|
|
567
|
+
overlayContainer,
|
|
888
568
|
/**
|
|
889
569
|
* @deprecated No longer used. To be removed.
|
|
890
570
|
* @breaking-change 14.0.0
|
|
@@ -893,9 +573,9 @@ class MatDialog extends _MatDialogBase {
|
|
|
893
573
|
super(overlay, injector, defaultOptions, parentDialog, overlayContainer, scrollStrategy, MatDialogRef, MatDialogContainer, MAT_DIALOG_DATA, animationMode);
|
|
894
574
|
}
|
|
895
575
|
}
|
|
896
|
-
MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
897
|
-
MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
576
|
+
MatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", 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 });
|
|
577
|
+
MatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialog });
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialog, decorators: [{
|
|
899
579
|
type: Injectable
|
|
900
580
|
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i2.Location, decorators: [{
|
|
901
581
|
type: Optional
|
|
@@ -917,15 +597,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
|
|
|
917
597
|
type: Inject,
|
|
918
598
|
args: [ANIMATION_MODULE_TYPE]
|
|
919
599
|
}] }]; } });
|
|
920
|
-
/**
|
|
921
|
-
* Applies default options to the dialog config.
|
|
922
|
-
* @param config Config to be modified.
|
|
923
|
-
* @param defaultOptions Default options provided.
|
|
924
|
-
* @returns The new configuration object.
|
|
925
|
-
*/
|
|
926
|
-
function _applyConfigDefaults(config, defaultOptions) {
|
|
927
|
-
return { ...defaultOptions, ...config };
|
|
928
|
-
}
|
|
929
600
|
|
|
930
601
|
/**
|
|
931
602
|
* @license
|
|
@@ -979,9 +650,9 @@ class MatDialogClose {
|
|
|
979
650
|
_closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
|
|
980
651
|
}
|
|
981
652
|
}
|
|
982
|
-
MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
983
|
-
MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
653
|
+
MatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
654
|
+
MatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", 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 });
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogClose, decorators: [{
|
|
985
656
|
type: Directive,
|
|
986
657
|
args: [{
|
|
987
658
|
selector: '[mat-dialog-close], [matDialogClose]',
|
|
@@ -1034,9 +705,9 @@ class MatDialogTitle {
|
|
|
1034
705
|
}
|
|
1035
706
|
}
|
|
1036
707
|
}
|
|
1037
|
-
MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1038
|
-
MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
708
|
+
MatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
709
|
+
MatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: { id: "id" }, host: { properties: { "id": "id" }, classAttribute: "mat-dialog-title" }, exportAs: ["matDialogTitle"], ngImport: i0 });
|
|
710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogTitle, decorators: [{
|
|
1040
711
|
type: Directive,
|
|
1041
712
|
args: [{
|
|
1042
713
|
selector: '[mat-dialog-title], [matDialogTitle]',
|
|
@@ -1056,9 +727,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
|
|
|
1056
727
|
*/
|
|
1057
728
|
class MatDialogContent {
|
|
1058
729
|
}
|
|
1059
|
-
MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1060
|
-
MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
730
|
+
MatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
731
|
+
MatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]", host: { classAttribute: "mat-dialog-content" }, ngImport: i0 });
|
|
732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogContent, decorators: [{
|
|
1062
733
|
type: Directive,
|
|
1063
734
|
args: [{
|
|
1064
735
|
selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,
|
|
@@ -1077,9 +748,9 @@ class MatDialogActions {
|
|
|
1077
748
|
this.align = 'start';
|
|
1078
749
|
}
|
|
1079
750
|
}
|
|
1080
|
-
MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1081
|
-
MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
751
|
+
MatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
752
|
+
MatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0-next.16", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: { align: "align" }, host: { properties: { "class.mat-dialog-actions-align-center": "align === \"center\"", "class.mat-dialog-actions-align-end": "align === \"end\"" }, classAttribute: "mat-dialog-actions" }, ngImport: i0 });
|
|
753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogActions, decorators: [{
|
|
1083
754
|
type: Directive,
|
|
1084
755
|
args: [{
|
|
1085
756
|
selector: `[mat-dialog-actions], mat-dialog-actions, [matDialogActions]`,
|
|
@@ -1118,22 +789,22 @@ function getClosestDialog(element, openDialogs) {
|
|
|
1118
789
|
*/
|
|
1119
790
|
class MatDialogModule {
|
|
1120
791
|
}
|
|
1121
|
-
MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1122
|
-
MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
792
|
+
MatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
793
|
+
MatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,
|
|
1123
794
|
MatDialogClose,
|
|
1124
795
|
MatDialogTitle,
|
|
1125
796
|
MatDialogActions,
|
|
1126
|
-
MatDialogContent], imports: [OverlayModule, PortalModule, MatCommonModule], exports: [MatDialogContainer,
|
|
797
|
+
MatDialogContent], imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule], exports: [MatDialogContainer,
|
|
1127
798
|
MatDialogClose,
|
|
1128
799
|
MatDialogTitle,
|
|
1129
800
|
MatDialogContent,
|
|
1130
801
|
MatDialogActions,
|
|
1131
802
|
MatCommonModule] });
|
|
1132
|
-
MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
803
|
+
MatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER], imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule, MatCommonModule] });
|
|
804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: MatDialogModule, decorators: [{
|
|
1134
805
|
type: NgModule,
|
|
1135
806
|
args: [{
|
|
1136
|
-
imports: [OverlayModule, PortalModule, MatCommonModule],
|
|
807
|
+
imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule],
|
|
1137
808
|
exports: [
|
|
1138
809
|
MatDialogContainer,
|
|
1139
810
|
MatDialogClose,
|
|
@@ -1173,5 +844,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6",
|
|
|
1173
844
|
* Generated bundle index. Do not edit.
|
|
1174
845
|
*/
|
|
1175
846
|
|
|
1176
|
-
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
|
|
847
|
+
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 };
|
|
1177
848
|
//# sourceMappingURL=dialog.mjs.map
|