@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/esm5/chips.es5.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { __extends } from 'tslib';
|
|
9
9
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
10
|
-
import { BACKSPACE, DELETE, SPACE, END, HOME, ENTER } from '@angular/cdk/keycodes';
|
|
10
|
+
import { BACKSPACE, DELETE, SPACE, END, HOME, hasModifierKey, ENTER } from '@angular/cdk/keycodes';
|
|
11
11
|
import { Platform } from '@angular/cdk/platform';
|
|
12
12
|
import { ContentChild, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Optional, Output, InjectionToken, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Self, ViewEncapsulation, NgModule } from '@angular/core';
|
|
13
13
|
import { MAT_RIPPLE_GLOBAL_OPTIONS, mixinColor, mixinDisabled, mixinDisableRipple, RippleRenderer, ErrorStateMatcher, mixinErrorState } from '@angular/material/core';
|
|
@@ -21,7 +21,7 @@ import { MatFormFieldControl } from '@angular/material/form-field';
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @fileoverview added by tsickle
|
|
24
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
24
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
27
|
* Event object emitted by MatChip when selected or deselected.
|
|
@@ -38,10 +38,13 @@ MatChipSelectionChange = /** @class */ (function () {
|
|
|
38
38
|
}
|
|
39
39
|
return MatChipSelectionChange;
|
|
40
40
|
}());
|
|
41
|
+
// Boilerplate for applying mixins to MatChip.
|
|
41
42
|
/**
|
|
42
43
|
* \@docs-private
|
|
43
44
|
*/
|
|
44
|
-
var
|
|
45
|
+
var
|
|
46
|
+
// Boilerplate for applying mixins to MatChip.
|
|
47
|
+
/**
|
|
45
48
|
* \@docs-private
|
|
46
49
|
*/
|
|
47
50
|
MatChipBase = /** @class */ (function () {
|
|
@@ -206,14 +209,14 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
206
209
|
Object.defineProperty(MatChip.prototype, "selectable", {
|
|
207
210
|
/**
|
|
208
211
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
209
|
-
* changes to
|
|
210
|
-
* selectable, and it becomes non-selectable if
|
|
212
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
213
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
211
214
|
* not selectable.
|
|
212
215
|
*/
|
|
213
216
|
get: /**
|
|
214
217
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
215
|
-
* changes to
|
|
216
|
-
* selectable, and it becomes non-selectable if
|
|
218
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
219
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
217
220
|
* not selectable.
|
|
218
221
|
* @return {?}
|
|
219
222
|
*/
|
|
@@ -271,11 +274,11 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
271
274
|
var attr = CHIP_ATTRIBUTE_NAMES_1[_i];
|
|
272
275
|
if (this._elementRef.nativeElement.hasAttribute(attr) ||
|
|
273
276
|
this._elementRef.nativeElement.tagName.toLowerCase() === attr) {
|
|
274
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add(attr);
|
|
277
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add(attr);
|
|
275
278
|
return;
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add('mat-standard-chip');
|
|
281
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add('mat-standard-chip');
|
|
279
282
|
};
|
|
280
283
|
/**
|
|
281
284
|
* @return {?}
|
|
@@ -465,10 +468,12 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
465
468
|
});
|
|
466
469
|
};
|
|
467
470
|
/**
|
|
471
|
+
* @private
|
|
468
472
|
* @param {?=} isUserInput
|
|
469
473
|
* @return {?}
|
|
470
474
|
*/
|
|
471
475
|
MatChip.prototype._dispatchSelectionChange = /**
|
|
476
|
+
* @private
|
|
472
477
|
* @param {?=} isUserInput
|
|
473
478
|
* @return {?}
|
|
474
479
|
*/
|
|
@@ -581,21 +586,25 @@ var MatChipRemove = /** @class */ (function () {
|
|
|
581
586
|
|
|
582
587
|
/**
|
|
583
588
|
* @fileoverview added by tsickle
|
|
584
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
589
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
585
590
|
*/
|
|
586
|
-
/**
|
|
591
|
+
/**
|
|
587
592
|
* Injection token to be used to override the default options for the chips module.
|
|
588
|
-
|
|
593
|
+
* @type {?}
|
|
594
|
+
*/
|
|
589
595
|
var MAT_CHIPS_DEFAULT_OPTIONS = new InjectionToken('mat-chips-default-options');
|
|
590
596
|
|
|
591
597
|
/**
|
|
592
598
|
* @fileoverview added by tsickle
|
|
593
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
599
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
594
600
|
*/
|
|
601
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
595
602
|
/**
|
|
596
603
|
* \@docs-private
|
|
597
604
|
*/
|
|
598
|
-
var
|
|
605
|
+
var
|
|
606
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
607
|
+
/**
|
|
599
608
|
* \@docs-private
|
|
600
609
|
*/
|
|
601
610
|
MatChipListBase = /** @class */ (function () {
|
|
@@ -609,6 +618,7 @@ MatChipListBase = /** @class */ (function () {
|
|
|
609
618
|
}());
|
|
610
619
|
/** @type {?} */
|
|
611
620
|
var _MatChipListMixinBase = mixinErrorState(MatChipListBase);
|
|
621
|
+
// Increasing integer for generating unique ids for chip-list components.
|
|
612
622
|
/** @type {?} */
|
|
613
623
|
var nextUniqueId = 0;
|
|
614
624
|
/**
|
|
@@ -625,12 +635,11 @@ MatChipListChange = /** @class */ (function () {
|
|
|
625
635
|
return MatChipListChange;
|
|
626
636
|
}());
|
|
627
637
|
/**
|
|
628
|
-
* A material design chips component (named ChipList for
|
|
638
|
+
* A material design chips component (named ChipList for its similarity to the List component).
|
|
629
639
|
*/
|
|
630
640
|
var MatChipList = /** @class */ (function (_super) {
|
|
631
641
|
__extends(MatChipList, _super);
|
|
632
|
-
function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher,
|
|
633
|
-
ngControl) {
|
|
642
|
+
function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, ngControl) {
|
|
634
643
|
var _this = _super.call(this, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) || this;
|
|
635
644
|
_this._elementRef = _elementRef;
|
|
636
645
|
_this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -1010,6 +1019,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1010
1019
|
.withWrap()
|
|
1011
1020
|
.withVerticalOrientation()
|
|
1012
1021
|
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');
|
|
1022
|
+
if (this._dir) {
|
|
1023
|
+
this._dir.change
|
|
1024
|
+
.pipe(takeUntil(this._destroyed))
|
|
1025
|
+
.subscribe(function (dir) { return _this._keyManager.withHorizontalOrientation(dir); });
|
|
1026
|
+
}
|
|
1013
1027
|
// Prevents the chip list from capturing focus and redirecting
|
|
1014
1028
|
// it back to the first chip when the user tabs out.
|
|
1015
1029
|
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(function () {
|
|
@@ -1096,11 +1110,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1096
1110
|
*/
|
|
1097
1111
|
function (ids) { this._ariaDescribedby = ids.join(' '); };
|
|
1098
1112
|
// Implemented as part of ControlValueAccessor.
|
|
1113
|
+
// Implemented as part of ControlValueAccessor.
|
|
1099
1114
|
/**
|
|
1100
1115
|
* @param {?} value
|
|
1101
1116
|
* @return {?}
|
|
1102
1117
|
*/
|
|
1103
|
-
MatChipList.prototype.writeValue =
|
|
1118
|
+
MatChipList.prototype.writeValue =
|
|
1119
|
+
// Implemented as part of ControlValueAccessor.
|
|
1120
|
+
/**
|
|
1104
1121
|
* @param {?} value
|
|
1105
1122
|
* @return {?}
|
|
1106
1123
|
*/
|
|
@@ -1110,11 +1127,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1110
1127
|
}
|
|
1111
1128
|
};
|
|
1112
1129
|
// Implemented as part of ControlValueAccessor.
|
|
1130
|
+
// Implemented as part of ControlValueAccessor.
|
|
1113
1131
|
/**
|
|
1114
1132
|
* @param {?} fn
|
|
1115
1133
|
* @return {?}
|
|
1116
1134
|
*/
|
|
1117
|
-
MatChipList.prototype.registerOnChange =
|
|
1135
|
+
MatChipList.prototype.registerOnChange =
|
|
1136
|
+
// Implemented as part of ControlValueAccessor.
|
|
1137
|
+
/**
|
|
1118
1138
|
* @param {?} fn
|
|
1119
1139
|
* @return {?}
|
|
1120
1140
|
*/
|
|
@@ -1122,11 +1142,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1122
1142
|
this._onChange = fn;
|
|
1123
1143
|
};
|
|
1124
1144
|
// Implemented as part of ControlValueAccessor.
|
|
1145
|
+
// Implemented as part of ControlValueAccessor.
|
|
1125
1146
|
/**
|
|
1126
1147
|
* @param {?} fn
|
|
1127
1148
|
* @return {?}
|
|
1128
1149
|
*/
|
|
1129
|
-
MatChipList.prototype.registerOnTouched =
|
|
1150
|
+
MatChipList.prototype.registerOnTouched =
|
|
1151
|
+
// Implemented as part of ControlValueAccessor.
|
|
1152
|
+
/**
|
|
1130
1153
|
* @param {?} fn
|
|
1131
1154
|
* @return {?}
|
|
1132
1155
|
*/
|
|
@@ -1134,11 +1157,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1134
1157
|
this._onTouched = fn;
|
|
1135
1158
|
};
|
|
1136
1159
|
// Implemented as part of ControlValueAccessor.
|
|
1160
|
+
// Implemented as part of ControlValueAccessor.
|
|
1137
1161
|
/**
|
|
1138
1162
|
* @param {?} isDisabled
|
|
1139
1163
|
* @return {?}
|
|
1140
1164
|
*/
|
|
1141
|
-
MatChipList.prototype.setDisabledState =
|
|
1165
|
+
MatChipList.prototype.setDisabledState =
|
|
1166
|
+
// Implemented as part of ControlValueAccessor.
|
|
1167
|
+
/**
|
|
1142
1168
|
* @param {?} isDisabled
|
|
1143
1169
|
* @return {?}
|
|
1144
1170
|
*/
|
|
@@ -1228,7 +1254,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1228
1254
|
*/
|
|
1229
1255
|
function (event) {
|
|
1230
1256
|
/** @type {?} */
|
|
1231
|
-
var target = /** @type {?} */ (event.target);
|
|
1257
|
+
var target = (/** @type {?} */ (event.target));
|
|
1232
1258
|
// If they are on an empty input and hit backspace, focus the last chip
|
|
1233
1259
|
if (event.keyCode === BACKSPACE && this._isInputEmpty(target)) {
|
|
1234
1260
|
this._keyManager.setLastItemActive();
|
|
@@ -1254,10 +1280,12 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1254
1280
|
*/
|
|
1255
1281
|
/**
|
|
1256
1282
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1283
|
+
* @protected
|
|
1257
1284
|
* @return {?}
|
|
1258
1285
|
*/
|
|
1259
1286
|
MatChipList.prototype._updateTabIndex = /**
|
|
1260
1287
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1288
|
+
* @protected
|
|
1261
1289
|
* @return {?}
|
|
1262
1290
|
*/
|
|
1263
1291
|
function () {
|
|
@@ -1271,11 +1299,13 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1271
1299
|
/**
|
|
1272
1300
|
* If the amount of chips changed, we need to update the
|
|
1273
1301
|
* key manager state and focus the next closest chip.
|
|
1302
|
+
* @protected
|
|
1274
1303
|
* @return {?}
|
|
1275
1304
|
*/
|
|
1276
1305
|
MatChipList.prototype._updateFocusForDestroyedChips = /**
|
|
1277
1306
|
* If the amount of chips changed, we need to update the
|
|
1278
1307
|
* key manager state and focus the next closest chip.
|
|
1308
|
+
* @protected
|
|
1279
1309
|
* @return {?}
|
|
1280
1310
|
*/
|
|
1281
1311
|
function () {
|
|
@@ -1289,12 +1319,20 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1289
1319
|
/**
|
|
1290
1320
|
* Utility to ensure all indexes are valid.
|
|
1291
1321
|
*
|
|
1322
|
+
* @param index The index to be checked.
|
|
1323
|
+
* @returns True if the index is valid for our list of chips.
|
|
1324
|
+
*/
|
|
1325
|
+
/**
|
|
1326
|
+
* Utility to ensure all indexes are valid.
|
|
1327
|
+
*
|
|
1328
|
+
* @private
|
|
1292
1329
|
* @param {?} index The index to be checked.
|
|
1293
1330
|
* @return {?} True if the index is valid for our list of chips.
|
|
1294
1331
|
*/
|
|
1295
1332
|
MatChipList.prototype._isValidIndex = /**
|
|
1296
1333
|
* Utility to ensure all indexes are valid.
|
|
1297
1334
|
*
|
|
1335
|
+
* @private
|
|
1298
1336
|
* @param {?} index The index to be checked.
|
|
1299
1337
|
* @return {?} True if the index is valid for our list of chips.
|
|
1300
1338
|
*/
|
|
@@ -1302,17 +1340,19 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1302
1340
|
return index >= 0 && index < this.chips.length;
|
|
1303
1341
|
};
|
|
1304
1342
|
/**
|
|
1343
|
+
* @private
|
|
1305
1344
|
* @param {?} element
|
|
1306
1345
|
* @return {?}
|
|
1307
1346
|
*/
|
|
1308
1347
|
MatChipList.prototype._isInputEmpty = /**
|
|
1348
|
+
* @private
|
|
1309
1349
|
* @param {?} element
|
|
1310
1350
|
* @return {?}
|
|
1311
1351
|
*/
|
|
1312
1352
|
function (element) {
|
|
1313
1353
|
if (element && element.nodeName.toLowerCase() === 'input') {
|
|
1314
1354
|
/** @type {?} */
|
|
1315
|
-
var input = /** @type {?} */ (element);
|
|
1355
|
+
var input = (/** @type {?} */ (element));
|
|
1316
1356
|
return !input.value;
|
|
1317
1357
|
}
|
|
1318
1358
|
return false;
|
|
@@ -1350,12 +1390,18 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1350
1390
|
};
|
|
1351
1391
|
/**
|
|
1352
1392
|
* Finds and selects the chip based on its value.
|
|
1393
|
+
* @returns Chip that has the corresponding value.
|
|
1394
|
+
*/
|
|
1395
|
+
/**
|
|
1396
|
+
* Finds and selects the chip based on its value.
|
|
1397
|
+
* @private
|
|
1353
1398
|
* @param {?} value
|
|
1354
1399
|
* @param {?=} isUserInput
|
|
1355
1400
|
* @return {?} Chip that has the corresponding value.
|
|
1356
1401
|
*/
|
|
1357
1402
|
MatChipList.prototype._selectValue = /**
|
|
1358
1403
|
* Finds and selects the chip based on its value.
|
|
1404
|
+
* @private
|
|
1359
1405
|
* @param {?} value
|
|
1360
1406
|
* @param {?=} isUserInput
|
|
1361
1407
|
* @return {?} Chip that has the corresponding value.
|
|
@@ -1374,9 +1420,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1374
1420
|
return correspondingChip;
|
|
1375
1421
|
};
|
|
1376
1422
|
/**
|
|
1423
|
+
* @private
|
|
1377
1424
|
* @return {?}
|
|
1378
1425
|
*/
|
|
1379
1426
|
MatChipList.prototype._initializeSelection = /**
|
|
1427
|
+
* @private
|
|
1380
1428
|
* @return {?}
|
|
1381
1429
|
*/
|
|
1382
1430
|
function () {
|
|
@@ -1392,11 +1440,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1392
1440
|
};
|
|
1393
1441
|
/**
|
|
1394
1442
|
* Deselects every chip in the list.
|
|
1443
|
+
* @param skip Chip that should not be deselected.
|
|
1444
|
+
*/
|
|
1445
|
+
/**
|
|
1446
|
+
* Deselects every chip in the list.
|
|
1447
|
+
* @private
|
|
1395
1448
|
* @param {?=} skip Chip that should not be deselected.
|
|
1396
1449
|
* @return {?}
|
|
1397
1450
|
*/
|
|
1398
1451
|
MatChipList.prototype._clearSelection = /**
|
|
1399
1452
|
* Deselects every chip in the list.
|
|
1453
|
+
* @private
|
|
1400
1454
|
* @param {?=} skip Chip that should not be deselected.
|
|
1401
1455
|
* @return {?}
|
|
1402
1456
|
*/
|
|
@@ -1412,11 +1466,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1412
1466
|
/**
|
|
1413
1467
|
* Sorts the model values, ensuring that they keep the same
|
|
1414
1468
|
* order that they have in the panel.
|
|
1469
|
+
*/
|
|
1470
|
+
/**
|
|
1471
|
+
* Sorts the model values, ensuring that they keep the same
|
|
1472
|
+
* order that they have in the panel.
|
|
1473
|
+
* @private
|
|
1415
1474
|
* @return {?}
|
|
1416
1475
|
*/
|
|
1417
1476
|
MatChipList.prototype._sortValues = /**
|
|
1418
1477
|
* Sorts the model values, ensuring that they keep the same
|
|
1419
1478
|
* order that they have in the panel.
|
|
1479
|
+
* @private
|
|
1420
1480
|
* @return {?}
|
|
1421
1481
|
*/
|
|
1422
1482
|
function () {
|
|
@@ -1431,13 +1491,16 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1431
1491
|
this.stateChanges.next();
|
|
1432
1492
|
}
|
|
1433
1493
|
};
|
|
1494
|
+
/** Emits change event to set the model value. */
|
|
1434
1495
|
/**
|
|
1435
1496
|
* Emits change event to set the model value.
|
|
1497
|
+
* @private
|
|
1436
1498
|
* @param {?=} fallbackValue
|
|
1437
1499
|
* @return {?}
|
|
1438
1500
|
*/
|
|
1439
1501
|
MatChipList.prototype._propagateChanges = /**
|
|
1440
1502
|
* Emits change event to set the model value.
|
|
1503
|
+
* @private
|
|
1441
1504
|
* @param {?=} fallbackValue
|
|
1442
1505
|
* @return {?}
|
|
1443
1506
|
*/
|
|
@@ -1503,9 +1566,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1503
1566
|
this.stateChanges.next();
|
|
1504
1567
|
};
|
|
1505
1568
|
/**
|
|
1569
|
+
* @private
|
|
1506
1570
|
* @return {?}
|
|
1507
1571
|
*/
|
|
1508
1572
|
MatChipList.prototype._resetChips = /**
|
|
1573
|
+
* @private
|
|
1509
1574
|
* @return {?}
|
|
1510
1575
|
*/
|
|
1511
1576
|
function () {
|
|
@@ -1515,9 +1580,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1515
1580
|
this._listenToChipsRemoved();
|
|
1516
1581
|
};
|
|
1517
1582
|
/**
|
|
1583
|
+
* @private
|
|
1518
1584
|
* @return {?}
|
|
1519
1585
|
*/
|
|
1520
1586
|
MatChipList.prototype._dropSubscriptions = /**
|
|
1587
|
+
* @private
|
|
1521
1588
|
* @return {?}
|
|
1522
1589
|
*/
|
|
1523
1590
|
function () {
|
|
@@ -1538,12 +1605,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1538
1605
|
this._chipRemoveSubscription = null;
|
|
1539
1606
|
}
|
|
1540
1607
|
};
|
|
1608
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1541
1609
|
/**
|
|
1542
1610
|
* Listens to user-generated selection events on each chip.
|
|
1611
|
+
* @private
|
|
1543
1612
|
* @return {?}
|
|
1544
1613
|
*/
|
|
1545
1614
|
MatChipList.prototype._listenToChipsSelection = /**
|
|
1546
1615
|
* Listens to user-generated selection events on each chip.
|
|
1616
|
+
* @private
|
|
1547
1617
|
* @return {?}
|
|
1548
1618
|
*/
|
|
1549
1619
|
function () {
|
|
@@ -1565,12 +1635,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1565
1635
|
}
|
|
1566
1636
|
});
|
|
1567
1637
|
};
|
|
1638
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1568
1639
|
/**
|
|
1569
1640
|
* Listens to user-generated selection events on each chip.
|
|
1641
|
+
* @private
|
|
1570
1642
|
* @return {?}
|
|
1571
1643
|
*/
|
|
1572
1644
|
MatChipList.prototype._listenToChipsFocus = /**
|
|
1573
1645
|
* Listens to user-generated selection events on each chip.
|
|
1646
|
+
* @private
|
|
1574
1647
|
* @return {?}
|
|
1575
1648
|
*/
|
|
1576
1649
|
function () {
|
|
@@ -1589,9 +1662,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1589
1662
|
});
|
|
1590
1663
|
};
|
|
1591
1664
|
/**
|
|
1665
|
+
* @private
|
|
1592
1666
|
* @return {?}
|
|
1593
1667
|
*/
|
|
1594
1668
|
MatChipList.prototype._listenToChipsRemoved = /**
|
|
1669
|
+
* @private
|
|
1595
1670
|
* @return {?}
|
|
1596
1671
|
*/
|
|
1597
1672
|
function () {
|
|
@@ -1609,19 +1684,22 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1609
1684
|
}
|
|
1610
1685
|
});
|
|
1611
1686
|
};
|
|
1687
|
+
/** Checks whether an event comes from inside a chip element. */
|
|
1612
1688
|
/**
|
|
1613
1689
|
* Checks whether an event comes from inside a chip element.
|
|
1690
|
+
* @private
|
|
1614
1691
|
* @param {?} event
|
|
1615
1692
|
* @return {?}
|
|
1616
1693
|
*/
|
|
1617
1694
|
MatChipList.prototype._originatesFromChip = /**
|
|
1618
1695
|
* Checks whether an event comes from inside a chip element.
|
|
1696
|
+
* @private
|
|
1619
1697
|
* @param {?} event
|
|
1620
1698
|
* @return {?}
|
|
1621
1699
|
*/
|
|
1622
1700
|
function (event) {
|
|
1623
1701
|
/** @type {?} */
|
|
1624
|
-
var currentElement = /** @type {?} */ (event.target);
|
|
1702
|
+
var currentElement = (/** @type {?} */ (event.target));
|
|
1625
1703
|
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
1626
1704
|
if (currentElement.classList.contains('mat-chip')) {
|
|
1627
1705
|
return true;
|
|
@@ -1630,12 +1708,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1630
1708
|
}
|
|
1631
1709
|
return false;
|
|
1632
1710
|
};
|
|
1711
|
+
/** Checks whether any of the chips is focused. */
|
|
1633
1712
|
/**
|
|
1634
1713
|
* Checks whether any of the chips is focused.
|
|
1714
|
+
* @private
|
|
1635
1715
|
* @return {?}
|
|
1636
1716
|
*/
|
|
1637
1717
|
MatChipList.prototype._hasFocusedChip = /**
|
|
1638
1718
|
* Checks whether any of the chips is focused.
|
|
1719
|
+
* @private
|
|
1639
1720
|
* @return {?}
|
|
1640
1721
|
*/
|
|
1641
1722
|
function () {
|
|
@@ -1664,7 +1745,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1664
1745
|
'[id]': '_uid',
|
|
1665
1746
|
},
|
|
1666
1747
|
providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }],
|
|
1667
|
-
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;
|
|
1748
|
+
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}"],
|
|
1668
1749
|
encapsulation: ViewEncapsulation.None,
|
|
1669
1750
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1670
1751
|
},] },
|
|
@@ -1699,8 +1780,9 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1699
1780
|
|
|
1700
1781
|
/**
|
|
1701
1782
|
* @fileoverview added by tsickle
|
|
1702
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1783
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1703
1784
|
*/
|
|
1785
|
+
// Increasing integer for generating unique ids.
|
|
1704
1786
|
/** @type {?} */
|
|
1705
1787
|
var nextUniqueId$1 = 0;
|
|
1706
1788
|
/**
|
|
@@ -1735,7 +1817,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1735
1817
|
*/
|
|
1736
1818
|
this.id = "mat-chip-list-input-" + nextUniqueId$1++;
|
|
1737
1819
|
this._disabled = false;
|
|
1738
|
-
this._inputElement = /** @type {?} */ (this._elementRef.nativeElement);
|
|
1820
|
+
this._inputElement = (/** @type {?} */ (this._elementRef.nativeElement));
|
|
1739
1821
|
}
|
|
1740
1822
|
Object.defineProperty(MatChipInput.prototype, "chipList", {
|
|
1741
1823
|
/** Register input for chip list */
|
|
@@ -1863,7 +1945,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1863
1945
|
if (!this._inputElement.value && !!event) {
|
|
1864
1946
|
this._chipList._keydown(event);
|
|
1865
1947
|
}
|
|
1866
|
-
if (!event || this._isSeparatorKey(event
|
|
1948
|
+
if (!event || this._isSeparatorKey(event)) {
|
|
1867
1949
|
this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });
|
|
1868
1950
|
if (event) {
|
|
1869
1951
|
event.preventDefault();
|
|
@@ -1892,19 +1974,27 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1892
1974
|
function () {
|
|
1893
1975
|
this._inputElement.focus();
|
|
1894
1976
|
};
|
|
1977
|
+
/** Checks whether a keycode is one of the configured separators. */
|
|
1895
1978
|
/**
|
|
1896
1979
|
* Checks whether a keycode is one of the configured separators.
|
|
1897
|
-
* @
|
|
1980
|
+
* @private
|
|
1981
|
+
* @param {?} event
|
|
1898
1982
|
* @return {?}
|
|
1899
1983
|
*/
|
|
1900
1984
|
MatChipInput.prototype._isSeparatorKey = /**
|
|
1901
1985
|
* Checks whether a keycode is one of the configured separators.
|
|
1902
|
-
* @
|
|
1986
|
+
* @private
|
|
1987
|
+
* @param {?} event
|
|
1903
1988
|
* @return {?}
|
|
1904
1989
|
*/
|
|
1905
|
-
function (
|
|
1990
|
+
function (event) {
|
|
1991
|
+
if (hasModifierKey(event)) {
|
|
1992
|
+
return false;
|
|
1993
|
+
}
|
|
1906
1994
|
/** @type {?} */
|
|
1907
1995
|
var separators = this.separatorKeyCodes;
|
|
1996
|
+
/** @type {?} */
|
|
1997
|
+
var keyCode = event.keyCode;
|
|
1908
1998
|
return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);
|
|
1909
1999
|
};
|
|
1910
2000
|
MatChipInput.decorators = [
|
|
@@ -1943,7 +2033,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1943
2033
|
|
|
1944
2034
|
/**
|
|
1945
2035
|
* @fileoverview added by tsickle
|
|
1946
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2036
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1947
2037
|
*/
|
|
1948
2038
|
/** @type {?} */
|
|
1949
2039
|
var CHIP_DECLARATIONS = [
|
|
@@ -1954,9 +2044,9 @@ var CHIP_DECLARATIONS = [
|
|
|
1954
2044
|
MatChipAvatar,
|
|
1955
2045
|
MatChipTrailingIcon,
|
|
1956
2046
|
];
|
|
1957
|
-
var ɵ0 = {
|
|
2047
|
+
var ɵ0 = ({
|
|
1958
2048
|
separatorKeyCodes: [ENTER]
|
|
1959
|
-
};
|
|
2049
|
+
});
|
|
1960
2050
|
var MatChipsModule = /** @class */ (function () {
|
|
1961
2051
|
function MatChipsModule() {
|
|
1962
2052
|
}
|
|
@@ -1968,7 +2058,7 @@ var MatChipsModule = /** @class */ (function () {
|
|
|
1968
2058
|
ErrorStateMatcher,
|
|
1969
2059
|
{
|
|
1970
2060
|
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1971
|
-
useValue: /** @type {?} */ (
|
|
2061
|
+
useValue: (/** @type {?} */ (ɵ0))
|
|
1972
2062
|
}
|
|
1973
2063
|
]
|
|
1974
2064
|
},] },
|
|
@@ -1978,12 +2068,12 @@ var MatChipsModule = /** @class */ (function () {
|
|
|
1978
2068
|
|
|
1979
2069
|
/**
|
|
1980
2070
|
* @fileoverview added by tsickle
|
|
1981
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2071
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1982
2072
|
*/
|
|
1983
2073
|
|
|
1984
2074
|
/**
|
|
1985
2075
|
* @fileoverview added by tsickle
|
|
1986
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2076
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1987
2077
|
*/
|
|
1988
2078
|
|
|
1989
2079
|
export { MatChipsModule, MatChipListBase, _MatChipListMixinBase, MatChipListChange, MatChipList, MatChipSelectionChange, MatChipBase, _MatChipMixinBase, MatChipAvatar, MatChipTrailingIcon, MatChip, MatChipRemove, MatChipInput, MAT_CHIPS_DEFAULT_OPTIONS };
|