@kubex/zinc 1.0.25 → 1.0.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/.claude/project.md +556 -0
- package/.github/workflows/js_build_and_deploy.yaml +9 -10
- package/dist/custom-elements.json +13575 -8856
- package/dist/vscode.html-custom-data.json +583 -48
- package/dist/web-types.json +1441 -181
- package/dist/zn.d.ts +1645 -660
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +1412 -893
- package/docs/_utilities/code-previews.cjs +10 -1
- package/docs/assets/scripts/docs.js +42 -18
- package/docs/data/data-table.json +229 -66
- package/docs/data/empty.json +6 -0
- package/docs/data/products-table.json +41 -193
- package/docs/pages/components/action-bar.md +121 -6
- package/docs/pages/components/alert.md +118 -15
- package/docs/pages/components/animated-button.md +299 -0
- package/docs/pages/components/audio-select.md +534 -0
- package/docs/pages/components/bulk-actions.md +79 -5
- package/docs/pages/components/button-group.md +235 -27
- package/docs/pages/components/button.md +139 -1
- package/docs/pages/components/chart.md +365 -9
- package/docs/pages/components/checkbox.md +387 -58
- package/docs/pages/components/chip.md +253 -33
- package/docs/pages/components/collapsible.md +393 -46
- package/docs/pages/components/cols.md +152 -30
- package/docs/pages/components/confirm.md +182 -16
- package/docs/pages/components/copy-button.md +169 -6
- package/docs/pages/components/data-select.md +194 -15
- package/docs/pages/components/data-table-filter.md +96 -5
- package/docs/pages/components/data-table-search.md +451 -0
- package/docs/pages/components/data-table-sort.md +66 -5
- package/docs/pages/components/data-table.md +727 -66
- package/docs/pages/components/datepicker.md +402 -7
- package/docs/pages/components/defined-label.md +120 -5
- package/docs/pages/components/dialog.md +339 -59
- package/docs/pages/components/dropdown.md +366 -11
- package/docs/pages/components/editor.md +604 -7
- package/docs/pages/components/empty-state.md +315 -16
- package/docs/pages/components/expanding-action.md +212 -28
- package/docs/pages/components/file.md +421 -12
- package/docs/pages/components/filter-container.md +158 -5
- package/docs/pages/components/filter-wrapper.md +167 -6
- package/docs/pages/components/form-group.md +383 -6
- package/docs/pages/components/hover-container.md +237 -6
- package/docs/pages/components/icon-picker.md +121 -0
- package/docs/pages/components/icon.md +454 -48
- package/docs/pages/components/inline-edit.md +787 -19
- package/docs/pages/components/input-group.md +207 -13
- package/docs/pages/components/input.md +194 -0
- package/docs/pages/components/item.md +18 -0
- package/docs/pages/components/key-container.md +115 -0
- package/docs/pages/components/key.md +101 -0
- package/docs/pages/components/menu.md +512 -6
- package/docs/pages/components/note.md +239 -36
- package/docs/pages/components/opt-group.md +107 -0
- package/docs/pages/components/pagination.md +332 -6
- package/docs/pages/components/pane.md +222 -6
- package/docs/pages/components/panel.md +213 -26
- package/docs/pages/components/popup.md +1354 -6
- package/docs/pages/components/priority-list.md +233 -0
- package/docs/pages/components/progress-bar.md +387 -6
- package/docs/pages/components/radio-group.md +242 -5
- package/docs/pages/components/radio.md +474 -6
- package/docs/pages/components/rating.md +331 -7
- package/docs/pages/components/reveal.md +524 -6
- package/docs/pages/components/scroll-container.md +552 -6
- package/docs/pages/components/select.md +762 -160
- package/docs/pages/components/skeleton.md +473 -30
- package/docs/pages/components/slideout.md +261 -5
- package/docs/pages/components/sp.md +99 -41
- package/docs/pages/components/split-button.md +347 -9
- package/docs/pages/components/split-pane.md +445 -6
- package/docs/pages/components/stat.md +549 -9
- package/docs/pages/components/status-indicator.md +230 -1
- package/docs/pages/components/stepper.md +563 -6
- package/docs/pages/components/tabs.md +439 -13
- package/docs/pages/components/textarea.md +415 -17
- package/docs/pages/components/tile.md +385 -26
- package/docs/pages/components/toggle.md +424 -6
- package/docs/pages/components/tooltip.md +367 -0
- package/docs/pages/components/translation-group.md +210 -0
- package/docs/pages/components/translations.md +319 -19
- package/docs/pages/components/vertical-stepper.md +401 -8
- package/docs/pages/components/well.md +300 -3
- package/docs/pages/getting-started/form-controls.md +162 -0
- package/docs/pages/index.md +116 -15
- package/package.json +5 -6
- package/scss/_global-spacing.scss +4 -0
- package/scss/_root.scss +2 -2
- package/scss/boot.scss +19 -0
- package/scss/shared/layout.scss +5 -0
- package/scss/themes/_light.scss +3 -3
- package/src/components/alert/alert.scss +1 -0
- package/src/components/animated-button/README.md +306 -0
- package/src/components/animated-button/animated-button.component.ts +229 -0
- package/src/components/animated-button/animated-button.scss +228 -0
- package/src/components/animated-button/animated-button.test.ts +143 -0
- package/src/components/animated-button/index.ts +12 -0
- package/src/components/button/button.component.ts +5 -0
- package/src/components/button-group/button-group.component.ts +25 -13
- package/src/components/button-group/button-group.scss +6 -0
- package/src/components/checkbox/checkbox.component.ts +4 -0
- package/src/components/checkbox/checkbox.scss +7 -4
- package/src/components/checkbox-group/checkbox-group.scss +7 -0
- package/src/components/chip/chip.component.ts +7 -2
- package/src/components/chip/chip.scss +16 -2
- package/src/components/collapsible/collapsible.component.ts +27 -20
- package/src/components/cols/cols.component.ts +14 -2
- package/src/components/cols/cols.scss +6 -12
- package/src/components/confirm/confirm.component.ts +7 -0
- package/src/components/copy-button/copy-button.component.ts +12 -11
- package/src/components/data-select/data-select.component.ts +215 -44
- package/src/components/data-select/data-select.scss +66 -6
- package/src/components/data-select/providers/currency-data-provider.ts +20 -6
- package/src/components/data-select/providers/provider.ts +1 -0
- package/src/components/data-select/providers/us-state-data-provider.ts +68 -0
- package/src/components/data-table/data-table.component.ts +81 -22
- package/src/components/data-table-search/data-table-search.component.ts +184 -0
- package/src/components/data-table-search/data-table-search.scss +17 -0
- package/src/components/data-table-search/data-table-search.test.ts +11 -0
- package/src/components/data-table-search/index.ts +12 -0
- package/src/components/datepicker/datepicker.component.ts +347 -13
- package/src/components/dialog/dialog.component.ts +1 -1
- package/src/components/empty-state/empty-state.scss +6 -1
- package/src/components/header/header.scss +3 -3
- package/src/components/icon/icon.component.ts +23 -1
- package/src/components/icon/icon.scss +23 -0
- package/src/components/icon-picker/brand-icons.ts +24 -0
- package/src/components/icon-picker/icon-picker.component.ts +407 -0
- package/src/components/icon-picker/icon-picker.scss +205 -0
- package/src/components/icon-picker/index.ts +12 -0
- package/src/components/icon-picker/line-icons.ts +612 -0
- package/src/components/icon-picker/material-icons.ts +14543 -0
- package/src/components/inline-edit/inline-edit.component.ts +190 -46
- package/src/components/inline-edit/inline-edit.scss +29 -0
- package/src/components/inline-edit/inline-edit.test.ts +314 -1
- package/src/components/input/input.component.ts +324 -5
- package/src/components/input/input.scss +87 -0
- package/src/components/input-group/input-group.component.ts +28 -7
- package/src/components/input-group/input-group.scss +48 -10
- package/src/components/item/item.component.ts +24 -3
- package/src/components/item/item.scss +18 -0
- package/src/components/key/index.ts +12 -0
- package/src/components/key/key.component.ts +47 -0
- package/src/components/key/key.scss +38 -0
- package/src/components/key-container/index.ts +12 -0
- package/src/components/key-container/key-container.component.ts +142 -0
- package/src/components/key-container/key-container.scss +33 -0
- package/src/components/menu-item/menu-item.component.ts +20 -0
- package/src/components/menu-item/menu-item.scss +69 -2
- package/src/components/navbar/navbar.component.ts +103 -11
- package/src/components/navbar/navbar.scss +6 -1
- package/src/components/opt-group/index.ts +12 -0
- package/src/components/opt-group/opt-group.component.ts +74 -0
- package/src/components/opt-group/opt-group.scss +37 -0
- package/src/components/opt-group/opt-group.test.ts +27 -0
- package/src/components/option/option.component.ts +1 -16
- package/src/components/option/option.scss +4 -0
- package/src/components/panel/panel.component.ts +10 -8
- package/src/components/panel/panel.scss +20 -0
- package/src/components/priority-list/index.ts +12 -0
- package/src/components/priority-list/priority-list.component.ts +611 -0
- package/src/components/priority-list/priority-list.scss +185 -0
- package/src/components/priority-list/priority-list.test.ts +139 -0
- package/src/components/progress-bar/progress-bar.component.ts +22 -16
- package/src/components/radio/radio.scss +10 -3
- package/src/components/select/select.component.ts +812 -72
- package/src/components/select/select.scss +108 -2
- package/src/components/select/select.test.ts +147 -2
- package/src/components/settings-container/settings-container.component.ts +44 -19
- package/src/components/settings-container/settings-container.scss +1 -1
- package/src/components/skeleton/skeleton.component.ts +6 -1
- package/src/components/slideout/slideout.scss +8 -3
- package/src/components/sp/sp.component.ts +3 -1
- package/src/components/sp/sp.scss +19 -0
- package/src/components/stepper/stepper.component.ts +16 -10
- package/src/components/textarea/textarea.scss +0 -4
- package/src/components/tile/tile.component.ts +12 -3
- package/src/components/tile/tile.scss +1 -1
- package/src/components/timer/timer.component.ts +15 -2
- package/src/components/toggle/toggle.component.ts +29 -26
- package/src/components/toggle/toggle.scss +13 -1
- package/src/components/translation-group/index.ts +12 -0
- package/src/components/translation-group/translation-group.component.ts +207 -0
- package/src/components/translation-group/translation-group.scss +8 -0
- package/src/components/translations/translations.component.ts +90 -44
- package/src/components/translations/translations.scss +4 -0
- package/src/components/vertical-stepper/vertical-stepper.component.ts +14 -9
- package/src/events/events.ts +12 -7
- package/src/events/zn-language-change.ts +7 -0
- package/src/events/zn-purchase.ts +11 -0
- package/src/events/zn-redirect.ts +7 -0
- package/src/events/zn-reorder.ts +7 -0
- package/src/events/zn-search-change.ts +11 -0
- package/src/events/zn-submit.ts +1 -1
- package/src/form-control.scss +4 -0
- package/src/internal/form-navigation.ts +510 -0
- package/src/internal/form.ts +6 -0
- package/src/zinc.ts +91 -83
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.0.
|
|
4
|
+
"version": "1.0.99",
|
|
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.",
|
|
@@ -92,6 +70,141 @@
|
|
|
92
70
|
]
|
|
93
71
|
}
|
|
94
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "zn-action-bar",
|
|
75
|
+
"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.",
|
|
76
|
+
"doc-url": "",
|
|
77
|
+
"attributes": [],
|
|
78
|
+
"slots": [
|
|
79
|
+
{ "name": "", "description": "The default slot." },
|
|
80
|
+
{ "name": "example", "description": "An example slot." }
|
|
81
|
+
],
|
|
82
|
+
"events": [
|
|
83
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
84
|
+
],
|
|
85
|
+
"js": {
|
|
86
|
+
"properties": [],
|
|
87
|
+
"events": [
|
|
88
|
+
{
|
|
89
|
+
"name": "zn-event-name",
|
|
90
|
+
"description": "Emitted as an example."
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "zn-animated-button",
|
|
97
|
+
"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",
|
|
98
|
+
"doc-url": "",
|
|
99
|
+
"attributes": [
|
|
100
|
+
{
|
|
101
|
+
"name": "idle-text",
|
|
102
|
+
"description": "The text to display in the idle state",
|
|
103
|
+
"value": { "type": "string", "default": "'Purchase'" }
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "processing-text",
|
|
107
|
+
"description": "The text to display in the processing state",
|
|
108
|
+
"value": { "type": "string", "default": "'Purchasing'" }
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "success-text",
|
|
112
|
+
"description": "The text to display in the success state",
|
|
113
|
+
"value": { "type": "string", "default": "'Success'" }
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "failure-text",
|
|
117
|
+
"description": "The text to display in the failure state",
|
|
118
|
+
"value": { "type": "string", "default": "'Failed'" }
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "redirect-url",
|
|
122
|
+
"description": "The URL to redirect to after successful purchase",
|
|
123
|
+
"value": { "type": "string", "default": "''" }
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "redirect-delay",
|
|
127
|
+
"description": "Delay in milliseconds before redirecting after success (default: 1500ms)",
|
|
128
|
+
"value": { "type": "number", "default": "1500" }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "failure-reset-delay",
|
|
132
|
+
"description": "Delay in milliseconds before resetting from failure state (default: 2000ms)",
|
|
133
|
+
"value": { "type": "number", "default": "2000" }
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "disabled",
|
|
137
|
+
"description": "Disabled state",
|
|
138
|
+
"value": { "type": "boolean", "default": "false" }
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "name",
|
|
142
|
+
"description": "The name of the form control (required for form submission)",
|
|
143
|
+
"value": { "type": "string", "default": "''" }
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "value",
|
|
147
|
+
"description": "The value of the form control",
|
|
148
|
+
"value": { "type": "string", "default": "''" }
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"events": [],
|
|
152
|
+
"js": {
|
|
153
|
+
"properties": [
|
|
154
|
+
{
|
|
155
|
+
"name": "idleText",
|
|
156
|
+
"description": "The text to display in the idle state",
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "processingText",
|
|
161
|
+
"description": "The text to display in the processing state",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "successText",
|
|
166
|
+
"description": "The text to display in the success state",
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "failureText",
|
|
171
|
+
"description": "The text to display in the failure state",
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "redirectUrl",
|
|
176
|
+
"description": "The URL to redirect to after successful purchase",
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "redirectDelay",
|
|
181
|
+
"description": "Delay in milliseconds before redirecting after success (default: 1500ms)",
|
|
182
|
+
"type": "number"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "failureResetDelay",
|
|
186
|
+
"description": "Delay in milliseconds before resetting from failure state (default: 2000ms)",
|
|
187
|
+
"type": "number"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "disabled",
|
|
191
|
+
"description": "Disabled state",
|
|
192
|
+
"type": "boolean"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "name",
|
|
196
|
+
"description": "The name of the form control (required for form submission)",
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "value",
|
|
201
|
+
"description": "The value of the form control",
|
|
202
|
+
"type": "string"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"events": []
|
|
206
|
+
}
|
|
207
|
+
},
|
|
95
208
|
{
|
|
96
209
|
"name": "zn-audio-select",
|
|
97
210
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **actions** - The actions slot.\n- **footer** - The footer 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.",
|
|
@@ -612,6 +725,11 @@
|
|
|
612
725
|
"description": "Draws a container around the checkbox.",
|
|
613
726
|
"value": { "type": "boolean", "default": "false" }
|
|
614
727
|
},
|
|
728
|
+
{
|
|
729
|
+
"name": "borderless",
|
|
730
|
+
"description": "Removes a container around the checkbox.",
|
|
731
|
+
"value": { "type": "boolean", "default": "false" }
|
|
732
|
+
},
|
|
615
733
|
{
|
|
616
734
|
"name": "horizontal",
|
|
617
735
|
"description": "Applies styles relevant to checkboxes in a horizontal layout.",
|
|
@@ -742,6 +860,11 @@
|
|
|
742
860
|
"description": "Draws a container around the checkbox.",
|
|
743
861
|
"type": "boolean"
|
|
744
862
|
},
|
|
863
|
+
{
|
|
864
|
+
"name": "borderless",
|
|
865
|
+
"description": "Removes a container around the checkbox.",
|
|
866
|
+
"type": "boolean"
|
|
867
|
+
},
|
|
745
868
|
{
|
|
746
869
|
"name": "horizontal",
|
|
747
870
|
"description": "Applies styles relevant to checkboxes in a horizontal layout.",
|
|
@@ -1009,6 +1132,14 @@
|
|
|
1009
1132
|
"doc-url": "",
|
|
1010
1133
|
"attributes": [
|
|
1011
1134
|
{ "name": "icon", "value": { "type": "string", "default": "''" } },
|
|
1135
|
+
{
|
|
1136
|
+
"name": "caption",
|
|
1137
|
+
"value": { "type": "string", "default": "''" }
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "icon-size",
|
|
1141
|
+
"value": { "type": "number", "default": "18" }
|
|
1142
|
+
},
|
|
1012
1143
|
{
|
|
1013
1144
|
"name": "type",
|
|
1014
1145
|
"value": {
|
|
@@ -1043,6 +1174,8 @@
|
|
|
1043
1174
|
"js": {
|
|
1044
1175
|
"properties": [
|
|
1045
1176
|
{ "name": "icon", "type": "string" },
|
|
1177
|
+
{ "name": "caption", "type": "string" },
|
|
1178
|
+
{ "name": "iconSize", "type": "number" },
|
|
1046
1179
|
{
|
|
1047
1180
|
"name": "type",
|
|
1048
1181
|
"type": "'info' | 'success' | 'warning' | 'error' | 'primary' |\n 'transparent' | 'custom' | 'neutral'"
|
|
@@ -1381,6 +1514,7 @@
|
|
|
1381
1514
|
"value": { "type": "string", "default": "''" }
|
|
1382
1515
|
},
|
|
1383
1516
|
{ "name": "src", "value": { "type": "string", "default": "''" } },
|
|
1517
|
+
{ "name": "size", "value": { "type": "number", "default": "24" } },
|
|
1384
1518
|
{
|
|
1385
1519
|
"name": "from",
|
|
1386
1520
|
"description": "An id that references an element in the same document from which data will be copied. If both this and `value` are\npresent, this value will take precedence. By default, the target element's `textContent` will be copied. To copy an\nattribute, append the attribute name wrapped in square brackets, e.g. `from=\"el[value]\"`. To copy a property,\nappend a dot and the property name, e.g. `from=\"el.value\"`.",
|
|
@@ -1405,6 +1539,7 @@
|
|
|
1405
1539
|
{ "name": "value", "type": "string" },
|
|
1406
1540
|
{ "name": "copyLabel", "type": "string" },
|
|
1407
1541
|
{ "name": "src", "type": "string" },
|
|
1542
|
+
{ "name": "size", "type": "number" },
|
|
1408
1543
|
{
|
|
1409
1544
|
"name": "from",
|
|
1410
1545
|
"description": "An id that references an element in the same document from which data will be copied. If both this and `value` are\npresent, this value will take precedence. By default, the target element's `textContent` will be copied. To copy an\nattribute, append the attribute name wrapped in square brackets, e.g. `from=\"el[value]\"`. To copy a property,\nappend a dot and the property name, e.g. `from=\"el.value\"`.",
|
|
@@ -1421,7 +1556,7 @@
|
|
|
1421
1556
|
},
|
|
1422
1557
|
{
|
|
1423
1558
|
"name": "zn-data-select",
|
|
1424
|
-
"description": "
|
|
1559
|
+
"description": "A select component with built-in data providers for common options like colors, currencies, and countries.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the select's value changes.\n- **zn-clear** - Emitted when the clear button is activated.\n- **blur** - Emitted when the select loses focus.\n\n### **Slots:**\n - **label** - The select's label. 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- **context-note** - Used to add contextual text that is displayed above the select, on the right. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Text that describes how to use the select. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **combobox** - The container that wraps the prefix, combobox, clear icon, and expand button (forwarded from zn-select).\n- **expand-icon** - The container that wraps the expand icon (forwarded from zn-select).\n- **form-control-help-text** - The help text's wrapper (forwarded from zn-select).\n- **form-control-input** - The select's wrapper (forwarded from zn-select).\n- **display-input** - The element that displays the selected option's label (forwarded from zn-select).",
|
|
1425
1560
|
"doc-url": "",
|
|
1426
1561
|
"attributes": [
|
|
1427
1562
|
{
|
|
@@ -1431,13 +1566,15 @@
|
|
|
1431
1566
|
},
|
|
1432
1567
|
{
|
|
1433
1568
|
"name": "value",
|
|
1434
|
-
"description": "The value of the select. Used for form submission.",
|
|
1435
|
-
"value": { "type": "string" }
|
|
1569
|
+
"description": "The value of the select. Used for form submission. When `multiple` is enabled, this is an array of strings.",
|
|
1570
|
+
"value": { "type": "string | string[]", "default": "''" }
|
|
1436
1571
|
},
|
|
1437
1572
|
{
|
|
1438
1573
|
"name": "provider",
|
|
1439
1574
|
"description": "The provider of the select.",
|
|
1440
|
-
"value": {
|
|
1575
|
+
"value": {
|
|
1576
|
+
"type": "'color' | 'currency' | 'country' | 'phone' | 'us-state'"
|
|
1577
|
+
}
|
|
1441
1578
|
},
|
|
1442
1579
|
{
|
|
1443
1580
|
"name": "icon-position",
|
|
@@ -1470,6 +1607,11 @@
|
|
|
1470
1607
|
"description": "Include an \"All\" option at the top.",
|
|
1471
1608
|
"value": { "type": "boolean", "default": "false" }
|
|
1472
1609
|
},
|
|
1610
|
+
{
|
|
1611
|
+
"name": "allow-common",
|
|
1612
|
+
"description": "Include a \"Common\" option that selects multiple common currencies.",
|
|
1613
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1614
|
+
},
|
|
1473
1615
|
{
|
|
1474
1616
|
"name": "label",
|
|
1475
1617
|
"description": "The selects label. If you need to display HTML, use the `label` slot instead.",
|
|
@@ -1500,6 +1642,11 @@
|
|
|
1500
1642
|
"description": "The selects required attribute.",
|
|
1501
1643
|
"value": { "type": "boolean", "default": "false" }
|
|
1502
1644
|
},
|
|
1645
|
+
{
|
|
1646
|
+
"name": "disabled",
|
|
1647
|
+
"description": "Disables the select.",
|
|
1648
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1649
|
+
},
|
|
1503
1650
|
{
|
|
1504
1651
|
"name": "icon-only",
|
|
1505
1652
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -1507,19 +1654,55 @@
|
|
|
1507
1654
|
{
|
|
1508
1655
|
"name": "multiple",
|
|
1509
1656
|
"value": { "type": "boolean", "default": "false" }
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "select-first",
|
|
1660
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"name": "distinct",
|
|
1664
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "conditional",
|
|
1668
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1510
1669
|
}
|
|
1511
1670
|
],
|
|
1512
1671
|
"slots": [
|
|
1513
|
-
{
|
|
1514
|
-
|
|
1672
|
+
{
|
|
1673
|
+
"name": "label",
|
|
1674
|
+
"description": "The select's label. Alternatively, you can use the `label` attribute."
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"name": "label-tooltip",
|
|
1678
|
+
"description": "Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute."
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"name": "context-note",
|
|
1682
|
+
"description": "Used to add contextual text that is displayed above the select, on the right. Alternatively, you can use the `context-note` attribute."
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"name": "help-text",
|
|
1686
|
+
"description": "Text that describes how to use the select. Alternatively, you can use the `help-text` attribute."
|
|
1687
|
+
}
|
|
1515
1688
|
],
|
|
1516
1689
|
"events": [
|
|
1517
|
-
{
|
|
1690
|
+
{
|
|
1691
|
+
"name": "zn-input",
|
|
1692
|
+
"description": "Emitted when the select's value changes."
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "zn-clear",
|
|
1696
|
+
"description": "Emitted when the clear button is activated."
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"name": "blur",
|
|
1700
|
+
"description": "Emitted when the select loses focus."
|
|
1701
|
+
}
|
|
1518
1702
|
],
|
|
1519
1703
|
"js": {
|
|
1520
1704
|
"properties": [
|
|
1521
1705
|
{ "name": "select", "type": "ZnSelect" },
|
|
1522
|
-
{ "name": "selectPrefix", "type": "HTMLElement" },
|
|
1523
1706
|
{
|
|
1524
1707
|
"name": "name",
|
|
1525
1708
|
"description": "The name of the select. Used for form submission.",
|
|
@@ -1527,13 +1710,13 @@
|
|
|
1527
1710
|
},
|
|
1528
1711
|
{
|
|
1529
1712
|
"name": "value",
|
|
1530
|
-
"description": "The value of the select. Used for form submission.",
|
|
1531
|
-
"type": "string"
|
|
1713
|
+
"description": "The value of the select. Used for form submission. When `multiple` is enabled, this is an array of strings.",
|
|
1714
|
+
"type": "string | string[]"
|
|
1532
1715
|
},
|
|
1533
1716
|
{
|
|
1534
1717
|
"name": "provider",
|
|
1535
1718
|
"description": "The provider of the select.",
|
|
1536
|
-
"type": "'color' | 'currency' | 'country' | 'phone'"
|
|
1719
|
+
"type": "'color' | 'currency' | 'country' | 'phone' | 'us-state'"
|
|
1537
1720
|
},
|
|
1538
1721
|
{
|
|
1539
1722
|
"name": "iconPosition",
|
|
@@ -1560,6 +1743,11 @@
|
|
|
1560
1743
|
"description": "Include an \"All\" option at the top.",
|
|
1561
1744
|
"type": "boolean"
|
|
1562
1745
|
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "allowCommon",
|
|
1748
|
+
"description": "Include a \"Common\" option that selects multiple common currencies.",
|
|
1749
|
+
"type": "boolean"
|
|
1750
|
+
},
|
|
1563
1751
|
{
|
|
1564
1752
|
"name": "label",
|
|
1565
1753
|
"description": "The selects label. If you need to display HTML, use the `label` slot instead.",
|
|
@@ -1590,8 +1778,16 @@
|
|
|
1590
1778
|
"description": "The selects required attribute.",
|
|
1591
1779
|
"type": "boolean"
|
|
1592
1780
|
},
|
|
1781
|
+
{
|
|
1782
|
+
"name": "disabled",
|
|
1783
|
+
"description": "Disables the select.",
|
|
1784
|
+
"type": "boolean"
|
|
1785
|
+
},
|
|
1593
1786
|
{ "name": "iconOnly", "type": "boolean" },
|
|
1594
1787
|
{ "name": "multiple", "type": "boolean" },
|
|
1788
|
+
{ "name": "selectFirst", "type": "boolean" },
|
|
1789
|
+
{ "name": "distinct", "type": "string" },
|
|
1790
|
+
{ "name": "conditional", "type": "string" },
|
|
1595
1791
|
{ "name": "validationMessage" },
|
|
1596
1792
|
{ "name": "validity", "type": "ValidityState" },
|
|
1597
1793
|
{ "name": "closeOnTab" },
|
|
@@ -1601,15 +1797,23 @@
|
|
|
1601
1797
|
],
|
|
1602
1798
|
"events": [
|
|
1603
1799
|
{
|
|
1604
|
-
"name": "zn-
|
|
1605
|
-
"description": "Emitted
|
|
1800
|
+
"name": "zn-input",
|
|
1801
|
+
"description": "Emitted when the select's value changes."
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"name": "zn-clear",
|
|
1805
|
+
"description": "Emitted when the clear button is activated."
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"name": "blur",
|
|
1809
|
+
"description": "Emitted when the select loses focus."
|
|
1606
1810
|
}
|
|
1607
1811
|
]
|
|
1608
1812
|
}
|
|
1609
1813
|
},
|
|
1610
1814
|
{
|
|
1611
1815
|
"name": "zn-data-table",
|
|
1612
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **
|
|
1816
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **search** - Slot for search component.\n- **sort** - Slot for sort component.\n- **filter** - Slot for filter component.\n- **filter-top** - Slot for top-level filter component.\n- **delete-action** - Slot for delete action button.\n- **modify-action** - Slot for modify action button.\n- **create-action** - Slot for create action button.\n- **inputs** - Slot for additional input controls.\n- **empty-state** - Slot for custom empty state.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1613
1817
|
"doc-url": "",
|
|
1614
1818
|
"attributes": [
|
|
1615
1819
|
{ "name": "data-uri", "value": { "type": "string" } },
|
|
@@ -1627,6 +1831,10 @@
|
|
|
1627
1831
|
"name": "filter",
|
|
1628
1832
|
"value": { "type": "string", "default": "''" }
|
|
1629
1833
|
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "search",
|
|
1836
|
+
"value": { "type": "string", "default": "''" }
|
|
1837
|
+
},
|
|
1630
1838
|
{ "name": "wide-column", "value": { "type": "string" } },
|
|
1631
1839
|
{ "name": "key", "value": { "type": "string", "default": "'id'" } },
|
|
1632
1840
|
{
|
|
@@ -1681,11 +1889,35 @@
|
|
|
1681
1889
|
],
|
|
1682
1890
|
"slots": [
|
|
1683
1891
|
{ "name": "", "description": "The default slot." },
|
|
1684
|
-
{ "name": "
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
{
|
|
1892
|
+
{ "name": "search", "description": "Slot for search component." },
|
|
1893
|
+
{ "name": "sort", "description": "Slot for sort component." },
|
|
1894
|
+
{ "name": "filter", "description": "Slot for filter component." },
|
|
1895
|
+
{
|
|
1896
|
+
"name": "filter-top",
|
|
1897
|
+
"description": "Slot for top-level filter component."
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
"name": "delete-action",
|
|
1901
|
+
"description": "Slot for delete action button."
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"name": "modify-action",
|
|
1905
|
+
"description": "Slot for modify action button."
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"name": "create-action",
|
|
1909
|
+
"description": "Slot for create action button."
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"name": "inputs",
|
|
1913
|
+
"description": "Slot for additional input controls."
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"name": "empty-state",
|
|
1917
|
+
"description": "Slot for custom empty state."
|
|
1918
|
+
}
|
|
1688
1919
|
],
|
|
1920
|
+
"events": [],
|
|
1689
1921
|
"js": {
|
|
1690
1922
|
"properties": [
|
|
1691
1923
|
{ "name": "dataUri", "type": "string" },
|
|
@@ -1694,6 +1926,7 @@
|
|
|
1694
1926
|
{ "name": "sortDirection", "type": "string" },
|
|
1695
1927
|
{ "name": "localSort", "type": "boolean" },
|
|
1696
1928
|
{ "name": "filter", "type": "string" },
|
|
1929
|
+
{ "name": "search", "type": "string" },
|
|
1697
1930
|
{ "name": "wideColumn", "type": "string" },
|
|
1698
1931
|
{ "name": "key", "type": "string" },
|
|
1699
1932
|
{ "name": "headers", "type": "Record<string, HeaderConfig>" },
|
|
@@ -1714,14 +1947,10 @@
|
|
|
1714
1947
|
{ "name": "groups", "type": "string" },
|
|
1715
1948
|
{ "name": "selectAllButton", "type": "ZnButton" },
|
|
1716
1949
|
{ "name": "requestParams", "type": "Record<string, any>" },
|
|
1717
|
-
{ "name": "
|
|
1950
|
+
{ "name": "filterChangeListener" },
|
|
1951
|
+
{ "name": "searchChangeListener" }
|
|
1718
1952
|
],
|
|
1719
|
-
"events": [
|
|
1720
|
-
{
|
|
1721
|
-
"name": "zn-event-name",
|
|
1722
|
-
"description": "Emitted as an example."
|
|
1723
|
-
}
|
|
1724
|
-
]
|
|
1953
|
+
"events": []
|
|
1725
1954
|
}
|
|
1726
1955
|
},
|
|
1727
1956
|
{
|
|
@@ -1766,35 +1995,128 @@
|
|
|
1766
1995
|
}
|
|
1767
1996
|
},
|
|
1768
1997
|
{
|
|
1769
|
-
"name": "zn-data-table-
|
|
1770
|
-
"description": "
|
|
1771
|
-
"doc-url": "",
|
|
1772
|
-
"attributes": [],
|
|
1773
|
-
"slots": [
|
|
1774
|
-
{ "name": "", "description": "The default slot." },
|
|
1775
|
-
{ "name": "example", "description": "An example slot." }
|
|
1776
|
-
],
|
|
1777
|
-
"events": [
|
|
1778
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
1779
|
-
],
|
|
1780
|
-
"js": {
|
|
1781
|
-
"properties": [],
|
|
1782
|
-
"events": [
|
|
1783
|
-
{
|
|
1784
|
-
"name": "zn-event-name",
|
|
1785
|
-
"description": "Emitted as an example."
|
|
1786
|
-
}
|
|
1787
|
-
]
|
|
1788
|
-
}
|
|
1789
|
-
},
|
|
1790
|
-
{
|
|
1791
|
-
"name": "zn-datepicker",
|
|
1792
|
-
"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 - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\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(message: _string_)** - 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 - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1998
|
+
"name": "zn-data-table-search",
|
|
1999
|
+
"description": "A search component for data tables.\n---\n\n\n### **Events:**\n - **zn-search-change** - Emitted when the search value changes (debounced).\n\n### **Methods:**\n - **getFormData(): _Record<string, any>_** - Collects form data from slotted input elements\n\n### **Slots:**\n - _default_ - The default slot for additional form inputs.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
1793
2000
|
"doc-url": "",
|
|
1794
2001
|
"attributes": [
|
|
1795
2002
|
{
|
|
1796
|
-
"name": "
|
|
1797
|
-
"
|
|
2003
|
+
"name": "name",
|
|
2004
|
+
"description": "The name of the search input field (default: \"search\").",
|
|
2005
|
+
"value": { "type": "string", "default": "\"search\"" }
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"name": "value",
|
|
2009
|
+
"description": "The current search value.",
|
|
2010
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"name": "placeholder",
|
|
2014
|
+
"description": "The placeholder text for the search input (default: \"Search...\").",
|
|
2015
|
+
"value": { "type": "string", "default": "\"Search...\"" }
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "help-text",
|
|
2019
|
+
"description": "Help text displayed below the search input.",
|
|
2020
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"name": "search-uri",
|
|
2024
|
+
"description": "Optional URI to use for search operations.",
|
|
2025
|
+
"value": { "type": "string" }
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"name": "debounce-delay",
|
|
2029
|
+
"description": "The delay in milliseconds before triggering a search (default: 500).",
|
|
2030
|
+
"value": { "type": "number", "default": "350" }
|
|
2031
|
+
}
|
|
2032
|
+
],
|
|
2033
|
+
"slots": [
|
|
2034
|
+
{
|
|
2035
|
+
"name": "",
|
|
2036
|
+
"description": "The default slot for additional form inputs."
|
|
2037
|
+
}
|
|
2038
|
+
],
|
|
2039
|
+
"events": [
|
|
2040
|
+
{
|
|
2041
|
+
"name": "zn-search-change",
|
|
2042
|
+
"description": "Emitted when the search value changes (debounced)."
|
|
2043
|
+
}
|
|
2044
|
+
],
|
|
2045
|
+
"js": {
|
|
2046
|
+
"properties": [
|
|
2047
|
+
{
|
|
2048
|
+
"name": "name",
|
|
2049
|
+
"description": "The name of the search input field (default: \"search\").",
|
|
2050
|
+
"type": "string"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"name": "value",
|
|
2054
|
+
"description": "The current search value.",
|
|
2055
|
+
"type": "string"
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"name": "placeholder",
|
|
2059
|
+
"description": "The placeholder text for the search input (default: \"Search...\").",
|
|
2060
|
+
"type": "string"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"name": "helpText",
|
|
2064
|
+
"description": "Help text displayed below the search input.",
|
|
2065
|
+
"type": "string"
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "searchUri",
|
|
2069
|
+
"description": "Optional URI to use for search operations.",
|
|
2070
|
+
"type": "string"
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
"name": "debounceDelay",
|
|
2074
|
+
"description": "The delay in milliseconds before triggering a search (default: 500).",
|
|
2075
|
+
"type": "number"
|
|
2076
|
+
},
|
|
2077
|
+
{ "name": "validationMessage", "type": "string" },
|
|
2078
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
2079
|
+
{ "name": "handleInput" },
|
|
2080
|
+
{ "name": "handleClear" }
|
|
2081
|
+
],
|
|
2082
|
+
"events": [
|
|
2083
|
+
{
|
|
2084
|
+
"name": "zn-search-change",
|
|
2085
|
+
"description": "Emitted when the search value changes (debounced)."
|
|
2086
|
+
}
|
|
2087
|
+
]
|
|
2088
|
+
}
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "zn-data-table-sort",
|
|
2092
|
+
"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.",
|
|
2093
|
+
"doc-url": "",
|
|
2094
|
+
"attributes": [],
|
|
2095
|
+
"slots": [
|
|
2096
|
+
{ "name": "", "description": "The default slot." },
|
|
2097
|
+
{ "name": "example", "description": "An example slot." }
|
|
2098
|
+
],
|
|
2099
|
+
"events": [
|
|
2100
|
+
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
2101
|
+
],
|
|
2102
|
+
"js": {
|
|
2103
|
+
"properties": [],
|
|
2104
|
+
"events": [
|
|
2105
|
+
{
|
|
2106
|
+
"name": "zn-event-name",
|
|
2107
|
+
"description": "Emitted as an example."
|
|
2108
|
+
}
|
|
2109
|
+
]
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"name": "zn-datepicker",
|
|
2114
|
+
"description": "A date picker component with calendar popup and input validation.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the date value changes.\n- **zn-input** - Emitted when the input value changes.\n- **zn-blur** - Emitted when the input loses focus.\n- **zn-focus** - Emitted when the input gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\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(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The datepicker's label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Tooltip content for the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Additional context text displayed above the input. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Help text displayed below the input. Alternatively, you can use the `help-text` attribute.\n- **prefix** - Content to display before the input (in addition to the default calendar icon).\n- **suffix** - Content to display after the input.\n\n### **CSS Properties:**\n - **--zn-input-*** - Inherited input component CSS custom properties. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label element.\n- **form-control-input** - The input wrapper.\n- **form-control-help-text** - The help text element.",
|
|
2115
|
+
"doc-url": "",
|
|
2116
|
+
"attributes": [
|
|
2117
|
+
{
|
|
2118
|
+
"name": "title",
|
|
2119
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1798
2120
|
},
|
|
1799
2121
|
{
|
|
1800
2122
|
"name": "name",
|
|
@@ -1854,23 +2176,89 @@
|
|
|
1854
2176
|
"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\nin the same document or shadow root for this to work.",
|
|
1855
2177
|
"value": { "type": "string" }
|
|
1856
2178
|
},
|
|
2179
|
+
{
|
|
2180
|
+
"name": "flush",
|
|
2181
|
+
"value": { "type": "boolean", "default": "false" }
|
|
2182
|
+
},
|
|
1857
2183
|
{
|
|
1858
2184
|
"name": "required",
|
|
1859
2185
|
"description": "Makes the input a required field.",
|
|
1860
2186
|
"value": { "type": "boolean", "default": "false" }
|
|
1861
2187
|
},
|
|
2188
|
+
{
|
|
2189
|
+
"name": "clearable",
|
|
2190
|
+
"description": "Adds a clear button to the calendar for removing a selected date. *",
|
|
2191
|
+
"value": { "type": "boolean", "default": "false" }
|
|
2192
|
+
},
|
|
1862
2193
|
{
|
|
1863
2194
|
"name": "range",
|
|
1864
2195
|
"description": "Makes the input a range picker. *",
|
|
1865
2196
|
"value": { "type": "boolean", "default": "false" }
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"name": "disable-past-dates",
|
|
2200
|
+
"description": "Disallows selecting past dates. *",
|
|
2201
|
+
"value": { "type": "boolean", "default": "false" }
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "min-date",
|
|
2205
|
+
"description": "Minimum date that can be selected. Overrides disable-past-dates if both are set. Accepts Date object or date string. *",
|
|
2206
|
+
"value": { "type": "string | Date | undefined" }
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"name": "max-date",
|
|
2210
|
+
"description": "Maximum date that can be selected. Accepts Date object or date string. *",
|
|
2211
|
+
"value": { "type": "string | Date | undefined" }
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"name": "format",
|
|
2215
|
+
"description": "Date format using AirDatepicker tokens. Default: 'dd/MM/yyyy' Supported formats: - dd/MM/yyyy (31/12/2024) - Default - MM/dd/yyyy (12/31/2024) - yyyy-MM-dd (2024-12-31) - dd-MM-yyyy (31-12-2024) - yyyy/MM/dd (2024/12/31)",
|
|
2216
|
+
"value": { "type": "string", "default": "'MM/dd/yyyy'" }
|
|
1866
2217
|
}
|
|
1867
2218
|
],
|
|
1868
2219
|
"slots": [
|
|
1869
|
-
{
|
|
1870
|
-
|
|
2220
|
+
{
|
|
2221
|
+
"name": "label",
|
|
2222
|
+
"description": "The datepicker's label. Alternatively, you can use the `label` attribute."
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"name": "label-tooltip",
|
|
2226
|
+
"description": "Tooltip content for the label. Alternatively, you can use the `label-tooltip` attribute."
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
"name": "context-note",
|
|
2230
|
+
"description": "Additional context text displayed above the input. Alternatively, you can use the `context-note` attribute."
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
"name": "help-text",
|
|
2234
|
+
"description": "Help text displayed below the input. Alternatively, you can use the `help-text` attribute."
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"name": "prefix",
|
|
2238
|
+
"description": "Content to display before the input (in addition to the default calendar icon)."
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
"name": "suffix",
|
|
2242
|
+
"description": "Content to display after the input."
|
|
2243
|
+
}
|
|
1871
2244
|
],
|
|
1872
2245
|
"events": [
|
|
1873
|
-
{
|
|
2246
|
+
{
|
|
2247
|
+
"name": "zn-change",
|
|
2248
|
+
"description": "Emitted when the date value changes."
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"name": "zn-input",
|
|
2252
|
+
"description": "Emitted when the input value changes."
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
"name": "zn-blur",
|
|
2256
|
+
"description": "Emitted when the input loses focus."
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"name": "zn-focus",
|
|
2260
|
+
"description": "Emitted when the input gains focus."
|
|
2261
|
+
}
|
|
1874
2262
|
],
|
|
1875
2263
|
"js": {
|
|
1876
2264
|
"properties": [
|
|
@@ -1936,16 +2324,42 @@
|
|
|
1936
2324
|
"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\nin the same document or shadow root for this to work.",
|
|
1937
2325
|
"type": "string"
|
|
1938
2326
|
},
|
|
2327
|
+
{ "name": "flush", "type": "boolean" },
|
|
1939
2328
|
{
|
|
1940
2329
|
"name": "required",
|
|
1941
2330
|
"description": "Makes the input a required field.",
|
|
1942
2331
|
"type": "boolean"
|
|
1943
2332
|
},
|
|
2333
|
+
{
|
|
2334
|
+
"name": "clearable",
|
|
2335
|
+
"description": "Adds a clear button to the calendar for removing a selected date. *",
|
|
2336
|
+
"type": "boolean"
|
|
2337
|
+
},
|
|
1944
2338
|
{
|
|
1945
2339
|
"name": "range",
|
|
1946
2340
|
"description": "Makes the input a range picker. *",
|
|
1947
2341
|
"type": "boolean"
|
|
1948
2342
|
},
|
|
2343
|
+
{
|
|
2344
|
+
"name": "disablePastDates",
|
|
2345
|
+
"description": "Disallows selecting past dates. *",
|
|
2346
|
+
"type": "boolean"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"name": "minDate",
|
|
2350
|
+
"description": "Minimum date that can be selected. Overrides disable-past-dates if both are set. Accepts Date object or date string. *",
|
|
2351
|
+
"type": "string | Date | undefined"
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"name": "maxDate",
|
|
2355
|
+
"description": "Maximum date that can be selected. Accepts Date object or date string. *",
|
|
2356
|
+
"type": "string | Date | undefined"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"name": "format",
|
|
2360
|
+
"description": "Date format using AirDatepicker tokens. Default: 'dd/MM/yyyy' Supported formats: - dd/MM/yyyy (31/12/2024) - Default - MM/dd/yyyy (12/31/2024) - yyyy-MM-dd (2024-12-31) - dd-MM-yyyy (31-12-2024) - yyyy/MM/dd (2024/12/31)",
|
|
2361
|
+
"type": "string"
|
|
2362
|
+
},
|
|
1949
2363
|
{
|
|
1950
2364
|
"name": "validity",
|
|
1951
2365
|
"description": "Gets the validity state object"
|
|
@@ -1957,8 +2371,20 @@
|
|
|
1957
2371
|
],
|
|
1958
2372
|
"events": [
|
|
1959
2373
|
{
|
|
1960
|
-
"name": "zn-
|
|
1961
|
-
"description": "Emitted
|
|
2374
|
+
"name": "zn-change",
|
|
2375
|
+
"description": "Emitted when the date value changes."
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"name": "zn-input",
|
|
2379
|
+
"description": "Emitted when the input value changes."
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
"name": "zn-blur",
|
|
2383
|
+
"description": "Emitted when the input loses focus."
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "zn-focus",
|
|
2387
|
+
"description": "Emitted when the input gains focus."
|
|
1962
2388
|
}
|
|
1963
2389
|
]
|
|
1964
2390
|
}
|
|
@@ -2037,7 +2463,7 @@
|
|
|
2037
2463
|
"name": "size",
|
|
2038
2464
|
"description": "The dialog's size.",
|
|
2039
2465
|
"value": {
|
|
2040
|
-
"type": "'small' | 'medium' | 'large'",
|
|
2466
|
+
"type": "'small' | 'medium' | 'large' | 'custom'",
|
|
2041
2467
|
"default": "'medium'"
|
|
2042
2468
|
}
|
|
2043
2469
|
},
|
|
@@ -2120,7 +2546,7 @@
|
|
|
2120
2546
|
{
|
|
2121
2547
|
"name": "size",
|
|
2122
2548
|
"description": "The dialog's size.",
|
|
2123
|
-
"type": "'small' | 'medium' | 'large'"
|
|
2549
|
+
"type": "'small' | 'medium' | 'large' | 'custom'"
|
|
2124
2550
|
},
|
|
2125
2551
|
{
|
|
2126
2552
|
"name": "open",
|
|
@@ -3020,6 +3446,14 @@
|
|
|
3020
3446
|
"name": "round",
|
|
3021
3447
|
"value": { "type": "boolean", "default": "false" }
|
|
3022
3448
|
},
|
|
3449
|
+
{
|
|
3450
|
+
"name": "tile",
|
|
3451
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
"name": "depth",
|
|
3455
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3456
|
+
},
|
|
3023
3457
|
{ "name": "library", "value": { "type": "IconLibrary" } },
|
|
3024
3458
|
{ "name": "color", "value": { "type": "IconColor" } },
|
|
3025
3459
|
{
|
|
@@ -3048,6 +3482,8 @@
|
|
|
3048
3482
|
{ "name": "alt", "type": "string" },
|
|
3049
3483
|
{ "name": "size", "type": "number" },
|
|
3050
3484
|
{ "name": "round", "type": "boolean" },
|
|
3485
|
+
{ "name": "tile", "type": "boolean" },
|
|
3486
|
+
{ "name": "depth", "type": "boolean" },
|
|
3051
3487
|
{ "name": "library", "type": "IconLibrary" },
|
|
3052
3488
|
{ "name": "color", "type": "IconColor" },
|
|
3053
3489
|
{ "name": "padded", "type": "boolean" },
|
|
@@ -3064,12 +3500,72 @@
|
|
|
3064
3500
|
]
|
|
3065
3501
|
}
|
|
3066
3502
|
},
|
|
3503
|
+
{
|
|
3504
|
+
"name": "zn-icon-picker",
|
|
3505
|
+
"description": "\n---\n",
|
|
3506
|
+
"doc-url": "",
|
|
3507
|
+
"attributes": [
|
|
3508
|
+
{ "name": "name", "value": { "type": "string", "default": "''" } },
|
|
3509
|
+
{ "name": "icon", "value": { "type": "string", "default": "''" } },
|
|
3510
|
+
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
3511
|
+
{
|
|
3512
|
+
"name": "library",
|
|
3513
|
+
"value": { "type": "string", "default": "'material'" }
|
|
3514
|
+
},
|
|
3515
|
+
{ "name": "color", "value": { "type": "string", "default": "''" } },
|
|
3516
|
+
{
|
|
3517
|
+
"name": "no-color",
|
|
3518
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"name": "no-library",
|
|
3522
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"name": "help-text",
|
|
3526
|
+
"value": { "type": "string", "default": "''" }
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
"name": "disabled",
|
|
3530
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "required",
|
|
3534
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3535
|
+
},
|
|
3536
|
+
{ "name": "form", "value": { "type": "string" } }
|
|
3537
|
+
],
|
|
3538
|
+
"events": [],
|
|
3539
|
+
"js": {
|
|
3540
|
+
"properties": [
|
|
3541
|
+
{ "name": "name", "type": "string" },
|
|
3542
|
+
{ "name": "icon", "type": "string" },
|
|
3543
|
+
{ "name": "label", "type": "string" },
|
|
3544
|
+
{ "name": "library", "type": "string" },
|
|
3545
|
+
{ "name": "color", "type": "string" },
|
|
3546
|
+
{ "name": "noColor", "type": "boolean" },
|
|
3547
|
+
{ "name": "noLibrary", "type": "boolean" },
|
|
3548
|
+
{ "name": "helpText", "type": "string" },
|
|
3549
|
+
{ "name": "disabled", "type": "boolean" },
|
|
3550
|
+
{ "name": "required", "type": "boolean" },
|
|
3551
|
+
{ "name": "form", "type": "string" },
|
|
3552
|
+
{ "name": "defaultValue", "type": "string" },
|
|
3553
|
+
{ "name": "value", "type": "string" },
|
|
3554
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
3555
|
+
{ "name": "validationMessage", "type": "string" }
|
|
3556
|
+
],
|
|
3557
|
+
"events": []
|
|
3558
|
+
}
|
|
3559
|
+
},
|
|
3067
3560
|
{
|
|
3068
3561
|
"name": "zn-inline-edit",
|
|
3069
|
-
"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_ -
|
|
3562
|
+
"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_ - Default slot. When `input-type` is `select`, accepts `zn-option` elements to define select options. If provided, takes precedence over the `options` property.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
3070
3563
|
"doc-url": "",
|
|
3071
3564
|
"attributes": [
|
|
3072
|
-
{
|
|
3565
|
+
{
|
|
3566
|
+
"name": "value",
|
|
3567
|
+
"value": { "type": "string | string[]", "default": "''" }
|
|
3568
|
+
},
|
|
3073
3569
|
{ "name": "name", "value": { "type": "string" } },
|
|
3074
3570
|
{ "name": "placeholder", "value": { "type": "string" } },
|
|
3075
3571
|
{ "name": "edit-text", "value": { "type": "string" } },
|
|
@@ -3085,10 +3581,15 @@
|
|
|
3085
3581
|
},
|
|
3086
3582
|
{ "name": "required", "value": { "type": "boolean" } },
|
|
3087
3583
|
{ "name": "pattern", "value": { "type": "string" } },
|
|
3584
|
+
{ "name": "multiple", "value": { "type": "boolean" } },
|
|
3585
|
+
{ "name": "clearable", "value": { "type": "boolean" } },
|
|
3586
|
+
{ "name": "min", "value": { "type": "string | number" } },
|
|
3587
|
+
{ "name": "max", "value": { "type": "string | number" } },
|
|
3588
|
+
{ "name": "step", "value": { "type": "number | 'any'" } },
|
|
3088
3589
|
{
|
|
3089
3590
|
"name": "input-type",
|
|
3090
3591
|
"value": {
|
|
3091
|
-
"type": "'select' | 'text' | 'data-select' | 'number'",
|
|
3592
|
+
"type": "'select' | 'text' | 'data-select' | 'number' | 'textarea'",
|
|
3092
3593
|
"default": "'text'"
|
|
3093
3594
|
}
|
|
3094
3595
|
},
|
|
@@ -3104,22 +3605,54 @@
|
|
|
3104
3605
|
"default": "'none'"
|
|
3105
3606
|
}
|
|
3106
3607
|
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "data-uri",
|
|
3610
|
+
"description": "The URL to fetch options from. When set , the component fetches JSON from this URL and renders the results as\noptions. The expected format is an array of objects with `key` and `value` properties:\n`[{\"key\": \"us\", \"value\": \"United States\"}, ...]`\nWhen not set, the component works exactly as before using slotted `<zn-option>` elements.\nOnly works with type select.",
|
|
3611
|
+
"value": { "type": "string" }
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
"name": "context-data",
|
|
3615
|
+
"description": "Context data to send as a header when fetching options from the URL specified by the `src` property.",
|
|
3616
|
+
"value": { "type": "string" }
|
|
3617
|
+
},
|
|
3618
|
+
{
|
|
3619
|
+
"name": "search",
|
|
3620
|
+
"description": "Enables search/filtering on select inputs.",
|
|
3621
|
+
"value": { "type": "boolean" }
|
|
3622
|
+
},
|
|
3107
3623
|
{
|
|
3108
3624
|
"name": "help-text",
|
|
3109
3625
|
"description": "The input's help text. If you need to display HTML, use the `help-text` slot instead. *",
|
|
3110
3626
|
"value": { "type": "string", "default": "''" }
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
"name": "dir",
|
|
3630
|
+
"description": "The text direction for the input (ltr or rtl) *",
|
|
3631
|
+
"value": { "type": "'ltr' | 'rtl' | 'auto'", "default": "'auto'" }
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
"name": "autocomplete",
|
|
3635
|
+
"description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
|
|
3636
|
+
"value": { "type": "string" }
|
|
3111
3637
|
}
|
|
3112
3638
|
],
|
|
3113
3639
|
"slots": [
|
|
3114
|
-
{
|
|
3115
|
-
|
|
3640
|
+
{
|
|
3641
|
+
"name": "",
|
|
3642
|
+
"description": "Default slot. When `input-type` is `select`, accepts `zn-option` elements to define select options. If provided, takes precedence over the `options` property."
|
|
3643
|
+
},
|
|
3644
|
+
{ "name": "example", "description": "An example slot." },
|
|
3645
|
+
{
|
|
3646
|
+
"name": "help-text",
|
|
3647
|
+
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute."
|
|
3648
|
+
}
|
|
3116
3649
|
],
|
|
3117
3650
|
"events": [
|
|
3118
3651
|
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
3119
3652
|
],
|
|
3120
3653
|
"js": {
|
|
3121
3654
|
"properties": [
|
|
3122
|
-
{ "name": "value", "type": "string" },
|
|
3655
|
+
{ "name": "value", "type": "string | string[]" },
|
|
3123
3656
|
{ "name": "name", "type": "string" },
|
|
3124
3657
|
{ "name": "placeholder", "type": "string" },
|
|
3125
3658
|
{ "name": "editText", "type": "string" },
|
|
@@ -3129,20 +3662,50 @@
|
|
|
3129
3662
|
{ "name": "size", "type": "'small' | 'medium' | 'large'" },
|
|
3130
3663
|
{ "name": "required", "type": "boolean" },
|
|
3131
3664
|
{ "name": "pattern", "type": "string" },
|
|
3665
|
+
{ "name": "multiple", "type": "boolean" },
|
|
3666
|
+
{ "name": "clearable", "type": "boolean" },
|
|
3667
|
+
{ "name": "min", "type": "string | number" },
|
|
3668
|
+
{ "name": "max", "type": "string | number" },
|
|
3669
|
+
{ "name": "step", "type": "number | 'any'" },
|
|
3132
3670
|
{
|
|
3133
3671
|
"name": "inputType",
|
|
3134
|
-
"type": "'select' | 'text' | 'data-select' | 'number'"
|
|
3672
|
+
"type": "'select' | 'text' | 'data-select' | 'number' | 'textarea'"
|
|
3135
3673
|
},
|
|
3136
3674
|
{ "name": "options", "type": "{ [key: string]: string }" },
|
|
3137
3675
|
{ "name": "selectProvider", "type": "string" },
|
|
3138
3676
|
{ "name": "iconPosition", "type": "'start' | 'end' | 'none'" },
|
|
3677
|
+
{
|
|
3678
|
+
"name": "dataUri",
|
|
3679
|
+
"description": "The URL to fetch options from. When set , the component fetches JSON from this URL and renders the results as\noptions. The expected format is an array of objects with `key` and `value` properties:\n`[{\"key\": \"us\", \"value\": \"United States\"}, ...]`\nWhen not set, the component works exactly as before using slotted `<zn-option>` elements.\nOnly works with type select.",
|
|
3680
|
+
"type": "string"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"name": "contextData",
|
|
3684
|
+
"description": "Context data to send as a header when fetching options from the URL specified by the `src` property.",
|
|
3685
|
+
"type": "string"
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
"name": "search",
|
|
3689
|
+
"description": "Enables search/filtering on select inputs.",
|
|
3690
|
+
"type": "boolean"
|
|
3691
|
+
},
|
|
3139
3692
|
{
|
|
3140
3693
|
"name": "helpText",
|
|
3141
3694
|
"description": "The input's help text. If you need to display HTML, use the `help-text` slot instead. *",
|
|
3142
3695
|
"type": "string"
|
|
3143
3696
|
},
|
|
3697
|
+
{
|
|
3698
|
+
"name": "dir",
|
|
3699
|
+
"description": "The text direction for the input (ltr or rtl) *",
|
|
3700
|
+
"type": "'ltr' | 'rtl' | 'auto'"
|
|
3701
|
+
},
|
|
3702
|
+
{
|
|
3703
|
+
"name": "autocomplete",
|
|
3704
|
+
"description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
|
|
3705
|
+
"type": "string"
|
|
3706
|
+
},
|
|
3144
3707
|
{ "name": "input", "type": "ZnInput | ZnSelect" },
|
|
3145
|
-
{ "name": "defaultValue", "type": "string" },
|
|
3708
|
+
{ "name": "defaultValue", "type": "string | string[]" },
|
|
3146
3709
|
{ "name": "validity", "type": "ValidityState" },
|
|
3147
3710
|
{ "name": "validationMessage", "type": "string" },
|
|
3148
3711
|
{ "name": "mouseEventHandler" },
|
|
@@ -3154,7 +3717,8 @@
|
|
|
3154
3717
|
{ "name": "handleSubmitClick" },
|
|
3155
3718
|
{ "name": "handleCancelClick" },
|
|
3156
3719
|
{ "name": "handleBlur" },
|
|
3157
|
-
{ "name": "handleInput" }
|
|
3720
|
+
{ "name": "handleInput" },
|
|
3721
|
+
{ "name": "handleSlotChange" }
|
|
3158
3722
|
],
|
|
3159
3723
|
"events": [
|
|
3160
3724
|
{
|
|
@@ -3177,7 +3741,7 @@
|
|
|
3177
3741
|
"name": "type",
|
|
3178
3742
|
"description": "The type of input. Works the same as native `<input>` element. But only a subset of types is supported. Defaults\nto `text`",
|
|
3179
3743
|
"value": {
|
|
3180
|
-
"type": "'currency' | 'date' | 'datetime-local' | 'email' | 'number' | 'password' |\n 'search' | 'tel' | 'text' | 'time' | 'url'",
|
|
3744
|
+
"type": "'color' | 'currency' | 'date' | 'datetime-local' | 'email' | 'number' | 'password' |\n 'search' | 'tel' | 'text' | 'time' | 'url'",
|
|
3181
3745
|
"default": "'text'"
|
|
3182
3746
|
}
|
|
3183
3747
|
},
|
|
@@ -3269,6 +3833,14 @@
|
|
|
3269
3833
|
"description": "Hides the browsers built-in increment/decrement spin buttons for number inputs *",
|
|
3270
3834
|
"value": { "type": "boolean", "default": "false" }
|
|
3271
3835
|
},
|
|
3836
|
+
{
|
|
3837
|
+
"name": "color-format",
|
|
3838
|
+
"description": "The color format to display for color inputs. Only applies when type is 'color'. *",
|
|
3839
|
+
"value": {
|
|
3840
|
+
"type": "'hex' | 'rgb' | 'hsl' | 'oklch'",
|
|
3841
|
+
"default": "'hex'"
|
|
3842
|
+
}
|
|
3843
|
+
},
|
|
3272
3844
|
{
|
|
3273
3845
|
"name": "form",
|
|
3274
3846
|
"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\nin the same document or shadow root for this to work.",
|
|
@@ -3418,11 +3990,12 @@
|
|
|
3418
3990
|
"js": {
|
|
3419
3991
|
"properties": [
|
|
3420
3992
|
{ "name": "input", "type": "HTMLInputElement" },
|
|
3993
|
+
{ "name": "colorPicker", "type": "HTMLInputElement" },
|
|
3421
3994
|
{ "name": "title", "type": "string" },
|
|
3422
3995
|
{
|
|
3423
3996
|
"name": "type",
|
|
3424
3997
|
"description": "The type of input. Works the same as native `<input>` element. But only a subset of types is supported. Defaults\nto `text`",
|
|
3425
|
-
"type": "'currency' | 'date' | 'datetime-local' | 'email' | 'number' | 'password' |\n 'search' | 'tel' | 'text' | 'time' | 'url'"
|
|
3998
|
+
"type": "'color' | 'currency' | 'date' | 'datetime-local' | 'email' | 'number' | 'password' |\n 'search' | 'tel' | 'text' | 'time' | 'url'"
|
|
3426
3999
|
},
|
|
3427
4000
|
{
|
|
3428
4001
|
"name": "name",
|
|
@@ -3514,6 +4087,11 @@
|
|
|
3514
4087
|
"description": "Hides the browsers built-in increment/decrement spin buttons for number inputs *",
|
|
3515
4088
|
"type": "boolean"
|
|
3516
4089
|
},
|
|
4090
|
+
{
|
|
4091
|
+
"name": "colorFormat",
|
|
4092
|
+
"description": "The color format to display for color inputs. Only applies when type is 'color'. *",
|
|
4093
|
+
"type": "'hex' | 'rgb' | 'hsl' | 'oklch'"
|
|
4094
|
+
},
|
|
3517
4095
|
{
|
|
3518
4096
|
"name": "form",
|
|
3519
4097
|
"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\nin the same document or shadow root for this to work.",
|
|
@@ -3643,6 +4221,11 @@
|
|
|
3643
4221
|
"name": "label",
|
|
3644
4222
|
"description": "The input group's label. If you need to display HTML, use the `label` slot.",
|
|
3645
4223
|
"value": { "type": "string", "default": "''" }
|
|
4224
|
+
},
|
|
4225
|
+
{
|
|
4226
|
+
"name": "gap",
|
|
4227
|
+
"description": "Adds a gap between the grouped elements, preserving individual border radii. Use `sm`, `md`, or `lg`.",
|
|
4228
|
+
"value": { "type": "'sm' | 'md' | 'lg'" }
|
|
3646
4229
|
}
|
|
3647
4230
|
],
|
|
3648
4231
|
"slots": [
|
|
@@ -3663,6 +4246,11 @@
|
|
|
3663
4246
|
"name": "label",
|
|
3664
4247
|
"description": "The input group's label. If you need to display HTML, use the `label` slot.",
|
|
3665
4248
|
"type": "string"
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
"name": "gap",
|
|
4252
|
+
"description": "Adds a gap between the grouped elements, preserving individual border radii. Use `sm`, `md`, or `lg`.",
|
|
4253
|
+
"type": "'sm' | 'md' | 'lg'"
|
|
3666
4254
|
}
|
|
3667
4255
|
],
|
|
3668
4256
|
"events": []
|
|
@@ -3684,6 +4272,7 @@
|
|
|
3684
4272
|
}
|
|
3685
4273
|
},
|
|
3686
4274
|
{ "name": "edit-on-hover", "value": { "type": "boolean" } },
|
|
4275
|
+
{ "name": "help-tooltip", "value": { "type": "string" } },
|
|
3687
4276
|
{ "name": "icon", "value": { "type": "string" } },
|
|
3688
4277
|
{ "name": "value", "value": { "type": "string" } },
|
|
3689
4278
|
{ "name": "inline", "value": { "type": "boolean" } },
|
|
@@ -3710,6 +4299,7 @@
|
|
|
3710
4299
|
{ "name": "stacked", "type": "boolean" },
|
|
3711
4300
|
{ "name": "size", "type": "'small' | 'medium' | 'large'" },
|
|
3712
4301
|
{ "name": "editOnHover", "type": "boolean" },
|
|
4302
|
+
{ "name": "helpTooltip", "type": "string" },
|
|
3713
4303
|
{ "name": "icon", "type": "string" },
|
|
3714
4304
|
{ "name": "value", "type": "string" },
|
|
3715
4305
|
{ "name": "inline", "type": "boolean" },
|
|
@@ -3721,6 +4311,115 @@
|
|
|
3721
4311
|
"events": []
|
|
3722
4312
|
}
|
|
3723
4313
|
},
|
|
4314
|
+
{
|
|
4315
|
+
"name": "zn-key",
|
|
4316
|
+
"description": "A legend key item, typically used alongside charts to label and toggle visibility of data series by category.\n---\n\n\n### **Slots:**\n - _default_ - The description of the key.",
|
|
4317
|
+
"doc-url": "",
|
|
4318
|
+
"attributes": [
|
|
4319
|
+
{ "name": "icon", "value": { "type": "string", "default": "''" } },
|
|
4320
|
+
{
|
|
4321
|
+
"name": "attribute",
|
|
4322
|
+
"value": { "type": "string", "default": "''" }
|
|
4323
|
+
},
|
|
4324
|
+
{ "name": "value", "value": { "type": "string", "default": "''" } },
|
|
4325
|
+
{
|
|
4326
|
+
"name": "color",
|
|
4327
|
+
"value": {
|
|
4328
|
+
"type": "'primary' | 'success' | 'warning' | 'error' | 'info' | 'neutral'",
|
|
4329
|
+
"default": "'primary'"
|
|
4330
|
+
}
|
|
4331
|
+
},
|
|
4332
|
+
{
|
|
4333
|
+
"name": "active",
|
|
4334
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4335
|
+
},
|
|
4336
|
+
{
|
|
4337
|
+
"name": "icon-size",
|
|
4338
|
+
"value": { "type": "number", "default": "24" }
|
|
4339
|
+
}
|
|
4340
|
+
],
|
|
4341
|
+
"slots": [
|
|
4342
|
+
{ "name": "", "description": "The description of the key." }
|
|
4343
|
+
],
|
|
4344
|
+
"events": [],
|
|
4345
|
+
"js": {
|
|
4346
|
+
"properties": [
|
|
4347
|
+
{ "name": "icon", "type": "string" },
|
|
4348
|
+
{ "name": "attribute", "type": "string" },
|
|
4349
|
+
{ "name": "value", "type": "string" },
|
|
4350
|
+
{
|
|
4351
|
+
"name": "color",
|
|
4352
|
+
"type": "'primary' | 'success' | 'warning' | 'error' | 'info' | 'neutral'"
|
|
4353
|
+
},
|
|
4354
|
+
{ "name": "active", "type": "boolean" },
|
|
4355
|
+
{ "name": "iconSize", "type": "number" }
|
|
4356
|
+
],
|
|
4357
|
+
"events": []
|
|
4358
|
+
}
|
|
4359
|
+
},
|
|
4360
|
+
{
|
|
4361
|
+
"name": "zn-key-container",
|
|
4362
|
+
"description": "A legend container that manages key items, typically used alongside charts to toggle visibility of data series by category.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the set of active keys changes.\n\n### **Slots:**\n - _default_ - The content to be filtered.\n- **keys** - The key items (zn-key) that define the filters.",
|
|
4363
|
+
"doc-url": "",
|
|
4364
|
+
"attributes": [
|
|
4365
|
+
{
|
|
4366
|
+
"name": "position",
|
|
4367
|
+
"value": {
|
|
4368
|
+
"type": "'top-end' | 'top-start' | 'bottom-end' | 'bottom-start'",
|
|
4369
|
+
"default": "'bottom-start'"
|
|
4370
|
+
}
|
|
4371
|
+
},
|
|
4372
|
+
{
|
|
4373
|
+
"name": "target",
|
|
4374
|
+
"value": { "type": "string", "default": "''" }
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"name": "item-selector",
|
|
4378
|
+
"value": { "type": "string", "default": "'[data-type]'" }
|
|
4379
|
+
},
|
|
4380
|
+
{
|
|
4381
|
+
"name": "filter-attribute",
|
|
4382
|
+
"value": { "type": "string", "default": "''" }
|
|
4383
|
+
},
|
|
4384
|
+
{
|
|
4385
|
+
"name": "no-scroll",
|
|
4386
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4387
|
+
}
|
|
4388
|
+
],
|
|
4389
|
+
"slots": [
|
|
4390
|
+
{ "name": "", "description": "The content to be filtered." },
|
|
4391
|
+
{
|
|
4392
|
+
"name": "keys",
|
|
4393
|
+
"description": "The key items (zn-key) that define the filters."
|
|
4394
|
+
}
|
|
4395
|
+
],
|
|
4396
|
+
"events": [
|
|
4397
|
+
{
|
|
4398
|
+
"name": "zn-change",
|
|
4399
|
+
"description": "Emitted when the set of active keys changes."
|
|
4400
|
+
}
|
|
4401
|
+
],
|
|
4402
|
+
"js": {
|
|
4403
|
+
"properties": [
|
|
4404
|
+
{ "name": "keysSlot", "type": "HTMLSlotElement" },
|
|
4405
|
+
{ "name": "defaultSlot", "type": "HTMLSlotElement" },
|
|
4406
|
+
{
|
|
4407
|
+
"name": "position",
|
|
4408
|
+
"type": "'top-end' | 'top-start' | 'bottom-end' | 'bottom-start'"
|
|
4409
|
+
},
|
|
4410
|
+
{ "name": "target", "type": "string" },
|
|
4411
|
+
{ "name": "itemSelector", "type": "string" },
|
|
4412
|
+
{ "name": "filterAttribute", "type": "string" },
|
|
4413
|
+
{ "name": "noScroll", "type": "boolean" }
|
|
4414
|
+
],
|
|
4415
|
+
"events": [
|
|
4416
|
+
{
|
|
4417
|
+
"name": "zn-change",
|
|
4418
|
+
"description": "Emitted when the set of active keys changes."
|
|
4419
|
+
}
|
|
4420
|
+
]
|
|
4421
|
+
}
|
|
4422
|
+
},
|
|
3724
4423
|
{
|
|
3725
4424
|
"name": "zn-linked-select",
|
|
3726
4425
|
"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.",
|
|
@@ -3865,6 +4564,31 @@
|
|
|
3865
4564
|
{
|
|
3866
4565
|
"name": "confirm",
|
|
3867
4566
|
"value": { "type": "boolean", "default": "false" }
|
|
4567
|
+
},
|
|
4568
|
+
{
|
|
4569
|
+
"name": "flush",
|
|
4570
|
+
"description": "Removes all padding from the menu item.",
|
|
4571
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
"name": "flush-x",
|
|
4575
|
+
"description": "Removes horizontal (left/right) padding only. Ignored if flush is set.",
|
|
4576
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
"name": "flush-y",
|
|
4580
|
+
"description": "Removes vertical (top/bottom) padding only. Ignored if flush is set.",
|
|
4581
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
"name": "no-border",
|
|
4585
|
+
"description": "Removes the border from the menu item.",
|
|
4586
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4587
|
+
},
|
|
4588
|
+
{
|
|
4589
|
+
"name": "active",
|
|
4590
|
+
"description": "Marks the menu item as currently active/selected.",
|
|
4591
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3868
4592
|
}
|
|
3869
4593
|
],
|
|
3870
4594
|
"slots": [
|
|
@@ -3914,7 +4638,32 @@
|
|
|
3914
4638
|
{ "name": "dataTarget", "type": "'modal' | 'slide' | string" },
|
|
3915
4639
|
{ "name": "rel", "type": "string" },
|
|
3916
4640
|
{ "name": "gaid", "type": "string" },
|
|
3917
|
-
{ "name": "confirm", "type": "boolean" }
|
|
4641
|
+
{ "name": "confirm", "type": "boolean" },
|
|
4642
|
+
{
|
|
4643
|
+
"name": "flush",
|
|
4644
|
+
"description": "Removes all padding from the menu item.",
|
|
4645
|
+
"type": "boolean"
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
"name": "flushX",
|
|
4649
|
+
"description": "Removes horizontal (left/right) padding only. Ignored if flush is set.",
|
|
4650
|
+
"type": "boolean"
|
|
4651
|
+
},
|
|
4652
|
+
{
|
|
4653
|
+
"name": "flushY",
|
|
4654
|
+
"description": "Removes vertical (top/bottom) padding only. Ignored if flush is set.",
|
|
4655
|
+
"type": "boolean"
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
"name": "noBorder",
|
|
4659
|
+
"description": "Removes the border from the menu item.",
|
|
4660
|
+
"type": "boolean"
|
|
4661
|
+
},
|
|
4662
|
+
{
|
|
4663
|
+
"name": "active",
|
|
4664
|
+
"description": "Marks the menu item as currently active/selected.",
|
|
4665
|
+
"type": "boolean"
|
|
4666
|
+
}
|
|
3918
4667
|
],
|
|
3919
4668
|
"events": [
|
|
3920
4669
|
{
|
|
@@ -3956,6 +4705,16 @@
|
|
|
3956
4705
|
"name": "isolated",
|
|
3957
4706
|
"value": { "type": "boolean", "default": "false" }
|
|
3958
4707
|
},
|
|
4708
|
+
{ "name": "master-id", "value": { "type": "string" } },
|
|
4709
|
+
{
|
|
4710
|
+
"name": "store-key",
|
|
4711
|
+
"value": { "type": "string", "default": "''" }
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
"name": "store-ttl",
|
|
4715
|
+
"value": { "type": "number", "default": "0" }
|
|
4716
|
+
},
|
|
4717
|
+
{ "name": "local-storage", "value": { "type": "boolean" } },
|
|
3959
4718
|
{ "name": "_appended", "value": { "type": "Element[]" } }
|
|
3960
4719
|
],
|
|
3961
4720
|
"slots": [
|
|
@@ -3979,6 +4738,10 @@
|
|
|
3979
4738
|
{ "name": "noPad", "type": "false" },
|
|
3980
4739
|
{ "name": "manualAddItems", "type": "boolean" },
|
|
3981
4740
|
{ "name": "isolated", "type": "boolean" },
|
|
4741
|
+
{ "name": "masterId", "type": "string" },
|
|
4742
|
+
{ "name": "storeKey", "type": "string" },
|
|
4743
|
+
{ "name": "storeTtl", "type": "number" },
|
|
4744
|
+
{ "name": "localStorage", "type": "boolean" },
|
|
3982
4745
|
{ "name": "handleResize" }
|
|
3983
4746
|
],
|
|
3984
4747
|
"events": [
|
|
@@ -4025,6 +4788,45 @@
|
|
|
4025
4788
|
]
|
|
4026
4789
|
}
|
|
4027
4790
|
},
|
|
4791
|
+
{
|
|
4792
|
+
"name": "zn-opt-group",
|
|
4793
|
+
"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.",
|
|
4794
|
+
"doc-url": "",
|
|
4795
|
+
"attributes": [
|
|
4796
|
+
{
|
|
4797
|
+
"name": "label",
|
|
4798
|
+
"description": "The label for the opt-group, displayed as a non-selectable header above the grouped options.",
|
|
4799
|
+
"value": { "type": "string", "default": "''" }
|
|
4800
|
+
},
|
|
4801
|
+
{
|
|
4802
|
+
"name": "disabled",
|
|
4803
|
+
"description": "Disables all options within the group.",
|
|
4804
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4805
|
+
}
|
|
4806
|
+
],
|
|
4807
|
+
"slots": [
|
|
4808
|
+
{
|
|
4809
|
+
"name": "",
|
|
4810
|
+
"description": "The default slot for `<zn-option>` elements."
|
|
4811
|
+
}
|
|
4812
|
+
],
|
|
4813
|
+
"events": [],
|
|
4814
|
+
"js": {
|
|
4815
|
+
"properties": [
|
|
4816
|
+
{
|
|
4817
|
+
"name": "label",
|
|
4818
|
+
"description": "The label for the opt-group, displayed as a non-selectable header above the grouped options.",
|
|
4819
|
+
"type": "string"
|
|
4820
|
+
},
|
|
4821
|
+
{
|
|
4822
|
+
"name": "disabled",
|
|
4823
|
+
"description": "Disables all options within the group.",
|
|
4824
|
+
"type": "boolean"
|
|
4825
|
+
}
|
|
4826
|
+
],
|
|
4827
|
+
"events": []
|
|
4828
|
+
}
|
|
4829
|
+
},
|
|
4028
4830
|
{
|
|
4029
4831
|
"name": "zn-option",
|
|
4030
4832
|
"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.",
|
|
@@ -4032,7 +4834,7 @@
|
|
|
4032
4834
|
"attributes": [
|
|
4033
4835
|
{
|
|
4034
4836
|
"name": "value",
|
|
4035
|
-
"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
|
|
4837
|
+
"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.",
|
|
4036
4838
|
"value": { "type": "string", "default": "''" }
|
|
4037
4839
|
},
|
|
4038
4840
|
{
|
|
@@ -4065,7 +4867,7 @@
|
|
|
4065
4867
|
{ "name": "hasHover", "type": "boolean" },
|
|
4066
4868
|
{
|
|
4067
4869
|
"name": "value",
|
|
4068
|
-
"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
|
|
4870
|
+
"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.",
|
|
4069
4871
|
"type": "string"
|
|
4070
4872
|
},
|
|
4071
4873
|
{
|
|
@@ -4250,7 +5052,7 @@
|
|
|
4250
5052
|
},
|
|
4251
5053
|
{
|
|
4252
5054
|
"name": "zn-panel",
|
|
4253
|
-
"description": "
|
|
5055
|
+
"description": "Panels are versatile containers that provide structure for organizing content with optional headers and footers.\n---\n\n\n### **Slots:**\n - _default_ - The panel's main content.\n- **actions** - Actions displayed in the panel header (buttons, chips, etc).\n- **footer** - Content displayed in the panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
4254
5056
|
"doc-url": "",
|
|
4255
5057
|
"attributes": [
|
|
4256
5058
|
{ "name": "basis-px", "value": { "type": "number" } },
|
|
@@ -4268,9 +5070,15 @@
|
|
|
4268
5070
|
{ "name": "shadow", "value": { "type": "boolean" } }
|
|
4269
5071
|
],
|
|
4270
5072
|
"slots": [
|
|
4271
|
-
{ "name": "", "description": "The
|
|
4272
|
-
{
|
|
4273
|
-
|
|
5073
|
+
{ "name": "", "description": "The panel's main content." },
|
|
5074
|
+
{
|
|
5075
|
+
"name": "actions",
|
|
5076
|
+
"description": "Actions displayed in the panel header (buttons, chips, etc)."
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
"name": "footer",
|
|
5080
|
+
"description": "Content displayed in the panel footer."
|
|
5081
|
+
}
|
|
4274
5082
|
],
|
|
4275
5083
|
"events": [],
|
|
4276
5084
|
"js": {
|
|
@@ -4551,9 +5359,193 @@
|
|
|
4551
5359
|
]
|
|
4552
5360
|
}
|
|
4553
5361
|
},
|
|
5362
|
+
{
|
|
5363
|
+
"name": "zn-priority-list",
|
|
5364
|
+
"description": "A reorderable list where each item receives a numerical priority based on its position. Supports drag-and-drop\nand keyboard reordering. Priority values are submitted as form data via hidden inputs.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the order of items changes.\n- **zn-reorder** - Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array.\n\n### **Methods:**\n - **getPriorityMap(): _PriorityItem[]_** - Returns the priority map: an array of { key, priority } objects.\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\n### **Slots:**\n - _default_ - The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing).\n- **label** - The component's label. Required for proper accessibility. Alternatively, use the `label` attribute.\n- **label-tooltip** - Used to add text displayed in a tooltip next to the label.\n- **help-text** - Text that describes how to use the component. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-priority-list-item-gap** - The gap between list items. Defaults to `var(--zn-spacing-2x-small)`. _(default: undefined)_\n- **--zn-priority-list-item-padding** - The padding inside each item. Defaults to `var(--zn-spacing-small) var(--zn-spacing-medium)`. _(default: undefined)_\n- **--zn-priority-list-handle-color** - The color of the drag handle. Defaults to `var(--zn-color-neutral-500)`. _(default: undefined)_\n- **--zn-priority-list-priority-color** - The color of the priority number. Defaults to `var(--zn-color-neutral-600)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control wrapper.\n- **form-control-label** - The label wrapper.\n- **form-control-input** - The input area wrapper.\n- **form-control-help-text** - The help text wrapper.\n- **list** - The list container.\n- **item** - An individual list item row.\n- **drag-handle** - The drag handle icon.\n- **priority** - The priority number badge.\n- **content** - The content area of an item.",
|
|
5365
|
+
"doc-url": "",
|
|
5366
|
+
"attributes": [
|
|
5367
|
+
{
|
|
5368
|
+
"name": "name",
|
|
5369
|
+
"description": "The name prefix for form submission. Each item generates a hidden input named `{name}[{itemValue}]`\nwith the priority number as its value.",
|
|
5370
|
+
"value": { "type": "string", "default": "''" }
|
|
5371
|
+
},
|
|
5372
|
+
{
|
|
5373
|
+
"name": "value",
|
|
5374
|
+
"description": "The current ordered list of item keys, reflecting the visual order. This is the source of truth for ordering.\nEach entry should match a `value` attribute on a slotted child element.",
|
|
5375
|
+
"value": { "type": "string[]" }
|
|
5376
|
+
},
|
|
5377
|
+
{
|
|
5378
|
+
"name": "label",
|
|
5379
|
+
"description": "The component's label. Required for proper accessibility.",
|
|
5380
|
+
"value": { "type": "string", "default": "''" }
|
|
5381
|
+
},
|
|
5382
|
+
{
|
|
5383
|
+
"name": "label-tooltip",
|
|
5384
|
+
"description": "Text that appears in a tooltip next to the label.",
|
|
5385
|
+
"value": { "type": "string", "default": "''" }
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"name": "help-text",
|
|
5389
|
+
"description": "Help text that describes how to use the component.",
|
|
5390
|
+
"value": { "type": "string", "default": "''" }
|
|
5391
|
+
},
|
|
5392
|
+
{
|
|
5393
|
+
"name": "form",
|
|
5394
|
+
"description": "Associates the control with a form by id. The form must be in the same document or shadow root.",
|
|
5395
|
+
"value": { "type": "string", "default": "''" }
|
|
5396
|
+
},
|
|
5397
|
+
{
|
|
5398
|
+
"name": "size",
|
|
5399
|
+
"description": "The size of the list items.",
|
|
5400
|
+
"value": {
|
|
5401
|
+
"type": "'small' | 'medium' | 'large'",
|
|
5402
|
+
"default": "'medium'"
|
|
5403
|
+
}
|
|
5404
|
+
},
|
|
5405
|
+
{
|
|
5406
|
+
"name": "disabled",
|
|
5407
|
+
"description": "Whether the priority list is disabled.",
|
|
5408
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5409
|
+
},
|
|
5410
|
+
{
|
|
5411
|
+
"name": "required",
|
|
5412
|
+
"description": "Ensures the form control has a value before allowing submission.",
|
|
5413
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5414
|
+
},
|
|
5415
|
+
{
|
|
5416
|
+
"name": "priority-start",
|
|
5417
|
+
"description": "The starting priority number. Defaults to 1.",
|
|
5418
|
+
"value": { "type": "number", "default": "1" }
|
|
5419
|
+
},
|
|
5420
|
+
{
|
|
5421
|
+
"name": "formaction",
|
|
5422
|
+
"description": "When set, the associated form will be submitted with the given action URL whenever items are reordered.\nIf set to an empty string, the form will be submitted using its existing action.",
|
|
5423
|
+
"value": { "type": "string" }
|
|
5424
|
+
},
|
|
5425
|
+
{
|
|
5426
|
+
"name": "order",
|
|
5427
|
+
"description": "A comma-separated list of item keys defining the initial display order.\nKeys must match the `value` attributes on slotted children.\nAny slotted items not listed are appended at the end in DOM order.",
|
|
5428
|
+
"value": { "type": "string", "default": "''" }
|
|
5429
|
+
}
|
|
5430
|
+
],
|
|
5431
|
+
"slots": [
|
|
5432
|
+
{
|
|
5433
|
+
"name": "",
|
|
5434
|
+
"description": "The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing)."
|
|
5435
|
+
},
|
|
5436
|
+
{
|
|
5437
|
+
"name": "label",
|
|
5438
|
+
"description": "The component's label. Required for proper accessibility. Alternatively, use the `label` attribute."
|
|
5439
|
+
},
|
|
5440
|
+
{
|
|
5441
|
+
"name": "label-tooltip",
|
|
5442
|
+
"description": "Used to add text displayed in a tooltip next to the label."
|
|
5443
|
+
},
|
|
5444
|
+
{
|
|
5445
|
+
"name": "help-text",
|
|
5446
|
+
"description": "Text that describes how to use the component. Alternatively, use the `help-text` attribute."
|
|
5447
|
+
}
|
|
5448
|
+
],
|
|
5449
|
+
"events": [
|
|
5450
|
+
{
|
|
5451
|
+
"name": "zn-change",
|
|
5452
|
+
"description": "Emitted when the order of items changes."
|
|
5453
|
+
},
|
|
5454
|
+
{
|
|
5455
|
+
"name": "zn-reorder",
|
|
5456
|
+
"description": "Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array."
|
|
5457
|
+
}
|
|
5458
|
+
],
|
|
5459
|
+
"js": {
|
|
5460
|
+
"properties": [
|
|
5461
|
+
{ "name": "hiddenInputsContainer", "type": "HTMLDivElement" },
|
|
5462
|
+
{
|
|
5463
|
+
"name": "name",
|
|
5464
|
+
"description": "The name prefix for form submission. Each item generates a hidden input named `{name}[{itemValue}]`\nwith the priority number as its value.",
|
|
5465
|
+
"type": "string"
|
|
5466
|
+
},
|
|
5467
|
+
{
|
|
5468
|
+
"name": "value",
|
|
5469
|
+
"description": "The current ordered list of item keys, reflecting the visual order. This is the source of truth for ordering.\nEach entry should match a `value` attribute on a slotted child element.",
|
|
5470
|
+
"type": "string[]"
|
|
5471
|
+
},
|
|
5472
|
+
{ "name": "defaultValue", "type": "string[]" },
|
|
5473
|
+
{
|
|
5474
|
+
"name": "label",
|
|
5475
|
+
"description": "The component's label. Required for proper accessibility.",
|
|
5476
|
+
"type": "string"
|
|
5477
|
+
},
|
|
5478
|
+
{
|
|
5479
|
+
"name": "labelTooltip",
|
|
5480
|
+
"description": "Text that appears in a tooltip next to the label.",
|
|
5481
|
+
"type": "string"
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
"name": "helpText",
|
|
5485
|
+
"description": "Help text that describes how to use the component.",
|
|
5486
|
+
"type": "string"
|
|
5487
|
+
},
|
|
5488
|
+
{
|
|
5489
|
+
"name": "form",
|
|
5490
|
+
"description": "Associates the control with a form by id. The form must be in the same document or shadow root.",
|
|
5491
|
+
"type": "string"
|
|
5492
|
+
},
|
|
5493
|
+
{
|
|
5494
|
+
"name": "size",
|
|
5495
|
+
"description": "The size of the list items.",
|
|
5496
|
+
"type": "'small' | 'medium' | 'large'"
|
|
5497
|
+
},
|
|
5498
|
+
{
|
|
5499
|
+
"name": "disabled",
|
|
5500
|
+
"description": "Whether the priority list is disabled.",
|
|
5501
|
+
"type": "boolean"
|
|
5502
|
+
},
|
|
5503
|
+
{
|
|
5504
|
+
"name": "required",
|
|
5505
|
+
"description": "Ensures the form control has a value before allowing submission.",
|
|
5506
|
+
"type": "boolean"
|
|
5507
|
+
},
|
|
5508
|
+
{
|
|
5509
|
+
"name": "priorityStart",
|
|
5510
|
+
"description": "The starting priority number. Defaults to 1.",
|
|
5511
|
+
"type": "number"
|
|
5512
|
+
},
|
|
5513
|
+
{
|
|
5514
|
+
"name": "formAction",
|
|
5515
|
+
"description": "When set, the associated form will be submitted with the given action URL whenever items are reordered.\nIf set to an empty string, the form will be submitted using its existing action.",
|
|
5516
|
+
"type": "string"
|
|
5517
|
+
},
|
|
5518
|
+
{
|
|
5519
|
+
"name": "order",
|
|
5520
|
+
"description": "A comma-separated list of item keys defining the initial display order.\nKeys must match the `value` attributes on slotted children.\nAny slotted items not listed are appended at the end in DOM order.",
|
|
5521
|
+
"type": "string"
|
|
5522
|
+
},
|
|
5523
|
+
{
|
|
5524
|
+
"name": "validity",
|
|
5525
|
+
"description": "Gets the validity state object.",
|
|
5526
|
+
"type": "ValidityState"
|
|
5527
|
+
},
|
|
5528
|
+
{
|
|
5529
|
+
"name": "validationMessage",
|
|
5530
|
+
"description": "Gets the validation message.",
|
|
5531
|
+
"type": "string"
|
|
5532
|
+
}
|
|
5533
|
+
],
|
|
5534
|
+
"events": [
|
|
5535
|
+
{
|
|
5536
|
+
"name": "zn-change",
|
|
5537
|
+
"description": "Emitted when the order of items changes."
|
|
5538
|
+
},
|
|
5539
|
+
{
|
|
5540
|
+
"name": "zn-reorder",
|
|
5541
|
+
"description": "Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array."
|
|
5542
|
+
}
|
|
5543
|
+
]
|
|
5544
|
+
}
|
|
5545
|
+
},
|
|
4554
5546
|
{
|
|
4555
5547
|
"name": "zn-progress-bar",
|
|
4556
|
-
"description": "
|
|
5548
|
+
"description": "Progress bars provide visual feedback about the completion status of a task or process.\n---\n\n\n### **CSS Properties:**\n - **--zn-border-color** - The color of the progress bar background track. _(default: undefined)_\n- **--zn-primary** - The color of the progress bar fill. _(default: undefined)_\n- **--zn-text-heading** - The color of the caption text. _(default: undefined)_\n- **--zn-text** - The color of the progress percentage and description text. _(default: undefined)_\n- **--zn-spacing-x-small** - The spacing between header/footer and the progress bar. _(default: undefined)_\n\n### **CSS Parts:**\n - **header** - The header container that contains the caption and progress text.\n- **caption** - The caption text element.\n- **progress** - The progress percentage text element.\n- **bar** - The SVG element containing the progress bar.\n- **track** - The background track of the progress bar.\n- **fill** - The filled portion of the progress bar indicating progress.\n- **footer** - The footer container that contains the description.\n- **info** - The description text element.",
|
|
4557
5549
|
"doc-url": "",
|
|
4558
5550
|
"attributes": [
|
|
4559
5551
|
{ "name": "caption", "value": { "type": "string | undefined" } },
|
|
@@ -4567,13 +5559,7 @@
|
|
|
4567
5559
|
"value": { "type": "boolean | undefined" }
|
|
4568
5560
|
}
|
|
4569
5561
|
],
|
|
4570
|
-
"
|
|
4571
|
-
{ "name": "", "description": "The default slot." },
|
|
4572
|
-
{ "name": "example", "description": "An example slot." }
|
|
4573
|
-
],
|
|
4574
|
-
"events": [
|
|
4575
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
4576
|
-
],
|
|
5562
|
+
"events": [],
|
|
4577
5563
|
"js": {
|
|
4578
5564
|
"properties": [
|
|
4579
5565
|
{ "name": "caption", "type": "string | undefined" },
|
|
@@ -4581,12 +5567,7 @@
|
|
|
4581
5567
|
{ "name": "value", "type": "number | undefined" },
|
|
4582
5568
|
{ "name": "showProgress", "type": "boolean | undefined" }
|
|
4583
5569
|
],
|
|
4584
|
-
"events": [
|
|
4585
|
-
{
|
|
4586
|
-
"name": "zn-event-name",
|
|
4587
|
-
"description": "Emitted as an example."
|
|
4588
|
-
}
|
|
4589
|
-
]
|
|
5570
|
+
"events": []
|
|
4590
5571
|
}
|
|
4591
5572
|
},
|
|
4592
5573
|
{
|
|
@@ -5136,7 +6117,7 @@
|
|
|
5136
6117
|
},
|
|
5137
6118
|
{
|
|
5138
6119
|
"name": "zn-select",
|
|
5139
|
-
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the control's value changes.\n- **zn-clear** - Emitted when the control's value is cleared.\n- **zn-input** - Emitted when the control receives input.\n- **zn-focus** - Emitted when the control gains focus.\n- **zn-blur** - Emitted when the control loses focus.\n- **zn-show** - Emitted when the select's menu opens.\n- **zn-after-show** - Emitted after the select's menu opens and all animations are complete.\n- **zn-hide** - Emitted when the select's menu closes.\n- **zn-after-hide** - Emitted after the select's menu closes and all animations are complete.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\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. Pass an empty string to restore validity.\n- **focus(options: _FocusOptions_)** - Sets focus on the control.\n- **blur()** - Removes focus from the control.\n\n### **Slots:**\n - _default_ - The listbox options. Must be `<zn-option>` elements. You can use `<zn-divider>` to group items visually.\n- **label** - The input's label. 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- **context-note** - Used to add contextual text that is displayed above the select, on the right. Alternatively, you can use the `context-note` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the combobox.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **expand-icon** - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n- **help-text** - Text that describes how to use the input. 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 select's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **combobox** - The container the wraps the prefix, combobox, clear icon, and expand button.\n- **prefix** - The container that wraps the prefix slot.\n- **display-input** - The element that displays the selected option's label, an `<input>` element.\n- **listbox** - The listbox container where options are slotted.\n- **tags** - The container that houses option tags when `multiselect` is used.\n- **tag** - The individual tags that represent each multiselect option.\n- **tag__base** - The tag's base part.\n- **tag__content** - The tag's content part.\n- **tag__remove-button** - The tag's remove button.\n- **tag__remove-button__base** - The tag's remove button base part.\n- **clear-button** - The clear button.\n- **expand-icon** - The container that wraps the expand icon.",
|
|
6120
|
+
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the control's value changes.\n- **zn-clear** - Emitted when the control's value is cleared.\n- **zn-input** - Emitted when the control receives input.\n- **zn-focus** - Emitted when the control gains focus.\n- **zn-blur** - Emitted when the control loses focus.\n- **zn-show** - Emitted when the select's menu opens.\n- **zn-after-show** - Emitted after the select's menu opens and all animations are complete.\n- **zn-hide** - Emitted when the select's menu closes.\n- **zn-after-hide** - Emitted after the select's menu closes and all animations are complete.\n- **zn-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n- **zn-load** - Emitted when options have been successfully loaded from the `src` URL.\n- **zn-error** - Emitted when loading options from the `src` URL fails.\n\n### **Methods:**\n - **fetchOptions(searchQuery: _string_)** - Fetches options from the URL specified by the `data-uri` property. Optionally appends a search query.\n- **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\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. Pass an empty string to restore validity.\n- **focus(options: _FocusOptions_)** - Sets focus on the control.\n- **blur()** - Removes focus from the control.\n\n### **Slots:**\n - _default_ - The listbox options. Must be `<zn-option>` elements. You can use `<zn-opt-group>` to group options under a labeled header, or `<zn-divider>` to group items visually.\n- **label** - The input's label. 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- **context-note** - Used to add contextual text that is displayed above the select, on the right. Alternatively, you can use the `context-note` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the combobox.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **expand-icon** - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **search-loading** - The container shown while a remote search request is in flight.\n- **max-results-indicator** - The message shown when results are truncated by `max-results`.\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 select's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **combobox** - The container the wraps the prefix, combobox, clear icon, and expand button.\n- **prefix** - The container that wraps the prefix slot.\n- **display-input** - The element that displays the selected option's label, an `<input>` element.\n- **listbox** - The listbox container where options are slotted.\n- **tags** - The container that houses option tags when `multiselect` is used.\n- **tag** - The individual tags that represent each multiselect option.\n- **tag__base** - The tag's base part.\n- **tag__content** - The tag's content part.\n- **tag__remove-button** - The tag's remove button.\n- **tag__remove-button__base** - The tag's remove button base part.\n- **clear-button** - The clear button.\n- **expand-icon** - The container that wraps the expand icon.",
|
|
5140
6121
|
"doc-url": "",
|
|
5141
6122
|
"attributes": [
|
|
5142
6123
|
{
|
|
@@ -5144,6 +6125,10 @@
|
|
|
5144
6125
|
"description": "The name of the select, submitted as a name/value pair with form data.",
|
|
5145
6126
|
"value": { "type": "string", "default": "''" }
|
|
5146
6127
|
},
|
|
6128
|
+
{
|
|
6129
|
+
"name": "non-removable",
|
|
6130
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6131
|
+
},
|
|
5147
6132
|
{
|
|
5148
6133
|
"name": "value",
|
|
5149
6134
|
"description": "The default value of the form control. Primarily used for resetting the form control.",
|
|
@@ -5202,6 +6187,11 @@
|
|
|
5202
6187
|
"description": "Draws a pill-style select with rounded edges.",
|
|
5203
6188
|
"value": { "type": "boolean", "default": "false" }
|
|
5204
6189
|
},
|
|
6190
|
+
{
|
|
6191
|
+
"name": "search",
|
|
6192
|
+
"description": "Enables search/filter functionality. When enabled, the user can type into the select to filter the visible options.",
|
|
6193
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6194
|
+
},
|
|
5205
6195
|
{
|
|
5206
6196
|
"name": "label",
|
|
5207
6197
|
"description": "The select's label. If you need to display HTML, use the `label` slot instead.",
|
|
@@ -5246,25 +6236,60 @@
|
|
|
5246
6236
|
"value": { "type": "boolean", "default": "false" }
|
|
5247
6237
|
},
|
|
5248
6238
|
{
|
|
5249
|
-
"name": "getTag",
|
|
5250
|
-
"description": "A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\nis the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\nthe specified value.",
|
|
5251
|
-
"value": {
|
|
5252
|
-
"type": "(option: ZnOption, index: number) => TemplateResult | string | HTMLElement"
|
|
5253
|
-
}
|
|
6239
|
+
"name": "getTag",
|
|
6240
|
+
"description": "A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\nis the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\nthe specified value.",
|
|
6241
|
+
"value": {
|
|
6242
|
+
"type": "(option: ZnOption, index: number) => TemplateResult | string | HTMLElement"
|
|
6243
|
+
}
|
|
6244
|
+
},
|
|
6245
|
+
{
|
|
6246
|
+
"name": "select-first",
|
|
6247
|
+
"description": "Automatically select the first option if no value is set.",
|
|
6248
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6249
|
+
},
|
|
6250
|
+
{
|
|
6251
|
+
"name": "distinct",
|
|
6252
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
6253
|
+
},
|
|
6254
|
+
{
|
|
6255
|
+
"name": "conditional",
|
|
6256
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
6257
|
+
},
|
|
6258
|
+
{
|
|
6259
|
+
"name": "data-uri",
|
|
6260
|
+
"description": "The URL to fetch options from. When set, the component fetches JSON from this URL and renders the results as\noptions. The expected format is an array of objects with `key` and `value` properties:\n`[{\"key\": \"us\", \"value\": \"United States\"}, ...]`\nWhen not set, the component works exactly as before using slotted `<zn-option>` elements.",
|
|
6261
|
+
"value": { "type": "string" }
|
|
6262
|
+
},
|
|
6263
|
+
{
|
|
6264
|
+
"name": "context-data",
|
|
6265
|
+
"description": "Context data to send as a header when fetching options from the URL specified by the `src` property.",
|
|
6266
|
+
"value": { "type": "string" }
|
|
6267
|
+
},
|
|
6268
|
+
{
|
|
6269
|
+
"name": "max-results",
|
|
6270
|
+
"description": "The maximum number of options to display from a remote fetch response. Set to 0 for unlimited.\nOnly applies when fetching from `data-uri`.",
|
|
6271
|
+
"value": { "type": "number", "default": "0" }
|
|
6272
|
+
},
|
|
6273
|
+
{
|
|
6274
|
+
"name": "search-debounce",
|
|
6275
|
+
"description": "Debounce delay in milliseconds for remote search requests. The component waits this long after the user\nstops typing before sending a request.",
|
|
6276
|
+
"value": { "type": "number", "default": "300" }
|
|
5254
6277
|
},
|
|
5255
6278
|
{
|
|
5256
|
-
"name": "
|
|
5257
|
-
"
|
|
6279
|
+
"name": "search-param",
|
|
6280
|
+
"description": "The query parameter name appended to the `data-uri` URL for remote search requests.\nDefaults to `\"q\"`, e.g. `/api/items?q=search+term`. Set to a custom value like `\"search\"` or `\"filter\"` to match your API.",
|
|
6281
|
+
"value": { "type": "string", "default": "'q'" }
|
|
5258
6282
|
},
|
|
5259
6283
|
{
|
|
5260
|
-
"name": "
|
|
5261
|
-
"
|
|
6284
|
+
"name": "search-only",
|
|
6285
|
+
"description": "When set alongside `search` and `data-uri`, the component will not fetch options on initial load.\nOptions are only fetched when the user starts typing a search query.",
|
|
6286
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5262
6287
|
}
|
|
5263
6288
|
],
|
|
5264
6289
|
"slots": [
|
|
5265
6290
|
{
|
|
5266
6291
|
"name": "",
|
|
5267
|
-
"description": "The listbox options. Must be `<zn-option>` elements. You can use `<zn-divider>` to group items visually."
|
|
6292
|
+
"description": "The listbox options. Must be `<zn-option>` elements. You can use `<zn-opt-group>` to group options under a labeled header, or `<zn-divider>` to group items visually."
|
|
5268
6293
|
},
|
|
5269
6294
|
{
|
|
5270
6295
|
"name": "label",
|
|
@@ -5335,6 +6360,14 @@
|
|
|
5335
6360
|
{
|
|
5336
6361
|
"name": "zn-invalid",
|
|
5337
6362
|
"description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
|
|
6363
|
+
},
|
|
6364
|
+
{
|
|
6365
|
+
"name": "zn-load",
|
|
6366
|
+
"description": "Emitted when options have been successfully loaded from the `src` URL."
|
|
6367
|
+
},
|
|
6368
|
+
{
|
|
6369
|
+
"name": "zn-error",
|
|
6370
|
+
"description": "Emitted when loading options from the `src` URL fails."
|
|
5338
6371
|
}
|
|
5339
6372
|
],
|
|
5340
6373
|
"js": {
|
|
@@ -5353,9 +6386,10 @@
|
|
|
5353
6386
|
"description": "The name of the select, submitted as a name/value pair with form data.",
|
|
5354
6387
|
"type": "string"
|
|
5355
6388
|
},
|
|
6389
|
+
{ "name": "nonRemovable", "type": "boolean" },
|
|
5356
6390
|
{
|
|
5357
6391
|
"name": "value",
|
|
5358
|
-
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue
|
|
6392
|
+
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue property will be an array. Values may contain spaces when using JSON array syntax in the attribute,\ne.g. `value='[\"my value\", \"their value\"]'`. Space-delimited strings are still supported for backward compatibility."
|
|
5359
6393
|
},
|
|
5360
6394
|
{
|
|
5361
6395
|
"name": "defaultValue",
|
|
@@ -5412,6 +6446,11 @@
|
|
|
5412
6446
|
"description": "Draws a pill-style select with rounded edges.",
|
|
5413
6447
|
"type": "boolean"
|
|
5414
6448
|
},
|
|
6449
|
+
{
|
|
6450
|
+
"name": "search",
|
|
6451
|
+
"description": "Enables search/filter functionality. When enabled, the user can type into the select to filter the visible options.",
|
|
6452
|
+
"type": "boolean"
|
|
6453
|
+
},
|
|
5415
6454
|
{
|
|
5416
6455
|
"name": "label",
|
|
5417
6456
|
"description": "The select's label. If you need to display HTML, use the `label` slot instead.",
|
|
@@ -5454,8 +6493,43 @@
|
|
|
5454
6493
|
"description": "A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\nis the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\nthe specified value.",
|
|
5455
6494
|
"type": "(option: ZnOption, index: number) => TemplateResult | string | HTMLElement"
|
|
5456
6495
|
},
|
|
6496
|
+
{
|
|
6497
|
+
"name": "selectFirst",
|
|
6498
|
+
"description": "Automatically select the first option if no value is set.",
|
|
6499
|
+
"type": "boolean"
|
|
6500
|
+
},
|
|
5457
6501
|
{ "name": "distinct", "type": "string" },
|
|
5458
6502
|
{ "name": "conditional", "type": "string" },
|
|
6503
|
+
{
|
|
6504
|
+
"name": "dataUri",
|
|
6505
|
+
"description": "The URL to fetch options from. When set, the component fetches JSON from this URL and renders the results as\noptions. The expected format is an array of objects with `key` and `value` properties:\n`[{\"key\": \"us\", \"value\": \"United States\"}, ...]`\nWhen not set, the component works exactly as before using slotted `<zn-option>` elements.",
|
|
6506
|
+
"type": "string"
|
|
6507
|
+
},
|
|
6508
|
+
{
|
|
6509
|
+
"name": "contextData",
|
|
6510
|
+
"description": "Context data to send as a header when fetching options from the URL specified by the `src` property.",
|
|
6511
|
+
"type": "string"
|
|
6512
|
+
},
|
|
6513
|
+
{
|
|
6514
|
+
"name": "maxResults",
|
|
6515
|
+
"description": "The maximum number of options to display from a remote fetch response. Set to 0 for unlimited.\nOnly applies when fetching from `data-uri`.",
|
|
6516
|
+
"type": "number"
|
|
6517
|
+
},
|
|
6518
|
+
{
|
|
6519
|
+
"name": "searchDebounce",
|
|
6520
|
+
"description": "Debounce delay in milliseconds for remote search requests. The component waits this long after the user\nstops typing before sending a request.",
|
|
6521
|
+
"type": "number"
|
|
6522
|
+
},
|
|
6523
|
+
{
|
|
6524
|
+
"name": "searchParam",
|
|
6525
|
+
"description": "The query parameter name appended to the `data-uri` URL for remote search requests.\nDefaults to `\"q\"`, e.g. `/api/items?q=search+term`. Set to a custom value like `\"search\"` or `\"filter\"` to match your API.",
|
|
6526
|
+
"type": "string"
|
|
6527
|
+
},
|
|
6528
|
+
{
|
|
6529
|
+
"name": "searchOnly",
|
|
6530
|
+
"description": "When set alongside `search` and `data-uri`, the component will not fetch options on initial load.\nOptions are only fetched when the user starts typing a search query.",
|
|
6531
|
+
"type": "boolean"
|
|
6532
|
+
},
|
|
5459
6533
|
{
|
|
5460
6534
|
"name": "validity",
|
|
5461
6535
|
"description": "Gets the validity state object"
|
|
@@ -5505,6 +6579,14 @@
|
|
|
5505
6579
|
{
|
|
5506
6580
|
"name": "zn-invalid",
|
|
5507
6581
|
"description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
|
|
6582
|
+
},
|
|
6583
|
+
{
|
|
6584
|
+
"name": "zn-load",
|
|
6585
|
+
"description": "Emitted when options have been successfully loaded from the `src` URL."
|
|
6586
|
+
},
|
|
6587
|
+
{
|
|
6588
|
+
"name": "zn-error",
|
|
6589
|
+
"description": "Emitted when loading options from the `src` URL fails."
|
|
5508
6590
|
}
|
|
5509
6591
|
]
|
|
5510
6592
|
}
|
|
@@ -5621,33 +6703,53 @@
|
|
|
5621
6703
|
},
|
|
5622
6704
|
{
|
|
5623
6705
|
"name": "zn-skeleton",
|
|
5624
|
-
"description": "
|
|
6706
|
+
"description": "Skeleton loaders provide visual placeholders while content is loading, improving perceived performance and user experience.\n---\n",
|
|
5625
6707
|
"doc-url": "",
|
|
5626
6708
|
"attributes": [
|
|
5627
6709
|
{
|
|
5628
6710
|
"name": "speed",
|
|
6711
|
+
"description": "Animation speed for the shimmer effect. Default: \"3s\"",
|
|
5629
6712
|
"value": { "type": "string", "default": "'3s'" }
|
|
5630
6713
|
},
|
|
5631
6714
|
{
|
|
5632
6715
|
"name": "width",
|
|
6716
|
+
"description": "Width of the skeleton element. Default: \"100%\"",
|
|
5633
6717
|
"value": { "type": "string", "default": "'100%'" }
|
|
5634
6718
|
},
|
|
5635
6719
|
{
|
|
5636
6720
|
"name": "height",
|
|
6721
|
+
"description": "Height of the skeleton element. Default: \"20px\"",
|
|
5637
6722
|
"value": { "type": "string", "default": "'20px'" }
|
|
5638
6723
|
},
|
|
5639
6724
|
{
|
|
5640
6725
|
"name": "radius",
|
|
6726
|
+
"description": "Border radius of the skeleton element. Default: \"4px\"",
|
|
5641
6727
|
"value": { "type": "string", "default": "'4px'" }
|
|
5642
6728
|
}
|
|
5643
6729
|
],
|
|
5644
6730
|
"events": [],
|
|
5645
6731
|
"js": {
|
|
5646
6732
|
"properties": [
|
|
5647
|
-
{
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
6733
|
+
{
|
|
6734
|
+
"name": "speed",
|
|
6735
|
+
"description": "Animation speed for the shimmer effect. Default: \"3s\"",
|
|
6736
|
+
"type": "string"
|
|
6737
|
+
},
|
|
6738
|
+
{
|
|
6739
|
+
"name": "width",
|
|
6740
|
+
"description": "Width of the skeleton element. Default: \"100%\"",
|
|
6741
|
+
"type": "string"
|
|
6742
|
+
},
|
|
6743
|
+
{
|
|
6744
|
+
"name": "height",
|
|
6745
|
+
"description": "Height of the skeleton element. Default: \"20px\"",
|
|
6746
|
+
"type": "string"
|
|
6747
|
+
},
|
|
6748
|
+
{
|
|
6749
|
+
"name": "radius",
|
|
6750
|
+
"description": "Border radius of the skeleton element. Default: \"4px\"",
|
|
6751
|
+
"type": "string"
|
|
6752
|
+
}
|
|
5651
6753
|
],
|
|
5652
6754
|
"events": []
|
|
5653
6755
|
}
|
|
@@ -5735,7 +6837,7 @@
|
|
|
5735
6837
|
},
|
|
5736
6838
|
{
|
|
5737
6839
|
"name": "zn-sp",
|
|
5738
|
-
"description": "
|
|
6840
|
+
"description": "A flexible layout container for spacing and arranging child elements in rows or columns with configurable gap, padding, and dividers.\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.",
|
|
5739
6841
|
"doc-url": "",
|
|
5740
6842
|
"attributes": [
|
|
5741
6843
|
{
|
|
@@ -5763,6 +6865,10 @@
|
|
|
5763
6865
|
"name": "no-gap",
|
|
5764
6866
|
"value": { "type": "boolean", "default": "false" }
|
|
5765
6867
|
},
|
|
6868
|
+
{
|
|
6869
|
+
"name": "no-pos",
|
|
6870
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6871
|
+
},
|
|
5766
6872
|
{
|
|
5767
6873
|
"name": "flush",
|
|
5768
6874
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -5820,6 +6926,7 @@
|
|
|
5820
6926
|
{ "name": "padX", "type": "boolean" },
|
|
5821
6927
|
{ "name": "padY", "type": "boolean" },
|
|
5822
6928
|
{ "name": "noGap", "type": "boolean" },
|
|
6929
|
+
{ "name": "noPosition", "type": "boolean" },
|
|
5823
6930
|
{ "name": "flush", "type": "boolean" },
|
|
5824
6931
|
{ "name": "flushX", "type": "boolean" },
|
|
5825
6932
|
{ "name": "flushY", "type": "boolean" },
|
|
@@ -6070,36 +7177,62 @@
|
|
|
6070
7177
|
},
|
|
6071
7178
|
{
|
|
6072
7179
|
"name": "zn-stepper",
|
|
6073
|
-
"description": "
|
|
7180
|
+
"description": "Steppers provide visual feedback about progress through a multi-step process or workflow.\n---\n\n\n### **CSS Parts:**\n - **step-container** - The container holding the progress line and steps.\n- **step-line** - The background line showing the full step track.\n- **step-progress** - The filled progress indicator showing completion.\n- **steps** - The container for individual step markers.\n- **step** - An individual step marker circle.\n- **header** - The header container with caption and progress text.\n- **caption** - The caption text element.\n- **progress** - The progress count text (e.g., \"2 / 5 steps\").\n- **label** - The label text container.\n- **info** - The label text element.",
|
|
6074
7181
|
"doc-url": "",
|
|
6075
7182
|
"attributes": [
|
|
6076
|
-
{
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
7183
|
+
{
|
|
7184
|
+
"name": "caption",
|
|
7185
|
+
"description": "A descriptive label displayed above the stepper to indicate the current step or phase.",
|
|
7186
|
+
"value": { "type": "string" }
|
|
7187
|
+
},
|
|
7188
|
+
{
|
|
7189
|
+
"name": "label",
|
|
7190
|
+
"description": "An optional label displayed above the caption, typically used for the wizard or workflow name.",
|
|
7191
|
+
"value": { "type": "string" }
|
|
7192
|
+
},
|
|
7193
|
+
{
|
|
7194
|
+
"name": "steps",
|
|
7195
|
+
"description": "The total number of steps in the process.",
|
|
7196
|
+
"value": { "type": "number" }
|
|
7197
|
+
},
|
|
7198
|
+
{
|
|
7199
|
+
"name": "value",
|
|
7200
|
+
"description": "The current step position (0 to steps). Progress is calculated as value/steps.",
|
|
7201
|
+
"value": { "type": "number" }
|
|
7202
|
+
},
|
|
6080
7203
|
{ "name": "show-progress", "value": { "type": "boolean" } }
|
|
6081
7204
|
],
|
|
6082
|
-
"
|
|
6083
|
-
{ "name": "", "description": "The default slot." },
|
|
6084
|
-
{ "name": "example", "description": "An example slot." }
|
|
6085
|
-
],
|
|
6086
|
-
"events": [
|
|
6087
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
6088
|
-
],
|
|
7205
|
+
"events": [],
|
|
6089
7206
|
"js": {
|
|
6090
7207
|
"properties": [
|
|
6091
|
-
{ "name": "caption", "type": "string" },
|
|
6092
|
-
{ "name": "label", "type": "string" },
|
|
6093
|
-
{ "name": "steps", "type": "number" },
|
|
6094
|
-
{ "name": "value", "type": "number" },
|
|
6095
|
-
{ "name": "showProgress", "type": "boolean" }
|
|
6096
|
-
],
|
|
6097
|
-
"events": [
|
|
6098
7208
|
{
|
|
6099
|
-
"name": "
|
|
6100
|
-
"description": "
|
|
7209
|
+
"name": "caption",
|
|
7210
|
+
"description": "A descriptive label displayed above the stepper to indicate the current step or phase.",
|
|
7211
|
+
"type": "string"
|
|
7212
|
+
},
|
|
7213
|
+
{
|
|
7214
|
+
"name": "label",
|
|
7215
|
+
"description": "An optional label displayed above the caption, typically used for the wizard or workflow name.",
|
|
7216
|
+
"type": "string"
|
|
7217
|
+
},
|
|
7218
|
+
{
|
|
7219
|
+
"name": "steps",
|
|
7220
|
+
"description": "The total number of steps in the process.",
|
|
7221
|
+
"type": "number"
|
|
7222
|
+
},
|
|
7223
|
+
{
|
|
7224
|
+
"name": "value",
|
|
7225
|
+
"description": "The current step position (0 to steps). Progress is calculated as value/steps.",
|
|
7226
|
+
"type": "number"
|
|
7227
|
+
},
|
|
7228
|
+
{ "name": "showProgress", "type": "boolean" },
|
|
7229
|
+
{
|
|
7230
|
+
"name": "show-progress",
|
|
7231
|
+
"description": "When true, displays the step count (e.g., \"2 / 5 steps\") next to the caption.",
|
|
7232
|
+
"type": "boolean"
|
|
6101
7233
|
}
|
|
6102
|
-
]
|
|
7234
|
+
],
|
|
7235
|
+
"events": []
|
|
6103
7236
|
}
|
|
6104
7237
|
},
|
|
6105
7238
|
{
|
|
@@ -6777,7 +7910,7 @@
|
|
|
6777
7910
|
},
|
|
6778
7911
|
{
|
|
6779
7912
|
"name": "zn-toggle",
|
|
6780
|
-
"description": "
|
|
7913
|
+
"description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).",
|
|
6781
7914
|
"doc-url": "",
|
|
6782
7915
|
"attributes": [
|
|
6783
7916
|
{
|
|
@@ -6829,14 +7962,18 @@
|
|
|
6829
7962
|
"name": "off-text",
|
|
6830
7963
|
"value": { "type": "string", "default": "''" }
|
|
6831
7964
|
},
|
|
6832
|
-
{ "name": "label", "value": { "type": "string", "default": "''" } }
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
7965
|
+
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
7966
|
+
{
|
|
7967
|
+
"name": "inline",
|
|
7968
|
+
"value": { "type": "boolean", "default": "false" }
|
|
7969
|
+
}
|
|
6837
7970
|
],
|
|
7971
|
+
"slots": [{ "name": "", "description": "The toggle's label." }],
|
|
6838
7972
|
"events": [
|
|
6839
|
-
{
|
|
7973
|
+
{
|
|
7974
|
+
"name": "zn-input",
|
|
7975
|
+
"description": "Emitted when the toggle receives input."
|
|
7976
|
+
}
|
|
6840
7977
|
],
|
|
6841
7978
|
"js": {
|
|
6842
7979
|
"properties": [
|
|
@@ -6857,13 +7994,14 @@
|
|
|
6857
7994
|
{ "name": "onText", "type": "string" },
|
|
6858
7995
|
{ "name": "offText", "type": "string" },
|
|
6859
7996
|
{ "name": "label", "type": "string" },
|
|
7997
|
+
{ "name": "inline", "type": "boolean" },
|
|
6860
7998
|
{ "name": "validity" },
|
|
6861
7999
|
{ "name": "validationMessage" }
|
|
6862
8000
|
],
|
|
6863
8001
|
"events": [
|
|
6864
8002
|
{
|
|
6865
|
-
"name": "zn-
|
|
6866
|
-
"description": "Emitted
|
|
8003
|
+
"name": "zn-input",
|
|
8004
|
+
"description": "Emitted when the toggle receives input."
|
|
6867
8005
|
}
|
|
6868
8006
|
]
|
|
6869
8007
|
}
|
|
@@ -6971,9 +8109,95 @@
|
|
|
6971
8109
|
]
|
|
6972
8110
|
}
|
|
6973
8111
|
},
|
|
8112
|
+
{
|
|
8113
|
+
"name": "zn-translation-group",
|
|
8114
|
+
"description": "A panel-styled container that provides a shared language toggle for multiple zn-translations children.\n---\n\n\n### **Events:**\n - **zn-language-change** - Emitted when the active language changes. Detail: `{ language: string }`.\n\n### **Slots:**\n - _default_ - Default slot for `<zn-translations>` elements.\n- **actions** - Actions displayed in the panel header alongside language buttons.\n- **footer** - Content displayed in the panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
8115
|
+
"doc-url": "",
|
|
8116
|
+
"attributes": [
|
|
8117
|
+
{
|
|
8118
|
+
"name": "label",
|
|
8119
|
+
"description": "The group label displayed in the panel header.",
|
|
8120
|
+
"value": { "type": "string", "default": "''" }
|
|
8121
|
+
},
|
|
8122
|
+
{
|
|
8123
|
+
"name": "languages",
|
|
8124
|
+
"description": "The available languages for the group.",
|
|
8125
|
+
"value": {
|
|
8126
|
+
"type": "Record<string, string>",
|
|
8127
|
+
"default": "{ 'en': 'EN' }"
|
|
8128
|
+
}
|
|
8129
|
+
},
|
|
8130
|
+
{ "name": "basis-px", "value": { "type": "number" } },
|
|
8131
|
+
{ "name": "caption", "value": { "type": "string" } },
|
|
8132
|
+
{ "name": "icon", "value": { "type": "string" } },
|
|
8133
|
+
{ "name": "description", "value": { "type": "string" } },
|
|
8134
|
+
{ "name": "tabbed", "value": { "type": "boolean" } },
|
|
8135
|
+
{ "name": "header-underline", "value": { "type": "boolean" } },
|
|
8136
|
+
{ "name": "cosmic", "value": { "type": "boolean" } },
|
|
8137
|
+
{ "name": "flush", "value": { "type": "boolean" } },
|
|
8138
|
+
{ "name": "flush-x", "value": { "type": "boolean" } },
|
|
8139
|
+
{ "name": "flush-y", "value": { "type": "boolean" } },
|
|
8140
|
+
{ "name": "flush-footer", "value": { "type": "boolean" } },
|
|
8141
|
+
{ "name": "transparent", "value": { "type": "boolean" } },
|
|
8142
|
+
{ "name": "shadow", "value": { "type": "boolean" } }
|
|
8143
|
+
],
|
|
8144
|
+
"slots": [
|
|
8145
|
+
{
|
|
8146
|
+
"name": "",
|
|
8147
|
+
"description": "Default slot for `<zn-translations>` elements."
|
|
8148
|
+
},
|
|
8149
|
+
{
|
|
8150
|
+
"name": "actions",
|
|
8151
|
+
"description": "Actions displayed in the panel header alongside language buttons."
|
|
8152
|
+
},
|
|
8153
|
+
{
|
|
8154
|
+
"name": "footer",
|
|
8155
|
+
"description": "Content displayed in the panel footer."
|
|
8156
|
+
}
|
|
8157
|
+
],
|
|
8158
|
+
"events": [
|
|
8159
|
+
{
|
|
8160
|
+
"name": "zn-language-change",
|
|
8161
|
+
"description": "Emitted when the active language changes. Detail: `{ language: string }`."
|
|
8162
|
+
}
|
|
8163
|
+
],
|
|
8164
|
+
"js": {
|
|
8165
|
+
"properties": [
|
|
8166
|
+
{
|
|
8167
|
+
"name": "label",
|
|
8168
|
+
"description": "The group label displayed in the panel header.",
|
|
8169
|
+
"type": "string"
|
|
8170
|
+
},
|
|
8171
|
+
{
|
|
8172
|
+
"name": "languages",
|
|
8173
|
+
"description": "The available languages for the group.",
|
|
8174
|
+
"type": "Record<string, string>"
|
|
8175
|
+
},
|
|
8176
|
+
{ "name": "basis", "type": "number" },
|
|
8177
|
+
{ "name": "caption", "type": "string" },
|
|
8178
|
+
{ "name": "icon", "type": "string" },
|
|
8179
|
+
{ "name": "description", "type": "string" },
|
|
8180
|
+
{ "name": "tabbed", "type": "boolean" },
|
|
8181
|
+
{ "name": "underlineHeader", "type": "boolean" },
|
|
8182
|
+
{ "name": "cosmic", "type": "boolean" },
|
|
8183
|
+
{ "name": "flush", "type": "boolean" },
|
|
8184
|
+
{ "name": "flushX", "type": "boolean" },
|
|
8185
|
+
{ "name": "flushY", "type": "boolean" },
|
|
8186
|
+
{ "name": "flushFooter", "type": "boolean" },
|
|
8187
|
+
{ "name": "transparent", "type": "boolean" },
|
|
8188
|
+
{ "name": "shadow", "type": "boolean" }
|
|
8189
|
+
],
|
|
8190
|
+
"events": [
|
|
8191
|
+
{
|
|
8192
|
+
"name": "zn-language-change",
|
|
8193
|
+
"description": "Emitted when the active language changes. Detail: `{ language: string }`."
|
|
8194
|
+
}
|
|
8195
|
+
]
|
|
8196
|
+
}
|
|
8197
|
+
},
|
|
6974
8198
|
{
|
|
6975
8199
|
"name": "zn-translations",
|
|
6976
|
-
"description": "\n---\n",
|
|
8200
|
+
"description": "\n---\n\n\n### **Methods:**\n - **setActiveLanguage(language: _string_)** - Sets the active language externally. Used by zn-translation-group.\n- **getActiveLanguage(): _string_** - Returns the currently active language.\n- **addLanguageKey(languageCode: _string_)** - Adds a language key to this component's values if not already present. Used by zn-translation-group.\n- **getValueLanguages(): _string[]_** - Returns all language codes that have values.",
|
|
6977
8201
|
"doc-url": "",
|
|
6978
8202
|
"attributes": [
|
|
6979
8203
|
{ "name": "name", "value": { "type": "string", "default": "''" } },
|
|
@@ -6994,6 +8218,11 @@
|
|
|
6994
8218
|
"name": "flush",
|
|
6995
8219
|
"value": { "type": "boolean", "default": "false" }
|
|
6996
8220
|
},
|
|
8221
|
+
{
|
|
8222
|
+
"name": "grouped",
|
|
8223
|
+
"description": "When true, hides the individual language navbar and defers language control to a parent zn-translation-group.",
|
|
8224
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8225
|
+
},
|
|
6997
8226
|
{
|
|
6998
8227
|
"name": "languages",
|
|
6999
8228
|
"value": {
|
|
@@ -7015,6 +8244,11 @@
|
|
|
7015
8244
|
{ "name": "disabled", "type": "boolean" },
|
|
7016
8245
|
{ "name": "required", "type": "boolean" },
|
|
7017
8246
|
{ "name": "flush", "type": "boolean" },
|
|
8247
|
+
{
|
|
8248
|
+
"name": "grouped",
|
|
8249
|
+
"description": "When true, hides the individual language navbar and defers language control to a parent zn-translation-group.",
|
|
8250
|
+
"type": "boolean"
|
|
8251
|
+
},
|
|
7018
8252
|
{ "name": "languages", "type": "Record<string, string>" },
|
|
7019
8253
|
{ "name": "values", "type": "Record<string, string>" },
|
|
7020
8254
|
{ "name": "validity", "type": "ValidityState" },
|
|
@@ -7025,45 +8259,71 @@
|
|
|
7025
8259
|
},
|
|
7026
8260
|
{
|
|
7027
8261
|
"name": "zn-vertical-stepper",
|
|
7028
|
-
"description": "
|
|
8262
|
+
"description": "Vertical steppers display a sequence of steps in a vertical layout with descriptions and optional icons.\n---\n\n\n### **Slots:**\n - **icon** - Optional slot for adding an icon or indicator before the step content.\n\n### **CSS Parts:**\n - **vs** - The main container for the vertical stepper.\n- **vs__left** - The left section containing the icon and connecting line.\n- **vs__icon** - The icon container.\n- **vs__line** - The vertical connecting line between steps.\n- **vs__right** - The right section containing caption and description text.\n- **vs__caption** - The caption/title text element.\n- **vs__description** - The description text element.",
|
|
7029
8263
|
"doc-url": "",
|
|
7030
8264
|
"attributes": [
|
|
7031
8265
|
{
|
|
7032
8266
|
"name": "last",
|
|
8267
|
+
"description": "When true, removes the connecting line below this step (use for the final step in a sequence).",
|
|
7033
8268
|
"value": { "type": "boolean", "default": "false" }
|
|
7034
8269
|
},
|
|
7035
8270
|
{
|
|
7036
8271
|
"name": "first",
|
|
8272
|
+
"description": "When true, indicates this is the first step in the sequence (affects visual styling).",
|
|
7037
8273
|
"value": { "type": "boolean", "default": "false" }
|
|
7038
8274
|
},
|
|
7039
8275
|
{
|
|
7040
8276
|
"name": "active",
|
|
8277
|
+
"description": "When true, highlights this step as the current active step in the process.",
|
|
7041
8278
|
"value": { "type": "boolean", "default": "false" }
|
|
7042
8279
|
},
|
|
7043
|
-
{
|
|
7044
|
-
|
|
8280
|
+
{
|
|
8281
|
+
"name": "description",
|
|
8282
|
+
"description": "A descriptive text explaining what happens in this step or its current status.",
|
|
8283
|
+
"value": { "type": "string" }
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
"name": "caption",
|
|
8287
|
+
"description": "The main label/title for this step.",
|
|
8288
|
+
"value": { "type": "string" }
|
|
8289
|
+
}
|
|
7045
8290
|
],
|
|
7046
8291
|
"slots": [
|
|
7047
|
-
{
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
{ "name": "zn-event-name", "description": "Emitted as an example." }
|
|
8292
|
+
{
|
|
8293
|
+
"name": "icon",
|
|
8294
|
+
"description": "Optional slot for adding an icon or indicator before the step content."
|
|
8295
|
+
}
|
|
7052
8296
|
],
|
|
8297
|
+
"events": [],
|
|
7053
8298
|
"js": {
|
|
7054
8299
|
"properties": [
|
|
7055
|
-
{ "name": "last", "type": "boolean" },
|
|
7056
|
-
{ "name": "first", "type": "boolean" },
|
|
7057
|
-
{ "name": "active", "type": "boolean" },
|
|
7058
|
-
{ "name": "description", "type": "string" },
|
|
7059
|
-
{ "name": "caption", "type": "string" }
|
|
7060
|
-
],
|
|
7061
|
-
"events": [
|
|
7062
8300
|
{
|
|
7063
|
-
"name": "
|
|
7064
|
-
"description": "
|
|
8301
|
+
"name": "last",
|
|
8302
|
+
"description": "When true, removes the connecting line below this step (use for the final step in a sequence).",
|
|
8303
|
+
"type": "boolean"
|
|
8304
|
+
},
|
|
8305
|
+
{
|
|
8306
|
+
"name": "first",
|
|
8307
|
+
"description": "When true, indicates this is the first step in the sequence (affects visual styling).",
|
|
8308
|
+
"type": "boolean"
|
|
8309
|
+
},
|
|
8310
|
+
{
|
|
8311
|
+
"name": "active",
|
|
8312
|
+
"description": "When true, highlights this step as the current active step in the process.",
|
|
8313
|
+
"type": "boolean"
|
|
8314
|
+
},
|
|
8315
|
+
{
|
|
8316
|
+
"name": "description",
|
|
8317
|
+
"description": "A descriptive text explaining what happens in this step or its current status.",
|
|
8318
|
+
"type": "string"
|
|
8319
|
+
},
|
|
8320
|
+
{
|
|
8321
|
+
"name": "caption",
|
|
8322
|
+
"description": "The main label/title for this step.",
|
|
8323
|
+
"type": "string"
|
|
7065
8324
|
}
|
|
7066
|
-
]
|
|
8325
|
+
],
|
|
8326
|
+
"events": []
|
|
7067
8327
|
}
|
|
7068
8328
|
},
|
|
7069
8329
|
{
|