@angular/material 7.0.4 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/_theming.scss +61 -44
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +126 -32
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +68 -21
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +36 -13
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +124 -34
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +189 -126
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +231 -53
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +53 -27
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +121 -32
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +66 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +277 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +69 -21
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +171 -66
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +31 -12
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +189 -51
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +30 -14
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +91 -21
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +71 -19
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -35
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +29 -9
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +170 -68
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +53 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2853 -1010
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +60 -29
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +45 -22
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +20 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +148 -129
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +124 -41
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +58 -31
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +94 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +136 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +47 -22
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +109 -63
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +116 -53
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +54 -24
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +41 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -32
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -11
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +113 -53
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +43 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +128 -34
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +70 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +38 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +233 -55
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +56 -31
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +125 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +279 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +72 -24
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +170 -65
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +193 -55
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +94 -24
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +73 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -38
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -11
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +162 -61
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +55 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
|
@@ -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 = [
|
|
@@ -142,20 +143,25 @@ var animationBody = [
|
|
|
142
143
|
animations.transition('* => enter', animations.animate('150ms cubic-bezier(0, 0, 0.2, 1)', animations.style({ transform: 'none', opacity: 1 }))),
|
|
143
144
|
animations.transition('* => void, * => exit', animations.animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', animations.style({ opacity: 0 }))),
|
|
144
145
|
];
|
|
145
|
-
/**
|
|
146
|
+
/**
|
|
146
147
|
* Animations used by MatDialog.
|
|
147
148
|
* \@docs-private
|
|
148
|
-
|
|
149
|
+
* @type {?}
|
|
150
|
+
*/
|
|
149
151
|
var matDialogAnimations = {
|
|
150
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Animation that is applied on the dialog container by defalt.
|
|
154
|
+
*/
|
|
151
155
|
dialogContainer: animations.trigger('dialogContainer', animationBody),
|
|
152
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated \@breaking-change 8.0.0 Use `matDialogAnimations.dialogContainer` instead.
|
|
158
|
+
*/
|
|
153
159
|
slideDialog: animations.trigger('slideDialog', animationBody)
|
|
154
160
|
};
|
|
155
161
|
|
|
156
162
|
/**
|
|
157
163
|
* @fileoverview added by tsickle
|
|
158
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
164
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
159
165
|
*/
|
|
160
166
|
/**
|
|
161
167
|
* Throws an exception for the case when a ComponentPortal is
|
|
@@ -244,12 +250,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
244
250
|
this._savePreviouslyFocusedElement();
|
|
245
251
|
return this._portalOutlet.attachTemplatePortal(portal$$1);
|
|
246
252
|
};
|
|
253
|
+
/** Moves the focus inside the focus trap. */
|
|
247
254
|
/**
|
|
248
255
|
* Moves the focus inside the focus trap.
|
|
256
|
+
* @private
|
|
249
257
|
* @return {?}
|
|
250
258
|
*/
|
|
251
259
|
MatDialogContainer.prototype._trapFocus = /**
|
|
252
260
|
* Moves the focus inside the focus trap.
|
|
261
|
+
* @private
|
|
253
262
|
* @return {?}
|
|
254
263
|
*/
|
|
255
264
|
function () {
|
|
@@ -263,12 +272,15 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
263
272
|
this._focusTrap.focusInitialElementWhenReady();
|
|
264
273
|
}
|
|
265
274
|
};
|
|
275
|
+
/** Restores focus to the element that was focused before the dialog opened. */
|
|
266
276
|
/**
|
|
267
277
|
* Restores focus to the element that was focused before the dialog opened.
|
|
278
|
+
* @private
|
|
268
279
|
* @return {?}
|
|
269
280
|
*/
|
|
270
281
|
MatDialogContainer.prototype._restoreFocus = /**
|
|
271
282
|
* Restores focus to the element that was focused before the dialog opened.
|
|
283
|
+
* @private
|
|
272
284
|
* @return {?}
|
|
273
285
|
*/
|
|
274
286
|
function () {
|
|
@@ -282,18 +294,21 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
282
294
|
this._focusTrap.destroy();
|
|
283
295
|
}
|
|
284
296
|
};
|
|
297
|
+
/** Saves a reference to the element that was focused before the dialog was opened. */
|
|
285
298
|
/**
|
|
286
299
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
300
|
+
* @private
|
|
287
301
|
* @return {?}
|
|
288
302
|
*/
|
|
289
303
|
MatDialogContainer.prototype._savePreviouslyFocusedElement = /**
|
|
290
304
|
* Saves a reference to the element that was focused before the dialog was opened.
|
|
305
|
+
* @private
|
|
291
306
|
* @return {?}
|
|
292
307
|
*/
|
|
293
308
|
function () {
|
|
294
309
|
var _this = this;
|
|
295
310
|
if (this._document) {
|
|
296
|
-
this._elementFocusedBeforeDialogWasOpened = /** @type {?} */ (this._document.activeElement);
|
|
311
|
+
this._elementFocusedBeforeDialogWasOpened = (/** @type {?} */ (this._document.activeElement));
|
|
297
312
|
// Note that there is no focus method when rendering on the server.
|
|
298
313
|
if (this._elementRef.nativeElement.focus) {
|
|
299
314
|
// Move focus onto the dialog immediately in order to prevent the user from accidentally
|
|
@@ -355,7 +370,7 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
355
370
|
MatDialogContainer.decorators = [
|
|
356
371
|
{ type: core.Component, args: [{selector: 'mat-dialog-container',
|
|
357
372
|
template: "<ng-template cdkPortalOutlet></ng-template>",
|
|
358
|
-
styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media
|
|
373
|
+
styles: [".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],
|
|
359
374
|
encapsulation: core.ViewEncapsulation.None,
|
|
360
375
|
// Using OnPush for dialogs caused some G3 sync issues. Disabled until we can track them down.
|
|
361
376
|
// tslint:disable-next-line:validate-decorators
|
|
@@ -392,8 +407,10 @@ var MatDialogContainer = /** @class */ (function (_super) {
|
|
|
392
407
|
|
|
393
408
|
/**
|
|
394
409
|
* @fileoverview added by tsickle
|
|
395
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
410
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
396
411
|
*/
|
|
412
|
+
// TODO(jelbourn): resizing
|
|
413
|
+
// Counter for unique dialog ids.
|
|
397
414
|
/** @type {?} */
|
|
398
415
|
var uniqueId = 0;
|
|
399
416
|
/**
|
|
@@ -444,7 +461,7 @@ MatDialogRef = /** @class */ (function () {
|
|
|
444
461
|
_this._beforeClosed.complete();
|
|
445
462
|
_this._afterClosed.next(_this._result);
|
|
446
463
|
_this._afterClosed.complete();
|
|
447
|
-
_this.componentInstance = /** @type {?} */ (
|
|
464
|
+
_this.componentInstance = (/** @type {?} */ (null));
|
|
448
465
|
_this._overlayRef.dispose();
|
|
449
466
|
});
|
|
450
467
|
_overlayRef.keydownEvents()
|
|
@@ -553,17 +570,21 @@ MatDialogRef = /** @class */ (function () {
|
|
|
553
570
|
*/
|
|
554
571
|
/**
|
|
555
572
|
* Updates the dialog's position.
|
|
573
|
+
* @template THIS
|
|
574
|
+
* @this {THIS}
|
|
556
575
|
* @param {?=} position New dialog position.
|
|
557
|
-
* @return {
|
|
576
|
+
* @return {THIS}
|
|
558
577
|
*/
|
|
559
578
|
MatDialogRef.prototype.updatePosition = /**
|
|
560
579
|
* Updates the dialog's position.
|
|
580
|
+
* @template THIS
|
|
581
|
+
* @this {THIS}
|
|
561
582
|
* @param {?=} position New dialog position.
|
|
562
|
-
* @return {
|
|
583
|
+
* @return {THIS}
|
|
563
584
|
*/
|
|
564
585
|
function (position) {
|
|
565
586
|
/** @type {?} */
|
|
566
|
-
var strategy = this._getPositionStrategy();
|
|
587
|
+
var strategy = (/** @type {?} */ (this))._getPositionStrategy();
|
|
567
588
|
if (position && (position.left || position.right)) {
|
|
568
589
|
position.left ? strategy.left(position.left) : strategy.right(position.right);
|
|
569
590
|
}
|
|
@@ -576,8 +597,8 @@ MatDialogRef = /** @class */ (function () {
|
|
|
576
597
|
else {
|
|
577
598
|
strategy.centerVertically();
|
|
578
599
|
}
|
|
579
|
-
this._overlayRef.updatePosition();
|
|
580
|
-
return this;
|
|
600
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
601
|
+
return (/** @type {?} */ (this));
|
|
581
602
|
};
|
|
582
603
|
/**
|
|
583
604
|
* Updates the dialog's width and height.
|
|
@@ -586,22 +607,26 @@ MatDialogRef = /** @class */ (function () {
|
|
|
586
607
|
*/
|
|
587
608
|
/**
|
|
588
609
|
* Updates the dialog's width and height.
|
|
610
|
+
* @template THIS
|
|
611
|
+
* @this {THIS}
|
|
589
612
|
* @param {?=} width New width of the dialog.
|
|
590
613
|
* @param {?=} height New height of the dialog.
|
|
591
|
-
* @return {
|
|
614
|
+
* @return {THIS}
|
|
592
615
|
*/
|
|
593
616
|
MatDialogRef.prototype.updateSize = /**
|
|
594
617
|
* Updates the dialog's width and height.
|
|
618
|
+
* @template THIS
|
|
619
|
+
* @this {THIS}
|
|
595
620
|
* @param {?=} width New width of the dialog.
|
|
596
621
|
* @param {?=} height New height of the dialog.
|
|
597
|
-
* @return {
|
|
622
|
+
* @return {THIS}
|
|
598
623
|
*/
|
|
599
624
|
function (width, height) {
|
|
600
625
|
if (width === void 0) { width = ''; }
|
|
601
626
|
if (height === void 0) { height = ''; }
|
|
602
|
-
this._getPositionStrategy().width(width).height(height);
|
|
603
|
-
this._overlayRef.updatePosition();
|
|
604
|
-
return this;
|
|
627
|
+
(/** @type {?} */ (this))._getPositionStrategy().width(width).height(height);
|
|
628
|
+
(/** @type {?} */ (this))._overlayRef.updatePosition();
|
|
629
|
+
return (/** @type {?} */ (this));
|
|
605
630
|
};
|
|
606
631
|
/**
|
|
607
632
|
* Gets an observable that is notified when the dialog is finished opening.
|
|
@@ -643,35 +668,41 @@ MatDialogRef = /** @class */ (function () {
|
|
|
643
668
|
function () {
|
|
644
669
|
return this.beforeClosed();
|
|
645
670
|
};
|
|
671
|
+
/** Fetches the position strategy object from the overlay ref. */
|
|
646
672
|
/**
|
|
647
673
|
* Fetches the position strategy object from the overlay ref.
|
|
674
|
+
* @private
|
|
648
675
|
* @return {?}
|
|
649
676
|
*/
|
|
650
677
|
MatDialogRef.prototype._getPositionStrategy = /**
|
|
651
678
|
* Fetches the position strategy object from the overlay ref.
|
|
679
|
+
* @private
|
|
652
680
|
* @return {?}
|
|
653
681
|
*/
|
|
654
682
|
function () {
|
|
655
|
-
return /** @type {?} */ (this._overlayRef.getConfig().positionStrategy);
|
|
683
|
+
return (/** @type {?} */ (this._overlayRef.getConfig().positionStrategy));
|
|
656
684
|
};
|
|
657
685
|
return MatDialogRef;
|
|
658
686
|
}());
|
|
659
687
|
|
|
660
688
|
/**
|
|
661
689
|
* @fileoverview added by tsickle
|
|
662
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
690
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
663
691
|
*/
|
|
664
|
-
/**
|
|
692
|
+
/**
|
|
665
693
|
* Injection token that can be used to access the data that was passed in to a dialog.
|
|
666
|
-
|
|
694
|
+
* @type {?}
|
|
695
|
+
*/
|
|
667
696
|
var MAT_DIALOG_DATA = new core.InjectionToken('MatDialogData');
|
|
668
|
-
/**
|
|
697
|
+
/**
|
|
669
698
|
* Injection token that can be used to specify default dialog options.
|
|
670
|
-
|
|
699
|
+
* @type {?}
|
|
700
|
+
*/
|
|
671
701
|
var MAT_DIALOG_DEFAULT_OPTIONS = new core.InjectionToken('mat-dialog-default-options');
|
|
672
|
-
/**
|
|
702
|
+
/**
|
|
673
703
|
* Injection token that determines the scroll handling while the dialog is open.
|
|
674
|
-
|
|
704
|
+
* @type {?}
|
|
705
|
+
*/
|
|
675
706
|
var MAT_DIALOG_SCROLL_STRATEGY = new core.InjectionToken('mat-dialog-scroll-strategy');
|
|
676
707
|
/**
|
|
677
708
|
* \@docs-private
|
|
@@ -689,9 +720,10 @@ function MAT_DIALOG_SCROLL_STRATEGY_FACTORY(overlay$$1) {
|
|
|
689
720
|
function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay$$1) {
|
|
690
721
|
return function () { return overlay$$1.scrollStrategies.block(); };
|
|
691
722
|
}
|
|
692
|
-
/**
|
|
723
|
+
/**
|
|
693
724
|
* \@docs-private
|
|
694
|
-
|
|
725
|
+
* @type {?}
|
|
726
|
+
*/
|
|
695
727
|
var MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
|
|
696
728
|
provide: MAT_DIALOG_SCROLL_STRATEGY,
|
|
697
729
|
deps: [overlay.Overlay],
|
|
@@ -861,14 +893,23 @@ var MatDialog = /** @class */ (function () {
|
|
|
861
893
|
// Only close the dialogs at this level on destroy
|
|
862
894
|
// since the parent service may still be active.
|
|
863
895
|
this._closeDialogs(this._openDialogsAtThisLevel);
|
|
896
|
+
this._afterAllClosedAtThisLevel.complete();
|
|
897
|
+
this._afterOpenedAtThisLevel.complete();
|
|
864
898
|
};
|
|
865
899
|
/**
|
|
866
900
|
* Creates the overlay into which the dialog will be loaded.
|
|
901
|
+
* @param config The dialog configuration.
|
|
902
|
+
* @returns A promise resolving to the OverlayRef for the created overlay.
|
|
903
|
+
*/
|
|
904
|
+
/**
|
|
905
|
+
* Creates the overlay into which the dialog will be loaded.
|
|
906
|
+
* @private
|
|
867
907
|
* @param {?} config The dialog configuration.
|
|
868
908
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
869
909
|
*/
|
|
870
910
|
MatDialog.prototype._createOverlay = /**
|
|
871
911
|
* Creates the overlay into which the dialog will be loaded.
|
|
912
|
+
* @private
|
|
872
913
|
* @param {?} config The dialog configuration.
|
|
873
914
|
* @return {?} A promise resolving to the OverlayRef for the created overlay.
|
|
874
915
|
*/
|
|
@@ -879,11 +920,18 @@ var MatDialog = /** @class */ (function () {
|
|
|
879
920
|
};
|
|
880
921
|
/**
|
|
881
922
|
* Creates an overlay config from a dialog config.
|
|
923
|
+
* @param dialogConfig The dialog configuration.
|
|
924
|
+
* @returns The overlay configuration.
|
|
925
|
+
*/
|
|
926
|
+
/**
|
|
927
|
+
* Creates an overlay config from a dialog config.
|
|
928
|
+
* @private
|
|
882
929
|
* @param {?} dialogConfig The dialog configuration.
|
|
883
930
|
* @return {?} The overlay configuration.
|
|
884
931
|
*/
|
|
885
932
|
MatDialog.prototype._getOverlayConfig = /**
|
|
886
933
|
* Creates an overlay config from a dialog config.
|
|
934
|
+
* @private
|
|
887
935
|
* @param {?} dialogConfig The dialog configuration.
|
|
888
936
|
* @return {?} The overlay configuration.
|
|
889
937
|
*/
|
|
@@ -908,12 +956,20 @@ var MatDialog = /** @class */ (function () {
|
|
|
908
956
|
};
|
|
909
957
|
/**
|
|
910
958
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
959
|
+
* @param overlay Reference to the dialog's underlying overlay.
|
|
960
|
+
* @param config The dialog configuration.
|
|
961
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
|
962
|
+
*/
|
|
963
|
+
/**
|
|
964
|
+
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
965
|
+
* @private
|
|
911
966
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
912
967
|
* @param {?} config The dialog configuration.
|
|
913
968
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
914
969
|
*/
|
|
915
970
|
MatDialog.prototype._attachDialogContainer = /**
|
|
916
971
|
* Attaches an MatDialogContainer to a dialog's already-created overlay.
|
|
972
|
+
* @private
|
|
917
973
|
* @param {?} overlay Reference to the dialog's underlying overlay.
|
|
918
974
|
* @param {?} config The dialog configuration.
|
|
919
975
|
* @return {?} A promise resolving to a ComponentRef for the attached container.
|
|
@@ -933,6 +989,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
933
989
|
};
|
|
934
990
|
/**
|
|
935
991
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
992
|
+
* @param componentOrTemplateRef The type of component being loaded into the dialog,
|
|
993
|
+
* or a TemplateRef to instantiate as the content.
|
|
994
|
+
* @param dialogContainer Reference to the wrapping MatDialogContainer.
|
|
995
|
+
* @param overlayRef Reference to the overlay in which the dialog resides.
|
|
996
|
+
* @param config The dialog configuration.
|
|
997
|
+
* @returns A promise resolving to the MatDialogRef that should be returned to the user.
|
|
998
|
+
*/
|
|
999
|
+
/**
|
|
1000
|
+
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
1001
|
+
* @private
|
|
936
1002
|
* @template T, R
|
|
937
1003
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
938
1004
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -943,6 +1009,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
943
1009
|
*/
|
|
944
1010
|
MatDialog.prototype._attachDialogContent = /**
|
|
945
1011
|
* Attaches the user-provided component to the already-created MatDialogContainer.
|
|
1012
|
+
* @private
|
|
946
1013
|
* @template T, R
|
|
947
1014
|
* @param {?} componentOrTemplateRef The type of component being loaded into the dialog,
|
|
948
1015
|
* or a TemplateRef to instantiate as the content.
|
|
@@ -952,6 +1019,8 @@ var MatDialog = /** @class */ (function () {
|
|
|
952
1019
|
* @return {?} A promise resolving to the MatDialogRef that should be returned to the user.
|
|
953
1020
|
*/
|
|
954
1021
|
function (componentOrTemplateRef, dialogContainer, overlayRef, config) {
|
|
1022
|
+
// Create a reference to the dialog we're creating in order to give the user a handle
|
|
1023
|
+
// to modify and close it.
|
|
955
1024
|
/** @type {?} */
|
|
956
1025
|
var dialogRef = new MatDialogRef(overlayRef, dialogContainer, this._location, config.id);
|
|
957
1026
|
// When the dialog backdrop is clicked, we want to close it.
|
|
@@ -963,7 +1032,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
963
1032
|
});
|
|
964
1033
|
}
|
|
965
1034
|
if (componentOrTemplateRef instanceof core.TemplateRef) {
|
|
966
|
-
dialogContainer.attachTemplatePortal(new portal.TemplatePortal(componentOrTemplateRef, /** @type {?} */ (
|
|
1035
|
+
dialogContainer.attachTemplatePortal(new portal.TemplatePortal(componentOrTemplateRef, (/** @type {?} */ (null)), (/** @type {?} */ ({ $implicit: config.data, dialogRef: dialogRef }))));
|
|
967
1036
|
}
|
|
968
1037
|
else {
|
|
969
1038
|
/** @type {?} */
|
|
@@ -980,6 +1049,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
980
1049
|
/**
|
|
981
1050
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
982
1051
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1052
|
+
* @param config Config object that is used to construct the dialog.
|
|
1053
|
+
* @param dialogRef Reference to the dialog.
|
|
1054
|
+
* @param container Dialog container element that wraps all of the contents.
|
|
1055
|
+
* @returns The custom injector that can be used inside the dialog.
|
|
1056
|
+
*/
|
|
1057
|
+
/**
|
|
1058
|
+
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
1059
|
+
* of a dialog to close itself and, optionally, to return a value.
|
|
1060
|
+
* @private
|
|
983
1061
|
* @template T
|
|
984
1062
|
* @param {?} config Config object that is used to construct the dialog.
|
|
985
1063
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -989,6 +1067,7 @@ var MatDialog = /** @class */ (function () {
|
|
|
989
1067
|
MatDialog.prototype._createInjector = /**
|
|
990
1068
|
* Creates a custom injector to be used inside the dialog. This allows a component loaded inside
|
|
991
1069
|
* of a dialog to close itself and, optionally, to return a value.
|
|
1070
|
+
* @private
|
|
992
1071
|
* @template T
|
|
993
1072
|
* @param {?} config Config object that is used to construct the dialog.
|
|
994
1073
|
* @param {?} dialogRef Reference to the dialog.
|
|
@@ -998,6 +1077,10 @@ var MatDialog = /** @class */ (function () {
|
|
|
998
1077
|
function (config, dialogRef, dialogContainer) {
|
|
999
1078
|
/** @type {?} */
|
|
1000
1079
|
var userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
1080
|
+
// The MatDialogContainer is injected in the portal as the MatDialogContainer and the dialog's
|
|
1081
|
+
// content are created out of the same ViewContainerRef and as such, are siblings for injector
|
|
1082
|
+
// purposes. To allow the hierarchy that is expected, the MatDialogContainer is explicitly
|
|
1083
|
+
// added to the injection tokens.
|
|
1001
1084
|
/** @type {?} */
|
|
1002
1085
|
var injectionTokens = new WeakMap([
|
|
1003
1086
|
[MatDialogContainer, dialogContainer],
|
|
@@ -1015,11 +1098,17 @@ var MatDialog = /** @class */ (function () {
|
|
|
1015
1098
|
};
|
|
1016
1099
|
/**
|
|
1017
1100
|
* Removes a dialog from the array of open dialogs.
|
|
1101
|
+
* @param dialogRef Dialog to be removed.
|
|
1102
|
+
*/
|
|
1103
|
+
/**
|
|
1104
|
+
* Removes a dialog from the array of open dialogs.
|
|
1105
|
+
* @private
|
|
1018
1106
|
* @param {?} dialogRef Dialog to be removed.
|
|
1019
1107
|
* @return {?}
|
|
1020
1108
|
*/
|
|
1021
1109
|
MatDialog.prototype._removeOpenDialog = /**
|
|
1022
1110
|
* Removes a dialog from the array of open dialogs.
|
|
1111
|
+
* @private
|
|
1023
1112
|
* @param {?} dialogRef Dialog to be removed.
|
|
1024
1113
|
* @return {?}
|
|
1025
1114
|
*/
|
|
@@ -1046,10 +1135,15 @@ var MatDialog = /** @class */ (function () {
|
|
|
1046
1135
|
};
|
|
1047
1136
|
/**
|
|
1048
1137
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1138
|
+
*/
|
|
1139
|
+
/**
|
|
1140
|
+
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1141
|
+
* @private
|
|
1049
1142
|
* @return {?}
|
|
1050
1143
|
*/
|
|
1051
1144
|
MatDialog.prototype._hideNonDialogContentFromAssistiveTechnology = /**
|
|
1052
1145
|
* Hides all of the content that isn't an overlay from assistive technology.
|
|
1146
|
+
* @private
|
|
1053
1147
|
* @return {?}
|
|
1054
1148
|
*/
|
|
1055
1149
|
function () {
|
|
@@ -1072,13 +1166,16 @@ var MatDialog = /** @class */ (function () {
|
|
|
1072
1166
|
}
|
|
1073
1167
|
}
|
|
1074
1168
|
};
|
|
1169
|
+
/** Closes all of the dialogs in an array. */
|
|
1075
1170
|
/**
|
|
1076
1171
|
* Closes all of the dialogs in an array.
|
|
1172
|
+
* @private
|
|
1077
1173
|
* @param {?} dialogs
|
|
1078
1174
|
* @return {?}
|
|
1079
1175
|
*/
|
|
1080
1176
|
MatDialog.prototype._closeDialogs = /**
|
|
1081
1177
|
* Closes all of the dialogs in an array.
|
|
1178
|
+
* @private
|
|
1082
1179
|
* @param {?} dialogs
|
|
1083
1180
|
* @return {?}
|
|
1084
1181
|
*/
|
|
@@ -1120,11 +1217,12 @@ function _applyConfigDefaults(config, defaultOptions) {
|
|
|
1120
1217
|
|
|
1121
1218
|
/**
|
|
1122
1219
|
* @fileoverview added by tsickle
|
|
1123
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1220
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1124
1221
|
*/
|
|
1125
|
-
/**
|
|
1222
|
+
/**
|
|
1126
1223
|
* Counter used to generate unique IDs for dialog elements.
|
|
1127
|
-
|
|
1224
|
+
* @type {?}
|
|
1225
|
+
*/
|
|
1128
1226
|
var dialogElementUid = 0;
|
|
1129
1227
|
/**
|
|
1130
1228
|
* Button that will close the current dialog.
|
|
@@ -1152,7 +1250,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1152
1250
|
// views cannot be given a custom injector. Instead, we look up the DialogRef by
|
|
1153
1251
|
// ID. This must occur in `onInit`, as the ID binding for the dialog container won't
|
|
1154
1252
|
// be resolved at constructor time.
|
|
1155
|
-
this.dialogRef = /** @type {?} */ (
|
|
1253
|
+
this.dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1156
1254
|
}
|
|
1157
1255
|
};
|
|
1158
1256
|
/**
|
|
@@ -1165,7 +1263,7 @@ var MatDialogClose = /** @class */ (function () {
|
|
|
1165
1263
|
*/
|
|
1166
1264
|
function (changes) {
|
|
1167
1265
|
/** @type {?} */
|
|
1168
|
-
var proxiedChange = changes
|
|
1266
|
+
var proxiedChange = changes._matDialogClose || changes._matDialogCloseResult;
|
|
1169
1267
|
if (proxiedChange) {
|
|
1170
1268
|
this.dialogResult = proxiedChange.currentValue;
|
|
1171
1269
|
}
|
|
@@ -1213,7 +1311,7 @@ var MatDialogTitle = /** @class */ (function () {
|
|
|
1213
1311
|
function () {
|
|
1214
1312
|
var _this = this;
|
|
1215
1313
|
if (!this._dialogRef) {
|
|
1216
|
-
this._dialogRef = /** @type {?} */ (
|
|
1314
|
+
this._dialogRef = (/** @type {?} */ (getClosestDialog(this._elementRef, this._dialog.openDialogs)));
|
|
1217
1315
|
}
|
|
1218
1316
|
if (this._dialogRef) {
|
|
1219
1317
|
Promise.resolve().then(function () {
|
|
@@ -1287,12 +1385,12 @@ function getClosestDialog(element, openDialogs) {
|
|
|
1287
1385
|
while (parent && !parent.classList.contains('mat-dialog-container')) {
|
|
1288
1386
|
parent = parent.parentElement;
|
|
1289
1387
|
}
|
|
1290
|
-
return parent ? openDialogs.find(function (dialog) { return dialog.id === /** @type {?} */ (
|
|
1388
|
+
return parent ? openDialogs.find(function (dialog) { return dialog.id === (/** @type {?} */ (parent)).id; }) : null;
|
|
1291
1389
|
}
|
|
1292
1390
|
|
|
1293
1391
|
/**
|
|
1294
1392
|
* @fileoverview added by tsickle
|
|
1295
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1393
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1296
1394
|
*/
|
|
1297
1395
|
var MatDialogModule = /** @class */ (function () {
|
|
1298
1396
|
function MatDialogModule() {
|