@kubex/zinc 1.1.155 → 1.1.157
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 +1000 -975
- package/dist/vscode.html-custom-data.json +60 -60
- package/dist/web-types.json +137 -137
- package/dist/zn.d.ts +8 -0
- package/dist/zn.min.js +27 -23
- package/docs/pages/components/select.md +16 -0
- package/package.json +1 -1
- package/src/components/button/button.component.ts +10 -6
- package/src/components/button/button.scss +10 -2
- package/src/components/inline-edit/inline-edit.component.ts +2 -2
- package/src/components/inline-edit/inline-edit.scss +11 -1
- package/src/components/inline-edit/inline-edit.test.ts +24 -0
- package/src/components/reveal/reveal.component.ts +14 -0
- package/src/components/reveal/reveal.scss +10 -1
- package/src/components/reveal/reveal.test.ts +36 -0
- package/src/components/select/select.component.ts +21 -2
- package/src/components/select/select.scss +3 -2
- package/src/components/select/select.test.ts +59 -0
|
@@ -56,6 +56,79 @@
|
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "javascript-module",
|
|
61
|
+
"path": "components/action-bar/action-bar.js",
|
|
62
|
+
"declarations": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "class",
|
|
65
|
+
"description": "",
|
|
66
|
+
"name": "ZnActionBar",
|
|
67
|
+
"cssProperties": [
|
|
68
|
+
{
|
|
69
|
+
"description": "An example CSS custom property.",
|
|
70
|
+
"name": "--example"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"cssParts": [
|
|
74
|
+
{
|
|
75
|
+
"description": "The component's base wrapper.",
|
|
76
|
+
"name": "base"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"slots": [
|
|
80
|
+
{
|
|
81
|
+
"description": "The default slot.",
|
|
82
|
+
"name": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"description": "An example slot.",
|
|
86
|
+
"name": "example"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"members": [
|
|
90
|
+
{
|
|
91
|
+
"kind": "field",
|
|
92
|
+
"name": "localize",
|
|
93
|
+
"privacy": "private",
|
|
94
|
+
"readonly": true,
|
|
95
|
+
"default": "new LocalizeController(this)"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"events": [
|
|
99
|
+
{
|
|
100
|
+
"description": "Emitted as an example.",
|
|
101
|
+
"name": "zn-event-name"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"superclass": {
|
|
105
|
+
"name": "ZincElement",
|
|
106
|
+
"module": "/src/internal/zinc-element"
|
|
107
|
+
},
|
|
108
|
+
"summary": "Short summary of the component's intended use.",
|
|
109
|
+
"tagNameWithoutPrefix": "action-bar",
|
|
110
|
+
"tagName": "zn-action-bar",
|
|
111
|
+
"customElement": true,
|
|
112
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
113
|
+
"documentation": "https://zinc.style/components/action-bar",
|
|
114
|
+
"status": "experimental",
|
|
115
|
+
"since": "1.0",
|
|
116
|
+
"dependencies": [
|
|
117
|
+
"zn-example"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"exports": [
|
|
122
|
+
{
|
|
123
|
+
"kind": "js",
|
|
124
|
+
"name": "default",
|
|
125
|
+
"declaration": {
|
|
126
|
+
"name": "ZnActionBar",
|
|
127
|
+
"module": "components/action-bar/action-bar.js"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
59
132
|
{
|
|
60
133
|
"kind": "javascript-module",
|
|
61
134
|
"path": "components/alert/alert.js",
|
|
@@ -250,79 +323,6 @@
|
|
|
250
323
|
}
|
|
251
324
|
]
|
|
252
325
|
},
|
|
253
|
-
{
|
|
254
|
-
"kind": "javascript-module",
|
|
255
|
-
"path": "components/action-bar/action-bar.js",
|
|
256
|
-
"declarations": [
|
|
257
|
-
{
|
|
258
|
-
"kind": "class",
|
|
259
|
-
"description": "",
|
|
260
|
-
"name": "ZnActionBar",
|
|
261
|
-
"cssProperties": [
|
|
262
|
-
{
|
|
263
|
-
"description": "An example CSS custom property.",
|
|
264
|
-
"name": "--example"
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"cssParts": [
|
|
268
|
-
{
|
|
269
|
-
"description": "The component's base wrapper.",
|
|
270
|
-
"name": "base"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"slots": [
|
|
274
|
-
{
|
|
275
|
-
"description": "The default slot.",
|
|
276
|
-
"name": ""
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"description": "An example slot.",
|
|
280
|
-
"name": "example"
|
|
281
|
-
}
|
|
282
|
-
],
|
|
283
|
-
"members": [
|
|
284
|
-
{
|
|
285
|
-
"kind": "field",
|
|
286
|
-
"name": "localize",
|
|
287
|
-
"privacy": "private",
|
|
288
|
-
"readonly": true,
|
|
289
|
-
"default": "new LocalizeController(this)"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"events": [
|
|
293
|
-
{
|
|
294
|
-
"description": "Emitted as an example.",
|
|
295
|
-
"name": "zn-event-name"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"superclass": {
|
|
299
|
-
"name": "ZincElement",
|
|
300
|
-
"module": "/src/internal/zinc-element"
|
|
301
|
-
},
|
|
302
|
-
"summary": "Short summary of the component's intended use.",
|
|
303
|
-
"tagNameWithoutPrefix": "action-bar",
|
|
304
|
-
"tagName": "zn-action-bar",
|
|
305
|
-
"customElement": true,
|
|
306
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
307
|
-
"documentation": "https://zinc.style/components/action-bar",
|
|
308
|
-
"status": "experimental",
|
|
309
|
-
"since": "1.0",
|
|
310
|
-
"dependencies": [
|
|
311
|
-
"zn-example"
|
|
312
|
-
]
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"exports": [
|
|
316
|
-
{
|
|
317
|
-
"kind": "js",
|
|
318
|
-
"name": "default",
|
|
319
|
-
"declaration": {
|
|
320
|
-
"name": "ZnActionBar",
|
|
321
|
-
"module": "components/action-bar/action-bar.js"
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
|
-
},
|
|
326
326
|
{
|
|
327
327
|
"kind": "javascript-module",
|
|
328
328
|
"path": "components/animated-button/animated-button.js",
|
|
@@ -38273,6 +38273,16 @@
|
|
|
38273
38273
|
"description": "Disables click-to-toggle so the value is only revealed on hover. Clicks still bubble to the parent.",
|
|
38274
38274
|
"attribute": "no-toggle"
|
|
38275
38275
|
},
|
|
38276
|
+
{
|
|
38277
|
+
"kind": "field",
|
|
38278
|
+
"name": "_isMasked",
|
|
38279
|
+
"type": {
|
|
38280
|
+
"text": "boolean"
|
|
38281
|
+
},
|
|
38282
|
+
"privacy": "private",
|
|
38283
|
+
"description": "Nothing is hidden when the revealed value is what's already on show, so there is nothing to reveal.",
|
|
38284
|
+
"readonly": true
|
|
38285
|
+
},
|
|
38276
38286
|
{
|
|
38277
38287
|
"kind": "field",
|
|
38278
38288
|
"name": "_isRevealed",
|
|
@@ -40920,6 +40930,21 @@
|
|
|
40920
40930
|
"privacy": "private",
|
|
40921
40931
|
"description": "Filters visible options based on the current search query"
|
|
40922
40932
|
},
|
|
40933
|
+
{
|
|
40934
|
+
"kind": "method",
|
|
40935
|
+
"name": "updateEmptyState",
|
|
40936
|
+
"privacy": "private",
|
|
40937
|
+
"description": "Nothing for the user to pick: either the option list is empty or every option is filtered out.\nThe search paths track this themselves, so this covers opening a dropdown with no query."
|
|
40938
|
+
},
|
|
40939
|
+
{
|
|
40940
|
+
"kind": "field",
|
|
40941
|
+
"name": "emptyStateText",
|
|
40942
|
+
"type": {
|
|
40943
|
+
"text": "string"
|
|
40944
|
+
},
|
|
40945
|
+
"privacy": "private",
|
|
40946
|
+
"readonly": true
|
|
40947
|
+
},
|
|
40923
40948
|
{
|
|
40924
40949
|
"kind": "method",
|
|
40925
40950
|
"name": "clearSearch",
|
|
@@ -51742,86 +51767,42 @@
|
|
|
51742
51767
|
},
|
|
51743
51768
|
{
|
|
51744
51769
|
"kind": "javascript-module",
|
|
51745
|
-
"path": "components/
|
|
51770
|
+
"path": "components/translations/translations.js",
|
|
51746
51771
|
"declarations": [
|
|
51747
51772
|
{
|
|
51748
51773
|
"kind": "class",
|
|
51749
51774
|
"description": "",
|
|
51750
|
-
"name": "
|
|
51775
|
+
"name": "ZnTranslations",
|
|
51751
51776
|
"cssParts": [
|
|
51752
51777
|
{
|
|
51753
|
-
"description": "The
|
|
51754
|
-
"name": "
|
|
51755
|
-
"inheritedFrom": {
|
|
51756
|
-
"name": "ZnPanel",
|
|
51757
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51758
|
-
}
|
|
51778
|
+
"description": "The form control that wraps the label, the language select, the field and the help text.",
|
|
51779
|
+
"name": "form-control"
|
|
51759
51780
|
},
|
|
51760
51781
|
{
|
|
51761
|
-
"description": "The
|
|
51762
|
-
"name": "form-
|
|
51782
|
+
"description": "The label's wrapper.",
|
|
51783
|
+
"name": "form-control-label"
|
|
51763
51784
|
},
|
|
51764
51785
|
{
|
|
51765
|
-
"description": "The
|
|
51766
|
-
"name": "
|
|
51786
|
+
"description": "The wrapper around the field being edited.",
|
|
51787
|
+
"name": "form-control-input"
|
|
51767
51788
|
},
|
|
51768
51789
|
{
|
|
51769
|
-
"description": "The
|
|
51770
|
-
"name": "
|
|
51790
|
+
"description": "The help text's wrapper.",
|
|
51791
|
+
"name": "form-control-help-text"
|
|
51771
51792
|
},
|
|
51772
51793
|
{
|
|
51773
|
-
"description": "The select
|
|
51794
|
+
"description": "The select that chooses the language being edited.",
|
|
51774
51795
|
"name": "language-select"
|
|
51775
|
-
},
|
|
51776
|
-
{
|
|
51777
|
-
"description": "The header region, when a caption or actions are given.",
|
|
51778
|
-
"name": "header",
|
|
51779
|
-
"inheritedFrom": {
|
|
51780
|
-
"name": "ZnPanel",
|
|
51781
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51782
|
-
}
|
|
51783
|
-
},
|
|
51784
|
-
{
|
|
51785
|
-
"description": "The padded row inside the header, forwarded from zn-header.",
|
|
51786
|
-
"name": "header-content",
|
|
51787
|
-
"inheritedFrom": {
|
|
51788
|
-
"name": "ZnPanel",
|
|
51789
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51790
|
-
}
|
|
51791
|
-
},
|
|
51792
|
-
{
|
|
51793
|
-
"description": "The footer region, when the footer slot is filled.",
|
|
51794
|
-
"name": "footer",
|
|
51795
|
-
"inheritedFrom": {
|
|
51796
|
-
"name": "ZnPanel",
|
|
51797
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51798
|
-
}
|
|
51799
51796
|
}
|
|
51800
51797
|
],
|
|
51801
51798
|
"slots": [
|
|
51802
51799
|
{
|
|
51803
|
-
"description": "The
|
|
51804
|
-
"name": ""
|
|
51805
|
-
"inheritedFrom": {
|
|
51806
|
-
"name": "ZnPanel",
|
|
51807
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51808
|
-
}
|
|
51809
|
-
},
|
|
51810
|
-
{
|
|
51811
|
-
"description": "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.",
|
|
51812
|
-
"name": "actions",
|
|
51813
|
-
"inheritedFrom": {
|
|
51814
|
-
"name": "ZnPanel",
|
|
51815
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51816
|
-
}
|
|
51800
|
+
"description": "The field's label. Alternatively, use the `label` attribute.",
|
|
51801
|
+
"name": "label"
|
|
51817
51802
|
},
|
|
51818
51803
|
{
|
|
51819
|
-
"description": "
|
|
51820
|
-
"name": "
|
|
51821
|
-
"inheritedFrom": {
|
|
51822
|
-
"name": "ZnPanel",
|
|
51823
|
-
"module": "src/components/panel/panel.component.ts"
|
|
51824
|
-
}
|
|
51804
|
+
"description": "Text describing how to fill the field in, shown below it and shared by every language. Alternatively, use the `help-text` attribute.",
|
|
51805
|
+
"name": "help-text"
|
|
51825
51806
|
}
|
|
51826
51807
|
],
|
|
51827
51808
|
"members": [
|
|
@@ -51832,14 +51813,44 @@
|
|
|
51832
51813
|
"text": "object"
|
|
51833
51814
|
},
|
|
51834
51815
|
"static": true,
|
|
51835
|
-
"default": "{ 'zn-chip': ZnChip, 'zn-
|
|
51816
|
+
"default": "{ 'zn-chip': ZnChip, 'zn-inline-edit': ZnInlineEdit, 'zn-input': ZnInput, 'zn-option': ZnOption, 'zn-remarkd-editor': ZnRemarkdEditor, 'zn-select': ZnSelect, 'zn-textarea': ZnTextarea }"
|
|
51836
51817
|
},
|
|
51837
51818
|
{
|
|
51838
51819
|
"kind": "field",
|
|
51839
|
-
"name": "
|
|
51820
|
+
"name": "formControlController",
|
|
51821
|
+
"type": {
|
|
51822
|
+
"text": "FormControlController"
|
|
51823
|
+
},
|
|
51840
51824
|
"privacy": "private",
|
|
51841
51825
|
"readonly": true,
|
|
51842
|
-
"default": "new
|
|
51826
|
+
"default": "new FormControlController(this)"
|
|
51827
|
+
},
|
|
51828
|
+
{
|
|
51829
|
+
"kind": "field",
|
|
51830
|
+
"name": "hasSlotController",
|
|
51831
|
+
"privacy": "private",
|
|
51832
|
+
"readonly": true,
|
|
51833
|
+
"default": "new HasSlotController(this, 'label', 'help-text')"
|
|
51834
|
+
},
|
|
51835
|
+
{
|
|
51836
|
+
"kind": "field",
|
|
51837
|
+
"name": "name",
|
|
51838
|
+
"type": {
|
|
51839
|
+
"text": "string"
|
|
51840
|
+
},
|
|
51841
|
+
"default": "''",
|
|
51842
|
+
"description": "The name submitted with the form.",
|
|
51843
|
+
"attribute": "name"
|
|
51844
|
+
},
|
|
51845
|
+
{
|
|
51846
|
+
"kind": "field",
|
|
51847
|
+
"name": "value",
|
|
51848
|
+
"type": {
|
|
51849
|
+
"text": "string"
|
|
51850
|
+
},
|
|
51851
|
+
"default": "'{\"en\":\"\"}'",
|
|
51852
|
+
"description": "The translations as a JSON object keyed by language code. The mirror of `values` in attribute form.",
|
|
51853
|
+
"attribute": "value"
|
|
51843
51854
|
},
|
|
51844
51855
|
{
|
|
51845
51856
|
"kind": "field",
|
|
@@ -51848,7 +51859,7 @@
|
|
|
51848
51859
|
"text": "string"
|
|
51849
51860
|
},
|
|
51850
51861
|
"default": "''",
|
|
51851
|
-
"description": "The
|
|
51862
|
+
"description": "The label shown above the field. If you need HTML, use the `label` slot instead.",
|
|
51852
51863
|
"attribute": "label"
|
|
51853
51864
|
},
|
|
51854
51865
|
{
|
|
@@ -51858,1017 +51869,905 @@
|
|
|
51858
51869
|
"text": "string"
|
|
51859
51870
|
},
|
|
51860
51871
|
"default": "''",
|
|
51861
|
-
"description": "
|
|
51872
|
+
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
51862
51873
|
"attribute": "help-text"
|
|
51863
51874
|
},
|
|
51864
51875
|
{
|
|
51865
51876
|
"kind": "field",
|
|
51866
|
-
"name": "
|
|
51877
|
+
"name": "disabled",
|
|
51867
51878
|
"type": {
|
|
51868
51879
|
"text": "boolean"
|
|
51869
51880
|
},
|
|
51870
51881
|
"default": "false",
|
|
51871
|
-
"description": "
|
|
51872
|
-
"attribute": "
|
|
51882
|
+
"description": "Disables editing in every language.",
|
|
51883
|
+
"attribute": "disabled",
|
|
51873
51884
|
"reflects": true
|
|
51874
51885
|
},
|
|
51875
51886
|
{
|
|
51876
51887
|
"kind": "field",
|
|
51877
|
-
"name": "
|
|
51888
|
+
"name": "required",
|
|
51878
51889
|
"type": {
|
|
51879
|
-
"text": "
|
|
51890
|
+
"text": "boolean"
|
|
51880
51891
|
},
|
|
51881
|
-
"default": "
|
|
51882
|
-
"description": "
|
|
51883
|
-
"attribute": "
|
|
51892
|
+
"default": "false",
|
|
51893
|
+
"description": "Marks the label required. Validity is not enforced per language.",
|
|
51894
|
+
"attribute": "required",
|
|
51895
|
+
"reflects": true
|
|
51884
51896
|
},
|
|
51885
51897
|
{
|
|
51886
51898
|
"kind": "field",
|
|
51887
|
-
"name": "
|
|
51899
|
+
"name": "flush",
|
|
51888
51900
|
"type": {
|
|
51889
|
-
"text": "
|
|
51901
|
+
"text": "boolean"
|
|
51890
51902
|
},
|
|
51891
|
-
"default": "
|
|
51892
|
-
"description": "
|
|
51893
|
-
"attribute": "
|
|
51903
|
+
"default": "false",
|
|
51904
|
+
"description": "Removes the component's own padding.",
|
|
51905
|
+
"attribute": "flush",
|
|
51906
|
+
"reflects": true
|
|
51894
51907
|
},
|
|
51895
51908
|
{
|
|
51896
51909
|
"kind": "field",
|
|
51897
|
-
"name": "
|
|
51910
|
+
"name": "inputType",
|
|
51898
51911
|
"type": {
|
|
51899
|
-
"text": "
|
|
51912
|
+
"text": "'text' | 'number' | 'textarea' | 'remarkd'"
|
|
51900
51913
|
},
|
|
51901
|
-
"
|
|
51902
|
-
"
|
|
51903
|
-
"
|
|
51914
|
+
"default": "'text'",
|
|
51915
|
+
"description": "The control each translation is edited through.",
|
|
51916
|
+
"attribute": "input-type"
|
|
51904
51917
|
},
|
|
51905
51918
|
{
|
|
51906
51919
|
"kind": "field",
|
|
51907
|
-
"name": "
|
|
51920
|
+
"name": "textareaRows",
|
|
51908
51921
|
"type": {
|
|
51909
|
-
"text": "
|
|
51922
|
+
"text": "number | undefined"
|
|
51910
51923
|
},
|
|
51911
|
-
"
|
|
51912
|
-
"
|
|
51924
|
+
"description": "Rows of the textarea, when `input-type` is `textarea`.",
|
|
51925
|
+
"attribute": "textarea-rows"
|
|
51913
51926
|
},
|
|
51914
51927
|
{
|
|
51915
|
-
"kind": "
|
|
51916
|
-
"name": "
|
|
51917
|
-
"
|
|
51918
|
-
|
|
51919
|
-
"type": {
|
|
51920
|
-
"text": "ZnTranslations[]"
|
|
51921
|
-
}
|
|
51928
|
+
"kind": "field",
|
|
51929
|
+
"name": "allowRaw",
|
|
51930
|
+
"type": {
|
|
51931
|
+
"text": "boolean"
|
|
51922
51932
|
},
|
|
51923
|
-
"
|
|
51924
|
-
|
|
51925
|
-
|
|
51926
|
-
"kind": "method",
|
|
51927
|
-
"name": "syncChildren",
|
|
51928
|
-
"privacy": "private",
|
|
51929
|
-
"description": "Sync grouped state, languages, and active language to all children."
|
|
51933
|
+
"default": "false",
|
|
51934
|
+
"description": "Allows raw HTML blocks, when `input-type` is `remarkd`.",
|
|
51935
|
+
"attribute": "allow-raw"
|
|
51930
51936
|
},
|
|
51931
51937
|
{
|
|
51932
|
-
"kind": "
|
|
51933
|
-
"name": "
|
|
51934
|
-
"
|
|
51935
|
-
|
|
51936
|
-
"type": {
|
|
51937
|
-
"text": "{ type: 'success' | 'warning' | 'error'; label: string }"
|
|
51938
|
-
}
|
|
51938
|
+
"kind": "field",
|
|
51939
|
+
"name": "attachmentUrl",
|
|
51940
|
+
"type": {
|
|
51941
|
+
"text": "string"
|
|
51939
51942
|
},
|
|
51940
|
-
"
|
|
51941
|
-
|
|
51942
|
-
|
|
51943
|
-
"type": {
|
|
51944
|
-
"text": "string"
|
|
51945
|
-
}
|
|
51946
|
-
}
|
|
51947
|
-
],
|
|
51948
|
-
"description": "A language is translated once every child carries a value for it, partial while only some do. The chips and the\ncount are read off the children, so a child's edit has to bring the group back round."
|
|
51943
|
+
"default": "''",
|
|
51944
|
+
"description": "Where the remarkd editor uploads images, when `input-type` is `remarkd`.",
|
|
51945
|
+
"attribute": "attachment-url"
|
|
51949
51946
|
},
|
|
51950
51947
|
{
|
|
51951
|
-
"kind": "
|
|
51952
|
-
"name": "
|
|
51953
|
-
"
|
|
51954
|
-
|
|
51955
|
-
"type": {
|
|
51956
|
-
"text": "string"
|
|
51957
|
-
}
|
|
51948
|
+
"kind": "field",
|
|
51949
|
+
"name": "includeUrl",
|
|
51950
|
+
"type": {
|
|
51951
|
+
"text": "string"
|
|
51958
51952
|
},
|
|
51959
|
-
"
|
|
51960
|
-
|
|
51961
|
-
|
|
51962
|
-
"type": {
|
|
51963
|
-
"text": "string"
|
|
51964
|
-
}
|
|
51965
|
-
}
|
|
51966
|
-
],
|
|
51967
|
-
"description": "The configured name, or the code where `languages` does not name the language."
|
|
51968
|
-
},
|
|
51969
|
-
{
|
|
51970
|
-
"kind": "method",
|
|
51971
|
-
"name": "syncChildLanguages",
|
|
51972
|
-
"privacy": "private",
|
|
51973
|
-
"description": "Children take their language list from the group, so a change to `languages` has to reach them."
|
|
51953
|
+
"default": "''",
|
|
51954
|
+
"description": "Where the remarkd editor lists embeddable includes, when `input-type` is `remarkd`.",
|
|
51955
|
+
"attribute": "include-url"
|
|
51974
51956
|
},
|
|
51975
51957
|
{
|
|
51976
51958
|
"kind": "field",
|
|
51977
|
-
"name": "
|
|
51978
|
-
"
|
|
51979
|
-
|
|
51980
|
-
|
|
51981
|
-
"
|
|
51982
|
-
"
|
|
51983
|
-
"
|
|
51984
|
-
"parameters": [
|
|
51985
|
-
{
|
|
51986
|
-
"name": "lang",
|
|
51987
|
-
"type": {
|
|
51988
|
-
"text": "string"
|
|
51989
|
-
}
|
|
51990
|
-
}
|
|
51991
|
-
],
|
|
51992
|
-
"description": "Moves every child onto `lang` and announces it. Does not touch their values."
|
|
51959
|
+
"name": "linkUrl",
|
|
51960
|
+
"type": {
|
|
51961
|
+
"text": "string"
|
|
51962
|
+
},
|
|
51963
|
+
"default": "''",
|
|
51964
|
+
"description": "Where the remarkd editor searches link targets, when `input-type` is `remarkd`.",
|
|
51965
|
+
"attribute": "link-url"
|
|
51993
51966
|
},
|
|
51994
51967
|
{
|
|
51995
51968
|
"kind": "field",
|
|
51996
|
-
"name": "
|
|
51997
|
-
"
|
|
51998
|
-
|
|
51969
|
+
"name": "inlineEdit",
|
|
51970
|
+
"type": {
|
|
51971
|
+
"text": "boolean"
|
|
51972
|
+
},
|
|
51973
|
+
"default": "false",
|
|
51974
|
+
"description": "Edits the translation through a `zn-inline-edit` — the value reads as text until it is clicked — rather than a\nplain input or textarea.",
|
|
51975
|
+
"attribute": "inline-edit",
|
|
51976
|
+
"reflects": true
|
|
51999
51977
|
},
|
|
52000
51978
|
{
|
|
52001
51979
|
"kind": "field",
|
|
52002
|
-
"name": "
|
|
52003
|
-
"
|
|
51980
|
+
"name": "slashItems",
|
|
51981
|
+
"type": {
|
|
51982
|
+
"text": "SlashMenuItem[]"
|
|
51983
|
+
},
|
|
51984
|
+
"default": "[]",
|
|
51985
|
+
"description": "Quick insertions offered by the slash menu on `text` and `textarea` inputs. Accepts a JSON array of items, or\nthe shorthand `Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Every language shares the list.",
|
|
51986
|
+
"attribute": "slash-items"
|
|
52004
51987
|
},
|
|
52005
51988
|
{
|
|
52006
51989
|
"kind": "field",
|
|
52007
|
-
"name": "
|
|
52008
|
-
"
|
|
52009
|
-
|
|
51990
|
+
"name": "slashPreset",
|
|
51991
|
+
"type": {
|
|
51992
|
+
"text": "string"
|
|
51993
|
+
},
|
|
51994
|
+
"default": "''",
|
|
51995
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
51996
|
+
"attribute": "slash-preset"
|
|
52010
51997
|
},
|
|
52011
51998
|
{
|
|
52012
51999
|
"kind": "field",
|
|
52013
|
-
"name": "
|
|
52014
|
-
"
|
|
52015
|
-
|
|
52000
|
+
"name": "slashTrigger",
|
|
52001
|
+
"type": {
|
|
52002
|
+
"text": "string"
|
|
52003
|
+
},
|
|
52004
|
+
"default": "'/'",
|
|
52005
|
+
"description": "The characters that open the slash menu.",
|
|
52006
|
+
"attribute": "slash-trigger"
|
|
52016
52007
|
},
|
|
52017
52008
|
{
|
|
52018
52009
|
"kind": "field",
|
|
52019
|
-
"name": "
|
|
52020
|
-
"
|
|
52021
|
-
|
|
52022
|
-
|
|
52023
|
-
"
|
|
52024
|
-
|
|
52025
|
-
|
|
52026
|
-
}
|
|
52010
|
+
"name": "slashHeading",
|
|
52011
|
+
"type": {
|
|
52012
|
+
"text": "string"
|
|
52013
|
+
},
|
|
52014
|
+
"default": "'Insert'",
|
|
52015
|
+
"description": "The name the slash menu's list is announced by.",
|
|
52016
|
+
"attribute": "slash-heading"
|
|
52027
52017
|
},
|
|
52028
52018
|
{
|
|
52029
52019
|
"kind": "field",
|
|
52030
|
-
"name": "
|
|
52020
|
+
"name": "slashHideKeys",
|
|
52031
52021
|
"type": {
|
|
52032
|
-
"text": "
|
|
52022
|
+
"text": "boolean"
|
|
52033
52023
|
},
|
|
52034
|
-
"
|
|
52035
|
-
"
|
|
52036
|
-
|
|
52037
|
-
"module": "components/panel/panel.js"
|
|
52038
|
-
}
|
|
52024
|
+
"default": "false",
|
|
52025
|
+
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
52026
|
+
"attribute": "slash-hide-keys"
|
|
52039
52027
|
},
|
|
52040
52028
|
{
|
|
52041
52029
|
"kind": "field",
|
|
52042
|
-
"name": "
|
|
52030
|
+
"name": "slashRecentKey",
|
|
52043
52031
|
"type": {
|
|
52044
52032
|
"text": "string"
|
|
52045
52033
|
},
|
|
52046
|
-
"
|
|
52047
|
-
"
|
|
52048
|
-
|
|
52049
|
-
"module": "components/panel/panel.js"
|
|
52050
|
-
}
|
|
52034
|
+
"default": "''",
|
|
52035
|
+
"description": "Lists the slash menu items most recently chosen here above the rest, remembered under this key.",
|
|
52036
|
+
"attribute": "slash-recent-key"
|
|
52051
52037
|
},
|
|
52052
52038
|
{
|
|
52053
52039
|
"kind": "field",
|
|
52054
|
-
"name": "
|
|
52040
|
+
"name": "slashItemsProvider",
|
|
52055
52041
|
"type": {
|
|
52056
|
-
"text": "string"
|
|
52042
|
+
"text": "(query: string) => SlashMenuItem[] | Promise<SlashMenuItem[]> | undefined"
|
|
52057
52043
|
},
|
|
52058
|
-
"
|
|
52059
|
-
"inheritedFrom": {
|
|
52060
|
-
"name": "ZnPanel",
|
|
52061
|
-
"module": "components/panel/panel.js"
|
|
52062
|
-
}
|
|
52044
|
+
"description": "Resolves additional slash menu items each time the menu opens. JavaScript only."
|
|
52063
52045
|
},
|
|
52064
52046
|
{
|
|
52065
52047
|
"kind": "field",
|
|
52066
|
-
"name": "
|
|
52048
|
+
"name": "grouped",
|
|
52067
52049
|
"type": {
|
|
52068
52050
|
"text": "boolean"
|
|
52069
52051
|
},
|
|
52070
|
-
"
|
|
52071
|
-
"
|
|
52072
|
-
|
|
52073
|
-
|
|
52074
|
-
}
|
|
52075
|
-
},
|
|
52076
|
-
{
|
|
52077
|
-
"kind": "field",
|
|
52078
|
-
"name": "headerBorderless",
|
|
52079
|
-
"type": {
|
|
52080
|
-
"text": "boolean"
|
|
52081
|
-
},
|
|
52082
|
-
"attribute": "header-borderless",
|
|
52083
|
-
"inheritedFrom": {
|
|
52084
|
-
"name": "ZnPanel",
|
|
52085
|
-
"module": "components/panel/panel.js"
|
|
52086
|
-
}
|
|
52052
|
+
"default": "false",
|
|
52053
|
+
"description": "Hides this component's own language select and defers the choice to a parent zn-translation-group. The group sets\nthis on its children itself.",
|
|
52054
|
+
"attribute": "grouped",
|
|
52055
|
+
"reflects": true
|
|
52087
52056
|
},
|
|
52088
52057
|
{
|
|
52089
52058
|
"kind": "field",
|
|
52090
|
-
"name": "
|
|
52059
|
+
"name": "languages",
|
|
52091
52060
|
"type": {
|
|
52092
|
-
"text": "
|
|
52061
|
+
"text": "Record<string, string>"
|
|
52093
52062
|
},
|
|
52094
|
-
"
|
|
52095
|
-
"
|
|
52096
|
-
|
|
52097
|
-
"module": "components/panel/panel.js"
|
|
52098
|
-
}
|
|
52063
|
+
"default": "{ 'en': 'EN' }",
|
|
52064
|
+
"description": "The languages on offer, as language code to display name — `{\"en\": \"English\", \"fr\": \"French\"}`. Writing the code\nas the name (`{\"en\": \"EN\"}`) is also accepted. `en` is the language every other one falls back to.",
|
|
52065
|
+
"attribute": "languages"
|
|
52099
52066
|
},
|
|
52100
52067
|
{
|
|
52101
52068
|
"kind": "field",
|
|
52102
|
-
"name": "
|
|
52069
|
+
"name": "values",
|
|
52103
52070
|
"type": {
|
|
52104
|
-
"text": "
|
|
52071
|
+
"text": "Record<string, string>"
|
|
52105
52072
|
},
|
|
52106
|
-
"
|
|
52107
|
-
"
|
|
52108
|
-
|
|
52109
|
-
"module": "components/panel/panel.js"
|
|
52110
|
-
}
|
|
52073
|
+
"default": "{}",
|
|
52074
|
+
"description": "The translations as an object keyed by language code. The mirror of `value` in property form.",
|
|
52075
|
+
"attribute": "values"
|
|
52111
52076
|
},
|
|
52112
52077
|
{
|
|
52113
52078
|
"kind": "field",
|
|
52114
|
-
"name": "
|
|
52079
|
+
"name": "defaultValue",
|
|
52115
52080
|
"type": {
|
|
52116
|
-
"text": "
|
|
52081
|
+
"text": "string"
|
|
52117
52082
|
},
|
|
52118
|
-
"
|
|
52119
|
-
"
|
|
52120
|
-
"name": "ZnPanel",
|
|
52121
|
-
"module": "components/panel/panel.js"
|
|
52122
|
-
}
|
|
52083
|
+
"default": "'{\"en\":\"\"}'",
|
|
52084
|
+
"description": "The serialized translations a form reset restores. Taken from the `value` attribute where there is one."
|
|
52123
52085
|
},
|
|
52124
52086
|
{
|
|
52125
52087
|
"kind": "field",
|
|
52126
|
-
"name": "
|
|
52088
|
+
"name": "_activeLanguage",
|
|
52127
52089
|
"type": {
|
|
52128
|
-
"text": "
|
|
52090
|
+
"text": "string"
|
|
52129
52091
|
},
|
|
52130
|
-
"
|
|
52131
|
-
"
|
|
52132
|
-
"name": "ZnPanel",
|
|
52133
|
-
"module": "components/panel/panel.js"
|
|
52134
|
-
}
|
|
52092
|
+
"privacy": "private",
|
|
52093
|
+
"default": "'en'"
|
|
52135
52094
|
},
|
|
52136
52095
|
{
|
|
52137
52096
|
"kind": "field",
|
|
52138
|
-
"name": "
|
|
52097
|
+
"name": "validity",
|
|
52139
52098
|
"type": {
|
|
52140
|
-
"text": "
|
|
52099
|
+
"text": "ValidityState"
|
|
52141
52100
|
},
|
|
52142
|
-
"
|
|
52143
|
-
"inheritedFrom": {
|
|
52144
|
-
"name": "ZnPanel",
|
|
52145
|
-
"module": "components/panel/panel.js"
|
|
52146
|
-
}
|
|
52101
|
+
"readonly": true
|
|
52147
52102
|
},
|
|
52148
52103
|
{
|
|
52149
52104
|
"kind": "field",
|
|
52150
|
-
"name": "
|
|
52151
|
-
"
|
|
52152
|
-
"text": "boolean"
|
|
52153
|
-
},
|
|
52154
|
-
"attribute": "transparent",
|
|
52155
|
-
"inheritedFrom": {
|
|
52156
|
-
"name": "ZnPanel",
|
|
52157
|
-
"module": "components/panel/panel.js"
|
|
52158
|
-
}
|
|
52105
|
+
"name": "validationMessage",
|
|
52106
|
+
"readonly": true
|
|
52159
52107
|
},
|
|
52160
52108
|
{
|
|
52161
|
-
"kind": "
|
|
52162
|
-
"name": "
|
|
52163
|
-
"type": {
|
|
52164
|
-
"text": "boolean"
|
|
52165
|
-
},
|
|
52166
|
-
"attribute": "shadow",
|
|
52167
|
-
"inheritedFrom": {
|
|
52168
|
-
"name": "ZnPanel",
|
|
52169
|
-
"module": "components/panel/panel.js"
|
|
52170
|
-
}
|
|
52109
|
+
"kind": "method",
|
|
52110
|
+
"name": "checkValidity"
|
|
52171
52111
|
},
|
|
52172
52112
|
{
|
|
52173
|
-
"kind": "
|
|
52174
|
-
"name": "
|
|
52175
|
-
"type": {
|
|
52176
|
-
"text": "boolean"
|
|
52177
|
-
},
|
|
52178
|
-
"privacy": "private",
|
|
52179
|
-
"default": "false",
|
|
52180
|
-
"inheritedFrom": {
|
|
52181
|
-
"name": "ZnPanel",
|
|
52182
|
-
"module": "components/panel/panel.js"
|
|
52183
|
-
}
|
|
52113
|
+
"kind": "method",
|
|
52114
|
+
"name": "getForm"
|
|
52184
52115
|
},
|
|
52185
52116
|
{
|
|
52186
|
-
"kind": "
|
|
52187
|
-
"name": "
|
|
52188
|
-
"type": {
|
|
52189
|
-
"text": "ResizeObserver | null"
|
|
52190
|
-
},
|
|
52191
|
-
"privacy": "private",
|
|
52192
|
-
"default": "null",
|
|
52193
|
-
"inheritedFrom": {
|
|
52194
|
-
"name": "ZnPanel",
|
|
52195
|
-
"module": "components/panel/panel.js"
|
|
52196
|
-
}
|
|
52117
|
+
"kind": "method",
|
|
52118
|
+
"name": "reportValidity"
|
|
52197
52119
|
},
|
|
52198
52120
|
{
|
|
52199
52121
|
"kind": "method",
|
|
52200
|
-
"name": "
|
|
52201
|
-
"privacy": "private",
|
|
52202
|
-
"inheritedFrom": {
|
|
52203
|
-
"name": "ZnPanel",
|
|
52204
|
-
"module": "components/panel/panel.js"
|
|
52205
|
-
}
|
|
52122
|
+
"name": "setCustomValidity"
|
|
52206
52123
|
},
|
|
52207
52124
|
{
|
|
52208
52125
|
"kind": "method",
|
|
52209
|
-
"name": "
|
|
52210
|
-
"privacy": "
|
|
52211
|
-
"
|
|
52212
|
-
|
|
52213
|
-
|
|
52214
|
-
|
|
52215
|
-
|
|
52216
|
-
|
|
52217
|
-
|
|
52218
|
-
|
|
52219
|
-
"description": "
|
|
52220
|
-
"name": "zn-language-change"
|
|
52221
|
-
}
|
|
52222
|
-
],
|
|
52223
|
-
"attributes": [
|
|
52224
|
-
{
|
|
52225
|
-
"name": "label",
|
|
52226
|
-
"type": {
|
|
52227
|
-
"text": "string"
|
|
52228
|
-
},
|
|
52229
|
-
"default": "''",
|
|
52230
|
-
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
52231
|
-
"fieldName": "label"
|
|
52126
|
+
"name": "setActiveLanguage",
|
|
52127
|
+
"privacy": "public",
|
|
52128
|
+
"parameters": [
|
|
52129
|
+
{
|
|
52130
|
+
"name": "language",
|
|
52131
|
+
"type": {
|
|
52132
|
+
"text": "string"
|
|
52133
|
+
}
|
|
52134
|
+
}
|
|
52135
|
+
],
|
|
52136
|
+
"description": "Sets the active language externally. Used by zn-translation-group. Browsing to a language does not create a key\nfor it — an untouched language stays absent from `values` so it is not submitted as an empty translation."
|
|
52232
52137
|
},
|
|
52233
52138
|
{
|
|
52234
|
-
"
|
|
52235
|
-
"
|
|
52236
|
-
|
|
52139
|
+
"kind": "method",
|
|
52140
|
+
"name": "getActiveLanguage",
|
|
52141
|
+
"privacy": "public",
|
|
52142
|
+
"return": {
|
|
52143
|
+
"type": {
|
|
52144
|
+
"text": "string"
|
|
52145
|
+
}
|
|
52237
52146
|
},
|
|
52238
|
-
"
|
|
52239
|
-
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
52240
|
-
"fieldName": "helpText"
|
|
52147
|
+
"description": "Returns the currently active language."
|
|
52241
52148
|
},
|
|
52242
52149
|
{
|
|
52243
|
-
"
|
|
52244
|
-
"
|
|
52245
|
-
|
|
52246
|
-
|
|
52247
|
-
|
|
52248
|
-
|
|
52249
|
-
|
|
52150
|
+
"kind": "method",
|
|
52151
|
+
"name": "addLanguageKey",
|
|
52152
|
+
"privacy": "public",
|
|
52153
|
+
"parameters": [
|
|
52154
|
+
{
|
|
52155
|
+
"name": "languageCode",
|
|
52156
|
+
"type": {
|
|
52157
|
+
"text": "string"
|
|
52158
|
+
}
|
|
52159
|
+
}
|
|
52160
|
+
],
|
|
52161
|
+
"description": "Adds a language key to this component's values if not already present. Used by zn-translation-group."
|
|
52250
52162
|
},
|
|
52251
52163
|
{
|
|
52252
|
-
"
|
|
52253
|
-
"
|
|
52254
|
-
|
|
52164
|
+
"kind": "method",
|
|
52165
|
+
"name": "getValueLanguages",
|
|
52166
|
+
"privacy": "public",
|
|
52167
|
+
"return": {
|
|
52168
|
+
"type": {
|
|
52169
|
+
"text": "string[]"
|
|
52170
|
+
}
|
|
52255
52171
|
},
|
|
52256
|
-
"
|
|
52257
|
-
"description": "The select's accessible name. Not shown — the caption is what names the section on screen — but read out by a\nscreen reader, which has nothing else to go on once the visible label is gone.",
|
|
52258
|
-
"fieldName": "languageLabel"
|
|
52172
|
+
"description": "Returns all language codes that have values."
|
|
52259
52173
|
},
|
|
52260
52174
|
{
|
|
52261
|
-
"
|
|
52262
|
-
"
|
|
52263
|
-
|
|
52175
|
+
"kind": "method",
|
|
52176
|
+
"name": "hasTranslation",
|
|
52177
|
+
"privacy": "public",
|
|
52178
|
+
"return": {
|
|
52179
|
+
"type": {
|
|
52180
|
+
"text": "boolean"
|
|
52181
|
+
}
|
|
52264
52182
|
},
|
|
52265
|
-
"
|
|
52266
|
-
|
|
52267
|
-
|
|
52183
|
+
"parameters": [
|
|
52184
|
+
{
|
|
52185
|
+
"name": "language",
|
|
52186
|
+
"type": {
|
|
52187
|
+
"text": "string"
|
|
52188
|
+
}
|
|
52189
|
+
}
|
|
52190
|
+
],
|
|
52191
|
+
"description": "Whether the language carries a translation of its own, rather than falling back to English."
|
|
52268
52192
|
},
|
|
52269
52193
|
{
|
|
52270
|
-
"
|
|
52271
|
-
"
|
|
52272
|
-
|
|
52194
|
+
"kind": "method",
|
|
52195
|
+
"name": "languageState",
|
|
52196
|
+
"privacy": "private",
|
|
52197
|
+
"return": {
|
|
52198
|
+
"type": {
|
|
52199
|
+
"text": "{ type: 'success' | 'error'; label: string }"
|
|
52200
|
+
}
|
|
52273
52201
|
},
|
|
52274
|
-
"
|
|
52275
|
-
|
|
52276
|
-
|
|
52277
|
-
|
|
52278
|
-
|
|
52202
|
+
"parameters": [
|
|
52203
|
+
{
|
|
52204
|
+
"name": "language",
|
|
52205
|
+
"type": {
|
|
52206
|
+
"text": "string"
|
|
52207
|
+
}
|
|
52208
|
+
}
|
|
52209
|
+
],
|
|
52210
|
+
"description": "The chip shown against a language, in the select's value and against each of its options."
|
|
52279
52211
|
},
|
|
52280
52212
|
{
|
|
52281
|
-
"
|
|
52282
|
-
"
|
|
52283
|
-
|
|
52213
|
+
"kind": "method",
|
|
52214
|
+
"name": "languageLabel",
|
|
52215
|
+
"privacy": "private",
|
|
52216
|
+
"return": {
|
|
52217
|
+
"type": {
|
|
52218
|
+
"text": "string"
|
|
52219
|
+
}
|
|
52284
52220
|
},
|
|
52285
|
-
"
|
|
52286
|
-
|
|
52287
|
-
|
|
52288
|
-
|
|
52289
|
-
|
|
52221
|
+
"parameters": [
|
|
52222
|
+
{
|
|
52223
|
+
"name": "language",
|
|
52224
|
+
"type": {
|
|
52225
|
+
"text": "string"
|
|
52226
|
+
}
|
|
52227
|
+
}
|
|
52228
|
+
],
|
|
52229
|
+
"description": "The configured name, or the code where `languages` does not name the language."
|
|
52290
52230
|
},
|
|
52291
52231
|
{
|
|
52292
|
-
"
|
|
52293
|
-
"
|
|
52294
|
-
|
|
52232
|
+
"kind": "method",
|
|
52233
|
+
"name": "pendingValues",
|
|
52234
|
+
"privacy": "private",
|
|
52235
|
+
"return": {
|
|
52236
|
+
"type": {
|
|
52237
|
+
"text": "Record<string, string>"
|
|
52238
|
+
}
|
|
52295
52239
|
},
|
|
52296
|
-
"
|
|
52297
|
-
"inheritedFrom": {
|
|
52298
|
-
"name": "ZnPanel",
|
|
52299
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52300
|
-
}
|
|
52240
|
+
"description": "`values`, falling back to the `value` attribute it is built from while that is still pending. A parent\nzn-translation-group syncs its children from its own first update, which runs before theirs, so reading\n`values` alone would see it empty and overwrite the value the server rendered."
|
|
52301
52241
|
},
|
|
52302
52242
|
{
|
|
52303
|
-
"
|
|
52304
|
-
"
|
|
52305
|
-
|
|
52306
|
-
|
|
52307
|
-
"fieldName": "tabbed",
|
|
52308
|
-
"inheritedFrom": {
|
|
52309
|
-
"name": "ZnPanel",
|
|
52310
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52311
|
-
}
|
|
52243
|
+
"kind": "field",
|
|
52244
|
+
"name": "handleLanguageSelect",
|
|
52245
|
+
"privacy": "private",
|
|
52246
|
+
"description": "The select's own change and input events are stopped here: they describe the language being browsed, not the\ntranslation being edited, and a consumer listening on zn-translations reads either as a value change."
|
|
52312
52247
|
},
|
|
52313
52248
|
{
|
|
52314
|
-
"
|
|
52315
|
-
"
|
|
52316
|
-
|
|
52317
|
-
},
|
|
52318
|
-
"fieldName": "headerBorderless",
|
|
52319
|
-
"inheritedFrom": {
|
|
52320
|
-
"name": "ZnPanel",
|
|
52321
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52322
|
-
}
|
|
52249
|
+
"kind": "field",
|
|
52250
|
+
"name": "handleLanguageInput",
|
|
52251
|
+
"privacy": "private"
|
|
52323
52252
|
},
|
|
52324
52253
|
{
|
|
52325
|
-
"
|
|
52326
|
-
"
|
|
52327
|
-
|
|
52328
|
-
|
|
52329
|
-
"fieldName": "cosmic",
|
|
52330
|
-
"inheritedFrom": {
|
|
52331
|
-
"name": "ZnPanel",
|
|
52332
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52333
|
-
}
|
|
52254
|
+
"kind": "field",
|
|
52255
|
+
"name": "switchLanguage",
|
|
52256
|
+
"privacy": "private",
|
|
52257
|
+
"description": "The language shown in the field, without touching `values`."
|
|
52334
52258
|
},
|
|
52335
52259
|
{
|
|
52336
|
-
"
|
|
52337
|
-
"
|
|
52338
|
-
|
|
52339
|
-
},
|
|
52340
|
-
"fieldName": "flush",
|
|
52341
|
-
"inheritedFrom": {
|
|
52342
|
-
"name": "ZnPanel",
|
|
52343
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52344
|
-
}
|
|
52260
|
+
"kind": "field",
|
|
52261
|
+
"name": "handleValueUpdate",
|
|
52262
|
+
"privacy": "private"
|
|
52345
52263
|
},
|
|
52346
52264
|
{
|
|
52347
|
-
"
|
|
52348
|
-
"
|
|
52349
|
-
|
|
52350
|
-
},
|
|
52351
|
-
"fieldName": "flushX",
|
|
52352
|
-
"inheritedFrom": {
|
|
52353
|
-
"name": "ZnPanel",
|
|
52354
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52355
|
-
}
|
|
52265
|
+
"kind": "method",
|
|
52266
|
+
"name": "updateValue",
|
|
52267
|
+
"privacy": "private"
|
|
52356
52268
|
},
|
|
52357
52269
|
{
|
|
52358
|
-
"
|
|
52359
|
-
"
|
|
52360
|
-
|
|
52361
|
-
},
|
|
52362
|
-
"fieldName": "flushY",
|
|
52363
|
-
"inheritedFrom": {
|
|
52364
|
-
"name": "ZnPanel",
|
|
52365
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52366
|
-
}
|
|
52270
|
+
"kind": "field",
|
|
52271
|
+
"name": "handleKeyDown",
|
|
52272
|
+
"privacy": "private"
|
|
52367
52273
|
},
|
|
52368
52274
|
{
|
|
52369
|
-
"
|
|
52370
|
-
"
|
|
52371
|
-
|
|
52372
|
-
},
|
|
52373
|
-
"fieldName": "flushFooter",
|
|
52374
|
-
"inheritedFrom": {
|
|
52375
|
-
"name": "ZnPanel",
|
|
52376
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52377
|
-
}
|
|
52275
|
+
"kind": "field",
|
|
52276
|
+
"name": "handleSubmit",
|
|
52277
|
+
"privacy": "private"
|
|
52378
52278
|
},
|
|
52379
52279
|
{
|
|
52380
|
-
"
|
|
52381
|
-
"
|
|
52382
|
-
|
|
52383
|
-
|
|
52384
|
-
|
|
52385
|
-
|
|
52386
|
-
|
|
52387
|
-
|
|
52388
|
-
|
|
52280
|
+
"kind": "method",
|
|
52281
|
+
"name": "renderField",
|
|
52282
|
+
"privacy": "private",
|
|
52283
|
+
"parameters": [
|
|
52284
|
+
{
|
|
52285
|
+
"name": "value",
|
|
52286
|
+
"type": {
|
|
52287
|
+
"text": "string"
|
|
52288
|
+
}
|
|
52289
|
+
},
|
|
52290
|
+
{
|
|
52291
|
+
"name": "placeholder",
|
|
52292
|
+
"type": {
|
|
52293
|
+
"text": "string"
|
|
52294
|
+
}
|
|
52295
|
+
},
|
|
52296
|
+
{
|
|
52297
|
+
"name": "isRTL",
|
|
52298
|
+
"type": {
|
|
52299
|
+
"text": "boolean"
|
|
52300
|
+
}
|
|
52301
|
+
}
|
|
52302
|
+
],
|
|
52303
|
+
"description": "The control the active language's translation is edited through."
|
|
52389
52304
|
},
|
|
52390
52305
|
{
|
|
52391
|
-
"
|
|
52392
|
-
"
|
|
52393
|
-
|
|
52306
|
+
"kind": "method",
|
|
52307
|
+
"name": "isRTLLanguage",
|
|
52308
|
+
"privacy": "private",
|
|
52309
|
+
"return": {
|
|
52310
|
+
"type": {
|
|
52311
|
+
"text": "boolean"
|
|
52312
|
+
}
|
|
52394
52313
|
},
|
|
52395
|
-
"
|
|
52396
|
-
|
|
52397
|
-
|
|
52398
|
-
|
|
52399
|
-
|
|
52400
|
-
|
|
52401
|
-
|
|
52402
|
-
|
|
52403
|
-
|
|
52404
|
-
"module": "/src/components/panel/panel.component"
|
|
52405
|
-
},
|
|
52406
|
-
"summary": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.",
|
|
52407
|
-
"tagNameWithoutPrefix": "translation-group",
|
|
52408
|
-
"tagName": "zn-translation-group",
|
|
52409
|
-
"customElement": true,
|
|
52410
|
-
"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 counts towards\n * the `n of m` beside the label like any other language.\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 */",
|
|
52411
|
-
"documentation": "https://zinc.style/components/translation-group",
|
|
52412
|
-
"status": "experimental",
|
|
52413
|
-
"since": "1.0",
|
|
52414
|
-
"dependencies": [
|
|
52415
|
-
"zn-chip",
|
|
52416
|
-
"zn-form-group",
|
|
52417
|
-
"zn-option",
|
|
52418
|
-
"zn-select"
|
|
52419
|
-
],
|
|
52420
|
-
"cssProperties": [
|
|
52421
|
-
{
|
|
52422
|
-
"description": "The flex-basis of the panel. Can be set using the basis-px attribute.",
|
|
52423
|
-
"name": "--zn-panel-basis",
|
|
52424
|
-
"inheritedFrom": {
|
|
52425
|
-
"name": "ZnPanel",
|
|
52426
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52427
|
-
}
|
|
52428
|
-
},
|
|
52429
|
-
{
|
|
52430
|
-
"description": "Padding around the header row. Defaults to `--zn-base-gap`.",
|
|
52431
|
-
"name": "--zn-panel-header-padding",
|
|
52432
|
-
"inheritedFrom": {
|
|
52433
|
-
"name": "ZnPanel",
|
|
52434
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52435
|
-
}
|
|
52436
|
-
},
|
|
52437
|
-
{
|
|
52438
|
-
"description": "Padding around the footer row.",
|
|
52439
|
-
"name": "--zn-panel-footer-padding",
|
|
52440
|
-
"inheritedFrom": {
|
|
52441
|
-
"name": "ZnPanel",
|
|
52442
|
-
"module": "src/components/panel/panel.component.ts"
|
|
52443
|
-
}
|
|
52444
|
-
}
|
|
52445
|
-
]
|
|
52446
|
-
}
|
|
52447
|
-
],
|
|
52448
|
-
"exports": [
|
|
52449
|
-
{
|
|
52450
|
-
"kind": "js",
|
|
52451
|
-
"name": "default",
|
|
52452
|
-
"declaration": {
|
|
52453
|
-
"name": "ZnTranslationGroup",
|
|
52454
|
-
"module": "components/translation-group/translation-group.js"
|
|
52455
|
-
}
|
|
52456
|
-
}
|
|
52457
|
-
]
|
|
52458
|
-
},
|
|
52459
|
-
{
|
|
52460
|
-
"kind": "javascript-module",
|
|
52461
|
-
"path": "components/translations/translations.js",
|
|
52462
|
-
"declarations": [
|
|
52463
|
-
{
|
|
52464
|
-
"kind": "class",
|
|
52465
|
-
"description": "",
|
|
52466
|
-
"name": "ZnTranslations",
|
|
52467
|
-
"cssParts": [
|
|
52468
|
-
{
|
|
52469
|
-
"description": "The form control that wraps the label, the language select, the field and the help text.",
|
|
52470
|
-
"name": "form-control"
|
|
52471
|
-
},
|
|
52472
|
-
{
|
|
52473
|
-
"description": "The label's wrapper.",
|
|
52474
|
-
"name": "form-control-label"
|
|
52475
|
-
},
|
|
52476
|
-
{
|
|
52477
|
-
"description": "The wrapper around the field being edited.",
|
|
52478
|
-
"name": "form-control-input"
|
|
52479
|
-
},
|
|
52480
|
-
{
|
|
52481
|
-
"description": "The help text's wrapper.",
|
|
52482
|
-
"name": "form-control-help-text"
|
|
52483
|
-
},
|
|
52484
|
-
{
|
|
52485
|
-
"description": "The select that chooses the language being edited.",
|
|
52486
|
-
"name": "language-select"
|
|
52314
|
+
"parameters": [
|
|
52315
|
+
{
|
|
52316
|
+
"name": "languageCode",
|
|
52317
|
+
"type": {
|
|
52318
|
+
"text": "string"
|
|
52319
|
+
}
|
|
52320
|
+
}
|
|
52321
|
+
],
|
|
52322
|
+
"description": "Arabic and Hebrew read right to left, so the field's `dir` follows the language being edited."
|
|
52487
52323
|
}
|
|
52488
52324
|
],
|
|
52489
|
-
"
|
|
52325
|
+
"events": [
|
|
52490
52326
|
{
|
|
52491
|
-
"description": "
|
|
52492
|
-
"name": "
|
|
52327
|
+
"description": "Emitted when a translation's value changes.",
|
|
52328
|
+
"name": "zn-change"
|
|
52493
52329
|
},
|
|
52494
52330
|
{
|
|
52495
|
-
"description": "
|
|
52496
|
-
"name": "
|
|
52331
|
+
"description": "Emitted when a translation receives input.",
|
|
52332
|
+
"name": "zn-input"
|
|
52497
52333
|
}
|
|
52498
52334
|
],
|
|
52499
|
-
"
|
|
52500
|
-
{
|
|
52501
|
-
"kind": "field",
|
|
52502
|
-
"name": "dependencies",
|
|
52503
|
-
"type": {
|
|
52504
|
-
"text": "object"
|
|
52505
|
-
},
|
|
52506
|
-
"static": true,
|
|
52507
|
-
"default": "{ 'zn-chip': ZnChip, 'zn-inline-edit': ZnInlineEdit, 'zn-input': ZnInput, 'zn-option': ZnOption, 'zn-remarkd-editor': ZnRemarkdEditor, 'zn-select': ZnSelect, 'zn-textarea': ZnTextarea }"
|
|
52508
|
-
},
|
|
52509
|
-
{
|
|
52510
|
-
"kind": "field",
|
|
52511
|
-
"name": "formControlController",
|
|
52512
|
-
"type": {
|
|
52513
|
-
"text": "FormControlController"
|
|
52514
|
-
},
|
|
52515
|
-
"privacy": "private",
|
|
52516
|
-
"readonly": true,
|
|
52517
|
-
"default": "new FormControlController(this)"
|
|
52518
|
-
},
|
|
52519
|
-
{
|
|
52520
|
-
"kind": "field",
|
|
52521
|
-
"name": "hasSlotController",
|
|
52522
|
-
"privacy": "private",
|
|
52523
|
-
"readonly": true,
|
|
52524
|
-
"default": "new HasSlotController(this, 'label', 'help-text')"
|
|
52525
|
-
},
|
|
52335
|
+
"attributes": [
|
|
52526
52336
|
{
|
|
52527
|
-
"kind": "field",
|
|
52528
52337
|
"name": "name",
|
|
52529
52338
|
"type": {
|
|
52530
52339
|
"text": "string"
|
|
52531
52340
|
},
|
|
52532
52341
|
"default": "''",
|
|
52533
52342
|
"description": "The name submitted with the form.",
|
|
52534
|
-
"
|
|
52343
|
+
"fieldName": "name"
|
|
52535
52344
|
},
|
|
52536
52345
|
{
|
|
52537
|
-
"kind": "field",
|
|
52538
52346
|
"name": "value",
|
|
52539
52347
|
"type": {
|
|
52540
52348
|
"text": "string"
|
|
52541
52349
|
},
|
|
52542
52350
|
"default": "'{\"en\":\"\"}'",
|
|
52543
52351
|
"description": "The translations as a JSON object keyed by language code. The mirror of `values` in attribute form.",
|
|
52544
|
-
"
|
|
52352
|
+
"fieldName": "value"
|
|
52545
52353
|
},
|
|
52546
52354
|
{
|
|
52547
|
-
"kind": "field",
|
|
52548
52355
|
"name": "label",
|
|
52549
52356
|
"type": {
|
|
52550
52357
|
"text": "string"
|
|
52551
52358
|
},
|
|
52552
52359
|
"default": "''",
|
|
52553
52360
|
"description": "The label shown above the field. If you need HTML, use the `label` slot instead.",
|
|
52554
|
-
"
|
|
52361
|
+
"fieldName": "label"
|
|
52555
52362
|
},
|
|
52556
52363
|
{
|
|
52557
|
-
"
|
|
52558
|
-
"name": "helpText",
|
|
52364
|
+
"name": "help-text",
|
|
52559
52365
|
"type": {
|
|
52560
52366
|
"text": "string"
|
|
52561
52367
|
},
|
|
52562
52368
|
"default": "''",
|
|
52563
52369
|
"description": "Text shown below the field, describing how to fill it in. Applies to every language. If you need HTML, use the\n`help-text` slot instead.",
|
|
52564
|
-
"
|
|
52370
|
+
"fieldName": "helpText"
|
|
52565
52371
|
},
|
|
52566
52372
|
{
|
|
52567
|
-
"kind": "field",
|
|
52568
52373
|
"name": "disabled",
|
|
52569
52374
|
"type": {
|
|
52570
52375
|
"text": "boolean"
|
|
52571
52376
|
},
|
|
52572
52377
|
"default": "false",
|
|
52573
52378
|
"description": "Disables editing in every language.",
|
|
52574
|
-
"
|
|
52575
|
-
"reflects": true
|
|
52379
|
+
"fieldName": "disabled"
|
|
52576
52380
|
},
|
|
52577
52381
|
{
|
|
52578
|
-
"kind": "field",
|
|
52579
52382
|
"name": "required",
|
|
52580
52383
|
"type": {
|
|
52581
52384
|
"text": "boolean"
|
|
52582
52385
|
},
|
|
52583
52386
|
"default": "false",
|
|
52584
52387
|
"description": "Marks the label required. Validity is not enforced per language.",
|
|
52585
|
-
"
|
|
52586
|
-
"reflects": true
|
|
52388
|
+
"fieldName": "required"
|
|
52587
52389
|
},
|
|
52588
52390
|
{
|
|
52589
|
-
"kind": "field",
|
|
52590
52391
|
"name": "flush",
|
|
52591
52392
|
"type": {
|
|
52592
52393
|
"text": "boolean"
|
|
52593
52394
|
},
|
|
52594
52395
|
"default": "false",
|
|
52595
52396
|
"description": "Removes the component's own padding.",
|
|
52596
|
-
"
|
|
52597
|
-
"reflects": true
|
|
52397
|
+
"fieldName": "flush"
|
|
52598
52398
|
},
|
|
52599
52399
|
{
|
|
52600
|
-
"
|
|
52601
|
-
"name": "inputType",
|
|
52400
|
+
"name": "input-type",
|
|
52602
52401
|
"type": {
|
|
52603
52402
|
"text": "'text' | 'number' | 'textarea' | 'remarkd'"
|
|
52604
52403
|
},
|
|
52605
52404
|
"default": "'text'",
|
|
52606
52405
|
"description": "The control each translation is edited through.",
|
|
52607
|
-
"
|
|
52406
|
+
"fieldName": "inputType"
|
|
52608
52407
|
},
|
|
52609
52408
|
{
|
|
52610
|
-
"
|
|
52611
|
-
"name": "textareaRows",
|
|
52409
|
+
"name": "textarea-rows",
|
|
52612
52410
|
"type": {
|
|
52613
52411
|
"text": "number | undefined"
|
|
52614
52412
|
},
|
|
52615
52413
|
"description": "Rows of the textarea, when `input-type` is `textarea`.",
|
|
52616
|
-
"
|
|
52414
|
+
"fieldName": "textareaRows"
|
|
52617
52415
|
},
|
|
52618
52416
|
{
|
|
52619
|
-
"
|
|
52620
|
-
"name": "allowRaw",
|
|
52417
|
+
"name": "allow-raw",
|
|
52621
52418
|
"type": {
|
|
52622
52419
|
"text": "boolean"
|
|
52623
52420
|
},
|
|
52624
52421
|
"default": "false",
|
|
52625
52422
|
"description": "Allows raw HTML blocks, when `input-type` is `remarkd`.",
|
|
52626
|
-
"
|
|
52423
|
+
"fieldName": "allowRaw"
|
|
52627
52424
|
},
|
|
52628
52425
|
{
|
|
52629
|
-
"
|
|
52630
|
-
"name": "attachmentUrl",
|
|
52426
|
+
"name": "attachment-url",
|
|
52631
52427
|
"type": {
|
|
52632
52428
|
"text": "string"
|
|
52633
52429
|
},
|
|
52634
52430
|
"default": "''",
|
|
52635
52431
|
"description": "Where the remarkd editor uploads images, when `input-type` is `remarkd`.",
|
|
52636
|
-
"
|
|
52432
|
+
"fieldName": "attachmentUrl"
|
|
52637
52433
|
},
|
|
52638
52434
|
{
|
|
52639
|
-
"
|
|
52640
|
-
"name": "includeUrl",
|
|
52435
|
+
"name": "include-url",
|
|
52641
52436
|
"type": {
|
|
52642
52437
|
"text": "string"
|
|
52643
52438
|
},
|
|
52644
52439
|
"default": "''",
|
|
52645
52440
|
"description": "Where the remarkd editor lists embeddable includes, when `input-type` is `remarkd`.",
|
|
52646
|
-
"
|
|
52441
|
+
"fieldName": "includeUrl"
|
|
52647
52442
|
},
|
|
52648
52443
|
{
|
|
52649
|
-
"
|
|
52650
|
-
"name": "linkUrl",
|
|
52444
|
+
"name": "link-url",
|
|
52651
52445
|
"type": {
|
|
52652
52446
|
"text": "string"
|
|
52653
52447
|
},
|
|
52654
52448
|
"default": "''",
|
|
52655
52449
|
"description": "Where the remarkd editor searches link targets, when `input-type` is `remarkd`.",
|
|
52656
|
-
"
|
|
52450
|
+
"fieldName": "linkUrl"
|
|
52657
52451
|
},
|
|
52658
52452
|
{
|
|
52659
|
-
"
|
|
52660
|
-
"name": "inlineEdit",
|
|
52453
|
+
"name": "inline-edit",
|
|
52661
52454
|
"type": {
|
|
52662
52455
|
"text": "boolean"
|
|
52663
52456
|
},
|
|
52664
52457
|
"default": "false",
|
|
52665
52458
|
"description": "Edits the translation through a `zn-inline-edit` — the value reads as text until it is clicked — rather than a\nplain input or textarea.",
|
|
52666
|
-
"
|
|
52667
|
-
"reflects": true
|
|
52459
|
+
"fieldName": "inlineEdit"
|
|
52668
52460
|
},
|
|
52669
52461
|
{
|
|
52670
|
-
"
|
|
52671
|
-
"name": "slashItems",
|
|
52462
|
+
"name": "slash-items",
|
|
52672
52463
|
"type": {
|
|
52673
52464
|
"text": "SlashMenuItem[]"
|
|
52674
52465
|
},
|
|
52675
52466
|
"default": "[]",
|
|
52676
52467
|
"description": "Quick insertions offered by the slash menu on `text` and `textarea` inputs. Accepts a JSON array of items, or\nthe shorthand `Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Every language shares the list.",
|
|
52677
|
-
"
|
|
52468
|
+
"fieldName": "slashItems"
|
|
52678
52469
|
},
|
|
52679
52470
|
{
|
|
52680
|
-
"
|
|
52681
|
-
"name": "slashPreset",
|
|
52471
|
+
"name": "slash-preset",
|
|
52682
52472
|
"type": {
|
|
52683
52473
|
"text": "string"
|
|
52684
52474
|
},
|
|
52685
52475
|
"default": "''",
|
|
52686
52476
|
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
52687
|
-
"
|
|
52477
|
+
"fieldName": "slashPreset"
|
|
52688
52478
|
},
|
|
52689
52479
|
{
|
|
52690
|
-
"
|
|
52691
|
-
"name": "slashTrigger",
|
|
52480
|
+
"name": "slash-trigger",
|
|
52692
52481
|
"type": {
|
|
52693
52482
|
"text": "string"
|
|
52694
52483
|
},
|
|
52695
52484
|
"default": "'/'",
|
|
52696
52485
|
"description": "The characters that open the slash menu.",
|
|
52697
|
-
"
|
|
52486
|
+
"fieldName": "slashTrigger"
|
|
52698
52487
|
},
|
|
52699
52488
|
{
|
|
52700
|
-
"
|
|
52701
|
-
"name": "slashHeading",
|
|
52489
|
+
"name": "slash-heading",
|
|
52702
52490
|
"type": {
|
|
52703
52491
|
"text": "string"
|
|
52704
52492
|
},
|
|
52705
52493
|
"default": "'Insert'",
|
|
52706
52494
|
"description": "The name the slash menu's list is announced by.",
|
|
52707
|
-
"
|
|
52495
|
+
"fieldName": "slashHeading"
|
|
52708
52496
|
},
|
|
52709
52497
|
{
|
|
52710
|
-
"
|
|
52711
|
-
"name": "slashHideKeys",
|
|
52498
|
+
"name": "slash-hide-keys",
|
|
52712
52499
|
"type": {
|
|
52713
52500
|
"text": "boolean"
|
|
52714
52501
|
},
|
|
52715
52502
|
"default": "false",
|
|
52716
52503
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
52717
|
-
"
|
|
52504
|
+
"fieldName": "slashHideKeys"
|
|
52718
52505
|
},
|
|
52719
52506
|
{
|
|
52720
|
-
"
|
|
52721
|
-
"name": "slashRecentKey",
|
|
52507
|
+
"name": "slash-recent-key",
|
|
52722
52508
|
"type": {
|
|
52723
52509
|
"text": "string"
|
|
52724
52510
|
},
|
|
52725
52511
|
"default": "''",
|
|
52726
52512
|
"description": "Lists the slash menu items most recently chosen here above the rest, remembered under this key.",
|
|
52727
|
-
"
|
|
52728
|
-
},
|
|
52729
|
-
{
|
|
52730
|
-
"kind": "field",
|
|
52731
|
-
"name": "slashItemsProvider",
|
|
52732
|
-
"type": {
|
|
52733
|
-
"text": "(query: string) => SlashMenuItem[] | Promise<SlashMenuItem[]> | undefined"
|
|
52734
|
-
},
|
|
52735
|
-
"description": "Resolves additional slash menu items each time the menu opens. JavaScript only."
|
|
52513
|
+
"fieldName": "slashRecentKey"
|
|
52736
52514
|
},
|
|
52737
52515
|
{
|
|
52738
|
-
"kind": "field",
|
|
52739
52516
|
"name": "grouped",
|
|
52740
52517
|
"type": {
|
|
52741
52518
|
"text": "boolean"
|
|
52742
52519
|
},
|
|
52743
52520
|
"default": "false",
|
|
52744
52521
|
"description": "Hides this component's own language select and defers the choice to a parent zn-translation-group. The group sets\nthis on its children itself.",
|
|
52745
|
-
"
|
|
52746
|
-
"reflects": true
|
|
52522
|
+
"fieldName": "grouped"
|
|
52747
52523
|
},
|
|
52748
52524
|
{
|
|
52749
|
-
"kind": "field",
|
|
52750
52525
|
"name": "languages",
|
|
52751
52526
|
"type": {
|
|
52752
52527
|
"text": "Record<string, string>"
|
|
52753
52528
|
},
|
|
52754
52529
|
"default": "{ 'en': 'EN' }",
|
|
52755
52530
|
"description": "The languages on offer, as language code to display name — `{\"en\": \"English\", \"fr\": \"French\"}`. Writing the code\nas the name (`{\"en\": \"EN\"}`) is also accepted. `en` is the language every other one falls back to.",
|
|
52756
|
-
"
|
|
52531
|
+
"fieldName": "languages"
|
|
52757
52532
|
},
|
|
52758
52533
|
{
|
|
52759
|
-
"kind": "field",
|
|
52760
52534
|
"name": "values",
|
|
52761
52535
|
"type": {
|
|
52762
52536
|
"text": "Record<string, string>"
|
|
52763
52537
|
},
|
|
52764
52538
|
"default": "{}",
|
|
52765
52539
|
"description": "The translations as an object keyed by language code. The mirror of `value` in property form.",
|
|
52766
|
-
"
|
|
52540
|
+
"fieldName": "values"
|
|
52541
|
+
}
|
|
52542
|
+
],
|
|
52543
|
+
"superclass": {
|
|
52544
|
+
"name": "ZincElement",
|
|
52545
|
+
"module": "/src/internal/zinc-element"
|
|
52546
|
+
},
|
|
52547
|
+
"summary": "Collects one piece of text in several languages, one language at a time.",
|
|
52548
|
+
"tagNameWithoutPrefix": "translations",
|
|
52549
|
+
"tagName": "zn-translations",
|
|
52550
|
+
"customElement": true,
|
|
52551
|
+
"jsDoc": "/**\n * @summary Collects one piece of text in several languages, one language at a time.\n * @documentation https://zinc.style/components/translations\n * @status experimental\n * @since 1.0\n *\n * A select above the field chooses the language being edited. Closed, it carries how many languages are translated —\n * `1/5`; open, every language it offers carries a chip saying whether it has a translation of its own or falls back\n * to English. Blank languages fall back to English at render\n * time, so a blank field shows the English text as its placeholder rather than looking empty.\n *\n * The value submitted is a JSON object keyed by language code. A language stays out of it until it is typed into, so\n * browsing the languages does not pad the payload with empty translations.\n *\n * Put several of these in a `zn-translation-group` to have one select drive all of them.\n *\n * @dependency zn-chip\n * @dependency zn-inline-edit\n * @dependency zn-input\n * @dependency zn-option\n * @dependency zn-select\n * @dependency zn-textarea\n *\n * @slot label - The field's label. Alternatively, use the `label` attribute.\n * @slot help-text - Text describing how to fill the field in, shown below it and shared by every language.\n * Alternatively, use the `help-text` attribute.\n *\n * @event zn-change - Emitted when a translation's value changes.\n * @event zn-input - Emitted when a translation receives input.\n *\n * @csspart form-control - The form control that wraps the label, the language select, the field and the help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The wrapper around the field being edited.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart language-select - The select that chooses the language being edited.\n */",
|
|
52552
|
+
"documentation": "https://zinc.style/components/translations",
|
|
52553
|
+
"status": "experimental",
|
|
52554
|
+
"since": "1.0",
|
|
52555
|
+
"dependencies": [
|
|
52556
|
+
"zn-chip",
|
|
52557
|
+
"zn-inline-edit",
|
|
52558
|
+
"zn-input",
|
|
52559
|
+
"zn-option",
|
|
52560
|
+
"zn-select",
|
|
52561
|
+
"zn-textarea"
|
|
52562
|
+
]
|
|
52563
|
+
}
|
|
52564
|
+
],
|
|
52565
|
+
"exports": [
|
|
52566
|
+
{
|
|
52567
|
+
"kind": "js",
|
|
52568
|
+
"name": "default",
|
|
52569
|
+
"declaration": {
|
|
52570
|
+
"name": "ZnTranslations",
|
|
52571
|
+
"module": "components/translations/translations.js"
|
|
52572
|
+
}
|
|
52573
|
+
}
|
|
52574
|
+
]
|
|
52575
|
+
},
|
|
52576
|
+
{
|
|
52577
|
+
"kind": "javascript-module",
|
|
52578
|
+
"path": "components/translation-group/translation-group.js",
|
|
52579
|
+
"declarations": [
|
|
52580
|
+
{
|
|
52581
|
+
"kind": "class",
|
|
52582
|
+
"description": "",
|
|
52583
|
+
"name": "ZnTranslationGroup",
|
|
52584
|
+
"cssParts": [
|
|
52585
|
+
{
|
|
52586
|
+
"description": "The component's base wrapper.",
|
|
52587
|
+
"name": "base",
|
|
52588
|
+
"inheritedFrom": {
|
|
52589
|
+
"name": "ZnPanel",
|
|
52590
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52591
|
+
}
|
|
52592
|
+
},
|
|
52593
|
+
{
|
|
52594
|
+
"description": "The form group holding the caption, the language select and the fields.",
|
|
52595
|
+
"name": "form-group"
|
|
52596
|
+
},
|
|
52597
|
+
{
|
|
52598
|
+
"description": "The row of buttons at the bottom of the body.",
|
|
52599
|
+
"name": "actions"
|
|
52600
|
+
},
|
|
52601
|
+
{
|
|
52602
|
+
"description": "The select that chooses the language every child is editing, in the group's chip slot.",
|
|
52603
|
+
"name": "language-field"
|
|
52604
|
+
},
|
|
52605
|
+
{
|
|
52606
|
+
"description": "The select itself.",
|
|
52607
|
+
"name": "language-select"
|
|
52608
|
+
},
|
|
52609
|
+
{
|
|
52610
|
+
"description": "The header region, when a caption or actions are given.",
|
|
52611
|
+
"name": "header",
|
|
52612
|
+
"inheritedFrom": {
|
|
52613
|
+
"name": "ZnPanel",
|
|
52614
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52615
|
+
}
|
|
52616
|
+
},
|
|
52617
|
+
{
|
|
52618
|
+
"description": "The padded row inside the header, forwarded from zn-header.",
|
|
52619
|
+
"name": "header-content",
|
|
52620
|
+
"inheritedFrom": {
|
|
52621
|
+
"name": "ZnPanel",
|
|
52622
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52623
|
+
}
|
|
52624
|
+
},
|
|
52625
|
+
{
|
|
52626
|
+
"description": "The footer region, when the footer slot is filled.",
|
|
52627
|
+
"name": "footer",
|
|
52628
|
+
"inheritedFrom": {
|
|
52629
|
+
"name": "ZnPanel",
|
|
52630
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52631
|
+
}
|
|
52632
|
+
}
|
|
52633
|
+
],
|
|
52634
|
+
"slots": [
|
|
52635
|
+
{
|
|
52636
|
+
"description": "The `zn-translations` fields the select drives.",
|
|
52637
|
+
"name": "",
|
|
52638
|
+
"inheritedFrom": {
|
|
52639
|
+
"name": "ZnPanel",
|
|
52640
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52641
|
+
}
|
|
52642
|
+
},
|
|
52643
|
+
{
|
|
52644
|
+
"description": "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.",
|
|
52645
|
+
"name": "actions",
|
|
52646
|
+
"inheritedFrom": {
|
|
52647
|
+
"name": "ZnPanel",
|
|
52648
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52649
|
+
}
|
|
52767
52650
|
},
|
|
52651
|
+
{
|
|
52652
|
+
"description": "Content displayed in the grey panel footer.",
|
|
52653
|
+
"name": "footer",
|
|
52654
|
+
"inheritedFrom": {
|
|
52655
|
+
"name": "ZnPanel",
|
|
52656
|
+
"module": "src/components/panel/panel.component.ts"
|
|
52657
|
+
}
|
|
52658
|
+
}
|
|
52659
|
+
],
|
|
52660
|
+
"members": [
|
|
52768
52661
|
{
|
|
52769
52662
|
"kind": "field",
|
|
52770
|
-
"name": "
|
|
52663
|
+
"name": "dependencies",
|
|
52771
52664
|
"type": {
|
|
52772
|
-
"text": "
|
|
52665
|
+
"text": "object"
|
|
52773
52666
|
},
|
|
52774
|
-
"
|
|
52775
|
-
"
|
|
52667
|
+
"static": true,
|
|
52668
|
+
"default": "{ 'zn-chip': ZnChip, 'zn-form-group': ZnFormGroup, 'zn-option': ZnOption, 'zn-select': ZnSelect }"
|
|
52776
52669
|
},
|
|
52777
52670
|
{
|
|
52778
52671
|
"kind": "field",
|
|
52779
|
-
"name": "
|
|
52780
|
-
"type": {
|
|
52781
|
-
"text": "string"
|
|
52782
|
-
},
|
|
52672
|
+
"name": "_slotController",
|
|
52783
52673
|
"privacy": "private",
|
|
52784
|
-
"
|
|
52674
|
+
"readonly": true,
|
|
52675
|
+
"default": "new HasSlotController(this, 'actions', 'footer')"
|
|
52785
52676
|
},
|
|
52786
52677
|
{
|
|
52787
52678
|
"kind": "field",
|
|
52788
|
-
"name": "
|
|
52679
|
+
"name": "label",
|
|
52789
52680
|
"type": {
|
|
52790
|
-
"text": "
|
|
52681
|
+
"text": "string"
|
|
52791
52682
|
},
|
|
52792
|
-
"
|
|
52683
|
+
"default": "''",
|
|
52684
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
52685
|
+
"attribute": "label"
|
|
52793
52686
|
},
|
|
52794
52687
|
{
|
|
52795
52688
|
"kind": "field",
|
|
52796
|
-
"name": "
|
|
52797
|
-
"
|
|
52689
|
+
"name": "helpText",
|
|
52690
|
+
"type": {
|
|
52691
|
+
"text": "string"
|
|
52692
|
+
},
|
|
52693
|
+
"default": "''",
|
|
52694
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
52695
|
+
"attribute": "help-text"
|
|
52798
52696
|
},
|
|
52799
52697
|
{
|
|
52800
|
-
"kind": "
|
|
52801
|
-
"name": "
|
|
52698
|
+
"kind": "field",
|
|
52699
|
+
"name": "inline",
|
|
52700
|
+
"type": {
|
|
52701
|
+
"text": "boolean"
|
|
52702
|
+
},
|
|
52703
|
+
"default": "false",
|
|
52704
|
+
"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.",
|
|
52705
|
+
"attribute": "inline",
|
|
52706
|
+
"reflects": true
|
|
52802
52707
|
},
|
|
52803
52708
|
{
|
|
52804
|
-
"kind": "
|
|
52805
|
-
"name": "
|
|
52709
|
+
"kind": "field",
|
|
52710
|
+
"name": "languageLabel",
|
|
52711
|
+
"type": {
|
|
52712
|
+
"text": "string"
|
|
52713
|
+
},
|
|
52714
|
+
"default": "'Edit Languages'",
|
|
52715
|
+
"description": "The select's accessible name. Not shown — the caption is what names the section on screen — but read out by a\nscreen reader, which has nothing else to go on once the visible label is gone.",
|
|
52716
|
+
"attribute": "language-label"
|
|
52806
52717
|
},
|
|
52807
52718
|
{
|
|
52808
|
-
"kind": "
|
|
52809
|
-
"name": "
|
|
52719
|
+
"kind": "field",
|
|
52720
|
+
"name": "languages",
|
|
52721
|
+
"type": {
|
|
52722
|
+
"text": "Record<string, string>"
|
|
52723
|
+
},
|
|
52724
|
+
"default": "{ 'en': 'EN' }",
|
|
52725
|
+
"description": "The languages on offer, as language code to display name — `{\"en\": \"English\", \"fr\": \"French\"}`. Writing the code\nas the name (`{\"en\": \"EN\"}`) is also accepted. `en` is the language every other one falls back to. Set on every\nchild, so they do not need their own copy.",
|
|
52726
|
+
"attribute": "languages"
|
|
52810
52727
|
},
|
|
52811
52728
|
{
|
|
52812
|
-
"kind": "
|
|
52813
|
-
"name": "
|
|
52729
|
+
"kind": "field",
|
|
52730
|
+
"name": "_activeLanguage",
|
|
52731
|
+
"type": {
|
|
52732
|
+
"text": "string"
|
|
52733
|
+
},
|
|
52734
|
+
"privacy": "private",
|
|
52735
|
+
"default": "'en'",
|
|
52736
|
+
"description": "The language every child is currently editing."
|
|
52814
52737
|
},
|
|
52815
52738
|
{
|
|
52816
|
-
"kind": "
|
|
52817
|
-
"name": "
|
|
52818
|
-
"
|
|
52819
|
-
|
|
52820
|
-
|
|
52821
|
-
|
|
52822
|
-
|
|
52823
|
-
"text": "string"
|
|
52824
|
-
}
|
|
52825
|
-
}
|
|
52826
|
-
],
|
|
52827
|
-
"description": "Sets the active language externally. Used by zn-translation-group. Browsing to a language does not create a key\nfor it — an untouched language stays absent from `values` so it is not submitted as an empty translation."
|
|
52739
|
+
"kind": "field",
|
|
52740
|
+
"name": "_form",
|
|
52741
|
+
"type": {
|
|
52742
|
+
"text": "HTMLFormElement | null"
|
|
52743
|
+
},
|
|
52744
|
+
"privacy": "private",
|
|
52745
|
+
"default": "null"
|
|
52828
52746
|
},
|
|
52829
52747
|
{
|
|
52830
52748
|
"kind": "method",
|
|
52831
|
-
"name": "
|
|
52832
|
-
"privacy": "
|
|
52749
|
+
"name": "getAllTranslations",
|
|
52750
|
+
"privacy": "private",
|
|
52833
52751
|
"return": {
|
|
52834
52752
|
"type": {
|
|
52835
|
-
"text": "
|
|
52753
|
+
"text": "ZnTranslations[]"
|
|
52836
52754
|
}
|
|
52837
52755
|
},
|
|
52838
|
-
"description": "
|
|
52839
|
-
},
|
|
52840
|
-
{
|
|
52841
|
-
"kind": "method",
|
|
52842
|
-
"name": "addLanguageKey",
|
|
52843
|
-
"privacy": "public",
|
|
52844
|
-
"parameters": [
|
|
52845
|
-
{
|
|
52846
|
-
"name": "languageCode",
|
|
52847
|
-
"type": {
|
|
52848
|
-
"text": "string"
|
|
52849
|
-
}
|
|
52850
|
-
}
|
|
52851
|
-
],
|
|
52852
|
-
"description": "Adds a language key to this component's values if not already present. Used by zn-translation-group."
|
|
52756
|
+
"description": "The children the select drives. Read live rather than cached, so markup added later is picked up."
|
|
52853
52757
|
},
|
|
52854
52758
|
{
|
|
52855
52759
|
"kind": "method",
|
|
52856
|
-
"name": "
|
|
52857
|
-
"privacy": "
|
|
52858
|
-
"
|
|
52859
|
-
"type": {
|
|
52860
|
-
"text": "string[]"
|
|
52861
|
-
}
|
|
52862
|
-
},
|
|
52863
|
-
"description": "Returns all language codes that have values."
|
|
52760
|
+
"name": "syncChildren",
|
|
52761
|
+
"privacy": "private",
|
|
52762
|
+
"description": "Sync grouped state, languages, and active language to all children."
|
|
52864
52763
|
},
|
|
52865
52764
|
{
|
|
52866
52765
|
"kind": "method",
|
|
52867
|
-
"name": "
|
|
52868
|
-
"privacy": "
|
|
52766
|
+
"name": "languageState",
|
|
52767
|
+
"privacy": "private",
|
|
52869
52768
|
"return": {
|
|
52870
52769
|
"type": {
|
|
52871
|
-
"text": "
|
|
52770
|
+
"text": "{ type: 'success' | 'warning' | 'error'; label: string }"
|
|
52872
52771
|
}
|
|
52873
52772
|
},
|
|
52874
52773
|
"parameters": [
|
|
@@ -52879,15 +52778,15 @@
|
|
|
52879
52778
|
}
|
|
52880
52779
|
}
|
|
52881
52780
|
],
|
|
52882
|
-
"description": "
|
|
52781
|
+
"description": "A language is translated once every child carries a value for it, partial while only some do. The chips and the\ncount are read off the children, so a child's edit has to bring the group back round."
|
|
52883
52782
|
},
|
|
52884
52783
|
{
|
|
52885
52784
|
"kind": "method",
|
|
52886
|
-
"name": "
|
|
52785
|
+
"name": "displayName",
|
|
52887
52786
|
"privacy": "private",
|
|
52888
52787
|
"return": {
|
|
52889
52788
|
"type": {
|
|
52890
|
-
"text": "
|
|
52789
|
+
"text": "string"
|
|
52891
52790
|
}
|
|
52892
52791
|
},
|
|
52893
52792
|
"parameters": [
|
|
@@ -52898,43 +52797,38 @@
|
|
|
52898
52797
|
}
|
|
52899
52798
|
}
|
|
52900
52799
|
],
|
|
52901
|
-
"description": "The
|
|
52800
|
+
"description": "The configured name, or the code where `languages` does not name the language."
|
|
52801
|
+
},
|
|
52802
|
+
{
|
|
52803
|
+
"kind": "method",
|
|
52804
|
+
"name": "syncChildLanguages",
|
|
52805
|
+
"privacy": "private",
|
|
52806
|
+
"description": "Children take their language list from the group, so a change to `languages` has to reach them."
|
|
52807
|
+
},
|
|
52808
|
+
{
|
|
52809
|
+
"kind": "field",
|
|
52810
|
+
"name": "handleSlotChange",
|
|
52811
|
+
"privacy": "private"
|
|
52902
52812
|
},
|
|
52903
52813
|
{
|
|
52904
52814
|
"kind": "method",
|
|
52905
|
-
"name": "
|
|
52815
|
+
"name": "switchLanguage",
|
|
52906
52816
|
"privacy": "private",
|
|
52907
|
-
"return": {
|
|
52908
|
-
"type": {
|
|
52909
|
-
"text": "string"
|
|
52910
|
-
}
|
|
52911
|
-
},
|
|
52912
52817
|
"parameters": [
|
|
52913
52818
|
{
|
|
52914
|
-
"name": "
|
|
52819
|
+
"name": "lang",
|
|
52915
52820
|
"type": {
|
|
52916
52821
|
"text": "string"
|
|
52917
52822
|
}
|
|
52918
52823
|
}
|
|
52919
52824
|
],
|
|
52920
|
-
"description": "
|
|
52921
|
-
},
|
|
52922
|
-
{
|
|
52923
|
-
"kind": "method",
|
|
52924
|
-
"name": "pendingValues",
|
|
52925
|
-
"privacy": "private",
|
|
52926
|
-
"return": {
|
|
52927
|
-
"type": {
|
|
52928
|
-
"text": "Record<string, string>"
|
|
52929
|
-
}
|
|
52930
|
-
},
|
|
52931
|
-
"description": "`values`, falling back to the `value` attribute it is built from while that is still pending. A parent\nzn-translation-group syncs its children from its own first update, which runs before theirs, so reading\n`values` alone would see it empty and overwrite the value the server rendered."
|
|
52825
|
+
"description": "Moves every child onto `lang` and announces it. Does not touch their values."
|
|
52932
52826
|
},
|
|
52933
52827
|
{
|
|
52934
52828
|
"kind": "field",
|
|
52935
52829
|
"name": "handleLanguageSelect",
|
|
52936
52830
|
"privacy": "private",
|
|
52937
|
-
"description": "The select's own change and input events
|
|
52831
|
+
"description": "The select's own change and input events describe the language being browsed, not a translation being edited, so\nthey are stopped rather than allowed to reach a consumer listening for a child's value change."
|
|
52938
52832
|
},
|
|
52939
52833
|
{
|
|
52940
52834
|
"kind": "field",
|
|
@@ -52943,313 +52837,444 @@
|
|
|
52943
52837
|
},
|
|
52944
52838
|
{
|
|
52945
52839
|
"kind": "field",
|
|
52946
|
-
"name": "
|
|
52840
|
+
"name": "handleChildChange",
|
|
52947
52841
|
"privacy": "private",
|
|
52948
|
-
"description": "
|
|
52842
|
+
"description": "A child's edit changes which chips the select shows, and the translated count above it."
|
|
52949
52843
|
},
|
|
52950
52844
|
{
|
|
52951
52845
|
"kind": "field",
|
|
52952
|
-
"name": "
|
|
52953
|
-
"privacy": "private"
|
|
52954
|
-
|
|
52955
|
-
{
|
|
52956
|
-
"kind": "method",
|
|
52957
|
-
"name": "updateValue",
|
|
52958
|
-
"privacy": "private"
|
|
52846
|
+
"name": "handleFormReset",
|
|
52847
|
+
"privacy": "private",
|
|
52848
|
+
"description": "The children restore their own values on the form's reset event without announcing it, and the chips and the\ncount are read off them — so re-read once every listener on that event has run."
|
|
52959
52849
|
},
|
|
52960
52850
|
{
|
|
52961
52851
|
"kind": "field",
|
|
52962
|
-
"name": "
|
|
52963
|
-
"privacy": "private"
|
|
52852
|
+
"name": "hasSlotController",
|
|
52853
|
+
"privacy": "private",
|
|
52854
|
+
"readonly": true,
|
|
52855
|
+
"default": "new HasSlotController(this, '[default]', 'actions', 'footer')",
|
|
52856
|
+
"inheritedFrom": {
|
|
52857
|
+
"name": "ZnPanel",
|
|
52858
|
+
"module": "components/panel/panel.js"
|
|
52859
|
+
}
|
|
52964
52860
|
},
|
|
52965
52861
|
{
|
|
52966
52862
|
"kind": "field",
|
|
52967
|
-
"name": "
|
|
52968
|
-
"
|
|
52863
|
+
"name": "basis",
|
|
52864
|
+
"type": {
|
|
52865
|
+
"text": "number"
|
|
52866
|
+
},
|
|
52867
|
+
"attribute": "basis-px",
|
|
52868
|
+
"inheritedFrom": {
|
|
52869
|
+
"name": "ZnPanel",
|
|
52870
|
+
"module": "components/panel/panel.js"
|
|
52871
|
+
}
|
|
52969
52872
|
},
|
|
52970
52873
|
{
|
|
52971
|
-
"kind": "
|
|
52972
|
-
"name": "
|
|
52973
|
-
"
|
|
52974
|
-
|
|
52975
|
-
|
|
52976
|
-
|
|
52977
|
-
|
|
52978
|
-
|
|
52979
|
-
|
|
52980
|
-
|
|
52981
|
-
{
|
|
52982
|
-
"name": "placeholder",
|
|
52983
|
-
"type": {
|
|
52984
|
-
"text": "string"
|
|
52985
|
-
}
|
|
52986
|
-
},
|
|
52987
|
-
{
|
|
52988
|
-
"name": "isRTL",
|
|
52989
|
-
"type": {
|
|
52990
|
-
"text": "boolean"
|
|
52991
|
-
}
|
|
52992
|
-
}
|
|
52993
|
-
],
|
|
52994
|
-
"description": "The control the active language's translation is edited through."
|
|
52874
|
+
"kind": "field",
|
|
52875
|
+
"name": "caption",
|
|
52876
|
+
"type": {
|
|
52877
|
+
"text": "string"
|
|
52878
|
+
},
|
|
52879
|
+
"attribute": "caption",
|
|
52880
|
+
"inheritedFrom": {
|
|
52881
|
+
"name": "ZnPanel",
|
|
52882
|
+
"module": "components/panel/panel.js"
|
|
52883
|
+
}
|
|
52995
52884
|
},
|
|
52996
52885
|
{
|
|
52997
|
-
"kind": "
|
|
52998
|
-
"name": "
|
|
52999
|
-
"
|
|
53000
|
-
|
|
53001
|
-
"type": {
|
|
53002
|
-
"text": "boolean"
|
|
53003
|
-
}
|
|
52886
|
+
"kind": "field",
|
|
52887
|
+
"name": "icon",
|
|
52888
|
+
"type": {
|
|
52889
|
+
"text": "string"
|
|
53004
52890
|
},
|
|
53005
|
-
"
|
|
53006
|
-
|
|
53007
|
-
|
|
53008
|
-
|
|
53009
|
-
|
|
53010
|
-
}
|
|
53011
|
-
}
|
|
53012
|
-
],
|
|
53013
|
-
"description": "Arabic and Hebrew read right to left, so the field's `dir` follows the language being edited."
|
|
53014
|
-
}
|
|
53015
|
-
],
|
|
53016
|
-
"events": [
|
|
53017
|
-
{
|
|
53018
|
-
"description": "Emitted when a translation's value changes.",
|
|
53019
|
-
"name": "zn-change"
|
|
52891
|
+
"attribute": "icon",
|
|
52892
|
+
"inheritedFrom": {
|
|
52893
|
+
"name": "ZnPanel",
|
|
52894
|
+
"module": "components/panel/panel.js"
|
|
52895
|
+
}
|
|
53020
52896
|
},
|
|
53021
52897
|
{
|
|
53022
|
-
"
|
|
53023
|
-
"name": "
|
|
53024
|
-
}
|
|
53025
|
-
],
|
|
53026
|
-
"attributes": [
|
|
53027
|
-
{
|
|
53028
|
-
"name": "name",
|
|
52898
|
+
"kind": "field",
|
|
52899
|
+
"name": "tabbed",
|
|
53029
52900
|
"type": {
|
|
53030
|
-
"text": "
|
|
52901
|
+
"text": "boolean"
|
|
53031
52902
|
},
|
|
53032
|
-
"
|
|
53033
|
-
"
|
|
53034
|
-
|
|
52903
|
+
"attribute": "tabbed",
|
|
52904
|
+
"inheritedFrom": {
|
|
52905
|
+
"name": "ZnPanel",
|
|
52906
|
+
"module": "components/panel/panel.js"
|
|
52907
|
+
}
|
|
53035
52908
|
},
|
|
53036
52909
|
{
|
|
53037
|
-
"
|
|
52910
|
+
"kind": "field",
|
|
52911
|
+
"name": "headerBorderless",
|
|
53038
52912
|
"type": {
|
|
53039
|
-
"text": "
|
|
52913
|
+
"text": "boolean"
|
|
53040
52914
|
},
|
|
53041
|
-
"
|
|
53042
|
-
"
|
|
53043
|
-
|
|
52915
|
+
"attribute": "header-borderless",
|
|
52916
|
+
"inheritedFrom": {
|
|
52917
|
+
"name": "ZnPanel",
|
|
52918
|
+
"module": "components/panel/panel.js"
|
|
52919
|
+
}
|
|
53044
52920
|
},
|
|
53045
52921
|
{
|
|
53046
|
-
"
|
|
52922
|
+
"kind": "field",
|
|
52923
|
+
"name": "cosmic",
|
|
53047
52924
|
"type": {
|
|
53048
|
-
"text": "
|
|
52925
|
+
"text": "boolean"
|
|
53049
52926
|
},
|
|
53050
|
-
"
|
|
53051
|
-
"
|
|
53052
|
-
|
|
52927
|
+
"attribute": "cosmic",
|
|
52928
|
+
"inheritedFrom": {
|
|
52929
|
+
"name": "ZnPanel",
|
|
52930
|
+
"module": "components/panel/panel.js"
|
|
52931
|
+
}
|
|
53053
52932
|
},
|
|
53054
52933
|
{
|
|
53055
|
-
"
|
|
52934
|
+
"kind": "field",
|
|
52935
|
+
"name": "flush",
|
|
53056
52936
|
"type": {
|
|
53057
|
-
"text": "
|
|
52937
|
+
"text": "boolean"
|
|
53058
52938
|
},
|
|
53059
|
-
"
|
|
53060
|
-
"
|
|
53061
|
-
|
|
52939
|
+
"attribute": "flush",
|
|
52940
|
+
"inheritedFrom": {
|
|
52941
|
+
"name": "ZnPanel",
|
|
52942
|
+
"module": "components/panel/panel.js"
|
|
52943
|
+
}
|
|
53062
52944
|
},
|
|
53063
52945
|
{
|
|
53064
|
-
"
|
|
52946
|
+
"kind": "field",
|
|
52947
|
+
"name": "flushX",
|
|
53065
52948
|
"type": {
|
|
53066
52949
|
"text": "boolean"
|
|
53067
52950
|
},
|
|
53068
|
-
"
|
|
53069
|
-
"
|
|
53070
|
-
|
|
52951
|
+
"attribute": "flush-x",
|
|
52952
|
+
"inheritedFrom": {
|
|
52953
|
+
"name": "ZnPanel",
|
|
52954
|
+
"module": "components/panel/panel.js"
|
|
52955
|
+
}
|
|
53071
52956
|
},
|
|
53072
52957
|
{
|
|
53073
|
-
"
|
|
52958
|
+
"kind": "field",
|
|
52959
|
+
"name": "flushY",
|
|
53074
52960
|
"type": {
|
|
53075
52961
|
"text": "boolean"
|
|
53076
52962
|
},
|
|
53077
|
-
"
|
|
53078
|
-
"
|
|
53079
|
-
|
|
52963
|
+
"attribute": "flush-y",
|
|
52964
|
+
"inheritedFrom": {
|
|
52965
|
+
"name": "ZnPanel",
|
|
52966
|
+
"module": "components/panel/panel.js"
|
|
52967
|
+
}
|
|
53080
52968
|
},
|
|
53081
52969
|
{
|
|
53082
|
-
"
|
|
52970
|
+
"kind": "field",
|
|
52971
|
+
"name": "flushFooter",
|
|
53083
52972
|
"type": {
|
|
53084
52973
|
"text": "boolean"
|
|
53085
52974
|
},
|
|
53086
|
-
"
|
|
53087
|
-
"
|
|
53088
|
-
|
|
52975
|
+
"attribute": "flush-footer",
|
|
52976
|
+
"inheritedFrom": {
|
|
52977
|
+
"name": "ZnPanel",
|
|
52978
|
+
"module": "components/panel/panel.js"
|
|
52979
|
+
}
|
|
53089
52980
|
},
|
|
53090
52981
|
{
|
|
53091
|
-
"
|
|
52982
|
+
"kind": "field",
|
|
52983
|
+
"name": "transparent",
|
|
53092
52984
|
"type": {
|
|
53093
|
-
"text": "
|
|
52985
|
+
"text": "boolean"
|
|
53094
52986
|
},
|
|
53095
|
-
"
|
|
53096
|
-
"
|
|
53097
|
-
|
|
52987
|
+
"attribute": "transparent",
|
|
52988
|
+
"inheritedFrom": {
|
|
52989
|
+
"name": "ZnPanel",
|
|
52990
|
+
"module": "components/panel/panel.js"
|
|
52991
|
+
}
|
|
53098
52992
|
},
|
|
53099
52993
|
{
|
|
53100
|
-
"
|
|
52994
|
+
"kind": "field",
|
|
52995
|
+
"name": "shadow",
|
|
53101
52996
|
"type": {
|
|
53102
|
-
"text": "
|
|
52997
|
+
"text": "boolean"
|
|
53103
52998
|
},
|
|
53104
|
-
"
|
|
53105
|
-
"
|
|
52999
|
+
"attribute": "shadow",
|
|
53000
|
+
"inheritedFrom": {
|
|
53001
|
+
"name": "ZnPanel",
|
|
53002
|
+
"module": "components/panel/panel.js"
|
|
53003
|
+
}
|
|
53106
53004
|
},
|
|
53107
53005
|
{
|
|
53108
|
-
"
|
|
53006
|
+
"kind": "field",
|
|
53007
|
+
"name": "bodyEmpty",
|
|
53109
53008
|
"type": {
|
|
53110
53009
|
"text": "boolean"
|
|
53111
53010
|
},
|
|
53011
|
+
"privacy": "private",
|
|
53112
53012
|
"default": "false",
|
|
53113
|
-
"
|
|
53114
|
-
|
|
53013
|
+
"inheritedFrom": {
|
|
53014
|
+
"name": "ZnPanel",
|
|
53015
|
+
"module": "components/panel/panel.js"
|
|
53016
|
+
}
|
|
53115
53017
|
},
|
|
53116
53018
|
{
|
|
53117
|
-
"
|
|
53019
|
+
"kind": "field",
|
|
53020
|
+
"name": "resizeObserver",
|
|
53118
53021
|
"type": {
|
|
53119
|
-
"text": "
|
|
53022
|
+
"text": "ResizeObserver | null"
|
|
53120
53023
|
},
|
|
53121
|
-
"
|
|
53122
|
-
"
|
|
53123
|
-
"
|
|
53024
|
+
"privacy": "private",
|
|
53025
|
+
"default": "null",
|
|
53026
|
+
"inheritedFrom": {
|
|
53027
|
+
"name": "ZnPanel",
|
|
53028
|
+
"module": "components/panel/panel.js"
|
|
53029
|
+
}
|
|
53124
53030
|
},
|
|
53125
53031
|
{
|
|
53126
|
-
"
|
|
53032
|
+
"kind": "method",
|
|
53033
|
+
"name": "observeBodyContent",
|
|
53034
|
+
"privacy": "private",
|
|
53035
|
+
"inheritedFrom": {
|
|
53036
|
+
"name": "ZnPanel",
|
|
53037
|
+
"module": "components/panel/panel.js"
|
|
53038
|
+
}
|
|
53039
|
+
},
|
|
53040
|
+
{
|
|
53041
|
+
"kind": "method",
|
|
53042
|
+
"name": "measureBodyContent",
|
|
53043
|
+
"privacy": "private",
|
|
53044
|
+
"inheritedFrom": {
|
|
53045
|
+
"name": "ZnPanel",
|
|
53046
|
+
"module": "components/panel/panel.js"
|
|
53047
|
+
}
|
|
53048
|
+
}
|
|
53049
|
+
],
|
|
53050
|
+
"events": [
|
|
53051
|
+
{
|
|
53052
|
+
"description": "Emitted when the active language changes. Detail: `{ language: string }`.",
|
|
53053
|
+
"name": "zn-language-change"
|
|
53054
|
+
}
|
|
53055
|
+
],
|
|
53056
|
+
"attributes": [
|
|
53057
|
+
{
|
|
53058
|
+
"name": "label",
|
|
53127
53059
|
"type": {
|
|
53128
53060
|
"text": "string"
|
|
53129
53061
|
},
|
|
53130
53062
|
"default": "''",
|
|
53131
|
-
"description": "
|
|
53132
|
-
"fieldName": "
|
|
53063
|
+
"description": "The form group's label. An alias for the inherited `caption`, which wins where both are set.",
|
|
53064
|
+
"fieldName": "label"
|
|
53133
53065
|
},
|
|
53134
53066
|
{
|
|
53135
|
-
"name": "
|
|
53067
|
+
"name": "help-text",
|
|
53136
53068
|
"type": {
|
|
53137
53069
|
"text": "string"
|
|
53138
53070
|
},
|
|
53139
53071
|
"default": "''",
|
|
53140
|
-
"description": "
|
|
53141
|
-
"fieldName": "
|
|
53072
|
+
"description": "Sits under the label, above the language select, as help text does in any other form group.",
|
|
53073
|
+
"fieldName": "helpText"
|
|
53142
53074
|
},
|
|
53143
53075
|
{
|
|
53144
|
-
"name": "inline
|
|
53076
|
+
"name": "inline",
|
|
53145
53077
|
"type": {
|
|
53146
53078
|
"text": "boolean"
|
|
53147
53079
|
},
|
|
53148
53080
|
"default": "false",
|
|
53149
|
-
"description": "
|
|
53150
|
-
"fieldName": "
|
|
53081
|
+
"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.",
|
|
53082
|
+
"fieldName": "inline"
|
|
53151
53083
|
},
|
|
53152
53084
|
{
|
|
53153
|
-
"name": "
|
|
53085
|
+
"name": "language-label",
|
|
53154
53086
|
"type": {
|
|
53155
|
-
"text": "
|
|
53087
|
+
"text": "string"
|
|
53156
53088
|
},
|
|
53157
|
-
"default": "
|
|
53158
|
-
"description": "
|
|
53159
|
-
"fieldName": "
|
|
53089
|
+
"default": "'Edit Languages'",
|
|
53090
|
+
"description": "The select's accessible name. Not shown — the caption is what names the section on screen — but read out by a\nscreen reader, which has nothing else to go on once the visible label is gone.",
|
|
53091
|
+
"fieldName": "languageLabel"
|
|
53160
53092
|
},
|
|
53161
53093
|
{
|
|
53162
|
-
"name": "
|
|
53094
|
+
"name": "languages",
|
|
53163
53095
|
"type": {
|
|
53164
|
-
"text": "string"
|
|
53096
|
+
"text": "Record<string, string>"
|
|
53165
53097
|
},
|
|
53166
|
-
"default": "''",
|
|
53167
|
-
"description": "
|
|
53168
|
-
"fieldName": "
|
|
53098
|
+
"default": "{ 'en': 'EN' }",
|
|
53099
|
+
"description": "The languages on offer, as language code to display name — `{\"en\": \"English\", \"fr\": \"French\"}`. Writing the code\nas the name (`{\"en\": \"EN\"}`) is also accepted. `en` is the language every other one falls back to. Set on every\nchild, so they do not need their own copy.",
|
|
53100
|
+
"fieldName": "languages"
|
|
53169
53101
|
},
|
|
53170
53102
|
{
|
|
53171
|
-
"name": "
|
|
53103
|
+
"name": "basis-px",
|
|
53104
|
+
"type": {
|
|
53105
|
+
"text": "number"
|
|
53106
|
+
},
|
|
53107
|
+
"fieldName": "basis",
|
|
53108
|
+
"inheritedFrom": {
|
|
53109
|
+
"name": "ZnPanel",
|
|
53110
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53111
|
+
}
|
|
53112
|
+
},
|
|
53113
|
+
{
|
|
53114
|
+
"name": "caption",
|
|
53172
53115
|
"type": {
|
|
53173
53116
|
"text": "string"
|
|
53174
53117
|
},
|
|
53175
|
-
"
|
|
53176
|
-
"
|
|
53177
|
-
|
|
53118
|
+
"fieldName": "caption",
|
|
53119
|
+
"inheritedFrom": {
|
|
53120
|
+
"name": "ZnPanel",
|
|
53121
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53122
|
+
}
|
|
53178
53123
|
},
|
|
53179
53124
|
{
|
|
53180
|
-
"name": "
|
|
53125
|
+
"name": "icon",
|
|
53181
53126
|
"type": {
|
|
53182
53127
|
"text": "string"
|
|
53183
53128
|
},
|
|
53184
|
-
"
|
|
53185
|
-
"
|
|
53186
|
-
|
|
53129
|
+
"fieldName": "icon",
|
|
53130
|
+
"inheritedFrom": {
|
|
53131
|
+
"name": "ZnPanel",
|
|
53132
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53133
|
+
}
|
|
53187
53134
|
},
|
|
53188
53135
|
{
|
|
53189
|
-
"name": "
|
|
53136
|
+
"name": "tabbed",
|
|
53190
53137
|
"type": {
|
|
53191
53138
|
"text": "boolean"
|
|
53192
53139
|
},
|
|
53193
|
-
"
|
|
53194
|
-
"
|
|
53195
|
-
|
|
53140
|
+
"fieldName": "tabbed",
|
|
53141
|
+
"inheritedFrom": {
|
|
53142
|
+
"name": "ZnPanel",
|
|
53143
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53144
|
+
}
|
|
53196
53145
|
},
|
|
53197
53146
|
{
|
|
53198
|
-
"name": "
|
|
53147
|
+
"name": "header-borderless",
|
|
53199
53148
|
"type": {
|
|
53200
|
-
"text": "
|
|
53149
|
+
"text": "boolean"
|
|
53201
53150
|
},
|
|
53202
|
-
"
|
|
53203
|
-
"
|
|
53204
|
-
|
|
53151
|
+
"fieldName": "headerBorderless",
|
|
53152
|
+
"inheritedFrom": {
|
|
53153
|
+
"name": "ZnPanel",
|
|
53154
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53155
|
+
}
|
|
53205
53156
|
},
|
|
53206
53157
|
{
|
|
53207
|
-
"name": "
|
|
53158
|
+
"name": "cosmic",
|
|
53208
53159
|
"type": {
|
|
53209
53160
|
"text": "boolean"
|
|
53210
53161
|
},
|
|
53211
|
-
"
|
|
53212
|
-
"
|
|
53213
|
-
|
|
53162
|
+
"fieldName": "cosmic",
|
|
53163
|
+
"inheritedFrom": {
|
|
53164
|
+
"name": "ZnPanel",
|
|
53165
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53166
|
+
}
|
|
53214
53167
|
},
|
|
53215
53168
|
{
|
|
53216
|
-
"name": "
|
|
53169
|
+
"name": "flush",
|
|
53217
53170
|
"type": {
|
|
53218
|
-
"text": "
|
|
53171
|
+
"text": "boolean"
|
|
53219
53172
|
},
|
|
53220
|
-
"
|
|
53221
|
-
"
|
|
53222
|
-
|
|
53173
|
+
"fieldName": "flush",
|
|
53174
|
+
"inheritedFrom": {
|
|
53175
|
+
"name": "ZnPanel",
|
|
53176
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53177
|
+
}
|
|
53223
53178
|
},
|
|
53224
53179
|
{
|
|
53225
|
-
"name": "
|
|
53180
|
+
"name": "flush-x",
|
|
53226
53181
|
"type": {
|
|
53227
|
-
"text": "
|
|
53182
|
+
"text": "boolean"
|
|
53228
53183
|
},
|
|
53229
|
-
"
|
|
53230
|
-
"
|
|
53231
|
-
|
|
53184
|
+
"fieldName": "flushX",
|
|
53185
|
+
"inheritedFrom": {
|
|
53186
|
+
"name": "ZnPanel",
|
|
53187
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53188
|
+
}
|
|
53189
|
+
},
|
|
53190
|
+
{
|
|
53191
|
+
"name": "flush-y",
|
|
53192
|
+
"type": {
|
|
53193
|
+
"text": "boolean"
|
|
53194
|
+
},
|
|
53195
|
+
"fieldName": "flushY",
|
|
53196
|
+
"inheritedFrom": {
|
|
53197
|
+
"name": "ZnPanel",
|
|
53198
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53199
|
+
}
|
|
53200
|
+
},
|
|
53201
|
+
{
|
|
53202
|
+
"name": "flush-footer",
|
|
53203
|
+
"type": {
|
|
53204
|
+
"text": "boolean"
|
|
53205
|
+
},
|
|
53206
|
+
"fieldName": "flushFooter",
|
|
53207
|
+
"inheritedFrom": {
|
|
53208
|
+
"name": "ZnPanel",
|
|
53209
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53210
|
+
}
|
|
53211
|
+
},
|
|
53212
|
+
{
|
|
53213
|
+
"name": "transparent",
|
|
53214
|
+
"type": {
|
|
53215
|
+
"text": "boolean"
|
|
53216
|
+
},
|
|
53217
|
+
"fieldName": "transparent",
|
|
53218
|
+
"inheritedFrom": {
|
|
53219
|
+
"name": "ZnPanel",
|
|
53220
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53221
|
+
}
|
|
53222
|
+
},
|
|
53223
|
+
{
|
|
53224
|
+
"name": "shadow",
|
|
53225
|
+
"type": {
|
|
53226
|
+
"text": "boolean"
|
|
53227
|
+
},
|
|
53228
|
+
"fieldName": "shadow",
|
|
53229
|
+
"inheritedFrom": {
|
|
53230
|
+
"name": "ZnPanel",
|
|
53231
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53232
|
+
}
|
|
53232
53233
|
}
|
|
53233
53234
|
],
|
|
53234
53235
|
"superclass": {
|
|
53235
|
-
"name": "
|
|
53236
|
-
"module": "/src/
|
|
53236
|
+
"name": "ZnPanel",
|
|
53237
|
+
"module": "/src/components/panel/panel.component"
|
|
53237
53238
|
},
|
|
53238
|
-
"summary": "
|
|
53239
|
-
"tagNameWithoutPrefix": "
|
|
53240
|
-
"tagName": "zn-
|
|
53239
|
+
"summary": "Puts several zn-translations fields behind one language select, so a whole form's worth of copy is\ntranslated a language at a time.",
|
|
53240
|
+
"tagNameWithoutPrefix": "translation-group",
|
|
53241
|
+
"tagName": "zn-translation-group",
|
|
53241
53242
|
"customElement": true,
|
|
53242
|
-
"jsDoc": "/**\n * @summary
|
|
53243
|
-
"documentation": "https://zinc.style/components/
|
|
53243
|
+
"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 counts towards\n * the `n of m` beside the label like any other language.\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 */",
|
|
53244
|
+
"documentation": "https://zinc.style/components/translation-group",
|
|
53244
53245
|
"status": "experimental",
|
|
53245
53246
|
"since": "1.0",
|
|
53246
53247
|
"dependencies": [
|
|
53247
53248
|
"zn-chip",
|
|
53248
|
-
"zn-
|
|
53249
|
-
"zn-input",
|
|
53249
|
+
"zn-form-group",
|
|
53250
53250
|
"zn-option",
|
|
53251
|
-
"zn-select"
|
|
53252
|
-
|
|
53251
|
+
"zn-select"
|
|
53252
|
+
],
|
|
53253
|
+
"cssProperties": [
|
|
53254
|
+
{
|
|
53255
|
+
"description": "The flex-basis of the panel. Can be set using the basis-px attribute.",
|
|
53256
|
+
"name": "--zn-panel-basis",
|
|
53257
|
+
"inheritedFrom": {
|
|
53258
|
+
"name": "ZnPanel",
|
|
53259
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53260
|
+
}
|
|
53261
|
+
},
|
|
53262
|
+
{
|
|
53263
|
+
"description": "Padding around the header row. Defaults to `--zn-base-gap`.",
|
|
53264
|
+
"name": "--zn-panel-header-padding",
|
|
53265
|
+
"inheritedFrom": {
|
|
53266
|
+
"name": "ZnPanel",
|
|
53267
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53268
|
+
}
|
|
53269
|
+
},
|
|
53270
|
+
{
|
|
53271
|
+
"description": "Padding around the footer row.",
|
|
53272
|
+
"name": "--zn-panel-footer-padding",
|
|
53273
|
+
"inheritedFrom": {
|
|
53274
|
+
"name": "ZnPanel",
|
|
53275
|
+
"module": "src/components/panel/panel.component.ts"
|
|
53276
|
+
}
|
|
53277
|
+
}
|
|
53253
53278
|
]
|
|
53254
53279
|
}
|
|
53255
53280
|
],
|
|
@@ -53258,8 +53283,8 @@
|
|
|
53258
53283
|
"kind": "js",
|
|
53259
53284
|
"name": "default",
|
|
53260
53285
|
"declaration": {
|
|
53261
|
-
"name": "
|
|
53262
|
-
"module": "components/
|
|
53286
|
+
"name": "ZnTranslationGroup",
|
|
53287
|
+
"module": "components/translation-group/translation-group.js"
|
|
53263
53288
|
}
|
|
53264
53289
|
}
|
|
53265
53290
|
]
|
|
@@ -53560,7 +53585,7 @@
|
|
|
53560
53585
|
"package": {
|
|
53561
53586
|
"name": "@kubex/zinc",
|
|
53562
53587
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
53563
|
-
"version": "1.1.
|
|
53588
|
+
"version": "1.1.157",
|
|
53564
53589
|
"author": "",
|
|
53565
53590
|
"license": "MIT"
|
|
53566
53591
|
}
|