@cscfi/csc-ui 4.0.0-alpha.3 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/csc-ui.js +5710 -5414
- package/dist/custom-elements.json +523 -96
- package/dist/docs/c-popover/usage.md +27 -0
- package/dist/docs/c-radio/usage.md +29 -0
- package/dist/docs/c-radio-group/usage.md +67 -0
- package/dist/docs/c-tooltip/usage.md +30 -0
- package/dist/styles/css/tailwind-theme.css +30 -0
- package/dist/styles/css/tokens.css +77 -1
- package/dist/vscode.css-custom-data.json +56 -10
- package/dist/vscode.html-custom-data.json +112 -18
- package/dist/web-types.json +320 -72
- package/dist-types/components/c-alert/CAlert.vue.d.ts +10 -3
- package/dist-types/components/c-menu/CMenu.vue.d.ts +3 -3
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +29 -3
- package/dist-types/components/c-popover/CPopover.vue.d.ts +34 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +0 -10
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +8 -46
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +39 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
- package/dist-types/shared/positionArea.d.ts +13 -0
- package/dist-types/tag-name-map.d.ts +130 -27
- package/dist-types/types.d.ts +7 -0
- package/package.json +1 -1
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": "@cscfi/csc-ui",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -187,9 +187,14 @@
|
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"name": "c-alert",
|
|
190
|
-
"description": "\n---\n\n\n### **Slots:**\n - **title** - Title slot\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The
|
|
190
|
+
"description": "\n---\n\n\n### **Events:**\n - **dismiss** - Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **title** - Title slot\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The tinted box carrying the type's wash, hairline border and accent edge\n- **icon** - The status icon svg\n- **content** - The wrapper around the slotted title and message content\n- **dismiss** - The dismiss button rendered when `dismissible` is set",
|
|
191
191
|
"doc-url": "",
|
|
192
192
|
"attributes": [
|
|
193
|
+
{
|
|
194
|
+
"name": "dismissible",
|
|
195
|
+
"description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
|
|
196
|
+
"value": { "type": "boolean", "default": "false" }
|
|
197
|
+
},
|
|
193
198
|
{
|
|
194
199
|
"name": "type",
|
|
195
200
|
"description": "Type of the alert",
|
|
@@ -203,16 +208,33 @@
|
|
|
203
208
|
{ "name": "title", "description": "Title slot" },
|
|
204
209
|
{ "name": "default", "description": "Default slot" }
|
|
205
210
|
],
|
|
206
|
-
"events": [
|
|
211
|
+
"events": [
|
|
212
|
+
{
|
|
213
|
+
"name": "dismiss",
|
|
214
|
+
"type": "CustomEvent<void>",
|
|
215
|
+
"description": "Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal."
|
|
216
|
+
}
|
|
217
|
+
],
|
|
207
218
|
"js": {
|
|
208
219
|
"properties": [
|
|
220
|
+
{
|
|
221
|
+
"name": "dismissible",
|
|
222
|
+
"description": "Show a dismiss button. The alert only emits `dismiss` — removing it from\nthe page stays the consumer's job.",
|
|
223
|
+
"type": "boolean"
|
|
224
|
+
},
|
|
209
225
|
{
|
|
210
226
|
"name": "type",
|
|
211
227
|
"description": "Type of the alert",
|
|
212
228
|
"type": "'default' | 'error' | 'info' | 'success' | 'warning'"
|
|
213
229
|
}
|
|
214
230
|
],
|
|
215
|
-
"events": [
|
|
231
|
+
"events": [
|
|
232
|
+
{
|
|
233
|
+
"name": "dismiss",
|
|
234
|
+
"type": "CustomEvent<void>",
|
|
235
|
+
"description": "Fired when the dismiss button is pressed. The alert does not hide\nitself — the consumer owns removal."
|
|
236
|
+
}
|
|
237
|
+
]
|
|
216
238
|
}
|
|
217
239
|
},
|
|
218
240
|
{
|
|
@@ -2450,9 +2472,19 @@
|
|
|
2450
2472
|
},
|
|
2451
2473
|
{
|
|
2452
2474
|
"name": "c-menu-item",
|
|
2453
|
-
"description": "A single command in a `c-menu`.\n---\n\n\n### **Slots:**\n - **default** - The item's content: label text plus optional icons or shortcut hint\n- **submenu** - c-menu-item components for the nested submenu\n\n### **CSS Parts:**\n - **root** - The item row containing the content and the submenu chevron\n- **content** - The flex wrapper around the default-slot content\n- **submenu-panel** - The floating popover holding the submenu\n- **submenu** - The submenu list surface inside the popover",
|
|
2475
|
+
"description": "A single command in a `c-menu`.\n---\n\n\n### **Slots:**\n - **default** - The item's content: label text plus optional icons or shortcut hint\n- **submenu** - c-menu-item components for the nested submenu\n\n### **CSS Parts:**\n - **root** - The item row containing the content and the submenu chevron\n- **content** - The flex wrapper around the default-slot content\n- **icon** - The leading icon rendered from the `icon` prop\n- **check** - The trailing indicator icon shown while the item is active\n- **submenu-panel** - The floating popover holding the submenu\n- **submenu** - The submenu list surface inside the popover",
|
|
2454
2476
|
"doc-url": "",
|
|
2455
2477
|
"attributes": [
|
|
2478
|
+
{
|
|
2479
|
+
"name": "active",
|
|
2480
|
+
"description": "Marks the item as the currently selected choice: renders the trailing\nindicator icon and stamps `role=\"menuitemradio\"` + `aria-checked`. Leave\nunset for regular command items — only a true/false value marks the item\nas a selectable choice. The state is consumer-owned: the menu emits\n`select` as usual and never toggles this itself. Distinct from the\nkeyboard highlight (the `data-active` attribute the controlling menu\nmoves between rows).",
|
|
2481
|
+
"value": { "type": "boolean" }
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
"name": "active-icon",
|
|
2485
|
+
"description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
|
|
2486
|
+
"value": { "type": "string", "default": "''" }
|
|
2487
|
+
},
|
|
2456
2488
|
{
|
|
2457
2489
|
"name": "danger",
|
|
2458
2490
|
"description": "Marks the action as destructive (renders in the error colour).",
|
|
@@ -2463,6 +2495,11 @@
|
|
|
2463
2495
|
"description": "Disables the item — it is skipped by keyboard nav and emits no select.",
|
|
2464
2496
|
"value": { "type": "boolean", "default": "false" }
|
|
2465
2497
|
},
|
|
2498
|
+
{
|
|
2499
|
+
"name": "icon",
|
|
2500
|
+
"description": "SVG path for a leading icon rendered before the item's content.",
|
|
2501
|
+
"value": { "type": "string", "default": "''" }
|
|
2502
|
+
},
|
|
2466
2503
|
{
|
|
2467
2504
|
"name": "value",
|
|
2468
2505
|
"description": "Value reported in the menu's `select` event when this item is chosen.",
|
|
@@ -2482,6 +2519,16 @@
|
|
|
2482
2519
|
"events": [],
|
|
2483
2520
|
"js": {
|
|
2484
2521
|
"properties": [
|
|
2522
|
+
{
|
|
2523
|
+
"name": "active",
|
|
2524
|
+
"description": "Marks the item as the currently selected choice: renders the trailing\nindicator icon and stamps `role=\"menuitemradio\"` + `aria-checked`. Leave\nunset for regular command items — only a true/false value marks the item\nas a selectable choice. The state is consumer-owned: the menu emits\n`select` as usual and never toggles this itself. Distinct from the\nkeyboard highlight (the `data-active` attribute the controlling menu\nmoves between rows).",
|
|
2525
|
+
"type": "boolean"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"name": "activeIcon",
|
|
2529
|
+
"description": "SVG path for the trailing indicator shown while `active`; defaults to a\ncheck mark.",
|
|
2530
|
+
"type": "string"
|
|
2531
|
+
},
|
|
2485
2532
|
{
|
|
2486
2533
|
"name": "danger",
|
|
2487
2534
|
"description": "Marks the action as destructive (renders in the error colour).",
|
|
@@ -2492,6 +2539,11 @@
|
|
|
2492
2539
|
"description": "Disables the item — it is skipped by keyboard nav and emits no select.",
|
|
2493
2540
|
"type": "boolean"
|
|
2494
2541
|
},
|
|
2542
|
+
{
|
|
2543
|
+
"name": "icon",
|
|
2544
|
+
"description": "SVG path for a leading icon rendered before the item's content.",
|
|
2545
|
+
"type": "string"
|
|
2546
|
+
},
|
|
2495
2547
|
{
|
|
2496
2548
|
"name": "value",
|
|
2497
2549
|
"description": "Value reported in the menu's `select` event when this item is chosen.",
|
|
@@ -3021,6 +3073,84 @@
|
|
|
3021
3073
|
]
|
|
3022
3074
|
}
|
|
3023
3075
|
},
|
|
3076
|
+
{
|
|
3077
|
+
"name": "c-popover",
|
|
3078
|
+
"description": "A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive.\n---\n\n\n### **Events:**\n - **change:open** - Fired whenever the popover opens or closes, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached.\n\n### **Slots:**\n - **trigger** - The element that opens the popover (e.g. a c-button)\n- **default** - The popover's content; may contain interactive elements\n\n### **CSS Parts:**\n - **trigger** - The inline wrapper around the slotted trigger, serving as the panel's anchor\n- **panel** - The floating popover surface positioned against the trigger\n- **heading** - The heading rendered from the `heading` prop",
|
|
3079
|
+
"doc-url": "",
|
|
3080
|
+
"attributes": [
|
|
3081
|
+
{
|
|
3082
|
+
"name": "distance",
|
|
3083
|
+
"description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
|
|
3084
|
+
"value": { "type": "number | string", "default": "0" }
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"name": "heading",
|
|
3088
|
+
"description": "Heading rendered at the top of the panel, doubling as its accessible\nname. Without it, set `aria-label` on the host. Named `heading`, not\n`title`: a `title` attribute on the host would trigger the browser's\nnative tooltip and collides with `HTMLElement.title`.",
|
|
3089
|
+
"value": { "type": "string", "default": "''" }
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
"name": "open",
|
|
3093
|
+
"description": "Whether the popover is open. Two-way: emits `change:open`.",
|
|
3094
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
"name": "position",
|
|
3098
|
+
"description": "Preferred placement of the panel relative to the trigger.",
|
|
3099
|
+
"value": {
|
|
3100
|
+
"type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'",
|
|
3101
|
+
"default": "'bottom'"
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
],
|
|
3105
|
+
"slots": [
|
|
3106
|
+
{
|
|
3107
|
+
"name": "trigger",
|
|
3108
|
+
"description": "The element that opens the popover (e.g. a c-button)"
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
"name": "default",
|
|
3112
|
+
"description": "The popover's content; may contain interactive elements"
|
|
3113
|
+
}
|
|
3114
|
+
],
|
|
3115
|
+
"events": [
|
|
3116
|
+
{
|
|
3117
|
+
"name": "change:open",
|
|
3118
|
+
"type": "CustomEvent<boolean>",
|
|
3119
|
+
"description": "Fired whenever the popover opens or closes, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
|
|
3120
|
+
}
|
|
3121
|
+
],
|
|
3122
|
+
"js": {
|
|
3123
|
+
"properties": [
|
|
3124
|
+
{
|
|
3125
|
+
"name": "distance",
|
|
3126
|
+
"description": "Distance from the trigger to the panel, in pixels. Defaults to `0`.",
|
|
3127
|
+
"type": "number | string"
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"name": "heading",
|
|
3131
|
+
"description": "Heading rendered at the top of the panel, doubling as its accessible\nname. Without it, set `aria-label` on the host. Named `heading`, not\n`title`: a `title` attribute on the host would trigger the browser's\nnative tooltip and collides with `HTMLElement.title`.",
|
|
3132
|
+
"type": "string"
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
"name": "open",
|
|
3136
|
+
"description": "Whether the popover is open. Two-way: emits `change:open`.",
|
|
3137
|
+
"type": "boolean"
|
|
3138
|
+
},
|
|
3139
|
+
{
|
|
3140
|
+
"name": "position",
|
|
3141
|
+
"description": "Preferred placement of the panel relative to the trigger.",
|
|
3142
|
+
"type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
|
|
3143
|
+
}
|
|
3144
|
+
],
|
|
3145
|
+
"events": [
|
|
3146
|
+
{
|
|
3147
|
+
"name": "change:open",
|
|
3148
|
+
"type": "CustomEvent<boolean>",
|
|
3149
|
+
"description": "Fired whenever the popover opens or closes, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
|
|
3150
|
+
}
|
|
3151
|
+
]
|
|
3152
|
+
}
|
|
3153
|
+
},
|
|
3024
3154
|
{
|
|
3025
3155
|
"name": "c-progress-bar",
|
|
3026
3156
|
"description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The outer flex wrapper around the bar and the details line\n- **bar** - The visible track of the progress bar, wrapping the native `<progress>` element\n- **details** - The percentage and label text line",
|
|
@@ -3087,14 +3217,9 @@
|
|
|
3087
3217
|
},
|
|
3088
3218
|
{
|
|
3089
3219
|
"name": "c-radio",
|
|
3090
|
-
"description": "
|
|
3220
|
+
"description": "A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label.\n---\n\n\n### **Events:**\n - **change** - Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`.\n\n### **Slots:**\n - **default** - The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced\n\n### **CSS Parts:**\n - **root** - The `<label>` row wrapping the input, indicator and label content\n- **indicator** - The circular ripple surface holding the radio ring and dot\n- **content** - Wrapper around the slotted label content",
|
|
3091
3221
|
"doc-url": "",
|
|
3092
3222
|
"attributes": [
|
|
3093
|
-
{
|
|
3094
|
-
"name": "checked",
|
|
3095
|
-
"description": "Set option as checked",
|
|
3096
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3097
|
-
},
|
|
3098
3223
|
{
|
|
3099
3224
|
"name": "disabled",
|
|
3100
3225
|
"description": "Disable the radio button",
|
|
@@ -3109,17 +3234,18 @@
|
|
|
3109
3234
|
"slots": [
|
|
3110
3235
|
{
|
|
3111
3236
|
"name": "default",
|
|
3112
|
-
"description": "The radio
|
|
3237
|
+
"description": "The radio's label content, rendered inside the shadow `<label>` so it stays click-associated and announced"
|
|
3238
|
+
}
|
|
3239
|
+
],
|
|
3240
|
+
"events": [
|
|
3241
|
+
{
|
|
3242
|
+
"name": "change",
|
|
3243
|
+
"type": "CustomEvent<string>",
|
|
3244
|
+
"description": "Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`."
|
|
3113
3245
|
}
|
|
3114
3246
|
],
|
|
3115
|
-
"events": [],
|
|
3116
3247
|
"js": {
|
|
3117
3248
|
"properties": [
|
|
3118
|
-
{
|
|
3119
|
-
"name": "checked",
|
|
3120
|
-
"description": "Set option as checked",
|
|
3121
|
-
"type": "boolean"
|
|
3122
|
-
},
|
|
3123
3249
|
{
|
|
3124
3250
|
"name": "disabled",
|
|
3125
3251
|
"description": "Disable the radio button",
|
|
@@ -3131,12 +3257,18 @@
|
|
|
3131
3257
|
"type": "string"
|
|
3132
3258
|
}
|
|
3133
3259
|
],
|
|
3134
|
-
"events": [
|
|
3260
|
+
"events": [
|
|
3261
|
+
{
|
|
3262
|
+
"name": "change",
|
|
3263
|
+
"type": "CustomEvent<string>",
|
|
3264
|
+
"description": "Fired when the radio is selected by the user, carrying its `value`.\nBubbles composed so the parent `<c-radio-group>` — whose shadow root a\nlight-DOM event never enters — catches it on its host; a consumer\nlistening on the group hears it too, with the radio as `target`."
|
|
3265
|
+
}
|
|
3266
|
+
]
|
|
3135
3267
|
}
|
|
3136
3268
|
},
|
|
3137
3269
|
{
|
|
3138
3270
|
"name": "c-radio-group",
|
|
3139
|
-
"description": "
|
|
3271
|
+
"description": "A radio group is a set of mutually exclusive choices where exactly one can be selected, authored as slotted `c-radio` children. Give the group a `label` so the choice it represents is named for every user, and a `hint` describing how to answer.\n---\n\n\n### **Events:**\n - **changeValue** - Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired on selection so a plain Vue `v-model`\nworks without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on selection, carrying the selected radio's\nvalue.\n\n### **Slots:**\n - **default** - The radios' home: `<c-radio>` children, wrappable in arbitrary layout elements at any depth\n- **label** - Group label content, used when the `label` prop is not set\n\n### **CSS Parts:**\n - **root** - The radiogroup wrapper element\n- **label** - The group label above the radio buttons\n- **items** - The container the radios are slotted into\n- **message** - The hint/error message area below the radios (always reserved unless `hide-details`)",
|
|
3140
3272
|
"doc-url": "",
|
|
3141
3273
|
"attributes": [
|
|
3142
3274
|
{
|
|
@@ -3159,11 +3291,6 @@
|
|
|
3159
3291
|
"description": "Hint text for the input",
|
|
3160
3292
|
"value": { "type": "string", "default": "''" }
|
|
3161
3293
|
},
|
|
3162
|
-
{
|
|
3163
|
-
"name": "host-id",
|
|
3164
|
-
"description": "Id of the element",
|
|
3165
|
-
"value": { "type": "string", "default": "''" }
|
|
3166
|
-
},
|
|
3167
3294
|
{
|
|
3168
3295
|
"name": "inline",
|
|
3169
3296
|
"description": "Display radio buttons inline",
|
|
@@ -3179,11 +3306,6 @@
|
|
|
3179
3306
|
"description": "Set as required",
|
|
3180
3307
|
"value": { "type": "boolean", "default": "false" }
|
|
3181
3308
|
},
|
|
3182
|
-
{
|
|
3183
|
-
"name": "return-object",
|
|
3184
|
-
"description": "Return the whole item object",
|
|
3185
|
-
"value": { "type": "boolean", "default": "false" }
|
|
3186
|
-
},
|
|
3187
3309
|
{
|
|
3188
3310
|
"name": "valid",
|
|
3189
3311
|
"description": "Set the validity of the input",
|
|
@@ -3191,21 +3313,25 @@
|
|
|
3191
3313
|
},
|
|
3192
3314
|
{
|
|
3193
3315
|
"name": "value",
|
|
3194
|
-
"description": "Value of the radio group",
|
|
3195
|
-
"value": {
|
|
3196
|
-
"type": "null | number | RadioItem | string",
|
|
3197
|
-
"default": "null"
|
|
3198
|
-
}
|
|
3316
|
+
"description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
|
|
3317
|
+
"value": { "type": "null | string", "default": "null" }
|
|
3199
3318
|
}
|
|
3200
3319
|
],
|
|
3201
3320
|
"slots": [
|
|
3202
|
-
{
|
|
3321
|
+
{
|
|
3322
|
+
"name": "default",
|
|
3323
|
+
"description": "The radios' home: `<c-radio>` children, wrappable in arbitrary layout elements at any depth"
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
"name": "label",
|
|
3327
|
+
"description": "Group label content, used when the `label` prop is not set"
|
|
3328
|
+
}
|
|
3203
3329
|
],
|
|
3204
3330
|
"events": [
|
|
3205
3331
|
{
|
|
3206
3332
|
"name": "changeValue",
|
|
3207
|
-
"type": "CustomEvent<
|
|
3208
|
-
"description": "Fired when a radio
|
|
3333
|
+
"type": "CustomEvent<string>",
|
|
3334
|
+
"description": "Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates."
|
|
3209
3335
|
},
|
|
3210
3336
|
{
|
|
3211
3337
|
"name": "input",
|
|
@@ -3214,8 +3340,8 @@
|
|
|
3214
3340
|
},
|
|
3215
3341
|
{
|
|
3216
3342
|
"name": "update:value",
|
|
3217
|
-
"type": "CustomEvent<
|
|
3218
|
-
"description": "v-model contract event fired on selection, carrying the selected
|
|
3343
|
+
"type": "CustomEvent<string>",
|
|
3344
|
+
"description": "v-model contract event fired on selection, carrying the selected radio's\nvalue."
|
|
3219
3345
|
}
|
|
3220
3346
|
],
|
|
3221
3347
|
"js": {
|
|
@@ -3240,21 +3366,11 @@
|
|
|
3240
3366
|
"description": "Hint text for the input",
|
|
3241
3367
|
"type": "string"
|
|
3242
3368
|
},
|
|
3243
|
-
{
|
|
3244
|
-
"name": "hostId",
|
|
3245
|
-
"description": "Id of the element",
|
|
3246
|
-
"type": "string"
|
|
3247
|
-
},
|
|
3248
3369
|
{
|
|
3249
3370
|
"name": "inline",
|
|
3250
3371
|
"description": "Display radio buttons inline",
|
|
3251
3372
|
"type": "boolean"
|
|
3252
3373
|
},
|
|
3253
|
-
{
|
|
3254
|
-
"name": "items",
|
|
3255
|
-
"description": "Radio group items",
|
|
3256
|
-
"type": "RadioItem[]"
|
|
3257
|
-
},
|
|
3258
3374
|
{
|
|
3259
3375
|
"name": "label",
|
|
3260
3376
|
"description": "Label of the radio group",
|
|
@@ -3265,11 +3381,6 @@
|
|
|
3265
3381
|
"description": "Set as required",
|
|
3266
3382
|
"type": "boolean"
|
|
3267
3383
|
},
|
|
3268
|
-
{
|
|
3269
|
-
"name": "returnObject",
|
|
3270
|
-
"description": "Return the whole item object",
|
|
3271
|
-
"type": "boolean"
|
|
3272
|
-
},
|
|
3273
3384
|
{
|
|
3274
3385
|
"name": "valid",
|
|
3275
3386
|
"description": "Set the validity of the input",
|
|
@@ -3277,15 +3388,15 @@
|
|
|
3277
3388
|
},
|
|
3278
3389
|
{
|
|
3279
3390
|
"name": "value",
|
|
3280
|
-
"description": "Value of the radio group",
|
|
3281
|
-
"type": "null |
|
|
3391
|
+
"description": "Value of the radio group; matched against each radio's `value` by strict\nstring equality",
|
|
3392
|
+
"type": "null | string"
|
|
3282
3393
|
}
|
|
3283
3394
|
],
|
|
3284
3395
|
"events": [
|
|
3285
3396
|
{
|
|
3286
3397
|
"name": "changeValue",
|
|
3287
|
-
"type": "CustomEvent<
|
|
3288
|
-
"description": "Fired when a radio
|
|
3398
|
+
"type": "CustomEvent<string>",
|
|
3399
|
+
"description": "Fired when a radio is selected, carrying the selected radio's value. Also dispatched as `change-value` — bind that name in Vue templates."
|
|
3289
3400
|
},
|
|
3290
3401
|
{
|
|
3291
3402
|
"name": "input",
|
|
@@ -3294,8 +3405,8 @@
|
|
|
3294
3405
|
},
|
|
3295
3406
|
{
|
|
3296
3407
|
"name": "update:value",
|
|
3297
|
-
"type": "CustomEvent<
|
|
3298
|
-
"description": "v-model contract event fired on selection, carrying the selected
|
|
3408
|
+
"type": "CustomEvent<string>",
|
|
3409
|
+
"description": "v-model contract event fired on selection, carrying the selected radio's\nvalue."
|
|
3299
3410
|
}
|
|
3300
3411
|
]
|
|
3301
3412
|
}
|
|
@@ -5055,7 +5166,7 @@
|
|
|
5055
5166
|
},
|
|
5056
5167
|
{
|
|
5057
5168
|
"name": "c-toast",
|
|
5058
|
-
"description": "A single toast notification, rendered and managed by c-toasts\n---\n\n\n### **Events:**\n - **close** - Fired once the toast's leave transition has finished (after a manual\ndismiss or the auto-close timer), carrying the dismissed toast's message\nobject.\n\n### **Slots:**\n - **default** - Custom toast content, shown when the message is flagged `custom`\n\n### **CSS Parts:**\n - **root** - The toast's outer box
|
|
5169
|
+
"description": "A single toast notification, rendered and managed by c-toasts\n---\n\n\n### **Events:**\n - **close** - Fired once the toast's leave transition has finished (after a manual\ndismiss or the auto-close timer), carrying the dismissed toast's message\nobject.\n\n### **Slots:**\n - **default** - Custom toast content, shown when the message is flagged `custom`\n\n### **CSS Parts:**\n - **root** - The toast's outer box: the inverted-surface pill carrying the shadow\n- **custom** - Wrapper shown for custom messages in place of the standard item layout\n- **content** - The message body holding the title and text, or the slotted custom content\n- **item** - Row layout of a standard toast: status badge, message body and dismiss button\n- **badge** - The circular tinted badge holding the status icon\n- **dismiss** - The dismiss button (icon-only, or labelled when the message sets `closeText`)\n- **progress** - The track of the auto-close progress bar",
|
|
5059
5170
|
"doc-url": "",
|
|
5060
5171
|
"attributes": [
|
|
5061
5172
|
{
|
|
@@ -5154,6 +5265,94 @@
|
|
|
5154
5265
|
"slots": [{ "name": "default", "description": "Content of toolbar" }],
|
|
5155
5266
|
"events": [],
|
|
5156
5267
|
"js": { "properties": [], "events": [] }
|
|
5268
|
+
},
|
|
5269
|
+
{
|
|
5270
|
+
"name": "c-tooltip",
|
|
5271
|
+
"description": "A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier.\n---\n\n\n### **Events:**\n - **change:open** - Fired whenever the tooltip shows or hides, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached.\n\n### **Slots:**\n - **trigger** - The element the tooltip describes (e.g. a c-icon-button)\n- **content** - Formatted tooltip content, overriding the `text` prop; must stay non-interactive (ADR-0033)\n\n### **CSS Parts:**\n - **trigger** - The inline wrapper around the slotted trigger, serving as the panel's anchor\n- **panel** - The floating tooltip bubble positioned against the trigger",
|
|
5272
|
+
"doc-url": "",
|
|
5273
|
+
"attributes": [
|
|
5274
|
+
{
|
|
5275
|
+
"name": "delay",
|
|
5276
|
+
"description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
|
|
5277
|
+
"value": { "type": "number | string", "default": "400" }
|
|
5278
|
+
},
|
|
5279
|
+
{
|
|
5280
|
+
"name": "distance",
|
|
5281
|
+
"description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
|
|
5282
|
+
"value": { "type": "number | string", "default": "4" }
|
|
5283
|
+
},
|
|
5284
|
+
{
|
|
5285
|
+
"name": "open",
|
|
5286
|
+
"description": "Whether the tooltip is open. Two-way: emits `change:open`.",
|
|
5287
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5288
|
+
},
|
|
5289
|
+
{
|
|
5290
|
+
"name": "position",
|
|
5291
|
+
"description": "Preferred placement of the tooltip relative to the trigger.",
|
|
5292
|
+
"value": {
|
|
5293
|
+
"type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'",
|
|
5294
|
+
"default": "'top'"
|
|
5295
|
+
}
|
|
5296
|
+
},
|
|
5297
|
+
{
|
|
5298
|
+
"name": "text",
|
|
5299
|
+
"description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
|
|
5300
|
+
"value": { "type": "string", "default": "''" }
|
|
5301
|
+
}
|
|
5302
|
+
],
|
|
5303
|
+
"slots": [
|
|
5304
|
+
{
|
|
5305
|
+
"name": "trigger",
|
|
5306
|
+
"description": "The element the tooltip describes (e.g. a c-icon-button)"
|
|
5307
|
+
},
|
|
5308
|
+
{
|
|
5309
|
+
"name": "content",
|
|
5310
|
+
"description": "Formatted tooltip content, overriding the `text` prop; must stay non-interactive (ADR-0033)"
|
|
5311
|
+
}
|
|
5312
|
+
],
|
|
5313
|
+
"events": [
|
|
5314
|
+
{
|
|
5315
|
+
"name": "change:open",
|
|
5316
|
+
"type": "CustomEvent<boolean>",
|
|
5317
|
+
"description": "Fired whenever the tooltip shows or hides, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
|
|
5318
|
+
}
|
|
5319
|
+
],
|
|
5320
|
+
"js": {
|
|
5321
|
+
"properties": [
|
|
5322
|
+
{
|
|
5323
|
+
"name": "delay",
|
|
5324
|
+
"description": "Delay before the tooltip shows on hover, in milliseconds. Keyboard focus\nshows the tooltip immediately, regardless of this value. Defaults to\n`400`.",
|
|
5325
|
+
"type": "number | string"
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
"name": "distance",
|
|
5329
|
+
"description": "Distance from the trigger to the tooltip, in pixels. Defaults to `4`.",
|
|
5330
|
+
"type": "number | string"
|
|
5331
|
+
},
|
|
5332
|
+
{
|
|
5333
|
+
"name": "open",
|
|
5334
|
+
"description": "Whether the tooltip is open. Two-way: emits `change:open`.",
|
|
5335
|
+
"type": "boolean"
|
|
5336
|
+
},
|
|
5337
|
+
{
|
|
5338
|
+
"name": "position",
|
|
5339
|
+
"description": "Preferred placement of the tooltip relative to the trigger.",
|
|
5340
|
+
"type": "'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top'"
|
|
5341
|
+
},
|
|
5342
|
+
{
|
|
5343
|
+
"name": "text",
|
|
5344
|
+
"description": "The tooltip text. Overridden by the `content` slot when that is\npopulated.",
|
|
5345
|
+
"type": "string"
|
|
5346
|
+
}
|
|
5347
|
+
],
|
|
5348
|
+
"events": [
|
|
5349
|
+
{
|
|
5350
|
+
"name": "change:open",
|
|
5351
|
+
"type": "CustomEvent<boolean>",
|
|
5352
|
+
"description": "Fired whenever the tooltip shows or hides, carrying the new open state.\nNamed `change:open`, not `update:open`: Vue's runtime silently drops\n`onUpdate:*` listeners on custom elements (`isModelListener`), so a\ntemplate `@update:open` would never be attached."
|
|
5353
|
+
}
|
|
5354
|
+
]
|
|
5355
|
+
}
|
|
5157
5356
|
}
|
|
5158
5357
|
]
|
|
5159
5358
|
},
|
|
@@ -5187,16 +5386,17 @@
|
|
|
5187
5386
|
},
|
|
5188
5387
|
{
|
|
5189
5388
|
"name": "part(root)",
|
|
5190
|
-
"description": "The
|
|
5191
|
-
},
|
|
5192
|
-
{
|
|
5193
|
-
"name": "part(icon)",
|
|
5194
|
-
"description": "The status icon svg shown for the error/info/success/warning types"
|
|
5389
|
+
"description": "The tinted box carrying the type's wash, hairline border and accent edge"
|
|
5195
5390
|
},
|
|
5391
|
+
{ "name": "part(icon)", "description": "The status icon svg" },
|
|
5196
5392
|
{
|
|
5197
5393
|
"name": "part(content)",
|
|
5198
5394
|
"description": "The wrapper around the slotted title and message content"
|
|
5199
5395
|
},
|
|
5396
|
+
{
|
|
5397
|
+
"name": "part(dismiss)",
|
|
5398
|
+
"description": "The dismiss button rendered when `dismissible` is set"
|
|
5399
|
+
},
|
|
5200
5400
|
{
|
|
5201
5401
|
"name": "part(panel)",
|
|
5202
5402
|
"description": "The top-layer popover container anchored below the field"
|
|
@@ -5482,6 +5682,14 @@
|
|
|
5482
5682
|
"name": "part(content)",
|
|
5483
5683
|
"description": "The flex wrapper around the default-slot content"
|
|
5484
5684
|
},
|
|
5685
|
+
{
|
|
5686
|
+
"name": "part(icon)",
|
|
5687
|
+
"description": "The leading icon rendered from the `icon` prop"
|
|
5688
|
+
},
|
|
5689
|
+
{
|
|
5690
|
+
"name": "part(check)",
|
|
5691
|
+
"description": "The trailing indicator icon shown while the item is active"
|
|
5692
|
+
},
|
|
5485
5693
|
{
|
|
5486
5694
|
"name": "part(submenu-panel)",
|
|
5487
5695
|
"description": "The floating popover holding the submenu"
|
|
@@ -5550,6 +5758,18 @@
|
|
|
5550
5758
|
"name": "part(pages)",
|
|
5551
5759
|
"description": "The `<ul>` list of page buttons and the prev/next controls"
|
|
5552
5760
|
},
|
|
5761
|
+
{
|
|
5762
|
+
"name": "part(trigger)",
|
|
5763
|
+
"description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
|
|
5764
|
+
},
|
|
5765
|
+
{
|
|
5766
|
+
"name": "part(panel)",
|
|
5767
|
+
"description": "The floating popover surface positioned against the trigger"
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
"name": "part(heading)",
|
|
5771
|
+
"description": "The heading rendered from the `heading` prop"
|
|
5772
|
+
},
|
|
5553
5773
|
{
|
|
5554
5774
|
"name": "part(root)",
|
|
5555
5775
|
"description": "The outer flex wrapper around the bar and the details line"
|
|
@@ -5564,7 +5784,19 @@
|
|
|
5564
5784
|
},
|
|
5565
5785
|
{
|
|
5566
5786
|
"name": "part(root)",
|
|
5567
|
-
"description": "The
|
|
5787
|
+
"description": "The `<label>` row wrapping the input, indicator and label content"
|
|
5788
|
+
},
|
|
5789
|
+
{
|
|
5790
|
+
"name": "part(indicator)",
|
|
5791
|
+
"description": "The circular ripple surface holding the radio ring and dot"
|
|
5792
|
+
},
|
|
5793
|
+
{
|
|
5794
|
+
"name": "part(content)",
|
|
5795
|
+
"description": "Wrapper around the slotted label content"
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"name": "part(root)",
|
|
5799
|
+
"description": "The radiogroup wrapper element"
|
|
5568
5800
|
},
|
|
5569
5801
|
{
|
|
5570
5802
|
"name": "part(label)",
|
|
@@ -5572,11 +5804,11 @@
|
|
|
5572
5804
|
},
|
|
5573
5805
|
{
|
|
5574
5806
|
"name": "part(items)",
|
|
5575
|
-
"description": "The
|
|
5807
|
+
"description": "The container the radios are slotted into"
|
|
5576
5808
|
},
|
|
5577
5809
|
{
|
|
5578
5810
|
"name": "part(message)",
|
|
5579
|
-
"description": "The hint/error message
|
|
5811
|
+
"description": "The hint/error message area below the radios (always reserved unless `hide-details`)"
|
|
5580
5812
|
},
|
|
5581
5813
|
{
|
|
5582
5814
|
"name": "part(menu)",
|
|
@@ -5737,7 +5969,7 @@
|
|
|
5737
5969
|
},
|
|
5738
5970
|
{
|
|
5739
5971
|
"name": "part(root)",
|
|
5740
|
-
"description": "The toast's outer box
|
|
5972
|
+
"description": "The toast's outer box: the inverted-surface pill carrying the shadow"
|
|
5741
5973
|
},
|
|
5742
5974
|
{
|
|
5743
5975
|
"name": "part(custom)",
|
|
@@ -5749,7 +5981,15 @@
|
|
|
5749
5981
|
},
|
|
5750
5982
|
{
|
|
5751
5983
|
"name": "part(item)",
|
|
5752
|
-
"description": "Row layout of a standard toast:
|
|
5984
|
+
"description": "Row layout of a standard toast: status badge, message body and dismiss button"
|
|
5985
|
+
},
|
|
5986
|
+
{
|
|
5987
|
+
"name": "part(badge)",
|
|
5988
|
+
"description": "The circular tinted badge holding the status icon"
|
|
5989
|
+
},
|
|
5990
|
+
{
|
|
5991
|
+
"name": "part(dismiss)",
|
|
5992
|
+
"description": "The dismiss button (icon-only, or labelled when the message sets `closeText`)"
|
|
5753
5993
|
},
|
|
5754
5994
|
{
|
|
5755
5995
|
"name": "part(progress)",
|
|
@@ -5762,6 +6002,14 @@
|
|
|
5762
6002
|
{
|
|
5763
6003
|
"name": "part(root)",
|
|
5764
6004
|
"description": "The toolbar bar itself, fixed to the top of the viewport"
|
|
6005
|
+
},
|
|
6006
|
+
{
|
|
6007
|
+
"name": "part(trigger)",
|
|
6008
|
+
"description": "The inline wrapper around the slotted trigger, serving as the panel's anchor"
|
|
6009
|
+
},
|
|
6010
|
+
{
|
|
6011
|
+
"name": "part(panel)",
|
|
6012
|
+
"description": "The floating tooltip bubble positioned against the trigger"
|
|
5765
6013
|
}
|
|
5766
6014
|
]
|
|
5767
6015
|
}
|