Skip to content

Commit fbbf73a

Browse files
authored
chore: update origin to ef0359676c (Angular v22.2.1) (#1202)
* chore: update origin to ef0359676c * fix: migrate untranslated files * chore: remove pages deleted upstream * fix(docs): mirror upstream code and link changes in src/content/guide/components * fix(docs): retranslate updated sections in src/content/guide/components * chore(docs): insert new upstream sections untranslated in src/content/guide/components * fix(docs): apply upstream wording changes in src/content/guide/templates * fix(docs): retranslate updated sections in src/content/guide/templates * fix(docs): apply upstream wording changes in src/content/guide/testing * fix(docs): retranslate updated sections in src/content/guide/testing * fix(docs): apply upstream wording changes in src/content/guide/forms * fix(docs): retranslate updated sections in src/content/guide/forms * fix(docs): apply upstream wording changes in src/content/guide/forms/signals * fix(docs): retranslate updated sections in src/content/guide/forms/signals * chore(docs): insert new upstream sections untranslated in src/content/guide/forms/signals * fix(docs): mirror upstream code and link changes in src/content/guide/routing * fix(docs): apply upstream wording changes in src/content/guide/routing * fix(docs): retranslate updated sections in src/content/guide/routing * chore(docs): insert new upstream sections untranslated in src/content/guide/routing * fix(docs): apply upstream wording changes in src/content/tutorials/first-app/steps/01-hello-world * fix(docs): apply upstream wording changes in src/content/tutorials/first-app/steps/05-inputs * fix(docs): apply upstream wording changes in src/content/tutorials/signal-forms/steps/6-next-steps * fix(docs): mirror upstream code and link changes in src/content/tutorials/learn-angular/steps/15-forms * fix(docs): mirror upstream code and link changes in src/content/tutorials/learn-angular/steps/17-reactive-forms * fix(docs): mirror upstream code and link changes in src/content/tutorials/learn-angular/steps/23-pipes-format-data * fix(docs): mirror upstream code and link changes in src/content/tutorials/learn-angular/steps/24-create-a-pipe * fix(docs): mirror upstream code and link changes in src/content/tutorials/signals/steps/4-managing-async-data-with-signals * fix(docs): apply upstream wording changes in src/content/guide * fix(docs): retranslate updated sections in src/content/guide * chore(docs): insert new upstream sections untranslated in src/content/guide * fix(docs): mirror upstream code and link changes in src/content/guide/di * fix(docs): retranslate updated sections in src/content/guide/di * chore(docs): insert new upstream sections untranslated in src/content/guide/di * fix(docs): apply upstream wording changes in src/content/guide/animations * fix(docs): retranslate updated sections in src/content/guide/animations * chore(docs): insert new upstream sections untranslated in src/content/guide/animations * chore(docs): insert new upstream sections untranslated in src/content/guide/aria * fix(docs): retranslate updated sections in src/content/guide/http * fix(docs): retranslate updated sections in src/content/guide/signals * fix(docs): apply upstream wording changes in src/content/reference * fix(docs): retranslate updated sections in src/content/reference * fix(docs): retranslate updated sections in src/content/reference/configs * fix(docs): apply upstream wording changes in src/content/reference/errors * fix(docs): retranslate updated sections in src/content/reference/errors * chore(docs): insert new upstream sections untranslated in src/content/reference/errors * fix(docs): retranslate updated sections in src/content/ai * fix(docs): retranslate updated sections in src/content/best-practices * fix(docs): apply upstream wording changes in src/content/best-practices/runtime-performance * fix(docs): apply upstream wording changes in src/content/introduction/essentials * fix(docs): retranslate updated sections in src/content/introduction/essentials * fix(docs): apply upstream wording changes in src/content/tools/cli * fix(docs): retranslate updated sections in src/content/tools/devtools * fix(app): mirror upstream code changes in src/app/core/services * fix(app): mirror upstream code changes in src/app/features/home * fix(app): apply upstream changes to translated strings in src/app/features/home/components/hydration-example * fix(app): mirror upstream code changes in src/app/features/update * fix(app): apply upstream changes to translated strings in src/app/features/update * fix(app): apply upstream changes to translated strings in src/app/routing/navigation-entries * fix(app): mirror upstream code changes in src/content/tutorials/signals/steps/5-component-communication-with-signals * fix(app): mirror upstream code changes in src * fix: update patches for upstream ANGULAR_DEV constant extraction * fix(docs): fix lint errors in migrated pages * fix(docs): mirror upstream code and link changes in src/content/guide/templates * fix(docs): apply missed upstream wording changes * fix: drop orphan entries for pages removed upstream * fix(docs): add heading IDs referenced by upstream links
1 parent 4691c9b commit fbbf73a

255 files changed

Lines changed: 2982 additions & 1510 deletions

File tree

Some content is hidden

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

‎adev-ja/src/app/core/services/a-dev-title-strategy.en.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ import {NavigationItem} from '@angular/docs';
1111
import {Meta, Title} from '@angular/platform-browser';
1212
import {ActivatedRouteSnapshot, RouterStateSnapshot, TitleStrategy} from '@angular/router';
1313

14-
export const ROUTE_TITLE_PROPERTY = 'label';
15-
export const ROUTE_PARENT_PROPERTY = 'parent';
1614
export const TITLE_SUFFIX = 'Angular';
17-
export const TITLE_SEPARATOR = ' • ';
15+
const TITLE_SEPARATOR = ' • ';
1816
export const DEFAULT_PAGE_TITLE = 'Overview';
1917

20-
export const TITLE_OG_META_TAG = 'og:title';
21-
export const TITLE_TWITTER_META_TAG = 'twitter:title';
18+
const TITLE_OG_META_TAG = 'og:title';
19+
const TITLE_TWITTER_META_TAG = 'twitter:title';
2220

2321
export const ALL_TITLE_META_TAGS = [TITLE_OG_META_TAG, TITLE_TWITTER_META_TAG];
2422

‎adev-ja/src/app/core/services/a-dev-title-strategy.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ import {NavigationItem} from '@angular/docs';
1111
import {Meta, Title} from '@angular/platform-browser';
1212
import {ActivatedRouteSnapshot, RouterStateSnapshot, TitleStrategy} from '@angular/router';
1313

14-
export const ROUTE_TITLE_PROPERTY = 'label';
15-
export const ROUTE_PARENT_PROPERTY = 'parent';
1614
export const TITLE_SUFFIX = 'Angular 日本語版';
17-
export const TITLE_SEPARATOR = ' • ';
15+
const TITLE_SEPARATOR = ' • ';
1816
export const DEFAULT_PAGE_TITLE = 'Overview';
1917

20-
export const TITLE_OG_META_TAG = 'og:title';
21-
export const TITLE_TWITTER_META_TAG = 'twitter:title';
18+
const TITLE_OG_META_TAG = 'og:title';
19+
const TITLE_TWITTER_META_TAG = 'twitter:title';
2220

2321
export const ALL_TITLE_META_TAGS = [TITLE_OG_META_TAG, TITLE_TWITTER_META_TAG];
2422

‎adev-ja/src/app/features/home/components/hydration-example/hydration-example.en.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ <h3 class="terminal-title font-mono">Hydration Engine Log</h3>
5757
<span class="log-tag">event:</span>
5858
<span class="log-msg">{{ evt }}</span>
5959
</div>
60-
}
61-
@if (eventQueue().length === 0) {
60+
} @empty {
6261
<div class="log-placeholder">Awaiting app bootstrap...</div>
6362
}
6463
</div>

‎adev-ja/src/app/features/home/components/hydration-example/hydration-example.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ <h3 class="terminal-title font-mono">ハイドレーションエンジンログ<
5757
<span class="log-tag">event:</span>
5858
<span class="log-msg">{{ evt }}</span>
5959
</div>
60-
}
61-
@if (eventQueue().length === 0) {
60+
} @empty {
6261
<div class="log-placeholder">アプリのブートストラップを待機中...</div>
6362
}
6463
</div>

‎adev-ja/src/app/features/home/home.component.en.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1 tabindex="-1">Angular v22 is here!</h1>
99
</a>
1010

1111
<div class="search-field">
12-
<docs-text-field placeholder="search" (click)="openSearch()" />
12+
<docs-text-field placeholder="Search" (click)="openSearch()" />
1313
</div>
1414
</div>
1515

‎adev-ja/src/app/features/home/home.component.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1 tabindex="-1">Angular v22がリリースされました!</h1>
99
</a>
1010

1111
<div class="search-field">
12-
<docs-text-field placeholder="search" (click)="openSearch()" />
12+
<docs-text-field placeholder="Search" (click)="openSearch()" />
1313
</div>
1414
</div>
1515

‎adev-ja/src/app/features/update/recommendations.en.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,6 +2780,14 @@ export const RECOMMENDATIONS: Step[] = [
27802780
possibleIn: 2100,
27812781
step: '21.0.0_ng_update',
27822782
},
2783+
{
2784+
possibleIn: 2100,
2785+
necessaryAsOf: 2100,
2786+
level: ApplicationComplexity.Advanced,
2787+
step: '21.0.0-safe-resource-url-audio-src',
2788+
action:
2789+
'If you use `SafeResourceUrl` values with `audio[src]` bindings, be aware that `audio[src]` is no longer sanitized in Angular v21. Existing uses of `bypassSecurityTrustResourceUrl` may therefore produce the `SafeValue must use [property]=binding` message. Remove the unnecessary sanitization and bind the URL directly instead.',
2790+
},
27832791

27842792
{
27852793
possibleIn: 2100,

‎adev-ja/src/app/features/update/recommendations.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,6 +2780,14 @@ export const RECOMMENDATIONS: Step[] = [
27802780
possibleIn: 2100,
27812781
step: '21.0.0_ng_update',
27822782
},
2783+
{
2784+
possibleIn: 2100,
2785+
necessaryAsOf: 2100,
2786+
level: ApplicationComplexity.Advanced,
2787+
step: '21.0.0-safe-resource-url-audio-src',
2788+
action:
2789+
'`SafeResourceUrl` の値を `audio[src]` バインディングで使用している場合、Angular v21 では `audio[src]` がサニタイズされなくなる点に注意してください。そのため、既存の `bypassSecurityTrustResourceUrl` の使用が `SafeValue must use [property]=binding` というメッセージを出力することがあります。不要なサニタイズを削除し、URLを直接バインドしてください。',
2790+
},
27832791

27842792
{
27852793
possibleIn: 2100,

‎adev-ja/src/app/features/update/update.component.en.html‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ <h2>{{ title() }}</h2>
147147
<h3>Before you update</h3>
148148
@for (r of beforeRecommendations; track $index) {
149149
<div class="adev-recommendation-item">
150-
<mat-checkbox />
151-
<div class="adev-recommendation-content">
150+
<mat-checkbox #checkbox [aria-labelledby]="'adev-before-recommendation-' + $index" />
151+
<div
152+
class="adev-recommendation-content"
153+
[id]="'adev-before-recommendation-' + $index"
154+
(click)="toggleRecommendation($event, checkbox)"
155+
>
152156
<div [innerHTML]="r.renderedStep"></div>
153157
<span class="adev-complexity-badge" [class]="'adev-complexity-' + r.level">
154158
{{ getComplexityLevelName(r.level) }}
@@ -171,8 +175,12 @@ <h3>Update to the new version</h3>
171175

172176
@for (r of duringRecommendations; track $index) {
173177
<div class="adev-recommendation-item">
174-
<mat-checkbox />
175-
<div class="adev-recommendation-content">
178+
<mat-checkbox #checkbox [aria-labelledby]="'adev-during-recommendation-' + $index" />
179+
<div
180+
class="adev-recommendation-content"
181+
[id]="'adev-during-recommendation-' + $index"
182+
(click)="toggleRecommendation($event, checkbox)"
183+
>
176184
<div [innerHTML]="r.renderedStep"></div>
177185
<span class="adev-complexity-badge" [class]="'adev-complexity-' + r.level">
178186
{{ getComplexityLevelName(r.level) }}
@@ -189,8 +197,12 @@ <h3>Update to the new version</h3>
189197
<h3>After you update</h3>
190198
@for (r of afterRecommendations; track $index) {
191199
<div class="adev-recommendation-item">
192-
<mat-checkbox />
193-
<div class="adev-recommendation-content">
200+
<mat-checkbox #checkbox [aria-labelledby]="'adev-after-recommendation-' + $index" />
201+
<div
202+
class="adev-recommendation-content"
203+
[id]="'adev-after-recommendation-' + $index"
204+
(click)="toggleRecommendation($event, checkbox)"
205+
>
194206
<div [innerHTML]="r.renderedStep"></div>
195207
<span class="adev-complexity-badge" [class]="'adev-complexity-' + r.level">
196208
{{ getComplexityLevelName(r.level) }}

‎adev-ja/src/app/features/update/update.component.en.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,18 @@ export default class UpdateComponent {
154154
}
155155
}
156156

157+
protected toggleRecommendation(event: MouseEvent, checkbox: MatCheckbox): void {
158+
const target = event.target as Element | null;
159+
160+
// Keep links in the recommendation independently operable.
161+
if (target?.closest('a')) {
162+
return;
163+
}
164+
165+
checkbox.toggle();
166+
checkbox.focus();
167+
}
168+
157169
async showUpdatePath() {
158170
this.beforeRecommendations = [];
159171
this.duringRecommendations = [];

0 commit comments

Comments
 (0)