@angular/material 7.1.0 → 7.2.2
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 +50 -19
- package/autocomplete/typings/index.d.ts +0 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/autocomplete/typings/public-api.d.ts +1 -0
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-ref.d.ts +2 -0
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +139 -39
- 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 +67 -22
- 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 +45 -14
- 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 +126 -38
- 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 +190 -127
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +205 -42
- 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 +52 -26
- 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 +123 -34
- 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 +67 -16
- 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 +288 -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 +159 -26
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -2
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +176 -70
- 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 +25 -8
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +32 -13
- 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 +30 -14
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +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 +186 -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 +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 +31 -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 +88 -20
- 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 +69 -20
- 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 +29 -20
- 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 +48 -15
- 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 +162 -61
- 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 +62 -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 +2927 -995
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +18 -18
- 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 +2 -2
- 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/core/typings/ripple/ripple.d.ts +1 -1
- package/datepicker/typings/calendar.d.ts +2 -2
- package/datepicker/typings/index.metadata.json +1 -1
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +73 -36
- 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 +44 -23
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +27 -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 -30
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +147 -128
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +103 -37
- 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 +56 -29
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +95 -35
- 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 +144 -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 +118 -24
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +114 -67
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +17 -9
- 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 +112 -50
- 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 +51 -23
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +38 -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 +32 -23
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +51 -18
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +112 -49
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +49 -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 +141 -41
- 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 +68 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +46 -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 +129 -41
- 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 +207 -44
- 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 +54 -29
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +126 -37
- 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 +290 -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 +161 -27
- 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 +175 -69
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +27 -10
- 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 +189 -52
- 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 +91 -23
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +70 -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 +32 -23
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +51 -18
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +156 -55
- 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 +64 -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/form-field/typings/prefix.d.ts +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/icon-registry.d.ts +3 -2
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/list/typings/list.d.ts +16 -5
- package/list/typings/selection-list.d.ts +1 -0
- 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/menu/typings/menu-trigger.d.ts +1 -1
- package/package.json +5 -5
- 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/table/typings/index.metadata.json +1 -1
- package/table/typings/table-data-source.d.ts +2 -0
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-group.d.ts +2 -1
- package/tabs/typings/tab-header.d.ts +8 -4
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tooltip/typings/tooltip.d.ts +2 -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 +0 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/autocomplete/public-api.d.ts +1 -0
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- 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 +2 -2
- 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/core/ripple/ripple.d.ts +1 -1
- package/typings/datepicker/calendar.d.ts +2 -2
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +0 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/public-api.d.ts +1 -0
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- 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 +2 -2
- 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/core/ripple/ripple.d.ts +1 -1
- package/typings/esm5/datepicker/calendar.d.ts +2 -2
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- 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/form-field/prefix.d.ts +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/icon-registry.d.ts +3 -2
- 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/list/list.d.ts +16 -5
- package/typings/esm5/list/selection-list.d.ts +1 -0
- 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/menu/menu-trigger.d.ts +1 -1
- 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/table/index.metadata.json +1 -1
- package/typings/esm5/table/table-data-source.d.ts +2 -0
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-group.d.ts +2 -1
- package/typings/esm5/tabs/tab-header.d.ts +8 -4
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tooltip/tooltip.d.ts +2 -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/form-field/prefix.d.ts +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/icon-registry.d.ts +3 -2
- 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/list/list.d.ts +16 -5
- package/typings/list/selection-list.d.ts +1 -0
- 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/menu/menu-trigger.d.ts +1 -1
- 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/table/index.metadata.json +1 -1
- package/typings/table/table-data-source.d.ts +2 -0
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-group.d.ts +2 -1
- package/typings/tabs/tab-header.d.ts +8 -4
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tooltip/tooltip.d.ts +2 -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.
|
|
@@ -1015,7 +1047,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1015
1047
|
this._focusMonitor = _focusMonitor;
|
|
1016
1048
|
this._overlayRef = null;
|
|
1017
1049
|
this._menuOpen = false;
|
|
1018
|
-
this.
|
|
1050
|
+
this._closingActionsSubscription = rxjs.Subscription.EMPTY;
|
|
1019
1051
|
this._hoverSubscription = rxjs.Subscription.EMPTY;
|
|
1020
1052
|
this._menuCloseSubscription = rxjs.Subscription.EMPTY;
|
|
1021
1053
|
/**
|
|
@@ -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) {
|
|
@@ -1127,6 +1161,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1127
1161
|
}
|
|
1128
1162
|
this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);
|
|
1129
1163
|
this._cleanUpSubscriptions();
|
|
1164
|
+
this._closingActionsSubscription.unsubscribe();
|
|
1130
1165
|
};
|
|
1131
1166
|
Object.defineProperty(MatMenuTrigger.prototype, "menuOpen", {
|
|
1132
1167
|
/** Whether the menu is open. */
|
|
@@ -1193,12 +1228,16 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1193
1228
|
this._checkMenu();
|
|
1194
1229
|
/** @type {?} */
|
|
1195
1230
|
var overlayRef = this._createOverlay();
|
|
1196
|
-
|
|
1231
|
+
/** @type {?} */
|
|
1232
|
+
var overlayConfig = overlayRef.getConfig();
|
|
1233
|
+
this._setPosition((/** @type {?} */ (overlayConfig.positionStrategy)));
|
|
1234
|
+
overlayConfig.hasBackdrop = this.menu.hasBackdrop == null ? !this.triggersSubmenu() :
|
|
1235
|
+
this.menu.hasBackdrop;
|
|
1197
1236
|
overlayRef.attach(this._getPortal());
|
|
1198
1237
|
if (this.menu.lazyContent) {
|
|
1199
1238
|
this.menu.lazyContent.attach(this.menuData);
|
|
1200
1239
|
}
|
|
1201
|
-
this.
|
|
1240
|
+
this._closingActionsSubscription = this._menuClosingActions().subscribe(function () { return _this.closeMenu(); });
|
|
1202
1241
|
this._initMenu();
|
|
1203
1242
|
if (this.menu instanceof MatMenu) {
|
|
1204
1243
|
this.menu._startAnimation();
|
|
@@ -1239,12 +1278,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1239
1278
|
this._element.nativeElement.focus();
|
|
1240
1279
|
}
|
|
1241
1280
|
};
|
|
1281
|
+
/** Closes the menu and does the necessary cleanup. */
|
|
1242
1282
|
/**
|
|
1243
1283
|
* Closes the menu and does the necessary cleanup.
|
|
1284
|
+
* @private
|
|
1244
1285
|
* @return {?}
|
|
1245
1286
|
*/
|
|
1246
1287
|
MatMenuTrigger.prototype._destroyMenu = /**
|
|
1247
1288
|
* Closes the menu and does the necessary cleanup.
|
|
1289
|
+
* @private
|
|
1248
1290
|
* @return {?}
|
|
1249
1291
|
*/
|
|
1250
1292
|
function () {
|
|
@@ -1254,7 +1296,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1254
1296
|
}
|
|
1255
1297
|
/** @type {?} */
|
|
1256
1298
|
var menu = this.menu;
|
|
1257
|
-
this.
|
|
1299
|
+
this._closingActionsSubscription.unsubscribe();
|
|
1258
1300
|
this._overlayRef.detach();
|
|
1259
1301
|
if (menu instanceof MatMenu) {
|
|
1260
1302
|
menu._resetAnimation();
|
|
@@ -1264,7 +1306,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1264
1306
|
.pipe(operators.filter(function (event) { return event.toState === 'void'; }), operators.take(1),
|
|
1265
1307
|
// Interrupt if the content got re-attached.
|
|
1266
1308
|
operators.takeUntil(menu.lazyContent._attached))
|
|
1267
|
-
.subscribe(function () { return ((menu.lazyContent)).detach(); }, undefined, function () {
|
|
1309
|
+
.subscribe(function () { return (/** @type {?} */ (menu.lazyContent)).detach(); }, undefined, function () {
|
|
1268
1310
|
// No matter whether the content got re-attached, reset the menu.
|
|
1269
1311
|
_this._resetMenu();
|
|
1270
1312
|
});
|
|
@@ -1283,11 +1325,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1283
1325
|
/**
|
|
1284
1326
|
* This method sets the menu state to open and focuses the first item if
|
|
1285
1327
|
* the menu was opened via the keyboard.
|
|
1328
|
+
*/
|
|
1329
|
+
/**
|
|
1330
|
+
* This method sets the menu state to open and focuses the first item if
|
|
1331
|
+
* the menu was opened via the keyboard.
|
|
1332
|
+
* @private
|
|
1286
1333
|
* @return {?}
|
|
1287
1334
|
*/
|
|
1288
1335
|
MatMenuTrigger.prototype._initMenu = /**
|
|
1289
1336
|
* This method sets the menu state to open and focuses the first item if
|
|
1290
1337
|
* the menu was opened via the keyboard.
|
|
1338
|
+
* @private
|
|
1291
1339
|
* @return {?}
|
|
1292
1340
|
*/
|
|
1293
1341
|
function () {
|
|
@@ -1297,12 +1345,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1297
1345
|
this._setIsMenuOpen(true);
|
|
1298
1346
|
this.menu.focusFirstItem(this._openedBy || 'program');
|
|
1299
1347
|
};
|
|
1348
|
+
/** Updates the menu elevation based on the amount of parent menus that it has. */
|
|
1300
1349
|
/**
|
|
1301
1350
|
* Updates the menu elevation based on the amount of parent menus that it has.
|
|
1351
|
+
* @private
|
|
1302
1352
|
* @return {?}
|
|
1303
1353
|
*/
|
|
1304
1354
|
MatMenuTrigger.prototype._setMenuElevation = /**
|
|
1305
1355
|
* Updates the menu elevation based on the amount of parent menus that it has.
|
|
1356
|
+
* @private
|
|
1306
1357
|
* @return {?}
|
|
1307
1358
|
*/
|
|
1308
1359
|
function () {
|
|
@@ -1321,11 +1372,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1321
1372
|
/**
|
|
1322
1373
|
* This method resets the menu when it's closed, most importantly restoring
|
|
1323
1374
|
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1375
|
+
*/
|
|
1376
|
+
/**
|
|
1377
|
+
* This method resets the menu when it's closed, most importantly restoring
|
|
1378
|
+
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1379
|
+
* @private
|
|
1324
1380
|
* @return {?}
|
|
1325
1381
|
*/
|
|
1326
1382
|
MatMenuTrigger.prototype._resetMenu = /**
|
|
1327
1383
|
* This method resets the menu when it's closed, most importantly restoring
|
|
1328
1384
|
* focus to the menu trigger if the menu was opened via the keyboard.
|
|
1385
|
+
* @private
|
|
1329
1386
|
* @return {?}
|
|
1330
1387
|
*/
|
|
1331
1388
|
function () {
|
|
@@ -1343,11 +1400,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1343
1400
|
}
|
|
1344
1401
|
this._openedBy = null;
|
|
1345
1402
|
};
|
|
1403
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1404
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1346
1405
|
/**
|
|
1406
|
+
* @private
|
|
1347
1407
|
* @param {?} isOpen
|
|
1348
1408
|
* @return {?}
|
|
1349
1409
|
*/
|
|
1350
|
-
MatMenuTrigger.prototype._setIsMenuOpen =
|
|
1410
|
+
MatMenuTrigger.prototype._setIsMenuOpen =
|
|
1411
|
+
// set state rather than toggle to support triggers sharing a menu
|
|
1412
|
+
/**
|
|
1413
|
+
* @private
|
|
1351
1414
|
* @param {?} isOpen
|
|
1352
1415
|
* @return {?}
|
|
1353
1416
|
*/
|
|
@@ -1361,11 +1424,17 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1361
1424
|
/**
|
|
1362
1425
|
* This method checks that a valid instance of MatMenu has been passed into
|
|
1363
1426
|
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1427
|
+
*/
|
|
1428
|
+
/**
|
|
1429
|
+
* This method checks that a valid instance of MatMenu has been passed into
|
|
1430
|
+
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1431
|
+
* @private
|
|
1364
1432
|
* @return {?}
|
|
1365
1433
|
*/
|
|
1366
1434
|
MatMenuTrigger.prototype._checkMenu = /**
|
|
1367
1435
|
* This method checks that a valid instance of MatMenu has been passed into
|
|
1368
1436
|
* matMenuTriggerFor. If not, an exception is thrown.
|
|
1437
|
+
* @private
|
|
1369
1438
|
* @return {?}
|
|
1370
1439
|
*/
|
|
1371
1440
|
function () {
|
|
@@ -1376,18 +1445,24 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1376
1445
|
/**
|
|
1377
1446
|
* This method creates the overlay from the provided menu's template and saves its
|
|
1378
1447
|
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1448
|
+
*/
|
|
1449
|
+
/**
|
|
1450
|
+
* This method creates the overlay from the provided menu's template and saves its
|
|
1451
|
+
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1452
|
+
* @private
|
|
1379
1453
|
* @return {?}
|
|
1380
1454
|
*/
|
|
1381
1455
|
MatMenuTrigger.prototype._createOverlay = /**
|
|
1382
1456
|
* This method creates the overlay from the provided menu's template and saves its
|
|
1383
1457
|
* OverlayRef so that it can be attached to the DOM when openMenu is called.
|
|
1458
|
+
* @private
|
|
1384
1459
|
* @return {?}
|
|
1385
1460
|
*/
|
|
1386
1461
|
function () {
|
|
1387
1462
|
if (!this._overlayRef) {
|
|
1388
1463
|
/** @type {?} */
|
|
1389
1464
|
var config = this._getOverlayConfig();
|
|
1390
|
-
this._subscribeToPositions(/** @type {?} */ (config.positionStrategy));
|
|
1465
|
+
this._subscribeToPositions((/** @type {?} */ (config.positionStrategy)));
|
|
1391
1466
|
this._overlayRef = this._overlay.create(config);
|
|
1392
1467
|
// Consume the `keydownEvents` in order to prevent them from going to another overlay.
|
|
1393
1468
|
// Ideally we'd also have our keyboard event logic in here, however doing so will
|
|
@@ -1398,10 +1473,16 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1398
1473
|
};
|
|
1399
1474
|
/**
|
|
1400
1475
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1476
|
+
* @returns OverlayConfig
|
|
1477
|
+
*/
|
|
1478
|
+
/**
|
|
1479
|
+
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1480
|
+
* @private
|
|
1401
1481
|
* @return {?} OverlayConfig
|
|
1402
1482
|
*/
|
|
1403
1483
|
MatMenuTrigger.prototype._getOverlayConfig = /**
|
|
1404
1484
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
1485
|
+
* @private
|
|
1405
1486
|
* @return {?} OverlayConfig
|
|
1406
1487
|
*/
|
|
1407
1488
|
function () {
|
|
@@ -1410,7 +1491,6 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1410
1491
|
.flexibleConnectedTo(this._element)
|
|
1411
1492
|
.withLockedPosition()
|
|
1412
1493
|
.withTransformOriginOn('.mat-menu-panel'),
|
|
1413
|
-
hasBackdrop: this.menu.hasBackdrop == null ? !this.triggersSubmenu() : this.menu.hasBackdrop,
|
|
1414
1494
|
backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop',
|
|
1415
1495
|
scrollStrategy: this._scrollStrategy(),
|
|
1416
1496
|
direction: this._dir
|
|
@@ -1420,6 +1500,12 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1420
1500
|
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1421
1501
|
* on the menu based on the new position. This ensures the animation origin is always
|
|
1422
1502
|
* correct, even if a fallback position is used for the overlay.
|
|
1503
|
+
*/
|
|
1504
|
+
/**
|
|
1505
|
+
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1506
|
+
* on the menu based on the new position. This ensures the animation origin is always
|
|
1507
|
+
* correct, even if a fallback position is used for the overlay.
|
|
1508
|
+
* @private
|
|
1423
1509
|
* @param {?} position
|
|
1424
1510
|
* @return {?}
|
|
1425
1511
|
*/
|
|
@@ -1427,6 +1513,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1427
1513
|
* Listens to changes in the position of the overlay and sets the correct classes
|
|
1428
1514
|
* on the menu based on the new position. This ensures the animation origin is always
|
|
1429
1515
|
* correct, even if a fallback position is used for the overlay.
|
|
1516
|
+
* @private
|
|
1430
1517
|
* @param {?} position
|
|
1431
1518
|
* @return {?}
|
|
1432
1519
|
*/
|
|
@@ -1437,20 +1524,27 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1437
1524
|
/** @type {?} */
|
|
1438
1525
|
var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
|
|
1439
1526
|
/** @type {?} */
|
|
1440
|
-
var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1441
|
-
((_this.menu.setPositionClasses))(posX, posY);
|
|
1527
|
+
var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';
|
|
1528
|
+
(/** @type {?} */ (_this.menu.setPositionClasses))(posX, posY);
|
|
1442
1529
|
});
|
|
1443
1530
|
}
|
|
1444
1531
|
};
|
|
1445
1532
|
/**
|
|
1446
1533
|
* Sets the appropriate positions on a position strategy
|
|
1447
1534
|
* so the overlay connects with the trigger correctly.
|
|
1535
|
+
* @param positionStrategy Strategy whose position to update.
|
|
1536
|
+
*/
|
|
1537
|
+
/**
|
|
1538
|
+
* Sets the appropriate positions on a position strategy
|
|
1539
|
+
* so the overlay connects with the trigger correctly.
|
|
1540
|
+
* @private
|
|
1448
1541
|
* @param {?} positionStrategy Strategy whose position to update.
|
|
1449
1542
|
* @return {?}
|
|
1450
1543
|
*/
|
|
1451
1544
|
MatMenuTrigger.prototype._setPosition = /**
|
|
1452
1545
|
* Sets the appropriate positions on a position strategy
|
|
1453
1546
|
* so the overlay connects with the trigger correctly.
|
|
1547
|
+
* @private
|
|
1454
1548
|
* @param {?} positionStrategy Strategy whose position to update.
|
|
1455
1549
|
* @return {?}
|
|
1456
1550
|
*/
|
|
@@ -1491,32 +1585,38 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1491
1585
|
}
|
|
1492
1586
|
]);
|
|
1493
1587
|
};
|
|
1588
|
+
/** Cleans up the active subscriptions. */
|
|
1494
1589
|
/**
|
|
1495
1590
|
* Cleans up the active subscriptions.
|
|
1591
|
+
* @private
|
|
1496
1592
|
* @return {?}
|
|
1497
1593
|
*/
|
|
1498
1594
|
MatMenuTrigger.prototype._cleanUpSubscriptions = /**
|
|
1499
1595
|
* Cleans up the active subscriptions.
|
|
1596
|
+
* @private
|
|
1500
1597
|
* @return {?}
|
|
1501
1598
|
*/
|
|
1502
1599
|
function () {
|
|
1503
|
-
this.
|
|
1600
|
+
this._closingActionsSubscription.unsubscribe();
|
|
1504
1601
|
this._hoverSubscription.unsubscribe();
|
|
1505
1602
|
};
|
|
1603
|
+
/** Returns a stream that emits whenever an action that should close the menu occurs. */
|
|
1506
1604
|
/**
|
|
1507
1605
|
* Returns a stream that emits whenever an action that should close the menu occurs.
|
|
1606
|
+
* @private
|
|
1508
1607
|
* @return {?}
|
|
1509
1608
|
*/
|
|
1510
1609
|
MatMenuTrigger.prototype._menuClosingActions = /**
|
|
1511
1610
|
* Returns a stream that emits whenever an action that should close the menu occurs.
|
|
1611
|
+
* @private
|
|
1512
1612
|
* @return {?}
|
|
1513
1613
|
*/
|
|
1514
1614
|
function () {
|
|
1515
1615
|
var _this = this;
|
|
1516
1616
|
/** @type {?} */
|
|
1517
|
-
var backdrop = /** @type {?} */ (
|
|
1617
|
+
var backdrop = (/** @type {?} */ (this._overlayRef)).backdropClick();
|
|
1518
1618
|
/** @type {?} */
|
|
1519
|
-
var detachments = /** @type {?} */ (
|
|
1619
|
+
var detachments = (/** @type {?} */ (this._overlayRef)).detachments();
|
|
1520
1620
|
/** @type {?} */
|
|
1521
1621
|
var parentClose = this._parentMenu ? this._parentMenu.closed : rxjs.of();
|
|
1522
1622
|
/** @type {?} */
|
|
@@ -1587,12 +1687,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1587
1687
|
this.toggleMenu();
|
|
1588
1688
|
}
|
|
1589
1689
|
};
|
|
1690
|
+
/** Handles the cases where the user hovers over the trigger. */
|
|
1590
1691
|
/**
|
|
1591
1692
|
* Handles the cases where the user hovers over the trigger.
|
|
1693
|
+
* @private
|
|
1592
1694
|
* @return {?}
|
|
1593
1695
|
*/
|
|
1594
1696
|
MatMenuTrigger.prototype._handleHover = /**
|
|
1595
1697
|
* Handles the cases where the user hovers over the trigger.
|
|
1698
|
+
* @private
|
|
1596
1699
|
* @return {?}
|
|
1597
1700
|
*/
|
|
1598
1701
|
function () {
|
|
@@ -1623,12 +1726,15 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1623
1726
|
}
|
|
1624
1727
|
});
|
|
1625
1728
|
};
|
|
1729
|
+
/** Gets the portal that should be attached to the overlay. */
|
|
1626
1730
|
/**
|
|
1627
1731
|
* Gets the portal that should be attached to the overlay.
|
|
1732
|
+
* @private
|
|
1628
1733
|
* @return {?}
|
|
1629
1734
|
*/
|
|
1630
1735
|
MatMenuTrigger.prototype._getPortal = /**
|
|
1631
1736
|
* Gets the portal that should be attached to the overlay.
|
|
1737
|
+
* @private
|
|
1632
1738
|
* @return {?}
|
|
1633
1739
|
*/
|
|
1634
1740
|
function () {
|
|
@@ -1678,7 +1784,7 @@ var MatMenuTrigger = /** @class */ (function () {
|
|
|
1678
1784
|
|
|
1679
1785
|
/**
|
|
1680
1786
|
* @fileoverview added by tsickle
|
|
1681
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1787
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1682
1788
|
*/
|
|
1683
1789
|
var MatMenuModule = /** @class */ (function () {
|
|
1684
1790
|
function MatMenuModule() {
|
|
@@ -1709,12 +1815,12 @@ exports.matMenuAnimations = matMenuAnimations;
|
|
|
1709
1815
|
exports.fadeInItems = fadeInItems;
|
|
1710
1816
|
exports.transformMenu = transformMenu;
|
|
1711
1817
|
exports.MatMenuContent = MatMenuContent;
|
|
1712
|
-
exports.ɵ
|
|
1713
|
-
exports.ɵ
|
|
1714
|
-
exports.ɵ
|
|
1715
|
-
exports.ɵ
|
|
1716
|
-
exports.ɵ
|
|
1717
|
-
exports.ɵ
|
|
1818
|
+
exports.ɵa21 = MAT_MENU_DEFAULT_OPTIONS_FACTORY;
|
|
1819
|
+
exports.ɵb21 = MatMenuItemBase;
|
|
1820
|
+
exports.ɵc21 = _MatMenuItemMixinBase;
|
|
1821
|
+
exports.ɵf21 = MAT_MENU_PANEL;
|
|
1822
|
+
exports.ɵd21 = MAT_MENU_SCROLL_STRATEGY_FACTORY;
|
|
1823
|
+
exports.ɵe21 = MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER;
|
|
1718
1824
|
|
|
1719
1825
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1720
1826
|
|