@kubex/zinc 1.1.117 → 1.1.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +44 -12
- package/dist/vscode.html-custom-data.json +8 -3
- package/dist/web-types.json +17 -7
- package/dist/zn.d.ts +21 -17
- package/dist/zn.min.js +353 -350
- package/docs/pages/components/translation-group.md +20 -18
- package/docs/pages/components/translations.md +3 -2
- package/package.json +1 -1
- package/src/components/form-group/form-group.component.ts +12 -3
- package/src/components/form-group/form-group.test.ts +16 -0
- package/src/components/translation-group/translation-group.component.ts +55 -51
- package/src/components/translation-group/translation-group.scss +10 -74
- package/src/components/translation-group/translation-group.test.ts +76 -38
- package/src/components/translations/translations.component.ts +3 -7
|
@@ -16558,6 +16558,15 @@
|
|
|
16558
16558
|
"default": "null",
|
|
16559
16559
|
"description": "The scroller the label is tracked against by hand; null while native sticky is enough."
|
|
16560
16560
|
},
|
|
16561
|
+
{
|
|
16562
|
+
"kind": "field",
|
|
16563
|
+
"name": "stickyTop",
|
|
16564
|
+
"type": {
|
|
16565
|
+
"text": "number"
|
|
16566
|
+
},
|
|
16567
|
+
"privacy": "private",
|
|
16568
|
+
"default": "0"
|
|
16569
|
+
},
|
|
16561
16570
|
{
|
|
16562
16571
|
"kind": "field",
|
|
16563
16572
|
"name": "frame",
|
|
@@ -49712,12 +49721,16 @@
|
|
|
49712
49721
|
"module": "src/components/panel/panel.component.ts"
|
|
49713
49722
|
}
|
|
49714
49723
|
},
|
|
49724
|
+
{
|
|
49725
|
+
"description": "The form group holding the caption, the language select and the fields.",
|
|
49726
|
+
"name": "form-group"
|
|
49727
|
+
},
|
|
49715
49728
|
{
|
|
49716
49729
|
"description": "The row of buttons at the bottom of the body.",
|
|
49717
49730
|
"name": "actions"
|
|
49718
49731
|
},
|
|
49719
49732
|
{
|
|
49720
|
-
"description": "The
|
|
49733
|
+
"description": "The select that chooses the language every child is editing, in the group's chip slot.",
|
|
49721
49734
|
"name": "language-field"
|
|
49722
49735
|
},
|
|
49723
49736
|
{
|
|
@@ -49743,7 +49756,7 @@
|
|
|
49743
49756
|
}
|
|
49744
49757
|
},
|
|
49745
49758
|
{
|
|
49746
|
-
"description": "Content displayed in the grey panel footer.
|
|
49759
|
+
"description": "Content displayed in the grey panel footer.",
|
|
49747
49760
|
"name": "footer",
|
|
49748
49761
|
"inheritedFrom": {
|
|
49749
49762
|
"name": "ZnPanel",
|
|
@@ -49759,7 +49772,7 @@
|
|
|
49759
49772
|
"text": "object"
|
|
49760
49773
|
},
|
|
49761
49774
|
"static": true,
|
|
49762
|
-
"default": "{ 'zn-chip': ZnChip, 'zn-
|
|
49775
|
+
"default": "{ 'zn-chip': ZnChip, 'zn-form-group': ZnFormGroup, 'zn-option': ZnOption, 'zn-select': ZnSelect }"
|
|
49763
49776
|
},
|
|
49764
49777
|
{
|
|
49765
49778
|
"kind": "field",
|
|
@@ -49775,9 +49788,19 @@
|
|
|
49775
49788
|
"text": "string"
|
|
49776
49789
|
},
|
|
49777
49790
|
"default": "''",
|
|
49778
|
-
"description": "The
|
|
49791
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
49779
49792
|
"attribute": "label"
|
|
49780
49793
|
},
|
|
49794
|
+
{
|
|
49795
|
+
"kind": "field",
|
|
49796
|
+
"name": "helpText",
|
|
49797
|
+
"type": {
|
|
49798
|
+
"text": "string"
|
|
49799
|
+
},
|
|
49800
|
+
"default": "''",
|
|
49801
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
49802
|
+
"attribute": "help-text"
|
|
49803
|
+
},
|
|
49781
49804
|
{
|
|
49782
49805
|
"kind": "field",
|
|
49783
49806
|
"name": "inline",
|
|
@@ -49785,7 +49808,7 @@
|
|
|
49785
49808
|
"text": "boolean"
|
|
49786
49809
|
},
|
|
49787
49810
|
"default": "false",
|
|
49788
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
49811
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
49789
49812
|
"attribute": "inline",
|
|
49790
49813
|
"reflects": true
|
|
49791
49814
|
},
|
|
@@ -49881,7 +49904,7 @@
|
|
|
49881
49904
|
}
|
|
49882
49905
|
}
|
|
49883
49906
|
],
|
|
49884
|
-
"description": "
|
|
49907
|
+
"description": "The configured name, or the code where `languages` does not name the language."
|
|
49885
49908
|
},
|
|
49886
49909
|
{
|
|
49887
49910
|
"kind": "method",
|
|
@@ -50100,16 +50123,25 @@
|
|
|
50100
50123
|
"text": "string"
|
|
50101
50124
|
},
|
|
50102
50125
|
"default": "''",
|
|
50103
|
-
"description": "The
|
|
50126
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
50104
50127
|
"fieldName": "label"
|
|
50105
50128
|
},
|
|
50129
|
+
{
|
|
50130
|
+
"name": "help-text",
|
|
50131
|
+
"type": {
|
|
50132
|
+
"text": "string"
|
|
50133
|
+
},
|
|
50134
|
+
"default": "''",
|
|
50135
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
50136
|
+
"fieldName": "helpText"
|
|
50137
|
+
},
|
|
50106
50138
|
{
|
|
50107
50139
|
"name": "inline",
|
|
50108
50140
|
"type": {
|
|
50109
50141
|
"text": "boolean"
|
|
50110
50142
|
},
|
|
50111
50143
|
"default": "false",
|
|
50112
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
50144
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
50113
50145
|
"fieldName": "inline"
|
|
50114
50146
|
},
|
|
50115
50147
|
{
|
|
@@ -50271,13 +50303,13 @@
|
|
|
50271
50303
|
"tagNameWithoutPrefix": "translation-group",
|
|
50272
50304
|
"tagName": "zn-translation-group",
|
|
50273
50305
|
"customElement": true,
|
|
50274
|
-
"jsDoc": "/**\n * @summary Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\n * translated a language at a time.\n * @documentation https://zinc.style/components/translation-group\n * @status experimental\n * @since 1.0\n *\n * The
|
|
50306
|
+
"jsDoc": "/**\n * @summary Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\n * translated a language at a time.\n * @documentation https://zinc.style/components/translation-group\n * @status experimental\n * @since 1.0\n *\n * The fields sit in a `zn-form-group`, so the caption, help text and the language select share its label column and\n * the fields line up with every other form group around them. Choosing a language switches every child at once, and\n * each child hides its own select while it is in a group — `grouped` is set on them here.\n *\n * The select is searchable. Each option holds its language code as its value, so typing `de` finds German without the\n * code being on show.\n *\n * Closed, the select carries how many target languages are done — `1/5`. Its options each carry a chip aggregated\n * across the children:\n *\n * - `Translated` — every child has a value for it\n * - `Partial` — only some children do\n * - `English` — none do, so all of them fall back to the English text\n *\n * `Empty` replaces the last of those for English itself, which has nothing to fall back to. English is the source\n * rather than a translation, so it is also left out of the `n of m translated` count beside the label.\n *\n * The children own their values; this component only chooses which language is shown and reports on what they hold.\n * It reads them back on every child `zn-change`, so the chips and the count follow an edit as it is typed.\n *\n * Extends `zn-panel`, so `caption`, `flush`, `transparent` and the `footer` slot behave as they do there. Nested\n * inside another panel, add `inline` to drop the chrome and keep the fields aligned with the surrounding form.\n *\n * @dependency zn-chip\n * @dependency zn-form-group\n * @dependency zn-option\n * @dependency zn-select\n *\n * @event zn-language-change - Emitted when the active language changes. Detail: `{ language: string }`.\n *\n * @slot - The `zn-translations` fields the select drives.\n * @slot actions - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on\n * the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they\n * should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n * @slot footer - Content displayed in the grey panel footer.\n *\n * @csspart base - The component's base wrapper.\n * @csspart form-group - The form group holding the caption, the language select and the fields.\n * @csspart actions - The row of buttons at the bottom of the body.\n * @csspart language-field - The select that chooses the language every child is editing, in the group's chip slot.\n * @csspart language-select - The select itself.\n */",
|
|
50275
50307
|
"documentation": "https://zinc.style/components/translation-group",
|
|
50276
50308
|
"status": "experimental",
|
|
50277
50309
|
"since": "1.0",
|
|
50278
50310
|
"dependencies": [
|
|
50279
50311
|
"zn-chip",
|
|
50280
|
-
"zn-
|
|
50312
|
+
"zn-form-group",
|
|
50281
50313
|
"zn-option",
|
|
50282
50314
|
"zn-select"
|
|
50283
50315
|
],
|
|
@@ -50725,7 +50757,7 @@
|
|
|
50725
50757
|
}
|
|
50726
50758
|
}
|
|
50727
50759
|
],
|
|
50728
|
-
"description": "
|
|
50760
|
+
"description": "The configured name, or the code where `languages` does not name the language."
|
|
50729
50761
|
},
|
|
50730
50762
|
{
|
|
50731
50763
|
"kind": "method",
|
|
@@ -51332,7 +51364,7 @@
|
|
|
51332
51364
|
"package": {
|
|
51333
51365
|
"name": "@kubex/zinc",
|
|
51334
51366
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
51335
|
-
"version": "1.1.
|
|
51367
|
+
"version": "1.1.118",
|
|
51336
51368
|
"author": "",
|
|
51337
51369
|
"license": "MIT"
|
|
51338
51370
|
}
|
|
@@ -5181,16 +5181,21 @@
|
|
|
5181
5181
|
},
|
|
5182
5182
|
{
|
|
5183
5183
|
"name": "zn-translation-group",
|
|
5184
|
-
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer
|
|
5184
|
+
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-group** - The form group holding the caption, the language select and the fields.\n- **actions** - The row of buttons at the bottom of the body.\n- **language-field** - The select that chooses the language every child is editing, in the group's chip slot.\n- **language-select** - The select itself.",
|
|
5185
5185
|
"attributes": [
|
|
5186
5186
|
{
|
|
5187
5187
|
"name": "label",
|
|
5188
|
-
"description": "The
|
|
5188
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
5189
|
+
"values": []
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"name": "help-text",
|
|
5193
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
5189
5194
|
"values": []
|
|
5190
5195
|
},
|
|
5191
5196
|
{
|
|
5192
5197
|
"name": "inline",
|
|
5193
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
5198
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
5194
5199
|
"values": []
|
|
5195
5200
|
},
|
|
5196
5201
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.118",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -12211,17 +12211,22 @@
|
|
|
12211
12211
|
},
|
|
12212
12212
|
{
|
|
12213
12213
|
"name": "zn-translation-group",
|
|
12214
|
-
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer
|
|
12214
|
+
"description": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - The `zn-translations` fields the select drives.\n- **actions** - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on the right, as zinc's form action rows do; `align=\"start\"` moves one to the left. Write them in the order they should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.\n- **footer** - Content displayed in the grey panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-group** - The form group holding the caption, the language select and the fields.\n- **actions** - The row of buttons at the bottom of the body.\n- **language-field** - The select that chooses the language every child is editing, in the group's chip slot.\n- **language-select** - The select itself.",
|
|
12215
12215
|
"doc-url": "",
|
|
12216
12216
|
"attributes": [
|
|
12217
12217
|
{
|
|
12218
12218
|
"name": "label",
|
|
12219
|
-
"description": "The
|
|
12219
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
12220
|
+
"value": { "type": "string", "default": "''" }
|
|
12221
|
+
},
|
|
12222
|
+
{
|
|
12223
|
+
"name": "help-text",
|
|
12224
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
12220
12225
|
"value": { "type": "string", "default": "''" }
|
|
12221
12226
|
},
|
|
12222
12227
|
{
|
|
12223
12228
|
"name": "inline",
|
|
12224
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
12229
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
12225
12230
|
"value": { "type": "boolean", "default": "false" }
|
|
12226
12231
|
},
|
|
12227
12232
|
{
|
|
@@ -12261,7 +12266,7 @@
|
|
|
12261
12266
|
},
|
|
12262
12267
|
{
|
|
12263
12268
|
"name": "footer",
|
|
12264
|
-
"description": "Content displayed in the grey panel footer.
|
|
12269
|
+
"description": "Content displayed in the grey panel footer."
|
|
12265
12270
|
}
|
|
12266
12271
|
],
|
|
12267
12272
|
"events": [
|
|
@@ -12274,12 +12279,17 @@
|
|
|
12274
12279
|
"properties": [
|
|
12275
12280
|
{
|
|
12276
12281
|
"name": "label",
|
|
12277
|
-
"description": "The
|
|
12282
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
12283
|
+
"type": "string"
|
|
12284
|
+
},
|
|
12285
|
+
{
|
|
12286
|
+
"name": "helpText",
|
|
12287
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
12278
12288
|
"type": "string"
|
|
12279
12289
|
},
|
|
12280
12290
|
{
|
|
12281
12291
|
"name": "inline",
|
|
12282
|
-
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
12292
|
+
"description": "Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form\nrather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit\nindented behind a second border.",
|
|
12283
12293
|
"type": "boolean"
|
|
12284
12294
|
},
|
|
12285
12295
|
{
|
package/dist/zn.d.ts
CHANGED
|
@@ -7324,6 +7324,7 @@ declare module "components/form-group/form-group.component" {
|
|
|
7324
7324
|
pad: boolean;
|
|
7325
7325
|
/** The scroller the label is tracked against by hand; null while native sticky is enough. */
|
|
7326
7326
|
private tracked;
|
|
7327
|
+
private stickyTop;
|
|
7327
7328
|
private frame;
|
|
7328
7329
|
private rebind;
|
|
7329
7330
|
private offset;
|
|
@@ -9132,10 +9133,7 @@ declare module "components/translations/translations.component" {
|
|
|
9132
9133
|
hasTranslation(language: string): boolean;
|
|
9133
9134
|
/** The chip shown against a language, in the select's value and against each of its options. */
|
|
9134
9135
|
private languageState;
|
|
9135
|
-
/**
|
|
9136
|
-
* `English (EN)` — the configured name plus its code, unless the name already is the code, in which case the code
|
|
9137
|
-
* alone. `languages` is written both ways: `{"en": "English"}` and `{"en": "EN"}`.
|
|
9138
|
-
*/
|
|
9136
|
+
/** The configured name, or the code where `languages` does not name the language. */
|
|
9139
9137
|
private languageLabel;
|
|
9140
9138
|
/**
|
|
9141
9139
|
* `values`, falling back to the `value` attribute it is built from while that is still pending. A parent
|
|
@@ -9309,7 +9307,7 @@ declare module "components/animated-button/index" {
|
|
|
9309
9307
|
declare module "components/translation-group/translation-group.component" {
|
|
9310
9308
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
9311
9309
|
import ZnChip from "components/chip/index";
|
|
9312
|
-
import
|
|
9310
|
+
import ZnFormGroup from "components/form-group/index";
|
|
9313
9311
|
import ZnOption from "components/option/index";
|
|
9314
9312
|
import ZnPanel from "components/panel/panel.component";
|
|
9315
9313
|
import ZnSelect from "components/select/index";
|
|
@@ -9320,8 +9318,12 @@ declare module "components/translation-group/translation-group.component" {
|
|
|
9320
9318
|
* @status experimental
|
|
9321
9319
|
* @since 1.0
|
|
9322
9320
|
*
|
|
9323
|
-
* The
|
|
9324
|
-
*
|
|
9321
|
+
* The fields sit in a `zn-form-group`, so the caption, help text and the language select share its label column and
|
|
9322
|
+
* the fields line up with every other form group around them. Choosing a language switches every child at once, and
|
|
9323
|
+
* each child hides its own select while it is in a group — `grouped` is set on them here.
|
|
9324
|
+
*
|
|
9325
|
+
* The select is searchable. Each option holds its language code as its value, so typing `de` finds German without the
|
|
9326
|
+
* code being on show.
|
|
9325
9327
|
*
|
|
9326
9328
|
* Closed, the select carries how many target languages are done — `1/5`. Its options each carry a chip aggregated
|
|
9327
9329
|
* across the children:
|
|
@@ -9336,11 +9338,11 @@ declare module "components/translation-group/translation-group.component" {
|
|
|
9336
9338
|
* The children own their values; this component only chooses which language is shown and reports on what they hold.
|
|
9337
9339
|
* It reads them back on every child `zn-change`, so the chips and the count follow an edit as it is typed.
|
|
9338
9340
|
*
|
|
9339
|
-
* Extends `zn-panel`, so `caption`, `
|
|
9340
|
-
*
|
|
9341
|
+
* Extends `zn-panel`, so `caption`, `flush`, `transparent` and the `footer` slot behave as they do there. Nested
|
|
9342
|
+
* inside another panel, add `inline` to drop the chrome and keep the fields aligned with the surrounding form.
|
|
9341
9343
|
*
|
|
9342
9344
|
* @dependency zn-chip
|
|
9343
|
-
* @dependency zn-
|
|
9345
|
+
* @dependency zn-form-group
|
|
9344
9346
|
* @dependency zn-option
|
|
9345
9347
|
* @dependency zn-select
|
|
9346
9348
|
*
|
|
@@ -9350,27 +9352,29 @@ declare module "components/translation-group/translation-group.component" {
|
|
|
9350
9352
|
* @slot actions - Buttons for the bottom of the panel, on the white body rather than the grey footer. They sit on
|
|
9351
9353
|
* the right, as zinc's form action rows do; `align="start"` moves one to the left. Write them in the order they
|
|
9352
9354
|
* should be read — the sides are set by CSS ordering, so markup order is what a keyboard follows.
|
|
9353
|
-
* @slot footer - Content displayed in the grey panel footer.
|
|
9354
|
-
* else is slotted into it.
|
|
9355
|
+
* @slot footer - Content displayed in the grey panel footer.
|
|
9355
9356
|
*
|
|
9356
9357
|
* @csspart base - The component's base wrapper.
|
|
9358
|
+
* @csspart form-group - The form group holding the caption, the language select and the fields.
|
|
9357
9359
|
* @csspart actions - The row of buttons at the bottom of the body.
|
|
9358
|
-
* @csspart language-field - The
|
|
9360
|
+
* @csspart language-field - The select that chooses the language every child is editing, in the group's chip slot.
|
|
9359
9361
|
* @csspart language-select - The select itself.
|
|
9360
9362
|
*/
|
|
9361
9363
|
export default class ZnTranslationGroup extends ZnPanel {
|
|
9362
9364
|
static styles: CSSResultGroup;
|
|
9363
9365
|
static dependencies: {
|
|
9364
9366
|
'zn-chip': typeof ZnChip;
|
|
9365
|
-
'zn-
|
|
9367
|
+
'zn-form-group': typeof ZnFormGroup;
|
|
9366
9368
|
'zn-option': typeof ZnOption;
|
|
9367
9369
|
'zn-select': typeof ZnSelect;
|
|
9368
9370
|
};
|
|
9369
9371
|
private readonly _slotController;
|
|
9370
|
-
/** The
|
|
9372
|
+
/** The form group's label. An alias for the inherited `caption`, which wins where both are set. */
|
|
9371
9373
|
label: string;
|
|
9374
|
+
/** Sits under the label, above the language select, as help text does in any other form group. */
|
|
9375
|
+
helpText: string;
|
|
9372
9376
|
/**
|
|
9373
|
-
* Drops the panel chrome — border, background and padding — so the group reads as a section of the form
|
|
9377
|
+
* Drops the panel chrome — border, background and padding — so the group reads as a section of the surrounding form
|
|
9374
9378
|
* rather than a panel of its own. For groups nested inside another panel, where the fields would otherwise sit
|
|
9375
9379
|
* indented behind a second border.
|
|
9376
9380
|
*/
|
|
@@ -9402,7 +9406,7 @@ declare module "components/translation-group/translation-group.component" {
|
|
|
9402
9406
|
* count are read off the children, so a child's edit has to bring the group back round.
|
|
9403
9407
|
*/
|
|
9404
9408
|
private languageState;
|
|
9405
|
-
/**
|
|
9409
|
+
/** The configured name, or the code where `languages` does not name the language. */
|
|
9406
9410
|
private displayName;
|
|
9407
9411
|
/** Children take their language list from the group, so a change to `languages` has to reach them. */
|
|
9408
9412
|
private syncChildLanguages;
|