@kubex/zinc 1.1.157 → 1.1.158

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