@angular/material 13.0.0-next.4 → 13.0.0-next.8
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/autocomplete/autocomplete-module.d.ts +11 -7
- package/autocomplete/autocomplete-origin.d.ts +5 -0
- package/autocomplete/autocomplete-trigger.d.ts +5 -0
- package/autocomplete/autocomplete.d.ts +6 -1
- package/autocomplete/package.json +5 -5
- package/autocomplete/testing/package.json +5 -5
- package/badge/badge-module.d.ts +7 -7
- package/badge/badge.d.ts +19 -15
- package/badge/package.json +5 -5
- package/badge/testing/package.json +5 -5
- package/bottom-sheet/bottom-sheet-container.d.ts +6 -3
- package/bottom-sheet/bottom-sheet-module.d.ts +8 -7
- package/bottom-sheet/bottom-sheet.d.ts +3 -7
- package/bottom-sheet/package.json +5 -5
- package/bottom-sheet/testing/package.json +5 -5
- package/button/button-module.d.ts +6 -7
- package/button/button.d.ts +6 -1
- package/button/package.json +5 -5
- package/button/testing/package.json +5 -5
- package/button-toggle/button-toggle-module.d.ts +6 -7
- package/button-toggle/button-toggle.d.ts +6 -1
- package/button-toggle/package.json +5 -5
- package/button-toggle/testing/package.json +5 -5
- package/card/card-module.d.ts +6 -7
- package/card/card.d.ts +29 -7
- package/card/package.json +5 -5
- package/card/testing/package.json +5 -5
- package/checkbox/checkbox-module.d.ts +11 -7
- package/checkbox/checkbox-required-validator.d.ts +3 -0
- package/checkbox/checkbox.d.ts +4 -1
- package/checkbox/package.json +5 -5
- package/checkbox/testing/package.json +5 -5
- package/chips/chip-input.d.ts +3 -0
- package/chips/chip-list.d.ts +4 -1
- package/chips/chip.d.ts +10 -1
- package/chips/chips-module.d.ts +8 -7
- package/chips/package.json +5 -5
- package/chips/testing/package.json +5 -5
- package/core/common-behaviors/color.d.ts +2 -6
- package/core/common-behaviors/common-module.d.ts +5 -4
- package/core/common-behaviors/disable-ripple.d.ts +2 -6
- package/core/common-behaviors/disabled.d.ts +2 -6
- package/core/common-behaviors/error-state.d.ts +2 -6
- package/core/common-behaviors/index.d.ts +7 -6
- package/core/common-behaviors/initialized.d.ts +2 -6
- package/core/common-behaviors/tabindex.d.ts +2 -6
- package/core/datetime/index.d.ts +8 -7
- package/core/datetime/native-date-adapter.d.ts +3 -0
- package/core/error/error-options.d.ts +5 -7
- package/core/index.d.ts +0 -1
- package/core/line/line.d.ts +7 -0
- package/core/option/index.d.ts +10 -7
- package/core/option/optgroup.d.ts +6 -1
- package/core/option/option.d.ts +5 -0
- package/core/package.json +5 -5
- package/core/ripple/index.d.ts +7 -7
- package/core/ripple/ripple.d.ts +3 -0
- package/core/selection/index.d.ts +6 -7
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -7
- package/core/testing/package.json +5 -5
- package/core/typography/_typography.scss +7 -2
- package/datepicker/_datepicker-theme.scss +1 -4
- package/datepicker/calendar-body.d.ts +3 -0
- package/datepicker/calendar.d.ts +5 -0
- package/datepicker/date-range-input-parts.d.ts +8 -1
- package/datepicker/date-range-input.d.ts +3 -0
- package/datepicker/date-range-picker.d.ts +3 -7
- package/datepicker/date-range-selection-strategy.d.ts +3 -0
- package/datepicker/date-selection-model.d.ts +7 -0
- package/datepicker/datepicker-actions.d.ts +7 -0
- package/datepicker/datepicker-base.d.ts +7 -12
- package/datepicker/datepicker-input-base.d.ts +3 -0
- package/datepicker/datepicker-input.d.ts +3 -0
- package/datepicker/datepicker-intl.d.ts +3 -7
- package/datepicker/datepicker-module.d.ts +24 -7
- package/datepicker/datepicker-toggle.d.ts +5 -0
- package/datepicker/datepicker.d.ts +3 -7
- package/datepicker/index.d.ts +0 -4
- package/datepicker/month-view.d.ts +3 -7
- package/datepicker/multi-year-view.d.ts +3 -7
- package/datepicker/package.json +5 -5
- package/datepicker/testing/package.json +5 -5
- package/datepicker/year-view.d.ts +3 -7
- package/dialog/dialog-container.d.ts +5 -0
- package/dialog/dialog-content-directives.d.ts +9 -0
- package/dialog/dialog-module.d.ts +9 -7
- package/dialog/dialog.d.ts +5 -7
- package/dialog/package.json +5 -5
- package/dialog/testing/dialog-harness.d.ts +14 -11
- package/dialog/testing/package.json +5 -5
- package/divider/divider-module.d.ts +6 -7
- package/divider/divider.d.ts +3 -7
- package/divider/package.json +5 -5
- package/divider/testing/package.json +5 -5
- package/esm2020/autocomplete/autocomplete-module.mjs +58 -0
- package/esm2020/autocomplete/autocomplete-origin.mjs +38 -0
- package/esm2020/autocomplete/autocomplete-trigger.mjs +651 -0
- package/esm2020/autocomplete/autocomplete.mjs +216 -0
- package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
- package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
- package/{esm2015/autocomplete/testing/autocomplete-harness-filters.js → esm2020/autocomplete/testing/autocomplete-harness-filters.mjs} +0 -0
- package/esm2020/autocomplete/testing/autocomplete-harness.mjs +101 -0
- package/{esm2015/autocomplete/testing/index.js → esm2020/autocomplete/testing/index.mjs} +0 -0
- package/{esm2015/autocomplete/testing/public-api.js → esm2020/autocomplete/testing/public-api.mjs} +0 -0
- package/esm2020/badge/badge-module.mjs +33 -0
- package/esm2020/badge/badge.mjs +228 -0
- package/{esm2015/badge/index.js → esm2020/badge/index.mjs} +0 -0
- package/{esm2015/badge/public-api.js → esm2020/badge/public-api.mjs} +0 -0
- package/{esm2015/badge/testing/badge-harness-filters.js → esm2020/badge/testing/badge-harness-filters.mjs} +0 -0
- package/esm2020/badge/testing/badge-harness.mjs +72 -0
- package/{esm2015/badge/testing/index.js → esm2020/badge/testing/index.mjs} +0 -0
- package/{esm2015/badge/testing/public-api.js → esm2020/badge/testing/public-api.mjs} +0 -0
- package/{esm2015/bottom-sheet/bottom-sheet-animations.js → esm2020/bottom-sheet/bottom-sheet-animations.mjs} +0 -0
- package/{esm2015/bottom-sheet/bottom-sheet-config.js → esm2020/bottom-sheet/bottom-sheet-config.mjs} +0 -0
- package/esm2020/bottom-sheet/bottom-sheet-container.mjs +230 -0
- package/esm2020/bottom-sheet/bottom-sheet-module.mjs +38 -0
- package/esm2020/bottom-sheet/bottom-sheet-ref.mjs +91 -0
- package/esm2020/bottom-sheet/bottom-sheet.mjs +172 -0
- package/{esm2015/bottom-sheet/index.js → esm2020/bottom-sheet/index.mjs} +0 -0
- package/{esm2015/bottom-sheet/public-api.js → esm2020/bottom-sheet/public-api.mjs} +0 -0
- package/{esm2015/bottom-sheet/testing/bottom-sheet-harness-filters.js → esm2020/bottom-sheet/testing/bottom-sheet-harness-filters.mjs} +0 -0
- package/esm2020/bottom-sheet/testing/bottom-sheet-harness.mjs +35 -0
- package/{esm2015/bottom-sheet/testing/index.js → esm2020/bottom-sheet/testing/index.mjs} +0 -0
- package/{esm2015/bottom-sheet/testing/public-api.js → esm2020/bottom-sheet/testing/public-api.mjs} +0 -0
- package/esm2020/button/button-module.mjs +42 -0
- package/esm2020/button/button.mjs +153 -0
- package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
- package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
- package/{esm2015/button/testing/button-harness-filters.js → esm2020/button/testing/button-harness-filters.mjs} +0 -0
- package/esm2020/button/testing/button-harness.mjs +51 -0
- package/{esm2015/button/testing/index.js → esm2020/button/testing/index.mjs} +0 -0
- package/{esm2015/button/testing/public-api.js → esm2020/button/testing/public-api.mjs} +0 -0
- package/esm2020/button-toggle/button-toggle-module.mjs +25 -0
- package/esm2020/button-toggle/button-toggle.mjs +470 -0
- package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
- package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
- package/{esm2015/button-toggle/testing/button-toggle-group-harness-filters.js → esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs} +0 -0
- package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +45 -0
- package/{esm2015/button-toggle/testing/button-toggle-harness-filters.js → esm2020/button-toggle/testing/button-toggle-harness-filters.mjs} +0 -0
- package/esm2020/button-toggle/testing/button-toggle-harness.mjs +98 -0
- package/{esm2015/button-toggle/testing/index.js → esm2020/button-toggle/testing/index.mjs} +0 -0
- package/{esm2015/button-toggle/testing/public-api.js → esm2020/button-toggle/testing/public-api.mjs} +0 -0
- package/esm2020/card/card-module.mjs +61 -0
- package/esm2020/card/card.mjs +247 -0
- package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
- package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
- package/{esm2015/card/testing/card-harness-filters.js → esm2020/card/testing/card-harness-filters.mjs} +0 -0
- package/esm2020/card/testing/card-harness.mjs +43 -0
- package/{esm2015/card/testing/index.js → esm2020/card/testing/index.mjs} +0 -0
- package/{esm2015/card/testing/public-api.js → esm2020/card/testing/public-api.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
- package/esm2020/checkbox/checkbox-module.mjs +46 -0
- package/esm2020/checkbox/checkbox-required-validator.mjs +33 -0
- package/esm2020/checkbox/checkbox.mjs +403 -0
- package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
- package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
- package/{esm2015/checkbox/testing/checkbox-harness-filters.js → esm2020/checkbox/testing/checkbox-harness-filters.mjs} +0 -0
- package/esm2020/checkbox/testing/checkbox-harness.mjs +123 -0
- package/{esm2015/checkbox/testing/index.js → esm2020/checkbox/testing/index.mjs} +0 -0
- package/{esm2015/checkbox/testing/public-api.js → esm2020/checkbox/testing/public-api.mjs} +0 -0
- package/{esm2015/chips/chip-default-options.js → esm2020/chips/chip-default-options.mjs} +0 -0
- package/esm2020/chips/chip-input.mjs +192 -0
- package/esm2020/chips/chip-list.mjs +673 -0
- package/{esm2015/chips/chip-text-control.js → esm2020/chips/chip-text-control.mjs} +0 -0
- package/esm2020/chips/chip.mjs +415 -0
- package/esm2020/chips/chips-module.mjs +64 -0
- package/{esm2015/chips/index.js → esm2020/chips/index.mjs} +0 -0
- package/{esm2015/chips/public-api.js → esm2020/chips/public-api.mjs} +0 -0
- package/{esm2015/chips/testing/chip-avatar-harness.js → esm2020/chips/testing/chip-avatar-harness.mjs} +0 -0
- package/{esm2015/chips/testing/chip-harness-filters.js → esm2020/chips/testing/chip-harness-filters.mjs} +0 -0
- package/esm2020/chips/testing/chip-harness.mjs +91 -0
- package/esm2020/chips/testing/chip-input-harness.mjs +82 -0
- package/esm2020/chips/testing/chip-list-harness.mjs +82 -0
- package/esm2020/chips/testing/chip-listbox-harness.mjs +44 -0
- package/esm2020/chips/testing/chip-option-harness.mjs +45 -0
- package/esm2020/chips/testing/chip-remove-harness.mjs +26 -0
- package/{esm2015/chips/testing/index.js → esm2020/chips/testing/index.mjs} +0 -0
- package/{esm2015/chips/testing/public-api.js → esm2020/chips/testing/public-api.mjs} +0 -0
- package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
- package/esm2020/core/common-behaviors/color.mjs +31 -0
- package/esm2020/core/common-behaviors/common-module.mjs +122 -0
- package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
- package/esm2020/core/common-behaviors/disable-ripple.mjs +20 -0
- package/esm2020/core/common-behaviors/disabled.mjs +19 -0
- package/esm2020/core/common-behaviors/error-state.mjs +36 -0
- package/esm2020/core/common-behaviors/index.mjs +15 -0
- package/esm2020/core/common-behaviors/initialized.mjs +58 -0
- package/esm2020/core/common-behaviors/tabindex.mjs +23 -0
- package/{esm2015/core/datetime/date-adapter.js → esm2020/core/datetime/date-adapter.mjs} +0 -0
- package/{esm2015/core/datetime/date-formats.js → esm2020/core/datetime/date-formats.mjs} +0 -0
- package/esm2020/core/datetime/index.mjs +47 -0
- package/esm2020/core/datetime/native-date-adapter.mjs +218 -0
- package/{esm2015/core/datetime/native-date-formats.js → esm2020/core/datetime/native-date-formats.mjs} +0 -0
- package/esm2020/core/error/error-options.mjs +33 -0
- package/esm2020/core/index.mjs +5 -0
- package/esm2020/core/line/line.mjs +64 -0
- package/esm2020/core/option/index.mjs +32 -0
- package/esm2020/core/option/optgroup.mjs +73 -0
- package/{esm2015/core/option/option-parent.js → esm2020/core/option/option-parent.mjs} +0 -0
- package/esm2020/core/option/option.mjs +276 -0
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
- package/esm2020/core/ripple/index.mjs +29 -0
- package/{esm2015/core/ripple/ripple-ref.js → esm2020/core/ripple/ripple-ref.mjs} +0 -0
- package/esm2020/core/ripple/ripple-renderer.mjs +261 -0
- package/esm2020/core/ripple/ripple.mjs +152 -0
- package/esm2020/core/selection/index.mjs +26 -0
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +54 -0
- package/{esm2015/core/testing/index.js → esm2020/core/testing/index.mjs} +0 -0
- package/{esm2015/core/testing/optgroup-harness-filters.js → esm2020/core/testing/optgroup-harness-filters.mjs} +0 -0
- package/esm2020/core/testing/optgroup-harness.mjs +44 -0
- package/{esm2015/core/testing/option-harness-filters.js → esm2020/core/testing/option-harness-filters.mjs} +0 -0
- package/esm2020/core/testing/option-harness.mjs +54 -0
- package/{esm2015/core/testing/public-api.js → esm2020/core/testing/public-api.mjs} +0 -0
- package/esm2020/core/version.mjs +11 -0
- package/esm2020/datepicker/calendar-body.mjs +298 -0
- package/esm2020/datepicker/calendar.mjs +354 -0
- package/esm2020/datepicker/date-range-input-parts.mjs +342 -0
- package/esm2020/datepicker/date-range-input.mjs +331 -0
- package/esm2020/datepicker/date-range-picker.mjs +48 -0
- package/esm2020/datepicker/date-range-selection-strategy.mjs +59 -0
- package/esm2020/datepicker/date-selection-model.mjs +187 -0
- package/esm2020/datepicker/datepicker-actions.mjs +89 -0
- package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
- package/esm2020/datepicker/datepicker-base.mjs +549 -0
- package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
- package/esm2020/datepicker/datepicker-input-base.mjs +298 -0
- package/esm2020/datepicker/datepicker-input.mjs +183 -0
- package/esm2020/datepicker/datepicker-intl.mjs +53 -0
- package/esm2020/datepicker/datepicker-module.mjs +148 -0
- package/esm2020/datepicker/datepicker-toggle.mjs +113 -0
- package/esm2020/datepicker/datepicker.mjs +37 -0
- package/esm2020/datepicker/index.mjs +5 -0
- package/esm2020/datepicker/month-view.mjs +364 -0
- package/esm2020/datepicker/multi-year-view.mjs +289 -0
- package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
- package/esm2020/datepicker/testing/calendar-cell-harness.mjs +138 -0
- package/esm2020/datepicker/testing/calendar-harness.mjs +76 -0
- package/esm2020/datepicker/testing/date-range-input-harness.mjs +99 -0
- package/{esm2015/datepicker/testing/datepicker-harness-filters.js → esm2020/datepicker/testing/datepicker-harness-filters.mjs} +0 -0
- package/esm2020/datepicker/testing/datepicker-input-harness-base.mjs +81 -0
- package/esm2020/datepicker/testing/datepicker-input-harness.mjs +58 -0
- package/esm2020/datepicker/testing/datepicker-toggle-harness.mjs +41 -0
- package/esm2020/datepicker/testing/datepicker-trigger-harness-base.mjs +65 -0
- package/{esm2015/datepicker/testing/index.js → esm2020/datepicker/testing/index.mjs} +0 -0
- package/{esm2015/datepicker/testing/public-api.js → esm2020/datepicker/testing/public-api.mjs} +0 -0
- package/esm2020/datepicker/year-view.mjs +281 -0
- package/{esm2015/dialog/dialog-animations.js → esm2020/dialog/dialog-animations.mjs} +0 -0
- package/{esm2015/dialog/dialog-config.js → esm2020/dialog/dialog-config.mjs} +0 -0
- package/esm2020/dialog/dialog-container.mjs +282 -0
- package/esm2020/dialog/dialog-content-directives.mjs +172 -0
- package/esm2020/dialog/dialog-module.mjs +69 -0
- package/esm2020/dialog/dialog-ref.mjs +196 -0
- package/esm2020/dialog/dialog.mjs +358 -0
- package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
- package/{esm2015/dialog/public-api.js → esm2020/dialog/public-api.mjs} +0 -0
- package/{esm2015/dialog/testing/dialog-harness-filters.js → esm2020/dialog/testing/dialog-harness-filters.mjs} +0 -0
- package/esm2020/dialog/testing/dialog-harness.mjs +83 -0
- package/{esm2015/dialog/testing/index.js → esm2020/dialog/testing/index.mjs} +0 -0
- package/{esm2015/dialog/testing/public-api.js → esm2020/dialog/testing/public-api.mjs} +0 -0
- package/esm2020/divider/divider-module.mjs +25 -0
- package/esm2020/divider/divider.mjs +40 -0
- package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
- package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
- package/{esm2015/divider/testing/divider-harness-filters.js → esm2020/divider/testing/divider-harness-filters.mjs} +0 -0
- package/esm2020/divider/testing/divider-harness.mjs +22 -0
- package/{esm2015/divider/testing/index.js → esm2020/divider/testing/index.mjs} +0 -0
- package/{esm2015/divider/testing/public-api.js → esm2020/divider/testing/public-api.mjs} +0 -0
- package/{esm2015/expansion/accordion-base.js → esm2020/expansion/accordion-base.mjs} +0 -0
- package/esm2020/expansion/accordion.mjs +93 -0
- package/{esm2015/expansion/expansion-animations.js → esm2020/expansion/expansion-animations.mjs} +0 -0
- package/esm2020/expansion/expansion-module.mjs +59 -0
- package/esm2020/expansion/expansion-panel-content.mjs +27 -0
- package/esm2020/expansion/expansion-panel-header.mjs +226 -0
- package/esm2020/expansion/expansion-panel.mjs +195 -0
- package/{esm2015/expansion/index.js → esm2020/expansion/index.mjs} +0 -0
- package/{esm2015/expansion/public-api.js → esm2020/expansion/public-api.mjs} +0 -0
- package/esm2020/expansion/testing/accordion-harness.mjs +31 -0
- package/{esm2015/expansion/testing/expansion-harness-filters.js → esm2020/expansion/testing/expansion-harness-filters.mjs} +0 -0
- package/esm2020/expansion/testing/expansion-harness.mjs +120 -0
- package/{esm2015/expansion/testing/index.js → esm2020/expansion/testing/index.mjs} +0 -0
- package/{esm2015/expansion/testing/public-api.js → esm2020/expansion/testing/public-api.mjs} +0 -0
- package/esm2020/form-field/error.mjs +47 -0
- package/{esm2015/form-field/form-field-animations.js → esm2020/form-field/form-field-animations.mjs} +0 -0
- package/esm2020/form-field/form-field-control.mjs +11 -0
- package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/form-field/form-field-module.mjs +73 -0
- package/esm2020/form-field/form-field.mjs +510 -0
- package/esm2020/form-field/hint.mjs +49 -0
- package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
- package/esm2020/form-field/label.mjs +21 -0
- package/esm2020/form-field/placeholder.mjs +26 -0
- package/esm2020/form-field/prefix.mjs +28 -0
- package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
- package/esm2020/form-field/suffix.mjs +28 -0
- package/{esm2015/form-field/testing/control/form-field-control-harness.js → esm2020/form-field/testing/control/form-field-control-harness.mjs} +0 -0
- package/{esm2015/form-field/testing/control/index.js → esm2020/form-field/testing/control/index.mjs} +0 -0
- package/{esm2015/form-field/testing/form-field-harness-filters.js → esm2020/form-field/testing/form-field-harness-filters.mjs} +0 -0
- package/esm2020/form-field/testing/form-field-harness.mjs +181 -0
- package/{esm2015/form-field/testing/index.js → esm2020/form-field/testing/index.mjs} +0 -0
- package/{esm2015/form-field/testing/public-api.js → esm2020/form-field/testing/public-api.mjs} +0 -0
- package/{esm2015/grid-list/grid-list-base.js → esm2020/grid-list/grid-list-base.mjs} +0 -0
- package/esm2020/grid-list/grid-list-module.mjs +55 -0
- package/esm2020/grid-list/grid-list.mjs +135 -0
- package/esm2020/grid-list/grid-tile.mjs +117 -0
- package/esm2020/grid-list/index.mjs +5 -0
- package/{esm2015/grid-list/public-api.js → esm2020/grid-list/public-api.mjs} +0 -0
- package/{esm2015/grid-list/testing/grid-list-harness-filters.js → esm2020/grid-list/testing/grid-list-harness-filters.mjs} +0 -0
- package/esm2020/grid-list/testing/grid-list-harness.mjs +72 -0
- package/esm2020/grid-list/testing/grid-tile-harness.mjs +65 -0
- package/{esm2015/grid-list/testing/index.js → esm2020/grid-list/testing/index.mjs} +0 -0
- package/{esm2015/grid-list/testing/public-api.js → esm2020/grid-list/testing/public-api.mjs} +0 -0
- package/{esm2015/grid-list/tile-coordinator.js → esm2020/grid-list/tile-coordinator.mjs} +0 -0
- package/{esm2015/grid-list/tile-styler.js → esm2020/grid-list/tile-styler.mjs} +0 -0
- package/{esm2015/icon/fake-svgs.js → esm2020/icon/fake-svgs.mjs} +0 -0
- package/esm2020/icon/icon-module.mjs +25 -0
- package/esm2020/icon/icon-registry.mjs +582 -0
- package/esm2020/icon/icon.mjs +357 -0
- package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
- package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
- package/esm2020/icon/testing/fake-icon-registry.mjs +92 -0
- package/{esm2015/icon/testing/icon-harness-filters.js → esm2020/icon/testing/icon-harness-filters.mjs} +0 -0
- package/esm2020/icon/testing/icon-harness.mjs +54 -0
- package/{esm2015/icon/testing/index.js → esm2020/icon/testing/index.mjs} +0 -0
- package/{esm2015/icon/testing/public-api.js → esm2020/icon/testing/public-api.mjs} +0 -0
- package/esm2020/icon/trusted-types.mjs +43 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
- package/esm2020/input/input-module.mjs +51 -0
- package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
- package/esm2020/input/input.mjs +428 -0
- package/esm2020/input/public-api.mjs +12 -0
- package/{esm2015/input/testing/index.js → esm2020/input/testing/index.mjs} +0 -0
- package/{esm2015/input/testing/input-harness-filters.js → esm2020/input/testing/input-harness-filters.mjs} +0 -0
- package/esm2020/input/testing/input-harness.mjs +113 -0
- package/esm2020/input/testing/native-option-harness.mjs +42 -0
- package/{esm2015/input/testing/native-select-harness-filters.js → esm2020/input/testing/native-select-harness-filters.mjs} +0 -0
- package/esm2020/input/testing/native-select-harness.mjs +79 -0
- package/{esm2015/input/testing/public-api.js → esm2020/input/testing/public-api.mjs} +0 -0
- package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
- package/esm2020/list/list-module.mjs +71 -0
- package/esm2020/list/list.mjs +216 -0
- package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
- package/esm2020/list/selection-list.mjs +612 -0
- package/esm2020/list/testing/action-list-harness.mjs +59 -0
- package/{esm2015/list/testing/index.js → esm2020/list/testing/index.mjs} +0 -0
- package/esm2020/list/testing/list-harness-base.mjs +88 -0
- package/{esm2015/list/testing/list-harness-filters.js → esm2020/list/testing/list-harness-filters.mjs} +0 -0
- package/{esm2015/list/testing/list-harness.js → esm2020/list/testing/list-harness.mjs} +0 -0
- package/esm2020/list/testing/list-item-harness-base.mjs +72 -0
- package/esm2020/list/testing/nav-list-harness.mjs +64 -0
- package/{esm2015/list/testing/public-api.js → esm2020/list/testing/public-api.mjs} +0 -0
- package/esm2020/list/testing/selection-list-harness.mjs +125 -0
- package/esm2020/menu/index.mjs +5 -0
- package/{esm2015/menu/menu-animations.js → esm2020/menu/menu-animations.mjs} +0 -0
- package/esm2020/menu/menu-content.mjs +97 -0
- package/{esm2015/menu/menu-errors.js → esm2020/menu/menu-errors.mjs} +0 -0
- package/esm2020/menu/menu-item.mjs +164 -0
- package/esm2020/menu/menu-module.mjs +58 -0
- package/{esm2015/menu/menu-panel.js → esm2020/menu/menu-panel.mjs} +0 -0
- package/{esm2015/menu/menu-positions.js → esm2020/menu/menu-positions.mjs} +0 -0
- package/esm2020/menu/menu-trigger.mjs +540 -0
- package/esm2020/menu/menu.mjs +401 -0
- package/esm2020/menu/public-api.mjs +16 -0
- package/{esm2015/menu/testing/index.js → esm2020/menu/testing/index.mjs} +0 -0
- package/{esm2015/menu/testing/menu-harness-filters.js → esm2020/menu/testing/menu-harness-filters.mjs} +0 -0
- package/esm2020/menu/testing/menu-harness.mjs +183 -0
- package/{esm2015/menu/testing/public-api.js → esm2020/menu/testing/public-api.mjs} +0 -0
- package/{esm2015/paginator/index.js → esm2020/paginator/index.mjs} +0 -0
- package/esm2020/paginator/paginator-intl.mjs +64 -0
- package/esm2020/paginator/paginator-module.mjs +47 -0
- package/esm2020/paginator/paginator.mjs +268 -0
- package/{esm2015/paginator/public-api.js → esm2020/paginator/public-api.mjs} +0 -0
- package/{esm2015/paginator/testing/index.js → esm2020/paginator/testing/index.mjs} +0 -0
- package/{esm2015/paginator/testing/paginator-harness-filters.js → esm2020/paginator/testing/paginator-harness-filters.mjs} +0 -0
- package/esm2020/paginator/testing/paginator-harness.mjs +91 -0
- package/{esm2015/paginator/testing/public-api.js → esm2020/paginator/testing/public-api.mjs} +0 -0
- package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
- package/esm2020/progress-bar/progress-bar-module.mjs +26 -0
- package/esm2020/progress-bar/progress-bar.mjs +187 -0
- package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
- package/{esm2015/progress-bar/testing/index.js → esm2020/progress-bar/testing/index.mjs} +0 -0
- package/{esm2015/progress-bar/testing/progress-bar-harness-filters.js → esm2020/progress-bar/testing/progress-bar-harness-filters.mjs} +0 -0
- package/esm2020/progress-bar/testing/progress-bar-harness.mjs +34 -0
- package/{esm2015/progress-bar/testing/public-api.js → esm2020/progress-bar/testing/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
- package/esm2020/progress-spinner/progress-spinner-module.mjs +36 -0
- package/esm2020/progress-spinner/progress-spinner.mjs +280 -0
- package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/testing/index.js → esm2020/progress-spinner/testing/index.mjs} +0 -0
- package/{esm2015/progress-spinner/testing/progress-spinner-harness-filters.js → esm2020/progress-spinner/testing/progress-spinner-harness-filters.mjs} +0 -0
- package/esm2020/progress-spinner/testing/progress-spinner-harness.mjs +35 -0
- package/{esm2015/progress-spinner/testing/public-api.js → esm2020/progress-spinner/testing/public-api.mjs} +0 -0
- package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
- package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
- package/esm2020/radio/radio-module.mjs +25 -0
- package/esm2020/radio/radio.mjs +570 -0
- package/{esm2015/radio/testing/index.js → esm2020/radio/testing/index.mjs} +0 -0
- package/{esm2015/radio/testing/public-api.js → esm2020/radio/testing/public-api.mjs} +0 -0
- package/{esm2015/radio/testing/radio-harness-filters.js → esm2020/radio/testing/radio-harness-filters.mjs} +0 -0
- package/esm2020/radio/testing/radio-harness.mjs +231 -0
- package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
- package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/{esm2015/select/select-animations.js → esm2020/select/select-animations.mjs} +0 -0
- package/{esm2015/select/select-errors.js → esm2020/select/select-errors.mjs} +0 -0
- package/esm2020/select/select-module.mjs +58 -0
- package/esm2020/select/select.mjs +1188 -0
- package/{esm2015/select/testing/index.js → esm2020/select/testing/index.mjs} +0 -0
- package/{esm2015/select/testing/public-api.js → esm2020/select/testing/public-api.mjs} +0 -0
- package/{esm2015/select/testing/select-harness-filters.js → esm2020/select/testing/select-harness-filters.mjs} +0 -0
- package/esm2020/select/testing/select-harness.mjs +130 -0
- package/{esm2015/sidenav/drawer-animations.js → esm2020/sidenav/drawer-animations.mjs} +0 -0
- package/esm2020/sidenav/drawer.mjs +788 -0
- package/esm2020/sidenav/index.mjs +5 -0
- package/{esm2015/sidenav/public-api.js → esm2020/sidenav/public-api.mjs} +0 -0
- package/esm2020/sidenav/sidenav-module.mjs +71 -0
- package/esm2020/sidenav/sidenav.mjs +115 -0
- package/esm2020/sidenav/testing/drawer-container-harness.mjs +36 -0
- package/{esm2015/sidenav/testing/drawer-content-harness.js → esm2020/sidenav/testing/drawer-content-harness.mjs} +0 -0
- package/{esm2015/sidenav/testing/drawer-harness-filters.js → esm2020/sidenav/testing/drawer-harness-filters.mjs} +0 -0
- package/esm2020/sidenav/testing/drawer-harness.mjs +50 -0
- package/{esm2015/sidenav/testing/index.js → esm2020/sidenav/testing/index.mjs} +0 -0
- package/{esm2015/sidenav/testing/public-api.js → esm2020/sidenav/testing/public-api.mjs} +0 -0
- package/esm2020/sidenav/testing/sidenav-container-harness.mjs +36 -0
- package/{esm2015/sidenav/testing/sidenav-content-harness.js → esm2020/sidenav/testing/sidenav-content-harness.mjs} +0 -0
- package/esm2020/sidenav/testing/sidenav-harness.mjs +29 -0
- package/{esm2015/slide-toggle/index.js → esm2020/slide-toggle/index.mjs} +0 -0
- package/{esm2015/slide-toggle/public-api.js → esm2020/slide-toggle/public-api.mjs} +0 -0
- package/{esm2015/slide-toggle/slide-toggle-config.js → esm2020/slide-toggle/slide-toggle-config.mjs} +0 -0
- package/esm2020/slide-toggle/slide-toggle-module.mjs +57 -0
- package/esm2020/slide-toggle/slide-toggle-required-validator.mjs +36 -0
- package/esm2020/slide-toggle/slide-toggle.mjs +253 -0
- package/{esm2015/slide-toggle/testing/index.js → esm2020/slide-toggle/testing/index.mjs} +0 -0
- package/{esm2015/slide-toggle/testing/public-api.js → esm2020/slide-toggle/testing/public-api.mjs} +0 -0
- package/{esm2015/slide-toggle/testing/slide-toggle-harness-filters.js → esm2020/slide-toggle/testing/slide-toggle-harness-filters.mjs} +0 -0
- package/esm2020/slide-toggle/testing/slide-toggle-harness.mjs +110 -0
- package/{esm2015/slider/index.js → esm2020/slider/index.mjs} +0 -0
- package/{esm2015/slider/public-api.js → esm2020/slider/public-api.mjs} +0 -0
- package/esm2020/slider/slider-module.mjs +26 -0
- package/esm2020/slider/slider.mjs +801 -0
- package/{esm2015/slider/testing/index.js → esm2020/slider/testing/index.mjs} +0 -0
- package/{esm2015/slider/testing/public-api.js → esm2020/slider/testing/public-api.mjs} +0 -0
- package/{esm2015/slider/testing/slider-harness-filters.js → esm2020/slider/testing/slider-harness-filters.mjs} +0 -0
- package/esm2020/slider/testing/slider-harness.mjs +114 -0
- package/{esm2015/snack-bar/index.js → esm2020/snack-bar/index.mjs} +0 -0
- package/{esm2015/snack-bar/public-api.js → esm2020/snack-bar/public-api.mjs} +0 -0
- package/esm2020/snack-bar/simple-snack-bar.mjs +44 -0
- package/{esm2015/snack-bar/snack-bar-animations.js → esm2020/snack-bar/snack-bar-animations.mjs} +0 -0
- package/{esm2015/snack-bar/snack-bar-config.js → esm2020/snack-bar/snack-bar-config.mjs} +0 -0
- package/esm2020/snack-bar/snack-bar-container.mjs +205 -0
- package/esm2020/snack-bar/snack-bar-module.mjs +47 -0
- package/esm2020/snack-bar/snack-bar-ref.mjs +90 -0
- package/esm2020/snack-bar/snack-bar.mjs +265 -0
- package/{esm2015/snack-bar/testing/index.js → esm2020/snack-bar/testing/index.mjs} +0 -0
- package/{esm2015/snack-bar/testing/public-api.js → esm2020/snack-bar/testing/public-api.mjs} +0 -0
- package/{esm2015/snack-bar/testing/snack-bar-harness-filters.js → esm2020/snack-bar/testing/snack-bar-harness-filters.mjs} +0 -0
- package/esm2020/snack-bar/testing/snack-bar-harness.mjs +118 -0
- package/{esm2015/sort/index.js → esm2020/sort/index.mjs} +0 -0
- package/{esm2015/sort/public-api.js → esm2020/sort/public-api.mjs} +0 -0
- package/{esm2015/sort/sort-animations.js → esm2020/sort/sort-animations.mjs} +0 -0
- package/{esm2015/sort/sort-direction.js → esm2020/sort/sort-direction.mjs} +0 -0
- package/{esm2015/sort/sort-errors.js → esm2020/sort/sort-errors.mjs} +0 -0
- package/esm2020/sort/sort-header-intl.mjs +43 -0
- package/esm2020/sort/sort-header.mjs +275 -0
- package/esm2020/sort/sort-module.mjs +29 -0
- package/esm2020/sort/sort.mjs +154 -0
- package/{esm2015/sort/testing/index.js → esm2020/sort/testing/index.mjs} +0 -0
- package/{esm2015/sort/testing/public-api.js → esm2020/sort/testing/public-api.mjs} +0 -0
- package/{esm2015/sort/testing/sort-harness-filters.js → esm2020/sort/testing/sort-harness-filters.mjs} +0 -0
- package/esm2020/sort/testing/sort-harness.mjs +36 -0
- package/esm2020/sort/testing/sort-header-harness.mjs +56 -0
- package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
- package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
- package/esm2020/stepper/step-content.mjs +26 -0
- package/esm2020/stepper/step-header.mjs +110 -0
- package/esm2020/stepper/step-label.mjs +21 -0
- package/{esm2015/stepper/stepper-animations.js → esm2020/stepper/stepper-animations.mjs} +0 -0
- package/esm2020/stepper/stepper-button.mjs +43 -0
- package/esm2020/stepper/stepper-icon.mjs +29 -0
- package/esm2020/stepper/stepper-intl.mjs +43 -0
- package/esm2020/stepper/stepper-module.mjs +97 -0
- package/esm2020/stepper/stepper.mjs +213 -0
- package/{esm2015/stepper/testing/index.js → esm2020/stepper/testing/index.mjs} +0 -0
- package/{esm2015/stepper/testing/public-api.js → esm2020/stepper/testing/public-api.mjs} +0 -0
- package/{esm2015/stepper/testing/step-harness-filters.js → esm2020/stepper/testing/step-harness-filters.mjs} +0 -0
- package/esm2020/stepper/testing/step-harness.mjs +90 -0
- package/esm2020/stepper/testing/stepper-button-harnesses.mjs +50 -0
- package/esm2020/stepper/testing/stepper-harness.mjs +50 -0
- package/esm2020/table/cell.mjs +139 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/esm2020/table/row.mjs +139 -0
- package/esm2020/table/table-data-source.mjs +310 -0
- package/esm2020/table/table-module.mjs +101 -0
- package/esm2020/table/table.mjs +71 -0
- package/esm2020/table/testing/cell-harness.mjs +72 -0
- package/{esm2015/table/testing/index.js → esm2020/table/testing/index.mjs} +0 -0
- package/{esm2015/table/testing/public-api.js → esm2020/table/testing/public-api.mjs} +0 -0
- package/esm2020/table/testing/row-harness.mjs +84 -0
- package/{esm2015/table/testing/table-harness-filters.js → esm2020/table/testing/table-harness-filters.mjs} +0 -0
- package/esm2020/table/testing/table-harness.mjs +88 -0
- package/esm2020/table/text-column.mjs +58 -0
- package/esm2020/tabs/index.mjs +5 -0
- package/esm2020/tabs/ink-bar.mjs +93 -0
- package/esm2020/tabs/paginated-tab-header.mjs +480 -0
- package/esm2020/tabs/public-api.mjs +20 -0
- package/esm2020/tabs/tab-body.mjs +214 -0
- package/{esm2015/tabs/tab-config.js → esm2020/tabs/tab-config.mjs} +0 -0
- package/esm2020/tabs/tab-content.mjs +32 -0
- package/esm2020/tabs/tab-group.mjs +382 -0
- package/esm2020/tabs/tab-header.mjs +101 -0
- package/esm2020/tabs/tab-label-wrapper.mjs +41 -0
- package/esm2020/tabs/tab-label.mjs +43 -0
- package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +263 -0
- package/esm2020/tabs/tab.mjs +106 -0
- package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
- package/esm2020/tabs/tabs-module.mjs +93 -0
- package/{esm2015/tabs/testing/index.js → esm2020/tabs/testing/index.mjs} +0 -0
- package/{esm2015/tabs/testing/public-api.js → esm2020/tabs/testing/public-api.mjs} +0 -0
- package/esm2020/tabs/testing/tab-group-harness.mjs +58 -0
- package/{esm2015/tabs/testing/tab-harness-filters.js → esm2020/tabs/testing/tab-harness-filters.mjs} +0 -0
- package/esm2020/tabs/testing/tab-harness.mjs +66 -0
- package/esm2020/tabs/testing/tab-link-harness.mjs +42 -0
- package/esm2020/tabs/testing/tab-nav-bar-harness.mjs +54 -0
- package/{esm2015/toolbar/index.js → esm2020/toolbar/index.mjs} +0 -0
- package/{esm2015/toolbar/public-api.js → esm2020/toolbar/public-api.mjs} +0 -0
- package/{esm2015/toolbar/testing/index.js → esm2020/toolbar/testing/index.mjs} +0 -0
- package/{esm2015/toolbar/testing/public-api.js → esm2020/toolbar/testing/public-api.mjs} +0 -0
- package/{esm2015/toolbar/testing/toolbar-harness-filters.js → esm2020/toolbar/testing/toolbar-harness-filters.mjs} +0 -0
- package/esm2020/toolbar/testing/toolbar-harness.mjs +40 -0
- package/esm2020/toolbar/toolbar-module.mjs +25 -0
- package/esm2020/toolbar/toolbar.mjs +88 -0
- package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
- package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{esm2015/tooltip/testing/index.js → esm2020/tooltip/testing/index.mjs} +0 -0
- package/{esm2015/tooltip/testing/public-api.js → esm2020/tooltip/testing/public-api.mjs} +0 -0
- package/{esm2015/tooltip/testing/tooltip-harness-filters.js → esm2020/tooltip/testing/tooltip-harness-filters.mjs} +0 -0
- package/esm2020/tooltip/testing/tooltip-harness.mjs +57 -0
- package/{esm2015/tooltip/tooltip-animations.js → esm2020/tooltip/tooltip-animations.mjs} +0 -0
- package/esm2020/tooltip/tooltip-module.mjs +44 -0
- package/esm2020/tooltip/tooltip.mjs +739 -0
- package/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -0
- package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/esm2020/tree/node.mjs +143 -0
- package/esm2020/tree/outlet.mjs +41 -0
- package/esm2020/tree/padding.mjs +37 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/{esm2015/tree/testing/index.js → esm2020/tree/testing/index.mjs} +0 -0
- package/esm2020/tree/testing/node-harness.mjs +69 -0
- package/{esm2015/tree/testing/public-api.js → esm2020/tree/testing/public-api.mjs} +0 -0
- package/{esm2015/tree/testing/tree-harness-filters.js → esm2020/tree/testing/tree-harness-filters.mjs} +0 -0
- package/esm2020/tree/testing/tree-harness.mjs +123 -0
- package/esm2020/tree/toggle.mjs +36 -0
- package/esm2020/tree/tree-module.mjs +51 -0
- package/esm2020/tree/tree.mjs +37 -0
- package/expansion/accordion.d.ts +3 -0
- package/expansion/expansion-module.d.ts +12 -7
- package/expansion/expansion-panel-content.d.ts +3 -0
- package/expansion/expansion-panel-header.d.ts +8 -1
- package/expansion/expansion-panel.d.ts +5 -0
- package/expansion/package.json +5 -5
- package/expansion/testing/package.json +5 -5
- package/fesm2015/autocomplete/testing.mjs +132 -0
- package/fesm2015/autocomplete/testing.mjs.map +1 -0
- package/fesm2015/autocomplete.mjs +958 -0
- package/fesm2015/autocomplete.mjs.map +1 -0
- package/fesm2015/badge/testing.mjs +97 -0
- package/fesm2015/badge/testing.mjs.map +1 -0
- package/fesm2015/badge.mjs +266 -0
- package/fesm2015/badge.mjs.map +1 -0
- package/fesm2015/bottom-sheet/testing.mjs +52 -0
- package/fesm2015/bottom-sheet/testing.mjs.map +1 -0
- package/fesm2015/bottom-sheet.mjs +596 -0
- package/fesm2015/bottom-sheet.mjs.map +1 -0
- package/fesm2015/button/testing.mjs +76 -0
- package/fesm2015/button/testing.mjs.map +1 -0
- package/fesm2015/button-toggle/testing.mjs +181 -0
- package/fesm2015/button-toggle/testing.mjs.map +1 -0
- package/fesm2015/button-toggle.mjs +502 -0
- package/fesm2015/button-toggle.mjs.map +1 -0
- package/fesm2015/button.mjs +202 -0
- package/fesm2015/button.mjs.map +1 -0
- package/fesm2015/card/testing.mjs +64 -0
- package/fesm2015/card/testing.mjs.map +1 -0
- package/fesm2015/card.mjs +322 -0
- package/fesm2015/card.mjs.map +1 -0
- package/fesm2015/checkbox/testing.mjs +168 -0
- package/fesm2015/checkbox/testing.mjs.map +1 -0
- package/fesm2015/checkbox.mjs +503 -0
- package/fesm2015/checkbox.mjs.map +1 -0
- package/fesm2015/chips/testing.mjs +423 -0
- package/fesm2015/chips/testing.mjs.map +1 -0
- package/fesm2015/chips.mjs +1354 -0
- package/fesm2015/chips.mjs.map +1 -0
- package/fesm2015/core/testing.mjs +120 -0
- package/fesm2015/core/testing.mjs.map +1 -0
- package/fesm2015/core.mjs +1719 -0
- package/fesm2015/core.mjs.map +1 -0
- package/fesm2015/datepicker/testing.mjs +635 -0
- package/fesm2015/datepicker/testing.mjs.map +1 -0
- package/fesm2015/datepicker.mjs +3948 -0
- package/fesm2015/datepicker.mjs.map +1 -0
- package/fesm2015/dialog/testing.mjs +119 -0
- package/fesm2015/dialog/testing.mjs.map +1 -0
- package/fesm2015/dialog.mjs +1155 -0
- package/fesm2015/dialog.mjs.map +1 -0
- package/fesm2015/divider/testing.mjs +39 -0
- package/fesm2015/divider/testing.mjs.map +1 -0
- package/fesm2015/divider.mjs +77 -0
- package/fesm2015/divider.mjs.map +1 -0
- package/fesm2015/expansion/testing.mjs +187 -0
- package/fesm2015/expansion/testing.mjs.map +1 -0
- package/fesm2015/expansion.mjs +641 -0
- package/fesm2015/expansion.mjs.map +1 -0
- package/fesm2015/form-field/testing/control.mjs +26 -0
- package/fesm2015/form-field/testing/control.mjs.map +1 -0
- package/fesm2015/form-field/testing.mjs +231 -0
- package/fesm2015/form-field/testing.mjs.map +1 -0
- package/fesm2015/form-field.mjs +814 -0
- package/fesm2015/form-field.mjs.map +1 -0
- package/fesm2015/grid-list/testing.mjs +161 -0
- package/fesm2015/grid-list/testing.mjs.map +1 -0
- package/fesm2015/grid-list.mjs +700 -0
- package/fesm2015/grid-list.mjs.map +1 -0
- package/fesm2015/icon/testing.mjs +163 -0
- package/fesm2015/icon/testing.mjs.map +1 -0
- package/fesm2015/icon.mjs +1016 -0
- package/fesm2015/icon.mjs.map +1 -0
- package/fesm2015/input/testing.mjs +281 -0
- package/fesm2015/input/testing.mjs.map +1 -0
- package/fesm2015/input.mjs +515 -0
- package/fesm2015/input.mjs.map +1 -0
- package/fesm2015/list/testing.mjs +486 -0
- package/fesm2015/list/testing.mjs.map +1 -0
- package/fesm2015/list.mjs +908 -0
- package/fesm2015/list.mjs.map +1 -0
- package/fesm2015/material.mjs +16 -0
- package/fesm2015/material.mjs.map +1 -0
- package/fesm2015/menu/testing.mjs +235 -0
- package/fesm2015/menu/testing.mjs.map +1 -0
- package/fesm2015/menu.mjs +1363 -0
- package/fesm2015/menu.mjs.map +1 -0
- package/fesm2015/paginator/testing.mjs +118 -0
- package/fesm2015/paginator/testing.mjs.map +1 -0
- package/fesm2015/paginator.mjs +387 -0
- package/fesm2015/paginator.mjs.map +1 -0
- package/fesm2015/progress-bar/testing.mjs +51 -0
- package/fesm2015/progress-bar/testing.mjs.map +1 -0
- package/fesm2015/progress-bar.mjs +225 -0
- package/fesm2015/progress-bar.mjs.map +1 -0
- package/fesm2015/progress-spinner/testing.mjs +52 -0
- package/fesm2015/progress-spinner/testing.mjs.map +1 -0
- package/fesm2015/progress-spinner.mjs +330 -0
- package/fesm2015/progress-spinner.mjs.map +1 -0
- package/fesm2015/radio/testing.mjs +284 -0
- package/fesm2015/radio/testing.mjs.map +1 -0
- package/fesm2015/radio.mjs +599 -0
- package/fesm2015/radio.mjs.map +1 -0
- package/fesm2015/select/testing.mjs +169 -0
- package/fesm2015/select/testing.mjs.map +1 -0
- package/fesm2015/select.mjs +1346 -0
- package/fesm2015/select.mjs.map +1 -0
- package/fesm2015/sidenav/testing.mjs +195 -0
- package/fesm2015/sidenav/testing.mjs.map +1 -0
- package/fesm2015/sidenav.mjs +1013 -0
- package/fesm2015/sidenav.mjs.map +1 -0
- package/fesm2015/slide-toggle/testing.mjs +151 -0
- package/fesm2015/slide-toggle/testing.mjs.map +1 -0
- package/fesm2015/slide-toggle.mjs +359 -0
- package/fesm2015/slide-toggle.mjs.map +1 -0
- package/fesm2015/slider/testing.mjs +153 -0
- package/fesm2015/slider/testing.mjs.map +1 -0
- package/fesm2015/slider.mjs +830 -0
- package/fesm2015/slider.mjs.map +1 -0
- package/fesm2015/snack-bar/testing.mjs +153 -0
- package/fesm2015/snack-bar/testing.mjs.map +1 -0
- package/fesm2015/snack-bar.mjs +698 -0
- package/fesm2015/snack-bar.mjs.map +1 -0
- package/fesm2015/sort/testing.mjs +110 -0
- package/fesm2015/sort/testing.mjs.map +1 -0
- package/fesm2015/sort.mjs +605 -0
- package/fesm2015/sort.mjs.map +1 -0
- package/fesm2015/stepper/testing.mjs +216 -0
- package/fesm2015/stepper/testing.mjs.map +1 -0
- package/fesm2015/stepper.mjs +579 -0
- package/fesm2015/stepper.mjs.map +1 -0
- package/fesm2015/table/testing.mjs +259 -0
- package/fesm2015/table/testing.mjs.map +1 -0
- package/fesm2015/table.mjs +817 -0
- package/fesm2015/table.mjs.map +1 -0
- package/fesm2015/tabs/testing.mjs +245 -0
- package/fesm2015/tabs/testing.mjs.map +1 -0
- package/fesm2015/tabs.mjs +1846 -0
- package/fesm2015/tabs.mjs.map +1 -0
- package/fesm2015/toolbar/testing.mjs +59 -0
- package/fesm2015/toolbar/testing.mjs.map +1 -0
- package/fesm2015/toolbar.mjs +118 -0
- package/fesm2015/toolbar.mjs.map +1 -0
- package/fesm2015/tooltip/testing.mjs +80 -0
- package/fesm2015/tooltip/testing.mjs.map +1 -0
- package/fesm2015/tooltip.mjs +820 -0
- package/fesm2015/tooltip.mjs.map +1 -0
- package/fesm2015/tree/testing.mjs +215 -0
- package/fesm2015/tree/testing.mjs.map +1 -0
- package/fesm2015/tree.mjs +520 -0
- package/fesm2015/tree.mjs.map +1 -0
- package/fesm2020/autocomplete/testing.mjs +128 -0
- package/fesm2020/autocomplete/testing.mjs.map +1 -0
- package/fesm2020/autocomplete.mjs +958 -0
- package/fesm2020/autocomplete.mjs.map +1 -0
- package/fesm2020/badge/testing.mjs +99 -0
- package/fesm2020/badge/testing.mjs.map +1 -0
- package/fesm2020/badge.mjs +271 -0
- package/fesm2020/badge.mjs.map +1 -0
- package/fesm2020/bottom-sheet/testing.mjs +62 -0
- package/fesm2020/bottom-sheet/testing.mjs.map +1 -0
- package/fesm2020/bottom-sheet.mjs +592 -0
- package/fesm2020/bottom-sheet.mjs.map +1 -0
- package/fesm2020/button/testing.mjs +78 -0
- package/fesm2020/button/testing.mjs.map +1 -0
- package/fesm2020/button-toggle/testing.mjs +176 -0
- package/fesm2020/button-toggle/testing.mjs.map +1 -0
- package/fesm2020/button-toggle.mjs +505 -0
- package/fesm2020/button-toggle.mjs.map +1 -0
- package/fesm2020/button.mjs +205 -0
- package/fesm2020/button.mjs.map +1 -0
- package/fesm2020/card/testing.mjs +70 -0
- package/fesm2020/card/testing.mjs.map +1 -0
- package/fesm2020/card.mjs +320 -0
- package/fesm2020/card.mjs.map +1 -0
- package/fesm2020/checkbox/testing.mjs +150 -0
- package/fesm2020/checkbox/testing.mjs.map +1 -0
- package/fesm2020/checkbox.mjs +507 -0
- package/fesm2020/checkbox.mjs.map +1 -0
- package/fesm2020/chips/testing.mjs +398 -0
- package/fesm2020/chips/testing.mjs.map +1 -0
- package/fesm2020/chips.mjs +1346 -0
- package/fesm2020/chips.mjs.map +1 -0
- package/fesm2020/core/testing.mjs +131 -0
- package/fesm2020/core/testing.mjs.map +1 -0
- package/fesm2020/core.mjs +1731 -0
- package/fesm2020/core.mjs.map +1 -0
- package/fesm2020/datepicker/testing.mjs +572 -0
- package/fesm2020/datepicker/testing.mjs.map +1 -0
- package/fesm2020/datepicker.mjs +3921 -0
- package/fesm2020/datepicker.mjs.map +1 -0
- package/fesm2020/dialog/testing.mjs +110 -0
- package/fesm2020/dialog/testing.mjs.map +1 -0
- package/fesm2020/dialog.mjs +1147 -0
- package/fesm2020/dialog.mjs.map +1 -0
- package/fesm2020/divider/testing.mjs +49 -0
- package/fesm2020/divider/testing.mjs.map +1 -0
- package/fesm2020/divider.mjs +77 -0
- package/fesm2020/divider.mjs.map +1 -0
- package/fesm2020/expansion/testing.mjs +176 -0
- package/fesm2020/expansion/testing.mjs.map +1 -0
- package/fesm2020/expansion.mjs +644 -0
- package/fesm2020/expansion.mjs.map +1 -0
- package/fesm2020/form-field/testing/control.mjs +26 -0
- package/fesm2020/form-field/testing/control.mjs.map +1 -0
- package/fesm2020/form-field/testing.mjs +209 -0
- package/fesm2020/form-field/testing.mjs.map +1 -0
- package/fesm2020/form-field.mjs +817 -0
- package/fesm2020/form-field.mjs.map +1 -0
- package/fesm2020/grid-list/testing.mjs +162 -0
- package/fesm2020/grid-list/testing.mjs.map +1 -0
- package/fesm2020/grid-list.mjs +696 -0
- package/fesm2020/grid-list.mjs.map +1 -0
- package/fesm2020/icon/testing.mjs +169 -0
- package/fesm2020/icon/testing.mjs.map +1 -0
- package/fesm2020/icon.mjs +1010 -0
- package/fesm2020/icon.mjs.map +1 -0
- package/fesm2020/input/testing.mjs +265 -0
- package/fesm2020/input/testing.mjs.map +1 -0
- package/fesm2020/input.mjs +512 -0
- package/fesm2020/input.mjs.map +1 -0
- package/fesm2020/list/testing.mjs +464 -0
- package/fesm2020/list/testing.mjs.map +1 -0
- package/fesm2020/list.mjs +901 -0
- package/fesm2020/list.mjs.map +1 -0
- package/fesm2020/material.mjs +16 -0
- package/fesm2020/material.mjs.map +1 -0
- package/fesm2020/menu/testing.mjs +210 -0
- package/fesm2020/menu/testing.mjs.map +1 -0
- package/fesm2020/menu.mjs +1365 -0
- package/fesm2020/menu.mjs.map +1 -0
- package/fesm2020/paginator/testing.mjs +118 -0
- package/fesm2020/paginator/testing.mjs.map +1 -0
- package/fesm2020/paginator.mjs +385 -0
- package/fesm2020/paginator.mjs.map +1 -0
- package/fesm2020/progress-bar/testing.mjs +61 -0
- package/fesm2020/progress-bar/testing.mjs.map +1 -0
- package/fesm2020/progress-bar.mjs +223 -0
- package/fesm2020/progress-bar.mjs.map +1 -0
- package/fesm2020/progress-spinner/testing.mjs +62 -0
- package/fesm2020/progress-spinner/testing.mjs.map +1 -0
- package/fesm2020/progress-spinner.mjs +326 -0
- package/fesm2020/progress-spinner.mjs.map +1 -0
- package/fesm2020/radio/testing.mjs +258 -0
- package/fesm2020/radio/testing.mjs.map +1 -0
- package/fesm2020/radio.mjs +604 -0
- package/fesm2020/radio.mjs.map +1 -0
- package/fesm2020/select/testing.mjs +157 -0
- package/fesm2020/select/testing.mjs.map +1 -0
- package/fesm2020/select.mjs +1338 -0
- package/fesm2020/select.mjs.map +1 -0
- package/fesm2020/sidenav/testing.mjs +214 -0
- package/fesm2020/sidenav/testing.mjs.map +1 -0
- package/fesm2020/sidenav.mjs +1004 -0
- package/fesm2020/sidenav.mjs.map +1 -0
- package/fesm2020/slide-toggle/testing.mjs +137 -0
- package/fesm2020/slide-toggle/testing.mjs.map +1 -0
- package/fesm2020/slide-toggle.mjs +364 -0
- package/fesm2020/slide-toggle.mjs.map +1 -0
- package/fesm2020/slider/testing.mjs +133 -0
- package/fesm2020/slider/testing.mjs.map +1 -0
- package/fesm2020/slider.mjs +835 -0
- package/fesm2020/slider.mjs.map +1 -0
- package/fesm2020/snack-bar/testing.mjs +145 -0
- package/fesm2020/snack-bar/testing.mjs.map +1 -0
- package/fesm2020/snack-bar.mjs +701 -0
- package/fesm2020/snack-bar.mjs.map +1 -0
- package/fesm2020/sort/testing.mjs +109 -0
- package/fesm2020/sort/testing.mjs.map +1 -0
- package/fesm2020/sort.mjs +609 -0
- package/fesm2020/sort.mjs.map +1 -0
- package/fesm2020/stepper/testing.mjs +206 -0
- package/fesm2020/stepper/testing.mjs.map +1 -0
- package/fesm2020/stepper.mjs +589 -0
- package/fesm2020/stepper.mjs.map +1 -0
- package/fesm2020/table/testing.mjs +259 -0
- package/fesm2020/table/testing.mjs.map +1 -0
- package/fesm2020/table.mjs +814 -0
- package/fesm2020/table.mjs.map +1 -0
- package/fesm2020/tabs/testing.mjs +234 -0
- package/fesm2020/tabs/testing.mjs.map +1 -0
- package/fesm2020/tabs.mjs +1829 -0
- package/fesm2020/tabs.mjs.map +1 -0
- package/fesm2020/toolbar/testing.mjs +67 -0
- package/fesm2020/toolbar/testing.mjs.map +1 -0
- package/fesm2020/toolbar.mjs +123 -0
- package/fesm2020/toolbar.mjs.map +1 -0
- package/fesm2020/tooltip/testing.mjs +84 -0
- package/fesm2020/tooltip/testing.mjs.map +1 -0
- package/fesm2020/tooltip.mjs +815 -0
- package/fesm2020/tooltip.mjs.map +1 -0
- package/fesm2020/tree/testing.mjs +217 -0
- package/fesm2020/tree/testing.mjs.map +1 -0
- package/fesm2020/tree.mjs +514 -0
- package/fesm2020/tree.mjs.map +1 -0
- package/form-field/error.d.ts +3 -0
- package/form-field/form-field-control.d.ts +3 -0
- package/form-field/form-field-module.d.ts +14 -7
- package/form-field/form-field.d.ts +4 -1
- package/form-field/hint.d.ts +3 -0
- package/form-field/label.d.ts +3 -7
- package/form-field/package.json +5 -5
- package/form-field/placeholder.d.ts +3 -7
- package/form-field/prefix.d.ts +3 -0
- package/form-field/suffix.d.ts +3 -0
- package/form-field/testing/control/package.json +5 -5
- package/form-field/testing/package.json +5 -5
- package/grid-list/grid-list-module.d.ts +7 -7
- package/grid-list/grid-list.d.ts +3 -0
- package/grid-list/grid-tile.d.ts +11 -0
- package/grid-list/index.d.ts +0 -1
- package/grid-list/package.json +5 -5
- package/grid-list/testing/package.json +5 -5
- package/icon/icon-module.d.ts +6 -7
- package/icon/icon-registry.d.ts +3 -7
- package/icon/icon.d.ts +4 -1
- package/icon/package.json +5 -5
- package/icon/testing/fake-icon-registry.d.ts +6 -0
- package/icon/testing/package.json +5 -5
- package/input/input-module.d.ts +8 -7
- package/input/input.d.ts +4 -1
- package/input/package.json +5 -5
- package/input/public-api.d.ts +0 -1
- package/input/testing/package.json +5 -5
- package/list/list-module.d.ts +9 -7
- package/list/list.d.ts +15 -2
- package/list/package.json +5 -5
- package/list/selection-list.d.ts +7 -2
- package/list/testing/package.json +5 -5
- package/menu/index.d.ts +0 -2
- package/menu/menu-content.d.ts +11 -11
- package/menu/menu-item.d.ts +4 -1
- package/menu/menu-module.d.ts +12 -13
- package/menu/menu-trigger.d.ts +12 -2
- package/menu/menu.d.ts +5 -0
- package/menu/package.json +5 -5
- package/menu/public-api.d.ts +1 -1
- package/menu/testing/package.json +5 -5
- package/package.json +612 -8
- package/paginator/package.json +5 -5
- package/paginator/paginator-intl.d.ts +3 -0
- package/paginator/paginator-module.d.ts +10 -7
- package/paginator/paginator.d.ts +6 -1
- package/paginator/testing/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/package.json +5 -5
- package/progress-bar/progress-bar-module.d.ts +7 -7
- package/progress-bar/progress-bar.d.ts +4 -1
- package/progress-bar/testing/package.json +5 -5
- package/progress-spinner/package.json +5 -5
- package/progress-spinner/progress-spinner-module.d.ts +7 -0
- package/progress-spinner/progress-spinner.d.ts +6 -1
- package/progress-spinner/testing/package.json +5 -5
- package/radio/package.json +5 -5
- package/radio/radio-module.d.ts +6 -7
- package/radio/radio.d.ts +10 -1
- package/radio/testing/package.json +5 -5
- package/schematics/ng-add/fonts/material-fonts.js +8 -17
- package/schematics/ng-add/fonts/material-fonts.mjs +8 -17
- package/schematics/ng-add/index.js +8 -8
- package/schematics/ng-add/index.mjs +8 -8
- package/schematics/ng-add/setup-project.js +23 -32
- package/schematics/ng-add/setup-project.mjs +23 -32
- package/schematics/ng-add/theming/create-custom-theme.js +2 -2
- package/schematics/ng-add/theming/create-custom-theme.mjs +2 -2
- package/schematics/ng-add/theming/theming.js +35 -46
- package/schematics/ng-add/theming/theming.mjs +35 -46
- package/schematics/ng-generate/address-form/index.js +13 -22
- package/schematics/ng-generate/address-form/index.mjs +13 -22
- package/schematics/ng-generate/dashboard/index.js +13 -22
- package/schematics/ng-generate/dashboard/index.mjs +13 -22
- package/schematics/ng-generate/navigation/index.js +13 -22
- package/schematics/ng-generate/navigation/index.mjs +13 -22
- package/schematics/ng-generate/table/index.js +10 -19
- package/schematics/ng-generate/table/index.mjs +10 -19
- package/schematics/ng-generate/tree/index.js +10 -19
- package/schematics/ng-generate/tree/index.mjs +10 -19
- package/schematics/ng-update/data/constructor-checks.js +5 -1
- package/schematics/ng-update/data/constructor-checks.mjs +5 -1
- package/schematics/ng-update/index.js +9 -9
- package/schematics/ng-update/index.mjs +9 -9
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +24 -24
- package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +24 -24
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +5 -5
- package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +5 -5
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.js +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-class-inheritance.mjs +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-imports.js +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-imports.mjs +2 -2
- package/schematics/ng-update/migrations/misc-checks/misc-template.js +4 -4
- package/schematics/ng-update/migrations/misc-checks/misc-template.mjs +4 -4
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +7 -7
- package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.mjs +7 -7
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +2 -3
- package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +2 -3
- package/schematics/ng-update/migrations/theming-api-v12/migration.d.ts +6 -6
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +12 -12
- package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +12 -12
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +3 -3
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.mjs +3 -3
- package/schematics/ng-update/typescript/module-specifiers.js +3 -3
- package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
- package/schematics/package.json +3 -0
- package/schematics/paths.js +3 -3
- package/schematics/paths.mjs +3 -3
- package/select/package.json +5 -5
- package/select/select-module.d.ts +10 -7
- package/select/select.d.ts +8 -1
- package/select/testing/package.json +5 -5
- package/sidenav/drawer.d.ts +7 -0
- package/sidenav/index.d.ts +0 -1
- package/sidenav/package.json +5 -5
- package/sidenav/sidenav-module.d.ts +10 -0
- package/sidenav/sidenav.d.ts +7 -0
- package/sidenav/testing/package.json +5 -5
- package/slide-toggle/package.json +5 -5
- package/slide-toggle/slide-toggle-module.d.ts +11 -7
- package/slide-toggle/slide-toggle-required-validator.d.ts +3 -0
- package/slide-toggle/slide-toggle.d.ts +4 -1
- package/slide-toggle/testing/package.json +5 -5
- package/slider/package.json +5 -5
- package/slider/slider-module.d.ts +7 -7
- package/slider/slider.d.ts +4 -1
- package/slider/testing/package.json +5 -5
- package/snack-bar/package.json +5 -5
- package/snack-bar/simple-snack-bar.d.ts +3 -7
- package/snack-bar/snack-bar-container.d.ts +3 -0
- package/snack-bar/snack-bar-module.d.ts +11 -7
- package/snack-bar/snack-bar.d.ts +3 -0
- package/snack-bar/testing/package.json +5 -5
- package/snack-bar/testing/snack-bar-harness.d.ts +8 -9
- package/sort/package.json +5 -5
- package/sort/sort-header-intl.d.ts +3 -0
- package/sort/sort-header.d.ts +4 -1
- package/sort/sort-module.d.ts +8 -7
- package/sort/sort.d.ts +4 -1
- package/sort/testing/package.json +5 -5
- package/stepper/package.json +5 -5
- package/stepper/step-content.d.ts +3 -0
- package/stepper/step-header.d.ts +6 -1
- package/stepper/step-label.d.ts +3 -7
- package/stepper/stepper-button.d.ts +5 -0
- package/stepper/stepper-icon.d.ts +3 -0
- package/stepper/stepper-intl.d.ts +7 -0
- package/stepper/stepper-module.d.ts +16 -7
- package/stepper/stepper.d.ts +11 -0
- package/stepper/testing/package.json +5 -5
- package/table/cell.d.ts +15 -7
- package/table/package.json +5 -5
- package/table/row.d.ts +15 -0
- package/table/table-module.d.ts +10 -7
- package/table/table.d.ts +5 -0
- package/table/testing/package.json +5 -5
- package/table/text-column.d.ts +3 -0
- package/tabs/index.d.ts +0 -4
- package/tabs/ink-bar.d.ts +3 -0
- package/tabs/package.json +5 -5
- package/tabs/paginated-tab-header.d.ts +3 -0
- package/tabs/public-api.d.ts +1 -1
- package/tabs/tab-body.d.ts +7 -0
- package/tabs/tab-content.d.ts +3 -0
- package/tabs/tab-group.d.ts +6 -1
- package/tabs/tab-header.d.ts +5 -0
- package/tabs/tab-label-wrapper.d.ts +4 -1
- package/tabs/tab-label.d.ts +11 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +10 -1
- package/tabs/tab.d.ts +5 -2
- package/tabs/tabs-module.d.ts +18 -7
- package/tabs/testing/package.json +5 -5
- package/toolbar/package.json +5 -5
- package/toolbar/testing/package.json +5 -5
- package/toolbar/toolbar-module.d.ts +6 -7
- package/toolbar/toolbar.d.ts +6 -1
- package/tooltip/package.json +5 -5
- package/tooltip/testing/package.json +5 -5
- package/tooltip/tooltip-module.d.ts +10 -7
- package/tooltip/tooltip.d.ts +11 -2
- package/tree/node.d.ts +8 -1
- package/tree/outlet.d.ts +3 -0
- package/tree/package.json +5 -5
- package/tree/padding.d.ts +3 -0
- package/tree/testing/package.json +5 -5
- package/tree/toggle.d.ts +3 -7
- package/tree/tree-module.d.ts +11 -7
- package/tree/tree.d.ts +3 -0
- package/autocomplete/index.metadata.json +0 -1
- package/badge/index.metadata.json +0 -1
- package/bottom-sheet/index.metadata.json +0 -1
- package/bundles/material-autocomplete-testing.umd.js +0 -564
- package/bundles/material-autocomplete-testing.umd.js.map +0 -1
- package/bundles/material-autocomplete.umd.js +0 -1266
- package/bundles/material-autocomplete.umd.js.map +0 -1
- package/bundles/material-badge-testing.umd.js +0 -474
- package/bundles/material-badge-testing.umd.js.map +0 -1
- package/bundles/material-badge.umd.js +0 -606
- package/bundles/material-badge.umd.js.map +0 -1
- package/bundles/material-bottom-sheet-testing.umd.js +0 -396
- package/bundles/material-bottom-sheet-testing.umd.js.map +0 -1
- package/bundles/material-bottom-sheet.umd.js +0 -955
- package/bundles/material-bottom-sheet.umd.js.map +0 -1
- package/bundles/material-button-testing.umd.js +0 -444
- package/bundles/material-button-testing.umd.js.map +0 -1
- package/bundles/material-button-toggle-testing.umd.js +0 -628
- package/bundles/material-button-toggle-testing.umd.js.map +0 -1
- package/bundles/material-button-toggle.umd.js +0 -850
- package/bundles/material-button-toggle.umd.js.map +0 -1
- package/bundles/material-button.umd.js +0 -545
- package/bundles/material-button.umd.js.map +0 -1
- package/bundles/material-card-testing.umd.js +0 -408
- package/bundles/material-card-testing.umd.js.map +0 -1
- package/bundles/material-card.umd.js +0 -337
- package/bundles/material-card.umd.js.map +0 -1
- package/bundles/material-checkbox-testing.umd.js +0 -615
- package/bundles/material-checkbox-testing.umd.js.map +0 -1
- package/bundles/material-checkbox.umd.js +0 -829
- package/bundles/material-checkbox.umd.js.map +0 -1
- package/bundles/material-chips-testing.umd.js +0 -1023
- package/bundles/material-chips-testing.umd.js.map +0 -1
- package/bundles/material-chips.umd.js +0 -1753
- package/bundles/material-chips.umd.js.map +0 -1
- package/bundles/material-core-testing.umd.js +0 -518
- package/bundles/material-core-testing.umd.js.map +0 -1
- package/bundles/material-core.umd.js +0 -2186
- package/bundles/material-core.umd.js.map +0 -1
- package/bundles/material-datepicker-testing.umd.js +0 -1366
- package/bundles/material-datepicker-testing.umd.js.map +0 -1
- package/bundles/material-datepicker.umd.js +0 -4344
- package/bundles/material-datepicker.umd.js.map +0 -1
- package/bundles/material-dialog-testing.umd.js +0 -500
- package/bundles/material-dialog-testing.umd.js.map +0 -1
- package/bundles/material-dialog.umd.js +0 -1487
- package/bundles/material-dialog.umd.js.map +0 -1
- package/bundles/material-divider-testing.umd.js +0 -380
- package/bundles/material-divider-testing.umd.js.map +0 -1
- package/bundles/material-divider.umd.js +0 -95
- package/bundles/material-divider.umd.js.map +0 -1
- package/bundles/material-expansion-testing.umd.js +0 -627
- package/bundles/material-expansion-testing.umd.js.map +0 -1
- package/bundles/material-expansion.umd.js +0 -949
- package/bundles/material-expansion.umd.js.map +0 -1
- package/bundles/material-form-field-testing-control.umd.js +0 -350
- package/bundles/material-form-field-testing-control.umd.js.map +0 -1
- package/bundles/material-form-field-testing.umd.js +0 -708
- package/bundles/material-form-field-testing.umd.js.map +0 -1
- package/bundles/material-form-field.umd.js +0 -1131
- package/bundles/material-form-field.umd.js.map +0 -1
- package/bundles/material-grid-list-testing.umd.js +0 -566
- package/bundles/material-grid-list-testing.umd.js.map +0 -1
- package/bundles/material-grid-list.umd.js +0 -1070
- package/bundles/material-grid-list.umd.js.map +0 -1
- package/bundles/material-icon-testing.umd.js +0 -527
- package/bundles/material-icon-testing.umd.js.map +0 -1
- package/bundles/material-icon.umd.js +0 -1391
- package/bundles/material-icon.umd.js.map +0 -1
- package/bundles/material-input-testing.umd.js +0 -806
- package/bundles/material-input-testing.umd.js.map +0 -1
- package/bundles/material-input.umd.js +0 -875
- package/bundles/material-input.umd.js.map +0 -1
- package/bundles/material-list-testing.umd.js +0 -1092
- package/bundles/material-list-testing.umd.js.map +0 -1
- package/bundles/material-list.umd.js +0 -1284
- package/bundles/material-list.umd.js.map +0 -1
- package/bundles/material-menu-testing.umd.js +0 -722
- package/bundles/material-menu-testing.umd.js.map +0 -1
- package/bundles/material-menu.umd.js +0 -1661
- package/bundles/material-menu.umd.js.map +0 -1
- package/bundles/material-paginator-testing.umd.js +0 -504
- package/bundles/material-paginator-testing.umd.js.map +0 -1
- package/bundles/material-paginator.umd.js +0 -746
- package/bundles/material-paginator.umd.js.map +0 -1
- package/bundles/material-progress-bar-testing.umd.js +0 -395
- package/bundles/material-progress-bar-testing.umd.js.map +0 -1
- package/bundles/material-progress-bar.umd.js +0 -546
- package/bundles/material-progress-bar.umd.js.map +0 -1
- package/bundles/material-progress-spinner-testing.umd.js +0 -399
- package/bundles/material-progress-spinner-testing.umd.js.map +0 -1
- package/bundles/material-progress-spinner.umd.js +0 -631
- package/bundles/material-progress-spinner.umd.js.map +0 -1
- package/bundles/material-radio-testing.umd.js +0 -812
- package/bundles/material-radio-testing.umd.js.map +0 -1
- package/bundles/material-radio.umd.js +0 -971
- package/bundles/material-radio.umd.js.map +0 -1
- package/bundles/material-select-testing.umd.js +0 -620
- package/bundles/material-select-testing.umd.js.map +0 -1
- package/bundles/material-select.umd.js +0 -1665
- package/bundles/material-select.umd.js.map +0 -1
- package/bundles/material-sidenav-testing.umd.js +0 -603
- package/bundles/material-sidenav-testing.umd.js.map +0 -1
- package/bundles/material-sidenav.umd.js +0 -1368
- package/bundles/material-sidenav.umd.js.map +0 -1
- package/bundles/material-slide-toggle-testing.umd.js +0 -582
- package/bundles/material-slide-toggle-testing.umd.js.map +0 -1
- package/bundles/material-slide-toggle.umd.js +0 -670
- package/bundles/material-slide-toggle.umd.js.map +0 -1
- package/bundles/material-slider-testing.umd.js +0 -587
- package/bundles/material-slider-testing.umd.js.map +0 -1
- package/bundles/material-slider.umd.js +0 -1186
- package/bundles/material-slider.umd.js.map +0 -1
- package/bundles/material-snack-bar-testing.umd.js +0 -554
- package/bundles/material-snack-bar-testing.umd.js.map +0 -1
- package/bundles/material-snack-bar.umd.js +0 -1076
- package/bundles/material-snack-bar.umd.js.map +0 -1
- package/bundles/material-sort-testing.umd.js +0 -493
- package/bundles/material-sort-testing.umd.js.map +0 -1
- package/bundles/material-sort.umd.js +0 -943
- package/bundles/material-sort.umd.js.map +0 -1
- package/bundles/material-stepper-testing.umd.js +0 -703
- package/bundles/material-stepper-testing.umd.js.map +0 -1
- package/bundles/material-stepper.umd.js +0 -893
- package/bundles/material-stepper.umd.js.map +0 -1
- package/bundles/material-table-testing.umd.js +0 -700
- package/bundles/material-table-testing.umd.js.map +0 -1
- package/bundles/material-table.umd.js +0 -1121
- package/bundles/material-table.umd.js.map +0 -1
- package/bundles/material-tabs-testing.umd.js +0 -744
- package/bundles/material-tabs-testing.umd.js.map +0 -1
- package/bundles/material-tabs.umd.js +0 -2169
- package/bundles/material-tabs.umd.js.map +0 -1
- package/bundles/material-toolbar-testing.umd.js +0 -406
- package/bundles/material-toolbar-testing.umd.js.map +0 -1
- package/bundles/material-toolbar.umd.js +0 -454
- package/bundles/material-toolbar.umd.js.map +0 -1
- package/bundles/material-tooltip-testing.umd.js +0 -460
- package/bundles/material-tooltip-testing.umd.js.map +0 -1
- package/bundles/material-tooltip.umd.js +0 -1170
- package/bundles/material-tooltip.umd.js.map +0 -1
- package/bundles/material-tree-testing.umd.js +0 -636
- package/bundles/material-tree-testing.umd.js.map +0 -1
- package/bundles/material-tree.umd.js +0 -837
- package/bundles/material-tree.umd.js.map +0 -1
- package/bundles/material.umd.js +0 -26
- package/bundles/material.umd.js.map +0 -1
- package/button/index.metadata.json +0 -1
- package/button-toggle/index.metadata.json +0 -1
- package/card/index.metadata.json +0 -1
- package/checkbox/index.metadata.json +0 -1
- package/chips/index.metadata.json +0 -1
- package/core/index.metadata.json +0 -1
- package/datepicker/index.metadata.json +0 -1
- package/dialog/index.metadata.json +0 -1
- package/divider/index.metadata.json +0 -1
- package/esm2015/autocomplete/autocomplete-module.js +0 -38
- package/esm2015/autocomplete/autocomplete-origin.js +0 -35
- package/esm2015/autocomplete/autocomplete-trigger.js +0 -627
- package/esm2015/autocomplete/autocomplete.externs.js +0 -6
- package/esm2015/autocomplete/autocomplete.js +0 -202
- package/esm2015/autocomplete/testing/autocomplete-harness.js +0 -120
- package/esm2015/autocomplete/testing/testing.externs.js +0 -0
- package/esm2015/badge/badge-module.js +0 -24
- package/esm2015/badge/badge.externs.js +0 -6
- package/esm2015/badge/badge.js +0 -230
- package/esm2015/badge/testing/badge-harness.js +0 -85
- package/esm2015/badge/testing/testing.externs.js +0 -0
- package/esm2015/bottom-sheet/bottom-sheet-container.js +0 -253
- package/esm2015/bottom-sheet/bottom-sheet-module.js +0 -27
- package/esm2015/bottom-sheet/bottom-sheet-ref.js +0 -91
- package/esm2015/bottom-sheet/bottom-sheet.externs.js +0 -6
- package/esm2015/bottom-sheet/bottom-sheet.js +0 -167
- package/esm2015/bottom-sheet/testing/bottom-sheet-harness.js +0 -40
- package/esm2015/bottom-sheet/testing/testing.externs.js +0 -0
- package/esm2015/button/button-module.js +0 -30
- package/esm2015/button/button.externs.js +0 -6
- package/esm2015/button/button.js +0 -163
- package/esm2015/button/testing/button-harness.js +0 -64
- package/esm2015/button/testing/testing.externs.js +0 -0
- package/esm2015/button-toggle/button-toggle-module.js +0 -20
- package/esm2015/button-toggle/button-toggle.externs.js +0 -6
- package/esm2015/button-toggle/button-toggle.js +0 -441
- package/esm2015/button-toggle/testing/button-toggle-group-harness.js +0 -54
- package/esm2015/button-toggle/testing/button-toggle-harness.js +0 -125
- package/esm2015/button-toggle/testing/testing.externs.js +0 -0
- package/esm2015/card/card-module.js +0 -40
- package/esm2015/card/card.externs.js +0 -6
- package/esm2015/card/card.js +0 -223
- package/esm2015/card/testing/card-harness.js +0 -52
- package/esm2015/card/testing/testing.externs.js +0 -0
- package/esm2015/checkbox/checkbox-module.js +0 -34
- package/esm2015/checkbox/checkbox-required-validator.js +0 -29
- package/esm2015/checkbox/checkbox.externs.js +0 -6
- package/esm2015/checkbox/checkbox.js +0 -385
- package/esm2015/checkbox/testing/checkbox-harness.js +0 -156
- package/esm2015/checkbox/testing/testing.externs.js +0 -0
- package/esm2015/chips/chip-input.js +0 -180
- package/esm2015/chips/chip-list.js +0 -663
- package/esm2015/chips/chip.js +0 -394
- package/esm2015/chips/chips-module.js +0 -43
- package/esm2015/chips/chips.externs.js +0 -6
- package/esm2015/chips/testing/chip-harness.js +0 -110
- package/esm2015/chips/testing/chip-input-harness.js +0 -101
- package/esm2015/chips/testing/chip-list-harness.js +0 -99
- package/esm2015/chips/testing/chip-listbox-harness.js +0 -49
- package/esm2015/chips/testing/chip-option-harness.js +0 -54
- package/esm2015/chips/testing/chip-remove-harness.js +0 -29
- package/esm2015/chips/testing/testing.externs.js +0 -0
- package/esm2015/core/common-behaviors/color.js +0 -31
- package/esm2015/core/common-behaviors/common-module.js +0 -122
- package/esm2015/core/common-behaviors/disable-ripple.js +0 -20
- package/esm2015/core/common-behaviors/disabled.js +0 -19
- package/esm2015/core/common-behaviors/error-state.js +0 -36
- package/esm2015/core/common-behaviors/index.js +0 -15
- package/esm2015/core/common-behaviors/initialized.js +0 -58
- package/esm2015/core/common-behaviors/tabindex.js +0 -23
- package/esm2015/core/core.externs.js +0 -6
- package/esm2015/core/datetime/index.js +0 -38
- package/esm2015/core/datetime/native-date-adapter.js +0 -213
- package/esm2015/core/error/error-options.js +0 -29
- package/esm2015/core/index.js +0 -6
- package/esm2015/core/line/line.js +0 -57
- package/esm2015/core/option/index.js +0 -27
- package/esm2015/core/option/optgroup.js +0 -84
- package/esm2015/core/option/option.js +0 -274
- package/esm2015/core/ripple/index.js +0 -24
- package/esm2015/core/ripple/ripple-renderer.js +0 -261
- package/esm2015/core/ripple/ripple.js +0 -128
- package/esm2015/core/selection/index.js +0 -21
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -55
- package/esm2015/core/testing/optgroup-harness.js +0 -51
- package/esm2015/core/testing/option-harness.js +0 -67
- package/esm2015/core/testing/testing.externs.js +0 -0
- package/esm2015/core/version.js +0 -11
- package/esm2015/datepicker/calendar-body.js +0 -291
- package/esm2015/datepicker/calendar.js +0 -330
- package/esm2015/datepicker/date-range-input-parts.js +0 -315
- package/esm2015/datepicker/date-range-input.js +0 -316
- package/esm2015/datepicker/date-range-picker.js +0 -40
- package/esm2015/datepicker/date-range-selection-strategy.js +0 -58
- package/esm2015/datepicker/date-selection-model.js +0 -189
- package/esm2015/datepicker/datepicker-actions.js +0 -89
- package/esm2015/datepicker/datepicker-base.js +0 -542
- package/esm2015/datepicker/datepicker-input-base.js +0 -290
- package/esm2015/datepicker/datepicker-input.js +0 -164
- package/esm2015/datepicker/datepicker-intl.js +0 -51
- package/esm2015/datepicker/datepicker-module.js +0 -93
- package/esm2015/datepicker/datepicker-toggle.js +0 -104
- package/esm2015/datepicker/datepicker.externs.js +0 -6
- package/esm2015/datepicker/datepicker.js +0 -30
- package/esm2015/datepicker/index.js +0 -9
- package/esm2015/datepicker/month-view.js +0 -344
- package/esm2015/datepicker/multi-year-view.js +0 -280
- package/esm2015/datepicker/testing/calendar-cell-harness.js +0 -181
- package/esm2015/datepicker/testing/calendar-harness.js +0 -91
- package/esm2015/datepicker/testing/date-range-input-harness.js +0 -116
- package/esm2015/datepicker/testing/datepicker-input-harness-base.js +0 -102
- package/esm2015/datepicker/testing/datepicker-input-harness.js +0 -69
- package/esm2015/datepicker/testing/datepicker-toggle-harness.js +0 -48
- package/esm2015/datepicker/testing/datepicker-trigger-harness-base.js +0 -77
- package/esm2015/datepicker/testing/testing.externs.js +0 -0
- package/esm2015/datepicker/year-view.js +0 -268
- package/esm2015/dialog/dialog-container.js +0 -295
- package/esm2015/dialog/dialog-content-directives.js +0 -159
- package/esm2015/dialog/dialog-module.js +0 -46
- package/esm2015/dialog/dialog-ref.js +0 -196
- package/esm2015/dialog/dialog.externs.js +0 -6
- package/esm2015/dialog/dialog.js +0 -353
- package/esm2015/dialog/testing/dialog-harness.js +0 -103
- package/esm2015/dialog/testing/testing.externs.js +0 -0
- package/esm2015/divider/divider-module.js +0 -20
- package/esm2015/divider/divider.externs.js +0 -6
- package/esm2015/divider/divider.js +0 -43
- package/esm2015/divider/testing/divider-harness.js +0 -27
- package/esm2015/divider/testing/testing.externs.js +0 -0
- package/esm2015/expansion/accordion.js +0 -83
- package/esm2015/expansion/expansion-module.js +0 -42
- package/esm2015/expansion/expansion-panel-content.js +0 -26
- package/esm2015/expansion/expansion-panel-header.js +0 -214
- package/esm2015/expansion/expansion-panel.js +0 -186
- package/esm2015/expansion/expansion.externs.js +0 -6
- package/esm2015/expansion/testing/accordion-harness.js +0 -36
- package/esm2015/expansion/testing/expansion-harness.js +0 -149
- package/esm2015/expansion/testing/testing.externs.js +0 -0
- package/esm2015/form-field/error.js +0 -45
- package/esm2015/form-field/form-field-control.js +0 -15
- package/esm2015/form-field/form-field-module.js +0 -49
- package/esm2015/form-field/form-field.externs.js +0 -6
- package/esm2015/form-field/form-field.js +0 -482
- package/esm2015/form-field/hint.js +0 -45
- package/esm2015/form-field/label.js +0 -17
- package/esm2015/form-field/placeholder.js +0 -22
- package/esm2015/form-field/prefix.js +0 -24
- package/esm2015/form-field/suffix.js +0 -24
- package/esm2015/form-field/testing/control/control.externs.js +0 -0
- package/esm2015/form-field/testing/form-field-harness.js +0 -218
- package/esm2015/form-field/testing/testing.externs.js +0 -0
- package/esm2015/grid-list/grid-list-module.js +0 -37
- package/esm2015/grid-list/grid-list.externs.js +0 -6
- package/esm2015/grid-list/grid-list.js +0 -135
- package/esm2015/grid-list/grid-tile.js +0 -116
- package/esm2015/grid-list/index.js +0 -6
- package/esm2015/grid-list/testing/grid-list-harness.js +0 -79
- package/esm2015/grid-list/testing/grid-tile-harness.js +0 -80
- package/esm2015/grid-list/testing/testing.externs.js +0 -0
- package/esm2015/icon/icon-module.js +0 -20
- package/esm2015/icon/icon-registry.js +0 -581
- package/esm2015/icon/icon.externs.js +0 -6
- package/esm2015/icon/icon.js +0 -362
- package/esm2015/icon/testing/fake-icon-registry.js +0 -85
- package/esm2015/icon/testing/icon-harness.js +0 -63
- package/esm2015/icon/testing/testing.externs.js +0 -6
- package/esm2015/icon/trusted-types.js +0 -44
- package/esm2015/input/autosize.js +0 -44
- package/esm2015/input/input-module.js +0 -35
- package/esm2015/input/input.externs.js +0 -6
- package/esm2015/input/input.js +0 -395
- package/esm2015/input/public-api.js +0 -13
- package/esm2015/input/testing/input-harness.js +0 -138
- package/esm2015/input/testing/native-option-harness.js +0 -51
- package/esm2015/input/testing/native-select-harness.js +0 -100
- package/esm2015/input/testing/testing.externs.js +0 -0
- package/esm2015/list/list-module.js +0 -45
- package/esm2015/list/list.externs.js +0 -6
- package/esm2015/list/list.js +0 -218
- package/esm2015/list/selection-list.js +0 -608
- package/esm2015/list/testing/action-list-harness.js +0 -68
- package/esm2015/list/testing/list-harness-base.js +0 -97
- package/esm2015/list/testing/list-item-harness-base.js +0 -85
- package/esm2015/list/testing/nav-list-harness.js +0 -75
- package/esm2015/list/testing/selection-list-harness.js +0 -152
- package/esm2015/list/testing/testing.externs.js +0 -0
- package/esm2015/material.externs.js +0 -0
- package/esm2015/menu/index.js +0 -7
- package/esm2015/menu/menu-content.js +0 -92
- package/esm2015/menu/menu-item.js +0 -164
- package/esm2015/menu/menu-module.js +0 -49
- package/esm2015/menu/menu-trigger.js +0 -493
- package/esm2015/menu/menu.externs.js +0 -6
- package/esm2015/menu/menu.js +0 -381
- package/esm2015/menu/public-api.js +0 -16
- package/esm2015/menu/testing/menu-harness.js +0 -223
- package/esm2015/menu/testing/testing.externs.js +0 -0
- package/esm2015/paginator/paginator-intl.js +0 -62
- package/esm2015/paginator/paginator-module.js +0 -32
- package/esm2015/paginator/paginator.externs.js +0 -6
- package/esm2015/paginator/paginator.js +0 -263
- package/esm2015/paginator/testing/paginator-harness.js +0 -106
- package/esm2015/paginator/testing/testing.externs.js +0 -0
- package/esm2015/progress-bar/progress-bar-module.js +0 -21
- package/esm2015/progress-bar/progress-bar.externs.js +0 -6
- package/esm2015/progress-bar/progress-bar.js +0 -179
- package/esm2015/progress-bar/testing/progress-bar-harness.js +0 -39
- package/esm2015/progress-bar/testing/testing.externs.js +0 -0
- package/esm2015/progress-spinner/progress-spinner-module.js +0 -28
- package/esm2015/progress-spinner/progress-spinner.externs.js +0 -6
- package/esm2015/progress-spinner/progress-spinner.js +0 -274
- package/esm2015/progress-spinner/testing/progress-spinner-harness.js +0 -40
- package/esm2015/progress-spinner/testing/testing.externs.js +0 -0
- package/esm2015/radio/radio-module.js +0 -20
- package/esm2015/radio/radio.externs.js +0 -6
- package/esm2015/radio/radio.js +0 -546
- package/esm2015/radio/testing/radio-harness.js +0 -272
- package/esm2015/radio/testing/testing.externs.js +0 -0
- package/esm2015/select/select-module.js +0 -37
- package/esm2015/select/select.externs.js +0 -6
- package/esm2015/select/select.js +0 -1138
- package/esm2015/select/testing/select-harness.js +0 -157
- package/esm2015/select/testing/testing.externs.js +0 -0
- package/esm2015/sidenav/drawer.js +0 -766
- package/esm2015/sidenav/index.js +0 -6
- package/esm2015/sidenav/sidenav-module.js +0 -45
- package/esm2015/sidenav/sidenav.externs.js +0 -6
- package/esm2015/sidenav/sidenav.js +0 -118
- package/esm2015/sidenav/testing/drawer-container-harness.js +0 -41
- package/esm2015/sidenav/testing/drawer-harness.js +0 -57
- package/esm2015/sidenav/testing/sidenav-container-harness.js +0 -41
- package/esm2015/sidenav/testing/sidenav-harness.js +0 -32
- package/esm2015/sidenav/testing/testing.externs.js +0 -0
- package/esm2015/slide-toggle/slide-toggle-module.js +0 -40
- package/esm2015/slide-toggle/slide-toggle-required-validator.js +0 -32
- package/esm2015/slide-toggle/slide-toggle.externs.js +0 -6
- package/esm2015/slide-toggle/slide-toggle.js +0 -236
- package/esm2015/slide-toggle/testing/slide-toggle-harness.js +0 -139
- package/esm2015/slide-toggle/testing/testing.externs.js +0 -0
- package/esm2015/slider/slider-module.js +0 -21
- package/esm2015/slider/slider.externs.js +0 -6
- package/esm2015/slider/slider.js +0 -788
- package/esm2015/slider/testing/slider-harness.js +0 -141
- package/esm2015/slider/testing/testing.externs.js +0 -0
- package/esm2015/snack-bar/simple-snack-bar.js +0 -45
- package/esm2015/snack-bar/snack-bar-container.js +0 -224
- package/esm2015/snack-bar/snack-bar-module.js +0 -32
- package/esm2015/snack-bar/snack-bar-ref.js +0 -90
- package/esm2015/snack-bar/snack-bar.externs.js +0 -6
- package/esm2015/snack-bar/snack-bar.js +0 -265
- package/esm2015/snack-bar/testing/snack-bar-harness.js +0 -142
- package/esm2015/snack-bar/testing/testing.externs.js +0 -0
- package/esm2015/sort/sort-header-intl.js +0 -41
- package/esm2015/sort/sort-header.js +0 -268
- package/esm2015/sort/sort-module.js +0 -24
- package/esm2015/sort/sort.externs.js +0 -6
- package/esm2015/sort/sort.js +0 -140
- package/esm2015/sort/testing/sort-harness.js +0 -41
- package/esm2015/sort/testing/sort-header-harness.js +0 -67
- package/esm2015/sort/testing/testing.externs.js +0 -0
- package/esm2015/stepper/step-content.js +0 -25
- package/esm2015/stepper/step-header.js +0 -108
- package/esm2015/stepper/step-label.js +0 -17
- package/esm2015/stepper/stepper-button.js +0 -36
- package/esm2015/stepper/stepper-icon.js +0 -28
- package/esm2015/stepper/stepper-intl.js +0 -37
- package/esm2015/stepper/stepper-module.js +0 -61
- package/esm2015/stepper/stepper.externs.js +0 -6
- package/esm2015/stepper/stepper.js +0 -187
- package/esm2015/stepper/testing/step-harness.js +0 -111
- package/esm2015/stepper/testing/stepper-button-harnesses.js +0 -55
- package/esm2015/stepper/testing/stepper-harness.js +0 -57
- package/esm2015/stepper/testing/testing.externs.js +0 -0
- package/esm2015/table/cell.js +0 -114
- package/esm2015/table/row.js +0 -116
- package/esm2015/table/table-data-source.js +0 -312
- package/esm2015/table/table-module.js +0 -50
- package/esm2015/table/table.externs.js +0 -6
- package/esm2015/table/table.js +0 -63
- package/esm2015/table/testing/cell-harness.js +0 -77
- package/esm2015/table/testing/row-harness.js +0 -91
- package/esm2015/table/testing/table-harness.js +0 -99
- package/esm2015/table/testing/testing.externs.js +0 -0
- package/esm2015/table/text-column.js +0 -44
- package/esm2015/tabs/index.js +0 -9
- package/esm2015/tabs/ink-bar.js +0 -87
- package/esm2015/tabs/paginated-tab-header.js +0 -477
- package/esm2015/tabs/public-api.js +0 -20
- package/esm2015/tabs/tab-body.js +0 -212
- package/esm2015/tabs/tab-content.js +0 -31
- package/esm2015/tabs/tab-group.js +0 -357
- package/esm2015/tabs/tab-header.js +0 -94
- package/esm2015/tabs/tab-label-wrapper.js +0 -47
- package/esm2015/tabs/tab-label.js +0 -25
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -241
- package/esm2015/tabs/tab.js +0 -106
- package/esm2015/tabs/tabs-module.js +0 -60
- package/esm2015/tabs/tabs.externs.js +0 -6
- package/esm2015/tabs/testing/tab-group-harness.js +0 -65
- package/esm2015/tabs/testing/tab-harness.js +0 -85
- package/esm2015/tabs/testing/tab-link-harness.js +0 -51
- package/esm2015/tabs/testing/tab-nav-bar-harness.js +0 -61
- package/esm2015/tabs/testing/testing.externs.js +0 -0
- package/esm2015/toolbar/testing/testing.externs.js +0 -0
- package/esm2015/toolbar/testing/toolbar-harness.js +0 -47
- package/esm2015/toolbar/toolbar-module.js +0 -20
- package/esm2015/toolbar/toolbar.externs.js +0 -6
- package/esm2015/toolbar/toolbar.js +0 -91
- package/esm2015/tooltip/testing/testing.externs.js +0 -0
- package/esm2015/tooltip/testing/tooltip-harness.js +0 -68
- package/esm2015/tooltip/tooltip-module.js +0 -31
- package/esm2015/tooltip/tooltip.externs.js +0 -6
- package/esm2015/tooltip/tooltip.js +0 -737
- package/esm2015/tree/node.js +0 -131
- package/esm2015/tree/outlet.js +0 -33
- package/esm2015/tree/padding.js +0 -31
- package/esm2015/tree/testing/node-harness.js +0 -84
- package/esm2015/tree/testing/testing.externs.js +0 -0
- package/esm2015/tree/testing/tree-harness.js +0 -129
- package/esm2015/tree/toggle.js +0 -32
- package/esm2015/tree/tree-module.js +0 -34
- package/esm2015/tree/tree.externs.js +0 -6
- package/esm2015/tree/tree.js +0 -43
- package/expansion/index.metadata.json +0 -1
- package/fesm2015/autocomplete/testing.js +0 -147
- package/fesm2015/autocomplete/testing.js.map +0 -1
- package/fesm2015/autocomplete.js +0 -901
- package/fesm2015/autocomplete.js.map +0 -1
- package/fesm2015/badge/testing.js +0 -112
- package/fesm2015/badge/testing.js.map +0 -1
- package/fesm2015/badge.js +0 -265
- package/fesm2015/badge.js.map +0 -1
- package/fesm2015/bottom-sheet/testing.js +0 -67
- package/fesm2015/bottom-sheet/testing.js.map +0 -1
- package/fesm2015/bottom-sheet.js +0 -603
- package/fesm2015/bottom-sheet.js.map +0 -1
- package/fesm2015/button/testing.js +0 -91
- package/fesm2015/button/testing.js.map +0 -1
- package/fesm2015/button-toggle/testing.js +0 -211
- package/fesm2015/button-toggle/testing.js.map +0 -1
- package/fesm2015/button-toggle.js +0 -473
- package/fesm2015/button-toggle.js.map +0 -1
- package/fesm2015/button.js +0 -205
- package/fesm2015/button.js.map +0 -1
- package/fesm2015/card/testing.js +0 -79
- package/fesm2015/card/testing.js.map +0 -1
- package/fesm2015/card.js +0 -276
- package/fesm2015/card.js.map +0 -1
- package/fesm2015/checkbox/testing.js +0 -183
- package/fesm2015/checkbox/testing.js.map +0 -1
- package/fesm2015/checkbox.js +0 -476
- package/fesm2015/checkbox.js.map +0 -1
- package/fesm2015/chips/testing.js +0 -465
- package/fesm2015/chips/testing.js.map +0 -1
- package/fesm2015/chips.js +0 -1286
- package/fesm2015/chips.js.map +0 -1
- package/fesm2015/core/testing.js +0 -150
- package/fesm2015/core/testing.js.map +0 -1
- package/fesm2015/core.js +0 -1692
- package/fesm2015/core.js.map +0 -1
- package/fesm2015/datepicker/testing.js +0 -692
- package/fesm2015/datepicker/testing.js.map +0 -1
- package/fesm2015/datepicker.js +0 -3745
- package/fesm2015/datepicker.js.map +0 -1
- package/fesm2015/dialog/testing.js +0 -130
- package/fesm2015/dialog/testing.js.map +0 -1
- package/fesm2015/dialog.js +0 -1127
- package/fesm2015/dialog.js.map +0 -1
- package/fesm2015/divider/testing.js +0 -54
- package/fesm2015/divider/testing.js.map +0 -1
- package/fesm2015/divider.js +0 -76
- package/fesm2015/divider.js.map +0 -1
- package/fesm2015/expansion/testing.js +0 -209
- package/fesm2015/expansion/testing.js.map +0 -1
- package/fesm2015/expansion.js +0 -600
- package/fesm2015/expansion.js.map +0 -1
- package/fesm2015/form-field/testing/control.js +0 -26
- package/fesm2015/form-field/testing/control.js.map +0 -1
- package/fesm2015/form-field/testing.js +0 -246
- package/fesm2015/form-field/testing.js.map +0 -1
- package/fesm2015/form-field.js +0 -757
- package/fesm2015/form-field.js.map +0 -1
- package/fesm2015/grid-list/testing.js +0 -183
- package/fesm2015/grid-list/testing.js.map +0 -1
- package/fesm2015/grid-list.js +0 -680
- package/fesm2015/grid-list.js.map +0 -1
- package/fesm2015/icon/testing.js +0 -171
- package/fesm2015/icon/testing.js.map +0 -1
- package/fesm2015/icon.js +0 -1012
- package/fesm2015/icon.js.map +0 -1
- package/fesm2015/input/testing.js +0 -318
- package/fesm2015/input/testing.js.map +0 -1
- package/fesm2015/input.js +0 -506
- package/fesm2015/input.js.map +0 -1
- package/fesm2015/list/testing.js +0 -529
- package/fesm2015/list/testing.js.map +0 -1
- package/fesm2015/list.js +0 -876
- package/fesm2015/list.js.map +0 -1
- package/fesm2015/material.js +0 -16
- package/fesm2015/material.js.map +0 -1
- package/fesm2015/menu/testing.js +0 -250
- package/fesm2015/menu/testing.js.map +0 -1
- package/fesm2015/menu.js +0 -1292
- package/fesm2015/menu.js.map +0 -1
- package/fesm2015/paginator/testing.js +0 -133
- package/fesm2015/paginator/testing.js.map +0 -1
- package/fesm2015/paginator.js +0 -366
- package/fesm2015/paginator.js.map +0 -1
- package/fesm2015/progress-bar/testing.js +0 -66
- package/fesm2015/progress-bar/testing.js.map +0 -1
- package/fesm2015/progress-bar.js +0 -211
- package/fesm2015/progress-bar.js.map +0 -1
- package/fesm2015/progress-spinner/testing.js +0 -67
- package/fesm2015/progress-spinner/testing.js.map +0 -1
- package/fesm2015/progress-spinner.js +0 -313
- package/fesm2015/progress-spinner.js.map +0 -1
- package/fesm2015/radio/testing.js +0 -299
- package/fesm2015/radio/testing.js.map +0 -1
- package/fesm2015/radio.js +0 -578
- package/fesm2015/radio.js.map +0 -1
- package/fesm2015/select/testing.js +0 -184
- package/fesm2015/select/testing.js.map +0 -1
- package/fesm2015/select.js +0 -1269
- package/fesm2015/select.js.map +0 -1
- package/fesm2015/sidenav/testing.js +0 -231
- package/fesm2015/sidenav/testing.js.map +0 -1
- package/fesm2015/sidenav.js +0 -965
- package/fesm2015/sidenav.js.map +0 -1
- package/fesm2015/slide-toggle/testing.js +0 -166
- package/fesm2015/slide-toggle/testing.js.map +0 -1
- package/fesm2015/slide-toggle.js +0 -329
- package/fesm2015/slide-toggle.js.map +0 -1
- package/fesm2015/slider/testing.js +0 -160
- package/fesm2015/slider/testing.js.map +0 -1
- package/fesm2015/slider.js +0 -820
- package/fesm2015/slider.js.map +0 -1
- package/fesm2015/snack-bar/testing.js +0 -169
- package/fesm2015/snack-bar/testing.js.map +0 -1
- package/fesm2015/snack-bar.js +0 -713
- package/fesm2015/snack-bar.js.map +0 -1
- package/fesm2015/sort/testing.js +0 -124
- package/fesm2015/sort/testing.js.map +0 -1
- package/fesm2015/sort.js +0 -587
- package/fesm2015/sort.js.map +0 -1
- package/fesm2015/stepper/testing.js +0 -237
- package/fesm2015/stepper/testing.js.map +0 -1
- package/fesm2015/stepper.js +0 -519
- package/fesm2015/stepper.js.map +0 -1
- package/fesm2015/table/testing.js +0 -280
- package/fesm2015/table/testing.js.map +0 -1
- package/fesm2015/table.js +0 -701
- package/fesm2015/table.js.map +0 -1
- package/fesm2015/tabs/testing.js +0 -273
- package/fesm2015/tabs/testing.js.map +0 -1
- package/fesm2015/tabs.js +0 -1746
- package/fesm2015/tabs.js.map +0 -1
- package/fesm2015/toolbar/testing.js +0 -74
- package/fesm2015/toolbar/testing.js.map +0 -1
- package/fesm2015/toolbar.js +0 -123
- package/fesm2015/toolbar.js.map +0 -1
- package/fesm2015/tooltip/testing.js +0 -95
- package/fesm2015/tooltip/testing.js.map +0 -1
- package/fesm2015/tooltip.js +0 -802
- package/fesm2015/tooltip.js.map +0 -1
- package/fesm2015/tree/testing.js +0 -237
- package/fesm2015/tree/testing.js.map +0 -1
- package/fesm2015/tree.js +0 -479
- package/fesm2015/tree.js.map +0 -1
- package/form-field/index.metadata.json +0 -1
- package/grid-list/index.metadata.json +0 -1
- package/icon/index.metadata.json +0 -1
- package/icon/testing/index.metadata.json +0 -1
- package/input/autosize.d.ts +0 -23
- package/input/index.metadata.json +0 -1
- package/list/index.metadata.json +0 -1
- package/menu/index.metadata.json +0 -1
- package/paginator/index.metadata.json +0 -1
- package/progress-bar/index.metadata.json +0 -1
- package/progress-spinner/index.metadata.json +0 -1
- package/radio/index.metadata.json +0 -1
- package/select/index.metadata.json +0 -1
- package/sidenav/index.metadata.json +0 -1
- package/slide-toggle/index.metadata.json +0 -1
- package/slider/index.metadata.json +0 -1
- package/snack-bar/index.metadata.json +0 -1
- package/sort/index.metadata.json +0 -1
- package/stepper/index.metadata.json +0 -1
- package/table/index.metadata.json +0 -1
- package/tabs/index.metadata.json +0 -1
- package/toolbar/index.metadata.json +0 -1
- package/tooltip/index.metadata.json +0 -1
- package/tree/index.metadata.json +0 -1
|
@@ -0,0 +1,1354 @@
|
|
|
1
|
+
import { SPACE, BACKSPACE, DELETE, TAB, hasModifierKey, ENTER } from '@angular/cdk/keycodes';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, Directive, EventEmitter, Optional, Inject, Attribute, ContentChild, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, Self, ContentChildren, NgModule } from '@angular/core';
|
|
4
|
+
import * as i3 from '@angular/material/core';
|
|
5
|
+
import { mixinTabIndex, mixinColor, mixinDisableRipple, RippleRenderer, MAT_RIPPLE_GLOBAL_OPTIONS, mixinErrorState, MatCommonModule, ErrorStateMatcher } from '@angular/material/core';
|
|
6
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
7
|
+
import { DOCUMENT } from '@angular/common';
|
|
8
|
+
import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
|
|
9
|
+
import { Subject, merge } from 'rxjs';
|
|
10
|
+
import { take, takeUntil, startWith } from 'rxjs/operators';
|
|
11
|
+
import * as i1 from '@angular/cdk/platform';
|
|
12
|
+
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
13
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
14
|
+
import * as i2 from '@angular/forms';
|
|
15
|
+
import { Validators } from '@angular/forms';
|
|
16
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
17
|
+
import * as i1$1 from '@angular/cdk/bidi';
|
|
18
|
+
|
|
19
|
+
/** Event object emitted by MatChip when selected or deselected. */
|
|
20
|
+
class MatChipSelectionChange {
|
|
21
|
+
constructor(
|
|
22
|
+
/** Reference to the chip that emitted the event. */
|
|
23
|
+
source,
|
|
24
|
+
/** Whether the chip that emitted the event is selected. */
|
|
25
|
+
selected,
|
|
26
|
+
/** Whether the selection change was a result of a user interaction. */
|
|
27
|
+
isUserInput = false) {
|
|
28
|
+
this.source = source;
|
|
29
|
+
this.selected = selected;
|
|
30
|
+
this.isUserInput = isUserInput;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Injection token that can be used to reference instances of `MatChipRemove`. It serves as
|
|
35
|
+
* alternative token to the actual `MatChipRemove` class which could cause unnecessary
|
|
36
|
+
* retention of the class and its directive metadata.
|
|
37
|
+
*/
|
|
38
|
+
const MAT_CHIP_REMOVE = new InjectionToken('MatChipRemove');
|
|
39
|
+
/**
|
|
40
|
+
* Injection token that can be used to reference instances of `MatChipAvatar`. It serves as
|
|
41
|
+
* alternative token to the actual `MatChipAvatar` class which could cause unnecessary
|
|
42
|
+
* retention of the class and its directive metadata.
|
|
43
|
+
*/
|
|
44
|
+
const MAT_CHIP_AVATAR = new InjectionToken('MatChipAvatar');
|
|
45
|
+
/**
|
|
46
|
+
* Injection token that can be used to reference instances of `MatChipTrailingIcon`. It serves as
|
|
47
|
+
* alternative token to the actual `MatChipTrailingIcon` class which could cause unnecessary
|
|
48
|
+
* retention of the class and its directive metadata.
|
|
49
|
+
*/
|
|
50
|
+
const MAT_CHIP_TRAILING_ICON = new InjectionToken('MatChipTrailingIcon');
|
|
51
|
+
// Boilerplate for applying mixins to MatChip.
|
|
52
|
+
/** @docs-private */
|
|
53
|
+
class MatChipBase {
|
|
54
|
+
constructor(_elementRef) {
|
|
55
|
+
this._elementRef = _elementRef;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const _MatChipMixinBase = mixinTabIndex(mixinColor(mixinDisableRipple(MatChipBase), 'primary'), -1);
|
|
59
|
+
/**
|
|
60
|
+
* Dummy directive to add CSS class to chip avatar.
|
|
61
|
+
* @docs-private
|
|
62
|
+
*/
|
|
63
|
+
class MatChipAvatar {
|
|
64
|
+
}
|
|
65
|
+
MatChipAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
66
|
+
MatChipAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatChipAvatar, selector: "mat-chip-avatar, [matChipAvatar]", host: { classAttribute: "mat-chip-avatar" }, providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }], ngImport: i0 });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipAvatar, decorators: [{
|
|
68
|
+
type: Directive,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: 'mat-chip-avatar, [matChipAvatar]',
|
|
71
|
+
host: { 'class': 'mat-chip-avatar' },
|
|
72
|
+
providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }]
|
|
73
|
+
}]
|
|
74
|
+
}] });
|
|
75
|
+
/**
|
|
76
|
+
* Dummy directive to add CSS class to chip trailing icon.
|
|
77
|
+
* @docs-private
|
|
78
|
+
*/
|
|
79
|
+
class MatChipTrailingIcon {
|
|
80
|
+
}
|
|
81
|
+
MatChipTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
82
|
+
MatChipTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatChipTrailingIcon, selector: "mat-chip-trailing-icon, [matChipTrailingIcon]", host: { classAttribute: "mat-chip-trailing-icon" }, providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }], ngImport: i0 });
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipTrailingIcon, decorators: [{
|
|
84
|
+
type: Directive,
|
|
85
|
+
args: [{
|
|
86
|
+
selector: 'mat-chip-trailing-icon, [matChipTrailingIcon]',
|
|
87
|
+
host: { 'class': 'mat-chip-trailing-icon' },
|
|
88
|
+
providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }],
|
|
89
|
+
}]
|
|
90
|
+
}] });
|
|
91
|
+
/**
|
|
92
|
+
* Material design styled Chip component. Used inside the MatChipList component.
|
|
93
|
+
*/
|
|
94
|
+
class MatChip extends _MatChipMixinBase {
|
|
95
|
+
constructor(elementRef, _ngZone, platform, globalRippleOptions, _changeDetectorRef, _document, animationMode, tabIndex) {
|
|
96
|
+
super(elementRef);
|
|
97
|
+
this._ngZone = _ngZone;
|
|
98
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
99
|
+
/** Whether the chip has focus. */
|
|
100
|
+
this._hasFocus = false;
|
|
101
|
+
/** Whether the chip list is selectable */
|
|
102
|
+
this.chipListSelectable = true;
|
|
103
|
+
/** Whether the chip list is in multi-selection mode. */
|
|
104
|
+
this._chipListMultiple = false;
|
|
105
|
+
/** Whether the chip list as a whole is disabled. */
|
|
106
|
+
this._chipListDisabled = false;
|
|
107
|
+
this._selected = false;
|
|
108
|
+
this._selectable = true;
|
|
109
|
+
this._disabled = false;
|
|
110
|
+
this._removable = true;
|
|
111
|
+
/** Emits when the chip is focused. */
|
|
112
|
+
this._onFocus = new Subject();
|
|
113
|
+
/** Emits when the chip is blured. */
|
|
114
|
+
this._onBlur = new Subject();
|
|
115
|
+
/** Emitted when the chip is selected or deselected. */
|
|
116
|
+
this.selectionChange = new EventEmitter();
|
|
117
|
+
/** Emitted when the chip is destroyed. */
|
|
118
|
+
this.destroyed = new EventEmitter();
|
|
119
|
+
/** Emitted when a chip is to be removed. */
|
|
120
|
+
this.removed = new EventEmitter();
|
|
121
|
+
this._addHostClassName();
|
|
122
|
+
// Dynamically create the ripple target, append it within the chip, and use it as the
|
|
123
|
+
// chip's ripple target. Adding the class '.mat-chip-ripple' ensures that it will have
|
|
124
|
+
// the proper styles.
|
|
125
|
+
this._chipRippleTarget = _document.createElement('div');
|
|
126
|
+
this._chipRippleTarget.classList.add('mat-chip-ripple');
|
|
127
|
+
this._elementRef.nativeElement.appendChild(this._chipRippleTarget);
|
|
128
|
+
this._chipRipple = new RippleRenderer(this, _ngZone, this._chipRippleTarget, platform);
|
|
129
|
+
this._chipRipple.setupTriggerEvents(elementRef);
|
|
130
|
+
this.rippleConfig = globalRippleOptions || {};
|
|
131
|
+
this._animationsDisabled = animationMode === 'NoopAnimations';
|
|
132
|
+
this.tabIndex = tabIndex != null ? (parseInt(tabIndex) || -1) : -1;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Whether ripples are disabled on interaction
|
|
136
|
+
* @docs-private
|
|
137
|
+
*/
|
|
138
|
+
get rippleDisabled() {
|
|
139
|
+
return this.disabled || this.disableRipple || this._animationsDisabled ||
|
|
140
|
+
!!this.rippleConfig.disabled;
|
|
141
|
+
}
|
|
142
|
+
/** Whether the chip is selected. */
|
|
143
|
+
get selected() { return this._selected; }
|
|
144
|
+
set selected(value) {
|
|
145
|
+
const coercedValue = coerceBooleanProperty(value);
|
|
146
|
+
if (coercedValue !== this._selected) {
|
|
147
|
+
this._selected = coercedValue;
|
|
148
|
+
this._dispatchSelectionChange();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/** The value of the chip. Defaults to the content inside `<mat-chip>` tags. */
|
|
152
|
+
get value() {
|
|
153
|
+
return this._value !== undefined
|
|
154
|
+
? this._value
|
|
155
|
+
: this._elementRef.nativeElement.textContent;
|
|
156
|
+
}
|
|
157
|
+
set value(value) { this._value = value; }
|
|
158
|
+
/**
|
|
159
|
+
* Whether or not the chip is selectable. When a chip is not selectable,
|
|
160
|
+
* changes to its selected state are always ignored. By default a chip is
|
|
161
|
+
* selectable, and it becomes non-selectable if its parent chip list is
|
|
162
|
+
* not selectable.
|
|
163
|
+
*/
|
|
164
|
+
get selectable() { return this._selectable && this.chipListSelectable; }
|
|
165
|
+
set selectable(value) {
|
|
166
|
+
this._selectable = coerceBooleanProperty(value);
|
|
167
|
+
}
|
|
168
|
+
/** Whether the chip is disabled. */
|
|
169
|
+
get disabled() { return this._chipListDisabled || this._disabled; }
|
|
170
|
+
set disabled(value) {
|
|
171
|
+
this._disabled = coerceBooleanProperty(value);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Determines whether or not the chip displays the remove styling and emits (removed) events.
|
|
175
|
+
*/
|
|
176
|
+
get removable() { return this._removable; }
|
|
177
|
+
set removable(value) {
|
|
178
|
+
this._removable = coerceBooleanProperty(value);
|
|
179
|
+
}
|
|
180
|
+
/** The ARIA selected applied to the chip. */
|
|
181
|
+
get ariaSelected() {
|
|
182
|
+
// Remove the `aria-selected` when the chip is deselected in single-selection mode, because
|
|
183
|
+
// it adds noise to NVDA users where "not selected" will be read out for each chip.
|
|
184
|
+
return this.selectable && (this._chipListMultiple || this.selected) ?
|
|
185
|
+
this.selected.toString() : null;
|
|
186
|
+
}
|
|
187
|
+
_addHostClassName() {
|
|
188
|
+
const basicChipAttrName = 'mat-basic-chip';
|
|
189
|
+
const element = this._elementRef.nativeElement;
|
|
190
|
+
if (element.hasAttribute(basicChipAttrName) ||
|
|
191
|
+
element.tagName.toLowerCase() === basicChipAttrName) {
|
|
192
|
+
element.classList.add(basicChipAttrName);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
element.classList.add('mat-standard-chip');
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
ngOnDestroy() {
|
|
200
|
+
this.destroyed.emit({ chip: this });
|
|
201
|
+
this._chipRipple._removeTriggerEvents();
|
|
202
|
+
}
|
|
203
|
+
/** Selects the chip. */
|
|
204
|
+
select() {
|
|
205
|
+
if (!this._selected) {
|
|
206
|
+
this._selected = true;
|
|
207
|
+
this._dispatchSelectionChange();
|
|
208
|
+
this._changeDetectorRef.markForCheck();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/** Deselects the chip. */
|
|
212
|
+
deselect() {
|
|
213
|
+
if (this._selected) {
|
|
214
|
+
this._selected = false;
|
|
215
|
+
this._dispatchSelectionChange();
|
|
216
|
+
this._changeDetectorRef.markForCheck();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/** Select this chip and emit selected event */
|
|
220
|
+
selectViaInteraction() {
|
|
221
|
+
if (!this._selected) {
|
|
222
|
+
this._selected = true;
|
|
223
|
+
this._dispatchSelectionChange(true);
|
|
224
|
+
this._changeDetectorRef.markForCheck();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
/** Toggles the current selected state of this chip. */
|
|
228
|
+
toggleSelected(isUserInput = false) {
|
|
229
|
+
this._selected = !this.selected;
|
|
230
|
+
this._dispatchSelectionChange(isUserInput);
|
|
231
|
+
this._changeDetectorRef.markForCheck();
|
|
232
|
+
return this.selected;
|
|
233
|
+
}
|
|
234
|
+
/** Allows for programmatic focusing of the chip. */
|
|
235
|
+
focus() {
|
|
236
|
+
if (!this._hasFocus) {
|
|
237
|
+
this._elementRef.nativeElement.focus();
|
|
238
|
+
this._onFocus.next({ chip: this });
|
|
239
|
+
}
|
|
240
|
+
this._hasFocus = true;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Allows for programmatic removal of the chip. Called by the MatChipList when the DELETE or
|
|
244
|
+
* BACKSPACE keys are pressed.
|
|
245
|
+
*
|
|
246
|
+
* Informs any listeners of the removal request. Does not remove the chip from the DOM.
|
|
247
|
+
*/
|
|
248
|
+
remove() {
|
|
249
|
+
if (this.removable) {
|
|
250
|
+
this.removed.emit({ chip: this });
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/** Handles click events on the chip. */
|
|
254
|
+
_handleClick(event) {
|
|
255
|
+
if (this.disabled) {
|
|
256
|
+
event.preventDefault();
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
event.stopPropagation();
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
/** Handle custom key presses. */
|
|
263
|
+
_handleKeydown(event) {
|
|
264
|
+
if (this.disabled) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
switch (event.keyCode) {
|
|
268
|
+
case DELETE:
|
|
269
|
+
case BACKSPACE:
|
|
270
|
+
// If we are removable, remove the focused chip
|
|
271
|
+
this.remove();
|
|
272
|
+
// Always prevent so page navigation does not occur
|
|
273
|
+
event.preventDefault();
|
|
274
|
+
break;
|
|
275
|
+
case SPACE:
|
|
276
|
+
// If we are selectable, toggle the focused chip
|
|
277
|
+
if (this.selectable) {
|
|
278
|
+
this.toggleSelected(true);
|
|
279
|
+
}
|
|
280
|
+
// Always prevent space from scrolling the page since the list has focus
|
|
281
|
+
event.preventDefault();
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
_blur() {
|
|
286
|
+
// When animations are enabled, Angular may end up removing the chip from the DOM a little
|
|
287
|
+
// earlier than usual, causing it to be blurred and throwing off the logic in the chip list
|
|
288
|
+
// that moves focus not the next item. To work around the issue, we defer marking the chip
|
|
289
|
+
// as not focused until the next time the zone stabilizes.
|
|
290
|
+
this._ngZone.onStable
|
|
291
|
+
.pipe(take(1))
|
|
292
|
+
.subscribe(() => {
|
|
293
|
+
this._ngZone.run(() => {
|
|
294
|
+
this._hasFocus = false;
|
|
295
|
+
this._onBlur.next({ chip: this });
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
_dispatchSelectionChange(isUserInput = false) {
|
|
300
|
+
this.selectionChange.emit({
|
|
301
|
+
source: this,
|
|
302
|
+
isUserInput,
|
|
303
|
+
selected: this._selected
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
MatChip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChip, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
308
|
+
MatChip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: { color: "color", disableRipple: "disableRipple", tabIndex: "tabIndex", selected: "selected", value: "value", selectable: "selectable", disabled: "disabled", removable: "removable" }, outputs: { selectionChange: "selectionChange", destroyed: "destroyed", removed: "removed" }, host: { attributes: { "role": "option" }, listeners: { "click": "_handleClick($event)", "keydown": "_handleKeydown($event)", "focus": "focus()", "blur": "_blur()" }, properties: { "attr.tabindex": "disabled ? null : tabIndex", "class.mat-chip-selected": "selected", "class.mat-chip-with-avatar": "avatar", "class.mat-chip-with-trailing-icon": "trailingIcon || removeIcon", "class.mat-chip-disabled": "disabled", "class._mat-animation-noopable": "_animationsDisabled", "attr.disabled": "disabled || null", "attr.aria-disabled": "disabled.toString()", "attr.aria-selected": "ariaSelected" }, classAttribute: "mat-chip mat-focus-indicator" }, queries: [{ propertyName: "avatar", first: true, predicate: MAT_CHIP_AVATAR, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: MAT_CHIP_TRAILING_ICON, descendants: true }, { propertyName: "removeIcon", first: true, predicate: MAT_CHIP_REMOVE, descendants: true }], exportAs: ["matChip"], usesInheritance: true, ngImport: i0 });
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChip, decorators: [{
|
|
310
|
+
type: Directive,
|
|
311
|
+
args: [{
|
|
312
|
+
selector: `mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]`,
|
|
313
|
+
inputs: ['color', 'disableRipple', 'tabIndex'],
|
|
314
|
+
exportAs: 'matChip',
|
|
315
|
+
host: {
|
|
316
|
+
'class': 'mat-chip mat-focus-indicator',
|
|
317
|
+
'[attr.tabindex]': 'disabled ? null : tabIndex',
|
|
318
|
+
'role': 'option',
|
|
319
|
+
'[class.mat-chip-selected]': 'selected',
|
|
320
|
+
'[class.mat-chip-with-avatar]': 'avatar',
|
|
321
|
+
'[class.mat-chip-with-trailing-icon]': 'trailingIcon || removeIcon',
|
|
322
|
+
'[class.mat-chip-disabled]': 'disabled',
|
|
323
|
+
'[class._mat-animation-noopable]': '_animationsDisabled',
|
|
324
|
+
'[attr.disabled]': 'disabled || null',
|
|
325
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
326
|
+
'[attr.aria-selected]': 'ariaSelected',
|
|
327
|
+
'(click)': '_handleClick($event)',
|
|
328
|
+
'(keydown)': '_handleKeydown($event)',
|
|
329
|
+
'(focus)': 'focus()',
|
|
330
|
+
'(blur)': '_blur()',
|
|
331
|
+
},
|
|
332
|
+
}]
|
|
333
|
+
}], ctorParameters: function () {
|
|
334
|
+
return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.Platform }, { type: undefined, decorators: [{
|
|
335
|
+
type: Optional
|
|
336
|
+
}, {
|
|
337
|
+
type: Inject,
|
|
338
|
+
args: [MAT_RIPPLE_GLOBAL_OPTIONS]
|
|
339
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
340
|
+
type: Inject,
|
|
341
|
+
args: [DOCUMENT]
|
|
342
|
+
}] }, { type: undefined, decorators: [{
|
|
343
|
+
type: Optional
|
|
344
|
+
}, {
|
|
345
|
+
type: Inject,
|
|
346
|
+
args: [ANIMATION_MODULE_TYPE]
|
|
347
|
+
}] }, { type: undefined, decorators: [{
|
|
348
|
+
type: Attribute,
|
|
349
|
+
args: ['tabindex']
|
|
350
|
+
}] }];
|
|
351
|
+
}, propDecorators: { avatar: [{
|
|
352
|
+
type: ContentChild,
|
|
353
|
+
args: [MAT_CHIP_AVATAR]
|
|
354
|
+
}], trailingIcon: [{
|
|
355
|
+
type: ContentChild,
|
|
356
|
+
args: [MAT_CHIP_TRAILING_ICON]
|
|
357
|
+
}], removeIcon: [{
|
|
358
|
+
type: ContentChild,
|
|
359
|
+
args: [MAT_CHIP_REMOVE]
|
|
360
|
+
}], selected: [{
|
|
361
|
+
type: Input
|
|
362
|
+
}], value: [{
|
|
363
|
+
type: Input
|
|
364
|
+
}], selectable: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], disabled: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}], removable: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], selectionChange: [{
|
|
371
|
+
type: Output
|
|
372
|
+
}], destroyed: [{
|
|
373
|
+
type: Output
|
|
374
|
+
}], removed: [{
|
|
375
|
+
type: Output
|
|
376
|
+
}] } });
|
|
377
|
+
/**
|
|
378
|
+
* Applies proper (click) support and adds styling for use with the Material Design "cancel" icon
|
|
379
|
+
* available at https://material.io/icons/#ic_cancel.
|
|
380
|
+
*
|
|
381
|
+
* Example:
|
|
382
|
+
*
|
|
383
|
+
* `<mat-chip>
|
|
384
|
+
* <mat-icon matChipRemove>cancel</mat-icon>
|
|
385
|
+
* </mat-chip>`
|
|
386
|
+
*
|
|
387
|
+
* You *may* use a custom icon, but you may need to override the `mat-chip-remove` positioning
|
|
388
|
+
* styles to properly center the icon within the chip.
|
|
389
|
+
*/
|
|
390
|
+
class MatChipRemove {
|
|
391
|
+
constructor(_parentChip, elementRef) {
|
|
392
|
+
this._parentChip = _parentChip;
|
|
393
|
+
if (elementRef.nativeElement.nodeName === 'BUTTON') {
|
|
394
|
+
elementRef.nativeElement.setAttribute('type', 'button');
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/** Calls the parent chip's public `remove()` method if applicable. */
|
|
398
|
+
_handleClick(event) {
|
|
399
|
+
const parentChip = this._parentChip;
|
|
400
|
+
if (parentChip.removable && !parentChip.disabled) {
|
|
401
|
+
parentChip.remove();
|
|
402
|
+
}
|
|
403
|
+
// We need to stop event propagation because otherwise the event will bubble up to the
|
|
404
|
+
// form field and cause the `onContainerClick` method to be invoked. This method would then
|
|
405
|
+
// reset the focused chip that has been focused after chip removal. Usually the parent
|
|
406
|
+
// the parent click listener of the `MatChip` would prevent propagation, but it can happen
|
|
407
|
+
// that the chip is being removed before the event bubbles up.
|
|
408
|
+
event.stopPropagation();
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
MatChipRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipRemove, deps: [{ token: MatChip }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
412
|
+
MatChipRemove.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatChipRemove, selector: "[matChipRemove]", host: { listeners: { "click": "_handleClick($event)" }, classAttribute: "mat-chip-remove mat-chip-trailing-icon" }, providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }], ngImport: i0 });
|
|
413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipRemove, decorators: [{
|
|
414
|
+
type: Directive,
|
|
415
|
+
args: [{
|
|
416
|
+
selector: '[matChipRemove]',
|
|
417
|
+
host: {
|
|
418
|
+
'class': 'mat-chip-remove mat-chip-trailing-icon',
|
|
419
|
+
'(click)': '_handleClick($event)',
|
|
420
|
+
},
|
|
421
|
+
providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }],
|
|
422
|
+
}]
|
|
423
|
+
}], ctorParameters: function () { return [{ type: MatChip }, { type: i0.ElementRef }]; } });
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @license
|
|
427
|
+
* Copyright Google LLC All Rights Reserved.
|
|
428
|
+
*
|
|
429
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
430
|
+
* found in the LICENSE file at https://angular.io/license
|
|
431
|
+
*/
|
|
432
|
+
/** Injection token to be used to override the default options for the chips module. */
|
|
433
|
+
const MAT_CHIPS_DEFAULT_OPTIONS = new InjectionToken('mat-chips-default-options');
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @license
|
|
437
|
+
* Copyright Google LLC All Rights Reserved.
|
|
438
|
+
*
|
|
439
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
440
|
+
* found in the LICENSE file at https://angular.io/license
|
|
441
|
+
*/
|
|
442
|
+
// Increasing integer for generating unique ids.
|
|
443
|
+
let nextUniqueId$1 = 0;
|
|
444
|
+
/**
|
|
445
|
+
* Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.
|
|
446
|
+
* May be placed inside or outside of an `<mat-chip-list>`.
|
|
447
|
+
*/
|
|
448
|
+
class MatChipInput {
|
|
449
|
+
constructor(_elementRef, _defaultOptions) {
|
|
450
|
+
this._elementRef = _elementRef;
|
|
451
|
+
this._defaultOptions = _defaultOptions;
|
|
452
|
+
/** Whether the control is focused. */
|
|
453
|
+
this.focused = false;
|
|
454
|
+
this._addOnBlur = false;
|
|
455
|
+
/**
|
|
456
|
+
* The list of key codes that will trigger a chipEnd event.
|
|
457
|
+
*
|
|
458
|
+
* Defaults to `[ENTER]`.
|
|
459
|
+
*/
|
|
460
|
+
this.separatorKeyCodes = this._defaultOptions.separatorKeyCodes;
|
|
461
|
+
/** Emitted when a chip is to be added. */
|
|
462
|
+
this.chipEnd = new EventEmitter();
|
|
463
|
+
/** The input's placeholder text. */
|
|
464
|
+
this.placeholder = '';
|
|
465
|
+
/** Unique id for the input. */
|
|
466
|
+
this.id = `mat-chip-list-input-${nextUniqueId$1++}`;
|
|
467
|
+
this._disabled = false;
|
|
468
|
+
this.inputElement = this._elementRef.nativeElement;
|
|
469
|
+
}
|
|
470
|
+
/** Register input for chip list */
|
|
471
|
+
set chipList(value) {
|
|
472
|
+
if (value) {
|
|
473
|
+
this._chipList = value;
|
|
474
|
+
this._chipList.registerInput(this);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Whether or not the chipEnd event will be emitted when the input is blurred.
|
|
479
|
+
*/
|
|
480
|
+
get addOnBlur() { return this._addOnBlur; }
|
|
481
|
+
set addOnBlur(value) { this._addOnBlur = coerceBooleanProperty(value); }
|
|
482
|
+
/** Whether the input is disabled. */
|
|
483
|
+
get disabled() { return this._disabled || (this._chipList && this._chipList.disabled); }
|
|
484
|
+
set disabled(value) { this._disabled = coerceBooleanProperty(value); }
|
|
485
|
+
/** Whether the input is empty. */
|
|
486
|
+
get empty() { return !this.inputElement.value; }
|
|
487
|
+
ngOnChanges() {
|
|
488
|
+
this._chipList.stateChanges.next();
|
|
489
|
+
}
|
|
490
|
+
ngOnDestroy() {
|
|
491
|
+
this.chipEnd.complete();
|
|
492
|
+
}
|
|
493
|
+
ngAfterContentInit() {
|
|
494
|
+
this._focusLastChipOnBackspace = this.empty;
|
|
495
|
+
}
|
|
496
|
+
/** Utility method to make host definition/tests more clear. */
|
|
497
|
+
_keydown(event) {
|
|
498
|
+
if (event) {
|
|
499
|
+
// Allow the user's focus to escape when they're tabbing forward. Note that we don't
|
|
500
|
+
// want to do this when going backwards, because focus should go back to the first chip.
|
|
501
|
+
if (event.keyCode === TAB && !hasModifierKey(event, 'shiftKey')) {
|
|
502
|
+
this._chipList._allowFocusEscape();
|
|
503
|
+
}
|
|
504
|
+
// To prevent the user from accidentally deleting chips when pressing BACKSPACE continuously,
|
|
505
|
+
// We focus the last chip on backspace only after the user has released the backspace button,
|
|
506
|
+
// and the input is empty (see behaviour in _keyup)
|
|
507
|
+
if (event.keyCode === BACKSPACE && this._focusLastChipOnBackspace) {
|
|
508
|
+
this._chipList._keyManager.setLastItemActive();
|
|
509
|
+
event.preventDefault();
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
this._focusLastChipOnBackspace = false;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
this._emitChipEnd(event);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Pass events to the keyboard manager. Available here for tests.
|
|
520
|
+
*/
|
|
521
|
+
_keyup(event) {
|
|
522
|
+
// Allow user to move focus to chips next time he presses backspace
|
|
523
|
+
if (!this._focusLastChipOnBackspace && event.keyCode === BACKSPACE && this.empty) {
|
|
524
|
+
this._focusLastChipOnBackspace = true;
|
|
525
|
+
event.preventDefault();
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
/** Checks to see if the blur should emit the (chipEnd) event. */
|
|
529
|
+
_blur() {
|
|
530
|
+
if (this.addOnBlur) {
|
|
531
|
+
this._emitChipEnd();
|
|
532
|
+
}
|
|
533
|
+
this.focused = false;
|
|
534
|
+
// Blur the chip list if it is not focused
|
|
535
|
+
if (!this._chipList.focused) {
|
|
536
|
+
this._chipList._blur();
|
|
537
|
+
}
|
|
538
|
+
this._chipList.stateChanges.next();
|
|
539
|
+
}
|
|
540
|
+
_focus() {
|
|
541
|
+
this.focused = true;
|
|
542
|
+
this._focusLastChipOnBackspace = this.empty;
|
|
543
|
+
this._chipList.stateChanges.next();
|
|
544
|
+
}
|
|
545
|
+
/** Checks to see if the (chipEnd) event needs to be emitted. */
|
|
546
|
+
_emitChipEnd(event) {
|
|
547
|
+
if (!this.inputElement.value && !!event) {
|
|
548
|
+
this._chipList._keydown(event);
|
|
549
|
+
}
|
|
550
|
+
if (!event || this._isSeparatorKey(event)) {
|
|
551
|
+
this.chipEnd.emit({
|
|
552
|
+
input: this.inputElement,
|
|
553
|
+
value: this.inputElement.value,
|
|
554
|
+
chipInput: this,
|
|
555
|
+
});
|
|
556
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
_onInput() {
|
|
560
|
+
// Let chip list know whenever the value changes.
|
|
561
|
+
this._chipList.stateChanges.next();
|
|
562
|
+
}
|
|
563
|
+
/** Focuses the input. */
|
|
564
|
+
focus(options) {
|
|
565
|
+
this.inputElement.focus(options);
|
|
566
|
+
}
|
|
567
|
+
/** Clears the input */
|
|
568
|
+
clear() {
|
|
569
|
+
this.inputElement.value = '';
|
|
570
|
+
this._focusLastChipOnBackspace = true;
|
|
571
|
+
}
|
|
572
|
+
/** Checks whether a keycode is one of the configured separators. */
|
|
573
|
+
_isSeparatorKey(event) {
|
|
574
|
+
return !hasModifierKey(event) && new Set(this.separatorKeyCodes).has(event.keyCode);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
MatChipInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipInput, deps: [{ token: i0.ElementRef }, { token: MAT_CHIPS_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });
|
|
578
|
+
MatChipInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatChipInput, selector: "input[matChipInputFor]", inputs: { chipList: ["matChipInputFor", "chipList"], addOnBlur: ["matChipInputAddOnBlur", "addOnBlur"], separatorKeyCodes: ["matChipInputSeparatorKeyCodes", "separatorKeyCodes"], placeholder: "placeholder", id: "id", disabled: "disabled" }, outputs: { chipEnd: "matChipInputTokenEnd" }, host: { listeners: { "keydown": "_keydown($event)", "keyup": "_keyup($event)", "blur": "_blur()", "focus": "_focus()", "input": "_onInput()" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null", "attr.aria-invalid": "_chipList && _chipList.ngControl ? _chipList.ngControl.invalid : null", "attr.aria-required": "_chipList && _chipList.required || null" }, classAttribute: "mat-chip-input mat-input-element" }, exportAs: ["matChipInput", "matChipInputFor"], usesOnChanges: true, ngImport: i0 });
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipInput, decorators: [{
|
|
580
|
+
type: Directive,
|
|
581
|
+
args: [{
|
|
582
|
+
selector: 'input[matChipInputFor]',
|
|
583
|
+
exportAs: 'matChipInput, matChipInputFor',
|
|
584
|
+
host: {
|
|
585
|
+
'class': 'mat-chip-input mat-input-element',
|
|
586
|
+
'(keydown)': '_keydown($event)',
|
|
587
|
+
'(keyup)': '_keyup($event)',
|
|
588
|
+
'(blur)': '_blur()',
|
|
589
|
+
'(focus)': '_focus()',
|
|
590
|
+
'(input)': '_onInput()',
|
|
591
|
+
'[id]': 'id',
|
|
592
|
+
'[attr.disabled]': 'disabled || null',
|
|
593
|
+
'[attr.placeholder]': 'placeholder || null',
|
|
594
|
+
'[attr.aria-invalid]': '_chipList && _chipList.ngControl ? _chipList.ngControl.invalid : null',
|
|
595
|
+
'[attr.aria-required]': '_chipList && _chipList.required || null',
|
|
596
|
+
}
|
|
597
|
+
}]
|
|
598
|
+
}], ctorParameters: function () {
|
|
599
|
+
return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
600
|
+
type: Inject,
|
|
601
|
+
args: [MAT_CHIPS_DEFAULT_OPTIONS]
|
|
602
|
+
}] }];
|
|
603
|
+
}, propDecorators: { chipList: [{
|
|
604
|
+
type: Input,
|
|
605
|
+
args: ['matChipInputFor']
|
|
606
|
+
}], addOnBlur: [{
|
|
607
|
+
type: Input,
|
|
608
|
+
args: ['matChipInputAddOnBlur']
|
|
609
|
+
}], separatorKeyCodes: [{
|
|
610
|
+
type: Input,
|
|
611
|
+
args: ['matChipInputSeparatorKeyCodes']
|
|
612
|
+
}], chipEnd: [{
|
|
613
|
+
type: Output,
|
|
614
|
+
args: ['matChipInputTokenEnd']
|
|
615
|
+
}], placeholder: [{
|
|
616
|
+
type: Input
|
|
617
|
+
}], id: [{
|
|
618
|
+
type: Input
|
|
619
|
+
}], disabled: [{
|
|
620
|
+
type: Input
|
|
621
|
+
}] } });
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @license
|
|
625
|
+
* Copyright Google LLC All Rights Reserved.
|
|
626
|
+
*
|
|
627
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
628
|
+
* found in the LICENSE file at https://angular.io/license
|
|
629
|
+
*/
|
|
630
|
+
// Boilerplate for applying mixins to MatChipList.
|
|
631
|
+
/** @docs-private */
|
|
632
|
+
const _MatChipListBase = mixinErrorState(class {
|
|
633
|
+
constructor(_defaultErrorStateMatcher, _parentForm, _parentFormGroup,
|
|
634
|
+
/** @docs-private */
|
|
635
|
+
ngControl) {
|
|
636
|
+
this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
|
|
637
|
+
this._parentForm = _parentForm;
|
|
638
|
+
this._parentFormGroup = _parentFormGroup;
|
|
639
|
+
this.ngControl = ngControl;
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
// Increasing integer for generating unique ids for chip-list components.
|
|
643
|
+
let nextUniqueId = 0;
|
|
644
|
+
/** Change event object that is emitted when the chip list value has changed. */
|
|
645
|
+
class MatChipListChange {
|
|
646
|
+
constructor(
|
|
647
|
+
/** Chip list that emitted the event. */
|
|
648
|
+
source,
|
|
649
|
+
/** Value of the chip list when the event was emitted. */
|
|
650
|
+
value) {
|
|
651
|
+
this.source = source;
|
|
652
|
+
this.value = value;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* A material design chips component (named ChipList for its similarity to the List component).
|
|
657
|
+
*/
|
|
658
|
+
class MatChipList extends _MatChipListBase {
|
|
659
|
+
constructor(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, ngControl) {
|
|
660
|
+
super(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);
|
|
661
|
+
this._elementRef = _elementRef;
|
|
662
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
663
|
+
this._dir = _dir;
|
|
664
|
+
/**
|
|
665
|
+
* Implemented as part of MatFormFieldControl.
|
|
666
|
+
* @docs-private
|
|
667
|
+
*/
|
|
668
|
+
this.controlType = 'mat-chip-list';
|
|
669
|
+
/**
|
|
670
|
+
* When a chip is destroyed, we store the index of the destroyed chip until the chips
|
|
671
|
+
* query list notifies about the update. This is necessary because we cannot determine an
|
|
672
|
+
* appropriate chip that should receive focus until the array of chips updated completely.
|
|
673
|
+
*/
|
|
674
|
+
this._lastDestroyedChipIndex = null;
|
|
675
|
+
/** Subject that emits when the component has been destroyed. */
|
|
676
|
+
this._destroyed = new Subject();
|
|
677
|
+
/** Uid of the chip list */
|
|
678
|
+
this._uid = `mat-chip-list-${nextUniqueId++}`;
|
|
679
|
+
/** Tab index for the chip list. */
|
|
680
|
+
this._tabIndex = 0;
|
|
681
|
+
/**
|
|
682
|
+
* User defined tab index.
|
|
683
|
+
* When it is not null, use user defined tab index. Otherwise use _tabIndex
|
|
684
|
+
*/
|
|
685
|
+
this._userTabIndex = null;
|
|
686
|
+
/** Function when touched */
|
|
687
|
+
this._onTouched = () => { };
|
|
688
|
+
/** Function when changed */
|
|
689
|
+
this._onChange = () => { };
|
|
690
|
+
this._multiple = false;
|
|
691
|
+
this._compareWith = (o1, o2) => o1 === o2;
|
|
692
|
+
this._disabled = false;
|
|
693
|
+
/** Orientation of the chip list. */
|
|
694
|
+
this.ariaOrientation = 'horizontal';
|
|
695
|
+
this._selectable = true;
|
|
696
|
+
/** Event emitted when the selected chip list value has been changed by the user. */
|
|
697
|
+
this.change = new EventEmitter();
|
|
698
|
+
/**
|
|
699
|
+
* Event that emits whenever the raw value of the chip-list changes. This is here primarily
|
|
700
|
+
* to facilitate the two-way binding for the `value` input.
|
|
701
|
+
* @docs-private
|
|
702
|
+
*/
|
|
703
|
+
this.valueChange = new EventEmitter();
|
|
704
|
+
if (this.ngControl) {
|
|
705
|
+
this.ngControl.valueAccessor = this;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
/** The array of selected chips inside chip list. */
|
|
709
|
+
get selected() {
|
|
710
|
+
var _a, _b;
|
|
711
|
+
return this.multiple ? (((_a = this._selectionModel) === null || _a === void 0 ? void 0 : _a.selected) || []) :
|
|
712
|
+
(_b = this._selectionModel) === null || _b === void 0 ? void 0 : _b.selected[0];
|
|
713
|
+
}
|
|
714
|
+
/** The ARIA role applied to the chip list. */
|
|
715
|
+
get role() { return this.empty ? null : 'listbox'; }
|
|
716
|
+
/** Whether the user should be allowed to select multiple chips. */
|
|
717
|
+
get multiple() { return this._multiple; }
|
|
718
|
+
set multiple(value) {
|
|
719
|
+
this._multiple = coerceBooleanProperty(value);
|
|
720
|
+
this._syncChipsState();
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* A function to compare the option values with the selected values. The first argument
|
|
724
|
+
* is a value from an option. The second is a value from the selection. A boolean
|
|
725
|
+
* should be returned.
|
|
726
|
+
*/
|
|
727
|
+
get compareWith() { return this._compareWith; }
|
|
728
|
+
set compareWith(fn) {
|
|
729
|
+
this._compareWith = fn;
|
|
730
|
+
if (this._selectionModel) {
|
|
731
|
+
// A different comparator means the selection could change.
|
|
732
|
+
this._initializeSelection();
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Implemented as part of MatFormFieldControl.
|
|
737
|
+
* @docs-private
|
|
738
|
+
*/
|
|
739
|
+
get value() { return this._value; }
|
|
740
|
+
set value(value) {
|
|
741
|
+
this.writeValue(value);
|
|
742
|
+
this._value = value;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Implemented as part of MatFormFieldControl.
|
|
746
|
+
* @docs-private
|
|
747
|
+
*/
|
|
748
|
+
get id() {
|
|
749
|
+
return this._chipInput ? this._chipInput.id : this._uid;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Implemented as part of MatFormFieldControl.
|
|
753
|
+
* @docs-private
|
|
754
|
+
*/
|
|
755
|
+
get required() {
|
|
756
|
+
var _a, _b, _c, _d;
|
|
757
|
+
return (_d = (_a = this._required) !== null && _a !== void 0 ? _a : (_c = (_b = this.ngControl) === null || _b === void 0 ? void 0 : _b.control) === null || _c === void 0 ? void 0 : _c.hasValidator(Validators.required)) !== null && _d !== void 0 ? _d : false;
|
|
758
|
+
}
|
|
759
|
+
set required(value) {
|
|
760
|
+
this._required = coerceBooleanProperty(value);
|
|
761
|
+
this.stateChanges.next();
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Implemented as part of MatFormFieldControl.
|
|
765
|
+
* @docs-private
|
|
766
|
+
*/
|
|
767
|
+
get placeholder() {
|
|
768
|
+
return this._chipInput ? this._chipInput.placeholder : this._placeholder;
|
|
769
|
+
}
|
|
770
|
+
set placeholder(value) {
|
|
771
|
+
this._placeholder = value;
|
|
772
|
+
this.stateChanges.next();
|
|
773
|
+
}
|
|
774
|
+
/** Whether any chips or the matChipInput inside of this chip-list has focus. */
|
|
775
|
+
get focused() {
|
|
776
|
+
return (this._chipInput && this._chipInput.focused) || this._hasFocusedChip();
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Implemented as part of MatFormFieldControl.
|
|
780
|
+
* @docs-private
|
|
781
|
+
*/
|
|
782
|
+
get empty() {
|
|
783
|
+
return (!this._chipInput || this._chipInput.empty) && (!this.chips || this.chips.length === 0);
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Implemented as part of MatFormFieldControl.
|
|
787
|
+
* @docs-private
|
|
788
|
+
*/
|
|
789
|
+
get shouldLabelFloat() { return !this.empty || this.focused; }
|
|
790
|
+
/**
|
|
791
|
+
* Implemented as part of MatFormFieldControl.
|
|
792
|
+
* @docs-private
|
|
793
|
+
*/
|
|
794
|
+
get disabled() { return this.ngControl ? !!this.ngControl.disabled : this._disabled; }
|
|
795
|
+
set disabled(value) {
|
|
796
|
+
this._disabled = coerceBooleanProperty(value);
|
|
797
|
+
this._syncChipsState();
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Whether or not this chip list is selectable. When a chip list is not selectable,
|
|
801
|
+
* the selected states for all the chips inside the chip list are always ignored.
|
|
802
|
+
*/
|
|
803
|
+
get selectable() { return this._selectable; }
|
|
804
|
+
set selectable(value) {
|
|
805
|
+
this._selectable = coerceBooleanProperty(value);
|
|
806
|
+
if (this.chips) {
|
|
807
|
+
this.chips.forEach(chip => chip.chipListSelectable = this._selectable);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
set tabIndex(value) {
|
|
811
|
+
this._userTabIndex = value;
|
|
812
|
+
this._tabIndex = value;
|
|
813
|
+
}
|
|
814
|
+
/** Combined stream of all of the child chips' selection change events. */
|
|
815
|
+
get chipSelectionChanges() {
|
|
816
|
+
return merge(...this.chips.map(chip => chip.selectionChange));
|
|
817
|
+
}
|
|
818
|
+
/** Combined stream of all of the child chips' focus change events. */
|
|
819
|
+
get chipFocusChanges() {
|
|
820
|
+
return merge(...this.chips.map(chip => chip._onFocus));
|
|
821
|
+
}
|
|
822
|
+
/** Combined stream of all of the child chips' blur change events. */
|
|
823
|
+
get chipBlurChanges() {
|
|
824
|
+
return merge(...this.chips.map(chip => chip._onBlur));
|
|
825
|
+
}
|
|
826
|
+
/** Combined stream of all of the child chips' remove change events. */
|
|
827
|
+
get chipRemoveChanges() {
|
|
828
|
+
return merge(...this.chips.map(chip => chip.destroyed));
|
|
829
|
+
}
|
|
830
|
+
ngAfterContentInit() {
|
|
831
|
+
this._keyManager = new FocusKeyManager(this.chips)
|
|
832
|
+
.withWrap()
|
|
833
|
+
.withVerticalOrientation()
|
|
834
|
+
.withHomeAndEnd()
|
|
835
|
+
.withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');
|
|
836
|
+
if (this._dir) {
|
|
837
|
+
this._dir.change
|
|
838
|
+
.pipe(takeUntil(this._destroyed))
|
|
839
|
+
.subscribe(dir => this._keyManager.withHorizontalOrientation(dir));
|
|
840
|
+
}
|
|
841
|
+
this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
842
|
+
this._allowFocusEscape();
|
|
843
|
+
});
|
|
844
|
+
// When the list changes, re-subscribe
|
|
845
|
+
this.chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
|
|
846
|
+
if (this.disabled) {
|
|
847
|
+
// Since this happens after the content has been
|
|
848
|
+
// checked, we need to defer it to the next tick.
|
|
849
|
+
Promise.resolve().then(() => {
|
|
850
|
+
this._syncChipsState();
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
this._resetChips();
|
|
854
|
+
// Reset chips selected/deselected status
|
|
855
|
+
this._initializeSelection();
|
|
856
|
+
// Check to see if we need to update our tab index
|
|
857
|
+
this._updateTabIndex();
|
|
858
|
+
// Check to see if we have a destroyed chip and need to refocus
|
|
859
|
+
this._updateFocusForDestroyedChips();
|
|
860
|
+
this.stateChanges.next();
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
ngOnInit() {
|
|
864
|
+
this._selectionModel = new SelectionModel(this.multiple, undefined, false);
|
|
865
|
+
this.stateChanges.next();
|
|
866
|
+
}
|
|
867
|
+
ngDoCheck() {
|
|
868
|
+
if (this.ngControl) {
|
|
869
|
+
// We need to re-evaluate this on every change detection cycle, because there are some
|
|
870
|
+
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
|
871
|
+
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
|
872
|
+
this.updateErrorState();
|
|
873
|
+
if (this.ngControl.disabled !== this._disabled) {
|
|
874
|
+
this.disabled = !!this.ngControl.disabled;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
ngOnDestroy() {
|
|
879
|
+
this._destroyed.next();
|
|
880
|
+
this._destroyed.complete();
|
|
881
|
+
this.stateChanges.complete();
|
|
882
|
+
this._dropSubscriptions();
|
|
883
|
+
}
|
|
884
|
+
/** Associates an HTML input element with this chip list. */
|
|
885
|
+
registerInput(inputElement) {
|
|
886
|
+
this._chipInput = inputElement;
|
|
887
|
+
// We use this attribute to match the chip list to its input in test harnesses.
|
|
888
|
+
// Set the attribute directly here to avoid "changed after checked" errors.
|
|
889
|
+
this._elementRef.nativeElement.setAttribute('data-mat-chip-input', inputElement.id);
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Implemented as part of MatFormFieldControl.
|
|
893
|
+
* @docs-private
|
|
894
|
+
*/
|
|
895
|
+
setDescribedByIds(ids) { this._ariaDescribedby = ids.join(' '); }
|
|
896
|
+
// Implemented as part of ControlValueAccessor.
|
|
897
|
+
writeValue(value) {
|
|
898
|
+
if (this.chips) {
|
|
899
|
+
this._setSelectionByValue(value, false);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
// Implemented as part of ControlValueAccessor.
|
|
903
|
+
registerOnChange(fn) {
|
|
904
|
+
this._onChange = fn;
|
|
905
|
+
}
|
|
906
|
+
// Implemented as part of ControlValueAccessor.
|
|
907
|
+
registerOnTouched(fn) {
|
|
908
|
+
this._onTouched = fn;
|
|
909
|
+
}
|
|
910
|
+
// Implemented as part of ControlValueAccessor.
|
|
911
|
+
setDisabledState(isDisabled) {
|
|
912
|
+
this.disabled = isDisabled;
|
|
913
|
+
this.stateChanges.next();
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Implemented as part of MatFormFieldControl.
|
|
917
|
+
* @docs-private
|
|
918
|
+
*/
|
|
919
|
+
onContainerClick(event) {
|
|
920
|
+
if (!this._originatesFromChip(event)) {
|
|
921
|
+
this.focus();
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Focuses the first non-disabled chip in this chip list, or the associated input when there
|
|
926
|
+
* are no eligible chips.
|
|
927
|
+
*/
|
|
928
|
+
focus(options) {
|
|
929
|
+
if (this.disabled) {
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
// TODO: ARIA says this should focus the first `selected` chip if any are selected.
|
|
933
|
+
// Focus on first element if there's no chipInput inside chip-list
|
|
934
|
+
if (this._chipInput && this._chipInput.focused) {
|
|
935
|
+
// do nothing
|
|
936
|
+
}
|
|
937
|
+
else if (this.chips.length > 0) {
|
|
938
|
+
this._keyManager.setFirstItemActive();
|
|
939
|
+
this.stateChanges.next();
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
this._focusInput(options);
|
|
943
|
+
this.stateChanges.next();
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
/** Attempt to focus an input if we have one. */
|
|
947
|
+
_focusInput(options) {
|
|
948
|
+
if (this._chipInput) {
|
|
949
|
+
this._chipInput.focus(options);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Pass events to the keyboard manager. Available here for tests.
|
|
954
|
+
*/
|
|
955
|
+
_keydown(event) {
|
|
956
|
+
const target = event.target;
|
|
957
|
+
if (target && target.classList.contains('mat-chip')) {
|
|
958
|
+
this._keyManager.onKeydown(event);
|
|
959
|
+
this.stateChanges.next();
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Check the tab index as you should not be allowed to focus an empty list.
|
|
964
|
+
*/
|
|
965
|
+
_updateTabIndex() {
|
|
966
|
+
// If we have 0 chips, we should not allow keyboard focus
|
|
967
|
+
this._tabIndex = this._userTabIndex || (this.chips.length === 0 ? -1 : 0);
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* If the amount of chips changed, we need to update the
|
|
971
|
+
* key manager state and focus the next closest chip.
|
|
972
|
+
*/
|
|
973
|
+
_updateFocusForDestroyedChips() {
|
|
974
|
+
// Move focus to the closest chip. If no other chips remain, focus the chip-list itself.
|
|
975
|
+
if (this._lastDestroyedChipIndex != null) {
|
|
976
|
+
if (this.chips.length) {
|
|
977
|
+
const newChipIndex = Math.min(this._lastDestroyedChipIndex, this.chips.length - 1);
|
|
978
|
+
this._keyManager.setActiveItem(newChipIndex);
|
|
979
|
+
}
|
|
980
|
+
else {
|
|
981
|
+
this.focus();
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
this._lastDestroyedChipIndex = null;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Utility to ensure all indexes are valid.
|
|
988
|
+
*
|
|
989
|
+
* @param index The index to be checked.
|
|
990
|
+
* @returns True if the index is valid for our list of chips.
|
|
991
|
+
*/
|
|
992
|
+
_isValidIndex(index) {
|
|
993
|
+
return index >= 0 && index < this.chips.length;
|
|
994
|
+
}
|
|
995
|
+
_setSelectionByValue(value, isUserInput = true) {
|
|
996
|
+
this._clearSelection();
|
|
997
|
+
this.chips.forEach(chip => chip.deselect());
|
|
998
|
+
if (Array.isArray(value)) {
|
|
999
|
+
value.forEach(currentValue => this._selectValue(currentValue, isUserInput));
|
|
1000
|
+
this._sortValues();
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
const correspondingChip = this._selectValue(value, isUserInput);
|
|
1004
|
+
// Shift focus to the active item. Note that we shouldn't do this in multiple
|
|
1005
|
+
// mode, because we don't know what chip the user interacted with last.
|
|
1006
|
+
if (correspondingChip) {
|
|
1007
|
+
if (isUserInput) {
|
|
1008
|
+
this._keyManager.setActiveItem(correspondingChip);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Finds and selects the chip based on its value.
|
|
1015
|
+
* @returns Chip that has the corresponding value.
|
|
1016
|
+
*/
|
|
1017
|
+
_selectValue(value, isUserInput = true) {
|
|
1018
|
+
const correspondingChip = this.chips.find(chip => {
|
|
1019
|
+
return chip.value != null && this._compareWith(chip.value, value);
|
|
1020
|
+
});
|
|
1021
|
+
if (correspondingChip) {
|
|
1022
|
+
isUserInput ? correspondingChip.selectViaInteraction() : correspondingChip.select();
|
|
1023
|
+
this._selectionModel.select(correspondingChip);
|
|
1024
|
+
}
|
|
1025
|
+
return correspondingChip;
|
|
1026
|
+
}
|
|
1027
|
+
_initializeSelection() {
|
|
1028
|
+
// Defer setting the value in order to avoid the "Expression
|
|
1029
|
+
// has changed after it was checked" errors from Angular.
|
|
1030
|
+
Promise.resolve().then(() => {
|
|
1031
|
+
if (this.ngControl || this._value) {
|
|
1032
|
+
this._setSelectionByValue(this.ngControl ? this.ngControl.value : this._value, false);
|
|
1033
|
+
this.stateChanges.next();
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Deselects every chip in the list.
|
|
1039
|
+
* @param skip Chip that should not be deselected.
|
|
1040
|
+
*/
|
|
1041
|
+
_clearSelection(skip) {
|
|
1042
|
+
this._selectionModel.clear();
|
|
1043
|
+
this.chips.forEach(chip => {
|
|
1044
|
+
if (chip !== skip) {
|
|
1045
|
+
chip.deselect();
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
this.stateChanges.next();
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Sorts the model values, ensuring that they keep the same
|
|
1052
|
+
* order that they have in the panel.
|
|
1053
|
+
*/
|
|
1054
|
+
_sortValues() {
|
|
1055
|
+
if (this._multiple) {
|
|
1056
|
+
this._selectionModel.clear();
|
|
1057
|
+
this.chips.forEach(chip => {
|
|
1058
|
+
if (chip.selected) {
|
|
1059
|
+
this._selectionModel.select(chip);
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
this.stateChanges.next();
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
/** Emits change event to set the model value. */
|
|
1066
|
+
_propagateChanges(fallbackValue) {
|
|
1067
|
+
let valueToEmit = null;
|
|
1068
|
+
if (Array.isArray(this.selected)) {
|
|
1069
|
+
valueToEmit = this.selected.map(chip => chip.value);
|
|
1070
|
+
}
|
|
1071
|
+
else {
|
|
1072
|
+
valueToEmit = this.selected ? this.selected.value : fallbackValue;
|
|
1073
|
+
}
|
|
1074
|
+
this._value = valueToEmit;
|
|
1075
|
+
this.change.emit(new MatChipListChange(this, valueToEmit));
|
|
1076
|
+
this.valueChange.emit(valueToEmit);
|
|
1077
|
+
this._onChange(valueToEmit);
|
|
1078
|
+
this._changeDetectorRef.markForCheck();
|
|
1079
|
+
}
|
|
1080
|
+
/** When blurred, mark the field as touched when focus moved outside the chip list. */
|
|
1081
|
+
_blur() {
|
|
1082
|
+
if (!this._hasFocusedChip()) {
|
|
1083
|
+
this._keyManager.setActiveItem(-1);
|
|
1084
|
+
}
|
|
1085
|
+
if (!this.disabled) {
|
|
1086
|
+
if (this._chipInput) {
|
|
1087
|
+
// If there's a chip input, we should check whether the focus moved to chip input.
|
|
1088
|
+
// If the focus is not moved to chip input, mark the field as touched. If the focus moved
|
|
1089
|
+
// to chip input, do nothing.
|
|
1090
|
+
// Timeout is needed to wait for the focus() event trigger on chip input.
|
|
1091
|
+
setTimeout(() => {
|
|
1092
|
+
if (!this.focused) {
|
|
1093
|
+
this._markAsTouched();
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
}
|
|
1097
|
+
else {
|
|
1098
|
+
// If there's no chip input, then mark the field as touched.
|
|
1099
|
+
this._markAsTouched();
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
/** Mark the field as touched */
|
|
1104
|
+
_markAsTouched() {
|
|
1105
|
+
this._onTouched();
|
|
1106
|
+
this._changeDetectorRef.markForCheck();
|
|
1107
|
+
this.stateChanges.next();
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Removes the `tabindex` from the chip list and resets it back afterwards, allowing the
|
|
1111
|
+
* user to tab out of it. This prevents the list from capturing focus and redirecting
|
|
1112
|
+
* it back to the first chip, creating a focus trap, if it user tries to tab away.
|
|
1113
|
+
*/
|
|
1114
|
+
_allowFocusEscape() {
|
|
1115
|
+
if (this._tabIndex !== -1) {
|
|
1116
|
+
this._tabIndex = -1;
|
|
1117
|
+
setTimeout(() => {
|
|
1118
|
+
this._tabIndex = this._userTabIndex || 0;
|
|
1119
|
+
this._changeDetectorRef.markForCheck();
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
_resetChips() {
|
|
1124
|
+
this._dropSubscriptions();
|
|
1125
|
+
this._listenToChipsFocus();
|
|
1126
|
+
this._listenToChipsSelection();
|
|
1127
|
+
this._listenToChipsRemoved();
|
|
1128
|
+
}
|
|
1129
|
+
_dropSubscriptions() {
|
|
1130
|
+
if (this._chipFocusSubscription) {
|
|
1131
|
+
this._chipFocusSubscription.unsubscribe();
|
|
1132
|
+
this._chipFocusSubscription = null;
|
|
1133
|
+
}
|
|
1134
|
+
if (this._chipBlurSubscription) {
|
|
1135
|
+
this._chipBlurSubscription.unsubscribe();
|
|
1136
|
+
this._chipBlurSubscription = null;
|
|
1137
|
+
}
|
|
1138
|
+
if (this._chipSelectionSubscription) {
|
|
1139
|
+
this._chipSelectionSubscription.unsubscribe();
|
|
1140
|
+
this._chipSelectionSubscription = null;
|
|
1141
|
+
}
|
|
1142
|
+
if (this._chipRemoveSubscription) {
|
|
1143
|
+
this._chipRemoveSubscription.unsubscribe();
|
|
1144
|
+
this._chipRemoveSubscription = null;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1148
|
+
_listenToChipsSelection() {
|
|
1149
|
+
this._chipSelectionSubscription = this.chipSelectionChanges.subscribe(event => {
|
|
1150
|
+
event.source.selected
|
|
1151
|
+
? this._selectionModel.select(event.source)
|
|
1152
|
+
: this._selectionModel.deselect(event.source);
|
|
1153
|
+
// For single selection chip list, make sure the deselected value is unselected.
|
|
1154
|
+
if (!this.multiple) {
|
|
1155
|
+
this.chips.forEach(chip => {
|
|
1156
|
+
if (!this._selectionModel.isSelected(chip) && chip.selected) {
|
|
1157
|
+
chip.deselect();
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
if (event.isUserInput) {
|
|
1162
|
+
this._propagateChanges();
|
|
1163
|
+
}
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
/** Listens to user-generated selection events on each chip. */
|
|
1167
|
+
_listenToChipsFocus() {
|
|
1168
|
+
this._chipFocusSubscription = this.chipFocusChanges.subscribe(event => {
|
|
1169
|
+
let chipIndex = this.chips.toArray().indexOf(event.chip);
|
|
1170
|
+
if (this._isValidIndex(chipIndex)) {
|
|
1171
|
+
this._keyManager.updateActiveItem(chipIndex);
|
|
1172
|
+
}
|
|
1173
|
+
this.stateChanges.next();
|
|
1174
|
+
});
|
|
1175
|
+
this._chipBlurSubscription = this.chipBlurChanges.subscribe(() => {
|
|
1176
|
+
this._blur();
|
|
1177
|
+
this.stateChanges.next();
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
_listenToChipsRemoved() {
|
|
1181
|
+
this._chipRemoveSubscription = this.chipRemoveChanges.subscribe(event => {
|
|
1182
|
+
const chip = event.chip;
|
|
1183
|
+
const chipIndex = this.chips.toArray().indexOf(event.chip);
|
|
1184
|
+
// In case the chip that will be removed is currently focused, we temporarily store
|
|
1185
|
+
// the index in order to be able to determine an appropriate sibling chip that will
|
|
1186
|
+
// receive focus.
|
|
1187
|
+
if (this._isValidIndex(chipIndex) && chip._hasFocus) {
|
|
1188
|
+
this._lastDestroyedChipIndex = chipIndex;
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
/** Checks whether an event comes from inside a chip element. */
|
|
1193
|
+
_originatesFromChip(event) {
|
|
1194
|
+
let currentElement = event.target;
|
|
1195
|
+
while (currentElement && currentElement !== this._elementRef.nativeElement) {
|
|
1196
|
+
if (currentElement.classList.contains('mat-chip')) {
|
|
1197
|
+
return true;
|
|
1198
|
+
}
|
|
1199
|
+
currentElement = currentElement.parentElement;
|
|
1200
|
+
}
|
|
1201
|
+
return false;
|
|
1202
|
+
}
|
|
1203
|
+
/** Checks whether any of the chips is focused. */
|
|
1204
|
+
_hasFocusedChip() {
|
|
1205
|
+
return this.chips && this.chips.some(chip => chip._hasFocus);
|
|
1206
|
+
}
|
|
1207
|
+
/** Syncs the list's state with the individual chips. */
|
|
1208
|
+
_syncChipsState() {
|
|
1209
|
+
if (this.chips) {
|
|
1210
|
+
this.chips.forEach(chip => {
|
|
1211
|
+
chip._chipListDisabled = this._disabled;
|
|
1212
|
+
chip._chipListMultiple = this.multiple;
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
MatChipList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipList, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Directionality, optional: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1218
|
+
MatChipList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-next.15", type: MatChipList, selector: "mat-chip-list", inputs: { errorStateMatcher: "errorStateMatcher", multiple: "multiple", compareWith: "compareWith", value: "value", required: "required", placeholder: "placeholder", disabled: "disabled", ariaOrientation: ["aria-orientation", "ariaOrientation"], selectable: "selectable", tabIndex: "tabIndex" }, outputs: { change: "change", valueChange: "valueChange" }, host: { listeners: { "focus": "focus()", "blur": "_blur()", "keydown": "_keydown($event)" }, properties: { "attr.tabindex": "disabled ? null : _tabIndex", "attr.aria-describedby": "_ariaDescribedby || null", "attr.aria-required": "role ? required : null", "attr.aria-disabled": "disabled.toString()", "attr.aria-invalid": "errorState", "attr.aria-multiselectable": "multiple", "attr.role": "role", "class.mat-chip-list-disabled": "disabled", "class.mat-chip-list-invalid": "errorState", "class.mat-chip-list-required": "required", "attr.aria-orientation": "ariaOrientation", "id": "_uid" }, classAttribute: "mat-chip-list" }, providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }], queries: [{ propertyName: "chips", predicate: MatChip, descendants: true }], exportAs: ["matChipList"], usesInheritance: true, ngImport: i0, template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`, isInline: true, styles: [".mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .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-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.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-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{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}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipList, decorators: [{
|
|
1220
|
+
type: Component,
|
|
1221
|
+
args: [{ selector: 'mat-chip-list', template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`, exportAs: 'matChipList', host: {
|
|
1222
|
+
'[attr.tabindex]': 'disabled ? null : _tabIndex',
|
|
1223
|
+
'[attr.aria-describedby]': '_ariaDescribedby || null',
|
|
1224
|
+
'[attr.aria-required]': 'role ? required : null',
|
|
1225
|
+
'[attr.aria-disabled]': 'disabled.toString()',
|
|
1226
|
+
'[attr.aria-invalid]': 'errorState',
|
|
1227
|
+
'[attr.aria-multiselectable]': 'multiple',
|
|
1228
|
+
'[attr.role]': 'role',
|
|
1229
|
+
'[class.mat-chip-list-disabled]': 'disabled',
|
|
1230
|
+
'[class.mat-chip-list-invalid]': 'errorState',
|
|
1231
|
+
'[class.mat-chip-list-required]': 'required',
|
|
1232
|
+
'[attr.aria-orientation]': 'ariaOrientation',
|
|
1233
|
+
'class': 'mat-chip-list',
|
|
1234
|
+
'(focus)': 'focus()',
|
|
1235
|
+
'(blur)': '_blur()',
|
|
1236
|
+
'(keydown)': '_keydown($event)',
|
|
1237
|
+
'[id]': '_uid',
|
|
1238
|
+
}, providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .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-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.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-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{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}\n"] }]
|
|
1239
|
+
}], ctorParameters: function () {
|
|
1240
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Directionality, decorators: [{
|
|
1241
|
+
type: Optional
|
|
1242
|
+
}] }, { type: i2.NgForm, decorators: [{
|
|
1243
|
+
type: Optional
|
|
1244
|
+
}] }, { type: i2.FormGroupDirective, decorators: [{
|
|
1245
|
+
type: Optional
|
|
1246
|
+
}] }, { type: i3.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
|
|
1247
|
+
type: Optional
|
|
1248
|
+
}, {
|
|
1249
|
+
type: Self
|
|
1250
|
+
}] }];
|
|
1251
|
+
}, propDecorators: { errorStateMatcher: [{
|
|
1252
|
+
type: Input
|
|
1253
|
+
}], multiple: [{
|
|
1254
|
+
type: Input
|
|
1255
|
+
}], compareWith: [{
|
|
1256
|
+
type: Input
|
|
1257
|
+
}], value: [{
|
|
1258
|
+
type: Input
|
|
1259
|
+
}], required: [{
|
|
1260
|
+
type: Input
|
|
1261
|
+
}], placeholder: [{
|
|
1262
|
+
type: Input
|
|
1263
|
+
}], disabled: [{
|
|
1264
|
+
type: Input
|
|
1265
|
+
}], ariaOrientation: [{
|
|
1266
|
+
type: Input,
|
|
1267
|
+
args: ['aria-orientation']
|
|
1268
|
+
}], selectable: [{
|
|
1269
|
+
type: Input
|
|
1270
|
+
}], tabIndex: [{
|
|
1271
|
+
type: Input
|
|
1272
|
+
}], change: [{
|
|
1273
|
+
type: Output
|
|
1274
|
+
}], valueChange: [{
|
|
1275
|
+
type: Output
|
|
1276
|
+
}], chips: [{
|
|
1277
|
+
type: ContentChildren,
|
|
1278
|
+
args: [MatChip, {
|
|
1279
|
+
// We need to use `descendants: true`, because Ivy will no longer match
|
|
1280
|
+
// indirect descendants if it's left as false.
|
|
1281
|
+
descendants: true
|
|
1282
|
+
}]
|
|
1283
|
+
}] } });
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* @license
|
|
1287
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1288
|
+
*
|
|
1289
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1290
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1291
|
+
*/
|
|
1292
|
+
const CHIP_DECLARATIONS = [
|
|
1293
|
+
MatChipList,
|
|
1294
|
+
MatChip,
|
|
1295
|
+
MatChipInput,
|
|
1296
|
+
MatChipRemove,
|
|
1297
|
+
MatChipAvatar,
|
|
1298
|
+
MatChipTrailingIcon,
|
|
1299
|
+
];
|
|
1300
|
+
class MatChipsModule {
|
|
1301
|
+
}
|
|
1302
|
+
MatChipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1303
|
+
MatChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipsModule, declarations: [MatChipList,
|
|
1304
|
+
MatChip,
|
|
1305
|
+
MatChipInput,
|
|
1306
|
+
MatChipRemove,
|
|
1307
|
+
MatChipAvatar,
|
|
1308
|
+
MatChipTrailingIcon], imports: [MatCommonModule], exports: [MatChipList,
|
|
1309
|
+
MatChip,
|
|
1310
|
+
MatChipInput,
|
|
1311
|
+
MatChipRemove,
|
|
1312
|
+
MatChipAvatar,
|
|
1313
|
+
MatChipTrailingIcon] });
|
|
1314
|
+
MatChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipsModule, providers: [
|
|
1315
|
+
ErrorStateMatcher,
|
|
1316
|
+
{
|
|
1317
|
+
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1318
|
+
useValue: {
|
|
1319
|
+
separatorKeyCodes: [ENTER]
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
], imports: [[MatCommonModule]] });
|
|
1323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: MatChipsModule, decorators: [{
|
|
1324
|
+
type: NgModule,
|
|
1325
|
+
args: [{
|
|
1326
|
+
imports: [MatCommonModule],
|
|
1327
|
+
exports: CHIP_DECLARATIONS,
|
|
1328
|
+
declarations: CHIP_DECLARATIONS,
|
|
1329
|
+
providers: [
|
|
1330
|
+
ErrorStateMatcher,
|
|
1331
|
+
{
|
|
1332
|
+
provide: MAT_CHIPS_DEFAULT_OPTIONS,
|
|
1333
|
+
useValue: {
|
|
1334
|
+
separatorKeyCodes: [ENTER]
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
}]
|
|
1339
|
+
}] });
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* @license
|
|
1343
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1344
|
+
*
|
|
1345
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1346
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1347
|
+
*/
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Generated bundle index. Do not edit.
|
|
1351
|
+
*/
|
|
1352
|
+
|
|
1353
|
+
export { MAT_CHIPS_DEFAULT_OPTIONS, MAT_CHIP_AVATAR, MAT_CHIP_REMOVE, MAT_CHIP_TRAILING_ICON, MatChip, MatChipAvatar, MatChipInput, MatChipList, MatChipListChange, MatChipRemove, MatChipSelectionChange, MatChipTrailingIcon, MatChipsModule };
|
|
1354
|
+
//# sourceMappingURL=chips.mjs.map
|