Skip to content

Commit 9fb879a

Browse files
authored
docs(grid): sync JP grids_templates styling sections to match updated EN samples
1 parent f9874d2 commit 9fb879a

12 files changed

Lines changed: 260 additions & 228 deletions

docs/angular/src/content/jp/grids_templates/advanced-filtering.mdx

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,13 @@ ngAfterViewInit(): void {
245245
// @import '~igniteui-angular/lib/core/styles/themes/index';
246246
```
247247

248-
高度なフィルタリング ダイアログは <ApiLink type="QueryBuilder" /> コンポーネントを使用するため、<ApiLink kind="sass" module="themes" type="query-builder-theme" label="query-builder-theme" code={true} /> を使用してスタイルを設定できます。ヘッダー タイトルのスタイルを設定するには、<ApiLink kind="sass" module="themes" type="query-builder-theme" label="query-builder-theme" code={true} /> を拡張するカスタム テーマを作成し、`$header-foreground` パラメーターを設定します。
248+
高度なフィルタリング ダイアログは <ApiLink type="QueryBuilder" /> コンポーネントを使用するため、<ApiLink kind="sass" module="themes" type="query-builder-theme" label="query-builder-theme" code={true} /> を使用してスタイルを設定できます。<ApiLink kind="sass" module="themes" type="query-builder-theme" label="query-builder-theme" code={true} /> を拡張するカスタム テーマを作成し、`$background``$foreground``$accent-color` パラメーターを設定します。
249249

250250
```scss
251251
$custom-query-builder: query-builder-theme(
252-
$header-foreground: #512da8
252+
$background: #1f2836,
253+
$foreground: #f5f6e6,
254+
$accent-color: #f5f6e6
253255
);
254256
```
255257

@@ -260,15 +262,6 @@ $custom-query-builder: query-builder-theme(
260262
最後にコンポーネントのテーマをアプリケーションに**含めます**
261263

262264
```scss
263-
$custom-query-builder: query-builder-theme(
264-
$header-foreground: #512da8,
265-
$color-expression-group-and: #eb0000,
266-
$color-expression-group-or: #0000f3,
267-
$subquery-header-background: var(--ig-gray-300),
268-
$subquery-border-color: var(--ig-warn-500),
269-
$subquery-border-radius: rem(4px)
270-
);
271-
272265
igx-advanced-filtering-dialog {
273266
@include tokens($custom-query-builder);
274267
}
@@ -283,15 +276,6 @@ igx-advanced-filtering-dialog {
283276
</DocsAside>
284277

285278
```scss
286-
$custom-query-builder: query-builder-theme(
287-
$header-foreground: #512da8,
288-
$color-expression-group-and: #eb0000,
289-
$color-expression-group-or: #0000f3,
290-
$subquery-header-background: var(--ig-gray-300),
291-
$subquery-border-color: var(--ig-warn-500),
292-
$subquery-border-radius: rem(4px)
293-
);
294-
295279
:host {
296280
::ng-deep {
297281
igx-advanced-filtering-dialog {

docs/angular/src/content/jp/grids_templates/cell-editing.mdx

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,22 +574,50 @@ $color-palette: palette(
574574
これで、パレットを使用してテーマを定義できます。セルは <ApiLink kind="sass" module="themes" type="function-grid-theme" label="grid-theme" code={true} /> によってスタイル設定されているため、それを使用して {ComponentName} のテーマを生成できます。
575575

576576
```scss
577-
$custom-grid-theme: grid-theme(
577+
$grid-theme: grid-theme(
578578
$cell-editing-background: $blue,
579+
$cell-editing-foreground: $white,
580+
$cell-active-border-color: $blue,
579581
$cell-edited-value-color: $white,
580-
$cell-active-border-color: $white,
581-
$edit-mode-color: color($color-palette, "secondary", 200)
582+
$edit-mode-color: color($color: "secondary", $variant: 200)
582583
);
583584
```
584585

585586
### テーマを適用
586587

587-
テーマを適用する最も簡単な方法は、グローバル スタイル ファイルに `sass` `@include` ステートメントを使用することです。
588+
最後の手順は、カスタム パレットとグリッド テーマを**含める**ことです。
589+
590+
<ComponentBlock for="Grid">
591+
592+
```scss
593+
igx-grid {
594+
@include palette($color-palette);
595+
@include tokens($grid-theme);
596+
}
597+
```
598+
599+
</ComponentBlock>
600+
<ComponentBlock for="TreeGrid">
588601

589602
```scss
590-
@include grid($custom-grid-theme);
603+
igx-tree-grid {
604+
@include palette($color-palette);
605+
@include tokens($grid-theme);
606+
}
591607
```
592608

609+
</ComponentBlock>
610+
<ComponentBlock for="HierarchicalGrid">
611+
612+
```scss
613+
igx-hierarchical-grid {
614+
@include palette($color-palette);
615+
@include tokens($grid-theme);
616+
}
617+
```
618+
619+
</ComponentBlock>
620+
593621
### デモ
594622

595623
上記の手順に加えて、セルの編集テンプレートに使用されるコントロールのスタイルを設定することもできます ([`input-group`](/input-group.md#スタイル設定)[`datepicker`](/date-picker.md#スタイル設定) および [`checkbox`](/checkbox.md#スタイル設定))。

docs/angular/src/content/jp/grids_templates/column-resizing.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,34 @@ column.autosize();
313313

314314
最も簡単な方法は、<ApiLink kind="sass" module="themes" type="function-grid-theme" label="grid-theme" code={true} /> を拡張し、`$resize-line-color` パラメーター以外にも多くのパラメータを受け入れます。
315315

316+
<ComponentBlock for="Grid">
317+
316318
``` scss
317319
$custom-grid-theme: grid-theme(
318320
$resize-line-color: #0288d1
319321
);
320322
```
321323

324+
</ComponentBlock>
325+
<ComponentBlock for="TreeGrid">
326+
327+
``` scss
328+
$custom-grid-theme: grid-theme(
329+
$resize-line-color: #dc38e8
330+
);
331+
```
332+
333+
</ComponentBlock>
334+
<ComponentBlock for="HierarchicalGrid">
335+
336+
``` scss
337+
$custom-grid-theme: grid-theme(
338+
$resize-line-color: #07ea07
339+
);
340+
```
341+
342+
</ComponentBlock>
343+
322344
<DocsAside type="info" title="情報">
323345
上記のようにカラーの値をハードコーディングする代わりに、<ApiLink kind="sass" module="palettes" type="function-palette" label="palette" code={true} /> および <ApiLink kind="sass" module="palettes" type="function-color" label="color" code={true} /> 関数を使用してカラーに関してより高い柔軟性を実現することができます。使い方の詳細については[`パレット`](/themes/sass/palettes.md)のトピックをご覧ください。
324346
</DocsAside>

docs/angular/src/content/jp/grids_templates/column-selection.mdx

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,27 +120,39 @@ API 操作の詳細については、[`API リファレンス`](#api-references)
120120
<ComponentBlock for="TreeGrid">
121121

122122
```scss
123-
$custom-grid-theme: grid-theme(
124-
$row-selected-background: #011627,
125-
$row-selected-text-color: #ecaa53,
126-
$row-selected-hover-background: #011627,
127-
$header-selected-text-color: #ecaa53,
128-
$header-selected-background: #011627,
129-
$expand-icon-color: #ecaa53,
130-
$expand-icon-hover-color: #b64b80
123+
$background: #0b0119;
124+
$foreground: #eeece1;
125+
$accent: #f6b560;
126+
127+
$grid-theme: grid-theme(
128+
$background: $background,
129+
$foreground: $foreground,
130+
$accent-color: $accent,
131+
132+
$row-selected-background: #012724,
133+
$row-selected-text-color: $accent,
134+
$header-selected-text-color: $accent,
135+
$header-selected-background: #012427,
136+
137+
$row-selected-hover-background: hsl(from #012427 h s 10%),
138+
$row-selected-hover-text-color: $accent,
131139
);
132140
```
133141

134142
</ComponentBlock>
135143
<ComponentBlock for="Grid, HierarchicalGrid, PivotGrid">
136144

137145
```scss
146+
$background: #011627;
147+
$accent: #ecaa53;
148+
138149
$custom-grid-theme: grid-theme(
139-
$row-selected-background: #011627,
140-
$row-selected-text-color: #ecaa53,
141-
$row-selected-hover-background: #011627,
142-
$header-selected-text-color: #ecaa53,
143-
$header-selected-background: #011627
150+
$row-selected-background: $background,
151+
$row-selected-text-color: $accent,
152+
$row-selected-hover-background: hsl(from $background h s 10%),
153+
$row-selected-hover-text-color: $accent,
154+
$header-selected-text-color: $accent,
155+
$header-selected-background: $background,
144156
);
145157
```
146158

@@ -152,12 +164,13 @@ $custom-grid-theme: grid-theme(
152164
- **$row-selected-background**- 選択した部分の背景を設定します。
153165
- **$row-selected-text-color** - 選択した部分のテキスト色を設定します。
154166
- **$row-selected-hover-background** - ホバーされたセルまたは複数のセルの色を設定します。
167+
- **$row-selected-hover-text-color** - ホバーされたセルまたは複数のセルのテキスト色を設定します。
155168
- **$header-selected-text-color** - 選択した列ヘッダーのテキスト色を設定します。
156169
- **$header-selected-background** - 選択した列ヘッダーの背景色を設定します。
157170

158171
### CSS 変数の使用
159172

160-
最後にカスタム `igx-grid` テーマを含めます
173+
最後にカスタム グリッド テーマを**含めます**
161174

162175
```scss
163176
:host {

docs/angular/src/content/jp/grids_templates/excel-style-filtering.mdx

Lines changed: 20 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -496,114 +496,49 @@ Excel スタイル フィルタリング コンポーネントを設定するに
496496
// @import '~igniteui-angular/lib/core/styles/themes/index';
497497
```
498498

499-
Excel スタイル フィルタリング ダイアログは、`filtering-row-background` パラメーターを使用して、グリッドのテーマから背景色を取得します。さらに、このダイアログ内の要素のテキスト色をカスタマイズするための専用の Excel スタイル フィルタリング パラメーターも用意されています。ダイアログ全体のスタイルを変更するには、カスタム テーマを作成する必要があります
499+
Excel スタイル フィルタリング ダイアログのスタイルを設定する方法はいくつかあります。<ApiLink kind="sass" module="themes" type="function-grid-theme" label="grid-theme" code={true} /> を使用してスタイルを設定できます。Excel スタイル フィルタリング ダイアログは、<ApiLink kind="sass" module="themes" type="function-grid-theme" label="grid-theme" code={true} /> で定義された `$background``$foreground`、および `$accent-color` 値を継承します。また、ダイアログのテキスト色をカスタマイズするための専用パラメーターも提供しています
500500

501-
```scss
502-
$custom-grid: grid-theme(
503-
$filtering-row-background: #ffcd0f,
504-
$excel-filtering-header-foreground: #292826,
505-
$excel-filtering-subheader-foreground: #292826,
506-
$excel-filtering-actions-foreground: #006400,
507-
$excel-filtering-actions-hover-foreground: #ffcd0f,
508-
$excel-filtering-actions-disabled-foreground: #9e9e9e
509-
);
510-
```
501+
または、専用の <ApiLink kind="sass" module="themes" type="function-excel-filtering-theme" label="excel-filtering-theme" code={true} /> を使用すると、Excel スタイル フィルタリング ダイアログのみを完全にスタイル設定できます。
511502

512-
ボタン、チェックボックス、リスト、さらにはドロップダウンなど、フィルタリング ダイアログのような Excel 内には明らかに多くのコンポーネントがあります。スタイルを設定するには、それぞれに個別のテーマを作成する必要があります
503+
最も簡単な方法は、<ApiLink kind="sass" module="themes" type="function-grid-theme" label="grid-theme" code={true} /> を使用することです
513504

514505
```scss
515-
$custom-button: contained-button-theme(
516-
$background: #ffcd0f,
517-
$foreground: #292826,
518-
$hover-background: #292826,
519-
$hover-foreground: #ffcd0f
520-
);
521-
522-
$flat-custom-button: flat-button-theme(
523-
$foreground: #ffcd0f,
524-
);
525-
526-
$custom-checkbox: checkbox-theme(
527-
$empty-color: #292826,
528-
$fill-color: #292826,
529-
$tick-color: #ffcd0f,
530-
$label-color: #292826
531-
);
532-
533-
$custom-drop-down: drop-down-theme(
534-
$background-color: #ffcd0f,
535-
$item-text-color: #292826,
536-
$hover-item-background: #292826,
537-
$hover-item-text-color: #ffcd0f
538-
);
539-
540-
$custom-input-group: input-group-theme(
541-
$box-background: #ffcd0f,
542-
$idle-text-color: #292826,
543-
$focused-text-color: #292826,
544-
$filled-text-color: #292826
545-
);
506+
$background: #292826;
507+
$foreground: #eeece1;
508+
$accent: #ffcd0f;
546509

547-
$custom-list: list-theme(
548-
$background: #ffcd0f
510+
$custom-grid: grid-theme(
511+
$background: $background,
512+
$foreground: $foreground,
513+
$accent-color: $accent,
549514
);
550-
551515
```
552516

553-
<DocsAside type="info" title="情報">
554-
上記のようにカラーの値をハードコーディングする代わりに、<ApiLink kind="sass" module="palettes" type="function-palette" label="palette" code={true} /> および <ApiLink kind="sass" module="palettes" type="function-color" label="color" code={true} /> 関数を使用してカラーに関してより高い柔軟性を実現することができます。使い方の詳細については[`パレット`](/themes/sass/palettes.md)のトピックをご覧ください。
555-
</DocsAside>
556-
557-
この例では、リストされたコンポーネントのパラメーターの一部のみを変更しましたが、<ApiLink kind="sass" module="themes" type="function-button-theme" label="button-theme" code={true} />、<ApiLink kind="sass" module="themes" type="function-checkbox-theme" label="checkbox-theme" code={true} />、<ApiLink kind="sass" module="themes" type="function-drop-down-theme" label="drop-down-theme" code={true} />、<ApiLink kind="sass" module="themes" type="function-input-group-theme" label="input-group-theme" code={true} />、<ApiLink kind="sass" module="themes" type="function-list-theme" label="list-theme" code={true} /> テーマは、それぞれのスタイルを制御するためのより多くのパラメーターを提供します。
517+
Excel スタイル フィルタリング ダイアログの背景色と前景色はグリッド テーマから継承されます。さらに、ボタンやチェックボックスなどのすべてのネストされたコンポーネントは、グリッド テーマからアクセント カラーを継承します。
558518

559-
最後にコンポーネントのカスタム テーマを**含めます**。また、入力のプレース ホルダーの色プロパティを設定します
519+
その後、新しく作成されたグリッド テーマを含める準備が整います。Excel スタイル フィルタリング ダイアログに固有の追加のスタイル変更を加えたい場合は、直接ターゲットにすることができます
560520

561521
```scss
562522
:host {
563523
@include tokens($custom-grid);
564-
@include tokens($custom-drop-down);
565-
566-
.igx-excel-filter,
567-
.igx-excel-filter__secondary {
568-
@include tokens($custom-button);
569-
@include tokens($custom-checkbox);
570-
@include tokens($custom-input-group);
571-
@include tokens($custom-list);
572-
573-
.igx-input-group__input::placeholder {
574-
color: #ffcd0f;
575-
}
524+
525+
igx-grid-excel-style-filtering {
526+
--ig-excel-filtering-background: #444;
576527
}
577528
}
578529
```
579530

580-
<DocsAside type="info" title="情報">
581-
`.igx-excel-filter``.igx-excel-filter__secondary` 内のほとんどのコンポーネントのミックスインをスコープするため、これらのカスタムテーマは、Excel スタイル フィルタリング ダイアログとそのすべてのサブダイアログにネストされたコンポーネントのみに影響します。そうでない場合、他のボタン、チェックボックス、入力グループ、およびリストも影響を受けます。
582-
</DocsAside>
583-
584531
<DocsAside type="info" title="情報">
585532
コンポーネントが [`Emulated`](/themes/sass/component-themes.md#表示のカプセル化) ViewEncapsulation を使用している場合、`::ng-deep` を使用してこのカプセル化を解除する必要があります。
586533
</DocsAside>
587534

588535
```scss
589-
:host {
590-
::ng-deep {
536+
:host ::ng-deep {
591537
@include tokens($custom-grid);
592-
@include tokens($custom-drop-down);
593-
594-
.igx-excel-filter,
595-
.igx-excel-filter__secondary {
596-
@include tokens($custom-button);
597-
@include tokens($flat-custom-button);
598-
@include tokens($custom-checkbox);
599-
@include tokens($custom-input-group);
600-
@include tokens($custom-list);
601-
602-
.igx-input-group__input::placeholder {
603-
color: #ffcd0f;
604-
}
538+
539+
igx-grid-excel-style-filtering {
540+
--ig-excel-filtering-background: #444;
605541
}
606-
}
607542
}
608543
```
609544

@@ -636,6 +571,7 @@ $custom-list: list-theme(
636571
- <ApiLink type="Column" />
637572
- <ApiLink type="{ComponentApiType}" />
638573
- <ApiLink kind="sass" module="themes" type="function-grid-theme" label="{ComponentName}Component スタイル" />
574+
- <ApiLink kind="sass" module="themes" type="function-excel-filtering-theme" label="Excel Filtering Theme"/>
639575

640576
## その他のリソース
641577

docs/angular/src/content/jp/grids_templates/multi-column-headers.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ import ApiLink from 'igniteui-astro-components/components/mdx/ApiLink.astro';
284284

285285
最も単純なアプローチに従って、<ApiLink kind="sass" module="themes" type="function-grid-theme" label="grid-theme" code={true} /> を拡張する新しいテーマを作成し、`$header-background``$header-text-color``$header-border-width``$header-border-style` および `$header-border-color` パラメーターを受け取ります。
286286

287+
<ComponentBlock for="Grid">
288+
287289
```scss
288290
$custom-theme: grid-theme(
289291
$header-background: #e0f3ff,
@@ -294,6 +296,34 @@ $custom-theme: grid-theme(
294296
);
295297
```
296298

299+
</ComponentBlock>
300+
<ComponentBlock for="TreeGrid">
301+
302+
```scss
303+
$custom-theme: grid-theme(
304+
$header-background: #f1eaf6,
305+
$header-text-color: #8c1bdd,
306+
$header-border-width: 1px,
307+
$header-border-style: solid,
308+
$header-border-color: #d3b9e6,
309+
$cell-active-border-color: #7409c1
310+
);
311+
```
312+
313+
</ComponentBlock>
314+
<ComponentBlock for="HierarchicalGrid">
315+
316+
```scss
317+
$custom-theme: grid-theme(
318+
$header-background: #f8f8ed,
319+
$header-text-color: #7a6551,
320+
$header-border-style: dashed,
321+
$header-border-color: rgba(0, 0, 0, 0.08)
322+
);
323+
```
324+
325+
</ComponentBlock>
326+
297327
<DocsAside type="info" title="情報">
298328
上記のようにカラーの値をハードコーディングする代わりに、<ApiLink kind="sass" module="palettes" type="function-palette" label="palette" code={true} /> および <ApiLink kind="sass" module="palettes" type="function-color" label="color" code={true} /> 関数を使用してカラーに関してより高い柔軟性を実現することができます。使い方の詳細については[`パレット`](/themes/sass/palettes.md)のトピックをご覧ください。
299329
</DocsAside>

0 commit comments

Comments
 (0)