@angular/material 7.0.4 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/_theming.scss +61 -44
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +126 -32
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +68 -21
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +36 -13
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +124 -34
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +189 -126
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +231 -53
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +53 -27
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +121 -32
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +66 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +277 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +69 -21
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +171 -66
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +31 -12
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +189 -51
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +30 -14
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +91 -21
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +71 -19
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -35
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +29 -9
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +170 -68
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +53 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2853 -1010
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +60 -29
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +45 -22
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +20 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +148 -129
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +124 -41
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +58 -31
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +94 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +136 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +47 -22
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +109 -63
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +116 -53
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +54 -24
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +41 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -32
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -11
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +113 -53
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +43 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +128 -34
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +70 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +38 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +233 -55
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +56 -31
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +125 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +279 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +72 -24
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +170 -65
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +193 -55
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +94 -24
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +73 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -38
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -11
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +162 -61
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +55 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- 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/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm5/dialog.es5.js
CHANGED
|
@@ -20,7 +20,7 @@ import { MatCommonModule } from '@angular/material/core';
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @fileoverview added by tsickle
|
|
23
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
23
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* Configuration for opening a modal dialog with the MatDialog service.
|
|
@@ -91,13 +91,14 @@ MatDialogConfig = /** @class */ (function () {
|
|
|
91
91
|
* the `HashLocationStrategy`).
|
|
92
92
|
*/
|
|
93
93
|
this.closeOnNavigation = true;
|
|
94
|
+
// TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.
|
|
94
95
|
}
|
|
95
96
|
return MatDialogConfig;
|
|
96
97
|
}());
|
|
97
98
|
|
|
98
99
|
/**
|
|
99
100
|
* @fileoverview added by tsickle
|
|
100
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
101
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
101
102
|
*/
|
|
102
103
|
/** @type {?} */
|
|
103
104
|
var animationBody = [
|
|
@@ -109,20 +110,25 @@ var animationBody = [
|
|
|
109
110
|
transition('* => enter', animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 }))),
|
|
110
111
|
transition('* => void, * => exit', animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 }))),
|
|
111
112
|
];
|
|
112
|
-
/**
|
|
113
|
+
/**
|
|
113
114
|
* Animations used by MatDialog.
|
|
114
115
|
* \@docs-private
|
|
115
|
-
|
|
116
|
+
* @type {?}
|
|
117
|
+
*/
|
|
116
118
|
var matDialogAnimations = {
|
|
117
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* Animation that is applied on the dialog container by defalt.
|
|
121
|
+
*/
|
|
118
122
|
dialogContainer: trigger('dialogContainer', animationBody),
|
|
119
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated \@breaking-change 8.0.0 Use `matDialogAnimations.dialogContainer` instead.
|
|
125
|
+
*/
|
|
120
126
|
slideDialog: trigger('slideDialog', animationBody)
|
|
121
127
|
};
|
|
122
128
|
|
|
123
129
|
/**
|
|
124
130
|
* @fileoverview added by tsickle
|
|
125
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
131
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
126
132
|
*/
|
|
127
133
|
/**
|
|
128
134
|
* Throws an exception for the case when a ComponentPortal is
|
|
@@ -211,12 +217,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
211
217
|
this._savePreviouslyFocusedElement();
|
|
212
218
|
return this._portalOutlet.attachTemplatePortal(portal);
|
|
213
219
|
};
|
|
220
|
+
/** Moves the focus inside the focus trap. */
|
|
214
221
|
/**
|
|
215
222
|
* Moves the focus inside the focus trap.
|
|
223
|
+
* @private
|
|
216
224
|
* @return {?}
|
|
217
225
|
*/
|
|
218
226
|
MatDialogContainer.prototype._trapFocus = /**
|
|
219
227
|
* Moves the focus inside the focus trap.
|
|
228
|
+
* @private
|
|
220
229
|
* @return {?}
|
|
221
230
|
*/
|
|
222
231
|
function () {
|
|
@@ -230,12 +239,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
230
239
|
this._focusTrap.focusInitialElementWhenReady();
|
|
231
240
|
}
|
|
232
241
|
};
|
|
242
|
+
/** Restores focus to the element that was focused before the dialog opened. */
|
|
233
243
|
/**
|
|
234
244
|
* Restores focus to the element that was focused before the dialog opened.
|
|
245
|
+
* @private
|
|
235
246
|
* @return {?}
|
|
236
247
|
*/
|
|
237
248
|
MatDialogContainer.prototype._restoreFocus = /**
|
|
238
249
|
* Restores focus to the element that was focused before the dialog opened.
|
|
250
|
+
* @private
|
|
239
251
|
* @return {?}
|
|
240
252
|
*/
|
|
241
253
|
function () {
|
|
@@ -249,18 +261,21 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
249
261
|
this._focusTrap.destroy();
|
|
250
262
|
}
|
|
251
263
|
};
|
|
264
|
+
/** Saves a reference to the element that was focused before the dialog was opened. */
|
|
252
265
|
/**
|
|
253
266
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
267
|
+
* @private
|
|
254
268
|
* @return {?}
|
|
255
269
|
*/
|
|
256
270
|
MatDialogContainer.prototype._savePreviouslyFocusedElement = /**
|
|
257
271
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
272
|
+
* @private
|
|
258
273
|
* @return {?}
|
|
259
274
|
*/
|
|
260
275
|
function () {
|
|
261
276
|
var _this = this;
|
|
262
277
|
if (this._document) {
|
|
263
|
-
this._elementFocusedBeforeDialogWasOpened = /** @type {?} */ (this._document.activeElement);
|
|
278
|
+
this._elementFocusedBeforeDialogWasOpened = (/** @type {?} */ (this._document.activeElement));
|
|
264
279
|
// Note that there is no focus method when rendering on the server.
|
|
265
280
|
if (this._elementRef.nativeElement.focus) {
|
|
266
281
|
// Move focus onto the dialog immediately in order to prevent the user from accidentally
|
|
@@ -322,7 +337,7 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
322
337
|
MatDialogContainer.decorators = [
|
|
323
338
|
{ type: Component, args: [{selector: 'mat-dialog-container',
|
|
324
339
|
template: "<ng-template cdkPortalOutlet></ng-template>",
|
|
325
|
-
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}@media
|
|
340
|
+
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}@media (-ms-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;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],
|
|
326
341
|
encapsulation: ViewEncapsulation.None,
|
|
327
342
|
// Using OnPush for dialogs caused some G3 sync issues. Disabled until we can track them down.
|
|
328
343
|
// tslint:disable-next-line:validate-decorators
|
|
@@ -359,8 +374,10 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
359
374
|
|
|
360
375
|
/**
|
|
361
376
|
* @fileoverview added by tsickle
|
|
362
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
377
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
363
378
|
*/
|
|
379
|
+
// TODO(jelbourn): resizing
|
|
380
|
+
// Counter for unique dialog ids.
|
|
364
381
|
/** @type {?} */
|
|
365
382
|
var uniqueId = 0;
|
|
366
383
|
/**
|
|
@@ -411,7 +428,7 @@ MatDialogRef = /** @class */ (function () {
|
|
|
411
428
|
_this._beforeClosed.complete();
|
|
412
429
|
_this._afterClosed.next(_this._result);
|
|
413
430
|
_this._afterClosed.complete();
|
|
414
|
-
_this.componentInstance = /** @type {?} */ (
|
|
431
|
+
_this.componentInstance = (/** @type {?} */ (null));
|
|
415
432
|
_this._overlayRef.dispose();
|
|
416
433
|
});
|
|
417
434
|
_overlayRef.keydownEvents()
|
|
@@ -520,17 +537,21 @@ MatDialogRef = /** @class */ (function () {
|
|
|
520
537
|
*/
|
|
521
538
|
/**
|
|
522
539
|
* Updates the dialog's position.
|
|
540
|
+
* @template THIS
|
|
541
|
+
* @this {THIS}
|
|
523
542
|
* @param {?=} position New dialog position.
|
|
524
|
-
* @return {
|
|
543
|
+
* @return {THIS}
|
|
525
544
|
*/
|
|
526
545
|
MatDialogRef.prototype.updatePosition = /**
|
|
527
546
|
* Updates the dialog's position.
|
|
547
|
+
* @template THIS
|
|
548
|
+
* @this {THIS}
|
|
528
549
|
* @param {?=} position New dialog position.
|
|
529
|
-
* @return {
|
|
550
|
+
* @return {THIS}
|
|
530
551
|
*/
|
|
531
552
|
function (position) {
|
|
532
553
|
/** @type {?} */
|
|
533
|
-
var strategy = this._getPositionStrategy();
|
|
554
|
+
var strategy = (/** @type {?} */ (this))._getPositionStrategy();
|
|
534
555
|
if (position && (position.left || position.right)) {
|
|
535
556
|
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
536
557
|
}
|
|
@@ -543,8 +564,8 @@ MatDialogRef = /** @class */ (function () {
|
|
|
543
564
|
else {
|
|
544
565
|
strategy.centerVertically();
|
|
545
566
|
}
|
|
546
|
-
this._overlayRef.updatePosition();
|
|
547
|
-
return this;
|
|
567
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
568
|
+
return (/** @type {?} */ (this));
|
|
548
569
|
};
|
|
549
570
|
/**
|
|
550
571
|
* Updates the dialog's width and height.
|
|
@@ -553,22 +574,26 @@ MatDialogRef = /** @class */ (function () {
|
|
|
553
574
|
*/
|
|
554
575
|
/**
|
|
555
576
|
* Updates the dialog's width and height.
|
|
577
|
+
* @template THIS
|
|
578
|
+
* @this {THIS}
|
|
556
579
|
* @param {?=} width New width of the dialog.
|
|
557
580
|
* @param {?=} height New height of the dialog.
|
|
558
|
-
* @return {
|
|
581
|
+
* @return {THIS}
|
|
559
582
|
*/
|
|
560
583
|
MatDialogRef.prototype.updateSize = /**
|
|
561
584
|
* Updates the dialog's width and height.
|
|
585
|
+
* @template THIS
|
|
586
|
+
* @this {THIS}
|
|
562
587
|
* @param {?=} width New width of the dialog.
|
|
563
588
|
* @param {?=} height New height of the dialog.
|
|
564
|
-
* @return {
|
|
589
|
+
* @return {THIS}
|
|
565
590
|
*/
|
|
566
591
|
function (width, height) {
|
|
567
592
|
if (width === void 0) { width = ''; }
|
|
568
593
|
if (height === void 0) { height = ''; }
|
|
569
|
-
this._getPositionStrategy().width(width).height(height);
|
|
570
|
-
this._overlayRef.updatePosition();
|
|
571
|
-
return this;
|
|
594
|
+
(/** @type {?} */ (this))._getPositionStrategy().width(width).height(height);
|
|
595
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
596
|
+
return (/** @type {?} */ (this));
|
|
572
597
|
};
|
|
573
598
|
/**
|
|
574
599
|
* Gets an observable that is notified when the dialog is finished opening.
|
|
@@ -610,35 +635,41 @@ MatDialogRef = /** @class */ (function () {
|
|
|
610
635
|
function () {
|
|
611
636
|
return this.beforeClosed();
|
|
612
637
|
};
|
|
638
|
+
/** Fetches the position strategy object from the overlay ref. */
|
|
613
639
|
/**
|
|
614
640
|
* Fetches the position strategy object from the overlay ref.
|
|
641
|
+
* @private
|
|
615
642
|
* @return {?}
|
|
616
643
|
*/
|
|
617
644
|
MatDialogRef.prototype._getPositionStrategy = /**
|
|
618
645
|
* Fetches the position strategy object from the overlay ref.
|
|
646
|
+
* @private
|
|
619
647
|
* @return {?}
|
|
620
648
|
*/
|
|
621
649
|
function () {
|
|
622
|
-
return /** @type {?} */ (this._overlayRef.getConfig().positionStrategy);
|
|
650
|
+
return (/** @type {?} */ (this._overlayRef.getConfig().positionStrategy));
|
|
623
651
|
};
|
|
624
652
|
return MatDialogRef;
|
|
625
653
|
}());
|
|
626
654
|
|
|
627
655
|
/**
|
|
628
656
|
* @fileoverview added by tsickle
|
|
629
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
657
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
630
658
|
*/
|
|
631
|
-
/**
|
|
659
|
+
/**
|
|
632
660
|
* Injection token that can be used to access the data that was passed in to a dialog.
|
|
633
|
-
|
|
661
|
+
* @type {?}
|
|
662
|
+
*/
|
|
634
663
|
var MAT_DIALOG_DATA = new InjectionToken('MatDialogData');
|
|
635
|
-
/**
|
|
664
|
+
/**
|
|
636
665
|
* Injection token that can be used to specify default dialog options.
|
|
637
|
-
|
|
666
|
+
* @type {?}
|
|
667
|
+
*/
|
|
638
668
|
var MAT_DIALOG_DEFAULT_OPTIONS = new InjectionToken('mat-dialog-default-options');
|
|
639
|
-
/**
|
|
669
|
+
/**
|
|
640
670
|
* Injection token that determines the scroll handling while the dialog is open.
|
|
641
|
-
|
|
671
|
+
* @type {?}
|
|
672
|
+
*/
|
|
642
673
|
var MAT_DIALOG_SCROLL_STRATEGY = new InjectionToken('mat-dialog-scroll-strategy');
|
|
643
674
|
/**
|
|
644
675
|
* \@docs-private
|
|
@@ -656,9 +687,10 @@ function MAT_DIALOG_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
|
656
687
|
function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
657
688
|
return function () { return overlay.scrollStrategies.block(); };
|
|
658
689
|
}
|
|
659
|
-
/**
|
|
690
|
+
/**
|
|
660
691
|
* \@docs-private
|
|
661
|
-
|
|
692
|
+
* @type {?}
|
|
693
|
+
*/
|
|
662
694
|
var MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
663
695
|
provide: MAT_DIALOG_SCROLL_STRATEGY,
|
|
664
696
|
deps: [Overlay],
|
|
@@ -828,14 +860,23 @@ var MatDialog = /** @class */ (function () {
|
|
|
828
860
|
// Only close the dialogs at this level on destroy
|
|
829
861
|
// since the parent service may still be active.
|
|
830
862
|
this._closeDialogs(this._openDialogsAtThisLevel);
|
|
863
|
+
this._afterAllClosedAtThisLevel.complete();
|
|
864
|
+
this._afterOpenedAtThisLevel.complete();
|
|
831
865
|
};
|
|
832
866
|
/**
|
|
833
867
|
* Creates the overlay into which the dialog will be loaded.
|
|
868
|
+
* @param config The dialog configuration.
|
|
869
|
+
* @returns A promise resolving to the OverlayRef for the created overlay.
|
|
870
|
+
*/
|
|
871
|
+
/**
|
|
872
|
+
* Creates the overlay into which the dialog will be loaded.
|
|
873
|
+
* @private
|
|
834
874
|
* @param {?} config The dialog configuration.
|
|
835
875
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
836
876
|
*/
|
|
837
877
|
MatDialog.prototype._createOverlay = /**
|
|
838
878
|
* Creates the overlay into which the dialog will be loaded.
|
|
879
|
+
* @private
|
|
839
880
|
* @param {?} config The dialog configuration.
|
|
840
881
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
841
882
|
*/
|
|
@@ -846,11 +887,18 @@ var MatDialog = /** @class */ (function () {
|
|
|
846
887
|
};
|
|
847
888
|
/**
|
|
848
889
|
* Creates an overlay config from a dialog config.
|
|
890
|
+
* @param dialogConfig The dialog configuration.
|
|
891
|
+
* @returns The overlay configuration.
|
|
892
|
+
*/
|
|
893
|
+
/**
|
|
894
|
+
* Creates an overlay config from a dialog config.
|
|
895
|
+
* @private
|
|
849
896
|
* @param {?} dialogConfig The dialog configuration.
|
|
850
897
|
* @return {?} The overlay configuration.
|
|
851
898
|
*/
|
|
852
899
|
MatDialog.prototype._getOverlayConfig = /**
|
|
853
900
|
* Creates an overlay config from a dialog config.
|
|
901
|
+
* @private
|
|
854
902
|
* @param {?} dialogConfig The dialog configuration.
|
|
855
903
|
* @return {?} The overlay configuration.
|
|
856
904
|
*/
|
|
@@ -875,12 +923,20 @@ var MatDialog = /** @class */ (function () {
|
|
|
875
923
|
};
|
|
876
924
|
/**
|
|
877
925
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
926
|
+
* @param overlay Reference to the dialog's underlying overlay.
|
|
927
|
+
* @param config The dialog configuration.
|
|
928
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
929
|
+
*/
|
|
930
|
+
/**
|
|
931
|
+
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
932
|
+
* @private
|
|
878
933
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
879
934
|
* @param {?} config The dialog configuration.
|
|
880
935
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
881
936
|
*/
|
|
882
937
|
MatDialog.prototype._attachDialogContainer = /**
|
|
883
938
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
939
|
+
* @private
|
|
884
940
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
885
941
|
* @param {?} config The dialog configuration.
|
|
886
942
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
@@ -900,6 +956,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
900
956
|
};
|
|
901
957
|
/**
|
|
902
958
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
959
|
+
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
960
|
+
* or a TemplateRef to instantiate as the content.
|
|
961
|
+
* @param dialogContainer Reference to the wrapping MatDialogContainer.
|
|
962
|
+
* @param overlayRef Reference to the overlay in which the dialog resides.
|
|
963
|
+
* @param config The dialog configuration.
|
|
964
|
+
* @returns A promise resolving to the MatDialogRef that should be returned to the user.
|
|
965
|
+
*/
|
|
966
|
+
/**
|
|
967
|
+
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
968
|
+
* @private
|
|
903
969
|
* @template T, R
|
|
904
970
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
905
971
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -910,6 +976,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
910
976
|
*/
|
|
911
977
|
MatDialog.prototype._attachDialogContent = /**
|
|
912
978
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
979
|
+
* @private
|
|
913
980
|
* @template T, R
|
|
914
981
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
915
982
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -919,6 +986,8 @@ var MatDialog = /** @class */ (function () {
|
|
|
919
986
|
* @return {?} A promise resolving to the MatDialogRef that should be returned to the user.
|
|
920
987
|
*/
|
|
921
988
|
function (componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
989
|
+
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
990
|
+
// to modify and close it.
|
|
922
991
|
/** @type {?} */
|
|
923
992
|
var dialogRef = new MatDialogRef(overlayRef, dialogContainer, this._location, config.id);
|
|
924
993
|
// When the dialog backdrop is clicked, we want to close it.
|
|
@@ -930,7 +999,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
930
999
|
});
|
|
931
1000
|
}
|
|
932
1001
|
if (componentOrTemplateRef instanceof TemplateRef) {
|
|
933
|
-
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, /** @type {?} */ (
|
|
1002
|
+
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, (/** @type {?} */ (null)), (/** @type {?} */ ({ $implicit: config.data, dialogRef: dialogRef }))));
|
|
934
1003
|
}
|
|
935
1004
|
else {
|
|
936
1005
|
/** @type {?} */
|
|
@@ -947,6 +1016,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
947
1016
|
/**
|
|
948
1017
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
949
1018
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1019
|
+
* @param config Config object that is used to construct the dialog.
|
|
1020
|
+
* @param dialogRef Reference to the dialog.
|
|
1021
|
+
* @param container Dialog container element that wraps all of the contents.
|
|
1022
|
+
* @returns The custom injector that can be used inside the dialog.
|
|
1023
|
+
*/
|
|
1024
|
+
/**
|
|
1025
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
1026
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
1027
|
+
* @private
|
|
950
1028
|
* @template T
|
|
951
1029
|
* @param {?} config Config object that is used to construct the dialog.
|
|
952
1030
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -956,6 +1034,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
956
1034
|
MatDialog.prototype._createInjector = /**
|
|
957
1035
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
958
1036
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1037
|
+
* @private
|
|
959
1038
|
* @template T
|
|
960
1039
|
* @param {?} config Config object that is used to construct the dialog.
|
|
961
1040
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -965,6 +1044,10 @@ var MatDialog = /** @class */ (function () {
|
|
|
965
1044
|
function (config, dialogRef, dialogContainer) {
|
|
966
1045
|
/** @type {?} */
|
|
967
1046
|
var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
1047
|
+
// The MatDialogContainer is injected in the portal as the MatDialogContainer and the dialog's
|
|
1048
|
+
// content are created out of the same ViewContainerRef and as such, are siblings for injector
|
|
1049
|
+
// purposes. To allow the hierarchy that is expected, the MatDialogContainer is explicitly
|
|
1050
|
+
// added to the injection tokens.
|
|
968
1051
|
/** @type {?} */
|
|
969
1052
|
var injectionTokens = new WeakMap([
|
|
970
1053
|
[MatDialogContainer, dialogContainer],
|
|
@@ -982,11 +1065,17 @@ var MatDialog = /** @class */ (function () {
|
|
|
982
1065
|
};
|
|
983
1066
|
/**
|
|
984
1067
|
* Removes a dialog from the array of open dialogs.
|
|
1068
|
+
* @param dialogRef Dialog to be removed.
|
|
1069
|
+
*/
|
|
1070
|
+
/**
|
|
1071
|
+
* Removes a dialog from the array of open dialogs.
|
|
1072
|
+
* @private
|
|
985
1073
|
* @param {?} dialogRef Dialog to be removed.
|
|
986
1074
|
* @return {?}
|
|
987
1075
|
*/
|
|
988
1076
|
MatDialog.prototype._removeOpenDialog = /**
|
|
989
1077
|
* Removes a dialog from the array of open dialogs.
|
|
1078
|
+
* @private
|
|
990
1079
|
* @param {?} dialogRef Dialog to be removed.
|
|
991
1080
|
* @return {?}
|
|
992
1081
|
*/
|
|
@@ -1013,10 +1102,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
1013
1102
|
};
|
|
1014
1103
|
/**
|
|
1015
1104
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1105
|
+
*/
|
|
1106
|
+
/**
|
|
1107
|
+
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1108
|
+
* @private
|
|
1016
1109
|
* @return {?}
|
|
1017
1110
|
*/
|
|
1018
1111
|
MatDialog.prototype._hideNonDialogContentFromAssistiveTechnology = /**
|
|
1019
1112
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1113
|
+
* @private
|
|
1020
1114
|
* @return {?}
|
|
1021
1115
|
*/
|
|
1022
1116
|
function () {
|
|
@@ -1039,13 +1133,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
1039
1133
|
}
|
|
1040
1134
|
}
|
|
1041
1135
|
};
|
|
1136
|
+
/** Closes all of the dialogs in an array. */
|
|
1042
1137
|
/**
|
|
1043
1138
|
* Closes all of the dialogs in an array.
|
|
1139
|
+
* @private
|
|
1044
1140
|
* @param {?} dialogs
|
|
1045
1141
|
* @return {?}
|
|
1046
1142
|
*/
|
|
1047
1143
|
MatDialog.prototype._closeDialogs = /**
|
|
1048
1144
|
* Closes all of the dialogs in an array.
|
|
1145
|
+
* @private
|
|
1049
1146
|
* @param {?} dialogs
|
|
1050
1147
|
* @return {?}
|
|
1051
1148
|
*/
|
|
@@ -1087,11 +1184,12 @@ function _applyConfigDefaults(config, defaultOptions) {
|
|
|
1087
1184
|
|
|
1088
1185
|
/**
|
|
1089
1186
|
* @fileoverview added by tsickle
|
|
1090
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1187
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1091
1188
|
*/
|
|
1092
|
-
/**
|
|
1189
|
+
/**
|
|
1093
1190
|
* Counter used to generate unique IDs for dialog elements.
|
|
1094
|
-
|
|
1191
|
+
* @type {?}
|
|
1192
|
+
*/
|
|
1095
1193
|
var dialogElementUid = 0;
|
|
1096
1194
|
/**
|
|
1097
1195
|
* Button that will close the current dialog.
|
|
@@ -1119,7 +1217,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1119
1217
|
// views cannot be given a custom injector. Instead, we look up the DialogRef by
|
|
1120
1218
|
// ID. This must occur in `onInit`, as the ID binding for the dialog container won't
|
|
1121
1219
|
// be resolved at constructor time.
|
|
1122
|
-
this.dialogRef = /** @type {?} */ (
|
|
1220
|
+
this.dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1123
1221
|
}
|
|
1124
1222
|
};
|
|
1125
1223
|
/**
|
|
@@ -1132,7 +1230,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1132
1230
|
*/
|
|
1133
1231
|
function (changes) {
|
|
1134
1232
|
/** @type {?} */
|
|
1135
|
-
var proxiedChange = changes
|
|
1233
|
+
var proxiedChange = changes._matDialogClose || changes._matDialogCloseResult;
|
|
1136
1234
|
if (proxiedChange) {
|
|
1137
1235
|
this.dialogResult = proxiedChange.currentValue;
|
|
1138
1236
|
}
|
|
@@ -1180,7 +1278,7 @@ var MatDialogTitle = /** @class */ (function () {
|
|
|
1180
1278
|
function () {
|
|
1181
1279
|
var _this = this;
|
|
1182
1280
|
if (!this._dialogRef) {
|
|
1183
|
-
this._dialogRef = /** @type {?} */ (
|
|
1281
|
+
this._dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1184
1282
|
}
|
|
1185
1283
|
if (this._dialogRef) {
|
|
1186
1284
|
Promise.resolve().then(function () {
|
|
@@ -1254,12 +1352,12 @@ function getClosestDialog(element, openDialogs) {
|
|
|
1254
1352
|
while (parent && !parent.classList.contains('mat-dialog-container')) {
|
|
1255
1353
|
parent = parent.parentElement;
|
|
1256
1354
|
}
|
|
1257
|
-
return parent ? openDialogs.find(function (dialog) { return dialog.id === /** @type {?} */ (
|
|
1355
|
+
return parent ? openDialogs.find(function (dialog) { return dialog.id === (/** @type {?} */ (parent)).id; }) : null;
|
|
1258
1356
|
}
|
|
1259
1357
|
|
|
1260
1358
|
/**
|
|
1261
1359
|
* @fileoverview added by tsickle
|
|
1262
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1360
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1263
1361
|
*/
|
|
1264
1362
|
var MatDialogModule = /** @class */ (function () {
|
|
1265
1363
|
function MatDialogModule() {
|
|
@@ -1299,12 +1397,12 @@ var MatDialogModule = /** @class */ (function () {
|
|
|
1299
1397
|
|
|
1300
1398
|
/**
|
|
1301
1399
|
* @fileoverview added by tsickle
|
|
1302
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1400
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1303
1401
|
*/
|
|
1304
1402
|
|
|
1305
1403
|
/**
|
|
1306
1404
|
* @fileoverview added by tsickle
|
|
1307
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1405
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1308
1406
|
*/
|
|
1309
1407
|
|
|
1310
1408
|
export { MatDialogModule, MAT_DIALOG_SCROLL_STRATEGY_FACTORY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MatDialog, throwMatDialogContentAlreadyAttachedError, MatDialogContainer, MatDialogClose, MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogConfig, MatDialogRef, matDialogAnimations };
|