@angular/material 6.4.6 → 6.4.7
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/_theming.scss +5 -2
- package/autocomplete/typings/autocomplete-trigger.d.ts +12 -1
- package/autocomplete/typings/autocomplete.d.ts +1 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/badge/typings/badge.d.ts +6 -2
- package/badge/typings/index.metadata.json +1 -1
- 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 +32 -1
- 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 +6 -2
- 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.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +2 -1
- 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-card.umd.js +1 -1
- 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.map +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +104 -92
- 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 +13 -16
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +2 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +20 -4
- 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.map +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +200 -74
- 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 +29 -18
- 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 +10 -34
- 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.map +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +13 -6
- 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 +4 -4
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +5 -5
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +10 -9
- 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-progress-bar.umd.js +28 -10
- 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-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +8 -3
- 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 +5 -1
- 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 +1 -1
- 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 +1 -1
- 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.map +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +30 -18
- 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 +31 -31
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +18 -21
- 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-tooltip.umd.js +11 -11
- 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 +28 -54
- 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 +578 -386
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +21 -21
- package/bundles/material.umd.min.js.map +1 -1
- package/button-toggle/typings/button-toggle.d.ts +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/checkbox.d.ts +2 -2
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-input.d.ts +5 -2
- package/chips/typings/chip-list.d.ts +12 -19
- package/chips/typings/chip.d.ts +3 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/line/line.d.ts +1 -1
- package/core/typings/option/option.d.ts +3 -4
- package/core/typings/ripple/ripple-renderer.d.ts +1 -1
- package/core/typings/ripple/ripple.d.ts +1 -1
- package/datepicker/typings/calendar-body.d.ts +1 -1
- package/datepicker/typings/datepicker-input.d.ts +1 -1
- package/datepicker/typings/datepicker-toggle.d.ts +3 -1
- package/datepicker/typings/datepicker.d.ts +1 -1
- package/datepicker/typings/index.metadata.json +1 -1
- package/dialog/typings/dialog-container.d.ts +1 -1
- package/dialog/typings/dialog-content-directives.d.ts +2 -2
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +29 -1
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +8 -3
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +2 -1
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/card.js +1 -1
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +93 -74
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +10 -7
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +22 -5
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/expansion.js +158 -66
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +29 -19
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +7 -30
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +13 -7
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +4 -4
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +9 -9
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +7 -6
- package/esm2015/menu.js.map +1 -1
- package/esm2015/progress-bar.js +25 -6
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +8 -3
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +5 -1
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +1 -1
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +1 -1
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/stepper.js +25 -21
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +22 -32
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +7 -17
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/tooltip.js +9 -9
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +16 -54
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +32 -1
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +7 -3
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +2 -1
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/card.es5.js +1 -1
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +103 -91
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +10 -12
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +21 -5
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/expansion.es5.js +202 -78
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +29 -18
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +7 -30
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +13 -7
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +4 -4
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +9 -9
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +5 -4
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +25 -9
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +8 -3
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +5 -1
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +1 -1
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +1 -1
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/stepper.es5.js +25 -17
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +22 -30
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +9 -12
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +11 -11
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +22 -53
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/accordion-base.d.ts +30 -0
- package/expansion/typings/accordion.d.ts +18 -4
- package/expansion/typings/expansion-panel-header.d.ts +13 -2
- package/expansion/typings/expansion-panel.d.ts +10 -6
- package/expansion/typings/index.metadata.json +1 -1
- package/expansion/typings/public-api.d.ts +1 -0
- package/form-field/typings/form-field.d.ts +4 -3
- package/form-field/typings/index.metadata.json +1 -1
- package/grid-list/typings/grid-list.d.ts +1 -1
- package/grid-list/typings/grid-tile.d.ts +2 -2
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/icon.d.ts +1 -1
- package/icon/typings/index.metadata.json +1 -1
- package/input/typings/autosize.d.ts +2 -1
- package/input/typings/index.metadata.json +1 -1
- package/input/typings/input.d.ts +2 -2
- package/list/typings/index.metadata.json +1 -1
- package/list/typings/list.d.ts +1 -1
- package/list/typings/selection-list.d.ts +2 -2
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -1
- package/menu/typings/menu-item.d.ts +1 -1
- package/menu/typings/menu-trigger.d.ts +1 -1
- package/package.json +4 -4
- 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/progress-bar/typings/progress-bar.d.ts +17 -3
- package/radio/typings/radio.d.ts +1 -1
- package/sidenav/typings/drawer.d.ts +2 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/slide-toggle.d.ts +3 -3
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/snack-bar/typings/snack-bar-container.d.ts +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/stepper/typings/step-header.d.ts +2 -2
- package/stepper/typings/step-label.d.ts +2 -10
- package/stepper/typings/stepper-button.d.ts +4 -2
- package/stepper/typings/stepper.d.ts +4 -3
- package/table/typings/cell.d.ts +8 -5
- package/table/typings/index.metadata.json +1 -1
- package/table/typings/row.d.ts +6 -3
- package/table/typings/table.d.ts +2 -8
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/ink-bar.d.ts +1 -1
- package/tabs/typings/tab-body.d.ts +1 -1
- package/tabs/typings/tab-label.d.ts +2 -10
- package/tooltip/typings/index.metadata.json +1 -1
- package/tooltip/typings/tooltip.d.ts +3 -3
- package/tree/typings/index.metadata.json +1 -1
- package/tree/typings/node.d.ts +7 -7
- package/tree/typings/padding.d.ts +3 -5
- package/tree/typings/toggle.d.ts +10 -3
- package/tree/typings/tree.d.ts +2 -3
- package/typings/autocomplete/autocomplete-trigger.d.ts +12 -1
- package/typings/autocomplete/autocomplete.d.ts +1 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/badge/badge.d.ts +6 -2
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-container.d.ts +1 -1
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button-toggle/button-toggle.d.ts +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/checkbox.d.ts +2 -2
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-input.d.ts +5 -2
- package/typings/chips/chip-list.d.ts +12 -19
- package/typings/chips/chip.d.ts +3 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/line/line.d.ts +1 -1
- package/typings/core/option/option.d.ts +3 -4
- package/typings/core/ripple/ripple-renderer.d.ts +1 -1
- package/typings/core/ripple/ripple.d.ts +1 -1
- package/typings/datepicker/calendar-body.d.ts +1 -1
- package/typings/datepicker/datepicker-input.d.ts +1 -1
- package/typings/datepicker/datepicker-toggle.d.ts +3 -1
- package/typings/datepicker/datepicker.d.ts +1 -1
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/dialog/dialog-container.d.ts +1 -1
- package/typings/dialog/dialog-content-directives.d.ts +2 -2
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/autocomplete-trigger.d.ts +12 -1
- package/typings/esm5/autocomplete/autocomplete.d.ts +1 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/badge/badge.d.ts +6 -2
- package/typings/esm5/badge/index.metadata.json +1 -1
- 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-toggle/button-toggle.d.ts +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/checkbox.d.ts +2 -2
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-input.d.ts +5 -2
- package/typings/esm5/chips/chip-list.d.ts +12 -19
- package/typings/esm5/chips/chip.d.ts +3 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/line/line.d.ts +1 -1
- package/typings/esm5/core/option/option.d.ts +3 -4
- package/typings/esm5/core/ripple/ripple-renderer.d.ts +1 -1
- package/typings/esm5/core/ripple/ripple.d.ts +1 -1
- package/typings/esm5/datepicker/calendar-body.d.ts +1 -1
- package/typings/esm5/datepicker/datepicker-input.d.ts +1 -1
- package/typings/esm5/datepicker/datepicker-toggle.d.ts +3 -1
- package/typings/esm5/datepicker/datepicker.d.ts +1 -1
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/dialog/dialog-container.d.ts +1 -1
- package/typings/esm5/dialog/dialog-content-directives.d.ts +2 -2
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/accordion-base.d.ts +30 -0
- package/typings/esm5/expansion/accordion.d.ts +18 -4
- package/typings/esm5/expansion/expansion-panel-header.d.ts +13 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +10 -6
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/expansion/public-api.d.ts +1 -0
- package/typings/esm5/form-field/form-field.d.ts +4 -3
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/grid-list/grid-list.d.ts +1 -1
- package/typings/esm5/grid-list/grid-tile.d.ts +2 -2
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/icon.d.ts +1 -1
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/input/autosize.d.ts +2 -1
- package/typings/esm5/input/index.metadata.json +1 -1
- package/typings/esm5/input/input.d.ts +2 -2
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/list/list.d.ts +1 -1
- package/typings/esm5/list/selection-list.d.ts +2 -2
- 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 -1
- package/typings/esm5/menu/menu-item.d.ts +1 -1
- package/typings/esm5/menu/menu-trigger.d.ts +1 -1
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/progress-bar/progress-bar.d.ts +17 -3
- package/typings/esm5/radio/radio.d.ts +1 -1
- package/typings/esm5/sidenav/drawer.d.ts +2 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/slide-toggle.d.ts +3 -3
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/snack-bar-container.d.ts +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/stepper/step-header.d.ts +2 -2
- package/typings/esm5/stepper/step-label.d.ts +2 -10
- package/typings/esm5/stepper/stepper-button.d.ts +4 -2
- package/typings/esm5/stepper/stepper.d.ts +4 -3
- package/typings/esm5/table/cell.d.ts +8 -5
- package/typings/esm5/table/index.metadata.json +1 -1
- package/typings/esm5/table/row.d.ts +6 -3
- package/typings/esm5/table/table.d.ts +2 -8
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/ink-bar.d.ts +1 -1
- package/typings/esm5/tabs/tab-body.d.ts +1 -1
- package/typings/esm5/tabs/tab-label.d.ts +2 -10
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tooltip/tooltip.d.ts +3 -3
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/esm5/tree/node.d.ts +7 -7
- package/typings/esm5/tree/padding.d.ts +3 -5
- package/typings/esm5/tree/toggle.d.ts +10 -3
- package/typings/esm5/tree/tree.d.ts +2 -3
- package/typings/expansion/accordion-base.d.ts +30 -0
- package/typings/expansion/accordion.d.ts +18 -4
- package/typings/expansion/expansion-panel-header.d.ts +13 -2
- package/typings/expansion/expansion-panel.d.ts +10 -6
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/expansion/public-api.d.ts +1 -0
- package/typings/form-field/form-field.d.ts +4 -3
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/grid-list/grid-list.d.ts +1 -1
- package/typings/grid-list/grid-tile.d.ts +2 -2
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/icon.d.ts +1 -1
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/input/autosize.d.ts +2 -1
- package/typings/input/index.metadata.json +1 -1
- package/typings/input/input.d.ts +2 -2
- package/typings/list/index.metadata.json +1 -1
- package/typings/list/list.d.ts +1 -1
- package/typings/list/selection-list.d.ts +2 -2
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -1
- package/typings/menu/menu-item.d.ts +1 -1
- package/typings/menu/menu-trigger.d.ts +1 -1
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/progress-bar/progress-bar.d.ts +17 -3
- package/typings/radio/radio.d.ts +1 -1
- package/typings/sidenav/drawer.d.ts +2 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slide-toggle/slide-toggle.d.ts +3 -3
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/snack-bar/snack-bar-container.d.ts +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/stepper/step-header.d.ts +2 -2
- package/typings/stepper/step-label.d.ts +2 -10
- package/typings/stepper/stepper-button.d.ts +4 -2
- package/typings/stepper/stepper.d.ts +4 -3
- package/typings/table/cell.d.ts +8 -5
- package/typings/table/index.metadata.json +1 -1
- package/typings/table/row.d.ts +6 -3
- package/typings/table/table.d.ts +2 -8
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/ink-bar.d.ts +1 -1
- package/typings/tabs/tab-body.d.ts +1 -1
- package/typings/tabs/tab-label.d.ts +2 -10
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tooltip/tooltip.d.ts +3 -3
- package/typings/tree/index.metadata.json +1 -1
- package/typings/tree/node.d.ts +7 -7
- package/typings/tree/padding.d.ts +3 -5
- package/typings/tree/toggle.d.ts +10 -3
- package/typings/tree/tree.d.ts +2 -3
- package/grid-list/typings/grid-list-measure.d.ts +0 -17
- package/typings/esm5/grid-list/grid-list-measure.d.ts +0 -17
- package/typings/grid-list/grid-list-measure.d.ts +0 -17
package/esm5/chips.es5.js
CHANGED
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { __extends } from 'tslib';
|
|
9
9
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
10
|
-
import { BACKSPACE, DELETE, SPACE, ENTER } from '@angular/cdk/keycodes';
|
|
10
|
+
import { BACKSPACE, DELETE, SPACE, HOME, END, 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';
|
|
14
|
-
import { Subject, merge
|
|
14
|
+
import { Subject, merge } from 'rxjs';
|
|
15
|
+
import { take, startWith, takeUntil } from 'rxjs/operators';
|
|
15
16
|
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
16
17
|
import { Directionality } from '@angular/cdk/bidi';
|
|
17
18
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
18
19
|
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
19
20
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
20
|
-
import { startWith } from 'rxjs/operators';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @fileoverview added by tsickle
|
|
@@ -87,9 +87,10 @@ var MatChipTrailingIcon = /** @class */ (function () {
|
|
|
87
87
|
*/
|
|
88
88
|
var MatChip = /** @class */ (function (_super) {
|
|
89
89
|
__extends(MatChip, _super);
|
|
90
|
-
function MatChip(_elementRef,
|
|
90
|
+
function MatChip(_elementRef, _ngZone, platform, globalOptions) {
|
|
91
91
|
var _this = _super.call(this, _elementRef) || this;
|
|
92
92
|
_this._elementRef = _elementRef;
|
|
93
|
+
_this._ngZone = _ngZone;
|
|
93
94
|
/**
|
|
94
95
|
* Whether the ripples are globally disabled through the RippleGlobalOptions
|
|
95
96
|
*/
|
|
@@ -131,7 +132,7 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
131
132
|
*/
|
|
132
133
|
_this.removed = new EventEmitter();
|
|
133
134
|
_this._addHostClassName();
|
|
134
|
-
_this._chipRipple = new RippleRenderer(_this,
|
|
135
|
+
_this._chipRipple = new RippleRenderer(_this, _ngZone, _elementRef, platform);
|
|
135
136
|
_this._chipRipple.setupTriggerEvents(_elementRef.nativeElement);
|
|
136
137
|
if (globalOptions) {
|
|
137
138
|
_this._ripplesGloballyDisabled = !!globalOptions.disabled;
|
|
@@ -448,8 +449,20 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
448
449
|
* @return {?}
|
|
449
450
|
*/
|
|
450
451
|
function () {
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
var _this = this;
|
|
453
|
+
// When animations are enabled, Angular may end up removing the chip from the DOM a little
|
|
454
|
+
// earlier than usual, causing it to be blurred and throwing off the logic in the chip list
|
|
455
|
+
// that moves focus not the next item. To work around the issue, we defer marking the chip
|
|
456
|
+
// as not focused until the next time the zone stabilizes.
|
|
457
|
+
this._ngZone.onStable
|
|
458
|
+
.asObservable()
|
|
459
|
+
.pipe(take(1))
|
|
460
|
+
.subscribe(function () {
|
|
461
|
+
_this._ngZone.run(function () {
|
|
462
|
+
_this._hasFocus = false;
|
|
463
|
+
_this._onBlur.next({ chip: _this });
|
|
464
|
+
});
|
|
465
|
+
});
|
|
453
466
|
};
|
|
454
467
|
MatChip.decorators = [
|
|
455
468
|
{ type: Directive, args: [{
|
|
@@ -515,23 +528,31 @@ var MatChipRemove = /** @class */ (function () {
|
|
|
515
528
|
/** Calls the parent chip's public `remove()` method if applicable. */
|
|
516
529
|
/**
|
|
517
530
|
* Calls the parent chip's public `remove()` method if applicable.
|
|
531
|
+
* @param {?} event
|
|
518
532
|
* @return {?}
|
|
519
533
|
*/
|
|
520
534
|
MatChipRemove.prototype._handleClick = /**
|
|
521
535
|
* Calls the parent chip's public `remove()` method if applicable.
|
|
536
|
+
* @param {?} event
|
|
522
537
|
* @return {?}
|
|
523
538
|
*/
|
|
524
|
-
function () {
|
|
539
|
+
function (event) {
|
|
525
540
|
if (this._parentChip.removable) {
|
|
526
541
|
this._parentChip.remove();
|
|
527
542
|
}
|
|
543
|
+
// We need to stop event propagation because otherwise the event will bubble up to the
|
|
544
|
+
// form field and cause the `onContainerClick` method to be invoked. This method would then
|
|
545
|
+
// reset the focused chip that has been focused after chip removal. Usually the parent
|
|
546
|
+
// the parent click listener of the `MatChip` would prevent propagation, but it can happen
|
|
547
|
+
// that the chip is being removed before the event bubbles up.
|
|
548
|
+
event.stopPropagation();
|
|
528
549
|
};
|
|
529
550
|
MatChipRemove.decorators = [
|
|
530
551
|
{ type: Directive, args: [{
|
|
531
552
|
selector: '[matChipRemove]',
|
|
532
553
|
host: {
|
|
533
554
|
'class': 'mat-chip-remove mat-chip-trailing-icon',
|
|
534
|
-
'(click)': '_handleClick()',
|
|
555
|
+
'(click)': '_handleClick($event)',
|
|
535
556
|
}
|
|
536
557
|
},] },
|
|
537
558
|
];
|
|
@@ -604,17 +625,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
604
625
|
*/
|
|
605
626
|
_this.controlType = 'mat-chip-list';
|
|
606
627
|
/**
|
|
607
|
-
* When a chip is destroyed, we
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Track which chips we're listening to for focus/destruction.
|
|
628
|
+
* When a chip is destroyed, we store the index of the destroyed chip until the chips
|
|
629
|
+
* query list notifies about the update. This is necessary because we cannot determine an
|
|
630
|
+
* appropriate chip that should receive focus until the array of chips updated completely.
|
|
612
631
|
*/
|
|
613
|
-
_this.
|
|
632
|
+
_this._lastDestroyedChipIndex = null;
|
|
614
633
|
/**
|
|
615
|
-
*
|
|
634
|
+
* Subject that emits when the component has been destroyed.
|
|
616
635
|
*/
|
|
617
|
-
_this.
|
|
636
|
+
_this._destroyed = new Subject();
|
|
618
637
|
/**
|
|
619
638
|
* Uid of the chip list
|
|
620
639
|
*/
|
|
@@ -845,7 +864,13 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
845
864
|
* @param {?} value
|
|
846
865
|
* @return {?}
|
|
847
866
|
*/
|
|
848
|
-
function (value) {
|
|
867
|
+
function (value) {
|
|
868
|
+
var _this = this;
|
|
869
|
+
this._disabled = coerceBooleanProperty(value);
|
|
870
|
+
if (this.chips) {
|
|
871
|
+
this.chips.forEach(function (chip) { return chip.disabled = _this._disabled; });
|
|
872
|
+
}
|
|
873
|
+
},
|
|
849
874
|
enumerable: true,
|
|
850
875
|
configurable: true
|
|
851
876
|
});
|
|
@@ -944,12 +969,12 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
944
969
|
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');
|
|
945
970
|
// Prevents the chip list from capturing focus and redirecting
|
|
946
971
|
// it back to the first chip when the user tabs out.
|
|
947
|
-
this.
|
|
972
|
+
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(function () {
|
|
948
973
|
_this._tabIndex = -1;
|
|
949
974
|
setTimeout(function () { return _this._tabIndex = _this._userTabIndex || 0; });
|
|
950
975
|
});
|
|
951
976
|
// When the list changes, re-subscribe
|
|
952
|
-
this.
|
|
977
|
+
this.chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(function () {
|
|
953
978
|
_this._resetChips();
|
|
954
979
|
// Reset chips selected/deselected status
|
|
955
980
|
// Reset chips selected/deselected status
|
|
@@ -994,15 +1019,10 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
994
1019
|
* @return {?}
|
|
995
1020
|
*/
|
|
996
1021
|
function () {
|
|
997
|
-
this.
|
|
998
|
-
|
|
999
|
-
this._changeSubscription.unsubscribe();
|
|
1000
|
-
}
|
|
1001
|
-
if (this._chipRemoveSubscription) {
|
|
1002
|
-
this._chipRemoveSubscription.unsubscribe();
|
|
1003
|
-
}
|
|
1004
|
-
this._dropSubscriptions();
|
|
1022
|
+
this._destroyed.next();
|
|
1023
|
+
this._destroyed.complete();
|
|
1005
1024
|
this.stateChanges.complete();
|
|
1025
|
+
this._dropSubscriptions();
|
|
1006
1026
|
};
|
|
1007
1027
|
/** Associates an HTML input element with this chip list. */
|
|
1008
1028
|
/**
|
|
@@ -1084,7 +1104,6 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1084
1104
|
*/
|
|
1085
1105
|
function (isDisabled) {
|
|
1086
1106
|
this.disabled = isDisabled;
|
|
1087
|
-
this._elementRef.nativeElement.disabled = isDisabled;
|
|
1088
1107
|
this.stateChanges.next();
|
|
1089
1108
|
};
|
|
1090
1109
|
/**
|
|
@@ -1117,6 +1136,9 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1117
1136
|
* @return {?}
|
|
1118
1137
|
*/
|
|
1119
1138
|
function () {
|
|
1139
|
+
if (this.disabled) {
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1120
1142
|
// TODO: ARIA says this should focus the first `selected` chip if any are selected.
|
|
1121
1143
|
// Focus on first element if there's no chipInput inside chip-list
|
|
1122
1144
|
if (this._chipInput && this._chipInput.focused) {
|
|
@@ -1166,7 +1188,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1166
1188
|
event.preventDefault();
|
|
1167
1189
|
}
|
|
1168
1190
|
else if (target && target.classList.contains('mat-chip')) {
|
|
1169
|
-
|
|
1191
|
+
if (event.keyCode === HOME) {
|
|
1192
|
+
this._keyManager.setFirstItemActive();
|
|
1193
|
+
event.preventDefault();
|
|
1194
|
+
}
|
|
1195
|
+
else if (event.keyCode === END) {
|
|
1196
|
+
this._keyManager.setLastItemActive();
|
|
1197
|
+
event.preventDefault();
|
|
1198
|
+
}
|
|
1199
|
+
else {
|
|
1200
|
+
this._keyManager.onKeydown(event);
|
|
1201
|
+
}
|
|
1170
1202
|
this.stateChanges.next();
|
|
1171
1203
|
}
|
|
1172
1204
|
};
|
|
@@ -1186,73 +1218,25 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1186
1218
|
this._tabIndex = this._userTabIndex || (this.chips.length === 0 ? -1 : 0);
|
|
1187
1219
|
};
|
|
1188
1220
|
/**
|
|
1189
|
-
*
|
|
1190
|
-
*
|
|
1191
|
-
* Otherwise focus the next chip in the list.
|
|
1192
|
-
* Save `_lastDestroyedIndex` so we can set the correct focus.
|
|
1221
|
+
* If the amount of chips changed, we need to update the
|
|
1222
|
+
* key manager state and focus the next closest chip.
|
|
1193
1223
|
*/
|
|
1194
1224
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1197
|
-
* Otherwise focus the next chip in the list.
|
|
1198
|
-
* Save `_lastDestroyedIndex` so we can set the correct focus.
|
|
1199
|
-
* @param {?} chip
|
|
1200
|
-
* @return {?}
|
|
1201
|
-
*/
|
|
1202
|
-
MatChipList.prototype._updateKeyManager = /**
|
|
1203
|
-
* Update key manager's active item when chip is deleted.
|
|
1204
|
-
* If the deleted chip is the last chip in chip list, focus the new last chip.
|
|
1205
|
-
* Otherwise focus the next chip in the list.
|
|
1206
|
-
* Save `_lastDestroyedIndex` so we can set the correct focus.
|
|
1207
|
-
* @param {?} chip
|
|
1208
|
-
* @return {?}
|
|
1209
|
-
*/
|
|
1210
|
-
function (chip) {
|
|
1211
|
-
var /** @type {?} */ chipIndex = this.chips.toArray().indexOf(chip);
|
|
1212
|
-
if (this._isValidIndex(chipIndex)) {
|
|
1213
|
-
if (chip._hasFocus) {
|
|
1214
|
-
// Check whether the chip is not the last item
|
|
1215
|
-
if (chipIndex < this.chips.length - 1) {
|
|
1216
|
-
this._keyManager.setActiveItem(chipIndex);
|
|
1217
|
-
}
|
|
1218
|
-
else if (chipIndex - 1 >= 0) {
|
|
1219
|
-
this._keyManager.setActiveItem(chipIndex - 1);
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
if (this._keyManager.activeItemIndex === chipIndex) {
|
|
1223
|
-
this._lastDestroyedIndex = chipIndex;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
/**
|
|
1228
|
-
* Checks to see if a focus chip was recently destroyed so that we can refocus the next closest
|
|
1229
|
-
* one.
|
|
1230
|
-
*/
|
|
1231
|
-
/**
|
|
1232
|
-
* Checks to see if a focus chip was recently destroyed so that we can refocus the next closest
|
|
1233
|
-
* one.
|
|
1225
|
+
* If the amount of chips changed, we need to update the
|
|
1226
|
+
* key manager state and focus the next closest chip.
|
|
1234
1227
|
* @return {?}
|
|
1235
1228
|
*/
|
|
1236
1229
|
MatChipList.prototype._updateFocusForDestroyedChips = /**
|
|
1237
|
-
*
|
|
1238
|
-
*
|
|
1230
|
+
* If the amount of chips changed, we need to update the
|
|
1231
|
+
* key manager state and focus the next closest chip.
|
|
1239
1232
|
* @return {?}
|
|
1240
1233
|
*/
|
|
1241
1234
|
function () {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
// Check whether the destroyed chip was the last item
|
|
1246
|
-
var /** @type {?} */ newFocusIndex = Math.min(this._lastDestroyedIndex, chipsArray.length - 1);
|
|
1247
|
-
this._keyManager.setActiveItem(newFocusIndex);
|
|
1248
|
-
var /** @type {?} */ focusChip = this._keyManager.activeItem;
|
|
1249
|
-
// Focus the chip
|
|
1250
|
-
if (focusChip) {
|
|
1251
|
-
focusChip.focus();
|
|
1252
|
-
}
|
|
1235
|
+
if (this._lastDestroyedChipIndex != null && this.chips.length) {
|
|
1236
|
+
var /** @type {?} */ newChipIndex = Math.min(this._lastDestroyedChipIndex, this.chips.length - 1);
|
|
1237
|
+
this._keyManager.setActiveItem(newChipIndex);
|
|
1253
1238
|
}
|
|
1254
|
-
|
|
1255
|
-
this._lastDestroyedIndex = null;
|
|
1239
|
+
this._lastDestroyedChipIndex = null;
|
|
1256
1240
|
};
|
|
1257
1241
|
/**
|
|
1258
1242
|
* Utility to ensure all indexes are valid.
|
|
@@ -1495,6 +1479,10 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1495
1479
|
this._chipSelectionSubscription.unsubscribe();
|
|
1496
1480
|
this._chipSelectionSubscription = null;
|
|
1497
1481
|
}
|
|
1482
|
+
if (this._chipRemoveSubscription) {
|
|
1483
|
+
this._chipRemoveSubscription.unsubscribe();
|
|
1484
|
+
this._chipRemoveSubscription = null;
|
|
1485
|
+
}
|
|
1498
1486
|
};
|
|
1499
1487
|
/**
|
|
1500
1488
|
* Listens to user-generated selection events on each chip.
|
|
@@ -1554,7 +1542,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1554
1542
|
function () {
|
|
1555
1543
|
var _this = this;
|
|
1556
1544
|
this._chipRemoveSubscription = this.chipRemoveChanges.subscribe(function (event) {
|
|
1557
|
-
|
|
1545
|
+
var /** @type {?} */ chip = event.chip;
|
|
1546
|
+
var /** @type {?} */ chipIndex = _this.chips.toArray().indexOf(event.chip);
|
|
1547
|
+
// In case the chip that will be removed is currently focused, we temporarily store
|
|
1548
|
+
// the index in order to be able to determine an appropriate sibling chip that will
|
|
1549
|
+
// receive focus.
|
|
1550
|
+
if (_this._isValidIndex(chipIndex) && chip._hasFocus) {
|
|
1551
|
+
_this._lastDestroyedChipIndex = chipIndex;
|
|
1552
|
+
}
|
|
1558
1553
|
});
|
|
1559
1554
|
};
|
|
1560
1555
|
MatChipList.decorators = [
|
|
@@ -1562,7 +1557,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1562
1557
|
template: "<div class=\"mat-chip-list-wrapper\"><ng-content></ng-content></div>",
|
|
1563
1558
|
exportAs: 'matChipList',
|
|
1564
1559
|
host: {
|
|
1565
|
-
'[attr.tabindex]': '_tabIndex',
|
|
1560
|
+
'[attr.tabindex]': 'disabled ? null : _tabIndex',
|
|
1566
1561
|
'[attr.aria-describedby]': '_ariaDescribedby || null',
|
|
1567
1562
|
'[attr.aria-required]': 'required.toString()',
|
|
1568
1563
|
'[attr.aria-disabled]': 'disabled.toString()',
|
|
@@ -1580,7 +1575,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1580
1575
|
'[id]': '_uid',
|
|
1581
1576
|
},
|
|
1582
1577
|
providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }],
|
|
1583
|
-
styles: [".mat-chip{position:relative;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:24px;align-items:center;cursor:default}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip:focus{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);outline:0}@media screen and (-ms-high-contrast:active){.mat-standard-chip{outline:solid 1px}.mat-standard-chip:focus{outline:dotted 2px}}.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:7px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:7px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:7px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:7px;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:32px;height:32px;margin-right:8px;margin-left:0}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:0}.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:7px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:7px;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}input.mat-chip-input{width:150px;margin:3px;flex:1 0 150px}"],
|
|
1578
|
+
styles: [".mat-chip{position:relative;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:24px;align-items:center;cursor:default}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip:focus{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);outline:0}@media screen and (-ms-high-contrast:active){.mat-standard-chip{outline:solid 1px}.mat-standard-chip:focus{outline:dotted 2px}}.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:7px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:7px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:7px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:7px;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:32px;height:32px;margin-right:8px;margin-left:0}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:0}.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:7px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:7px;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:3px;flex:1 0 150px}"],
|
|
1584
1579
|
encapsulation: ViewEncapsulation.None,
|
|
1585
1580
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1586
1581
|
},] },
|
|
@@ -1650,6 +1645,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1650
1645
|
* Unique id for the input.
|
|
1651
1646
|
*/
|
|
1652
1647
|
this.id = "mat-chip-list-input-" + nextUniqueId$1++;
|
|
1648
|
+
this._disabled = false;
|
|
1653
1649
|
this._inputElement = /** @type {?} */ (this._elementRef.nativeElement);
|
|
1654
1650
|
}
|
|
1655
1651
|
Object.defineProperty(MatChipInput.prototype, "chipList", {
|
|
@@ -1681,6 +1677,20 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1681
1677
|
enumerable: true,
|
|
1682
1678
|
configurable: true
|
|
1683
1679
|
});
|
|
1680
|
+
Object.defineProperty(MatChipInput.prototype, "disabled", {
|
|
1681
|
+
get: /**
|
|
1682
|
+
* Whether the input is disabled.
|
|
1683
|
+
* @return {?}
|
|
1684
|
+
*/
|
|
1685
|
+
function () { return this._disabled || (this._chipList && this._chipList.disabled); },
|
|
1686
|
+
set: /**
|
|
1687
|
+
* @param {?} value
|
|
1688
|
+
* @return {?}
|
|
1689
|
+
*/
|
|
1690
|
+
function (value) { this._disabled = coerceBooleanProperty(value); },
|
|
1691
|
+
enumerable: true,
|
|
1692
|
+
configurable: true
|
|
1693
|
+
});
|
|
1684
1694
|
Object.defineProperty(MatChipInput.prototype, "empty", {
|
|
1685
1695
|
/** Whether the input is empty. */
|
|
1686
1696
|
get: /**
|
|
@@ -1797,6 +1807,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1797
1807
|
'(focus)': '_focus()',
|
|
1798
1808
|
'(input)': '_onInput()',
|
|
1799
1809
|
'[id]': 'id',
|
|
1810
|
+
'[attr.disabled]': 'disabled || null',
|
|
1800
1811
|
'[attr.placeholder]': 'placeholder || null',
|
|
1801
1812
|
}
|
|
1802
1813
|
},] },
|
|
@@ -1813,6 +1824,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1813
1824
|
"chipEnd": [{ type: Output, args: ['matChipInputTokenEnd',] },],
|
|
1814
1825
|
"placeholder": [{ type: Input },],
|
|
1815
1826
|
"id": [{ type: Input },],
|
|
1827
|
+
"disabled": [{ type: Input },],
|
|
1816
1828
|
};
|
|
1817
1829
|
return MatChipInput;
|
|
1818
1830
|
}());
|