@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
|
@@ -42,7 +42,7 @@ function __extends(d, b) {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @fileoverview added by tsickle
|
|
45
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
45
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* Menu content that will be rendered lazily once the menu is opened.
|
|
@@ -86,12 +86,11 @@ var MatMenuContent = /** @class */ (function () {
|
|
|
86
86
|
this._outlet = new portal.DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);
|
|
87
87
|
}
|
|
88
88
|
/** @type {?} */
|
|
89
|
-
var element = this._template.elementRef.nativeElement;
|
|
90
|
-
((
|
|
89
|
+
var element = this._template.elementRef.nativeElement;
|
|
91
90
|
// Because we support opening the same menu from different triggers (which in turn have their
|
|
92
91
|
// own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
|
|
93
92
|
// risk it staying attached to a pane that's no longer in the DOM.
|
|
94
|
-
element.parentNode)).insertBefore(this._outlet.outletElement, element);
|
|
93
|
+
(/** @type {?} */ (element.parentNode)).insertBefore(this._outlet.outletElement, element);
|
|
95
94
|
this._portal.attach(this._outlet, context);
|
|
96
95
|
this._attached.next();
|
|
97
96
|
};
|
|
@@ -144,23 +143,24 @@ var MatMenuContent = /** @class */ (function () {
|
|
|
144
143
|
|
|
145
144
|
/**
|
|
146
145
|
* @fileoverview added by tsickle
|
|
147
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
146
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
148
147
|
*/
|
|
149
|
-
/**
|
|
148
|
+
/**
|
|
150
149
|
* Animations used by the mat-menu component.
|
|
151
150
|
* Animation duration and timing values are based on:
|
|
152
151
|
* https://material.io/guidelines/components/menus.html#menus-usage
|
|
153
152
|
* \@docs-private
|
|
154
|
-
|
|
153
|
+
* @type {?}
|
|
154
|
+
*/
|
|
155
155
|
var matMenuAnimations = {
|
|
156
156
|
/**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
* This animation controls the menu panel's entry and exit from the page.
|
|
158
|
+
*
|
|
159
|
+
* When the menu panel is added to the DOM, it scales in and fades in its border.
|
|
160
|
+
*
|
|
161
|
+
* When the menu panel is removed from the DOM, it simply fades out after a brief
|
|
162
|
+
* delay to display the ripple.
|
|
163
|
+
*/
|
|
164
164
|
transformMenu: animations.trigger('transformMenu', [
|
|
165
165
|
animations.state('void', animations.style({
|
|
166
166
|
opacity: 0,
|
|
@@ -173,9 +173,9 @@ var matMenuAnimations = {
|
|
|
173
173
|
animations.transition('* => void', animations.animate('100ms 25ms linear', animations.style({ opacity: 0 })))
|
|
174
174
|
]),
|
|
175
175
|
/**
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
* This animation fades in the background color and content of the menu panel
|
|
177
|
+
* after its containing element is scaled in.
|
|
178
|
+
*/
|
|
179
179
|
fadeInItems: animations.trigger('fadeInItems', [
|
|
180
180
|
// TODO(crisbeto): this is inside the `transformMenu`
|
|
181
181
|
// now. Remove next time we do breaking changes.
|
|
@@ -186,22 +186,24 @@ var matMenuAnimations = {
|
|
|
186
186
|
])
|
|
187
187
|
])
|
|
188
188
|
};
|
|
189
|
-
/**
|
|
189
|
+
/**
|
|
190
190
|
* @deprecated
|
|
191
191
|
* \@breaking-change 8.0.0
|
|
192
192
|
* \@docs-private
|
|
193
|
-
|
|
193
|
+
* @type {?}
|
|
194
|
+
*/
|
|
194
195
|
var fadeInItems = matMenuAnimations.fadeInItems;
|
|
195
|
-
/**
|
|
196
|
+
/**
|
|
196
197
|
* @deprecated
|
|
197
198
|
* \@breaking-change 8.0.0
|
|
198
199
|
* \@docs-private
|
|
199
|
-
|
|
200
|
+
* @type {?}
|
|
201
|
+
*/
|
|
200
202
|
var transformMenu = matMenuAnimations.transformMenu;
|
|
201
203
|
|
|
202
204
|
/**
|
|
203
205
|
* @fileoverview added by tsickle
|
|
204
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
206
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
205
207
|
*/
|
|
206
208
|
|
|
207
209
|
/**
|
|
@@ -233,22 +235,26 @@ function throwMatMenuInvalidPositionY() {
|
|
|
233
235
|
|
|
234
236
|
/**
|
|
235
237
|
* @fileoverview added by tsickle
|
|
236
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
238
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
237
239
|
*/
|
|
238
|
-
/**
|
|
240
|
+
/**
|
|
239
241
|
* Injection token used to provide the parent menu to menu-specific components.
|
|
240
242
|
* \@docs-private
|
|
241
|
-
|
|
243
|
+
* @type {?}
|
|
244
|
+
*/
|
|
242
245
|
var MAT_MENU_PANEL = new core.InjectionToken('MAT_MENU_PANEL');
|
|
243
246
|
|
|
244
247
|
/**
|
|
245
248
|
* @fileoverview added by tsickle
|
|
246
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
249
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
247
250
|
*/
|
|
251
|
+
// Boilerplate for applying mixins to MatMenuItem.
|
|
248
252
|
/**
|
|
249
253
|
* \@docs-private
|
|
250
254
|
*/
|
|
251
|
-
var
|
|
255
|
+
var
|
|
256
|
+
// Boilerplate for applying mixins to MatMenuItem.
|
|
257
|
+
/**
|
|
252
258
|
* \@docs-private
|
|
253
259
|
*/
|
|
254
260
|
MatMenuItemBase = /** @class */ (function () {
|
|
@@ -271,6 +277,10 @@ var MatMenuItem = /** @class */ (function (_super) {
|
|
|
271
277
|
_this._elementRef = _elementRef;
|
|
272
278
|
_this._focusMonitor = _focusMonitor;
|
|
273
279
|
_this._parentMenu = _parentMenu;
|
|
280
|
+
/**
|
|
281
|
+
* ARIA role for the menu item.
|
|
282
|
+
*/
|
|
283
|
+
_this.role = 'menuitem';
|
|
274
284
|
/**
|
|
275
285
|
* Stream that emits when the menu item is hovered.
|
|
276
286
|
*/
|
|
@@ -418,7 +428,7 @@ var MatMenuItem = /** @class */ (function (_super) {
|
|
|
418
428
|
exportAs: 'matMenuItem',
|
|
419
429
|
inputs: ['disabled', 'disableRipple'],
|
|
420
430
|
host: {
|
|
421
|
-
'role': '
|
|
431
|
+
'[attr.role]': 'role',
|
|
422
432
|
'class': 'mat-menu-item',
|
|
423
433
|
'[class.mat-menu-item-highlighted]': '_highlighted',
|
|
424
434
|
'[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',
|
|
@@ -440,16 +450,20 @@ var MatMenuItem = /** @class */ (function (_super) {
|
|
|
440
450
|
{ type: a11y.FocusMonitor },
|
|
441
451
|
{ type: undefined, decorators: [{ type: core.Inject, args: [MAT_MENU_PANEL,] }, { type: core.Optional }] }
|
|
442
452
|
]; };
|
|
453
|
+
MatMenuItem.propDecorators = {
|
|
454
|
+
role: [{ type: core.Input }]
|
|
455
|
+
};
|
|
443
456
|
return MatMenuItem;
|
|
444
457
|
}(_MatMenuItemMixinBase));
|
|
445
458
|
|
|
446
459
|
/**
|
|
447
460
|
* @fileoverview added by tsickle
|
|
448
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
461
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
449
462
|
*/
|
|
450
|
-
/**
|
|
463
|
+
/**
|
|
451
464
|
* Injection token to be used to override the default options for `mat-menu`.
|
|
452
|
-
|
|
465
|
+
* @type {?}
|
|
466
|
+
*/
|
|
453
467
|
var MAT_MENU_DEFAULT_OPTIONS = new core.InjectionToken('mat-menu-default-options', {
|
|
454
468
|
providedIn: 'root',
|
|
455
469
|
factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY
|
|
@@ -466,10 +480,11 @@ function MAT_MENU_DEFAULT_OPTIONS_FACTORY() {
|
|
|
466
480
|
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
467
481
|
};
|
|
468
482
|
}
|
|
469
|
-
/**
|
|
483
|
+
/**
|
|
470
484
|
* Start elevation for the menu panel.
|
|
471
485
|
* \@docs-private
|
|
472
|
-
|
|
486
|
+
* @type {?}
|
|
487
|
+
*/
|
|
473
488
|
var MAT_MENU_BASE_ELEVATION = 4;
|
|
474
489
|
var MatMenu = /** @class */ (function () {
|
|
475
490
|
function MatMenu(_elementRef, _ngZone, _defaultOptions) {
|
|
@@ -782,6 +797,7 @@ var MatMenu = /** @class */ (function () {
|
|
|
782
797
|
* @return {?}
|
|
783
798
|
*/
|
|
784
799
|
function (depth) {
|
|
800
|
+
// The elevation starts at the base and increases by one for each level.
|
|
785
801
|
/** @type {?} */
|
|
786
802
|
var newElevation = "mat-elevation-z" + (MAT_MENU_BASE_ELEVATION + depth);
|
|
787
803
|
/** @type {?} */
|
|
@@ -918,20 +934,31 @@ var MatMenu = /** @class */ (function () {
|
|
|
918
934
|
function (event) {
|
|
919
935
|
this._animationDone.next(event);
|
|
920
936
|
this._isAnimating = false;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
937
|
+
};
|
|
938
|
+
/**
|
|
939
|
+
* @param {?} event
|
|
940
|
+
* @return {?}
|
|
941
|
+
*/
|
|
942
|
+
MatMenu.prototype._onAnimationStart = /**
|
|
943
|
+
* @param {?} event
|
|
944
|
+
* @return {?}
|
|
945
|
+
*/
|
|
946
|
+
function (event) {
|
|
947
|
+
this._isAnimating = true;
|
|
948
|
+
// Scroll the content element to the top as soon as the animation starts. This is necessary,
|
|
949
|
+
// because we move focus to the first item while it's still being animated, which can throw
|
|
950
|
+
// the browser off when it determines the scroll position. Alternatively we can move focus
|
|
951
|
+
// when the animation is done, however moving focus asynchronously will interrupt screen
|
|
952
|
+
// readers which are in the process of reading out the menu already. We take the `element`
|
|
953
|
+
// from the `event` since we can't use a `ViewChild` to access the pane.
|
|
927
954
|
if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) {
|
|
928
955
|
event.element.scrollTop = 0;
|
|
929
956
|
}
|
|
930
957
|
};
|
|
931
958
|
MatMenu.decorators = [
|
|
932
959
|
{ type: core.Component, args: [{selector: 'mat-menu',
|
|
933
|
-
template: "<ng-template><div class=\"mat-menu-panel\" [ngClass]=\"_classList\" (keydown)=\"_handleKeydown($event)\" (click)=\"closed.emit('click')\" [@transformMenu]=\"_panelAnimationState\" (@transformMenu.start)=\"
|
|
934
|
-
styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0}@media
|
|
960
|
+
template: "<ng-template><div class=\"mat-menu-panel\" [ngClass]=\"_classList\" (keydown)=\"_handleKeydown($event)\" (click)=\"closed.emit('click')\" [@transformMenu]=\"_panelAnimationState\" (@transformMenu.start)=\"_onAnimationStart($event)\" (@transformMenu.done)=\"_onAnimationDone($event)\" tabindex=\"-1\" role=\"menu\"><div class=\"mat-menu-content\"><ng-content></ng-content></div></div></ng-template>",
|
|
961
|
+
styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0}.mat-menu-panel.ng-animating{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}@media (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],
|
|
935
962
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
936
963
|
encapsulation: core.ViewEncapsulation.None,
|
|
937
964
|
exportAs: 'matMenu',
|
|
@@ -969,11 +996,12 @@ var MatMenu = /** @class */ (function () {
|
|
|
969
996
|
|
|
970
997
|
/**
|
|
971
998
|
* @fileoverview added by tsickle
|
|
972
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
999
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
973
1000
|
*/
|
|
974
|
-
/**
|
|
1001
|
+
/**
|
|
975
1002
|
* Injection token that determines the scroll handling while the menu is open.
|
|
976
|
-
|
|
1003
|
+
* @type {?}
|
|
1004
|
+
*/
|
|
977
1005
|
var MAT_MENU_SCROLL_STRATEGY = new core.InjectionToken('mat-menu-scroll-strategy');
|
|
978
1006
|
/**
|
|
979
1007
|
* \@docs-private
|
|
@@ -983,22 +1011,26 @@ var MAT_MENU_SCROLL_STRATEGY = new core.InjectionToken('mat-menu-scroll-strategy
|
|
|
983
1011
|
function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay$$1) {
|
|
984
1012
|
return function () { return overlay$$1.scrollStrategies.reposition(); };
|
|
985
1013
|
}
|
|
986
|
-
/**
|
|
1014
|
+
/**
|
|
987
1015
|
* \@docs-private
|
|
988
|
-
|
|
1016
|
+
* @type {?}
|
|
1017
|
+
*/
|
|
989
1018
|
var MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
990
1019
|
provide: MAT_MENU_SCROLL_STRATEGY,
|
|
991
1020
|
deps: [overlay.Overlay],
|
|
992
1021
|
useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY,
|
|
993
1022
|
};
|
|
994
|
-
/**
|
|
1023
|
+
/**
|
|
995
1024
|
* Default top padding of the menu panel.
|
|
996
|
-
|
|
1025
|
+
* @type {?}
|
|
1026
|
+
*/
|
|
997
1027
|
var MENU_PANEL_TOP_PADDING = 8;
|
|
998
|
-
/**
|
|
1028
|
+
/**
|
|
999
1029
|
* Options for binding a passive event listener.
|
|
1000
|
-
|
|
1030
|
+
* @type {?}
|
|
1031
|
+
*/
|
|
1001
1032
|
var passiveEventListenerOptions = platform.normalizePassiveListenerOptions({ passive: true });
|
|
1033
|
+
// TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors
|
|
1002
1034
|
/**
|
|
1003
1035
|
* This directive is intended to be used in conjunction with an mat-menu tag. It is
|
|
1004
1036
|
* responsible for toggling the display of the provided menu instance.
|
|
@@ -1035,6 +1067,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1035
1067
|
* @deprecated Switch to `menuOpened` instead
|
|
1036
1068
|
* \@breaking-change 8.0.0
|
|
1037
1069
|
*/
|
|
1070
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
1038
1071
|
this.onMenuOpen = this.menuOpened;
|
|
1039
1072
|
/**
|
|
1040
1073
|
* Event emitted when the associated menu is closed.
|
|
@@ -1045,6 +1078,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1045
1078
|
* @deprecated Switch to `menuClosed` instead
|
|
1046
1079
|
* \@breaking-change 8.0.0
|
|
1047
1080
|
*/
|
|
1081
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
1048
1082
|
this.onMenuClose = this.menuClosed;
|
|
1049
1083
|
_element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
1050
1084
|
if (_menuItemInstance) {
|
|
@@ -1193,7 +1227,11 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1193
1227
|
this._checkMenu();
|
|
1194
1228
|
/** @type {?} */
|
|
1195
1229
|
var overlayRef = this._createOverlay();
|
|
1196
|
-
|
|
1230
|
+
/** @type {?} */
|
|
1231
|
+
var overlayConfig = overlayRef.getConfig();
|
|
1232
|
+
this._setPosition((/** @type {?} */ (overlayConfig.positionStrategy)));
|
|
1233
|
+
overlayConfig.hasBackdrop = this.menu.hasBackdrop == null ? !this.triggersSubmenu() :
|
|
1234
|
+
this.menu.hasBackdrop;
|
|
1197
1235
|
overlayRef.attach(this._getPortal());
|
|
1198
1236
|
if (this.menu.lazyContent) {
|
|
1199
1237
|
this.menu.lazyContent.attach(this.menuData);
|
|
@@ -1239,12 +1277,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1239
1277
|
this._element.nativeElement.focus();
|
|
1240
1278
|
}
|
|
1241
1279
|
};
|
|
1280
|
+
/** Closes the menu and does the necessary cleanup. */
|
|
1242
1281
|
/**
|
|
1243
1282
|
* Closes the menu and does the necessary cleanup.
|
|
1283
|
+
* @private
|
|
1244
1284
|
* @return {?}
|
|
1245
1285
|
*/
|
|
1246
1286
|
MatMenuTrigger.prototype._destroyMenu = /**
|
|
1247
1287
|
* Closes the menu and does the necessary cleanup.
|
|
1288
|
+
* @private
|
|
1248
1289
|
* @return {?}
|
|
1249
1290
|
*/
|
|
1250
1291
|
function () {
|
|
@@ -1264,7 +1305,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1264
1305
|
.pipe(operators.filter(function (event) { return event.toState === 'void'; }), operators.take(1),
|
|
1265
1306
|
// Interrupt if the content got re-attached.
|
|
1266
1307
|
operators.takeUntil(menu.lazyContent._attached))
|
|
1267
|
-
.subscribe(function () { return ((menu.lazyContent)).detach(); }, undefined, function () {
|
|
1308
|
+
.subscribe(function () { return (/** @type {?} */ (menu.lazyContent)).detach(); }, undefined, function () {
|
|
1268
1309
|
// No matter whether the content got re-attached, reset the menu.
|
|
1269
1310
|
_this._resetMenu();
|
|
1270
1311
|
});
|
|
@@ -1283,11 +1324,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1283
1324
|
/**
|
|
1284
1325
|
* This method sets the menu state to open and focuses the first item if
|
|
1285
1326
|
* the menu was opened via the keyboard.
|
|
1327
|
+
*/
|
|
1328
|
+
/**
|
|
1329
|
+
* This method sets the menu state to open and focuses the first item if
|
|
1330
|
+
* the menu was opened via the keyboard.
|
|
1331
|
+
* @private
|
|
1286
1332
|
* @return {?}
|
|
1287
1333
|
*/
|
|
1288
1334
|
MatMenuTrigger.prototype._initMenu = /**
|
|
1289
1335
|
* This method sets the menu state to open and focuses the first item if
|
|
1290
1336
|
* the menu was opened via the keyboard.
|
|
1337
|
+
* @private
|
|
1291
1338
|
* @return {?}
|
|
1292
1339
|
*/
|
|
1293
1340
|
function () {
|
|
@@ -1297,12 +1344,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1297
1344
|
this._setIsMenuOpen(true);
|
|
1298
1345
|
this.menu.focusFirstItem(this._openedBy || 'program');
|
|
1299
1346
|
};
|
|
1347
|
+
/** Updates the menu elevation based on the amount of parent menus that it has. */
|
|
1300
1348
|
/**
|
|
1301
1349
|
* Updates the menu elevation based on the amount of parent menus that it has.
|
|
1350
|
+
* @private
|
|
1302
1351
|
* @return {?}
|
|
1303
1352
|
*/
|
|
1304
1353
|
MatMenuTrigger.prototype._setMenuElevation = /**
|
|
1305
1354
|
* Updates the menu elevation based on the amount of parent menus that it has.
|
|
1355
|
+
* @private
|
|
1306
1356
|
* @return {?}
|
|
1307
1357
|
*/
|
|
1308
1358
|
function () {
|
|
@@ -1321,11 +1371,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1321
1371
|
/**
|
|
1322
1372
|
* This method resets the menu when it's closed, most importantly restoring
|
|
1323
1373
|
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1374
|
+
*/
|
|
1375
|
+
/**
|
|
1376
|
+
* This method resets the menu when it's closed, most importantly restoring
|
|
1377
|
+
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1378
|
+
* @private
|
|
1324
1379
|
* @return {?}
|
|
1325
1380
|
*/
|
|
1326
1381
|
MatMenuTrigger.prototype._resetMenu = /**
|
|
1327
1382
|
* This method resets the menu when it's closed, most importantly restoring
|
|
1328
1383
|
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1384
|
+
* @private
|
|
1329
1385
|
* @return {?}
|
|
1330
1386
|
*/
|
|
1331
1387
|
function () {
|
|
@@ -1343,11 +1399,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1343
1399
|
}
|
|
1344
1400
|
this._openedBy = null;
|
|
1345
1401
|
};
|
|
1402
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1403
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1346
1404
|
/**
|
|
1405
|
+
* @private
|
|
1347
1406
|
* @param {?} isOpen
|
|
1348
1407
|
* @return {?}
|
|
1349
1408
|
*/
|
|
1350
|
-
MatMenuTrigger.prototype._setIsMenuOpen =
|
|
1409
|
+
MatMenuTrigger.prototype._setIsMenuOpen =
|
|
1410
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1411
|
+
/**
|
|
1412
|
+
* @private
|
|
1351
1413
|
* @param {?} isOpen
|
|
1352
1414
|
* @return {?}
|
|
1353
1415
|
*/
|
|
@@ -1361,11 +1423,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1361
1423
|
/**
|
|
1362
1424
|
* This method checks that a valid instance of MatMenu has been passed into
|
|
1363
1425
|
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1426
|
+
*/
|
|
1427
|
+
/**
|
|
1428
|
+
* This method checks that a valid instance of MatMenu has been passed into
|
|
1429
|
+
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1430
|
+
* @private
|
|
1364
1431
|
* @return {?}
|
|
1365
1432
|
*/
|
|
1366
1433
|
MatMenuTrigger.prototype._checkMenu = /**
|
|
1367
1434
|
* This method checks that a valid instance of MatMenu has been passed into
|
|
1368
1435
|
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1436
|
+
* @private
|
|
1369
1437
|
* @return {?}
|
|
1370
1438
|
*/
|
|
1371
1439
|
function () {
|
|
@@ -1376,18 +1444,24 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1376
1444
|
/**
|
|
1377
1445
|
* This method creates the overlay from the provided menu's template and saves its
|
|
1378
1446
|
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1447
|
+
*/
|
|
1448
|
+
/**
|
|
1449
|
+
* This method creates the overlay from the provided menu's template and saves its
|
|
1450
|
+
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1451
|
+
* @private
|
|
1379
1452
|
* @return {?}
|
|
1380
1453
|
*/
|
|
1381
1454
|
MatMenuTrigger.prototype._createOverlay = /**
|
|
1382
1455
|
* This method creates the overlay from the provided menu's template and saves its
|
|
1383
1456
|
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1457
|
+
* @private
|
|
1384
1458
|
* @return {?}
|
|
1385
1459
|
*/
|
|
1386
1460
|
function () {
|
|
1387
1461
|
if (!this._overlayRef) {
|
|
1388
1462
|
/** @type {?} */
|
|
1389
1463
|
var config = this._getOverlayConfig();
|
|
1390
|
-
this._subscribeToPositions(/** @type {?} */ (config.positionStrategy));
|
|
1464
|
+
this._subscribeToPositions((/** @type {?} */ (config.positionStrategy)));
|
|
1391
1465
|
this._overlayRef = this._overlay.create(config);
|
|
1392
1466
|
// Consume the `keydownEvents` in order to prevent them from going to another overlay.
|
|
1393
1467
|
// Ideally we'd also have our keyboard event logic in here, however doing so will
|
|
@@ -1398,10 +1472,16 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1398
1472
|
};
|
|
1399
1473
|
/**
|
|
1400
1474
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1475
|
+
* @returns OverlayConfig
|
|
1476
|
+
*/
|
|
1477
|
+
/**
|
|
1478
|
+
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1479
|
+
* @private
|
|
1401
1480
|
* @return {?} OverlayConfig
|
|
1402
1481
|
*/
|
|
1403
1482
|
MatMenuTrigger.prototype._getOverlayConfig = /**
|
|
1404
1483
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1484
|
+
* @private
|
|
1405
1485
|
* @return {?} OverlayConfig
|
|
1406
1486
|
*/
|
|
1407
1487
|
function () {
|
|
@@ -1410,7 +1490,6 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1410
1490
|
.flexibleConnectedTo(this._element)
|
|
1411
1491
|
.withLockedPosition()
|
|
1412
1492
|
.withTransformOriginOn('.mat-menu-panel'),
|
|
1413
|
-
hasBackdrop: this.menu.hasBackdrop == null ? !this.triggersSubmenu() : this.menu.hasBackdrop,
|
|
1414
1493
|
backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop',
|
|
1415
1494
|
scrollStrategy: this._scrollStrategy(),
|
|
1416
1495
|
direction: this._dir
|
|
@@ -1420,6 +1499,12 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1420
1499
|
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1421
1500
|
* on the menu based on the new position. This ensures the animation origin is always
|
|
1422
1501
|
* correct, even if a fallback position is used for the overlay.
|
|
1502
|
+
*/
|
|
1503
|
+
/**
|
|
1504
|
+
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1505
|
+
* on the menu based on the new position. This ensures the animation origin is always
|
|
1506
|
+
* correct, even if a fallback position is used for the overlay.
|
|
1507
|
+
* @private
|
|
1423
1508
|
* @param {?} position
|
|
1424
1509
|
* @return {?}
|
|
1425
1510
|
*/
|
|
@@ -1427,6 +1512,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1427
1512
|
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1428
1513
|
* on the menu based on the new position. This ensures the animation origin is always
|
|
1429
1514
|
* correct, even if a fallback position is used for the overlay.
|
|
1515
|
+
* @private
|
|
1430
1516
|
* @param {?} position
|
|
1431
1517
|
* @return {?}
|
|
1432
1518
|
*/
|
|
@@ -1437,20 +1523,27 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1437
1523
|
/** @type {?} */
|
|
1438
1524
|
var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
|
|
1439
1525
|
/** @type {?} */
|
|
1440
|
-
var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1441
|
-
((_this.menu.setPositionClasses))(posX, posY);
|
|
1526
|
+
var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1527
|
+
(/** @type {?} */ (_this.menu.setPositionClasses))(posX, posY);
|
|
1442
1528
|
});
|
|
1443
1529
|
}
|
|
1444
1530
|
};
|
|
1445
1531
|
/**
|
|
1446
1532
|
* Sets the appropriate positions on a position strategy
|
|
1447
1533
|
* so the overlay connects with the trigger correctly.
|
|
1534
|
+
* @param positionStrategy Strategy whose position to update.
|
|
1535
|
+
*/
|
|
1536
|
+
/**
|
|
1537
|
+
* Sets the appropriate positions on a position strategy
|
|
1538
|
+
* so the overlay connects with the trigger correctly.
|
|
1539
|
+
* @private
|
|
1448
1540
|
* @param {?} positionStrategy Strategy whose position to update.
|
|
1449
1541
|
* @return {?}
|
|
1450
1542
|
*/
|
|
1451
1543
|
MatMenuTrigger.prototype._setPosition = /**
|
|
1452
1544
|
* Sets the appropriate positions on a position strategy
|
|
1453
1545
|
* so the overlay connects with the trigger correctly.
|
|
1546
|
+
* @private
|
|
1454
1547
|
* @param {?} positionStrategy Strategy whose position to update.
|
|
1455
1548
|
* @return {?}
|
|
1456
1549
|
*/
|
|
@@ -1491,32 +1584,38 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1491
1584
|
}
|
|
1492
1585
|
]);
|
|
1493
1586
|
};
|
|
1587
|
+
/** Cleans up the active subscriptions. */
|
|
1494
1588
|
/**
|
|
1495
1589
|
* Cleans up the active subscriptions.
|
|
1590
|
+
* @private
|
|
1496
1591
|
* @return {?}
|
|
1497
1592
|
*/
|
|
1498
1593
|
MatMenuTrigger.prototype._cleanUpSubscriptions = /**
|
|
1499
1594
|
* Cleans up the active subscriptions.
|
|
1595
|
+
* @private
|
|
1500
1596
|
* @return {?}
|
|
1501
1597
|
*/
|
|
1502
1598
|
function () {
|
|
1503
1599
|
this._closeSubscription.unsubscribe();
|
|
1504
1600
|
this._hoverSubscription.unsubscribe();
|
|
1505
1601
|
};
|
|
1602
|
+
/** Returns a stream that emits whenever an action that should close the menu occurs. */
|
|
1506
1603
|
/**
|
|
1507
1604
|
* Returns a stream that emits whenever an action that should close the menu occurs.
|
|
1605
|
+
* @private
|
|
1508
1606
|
* @return {?}
|
|
1509
1607
|
*/
|
|
1510
1608
|
MatMenuTrigger.prototype._menuClosingActions = /**
|
|
1511
1609
|
* Returns a stream that emits whenever an action that should close the menu occurs.
|
|
1610
|
+
* @private
|
|
1512
1611
|
* @return {?}
|
|
1513
1612
|
*/
|
|
1514
1613
|
function () {
|
|
1515
1614
|
var _this = this;
|
|
1516
1615
|
/** @type {?} */
|
|
1517
|
-
var backdrop = /** @type {?} */ (
|
|
1616
|
+
var backdrop = (/** @type {?} */ (this._overlayRef)).backdropClick();
|
|
1518
1617
|
/** @type {?} */
|
|
1519
|
-
var detachments = /** @type {?} */ (
|
|
1618
|
+
var detachments = (/** @type {?} */ (this._overlayRef)).detachments();
|
|
1520
1619
|
/** @type {?} */
|
|
1521
1620
|
var parentClose = this._parentMenu ? this._parentMenu.closed : rxjs.of();
|
|
1522
1621
|
/** @type {?} */
|
|
@@ -1587,12 +1686,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1587
1686
|
this.toggleMenu();
|
|
1588
1687
|
}
|
|
1589
1688
|
};
|
|
1689
|
+
/** Handles the cases where the user hovers over the trigger. */
|
|
1590
1690
|
/**
|
|
1591
1691
|
* Handles the cases where the user hovers over the trigger.
|
|
1692
|
+
* @private
|
|
1592
1693
|
* @return {?}
|
|
1593
1694
|
*/
|
|
1594
1695
|
MatMenuTrigger.prototype._handleHover = /**
|
|
1595
1696
|
* Handles the cases where the user hovers over the trigger.
|
|
1697
|
+
* @private
|
|
1596
1698
|
* @return {?}
|
|
1597
1699
|
*/
|
|
1598
1700
|
function () {
|
|
@@ -1623,12 +1725,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1623
1725
|
}
|
|
1624
1726
|
});
|
|
1625
1727
|
};
|
|
1728
|
+
/** Gets the portal that should be attached to the overlay. */
|
|
1626
1729
|
/**
|
|
1627
1730
|
* Gets the portal that should be attached to the overlay.
|
|
1731
|
+
* @private
|
|
1628
1732
|
* @return {?}
|
|
1629
1733
|
*/
|
|
1630
1734
|
MatMenuTrigger.prototype._getPortal = /**
|
|
1631
1735
|
* Gets the portal that should be attached to the overlay.
|
|
1736
|
+
* @private
|
|
1632
1737
|
* @return {?}
|
|
1633
1738
|
*/
|
|
1634
1739
|
function () {
|
|
@@ -1678,7 +1783,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1678
1783
|
|
|
1679
1784
|
/**
|
|
1680
1785
|
* @fileoverview added by tsickle
|
|
1681
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1786
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1682
1787
|
*/
|
|
1683
1788
|
var MatMenuModule = /** @class */ (function () {
|
|
1684
1789
|
function MatMenuModule() {
|
|
@@ -1709,12 +1814,12 @@ exports.matMenuAnimations = matMenuAnimations;
|
|
|
1709
1814
|
exports.fadeInItems = fadeInItems;
|
|
1710
1815
|
exports.transformMenu = transformMenu;
|
|
1711
1816
|
exports.MatMenuContent = MatMenuContent;
|
|
1712
|
-
exports.ɵ
|
|
1713
|
-
exports.ɵ
|
|
1714
|
-
exports.ɵ
|
|
1715
|
-
exports.ɵ
|
|
1716
|
-
exports.ɵ
|
|
1717
|
-
exports.ɵ
|
|
1817
|
+
exports.ɵa23 = MAT_MENU_DEFAULT_OPTIONS_FACTORY;
|
|
1818
|
+
exports.ɵb23 = MatMenuItemBase;
|
|
1819
|
+
exports.ɵc23 = _MatMenuItemMixinBase;
|
|
1820
|
+
exports.ɵf23 = MAT_MENU_PANEL;
|
|
1821
|
+
exports.ɵd23 = MAT_MENU_SCROLL_STRATEGY_FACTORY;
|
|
1822
|
+
exports.ɵe23 = MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER;
|
|
1718
1823
|
|
|
1719
1824
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1720
1825
|
|