@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
|
@@ -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;
|
|
@@ -1040,7 +1049,10 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1040
1049
|
// it back to the first chip when the user tabs out.
|
|
1041
1050
|
this._keyManager.tabOut.pipe(operators.takeUntil(this._destroyed)).subscribe(function () {
|
|
1042
1051
|
_this._tabIndex = -1;
|
|
1043
|
-
setTimeout(function () {
|
|
1052
|
+
setTimeout(function () {
|
|
1053
|
+
_this._tabIndex = _this._userTabIndex || 0;
|
|
1054
|
+
_this._changeDetectorRef.markForCheck();
|
|
1055
|
+
});
|
|
1044
1056
|
});
|
|
1045
1057
|
// When the list changes, re-subscribe
|
|
1046
1058
|
this.chips.changes.pipe(operators.startWith(null), operators.takeUntil(this._destroyed)).subscribe(function () {
|
|
@@ -1122,11 +1134,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1122
1134
|
*/
|
|
1123
1135
|
function (ids) { this._ariaDescribedby = ids.join(' '); };
|
|
1124
1136
|
// Implemented as part of ControlValueAccessor.
|
|
1137
|
+
// Implemented as part of ControlValueAccessor.
|
|
1125
1138
|
/**
|
|
1126
1139
|
* @param {?} value
|
|
1127
1140
|
* @return {?}
|
|
1128
1141
|
*/
|
|
1129
|
-
MatChipList.prototype.writeValue =
|
|
1142
|
+
MatChipList.prototype.writeValue =
|
|
1143
|
+
// Implemented as part of ControlValueAccessor.
|
|
1144
|
+
/**
|
|
1130
1145
|
* @param {?} value
|
|
1131
1146
|
* @return {?}
|
|
1132
1147
|
*/
|
|
@@ -1136,11 +1151,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1136
1151
|
}
|
|
1137
1152
|
};
|
|
1138
1153
|
// Implemented as part of ControlValueAccessor.
|
|
1154
|
+
// Implemented as part of ControlValueAccessor.
|
|
1139
1155
|
/**
|
|
1140
1156
|
* @param {?} fn
|
|
1141
1157
|
* @return {?}
|
|
1142
1158
|
*/
|
|
1143
|
-
MatChipList.prototype.registerOnChange =
|
|
1159
|
+
MatChipList.prototype.registerOnChange =
|
|
1160
|
+
// Implemented as part of ControlValueAccessor.
|
|
1161
|
+
/**
|
|
1144
1162
|
* @param {?} fn
|
|
1145
1163
|
* @return {?}
|
|
1146
1164
|
*/
|
|
@@ -1148,11 +1166,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1148
1166
|
this._onChange = fn;
|
|
1149
1167
|
};
|
|
1150
1168
|
// Implemented as part of ControlValueAccessor.
|
|
1169
|
+
// Implemented as part of ControlValueAccessor.
|
|
1151
1170
|
/**
|
|
1152
1171
|
* @param {?} fn
|
|
1153
1172
|
* @return {?}
|
|
1154
1173
|
*/
|
|
1155
|
-
MatChipList.prototype.registerOnTouched =
|
|
1174
|
+
MatChipList.prototype.registerOnTouched =
|
|
1175
|
+
// Implemented as part of ControlValueAccessor.
|
|
1176
|
+
/**
|
|
1156
1177
|
* @param {?} fn
|
|
1157
1178
|
* @return {?}
|
|
1158
1179
|
*/
|
|
@@ -1160,11 +1181,14 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1160
1181
|
this._onTouched = fn;
|
|
1161
1182
|
};
|
|
1162
1183
|
// Implemented as part of ControlValueAccessor.
|
|
1184
|
+
// Implemented as part of ControlValueAccessor.
|
|
1163
1185
|
/**
|
|
1164
1186
|
* @param {?} isDisabled
|
|
1165
1187
|
* @return {?}
|
|
1166
1188
|
*/
|
|
1167
|
-
MatChipList.prototype.setDisabledState =
|
|
1189
|
+
MatChipList.prototype.setDisabledState =
|
|
1190
|
+
// Implemented as part of ControlValueAccessor.
|
|
1191
|
+
/**
|
|
1168
1192
|
* @param {?} isDisabled
|
|
1169
1193
|
* @return {?}
|
|
1170
1194
|
*/
|
|
@@ -1194,16 +1218,16 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1194
1218
|
}
|
|
1195
1219
|
};
|
|
1196
1220
|
/**
|
|
1197
|
-
* Focuses the
|
|
1221
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
1198
1222
|
* are no eligible chips.
|
|
1199
1223
|
*/
|
|
1200
1224
|
/**
|
|
1201
|
-
* Focuses the
|
|
1225
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
1202
1226
|
* are no eligible chips.
|
|
1203
1227
|
* @return {?}
|
|
1204
1228
|
*/
|
|
1205
1229
|
MatChipList.prototype.focus = /**
|
|
1206
|
-
* Focuses the
|
|
1230
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
1207
1231
|
* are no eligible chips.
|
|
1208
1232
|
* @return {?}
|
|
1209
1233
|
*/
|
|
@@ -1254,7 +1278,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1254
1278
|
*/
|
|
1255
1279
|
function (event) {
|
|
1256
1280
|
/** @type {?} */
|
|
1257
|
-
var target = /** @type {?} */ (event.target);
|
|
1281
|
+
var target = (/** @type {?} */ (event.target));
|
|
1258
1282
|
// If they are on an empty input and hit backspace, focus the last chip
|
|
1259
1283
|
if (event.keyCode === keycodes.BACKSPACE && this._isInputEmpty(target)) {
|
|
1260
1284
|
this._keyManager.setLastItemActive();
|
|
@@ -1280,10 +1304,12 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1280
1304
|
*/
|
|
1281
1305
|
/**
|
|
1282
1306
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1307
|
+
* @protected
|
|
1283
1308
|
* @return {?}
|
|
1284
1309
|
*/
|
|
1285
1310
|
MatChipList.prototype._updateTabIndex = /**
|
|
1286
1311
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
1312
|
+
* @protected
|
|
1287
1313
|
* @return {?}
|
|
1288
1314
|
*/
|
|
1289
1315
|
function () {
|
|
@@ -1297,11 +1323,13 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1297
1323
|
/**
|
|
1298
1324
|
* If the amount of chips changed, we need to update the
|
|
1299
1325
|
* key manager state and focus the next closest chip.
|
|
1326
|
+
* @protected
|
|
1300
1327
|
* @return {?}
|
|
1301
1328
|
*/
|
|
1302
1329
|
MatChipList.prototype._updateFocusForDestroyedChips = /**
|
|
1303
1330
|
* If the amount of chips changed, we need to update the
|
|
1304
1331
|
* key manager state and focus the next closest chip.
|
|
1332
|
+
* @protected
|
|
1305
1333
|
* @return {?}
|
|
1306
1334
|
*/
|
|
1307
1335
|
function () {
|
|
@@ -1315,12 +1343,20 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1315
1343
|
/**
|
|
1316
1344
|
* Utility to ensure all indexes are valid.
|
|
1317
1345
|
*
|
|
1346
|
+
* @param index The index to be checked.
|
|
1347
|
+
* @returns True if the index is valid for our list of chips.
|
|
1348
|
+
*/
|
|
1349
|
+
/**
|
|
1350
|
+
* Utility to ensure all indexes are valid.
|
|
1351
|
+
*
|
|
1352
|
+
* @private
|
|
1318
1353
|
* @param {?} index The index to be checked.
|
|
1319
1354
|
* @return {?} True if the index is valid for our list of chips.
|
|
1320
1355
|
*/
|
|
1321
1356
|
MatChipList.prototype._isValidIndex = /**
|
|
1322
1357
|
* Utility to ensure all indexes are valid.
|
|
1323
1358
|
*
|
|
1359
|
+
* @private
|
|
1324
1360
|
* @param {?} index The index to be checked.
|
|
1325
1361
|
* @return {?} True if the index is valid for our list of chips.
|
|
1326
1362
|
*/
|
|
@@ -1328,17 +1364,19 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1328
1364
|
return index >= 0 && index < this.chips.length;
|
|
1329
1365
|
};
|
|
1330
1366
|
/**
|
|
1367
|
+
* @private
|
|
1331
1368
|
* @param {?} element
|
|
1332
1369
|
* @return {?}
|
|
1333
1370
|
*/
|
|
1334
1371
|
MatChipList.prototype._isInputEmpty = /**
|
|
1372
|
+
* @private
|
|
1335
1373
|
* @param {?} element
|
|
1336
1374
|
* @return {?}
|
|
1337
1375
|
*/
|
|
1338
1376
|
function (element) {
|
|
1339
1377
|
if (element && element.nodeName.toLowerCase() === 'input') {
|
|
1340
1378
|
/** @type {?} */
|
|
1341
|
-
var input = /** @type {?} */ (element);
|
|
1379
|
+
var input = (/** @type {?} */ (element));
|
|
1342
1380
|
return !input.value;
|
|
1343
1381
|
}
|
|
1344
1382
|
return false;
|
|
@@ -1376,12 +1414,18 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1376
1414
|
};
|
|
1377
1415
|
/**
|
|
1378
1416
|
* Finds and selects the chip based on its value.
|
|
1417
|
+
* @returns Chip that has the corresponding value.
|
|
1418
|
+
*/
|
|
1419
|
+
/**
|
|
1420
|
+
* Finds and selects the chip based on its value.
|
|
1421
|
+
* @private
|
|
1379
1422
|
* @param {?} value
|
|
1380
1423
|
* @param {?=} isUserInput
|
|
1381
1424
|
* @return {?} Chip that has the corresponding value.
|
|
1382
1425
|
*/
|
|
1383
1426
|
MatChipList.prototype._selectValue = /**
|
|
1384
1427
|
* Finds and selects the chip based on its value.
|
|
1428
|
+
* @private
|
|
1385
1429
|
* @param {?} value
|
|
1386
1430
|
* @param {?=} isUserInput
|
|
1387
1431
|
* @return {?} Chip that has the corresponding value.
|
|
@@ -1400,9 +1444,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1400
1444
|
return correspondingChip;
|
|
1401
1445
|
};
|
|
1402
1446
|
/**
|
|
1447
|
+
* @private
|
|
1403
1448
|
* @return {?}
|
|
1404
1449
|
*/
|
|
1405
1450
|
MatChipList.prototype._initializeSelection = /**
|
|
1451
|
+
* @private
|
|
1406
1452
|
* @return {?}
|
|
1407
1453
|
*/
|
|
1408
1454
|
function () {
|
|
@@ -1418,11 +1464,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1418
1464
|
};
|
|
1419
1465
|
/**
|
|
1420
1466
|
* Deselects every chip in the list.
|
|
1467
|
+
* @param skip Chip that should not be deselected.
|
|
1468
|
+
*/
|
|
1469
|
+
/**
|
|
1470
|
+
* Deselects every chip in the list.
|
|
1471
|
+
* @private
|
|
1421
1472
|
* @param {?=} skip Chip that should not be deselected.
|
|
1422
1473
|
* @return {?}
|
|
1423
1474
|
*/
|
|
1424
1475
|
MatChipList.prototype._clearSelection = /**
|
|
1425
1476
|
* Deselects every chip in the list.
|
|
1477
|
+
* @private
|
|
1426
1478
|
* @param {?=} skip Chip that should not be deselected.
|
|
1427
1479
|
* @return {?}
|
|
1428
1480
|
*/
|
|
@@ -1438,11 +1490,17 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1438
1490
|
/**
|
|
1439
1491
|
* Sorts the model values, ensuring that they keep the same
|
|
1440
1492
|
* order that they have in the panel.
|
|
1493
|
+
*/
|
|
1494
|
+
/**
|
|
1495
|
+
* Sorts the model values, ensuring that they keep the same
|
|
1496
|
+
* order that they have in the panel.
|
|
1497
|
+
* @private
|
|
1441
1498
|
* @return {?}
|
|
1442
1499
|
*/
|
|
1443
1500
|
MatChipList.prototype._sortValues = /**
|
|
1444
1501
|
* Sorts the model values, ensuring that they keep the same
|
|
1445
1502
|
* order that they have in the panel.
|
|
1503
|
+
* @private
|
|
1446
1504
|
* @return {?}
|
|
1447
1505
|
*/
|
|
1448
1506
|
function () {
|
|
@@ -1457,13 +1515,16 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1457
1515
|
this.stateChanges.next();
|
|
1458
1516
|
}
|
|
1459
1517
|
};
|
|
1518
|
+
/** Emits change event to set the model value. */
|
|
1460
1519
|
/**
|
|
1461
1520
|
* Emits change event to set the model value.
|
|
1521
|
+
* @private
|
|
1462
1522
|
* @param {?=} fallbackValue
|
|
1463
1523
|
* @return {?}
|
|
1464
1524
|
*/
|
|
1465
1525
|
MatChipList.prototype._propagateChanges = /**
|
|
1466
1526
|
* Emits change event to set the model value.
|
|
1527
|
+
* @private
|
|
1467
1528
|
* @param {?=} fallbackValue
|
|
1468
1529
|
* @return {?}
|
|
1469
1530
|
*/
|
|
@@ -1529,9 +1590,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1529
1590
|
this.stateChanges.next();
|
|
1530
1591
|
};
|
|
1531
1592
|
/**
|
|
1593
|
+
* @private
|
|
1532
1594
|
* @return {?}
|
|
1533
1595
|
*/
|
|
1534
1596
|
MatChipList.prototype._resetChips = /**
|
|
1597
|
+
* @private
|
|
1535
1598
|
* @return {?}
|
|
1536
1599
|
*/
|
|
1537
1600
|
function () {
|
|
@@ -1541,9 +1604,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1541
1604
|
this._listenToChipsRemoved();
|
|
1542
1605
|
};
|
|
1543
1606
|
/**
|
|
1607
|
+
* @private
|
|
1544
1608
|
* @return {?}
|
|
1545
1609
|
*/
|
|
1546
1610
|
MatChipList.prototype._dropSubscriptions = /**
|
|
1611
|
+
* @private
|
|
1547
1612
|
* @return {?}
|
|
1548
1613
|
*/
|
|
1549
1614
|
function () {
|
|
@@ -1564,12 +1629,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1564
1629
|
this._chipRemoveSubscription = null;
|
|
1565
1630
|
}
|
|
1566
1631
|
};
|
|
1632
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1567
1633
|
/**
|
|
1568
1634
|
* Listens to user-generated selection events on each chip.
|
|
1635
|
+
* @private
|
|
1569
1636
|
* @return {?}
|
|
1570
1637
|
*/
|
|
1571
1638
|
MatChipList.prototype._listenToChipsSelection = /**
|
|
1572
1639
|
* Listens to user-generated selection events on each chip.
|
|
1640
|
+
* @private
|
|
1573
1641
|
* @return {?}
|
|
1574
1642
|
*/
|
|
1575
1643
|
function () {
|
|
@@ -1591,12 +1659,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1591
1659
|
}
|
|
1592
1660
|
});
|
|
1593
1661
|
};
|
|
1662
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1594
1663
|
/**
|
|
1595
1664
|
* Listens to user-generated selection events on each chip.
|
|
1665
|
+
* @private
|
|
1596
1666
|
* @return {?}
|
|
1597
1667
|
*/
|
|
1598
1668
|
MatChipList.prototype._listenToChipsFocus = /**
|
|
1599
1669
|
* Listens to user-generated selection events on each chip.
|
|
1670
|
+
* @private
|
|
1600
1671
|
* @return {?}
|
|
1601
1672
|
*/
|
|
1602
1673
|
function () {
|
|
@@ -1615,9 +1686,11 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1615
1686
|
});
|
|
1616
1687
|
};
|
|
1617
1688
|
/**
|
|
1689
|
+
* @private
|
|
1618
1690
|
* @return {?}
|
|
1619
1691
|
*/
|
|
1620
1692
|
MatChipList.prototype._listenToChipsRemoved = /**
|
|
1693
|
+
* @private
|
|
1621
1694
|
* @return {?}
|
|
1622
1695
|
*/
|
|
1623
1696
|
function () {
|
|
@@ -1635,19 +1708,22 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1635
1708
|
}
|
|
1636
1709
|
});
|
|
1637
1710
|
};
|
|
1711
|
+
/** Checks whether an event comes from inside a chip element. */
|
|
1638
1712
|
/**
|
|
1639
1713
|
* Checks whether an event comes from inside a chip element.
|
|
1714
|
+
* @private
|
|
1640
1715
|
* @param {?} event
|
|
1641
1716
|
* @return {?}
|
|
1642
1717
|
*/
|
|
1643
1718
|
MatChipList.prototype._originatesFromChip = /**
|
|
1644
1719
|
* Checks whether an event comes from inside a chip element.
|
|
1720
|
+
* @private
|
|
1645
1721
|
* @param {?} event
|
|
1646
1722
|
* @return {?}
|
|
1647
1723
|
*/
|
|
1648
1724
|
function (event) {
|
|
1649
1725
|
/** @type {?} */
|
|
1650
|
-
var currentElement = /** @type {?} */ (event.target);
|
|
1726
|
+
var currentElement = (/** @type {?} */ (event.target));
|
|
1651
1727
|
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
1652
1728
|
if (currentElement.classList.contains('mat-chip')) {
|
|
1653
1729
|
return true;
|
|
@@ -1656,12 +1732,15 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1656
1732
|
}
|
|
1657
1733
|
return false;
|
|
1658
1734
|
};
|
|
1735
|
+
/** Checks whether any of the chips is focused. */
|
|
1659
1736
|
/**
|
|
1660
1737
|
* Checks whether any of the chips is focused.
|
|
1738
|
+
* @private
|
|
1661
1739
|
* @return {?}
|
|
1662
1740
|
*/
|
|
1663
1741
|
MatChipList.prototype._hasFocusedChip = /**
|
|
1664
1742
|
* Checks whether any of the chips is focused.
|
|
1743
|
+
* @private
|
|
1665
1744
|
* @return {?}
|
|
1666
1745
|
*/
|
|
1667
1746
|
function () {
|
|
@@ -1690,7 +1769,7 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1690
1769
|
'[id]': '_uid',
|
|
1691
1770
|
},
|
|
1692
1771
|
providers: [{ provide: formField.MatFormFieldControl, useExisting: MatChipList }],
|
|
1693
|
-
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;
|
|
1772
|
+
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}"],
|
|
1694
1773
|
encapsulation: core.ViewEncapsulation.None,
|
|
1695
1774
|
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
1696
1775
|
},] },
|
|
@@ -1725,8 +1804,9 @@ var MatChipList = /** @class */ (function (_super) {
|
|
|
1725
1804
|
|
|
1726
1805
|
/**
|
|
1727
1806
|
* @fileoverview added by tsickle
|
|
1728
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
1807
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1729
1808
|
*/
|
|
1809
|
+
// Increasing integer for generating unique ids.
|
|
1730
1810
|
/** @type {?} */
|
|
1731
1811
|
var nextUniqueId$1 = 0;
|
|
1732
1812
|
/**
|
|
@@ -1761,7 +1841,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1761
1841
|
*/
|
|
1762
1842
|
this.id = "mat-chip-list-input-" + nextUniqueId$1++;
|
|
1763
1843
|
this._disabled = false;
|
|
1764
|
-
this._inputElement = /** @type {?} */ (this._elementRef.nativeElement);
|
|
1844
|
+
this._inputElement = (/** @type {?} */ (this._elementRef.nativeElement));
|
|
1765
1845
|
}
|
|
1766
1846
|
Object.defineProperty(MatChipInput.prototype, "chipList", {
|
|
1767
1847
|
/** Register input for chip list */
|
|
@@ -1889,7 +1969,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1889
1969
|
if (!this._inputElement.value && !!event) {
|
|
1890
1970
|
this._chipList._keydown(event);
|
|
1891
1971
|
}
|
|
1892
|
-
if (!event || this._isSeparatorKey(event
|
|
1972
|
+
if (!event || this._isSeparatorKey(event)) {
|
|
1893
1973
|
this.chipEnd.emit({ input: this._inputElement, value: this._inputElement.value });
|
|
1894
1974
|
if (event) {
|
|
1895
1975
|
event.preventDefault();
|
|
@@ -1918,19 +1998,27 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1918
1998
|
function () {
|
|
1919
1999
|
this._inputElement.focus();
|
|
1920
2000
|
};
|
|
2001
|
+
/** Checks whether a keycode is one of the configured separators. */
|
|
1921
2002
|
/**
|
|
1922
2003
|
* Checks whether a keycode is one of the configured separators.
|
|
1923
|
-
* @
|
|
2004
|
+
* @private
|
|
2005
|
+
* @param {?} event
|
|
1924
2006
|
* @return {?}
|
|
1925
2007
|
*/
|
|
1926
2008
|
MatChipInput.prototype._isSeparatorKey = /**
|
|
1927
2009
|
* Checks whether a keycode is one of the configured separators.
|
|
1928
|
-
* @
|
|
2010
|
+
* @private
|
|
2011
|
+
* @param {?} event
|
|
1929
2012
|
* @return {?}
|
|
1930
2013
|
*/
|
|
1931
|
-
function (
|
|
2014
|
+
function (event) {
|
|
2015
|
+
if (keycodes.hasModifierKey(event)) {
|
|
2016
|
+
return false;
|
|
2017
|
+
}
|
|
1932
2018
|
/** @type {?} */
|
|
1933
2019
|
var separators = this.separatorKeyCodes;
|
|
2020
|
+
/** @type {?} */
|
|
2021
|
+
var keyCode = event.keyCode;
|
|
1934
2022
|
return Array.isArray(separators) ? separators.indexOf(keyCode) > -1 : separators.has(keyCode);
|
|
1935
2023
|
};
|
|
1936
2024
|
MatChipInput.decorators = [
|
|
@@ -1969,7 +2057,7 @@ var MatChipInput = /** @class */ (function () {
|
|
|
1969
2057
|
|
|
1970
2058
|
/**
|
|
1971
2059
|
* @fileoverview added by tsickle
|
|
1972
|
-
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
|
|
2060
|
+
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1973
2061
|
*/
|
|
1974
2062
|
/** @type {?} */
|
|
1975
2063
|
var CHIP_DECLARATIONS = [
|
|
@@ -1980,9 +2068,9 @@ var CHIP_DECLARATIONS = [
|
|
|
1980
2068
|
MatChipAvatar,
|
|
1981
2069
|
MatChipTrailingIcon,
|
|
1982
2070
|
];
|
|
1983
|
-
var ɵ0 = {
|
|
2071
|
+
var ɵ0 = ({
|
|
1984
2072
|
separatorKeyCodes: [keycodes.ENTER]
|
|
1985
|
-
};
|
|
2073
|
+
});
|
|
1986
2074
|
var MatChipsModule = /** @class */ (function () {
|
|
1987
2075
|
function MatChipsModule() {
|
|
1988
2076
|
}
|
|
@@ -1994,7 +2082,7 @@ var MatChipsModule = /** @class */ (function () {
|
|
|
1994
2082
|
core$1.ErrorStateMatcher,
|
|
1995
2083
|
{
|
|
1996
2084
|
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1997
|
-
useValue: /** @type {?} */ (
|
|
2085
|
+
useValue: (/** @type {?} */ (ɵ0))
|
|
1998
2086
|
}
|
|
1999
2087
|
]
|
|
2000
2088
|
},] },
|