Skip to content

Commit 4292f82

Browse files
committed
main - ef70029 feat(material/chips): allow for modifiers to be specified on separator keys (#31914)
1 parent 20ac976 commit 4292f82

File tree

2 files changed

+55
-10
lines changed

2 files changed

+55
-10
lines changed

docs-content/api-docs/material-chips.html

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ <h4 id="MatChipInput" class="docs-header-link docs-api-h4 docs-api-class-name">
20452045
<tr class="docs-api-properties-row">
20462046
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">&#39;matChipInputSeparatorKeyCodes&#39;</span>)
20472047
</div><p class="docs-api-property-name">
2048-
<code>separatorKeyCodes: readonly number[] | ReadonlySet&lt;number&gt;</code>
2048+
<code>separatorKeyCodes: readonly (number | SeparatorKey)[] | ReadonlySet&lt;number | SeparatorKey&gt;</code>
20492049
</p>
20502050
</td>
20512051
<td class="docs-api-property-description"><p>The list of key codes that will trigger a chipEnd event.</p>
@@ -2815,6 +2815,51 @@ <h4 id="MatChipInputEvent" class="docs-header-link docs-api-h4 docs-api-interfac
28152815

28162816

28172817

2818+
<h4 id="SeparatorKey" class="docs-header-link docs-api-h4 docs-api-interface-name">
2819+
<span header-link="SeparatorKey"></span>
2820+
<code>SeparatorKey</code>
2821+
</h4><p class="docs-api-interface-description"><p>Key that can be used as a separator between chips.</p>
2822+
</p><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
2823+
<table class="docs-api-properties-table">
2824+
<tr class="docs-api-properties-header-row">
2825+
<th class="docs-api-properties-th">Name</th>
2826+
<th class="docs-api-properties-th">Description</th>
2827+
</tr>
2828+
2829+
2830+
2831+
<tr class="docs-api-properties-row">
2832+
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
2833+
<code>keyCode: number</code>
2834+
</p>
2835+
</td>
2836+
<td class="docs-api-property-description"></td>
2837+
</tr>
2838+
2839+
2840+
2841+
2842+
2843+
<tr class="docs-api-properties-row">
2844+
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
2845+
<code>modifiers: readonly ModifierKey[]</code>
2846+
</p>
2847+
</td>
2848+
<td class="docs-api-property-description"></td>
2849+
</tr>
2850+
2851+
2852+
2853+
</table>
2854+
2855+
2856+
2857+
2858+
2859+
2860+
2861+
2862+
28182863
<h4 id="MatChipsDefaultOptions" class="docs-header-link docs-api-h4 docs-api-interface-name">
28192864
<span header-link="MatChipsDefaultOptions"></span>
28202865
<code>MatChipsDefaultOptions</code>
@@ -2856,7 +2901,7 @@ <h4 id="MatChipsDefaultOptions" class="docs-header-link docs-api-h4 docs-api-int
28562901

28572902
<tr class="docs-api-properties-row">
28582903
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
2859-
<code>separatorKeyCodes: readonly number[] | ReadonlySet&lt;number&gt;</code>
2904+
<code>separatorKeyCodes: readonly (number | SeparatorKey)[] | ReadonlySet&lt;number | SeparatorKey&gt;</code>
28602905
</p>
28612906
</td>
28622907
<td class="docs-api-property-description"><p>The list of key codes that will trigger a chipEnd event.</p>

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/components-examples",
3-
"version": "21.0.0-next.5+sha-bb305d3",
3+
"version": "21.0.0-next.5+sha-ef70029",
44
"description": "Angular Components Examples",
55
"private": true,
66
"repository": {
@@ -259,15 +259,15 @@
259259
},
260260
"homepage": "https://github.com/angular/components#readme",
261261
"peerDependencies": {
262-
"@angular/cdk": "21.0.0-next.5+sha-bb305d3",
263-
"@angular/cdk-experimental": "21.0.0-next.5+sha-bb305d3",
262+
"@angular/cdk": "21.0.0-next.5+sha-ef70029",
263+
"@angular/cdk-experimental": "21.0.0-next.5+sha-ef70029",
264264
"@angular/core": "^21.0.0-0 || ^21.1.0-0 || ^21.2.0-0 || ^21.3.0-0 || ^22.0.0-0",
265265
"@angular/common": "^21.0.0-0 || ^21.1.0-0 || ^21.2.0-0 || ^21.3.0-0 || ^22.0.0-0",
266-
"@angular/material": "21.0.0-next.5+sha-bb305d3",
267-
"@angular/material-experimental": "21.0.0-next.5+sha-bb305d3",
268-
"@angular/material-moment-adapter": "21.0.0-next.5+sha-bb305d3",
269-
"@angular/material-luxon-adapter": "21.0.0-next.5+sha-bb305d3",
270-
"@angular/material-date-fns-adapter": "21.0.0-next.5+sha-bb305d3"
266+
"@angular/material": "21.0.0-next.5+sha-ef70029",
267+
"@angular/material-experimental": "21.0.0-next.5+sha-ef70029",
268+
"@angular/material-moment-adapter": "21.0.0-next.5+sha-ef70029",
269+
"@angular/material-luxon-adapter": "21.0.0-next.5+sha-ef70029",
270+
"@angular/material-date-fns-adapter": "21.0.0-next.5+sha-ef70029"
271271
},
272272
"devDependencies": {
273273
"@angular/cdk": "workspace:*",

0 commit comments

Comments
 (0)