Skip to content

Commit f8530f1

Browse files
committed
main - 764a1cc feat(material/dialog): add closePredicate option
1 parent 64cb1da commit f8530f1

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

docs-content/api-docs/cdk-dialog.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,19 @@ <h4 id="DialogConfig" class="docs-header-link docs-api-h4 docs-api-class-name">
493493

494494

495495

496+
<tr class="docs-api-properties-row">
497+
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
498+
<code>closePredicate: &lt;Result = unknown, Component = unknown, Config extends DialogConfig = DialogConfig&gt;(result: Result | undefined, config: Config, componentInstance: Component | null) =&gt; boolean</code>
499+
</p>
500+
</td>
501+
<td class="docs-api-property-description"><p>Function used to determine whether the dialog is allowed to close.</p>
502+
</td>
503+
</tr>
504+
505+
506+
507+
508+
496509
<tr class="docs-api-properties-row">
497510
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
498511
<code>container: Type&lt;C&gt; | {
@@ -890,6 +903,7 @@ <h4 id="DialogRef" class="docs-header-link docs-api-h4 docs-api-class-name">
890903
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
891904
<code>containerInstance: BasePortalOutlet &amp; {
892905
_closeInteractionType?: FocusOrigin;
906+
_recaptureFocus?: () =&gt; void;
893907
}</code>
894908
</p>
895909
</td>

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,19 @@ <h4 id="MatDialogConfig" class="docs-header-link docs-api-h4 docs-api-class-name
10221022

10231023

10241024

1025+
<tr class="docs-api-properties-row">
1026+
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
1027+
<code>closePredicate: &lt;Result = unknown, Component = unknown, Config extends DialogConfig = MatDialogConfig&gt;(result: Result | undefined, config: Config, componentInstance: Component | null) =&gt; boolean</code>
1028+
</p>
1029+
</td>
1030+
<td class="docs-api-property-description"><p>Function used to determine whether the dialog is allowed to close.</p>
1031+
</td>
1032+
</tr>
1033+
1034+
1035+
1036+
1037+
10251038
<tr class="docs-api-properties-row">
10261039
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
10271040
<code>data: D | null</code>

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": "20.0.0-next.8+sha-663585a",
3+
"version": "20.0.0-next.8+sha-764a1cc",
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": "20.0.0-next.8+sha-663585a",
263-
"@angular/cdk-experimental": "20.0.0-next.8+sha-663585a",
262+
"@angular/cdk": "20.0.0-next.8+sha-764a1cc",
263+
"@angular/cdk-experimental": "20.0.0-next.8+sha-764a1cc",
264264
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
265265
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
266-
"@angular/material": "20.0.0-next.8+sha-663585a",
267-
"@angular/material-experimental": "20.0.0-next.8+sha-663585a",
268-
"@angular/material-moment-adapter": "20.0.0-next.8+sha-663585a",
269-
"@angular/material-luxon-adapter": "20.0.0-next.8+sha-663585a",
270-
"@angular/material-date-fns-adapter": "20.0.0-next.8+sha-663585a"
266+
"@angular/material": "20.0.0-next.8+sha-764a1cc",
267+
"@angular/material-experimental": "20.0.0-next.8+sha-764a1cc",
268+
"@angular/material-moment-adapter": "20.0.0-next.8+sha-764a1cc",
269+
"@angular/material-luxon-adapter": "20.0.0-next.8+sha-764a1cc",
270+
"@angular/material-date-fns-adapter": "20.0.0-next.8+sha-764a1cc"
271271
},
272272
"devDependencies": {
273273
"@angular/cdk": "workspace:*",

0 commit comments

Comments
 (0)