@angular/material 7.0.4 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/_theming.scss +61 -44
- package/autocomplete/typings/index.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-config.d.ts +5 -0
- package/bottom-sheet/typings/bottom-sheet-container.d.ts +1 -1
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +126 -32
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +68 -21
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +36 -13
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +124 -34
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +189 -126
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -1
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +231 -53
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +53 -27
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +121 -32
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +66 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +277 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +69 -21
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -6
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +171 -66
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +52 -10
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +31 -12
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +29 -13
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +189 -51
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +30 -14
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +91 -21
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +71 -19
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +37 -35
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +29 -9
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +170 -68
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +53 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2853 -1010
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +19 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +1 -1
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +21 -5
- package/datepicker/typings/calendar.d.ts +4 -1
- package/datepicker/typings/datepicker.d.ts +3 -0
- package/datepicker/typings/index.metadata.json +1 -1
- package/datepicker/typings/month-view.d.ts +4 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +60 -29
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +45 -22
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +20 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -28
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +148 -129
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +124 -41
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +58 -31
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +94 -34
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +136 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +47 -22
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +109 -63
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +35 -12
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +116 -53
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +54 -24
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +41 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +35 -32
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +31 -11
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +113 -53
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +43 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +128 -34
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +70 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +38 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +127 -37
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +233 -55
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +56 -31
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +125 -36
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +279 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +72 -24
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +170 -65
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +55 -13
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +193 -55
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +94 -24
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +73 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +40 -38
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +31 -11
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +162 -61
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +55 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/package.json +5 -5
- package/paginator/typings/index.metadata.json +1 -1
- package/paginator/typings/paginator.d.ts +7 -3
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +3 -5
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-body.d.ts +2 -0
- package/tabs/typings/tab-group.d.ts +11 -2
- package/tabs/typings/tab-header.d.ts +9 -3
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +1 -1
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +21 -5
- package/typings/datepicker/calendar.d.ts +4 -1
- package/typings/datepicker/datepicker.d.ts +3 -0
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/datepicker/month-view.d.ts +4 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-config.d.ts +5 -0
- package/typings/esm5/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +1 -1
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +21 -5
- package/typings/esm5/datepicker/calendar.d.ts +4 -1
- package/typings/esm5/datepicker/datepicker.d.ts +3 -0
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/datepicker/month-view.d.ts +4 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/paginator/index.metadata.json +1 -1
- package/typings/esm5/paginator/paginator.d.ts +7 -3
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +3 -5
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +2 -0
- package/typings/esm5/tabs/tab-group.d.ts +11 -2
- package/typings/esm5/tabs/tab-header.d.ts +9 -3
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/paginator/index.metadata.json +1 -1
- package/typings/paginator/paginator.d.ts +7 -3
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +3 -5
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-body.d.ts +2 -0
- package/typings/tabs/tab-group.d.ts +11 -2
- package/typings/tabs/tab-header.d.ts +9 -3
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm2015/chips.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
9
|
-
import { BACKSPACE, DELETE, SPACE, END, HOME, ENTER } from '@angular/cdk/keycodes';
|
|
9
|
+
import { BACKSPACE, DELETE, SPACE, END, HOME, hasModifierKey, ENTER } from '@angular/cdk/keycodes';
|
|
10
10
|
import { Platform } from '@angular/cdk/platform';
|
|
11
11
|
import { ContentChild, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Optional, Output, InjectionToken, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Self, ViewEncapsulation, NgModule } from '@angular/core';
|
|
12
12
|
import { MAT_RIPPLE_GLOBAL_OPTIONS, mixinColor, mixinDisabled, mixinDisableRipple, RippleRenderer, ErrorStateMatcher, mixinErrorState } from '@angular/material/core';
|
|
@@ -20,7 +20,7 @@ import { MatFormFieldControl } from '@angular/material/form-field';
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @fileoverview added by tsickle
|
|
23
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
23
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* Event object emitted by MatChip when selected or deselected.
|
|
@@ -37,6 +37,7 @@ class MatChipSelectionChange {
|
|
|
37
37
|
this.isUserInput = isUserInput;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
// Boilerplate for applying mixins to MatChip.
|
|
40
41
|
/**
|
|
41
42
|
* \@docs-private
|
|
42
43
|
*/
|
|
@@ -183,8 +184,8 @@ class MatChip extends _MatChipMixinBase {
|
|
|
183
184
|
set value(value) { this._value = value; }
|
|
184
185
|
/**
|
|
185
186
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
186
|
-
* changes to
|
|
187
|
-
* selectable, and it becomes non-selectable if
|
|
187
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
188
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
188
189
|
* not selectable.
|
|
189
190
|
* @return {?}
|
|
190
191
|
*/
|
|
@@ -223,11 +224,11 @@ class MatChip extends _MatChipMixinBase {
|
|
|
223
224
|
for (const attr of CHIP_ATTRIBUTE_NAMES) {
|
|
224
225
|
if (this._elementRef.nativeElement.hasAttribute(attr) ||
|
|
225
226
|
this._elementRef.nativeElement.tagName.toLowerCase() === attr) {
|
|
226
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add(attr);
|
|
227
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add(attr);
|
|
227
228
|
return;
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add('mat-standard-chip');
|
|
231
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add('mat-standard-chip');
|
|
231
232
|
}
|
|
232
233
|
/**
|
|
233
234
|
* @return {?}
|
|
@@ -358,6 +359,7 @@ class MatChip extends _MatChipMixinBase {
|
|
|
358
359
|
});
|
|
359
360
|
}
|
|
360
361
|
/**
|
|
362
|
+
* @private
|
|
361
363
|
* @param {?=} isUserInput
|
|
362
364
|
* @return {?}
|
|
363
365
|
*/
|
|
@@ -464,17 +466,19 @@ MatChipRemove.ctorParameters = () => [
|
|
|
464
466
|
|
|
465
467
|
/**
|
|
466
468
|
* @fileoverview added by tsickle
|
|
467
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
469
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
468
470
|
*/
|
|
469
|
-
/**
|
|
471
|
+
/**
|
|
470
472
|
* Injection token to be used to override the default options for the chips module.
|
|
471
|
-
|
|
473
|
+
* @type {?}
|
|
474
|
+
*/
|
|
472
475
|
const MAT_CHIPS_DEFAULT_OPTIONS = new InjectionToken('mat-chips-default-options');
|
|
473
476
|
|
|
474
477
|
/**
|
|
475
478
|
* @fileoverview added by tsickle
|
|
476
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
479
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
477
480
|
*/
|
|
481
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
478
482
|
/**
|
|
479
483
|
* \@docs-private
|
|
480
484
|
*/
|
|
@@ -494,6 +498,7 @@ class MatChipListBase {
|
|
|
494
498
|
}
|
|
495
499
|
/** @type {?} */
|
|
496
500
|
const _MatChipListMixinBase = mixinErrorState(MatChipListBase);
|
|
501
|
+
// Increasing integer for generating unique ids for chip-list components.
|
|
497
502
|
/** @type {?} */
|
|
498
503
|
let nextUniqueId = 0;
|
|
499
504
|
/**
|
|
@@ -510,7 +515,7 @@ class MatChipListChange {
|
|
|
510
515
|
}
|
|
511
516
|
}
|
|
512
517
|
/**
|
|
513
|
-
* A material design chips component (named ChipList for
|
|
518
|
+
* A material design chips component (named ChipList for its similarity to the List component).
|
|
514
519
|
*/
|
|
515
520
|
class MatChipList extends _MatChipListMixinBase {
|
|
516
521
|
/**
|
|
@@ -522,8 +527,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
522
527
|
* @param {?} _defaultErrorStateMatcher
|
|
523
528
|
* @param {?} ngControl
|
|
524
529
|
*/
|
|
525
|
-
constructor(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher,
|
|
526
|
-
ngControl) {
|
|
530
|
+
constructor(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, ngControl) {
|
|
527
531
|
super(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);
|
|
528
532
|
this._elementRef = _elementRef;
|
|
529
533
|
this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -779,6 +783,11 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
779
783
|
.withWrap()
|
|
780
784
|
.withVerticalOrientation()
|
|
781
785
|
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');
|
|
786
|
+
if (this._dir) {
|
|
787
|
+
this._dir.change
|
|
788
|
+
.pipe(takeUntil(this._destroyed))
|
|
789
|
+
.subscribe(dir => this._keyManager.withHorizontalOrientation(dir));
|
|
790
|
+
}
|
|
782
791
|
// Prevents the chip list from capturing focus and redirecting
|
|
783
792
|
// it back to the first chip when the user tabs out.
|
|
784
793
|
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
@@ -839,6 +848,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
839
848
|
* @return {?}
|
|
840
849
|
*/
|
|
841
850
|
setDescribedByIds(ids) { this._ariaDescribedby = ids.join(' '); }
|
|
851
|
+
// Implemented as part of ControlValueAccessor.
|
|
842
852
|
/**
|
|
843
853
|
* @param {?} value
|
|
844
854
|
* @return {?}
|
|
@@ -848,6 +858,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
848
858
|
this._setSelectionByValue(value, false);
|
|
849
859
|
}
|
|
850
860
|
}
|
|
861
|
+
// Implemented as part of ControlValueAccessor.
|
|
851
862
|
/**
|
|
852
863
|
* @param {?} fn
|
|
853
864
|
* @return {?}
|
|
@@ -855,6 +866,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
855
866
|
registerOnChange(fn) {
|
|
856
867
|
this._onChange = fn;
|
|
857
868
|
}
|
|
869
|
+
// Implemented as part of ControlValueAccessor.
|
|
858
870
|
/**
|
|
859
871
|
* @param {?} fn
|
|
860
872
|
* @return {?}
|
|
@@ -862,6 +874,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
862
874
|
registerOnTouched(fn) {
|
|
863
875
|
this._onTouched = fn;
|
|
864
876
|
}
|
|
877
|
+
// Implemented as part of ControlValueAccessor.
|
|
865
878
|
/**
|
|
866
879
|
* @param {?} isDisabled
|
|
867
880
|
* @return {?}
|
|
@@ -920,7 +933,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
920
933
|
*/
|
|
921
934
|
_keydown(event) {
|
|
922
935
|
/** @type {?} */
|
|
923
|
-
const target = /** @type {?} */ (event.target);
|
|
936
|
+
const target = (/** @type {?} */ (event.target));
|
|
924
937
|
// If they are on an empty input and hit backspace, focus the last chip
|
|
925
938
|
if (event.keyCode === BACKSPACE && this._isInputEmpty(target)) {
|
|
926
939
|
this._keyManager.setLastItemActive();
|
|
@@ -943,6 +956,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
943
956
|
}
|
|
944
957
|
/**
|
|
945
958
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
959
|
+
* @protected
|
|
946
960
|
* @return {?}
|
|
947
961
|
*/
|
|
948
962
|
_updateTabIndex() {
|
|
@@ -952,6 +966,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
952
966
|
/**
|
|
953
967
|
* If the amount of chips changed, we need to update the
|
|
954
968
|
* key manager state and focus the next closest chip.
|
|
969
|
+
* @protected
|
|
955
970
|
* @return {?}
|
|
956
971
|
*/
|
|
957
972
|
_updateFocusForDestroyedChips() {
|
|
@@ -965,6 +980,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
965
980
|
/**
|
|
966
981
|
* Utility to ensure all indexes are valid.
|
|
967
982
|
*
|
|
983
|
+
* @private
|
|
968
984
|
* @param {?} index The index to be checked.
|
|
969
985
|
* @return {?} True if the index is valid for our list of chips.
|
|
970
986
|
*/
|
|
@@ -972,13 +988,14 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
972
988
|
return index >= 0 && index < this.chips.length;
|
|
973
989
|
}
|
|
974
990
|
/**
|
|
991
|
+
* @private
|
|
975
992
|
* @param {?} element
|
|
976
993
|
* @return {?}
|
|
977
994
|
*/
|
|
978
995
|
_isInputEmpty(element) {
|
|
979
996
|
if (element && element.nodeName.toLowerCase() === 'input') {
|
|
980
997
|
/** @type {?} */
|
|
981
|
-
let input = /** @type {?} */ (element);
|
|
998
|
+
let input = (/** @type {?} */ (element));
|
|
982
999
|
return !input.value;
|
|
983
1000
|
}
|
|
984
1001
|
return false;
|
|
@@ -1009,6 +1026,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1009
1026
|
}
|
|
1010
1027
|
/**
|
|
1011
1028
|
* Finds and selects the chip based on its value.
|
|
1029
|
+
* @private
|
|
1012
1030
|
* @param {?} value
|
|
1013
1031
|
* @param {?=} isUserInput
|
|
1014
1032
|
* @return {?} Chip that has the corresponding value.
|
|
@@ -1025,6 +1043,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1025
1043
|
return correspondingChip;
|
|
1026
1044
|
}
|
|
1027
1045
|
/**
|
|
1046
|
+
* @private
|
|
1028
1047
|
* @return {?}
|
|
1029
1048
|
*/
|
|
1030
1049
|
_initializeSelection() {
|
|
@@ -1039,6 +1058,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1039
1058
|
}
|
|
1040
1059
|
/**
|
|
1041
1060
|
* Deselects every chip in the list.
|
|
1061
|
+
* @private
|
|
1042
1062
|
* @param {?=} skip Chip that should not be deselected.
|
|
1043
1063
|
* @return {?}
|
|
1044
1064
|
*/
|
|
@@ -1054,6 +1074,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1054
1074
|
/**
|
|
1055
1075
|
* Sorts the model values, ensuring that they keep the same
|
|
1056
1076
|
* order that they have in the panel.
|
|
1077
|
+
* @private
|
|
1057
1078
|
* @return {?}
|
|
1058
1079
|
*/
|
|
1059
1080
|
_sortValues() {
|
|
@@ -1069,6 +1090,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1069
1090
|
}
|
|
1070
1091
|
/**
|
|
1071
1092
|
* Emits change event to set the model value.
|
|
1093
|
+
* @private
|
|
1072
1094
|
* @param {?=} fallbackValue
|
|
1073
1095
|
* @return {?}
|
|
1074
1096
|
*/
|
|
@@ -1123,6 +1145,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1123
1145
|
this.stateChanges.next();
|
|
1124
1146
|
}
|
|
1125
1147
|
/**
|
|
1148
|
+
* @private
|
|
1126
1149
|
* @return {?}
|
|
1127
1150
|
*/
|
|
1128
1151
|
_resetChips() {
|
|
@@ -1132,6 +1155,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1132
1155
|
this._listenToChipsRemoved();
|
|
1133
1156
|
}
|
|
1134
1157
|
/**
|
|
1158
|
+
* @private
|
|
1135
1159
|
* @return {?}
|
|
1136
1160
|
*/
|
|
1137
1161
|
_dropSubscriptions() {
|
|
@@ -1154,6 +1178,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1154
1178
|
}
|
|
1155
1179
|
/**
|
|
1156
1180
|
* Listens to user-generated selection events on each chip.
|
|
1181
|
+
* @private
|
|
1157
1182
|
* @return {?}
|
|
1158
1183
|
*/
|
|
1159
1184
|
_listenToChipsSelection() {
|
|
@@ -1176,6 +1201,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1176
1201
|
}
|
|
1177
1202
|
/**
|
|
1178
1203
|
* Listens to user-generated selection events on each chip.
|
|
1204
|
+
* @private
|
|
1179
1205
|
* @return {?}
|
|
1180
1206
|
*/
|
|
1181
1207
|
_listenToChipsFocus() {
|
|
@@ -1193,6 +1219,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1193
1219
|
});
|
|
1194
1220
|
}
|
|
1195
1221
|
/**
|
|
1222
|
+
* @private
|
|
1196
1223
|
* @return {?}
|
|
1197
1224
|
*/
|
|
1198
1225
|
_listenToChipsRemoved() {
|
|
@@ -1211,12 +1238,13 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1211
1238
|
}
|
|
1212
1239
|
/**
|
|
1213
1240
|
* Checks whether an event comes from inside a chip element.
|
|
1241
|
+
* @private
|
|
1214
1242
|
* @param {?} event
|
|
1215
1243
|
* @return {?}
|
|
1216
1244
|
*/
|
|
1217
1245
|
_originatesFromChip(event) {
|
|
1218
1246
|
/** @type {?} */
|
|
1219
|
-
let currentElement = /** @type {?} */ (event.target);
|
|
1247
|
+
let currentElement = (/** @type {?} */ (event.target));
|
|
1220
1248
|
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
1221
1249
|
if (currentElement.classList.contains('mat-chip')) {
|
|
1222
1250
|
return true;
|
|
@@ -1227,6 +1255,7 @@ class MatChipList extends _MatChipListMixinBase {
|
|
|
1227
1255
|
}
|
|
1228
1256
|
/**
|
|
1229
1257
|
* Checks whether any of the chips is focused.
|
|
1258
|
+
* @private
|
|
1230
1259
|
* @return {?}
|
|
1231
1260
|
*/
|
|
1232
1261
|
_hasFocusedChip() {
|
|
@@ -1256,7 +1285,7 @@ MatChipList.decorators = [
|
|
|
1256
1285
|
'[id]': '_uid',
|
|
1257
1286
|
},
|
|
1258
1287
|
providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }],
|
|
1259
|
-
styles: [".mat-chip{position:relative;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;
|
|
1288
|
+
styles: [".mat-chip{position:relative;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:'';pointer-events:none;transition:opacity .2s cubic-bezier(.35,0,.25,1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:0}.mat-standard-chip:focus::after{opacity:.16}@media (-ms-high-contrast:active){.mat-standard-chip{outline:solid 1px}.mat-standard-chip:focus{outline:dotted 2px}}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper .mat-standard-chip,.mat-chip-list-wrapper input.mat-input-element{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}"],
|
|
1260
1289
|
encapsulation: ViewEncapsulation.None,
|
|
1261
1290
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1262
1291
|
},] },
|
|
@@ -1289,8 +1318,9 @@ MatChipList.propDecorators = {
|
|
|
1289
1318
|
|
|
1290
1319
|
/**
|
|
1291
1320
|
* @fileoverview added by tsickle
|
|
1292
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1321
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1293
1322
|
*/
|
|
1323
|
+
// Increasing integer for generating unique ids.
|
|
1294
1324
|
/** @type {?} */
|
|
1295
1325
|
let nextUniqueId$1 = 0;
|
|
1296
1326
|
/**
|
|
@@ -1329,7 +1359,7 @@ class MatChipInput {
|
|
|
1329
1359
|
*/
|
|
1330
1360
|
this.id = `mat-chip-list-input-${nextUniqueId$1++}`;
|
|
1331
1361
|
this._disabled = false;
|
|
1332
|
-
this._inputElement = /** @type {?} */ (this._elementRef.nativeElement);
|
|
1362
|
+
this._inputElement = (/** @type {?} */ (this._elementRef.nativeElement));
|
|
1333
1363
|
}
|
|
1334
1364
|
/**
|
|
1335
1365
|
* Register input for chip list
|
|
@@ -1412,7 +1442,7 @@ class MatChipInput {
|
|
|
1412
1442
|
if (!this._inputElement.value && !!event) {
|
|
1413
1443
|
this._chipList._keydown(event);
|
|
1414
1444
|
}
|
|
1415
|
-
if (!event || this._isSeparatorKey(event
|
|
1445
|
+
if (!event || this._isSeparatorKey(event)) {
|
|
1416
1446
|
this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });
|
|
1417
1447
|
if (event) {
|
|
1418
1448
|
event.preventDefault();
|
|
@@ -1435,12 +1465,18 @@ class MatChipInput {
|
|
|
1435
1465
|
}
|
|
1436
1466
|
/**
|
|
1437
1467
|
* Checks whether a keycode is one of the configured separators.
|
|
1438
|
-
* @
|
|
1468
|
+
* @private
|
|
1469
|
+
* @param {?} event
|
|
1439
1470
|
* @return {?}
|
|
1440
1471
|
*/
|
|
1441
|
-
_isSeparatorKey(
|
|
1472
|
+
_isSeparatorKey(event) {
|
|
1473
|
+
if (hasModifierKey(event)) {
|
|
1474
|
+
return false;
|
|
1475
|
+
}
|
|
1442
1476
|
/** @type {?} */
|
|
1443
1477
|
const separators = this.separatorKeyCodes;
|
|
1478
|
+
/** @type {?} */
|
|
1479
|
+
const keyCode = event.keyCode;
|
|
1444
1480
|
return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);
|
|
1445
1481
|
}
|
|
1446
1482
|
}
|
|
@@ -1478,7 +1514,7 @@ MatChipInput.propDecorators = {
|
|
|
1478
1514
|
|
|
1479
1515
|
/**
|
|
1480
1516
|
* @fileoverview added by tsickle
|
|
1481
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1517
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1482
1518
|
*/
|
|
1483
1519
|
/** @type {?} */
|
|
1484
1520
|
const CHIP_DECLARATIONS = [
|
|
@@ -1489,9 +1525,9 @@ const CHIP_DECLARATIONS = [
|
|
|
1489
1525
|
MatChipAvatar,
|
|
1490
1526
|
MatChipTrailingIcon,
|
|
1491
1527
|
];
|
|
1492
|
-
const ɵ0 = {
|
|
1528
|
+
const ɵ0 = ({
|
|
1493
1529
|
separatorKeyCodes: [ENTER]
|
|
1494
|
-
};
|
|
1530
|
+
});
|
|
1495
1531
|
class MatChipsModule {
|
|
1496
1532
|
}
|
|
1497
1533
|
MatChipsModule.decorators = [
|
|
@@ -1502,7 +1538,7 @@ MatChipsModule.decorators = [
|
|
|
1502
1538
|
ErrorStateMatcher,
|
|
1503
1539
|
{
|
|
1504
1540
|
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1505
|
-
useValue: /** @type {?} */ (
|
|
1541
|
+
useValue: (/** @type {?} */ (ɵ0))
|
|
1506
1542
|
}
|
|
1507
1543
|
]
|
|
1508
1544
|
},] },
|
|
@@ -1510,12 +1546,12 @@ MatChipsModule.decorators = [
|
|
|
1510
1546
|
|
|
1511
1547
|
/**
|
|
1512
1548
|
* @fileoverview added by tsickle
|
|
1513
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1549
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1514
1550
|
*/
|
|
1515
1551
|
|
|
1516
1552
|
/**
|
|
1517
1553
|
* @fileoverview added by tsickle
|
|
1518
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1554
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1519
1555
|
*/
|
|
1520
1556
|
|
|
1521
1557
|
export { MatChipsModule, MatChipListBase, _MatChipListMixinBase, MatChipListChange, MatChipList, MatChipSelectionChange, MatChipBase, _MatChipMixinBase, MatChipAvatar, MatChipTrailingIcon, MatChip, MatChipRemove, MatChipInput, MAT_CHIPS_DEFAULT_OPTIONS };
|