@angular/material 7.0.3 → 7.2.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/_theming.scss +57 -49
- 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 +124 -30
- 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 -25
- 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 +40 -15
- 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 +19 -12
- 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 +2 -2
- package/bundles/material-card.umd.js.map +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 +186 -123
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +2 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +241 -59
- 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 +136 -44
- 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 +32 -22
- 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 +120 -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 +280 -79
- 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 +46 -24
- 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 +71 -22
- 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 +157 -55
- 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 +35 -14
- 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 +26 -7
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +178 -49
- 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 +102 -23
- 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 +33 -15
- 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 +89 -19
- 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 +74 -22
- 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 +45 -23
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -44
- 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 -19
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +156 -56
- 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 +13 -3
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +52 -25
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -26
- 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 +2780 -979
- 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/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-toggle.d.ts +5 -0
- 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 +58 -27
- 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 +46 -27
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +24 -13
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +18 -13
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +4 -4
- 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 +145 -126
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +131 -44
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +76 -45
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +35 -25
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +93 -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 +139 -68
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +40 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +49 -23
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +10 -9
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +100 -53
- 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 +30 -15
- 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 +17 -7
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +103 -50
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +73 -26
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +26 -16
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +50 -20
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +44 -24
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +46 -23
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -39
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -21
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +110 -52
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +8 -4
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +42 -27
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -25
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +126 -32
- 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 +71 -28
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +42 -17
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +21 -14
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +4 -4
- 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 +189 -126
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +240 -58
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +139 -47
- 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 +35 -25
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +124 -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 +282 -81
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +48 -26
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +74 -25
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +10 -9
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +158 -55
- 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 +37 -16
- 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 +28 -9
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +181 -52
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +105 -26
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +35 -17
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +91 -21
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +76 -24
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +52 -25
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -47
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -21
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +159 -60
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +15 -5
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +54 -27
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -28
- package/esm5/tree.es5.js.map +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.metadata.json +1 -1
- package/menu/typings/menu-item.d.ts +2 -0
- package/menu/typings/menu-trigger.d.ts +5 -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/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/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/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/table/typings/index.metadata.json +1 -1
- 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/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/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-toggle.d.ts +5 -0
- 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/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-toggle.d.ts +5 -0
- 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/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.metadata.json +1 -1
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/menu/menu-trigger.d.ts +5 -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/select/index.metadata.json +1 -1
- 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/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/table/index.metadata.json +1 -1
- 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/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/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.metadata.json +1 -1
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/menu/menu-trigger.d.ts +5 -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/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/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/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/table/index.metadata.json +1 -1
- 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/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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { animate, state, style, transition, trigger
|
|
8
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
9
9
|
import { __assign, __extends } from 'tslib';
|
|
10
10
|
import { Component, ElementRef, EventEmitter, Inject, Optional, ChangeDetectorRef, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Injectable, InjectionToken, Injector, SkipSelf, TemplateRef, Directive, Input, NgModule } from '@angular/core';
|
|
11
11
|
import { DOCUMENT, Location, CommonModule } from '@angular/common';
|
|
@@ -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 = [
|
|
@@ -106,27 +107,28 @@ var animationBody = [
|
|
|
106
107
|
// decimate the animation performance. Leaving it as `none` solves both issues.
|
|
107
108
|
state('void, exit', style({ opacity: 0, transform: 'scale(0.7)' })),
|
|
108
109
|
state('enter', style({ transform: 'none' })),
|
|
109
|
-
transition('* => enter',
|
|
110
|
-
// `animateChild` allows for child component to animate at the same time. See #13870.
|
|
111
|
-
query('@*', animateChild(), { optional: true }),
|
|
112
|
-
animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 })),
|
|
113
|
-
])),
|
|
110
|
+
transition('* => enter', animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 }))),
|
|
114
111
|
transition('* => void, * => exit', animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 }))),
|
|
115
112
|
];
|
|
116
|
-
/**
|
|
113
|
+
/**
|
|
117
114
|
* Animations used by MatDialog.
|
|
118
115
|
* \@docs-private
|
|
119
|
-
|
|
116
|
+
* @type {?}
|
|
117
|
+
*/
|
|
120
118
|
var matDialogAnimations = {
|
|
121
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* Animation that is applied on the dialog container by defalt.
|
|
121
|
+
*/
|
|
122
122
|
dialogContainer: trigger('dialogContainer', animationBody),
|
|
123
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated \@breaking-change 8.0.0 Use `matDialogAnimations.dialogContainer` instead.
|
|
125
|
+
*/
|
|
124
126
|
slideDialog: trigger('slideDialog', animationBody)
|
|
125
127
|
};
|
|
126
128
|
|
|
127
129
|
/**
|
|
128
130
|
* @fileoverview added by tsickle
|
|
129
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
131
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
130
132
|
*/
|
|
131
133
|
/**
|
|
132
134
|
* Throws an exception for the case when a ComponentPortal is
|
|
@@ -215,12 +217,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
215
217
|
this._savePreviouslyFocusedElement();
|
|
216
218
|
return this._portalOutlet.attachTemplatePortal(portal);
|
|
217
219
|
};
|
|
220
|
+
/** Moves the focus inside the focus trap. */
|
|
218
221
|
/**
|
|
219
222
|
* Moves the focus inside the focus trap.
|
|
223
|
+
* @private
|
|
220
224
|
* @return {?}
|
|
221
225
|
*/
|
|
222
226
|
MatDialogContainer.prototype._trapFocus = /**
|
|
223
227
|
* Moves the focus inside the focus trap.
|
|
228
|
+
* @private
|
|
224
229
|
* @return {?}
|
|
225
230
|
*/
|
|
226
231
|
function () {
|
|
@@ -234,12 +239,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
234
239
|
this._focusTrap.focusInitialElementWhenReady();
|
|
235
240
|
}
|
|
236
241
|
};
|
|
242
|
+
/** Restores focus to the element that was focused before the dialog opened. */
|
|
237
243
|
/**
|
|
238
244
|
* Restores focus to the element that was focused before the dialog opened.
|
|
245
|
+
* @private
|
|
239
246
|
* @return {?}
|
|
240
247
|
*/
|
|
241
248
|
MatDialogContainer.prototype._restoreFocus = /**
|
|
242
249
|
* Restores focus to the element that was focused before the dialog opened.
|
|
250
|
+
* @private
|
|
243
251
|
* @return {?}
|
|
244
252
|
*/
|
|
245
253
|
function () {
|
|
@@ -253,18 +261,21 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
253
261
|
this._focusTrap.destroy();
|
|
254
262
|
}
|
|
255
263
|
};
|
|
264
|
+
/** Saves a reference to the element that was focused before the dialog was opened. */
|
|
256
265
|
/**
|
|
257
266
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
267
|
+
* @private
|
|
258
268
|
* @return {?}
|
|
259
269
|
*/
|
|
260
270
|
MatDialogContainer.prototype._savePreviouslyFocusedElement = /**
|
|
261
271
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
272
|
+
* @private
|
|
262
273
|
* @return {?}
|
|
263
274
|
*/
|
|
264
275
|
function () {
|
|
265
276
|
var _this = this;
|
|
266
277
|
if (this._document) {
|
|
267
|
-
this._elementFocusedBeforeDialogWasOpened = /** @type {?} */ (this._document.activeElement);
|
|
278
|
+
this._elementFocusedBeforeDialogWasOpened = (/** @type {?} */ (this._document.activeElement));
|
|
268
279
|
// Note that there is no focus method when rendering on the server.
|
|
269
280
|
if (this._elementRef.nativeElement.focus) {
|
|
270
281
|
// Move focus onto the dialog immediately in order to prevent the user from accidentally
|
|
@@ -363,8 +374,10 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
363
374
|
|
|
364
375
|
/**
|
|
365
376
|
* @fileoverview added by tsickle
|
|
366
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
377
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
367
378
|
*/
|
|
379
|
+
// TODO(jelbourn): resizing
|
|
380
|
+
// Counter for unique dialog ids.
|
|
368
381
|
/** @type {?} */
|
|
369
382
|
var uniqueId = 0;
|
|
370
383
|
/**
|
|
@@ -415,7 +428,7 @@ MatDialogRef = /** @class */ (function () {
|
|
|
415
428
|
_this._beforeClosed.complete();
|
|
416
429
|
_this._afterClosed.next(_this._result);
|
|
417
430
|
_this._afterClosed.complete();
|
|
418
|
-
_this.componentInstance = /** @type {?} */ (
|
|
431
|
+
_this.componentInstance = (/** @type {?} */ (null));
|
|
419
432
|
_this._overlayRef.dispose();
|
|
420
433
|
});
|
|
421
434
|
_overlayRef.keydownEvents()
|
|
@@ -524,17 +537,21 @@ MatDialogRef = /** @class */ (function () {
|
|
|
524
537
|
*/
|
|
525
538
|
/**
|
|
526
539
|
* Updates the dialog's position.
|
|
540
|
+
* @template THIS
|
|
541
|
+
* @this {THIS}
|
|
527
542
|
* @param {?=} position New dialog position.
|
|
528
|
-
* @return {
|
|
543
|
+
* @return {THIS}
|
|
529
544
|
*/
|
|
530
545
|
MatDialogRef.prototype.updatePosition = /**
|
|
531
546
|
* Updates the dialog's position.
|
|
547
|
+
* @template THIS
|
|
548
|
+
* @this {THIS}
|
|
532
549
|
* @param {?=} position New dialog position.
|
|
533
|
-
* @return {
|
|
550
|
+
* @return {THIS}
|
|
534
551
|
*/
|
|
535
552
|
function (position) {
|
|
536
553
|
/** @type {?} */
|
|
537
|
-
var strategy = this._getPositionStrategy();
|
|
554
|
+
var strategy = (/** @type {?} */ (this))._getPositionStrategy();
|
|
538
555
|
if (position && (position.left || position.right)) {
|
|
539
556
|
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
540
557
|
}
|
|
@@ -547,8 +564,8 @@ MatDialogRef = /** @class */ (function () {
|
|
|
547
564
|
else {
|
|
548
565
|
strategy.centerVertically();
|
|
549
566
|
}
|
|
550
|
-
this._overlayRef.updatePosition();
|
|
551
|
-
return this;
|
|
567
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
568
|
+
return (/** @type {?} */ (this));
|
|
552
569
|
};
|
|
553
570
|
/**
|
|
554
571
|
* Updates the dialog's width and height.
|
|
@@ -557,22 +574,26 @@ MatDialogRef = /** @class */ (function () {
|
|
|
557
574
|
*/
|
|
558
575
|
/**
|
|
559
576
|
* Updates the dialog's width and height.
|
|
577
|
+
* @template THIS
|
|
578
|
+
* @this {THIS}
|
|
560
579
|
* @param {?=} width New width of the dialog.
|
|
561
580
|
* @param {?=} height New height of the dialog.
|
|
562
|
-
* @return {
|
|
581
|
+
* @return {THIS}
|
|
563
582
|
*/
|
|
564
583
|
MatDialogRef.prototype.updateSize = /**
|
|
565
584
|
* Updates the dialog's width and height.
|
|
585
|
+
* @template THIS
|
|
586
|
+
* @this {THIS}
|
|
566
587
|
* @param {?=} width New width of the dialog.
|
|
567
588
|
* @param {?=} height New height of the dialog.
|
|
568
|
-
* @return {
|
|
589
|
+
* @return {THIS}
|
|
569
590
|
*/
|
|
570
591
|
function (width, height) {
|
|
571
592
|
if (width === void 0) { width = ''; }
|
|
572
593
|
if (height === void 0) { height = ''; }
|
|
573
|
-
this._getPositionStrategy().width(width).height(height);
|
|
574
|
-
this._overlayRef.updatePosition();
|
|
575
|
-
return this;
|
|
594
|
+
(/** @type {?} */ (this))._getPositionStrategy().width(width).height(height);
|
|
595
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
596
|
+
return (/** @type {?} */ (this));
|
|
576
597
|
};
|
|
577
598
|
/**
|
|
578
599
|
* Gets an observable that is notified when the dialog is finished opening.
|
|
@@ -614,35 +635,41 @@ MatDialogRef = /** @class */ (function () {
|
|
|
614
635
|
function () {
|
|
615
636
|
return this.beforeClosed();
|
|
616
637
|
};
|
|
638
|
+
/** Fetches the position strategy object from the overlay ref. */
|
|
617
639
|
/**
|
|
618
640
|
* Fetches the position strategy object from the overlay ref.
|
|
641
|
+
* @private
|
|
619
642
|
* @return {?}
|
|
620
643
|
*/
|
|
621
644
|
MatDialogRef.prototype._getPositionStrategy = /**
|
|
622
645
|
* Fetches the position strategy object from the overlay ref.
|
|
646
|
+
* @private
|
|
623
647
|
* @return {?}
|
|
624
648
|
*/
|
|
625
649
|
function () {
|
|
626
|
-
return /** @type {?} */ (this._overlayRef.getConfig().positionStrategy);
|
|
650
|
+
return (/** @type {?} */ (this._overlayRef.getConfig().positionStrategy));
|
|
627
651
|
};
|
|
628
652
|
return MatDialogRef;
|
|
629
653
|
}());
|
|
630
654
|
|
|
631
655
|
/**
|
|
632
656
|
* @fileoverview added by tsickle
|
|
633
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
657
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
634
658
|
*/
|
|
635
|
-
/**
|
|
659
|
+
/**
|
|
636
660
|
* Injection token that can be used to access the data that was passed in to a dialog.
|
|
637
|
-
|
|
661
|
+
* @type {?}
|
|
662
|
+
*/
|
|
638
663
|
var MAT_DIALOG_DATA = new InjectionToken('MatDialogData');
|
|
639
|
-
/**
|
|
664
|
+
/**
|
|
640
665
|
* Injection token that can be used to specify default dialog options.
|
|
641
|
-
|
|
666
|
+
* @type {?}
|
|
667
|
+
*/
|
|
642
668
|
var MAT_DIALOG_DEFAULT_OPTIONS = new InjectionToken('mat-dialog-default-options');
|
|
643
|
-
/**
|
|
669
|
+
/**
|
|
644
670
|
* Injection token that determines the scroll handling while the dialog is open.
|
|
645
|
-
|
|
671
|
+
* @type {?}
|
|
672
|
+
*/
|
|
646
673
|
var MAT_DIALOG_SCROLL_STRATEGY = new InjectionToken('mat-dialog-scroll-strategy');
|
|
647
674
|
/**
|
|
648
675
|
* \@docs-private
|
|
@@ -660,9 +687,10 @@ function MAT_DIALOG_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
|
660
687
|
function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
|
|
661
688
|
return function () { return overlay.scrollStrategies.block(); };
|
|
662
689
|
}
|
|
663
|
-
/**
|
|
690
|
+
/**
|
|
664
691
|
* \@docs-private
|
|
665
|
-
|
|
692
|
+
* @type {?}
|
|
693
|
+
*/
|
|
666
694
|
var MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
667
695
|
provide: MAT_DIALOG_SCROLL_STRATEGY,
|
|
668
696
|
deps: [Overlay],
|
|
@@ -835,11 +863,18 @@ var MatDialog = /** @class */ (function () {
|
|
|
835
863
|
};
|
|
836
864
|
/**
|
|
837
865
|
* Creates the overlay into which the dialog will be loaded.
|
|
866
|
+
* @param config The dialog configuration.
|
|
867
|
+
* @returns A promise resolving to the OverlayRef for the created overlay.
|
|
868
|
+
*/
|
|
869
|
+
/**
|
|
870
|
+
* Creates the overlay into which the dialog will be loaded.
|
|
871
|
+
* @private
|
|
838
872
|
* @param {?} config The dialog configuration.
|
|
839
873
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
840
874
|
*/
|
|
841
875
|
MatDialog.prototype._createOverlay = /**
|
|
842
876
|
* Creates the overlay into which the dialog will be loaded.
|
|
877
|
+
* @private
|
|
843
878
|
* @param {?} config The dialog configuration.
|
|
844
879
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
845
880
|
*/
|
|
@@ -850,11 +885,18 @@ var MatDialog = /** @class */ (function () {
|
|
|
850
885
|
};
|
|
851
886
|
/**
|
|
852
887
|
* Creates an overlay config from a dialog config.
|
|
888
|
+
* @param dialogConfig The dialog configuration.
|
|
889
|
+
* @returns The overlay configuration.
|
|
890
|
+
*/
|
|
891
|
+
/**
|
|
892
|
+
* Creates an overlay config from a dialog config.
|
|
893
|
+
* @private
|
|
853
894
|
* @param {?} dialogConfig The dialog configuration.
|
|
854
895
|
* @return {?} The overlay configuration.
|
|
855
896
|
*/
|
|
856
897
|
MatDialog.prototype._getOverlayConfig = /**
|
|
857
898
|
* Creates an overlay config from a dialog config.
|
|
899
|
+
* @private
|
|
858
900
|
* @param {?} dialogConfig The dialog configuration.
|
|
859
901
|
* @return {?} The overlay configuration.
|
|
860
902
|
*/
|
|
@@ -879,12 +921,20 @@ var MatDialog = /** @class */ (function () {
|
|
|
879
921
|
};
|
|
880
922
|
/**
|
|
881
923
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
924
|
+
* @param overlay Reference to the dialog's underlying overlay.
|
|
925
|
+
* @param config The dialog configuration.
|
|
926
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
927
|
+
*/
|
|
928
|
+
/**
|
|
929
|
+
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
930
|
+
* @private
|
|
882
931
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
883
932
|
* @param {?} config The dialog configuration.
|
|
884
933
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
885
934
|
*/
|
|
886
935
|
MatDialog.prototype._attachDialogContainer = /**
|
|
887
936
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
937
|
+
* @private
|
|
888
938
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
889
939
|
* @param {?} config The dialog configuration.
|
|
890
940
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
@@ -904,6 +954,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
904
954
|
};
|
|
905
955
|
/**
|
|
906
956
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
957
|
+
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
958
|
+
* or a TemplateRef to instantiate as the content.
|
|
959
|
+
* @param dialogContainer Reference to the wrapping MatDialogContainer.
|
|
960
|
+
* @param overlayRef Reference to the overlay in which the dialog resides.
|
|
961
|
+
* @param config The dialog configuration.
|
|
962
|
+
* @returns A promise resolving to the MatDialogRef that should be returned to the user.
|
|
963
|
+
*/
|
|
964
|
+
/**
|
|
965
|
+
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
966
|
+
* @private
|
|
907
967
|
* @template T, R
|
|
908
968
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
909
969
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -914,6 +974,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
914
974
|
*/
|
|
915
975
|
MatDialog.prototype._attachDialogContent = /**
|
|
916
976
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
977
|
+
* @private
|
|
917
978
|
* @template T, R
|
|
918
979
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
919
980
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -923,6 +984,8 @@ var MatDialog = /** @class */ (function () {
|
|
|
923
984
|
* @return {?} A promise resolving to the MatDialogRef that should be returned to the user.
|
|
924
985
|
*/
|
|
925
986
|
function (componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
987
|
+
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
988
|
+
// to modify and close it.
|
|
926
989
|
/** @type {?} */
|
|
927
990
|
var dialogRef = new MatDialogRef(overlayRef, dialogContainer, this._location, config.id);
|
|
928
991
|
// When the dialog backdrop is clicked, we want to close it.
|
|
@@ -934,7 +997,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
934
997
|
});
|
|
935
998
|
}
|
|
936
999
|
if (componentOrTemplateRef instanceof TemplateRef) {
|
|
937
|
-
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, /** @type {?} */ (
|
|
1000
|
+
dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, (/** @type {?} */ (null)), (/** @type {?} */ ({ $implicit: config.data, dialogRef: dialogRef }))));
|
|
938
1001
|
}
|
|
939
1002
|
else {
|
|
940
1003
|
/** @type {?} */
|
|
@@ -951,6 +1014,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
951
1014
|
/**
|
|
952
1015
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
953
1016
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1017
|
+
* @param config Config object that is used to construct the dialog.
|
|
1018
|
+
* @param dialogRef Reference to the dialog.
|
|
1019
|
+
* @param container Dialog container element that wraps all of the contents.
|
|
1020
|
+
* @returns The custom injector that can be used inside the dialog.
|
|
1021
|
+
*/
|
|
1022
|
+
/**
|
|
1023
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
1024
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
1025
|
+
* @private
|
|
954
1026
|
* @template T
|
|
955
1027
|
* @param {?} config Config object that is used to construct the dialog.
|
|
956
1028
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -960,6 +1032,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
960
1032
|
MatDialog.prototype._createInjector = /**
|
|
961
1033
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
962
1034
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1035
|
+
* @private
|
|
963
1036
|
* @template T
|
|
964
1037
|
* @param {?} config Config object that is used to construct the dialog.
|
|
965
1038
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -969,6 +1042,10 @@ var MatDialog = /** @class */ (function () {
|
|
|
969
1042
|
function (config, dialogRef, dialogContainer) {
|
|
970
1043
|
/** @type {?} */
|
|
971
1044
|
var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
1045
|
+
// The MatDialogContainer is injected in the portal as the MatDialogContainer and the dialog's
|
|
1046
|
+
// content are created out of the same ViewContainerRef and as such, are siblings for injector
|
|
1047
|
+
// purposes. To allow the hierarchy that is expected, the MatDialogContainer is explicitly
|
|
1048
|
+
// added to the injection tokens.
|
|
972
1049
|
/** @type {?} */
|
|
973
1050
|
var injectionTokens = new WeakMap([
|
|
974
1051
|
[MatDialogContainer, dialogContainer],
|
|
@@ -986,11 +1063,17 @@ var MatDialog = /** @class */ (function () {
|
|
|
986
1063
|
};
|
|
987
1064
|
/**
|
|
988
1065
|
* Removes a dialog from the array of open dialogs.
|
|
1066
|
+
* @param dialogRef Dialog to be removed.
|
|
1067
|
+
*/
|
|
1068
|
+
/**
|
|
1069
|
+
* Removes a dialog from the array of open dialogs.
|
|
1070
|
+
* @private
|
|
989
1071
|
* @param {?} dialogRef Dialog to be removed.
|
|
990
1072
|
* @return {?}
|
|
991
1073
|
*/
|
|
992
1074
|
MatDialog.prototype._removeOpenDialog = /**
|
|
993
1075
|
* Removes a dialog from the array of open dialogs.
|
|
1076
|
+
* @private
|
|
994
1077
|
* @param {?} dialogRef Dialog to be removed.
|
|
995
1078
|
* @return {?}
|
|
996
1079
|
*/
|
|
@@ -1017,10 +1100,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
1017
1100
|
};
|
|
1018
1101
|
/**
|
|
1019
1102
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1103
|
+
*/
|
|
1104
|
+
/**
|
|
1105
|
+
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1106
|
+
* @private
|
|
1020
1107
|
* @return {?}
|
|
1021
1108
|
*/
|
|
1022
1109
|
MatDialog.prototype._hideNonDialogContentFromAssistiveTechnology = /**
|
|
1023
1110
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1111
|
+
* @private
|
|
1024
1112
|
* @return {?}
|
|
1025
1113
|
*/
|
|
1026
1114
|
function () {
|
|
@@ -1043,13 +1131,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
1043
1131
|
}
|
|
1044
1132
|
}
|
|
1045
1133
|
};
|
|
1134
|
+
/** Closes all of the dialogs in an array. */
|
|
1046
1135
|
/**
|
|
1047
1136
|
* Closes all of the dialogs in an array.
|
|
1137
|
+
* @private
|
|
1048
1138
|
* @param {?} dialogs
|
|
1049
1139
|
* @return {?}
|
|
1050
1140
|
*/
|
|
1051
1141
|
MatDialog.prototype._closeDialogs = /**
|
|
1052
1142
|
* Closes all of the dialogs in an array.
|
|
1143
|
+
* @private
|
|
1053
1144
|
* @param {?} dialogs
|
|
1054
1145
|
* @return {?}
|
|
1055
1146
|
*/
|
|
@@ -1091,11 +1182,12 @@ function _applyConfigDefaults(config, defaultOptions) {
|
|
|
1091
1182
|
|
|
1092
1183
|
/**
|
|
1093
1184
|
* @fileoverview added by tsickle
|
|
1094
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1185
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1095
1186
|
*/
|
|
1096
|
-
/**
|
|
1187
|
+
/**
|
|
1097
1188
|
* Counter used to generate unique IDs for dialog elements.
|
|
1098
|
-
|
|
1189
|
+
* @type {?}
|
|
1190
|
+
*/
|
|
1099
1191
|
var dialogElementUid = 0;
|
|
1100
1192
|
/**
|
|
1101
1193
|
* Button that will close the current dialog.
|
|
@@ -1123,7 +1215,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1123
1215
|
// views cannot be given a custom injector. Instead, we look up the DialogRef by
|
|
1124
1216
|
// ID. This must occur in `onInit`, as the ID binding for the dialog container won't
|
|
1125
1217
|
// be resolved at constructor time.
|
|
1126
|
-
this.dialogRef = /** @type {?} */ (
|
|
1218
|
+
this.dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1127
1219
|
}
|
|
1128
1220
|
};
|
|
1129
1221
|
/**
|
|
@@ -1136,7 +1228,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1136
1228
|
*/
|
|
1137
1229
|
function (changes) {
|
|
1138
1230
|
/** @type {?} */
|
|
1139
|
-
var proxiedChange = changes
|
|
1231
|
+
var proxiedChange = changes._matDialogClose || changes._matDialogCloseResult;
|
|
1140
1232
|
if (proxiedChange) {
|
|
1141
1233
|
this.dialogResult = proxiedChange.currentValue;
|
|
1142
1234
|
}
|
|
@@ -1184,7 +1276,7 @@ var MatDialogTitle = /** @class */ (function () {
|
|
|
1184
1276
|
function () {
|
|
1185
1277
|
var _this = this;
|
|
1186
1278
|
if (!this._dialogRef) {
|
|
1187
|
-
this._dialogRef = /** @type {?} */ (
|
|
1279
|
+
this._dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1188
1280
|
}
|
|
1189
1281
|
if (this._dialogRef) {
|
|
1190
1282
|
Promise.resolve().then(function () {
|
|
@@ -1258,12 +1350,12 @@ function getClosestDialog(element, openDialogs) {
|
|
|
1258
1350
|
while (parent && !parent.classList.contains('mat-dialog-container')) {
|
|
1259
1351
|
parent = parent.parentElement;
|
|
1260
1352
|
}
|
|
1261
|
-
return parent ? openDialogs.find(function (dialog) { return dialog.id === /** @type {?} */ (
|
|
1353
|
+
return parent ? openDialogs.find(function (dialog) { return dialog.id === (/** @type {?} */ (parent)).id; }) : null;
|
|
1262
1354
|
}
|
|
1263
1355
|
|
|
1264
1356
|
/**
|
|
1265
1357
|
* @fileoverview added by tsickle
|
|
1266
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1358
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1267
1359
|
*/
|
|
1268
1360
|
var MatDialogModule = /** @class */ (function () {
|
|
1269
1361
|
function MatDialogModule() {
|
|
@@ -1303,12 +1395,12 @@ var MatDialogModule = /** @class */ (function () {
|
|
|
1303
1395
|
|
|
1304
1396
|
/**
|
|
1305
1397
|
* @fileoverview added by tsickle
|
|
1306
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1398
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1307
1399
|
*/
|
|
1308
1400
|
|
|
1309
1401
|
/**
|
|
1310
1402
|
* @fileoverview added by tsickle
|
|
1311
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1403
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1312
1404
|
*/
|
|
1313
1405
|
|
|
1314
1406
|
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 };
|