@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
|
@@ -42,7 +42,7 @@ function __extends(d, b) {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @fileoverview added by tsickle
|
|
45
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
45
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
46
46
|
*/
|
|
47
47
|
/**
|
|
48
48
|
* Event object emitted by MatChip when selected or deselected.
|
|
@@ -59,10 +59,13 @@ MatChipSelectionChange = /** @class */ (function () {
|
|
|
59
59
|
}
|
|
60
60
|
return MatChipSelectionChange;
|
|
61
61
|
}());
|
|
62
|
+
// Boilerplate for applying mixins to MatChip.
|
|
62
63
|
/**
|
|
63
64
|
* \@docs-private
|
|
64
65
|
*/
|
|
65
|
-
var
|
|
66
|
+
var
|
|
67
|
+
// Boilerplate for applying mixins to MatChip.
|
|
68
|
+
/**
|
|
66
69
|
* \@docs-private
|
|
67
70
|
*/
|
|
68
71
|
MatChipBase = /** @class */ (function () {
|
|
@@ -227,14 +230,14 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
227
230
|
Object.defineProperty(MatChip.prototype, "selectable", {
|
|
228
231
|
/**
|
|
229
232
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
230
|
-
* changes to
|
|
231
|
-
* selectable, and it becomes non-selectable if
|
|
233
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
234
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
232
235
|
* not selectable.
|
|
233
236
|
*/
|
|
234
237
|
get: /**
|
|
235
238
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
236
|
-
* changes to
|
|
237
|
-
* selectable, and it becomes non-selectable if
|
|
239
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
240
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
238
241
|
* not selectable.
|
|
239
242
|
* @return {?}
|
|
240
243
|
*/
|
|
@@ -292,11 +295,11 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
292
295
|
var attr = CHIP_ATTRIBUTE_NAMES_1[_i];
|
|
293
296
|
if (this._elementRef.nativeElement.hasAttribute(attr) ||
|
|
294
297
|
this._elementRef.nativeElement.tagName.toLowerCase() === attr) {
|
|
295
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add(attr);
|
|
298
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add(attr);
|
|
296
299
|
return;
|
|
297
300
|
}
|
|
298
301
|
}
|
|
299
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add('mat-standard-chip');
|
|
302
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add('mat-standard-chip');
|
|
300
303
|
};
|
|
301
304
|
/**
|
|
302
305
|
* @return {?}
|
|
@@ -486,10 +489,12 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
486
489
|
});
|
|
487
490
|
};
|
|
488
491
|
/**
|
|
492
|
+
* @private
|
|
489
493
|
* @param {?=} isUserInput
|
|
490
494
|
* @return {?}
|
|
491
495
|
*/
|
|
492
496
|
MatChip.prototype._dispatchSelectionChange = /**
|
|
497
|
+
* @private
|
|
493
498
|
* @param {?=} isUserInput
|
|
494
499
|
* @return {?}
|
|
495
500
|
*/
|
|
@@ -602,21 +607,25 @@ var MatChipRemove = /** @class */ (function () {
|
|
|
602
607
|
|
|
603
608
|
/**
|
|
604
609
|
* @fileoverview added by tsickle
|
|
605
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
610
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
606
611
|
*/
|
|
607
|
-
/**
|
|
612
|
+
/**
|
|
608
613
|
* Injection token to be used to override the default options for the chips module.
|
|
609
|
-
|
|
614
|
+
* @type {?}
|
|
615
|
+
*/
|
|
610
616
|
var MAT_CHIPS_DEFAULT_OPTIONS = new core.InjectionToken('mat-chips-default-options');
|
|
611
617
|
|
|
612
618
|
/**
|
|
613
619
|
* @fileoverview added by tsickle
|
|
614
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
620
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
615
621
|
*/
|
|
622
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
616
623
|
/**
|
|
617
624
|
* \@docs-private
|
|
618
625
|
*/
|
|
619
|
-
var
|
|
626
|
+
var
|
|
627
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
628
|
+
/**
|
|
620
629
|
* \@docs-private
|
|
621
630
|
*/
|
|
622
631
|
MatChipListBase = /** @class */ (function () {
|
|
@@ -630,6 +639,7 @@ MatChipListBase = /** @class */ (function () {
|
|
|
630
639
|
}());
|
|
631
640
|
/** @type {?} */
|
|
632
641
|
var _MatChipListMixinBase = core$1.mixinErrorState(MatChipListBase);
|
|
642
|
+
// Increasing integer for generating unique ids for chip-list components.
|
|
633
643
|
/** @type {?} */
|
|
634
644
|
var nextUniqueId = 0;
|
|
635
645
|
/**
|
|
@@ -646,12 +656,11 @@ MatChipListChange = /** @class */ (function () {
|
|
|
646
656
|
return MatChipListChange;
|
|
647
657
|
}());
|
|
648
658
|
/**
|
|
649
|
-
* A material design chips component (named ChipList for
|
|
659
|
+
* A material design chips component (named ChipList for its similarity to the List component).
|
|
650
660
|
*/
|
|
651
661
|
var MatChipList = /** @class */ (function (_super) {
|
|
652
662
|
__extends(MatChipList, _super);
|
|
653
|
-
function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher,
|
|
654
|
-
ngControl) {
|
|
663
|
+
function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, ngControl) {
|
|
655
664
|
var _this = _super.call(this, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) || this;
|
|
656
665
|
_this._elementRef = _elementRef;
|
|
657
666
|
_this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -1031,6 +1040,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1031
1040
|
.withWrap()
|
|
1032
1041
|
.withVerticalOrientation()
|
|
1033
1042
|
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');
|
|
1043
|
+
if (this._dir) {
|
|
1044
|
+
this._dir.change
|
|
1045
|
+
.pipe(operators.takeUntil(this._destroyed))
|
|
1046
|
+
.subscribe(function (dir) { return _this._keyManager.withHorizontalOrientation(dir); });
|
|
1047
|
+
}
|
|
1034
1048
|
// Prevents the chip list from capturing focus and redirecting
|
|
1035
1049
|
// it back to the first chip when the user tabs out.
|
|
1036
1050
|
this._keyManager.tabOut.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {
|
|
@@ -1117,11 +1131,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1117
1131
|
*/
|
|
1118
1132
|
function (ids) { this._ariaDescribedby = ids.join(' '); };
|
|
1119
1133
|
// Implemented as part of ControlValueAccessor.
|
|
1134
|
+
// Implemented as part of ControlValueAccessor.
|
|
1120
1135
|
/**
|
|
1121
1136
|
* @param {?} value
|
|
1122
1137
|
* @return {?}
|
|
1123
1138
|
*/
|
|
1124
|
-
MatChipList.prototype.writeValue =
|
|
1139
|
+
MatChipList.prototype.writeValue =
|
|
1140
|
+
// Implemented as part of ControlValueAccessor.
|
|
1141
|
+
/**
|
|
1125
1142
|
* @param {?} value
|
|
1126
1143
|
* @return {?}
|
|
1127
1144
|
*/
|
|
@@ -1131,11 +1148,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1131
1148
|
}
|
|
1132
1149
|
};
|
|
1133
1150
|
// Implemented as part of ControlValueAccessor.
|
|
1151
|
+
// Implemented as part of ControlValueAccessor.
|
|
1134
1152
|
/**
|
|
1135
1153
|
* @param {?} fn
|
|
1136
1154
|
* @return {?}
|
|
1137
1155
|
*/
|
|
1138
|
-
MatChipList.prototype.registerOnChange =
|
|
1156
|
+
MatChipList.prototype.registerOnChange =
|
|
1157
|
+
// Implemented as part of ControlValueAccessor.
|
|
1158
|
+
/**
|
|
1139
1159
|
* @param {?} fn
|
|
1140
1160
|
* @return {?}
|
|
1141
1161
|
*/
|
|
@@ -1143,11 +1163,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1143
1163
|
this._onChange = fn;
|
|
1144
1164
|
};
|
|
1145
1165
|
// Implemented as part of ControlValueAccessor.
|
|
1166
|
+
// Implemented as part of ControlValueAccessor.
|
|
1146
1167
|
/**
|
|
1147
1168
|
* @param {?} fn
|
|
1148
1169
|
* @return {?}
|
|
1149
1170
|
*/
|
|
1150
|
-
MatChipList.prototype.registerOnTouched =
|
|
1171
|
+
MatChipList.prototype.registerOnTouched =
|
|
1172
|
+
// Implemented as part of ControlValueAccessor.
|
|
1173
|
+
/**
|
|
1151
1174
|
* @param {?} fn
|
|
1152
1175
|
* @return {?}
|
|
1153
1176
|
*/
|
|
@@ -1155,11 +1178,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1155
1178
|
this._onTouched = fn;
|
|
1156
1179
|
};
|
|
1157
1180
|
// Implemented as part of ControlValueAccessor.
|
|
1181
|
+
// Implemented as part of ControlValueAccessor.
|
|
1158
1182
|
/**
|
|
1159
1183
|
* @param {?} isDisabled
|
|
1160
1184
|
* @return {?}
|
|
1161
1185
|
*/
|
|
1162
|
-
MatChipList.prototype.setDisabledState =
|
|
1186
|
+
MatChipList.prototype.setDisabledState =
|
|
1187
|
+
// Implemented as part of ControlValueAccessor.
|
|
1188
|
+
/**
|
|
1163
1189
|
* @param {?} isDisabled
|
|
1164
1190
|
* @return {?}
|
|
1165
1191
|
*/
|
|
@@ -1249,7 +1275,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1249
1275
|
*/
|
|
1250
1276
|
function (event) {
|
|
1251
1277
|
/** @type {?} */
|
|
1252
|
-
var target = /** @type {?} */ (event.target);
|
|
1278
|
+
var target = (/** @type {?} */ (event.target));
|
|
1253
1279
|
// If they are on an empty input and hit backspace, focus the last chip
|
|
1254
1280
|
if (event.keyCode === keycodes.BACKSPACE && this._isInputEmpty(target)) {
|
|
1255
1281
|
this._keyManager.setLastItemActive();
|
|
@@ -1275,10 +1301,12 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1275
1301
|
*/
|
|
1276
1302
|
/**
|
|
1277
1303
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1304
|
+
* @protected
|
|
1278
1305
|
* @return {?}
|
|
1279
1306
|
*/
|
|
1280
1307
|
MatChipList.prototype._updateTabIndex = /**
|
|
1281
1308
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1309
|
+
* @protected
|
|
1282
1310
|
* @return {?}
|
|
1283
1311
|
*/
|
|
1284
1312
|
function () {
|
|
@@ -1292,11 +1320,13 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1292
1320
|
/**
|
|
1293
1321
|
* If the amount of chips changed, we need to update the
|
|
1294
1322
|
* key manager state and focus the next closest chip.
|
|
1323
|
+
* @protected
|
|
1295
1324
|
* @return {?}
|
|
1296
1325
|
*/
|
|
1297
1326
|
MatChipList.prototype._updateFocusForDestroyedChips = /**
|
|
1298
1327
|
* If the amount of chips changed, we need to update the
|
|
1299
1328
|
* key manager state and focus the next closest chip.
|
|
1329
|
+
* @protected
|
|
1300
1330
|
* @return {?}
|
|
1301
1331
|
*/
|
|
1302
1332
|
function () {
|
|
@@ -1310,12 +1340,20 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1310
1340
|
/**
|
|
1311
1341
|
* Utility to ensure all indexes are valid.
|
|
1312
1342
|
*
|
|
1343
|
+
* @param index The index to be checked.
|
|
1344
|
+
* @returns True if the index is valid for our list of chips.
|
|
1345
|
+
*/
|
|
1346
|
+
/**
|
|
1347
|
+
* Utility to ensure all indexes are valid.
|
|
1348
|
+
*
|
|
1349
|
+
* @private
|
|
1313
1350
|
* @param {?} index The index to be checked.
|
|
1314
1351
|
* @return {?} True if the index is valid for our list of chips.
|
|
1315
1352
|
*/
|
|
1316
1353
|
MatChipList.prototype._isValidIndex = /**
|
|
1317
1354
|
* Utility to ensure all indexes are valid.
|
|
1318
1355
|
*
|
|
1356
|
+
* @private
|
|
1319
1357
|
* @param {?} index The index to be checked.
|
|
1320
1358
|
* @return {?} True if the index is valid for our list of chips.
|
|
1321
1359
|
*/
|
|
@@ -1323,17 +1361,19 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1323
1361
|
return index >= 0 && index < this.chips.length;
|
|
1324
1362
|
};
|
|
1325
1363
|
/**
|
|
1364
|
+
* @private
|
|
1326
1365
|
* @param {?} element
|
|
1327
1366
|
* @return {?}
|
|
1328
1367
|
*/
|
|
1329
1368
|
MatChipList.prototype._isInputEmpty = /**
|
|
1369
|
+
* @private
|
|
1330
1370
|
* @param {?} element
|
|
1331
1371
|
* @return {?}
|
|
1332
1372
|
*/
|
|
1333
1373
|
function (element) {
|
|
1334
1374
|
if (element && element.nodeName.toLowerCase() === 'input') {
|
|
1335
1375
|
/** @type {?} */
|
|
1336
|
-
var input = /** @type {?} */ (element);
|
|
1376
|
+
var input = (/** @type {?} */ (element));
|
|
1337
1377
|
return !input.value;
|
|
1338
1378
|
}
|
|
1339
1379
|
return false;
|
|
@@ -1371,12 +1411,18 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1371
1411
|
};
|
|
1372
1412
|
/**
|
|
1373
1413
|
* Finds and selects the chip based on its value.
|
|
1414
|
+
* @returns Chip that has the corresponding value.
|
|
1415
|
+
*/
|
|
1416
|
+
/**
|
|
1417
|
+
* Finds and selects the chip based on its value.
|
|
1418
|
+
* @private
|
|
1374
1419
|
* @param {?} value
|
|
1375
1420
|
* @param {?=} isUserInput
|
|
1376
1421
|
* @return {?} Chip that has the corresponding value.
|
|
1377
1422
|
*/
|
|
1378
1423
|
MatChipList.prototype._selectValue = /**
|
|
1379
1424
|
* Finds and selects the chip based on its value.
|
|
1425
|
+
* @private
|
|
1380
1426
|
* @param {?} value
|
|
1381
1427
|
* @param {?=} isUserInput
|
|
1382
1428
|
* @return {?} Chip that has the corresponding value.
|
|
@@ -1395,9 +1441,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1395
1441
|
return correspondingChip;
|
|
1396
1442
|
};
|
|
1397
1443
|
/**
|
|
1444
|
+
* @private
|
|
1398
1445
|
* @return {?}
|
|
1399
1446
|
*/
|
|
1400
1447
|
MatChipList.prototype._initializeSelection = /**
|
|
1448
|
+
* @private
|
|
1401
1449
|
* @return {?}
|
|
1402
1450
|
*/
|
|
1403
1451
|
function () {
|
|
@@ -1413,11 +1461,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1413
1461
|
};
|
|
1414
1462
|
/**
|
|
1415
1463
|
* Deselects every chip in the list.
|
|
1464
|
+
* @param skip Chip that should not be deselected.
|
|
1465
|
+
*/
|
|
1466
|
+
/**
|
|
1467
|
+
* Deselects every chip in the list.
|
|
1468
|
+
* @private
|
|
1416
1469
|
* @param {?=} skip Chip that should not be deselected.
|
|
1417
1470
|
* @return {?}
|
|
1418
1471
|
*/
|
|
1419
1472
|
MatChipList.prototype._clearSelection = /**
|
|
1420
1473
|
* Deselects every chip in the list.
|
|
1474
|
+
* @private
|
|
1421
1475
|
* @param {?=} skip Chip that should not be deselected.
|
|
1422
1476
|
* @return {?}
|
|
1423
1477
|
*/
|
|
@@ -1433,11 +1487,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1433
1487
|
/**
|
|
1434
1488
|
* Sorts the model values, ensuring that they keep the same
|
|
1435
1489
|
* order that they have in the panel.
|
|
1490
|
+
*/
|
|
1491
|
+
/**
|
|
1492
|
+
* Sorts the model values, ensuring that they keep the same
|
|
1493
|
+
* order that they have in the panel.
|
|
1494
|
+
* @private
|
|
1436
1495
|
* @return {?}
|
|
1437
1496
|
*/
|
|
1438
1497
|
MatChipList.prototype._sortValues = /**
|
|
1439
1498
|
* Sorts the model values, ensuring that they keep the same
|
|
1440
1499
|
* order that they have in the panel.
|
|
1500
|
+
* @private
|
|
1441
1501
|
* @return {?}
|
|
1442
1502
|
*/
|
|
1443
1503
|
function () {
|
|
@@ -1452,13 +1512,16 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1452
1512
|
this.stateChanges.next();
|
|
1453
1513
|
}
|
|
1454
1514
|
};
|
|
1515
|
+
/** Emits change event to set the model value. */
|
|
1455
1516
|
/**
|
|
1456
1517
|
* Emits change event to set the model value.
|
|
1518
|
+
* @private
|
|
1457
1519
|
* @param {?=} fallbackValue
|
|
1458
1520
|
* @return {?}
|
|
1459
1521
|
*/
|
|
1460
1522
|
MatChipList.prototype._propagateChanges = /**
|
|
1461
1523
|
* Emits change event to set the model value.
|
|
1524
|
+
* @private
|
|
1462
1525
|
* @param {?=} fallbackValue
|
|
1463
1526
|
* @return {?}
|
|
1464
1527
|
*/
|
|
@@ -1524,9 +1587,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1524
1587
|
this.stateChanges.next();
|
|
1525
1588
|
};
|
|
1526
1589
|
/**
|
|
1590
|
+
* @private
|
|
1527
1591
|
* @return {?}
|
|
1528
1592
|
*/
|
|
1529
1593
|
MatChipList.prototype._resetChips = /**
|
|
1594
|
+
* @private
|
|
1530
1595
|
* @return {?}
|
|
1531
1596
|
*/
|
|
1532
1597
|
function () {
|
|
@@ -1536,9 +1601,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1536
1601
|
this._listenToChipsRemoved();
|
|
1537
1602
|
};
|
|
1538
1603
|
/**
|
|
1604
|
+
* @private
|
|
1539
1605
|
* @return {?}
|
|
1540
1606
|
*/
|
|
1541
1607
|
MatChipList.prototype._dropSubscriptions = /**
|
|
1608
|
+
* @private
|
|
1542
1609
|
* @return {?}
|
|
1543
1610
|
*/
|
|
1544
1611
|
function () {
|
|
@@ -1559,12 +1626,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1559
1626
|
this._chipRemoveSubscription = null;
|
|
1560
1627
|
}
|
|
1561
1628
|
};
|
|
1629
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1562
1630
|
/**
|
|
1563
1631
|
* Listens to user-generated selection events on each chip.
|
|
1632
|
+
* @private
|
|
1564
1633
|
* @return {?}
|
|
1565
1634
|
*/
|
|
1566
1635
|
MatChipList.prototype._listenToChipsSelection = /**
|
|
1567
1636
|
* Listens to user-generated selection events on each chip.
|
|
1637
|
+
* @private
|
|
1568
1638
|
* @return {?}
|
|
1569
1639
|
*/
|
|
1570
1640
|
function () {
|
|
@@ -1586,12 +1656,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1586
1656
|
}
|
|
1587
1657
|
});
|
|
1588
1658
|
};
|
|
1659
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1589
1660
|
/**
|
|
1590
1661
|
* Listens to user-generated selection events on each chip.
|
|
1662
|
+
* @private
|
|
1591
1663
|
* @return {?}
|
|
1592
1664
|
*/
|
|
1593
1665
|
MatChipList.prototype._listenToChipsFocus = /**
|
|
1594
1666
|
* Listens to user-generated selection events on each chip.
|
|
1667
|
+
* @private
|
|
1595
1668
|
* @return {?}
|
|
1596
1669
|
*/
|
|
1597
1670
|
function () {
|
|
@@ -1610,9 +1683,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1610
1683
|
});
|
|
1611
1684
|
};
|
|
1612
1685
|
/**
|
|
1686
|
+
* @private
|
|
1613
1687
|
* @return {?}
|
|
1614
1688
|
*/
|
|
1615
1689
|
MatChipList.prototype._listenToChipsRemoved = /**
|
|
1690
|
+
* @private
|
|
1616
1691
|
* @return {?}
|
|
1617
1692
|
*/
|
|
1618
1693
|
function () {
|
|
@@ -1630,19 +1705,22 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1630
1705
|
}
|
|
1631
1706
|
});
|
|
1632
1707
|
};
|
|
1708
|
+
/** Checks whether an event comes from inside a chip element. */
|
|
1633
1709
|
/**
|
|
1634
1710
|
* Checks whether an event comes from inside a chip element.
|
|
1711
|
+
* @private
|
|
1635
1712
|
* @param {?} event
|
|
1636
1713
|
* @return {?}
|
|
1637
1714
|
*/
|
|
1638
1715
|
MatChipList.prototype._originatesFromChip = /**
|
|
1639
1716
|
* Checks whether an event comes from inside a chip element.
|
|
1717
|
+
* @private
|
|
1640
1718
|
* @param {?} event
|
|
1641
1719
|
* @return {?}
|
|
1642
1720
|
*/
|
|
1643
1721
|
function (event) {
|
|
1644
1722
|
/** @type {?} */
|
|
1645
|
-
var currentElement = /** @type {?} */ (event.target);
|
|
1723
|
+
var currentElement = (/** @type {?} */ (event.target));
|
|
1646
1724
|
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
1647
1725
|
if (currentElement.classList.contains('mat-chip')) {
|
|
1648
1726
|
return true;
|
|
@@ -1651,12 +1729,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1651
1729
|
}
|
|
1652
1730
|
return false;
|
|
1653
1731
|
};
|
|
1732
|
+
/** Checks whether any of the chips is focused. */
|
|
1654
1733
|
/**
|
|
1655
1734
|
* Checks whether any of the chips is focused.
|
|
1735
|
+
* @private
|
|
1656
1736
|
* @return {?}
|
|
1657
1737
|
*/
|
|
1658
1738
|
MatChipList.prototype._hasFocusedChip = /**
|
|
1659
1739
|
* Checks whether any of the chips is focused.
|
|
1740
|
+
* @private
|
|
1660
1741
|
* @return {?}
|
|
1661
1742
|
*/
|
|
1662
1743
|
function () {
|
|
@@ -1685,7 +1766,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1685
1766
|
'[id]': '_uid',
|
|
1686
1767
|
},
|
|
1687
1768
|
providers: [{ provide: formField.MatFormFieldControl, useExisting: MatChipList }],
|
|
1688
|
-
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;
|
|
1769
|
+
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}"],
|
|
1689
1770
|
encapsulation: core.ViewEncapsulation.None,
|
|
1690
1771
|
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
1691
1772
|
},] },
|
|
@@ -1720,8 +1801,9 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1720
1801
|
|
|
1721
1802
|
/**
|
|
1722
1803
|
* @fileoverview added by tsickle
|
|
1723
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1804
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1724
1805
|
*/
|
|
1806
|
+
// Increasing integer for generating unique ids.
|
|
1725
1807
|
/** @type {?} */
|
|
1726
1808
|
var nextUniqueId$1 = 0;
|
|
1727
1809
|
/**
|
|
@@ -1756,7 +1838,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1756
1838
|
*/
|
|
1757
1839
|
this.id = "mat-chip-list-input-" + nextUniqueId$1++;
|
|
1758
1840
|
this._disabled = false;
|
|
1759
|
-
this._inputElement = /** @type {?} */ (this._elementRef.nativeElement);
|
|
1841
|
+
this._inputElement = (/** @type {?} */ (this._elementRef.nativeElement));
|
|
1760
1842
|
}
|
|
1761
1843
|
Object.defineProperty(MatChipInput.prototype, "chipList", {
|
|
1762
1844
|
/** Register input for chip list */
|
|
@@ -1884,7 +1966,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1884
1966
|
if (!this._inputElement.value && !!event) {
|
|
1885
1967
|
this._chipList._keydown(event);
|
|
1886
1968
|
}
|
|
1887
|
-
if (!event || this._isSeparatorKey(event
|
|
1969
|
+
if (!event || this._isSeparatorKey(event)) {
|
|
1888
1970
|
this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });
|
|
1889
1971
|
if (event) {
|
|
1890
1972
|
event.preventDefault();
|
|
@@ -1913,19 +1995,27 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1913
1995
|
function () {
|
|
1914
1996
|
this._inputElement.focus();
|
|
1915
1997
|
};
|
|
1998
|
+
/** Checks whether a keycode is one of the configured separators. */
|
|
1916
1999
|
/**
|
|
1917
2000
|
* Checks whether a keycode is one of the configured separators.
|
|
1918
|
-
* @
|
|
2001
|
+
* @private
|
|
2002
|
+
* @param {?} event
|
|
1919
2003
|
* @return {?}
|
|
1920
2004
|
*/
|
|
1921
2005
|
MatChipInput.prototype._isSeparatorKey = /**
|
|
1922
2006
|
* Checks whether a keycode is one of the configured separators.
|
|
1923
|
-
* @
|
|
2007
|
+
* @private
|
|
2008
|
+
* @param {?} event
|
|
1924
2009
|
* @return {?}
|
|
1925
2010
|
*/
|
|
1926
|
-
function (
|
|
2011
|
+
function (event) {
|
|
2012
|
+
if (keycodes.hasModifierKey(event)) {
|
|
2013
|
+
return false;
|
|
2014
|
+
}
|
|
1927
2015
|
/** @type {?} */
|
|
1928
2016
|
var separators = this.separatorKeyCodes;
|
|
2017
|
+
/** @type {?} */
|
|
2018
|
+
var keyCode = event.keyCode;
|
|
1929
2019
|
return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);
|
|
1930
2020
|
};
|
|
1931
2021
|
MatChipInput.decorators = [
|
|
@@ -1964,7 +2054,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1964
2054
|
|
|
1965
2055
|
/**
|
|
1966
2056
|
* @fileoverview added by tsickle
|
|
1967
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2057
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1968
2058
|
*/
|
|
1969
2059
|
/** @type {?} */
|
|
1970
2060
|
var CHIP_DECLARATIONS = [
|
|
@@ -1975,9 +2065,9 @@ var CHIP_DECLARATIONS = [
|
|
|
1975
2065
|
MatChipAvatar,
|
|
1976
2066
|
MatChipTrailingIcon,
|
|
1977
2067
|
];
|
|
1978
|
-
var ɵ0 = {
|
|
2068
|
+
var ɵ0 = ({
|
|
1979
2069
|
separatorKeyCodes: [keycodes.ENTER]
|
|
1980
|
-
};
|
|
2070
|
+
});
|
|
1981
2071
|
var MatChipsModule = /** @class */ (function () {
|
|
1982
2072
|
function MatChipsModule() {
|
|
1983
2073
|
}
|
|
@@ -1989,7 +2079,7 @@ var MatChipsModule = /** @class */ (function () {
|
|
|
1989
2079
|
core$1.ErrorStateMatcher,
|
|
1990
2080
|
{
|
|
1991
2081
|
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1992
|
-
useValue: /** @type {?} */ (
|
|
2082
|
+
useValue: (/** @type {?} */ (ɵ0))
|
|
1993
2083
|
}
|
|
1994
2084
|
]
|
|
1995
2085
|
},] },
|