@angular/material 7.1.0 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/_theming.scss +50 -19
- package/autocomplete/typings/index.d.ts +0 -1
- package/autocomplete/typings/index.metadata.json +1 -1
- package/autocomplete/typings/public-api.d.ts +1 -0
- package/badge/typings/index.metadata.json +1 -1
- package/bottom-sheet/typings/bottom-sheet-ref.d.ts +2 -0
- package/bottom-sheet/typings/index.metadata.json +1 -1
- package/bundles/material-autocomplete.umd.js +139 -39
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.min.js +1 -1
- package/bundles/material-autocomplete.umd.min.js.map +1 -1
- package/bundles/material-badge.umd.js +38 -5
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-badge.umd.min.js +1 -1
- package/bundles/material-badge.umd.min.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +67 -22
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.min.js +1 -1
- package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +45 -14
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.min.js +1 -1
- package/bundles/material-button-toggle.umd.min.js.map +1 -1
- package/bundles/material-button.umd.js +21 -14
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-button.umd.min.js +1 -1
- package/bundles/material-button.umd.min.js.map +1 -1
- package/bundles/material-card.umd.js +3 -3
- package/bundles/material-card.umd.js.map +1 -1
- package/bundles/material-card.umd.min.js +1 -1
- package/bundles/material-card.umd.min.js.map +1 -1
- package/bundles/material-checkbox.umd.js +56 -15
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.min.js +1 -1
- package/bundles/material-checkbox.umd.min.js.map +1 -1
- package/bundles/material-chips.umd.js +126 -38
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-chips.umd.min.js +1 -1
- package/bundles/material-chips.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +190 -127
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +1 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +205 -42
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +2 -2
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-dialog.umd.js +138 -40
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-dialog.umd.min.js +1 -1
- package/bundles/material-dialog.umd.min.js.map +1 -1
- package/bundles/material-divider.umd.js +2 -2
- package/bundles/material-divider.umd.js.map +1 -1
- package/bundles/material-divider.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +52 -26
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +1 -1
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-form-field.umd.js +123 -34
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-form-field.umd.min.js +1 -1
- package/bundles/material-form-field.umd.min.js.map +1 -1
- package/bundles/material-grid-list.umd.js +67 -16
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.min.js +1 -1
- package/bundles/material-grid-list.umd.min.js.map +1 -1
- package/bundles/material-icon.umd.js +288 -78
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-icon.umd.min.js +1 -1
- package/bundles/material-icon.umd.min.js.map +1 -1
- package/bundles/material-input.umd.js +50 -22
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-input.umd.min.js +1 -1
- package/bundles/material-input.umd.min.js.map +1 -1
- package/bundles/material-list.umd.js +159 -26
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-list.umd.min.js +2 -2
- package/bundles/material-list.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +176 -70
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +1 -1
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-paginator.umd.js +25 -8
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-paginator.umd.min.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +32 -13
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.min.js +1 -1
- package/bundles/material-progress-bar.umd.min.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +30 -14
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.min.js +1 -1
- package/bundles/material-progress-spinner.umd.min.js.map +1 -1
- package/bundles/material-radio.umd.js +38 -40
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-radio.umd.min.js +1 -1
- package/bundles/material-radio.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +186 -49
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +1 -1
- package/bundles/material-select.umd.min.js.map +1 -1
- package/bundles/material-sidenav.umd.js +104 -25
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.min.js +1 -1
- package/bundles/material-sidenav.umd.min.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +31 -15
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.min.js +1 -1
- package/bundles/material-slide-toggle.umd.min.js.map +1 -1
- package/bundles/material-slider.umd.js +88 -20
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-slider.umd.min.js +1 -1
- package/bundles/material-slider.umd.min.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +69 -20
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.min.js +1 -1
- package/bundles/material-snack-bar.umd.min.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -24
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-sort.umd.min.js +1 -1
- package/bundles/material-sort.umd.min.js.map +1 -1
- package/bundles/material-stepper.umd.js +29 -20
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-stepper.umd.min.js +1 -1
- package/bundles/material-stepper.umd.min.js.map +1 -1
- package/bundles/material-table.umd.js +48 -15
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-table.umd.min.js +1 -1
- package/bundles/material-table.umd.min.js.map +1 -1
- package/bundles/material-tabs.umd.js +162 -61
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tabs.umd.min.js +2 -2
- package/bundles/material-tabs.umd.min.js.map +1 -1
- package/bundles/material-toolbar.umd.js +14 -4
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.min.js +1 -1
- package/bundles/material-toolbar.umd.min.js.map +1 -1
- package/bundles/material-tooltip.umd.js +62 -26
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.min.js +1 -1
- package/bundles/material-tooltip.umd.min.js.map +1 -1
- package/bundles/material-tree.umd.js +25 -16
- package/bundles/material-tree.umd.js.map +1 -1
- package/bundles/material-tree.umd.min.js +1 -1
- package/bundles/material-tree.umd.min.js.map +1 -1
- package/bundles/material.umd.js +2927 -995
- package/bundles/material.umd.js.map +1 -1
- package/bundles/material.umd.min.js +18 -18
- package/bundles/material.umd.min.js.map +1 -1
- package/button/typings/button.d.ts +0 -5
- package/button/typings/index.metadata.json +1 -1
- package/button-toggle/typings/index.metadata.json +1 -1
- package/card/typings/index.metadata.json +1 -1
- package/checkbox/typings/index.metadata.json +1 -1
- package/chips/typings/chip-list.d.ts +2 -2
- package/chips/typings/chip.d.ts +2 -2
- package/chips/typings/index.metadata.json +1 -1
- package/core/typings/index.metadata.json +1 -1
- package/core/typings/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/core/typings/public-api.d.ts +1 -1
- package/core/typings/ripple/ripple.d.ts +1 -1
- package/datepicker/typings/calendar.d.ts +2 -2
- package/datepicker/typings/index.metadata.json +1 -1
- package/dialog/typings/index.metadata.json +1 -1
- package/esm2015/autocomplete.js +73 -36
- package/esm2015/autocomplete.js.map +1 -1
- package/esm2015/badge.js +29 -6
- package/esm2015/badge.js.map +1 -1
- package/esm2015/bottom-sheet.js +44 -23
- package/esm2015/bottom-sheet.js.map +1 -1
- package/esm2015/button-toggle.js +27 -11
- package/esm2015/button-toggle.js.map +1 -1
- package/esm2015/button.js +20 -15
- package/esm2015/button.js.map +1 -1
- package/esm2015/card.js +5 -5
- package/esm2015/card.js.map +1 -1
- package/esm2015/checkbox.js +30 -12
- package/esm2015/checkbox.js.map +1 -1
- package/esm2015/chips.js +64 -30
- package/esm2015/chips.js.map +1 -1
- package/esm2015/core.js +147 -128
- package/esm2015/core.js.map +1 -1
- package/esm2015/datepicker.js +103 -37
- package/esm2015/datepicker.js.map +1 -1
- package/esm2015/dialog.js +77 -40
- package/esm2015/dialog.js.map +1 -1
- package/esm2015/divider.js +4 -4
- package/esm2015/divider.js.map +1 -1
- package/esm2015/expansion.js +56 -29
- package/esm2015/expansion.js.map +1 -1
- package/esm2015/form-field.js +95 -35
- package/esm2015/form-field.js.map +1 -1
- package/esm2015/grid-list.js +45 -17
- package/esm2015/grid-list.js.map +1 -1
- package/esm2015/icon.js +144 -67
- package/esm2015/icon.js.map +1 -1
- package/esm2015/input.js +44 -23
- package/esm2015/input.js.map +1 -1
- package/esm2015/list.js +118 -24
- package/esm2015/list.js.map +1 -1
- package/esm2015/material.js +13 -12
- package/esm2015/material.js.map +1 -1
- package/esm2015/menu.js +114 -67
- package/esm2015/menu.js.map +1 -1
- package/esm2015/paginator.js +17 -9
- package/esm2015/paginator.js.map +1 -1
- package/esm2015/progress-bar.js +26 -13
- package/esm2015/progress-bar.js.map +1 -1
- package/esm2015/progress-spinner.js +24 -14
- package/esm2015/progress-spinner.js.map +1 -1
- package/esm2015/radio.js +22 -21
- package/esm2015/radio.js.map +1 -1
- package/esm2015/select.js +112 -50
- package/esm2015/select.js.map +1 -1
- package/esm2015/sidenav.js +75 -28
- package/esm2015/sidenav.js.map +1 -1
- package/esm2015/slide-toggle.js +23 -15
- package/esm2015/slide-toggle.js.map +1 -1
- package/esm2015/slider.js +51 -23
- package/esm2015/slider.js.map +1 -1
- package/esm2015/snack-bar.js +38 -21
- package/esm2015/snack-bar.js.map +1 -1
- package/esm2015/sort.js +47 -24
- package/esm2015/sort.js.map +1 -1
- package/esm2015/stepper.js +32 -23
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +51 -18
- package/esm2015/table.js.map +1 -1
- package/esm2015/tabs.js +112 -49
- package/esm2015/tabs.js.map +1 -1
- package/esm2015/toolbar.js +9 -5
- package/esm2015/toolbar.js.map +1 -1
- package/esm2015/tooltip.js +49 -28
- package/esm2015/tooltip.js.map +1 -1
- package/esm2015/tree.js +22 -17
- package/esm2015/tree.js.map +1 -1
- package/esm5/autocomplete.es5.js +141 -41
- package/esm5/autocomplete.es5.js.map +1 -1
- package/esm5/badge.es5.js +40 -7
- package/esm5/badge.es5.js.map +1 -1
- package/esm5/bottom-sheet.es5.js +68 -23
- package/esm5/bottom-sheet.es5.js.map +1 -1
- package/esm5/button-toggle.es5.js +46 -15
- package/esm5/button-toggle.es5.js.map +1 -1
- package/esm5/button.es5.js +23 -16
- package/esm5/button.es5.js.map +1 -1
- package/esm5/card.es5.js +5 -5
- package/esm5/card.es5.js.map +1 -1
- package/esm5/checkbox.es5.js +58 -17
- package/esm5/checkbox.es5.js.map +1 -1
- package/esm5/chips.es5.js +129 -41
- package/esm5/chips.es5.js.map +1 -1
- package/esm5/core.es5.js +192 -129
- package/esm5/core.es5.js.map +1 -1
- package/esm5/datepicker.es5.js +207 -44
- package/esm5/datepicker.es5.js.map +1 -1
- package/esm5/dialog.es5.js +140 -42
- package/esm5/dialog.es5.js.map +1 -1
- package/esm5/divider.es5.js +4 -4
- package/esm5/divider.es5.js.map +1 -1
- package/esm5/expansion.es5.js +54 -29
- package/esm5/expansion.es5.js.map +1 -1
- package/esm5/form-field.es5.js +126 -37
- package/esm5/form-field.es5.js.map +1 -1
- package/esm5/grid-list.es5.js +68 -17
- package/esm5/grid-list.es5.js.map +1 -1
- package/esm5/icon.es5.js +290 -80
- package/esm5/icon.es5.js.map +1 -1
- package/esm5/input.es5.js +52 -24
- package/esm5/input.es5.js.map +1 -1
- package/esm5/list.es5.js +161 -27
- package/esm5/list.es5.js.map +1 -1
- package/esm5/material.es5.js +13 -12
- package/esm5/material.es5.js.map +1 -1
- package/esm5/menu.es5.js +175 -69
- package/esm5/menu.es5.js.map +1 -1
- package/esm5/paginator.es5.js +27 -10
- package/esm5/paginator.es5.js.map +1 -1
- package/esm5/progress-bar.es5.js +33 -14
- package/esm5/progress-bar.es5.js.map +1 -1
- package/esm5/progress-spinner.es5.js +31 -15
- package/esm5/progress-spinner.es5.js.map +1 -1
- package/esm5/radio.es5.js +42 -42
- package/esm5/radio.es5.js.map +1 -1
- package/esm5/select.es5.js +189 -52
- package/esm5/select.es5.js.map +1 -1
- package/esm5/sidenav.es5.js +107 -28
- package/esm5/sidenav.es5.js.map +1 -1
- package/esm5/slide-toggle.es5.js +32 -16
- package/esm5/slide-toggle.es5.js.map +1 -1
- package/esm5/slider.es5.js +91 -23
- package/esm5/slider.es5.js.map +1 -1
- package/esm5/snack-bar.es5.js +70 -21
- package/esm5/snack-bar.es5.js.map +1 -1
- package/esm5/sort.es5.js +53 -26
- package/esm5/sort.es5.js.map +1 -1
- package/esm5/stepper.es5.js +32 -23
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +51 -18
- package/esm5/table.es5.js.map +1 -1
- package/esm5/tabs.es5.js +156 -55
- package/esm5/tabs.es5.js.map +1 -1
- package/esm5/toolbar.es5.js +16 -6
- package/esm5/toolbar.es5.js.map +1 -1
- package/esm5/tooltip.es5.js +64 -28
- package/esm5/tooltip.es5.js.map +1 -1
- package/esm5/tree.es5.js +27 -18
- package/esm5/tree.es5.js.map +1 -1
- package/expansion/typings/expansion-panel-header.d.ts +2 -2
- package/expansion/typings/expansion-panel.d.ts +19 -2
- package/expansion/typings/index.metadata.json +1 -1
- package/form-field/typings/form-field.d.ts +15 -4
- package/form-field/typings/index.metadata.json +1 -1
- package/form-field/typings/prefix.d.ts +1 -1
- package/grid-list/typings/index.d.ts +1 -1
- package/grid-list/typings/index.metadata.json +1 -1
- package/icon/typings/icon-registry.d.ts +3 -2
- package/icon/typings/index.metadata.json +1 -1
- package/list/typings/index.metadata.json +1 -1
- package/list/typings/list.d.ts +16 -5
- package/list/typings/selection-list.d.ts +1 -0
- package/material.d.ts +1 -1
- package/material.metadata.json +3 -3
- package/menu/typings/index.d.ts +4 -4
- package/menu/typings/index.metadata.json +1 -1
- package/menu/typings/menu-directive.d.ts +1 -0
- package/menu/typings/menu-item.d.ts +2 -0
- package/menu/typings/menu-trigger.d.ts +1 -1
- package/package.json +5 -5
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/typings/index.metadata.json +1 -1
- package/radio/typings/index.metadata.json +1 -1
- package/radio/typings/radio.d.ts +2 -6
- package/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/schematics/ng-add/theming/{custom-theme.js → create-custom-theme.js} +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +35 -19
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +2 -2
- package/select/typings/index.metadata.json +1 -1
- package/select/typings/select.d.ts +12 -2
- package/sidenav/typings/drawer.d.ts +9 -2
- package/sidenav/typings/index.metadata.json +1 -1
- package/slide-toggle/typings/index.metadata.json +1 -1
- package/slider/typings/index.metadata.json +1 -1
- package/snack-bar/typings/index.metadata.json +1 -1
- package/sort/typings/index.metadata.json +1 -1
- package/stepper/typings/index.metadata.json +1 -1
- package/table/typings/index.metadata.json +1 -1
- package/table/typings/table-data-source.d.ts +2 -0
- package/tabs/typings/index.d.ts +5 -5
- package/tabs/typings/index.metadata.json +1 -1
- package/tabs/typings/tab-group.d.ts +2 -1
- package/tabs/typings/tab-header.d.ts +8 -4
- package/toolbar/typings/index.metadata.json +1 -1
- package/tooltip/typings/index.metadata.json +1 -1
- package/tooltip/typings/tooltip.d.ts +2 -1
- package/tree/typings/data-source/flat-data-source.d.ts +2 -2
- package/tree/typings/index.metadata.json +1 -1
- package/typings/autocomplete/index.d.ts +0 -1
- package/typings/autocomplete/index.metadata.json +1 -1
- package/typings/autocomplete/public-api.d.ts +1 -0
- package/typings/badge/index.metadata.json +1 -1
- package/typings/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- package/typings/bottom-sheet/index.metadata.json +1 -1
- package/typings/button/button.d.ts +0 -5
- package/typings/button/index.metadata.json +1 -1
- package/typings/button-toggle/index.metadata.json +1 -1
- package/typings/card/index.metadata.json +1 -1
- package/typings/checkbox/index.metadata.json +1 -1
- package/typings/chips/chip-list.d.ts +2 -2
- package/typings/chips/chip.d.ts +2 -2
- package/typings/chips/index.metadata.json +1 -1
- package/typings/core/index.metadata.json +1 -1
- package/typings/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/core/public-api.d.ts +1 -1
- package/typings/core/ripple/ripple.d.ts +1 -1
- package/typings/datepicker/calendar.d.ts +2 -2
- package/typings/datepicker/index.metadata.json +1 -1
- package/typings/dialog/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/index.d.ts +0 -1
- package/typings/esm5/autocomplete/index.metadata.json +1 -1
- package/typings/esm5/autocomplete/public-api.d.ts +1 -0
- package/typings/esm5/badge/index.metadata.json +1 -1
- package/typings/esm5/bottom-sheet/bottom-sheet-ref.d.ts +2 -0
- package/typings/esm5/bottom-sheet/index.metadata.json +1 -1
- package/typings/esm5/button/button.d.ts +0 -5
- package/typings/esm5/button/index.metadata.json +1 -1
- package/typings/esm5/button-toggle/index.metadata.json +1 -1
- package/typings/esm5/card/index.metadata.json +1 -1
- package/typings/esm5/checkbox/index.metadata.json +1 -1
- package/typings/esm5/chips/chip-list.d.ts +2 -2
- package/typings/esm5/chips/chip.d.ts +2 -2
- package/typings/esm5/chips/index.metadata.json +1 -1
- package/typings/esm5/core/index.metadata.json +1 -1
- package/typings/esm5/core/{testing/month-constants.d.ts → month-constants.d.ts} +2 -0
- package/typings/esm5/core/public-api.d.ts +1 -1
- package/typings/esm5/core/ripple/ripple.d.ts +1 -1
- package/typings/esm5/datepicker/calendar.d.ts +2 -2
- package/typings/esm5/datepicker/index.metadata.json +1 -1
- package/typings/esm5/dialog/index.metadata.json +1 -1
- package/typings/esm5/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/esm5/expansion/expansion-panel.d.ts +19 -2
- package/typings/esm5/expansion/index.metadata.json +1 -1
- package/typings/esm5/form-field/form-field.d.ts +15 -4
- package/typings/esm5/form-field/index.metadata.json +1 -1
- package/typings/esm5/form-field/prefix.d.ts +1 -1
- package/typings/esm5/grid-list/index.d.ts +1 -1
- package/typings/esm5/grid-list/index.metadata.json +1 -1
- package/typings/esm5/icon/icon-registry.d.ts +3 -2
- package/typings/esm5/icon/index.metadata.json +1 -1
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/list/index.metadata.json +1 -1
- package/typings/esm5/list/list.d.ts +16 -5
- package/typings/esm5/list/selection-list.d.ts +1 -0
- package/typings/esm5/menu/index.d.ts +4 -4
- package/typings/esm5/menu/index.metadata.json +1 -1
- package/typings/esm5/menu/menu-directive.d.ts +1 -0
- package/typings/esm5/menu/menu-item.d.ts +2 -0
- package/typings/esm5/menu/menu-trigger.d.ts +1 -1
- package/typings/esm5/progress-bar/index.metadata.json +1 -1
- package/typings/esm5/radio/index.metadata.json +1 -1
- package/typings/esm5/radio/radio.d.ts +2 -6
- package/typings/esm5/select/index.metadata.json +1 -1
- package/typings/esm5/select/select.d.ts +12 -2
- package/typings/esm5/sidenav/drawer.d.ts +9 -2
- package/typings/esm5/sidenav/index.metadata.json +1 -1
- package/typings/esm5/slide-toggle/index.metadata.json +1 -1
- package/typings/esm5/slider/index.metadata.json +1 -1
- package/typings/esm5/snack-bar/index.metadata.json +1 -1
- package/typings/esm5/sort/index.metadata.json +1 -1
- package/typings/esm5/stepper/index.metadata.json +1 -1
- package/typings/esm5/table/index.metadata.json +1 -1
- package/typings/esm5/table/table-data-source.d.ts +2 -0
- package/typings/esm5/tabs/index.d.ts +5 -5
- package/typings/esm5/tabs/index.metadata.json +1 -1
- package/typings/esm5/tabs/tab-group.d.ts +2 -1
- package/typings/esm5/tabs/tab-header.d.ts +8 -4
- package/typings/esm5/toolbar/index.metadata.json +1 -1
- package/typings/esm5/tooltip/index.metadata.json +1 -1
- package/typings/esm5/tooltip/tooltip.d.ts +2 -1
- package/typings/esm5/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/esm5/tree/index.metadata.json +1 -1
- package/typings/expansion/expansion-panel-header.d.ts +2 -2
- package/typings/expansion/expansion-panel.d.ts +19 -2
- package/typings/expansion/index.metadata.json +1 -1
- package/typings/form-field/form-field.d.ts +15 -4
- package/typings/form-field/index.metadata.json +1 -1
- package/typings/form-field/prefix.d.ts +1 -1
- package/typings/grid-list/index.d.ts +1 -1
- package/typings/grid-list/index.metadata.json +1 -1
- package/typings/icon/icon-registry.d.ts +3 -2
- package/typings/icon/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/list/index.metadata.json +1 -1
- package/typings/list/list.d.ts +16 -5
- package/typings/list/selection-list.d.ts +1 -0
- package/typings/menu/index.d.ts +4 -4
- package/typings/menu/index.metadata.json +1 -1
- package/typings/menu/menu-directive.d.ts +1 -0
- package/typings/menu/menu-item.d.ts +2 -0
- package/typings/menu/menu-trigger.d.ts +1 -1
- package/typings/progress-bar/index.metadata.json +1 -1
- package/typings/radio/index.metadata.json +1 -1
- package/typings/radio/radio.d.ts +2 -6
- package/typings/schematics/ng-add/theming/{custom-theme.d.ts → create-custom-theme.d.ts} +0 -0
- package/typings/select/index.metadata.json +1 -1
- package/typings/select/select.d.ts +12 -2
- package/typings/sidenav/drawer.d.ts +9 -2
- package/typings/sidenav/index.metadata.json +1 -1
- package/typings/slide-toggle/index.metadata.json +1 -1
- package/typings/slider/index.metadata.json +1 -1
- package/typings/snack-bar/index.metadata.json +1 -1
- package/typings/sort/index.metadata.json +1 -1
- package/typings/stepper/index.metadata.json +1 -1
- package/typings/table/index.metadata.json +1 -1
- package/typings/table/table-data-source.d.ts +2 -0
- package/typings/tabs/index.d.ts +5 -5
- package/typings/tabs/index.metadata.json +1 -1
- package/typings/tabs/tab-group.d.ts +2 -1
- package/typings/tabs/tab-header.d.ts +8 -4
- package/typings/toolbar/index.metadata.json +1 -1
- package/typings/tooltip/index.metadata.json +1 -1
- package/typings/tooltip/tooltip.d.ts +2 -1
- package/typings/tree/data-source/flat-data-source.d.ts +2 -2
- package/typings/tree/index.metadata.json +1 -1
- package/schematics/ng-add/theming/custom-theme.js.map +0 -1
package/esm5/chips.es5.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { __extends } from 'tslib';
|
|
9
9
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
10
|
-
import { BACKSPACE, DELETE, SPACE, END, HOME, ENTER } from '@angular/cdk/keycodes';
|
|
10
|
+
import { BACKSPACE, DELETE, SPACE, END, HOME, hasModifierKey, ENTER } from '@angular/cdk/keycodes';
|
|
11
11
|
import { Platform } from '@angular/cdk/platform';
|
|
12
12
|
import { ContentChild, Directive, ElementRef, EventEmitter, forwardRef, Inject, Input, NgZone, Optional, Output, InjectionToken, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Self, ViewEncapsulation, NgModule } from '@angular/core';
|
|
13
13
|
import { MAT_RIPPLE_GLOBAL_OPTIONS, mixinColor, mixinDisabled, mixinDisableRipple, RippleRenderer, ErrorStateMatcher, mixinErrorState } from '@angular/material/core';
|
|
@@ -21,7 +21,7 @@ import { MatFormFieldControl } from '@angular/material/form-field';
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @fileoverview added by tsickle
|
|
24
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
24
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
27
|
* Event object emitted by MatChip when selected or deselected.
|
|
@@ -38,10 +38,13 @@ MatChipSelectionChange = /** @class */ (function () {
|
|
|
38
38
|
}
|
|
39
39
|
return MatChipSelectionChange;
|
|
40
40
|
}());
|
|
41
|
+
// Boilerplate for applying mixins to MatChip.
|
|
41
42
|
/**
|
|
42
43
|
* \@docs-private
|
|
43
44
|
*/
|
|
44
|
-
var
|
|
45
|
+
var
|
|
46
|
+
// Boilerplate for applying mixins to MatChip.
|
|
47
|
+
/**
|
|
45
48
|
* \@docs-private
|
|
46
49
|
*/
|
|
47
50
|
MatChipBase = /** @class */ (function () {
|
|
@@ -206,14 +209,14 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
206
209
|
Object.defineProperty(MatChip.prototype, "selectable", {
|
|
207
210
|
/**
|
|
208
211
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
209
|
-
* changes to
|
|
210
|
-
* selectable, and it becomes non-selectable if
|
|
212
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
213
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
211
214
|
* not selectable.
|
|
212
215
|
*/
|
|
213
216
|
get: /**
|
|
214
217
|
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
215
|
-
* changes to
|
|
216
|
-
* selectable, and it becomes non-selectable if
|
|
218
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
219
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
217
220
|
* not selectable.
|
|
218
221
|
* @return {?}
|
|
219
222
|
*/
|
|
@@ -271,11 +274,11 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
271
274
|
var attr = CHIP_ATTRIBUTE_NAMES_1[_i];
|
|
272
275
|
if (this._elementRef.nativeElement.hasAttribute(attr) ||
|
|
273
276
|
this._elementRef.nativeElement.tagName.toLowerCase() === attr) {
|
|
274
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add(attr);
|
|
277
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add(attr);
|
|
275
278
|
return;
|
|
276
279
|
}
|
|
277
280
|
}
|
|
278
|
-
(/** @type {?} */ (this._elementRef.nativeElement)).classList.add('mat-standard-chip');
|
|
281
|
+
((/** @type {?} */ (this._elementRef.nativeElement))).classList.add('mat-standard-chip');
|
|
279
282
|
};
|
|
280
283
|
/**
|
|
281
284
|
* @return {?}
|
|
@@ -465,10 +468,12 @@ var MatChip = /** @class */ (function (_super) {
|
|
|
465
468
|
});
|
|
466
469
|
};
|
|
467
470
|
/**
|
|
471
|
+
* @private
|
|
468
472
|
* @param {?=} isUserInput
|
|
469
473
|
* @return {?}
|
|
470
474
|
*/
|
|
471
475
|
MatChip.prototype._dispatchSelectionChange = /**
|
|
476
|
+
* @private
|
|
472
477
|
* @param {?=} isUserInput
|
|
473
478
|
* @return {?}
|
|
474
479
|
*/
|
|
@@ -581,21 +586,25 @@ var MatChipRemove = /** @class */ (function () {
|
|
|
581
586
|
|
|
582
587
|
/**
|
|
583
588
|
* @fileoverview added by tsickle
|
|
584
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
589
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
585
590
|
*/
|
|
586
|
-
/**
|
|
591
|
+
/**
|
|
587
592
|
* Injection token to be used to override the default options for the chips module.
|
|
588
|
-
|
|
593
|
+
* @type {?}
|
|
594
|
+
*/
|
|
589
595
|
var MAT_CHIPS_DEFAULT_OPTIONS = new InjectionToken('mat-chips-default-options');
|
|
590
596
|
|
|
591
597
|
/**
|
|
592
598
|
* @fileoverview added by tsickle
|
|
593
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
599
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
594
600
|
*/
|
|
601
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
595
602
|
/**
|
|
596
603
|
* \@docs-private
|
|
597
604
|
*/
|
|
598
|
-
var
|
|
605
|
+
var
|
|
606
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
607
|
+
/**
|
|
599
608
|
* \@docs-private
|
|
600
609
|
*/
|
|
601
610
|
MatChipListBase = /** @class */ (function () {
|
|
@@ -609,6 +618,7 @@ MatChipListBase = /** @class */ (function () {
|
|
|
609
618
|
}());
|
|
610
619
|
/** @type {?} */
|
|
611
620
|
var _MatChipListMixinBase = mixinErrorState(MatChipListBase);
|
|
621
|
+
// Increasing integer for generating unique ids for chip-list components.
|
|
612
622
|
/** @type {?} */
|
|
613
623
|
var nextUniqueId = 0;
|
|
614
624
|
/**
|
|
@@ -625,12 +635,11 @@ MatChipListChange = /** @class */ (function () {
|
|
|
625
635
|
return MatChipListChange;
|
|
626
636
|
}());
|
|
627
637
|
/**
|
|
628
|
-
* A material design chips component (named ChipList for
|
|
638
|
+
* A material design chips component (named ChipList for its similarity to the List component).
|
|
629
639
|
*/
|
|
630
640
|
var MatChipList = /** @class */ (function (_super) {
|
|
631
641
|
__extends(MatChipList, _super);
|
|
632
|
-
function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher,
|
|
633
|
-
ngControl) {
|
|
642
|
+
function MatChipList(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, ngControl) {
|
|
634
643
|
var _this = _super.call(this, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) || this;
|
|
635
644
|
_this._elementRef = _elementRef;
|
|
636
645
|
_this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -1019,7 +1028,10 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1019
1028
|
// it back to the first chip when the user tabs out.
|
|
1020
1029
|
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(function () {
|
|
1021
1030
|
_this._tabIndex = -1;
|
|
1022
|
-
setTimeout(function () {
|
|
1031
|
+
setTimeout(function () {
|
|
1032
|
+
_this._tabIndex = _this._userTabIndex || 0;
|
|
1033
|
+
_this._changeDetectorRef.markForCheck();
|
|
1034
|
+
});
|
|
1023
1035
|
});
|
|
1024
1036
|
// When the list changes, re-subscribe
|
|
1025
1037
|
this.chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(function () {
|
|
@@ -1101,11 +1113,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1101
1113
|
*/
|
|
1102
1114
|
function (ids) { this._ariaDescribedby = ids.join(' '); };
|
|
1103
1115
|
// Implemented as part of ControlValueAccessor.
|
|
1116
|
+
// Implemented as part of ControlValueAccessor.
|
|
1104
1117
|
/**
|
|
1105
1118
|
* @param {?} value
|
|
1106
1119
|
* @return {?}
|
|
1107
1120
|
*/
|
|
1108
|
-
MatChipList.prototype.writeValue =
|
|
1121
|
+
MatChipList.prototype.writeValue =
|
|
1122
|
+
// Implemented as part of ControlValueAccessor.
|
|
1123
|
+
/**
|
|
1109
1124
|
* @param {?} value
|
|
1110
1125
|
* @return {?}
|
|
1111
1126
|
*/
|
|
@@ -1115,11 +1130,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1115
1130
|
}
|
|
1116
1131
|
};
|
|
1117
1132
|
// Implemented as part of ControlValueAccessor.
|
|
1133
|
+
// Implemented as part of ControlValueAccessor.
|
|
1118
1134
|
/**
|
|
1119
1135
|
* @param {?} fn
|
|
1120
1136
|
* @return {?}
|
|
1121
1137
|
*/
|
|
1122
|
-
MatChipList.prototype.registerOnChange =
|
|
1138
|
+
MatChipList.prototype.registerOnChange =
|
|
1139
|
+
// Implemented as part of ControlValueAccessor.
|
|
1140
|
+
/**
|
|
1123
1141
|
* @param {?} fn
|
|
1124
1142
|
* @return {?}
|
|
1125
1143
|
*/
|
|
@@ -1127,11 +1145,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1127
1145
|
this._onChange = fn;
|
|
1128
1146
|
};
|
|
1129
1147
|
// Implemented as part of ControlValueAccessor.
|
|
1148
|
+
// Implemented as part of ControlValueAccessor.
|
|
1130
1149
|
/**
|
|
1131
1150
|
* @param {?} fn
|
|
1132
1151
|
* @return {?}
|
|
1133
1152
|
*/
|
|
1134
|
-
MatChipList.prototype.registerOnTouched =
|
|
1153
|
+
MatChipList.prototype.registerOnTouched =
|
|
1154
|
+
// Implemented as part of ControlValueAccessor.
|
|
1155
|
+
/**
|
|
1135
1156
|
* @param {?} fn
|
|
1136
1157
|
* @return {?}
|
|
1137
1158
|
*/
|
|
@@ -1139,11 +1160,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1139
1160
|
this._onTouched = fn;
|
|
1140
1161
|
};
|
|
1141
1162
|
// Implemented as part of ControlValueAccessor.
|
|
1163
|
+
// Implemented as part of ControlValueAccessor.
|
|
1142
1164
|
/**
|
|
1143
1165
|
* @param {?} isDisabled
|
|
1144
1166
|
* @return {?}
|
|
1145
1167
|
*/
|
|
1146
|
-
MatChipList.prototype.setDisabledState =
|
|
1168
|
+
MatChipList.prototype.setDisabledState =
|
|
1169
|
+
// Implemented as part of ControlValueAccessor.
|
|
1170
|
+
/**
|
|
1147
1171
|
* @param {?} isDisabled
|
|
1148
1172
|
* @return {?}
|
|
1149
1173
|
*/
|
|
@@ -1173,16 +1197,16 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1173
1197
|
}
|
|
1174
1198
|
};
|
|
1175
1199
|
/**
|
|
1176
|
-
* Focuses the
|
|
1200
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
1177
1201
|
* are no eligible chips.
|
|
1178
1202
|
*/
|
|
1179
1203
|
/**
|
|
1180
|
-
* Focuses the
|
|
1204
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
1181
1205
|
* are no eligible chips.
|
|
1182
1206
|
* @return {?}
|
|
1183
1207
|
*/
|
|
1184
1208
|
MatChipList.prototype.focus = /**
|
|
1185
|
-
* Focuses the
|
|
1209
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
1186
1210
|
* are no eligible chips.
|
|
1187
1211
|
* @return {?}
|
|
1188
1212
|
*/
|
|
@@ -1233,7 +1257,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1233
1257
|
*/
|
|
1234
1258
|
function (event) {
|
|
1235
1259
|
/** @type {?} */
|
|
1236
|
-
var target = /** @type {?} */ (event.target);
|
|
1260
|
+
var target = (/** @type {?} */ (event.target));
|
|
1237
1261
|
// If they are on an empty input and hit backspace, focus the last chip
|
|
1238
1262
|
if (event.keyCode === BACKSPACE && this._isInputEmpty(target)) {
|
|
1239
1263
|
this._keyManager.setLastItemActive();
|
|
@@ -1259,10 +1283,12 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1259
1283
|
*/
|
|
1260
1284
|
/**
|
|
1261
1285
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1286
|
+
* @protected
|
|
1262
1287
|
* @return {?}
|
|
1263
1288
|
*/
|
|
1264
1289
|
MatChipList.prototype._updateTabIndex = /**
|
|
1265
1290
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1291
|
+
* @protected
|
|
1266
1292
|
* @return {?}
|
|
1267
1293
|
*/
|
|
1268
1294
|
function () {
|
|
@@ -1276,11 +1302,13 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1276
1302
|
/**
|
|
1277
1303
|
* If the amount of chips changed, we need to update the
|
|
1278
1304
|
* key manager state and focus the next closest chip.
|
|
1305
|
+
* @protected
|
|
1279
1306
|
* @return {?}
|
|
1280
1307
|
*/
|
|
1281
1308
|
MatChipList.prototype._updateFocusForDestroyedChips = /**
|
|
1282
1309
|
* If the amount of chips changed, we need to update the
|
|
1283
1310
|
* key manager state and focus the next closest chip.
|
|
1311
|
+
* @protected
|
|
1284
1312
|
* @return {?}
|
|
1285
1313
|
*/
|
|
1286
1314
|
function () {
|
|
@@ -1294,12 +1322,20 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1294
1322
|
/**
|
|
1295
1323
|
* Utility to ensure all indexes are valid.
|
|
1296
1324
|
*
|
|
1325
|
+
* @param index The index to be checked.
|
|
1326
|
+
* @returns True if the index is valid for our list of chips.
|
|
1327
|
+
*/
|
|
1328
|
+
/**
|
|
1329
|
+
* Utility to ensure all indexes are valid.
|
|
1330
|
+
*
|
|
1331
|
+
* @private
|
|
1297
1332
|
* @param {?} index The index to be checked.
|
|
1298
1333
|
* @return {?} True if the index is valid for our list of chips.
|
|
1299
1334
|
*/
|
|
1300
1335
|
MatChipList.prototype._isValidIndex = /**
|
|
1301
1336
|
* Utility to ensure all indexes are valid.
|
|
1302
1337
|
*
|
|
1338
|
+
* @private
|
|
1303
1339
|
* @param {?} index The index to be checked.
|
|
1304
1340
|
* @return {?} True if the index is valid for our list of chips.
|
|
1305
1341
|
*/
|
|
@@ -1307,17 +1343,19 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1307
1343
|
return index >= 0 && index < this.chips.length;
|
|
1308
1344
|
};
|
|
1309
1345
|
/**
|
|
1346
|
+
* @private
|
|
1310
1347
|
* @param {?} element
|
|
1311
1348
|
* @return {?}
|
|
1312
1349
|
*/
|
|
1313
1350
|
MatChipList.prototype._isInputEmpty = /**
|
|
1351
|
+
* @private
|
|
1314
1352
|
* @param {?} element
|
|
1315
1353
|
* @return {?}
|
|
1316
1354
|
*/
|
|
1317
1355
|
function (element) {
|
|
1318
1356
|
if (element && element.nodeName.toLowerCase() === 'input') {
|
|
1319
1357
|
/** @type {?} */
|
|
1320
|
-
var input = /** @type {?} */ (element);
|
|
1358
|
+
var input = (/** @type {?} */ (element));
|
|
1321
1359
|
return !input.value;
|
|
1322
1360
|
}
|
|
1323
1361
|
return false;
|
|
@@ -1355,12 +1393,18 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1355
1393
|
};
|
|
1356
1394
|
/**
|
|
1357
1395
|
* Finds and selects the chip based on its value.
|
|
1396
|
+
* @returns Chip that has the corresponding value.
|
|
1397
|
+
*/
|
|
1398
|
+
/**
|
|
1399
|
+
* Finds and selects the chip based on its value.
|
|
1400
|
+
* @private
|
|
1358
1401
|
* @param {?} value
|
|
1359
1402
|
* @param {?=} isUserInput
|
|
1360
1403
|
* @return {?} Chip that has the corresponding value.
|
|
1361
1404
|
*/
|
|
1362
1405
|
MatChipList.prototype._selectValue = /**
|
|
1363
1406
|
* Finds and selects the chip based on its value.
|
|
1407
|
+
* @private
|
|
1364
1408
|
* @param {?} value
|
|
1365
1409
|
* @param {?=} isUserInput
|
|
1366
1410
|
* @return {?} Chip that has the corresponding value.
|
|
@@ -1379,9 +1423,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1379
1423
|
return correspondingChip;
|
|
1380
1424
|
};
|
|
1381
1425
|
/**
|
|
1426
|
+
* @private
|
|
1382
1427
|
* @return {?}
|
|
1383
1428
|
*/
|
|
1384
1429
|
MatChipList.prototype._initializeSelection = /**
|
|
1430
|
+
* @private
|
|
1385
1431
|
* @return {?}
|
|
1386
1432
|
*/
|
|
1387
1433
|
function () {
|
|
@@ -1397,11 +1443,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1397
1443
|
};
|
|
1398
1444
|
/**
|
|
1399
1445
|
* Deselects every chip in the list.
|
|
1446
|
+
* @param skip Chip that should not be deselected.
|
|
1447
|
+
*/
|
|
1448
|
+
/**
|
|
1449
|
+
* Deselects every chip in the list.
|
|
1450
|
+
* @private
|
|
1400
1451
|
* @param {?=} skip Chip that should not be deselected.
|
|
1401
1452
|
* @return {?}
|
|
1402
1453
|
*/
|
|
1403
1454
|
MatChipList.prototype._clearSelection = /**
|
|
1404
1455
|
* Deselects every chip in the list.
|
|
1456
|
+
* @private
|
|
1405
1457
|
* @param {?=} skip Chip that should not be deselected.
|
|
1406
1458
|
* @return {?}
|
|
1407
1459
|
*/
|
|
@@ -1417,11 +1469,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1417
1469
|
/**
|
|
1418
1470
|
* Sorts the model values, ensuring that they keep the same
|
|
1419
1471
|
* order that they have in the panel.
|
|
1472
|
+
*/
|
|
1473
|
+
/**
|
|
1474
|
+
* Sorts the model values, ensuring that they keep the same
|
|
1475
|
+
* order that they have in the panel.
|
|
1476
|
+
* @private
|
|
1420
1477
|
* @return {?}
|
|
1421
1478
|
*/
|
|
1422
1479
|
MatChipList.prototype._sortValues = /**
|
|
1423
1480
|
* Sorts the model values, ensuring that they keep the same
|
|
1424
1481
|
* order that they have in the panel.
|
|
1482
|
+
* @private
|
|
1425
1483
|
* @return {?}
|
|
1426
1484
|
*/
|
|
1427
1485
|
function () {
|
|
@@ -1436,13 +1494,16 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1436
1494
|
this.stateChanges.next();
|
|
1437
1495
|
}
|
|
1438
1496
|
};
|
|
1497
|
+
/** Emits change event to set the model value. */
|
|
1439
1498
|
/**
|
|
1440
1499
|
* Emits change event to set the model value.
|
|
1500
|
+
* @private
|
|
1441
1501
|
* @param {?=} fallbackValue
|
|
1442
1502
|
* @return {?}
|
|
1443
1503
|
*/
|
|
1444
1504
|
MatChipList.prototype._propagateChanges = /**
|
|
1445
1505
|
* Emits change event to set the model value.
|
|
1506
|
+
* @private
|
|
1446
1507
|
* @param {?=} fallbackValue
|
|
1447
1508
|
* @return {?}
|
|
1448
1509
|
*/
|
|
@@ -1508,9 +1569,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1508
1569
|
this.stateChanges.next();
|
|
1509
1570
|
};
|
|
1510
1571
|
/**
|
|
1572
|
+
* @private
|
|
1511
1573
|
* @return {?}
|
|
1512
1574
|
*/
|
|
1513
1575
|
MatChipList.prototype._resetChips = /**
|
|
1576
|
+
* @private
|
|
1514
1577
|
* @return {?}
|
|
1515
1578
|
*/
|
|
1516
1579
|
function () {
|
|
@@ -1520,9 +1583,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1520
1583
|
this._listenToChipsRemoved();
|
|
1521
1584
|
};
|
|
1522
1585
|
/**
|
|
1586
|
+
* @private
|
|
1523
1587
|
* @return {?}
|
|
1524
1588
|
*/
|
|
1525
1589
|
MatChipList.prototype._dropSubscriptions = /**
|
|
1590
|
+
* @private
|
|
1526
1591
|
* @return {?}
|
|
1527
1592
|
*/
|
|
1528
1593
|
function () {
|
|
@@ -1543,12 +1608,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1543
1608
|
this._chipRemoveSubscription = null;
|
|
1544
1609
|
}
|
|
1545
1610
|
};
|
|
1611
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1546
1612
|
/**
|
|
1547
1613
|
* Listens to user-generated selection events on each chip.
|
|
1614
|
+
* @private
|
|
1548
1615
|
* @return {?}
|
|
1549
1616
|
*/
|
|
1550
1617
|
MatChipList.prototype._listenToChipsSelection = /**
|
|
1551
1618
|
* Listens to user-generated selection events on each chip.
|
|
1619
|
+
* @private
|
|
1552
1620
|
* @return {?}
|
|
1553
1621
|
*/
|
|
1554
1622
|
function () {
|
|
@@ -1570,12 +1638,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1570
1638
|
}
|
|
1571
1639
|
});
|
|
1572
1640
|
};
|
|
1641
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1573
1642
|
/**
|
|
1574
1643
|
* Listens to user-generated selection events on each chip.
|
|
1644
|
+
* @private
|
|
1575
1645
|
* @return {?}
|
|
1576
1646
|
*/
|
|
1577
1647
|
MatChipList.prototype._listenToChipsFocus = /**
|
|
1578
1648
|
* Listens to user-generated selection events on each chip.
|
|
1649
|
+
* @private
|
|
1579
1650
|
* @return {?}
|
|
1580
1651
|
*/
|
|
1581
1652
|
function () {
|
|
@@ -1594,9 +1665,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1594
1665
|
});
|
|
1595
1666
|
};
|
|
1596
1667
|
/**
|
|
1668
|
+
* @private
|
|
1597
1669
|
* @return {?}
|
|
1598
1670
|
*/
|
|
1599
1671
|
MatChipList.prototype._listenToChipsRemoved = /**
|
|
1672
|
+
* @private
|
|
1600
1673
|
* @return {?}
|
|
1601
1674
|
*/
|
|
1602
1675
|
function () {
|
|
@@ -1614,19 +1687,22 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1614
1687
|
}
|
|
1615
1688
|
});
|
|
1616
1689
|
};
|
|
1690
|
+
/** Checks whether an event comes from inside a chip element. */
|
|
1617
1691
|
/**
|
|
1618
1692
|
* Checks whether an event comes from inside a chip element.
|
|
1693
|
+
* @private
|
|
1619
1694
|
* @param {?} event
|
|
1620
1695
|
* @return {?}
|
|
1621
1696
|
*/
|
|
1622
1697
|
MatChipList.prototype._originatesFromChip = /**
|
|
1623
1698
|
* Checks whether an event comes from inside a chip element.
|
|
1699
|
+
* @private
|
|
1624
1700
|
* @param {?} event
|
|
1625
1701
|
* @return {?}
|
|
1626
1702
|
*/
|
|
1627
1703
|
function (event) {
|
|
1628
1704
|
/** @type {?} */
|
|
1629
|
-
var currentElement = /** @type {?} */ (event.target);
|
|
1705
|
+
var currentElement = (/** @type {?} */ (event.target));
|
|
1630
1706
|
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
1631
1707
|
if (currentElement.classList.contains('mat-chip')) {
|
|
1632
1708
|
return true;
|
|
@@ -1635,12 +1711,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1635
1711
|
}
|
|
1636
1712
|
return false;
|
|
1637
1713
|
};
|
|
1714
|
+
/** Checks whether any of the chips is focused. */
|
|
1638
1715
|
/**
|
|
1639
1716
|
* Checks whether any of the chips is focused.
|
|
1717
|
+
* @private
|
|
1640
1718
|
* @return {?}
|
|
1641
1719
|
*/
|
|
1642
1720
|
MatChipList.prototype._hasFocusedChip = /**
|
|
1643
1721
|
* Checks whether any of the chips is focused.
|
|
1722
|
+
* @private
|
|
1644
1723
|
* @return {?}
|
|
1645
1724
|
*/
|
|
1646
1725
|
function () {
|
|
@@ -1669,7 +1748,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1669
1748
|
'[id]': '_uid',
|
|
1670
1749
|
},
|
|
1671
1750
|
providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }],
|
|
1672
|
-
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;
|
|
1751
|
+
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}"],
|
|
1673
1752
|
encapsulation: ViewEncapsulation.None,
|
|
1674
1753
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1675
1754
|
},] },
|
|
@@ -1704,8 +1783,9 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1704
1783
|
|
|
1705
1784
|
/**
|
|
1706
1785
|
* @fileoverview added by tsickle
|
|
1707
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1786
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1708
1787
|
*/
|
|
1788
|
+
// Increasing integer for generating unique ids.
|
|
1709
1789
|
/** @type {?} */
|
|
1710
1790
|
var nextUniqueId$1 = 0;
|
|
1711
1791
|
/**
|
|
@@ -1740,7 +1820,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1740
1820
|
*/
|
|
1741
1821
|
this.id = "mat-chip-list-input-" + nextUniqueId$1++;
|
|
1742
1822
|
this._disabled = false;
|
|
1743
|
-
this._inputElement = /** @type {?} */ (this._elementRef.nativeElement);
|
|
1823
|
+
this._inputElement = (/** @type {?} */ (this._elementRef.nativeElement));
|
|
1744
1824
|
}
|
|
1745
1825
|
Object.defineProperty(MatChipInput.prototype, "chipList", {
|
|
1746
1826
|
/** Register input for chip list */
|
|
@@ -1868,7 +1948,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1868
1948
|
if (!this._inputElement.value && !!event) {
|
|
1869
1949
|
this._chipList._keydown(event);
|
|
1870
1950
|
}
|
|
1871
|
-
if (!event || this._isSeparatorKey(event
|
|
1951
|
+
if (!event || this._isSeparatorKey(event)) {
|
|
1872
1952
|
this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });
|
|
1873
1953
|
if (event) {
|
|
1874
1954
|
event.preventDefault();
|
|
@@ -1897,19 +1977,27 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1897
1977
|
function () {
|
|
1898
1978
|
this._inputElement.focus();
|
|
1899
1979
|
};
|
|
1980
|
+
/** Checks whether a keycode is one of the configured separators. */
|
|
1900
1981
|
/**
|
|
1901
1982
|
* Checks whether a keycode is one of the configured separators.
|
|
1902
|
-
* @
|
|
1983
|
+
* @private
|
|
1984
|
+
* @param {?} event
|
|
1903
1985
|
* @return {?}
|
|
1904
1986
|
*/
|
|
1905
1987
|
MatChipInput.prototype._isSeparatorKey = /**
|
|
1906
1988
|
* Checks whether a keycode is one of the configured separators.
|
|
1907
|
-
* @
|
|
1989
|
+
* @private
|
|
1990
|
+
* @param {?} event
|
|
1908
1991
|
* @return {?}
|
|
1909
1992
|
*/
|
|
1910
|
-
function (
|
|
1993
|
+
function (event) {
|
|
1994
|
+
if (hasModifierKey(event)) {
|
|
1995
|
+
return false;
|
|
1996
|
+
}
|
|
1911
1997
|
/** @type {?} */
|
|
1912
1998
|
var separators = this.separatorKeyCodes;
|
|
1999
|
+
/** @type {?} */
|
|
2000
|
+
var keyCode = event.keyCode;
|
|
1913
2001
|
return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);
|
|
1914
2002
|
};
|
|
1915
2003
|
MatChipInput.decorators = [
|
|
@@ -1948,7 +2036,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1948
2036
|
|
|
1949
2037
|
/**
|
|
1950
2038
|
* @fileoverview added by tsickle
|
|
1951
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2039
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1952
2040
|
*/
|
|
1953
2041
|
/** @type {?} */
|
|
1954
2042
|
var CHIP_DECLARATIONS = [
|
|
@@ -1959,9 +2047,9 @@ var CHIP_DECLARATIONS = [
|
|
|
1959
2047
|
MatChipAvatar,
|
|
1960
2048
|
MatChipTrailingIcon,
|
|
1961
2049
|
];
|
|
1962
|
-
var ɵ0 = {
|
|
2050
|
+
var ɵ0 = ({
|
|
1963
2051
|
separatorKeyCodes: [ENTER]
|
|
1964
|
-
};
|
|
2052
|
+
});
|
|
1965
2053
|
var MatChipsModule = /** @class */ (function () {
|
|
1966
2054
|
function MatChipsModule() {
|
|
1967
2055
|
}
|
|
@@ -1973,7 +2061,7 @@ var MatChipsModule = /** @class */ (function () {
|
|
|
1973
2061
|
ErrorStateMatcher,
|
|
1974
2062
|
{
|
|
1975
2063
|
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1976
|
-
useValue: /** @type {?} */ (
|
|
2064
|
+
useValue: (/** @type {?} */ (ɵ0))
|
|
1977
2065
|
}
|
|
1978
2066
|
]
|
|
1979
2067
|
},] },
|
|
@@ -1983,12 +2071,12 @@ var MatChipsModule = /** @class */ (function () {
|
|
|
1983
2071
|
|
|
1984
2072
|
/**
|
|
1985
2073
|
* @fileoverview added by tsickle
|
|
1986
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2074
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1987
2075
|
*/
|
|
1988
2076
|
|
|
1989
2077
|
/**
|
|
1990
2078
|
* @fileoverview added by tsickle
|
|
1991
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2079
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1992
2080
|
*/
|
|
1993
2081
|
|
|
1994
2082
|
export { MatChipsModule, MatChipListBase, _MatChipListMixinBase, MatChipListChange, MatChipList, MatChipSelectionChange, MatChipBase, _MatChipMixinBase, MatChipAvatar, MatChipTrailingIcon, MatChip, MatChipRemove, MatChipInput, MAT_CHIPS_DEFAULT_OPTIONS };
|