@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
package/esm5/autocomplete.es5.js
CHANGED
|
@@ -23,12 +23,13 @@ import { Subscription, defer, fromEvent, merge, of, Subject } from 'rxjs';
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @fileoverview added by tsickle
|
|
26
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
26
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
27
27
|
*/
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
29
|
* Autocomplete IDs need to be unique across components, so this counter exists outside of
|
|
30
30
|
* the component definition.
|
|
31
|
-
|
|
31
|
+
* @type {?}
|
|
32
|
+
*/
|
|
32
33
|
var _uniqueAutocompleteIdCounter = 0;
|
|
33
34
|
/**
|
|
34
35
|
* Event object that is emitted when an autocomplete option is selected.
|
|
@@ -43,10 +44,13 @@ MatAutocompleteSelectedEvent = /** @class */ (function () {
|
|
|
43
44
|
}
|
|
44
45
|
return MatAutocompleteSelectedEvent;
|
|
45
46
|
}());
|
|
47
|
+
// Boilerplate for applying mixins to MatAutocomplete.
|
|
46
48
|
/**
|
|
47
49
|
* \@docs-private
|
|
48
50
|
*/
|
|
49
|
-
var
|
|
51
|
+
var
|
|
52
|
+
// Boilerplate for applying mixins to MatAutocomplete.
|
|
53
|
+
/**
|
|
50
54
|
* \@docs-private
|
|
51
55
|
*/
|
|
52
56
|
MatAutocompleteBase = /** @class */ (function () {
|
|
@@ -56,9 +60,10 @@ MatAutocompleteBase = /** @class */ (function () {
|
|
|
56
60
|
}());
|
|
57
61
|
/** @type {?} */
|
|
58
62
|
var _MatAutocompleteMixinBase = mixinDisableRipple(MatAutocompleteBase);
|
|
59
|
-
/**
|
|
63
|
+
/**
|
|
60
64
|
* Injection token to be used to override the default options for `mat-autocomplete`.
|
|
61
|
-
|
|
65
|
+
* @type {?}
|
|
66
|
+
*/
|
|
62
67
|
var MAT_AUTOCOMPLETE_DEFAULT_OPTIONS = new InjectionToken('mat-autocomplete-default-options', {
|
|
63
68
|
providedIn: 'root',
|
|
64
69
|
factory: MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,
|
|
@@ -235,7 +240,7 @@ var MatAutocomplete = /** @class */ (function (_super) {
|
|
|
235
240
|
MatAutocomplete.decorators = [
|
|
236
241
|
{ type: Component, args: [{selector: 'mat-autocomplete',
|
|
237
242
|
template: "<ng-template><div class=\"mat-autocomplete-panel\" role=\"listbox\" [id]=\"id\" [ngClass]=\"_classList\" #panel><ng-content></ng-content></div></ng-template>",
|
|
238
|
-
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
|
|
243
|
+
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}}"],
|
|
239
244
|
encapsulation: ViewEncapsulation.None,
|
|
240
245
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
241
246
|
exportAs: 'matAutocomplete',
|
|
@@ -272,7 +277,7 @@ var MatAutocomplete = /** @class */ (function (_super) {
|
|
|
272
277
|
|
|
273
278
|
/**
|
|
274
279
|
* @fileoverview added by tsickle
|
|
275
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
280
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
276
281
|
*/
|
|
277
282
|
/**
|
|
278
283
|
* Directive applied to an element to make it usable
|
|
@@ -297,19 +302,22 @@ var MatAutocompleteOrigin = /** @class */ (function () {
|
|
|
297
302
|
|
|
298
303
|
/**
|
|
299
304
|
* @fileoverview added by tsickle
|
|
300
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
305
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
301
306
|
*/
|
|
302
|
-
/**
|
|
307
|
+
/**
|
|
303
308
|
* The height of each autocomplete option.
|
|
304
|
-
|
|
309
|
+
* @type {?}
|
|
310
|
+
*/
|
|
305
311
|
var AUTOCOMPLETE_OPTION_HEIGHT = 48;
|
|
306
|
-
/**
|
|
312
|
+
/**
|
|
307
313
|
* The total height of the autocomplete panel.
|
|
308
|
-
|
|
314
|
+
* @type {?}
|
|
315
|
+
*/
|
|
309
316
|
var AUTOCOMPLETE_PANEL_HEIGHT = 256;
|
|
310
|
-
/**
|
|
317
|
+
/**
|
|
311
318
|
* Injection token that determines the scroll handling while the autocomplete panel is open.
|
|
312
|
-
|
|
319
|
+
* @type {?}
|
|
320
|
+
*/
|
|
313
321
|
var MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mat-autocomplete-scroll-strategy');
|
|
314
322
|
/**
|
|
315
323
|
* \@docs-private
|
|
@@ -319,18 +327,20 @@ var MAT_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mat-autocomplete-scro
|
|
|
319
327
|
function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
320
328
|
return function () { return overlay.scrollStrategies.reposition(); };
|
|
321
329
|
}
|
|
322
|
-
/**
|
|
330
|
+
/**
|
|
323
331
|
* \@docs-private
|
|
324
|
-
|
|
332
|
+
* @type {?}
|
|
333
|
+
*/
|
|
325
334
|
var MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
326
335
|
provide: MAT_AUTOCOMPLETE_SCROLL_STRATEGY,
|
|
327
336
|
deps: [Overlay],
|
|
328
337
|
useFactory: MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
|
|
329
338
|
};
|
|
330
|
-
/**
|
|
339
|
+
/**
|
|
331
340
|
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
|
332
341
|
* \@docs-private
|
|
333
|
-
|
|
342
|
+
* @type {?}
|
|
343
|
+
*/
|
|
334
344
|
var MAT_AUTOCOMPLETE_VALUE_ACCESSOR = {
|
|
335
345
|
provide: NG_VALUE_ACCESSOR,
|
|
336
346
|
useExisting: forwardRef(function () { return MatAutocompleteTrigger; }),
|
|
@@ -533,7 +543,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
533
543
|
*/
|
|
534
544
|
function () {
|
|
535
545
|
if (this._overlayAttached) {
|
|
536
|
-
/** @type {?} */ (
|
|
546
|
+
(/** @type {?} */ (this._overlayRef)).updatePosition();
|
|
537
547
|
}
|
|
538
548
|
};
|
|
539
549
|
Object.defineProperty(MatAutocompleteTrigger.prototype, "panelClosingActions", {
|
|
@@ -572,12 +582,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
572
582
|
enumerable: true,
|
|
573
583
|
configurable: true
|
|
574
584
|
});
|
|
585
|
+
/** Stream of clicks outside of the autocomplete panel. */
|
|
575
586
|
/**
|
|
576
587
|
* Stream of clicks outside of the autocomplete panel.
|
|
588
|
+
* @private
|
|
577
589
|
* @return {?}
|
|
578
590
|
*/
|
|
579
591
|
MatAutocompleteTrigger.prototype._getOutsideClickStream = /**
|
|
580
592
|
* Stream of clicks outside of the autocomplete panel.
|
|
593
|
+
* @private
|
|
581
594
|
* @return {?}
|
|
582
595
|
*/
|
|
583
596
|
function () {
|
|
@@ -588,7 +601,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
588
601
|
return merge(fromEvent(this._document, 'click'), fromEvent(this._document, 'touchend'))
|
|
589
602
|
.pipe(filter(function (event) {
|
|
590
603
|
/** @type {?} */
|
|
591
|
-
var clickTarget = /** @type {?} */ (event.target);
|
|
604
|
+
var clickTarget = (/** @type {?} */ (event.target));
|
|
592
605
|
/** @type {?} */
|
|
593
606
|
var formField = _this._formField ?
|
|
594
607
|
_this._formField._elementRef.nativeElement : null;
|
|
@@ -599,11 +612,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
599
612
|
}));
|
|
600
613
|
};
|
|
601
614
|
// Implemented as part of ControlValueAccessor.
|
|
615
|
+
// Implemented as part of ControlValueAccessor.
|
|
602
616
|
/**
|
|
603
617
|
* @param {?} value
|
|
604
618
|
* @return {?}
|
|
605
619
|
*/
|
|
606
|
-
MatAutocompleteTrigger.prototype.writeValue =
|
|
620
|
+
MatAutocompleteTrigger.prototype.writeValue =
|
|
621
|
+
// Implemented as part of ControlValueAccessor.
|
|
622
|
+
/**
|
|
607
623
|
* @param {?} value
|
|
608
624
|
* @return {?}
|
|
609
625
|
*/
|
|
@@ -612,11 +628,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
612
628
|
Promise.resolve(null).then(function () { return _this._setTriggerValue(value); });
|
|
613
629
|
};
|
|
614
630
|
// Implemented as part of ControlValueAccessor.
|
|
631
|
+
// Implemented as part of ControlValueAccessor.
|
|
615
632
|
/**
|
|
616
633
|
* @param {?} fn
|
|
617
634
|
* @return {?}
|
|
618
635
|
*/
|
|
619
|
-
MatAutocompleteTrigger.prototype.registerOnChange =
|
|
636
|
+
MatAutocompleteTrigger.prototype.registerOnChange =
|
|
637
|
+
// Implemented as part of ControlValueAccessor.
|
|
638
|
+
/**
|
|
620
639
|
* @param {?} fn
|
|
621
640
|
* @return {?}
|
|
622
641
|
*/
|
|
@@ -624,11 +643,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
624
643
|
this._onChange = fn;
|
|
625
644
|
};
|
|
626
645
|
// Implemented as part of ControlValueAccessor.
|
|
646
|
+
// Implemented as part of ControlValueAccessor.
|
|
627
647
|
/**
|
|
628
648
|
* @param {?} fn
|
|
629
649
|
* @return {?}
|
|
630
650
|
*/
|
|
631
|
-
MatAutocompleteTrigger.prototype.registerOnTouched =
|
|
651
|
+
MatAutocompleteTrigger.prototype.registerOnTouched =
|
|
652
|
+
// Implemented as part of ControlValueAccessor.
|
|
653
|
+
/**
|
|
632
654
|
* @param {?} fn
|
|
633
655
|
* @return {?}
|
|
634
656
|
*/
|
|
@@ -636,11 +658,14 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
636
658
|
this._onTouched = fn;
|
|
637
659
|
};
|
|
638
660
|
// Implemented as part of ControlValueAccessor.
|
|
661
|
+
// Implemented as part of ControlValueAccessor.
|
|
639
662
|
/**
|
|
640
663
|
* @param {?} isDisabled
|
|
641
664
|
* @return {?}
|
|
642
665
|
*/
|
|
643
|
-
MatAutocompleteTrigger.prototype.setDisabledState =
|
|
666
|
+
MatAutocompleteTrigger.prototype.setDisabledState =
|
|
667
|
+
// Implemented as part of ControlValueAccessor.
|
|
668
|
+
/**
|
|
644
669
|
* @param {?} isDisabled
|
|
645
670
|
* @return {?}
|
|
646
671
|
*/
|
|
@@ -696,7 +721,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
696
721
|
*/
|
|
697
722
|
function (event) {
|
|
698
723
|
/** @type {?} */
|
|
699
|
-
var target = /** @type {?} */ (event.target);
|
|
724
|
+
var target = (/** @type {?} */ (event.target));
|
|
700
725
|
/** @type {?} */
|
|
701
726
|
var value = target.value;
|
|
702
727
|
// Based on `NumberValueAccessor` from forms.
|
|
@@ -736,6 +761,13 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
736
761
|
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
737
762
|
* This causes the value to jump when selecting an option with the mouse.
|
|
738
763
|
* This method manually floats the label until the panel can be closed.
|
|
764
|
+
* @param shouldAnimate Whether the label should be animated when it is floated.
|
|
765
|
+
*/
|
|
766
|
+
/**
|
|
767
|
+
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
768
|
+
* This causes the value to jump when selecting an option with the mouse.
|
|
769
|
+
* This method manually floats the label until the panel can be closed.
|
|
770
|
+
* @private
|
|
739
771
|
* @param {?=} shouldAnimate Whether the label should be animated when it is floated.
|
|
740
772
|
* @return {?}
|
|
741
773
|
*/
|
|
@@ -743,6 +775,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
743
775
|
* In "auto" mode, the label will animate down as soon as focus is lost.
|
|
744
776
|
* This causes the value to jump when selecting an option with the mouse.
|
|
745
777
|
* This method manually floats the label until the panel can be closed.
|
|
778
|
+
* @private
|
|
746
779
|
* @param {?=} shouldAnimate Whether the label should be animated when it is floated.
|
|
747
780
|
* @return {?}
|
|
748
781
|
*/
|
|
@@ -758,12 +791,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
758
791
|
this._manuallyFloatingLabel = true;
|
|
759
792
|
}
|
|
760
793
|
};
|
|
794
|
+
/** If the label has been manually elevated, return it to its normal state. */
|
|
761
795
|
/**
|
|
762
796
|
* If the label has been manually elevated, return it to its normal state.
|
|
797
|
+
* @private
|
|
763
798
|
* @return {?}
|
|
764
799
|
*/
|
|
765
800
|
MatAutocompleteTrigger.prototype._resetLabel = /**
|
|
766
801
|
* If the label has been manually elevated, return it to its normal state.
|
|
802
|
+
* @private
|
|
767
803
|
* @return {?}
|
|
768
804
|
*/
|
|
769
805
|
function () {
|
|
@@ -780,6 +816,16 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
780
816
|
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
781
817
|
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
782
818
|
* not adjusted.
|
|
819
|
+
*/
|
|
820
|
+
/**
|
|
821
|
+
* Given that we are not actually focusing active options, we must manually adjust scroll
|
|
822
|
+
* to reveal options below the fold. First, we find the offset of the option from the top
|
|
823
|
+
* of the panel. If that offset is below the fold, the new scrollTop will be the offset -
|
|
824
|
+
* the panel height + the option height, so the active option will be just visible at the
|
|
825
|
+
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
826
|
+
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
827
|
+
* not adjusted.
|
|
828
|
+
* @private
|
|
783
829
|
* @return {?}
|
|
784
830
|
*/
|
|
785
831
|
MatAutocompleteTrigger.prototype._scrollToOption = /**
|
|
@@ -790,6 +836,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
790
836
|
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
791
837
|
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
792
838
|
* not adjusted.
|
|
839
|
+
* @private
|
|
793
840
|
* @return {?}
|
|
794
841
|
*/
|
|
795
842
|
function () {
|
|
@@ -804,11 +851,17 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
804
851
|
/**
|
|
805
852
|
* This method listens to a stream of panel closing actions and resets the
|
|
806
853
|
* stream every time the option list changes.
|
|
854
|
+
*/
|
|
855
|
+
/**
|
|
856
|
+
* This method listens to a stream of panel closing actions and resets the
|
|
857
|
+
* stream every time the option list changes.
|
|
858
|
+
* @private
|
|
807
859
|
* @return {?}
|
|
808
860
|
*/
|
|
809
861
|
MatAutocompleteTrigger.prototype._subscribeToClosingActions = /**
|
|
810
862
|
* This method listens to a stream of panel closing actions and resets the
|
|
811
863
|
* stream every time the option list changes.
|
|
864
|
+
* @private
|
|
812
865
|
* @return {?}
|
|
813
866
|
*/
|
|
814
867
|
function () {
|
|
@@ -829,7 +882,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
829
882
|
_this._resetActiveItem();
|
|
830
883
|
_this.autocomplete._setVisibility();
|
|
831
884
|
if (_this.panelOpen) {
|
|
832
|
-
/** @type {?} */ (
|
|
885
|
+
(/** @type {?} */ (_this._overlayRef)).updatePosition();
|
|
833
886
|
}
|
|
834
887
|
return _this.panelClosingActions;
|
|
835
888
|
}),
|
|
@@ -838,12 +891,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
838
891
|
// set the value, close the panel, and complete.
|
|
839
892
|
.subscribe(function (event) { return _this._setValueAndClose(event); });
|
|
840
893
|
};
|
|
894
|
+
/** Destroys the autocomplete suggestion panel. */
|
|
841
895
|
/**
|
|
842
896
|
* Destroys the autocomplete suggestion panel.
|
|
897
|
+
* @private
|
|
843
898
|
* @return {?}
|
|
844
899
|
*/
|
|
845
900
|
MatAutocompleteTrigger.prototype._destroyPanel = /**
|
|
846
901
|
* Destroys the autocomplete suggestion panel.
|
|
902
|
+
* @private
|
|
847
903
|
* @return {?}
|
|
848
904
|
*/
|
|
849
905
|
function () {
|
|
@@ -854,10 +910,12 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
854
910
|
}
|
|
855
911
|
};
|
|
856
912
|
/**
|
|
913
|
+
* @private
|
|
857
914
|
* @param {?} value
|
|
858
915
|
* @return {?}
|
|
859
916
|
*/
|
|
860
917
|
MatAutocompleteTrigger.prototype._setTriggerValue = /**
|
|
918
|
+
* @private
|
|
861
919
|
* @param {?} value
|
|
862
920
|
* @return {?}
|
|
863
921
|
*/
|
|
@@ -866,6 +924,8 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
866
924
|
var toDisplay = this.autocomplete && this.autocomplete.displayWith ?
|
|
867
925
|
this.autocomplete.displayWith(value) :
|
|
868
926
|
value;
|
|
927
|
+
// Simply falling back to an empty string if the display value is falsy does not work properly.
|
|
928
|
+
// The display value can also be the number zero and shouldn't fall back to an empty string.
|
|
869
929
|
/** @type {?} */
|
|
870
930
|
var inputValue = toDisplay != null ? toDisplay : '';
|
|
871
931
|
// If it's used within a `MatFormField`, we should set it through the property so it can go
|
|
@@ -882,6 +942,12 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
882
942
|
* This method closes the panel, and if a value is specified, also sets the associated
|
|
883
943
|
* control to that value. It will also mark the control as dirty if this interaction
|
|
884
944
|
* stemmed from the user.
|
|
945
|
+
*/
|
|
946
|
+
/**
|
|
947
|
+
* This method closes the panel, and if a value is specified, also sets the associated
|
|
948
|
+
* control to that value. It will also mark the control as dirty if this interaction
|
|
949
|
+
* stemmed from the user.
|
|
950
|
+
* @private
|
|
885
951
|
* @param {?} event
|
|
886
952
|
* @return {?}
|
|
887
953
|
*/
|
|
@@ -889,6 +955,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
889
955
|
* This method closes the panel, and if a value is specified, also sets the associated
|
|
890
956
|
* control to that value. It will also mark the control as dirty if this interaction
|
|
891
957
|
* stemmed from the user.
|
|
958
|
+
* @private
|
|
892
959
|
* @param {?} event
|
|
893
960
|
* @return {?}
|
|
894
961
|
*/
|
|
@@ -904,11 +971,16 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
904
971
|
};
|
|
905
972
|
/**
|
|
906
973
|
* Clear any previous selected option and emit a selection change event for this option
|
|
974
|
+
*/
|
|
975
|
+
/**
|
|
976
|
+
* Clear any previous selected option and emit a selection change event for this option
|
|
977
|
+
* @private
|
|
907
978
|
* @param {?} skip
|
|
908
979
|
* @return {?}
|
|
909
980
|
*/
|
|
910
981
|
MatAutocompleteTrigger.prototype._clearPreviousSelectedOption = /**
|
|
911
982
|
* Clear any previous selected option and emit a selection change event for this option
|
|
983
|
+
* @private
|
|
912
984
|
* @param {?} skip
|
|
913
985
|
* @return {?}
|
|
914
986
|
*/
|
|
@@ -920,9 +992,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
920
992
|
});
|
|
921
993
|
};
|
|
922
994
|
/**
|
|
995
|
+
* @private
|
|
923
996
|
* @return {?}
|
|
924
997
|
*/
|
|
925
998
|
MatAutocompleteTrigger.prototype._attachOverlay = /**
|
|
999
|
+
* @private
|
|
926
1000
|
* @return {?}
|
|
927
1001
|
*/
|
|
928
1002
|
function () {
|
|
@@ -930,12 +1004,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
930
1004
|
if (!this.autocomplete) {
|
|
931
1005
|
throw getMatAutocompleteMissingPanelError();
|
|
932
1006
|
}
|
|
933
|
-
|
|
1007
|
+
/** @type {?} */
|
|
1008
|
+
var overlayRef = this._overlayRef;
|
|
1009
|
+
if (!overlayRef) {
|
|
934
1010
|
this._portal = new TemplatePortal(this.autocomplete.template, this._viewContainerRef);
|
|
935
|
-
|
|
1011
|
+
overlayRef = this._overlay.create(this._getOverlayConfig());
|
|
1012
|
+
this._overlayRef = overlayRef;
|
|
936
1013
|
// Use the `keydownEvents` in order to take advantage of
|
|
937
1014
|
// the overlay event targeting provided by the CDK overlay.
|
|
938
|
-
|
|
1015
|
+
overlayRef.keydownEvents().subscribe(function (event) {
|
|
939
1016
|
// Close when pressing ESCAPE or ALT + UP_ARROW, based on the a11y guidelines.
|
|
940
1017
|
// See: https://www.w3.org/TR/wai-aria-practices-1.1/#textbox-keyboard-interaction
|
|
941
1018
|
if (event.keyCode === ESCAPE || (event.keyCode === UP_ARROW && event.altKey)) {
|
|
@@ -945,18 +1022,21 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
945
1022
|
});
|
|
946
1023
|
if (this._viewportRuler) {
|
|
947
1024
|
this._viewportSubscription = this._viewportRuler.change().subscribe(function () {
|
|
948
|
-
if (_this.panelOpen &&
|
|
949
|
-
|
|
1025
|
+
if (_this.panelOpen && overlayRef) {
|
|
1026
|
+
overlayRef.updateSize({ width: _this._getPanelWidth() });
|
|
950
1027
|
}
|
|
951
1028
|
});
|
|
952
1029
|
}
|
|
953
1030
|
}
|
|
954
1031
|
else {
|
|
955
|
-
|
|
956
|
-
|
|
1032
|
+
/** @type {?} */
|
|
1033
|
+
var position = (/** @type {?} */ (overlayRef.getConfig().positionStrategy));
|
|
1034
|
+
// Update the trigger, panel width and direction, in case anything has changed.
|
|
1035
|
+
position.setOrigin(this._getConnectedElement());
|
|
1036
|
+
overlayRef.updateSize({ width: this._getPanelWidth() });
|
|
957
1037
|
}
|
|
958
|
-
if (
|
|
959
|
-
|
|
1038
|
+
if (overlayRef && !overlayRef.hasAttached()) {
|
|
1039
|
+
overlayRef.attach(this._portal);
|
|
960
1040
|
this._closingActionsSubscription = this._subscribeToClosingActions();
|
|
961
1041
|
}
|
|
962
1042
|
/** @type {?} */
|
|
@@ -970,9 +1050,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
970
1050
|
}
|
|
971
1051
|
};
|
|
972
1052
|
/**
|
|
1053
|
+
* @private
|
|
973
1054
|
* @return {?}
|
|
974
1055
|
*/
|
|
975
1056
|
MatAutocompleteTrigger.prototype._getOverlayConfig = /**
|
|
1057
|
+
* @private
|
|
976
1058
|
* @return {?}
|
|
977
1059
|
*/
|
|
978
1060
|
function () {
|
|
@@ -984,9 +1066,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
984
1066
|
});
|
|
985
1067
|
};
|
|
986
1068
|
/**
|
|
1069
|
+
* @private
|
|
987
1070
|
* @return {?}
|
|
988
1071
|
*/
|
|
989
1072
|
MatAutocompleteTrigger.prototype._getOverlayPosition = /**
|
|
1073
|
+
* @private
|
|
990
1074
|
* @return {?}
|
|
991
1075
|
*/
|
|
992
1076
|
function () {
|
|
@@ -1015,9 +1099,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1015
1099
|
return this._positionStrategy;
|
|
1016
1100
|
};
|
|
1017
1101
|
/**
|
|
1102
|
+
* @private
|
|
1018
1103
|
* @return {?}
|
|
1019
1104
|
*/
|
|
1020
1105
|
MatAutocompleteTrigger.prototype._getConnectedElement = /**
|
|
1106
|
+
* @private
|
|
1021
1107
|
* @return {?}
|
|
1022
1108
|
*/
|
|
1023
1109
|
function () {
|
|
@@ -1027,20 +1113,25 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1027
1113
|
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._element;
|
|
1028
1114
|
};
|
|
1029
1115
|
/**
|
|
1116
|
+
* @private
|
|
1030
1117
|
* @return {?}
|
|
1031
1118
|
*/
|
|
1032
1119
|
MatAutocompleteTrigger.prototype._getPanelWidth = /**
|
|
1120
|
+
* @private
|
|
1033
1121
|
* @return {?}
|
|
1034
1122
|
*/
|
|
1035
1123
|
function () {
|
|
1036
1124
|
return this.autocomplete.panelWidth || this._getHostWidth();
|
|
1037
1125
|
};
|
|
1126
|
+
/** Returns the width of the input element, so the panel width can match it. */
|
|
1038
1127
|
/**
|
|
1039
1128
|
* Returns the width of the input element, so the panel width can match it.
|
|
1129
|
+
* @private
|
|
1040
1130
|
* @return {?}
|
|
1041
1131
|
*/
|
|
1042
1132
|
MatAutocompleteTrigger.prototype._getHostWidth = /**
|
|
1043
1133
|
* Returns the width of the input element, so the panel width can match it.
|
|
1134
|
+
* @private
|
|
1044
1135
|
* @return {?}
|
|
1045
1136
|
*/
|
|
1046
1137
|
function () {
|
|
@@ -1049,22 +1140,31 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1049
1140
|
/**
|
|
1050
1141
|
* Resets the active item to -1 so arrow events will activate the
|
|
1051
1142
|
* correct options, or to 0 if the consumer opted into it.
|
|
1143
|
+
*/
|
|
1144
|
+
/**
|
|
1145
|
+
* Resets the active item to -1 so arrow events will activate the
|
|
1146
|
+
* correct options, or to 0 if the consumer opted into it.
|
|
1147
|
+
* @private
|
|
1052
1148
|
* @return {?}
|
|
1053
1149
|
*/
|
|
1054
1150
|
MatAutocompleteTrigger.prototype._resetActiveItem = /**
|
|
1055
1151
|
* Resets the active item to -1 so arrow events will activate the
|
|
1056
1152
|
* correct options, or to 0 if the consumer opted into it.
|
|
1153
|
+
* @private
|
|
1057
1154
|
* @return {?}
|
|
1058
1155
|
*/
|
|
1059
1156
|
function () {
|
|
1060
1157
|
this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption ? 0 : -1);
|
|
1061
1158
|
};
|
|
1159
|
+
/** Determines whether the panel can be opened. */
|
|
1062
1160
|
/**
|
|
1063
1161
|
* Determines whether the panel can be opened.
|
|
1162
|
+
* @private
|
|
1064
1163
|
* @return {?}
|
|
1065
1164
|
*/
|
|
1066
1165
|
MatAutocompleteTrigger.prototype._canOpen = /**
|
|
1067
1166
|
* Determines whether the panel can be opened.
|
|
1167
|
+
* @private
|
|
1068
1168
|
* @return {?}
|
|
1069
1169
|
*/
|
|
1070
1170
|
function () {
|
|
@@ -1079,7 +1179,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1079
1179
|
'[attr.autocomplete]': 'autocompleteAttribute',
|
|
1080
1180
|
'[attr.role]': 'autocompleteDisabled ? null : "combobox"',
|
|
1081
1181
|
'[attr.aria-autocomplete]': 'autocompleteDisabled ? null : "list"',
|
|
1082
|
-
'[attr.aria-activedescendant]': 'activeOption
|
|
1182
|
+
'[attr.aria-activedescendant]': '(panelOpen && activeOption) ? activeOption.id : null',
|
|
1083
1183
|
'[attr.aria-expanded]': 'autocompleteDisabled ? null : panelOpen.toString()',
|
|
1084
1184
|
'[attr.aria-owns]': '(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id',
|
|
1085
1185
|
// Note: we use `focusin`, as opposed to `focus`, in order to open the panel
|
|
@@ -1117,7 +1217,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1117
1217
|
|
|
1118
1218
|
/**
|
|
1119
1219
|
* @fileoverview added by tsickle
|
|
1120
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1220
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1121
1221
|
*/
|
|
1122
1222
|
var MatAutocompleteModule = /** @class */ (function () {
|
|
1123
1223
|
function MatAutocompleteModule() {
|
|
@@ -1141,13 +1241,13 @@ var MatAutocompleteModule = /** @class */ (function () {
|
|
|
1141
1241
|
|
|
1142
1242
|
/**
|
|
1143
1243
|
* @fileoverview added by tsickle
|
|
1144
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1244
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1145
1245
|
*/
|
|
1146
1246
|
|
|
1147
1247
|
/**
|
|
1148
1248
|
* @fileoverview added by tsickle
|
|
1149
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1249
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1150
1250
|
*/
|
|
1151
1251
|
|
|
1152
|
-
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY, MatAutocompleteSelectedEvent, MatAutocompleteBase, _MatAutocompleteMixinBase, MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocomplete, MatAutocompleteModule, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY, getMatAutocompleteMissingPanelError, AUTOCOMPLETE_OPTION_HEIGHT, AUTOCOMPLETE_PANEL_HEIGHT, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocompleteTrigger, MatAutocompleteOrigin
|
|
1252
|
+
export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY, MatAutocompleteSelectedEvent, MatAutocompleteBase, _MatAutocompleteMixinBase, MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocomplete, MatAutocompleteModule, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY, getMatAutocompleteMissingPanelError, AUTOCOMPLETE_OPTION_HEIGHT, AUTOCOMPLETE_PANEL_HEIGHT, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocompleteTrigger, MatAutocompleteOrigin };
|
|
1153
1253
|
//# sourceMappingURL=autocomplete.es5.js.map
|