@angular/material 7.1.0 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/_theming.scss +50 -19
- package/autocomplete/typings/index.d.ts +0 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/autocomplete/typings/public-api.d.ts +1 -0
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-ref.d.ts +2 -0
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +139 -39
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +67 -22
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +45 -14
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +126 -38
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +190 -127
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +205 -42
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +52 -26
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +123 -34
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +67 -16
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +288 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +159 -26
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -2
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +176 -70
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +25 -8
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +32 -13
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +30 -14
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +186 -49
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +31 -15
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +88 -20
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +69 -20
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +29 -20
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +48 -15
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +162 -61
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +62 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2927 -995
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +18 -18
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +2 -2
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/core/typings/ripple/ripple.d.ts +1 -1
- package/datepicker/typings/calendar.d.ts +2 -2
- package/datepicker/typings/index.metadata.json +1 -1
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +73 -36
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +44 -23
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +27 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -30
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +147 -128
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +103 -37
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +56 -29
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +95 -35
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +144 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +118 -24
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +114 -67
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +17 -9
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +112 -50
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +51 -23
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +38 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +32 -23
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +51 -18
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +112 -49
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +49 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +141 -41
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +68 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +46 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +129 -41
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +207 -44
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +54 -29
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +126 -37
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +290 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +161 -27
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +175 -69
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +27 -10
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +189 -52
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +91 -23
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +70 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +32 -23
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +51 -18
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +156 -55
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +64 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/form-field/typings/prefix.d.ts +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/icon-registry.d.ts +3 -2
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/list/typings/list.d.ts +16 -5
- package/list/typings/selection-list.d.ts +1 -0
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/menu/typings/menu-trigger.d.ts +1 -1
- package/package.json +5 -5
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/table/typings/index.metadata.json +1 -1
- package/table/typings/table-data-source.d.ts +2 -0
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-group.d.ts +2 -1
- package/tabs/typings/tab-header.d.ts +8 -4
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tooltip/typings/tooltip.d.ts +2 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +0 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/autocomplete/public-api.d.ts +1 -0
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +2 -2
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/core/ripple/ripple.d.ts +1 -1
- package/typings/datepicker/calendar.d.ts +2 -2
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +0 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/public-api.d.ts +1 -0
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +2 -2
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/core/ripple/ripple.d.ts +1 -1
- package/typings/esm5/datepicker/calendar.d.ts +2 -2
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/form-field/prefix.d.ts +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/icon-registry.d.ts +3 -2
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/list/list.d.ts +16 -5
- package/typings/esm5/list/selection-list.d.ts +1 -0
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/menu/menu-trigger.d.ts +1 -1
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/table/index.metadata.json +1 -1
- package/typings/esm5/table/table-data-source.d.ts +2 -0
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-group.d.ts +2 -1
- package/typings/esm5/tabs/tab-header.d.ts +8 -4
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tooltip/tooltip.d.ts +2 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/form-field/prefix.d.ts +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/icon-registry.d.ts +3 -2
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/list/list.d.ts +16 -5
- package/typings/list/selection-list.d.ts +1 -0
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/menu/menu-trigger.d.ts +1 -1
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/table/index.metadata.json +1 -1
- package/typings/table/table-data-source.d.ts +2 -0
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-group.d.ts +2 -1
- package/typings/tabs/tab-header.d.ts +8 -4
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tooltip/tooltip.d.ts +2 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
|
@@ -42,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.
|
|
@@ -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 () {
|
|
@@ -949,12 +1023,15 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
949
1023
|
if (!this.autocomplete) {
|
|
950
1024
|
throw getMatAutocompleteMissingPanelError();
|
|
951
1025
|
}
|
|
952
|
-
|
|
1026
|
+
/** @type {?} */
|
|
1027
|
+
var overlayRef = this._overlayRef;
|
|
1028
|
+
if (!overlayRef) {
|
|
953
1029
|
this._portal = new portal.TemplatePortal(this.autocomplete.template, this._viewContainerRef);
|
|
954
|
-
|
|
1030
|
+
overlayRef = this._overlay.create(this._getOverlayConfig());
|
|
1031
|
+
this._overlayRef = overlayRef;
|
|
955
1032
|
// Use the `keydownEvents` in order to take advantage of
|
|
956
1033
|
// the overlay event targeting provided by the CDK overlay.
|
|
957
|
-
|
|
1034
|
+
overlayRef.keydownEvents().subscribe(function (event) {
|
|
958
1035
|
// Close when pressing ESCAPE or ALT + UP_ARROW, based on the a11y guidelines.
|
|
959
1036
|
// See: https://www.w3.org/TR/wai-aria-practices-1.1/#textbox-keyboard-interaction
|
|
960
1037
|
if (event.keyCode === keycodes.ESCAPE || (event.keyCode === keycodes.UP_ARROW && event.altKey)) {
|
|
@@ -964,18 +1041,21 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
964
1041
|
});
|
|
965
1042
|
if (this._viewportRuler) {
|
|
966
1043
|
this._viewportSubscription = this._viewportRuler.change().subscribe(function () {
|
|
967
|
-
if (_this.panelOpen &&
|
|
968
|
-
|
|
1044
|
+
if (_this.panelOpen && overlayRef) {
|
|
1045
|
+
overlayRef.updateSize({ width: _this._getPanelWidth() });
|
|
969
1046
|
}
|
|
970
1047
|
});
|
|
971
1048
|
}
|
|
972
1049
|
}
|
|
973
1050
|
else {
|
|
974
|
-
|
|
975
|
-
|
|
1051
|
+
/** @type {?} */
|
|
1052
|
+
var position = (/** @type {?} */ (overlayRef.getConfig().positionStrategy));
|
|
1053
|
+
// Update the trigger, panel width and direction, in case anything has changed.
|
|
1054
|
+
position.setOrigin(this._getConnectedElement());
|
|
1055
|
+
overlayRef.updateSize({ width: this._getPanelWidth() });
|
|
976
1056
|
}
|
|
977
|
-
if (
|
|
978
|
-
|
|
1057
|
+
if (overlayRef && !overlayRef.hasAttached()) {
|
|
1058
|
+
overlayRef.attach(this._portal);
|
|
979
1059
|
this._closingActionsSubscription = this._subscribeToClosingActions();
|
|
980
1060
|
}
|
|
981
1061
|
/** @type {?} */
|
|
@@ -989,9 +1069,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
989
1069
|
}
|
|
990
1070
|
};
|
|
991
1071
|
/**
|
|
1072
|
+
* @private
|
|
992
1073
|
* @return {?}
|
|
993
1074
|
*/
|
|
994
1075
|
MatAutocompleteTrigger.prototype._getOverlayConfig = /**
|
|
1076
|
+
* @private
|
|
995
1077
|
* @return {?}
|
|
996
1078
|
*/
|
|
997
1079
|
function () {
|
|
@@ -1003,9 +1085,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1003
1085
|
});
|
|
1004
1086
|
};
|
|
1005
1087
|
/**
|
|
1088
|
+
* @private
|
|
1006
1089
|
* @return {?}
|
|
1007
1090
|
*/
|
|
1008
1091
|
MatAutocompleteTrigger.prototype._getOverlayPosition = /**
|
|
1092
|
+
* @private
|
|
1009
1093
|
* @return {?}
|
|
1010
1094
|
*/
|
|
1011
1095
|
function () {
|
|
@@ -1034,9 +1118,11 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1034
1118
|
return this._positionStrategy;
|
|
1035
1119
|
};
|
|
1036
1120
|
/**
|
|
1121
|
+
* @private
|
|
1037
1122
|
* @return {?}
|
|
1038
1123
|
*/
|
|
1039
1124
|
MatAutocompleteTrigger.prototype._getConnectedElement = /**
|
|
1125
|
+
* @private
|
|
1040
1126
|
* @return {?}
|
|
1041
1127
|
*/
|
|
1042
1128
|
function () {
|
|
@@ -1046,20 +1132,25 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1046
1132
|
return this._formField ? this._formField.getConnectedOverlayOrigin() : this._element;
|
|
1047
1133
|
};
|
|
1048
1134
|
/**
|
|
1135
|
+
* @private
|
|
1049
1136
|
* @return {?}
|
|
1050
1137
|
*/
|
|
1051
1138
|
MatAutocompleteTrigger.prototype._getPanelWidth = /**
|
|
1139
|
+
* @private
|
|
1052
1140
|
* @return {?}
|
|
1053
1141
|
*/
|
|
1054
1142
|
function () {
|
|
1055
1143
|
return this.autocomplete.panelWidth || this._getHostWidth();
|
|
1056
1144
|
};
|
|
1145
|
+
/** Returns the width of the input element, so the panel width can match it. */
|
|
1057
1146
|
/**
|
|
1058
1147
|
* Returns the width of the input element, so the panel width can match it.
|
|
1148
|
+
* @private
|
|
1059
1149
|
* @return {?}
|
|
1060
1150
|
*/
|
|
1061
1151
|
MatAutocompleteTrigger.prototype._getHostWidth = /**
|
|
1062
1152
|
* Returns the width of the input element, so the panel width can match it.
|
|
1153
|
+
* @private
|
|
1063
1154
|
* @return {?}
|
|
1064
1155
|
*/
|
|
1065
1156
|
function () {
|
|
@@ -1068,22 +1159,31 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1068
1159
|
/**
|
|
1069
1160
|
* Resets the active item to -1 so arrow events will activate the
|
|
1070
1161
|
* correct options, or to 0 if the consumer opted into it.
|
|
1162
|
+
*/
|
|
1163
|
+
/**
|
|
1164
|
+
* Resets the active item to -1 so arrow events will activate the
|
|
1165
|
+
* correct options, or to 0 if the consumer opted into it.
|
|
1166
|
+
* @private
|
|
1071
1167
|
* @return {?}
|
|
1072
1168
|
*/
|
|
1073
1169
|
MatAutocompleteTrigger.prototype._resetActiveItem = /**
|
|
1074
1170
|
* Resets the active item to -1 so arrow events will activate the
|
|
1075
1171
|
* correct options, or to 0 if the consumer opted into it.
|
|
1172
|
+
* @private
|
|
1076
1173
|
* @return {?}
|
|
1077
1174
|
*/
|
|
1078
1175
|
function () {
|
|
1079
1176
|
this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption ? 0 : -1);
|
|
1080
1177
|
};
|
|
1178
|
+
/** Determines whether the panel can be opened. */
|
|
1081
1179
|
/**
|
|
1082
1180
|
* Determines whether the panel can be opened.
|
|
1181
|
+
* @private
|
|
1083
1182
|
* @return {?}
|
|
1084
1183
|
*/
|
|
1085
1184
|
MatAutocompleteTrigger.prototype._canOpen = /**
|
|
1086
1185
|
* Determines whether the panel can be opened.
|
|
1186
|
+
* @private
|
|
1087
1187
|
* @return {?}
|
|
1088
1188
|
*/
|
|
1089
1189
|
function () {
|
|
@@ -1098,7 +1198,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1098
1198
|
'[attr.autocomplete]': 'autocompleteAttribute',
|
|
1099
1199
|
'[attr.role]': 'autocompleteDisabled ? null : "combobox"',
|
|
1100
1200
|
'[attr.aria-autocomplete]': 'autocompleteDisabled ? null : "list"',
|
|
1101
|
-
'[attr.aria-activedescendant]': 'activeOption
|
|
1201
|
+
'[attr.aria-activedescendant]': '(panelOpen && activeOption) ? activeOption.id : null',
|
|
1102
1202
|
'[attr.aria-expanded]': 'autocompleteDisabled ? null : panelOpen.toString()',
|
|
1103
1203
|
'[attr.aria-owns]': '(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id',
|
|
1104
1204
|
// Note: we use `focusin`, as opposed to `focus`, in order to open the panel
|
|
@@ -1136,7 +1236,7 @@ var MatAutocompleteTrigger = /** @class */ (function () {
|
|
|
1136
1236
|
|
|
1137
1237
|
/**
|
|
1138
1238
|
* @fileoverview added by tsickle
|
|
1139
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1239
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1140
1240
|
*/
|
|
1141
1241
|
var MatAutocompleteModule = /** @class */ (function () {
|
|
1142
1242
|
function MatAutocompleteModule() {
|
|
@@ -1173,7 +1273,7 @@ exports.MAT_AUTOCOMPLETE_SCROLL_STRATEGY = MAT_AUTOCOMPLETE_SCROLL_STRATEGY;
|
|
|
1173
1273
|
exports.MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER;
|
|
1174
1274
|
exports.MAT_AUTOCOMPLETE_VALUE_ACCESSOR = MAT_AUTOCOMPLETE_VALUE_ACCESSOR;
|
|
1175
1275
|
exports.MatAutocompleteTrigger = MatAutocompleteTrigger;
|
|
1176
|
-
exports
|
|
1276
|
+
exports.MatAutocompleteOrigin = MatAutocompleteOrigin;
|
|
1177
1277
|
|
|
1178
1278
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1179
1279
|
|