@kubex/zinc 1.1.127 → 1.1.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +791 -791
- package/dist/vscode.html-custom-data.json +102 -102
- package/dist/web-types.json +214 -214
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +3 -3
- package/package.json +1 -1
- package/scss/themes/_light.scss +3 -0
- package/src/components/button/button.scss +2 -1
- package/src/components/header/header.scss +1 -2
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.128",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -15,28 +15,6 @@
|
|
|
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
|
-
},
|
|
40
18
|
{
|
|
41
19
|
"name": "zn-alert",
|
|
42
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.",
|
|
@@ -105,6 +83,28 @@
|
|
|
105
83
|
]
|
|
106
84
|
}
|
|
107
85
|
},
|
|
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",
|
|
@@ -6671,93 +6671,93 @@
|
|
|
6671
6671
|
}
|
|
6672
6672
|
},
|
|
6673
6673
|
{
|
|
6674
|
-
"name": "zn-
|
|
6675
|
-
"description": "
|
|
6674
|
+
"name": "zn-opt-group",
|
|
6675
|
+
"description": "Groups options within a `<zn-select>` under a labeled header, similar to `<optgroup>` in native HTML.\n---\n\n\n### **Slots:**\n - _default_ - The default slot for `<zn-option>` elements.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The group label element.",
|
|
6676
6676
|
"doc-url": "",
|
|
6677
6677
|
"attributes": [
|
|
6678
6678
|
{
|
|
6679
|
-
"name": "
|
|
6680
|
-
"description": "The
|
|
6679
|
+
"name": "label",
|
|
6680
|
+
"description": "The label for the opt-group, displayed as a non-selectable header above the grouped options.",
|
|
6681
6681
|
"value": { "type": "string", "default": "''" }
|
|
6682
6682
|
},
|
|
6683
6683
|
{
|
|
6684
6684
|
"name": "disabled",
|
|
6685
|
-
"description": "
|
|
6686
|
-
"value": { "type": "boolean", "default": "false" }
|
|
6687
|
-
},
|
|
6688
|
-
{
|
|
6689
|
-
"name": "selected",
|
|
6685
|
+
"description": "Disables all options within the group.",
|
|
6690
6686
|
"value": { "type": "boolean", "default": "false" }
|
|
6691
6687
|
}
|
|
6692
6688
|
],
|
|
6693
6689
|
"slots": [
|
|
6694
|
-
{ "name": "", "description": "The option's label." },
|
|
6695
|
-
{
|
|
6696
|
-
"name": "prefix",
|
|
6697
|
-
"description": "Used to prepend an icon or similar element to the menu item."
|
|
6698
|
-
},
|
|
6699
6690
|
{
|
|
6700
|
-
"name": "
|
|
6701
|
-
"description": "
|
|
6691
|
+
"name": "",
|
|
6692
|
+
"description": "The default slot for `<zn-option>` elements."
|
|
6702
6693
|
}
|
|
6703
6694
|
],
|
|
6704
6695
|
"events": [],
|
|
6705
6696
|
"js": {
|
|
6706
6697
|
"properties": [
|
|
6707
|
-
{ "name": "multiple", "type": "boolean" },
|
|
6708
|
-
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
6709
|
-
{ "name": "current", "type": "boolean" },
|
|
6710
|
-
{ "name": "hasHover", "type": "boolean" },
|
|
6711
6698
|
{
|
|
6712
|
-
"name": "
|
|
6713
|
-
"description": "The
|
|
6699
|
+
"name": "label",
|
|
6700
|
+
"description": "The label for the opt-group, displayed as a non-selectable header above the grouped options.",
|
|
6714
6701
|
"type": "string"
|
|
6715
6702
|
},
|
|
6716
6703
|
{
|
|
6717
6704
|
"name": "disabled",
|
|
6718
|
-
"description": "
|
|
6705
|
+
"description": "Disables all options within the group.",
|
|
6719
6706
|
"type": "boolean"
|
|
6720
|
-
}
|
|
6721
|
-
{ "name": "selected", "type": "boolean" }
|
|
6707
|
+
}
|
|
6722
6708
|
],
|
|
6723
6709
|
"events": []
|
|
6724
6710
|
}
|
|
6725
6711
|
},
|
|
6726
6712
|
{
|
|
6727
|
-
"name": "zn-
|
|
6728
|
-
"description": "
|
|
6713
|
+
"name": "zn-option",
|
|
6714
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Methods:**\n - **getTextLabel()** - Returns a plain text label based on the option's content.\n\n### **Slots:**\n - _default_ - The option's label.\n- **prefix** - Used to prepend an icon or similar element to the menu item.\n- **suffix** - Used to append an icon or similar element to the menu item.\n\n### **CSS Parts:**\n - **checked-option-icon** - The checked option icon, an `<zn-icon>` element.\n- **base** - The component's base wrapper.\n- **label** - The option's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.",
|
|
6729
6715
|
"doc-url": "",
|
|
6730
6716
|
"attributes": [
|
|
6731
6717
|
{
|
|
6732
|
-
"name": "
|
|
6733
|
-
"description": "The
|
|
6718
|
+
"name": "value",
|
|
6719
|
+
"description": "The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may contain spaces when using JSON array syntax on the parent select.",
|
|
6734
6720
|
"value": { "type": "string", "default": "''" }
|
|
6735
6721
|
},
|
|
6736
6722
|
{
|
|
6737
6723
|
"name": "disabled",
|
|
6738
|
-
"description": "
|
|
6724
|
+
"description": "Draws the option in a disabled state, preventing selection.",
|
|
6725
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6726
|
+
},
|
|
6727
|
+
{
|
|
6728
|
+
"name": "selected",
|
|
6739
6729
|
"value": { "type": "boolean", "default": "false" }
|
|
6740
6730
|
}
|
|
6741
6731
|
],
|
|
6742
6732
|
"slots": [
|
|
6733
|
+
{ "name": "", "description": "The option's label." },
|
|
6743
6734
|
{
|
|
6744
|
-
"name": "",
|
|
6745
|
-
"description": "
|
|
6735
|
+
"name": "prefix",
|
|
6736
|
+
"description": "Used to prepend an icon or similar element to the menu item."
|
|
6737
|
+
},
|
|
6738
|
+
{
|
|
6739
|
+
"name": "suffix",
|
|
6740
|
+
"description": "Used to append an icon or similar element to the menu item."
|
|
6746
6741
|
}
|
|
6747
6742
|
],
|
|
6748
6743
|
"events": [],
|
|
6749
6744
|
"js": {
|
|
6750
6745
|
"properties": [
|
|
6746
|
+
{ "name": "multiple", "type": "boolean" },
|
|
6747
|
+
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
6748
|
+
{ "name": "current", "type": "boolean" },
|
|
6749
|
+
{ "name": "hasHover", "type": "boolean" },
|
|
6751
6750
|
{
|
|
6752
|
-
"name": "
|
|
6753
|
-
"description": "The
|
|
6751
|
+
"name": "value",
|
|
6752
|
+
"description": "The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may contain spaces when using JSON array syntax on the parent select.",
|
|
6754
6753
|
"type": "string"
|
|
6755
6754
|
},
|
|
6756
6755
|
{
|
|
6757
6756
|
"name": "disabled",
|
|
6758
|
-
"description": "
|
|
6757
|
+
"description": "Draws the option in a disabled state, preventing selection.",
|
|
6759
6758
|
"type": "boolean"
|
|
6760
|
-
}
|
|
6759
|
+
},
|
|
6760
|
+
{ "name": "selected", "type": "boolean" }
|
|
6761
6761
|
],
|
|
6762
6762
|
"events": []
|
|
6763
6763
|
}
|
|
@@ -8253,6 +8253,161 @@
|
|
|
8253
8253
|
]
|
|
8254
8254
|
}
|
|
8255
8255
|
},
|
|
8256
|
+
{
|
|
8257
|
+
"name": "zn-radio-group",
|
|
8258
|
+
"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.",
|
|
8259
|
+
"doc-url": "",
|
|
8260
|
+
"attributes": [
|
|
8261
|
+
{
|
|
8262
|
+
"name": "label",
|
|
8263
|
+
"description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
8264
|
+
"value": { "type": "string", "default": "''" }
|
|
8265
|
+
},
|
|
8266
|
+
{
|
|
8267
|
+
"name": "label-tooltip",
|
|
8268
|
+
"description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
|
|
8269
|
+
"value": { "type": "string", "default": "''" }
|
|
8270
|
+
},
|
|
8271
|
+
{
|
|
8272
|
+
"name": "help-text",
|
|
8273
|
+
"description": "The radio groups' help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
8274
|
+
"value": { "type": "string", "default": "''" }
|
|
8275
|
+
},
|
|
8276
|
+
{
|
|
8277
|
+
"name": "name",
|
|
8278
|
+
"description": "The name of the radio group, submitted as a name/value pair with form data.",
|
|
8279
|
+
"value": { "type": "string", "default": "''" }
|
|
8280
|
+
},
|
|
8281
|
+
{
|
|
8282
|
+
"name": "value",
|
|
8283
|
+
"description": "The current value of the radio group, submitted as a name/value pair with form data.",
|
|
8284
|
+
"value": { "type": "string", "default": "''" }
|
|
8285
|
+
},
|
|
8286
|
+
{
|
|
8287
|
+
"name": "size",
|
|
8288
|
+
"description": "The radio group's size. This size will be applied to all child radios",
|
|
8289
|
+
"value": {
|
|
8290
|
+
"type": "'small' | 'medium' | 'large'",
|
|
8291
|
+
"default": "'medium'"
|
|
8292
|
+
}
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
"name": "horizontal",
|
|
8296
|
+
"description": "The radio group's orientation. Changes the group's layout from the default (vertical) to horizontal.",
|
|
8297
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
"name": "contained",
|
|
8301
|
+
"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.",
|
|
8302
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8303
|
+
},
|
|
8304
|
+
{
|
|
8305
|
+
"name": "square",
|
|
8306
|
+
"description": "Squares off the corners of every contained radio in the group, which are rounded by default.",
|
|
8307
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8308
|
+
},
|
|
8309
|
+
{
|
|
8310
|
+
"name": "wrap",
|
|
8311
|
+
"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.",
|
|
8312
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8313
|
+
},
|
|
8314
|
+
{
|
|
8315
|
+
"name": "form",
|
|
8316
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside 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.",
|
|
8317
|
+
"value": { "type": "string", "default": "''" }
|
|
8318
|
+
},
|
|
8319
|
+
{
|
|
8320
|
+
"name": "required",
|
|
8321
|
+
"description": "Ensures a child radio is checked before allowing the containing form to submit.",
|
|
8322
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8323
|
+
}
|
|
8324
|
+
],
|
|
8325
|
+
"slots": [
|
|
8326
|
+
{ "name": "", "description": "The default slot." },
|
|
8327
|
+
{ "name": "example", "description": "An example slot." }
|
|
8328
|
+
],
|
|
8329
|
+
"events": [
|
|
8330
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
8331
|
+
],
|
|
8332
|
+
"js": {
|
|
8333
|
+
"properties": [
|
|
8334
|
+
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
8335
|
+
{ "name": "validationInput", "type": "HTMLInputElement" },
|
|
8336
|
+
{ "name": "defaultValue", "type": "string" },
|
|
8337
|
+
{
|
|
8338
|
+
"name": "label",
|
|
8339
|
+
"description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
8340
|
+
"type": "string"
|
|
8341
|
+
},
|
|
8342
|
+
{
|
|
8343
|
+
"name": "labelTooltip",
|
|
8344
|
+
"description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
|
|
8345
|
+
"type": "string"
|
|
8346
|
+
},
|
|
8347
|
+
{
|
|
8348
|
+
"name": "helpText",
|
|
8349
|
+
"description": "The radio groups' help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
8350
|
+
"type": "string"
|
|
8351
|
+
},
|
|
8352
|
+
{
|
|
8353
|
+
"name": "name",
|
|
8354
|
+
"description": "The name of the radio group, submitted as a name/value pair with form data.",
|
|
8355
|
+
"type": "string"
|
|
8356
|
+
},
|
|
8357
|
+
{
|
|
8358
|
+
"name": "value",
|
|
8359
|
+
"description": "The current value of the radio group, submitted as a name/value pair with form data.",
|
|
8360
|
+
"type": "string"
|
|
8361
|
+
},
|
|
8362
|
+
{
|
|
8363
|
+
"name": "size",
|
|
8364
|
+
"description": "The radio group's size. This size will be applied to all child radios",
|
|
8365
|
+
"type": "'small' | 'medium' | 'large'"
|
|
8366
|
+
},
|
|
8367
|
+
{
|
|
8368
|
+
"name": "horizontal",
|
|
8369
|
+
"description": "The radio group's orientation. Changes the group's layout from the default (vertical) to horizontal.",
|
|
8370
|
+
"type": "boolean"
|
|
8371
|
+
},
|
|
8372
|
+
{
|
|
8373
|
+
"name": "contained",
|
|
8374
|
+
"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.",
|
|
8375
|
+
"type": "boolean"
|
|
8376
|
+
},
|
|
8377
|
+
{
|
|
8378
|
+
"name": "square",
|
|
8379
|
+
"description": "Squares off the corners of every contained radio in the group, which are rounded by default.",
|
|
8380
|
+
"type": "boolean"
|
|
8381
|
+
},
|
|
8382
|
+
{
|
|
8383
|
+
"name": "wrap",
|
|
8384
|
+
"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.",
|
|
8385
|
+
"type": "boolean"
|
|
8386
|
+
},
|
|
8387
|
+
{
|
|
8388
|
+
"name": "form",
|
|
8389
|
+
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside 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.",
|
|
8390
|
+
"type": "string"
|
|
8391
|
+
},
|
|
8392
|
+
{
|
|
8393
|
+
"name": "required",
|
|
8394
|
+
"description": "Ensures a child radio is checked before allowing the containing form to submit.",
|
|
8395
|
+
"type": "boolean"
|
|
8396
|
+
},
|
|
8397
|
+
{ "name": "validity" },
|
|
8398
|
+
{
|
|
8399
|
+
"name": "validationMessage",
|
|
8400
|
+
"description": "Gets the validation message"
|
|
8401
|
+
}
|
|
8402
|
+
],
|
|
8403
|
+
"events": [
|
|
8404
|
+
{
|
|
8405
|
+
"name": "zn-event-name",
|
|
8406
|
+
"description": "Emitted as an example."
|
|
8407
|
+
}
|
|
8408
|
+
]
|
|
8409
|
+
}
|
|
8410
|
+
},
|
|
8256
8411
|
{
|
|
8257
8412
|
"name": "zn-rating",
|
|
8258
8413
|
"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(): _boolean_** - Checks the 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()** - 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- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
|
|
@@ -8554,161 +8709,6 @@
|
|
|
8554
8709
|
]
|
|
8555
8710
|
}
|
|
8556
8711
|
},
|
|
8557
|
-
{
|
|
8558
|
-
"name": "zn-radio-group",
|
|
8559
|
-
"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.",
|
|
8560
|
-
"doc-url": "",
|
|
8561
|
-
"attributes": [
|
|
8562
|
-
{
|
|
8563
|
-
"name": "label",
|
|
8564
|
-
"description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
8565
|
-
"value": { "type": "string", "default": "''" }
|
|
8566
|
-
},
|
|
8567
|
-
{
|
|
8568
|
-
"name": "label-tooltip",
|
|
8569
|
-
"description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
|
|
8570
|
-
"value": { "type": "string", "default": "''" }
|
|
8571
|
-
},
|
|
8572
|
-
{
|
|
8573
|
-
"name": "help-text",
|
|
8574
|
-
"description": "The radio groups' help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
8575
|
-
"value": { "type": "string", "default": "''" }
|
|
8576
|
-
},
|
|
8577
|
-
{
|
|
8578
|
-
"name": "name",
|
|
8579
|
-
"description": "The name of the radio group, submitted as a name/value pair with form data.",
|
|
8580
|
-
"value": { "type": "string", "default": "''" }
|
|
8581
|
-
},
|
|
8582
|
-
{
|
|
8583
|
-
"name": "value",
|
|
8584
|
-
"description": "The current value of the radio group, submitted as a name/value pair with form data.",
|
|
8585
|
-
"value": { "type": "string", "default": "''" }
|
|
8586
|
-
},
|
|
8587
|
-
{
|
|
8588
|
-
"name": "size",
|
|
8589
|
-
"description": "The radio group's size. This size will be applied to all child radios",
|
|
8590
|
-
"value": {
|
|
8591
|
-
"type": "'small' | 'medium' | 'large'",
|
|
8592
|
-
"default": "'medium'"
|
|
8593
|
-
}
|
|
8594
|
-
},
|
|
8595
|
-
{
|
|
8596
|
-
"name": "horizontal",
|
|
8597
|
-
"description": "The radio group's orientation. Changes the group's layout from the default (vertical) to horizontal.",
|
|
8598
|
-
"value": { "type": "boolean", "default": "false" }
|
|
8599
|
-
},
|
|
8600
|
-
{
|
|
8601
|
-
"name": "contained",
|
|
8602
|
-
"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.",
|
|
8603
|
-
"value": { "type": "boolean", "default": "false" }
|
|
8604
|
-
},
|
|
8605
|
-
{
|
|
8606
|
-
"name": "square",
|
|
8607
|
-
"description": "Squares off the corners of every contained radio in the group, which are rounded by default.",
|
|
8608
|
-
"value": { "type": "boolean", "default": "false" }
|
|
8609
|
-
},
|
|
8610
|
-
{
|
|
8611
|
-
"name": "wrap",
|
|
8612
|
-
"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.",
|
|
8613
|
-
"value": { "type": "boolean", "default": "false" }
|
|
8614
|
-
},
|
|
8615
|
-
{
|
|
8616
|
-
"name": "form",
|
|
8617
|
-
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside 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.",
|
|
8618
|
-
"value": { "type": "string", "default": "''" }
|
|
8619
|
-
},
|
|
8620
|
-
{
|
|
8621
|
-
"name": "required",
|
|
8622
|
-
"description": "Ensures a child radio is checked before allowing the containing form to submit.",
|
|
8623
|
-
"value": { "type": "boolean", "default": "false" }
|
|
8624
|
-
}
|
|
8625
|
-
],
|
|
8626
|
-
"slots": [
|
|
8627
|
-
{ "name": "", "description": "The default slot." },
|
|
8628
|
-
{ "name": "example", "description": "An example slot." }
|
|
8629
|
-
],
|
|
8630
|
-
"events": [
|
|
8631
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
8632
|
-
],
|
|
8633
|
-
"js": {
|
|
8634
|
-
"properties": [
|
|
8635
|
-
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
8636
|
-
{ "name": "validationInput", "type": "HTMLInputElement" },
|
|
8637
|
-
{ "name": "defaultValue", "type": "string" },
|
|
8638
|
-
{
|
|
8639
|
-
"name": "label",
|
|
8640
|
-
"description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
|
|
8641
|
-
"type": "string"
|
|
8642
|
-
},
|
|
8643
|
-
{
|
|
8644
|
-
"name": "labelTooltip",
|
|
8645
|
-
"description": "Text that appears in a tooltip next to the label. If you need to display HTML in the tooltip, use the `label-tooltip` slot instead.",
|
|
8646
|
-
"type": "string"
|
|
8647
|
-
},
|
|
8648
|
-
{
|
|
8649
|
-
"name": "helpText",
|
|
8650
|
-
"description": "The radio groups' help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
8651
|
-
"type": "string"
|
|
8652
|
-
},
|
|
8653
|
-
{
|
|
8654
|
-
"name": "name",
|
|
8655
|
-
"description": "The name of the radio group, submitted as a name/value pair with form data.",
|
|
8656
|
-
"type": "string"
|
|
8657
|
-
},
|
|
8658
|
-
{
|
|
8659
|
-
"name": "value",
|
|
8660
|
-
"description": "The current value of the radio group, submitted as a name/value pair with form data.",
|
|
8661
|
-
"type": "string"
|
|
8662
|
-
},
|
|
8663
|
-
{
|
|
8664
|
-
"name": "size",
|
|
8665
|
-
"description": "The radio group's size. This size will be applied to all child radios",
|
|
8666
|
-
"type": "'small' | 'medium' | 'large'"
|
|
8667
|
-
},
|
|
8668
|
-
{
|
|
8669
|
-
"name": "horizontal",
|
|
8670
|
-
"description": "The radio group's orientation. Changes the group's layout from the default (vertical) to horizontal.",
|
|
8671
|
-
"type": "boolean"
|
|
8672
|
-
},
|
|
8673
|
-
{
|
|
8674
|
-
"name": "contained",
|
|
8675
|
-
"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.",
|
|
8676
|
-
"type": "boolean"
|
|
8677
|
-
},
|
|
8678
|
-
{
|
|
8679
|
-
"name": "square",
|
|
8680
|
-
"description": "Squares off the corners of every contained radio in the group, which are rounded by default.",
|
|
8681
|
-
"type": "boolean"
|
|
8682
|
-
},
|
|
8683
|
-
{
|
|
8684
|
-
"name": "wrap",
|
|
8685
|
-
"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.",
|
|
8686
|
-
"type": "boolean"
|
|
8687
|
-
},
|
|
8688
|
-
{
|
|
8689
|
-
"name": "form",
|
|
8690
|
-
"description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside 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.",
|
|
8691
|
-
"type": "string"
|
|
8692
|
-
},
|
|
8693
|
-
{
|
|
8694
|
-
"name": "required",
|
|
8695
|
-
"description": "Ensures a child radio is checked before allowing the containing form to submit.",
|
|
8696
|
-
"type": "boolean"
|
|
8697
|
-
},
|
|
8698
|
-
{ "name": "validity" },
|
|
8699
|
-
{
|
|
8700
|
-
"name": "validationMessage",
|
|
8701
|
-
"description": "Gets the validation message"
|
|
8702
|
-
}
|
|
8703
|
-
],
|
|
8704
|
-
"events": [
|
|
8705
|
-
{
|
|
8706
|
-
"name": "zn-event-name",
|
|
8707
|
-
"description": "Emitted as an example."
|
|
8708
|
-
}
|
|
8709
|
-
]
|
|
8710
|
-
}
|
|
8711
|
-
},
|
|
8712
8712
|
{
|
|
8713
8713
|
"name": "zn-schedule-builder",
|
|
8714
8714
|
"description": "Builds a weekly opening-hours schedule as a drag-to-paint calendar or a compact list of\ntime ranges, and posts the result as JSON.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the schedule changes.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks 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: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **setDay(day: _ScheduleDay_, ranges: _ScheduleRange[]_)** - Replaces the hours for a single day, in the save timezone.\n- **getDay(day: _ScheduleDay_): _ScheduleRange[]_** - Reads the hours for a single day, in the save timezone.\n- **setDisplayDay(day: _ScheduleDay_, ranges: _ScheduleRange[]_)** - Replaces the hours for a single day, given in the display timezone.\n\n### **Slots:**\n - **label** - The schedule's label. Alternatively, use the `label` attribute.\n- **help-text** - Text that describes how to use the schedule. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--slot-height** - The height of a single time slot in the calendar. Defaults to `18px`. _(default: undefined)_\n- **--gutter-width** - The width of the calendar's time gutter. Defaults to `64px`. _(default: undefined)_\n- **--open-color** - The fill used for open hours. _(default: undefined)_\n- **--reduced-color** - The fill used for hours an exception removes. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the builder, label and help text.\n- **base** - The component's base wrapper.\n- **toolbar** - The row above the builder holding the hint, legend and view toggle.\n- **calendar** - The calendar view wrapper.\n- **list** - The form (list) view wrapper.\n- **summary** - The summary panel beside the calendar.",
|