@angular/material 15.1.0-next.0 → 15.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/autocomplete/testing/index.d.ts +2 -0
  2. package/button/testing/index.d.ts +2 -0
  3. package/button-toggle/testing/index.d.ts +4 -0
  4. package/checkbox/testing/index.d.ts +2 -0
  5. package/core/index.d.ts +3 -3
  6. package/esm2020/autocomplete/testing/autocomplete-harness-filters.mjs +1 -1
  7. package/esm2020/autocomplete/testing/autocomplete-harness.mjs +6 -2
  8. package/esm2020/button/icon-button.mjs +4 -4
  9. package/esm2020/button/testing/button-harness-filters.mjs +1 -1
  10. package/esm2020/button/testing/button-harness.mjs +5 -2
  11. package/esm2020/button-toggle/testing/button-toggle-group-harness-filters.mjs +1 -1
  12. package/esm2020/button-toggle/testing/button-toggle-group-harness.mjs +4 -2
  13. package/esm2020/button-toggle/testing/button-toggle-harness-filters.mjs +1 -1
  14. package/esm2020/button-toggle/testing/button-toggle-harness.mjs +5 -2
  15. package/esm2020/checkbox/testing/checkbox-harness-filters.mjs +1 -1
  16. package/esm2020/checkbox/testing/checkbox-harness.mjs +5 -2
  17. package/esm2020/chips/chip-action.mjs +3 -5
  18. package/esm2020/core/ripple/ripple-event-manager.mjs +69 -0
  19. package/esm2020/core/ripple/ripple-renderer.mjs +31 -23
  20. package/esm2020/core/version.mjs +1 -1
  21. package/esm2020/form-field/directives/prefix.mjs +12 -7
  22. package/esm2020/form-field/directives/suffix.mjs +12 -7
  23. package/esm2020/legacy-autocomplete/testing/autocomplete-harness-filters.mjs +1 -1
  24. package/esm2020/legacy-autocomplete/testing/autocomplete-harness.mjs +6 -2
  25. package/esm2020/legacy-button/testing/button-harness.mjs +5 -2
  26. package/esm2020/legacy-checkbox/testing/checkbox-harness.mjs +5 -2
  27. package/esm2020/list/list-option.mjs +2 -5
  28. package/esm2020/list/selection-list.mjs +2 -9
  29. package/esm2020/progress-spinner/progress-spinner.mjs +4 -5
  30. package/esm2020/slider/testing/slider-harness-filters.mjs +1 -1
  31. package/esm2020/slider/testing/slider-harness.mjs +6 -2
  32. package/esm2020/tabs/tab-group.mjs +6 -6
  33. package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +7 -7
  34. package/fesm2015/autocomplete/testing.mjs +5 -1
  35. package/fesm2015/autocomplete/testing.mjs.map +1 -1
  36. package/fesm2015/button/testing.mjs +4 -1
  37. package/fesm2015/button/testing.mjs.map +1 -1
  38. package/fesm2015/button-toggle/testing.mjs +7 -2
  39. package/fesm2015/button-toggle/testing.mjs.map +1 -1
  40. package/fesm2015/button.mjs +4 -4
  41. package/fesm2015/button.mjs.map +1 -1
  42. package/fesm2015/checkbox/testing.mjs +4 -1
  43. package/fesm2015/checkbox/testing.mjs.map +1 -1
  44. package/fesm2015/chips.mjs +2 -4
  45. package/fesm2015/chips.mjs.map +1 -1
  46. package/fesm2015/core.mjs +100 -24
  47. package/fesm2015/core.mjs.map +1 -1
  48. package/fesm2015/form-field.mjs +20 -10
  49. package/fesm2015/form-field.mjs.map +1 -1
  50. package/fesm2015/legacy-autocomplete/testing.mjs +6 -8
  51. package/fesm2015/legacy-autocomplete/testing.mjs.map +1 -1
  52. package/fesm2015/legacy-button/testing.mjs +4 -1
  53. package/fesm2015/legacy-button/testing.mjs.map +1 -1
  54. package/fesm2015/legacy-checkbox/testing.mjs +4 -1
  55. package/fesm2015/legacy-checkbox/testing.mjs.map +1 -1
  56. package/fesm2015/list.mjs +2 -12
  57. package/fesm2015/list.mjs.map +1 -1
  58. package/fesm2015/progress-spinner.mjs +3 -4
  59. package/fesm2015/progress-spinner.mjs.map +1 -1
  60. package/fesm2015/slider/testing.mjs +5 -1
  61. package/fesm2015/slider/testing.mjs.map +1 -1
  62. package/fesm2015/tabs.mjs +11 -11
  63. package/fesm2015/tabs.mjs.map +1 -1
  64. package/fesm2020/autocomplete/testing.mjs +5 -1
  65. package/fesm2020/autocomplete/testing.mjs.map +1 -1
  66. package/fesm2020/button/testing.mjs +4 -1
  67. package/fesm2020/button/testing.mjs.map +1 -1
  68. package/fesm2020/button-toggle/testing.mjs +7 -2
  69. package/fesm2020/button-toggle/testing.mjs.map +1 -1
  70. package/fesm2020/button.mjs +4 -4
  71. package/fesm2020/button.mjs.map +1 -1
  72. package/fesm2020/checkbox/testing.mjs +4 -1
  73. package/fesm2020/checkbox/testing.mjs.map +1 -1
  74. package/fesm2020/chips.mjs +2 -4
  75. package/fesm2020/chips.mjs.map +1 -1
  76. package/fesm2020/core.mjs +99 -24
  77. package/fesm2020/core.mjs.map +1 -1
  78. package/fesm2020/form-field.mjs +20 -10
  79. package/fesm2020/form-field.mjs.map +1 -1
  80. package/fesm2020/legacy-autocomplete/testing.mjs +5 -1
  81. package/fesm2020/legacy-autocomplete/testing.mjs.map +1 -1
  82. package/fesm2020/legacy-button/testing.mjs +4 -1
  83. package/fesm2020/legacy-button/testing.mjs.map +1 -1
  84. package/fesm2020/legacy-checkbox/testing.mjs +4 -1
  85. package/fesm2020/legacy-checkbox/testing.mjs.map +1 -1
  86. package/fesm2020/list.mjs +2 -12
  87. package/fesm2020/list.mjs.map +1 -1
  88. package/fesm2020/progress-spinner.mjs +3 -4
  89. package/fesm2020/progress-spinner.mjs.map +1 -1
  90. package/fesm2020/slider/testing.mjs +5 -1
  91. package/fesm2020/slider/testing.mjs.map +1 -1
  92. package/fesm2020/tabs.mjs +11 -11
  93. package/fesm2020/tabs.mjs.map +1 -1
  94. package/form-field/index.d.ts +4 -4
  95. package/legacy-autocomplete/testing/index.d.ts +2 -0
  96. package/list/_interactive-list-theme.scss +0 -17
  97. package/list/index.d.ts +0 -12
  98. package/package.json +2 -2
  99. package/prebuilt-themes/deeppurple-amber.css +1 -1
  100. package/prebuilt-themes/indigo-pink.css +1 -1
  101. package/prebuilt-themes/pink-bluegrey.css +1 -1
  102. package/prebuilt-themes/purple-green.css +1 -1
  103. package/progress-spinner/index.d.ts +3 -4
  104. package/schematics/ng-add/index.js +1 -1
  105. package/schematics/ng-add/index.mjs +1 -1
  106. package/schematics/ng-generate/mdc-migration/index_bundled.js +4 -2
  107. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
  108. package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +1 -1
  109. package/slider/testing/index.d.ts +2 -0
  110. package/tabs/_tabs-common.scss +42 -0
  111. package/tabs/_tabs-theme.scss +4 -30
@@ -1 +1 @@
1
- {"version":3,"file":"testing.mjs","sources":["../../../../../../../src/material/checkbox/testing/checkbox-harness.ts","../../../../../../../src/material/checkbox/testing/public-api.ts","../../../../../../../src/material/checkbox/testing/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n AsyncFactoryFn,\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n TestElement,\n} from '@angular/cdk/testing';\nimport {CheckboxHarnessFilters} from './checkbox-harness-filters';\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\n\nexport abstract class _MatCheckboxHarnessBase extends ComponentHarness {\n protected abstract _input: AsyncFactoryFn<TestElement>;\n protected abstract _label: AsyncFactoryFn<TestElement>;\n\n /** Whether the checkbox is checked. */\n async isChecked(): Promise<boolean> {\n const checked = (await this._input()).getProperty<boolean>('checked');\n return coerceBooleanProperty(await checked);\n }\n\n /** Whether the checkbox is in an indeterminate state. */\n async isIndeterminate(): Promise<boolean> {\n const indeterminate = (await this._input()).getProperty<string>('indeterminate');\n return coerceBooleanProperty(await indeterminate);\n }\n\n /** Whether the checkbox is disabled. */\n async isDisabled(): Promise<boolean> {\n const disabled = (await this._input()).getAttribute('disabled');\n return coerceBooleanProperty(await disabled);\n }\n\n /** Whether the checkbox is required. */\n async isRequired(): Promise<boolean> {\n const required = (await this._input()).getProperty<boolean>('required');\n return coerceBooleanProperty(await required);\n }\n\n /** Whether the checkbox is valid. */\n async isValid(): Promise<boolean> {\n const invalid = (await this.host()).hasClass('ng-invalid');\n return !(await invalid);\n }\n\n /** Gets the checkbox's name. */\n async getName(): Promise<string | null> {\n return (await this._input()).getAttribute('name');\n }\n\n /** Gets the checkbox's value. */\n async getValue(): Promise<string | null> {\n return (await this._input()).getProperty<string | null>('value');\n }\n\n /** Gets the checkbox's aria-label. */\n async getAriaLabel(): Promise<string | null> {\n return (await this._input()).getAttribute('aria-label');\n }\n\n /** Gets the checkbox's aria-labelledby. */\n async getAriaLabelledby(): Promise<string | null> {\n return (await this._input()).getAttribute('aria-labelledby');\n }\n\n /** Gets the checkbox's label text. */\n async getLabelText(): Promise<string> {\n return (await this._label()).text();\n }\n\n /** Focuses the checkbox. */\n async focus(): Promise<void> {\n return (await this._input()).focus();\n }\n\n /** Blurs the checkbox. */\n async blur(): Promise<void> {\n return (await this._input()).blur();\n }\n\n /** Whether the checkbox is focused. */\n async isFocused(): Promise<boolean> {\n return (await this._input()).isFocused();\n }\n\n /**\n * Toggles the checked state of the checkbox.\n *\n * Note: This attempts to toggle the checkbox as a user would, by clicking it. Therefore if you\n * are using `MAT_CHECKBOX_DEFAULT_OPTIONS` to change the behavior on click, calling this method\n * might not have the expected result.\n */\n abstract toggle(): Promise<void>;\n\n /**\n * Puts the checkbox in a checked state by toggling it if it is currently unchecked, or doing\n * nothing if it is already checked.\n *\n * Note: This attempts to check the checkbox as a user would, by clicking it. Therefore if you\n * are using `MAT_CHECKBOX_DEFAULT_OPTIONS` to change the behavior on click, calling this method\n * might not have the expected result.\n */\n async check(): Promise<void> {\n if (!(await this.isChecked())) {\n await this.toggle();\n }\n }\n\n /**\n * Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing\n * nothing if it is already unchecked.\n *\n * Note: This attempts to uncheck the checkbox as a user would, by clicking it. Therefore if you\n * are using `MAT_CHECKBOX_DEFAULT_OPTIONS` to change the behavior on click, calling this method\n * might not have the expected result.\n */\n async uncheck(): Promise<void> {\n if (await this.isChecked()) {\n await this.toggle();\n }\n }\n}\n\n/** Harness for interacting with a MDC-based mat-checkbox in tests. */\nexport class MatCheckboxHarness extends _MatCheckboxHarnessBase {\n static hostSelector = '.mat-mdc-checkbox';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a checkbox with specific attributes.\n * @param options Options for narrowing the search:\n * - `selector` finds a checkbox whose host element matches the given selector.\n * - `label` finds a checkbox with specific label text.\n * - `name` finds a checkbox with specific name.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatCheckboxHarness>(\n this: ComponentHarnessConstructor<T>,\n options: CheckboxHarnessFilters = {},\n ): HarnessPredicate<T> {\n return (\n new HarnessPredicate(this, options)\n .addOption('label', options.label, (harness, label) =>\n HarnessPredicate.stringMatches(harness.getLabelText(), label),\n )\n // We want to provide a filter option for \"name\" because the name of the checkbox is\n // only set on the underlying input. This means that it's not possible for developers\n // to retrieve the harness of a specific checkbox with name through a CSS selector.\n .addOption(\n 'name',\n options.name,\n async (harness, name) => (await harness.getName()) === name,\n )\n .addOption(\n 'checked',\n options.checked,\n async (harness, checked) => (await harness.isChecked()) == checked,\n )\n );\n }\n\n protected _input = this.locatorFor('input');\n protected _label = this.locatorFor('label');\n private _inputContainer = this.locatorFor('.mdc-checkbox');\n\n async toggle(): Promise<void> {\n const elToClick = (await this.isDisabled()) ? this._inputContainer() : this._input();\n return (await elToClick).click();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './checkbox-harness';\nexport {CheckboxHarnessFilters} from './checkbox-harness-filters';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;;;;;;AAMG;AAYG,MAAgB,uBAAwB,SAAQ,gBAAgB,CAAA;;AAKpE,IAAA,MAA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UAAU,CAAC,OAAO,CAAC,CAAC;AACpC,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;KAM5D;AAzCC;;;;;;;AAOG;AACH,IAAA,OAAO,IAAI,CAET,OAAA,GAAkC,EAAE,EAAA;AAEpC,QAAA,QACE,IAAI,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC;aAChC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,KAChD,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,KAAK,CAAC,CAC9D;;;;aAIA,SAAS,CACR,MAAM,EACN,OAAO,CAAC,IAAI,EACZ,OAAO,OAAO,EAAE,IAAI,KAAK,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,CAC5D;aACA,SAAS,CACR,SAAS,EACT,OAAO,CAAC,OAAO,EACf,OAAO,OAAO,EAAE,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC,SAAS,EAAE,KAAK,OAAO,CACnE,EACH;KACH;AAMD,IAAA,MAAM,MAAM,GAAA;QACV,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,IAAI,IAAI,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;AACrF,QAAA,OAAO,CAAC,MAAM,SAAS,EAAE,KAAK,EAAE,CAAC;KAClC;;AA1CM,kBAAY,CAAA,YAAA,GAAG,mBAAmB;;ACpI3C;;;;;;AAMG;;ACNH;;;;;;AAMG;;;;"}
1
+ {"version":3,"file":"testing.mjs","sources":["../../../../../../../src/material/checkbox/testing/checkbox-harness.ts","../../../../../../../src/material/checkbox/testing/public-api.ts","../../../../../../../src/material/checkbox/testing/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n AsyncFactoryFn,\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n TestElement,\n} from '@angular/cdk/testing';\nimport {CheckboxHarnessFilters} from './checkbox-harness-filters';\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\n\nexport abstract class _MatCheckboxHarnessBase extends ComponentHarness {\n protected abstract _input: AsyncFactoryFn<TestElement>;\n protected abstract _label: AsyncFactoryFn<TestElement>;\n\n /** Whether the checkbox is checked. */\n async isChecked(): Promise<boolean> {\n const checked = (await this._input()).getProperty<boolean>('checked');\n return coerceBooleanProperty(await checked);\n }\n\n /** Whether the checkbox is in an indeterminate state. */\n async isIndeterminate(): Promise<boolean> {\n const indeterminate = (await this._input()).getProperty<string>('indeterminate');\n return coerceBooleanProperty(await indeterminate);\n }\n\n /** Whether the checkbox is disabled. */\n async isDisabled(): Promise<boolean> {\n const disabled = (await this._input()).getAttribute('disabled');\n return coerceBooleanProperty(await disabled);\n }\n\n /** Whether the checkbox is required. */\n async isRequired(): Promise<boolean> {\n const required = (await this._input()).getProperty<boolean>('required');\n return coerceBooleanProperty(await required);\n }\n\n /** Whether the checkbox is valid. */\n async isValid(): Promise<boolean> {\n const invalid = (await this.host()).hasClass('ng-invalid');\n return !(await invalid);\n }\n\n /** Gets the checkbox's name. */\n async getName(): Promise<string | null> {\n return (await this._input()).getAttribute('name');\n }\n\n /** Gets the checkbox's value. */\n async getValue(): Promise<string | null> {\n return (await this._input()).getProperty<string | null>('value');\n }\n\n /** Gets the checkbox's aria-label. */\n async getAriaLabel(): Promise<string | null> {\n return (await this._input()).getAttribute('aria-label');\n }\n\n /** Gets the checkbox's aria-labelledby. */\n async getAriaLabelledby(): Promise<string | null> {\n return (await this._input()).getAttribute('aria-labelledby');\n }\n\n /** Gets the checkbox's label text. */\n async getLabelText(): Promise<string> {\n return (await this._label()).text();\n }\n\n /** Focuses the checkbox. */\n async focus(): Promise<void> {\n return (await this._input()).focus();\n }\n\n /** Blurs the checkbox. */\n async blur(): Promise<void> {\n return (await this._input()).blur();\n }\n\n /** Whether the checkbox is focused. */\n async isFocused(): Promise<boolean> {\n return (await this._input()).isFocused();\n }\n\n /**\n * Toggles the checked state of the checkbox.\n *\n * Note: This attempts to toggle the checkbox as a user would, by clicking it. Therefore if you\n * are using `MAT_CHECKBOX_DEFAULT_OPTIONS` to change the behavior on click, calling this method\n * might not have the expected result.\n */\n abstract toggle(): Promise<void>;\n\n /**\n * Puts the checkbox in a checked state by toggling it if it is currently unchecked, or doing\n * nothing if it is already checked.\n *\n * Note: This attempts to check the checkbox as a user would, by clicking it. Therefore if you\n * are using `MAT_CHECKBOX_DEFAULT_OPTIONS` to change the behavior on click, calling this method\n * might not have the expected result.\n */\n async check(): Promise<void> {\n if (!(await this.isChecked())) {\n await this.toggle();\n }\n }\n\n /**\n * Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing\n * nothing if it is already unchecked.\n *\n * Note: This attempts to uncheck the checkbox as a user would, by clicking it. Therefore if you\n * are using `MAT_CHECKBOX_DEFAULT_OPTIONS` to change the behavior on click, calling this method\n * might not have the expected result.\n */\n async uncheck(): Promise<void> {\n if (await this.isChecked()) {\n await this.toggle();\n }\n }\n}\n\n/** Harness for interacting with a MDC-based mat-checkbox in tests. */\nexport class MatCheckboxHarness extends _MatCheckboxHarnessBase {\n static hostSelector = '.mat-mdc-checkbox';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a checkbox with specific attributes.\n * @param options Options for narrowing the search:\n * - `selector` finds a checkbox whose host element matches the given selector.\n * - `label` finds a checkbox with specific label text.\n * - `name` finds a checkbox with specific name.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatCheckboxHarness>(\n this: ComponentHarnessConstructor<T>,\n options: CheckboxHarnessFilters = {},\n ): HarnessPredicate<T> {\n return (\n new HarnessPredicate(this, options)\n .addOption('label', options.label, (harness, label) =>\n HarnessPredicate.stringMatches(harness.getLabelText(), label),\n )\n // We want to provide a filter option for \"name\" because the name of the checkbox is\n // only set on the underlying input. This means that it's not possible for developers\n // to retrieve the harness of a specific checkbox with name through a CSS selector.\n .addOption(\n 'name',\n options.name,\n async (harness, name) => (await harness.getName()) === name,\n )\n .addOption(\n 'checked',\n options.checked,\n async (harness, checked) => (await harness.isChecked()) == checked,\n )\n .addOption('disabled', options.disabled, async (harness, disabled) => {\n return (await harness.isDisabled()) === disabled;\n })\n );\n }\n\n protected _input = this.locatorFor('input');\n protected _label = this.locatorFor('label');\n private _inputContainer = this.locatorFor('.mdc-checkbox');\n\n async toggle(): Promise<void> {\n const elToClick = (await this.isDisabled()) ? this._inputContainer() : this._input();\n return (await elToClick).click();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './checkbox-harness';\nexport {CheckboxHarnessFilters} from './checkbox-harness-filters';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAAA;;;;;;AAMG;AAYG,MAAgB,uBAAwB,SAAQ,gBAAgB,CAAA;;AAKpE,IAAA,MAAM,SAAS,GAAA;AACb,QAAA,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,CAAU,SAAS,CAAC,CAAC;AACtE,QAAA,OAAO,qBAAqB,CAAC,MAAM,OAAO,CAAC,CAAC;KAC7C;;AAGD,IAAA,MAAM,eAAe,GAAA;AACnB,QAAA,MAAM,aAAa,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,CAAS,eAAe,CAAC,CAAC;AACjF,QAAA,OAAO,qBAAqB,CAAC,MAAM,aAAa,CAAC,CAAC;KACnD;;AAGD,IAAA,MAAM,UAAU,GAAA;AACd,QAAA,MAAM,QAAQ,GAAG,CAAC,MAA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O,CAAC,IAAI,EACZ,OAAO,OAAO,EAAE,IAAI,KAAK,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,CAC5D;aACA,SAAS,CACR,SAAS,EACT,OAAO,CAAC,OAAO,EACf,OAAO,OAAO,EAAE,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC,SAAS,EAAE,KAAK,OAAO,CACnE;AACA,aAAA,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,OAAO,EAAE,QAAQ,KAAI;YACnE,OAAO,CAAC,MAAM,OAAO,CAAC,UAAU,EAAE,MAAM,QAAQ,CAAC;SAClD,CAAC,EACJ;KACH;AAMD,IAAA,MAAM,MAAM,GAAA;QACV,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,IAAI,IAAI,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;AACrF,QAAA,OAAO,CAAC,MAAM,SAAS,EAAE,KAAK,EAAE,CAAC;KAClC;;AA7CM,kBAAY,CAAA,YAAA,GAAG,mBAAmB;;ACpI3C;;;;;;AAMG;;ACNH;;;;;;AAMG;;;;"}
@@ -124,7 +124,7 @@ class MatChipAction extends _MatChipActionMixinBase {
124
124
  }
125
125
  }
126
126
  MatChipAction.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: MatChipAction, deps: [{ token: i0.ElementRef }, { token: MAT_CHIP }], target: i0.ɵɵFactoryTarget.Directive });
127
- MatChipAction.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: MatChipAction, selector: "[matChipAction]", inputs: { disabled: "disabled", tabIndex: "tabIndex", isInteractive: "isInteractive", _allowFocusWhenDisabled: "_allowFocusWhenDisabled" }, host: { listeners: { "click": "_handleClick($event)", "keydown": "_handleKeydown($event)" }, properties: { "class.mdc-evolution-chip__action--primary": "_isPrimary", "class.mdc-evolution-chip__action--presentational": "_isPrimary", "class.mdc-evolution-chip__action--trailing": "!_isPrimary", "attr.tabindex": "_getTabindex()", "attr.disabled": "_getDisabledAttribute()", "attr.aria-disabled": "disabled" }, classAttribute: "mdc-evolution-chip__action mat-mdc-chip-action" }, usesInheritance: true, ngImport: i0 });
127
+ MatChipAction.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: MatChipAction, selector: "[matChipAction]", inputs: { disabled: "disabled", tabIndex: "tabIndex", isInteractive: "isInteractive", _allowFocusWhenDisabled: "_allowFocusWhenDisabled" }, host: { listeners: { "click": "_handleClick($event)", "keydown": "_handleKeydown($event)" }, properties: { "class.mdc-evolution-chip__action--primary": "_isPrimary", "class.mdc-evolution-chip__action--presentational": "!isInteractive", "class.mdc-evolution-chip__action--trailing": "!_isPrimary", "attr.tabindex": "_getTabindex()", "attr.disabled": "_getDisabledAttribute()", "attr.aria-disabled": "disabled" }, classAttribute: "mdc-evolution-chip__action mat-mdc-chip-action" }, usesInheritance: true, ngImport: i0 });
128
128
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: MatChipAction, decorators: [{
129
129
  type: Directive,
130
130
  args: [{
@@ -133,9 +133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
133
133
  host: {
134
134
  'class': 'mdc-evolution-chip__action mat-mdc-chip-action',
135
135
  '[class.mdc-evolution-chip__action--primary]': '_isPrimary',
136
- // Note that while our actions are interactive, we have to add the `--presentational` class,
137
- // in order to avoid some super-specific `:hover` styles from MDC.
138
- '[class.mdc-evolution-chip__action--presentational]': '_isPrimary',
136
+ '[class.mdc-evolution-chip__action--presentational]': '!isInteractive',
139
137
  '[class.mdc-evolution-chip__action--trailing]': '!_isPrimary',
140
138
  '[attr.tabindex]': '_getTabindex()',
141
139
  '[attr.disabled]': '_getDisabledAttribute()',