@angular/material 7.0.4 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/_theming.scss +61 -44
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +126 -32
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +68 -21
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +36 -13
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +124 -34
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +189 -126
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +231 -53
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +53 -27
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +121 -32
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +66 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +277 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +69 -21
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +171 -66
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +31 -12
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +189 -51
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +30 -14
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +91 -21
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +71 -19
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -35
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +29 -9
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +170 -68
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +53 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2853 -1010
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +60 -29
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +45 -22
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +20 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +148 -129
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +124 -41
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +58 -31
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +94 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +136 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +47 -22
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +109 -63
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +116 -53
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +54 -24
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +41 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -32
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -11
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +113 -53
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +43 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +128 -34
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +70 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +38 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +233 -55
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +56 -31
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +125 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +279 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +72 -24
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +170 -65
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +193 -55
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +94 -24
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +73 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -38
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -11
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +162 -61
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +55 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
|
@@ -42,12 +42,13 @@ 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
|
* Autocomplete IDs need to be unique across components, so this counter exists outside of
|
|
49
49
|
* the component definition.
|
|
50
|
-
|
|
50
|
+
* @type {?}
|
|
51
|
+
*/
|
|
51
52
|
var _uniqueAutocompleteIdCounter = 0;
|
|
52
53
|
/**
|
|
53
54
|
* Event object that is emitted when an autocomplete option is selected.
|
|
@@ -62,10 +63,13 @@ MatAutocompleteSelectedEvent = /** @class */ (function () {
|
|
|
62
63
|
}
|
|
63
64
|
return MatAutocompleteSelectedEvent;
|
|
64
65
|
}());
|
|
66
|
+
// Boilerplate for applying mixins to MatAutocomplete.
|
|
65
67
|
/**
|
|
66
68
|
* \@docs-private
|
|
67
69
|
*/
|
|
68
|
-
var
|
|
70
|
+
var
|
|
71
|
+
// Boilerplate for applying mixins to MatAutocomplete.
|
|
72
|
+
/**
|
|
69
73
|
* \@docs-private
|
|
70
74
|
*/
|
|
71
75
|
MatAutocompleteBase = /** @class */ (function () {
|
|
@@ -75,9 +79,10 @@ MatAutocompleteBase = /** @class */ (function () {
|
|
|
75
79
|
}());
|
|
76
80
|
/** @type {?} */
|
|
77
81
|
var _MatAutocompleteMixinBase = core$1.mixinDisableRipple(MatAutocompleteBase);
|
|
78
|
-
/**
|
|
82
|
+
/**
|
|
79
83
|
* Injection token to be used to override the default options for `mat-autocomplete`.
|
|
80
|
-
|
|
84
|
+
* @type {?}
|
|
85
|
+
*/
|
|
81
86
|
var MAT_AUTOCOMPLETE_DEFAULT_OPTIONS = new core.InjectionToken('mat-autocomplete-default-options', {
|
|
82
87
|
providedIn: 'root',
|
|
83
88
|
factory: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,
|
|
@@ -254,7 +259,7 @@ var MatAutocomplete = /** @class */ (function (_super) {
|
|
|
254
259
|
MatAutocomplete.decorators = [
|
|
255
260
|
{ type: core.Component, args: [{selector: 'mat-autocomplete',
|
|
256
261
|
template: "<ng-template><div class=\"mat-autocomplete-panel\" role=\"listbox\" [id]=\"id\" [ngClass]=\"_classList\" #panel><ng-content></ng-content></div></ng-template>",
|
|
257
|
-
styles: [".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}@media
|
|
262
|
+
styles: [".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}@media (-ms-high-contrast:active){.mat-autocomplete-panel{outline:solid 1px}}"],
|
|
258
263
|
encapsulation: core.ViewEncapsulation.None,
|
|
259
264
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
260
265
|
exportAs: 'matAutocomplete',
|
|
@@ -291,7 +296,7 @@ var MatAutocomplete = /** @class */ (function (_super) {
|
|
|
291
296
|
|
|
292
297
|
/**
|
|
293
298
|
* @fileoverview added by tsickle
|
|
294
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
299
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
295
300
|
*/
|
|
296
301
|
/**
|
|
297
302
|
* Directive applied to an element to make it usable
|
|
@@ -316,19 +321,22 @@ var MatAutocompleteOrigin = /** @class */ (function () {
|
|
|
316
321
|
|
|
317
322
|
/**
|
|
318
323
|
* @fileoverview added by tsickle
|
|
319
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
324
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
320
325
|
*/
|
|
321
|
-
/**
|
|
326
|
+
/**
|
|
322
327
|
* The height of each autocomplete option.
|
|
323
|
-
|
|
328
|
+
* @type {?}
|
|
329
|
+
*/
|
|
324
330
|
var AUTOCOMPLETE_OPTION_HEIGHT = 48;
|
|
325
|
-
/**
|
|
331
|
+
/**
|
|
326
332
|
* The total height of the autocomplete panel.
|
|
327
|
-
|
|
333
|
+
* @type {?}
|
|
334
|
+
*/
|
|
328
335
|
var AUTOCOMPLETE_PANEL_HEIGHT = 256;
|
|
329
|
-
/**
|
|
336
|
+
/**
|
|
330
337
|
* Injection token that determines the scroll handling while the autocomplete panel is open.
|
|
331
|
-
|
|
338
|
+
* @type {?}
|
|
339
|
+
*/
|
|
332
340
|
var MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new core.InjectionToken('mat-autocomplete-scroll-strategy');
|
|
333
341
|
/**
|
|
334
342
|
* \@docs-private
|
|
@@ -338,18 +346,20 @@ var MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new core.InjectionToken('mat-autocomplete
|
|
|
338
346
|
function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay$$1) {
|
|
339
347
|
return function () { return overlay$$1.scrollStrategies.reposition(); };
|
|
340
348
|
}
|
|
341
|
-
/**
|
|
349
|
+
/**
|
|
342
350
|
* \@docs-private
|
|
343
|
-
|
|
351
|
+
* @type {?}
|
|
352
|
+
*/
|
|
344
353
|
var MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
345
354
|
provide: MAT_AUTOCOMPLETE_SCROLL_STRATEGY,
|
|
346
355
|
deps: [overlay.Overlay],
|
|
347
356
|
useFactory: MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
|
|
348
357
|
};
|
|
349
|
-
/**
|
|
358
|
+
/**
|
|
350
359
|
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
|
351
360
|
* \@docs-private
|
|
352
|
-
|
|
361
|
+
* @type {?}
|
|
362
|
+
*/
|
|
353
363
|
var MAT_AUTOCOMPLETE_VALUE_ACCESSOR = {
|
|
354
364
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
355
365
|
useExisting: core.forwardRef(function () { return MatAutocompleteTrigger; }),
|
|
@@ -552,7 +562,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
552
562
|
*/
|
|
553
563
|
function () {
|
|
554
564
|
if (this._overlayAttached) {
|
|
555
|
-
/** @type {?} */ (
|
|
565
|
+
(/** @type {?} */ (this._overlayRef)).updatePosition();
|
|
556
566
|
}
|
|
557
567
|
};
|
|
558
568
|
Object.defineProperty(MatAutocompleteTrigger.prototype, "panelClosingActions", {
|
|
@@ -591,12 +601,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
591
601
|
enumerable: true,
|
|
592
602
|
configurable: true
|
|
593
603
|
});
|
|
604
|
+
/** Stream of clicks outside of the autocomplete panel. */
|
|
594
605
|
/**
|
|
595
606
|
* Stream of clicks outside of the autocomplete panel.
|
|
607
|
+
* @private
|
|
596
608
|
* @return {?}
|
|
597
609
|
*/
|
|
598
610
|
MatAutocompleteTrigger.prototype._getOutsideClickStream = /**
|
|
599
611
|
* Stream of clicks outside of the autocomplete panel.
|
|
612
|
+
* @private
|
|
600
613
|
* @return {?}
|
|
601
614
|
*/
|
|
602
615
|
function () {
|
|
@@ -607,7 +620,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
607
620
|
return rxjs.merge(rxjs.fromEvent(this._document, 'click'), rxjs.fromEvent(this._document, 'touchend'))
|
|
608
621
|
.pipe(operators.filter(function (event) {
|
|
609
622
|
/** @type {?} */
|
|
610
|
-
var clickTarget = /** @type {?} */ (event.target);
|
|
623
|
+
var clickTarget = (/** @type {?} */ (event.target));
|
|
611
624
|
/** @type {?} */
|
|
612
625
|
var formField$$1 = _this._formField ?
|
|
613
626
|
_this._formField._elementRef.nativeElement : null;
|
|
@@ -618,11 +631,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
618
631
|
}));
|
|
619
632
|
};
|
|
620
633
|
// Implemented as part of ControlValueAccessor.
|
|
634
|
+
// Implemented as part of ControlValueAccessor.
|
|
621
635
|
/**
|
|
622
636
|
* @param {?} value
|
|
623
637
|
* @return {?}
|
|
624
638
|
*/
|
|
625
|
-
MatAutocompleteTrigger.prototype.writeValue =
|
|
639
|
+
MatAutocompleteTrigger.prototype.writeValue =
|
|
640
|
+
// Implemented as part of ControlValueAccessor.
|
|
641
|
+
/**
|
|
626
642
|
* @param {?} value
|
|
627
643
|
* @return {?}
|
|
628
644
|
*/
|
|
@@ -631,11 +647,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
631
647
|
Promise.resolve(null).then(function () { return _this._setTriggerValue(value); });
|
|
632
648
|
};
|
|
633
649
|
// Implemented as part of ControlValueAccessor.
|
|
650
|
+
// Implemented as part of ControlValueAccessor.
|
|
634
651
|
/**
|
|
635
652
|
* @param {?} fn
|
|
636
653
|
* @return {?}
|
|
637
654
|
*/
|
|
638
|
-
MatAutocompleteTrigger.prototype.registerOnChange =
|
|
655
|
+
MatAutocompleteTrigger.prototype.registerOnChange =
|
|
656
|
+
// Implemented as part of ControlValueAccessor.
|
|
657
|
+
/**
|
|
639
658
|
* @param {?} fn
|
|
640
659
|
* @return {?}
|
|
641
660
|
*/
|
|
@@ -643,11 +662,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
643
662
|
this._onChange = fn;
|
|
644
663
|
};
|
|
645
664
|
// Implemented as part of ControlValueAccessor.
|
|
665
|
+
// Implemented as part of ControlValueAccessor.
|
|
646
666
|
/**
|
|
647
667
|
* @param {?} fn
|
|
648
668
|
* @return {?}
|
|
649
669
|
*/
|
|
650
|
-
MatAutocompleteTrigger.prototype.registerOnTouched =
|
|
670
|
+
MatAutocompleteTrigger.prototype.registerOnTouched =
|
|
671
|
+
// Implemented as part of ControlValueAccessor.
|
|
672
|
+
/**
|
|
651
673
|
* @param {?} fn
|
|
652
674
|
* @return {?}
|
|
653
675
|
*/
|
|
@@ -655,11 +677,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
655
677
|
this._onTouched = fn;
|
|
656
678
|
};
|
|
657
679
|
// Implemented as part of ControlValueAccessor.
|
|
680
|
+
// Implemented as part of ControlValueAccessor.
|
|
658
681
|
/**
|
|
659
682
|
* @param {?} isDisabled
|
|
660
683
|
* @return {?}
|
|
661
684
|
*/
|
|
662
|
-
MatAutocompleteTrigger.prototype.setDisabledState =
|
|
685
|
+
MatAutocompleteTrigger.prototype.setDisabledState =
|
|
686
|
+
// Implemented as part of ControlValueAccessor.
|
|
687
|
+
/**
|
|
663
688
|
* @param {?} isDisabled
|
|
664
689
|
* @return {?}
|
|
665
690
|
*/
|
|
@@ -715,7 +740,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
715
740
|
*/
|
|
716
741
|
function (event) {
|
|
717
742
|
/** @type {?} */
|
|
718
|
-
var target = /** @type {?} */ (event.target);
|
|
743
|
+
var target = (/** @type {?} */ (event.target));
|
|
719
744
|
/** @type {?} */
|
|
720
745
|
var value = target.value;
|
|
721
746
|
// Based on `NumberValueAccessor` from forms.
|
|
@@ -727,10 +752,10 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
727
752
|
// filter out all of the extra events, we save the value on focus and between
|
|
728
753
|
// `input` events, and we check whether it changed.
|
|
729
754
|
// See: https://connect.microsoft.com/IE/feedback/details/885747/
|
|
730
|
-
if (this._previousValue !== value
|
|
755
|
+
if (this._previousValue !== value) {
|
|
731
756
|
this._previousValue = value;
|
|
732
757
|
this._onChange(value);
|
|
733
|
-
if (this._canOpen()) {
|
|
758
|
+
if (this._canOpen() && document.activeElement === event.target) {
|
|
734
759
|
this.openPanel();
|
|
735
760
|
}
|
|
736
761
|
}
|
|
@@ -755,6 +780,13 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
755
780
|
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
756
781
|
* This causes the value to jump when selecting an option with the mouse.
|
|
757
782
|
* This method manually floats the label until the panel can be closed.
|
|
783
|
+
* @param shouldAnimate Whether the label should be animated when it is floated.
|
|
784
|
+
*/
|
|
785
|
+
/**
|
|
786
|
+
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
787
|
+
* This causes the value to jump when selecting an option with the mouse.
|
|
788
|
+
* This method manually floats the label until the panel can be closed.
|
|
789
|
+
* @private
|
|
758
790
|
* @param {?=} shouldAnimate Whether the label should be animated when it is floated.
|
|
759
791
|
* @return {?}
|
|
760
792
|
*/
|
|
@@ -762,6 +794,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
762
794
|
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
763
795
|
* This causes the value to jump when selecting an option with the mouse.
|
|
764
796
|
* This method manually floats the label until the panel can be closed.
|
|
797
|
+
* @private
|
|
765
798
|
* @param {?=} shouldAnimate Whether the label should be animated when it is floated.
|
|
766
799
|
* @return {?}
|
|
767
800
|
*/
|
|
@@ -777,12 +810,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
777
810
|
this._manuallyFloatingLabel = true;
|
|
778
811
|
}
|
|
779
812
|
};
|
|
813
|
+
/** If the label has been manually elevated, return it to its normal state. */
|
|
780
814
|
/**
|
|
781
815
|
* If the label has been manually elevated, return it to its normal state.
|
|
816
|
+
* @private
|
|
782
817
|
* @return {?}
|
|
783
818
|
*/
|
|
784
819
|
MatAutocompleteTrigger.prototype._resetLabel = /**
|
|
785
820
|
* If the label has been manually elevated, return it to its normal state.
|
|
821
|
+
* @private
|
|
786
822
|
* @return {?}
|
|
787
823
|
*/
|
|
788
824
|
function () {
|
|
@@ -799,6 +835,16 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
799
835
|
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
800
836
|
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
801
837
|
* not adjusted.
|
|
838
|
+
*/
|
|
839
|
+
/**
|
|
840
|
+
* Given that we are not actually focusing active options, we must manually adjust scroll
|
|
841
|
+
* to reveal options below the fold. First, we find the offset of the option from the top
|
|
842
|
+
* of the panel. If that offset is below the fold, the new scrollTop will be the offset -
|
|
843
|
+
* the panel height + the option height, so the active option will be just visible at the
|
|
844
|
+
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
845
|
+
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
846
|
+
* not adjusted.
|
|
847
|
+
* @private
|
|
802
848
|
* @return {?}
|
|
803
849
|
*/
|
|
804
850
|
MatAutocompleteTrigger.prototype._scrollToOption = /**
|
|
@@ -809,6 +855,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
809
855
|
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
810
856
|
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
811
857
|
* not adjusted.
|
|
858
|
+
* @private
|
|
812
859
|
* @return {?}
|
|
813
860
|
*/
|
|
814
861
|
function () {
|
|
@@ -823,11 +870,17 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
823
870
|
/**
|
|
824
871
|
* This method listens to a stream of panel closing actions and resets the
|
|
825
872
|
* stream every time the option list changes.
|
|
873
|
+
*/
|
|
874
|
+
/**
|
|
875
|
+
* This method listens to a stream of panel closing actions and resets the
|
|
876
|
+
* stream every time the option list changes.
|
|
877
|
+
* @private
|
|
826
878
|
* @return {?}
|
|
827
879
|
*/
|
|
828
880
|
MatAutocompleteTrigger.prototype._subscribeToClosingActions = /**
|
|
829
881
|
* This method listens to a stream of panel closing actions and resets the
|
|
830
882
|
* stream every time the option list changes.
|
|
883
|
+
* @private
|
|
831
884
|
* @return {?}
|
|
832
885
|
*/
|
|
833
886
|
function () {
|
|
@@ -848,7 +901,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
848
901
|
_this._resetActiveItem();
|
|
849
902
|
_this.autocomplete._setVisibility();
|
|
850
903
|
if (_this.panelOpen) {
|
|
851
|
-
/** @type {?} */ (
|
|
904
|
+
(/** @type {?} */ (_this._overlayRef)).updatePosition();
|
|
852
905
|
}
|
|
853
906
|
return _this.panelClosingActions;
|
|
854
907
|
}),
|
|
@@ -857,12 +910,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
857
910
|
// set the value, close the panel, and complete.
|
|
858
911
|
.subscribe(function (event) { return _this._setValueAndClose(event); });
|
|
859
912
|
};
|
|
913
|
+
/** Destroys the autocomplete suggestion panel. */
|
|
860
914
|
/**
|
|
861
915
|
* Destroys the autocomplete suggestion panel.
|
|
916
|
+
* @private
|
|
862
917
|
* @return {?}
|
|
863
918
|
*/
|
|
864
919
|
MatAutocompleteTrigger.prototype._destroyPanel = /**
|
|
865
920
|
* Destroys the autocomplete suggestion panel.
|
|
921
|
+
* @private
|
|
866
922
|
* @return {?}
|
|
867
923
|
*/
|
|
868
924
|
function () {
|
|
@@ -873,10 +929,12 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
873
929
|
}
|
|
874
930
|
};
|
|
875
931
|
/**
|
|
932
|
+
* @private
|
|
876
933
|
* @param {?} value
|
|
877
934
|
* @return {?}
|
|
878
935
|
*/
|
|
879
936
|
MatAutocompleteTrigger.prototype._setTriggerValue = /**
|
|
937
|
+
* @private
|
|
880
938
|
* @param {?} value
|
|
881
939
|
* @return {?}
|
|
882
940
|
*/
|
|
@@ -885,6 +943,8 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
885
943
|
var toDisplay = this.autocomplete && this.autocomplete.displayWith ?
|
|
886
944
|
this.autocomplete.displayWith(value) :
|
|
887
945
|
value;
|
|
946
|
+
// Simply falling back to an empty string if the display value is falsy does not work properly.
|
|
947
|
+
// The display value can also be the number zero and shouldn't fall back to an empty string.
|
|
888
948
|
/** @type {?} */
|
|
889
949
|
var inputValue = toDisplay != null ? toDisplay : '';
|
|
890
950
|
// If it's used within a `MatFormField`, we should set it through the property so it can go
|
|
@@ -901,6 +961,12 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
901
961
|
* This method closes the panel, and if a value is specified, also sets the associated
|
|
902
962
|
* control to that value. It will also mark the control as dirty if this interaction
|
|
903
963
|
* stemmed from the user.
|
|
964
|
+
*/
|
|
965
|
+
/**
|
|
966
|
+
* This method closes the panel, and if a value is specified, also sets the associated
|
|
967
|
+
* control to that value. It will also mark the control as dirty if this interaction
|
|
968
|
+
* stemmed from the user.
|
|
969
|
+
* @private
|
|
904
970
|
* @param {?} event
|
|
905
971
|
* @return {?}
|
|
906
972
|
*/
|
|
@@ -908,6 +974,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
908
974
|
* This method closes the panel, and if a value is specified, also sets the associated
|
|
909
975
|
* control to that value. It will also mark the control as dirty if this interaction
|
|
910
976
|
* stemmed from the user.
|
|
977
|
+
* @private
|
|
911
978
|
* @param {?} event
|
|
912
979
|
* @return {?}
|
|
913
980
|
*/
|
|
@@ -923,11 +990,16 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
923
990
|
};
|
|
924
991
|
/**
|
|
925
992
|
* Clear any previous selected option and emit a selection change event for this option
|
|
993
|
+
*/
|
|
994
|
+
/**
|
|
995
|
+
* Clear any previous selected option and emit a selection change event for this option
|
|
996
|
+
* @private
|
|
926
997
|
* @param {?} skip
|
|
927
998
|
* @return {?}
|
|
928
999
|
*/
|
|
929
1000
|
MatAutocompleteTrigger.prototype._clearPreviousSelectedOption = /**
|
|
930
1001
|
* Clear any previous selected option and emit a selection change event for this option
|
|
1002
|
+
* @private
|
|
931
1003
|
* @param {?} skip
|
|
932
1004
|
* @return {?}
|
|
933
1005
|
*/
|
|
@@ -939,9 +1011,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
939
1011
|
});
|
|
940
1012
|
};
|
|
941
1013
|
/**
|
|
1014
|
+
* @private
|
|
942
1015
|
* @return {?}
|
|
943
1016
|
*/
|
|
944
1017
|
MatAutocompleteTrigger.prototype._attachOverlay = /**
|
|
1018
|
+
* @private
|
|
945
1019
|
* @return {?}
|
|
946
1020
|
*/
|
|
947
1021
|
function () {
|
|
@@ -989,9 +1063,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
989
1063
|
}
|
|
990
1064
|
};
|
|
991
1065
|
/**
|
|
1066
|
+
* @private
|
|
992
1067
|
* @return {?}
|
|
993
1068
|
*/
|
|
994
1069
|
MatAutocompleteTrigger.prototype._getOverlayConfig = /**
|
|
1070
|
+
* @private
|
|
995
1071
|
* @return {?}
|
|
996
1072
|
*/
|
|
997
1073
|
function () {
|
|
@@ -1003,9 +1079,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1003
1079
|
});
|
|
1004
1080
|
};
|
|
1005
1081
|
/**
|
|
1082
|
+
* @private
|
|
1006
1083
|
* @return {?}
|
|
1007
1084
|
*/
|
|
1008
1085
|
MatAutocompleteTrigger.prototype._getOverlayPosition = /**
|
|
1086
|
+
* @private
|
|
1009
1087
|
* @return {?}
|
|
1010
1088
|
*/
|
|
1011
1089
|
function () {
|
|
@@ -1034,9 +1112,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1034
1112
|
return this._positionStrategy;
|
|
1035
1113
|
};
|
|
1036
1114
|
/**
|
|
1115
|
+
* @private
|
|
1037
1116
|
* @return {?}
|
|
1038
1117
|
*/
|
|
1039
1118
|
MatAutocompleteTrigger.prototype._getConnectedElement = /**
|
|
1119
|
+
* @private
|
|
1040
1120
|
* @return {?}
|
|
1041
1121
|
*/
|
|
1042
1122
|
function () {
|
|
@@ -1046,20 +1126,25 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1046
1126
|
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._element;
|
|
1047
1127
|
};
|
|
1048
1128
|
/**
|
|
1129
|
+
* @private
|
|
1049
1130
|
* @return {?}
|
|
1050
1131
|
*/
|
|
1051
1132
|
MatAutocompleteTrigger.prototype._getPanelWidth = /**
|
|
1133
|
+
* @private
|
|
1052
1134
|
* @return {?}
|
|
1053
1135
|
*/
|
|
1054
1136
|
function () {
|
|
1055
1137
|
return this.autocomplete.panelWidth || this._getHostWidth();
|
|
1056
1138
|
};
|
|
1139
|
+
/** Returns the width of the input element, so the panel width can match it. */
|
|
1057
1140
|
/**
|
|
1058
1141
|
* Returns the width of the input element, so the panel width can match it.
|
|
1142
|
+
* @private
|
|
1059
1143
|
* @return {?}
|
|
1060
1144
|
*/
|
|
1061
1145
|
MatAutocompleteTrigger.prototype._getHostWidth = /**
|
|
1062
1146
|
* Returns the width of the input element, so the panel width can match it.
|
|
1147
|
+
* @private
|
|
1063
1148
|
* @return {?}
|
|
1064
1149
|
*/
|
|
1065
1150
|
function () {
|
|
@@ -1068,22 +1153,31 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1068
1153
|
/**
|
|
1069
1154
|
* Resets the active item to -1 so arrow events will activate the
|
|
1070
1155
|
* correct options, or to 0 if the consumer opted into it.
|
|
1156
|
+
*/
|
|
1157
|
+
/**
|
|
1158
|
+
* Resets the active item to -1 so arrow events will activate the
|
|
1159
|
+
* correct options, or to 0 if the consumer opted into it.
|
|
1160
|
+
* @private
|
|
1071
1161
|
* @return {?}
|
|
1072
1162
|
*/
|
|
1073
1163
|
MatAutocompleteTrigger.prototype._resetActiveItem = /**
|
|
1074
1164
|
* Resets the active item to -1 so arrow events will activate the
|
|
1075
1165
|
* correct options, or to 0 if the consumer opted into it.
|
|
1166
|
+
* @private
|
|
1076
1167
|
* @return {?}
|
|
1077
1168
|
*/
|
|
1078
1169
|
function () {
|
|
1079
1170
|
this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption ? 0 : -1);
|
|
1080
1171
|
};
|
|
1172
|
+
/** Determines whether the panel can be opened. */
|
|
1081
1173
|
/**
|
|
1082
1174
|
* Determines whether the panel can be opened.
|
|
1175
|
+
* @private
|
|
1083
1176
|
* @return {?}
|
|
1084
1177
|
*/
|
|
1085
1178
|
MatAutocompleteTrigger.prototype._canOpen = /**
|
|
1086
1179
|
* Determines whether the panel can be opened.
|
|
1180
|
+
* @private
|
|
1087
1181
|
* @return {?}
|
|
1088
1182
|
*/
|
|
1089
1183
|
function () {
|
|
@@ -1098,7 +1192,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1098
1192
|
'[attr.autocomplete]': 'autocompleteAttribute',
|
|
1099
1193
|
'[attr.role]': 'autocompleteDisabled ? null : "combobox"',
|
|
1100
1194
|
'[attr.aria-autocomplete]': 'autocompleteDisabled ? null : "list"',
|
|
1101
|
-
'[attr.aria-activedescendant]': 'activeOption
|
|
1195
|
+
'[attr.aria-activedescendant]': '(panelOpen && activeOption) ? activeOption.id : null',
|
|
1102
1196
|
'[attr.aria-expanded]': 'autocompleteDisabled ? null : panelOpen.toString()',
|
|
1103
1197
|
'[attr.aria-owns]': '(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id',
|
|
1104
1198
|
// Note: we use `focusin`, as opposed to `focus`, in order to open the panel
|
|
@@ -1136,7 +1230,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1136
1230
|
|
|
1137
1231
|
/**
|
|
1138
1232
|
* @fileoverview added by tsickle
|
|
1139
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1233
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1140
1234
|
*/
|
|
1141
1235
|
var MatAutocompleteModule = /** @class */ (function () {
|
|
1142
1236
|
function MatAutocompleteModule() {
|
|
@@ -1173,7 +1267,7 @@ exports.MAT_AUTOCOMPLETE_SCROLL_STRATEGY = MAT_AUTOCOMPLETE_SCROLL_STRATEGY;
|
|
|
1173
1267
|
exports.MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER;
|
|
1174
1268
|
exports.MAT_AUTOCOMPLETE_VALUE_ACCESSOR = MAT_AUTOCOMPLETE_VALUE_ACCESSOR;
|
|
1175
1269
|
exports.MatAutocompleteTrigger = MatAutocompleteTrigger;
|
|
1176
|
-
exports.ɵ
|
|
1270
|
+
exports.ɵa28 = MatAutocompleteOrigin;
|
|
1177
1271
|
|
|
1178
1272
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1179
1273
|
|