Skip to content

Commit d6d75c2

Browse files
committed
main - b35a52a build: add explicit change detection to docs site
1 parent 891564c commit d6d75c2

File tree

65 files changed

+1140
-1140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1140
-1140
lines changed

docs-content/examples-highlighted/material/slide-toggle/slide-toggle-harness/slide-toggle-harness-example-html.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<span class="hljs-attr">name</span>=<span class="hljs-string">&quot;first-name&quot;</span>&gt;</span>
44
First
55
<span class="hljs-tag">&lt;/<span class="hljs-name">mat-slide-toggle</span>&gt;</span>
6-
<span class="hljs-tag">&lt;<span class="hljs-name">mat-slide-toggle</span> [<span class="hljs-attr">disabled</span>]=<span class="hljs-string">&quot;disabled&quot;</span>&gt;</span>
6+
<span class="hljs-tag">&lt;<span class="hljs-name">mat-slide-toggle</span> [<span class="hljs-attr">disabled</span>]=<span class="hljs-string">&quot;disabled()&quot;</span>&gt;</span>
77
Second
88
<span class="hljs-tag">&lt;/<span class="hljs-name">mat-slide-toggle</span>&gt;</span>

docs-content/examples-highlighted/material/slide-toggle/slide-toggle-harness/slide-toggle-harness-example-ts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<span class="hljs-keyword">import</span> {<span class="hljs-title class_">Component</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>;
1+
<span class="hljs-keyword">import</span> {<span class="hljs-title class_">Component</span>, signal} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>;
22
<span class="hljs-keyword">import</span> {<span class="hljs-title class_">FormControl</span>, <span class="hljs-title class_">FormsModule</span>, <span class="hljs-title class_">ReactiveFormsModule</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/forms&#x27;</span>;
33
<span class="hljs-keyword">import</span> {<span class="hljs-title class_">MatSlideToggleModule</span>} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/slide-toggle&#x27;</span>;
44

@@ -11,6 +11,6 @@
1111
<span class="hljs-attr">imports</span>: [<span class="hljs-title class_">MatSlideToggleModule</span>, <span class="hljs-title class_">FormsModule</span>, <span class="hljs-title class_">ReactiveFormsModule</span>],
1212
})
1313
<span class="hljs-keyword">export</span> <span class="hljs-keyword">class</span> <span class="hljs-title class_">SlideToggleHarnessExample</span> {
14-
disabled = <span class="hljs-literal">true</span>;
14+
disabled = <span class="hljs-title function_">signal</span>(<span class="hljs-literal">true</span>);
1515
ctrl = <span class="hljs-keyword">new</span> <span class="hljs-title class_">FormControl</span>(<span class="hljs-literal">true</span>);
1616
}

docs-content/examples-highlighted/material/slide-toggle/slide-toggle-harness/slide-toggle-harness-example.spec-ts.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
});
4141

4242
<span class="hljs-title function_">it</span>(<span class="hljs-string">&#x27;should toggle slide-toggle&#x27;</span>, <span class="hljs-title function_">async</span> () =&gt; {
43-
fixture.<span class="hljs-property">componentInstance</span>.<span class="hljs-property">disabled</span> = <span class="hljs-literal">false</span>;
44-
fixture.<span class="hljs-property">changeDetectorRef</span>.<span class="hljs-title function_">markForCheck</span>();
43+
fixture.<span class="hljs-property">componentInstance</span>.<span class="hljs-property">disabled</span>.<span class="hljs-title function_">set</span>(<span class="hljs-literal">false</span>);
4544
<span class="hljs-keyword">const</span> [checkedToggle, uncheckedToggle] = <span class="hljs-keyword">await</span> loader.<span class="hljs-title function_">getAllHarnesses</span>(<span class="hljs-title class_">MatSlideToggleHarness</span>);
4645
<span class="hljs-keyword">await</span> checkedToggle.<span class="hljs-title function_">toggle</span>();
4746
<span class="hljs-keyword">await</span> uncheckedToggle.<span class="hljs-title function_">toggle</span>();

docs-content/examples-source/material/slide-toggle/slide-toggle-harness/slide-toggle-harness-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
name="first-name">
44
First
55
</mat-slide-toggle>
6-
<mat-slide-toggle [disabled]="disabled">
6+
<mat-slide-toggle [disabled]="disabled()">
77
Second
88
</mat-slide-toggle>

docs-content/examples-source/material/slide-toggle/slide-toggle-harness/slide-toggle-harness-example.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ describe('SlideToggleHarnessExample', () => {
4040
});
4141

4242
it('should toggle slide-toggle', async () => {
43-
fixture.componentInstance.disabled = false;
44-
fixture.changeDetectorRef.markForCheck();
43+
fixture.componentInstance.disabled.set(false);
4544
const [checkedToggle, uncheckedToggle] = await loader.getAllHarnesses(MatSlideToggleHarness);
4645
await checkedToggle.toggle();
4746
await uncheckedToggle.toggle();

docs-content/examples-source/material/slide-toggle/slide-toggle-harness/slide-toggle-harness-example.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from '@angular/core';
1+
import {Component, signal} from '@angular/core';
22
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
33
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
44

@@ -11,6 +11,6 @@ import {MatSlideToggleModule} from '@angular/material/slide-toggle';
1111
imports: [MatSlideToggleModule, FormsModule, ReactiveFormsModule],
1212
})
1313
export class SlideToggleHarnessExample {
14-
disabled = true;
14+
disabled = signal(true);
1515
ctrl = new FormControl(true);
1616
}

fesm2022/cdk-a11y.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class FocusMonitorDirectivesExample {
2020
}
2121
static ɵfac = i0.ɵɵngDeclareFactory({
2222
minVersion: "12.0.0",
23-
version: "22.0.0-next.4",
23+
version: "22.0.0-next.5",
2424
ngImport: i0,
2525
type: FocusMonitorDirectivesExample,
2626
deps: [],
2727
target: i0.ɵɵFactoryTarget.Component
2828
});
2929
static ɵcmp = i0.ɵɵngDeclareComponent({
3030
minVersion: "14.0.0",
31-
version: "22.0.0-next.4",
31+
version: "22.0.0-next.5",
3232
type: FocusMonitorDirectivesExample,
3333
isStandalone: true,
3434
selector: "focus-monitor-directives-example",
@@ -49,7 +49,7 @@ class FocusMonitorDirectivesExample {
4949
}
5050
i0.ɵɵngDeclareClassMetadata({
5151
minVersion: "12.0.0",
52-
version: "22.0.0-next.4",
52+
version: "22.0.0-next.5",
5353
ngImport: i0,
5454
type: FocusMonitorDirectivesExample,
5555
decorators: [{
@@ -83,15 +83,15 @@ class FocusMonitorFocusViaExample {
8383
}
8484
static ɵfac = i0.ɵɵngDeclareFactory({
8585
minVersion: "12.0.0",
86-
version: "22.0.0-next.4",
86+
version: "22.0.0-next.5",
8787
ngImport: i0,
8888
type: FocusMonitorFocusViaExample,
8989
deps: [],
9090
target: i0.ɵɵFactoryTarget.Component
9191
});
9292
static ɵcmp = i0.ɵɵngDeclareComponent({
9393
minVersion: "14.0.0",
94-
version: "22.0.0-next.4",
94+
version: "22.0.0-next.5",
9595
type: FocusMonitorFocusViaExample,
9696
isStandalone: true,
9797
selector: "focus-monitor-focus-via-example",
@@ -139,7 +139,7 @@ class FocusMonitorFocusViaExample {
139139
}
140140
i0.ɵɵngDeclareClassMetadata({
141141
minVersion: "12.0.0",
142-
version: "22.0.0-next.4",
142+
version: "22.0.0-next.5",
143143
ngImport: i0,
144144
type: FocusMonitorFocusViaExample,
145145
decorators: [{
@@ -186,15 +186,15 @@ class FocusMonitorOverviewExample {
186186
}
187187
static ɵfac = i0.ɵɵngDeclareFactory({
188188
minVersion: "12.0.0",
189-
version: "22.0.0-next.4",
189+
version: "22.0.0-next.5",
190190
ngImport: i0,
191191
type: FocusMonitorOverviewExample,
192192
deps: [],
193193
target: i0.ɵɵFactoryTarget.Component
194194
});
195195
static ɵcmp = i0.ɵɵngDeclareComponent({
196196
minVersion: "14.0.0",
197-
version: "22.0.0-next.4",
197+
version: "22.0.0-next.5",
198198
type: FocusMonitorOverviewExample,
199199
isStandalone: true,
200200
selector: "focus-monitor-overview-example",
@@ -216,7 +216,7 @@ class FocusMonitorOverviewExample {
216216
}
217217
i0.ɵɵngDeclareClassMetadata({
218218
minVersion: "12.0.0",
219-
version: "22.0.0-next.4",
219+
version: "22.0.0-next.5",
220220
ngImport: i0,
221221
type: FocusMonitorOverviewExample,
222222
decorators: [{

fesm2022/cdk-accordion.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class CdkAccordionOverviewExample {
88
expandedIndex = 0;
99
static ɵfac = i0.ɵɵngDeclareFactory({
1010
minVersion: "12.0.0",
11-
version: "22.0.0-next.4",
11+
version: "22.0.0-next.5",
1212
ngImport: i0,
1313
type: CdkAccordionOverviewExample,
1414
deps: [],
1515
target: i0.ɵɵFactoryTarget.Component
1616
});
1717
static ɵcmp = i0.ɵɵngDeclareComponent({
1818
minVersion: "17.0.0",
19-
version: "22.0.0-next.4",
19+
version: "22.0.0-next.5",
2020
type: CdkAccordionOverviewExample,
2121
isStandalone: true,
2222
selector: "cdk-accordion-overview-example",
@@ -44,7 +44,7 @@ class CdkAccordionOverviewExample {
4444
}
4545
i0.ɵɵngDeclareClassMetadata({
4646
minVersion: "12.0.0",
47-
version: "22.0.0-next.4",
47+
version: "22.0.0-next.5",
4848
ngImport: i0,
4949
type: CdkAccordionOverviewExample,
5050
decorators: [{

fesm2022/cdk-clipboard.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ class CdkClipboardOverviewExample {
99
value = `Did you ever hear the tragedy of Darth Plagueis The Wise? I thought not. It's not ` + `a story the Jedi would tell you. It's a Sith legend. Darth Plagueis was a Dark Lord ` + `of the Sith, so powerful and so wise he could use the Force to influence the ` + `midichlorians to create life… He had such a knowledge of the dark side that he could ` + `even keep the ones he cared about from dying. The dark side of the Force is a pathway ` + `to many abilities some consider to be unnatural. He became so powerful… the only ` + `thing he was afraid of was losing his power, which eventually, of course, he did. ` + `Unfortunately, he taught his apprentice everything he knew, then his apprentice ` + `killed him in his sleep. Ironic. He could save others from death, but not himself.`;
1010
static ɵfac = i0.ɵɵngDeclareFactory({
1111
minVersion: "12.0.0",
12-
version: "22.0.0-next.4",
12+
version: "22.0.0-next.5",
1313
ngImport: i0,
1414
type: CdkClipboardOverviewExample,
1515
deps: [],
1616
target: i0.ɵɵFactoryTarget.Component
1717
});
1818
static ɵcmp = i0.ɵɵngDeclareComponent({
1919
minVersion: "14.0.0",
20-
version: "22.0.0-next.4",
20+
version: "22.0.0-next.5",
2121
type: CdkClipboardOverviewExample,
2222
isStandalone: true,
2323
selector: "cdk-clipboard-overview-example",
@@ -56,7 +56,7 @@ class CdkClipboardOverviewExample {
5656
}
5757
i0.ɵɵngDeclareClassMetadata({
5858
minVersion: "12.0.0",
59-
version: "22.0.0-next.4",
59+
version: "22.0.0-next.5",
6060
ngImport: i0,
6161
type: CdkClipboardOverviewExample,
6262
decorators: [{

fesm2022/cdk-dialog.mjs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class CdkDialogDataExample {
1616
}
1717
static ɵfac = i0.ɵɵngDeclareFactory({
1818
minVersion: "12.0.0",
19-
version: "22.0.0-next.4",
19+
version: "22.0.0-next.5",
2020
ngImport: i0,
2121
type: CdkDialogDataExample,
2222
deps: [],
2323
target: i0.ɵɵFactoryTarget.Component
2424
});
2525
static ɵcmp = i0.ɵɵngDeclareComponent({
2626
minVersion: "14.0.0",
27-
version: "22.0.0-next.4",
27+
version: "22.0.0-next.5",
2828
type: CdkDialogDataExample,
2929
isStandalone: true,
3030
selector: "cdk-dialog-data-example",
@@ -38,7 +38,7 @@ class CdkDialogDataExample {
3838
}
3939
i0.ɵɵngDeclareClassMetadata({
4040
minVersion: "12.0.0",
41-
version: "22.0.0-next.4",
41+
version: "22.0.0-next.5",
4242
ngImport: i0,
4343
type: CdkDialogDataExample,
4444
decorators: [{
@@ -54,15 +54,15 @@ class CdkDialogDataExampleDialog {
5454
data = inject(DIALOG_DATA);
5555
static ɵfac = i0.ɵɵngDeclareFactory({
5656
minVersion: "12.0.0",
57-
version: "22.0.0-next.4",
57+
version: "22.0.0-next.5",
5858
ngImport: i0,
5959
type: CdkDialogDataExampleDialog,
6060
deps: [],
6161
target: i0.ɵɵFactoryTarget.Component
6262
});
6363
static ɵcmp = i0.ɵɵngDeclareComponent({
6464
minVersion: "17.0.0",
65-
version: "22.0.0-next.4",
65+
version: "22.0.0-next.5",
6666
type: CdkDialogDataExampleDialog,
6767
isStandalone: true,
6868
selector: "cdk-dialog-data-example-dialog",
@@ -73,7 +73,7 @@ class CdkDialogDataExampleDialog {
7373
}
7474
i0.ɵɵngDeclareClassMetadata({
7575
minVersion: "12.0.0",
76-
version: "22.0.0-next.4",
76+
version: "22.0.0-next.5",
7777
ngImport: i0,
7878
type: CdkDialogDataExampleDialog,
7979
decorators: [{
@@ -105,15 +105,15 @@ class CdkDialogOverviewExample {
105105
}
106106
static ɵfac = i0.ɵɵngDeclareFactory({
107107
minVersion: "12.0.0",
108-
version: "22.0.0-next.4",
108+
version: "22.0.0-next.5",
109109
ngImport: i0,
110110
type: CdkDialogOverviewExample,
111111
deps: [],
112112
target: i0.ɵɵFactoryTarget.Component
113113
});
114114
static ɵcmp = i0.ɵɵngDeclareComponent({
115115
minVersion: "17.0.0",
116-
version: "22.0.0-next.4",
116+
version: "22.0.0-next.5",
117117
type: CdkDialogOverviewExample,
118118
isStandalone: true,
119119
selector: "cdk-dialog-overview-example",
@@ -145,7 +145,7 @@ class CdkDialogOverviewExample {
145145
}
146146
i0.ɵɵngDeclareClassMetadata({
147147
minVersion: "12.0.0",
148-
version: "22.0.0-next.4",
148+
version: "22.0.0-next.5",
149149
ngImport: i0,
150150
type: CdkDialogOverviewExample,
151151
decorators: [{
@@ -162,15 +162,15 @@ class CdkDialogOverviewExampleDialog {
162162
data = inject(DIALOG_DATA);
163163
static ɵfac = i0.ɵɵngDeclareFactory({
164164
minVersion: "12.0.0",
165-
version: "22.0.0-next.4",
165+
version: "22.0.0-next.5",
166166
ngImport: i0,
167167
type: CdkDialogOverviewExampleDialog,
168168
deps: [],
169169
target: i0.ɵɵFactoryTarget.Component
170170
});
171171
static ɵcmp = i0.ɵɵngDeclareComponent({
172172
minVersion: "14.0.0",
173-
version: "22.0.0-next.4",
173+
version: "22.0.0-next.5",
174174
type: CdkDialogOverviewExampleDialog,
175175
isStandalone: true,
176176
selector: "cdk-dialog-overview-example-dialog",
@@ -200,7 +200,7 @@ class CdkDialogOverviewExampleDialog {
200200
}
201201
i0.ɵɵngDeclareClassMetadata({
202202
minVersion: "12.0.0",
203-
version: "22.0.0-next.4",
203+
version: "22.0.0-next.5",
204204
ngImport: i0,
205205
type: CdkDialogOverviewExampleDialog,
206206
decorators: [{
@@ -221,15 +221,15 @@ class CdkDialogStylingExample {
221221
}
222222
static ɵfac = i0.ɵɵngDeclareFactory({
223223
minVersion: "12.0.0",
224-
version: "22.0.0-next.4",
224+
version: "22.0.0-next.5",
225225
ngImport: i0,
226226
type: CdkDialogStylingExample,
227227
deps: [],
228228
target: i0.ɵɵFactoryTarget.Component
229229
});
230230
static ɵcmp = i0.ɵɵngDeclareComponent({
231231
minVersion: "14.0.0",
232-
version: "22.0.0-next.4",
232+
version: "22.0.0-next.5",
233233
type: CdkDialogStylingExample,
234234
isStandalone: true,
235235
selector: "cdk-dialog-styling-example",
@@ -243,7 +243,7 @@ class CdkDialogStylingExample {
243243
}
244244
i0.ɵɵngDeclareClassMetadata({
245245
minVersion: "12.0.0",
246-
version: "22.0.0-next.4",
246+
version: "22.0.0-next.5",
247247
ngImport: i0,
248248
type: CdkDialogStylingExample,
249249
decorators: [{
@@ -259,15 +259,15 @@ class CdkDialogStylingExampleDialog {
259259
dialogRef = inject(DialogRef);
260260
static ɵfac = i0.ɵɵngDeclareFactory({
261261
minVersion: "12.0.0",
262-
version: "22.0.0-next.4",
262+
version: "22.0.0-next.5",
263263
ngImport: i0,
264264
type: CdkDialogStylingExampleDialog,
265265
deps: [],
266266
target: i0.ɵɵFactoryTarget.Component
267267
});
268268
static ɵcmp = i0.ɵɵngDeclareComponent({
269269
minVersion: "14.0.0",
270-
version: "22.0.0-next.4",
270+
version: "22.0.0-next.5",
271271
type: CdkDialogStylingExampleDialog,
272272
isStandalone: true,
273273
selector: "cdk-dialog-styling-example-dialog",
@@ -278,7 +278,7 @@ class CdkDialogStylingExampleDialog {
278278
}
279279
i0.ɵɵngDeclareClassMetadata({
280280
minVersion: "12.0.0",
281-
version: "22.0.0-next.4",
281+
version: "22.0.0-next.5",
282282
ngImport: i0,
283283
type: CdkDialogStylingExampleDialog,
284284
decorators: [{

0 commit comments

Comments
 (0)