@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
|
@@ -53,7 +53,7 @@ var __assign = function() {
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* @fileoverview added by tsickle
|
|
56
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
56
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
57
57
|
*/
|
|
58
58
|
/**
|
|
59
59
|
* Configuration for opening a modal dialog with the MatDialog service.
|
|
@@ -124,13 +124,14 @@ MatDialogConfig = /** @class */ (function () {
|
|
|
124
124
|
* the `HashLocationStrategy`).
|
|
125
125
|
*/
|
|
126
126
|
this.closeOnNavigation = true;
|
|
127
|
+
// TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.
|
|
127
128
|
}
|
|
128
129
|
return MatDialogConfig;
|
|
129
130
|
}());
|
|
130
131
|
|
|
131
132
|
/**
|
|
132
133
|
* @fileoverview added by tsickle
|
|
133
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
134
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
134
135
|
*/
|
|
135
136
|
/** @type {?} */
|
|
136
137
|
var animationBody = [
|
|
@@ -139,27 +140,28 @@ var animationBody = [
|
|
|
139
140
|
// decimate the animation performance. Leaving it as `none` solves both issues.
|
|
140
141
|
animations.state('void, exit', animations.style({ opacity: 0, transform: 'scale(0.7)' })),
|
|
141
142
|
animations.state('enter', animations.style({ transform: 'none' })),
|
|
142
|
-
animations.transition('* => enter', animations.
|
|
143
|
-
// `animateChild` allows for child component to animate at the same time. See #13870.
|
|
144
|
-
animations.query('@*', animations.animateChild(), { optional: true }),
|
|
145
|
-
animations.animate('150ms cubic-bezier(0, 0, 0.2, 1)', animations.style({ transform: 'none', opacity: 1 })),
|
|
146
|
-
])),
|
|
143
|
+
animations.transition('* => enter', animations.animate('150ms cubic-bezier(0, 0, 0.2, 1)', animations.style({ transform: 'none', opacity: 1 }))),
|
|
147
144
|
animations.transition('* => void, * => exit', animations.animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', animations.style({ opacity: 0 }))),
|
|
148
145
|
];
|
|
149
|
-
/**
|
|
146
|
+
/**
|
|
150
147
|
* Animations used by MatDialog.
|
|
151
148
|
* \@docs-private
|
|
152
|
-
|
|
149
|
+
* @type {?}
|
|
150
|
+
*/
|
|
153
151
|
var matDialogAnimations = {
|
|
154
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Animation that is applied on the dialog container by defalt.
|
|
154
|
+
*/
|
|
155
155
|
dialogContainer: animations.trigger('dialogContainer', animationBody),
|
|
156
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated \@breaking-change 8.0.0 Use `matDialogAnimations.dialogContainer` instead.
|
|
158
|
+
*/
|
|
157
159
|
slideDialog: animations.trigger('slideDialog', animationBody)
|
|
158
160
|
};
|
|
159
161
|
|
|
160
162
|
/**
|
|
161
163
|
* @fileoverview added by tsickle
|
|
162
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
164
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
163
165
|
*/
|
|
164
166
|
/**
|
|
165
167
|
* Throws an exception for the case when a ComponentPortal is
|
|
@@ -248,12 +250,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
248
250
|
this._savePreviouslyFocusedElement();
|
|
249
251
|
return this._portalOutlet.attachTemplatePortal(portal$$1);
|
|
250
252
|
};
|
|
253
|
+
/** Moves the focus inside the focus trap. */
|
|
251
254
|
/**
|
|
252
255
|
* Moves the focus inside the focus trap.
|
|
256
|
+
* @private
|
|
253
257
|
* @return {?}
|
|
254
258
|
*/
|
|
255
259
|
MatDialogContainer.prototype._trapFocus = /**
|
|
256
260
|
* Moves the focus inside the focus trap.
|
|
261
|
+
* @private
|
|
257
262
|
* @return {?}
|
|
258
263
|
*/
|
|
259
264
|
function () {
|
|
@@ -267,12 +272,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
267
272
|
this._focusTrap.focusInitialElementWhenReady();
|
|
268
273
|
}
|
|
269
274
|
};
|
|
275
|
+
/** Restores focus to the element that was focused before the dialog opened. */
|
|
270
276
|
/**
|
|
271
277
|
* Restores focus to the element that was focused before the dialog opened.
|
|
278
|
+
* @private
|
|
272
279
|
* @return {?}
|
|
273
280
|
*/
|
|
274
281
|
MatDialogContainer.prototype._restoreFocus = /**
|
|
275
282
|
* Restores focus to the element that was focused before the dialog opened.
|
|
283
|
+
* @private
|
|
276
284
|
* @return {?}
|
|
277
285
|
*/
|
|
278
286
|
function () {
|
|
@@ -286,18 +294,21 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
286
294
|
this._focusTrap.destroy();
|
|
287
295
|
}
|
|
288
296
|
};
|
|
297
|
+
/** Saves a reference to the element that was focused before the dialog was opened. */
|
|
289
298
|
/**
|
|
290
299
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
300
|
+
* @private
|
|
291
301
|
* @return {?}
|
|
292
302
|
*/
|
|
293
303
|
MatDialogContainer.prototype._savePreviouslyFocusedElement = /**
|
|
294
304
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
305
|
+
* @private
|
|
295
306
|
* @return {?}
|
|
296
307
|
*/
|
|
297
308
|
function () {
|
|
298
309
|
var _this = this;
|
|
299
310
|
if (this._document) {
|
|
300
|
-
this._elementFocusedBeforeDialogWasOpened = /** @type {?} */ (this._document.activeElement);
|
|
311
|
+
this._elementFocusedBeforeDialogWasOpened = (/** @type {?} */ (this._document.activeElement));
|
|
301
312
|
// Note that there is no focus method when rendering on the server.
|
|
302
313
|
if (this._elementRef.nativeElement.focus) {
|
|
303
314
|
// Move focus onto the dialog immediately in order to prevent the user from accidentally
|
|
@@ -396,8 +407,10 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
396
407
|
|
|
397
408
|
/**
|
|
398
409
|
* @fileoverview added by tsickle
|
|
399
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
410
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
400
411
|
*/
|
|
412
|
+
// TODO(jelbourn): resizing
|
|
413
|
+
// Counter for unique dialog ids.
|
|
401
414
|
/** @type {?} */
|
|
402
415
|
var uniqueId = 0;
|
|
403
416
|
/**
|
|
@@ -448,7 +461,7 @@ MatDialogRef = /** @class */ (function () {
|
|
|
448
461
|
_this._beforeClosed.complete();
|
|
449
462
|
_this._afterClosed.next(_this._result);
|
|
450
463
|
_this._afterClosed.complete();
|
|
451
|
-
_this.componentInstance = /** @type {?} */ (
|
|
464
|
+
_this.componentInstance = (/** @type {?} */ (null));
|
|
452
465
|
_this._overlayRef.dispose();
|
|
453
466
|
});
|
|
454
467
|
_overlayRef.keydownEvents()
|
|
@@ -557,17 +570,21 @@ MatDialogRef = /** @class */ (function () {
|
|
|
557
570
|
*/
|
|
558
571
|
/**
|
|
559
572
|
* Updates the dialog's position.
|
|
573
|
+
* @template THIS
|
|
574
|
+
* @this {THIS}
|
|
560
575
|
* @param {?=} position New dialog position.
|
|
561
|
-
* @return {
|
|
576
|
+
* @return {THIS}
|
|
562
577
|
*/
|
|
563
578
|
MatDialogRef.prototype.updatePosition = /**
|
|
564
579
|
* Updates the dialog's position.
|
|
580
|
+
* @template THIS
|
|
581
|
+
* @this {THIS}
|
|
565
582
|
* @param {?=} position New dialog position.
|
|
566
|
-
* @return {
|
|
583
|
+
* @return {THIS}
|
|
567
584
|
*/
|
|
568
585
|
function (position) {
|
|
569
586
|
/** @type {?} */
|
|
570
|
-
var strategy = this._getPositionStrategy();
|
|
587
|
+
var strategy = (/** @type {?} */ (this))._getPositionStrategy();
|
|
571
588
|
if (position && (position.left || position.right)) {
|
|
572
589
|
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
573
590
|
}
|
|
@@ -580,8 +597,8 @@ MatDialogRef = /** @class */ (function () {
|
|
|
580
597
|
else {
|
|
581
598
|
strategy.centerVertically();
|
|
582
599
|
}
|
|
583
|
-
this._overlayRef.updatePosition();
|
|
584
|
-
return this;
|
|
600
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
601
|
+
return (/** @type {?} */ (this));
|
|
585
602
|
};
|
|
586
603
|
/**
|
|
587
604
|
* Updates the dialog's width and height.
|
|
@@ -590,22 +607,26 @@ MatDialogRef = /** @class */ (function () {
|
|
|
590
607
|
*/
|
|
591
608
|
/**
|
|
592
609
|
* Updates the dialog's width and height.
|
|
610
|
+
* @template THIS
|
|
611
|
+
* @this {THIS}
|
|
593
612
|
* @param {?=} width New width of the dialog.
|
|
594
613
|
* @param {?=} height New height of the dialog.
|
|
595
|
-
* @return {
|
|
614
|
+
* @return {THIS}
|
|
596
615
|
*/
|
|
597
616
|
MatDialogRef.prototype.updateSize = /**
|
|
598
617
|
* Updates the dialog's width and height.
|
|
618
|
+
* @template THIS
|
|
619
|
+
* @this {THIS}
|
|
599
620
|
* @param {?=} width New width of the dialog.
|
|
600
621
|
* @param {?=} height New height of the dialog.
|
|
601
|
-
* @return {
|
|
622
|
+
* @return {THIS}
|
|
602
623
|
*/
|
|
603
624
|
function (width, height) {
|
|
604
625
|
if (width === void 0) { width = ''; }
|
|
605
626
|
if (height === void 0) { height = ''; }
|
|
606
|
-
this._getPositionStrategy().width(width).height(height);
|
|
607
|
-
this._overlayRef.updatePosition();
|
|
608
|
-
return this;
|
|
627
|
+
(/** @type {?} */ (this))._getPositionStrategy().width(width).height(height);
|
|
628
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
629
|
+
return (/** @type {?} */ (this));
|
|
609
630
|
};
|
|
610
631
|
/**
|
|
611
632
|
* Gets an observable that is notified when the dialog is finished opening.
|
|
@@ -647,35 +668,41 @@ MatDialogRef = /** @class */ (function () {
|
|
|
647
668
|
function () {
|
|
648
669
|
return this.beforeClosed();
|
|
649
670
|
};
|
|
671
|
+
/** Fetches the position strategy object from the overlay ref. */
|
|
650
672
|
/**
|
|
651
673
|
* Fetches the position strategy object from the overlay ref.
|
|
674
|
+
* @private
|
|
652
675
|
* @return {?}
|
|
653
676
|
*/
|
|
654
677
|
MatDialogRef.prototype._getPositionStrategy = /**
|
|
655
678
|
* Fetches the position strategy object from the overlay ref.
|
|
679
|
+
* @private
|
|
656
680
|
* @return {?}
|
|
657
681
|
*/
|
|
658
682
|
function () {
|
|
659
|
-
return /** @type {?} */ (this._overlayRef.getConfig().positionStrategy);
|
|
683
|
+
return (/** @type {?} */ (this._overlayRef.getConfig().positionStrategy));
|
|
660
684
|
};
|
|
661
685
|
return MatDialogRef;
|
|
662
686
|
}());
|
|
663
687
|
|
|
664
688
|
/**
|
|
665
689
|
* @fileoverview added by tsickle
|
|
666
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
690
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
667
691
|
*/
|
|
668
|
-
/**
|
|
692
|
+
/**
|
|
669
693
|
* Injection token that can be used to access the data that was passed in to a dialog.
|
|
670
|
-
|
|
694
|
+
* @type {?}
|
|
695
|
+
*/
|
|
671
696
|
var MAT_DIALOG_DATA = new core.InjectionToken('MatDialogData');
|
|
672
|
-
/**
|
|
697
|
+
/**
|
|
673
698
|
* Injection token that can be used to specify default dialog options.
|
|
674
|
-
|
|
699
|
+
* @type {?}
|
|
700
|
+
*/
|
|
675
701
|
var MAT_DIALOG_DEFAULT_OPTIONS = new core.InjectionToken('mat-dialog-default-options');
|
|
676
|
-
/**
|
|
702
|
+
/**
|
|
677
703
|
* Injection token that determines the scroll handling while the dialog is open.
|
|
678
|
-
|
|
704
|
+
* @type {?}
|
|
705
|
+
*/
|
|
679
706
|
var MAT_DIALOG_SCROLL_STRATEGY = new core.InjectionToken('mat-dialog-scroll-strategy');
|
|
680
707
|
/**
|
|
681
708
|
* \@docs-private
|
|
@@ -693,9 +720,10 @@ function MAT_DIALOG_SCROLL_STRATEGY_FACTORY(overlay$$1) {
|
|
|
693
720
|
function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay$$1) {
|
|
694
721
|
return function () { return overlay$$1.scrollStrategies.block(); };
|
|
695
722
|
}
|
|
696
|
-
/**
|
|
723
|
+
/**
|
|
697
724
|
* \@docs-private
|
|
698
|
-
|
|
725
|
+
* @type {?}
|
|
726
|
+
*/
|
|
699
727
|
var MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
700
728
|
provide: MAT_DIALOG_SCROLL_STRATEGY,
|
|
701
729
|
deps: [overlay.Overlay],
|
|
@@ -868,11 +896,18 @@ var MatDialog = /** @class */ (function () {
|
|
|
868
896
|
};
|
|
869
897
|
/**
|
|
870
898
|
* Creates the overlay into which the dialog will be loaded.
|
|
899
|
+
* @param config The dialog configuration.
|
|
900
|
+
* @returns A promise resolving to the OverlayRef for the created overlay.
|
|
901
|
+
*/
|
|
902
|
+
/**
|
|
903
|
+
* Creates the overlay into which the dialog will be loaded.
|
|
904
|
+
* @private
|
|
871
905
|
* @param {?} config The dialog configuration.
|
|
872
906
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
873
907
|
*/
|
|
874
908
|
MatDialog.prototype._createOverlay = /**
|
|
875
909
|
* Creates the overlay into which the dialog will be loaded.
|
|
910
|
+
* @private
|
|
876
911
|
* @param {?} config The dialog configuration.
|
|
877
912
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
878
913
|
*/
|
|
@@ -883,11 +918,18 @@ var MatDialog = /** @class */ (function () {
|
|
|
883
918
|
};
|
|
884
919
|
/**
|
|
885
920
|
* Creates an overlay config from a dialog config.
|
|
921
|
+
* @param dialogConfig The dialog configuration.
|
|
922
|
+
* @returns The overlay configuration.
|
|
923
|
+
*/
|
|
924
|
+
/**
|
|
925
|
+
* Creates an overlay config from a dialog config.
|
|
926
|
+
* @private
|
|
886
927
|
* @param {?} dialogConfig The dialog configuration.
|
|
887
928
|
* @return {?} The overlay configuration.
|
|
888
929
|
*/
|
|
889
930
|
MatDialog.prototype._getOverlayConfig = /**
|
|
890
931
|
* Creates an overlay config from a dialog config.
|
|
932
|
+
* @private
|
|
891
933
|
* @param {?} dialogConfig The dialog configuration.
|
|
892
934
|
* @return {?} The overlay configuration.
|
|
893
935
|
*/
|
|
@@ -912,12 +954,20 @@ var MatDialog = /** @class */ (function () {
|
|
|
912
954
|
};
|
|
913
955
|
/**
|
|
914
956
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
957
|
+
* @param overlay Reference to the dialog's underlying overlay.
|
|
958
|
+
* @param config The dialog configuration.
|
|
959
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
960
|
+
*/
|
|
961
|
+
/**
|
|
962
|
+
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
963
|
+
* @private
|
|
915
964
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
916
965
|
* @param {?} config The dialog configuration.
|
|
917
966
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
918
967
|
*/
|
|
919
968
|
MatDialog.prototype._attachDialogContainer = /**
|
|
920
969
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
970
|
+
* @private
|
|
921
971
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
922
972
|
* @param {?} config The dialog configuration.
|
|
923
973
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
@@ -937,6 +987,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
937
987
|
};
|
|
938
988
|
/**
|
|
939
989
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
990
|
+
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
991
|
+
* or a TemplateRef to instantiate as the content.
|
|
992
|
+
* @param dialogContainer Reference to the wrapping MatDialogContainer.
|
|
993
|
+
* @param overlayRef Reference to the overlay in which the dialog resides.
|
|
994
|
+
* @param config The dialog configuration.
|
|
995
|
+
* @returns A promise resolving to the MatDialogRef that should be returned to the user.
|
|
996
|
+
*/
|
|
997
|
+
/**
|
|
998
|
+
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
999
|
+
* @private
|
|
940
1000
|
* @template T, R
|
|
941
1001
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
942
1002
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -947,6 +1007,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
947
1007
|
*/
|
|
948
1008
|
MatDialog.prototype._attachDialogContent = /**
|
|
949
1009
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
1010
|
+
* @private
|
|
950
1011
|
* @template T, R
|
|
951
1012
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
952
1013
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -956,6 +1017,8 @@ var MatDialog = /** @class */ (function () {
|
|
|
956
1017
|
* @return {?} A promise resolving to the MatDialogRef that should be returned to the user.
|
|
957
1018
|
*/
|
|
958
1019
|
function (componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
1020
|
+
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
1021
|
+
// to modify and close it.
|
|
959
1022
|
/** @type {?} */
|
|
960
1023
|
var dialogRef = new MatDialogRef(overlayRef, dialogContainer, this._location, config.id);
|
|
961
1024
|
// When the dialog backdrop is clicked, we want to close it.
|
|
@@ -967,7 +1030,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
967
1030
|
});
|
|
968
1031
|
}
|
|
969
1032
|
if (componentOrTemplateRef instanceof core.TemplateRef) {
|
|
970
|
-
dialogContainer.attachTemplatePortal(new portal.TemplatePortal(componentOrTemplateRef, /** @type {?} */ (
|
|
1033
|
+
dialogContainer.attachTemplatePortal(new portal.TemplatePortal(componentOrTemplateRef, (/** @type {?} */ (null)), (/** @type {?} */ ({ $implicit: config.data, dialogRef: dialogRef }))));
|
|
971
1034
|
}
|
|
972
1035
|
else {
|
|
973
1036
|
/** @type {?} */
|
|
@@ -984,6 +1047,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
984
1047
|
/**
|
|
985
1048
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
986
1049
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1050
|
+
* @param config Config object that is used to construct the dialog.
|
|
1051
|
+
* @param dialogRef Reference to the dialog.
|
|
1052
|
+
* @param container Dialog container element that wraps all of the contents.
|
|
1053
|
+
* @returns The custom injector that can be used inside the dialog.
|
|
1054
|
+
*/
|
|
1055
|
+
/**
|
|
1056
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
1057
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
1058
|
+
* @private
|
|
987
1059
|
* @template T
|
|
988
1060
|
* @param {?} config Config object that is used to construct the dialog.
|
|
989
1061
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -993,6 +1065,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
993
1065
|
MatDialog.prototype._createInjector = /**
|
|
994
1066
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
995
1067
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1068
|
+
* @private
|
|
996
1069
|
* @template T
|
|
997
1070
|
* @param {?} config Config object that is used to construct the dialog.
|
|
998
1071
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -1002,6 +1075,10 @@ var MatDialog = /** @class */ (function () {
|
|
|
1002
1075
|
function (config, dialogRef, dialogContainer) {
|
|
1003
1076
|
/** @type {?} */
|
|
1004
1077
|
var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
1078
|
+
// The MatDialogContainer is injected in the portal as the MatDialogContainer and the dialog's
|
|
1079
|
+
// content are created out of the same ViewContainerRef and as such, are siblings for injector
|
|
1080
|
+
// purposes. To allow the hierarchy that is expected, the MatDialogContainer is explicitly
|
|
1081
|
+
// added to the injection tokens.
|
|
1005
1082
|
/** @type {?} */
|
|
1006
1083
|
var injectionTokens = new WeakMap([
|
|
1007
1084
|
[MatDialogContainer, dialogContainer],
|
|
@@ -1019,11 +1096,17 @@ var MatDialog = /** @class */ (function () {
|
|
|
1019
1096
|
};
|
|
1020
1097
|
/**
|
|
1021
1098
|
* Removes a dialog from the array of open dialogs.
|
|
1099
|
+
* @param dialogRef Dialog to be removed.
|
|
1100
|
+
*/
|
|
1101
|
+
/**
|
|
1102
|
+
* Removes a dialog from the array of open dialogs.
|
|
1103
|
+
* @private
|
|
1022
1104
|
* @param {?} dialogRef Dialog to be removed.
|
|
1023
1105
|
* @return {?}
|
|
1024
1106
|
*/
|
|
1025
1107
|
MatDialog.prototype._removeOpenDialog = /**
|
|
1026
1108
|
* Removes a dialog from the array of open dialogs.
|
|
1109
|
+
* @private
|
|
1027
1110
|
* @param {?} dialogRef Dialog to be removed.
|
|
1028
1111
|
* @return {?}
|
|
1029
1112
|
*/
|
|
@@ -1050,10 +1133,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
1050
1133
|
};
|
|
1051
1134
|
/**
|
|
1052
1135
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1136
|
+
*/
|
|
1137
|
+
/**
|
|
1138
|
+
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1139
|
+
* @private
|
|
1053
1140
|
* @return {?}
|
|
1054
1141
|
*/
|
|
1055
1142
|
MatDialog.prototype._hideNonDialogContentFromAssistiveTechnology = /**
|
|
1056
1143
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1144
|
+
* @private
|
|
1057
1145
|
* @return {?}
|
|
1058
1146
|
*/
|
|
1059
1147
|
function () {
|
|
@@ -1076,13 +1164,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
1076
1164
|
}
|
|
1077
1165
|
}
|
|
1078
1166
|
};
|
|
1167
|
+
/** Closes all of the dialogs in an array. */
|
|
1079
1168
|
/**
|
|
1080
1169
|
* Closes all of the dialogs in an array.
|
|
1170
|
+
* @private
|
|
1081
1171
|
* @param {?} dialogs
|
|
1082
1172
|
* @return {?}
|
|
1083
1173
|
*/
|
|
1084
1174
|
MatDialog.prototype._closeDialogs = /**
|
|
1085
1175
|
* Closes all of the dialogs in an array.
|
|
1176
|
+
* @private
|
|
1086
1177
|
* @param {?} dialogs
|
|
1087
1178
|
* @return {?}
|
|
1088
1179
|
*/
|
|
@@ -1124,11 +1215,12 @@ function _applyConfigDefaults(config, defaultOptions) {
|
|
|
1124
1215
|
|
|
1125
1216
|
/**
|
|
1126
1217
|
* @fileoverview added by tsickle
|
|
1127
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1218
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1128
1219
|
*/
|
|
1129
|
-
/**
|
|
1220
|
+
/**
|
|
1130
1221
|
* Counter used to generate unique IDs for dialog elements.
|
|
1131
|
-
|
|
1222
|
+
* @type {?}
|
|
1223
|
+
*/
|
|
1132
1224
|
var dialogElementUid = 0;
|
|
1133
1225
|
/**
|
|
1134
1226
|
* Button that will close the current dialog.
|
|
@@ -1156,7 +1248,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1156
1248
|
// views cannot be given a custom injector. Instead, we look up the DialogRef by
|
|
1157
1249
|
// ID. This must occur in `onInit`, as the ID binding for the dialog container won't
|
|
1158
1250
|
// be resolved at constructor time.
|
|
1159
|
-
this.dialogRef = /** @type {?} */ (
|
|
1251
|
+
this.dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1160
1252
|
}
|
|
1161
1253
|
};
|
|
1162
1254
|
/**
|
|
@@ -1169,7 +1261,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1169
1261
|
*/
|
|
1170
1262
|
function (changes) {
|
|
1171
1263
|
/** @type {?} */
|
|
1172
|
-
var proxiedChange = changes
|
|
1264
|
+
var proxiedChange = changes._matDialogClose || changes._matDialogCloseResult;
|
|
1173
1265
|
if (proxiedChange) {
|
|
1174
1266
|
this.dialogResult = proxiedChange.currentValue;
|
|
1175
1267
|
}
|
|
@@ -1217,7 +1309,7 @@ var MatDialogTitle = /** @class */ (function () {
|
|
|
1217
1309
|
function () {
|
|
1218
1310
|
var _this = this;
|
|
1219
1311
|
if (!this._dialogRef) {
|
|
1220
|
-
this._dialogRef = /** @type {?} */ (
|
|
1312
|
+
this._dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1221
1313
|
}
|
|
1222
1314
|
if (this._dialogRef) {
|
|
1223
1315
|
Promise.resolve().then(function () {
|
|
@@ -1291,12 +1383,12 @@ function getClosestDialog(element, openDialogs) {
|
|
|
1291
1383
|
while (parent && !parent.classList.contains('mat-dialog-container')) {
|
|
1292
1384
|
parent = parent.parentElement;
|
|
1293
1385
|
}
|
|
1294
|
-
return parent ? openDialogs.find(function (dialog) { return dialog.id === /** @type {?} */ (
|
|
1386
|
+
return parent ? openDialogs.find(function (dialog) { return dialog.id === (/** @type {?} */ (parent)).id; }) : null;
|
|
1295
1387
|
}
|
|
1296
1388
|
|
|
1297
1389
|
/**
|
|
1298
1390
|
* @fileoverview added by tsickle
|
|
1299
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1391
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1300
1392
|
*/
|
|
1301
1393
|
var MatDialogModule = /** @class */ (function () {
|
|
1302
1394
|
function MatDialogModule() {
|