@kubex/zinc 1.1.98 → 1.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -0
- package/CLAUDE.md +5 -0
- package/dist/custom-elements.json +2930 -2072
- package/dist/vscode.html-custom-data.json +198 -59
- package/dist/web-types.json +501 -207
- package/dist/zn.d.ts +203 -9
- package/dist/zn.min.js +343 -297
- package/docs/pages/components/background.md +143 -0
- package/docs/pages/components/checkbox-group.md +13 -1
- package/docs/pages/components/checkbox.md +59 -1
- package/docs/pages/components/radio-group.md +12 -0
- package/docs/pages/components/radio.md +188 -0
- package/docs/pages/components/remarkd-editor.md +22 -0
- package/docs/pages/components/scroll-container.md +14 -15
- package/package.json +1 -1
- package/src/components/background/background.component.ts +111 -0
- package/src/components/background/background.scss +236 -0
- package/src/components/background/background.test.ts +120 -0
- package/src/components/background/index.ts +12 -0
- package/src/components/checkbox/checkbox.component.ts +62 -6
- package/src/components/checkbox/checkbox.scss +1 -0
- package/src/components/checkbox/checkbox.test.ts +56 -0
- package/src/components/checkbox-group/checkbox-group.component.ts +15 -0
- package/src/components/checkbox-group/checkbox-group.scss +23 -5
- package/src/components/checkbox-group/checkbox-group.test.ts +15 -0
- package/src/components/confirm/confirm.component.ts +3 -3
- package/src/components/confirm/confirm.test.ts +15 -0
- package/src/components/dialog/dialog.component.ts +3 -2
- package/src/components/editor/editor.component.ts +7 -6
- package/src/components/header/header.scss +1 -1
- package/src/components/navbar/navbar.scss +11 -0
- package/src/components/radio/radio.component.ts +63 -7
- package/src/components/radio/radio.scss +1 -0
- package/src/components/radio/radio.test.ts +56 -0
- package/src/components/radio-group/radio-group.component.ts +16 -3
- package/src/components/radio-group/radio-group.scss +23 -4
- package/src/components/radio-group/radio-group.test.ts +15 -0
- package/src/components/remarkd-editor/remarkd-editor.component.ts +118 -5
- package/src/components/remarkd-editor/remarkd-editor.scss +8 -1
- package/src/components/remarkd-editor/remarkd-editor.test.ts +96 -0
- package/src/components/scroll-container/scroll-container.component.ts +15 -1
- package/src/components/scroll-container/scroll-container.scss +4 -2
- package/src/components/scroll-container/scroll-container.test.ts +13 -0
- package/src/components/slideout/slideout.component.ts +3 -2
- package/src/components/thumbnail-group/thumbnail-group.scss +0 -1
- package/src/components/tile/tile.scss +4 -2
- package/src/components/translation-group/translation-group.test.ts +22 -0
- package/src/components/translations/translations.component.ts +18 -3
- package/src/form-control.scss +3 -1
- package/src/internal/conditional.ts +2 -2
- package/src/internal/form.ts +2 -1
- package/src/internal/selection-card.ts +19 -0
- package/src/selection-card.scss +187 -0
- package/src/utilities/query.test.ts +18 -1
- package/src/utilities/query.ts +8 -0
- package/src/zinc.ts +1 -0
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.99",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,6 +15,28 @@
|
|
|
15
15
|
"events": [],
|
|
16
16
|
"js": { "properties": [], "events": [] }
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"name": "zn-action-bar",
|
|
20
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
21
|
+
"doc-url": "",
|
|
22
|
+
"attributes": [],
|
|
23
|
+
"slots": [
|
|
24
|
+
{ "name": "", "description": "The default slot." },
|
|
25
|
+
{ "name": "example", "description": "An example slot." }
|
|
26
|
+
],
|
|
27
|
+
"events": [
|
|
28
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
29
|
+
],
|
|
30
|
+
"js": {
|
|
31
|
+
"properties": [],
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"name": "zn-event-name",
|
|
35
|
+
"description": "Emitted as an example."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
18
40
|
{
|
|
19
41
|
"name": "zn-alert",
|
|
20
42
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -83,28 +105,6 @@
|
|
|
83
105
|
]
|
|
84
106
|
}
|
|
85
107
|
},
|
|
86
|
-
{
|
|
87
|
-
"name": "zn-action-bar",
|
|
88
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
89
|
-
"doc-url": "",
|
|
90
|
-
"attributes": [],
|
|
91
|
-
"slots": [
|
|
92
|
-
{ "name": "", "description": "The default slot." },
|
|
93
|
-
{ "name": "example", "description": "An example slot." }
|
|
94
|
-
],
|
|
95
|
-
"events": [
|
|
96
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
97
|
-
],
|
|
98
|
-
"js": {
|
|
99
|
-
"properties": [],
|
|
100
|
-
"events": [
|
|
101
|
-
{
|
|
102
|
-
"name": "zn-event-name",
|
|
103
|
-
"description": "Emitted as an example."
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
108
|
{
|
|
109
109
|
"name": "zn-animated-button",
|
|
110
110
|
"description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
|
|
@@ -250,6 +250,108 @@
|
|
|
250
250
|
"events": []
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": "zn-background",
|
|
255
|
+
"description": "Composes a colour, decorative image, image strength, optional motion and contrast overlay behind slotted content.\n---\n\n\n### **Slots:**\n - _default_ - Content displayed above the background layers.\n\n### **CSS Properties:**\n - **--zn-background-color** - Fallback colour when the `color` attribute is not set. _(default: undefined)_\n- **--zn-background-image-position** - Position of the background image. Defaults to `center`. _(default: undefined)_\n- **--zn-background-overlay-angle** - Direction of the overlay gradient. Defaults to `110deg`. _(default: undefined)_\n- **--zn-background-floating-icon-color** - Colour of the floating icons. Defaults to `currentColor`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's full-size background canvas.\n- **image** - The decorative background image.\n- **overlay** - The contrast overlay between the image and content.\n- **floating-icons** - The non-interactive layer containing the floating icons.\n- **floating-icon** - Each floating `zn-icon`.\n- **content** - The wrapper around the default slot.",
|
|
256
|
+
"doc-url": "",
|
|
257
|
+
"attributes": [
|
|
258
|
+
{
|
|
259
|
+
"name": "image",
|
|
260
|
+
"description": "URL of the decorative background image.",
|
|
261
|
+
"value": { "type": "string", "default": "''" }
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "color",
|
|
265
|
+
"description": "CSS colour painted beneath the image.",
|
|
266
|
+
"value": { "type": "string", "default": "''" }
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "image-strength",
|
|
270
|
+
"description": "Visibility of the image: `soft` (30%), `medium` (62%) or `full` (100%).",
|
|
271
|
+
"value": {
|
|
272
|
+
"type": "BackgroundImageStrength",
|
|
273
|
+
"default": "'full'"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "motion",
|
|
278
|
+
"description": "Subtle animation applied to the image. Motion stops when reduced motion is requested.",
|
|
279
|
+
"value": { "type": "BackgroundMotion", "default": "'none'" }
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "overlay",
|
|
283
|
+
"description": "Strength of the contrast gradient above the image.",
|
|
284
|
+
"value": { "type": "BackgroundOverlay", "default": "'soft'" }
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "overlay-tone",
|
|
288
|
+
"description": "Whether the overlay uses a light or dark contrast treatment.",
|
|
289
|
+
"value": { "type": "BackgroundOverlayTone", "default": "'light'" }
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "floating-icons",
|
|
293
|
+
"description": "Comma-separated Zinc icon names placed as ambient decoration. At most eight are rendered.",
|
|
294
|
+
"value": { "type": "string", "default": "''" }
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "paused",
|
|
298
|
+
"description": "Pauses background motion without changing the selected motion treatment.",
|
|
299
|
+
"value": { "type": "boolean", "default": "false" }
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"slots": [
|
|
303
|
+
{
|
|
304
|
+
"name": "",
|
|
305
|
+
"description": "Content displayed above the background layers."
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"events": [],
|
|
309
|
+
"js": {
|
|
310
|
+
"properties": [
|
|
311
|
+
{
|
|
312
|
+
"name": "image",
|
|
313
|
+
"description": "URL of the decorative background image.",
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "color",
|
|
318
|
+
"description": "CSS colour painted beneath the image.",
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "imageStrength",
|
|
323
|
+
"description": "Visibility of the image: `soft` (30%), `medium` (62%) or `full` (100%).",
|
|
324
|
+
"type": "BackgroundImageStrength"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "motion",
|
|
328
|
+
"description": "Subtle animation applied to the image. Motion stops when reduced motion is requested.",
|
|
329
|
+
"type": "BackgroundMotion"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "overlay",
|
|
333
|
+
"description": "Strength of the contrast gradient above the image.",
|
|
334
|
+
"type": "BackgroundOverlay"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "overlayTone",
|
|
338
|
+
"description": "Whether the overlay uses a light or dark contrast treatment.",
|
|
339
|
+
"type": "BackgroundOverlayTone"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "floatingIcons",
|
|
343
|
+
"description": "Comma-separated Zinc icon names placed as ambient decoration. At most eight are rendered.",
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "paused",
|
|
348
|
+
"description": "Pauses background motion without changing the selected motion treatment.",
|
|
349
|
+
"type": "boolean"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"events": []
|
|
353
|
+
}
|
|
354
|
+
},
|
|
253
355
|
{
|
|
254
356
|
"name": "zn-bulk-actions",
|
|
255
357
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -1190,7 +1292,7 @@
|
|
|
1190
1292
|
},
|
|
1191
1293
|
{
|
|
1192
1294
|
"name": "zn-checkbox",
|
|
1193
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
1295
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the checkbox loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the checkbox gains focus.\n- **zn-input** - Emitted when the checkbox receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The checkbox's label.\n- **image** - Replaces the built-in image used by contained checkboxes.\n- **description** - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.\n\n### **CSS Properties:**\n - **--zn-selection-card-image-width** - Width of the built-in card image. _(default: undefined)_\n- **--zn-selection-card-image-height** - Height of the built-in card image. _(default: undefined)_\n- **--zn-selection-card-min-height** - Minimum height of a contained checkbox with an image. _(default: undefined)_\n- **--zn-selection-card-content-min-width** - Width the card text keeps before it wraps below the image. _(default: undefined)_\n- **--zn-selection-card-title-font-size** - Font size of a selection card title. _(default: undefined)_\n- **--zn-selection-card-padding** - Equal inset around the contents of a selection card. _(default: undefined)_\n- **--zn-selection-card-gap** - Space between the image, title, and indicator gutter. _(default: undefined)_\n- **--zn-selection-card-control-offset** - Distance between a positioned control and the card edge. _(default: undefined)_\n- **--zn-selection-card-border-radius** - Corner radius of a contained container. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the checkbox's checked state.\n- **control--checked** - Matches the control part when the checkbox is checked.\n- **control--indeterminate** - Matches the control part when the checkbox is indeterminate.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **unchecked-icon** - The unchecked icon, an `<zn-icon>` element.\n- **indeterminate-icon** - The indeterminate icon, an `<zn-icon>` element.\n- **image-container** - The wrapper around the built-in image or image slot.\n- **image** - The built-in image.\n- **card-title** - The title inside a selection card.\n- **label** - The container that wraps the checkbox's label.\n- **description** - The container that wraps the checkbox's description.\n- **selected-content** - The container that wraps optional content that appears when a checkbox is checked.",
|
|
1194
1296
|
"doc-url": "",
|
|
1195
1297
|
"attributes": [
|
|
1196
1298
|
{ "name": "title", "value": { "type": "string", "default": "''" } },
|
|
@@ -1204,6 +1306,11 @@
|
|
|
1204
1306
|
"description": "The current value of the checkbox, submitted as a name/value pair with form data.",
|
|
1205
1307
|
"value": { "type": "string" }
|
|
1206
1308
|
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "card-title",
|
|
1311
|
+
"description": "Title rendered inside the card. The default slot takes precedence when provided.",
|
|
1312
|
+
"value": { "type": "string", "default": "''" }
|
|
1313
|
+
},
|
|
1207
1314
|
{
|
|
1208
1315
|
"name": "unchecked-value",
|
|
1209
1316
|
"description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
|
|
@@ -1237,6 +1344,37 @@
|
|
|
1237
1344
|
"description": "Draws a container around the checkbox.",
|
|
1238
1345
|
"value": { "type": "boolean", "default": "false" }
|
|
1239
1346
|
},
|
|
1347
|
+
{
|
|
1348
|
+
"name": "square",
|
|
1349
|
+
"description": "Squares off the corners of the container drawn by `contained`, which is rounded by default.",
|
|
1350
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"name": "src",
|
|
1354
|
+
"description": "URL for the image shown in a contained checkbox.",
|
|
1355
|
+
"value": { "type": "string", "default": "''" }
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"name": "image-alt",
|
|
1359
|
+
"description": "Accessible text for the built-in image. Leave empty when the image is decorative.",
|
|
1360
|
+
"value": { "type": "string", "default": "''" }
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "image-position",
|
|
1364
|
+
"description": "Places the image above, beside, or below the checkbox's text. Requires `contained`.",
|
|
1365
|
+
"value": {
|
|
1366
|
+
"type": "SelectionCardImagePosition",
|
|
1367
|
+
"default": "'left'"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "control-position",
|
|
1372
|
+
"description": "Places the checkbox indicator within a contained card. Use `none` to hide the indicator so the card itself\nshows the selected state. Requires `contained`.",
|
|
1373
|
+
"value": {
|
|
1374
|
+
"type": "SelectionCardControlPosition",
|
|
1375
|
+
"default": "'start'"
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1240
1378
|
{
|
|
1241
1379
|
"name": "borderless",
|
|
1242
1380
|
"description": "Removes a container around the checkbox.",
|
|
@@ -1297,6 +1435,10 @@
|
|
|
1297
1435
|
],
|
|
1298
1436
|
"slots": [
|
|
1299
1437
|
{ "name": "", "description": "The checkbox's label." },
|
|
1438
|
+
{
|
|
1439
|
+
"name": "image",
|
|
1440
|
+
"description": "Replaces the built-in image used by contained checkboxes."
|
|
1441
|
+
},
|
|
1300
1442
|
{
|
|
1301
1443
|
"name": "description",
|
|
1302
1444
|
"description": "A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute."
|
|
@@ -1342,6 +1484,11 @@
|
|
|
1342
1484
|
"description": "The current value of the checkbox, submitted as a name/value pair with form data.",
|
|
1343
1485
|
"type": "string"
|
|
1344
1486
|
},
|
|
1487
|
+
{
|
|
1488
|
+
"name": "cardTitle",
|
|
1489
|
+
"description": "Title rendered inside the card. The default slot takes precedence when provided.",
|
|
1490
|
+
"type": "string"
|
|
1491
|
+
},
|
|
1345
1492
|
{
|
|
1346
1493
|
"name": "uncheckedValue",
|
|
1347
1494
|
"description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
|
|
@@ -1372,6 +1519,31 @@
|
|
|
1372
1519
|
"description": "Draws a container around the checkbox.",
|
|
1373
1520
|
"type": "boolean"
|
|
1374
1521
|
},
|
|
1522
|
+
{
|
|
1523
|
+
"name": "square",
|
|
1524
|
+
"description": "Squares off the corners of the container drawn by `contained`, which is rounded by default.",
|
|
1525
|
+
"type": "boolean"
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
"name": "src",
|
|
1529
|
+
"description": "URL for the image shown in a contained checkbox.",
|
|
1530
|
+
"type": "string"
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
"name": "imageAlt",
|
|
1534
|
+
"description": "Accessible text for the built-in image. Leave empty when the image is decorative.",
|
|
1535
|
+
"type": "string"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"name": "imagePosition",
|
|
1539
|
+
"description": "Places the image above, beside, or below the checkbox's text. Requires `contained`.",
|
|
1540
|
+
"type": "SelectionCardImagePosition"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"name": "controlPosition",
|
|
1544
|
+
"description": "Places the checkbox indicator within a contained card. Use `none` to hide the indicator so the card itself\nshows the selected state. Requires `contained`.",
|
|
1545
|
+
"type": "SelectionCardControlPosition"
|
|
1546
|
+
},
|
|
1375
1547
|
{
|
|
1376
1548
|
"name": "borderless",
|
|
1377
1549
|
"description": "Removes a container around the checkbox.",
|
|
@@ -1470,7 +1642,7 @@
|
|
|
1470
1642
|
},
|
|
1471
1643
|
{
|
|
1472
1644
|
"name": "zn-checkbox-group",
|
|
1473
|
-
"description": "Shotrt summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the checkbox group's selected value changes.\n- **zn-input** - Emitted when the checkbox group receives user input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<zn-checkbox>` elements are placed.\n- **label** - The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n- **help-text** - Text that describes how to use the checkbox group. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.",
|
|
1645
|
+
"description": "Shotrt summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the checkbox group's selected value changes.\n- **zn-input** - Emitted when the checkbox group receives user input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where `<zn-checkbox>` elements are placed.\n- **label** - The checkbox group's label. Required for proper accessibility. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n- **help-text** - Text that describes how to use the checkbox group. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-checkbox-group-column-width** - Minimum column width used by the horizontal contained grid, or the card basis when `wrap` is set. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.",
|
|
1474
1646
|
"doc-url": "",
|
|
1475
1647
|
"attributes": [
|
|
1476
1648
|
{
|
|
@@ -1516,6 +1688,16 @@
|
|
|
1516
1688
|
"description": "The checkbox group's style. Changes the group's style from the default (plain) style to the 'contained' style. This style will be applied to all child checkboxes.",
|
|
1517
1689
|
"value": { "type": "boolean", "default": "false" }
|
|
1518
1690
|
},
|
|
1691
|
+
{
|
|
1692
|
+
"name": "square",
|
|
1693
|
+
"description": "Squares off the corners of every contained checkbox in the group, which are rounded by default.",
|
|
1694
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"name": "wrap",
|
|
1698
|
+
"description": "Lays horizontal contained checkboxes out as a wrapping row instead of an equal-width grid, so each one sizes from\n`--zn-checkbox-group-column-width` (set it to `auto` to size from content) and wraps onto a new line when needed.",
|
|
1699
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1700
|
+
},
|
|
1519
1701
|
{
|
|
1520
1702
|
"name": "form",
|
|
1521
1703
|
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
@@ -1603,6 +1785,16 @@
|
|
|
1603
1785
|
"description": "The checkbox group's style. Changes the group's style from the default (plain) style to the 'contained' style. This style will be applied to all child checkboxes.",
|
|
1604
1786
|
"type": "boolean"
|
|
1605
1787
|
},
|
|
1788
|
+
{
|
|
1789
|
+
"name": "square",
|
|
1790
|
+
"description": "Squares off the corners of every contained checkbox in the group, which are rounded by default.",
|
|
1791
|
+
"type": "boolean"
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"name": "wrap",
|
|
1795
|
+
"description": "Lays horizontal contained checkboxes out as a wrapping row instead of an equal-width grid, so each one sizes from\n`--zn-checkbox-group-column-width` (set it to `auto` to size from content) and wraps onto a new line when needed.",
|
|
1796
|
+
"type": "boolean"
|
|
1797
|
+
},
|
|
1606
1798
|
{
|
|
1607
1799
|
"name": "form",
|
|
1608
1800
|
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
|
|
@@ -6403,209 +6595,67 @@
|
|
|
6403
6595
|
}
|
|
6404
6596
|
},
|
|
6405
6597
|
{
|
|
6406
|
-
"name": "zn-page",
|
|
6407
|
-
"description": "
|
|
6598
|
+
"name": "zn-page-builder",
|
|
6599
|
+
"description": "A config-driven page composer: a palette of predefined section types, a linear\ncanvas of section cards, and an inspector for editing each section's content.\n---\n\n\n### **Events:**\n - **zn-page-change** - Emitted whenever the page state changes. `event.detail.state` is the new PageState.\n- **zn-page-selection-change** - Emitted when the selected section changes. `event.detail.sectionId`.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **addSection(type: _string_, index: _number_): _PageSection | null_** - Adds a section of a registered type at `index` (default: end). Returns null for unknown types.\n- **addSectionToSlot(type: _string_, containerId: _string_, slotIndex: _number_): _PageSection | null_** - Adds a new section of a registered type into a container's slot. Returns null if not allowed.\n\n### **Slots:**\n - **config** - `<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow.\n- **header-left** - Actions shown on the left of the header bar.\n- **header-right** - Actions shown on the right of the header bar.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **palette** - The left palette panel.\n- **canvas** - The centre section-card canvas.\n- **inspector** - The right panel while a section is selected.\n- **inspector-header** - The inspector's fixed header (icon, section name, type, close).\n- **inspector-body** - The inspector's scrolling form area.",
|
|
6408
6600
|
"doc-url": "",
|
|
6409
6601
|
"attributes": [
|
|
6410
|
-
{ "name": "caption", "value": { "type": "string" } },
|
|
6411
|
-
{ "name": "entity-id", "value": { "type": "string" } },
|
|
6412
|
-
{ "name": "entity-id-show", "value": { "type": "boolean" } },
|
|
6413
|
-
{ "name": "full-location", "value": { "type": "string" } },
|
|
6414
|
-
{
|
|
6415
|
-
"name": "modal",
|
|
6416
|
-
"value": { "type": "boolean", "default": "false" }
|
|
6417
|
-
},
|
|
6418
|
-
{
|
|
6419
|
-
"name": "nested",
|
|
6420
|
-
"value": { "type": "boolean", "default": "false" }
|
|
6421
|
-
},
|
|
6422
|
-
{
|
|
6423
|
-
"name": "primary",
|
|
6424
|
-
"value": { "type": "boolean", "default": "false" }
|
|
6425
|
-
},
|
|
6426
|
-
{ "name": "previous-path", "value": { "type": "string" } },
|
|
6427
|
-
{ "name": "previous-target", "value": { "type": "string" } },
|
|
6428
|
-
{ "name": "summary", "value": { "type": "string" } },
|
|
6429
|
-
{ "name": "master-id", "value": { "type": "string" } },
|
|
6430
6602
|
{
|
|
6431
|
-
"name": "
|
|
6603
|
+
"name": "name",
|
|
6604
|
+
"description": "The name of the control, submitted as a name/value pair with form data.",
|
|
6432
6605
|
"value": { "type": "string", "default": "''" }
|
|
6433
6606
|
},
|
|
6434
6607
|
{
|
|
6435
|
-
"name": "
|
|
6608
|
+
"name": "form",
|
|
6609
|
+
"description": "Associates the control with a form by id. The form must be in the same document or shadow root.",
|
|
6436
6610
|
"value": { "type": "string", "default": "''" }
|
|
6437
6611
|
},
|
|
6438
|
-
{ "name": "split", "value": { "type": "number" } },
|
|
6439
|
-
{
|
|
6440
|
-
"name": "split-min",
|
|
6441
|
-
"value": { "type": "number", "default": "60" }
|
|
6442
|
-
},
|
|
6443
|
-
{ "name": "split-min-secondary", "value": { "type": "number" } },
|
|
6444
|
-
{ "name": "split-max", "value": { "type": "number" } },
|
|
6445
|
-
{
|
|
6446
|
-
"name": "primary-caption",
|
|
6447
|
-
"value": { "type": "string", "default": "'Navigation'" }
|
|
6448
|
-
},
|
|
6449
6612
|
{
|
|
6450
|
-
"name": "
|
|
6451
|
-
"
|
|
6613
|
+
"name": "config",
|
|
6614
|
+
"description": "The page state as a JSON string. Parsed on set; invalid JSON is ignored with a warning.",
|
|
6615
|
+
"value": { "type": "string", "default": "''" }
|
|
6452
6616
|
},
|
|
6453
6617
|
{
|
|
6454
|
-
"name": "
|
|
6455
|
-
"value": { "type": "
|
|
6618
|
+
"name": "heading",
|
|
6619
|
+
"value": { "type": "string", "default": "''" }
|
|
6456
6620
|
},
|
|
6457
6621
|
{
|
|
6458
|
-
"name": "
|
|
6459
|
-
"value": { "type": "
|
|
6622
|
+
"name": "subheading",
|
|
6623
|
+
"value": { "type": "string", "default": "''" }
|
|
6460
6624
|
},
|
|
6461
|
-
{ "name": "local-storage", "value": { "type": "boolean" } },
|
|
6462
|
-
{ "name": "store-key", "value": { "type": "string" } },
|
|
6463
6625
|
{
|
|
6464
|
-
"name": "
|
|
6465
|
-
"
|
|
6626
|
+
"name": "required-first",
|
|
6627
|
+
"description": "Section type key that must lead the page. The builder hoists an existing section of\nthat type to the top, or inserts an empty one, and pins it there: it can't be\nremoved, reordered or dragged into a slot, and nothing can be dropped above it.\nIts content stays fully editable in the inspector.",
|
|
6628
|
+
"value": { "type": "string", "default": "''" }
|
|
6466
6629
|
},
|
|
6467
6630
|
{
|
|
6468
|
-
"name": "
|
|
6631
|
+
"name": "palette-collapsed",
|
|
6632
|
+
"description": "Collapses the left palette. Auto-set when the builder becomes narrow.",
|
|
6469
6633
|
"value": { "type": "boolean", "default": "false" }
|
|
6470
6634
|
},
|
|
6471
6635
|
{
|
|
6472
|
-
"name": "
|
|
6473
|
-
"
|
|
6474
|
-
},
|
|
6475
|
-
{
|
|
6476
|
-
"name": "full-width",
|
|
6636
|
+
"name": "inspector-collapsed",
|
|
6637
|
+
"description": "Collapses the inspector while a section is selected.",
|
|
6477
6638
|
"value": { "type": "boolean", "default": "false" }
|
|
6478
6639
|
},
|
|
6479
6640
|
{
|
|
6480
|
-
"name": "
|
|
6481
|
-
"
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
{ "name": "description", "value": { "type": "string" } }
|
|
6641
|
+
"name": "auto-save",
|
|
6642
|
+
"description": "Auto-save the page to localStorage (1-day TTL). Omit to disable. A bare\n`auto-save` saves every 5 minutes; a numeric value sets the interval in\nminutes (`auto-save=\"2\"`). Restore with `restoreAutoSave()`.",
|
|
6643
|
+
"value": { "type": "number | null", "default": "null" }
|
|
6644
|
+
}
|
|
6485
6645
|
],
|
|
6486
6646
|
"slots": [
|
|
6487
6647
|
{
|
|
6488
|
-
"name": "",
|
|
6489
|
-
"description": "
|
|
6648
|
+
"name": "config",
|
|
6649
|
+
"description": "`<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow."
|
|
6490
6650
|
},
|
|
6491
6651
|
{
|
|
6492
|
-
"name": "
|
|
6493
|
-
"description": "
|
|
6652
|
+
"name": "header-left",
|
|
6653
|
+
"description": "Actions shown on the left of the header bar."
|
|
6494
6654
|
},
|
|
6495
6655
|
{
|
|
6496
|
-
"name": "
|
|
6497
|
-
"description": "
|
|
6498
|
-
}
|
|
6499
|
-
{ "name": "example", "description": "An example slot." }
|
|
6500
|
-
],
|
|
6501
|
-
"events": [
|
|
6502
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
6503
|
-
],
|
|
6504
|
-
"js": {
|
|
6505
|
-
"properties": [
|
|
6506
|
-
{ "name": "caption", "type": "string" },
|
|
6507
|
-
{ "name": "entityId", "type": "string" },
|
|
6508
|
-
{ "name": "entityIdShow", "type": "boolean" },
|
|
6509
|
-
{ "name": "fullLocation", "type": "string" },
|
|
6510
|
-
{ "name": "modal", "type": "boolean" },
|
|
6511
|
-
{ "name": "nested", "type": "boolean" },
|
|
6512
|
-
{ "name": "primary", "type": "boolean" },
|
|
6513
|
-
{ "name": "previousPath", "type": "string" },
|
|
6514
|
-
{ "name": "previousTarget", "type": "string" },
|
|
6515
|
-
{ "name": "summary", "type": "string" },
|
|
6516
|
-
{ "name": "_registerTabs" },
|
|
6517
|
-
{ "name": "masterId", "type": "string" },
|
|
6518
|
-
{ "name": "defaultUri", "type": "string" },
|
|
6519
|
-
{ "name": "_current", "type": "string" },
|
|
6520
|
-
{ "name": "_split", "type": "number" },
|
|
6521
|
-
{ "name": "_splitMin", "type": "number" },
|
|
6522
|
-
{ "name": "_splitMinSecondary", "type": "number" },
|
|
6523
|
-
{ "name": "_splitMax", "type": "number" },
|
|
6524
|
-
{ "name": "primaryCaption", "type": "string" },
|
|
6525
|
-
{ "name": "secondaryCaption", "type": "string" },
|
|
6526
|
-
{ "name": "noPrefetch", "type": "boolean" },
|
|
6527
|
-
{ "name": "noCache", "type": "boolean" },
|
|
6528
|
-
{ "name": "localStorage", "type": "boolean" },
|
|
6529
|
-
{ "name": "storeKey", "type": "string" },
|
|
6530
|
-
{ "name": "storeTtl", "type": "number" },
|
|
6531
|
-
{ "name": "padded", "type": "boolean" },
|
|
6532
|
-
{ "name": "fetchStyle", "type": "string" },
|
|
6533
|
-
{ "name": "fullWidth", "type": "boolean" },
|
|
6534
|
-
{ "name": "paddedRight", "type": "boolean" },
|
|
6535
|
-
{ "name": "monitor", "type": "string" },
|
|
6536
|
-
{ "name": "description", "type": "string" },
|
|
6537
|
-
{ "name": "reRegisterTabs" }
|
|
6538
|
-
],
|
|
6539
|
-
"events": [
|
|
6540
|
-
{
|
|
6541
|
-
"name": "zn-event-name",
|
|
6542
|
-
"description": "Emitted as an example."
|
|
6543
|
-
}
|
|
6544
|
-
]
|
|
6545
|
-
}
|
|
6546
|
-
},
|
|
6547
|
-
{
|
|
6548
|
-
"name": "zn-page-builder",
|
|
6549
|
-
"description": "A config-driven page composer: a palette of predefined section types, a linear\ncanvas of section cards, and an inspector for editing each section's content.\n---\n\n\n### **Events:**\n - **zn-page-change** - Emitted whenever the page state changes. `event.detail.state` is the new PageState.\n- **zn-page-selection-change** - Emitted when the selected section changes. `event.detail.sectionId`.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **addSection(type: _string_, index: _number_): _PageSection | null_** - Adds a section of a registered type at `index` (default: end). Returns null for unknown types.\n- **addSectionToSlot(type: _string_, containerId: _string_, slotIndex: _number_): _PageSection | null_** - Adds a new section of a registered type into a container's slot. Returns null if not allowed.\n\n### **Slots:**\n - **config** - `<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow.\n- **header-left** - Actions shown on the left of the header bar.\n- **header-right** - Actions shown on the right of the header bar.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **palette** - The left palette panel.\n- **canvas** - The centre section-card canvas.\n- **inspector** - The right panel while a section is selected.\n- **inspector-header** - The inspector's fixed header (icon, section name, type, close).\n- **inspector-body** - The inspector's scrolling form area.",
|
|
6550
|
-
"doc-url": "",
|
|
6551
|
-
"attributes": [
|
|
6552
|
-
{
|
|
6553
|
-
"name": "name",
|
|
6554
|
-
"description": "The name of the control, submitted as a name/value pair with form data.",
|
|
6555
|
-
"value": { "type": "string", "default": "''" }
|
|
6556
|
-
},
|
|
6557
|
-
{
|
|
6558
|
-
"name": "form",
|
|
6559
|
-
"description": "Associates the control with a form by id. The form must be in the same document or shadow root.",
|
|
6560
|
-
"value": { "type": "string", "default": "''" }
|
|
6561
|
-
},
|
|
6562
|
-
{
|
|
6563
|
-
"name": "config",
|
|
6564
|
-
"description": "The page state as a JSON string. Parsed on set; invalid JSON is ignored with a warning.",
|
|
6565
|
-
"value": { "type": "string", "default": "''" }
|
|
6566
|
-
},
|
|
6567
|
-
{
|
|
6568
|
-
"name": "heading",
|
|
6569
|
-
"value": { "type": "string", "default": "''" }
|
|
6570
|
-
},
|
|
6571
|
-
{
|
|
6572
|
-
"name": "subheading",
|
|
6573
|
-
"value": { "type": "string", "default": "''" }
|
|
6574
|
-
},
|
|
6575
|
-
{
|
|
6576
|
-
"name": "required-first",
|
|
6577
|
-
"description": "Section type key that must lead the page. The builder hoists an existing section of\nthat type to the top, or inserts an empty one, and pins it there: it can't be\nremoved, reordered or dragged into a slot, and nothing can be dropped above it.\nIts content stays fully editable in the inspector.",
|
|
6578
|
-
"value": { "type": "string", "default": "''" }
|
|
6579
|
-
},
|
|
6580
|
-
{
|
|
6581
|
-
"name": "palette-collapsed",
|
|
6582
|
-
"description": "Collapses the left palette. Auto-set when the builder becomes narrow.",
|
|
6583
|
-
"value": { "type": "boolean", "default": "false" }
|
|
6584
|
-
},
|
|
6585
|
-
{
|
|
6586
|
-
"name": "inspector-collapsed",
|
|
6587
|
-
"description": "Collapses the inspector while a section is selected.",
|
|
6588
|
-
"value": { "type": "boolean", "default": "false" }
|
|
6589
|
-
},
|
|
6590
|
-
{
|
|
6591
|
-
"name": "auto-save",
|
|
6592
|
-
"description": "Auto-save the page to localStorage (1-day TTL). Omit to disable. A bare\n`auto-save` saves every 5 minutes; a numeric value sets the interval in\nminutes (`auto-save=\"2\"`). Restore with `restoreAutoSave()`.",
|
|
6593
|
-
"value": { "type": "number | null", "default": "null" }
|
|
6594
|
-
}
|
|
6595
|
-
],
|
|
6596
|
-
"slots": [
|
|
6597
|
-
{
|
|
6598
|
-
"name": "config",
|
|
6599
|
-
"description": "`<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow."
|
|
6600
|
-
},
|
|
6601
|
-
{
|
|
6602
|
-
"name": "header-left",
|
|
6603
|
-
"description": "Actions shown on the left of the header bar."
|
|
6604
|
-
},
|
|
6605
|
-
{
|
|
6606
|
-
"name": "header-right",
|
|
6607
|
-
"description": "Actions shown on the right of the header bar."
|
|
6608
|
-
}
|
|
6656
|
+
"name": "header-right",
|
|
6657
|
+
"description": "Actions shown on the right of the header bar."
|
|
6658
|
+
}
|
|
6609
6659
|
],
|
|
6610
6660
|
"events": [
|
|
6611
6661
|
{
|
|
@@ -6704,6 +6754,148 @@
|
|
|
6704
6754
|
]
|
|
6705
6755
|
}
|
|
6706
6756
|
},
|
|
6757
|
+
{
|
|
6758
|
+
"name": "zn-page",
|
|
6759
|
+
"description": "Combines a page header with tab navigation and tab panels.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\n\n### **Slots:**\n - _default_ - Page content. Use zn-tab for named tabs and header-action/header-actions for header actions.\n- **description** - Rich subtitle/description content. Falls back to the `summary` attribute when empty.\n- **bottom** - Content rendered below the navbar row (e.g. chips, filters). Forwarded to the navbar's bottom slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
6760
|
+
"doc-url": "",
|
|
6761
|
+
"attributes": [
|
|
6762
|
+
{ "name": "caption", "value": { "type": "string" } },
|
|
6763
|
+
{ "name": "entity-id", "value": { "type": "string" } },
|
|
6764
|
+
{ "name": "entity-id-show", "value": { "type": "boolean" } },
|
|
6765
|
+
{ "name": "full-location", "value": { "type": "string" } },
|
|
6766
|
+
{
|
|
6767
|
+
"name": "modal",
|
|
6768
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6769
|
+
},
|
|
6770
|
+
{
|
|
6771
|
+
"name": "nested",
|
|
6772
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6773
|
+
},
|
|
6774
|
+
{
|
|
6775
|
+
"name": "primary",
|
|
6776
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6777
|
+
},
|
|
6778
|
+
{ "name": "previous-path", "value": { "type": "string" } },
|
|
6779
|
+
{ "name": "previous-target", "value": { "type": "string" } },
|
|
6780
|
+
{ "name": "summary", "value": { "type": "string" } },
|
|
6781
|
+
{ "name": "master-id", "value": { "type": "string" } },
|
|
6782
|
+
{
|
|
6783
|
+
"name": "default-uri",
|
|
6784
|
+
"value": { "type": "string", "default": "''" }
|
|
6785
|
+
},
|
|
6786
|
+
{
|
|
6787
|
+
"name": "active",
|
|
6788
|
+
"value": { "type": "string", "default": "''" }
|
|
6789
|
+
},
|
|
6790
|
+
{ "name": "split", "value": { "type": "number" } },
|
|
6791
|
+
{
|
|
6792
|
+
"name": "split-min",
|
|
6793
|
+
"value": { "type": "number", "default": "60" }
|
|
6794
|
+
},
|
|
6795
|
+
{ "name": "split-min-secondary", "value": { "type": "number" } },
|
|
6796
|
+
{ "name": "split-max", "value": { "type": "number" } },
|
|
6797
|
+
{
|
|
6798
|
+
"name": "primary-caption",
|
|
6799
|
+
"value": { "type": "string", "default": "'Navigation'" }
|
|
6800
|
+
},
|
|
6801
|
+
{
|
|
6802
|
+
"name": "secondary-caption",
|
|
6803
|
+
"value": { "type": "string", "default": "'Content'" }
|
|
6804
|
+
},
|
|
6805
|
+
{
|
|
6806
|
+
"name": "no-prefetch",
|
|
6807
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6808
|
+
},
|
|
6809
|
+
{
|
|
6810
|
+
"name": "no-cache",
|
|
6811
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6812
|
+
},
|
|
6813
|
+
{ "name": "local-storage", "value": { "type": "boolean" } },
|
|
6814
|
+
{ "name": "store-key", "value": { "type": "string" } },
|
|
6815
|
+
{
|
|
6816
|
+
"name": "store-ttl",
|
|
6817
|
+
"value": { "type": "number", "default": "0" }
|
|
6818
|
+
},
|
|
6819
|
+
{
|
|
6820
|
+
"name": "padded",
|
|
6821
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6822
|
+
},
|
|
6823
|
+
{
|
|
6824
|
+
"name": "fetch-style",
|
|
6825
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
6826
|
+
},
|
|
6827
|
+
{
|
|
6828
|
+
"name": "full-width",
|
|
6829
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6830
|
+
},
|
|
6831
|
+
{
|
|
6832
|
+
"name": "padded-right",
|
|
6833
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6834
|
+
},
|
|
6835
|
+
{ "name": "monitor", "value": { "type": "string" } },
|
|
6836
|
+
{ "name": "description", "value": { "type": "string" } }
|
|
6837
|
+
],
|
|
6838
|
+
"slots": [
|
|
6839
|
+
{
|
|
6840
|
+
"name": "",
|
|
6841
|
+
"description": "Page content. Use zn-tab for named tabs and header-action/header-actions for header actions."
|
|
6842
|
+
},
|
|
6843
|
+
{
|
|
6844
|
+
"name": "description",
|
|
6845
|
+
"description": "Rich subtitle/description content. Falls back to the `summary` attribute when empty."
|
|
6846
|
+
},
|
|
6847
|
+
{
|
|
6848
|
+
"name": "bottom",
|
|
6849
|
+
"description": "Content rendered below the navbar row (e.g. chips, filters). Forwarded to the navbar's bottom slot."
|
|
6850
|
+
},
|
|
6851
|
+
{ "name": "example", "description": "An example slot." }
|
|
6852
|
+
],
|
|
6853
|
+
"events": [
|
|
6854
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
6855
|
+
],
|
|
6856
|
+
"js": {
|
|
6857
|
+
"properties": [
|
|
6858
|
+
{ "name": "caption", "type": "string" },
|
|
6859
|
+
{ "name": "entityId", "type": "string" },
|
|
6860
|
+
{ "name": "entityIdShow", "type": "boolean" },
|
|
6861
|
+
{ "name": "fullLocation", "type": "string" },
|
|
6862
|
+
{ "name": "modal", "type": "boolean" },
|
|
6863
|
+
{ "name": "nested", "type": "boolean" },
|
|
6864
|
+
{ "name": "primary", "type": "boolean" },
|
|
6865
|
+
{ "name": "previousPath", "type": "string" },
|
|
6866
|
+
{ "name": "previousTarget", "type": "string" },
|
|
6867
|
+
{ "name": "summary", "type": "string" },
|
|
6868
|
+
{ "name": "_registerTabs" },
|
|
6869
|
+
{ "name": "masterId", "type": "string" },
|
|
6870
|
+
{ "name": "defaultUri", "type": "string" },
|
|
6871
|
+
{ "name": "_current", "type": "string" },
|
|
6872
|
+
{ "name": "_split", "type": "number" },
|
|
6873
|
+
{ "name": "_splitMin", "type": "number" },
|
|
6874
|
+
{ "name": "_splitMinSecondary", "type": "number" },
|
|
6875
|
+
{ "name": "_splitMax", "type": "number" },
|
|
6876
|
+
{ "name": "primaryCaption", "type": "string" },
|
|
6877
|
+
{ "name": "secondaryCaption", "type": "string" },
|
|
6878
|
+
{ "name": "noPrefetch", "type": "boolean" },
|
|
6879
|
+
{ "name": "noCache", "type": "boolean" },
|
|
6880
|
+
{ "name": "localStorage", "type": "boolean" },
|
|
6881
|
+
{ "name": "storeKey", "type": "string" },
|
|
6882
|
+
{ "name": "storeTtl", "type": "number" },
|
|
6883
|
+
{ "name": "padded", "type": "boolean" },
|
|
6884
|
+
{ "name": "fetchStyle", "type": "string" },
|
|
6885
|
+
{ "name": "fullWidth", "type": "boolean" },
|
|
6886
|
+
{ "name": "paddedRight", "type": "boolean" },
|
|
6887
|
+
{ "name": "monitor", "type": "string" },
|
|
6888
|
+
{ "name": "description", "type": "string" },
|
|
6889
|
+
{ "name": "reRegisterTabs" }
|
|
6890
|
+
],
|
|
6891
|
+
"events": [
|
|
6892
|
+
{
|
|
6893
|
+
"name": "zn-event-name",
|
|
6894
|
+
"description": "Emitted as an example."
|
|
6895
|
+
}
|
|
6896
|
+
]
|
|
6897
|
+
}
|
|
6898
|
+
},
|
|
6707
6899
|
{
|
|
6708
6900
|
"name": "zn-page-nav",
|
|
6709
6901
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n \n\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -7609,7 +7801,7 @@
|
|
|
7609
7801
|
},
|
|
7610
7802
|
{
|
|
7611
7803
|
"name": "zn-radio",
|
|
7612
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the radio loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the radio gains focus.\n- **zn-input** - Emitted when the radio receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the radio.\n- **focus(options: _FocusOptions_)** - Sets focus on the radio.\n- **blur()** - Removes focus from the radio.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The radio's label.\n- **description** - A description of the radio's label. Serves as help text for a radio item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected radio item. Use only with the contained style.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the radio's checked state.\n- **control--checked** - Matches the control part when the radio is checked.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **label** - The container that wraps the radio's label.\n- **description** - The container that wraps the radio's description.\n- **selected-content** - The container that wraps optional content that appears when a radio is checked.",
|
|
7804
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-blur** - Emitted when the radio loses focus.\n- **zn-change** - Emitted when the checked state changes.\n- **zn-focus** - Emitted when the radio gains focus.\n- **zn-input** - Emitted when the radio receives input.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **click()** - Simulates a click on the radio.\n- **focus(options: _FocusOptions_)** - Sets focus on the radio.\n- **blur()** - Removes focus from the radio.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.\n\n### **Slots:**\n - _default_ - The radio's label.\n- **image** - Replaces the built-in image used by contained radios.\n- **description** - A description of the radio's label. Serves as help text for a radio item. Alternatively, you can use the `description` attribute.\n- **selected-content** - Use to nest rich content (like an input) inside a selected radio item. Use only with the contained style.\n\n### **CSS Properties:**\n - **--zn-selection-card-image-width** - Width of the built-in card image. _(default: undefined)_\n- **--zn-selection-card-image-height** - Height of the built-in card image. _(default: undefined)_\n- **--zn-selection-card-min-height** - Minimum height of a contained radio with an image. _(default: undefined)_\n- **--zn-selection-card-content-min-width** - Width the card text keeps before it wraps below the image. _(default: undefined)_\n- **--zn-selection-card-title-font-size** - Font size of a selection card title. _(default: undefined)_\n- **--zn-selection-card-padding** - Equal inset around the contents of a selection card. _(default: undefined)_\n- **--zn-selection-card-gap** - Space between the image, title, and indicator gutter. _(default: undefined)_\n- **--zn-selection-card-control-offset** - Distance between a positioned control and the card edge. _(default: undefined)_\n- **--zn-selection-card-border-radius** - Corner radius of a contained container. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **control** - The square container that wraps the radio's checked state.\n- **control--checked** - Matches the control part when the radio is checked.\n- **checked-icon** - The checked icon, an `<zn-icon>` element.\n- **image-container** - The wrapper around the built-in image or image slot.\n- **image** - The built-in image.\n- **card-title** - The title inside a selection card.\n- **label** - The container that wraps the radio's label.\n- **description** - The container that wraps the radio's description.\n- **selected-content** - The container that wraps optional content that appears when a radio is checked.",
|
|
7613
7805
|
"doc-url": "",
|
|
7614
7806
|
"attributes": [
|
|
7615
7807
|
{ "name": "title", "value": { "type": "string", "default": "''" } },
|
|
@@ -7623,6 +7815,11 @@
|
|
|
7623
7815
|
"description": "The current value of the radio, submitted as a name/value pair with form data.",
|
|
7624
7816
|
"value": { "type": "string" }
|
|
7625
7817
|
},
|
|
7818
|
+
{
|
|
7819
|
+
"name": "card-title",
|
|
7820
|
+
"description": "Title rendered inside the card. The default slot takes precedence when provided.",
|
|
7821
|
+
"value": { "type": "string", "default": "''" }
|
|
7822
|
+
},
|
|
7626
7823
|
{
|
|
7627
7824
|
"name": "size",
|
|
7628
7825
|
"description": "The radio's size.",
|
|
@@ -7646,6 +7843,37 @@
|
|
|
7646
7843
|
"description": "Draws a container around the radio.",
|
|
7647
7844
|
"value": { "type": "boolean", "default": "false" }
|
|
7648
7845
|
},
|
|
7846
|
+
{
|
|
7847
|
+
"name": "square",
|
|
7848
|
+
"description": "Squares off the corners of the container drawn by `contained`, which is rounded by default.",
|
|
7849
|
+
"value": { "type": "boolean", "default": "false" }
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
"name": "src",
|
|
7853
|
+
"description": "URL for the image shown in a contained radio.",
|
|
7854
|
+
"value": { "type": "string", "default": "''" }
|
|
7855
|
+
},
|
|
7856
|
+
{
|
|
7857
|
+
"name": "image-alt",
|
|
7858
|
+
"description": "Accessible text for the built-in image. Leave empty when the image is decorative.",
|
|
7859
|
+
"value": { "type": "string", "default": "''" }
|
|
7860
|
+
},
|
|
7861
|
+
{
|
|
7862
|
+
"name": "image-position",
|
|
7863
|
+
"description": "Places the image above, beside, or below the radio's text. Requires `contained`.",
|
|
7864
|
+
"value": {
|
|
7865
|
+
"type": "SelectionCardImagePosition",
|
|
7866
|
+
"default": "'left'"
|
|
7867
|
+
}
|
|
7868
|
+
},
|
|
7869
|
+
{
|
|
7870
|
+
"name": "control-position",
|
|
7871
|
+
"description": "Places the radio indicator within a contained card. Use `none` to hide the indicator so the card itself\nshows the selected state. Requires `contained`.",
|
|
7872
|
+
"value": {
|
|
7873
|
+
"type": "SelectionCardControlPosition",
|
|
7874
|
+
"default": "'start'"
|
|
7875
|
+
}
|
|
7876
|
+
},
|
|
7649
7877
|
{
|
|
7650
7878
|
"name": "horizontal",
|
|
7651
7879
|
"description": "Applies styles relevant to radios in a horizontal layout.",
|
|
@@ -7671,6 +7899,10 @@
|
|
|
7671
7899
|
],
|
|
7672
7900
|
"slots": [
|
|
7673
7901
|
{ "name": "", "description": "The radio's label." },
|
|
7902
|
+
{
|
|
7903
|
+
"name": "image",
|
|
7904
|
+
"description": "Replaces the built-in image used by contained radios."
|
|
7905
|
+
},
|
|
7674
7906
|
{
|
|
7675
7907
|
"name": "description",
|
|
7676
7908
|
"description": "A description of the radio's label. Serves as help text for a radio item. Alternatively, you can use the `description` attribute."
|
|
@@ -7716,6 +7948,11 @@
|
|
|
7716
7948
|
"description": "The current value of the radio, submitted as a name/value pair with form data.",
|
|
7717
7949
|
"type": "string"
|
|
7718
7950
|
},
|
|
7951
|
+
{
|
|
7952
|
+
"name": "cardTitle",
|
|
7953
|
+
"description": "Title rendered inside the card. The default slot takes precedence when provided.",
|
|
7954
|
+
"type": "string"
|
|
7955
|
+
},
|
|
7719
7956
|
{
|
|
7720
7957
|
"name": "size",
|
|
7721
7958
|
"description": "The radio's size.",
|
|
@@ -7736,6 +7973,31 @@
|
|
|
7736
7973
|
"description": "Draws a container around the radio.",
|
|
7737
7974
|
"type": "boolean"
|
|
7738
7975
|
},
|
|
7976
|
+
{
|
|
7977
|
+
"name": "square",
|
|
7978
|
+
"description": "Squares off the corners of the container drawn by `contained`, which is rounded by default.",
|
|
7979
|
+
"type": "boolean"
|
|
7980
|
+
},
|
|
7981
|
+
{
|
|
7982
|
+
"name": "src",
|
|
7983
|
+
"description": "URL for the image shown in a contained radio.",
|
|
7984
|
+
"type": "string"
|
|
7985
|
+
},
|
|
7986
|
+
{
|
|
7987
|
+
"name": "imageAlt",
|
|
7988
|
+
"description": "Accessible text for the built-in image. Leave empty when the image is decorative.",
|
|
7989
|
+
"type": "string"
|
|
7990
|
+
},
|
|
7991
|
+
{
|
|
7992
|
+
"name": "imagePosition",
|
|
7993
|
+
"description": "Places the image above, beside, or below the radio's text. Requires `contained`.",
|
|
7994
|
+
"type": "SelectionCardImagePosition"
|
|
7995
|
+
},
|
|
7996
|
+
{
|
|
7997
|
+
"name": "controlPosition",
|
|
7998
|
+
"description": "Places the radio indicator within a contained card. Use `none` to hide the indicator so the card itself\nshows the selected state. Requires `contained`.",
|
|
7999
|
+
"type": "SelectionCardControlPosition"
|
|
8000
|
+
},
|
|
7739
8001
|
{
|
|
7740
8002
|
"name": "horizontal",
|
|
7741
8003
|
"description": "Applies styles relevant to radios in a horizontal layout.",
|
|
@@ -7798,7 +8060,7 @@
|
|
|
7798
8060
|
},
|
|
7799
8061
|
{
|
|
7800
8062
|
"name": "zn-radio-group",
|
|
7801
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--
|
|
8063
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--zn-radio-group-column-width** - Minimum column width used by the horizontal contained grid, or the card basis when `wrap` is set. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
7802
8064
|
"doc-url": "",
|
|
7803
8065
|
"attributes": [
|
|
7804
8066
|
{
|
|
@@ -7836,12 +8098,22 @@
|
|
|
7836
8098
|
},
|
|
7837
8099
|
{
|
|
7838
8100
|
"name": "horizontal",
|
|
7839
|
-
"description": "The
|
|
8101
|
+
"description": "The radio group's orientation. Changes the group's layout from the default (vertical) to horizontal.",
|
|
7840
8102
|
"value": { "type": "boolean", "default": "false" }
|
|
7841
8103
|
},
|
|
7842
8104
|
{
|
|
7843
8105
|
"name": "contained",
|
|
7844
|
-
"description": "The
|
|
8106
|
+
"description": "The radio group's style. Changes the group's style from the default (plain) style to the 'contained' style. This style will be applied to all child radios.",
|
|
8107
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8108
|
+
},
|
|
8109
|
+
{
|
|
8110
|
+
"name": "square",
|
|
8111
|
+
"description": "Squares off the corners of every contained radio in the group, which are rounded by default.",
|
|
8112
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8113
|
+
},
|
|
8114
|
+
{
|
|
8115
|
+
"name": "wrap",
|
|
8116
|
+
"description": "Lays horizontal contained radios out as a wrapping row instead of an equal-width grid, so each one sizes from\n`--zn-radio-group-column-width` (set it to `auto` to size from content) and wraps onto a new line when needed.",
|
|
7845
8117
|
"value": { "type": "boolean", "default": "false" }
|
|
7846
8118
|
},
|
|
7847
8119
|
{
|
|
@@ -7899,12 +8171,22 @@
|
|
|
7899
8171
|
},
|
|
7900
8172
|
{
|
|
7901
8173
|
"name": "horizontal",
|
|
7902
|
-
"description": "The
|
|
8174
|
+
"description": "The radio group's orientation. Changes the group's layout from the default (vertical) to horizontal.",
|
|
7903
8175
|
"type": "boolean"
|
|
7904
8176
|
},
|
|
7905
8177
|
{
|
|
7906
8178
|
"name": "contained",
|
|
7907
|
-
"description": "The
|
|
8179
|
+
"description": "The radio group's style. Changes the group's style from the default (plain) style to the 'contained' style. This style will be applied to all child radios.",
|
|
8180
|
+
"type": "boolean"
|
|
8181
|
+
},
|
|
8182
|
+
{
|
|
8183
|
+
"name": "square",
|
|
8184
|
+
"description": "Squares off the corners of every contained radio in the group, which are rounded by default.",
|
|
8185
|
+
"type": "boolean"
|
|
8186
|
+
},
|
|
8187
|
+
{
|
|
8188
|
+
"name": "wrap",
|
|
8189
|
+
"description": "Lays horizontal contained radios out as a wrapping row instead of an equal-width grid, so each one sizes from\n`--zn-radio-group-column-width` (set it to `auto` to size from content) and wraps onto a new line when needed.",
|
|
7908
8190
|
"type": "boolean"
|
|
7909
8191
|
},
|
|
7910
8192
|
{
|
|
@@ -8027,7 +8309,7 @@
|
|
|
8027
8309
|
},
|
|
8028
8310
|
{
|
|
8029
8311
|
"name": "zn-remarkd-editor",
|
|
8030
|
-
"description": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted on each keystroke while editing a block.\n- **zn-change** - Emitted when a block edit is committed and the value changes.\n\n### **Methods:**\n - **focus()** - Starts editing the first block, or a new block if the document is empty.\n- **blur()** - Commits any in-progress block or raw edit.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The always-visible block-insert toolbar.\n- **raw-toggle** - The button that switches between the block view and the raw source view.\n- **block** - A rendered block wrapper.\n- **rendered** - The rendered remarkd output of a block.\n- **input** - The textarea shown while editing a block.\n- **raw** - The full-document textarea shown in raw source mode.\n- **slash-menu** - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n- **image-controls** - The caption / alignment / size panel shown when an image block is clicked.\n- **include** - The chip rendered in place of an `include::` directive.\n- **include-picker** - The inline Include picker opened from the toolbar or \"/include\".",
|
|
8312
|
+
"description": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted on each keystroke while editing a block.\n- **zn-change** - Emitted when a block edit is committed and the value changes.\n\n### **Methods:**\n - **focus()** - Starts editing the first block, or a new block if the document is empty.\n- **blur()** - Commits any in-progress block or raw edit.\n\n### **CSS Properties:**\n - **--remarkd-editor-max-height** - The tallest the editor grows before its body scrolls. Defaults to `100dvh`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The always-visible block-insert toolbar.\n- **raw-toggle** - The button that switches between the block view and the raw source view.\n- **block** - A rendered block wrapper.\n- **rendered** - The rendered remarkd output of a block.\n- **input** - The textarea shown while editing a block.\n- **raw** - The full-document textarea shown in raw source mode.\n- **slash-menu** - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n- **image-controls** - The caption / alignment / size panel shown when an image block is clicked.\n- **include** - The chip rendered in place of an `include::` directive.\n- **include-picker** - The inline Include picker opened from the toolbar or \"/include\".",
|
|
8031
8313
|
"doc-url": "",
|
|
8032
8314
|
"attributes": [
|
|
8033
8315
|
{
|
|
@@ -8512,9 +8794,14 @@
|
|
|
8512
8794
|
},
|
|
8513
8795
|
{
|
|
8514
8796
|
"name": "zn-scroll-container",
|
|
8515
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--
|
|
8797
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--zn-scroll-container-height** - The height and maximum height of the scroll container. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
8516
8798
|
"doc-url": "",
|
|
8517
8799
|
"attributes": [
|
|
8800
|
+
{
|
|
8801
|
+
"name": "height",
|
|
8802
|
+
"description": "The height and maximum height of the scroll container.",
|
|
8803
|
+
"value": { "type": "string", "default": "''" }
|
|
8804
|
+
},
|
|
8518
8805
|
{
|
|
8519
8806
|
"name": "start-scrolled",
|
|
8520
8807
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -8528,7 +8815,14 @@
|
|
|
8528
8815
|
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
8529
8816
|
],
|
|
8530
8817
|
"js": {
|
|
8531
|
-
"properties": [
|
|
8818
|
+
"properties": [
|
|
8819
|
+
{
|
|
8820
|
+
"name": "height",
|
|
8821
|
+
"description": "The height and maximum height of the scroll container.",
|
|
8822
|
+
"type": "string"
|
|
8823
|
+
},
|
|
8824
|
+
{ "name": "startScrolled", "type": "boolean" }
|
|
8825
|
+
],
|
|
8532
8826
|
"events": [
|
|
8533
8827
|
{
|
|
8534
8828
|
"name": "zn-event-name",
|