@angular/material 7.0.3 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +57 -49
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +124 -30
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +68 -25
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +40 -15
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +19 -12
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +2 -2
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +124 -34
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +186 -123
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +2 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +241 -59
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +136 -44
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +32 -22
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +120 -32
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +66 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +280 -79
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +46 -24
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +71 -22
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +157 -55
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +35 -14
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +26 -7
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +178 -49
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +102 -23
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +33 -15
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +89 -19
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +74 -22
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +45 -23
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -44
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +29 -19
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +156 -56
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +13 -3
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +52 -25
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -26
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2780 -979
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker-toggle.d.ts +5 -0
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +58 -27
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +46 -27
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +24 -13
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +18 -13
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +4 -4
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +145 -126
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +131 -44
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +76 -45
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +35 -25
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +93 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +139 -68
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +40 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +49 -23
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +10 -9
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +100 -53
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +30 -15
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +17 -7
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +103 -50
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +73 -26
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +26 -16
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +50 -20
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +44 -24
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +46 -23
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -39
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -21
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +110 -52
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +8 -4
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +42 -27
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -25
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +126 -32
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +71 -28
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +42 -17
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +21 -14
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +4 -4
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +189 -126
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +240 -58
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +139 -47
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +35 -25
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +124 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +282 -81
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +48 -26
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +74 -25
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +10 -9
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +158 -55
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +37 -16
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +28 -9
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +181 -52
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +105 -26
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +35 -17
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +91 -21
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +76 -24
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +52 -25
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -47
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -21
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +159 -60
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +15 -5
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +54 -27
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -28
- package/esm5/tree.es5.js.map +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-item.d.ts +2 -0
- package/menu/typings/menu-trigger.d.ts +5 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/table/typings/index.metadata.json +1 -1
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker-toggle.d.ts +5 -0
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker-toggle.d.ts +5 -0
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/menu/menu-trigger.d.ts +5 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/table/index.metadata.json +1 -1
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/menu/menu-trigger.d.ts +5 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/table/index.metadata.json +1 -1
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm5/menu.es5.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { Directive, TemplateRef, ComponentFactoryResolver, ApplicationRef, Injector, ViewContainerRef, Inject, InjectionToken, ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation, Optional, ContentChild, ContentChildren, EventEmitter,
|
|
8
|
+
import { Directive, TemplateRef, ComponentFactoryResolver, ApplicationRef, Injector, ViewContainerRef, Inject, InjectionToken, ChangeDetectionStrategy, Component, ElementRef, ViewEncapsulation, Optional, Input, ContentChild, ContentChildren, EventEmitter, NgZone, Output, ViewChild, Self, NgModule } from '@angular/core';
|
|
9
9
|
import { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';
|
|
10
10
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
11
11
|
import { Subject, merge, Subscription, asapScheduler, of } from 'rxjs';
|
|
@@ -18,10 +18,11 @@ import { ESCAPE, LEFT_ARROW, RIGHT_ARROW, DOWN_ARROW, UP_ARROW } from '@angular/
|
|
|
18
18
|
import { startWith, switchMap, take, delay, filter, takeUntil } from 'rxjs/operators';
|
|
19
19
|
import { Directionality } from '@angular/cdk/bidi';
|
|
20
20
|
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
21
|
+
import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* @fileoverview added by tsickle
|
|
24
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
25
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
25
26
|
*/
|
|
26
27
|
/**
|
|
27
28
|
* Menu content that will be rendered lazily once the menu is opened.
|
|
@@ -65,12 +66,11 @@ var MatMenuContent = /** @class */ (function () {
|
|
|
65
66
|
this._outlet = new DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);
|
|
66
67
|
}
|
|
67
68
|
/** @type {?} */
|
|
68
|
-
var element = this._template.elementRef.nativeElement;
|
|
69
|
-
((
|
|
69
|
+
var element = this._template.elementRef.nativeElement;
|
|
70
70
|
// Because we support opening the same menu from different triggers (which in turn have their
|
|
71
71
|
// own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
|
|
72
72
|
// risk it staying attached to a pane that's no longer in the DOM.
|
|
73
|
-
element.parentNode)).insertBefore(this._outlet.outletElement, element);
|
|
73
|
+
(/** @type {?} */ (element.parentNode)).insertBefore(this._outlet.outletElement, element);
|
|
74
74
|
this._portal.attach(this._outlet, context);
|
|
75
75
|
this._attached.next();
|
|
76
76
|
};
|
|
@@ -123,23 +123,24 @@ var MatMenuContent = /** @class */ (function () {
|
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* @fileoverview added by tsickle
|
|
126
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
126
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
127
127
|
*/
|
|
128
|
-
/**
|
|
128
|
+
/**
|
|
129
129
|
* Animations used by the mat-menu component.
|
|
130
130
|
* Animation duration and timing values are based on:
|
|
131
131
|
* https://material.io/guidelines/components/menus.html#menus-usage
|
|
132
132
|
* \@docs-private
|
|
133
|
-
|
|
133
|
+
* @type {?}
|
|
134
|
+
*/
|
|
134
135
|
var matMenuAnimations = {
|
|
135
136
|
/**
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
* This animation controls the menu panel's entry and exit from the page.
|
|
138
|
+
*
|
|
139
|
+
* When the menu panel is added to the DOM, it scales in and fades in its border.
|
|
140
|
+
*
|
|
141
|
+
* When the menu panel is removed from the DOM, it simply fades out after a brief
|
|
142
|
+
* delay to display the ripple.
|
|
143
|
+
*/
|
|
143
144
|
transformMenu: trigger('transformMenu', [
|
|
144
145
|
state('void', style({
|
|
145
146
|
opacity: 0,
|
|
@@ -152,9 +153,9 @@ var matMenuAnimations = {
|
|
|
152
153
|
transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 })))
|
|
153
154
|
]),
|
|
154
155
|
/**
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
* This animation fades in the background color and content of the menu panel
|
|
157
|
+
* after its containing element is scaled in.
|
|
158
|
+
*/
|
|
158
159
|
fadeInItems: trigger('fadeInItems', [
|
|
159
160
|
// TODO(crisbeto): this is inside the `transformMenu`
|
|
160
161
|
// now. Remove next time we do breaking changes.
|
|
@@ -165,22 +166,24 @@ var matMenuAnimations = {
|
|
|
165
166
|
])
|
|
166
167
|
])
|
|
167
168
|
};
|
|
168
|
-
/**
|
|
169
|
+
/**
|
|
169
170
|
* @deprecated
|
|
170
171
|
* \@breaking-change 8.0.0
|
|
171
172
|
* \@docs-private
|
|
172
|
-
|
|
173
|
+
* @type {?}
|
|
174
|
+
*/
|
|
173
175
|
var fadeInItems = matMenuAnimations.fadeInItems;
|
|
174
|
-
/**
|
|
176
|
+
/**
|
|
175
177
|
* @deprecated
|
|
176
178
|
* \@breaking-change 8.0.0
|
|
177
179
|
* \@docs-private
|
|
178
|
-
|
|
180
|
+
* @type {?}
|
|
181
|
+
*/
|
|
179
182
|
var transformMenu = matMenuAnimations.transformMenu;
|
|
180
183
|
|
|
181
184
|
/**
|
|
182
185
|
* @fileoverview added by tsickle
|
|
183
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
186
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
184
187
|
*/
|
|
185
188
|
|
|
186
189
|
/**
|
|
@@ -212,22 +215,26 @@ function throwMatMenuInvalidPositionY() {
|
|
|
212
215
|
|
|
213
216
|
/**
|
|
214
217
|
* @fileoverview added by tsickle
|
|
215
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
218
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
216
219
|
*/
|
|
217
|
-
/**
|
|
220
|
+
/**
|
|
218
221
|
* Injection token used to provide the parent menu to menu-specific components.
|
|
219
222
|
* \@docs-private
|
|
220
|
-
|
|
223
|
+
* @type {?}
|
|
224
|
+
*/
|
|
221
225
|
var MAT_MENU_PANEL = new InjectionToken('MAT_MENU_PANEL');
|
|
222
226
|
|
|
223
227
|
/**
|
|
224
228
|
* @fileoverview added by tsickle
|
|
225
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
229
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
226
230
|
*/
|
|
231
|
+
// Boilerplate for applying mixins to MatMenuItem.
|
|
227
232
|
/**
|
|
228
233
|
* \@docs-private
|
|
229
234
|
*/
|
|
230
|
-
var
|
|
235
|
+
var
|
|
236
|
+
// Boilerplate for applying mixins to MatMenuItem.
|
|
237
|
+
/**
|
|
231
238
|
* \@docs-private
|
|
232
239
|
*/
|
|
233
240
|
MatMenuItemBase = /** @class */ (function () {
|
|
@@ -250,6 +257,10 @@ var MatMenuItem = /** @class */ (function (_super) {
|
|
|
250
257
|
_this._elementRef = _elementRef;
|
|
251
258
|
_this._focusMonitor = _focusMonitor;
|
|
252
259
|
_this._parentMenu = _parentMenu;
|
|
260
|
+
/**
|
|
261
|
+
* ARIA role for the menu item.
|
|
262
|
+
*/
|
|
263
|
+
_this.role = 'menuitem';
|
|
253
264
|
/**
|
|
254
265
|
* Stream that emits when the menu item is hovered.
|
|
255
266
|
*/
|
|
@@ -397,7 +408,7 @@ var MatMenuItem = /** @class */ (function (_super) {
|
|
|
397
408
|
exportAs: 'matMenuItem',
|
|
398
409
|
inputs: ['disabled', 'disableRipple'],
|
|
399
410
|
host: {
|
|
400
|
-
'role': '
|
|
411
|
+
'[attr.role]': 'role',
|
|
401
412
|
'class': 'mat-menu-item',
|
|
402
413
|
'[class.mat-menu-item-highlighted]': '_highlighted',
|
|
403
414
|
'[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',
|
|
@@ -419,16 +430,20 @@ var MatMenuItem = /** @class */ (function (_super) {
|
|
|
419
430
|
{ type: FocusMonitor },
|
|
420
431
|
{ type: undefined, decorators: [{ type: Inject, args: [MAT_MENU_PANEL,] }, { type: Optional }] }
|
|
421
432
|
]; };
|
|
433
|
+
MatMenuItem.propDecorators = {
|
|
434
|
+
role: [{ type: Input }]
|
|
435
|
+
};
|
|
422
436
|
return MatMenuItem;
|
|
423
437
|
}(_MatMenuItemMixinBase));
|
|
424
438
|
|
|
425
439
|
/**
|
|
426
440
|
* @fileoverview added by tsickle
|
|
427
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
441
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
428
442
|
*/
|
|
429
|
-
/**
|
|
443
|
+
/**
|
|
430
444
|
* Injection token to be used to override the default options for `mat-menu`.
|
|
431
|
-
|
|
445
|
+
* @type {?}
|
|
446
|
+
*/
|
|
432
447
|
var MAT_MENU_DEFAULT_OPTIONS = new InjectionToken('mat-menu-default-options', {
|
|
433
448
|
providedIn: 'root',
|
|
434
449
|
factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY
|
|
@@ -445,10 +460,11 @@ function MAT_MENU_DEFAULT_OPTIONS_FACTORY() {
|
|
|
445
460
|
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
446
461
|
};
|
|
447
462
|
}
|
|
448
|
-
/**
|
|
463
|
+
/**
|
|
449
464
|
* Start elevation for the menu panel.
|
|
450
465
|
* \@docs-private
|
|
451
|
-
|
|
466
|
+
* @type {?}
|
|
467
|
+
*/
|
|
452
468
|
var MAT_MENU_BASE_ELEVATION = 4;
|
|
453
469
|
var MatMenu = /** @class */ (function () {
|
|
454
470
|
function MatMenu(_elementRef, _ngZone, _defaultOptions) {
|
|
@@ -761,6 +777,7 @@ var MatMenu = /** @class */ (function () {
|
|
|
761
777
|
* @return {?}
|
|
762
778
|
*/
|
|
763
779
|
function (depth) {
|
|
780
|
+
// The elevation starts at the base and increases by one for each level.
|
|
764
781
|
/** @type {?} */
|
|
765
782
|
var newElevation = "mat-elevation-z" + (MAT_MENU_BASE_ELEVATION + depth);
|
|
766
783
|
/** @type {?} */
|
|
@@ -910,7 +927,7 @@ var MatMenu = /** @class */ (function () {
|
|
|
910
927
|
MatMenu.decorators = [
|
|
911
928
|
{ type: Component, args: [{selector: 'mat-menu',
|
|
912
929
|
template: "<ng-template><div class=\"mat-menu-panel\" [ngClass]=\"_classList\" (keydown)=\"_handleKeydown($event)\" (click)=\"closed.emit('click')\" [@transformMenu]=\"_panelAnimationState\" (@transformMenu.start)=\"_isAnimating = true\" (@transformMenu.done)=\"_onAnimationDone($event)\" tabindex=\"-1\" role=\"menu\"><div class=\"mat-menu-content\"><ng-content></ng-content></div></div></ng-template>",
|
|
913
|
-
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 screen and (-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 screen and (-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%)}
|
|
930
|
+
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 screen and (-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 screen and (-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}"],
|
|
914
931
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
915
932
|
encapsulation: ViewEncapsulation.None,
|
|
916
933
|
exportAs: 'matMenu',
|
|
@@ -948,11 +965,12 @@ var MatMenu = /** @class */ (function () {
|
|
|
948
965
|
|
|
949
966
|
/**
|
|
950
967
|
* @fileoverview added by tsickle
|
|
951
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
968
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
952
969
|
*/
|
|
953
|
-
/**
|
|
970
|
+
/**
|
|
954
971
|
* Injection token that determines the scroll handling while the menu is open.
|
|
955
|
-
|
|
972
|
+
* @type {?}
|
|
973
|
+
*/
|
|
956
974
|
var MAT_MENU_SCROLL_STRATEGY = new InjectionToken('mat-menu-scroll-strategy');
|
|
957
975
|
/**
|
|
958
976
|
* \@docs-private
|
|
@@ -962,24 +980,33 @@ var MAT_MENU_SCROLL_STRATEGY = new InjectionToken('mat-menu-scroll-strategy');
|
|
|
962
980
|
function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
963
981
|
return function () { return overlay.scrollStrategies.reposition(); };
|
|
964
982
|
}
|
|
965
|
-
/**
|
|
983
|
+
/**
|
|
966
984
|
* \@docs-private
|
|
967
|
-
|
|
985
|
+
* @type {?}
|
|
986
|
+
*/
|
|
968
987
|
var MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
969
988
|
provide: MAT_MENU_SCROLL_STRATEGY,
|
|
970
989
|
deps: [Overlay],
|
|
971
990
|
useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY,
|
|
972
991
|
};
|
|
973
|
-
/**
|
|
992
|
+
/**
|
|
974
993
|
* Default top padding of the menu panel.
|
|
975
|
-
|
|
994
|
+
* @type {?}
|
|
995
|
+
*/
|
|
976
996
|
var MENU_PANEL_TOP_PADDING = 8;
|
|
997
|
+
/**
|
|
998
|
+
* Options for binding a passive event listener.
|
|
999
|
+
* @type {?}
|
|
1000
|
+
*/
|
|
1001
|
+
var passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
|
|
1002
|
+
// TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors
|
|
977
1003
|
/**
|
|
978
1004
|
* This directive is intended to be used in conjunction with an mat-menu tag. It is
|
|
979
1005
|
* responsible for toggling the display of the provided menu instance.
|
|
980
1006
|
*/
|
|
981
1007
|
var MatMenuTrigger = /** @class */ (function () {
|
|
982
1008
|
function MatMenuTrigger(_overlay, _element, _viewContainerRef, scrollStrategy, _parentMenu, _menuItemInstance, _dir, _focusMonitor) {
|
|
1009
|
+
var _this = this;
|
|
983
1010
|
this._overlay = _overlay;
|
|
984
1011
|
this._element = _element;
|
|
985
1012
|
this._viewContainerRef = _viewContainerRef;
|
|
@@ -992,6 +1019,11 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
992
1019
|
this._closeSubscription = Subscription.EMPTY;
|
|
993
1020
|
this._hoverSubscription = Subscription.EMPTY;
|
|
994
1021
|
this._menuCloseSubscription = Subscription.EMPTY;
|
|
1022
|
+
/**
|
|
1023
|
+
* Handles touch start events on the trigger.
|
|
1024
|
+
* Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
|
|
1025
|
+
*/
|
|
1026
|
+
this._handleTouchStart = function () { return _this._openedBy = 'touch'; };
|
|
995
1027
|
// Tracking input type is necessary so it's possible to only auto-focus
|
|
996
1028
|
// the first item of the list when the menu is opened via the keyboard
|
|
997
1029
|
this._openedBy = null;
|
|
@@ -1004,6 +1036,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1004
1036
|
* @deprecated Switch to `menuOpened` instead
|
|
1005
1037
|
* \@breaking-change 8.0.0
|
|
1006
1038
|
*/
|
|
1039
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
1007
1040
|
this.onMenuOpen = this.menuOpened;
|
|
1008
1041
|
/**
|
|
1009
1042
|
* Event emitted when the associated menu is closed.
|
|
@@ -1014,7 +1047,9 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1014
1047
|
* @deprecated Switch to `menuClosed` instead
|
|
1015
1048
|
* \@breaking-change 8.0.0
|
|
1016
1049
|
*/
|
|
1050
|
+
// tslint:disable-next-line:no-output-on-prefix
|
|
1017
1051
|
this.onMenuClose = this.menuClosed;
|
|
1052
|
+
_element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
1018
1053
|
if (_menuItemInstance) {
|
|
1019
1054
|
_menuItemInstance._triggersSubmenu = this.triggersSubmenu();
|
|
1020
1055
|
}
|
|
@@ -1093,6 +1128,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1093
1128
|
this._overlayRef.dispose();
|
|
1094
1129
|
this._overlayRef = null;
|
|
1095
1130
|
}
|
|
1131
|
+
this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
1096
1132
|
this._cleanUpSubscriptions();
|
|
1097
1133
|
};
|
|
1098
1134
|
Object.defineProperty(MatMenuTrigger.prototype, "menuOpen", {
|
|
@@ -1160,7 +1196,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1160
1196
|
this._checkMenu();
|
|
1161
1197
|
/** @type {?} */
|
|
1162
1198
|
var overlayRef = this._createOverlay();
|
|
1163
|
-
this._setPosition(/** @type {?} */ (overlayRef.getConfig().positionStrategy));
|
|
1199
|
+
this._setPosition((/** @type {?} */ (overlayRef.getConfig().positionStrategy)));
|
|
1164
1200
|
overlayRef.attach(this._getPortal());
|
|
1165
1201
|
if (this.menu.lazyContent) {
|
|
1166
1202
|
this.menu.lazyContent.attach(this.menuData);
|
|
@@ -1206,12 +1242,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1206
1242
|
this._element.nativeElement.focus();
|
|
1207
1243
|
}
|
|
1208
1244
|
};
|
|
1245
|
+
/** Closes the menu and does the necessary cleanup. */
|
|
1209
1246
|
/**
|
|
1210
1247
|
* Closes the menu and does the necessary cleanup.
|
|
1248
|
+
* @private
|
|
1211
1249
|
* @return {?}
|
|
1212
1250
|
*/
|
|
1213
1251
|
MatMenuTrigger.prototype._destroyMenu = /**
|
|
1214
1252
|
* Closes the menu and does the necessary cleanup.
|
|
1253
|
+
* @private
|
|
1215
1254
|
* @return {?}
|
|
1216
1255
|
*/
|
|
1217
1256
|
function () {
|
|
@@ -1231,7 +1270,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1231
1270
|
.pipe(filter(function (event) { return event.toState === 'void'; }), take(1),
|
|
1232
1271
|
// Interrupt if the content got re-attached.
|
|
1233
1272
|
takeUntil(menu.lazyContent._attached))
|
|
1234
|
-
.subscribe(function () { return ((menu.lazyContent)).detach(); }, undefined, function () {
|
|
1273
|
+
.subscribe(function () { return (/** @type {?} */ (menu.lazyContent)).detach(); }, undefined, function () {
|
|
1235
1274
|
// No matter whether the content got re-attached, reset the menu.
|
|
1236
1275
|
_this._resetMenu();
|
|
1237
1276
|
});
|
|
@@ -1250,11 +1289,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1250
1289
|
/**
|
|
1251
1290
|
* This method sets the menu state to open and focuses the first item if
|
|
1252
1291
|
* the menu was opened via the keyboard.
|
|
1292
|
+
*/
|
|
1293
|
+
/**
|
|
1294
|
+
* This method sets the menu state to open and focuses the first item if
|
|
1295
|
+
* the menu was opened via the keyboard.
|
|
1296
|
+
* @private
|
|
1253
1297
|
* @return {?}
|
|
1254
1298
|
*/
|
|
1255
1299
|
MatMenuTrigger.prototype._initMenu = /**
|
|
1256
1300
|
* This method sets the menu state to open and focuses the first item if
|
|
1257
1301
|
* the menu was opened via the keyboard.
|
|
1302
|
+
* @private
|
|
1258
1303
|
* @return {?}
|
|
1259
1304
|
*/
|
|
1260
1305
|
function () {
|
|
@@ -1264,12 +1309,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1264
1309
|
this._setIsMenuOpen(true);
|
|
1265
1310
|
this.menu.focusFirstItem(this._openedBy || 'program');
|
|
1266
1311
|
};
|
|
1312
|
+
/** Updates the menu elevation based on the amount of parent menus that it has. */
|
|
1267
1313
|
/**
|
|
1268
1314
|
* Updates the menu elevation based on the amount of parent menus that it has.
|
|
1315
|
+
* @private
|
|
1269
1316
|
* @return {?}
|
|
1270
1317
|
*/
|
|
1271
1318
|
MatMenuTrigger.prototype._setMenuElevation = /**
|
|
1272
1319
|
* Updates the menu elevation based on the amount of parent menus that it has.
|
|
1320
|
+
* @private
|
|
1273
1321
|
* @return {?}
|
|
1274
1322
|
*/
|
|
1275
1323
|
function () {
|
|
@@ -1288,11 +1336,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1288
1336
|
/**
|
|
1289
1337
|
* This method resets the menu when it's closed, most importantly restoring
|
|
1290
1338
|
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1339
|
+
*/
|
|
1340
|
+
/**
|
|
1341
|
+
* This method resets the menu when it's closed, most importantly restoring
|
|
1342
|
+
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1343
|
+
* @private
|
|
1291
1344
|
* @return {?}
|
|
1292
1345
|
*/
|
|
1293
1346
|
MatMenuTrigger.prototype._resetMenu = /**
|
|
1294
1347
|
* This method resets the menu when it's closed, most importantly restoring
|
|
1295
1348
|
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1349
|
+
* @private
|
|
1296
1350
|
* @return {?}
|
|
1297
1351
|
*/
|
|
1298
1352
|
function () {
|
|
@@ -1310,11 +1364,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1310
1364
|
}
|
|
1311
1365
|
this._openedBy = null;
|
|
1312
1366
|
};
|
|
1367
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1368
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1313
1369
|
/**
|
|
1370
|
+
* @private
|
|
1314
1371
|
* @param {?} isOpen
|
|
1315
1372
|
* @return {?}
|
|
1316
1373
|
*/
|
|
1317
|
-
MatMenuTrigger.prototype._setIsMenuOpen =
|
|
1374
|
+
MatMenuTrigger.prototype._setIsMenuOpen =
|
|
1375
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1376
|
+
/**
|
|
1377
|
+
* @private
|
|
1318
1378
|
* @param {?} isOpen
|
|
1319
1379
|
* @return {?}
|
|
1320
1380
|
*/
|
|
@@ -1328,11 +1388,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1328
1388
|
/**
|
|
1329
1389
|
* This method checks that a valid instance of MatMenu has been passed into
|
|
1330
1390
|
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1391
|
+
*/
|
|
1392
|
+
/**
|
|
1393
|
+
* This method checks that a valid instance of MatMenu has been passed into
|
|
1394
|
+
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1395
|
+
* @private
|
|
1331
1396
|
* @return {?}
|
|
1332
1397
|
*/
|
|
1333
1398
|
MatMenuTrigger.prototype._checkMenu = /**
|
|
1334
1399
|
* This method checks that a valid instance of MatMenu has been passed into
|
|
1335
1400
|
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1401
|
+
* @private
|
|
1336
1402
|
* @return {?}
|
|
1337
1403
|
*/
|
|
1338
1404
|
function () {
|
|
@@ -1343,18 +1409,24 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1343
1409
|
/**
|
|
1344
1410
|
* This method creates the overlay from the provided menu's template and saves its
|
|
1345
1411
|
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1412
|
+
*/
|
|
1413
|
+
/**
|
|
1414
|
+
* This method creates the overlay from the provided menu's template and saves its
|
|
1415
|
+
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1416
|
+
* @private
|
|
1346
1417
|
* @return {?}
|
|
1347
1418
|
*/
|
|
1348
1419
|
MatMenuTrigger.prototype._createOverlay = /**
|
|
1349
1420
|
* This method creates the overlay from the provided menu's template and saves its
|
|
1350
1421
|
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1422
|
+
* @private
|
|
1351
1423
|
* @return {?}
|
|
1352
1424
|
*/
|
|
1353
1425
|
function () {
|
|
1354
1426
|
if (!this._overlayRef) {
|
|
1355
1427
|
/** @type {?} */
|
|
1356
1428
|
var config = this._getOverlayConfig();
|
|
1357
|
-
this._subscribeToPositions(/** @type {?} */ (config.positionStrategy));
|
|
1429
|
+
this._subscribeToPositions((/** @type {?} */ (config.positionStrategy)));
|
|
1358
1430
|
this._overlayRef = this._overlay.create(config);
|
|
1359
1431
|
// Consume the `keydownEvents` in order to prevent them from going to another overlay.
|
|
1360
1432
|
// Ideally we'd also have our keyboard event logic in here, however doing so will
|
|
@@ -1365,10 +1437,16 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1365
1437
|
};
|
|
1366
1438
|
/**
|
|
1367
1439
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1440
|
+
* @returns OverlayConfig
|
|
1441
|
+
*/
|
|
1442
|
+
/**
|
|
1443
|
+
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1444
|
+
* @private
|
|
1368
1445
|
* @return {?} OverlayConfig
|
|
1369
1446
|
*/
|
|
1370
1447
|
MatMenuTrigger.prototype._getOverlayConfig = /**
|
|
1371
1448
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1449
|
+
* @private
|
|
1372
1450
|
* @return {?} OverlayConfig
|
|
1373
1451
|
*/
|
|
1374
1452
|
function () {
|
|
@@ -1387,6 +1465,12 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1387
1465
|
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1388
1466
|
* on the menu based on the new position. This ensures the animation origin is always
|
|
1389
1467
|
* correct, even if a fallback position is used for the overlay.
|
|
1468
|
+
*/
|
|
1469
|
+
/**
|
|
1470
|
+
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1471
|
+
* on the menu based on the new position. This ensures the animation origin is always
|
|
1472
|
+
* correct, even if a fallback position is used for the overlay.
|
|
1473
|
+
* @private
|
|
1390
1474
|
* @param {?} position
|
|
1391
1475
|
* @return {?}
|
|
1392
1476
|
*/
|
|
@@ -1394,6 +1478,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1394
1478
|
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1395
1479
|
* on the menu based on the new position. This ensures the animation origin is always
|
|
1396
1480
|
* correct, even if a fallback position is used for the overlay.
|
|
1481
|
+
* @private
|
|
1397
1482
|
* @param {?} position
|
|
1398
1483
|
* @return {?}
|
|
1399
1484
|
*/
|
|
@@ -1404,20 +1489,27 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1404
1489
|
/** @type {?} */
|
|
1405
1490
|
var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
|
|
1406
1491
|
/** @type {?} */
|
|
1407
|
-
var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1408
|
-
((_this.menu.setPositionClasses))(posX, posY);
|
|
1492
|
+
var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1493
|
+
(/** @type {?} */ (_this.menu.setPositionClasses))(posX, posY);
|
|
1409
1494
|
});
|
|
1410
1495
|
}
|
|
1411
1496
|
};
|
|
1412
1497
|
/**
|
|
1413
1498
|
* Sets the appropriate positions on a position strategy
|
|
1414
1499
|
* so the overlay connects with the trigger correctly.
|
|
1500
|
+
* @param positionStrategy Strategy whose position to update.
|
|
1501
|
+
*/
|
|
1502
|
+
/**
|
|
1503
|
+
* Sets the appropriate positions on a position strategy
|
|
1504
|
+
* so the overlay connects with the trigger correctly.
|
|
1505
|
+
* @private
|
|
1415
1506
|
* @param {?} positionStrategy Strategy whose position to update.
|
|
1416
1507
|
* @return {?}
|
|
1417
1508
|
*/
|
|
1418
1509
|
MatMenuTrigger.prototype._setPosition = /**
|
|
1419
1510
|
* Sets the appropriate positions on a position strategy
|
|
1420
1511
|
* so the overlay connects with the trigger correctly.
|
|
1512
|
+
* @private
|
|
1421
1513
|
* @param {?} positionStrategy Strategy whose position to update.
|
|
1422
1514
|
* @return {?}
|
|
1423
1515
|
*/
|
|
@@ -1458,32 +1550,38 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1458
1550
|
}
|
|
1459
1551
|
]);
|
|
1460
1552
|
};
|
|
1553
|
+
/** Cleans up the active subscriptions. */
|
|
1461
1554
|
/**
|
|
1462
1555
|
* Cleans up the active subscriptions.
|
|
1556
|
+
* @private
|
|
1463
1557
|
* @return {?}
|
|
1464
1558
|
*/
|
|
1465
1559
|
MatMenuTrigger.prototype._cleanUpSubscriptions = /**
|
|
1466
1560
|
* Cleans up the active subscriptions.
|
|
1561
|
+
* @private
|
|
1467
1562
|
* @return {?}
|
|
1468
1563
|
*/
|
|
1469
1564
|
function () {
|
|
1470
1565
|
this._closeSubscription.unsubscribe();
|
|
1471
1566
|
this._hoverSubscription.unsubscribe();
|
|
1472
1567
|
};
|
|
1568
|
+
/** Returns a stream that emits whenever an action that should close the menu occurs. */
|
|
1473
1569
|
/**
|
|
1474
1570
|
* Returns a stream that emits whenever an action that should close the menu occurs.
|
|
1571
|
+
* @private
|
|
1475
1572
|
* @return {?}
|
|
1476
1573
|
*/
|
|
1477
1574
|
MatMenuTrigger.prototype._menuClosingActions = /**
|
|
1478
1575
|
* Returns a stream that emits whenever an action that should close the menu occurs.
|
|
1576
|
+
* @private
|
|
1479
1577
|
* @return {?}
|
|
1480
1578
|
*/
|
|
1481
1579
|
function () {
|
|
1482
1580
|
var _this = this;
|
|
1483
1581
|
/** @type {?} */
|
|
1484
|
-
var backdrop = /** @type {?} */ (
|
|
1582
|
+
var backdrop = (/** @type {?} */ (this._overlayRef)).backdropClick();
|
|
1485
1583
|
/** @type {?} */
|
|
1486
|
-
var detachments = /** @type {?} */ (
|
|
1584
|
+
var detachments = (/** @type {?} */ (this._overlayRef)).detachments();
|
|
1487
1585
|
/** @type {?} */
|
|
1488
1586
|
var parentClose = this._parentMenu ? this._parentMenu.closed : of();
|
|
1489
1587
|
/** @type {?} */
|
|
@@ -1554,12 +1652,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1554
1652
|
this.toggleMenu();
|
|
1555
1653
|
}
|
|
1556
1654
|
};
|
|
1655
|
+
/** Handles the cases where the user hovers over the trigger. */
|
|
1557
1656
|
/**
|
|
1558
1657
|
* Handles the cases where the user hovers over the trigger.
|
|
1658
|
+
* @private
|
|
1559
1659
|
* @return {?}
|
|
1560
1660
|
*/
|
|
1561
1661
|
MatMenuTrigger.prototype._handleHover = /**
|
|
1562
1662
|
* Handles the cases where the user hovers over the trigger.
|
|
1663
|
+
* @private
|
|
1563
1664
|
* @return {?}
|
|
1564
1665
|
*/
|
|
1565
1666
|
function () {
|
|
@@ -1590,12 +1691,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1590
1691
|
}
|
|
1591
1692
|
});
|
|
1592
1693
|
};
|
|
1694
|
+
/** Gets the portal that should be attached to the overlay. */
|
|
1593
1695
|
/**
|
|
1594
1696
|
* Gets the portal that should be attached to the overlay.
|
|
1697
|
+
* @private
|
|
1595
1698
|
* @return {?}
|
|
1596
1699
|
*/
|
|
1597
1700
|
MatMenuTrigger.prototype._getPortal = /**
|
|
1598
1701
|
* Gets the portal that should be attached to the overlay.
|
|
1702
|
+
* @private
|
|
1599
1703
|
* @return {?}
|
|
1600
1704
|
*/
|
|
1601
1705
|
function () {
|
|
@@ -1614,7 +1718,6 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1614
1718
|
'aria-haspopup': 'true',
|
|
1615
1719
|
'[attr.aria-expanded]': 'menuOpen || null',
|
|
1616
1720
|
'(mousedown)': '_handleMousedown($event)',
|
|
1617
|
-
'(touchstart)': '_openedBy = "touch"',
|
|
1618
1721
|
'(keydown)': '_handleKeydown($event)',
|
|
1619
1722
|
'(click)': '_handleClick($event)',
|
|
1620
1723
|
},
|
|
@@ -1646,7 +1749,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1646
1749
|
|
|
1647
1750
|
/**
|
|
1648
1751
|
* @fileoverview added by tsickle
|
|
1649
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1752
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1650
1753
|
*/
|
|
1651
1754
|
var MatMenuModule = /** @class */ (function () {
|
|
1652
1755
|
function MatMenuModule() {
|
|
@@ -1669,17 +1772,17 @@ var MatMenuModule = /** @class */ (function () {
|
|
|
1669
1772
|
|
|
1670
1773
|
/**
|
|
1671
1774
|
* @fileoverview added by tsickle
|
|
1672
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1775
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1673
1776
|
*/
|
|
1674
1777
|
|
|
1675
1778
|
/**
|
|
1676
1779
|
* @fileoverview added by tsickle
|
|
1677
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1780
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1678
1781
|
*/
|
|
1679
1782
|
|
|
1680
1783
|
/**
|
|
1681
1784
|
* @fileoverview added by tsickle
|
|
1682
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1785
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1683
1786
|
*/
|
|
1684
1787
|
|
|
1685
1788
|
export { MAT_MENU_SCROLL_STRATEGY, MatMenuModule, MatMenu, MAT_MENU_DEFAULT_OPTIONS, MatMenuItem, MatMenuTrigger, matMenuAnimations, fadeInItems, transformMenu, MatMenuContent, MAT_MENU_DEFAULT_OPTIONS_FACTORY as ɵa24, MatMenuItemBase as ɵb24, _MatMenuItemMixinBase as ɵc24, MAT_MENU_PANEL as ɵf24, MAT_MENU_SCROLL_STRATEGY_FACTORY as ɵd24, MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER as ɵe24 };
|