Skip to content

Commit cee72d2

Browse files
authored
fix: update origin to 0812ac3bec9b9f2fabba5a379e6626aa641a97c9 (#1092)
* fix: migrate source code translation changes * fix: update origin to 0812ac3bec9b9f2fabba5a379e6626aa641a97c9
1 parent 91b2c00 commit cee72d2

File tree

12 files changed

+133
-55
lines changed

12 files changed

+133
-55
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export default class UpdateComponent {
7171
protected afterRecommendations: Step[] = [];
7272

7373
protected readonly versions = [
74+
{name: '21.0', number: 2100},
7475
{name: '20.0', number: 2000},
7576
{name: '19.0', number: 1900},
7677
{name: '18.0', number: 1800},
@@ -108,8 +109,8 @@ export default class UpdateComponent {
108109
{name: '2.1', number: 201},
109110
{name: '2.0', number: 200},
110111
];
111-
protected from = this.versions.find((version) => version.name === '19.0')!;
112-
protected to = this.versions.find((version) => version.name === '20.0')!;
112+
protected from = this.versions.find((version) => version.name === '20.0')!;
113+
protected to = this.versions.find((version) => version.name === '21.0')!;
113114
protected futureVersion = 2100;
114115

115116
protected readonly steps: Step[] = RECOMMENDATIONS;

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export default class UpdateComponent {
7171
protected afterRecommendations: Step[] = [];
7272

7373
protected readonly versions = [
74+
{name: '21.0', number: 2100},
7475
{name: '20.0', number: 2000},
7576
{name: '19.0', number: 1900},
7677
{name: '18.0', number: 1800},
@@ -108,8 +109,8 @@ export default class UpdateComponent {
108109
{name: '2.1', number: 201},
109110
{name: '2.0', number: 200},
110111
];
111-
protected from = this.versions.find((version) => version.name === '19.0')!;
112-
protected to = this.versions.find((version) => version.name === '20.0')!;
112+
protected from = this.versions.find((version) => version.name === '20.0')!;
113+
protected to = this.versions.find((version) => version.name === '21.0')!;
113114
protected futureVersion = 2100;
114115

115116
protected readonly steps: Step[] = RECOMMENDATIONS;

adev-ja/src/app/routing/sub-navigation-data.en.ts

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import FIRST_APP_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/first-app
1414
import LEARN_ANGULAR_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/learn-angular/routes.json';
1515
import DEFERRABLE_VIEWS_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/deferrable-views/routes.json';
1616
import SIGNALS_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/signals/routes.json';
17+
import SIGNAL_FORMS_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/signal-forms/routes.json';
1718
import ERRORS_NAV_DATA from '../../../src/assets/content/reference/errors/routes.json';
1819
import EXT_DIAGNOSTICS_NAV_DATA from '../../../src/assets/content/reference/extended-diagnostics/routes.json';
1920

@@ -435,19 +436,31 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
435436
label: 'Overview',
436437
path: 'guide/forms/signals/overview',
437438
contentPath: 'guide/forms/signals/overview',
438-
status: 'new',
439439
},
440440
{
441441
label: 'Form models',
442442
path: 'guide/forms/signals/models',
443443
contentPath: 'guide/forms/signals/models',
444-
status: 'new',
444+
},
445+
{
446+
label: 'Field state management',
447+
path: 'guide/forms/signals/field-state-management',
448+
contentPath: 'guide/forms/signals/field-state-management',
449+
},
450+
{
451+
label: 'Validation',
452+
path: 'guide/forms/signals/validation',
453+
contentPath: 'guide/forms/signals/validation',
454+
},
455+
{
456+
label: 'Custom controls',
457+
path: 'guide/forms/signals/custom-controls',
458+
contentPath: 'guide/forms/signals/custom-controls',
445459
},
446460
{
447461
label: 'Comparison with other form systems',
448462
path: 'guide/forms/signals/comparison',
449463
contentPath: 'guide/forms/signals/comparison',
450-
status: 'new',
451464
},
452465
],
453466
},
@@ -592,6 +605,11 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
592605
path: 'guide/testing/utility-apis',
593606
contentPath: 'guide/testing/utility-apis',
594607
},
608+
{
609+
label: 'Zone.js Testing Utilities',
610+
path: 'guide/testing/zone-js-testing-utilities',
611+
contentPath: 'guide/testing/zone-js-testing-utilities',
612+
},
595613
{
596614
label: 'Component harnesses overview',
597615
path: 'guide/testing/component-harnesses-overview',
@@ -1201,6 +1219,7 @@ export const TUTORIALS_SUB_NAVIGATION_DATA: NavigationItem[] = [
12011219
LEARN_ANGULAR_TUTORIAL_NAV_DATA,
12021220
DEFERRABLE_VIEWS_TUTORIAL_NAV_DATA,
12031221
SIGNALS_TUTORIAL_NAV_DATA,
1222+
SIGNAL_FORMS_TUTORIAL_NAV_DATA,
12041223
{
12051224
path: DEFAULT_PAGES.TUTORIALS,
12061225
contentPath: 'tutorials/home',

adev-ja/src/app/routing/sub-navigation-data.ts

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import FIRST_APP_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/first-app
1414
import LEARN_ANGULAR_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/learn-angular/routes.json';
1515
import DEFERRABLE_VIEWS_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/deferrable-views/routes.json';
1616
import SIGNALS_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/signals/routes.json';
17+
import SIGNAL_FORMS_TUTORIAL_NAV_DATA from '../../../src/assets/tutorials/signal-forms/routes.json';
1718
import ERRORS_NAV_DATA from '../../../src/assets/content/reference/errors/routes.json';
1819
import EXT_DIAGNOSTICS_NAV_DATA from '../../../src/assets/content/reference/extended-diagnostics/routes.json';
1920

@@ -435,19 +436,31 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
435436
label: '概要',
436437
path: 'guide/forms/signals/overview',
437438
contentPath: 'guide/forms/signals/overview',
438-
status: 'new',
439439
},
440440
{
441441
label: 'フォームモデル',
442442
path: 'guide/forms/signals/models',
443443
contentPath: 'guide/forms/signals/models',
444-
status: 'new',
444+
},
445+
{
446+
label: 'フィールド状態管理',
447+
path: 'guide/forms/signals/field-state-management',
448+
contentPath: 'guide/forms/signals/field-state-management',
449+
},
450+
{
451+
label: 'バリデーション',
452+
path: 'guide/forms/signals/validation',
453+
contentPath: 'guide/forms/signals/validation',
454+
},
455+
{
456+
label: 'カスタムコントロール',
457+
path: 'guide/forms/signals/custom-controls',
458+
contentPath: 'guide/forms/signals/custom-controls',
445459
},
446460
{
447461
label: '他のフォームシステムとの比較',
448462
path: 'guide/forms/signals/comparison',
449463
contentPath: 'guide/forms/signals/comparison',
450-
status: 'new',
451464
},
452465
],
453466
},
@@ -592,6 +605,11 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
592605
path: 'guide/testing/utility-apis',
593606
contentPath: 'guide/testing/utility-apis',
594607
},
608+
{
609+
label: 'Zone.jsテストユーティリティ',
610+
path: 'guide/testing/zone-js-testing-utilities',
611+
contentPath: 'guide/testing/zone-js-testing-utilities',
612+
},
595613
{
596614
label: 'コンポーネントハーネスの概要',
597615
path: 'guide/testing/component-harnesses-overview',
@@ -1201,6 +1219,7 @@ export const TUTORIALS_SUB_NAVIGATION_DATA: NavigationItem[] = [
12011219
LEARN_ANGULAR_TUTORIAL_NAV_DATA,
12021220
DEFERRABLE_VIEWS_TUTORIAL_NAV_DATA,
12031221
SIGNALS_TUTORIAL_NAV_DATA,
1222+
SIGNAL_FORMS_TUTORIAL_NAV_DATA,
12041223
{
12051224
path: DEFAULT_PAGES.TUTORIALS,
12061225
contentPath: 'tutorials/home',

adev-ja/src/content/best-practices/style-guide.en.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,15 @@ Prefer `class` and `style` bindings over using the [`NgClass`](/api/common/NgCla
222222
```html
223223
<!-- PREFER -->
224224
<div [class.admin]="isAdmin" [class.dense]="density === 'high'">
225+
<div [style.color]="textColor" [style.background-color]="backgroundColor">
225226
<!-- OR -->
226227
<div [class]="{admin: isAdmin, dense: density === 'high'}">
228+
<div [style]="{'color': textColor, 'background-color': backgroundColor}">
227229

228230

229231
<!-- AVOID -->
230232
<div [ngClass]="{admin: isAdmin, dense: density === 'high'}">
233+
<div [ngStyle]="{'color': textColor, 'background-color': backgroundColor}">
231234
```
232235

233236
Both `class` and `style` bindings use a more straightforward syntax that aligns closely with

adev-ja/src/content/guide/aria/overview.en.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,31 @@ npm install @angular/aria
1717

1818
For example, let's take a toolbar menu. While it may appear to be a "simple" row of buttons tied with specific logic, keyboard navigation and screen readers add a lot of unexpected complexity to those unfamiliar with accessibility.
1919

20-
```
21-
<!------------------------------------->
22-
<!-- INSERT EMBEDDED DEMO OF TOOLBAR -->
23-
<!------------------------------------->
24-
```
20+
<docs-tab-group>
21+
<docs-tab label="Basic">
22+
<docs-code-multifile preview hideCode path="adev/src/content/examples/aria/toolbar/src/basic/app/app.ts">
23+
<docs-code header="app.ts" path="adev/src/content/examples/aria/toolbar/src/basic/app/app.ts"/>
24+
<docs-code header="app.html" path="adev/src/content/examples/aria/toolbar/src/basic/app/app.html"/>
25+
<docs-code header="app.css" path="adev/src/content/examples/aria/toolbar/src/basic/app/app.css"/>
26+
</docs-code-multifile>
27+
</docs-tab>
28+
29+
<docs-tab label="Material">
30+
<docs-code-multifile preview hideCode path="adev/src/content/examples/aria/toolbar/src/basic/material/app/app.ts">
31+
<docs-code header="app.ts" path="adev/src/content/examples/aria/toolbar/src/basic/material/app/app.ts"/>
32+
<docs-code header="app.html" path="adev/src/content/examples/aria/toolbar/src/basic/material/app/app.html"/>
33+
<docs-code header="app.css" path="adev/src/content/examples/aria/toolbar/src/basic/material/app/app.css"/>
34+
</docs-code-multifile>
35+
</docs-tab>
36+
37+
<docs-tab label="Retro">
38+
<docs-code-multifile preview hideCode path="adev/src/content/examples/aria/toolbar/src/basic/retro/app/app.ts">
39+
<docs-code header="app.ts" path="adev/src/content/examples/aria/toolbar/src/basic/retro/app/app.ts"/>
40+
<docs-code header="app.html" path="adev/src/content/examples/aria/toolbar/src/basic/retro/app/app.html"/>
41+
<docs-code header="app.css" path="adev/src/content/examples/aria/toolbar/src/basic/retro/app/app.css"/>
42+
</docs-code-multifile>
43+
</docs-tab>
44+
</docs-tab-group>
2545

2646
In this one scenario, developers need to consider:
2747

@@ -42,6 +62,7 @@ Angular Aria includes directives for common interactive patterns:
4262
| [Grid](guide/aria/grid) | Two-dimensional data display with cell-by-cell keyboard navigation |
4363
| [Listbox](guide/aria/listbox) | Single or multi-select option lists with keyboard navigation |
4464
| [Menu](guide/aria/menu) | Dropdown menus with nested submenus and keyboard shortcuts |
65+
| [Menubar](guide/aria/menubar) | Horizontal navigation bar for persistent application menus. |
4566
| [Multiselect](guide/aria/multiselect) | Multiple-selection dropdown pattern with compact display |
4667
| [Select](guide/aria/select) | Single-selection dropdown pattern with keyboard navigation |
4768
| [Tabs](guide/aria/tabs) | Tabbed interfaces with automatic or manual activation modes |
@@ -63,7 +84,7 @@ Angular Aria works well when you need accessible interactive components that are
6384
Angular Aria might not fit every scenario:
6485

6586
- **Pre-styled components** - If you need components that look complete without custom styling, use Angular Material instead
66-
- **Simple forms** - Native HTML form controls like <button> and <input type="radio"> provide built-in accessibility for straightforward use cases
87+
- **Simple forms** - Native HTML form controls like `<button>` and `<input type="radio">` provide built-in accessibility for straightforward use cases
6788
- **Rapid prototyping** - When validating concepts quickly, pre-styled component libraries reduce initial development time
6889

6990
## Next steps

adev-ja/src/content/guide/components/lifecycle.en.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,20 @@ mapping each component input name to a `SimpleChange` object. Each `SimpleChange
108108
input's previous value, its current value, and a flag for whether this is the first time the input
109109
has changed.
110110

111+
You can optionally pass the current class or this as the first generic argument for stronger type checking.
112+
111113
```ts
112114
@Component({
113115
/* ... */
114116
})
115117
export class UserProfile {
116118
name = input('');
117119

118-
ngOnChanges(changes: SimpleChanges) {
119-
for (const inputName in changes) {
120-
const inputValues = changes[inputName];
121-
console.log(`Previous ${inputName} == ${inputValues.previousValue}`);
122-
console.log(`Current ${inputName} == ${inputValues.currentValue}`);
123-
console.log(`Is first ${inputName} change == ${inputValues.firstChange}`);
120+
ngOnChanges(changes: SimpleChanges<UserProfile>) {
121+
if (changes.name) {
122+
console.log(`Previous: ${changes.name.previousValue}`);
123+
console.log(`Current: ${changes.name.currentValue}`);
124+
console.log(`Is first ${changes.name.firstChange}`);
124125
}
125126
}
126127
}

adev-ja/src/content/guide/testing/services.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Testing services
22

3+
NOTE: While this guide is being updated for Vitest, some code examples currently use Karma/Jasmine syntax and APIs. We are actively working to provide Vitest equivalents where applicable.
4+
35
To check that your services are working as you intend, you can write tests specifically for them.
46

57
Services are often the smoothest files to unit test.

0 commit comments

Comments
 (0)