@cscfi/csc-ui 4.0.0-rc.4 → 4.0.0-rc.6
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 +11345 -10712
- package/dist/custom-elements.json +145 -23
- package/dist/docs/c-button/usage.md +63 -6
- package/dist/docs/c-color-picker/usage.md +2 -1
- package/dist/docs/c-date-picker/usage.md +2 -1
- package/dist/docs/c-file-upload/usage.md +3 -3
- package/dist/docs/c-icon-button/usage.md +1 -0
- package/dist/docs/c-otp-input/usage.md +4 -1
- package/dist/docs/c-radio-group/usage.md +3 -1
- package/dist/docs/c-slider/usage.md +2 -2
- package/dist/docs/c-text-field/usage.md +53 -1
- package/dist/styles/css/tailwind-theme.css +6 -0
- package/dist/styles/css/tokens.css +95 -88
- package/dist/vscode.css-custom-data.json +2 -2
- package/dist/vscode.html-custom-data.json +63 -15
- package/dist/web-types.json +85 -29
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +2 -1
- package/dist-types/components/c-button/CButton.vue.d.ts +6 -2
- package/dist-types/components/c-button/injectButtonStyles.d.ts +1 -0
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +8 -0
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +3 -3
- package/dist-types/components/c-color-picker/CColorPicker.vue.d.ts +2 -1
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +2 -1
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +3 -1
- package/dist-types/components/c-number-field/CNumberField.vue.d.ts +2 -1
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +7 -0
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +8 -0
- package/dist-types/components/c-select/CSelect.vue.d.ts +2 -1
- package/dist-types/components/c-slider/CSlider.vue.d.ts +2 -3
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +8 -0
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +3 -2
- package/dist-types/components/c-text-field/injectTextFieldStyles.d.ts +1 -0
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +2 -1
- package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +1 -1
- package/dist-types/registry.d.ts +7 -0
- package/dist-types/shared/defineElement.d.ts +5 -1
- package/dist-types/shared/implicitSubmission.d.ts +31 -0
- package/dist-types/shared/useElementInternals.d.ts +7 -0
- package/dist-types/shared/useFormAssociation.d.ts +88 -0
- package/dist-types/shared/useHostStates.d.ts +5 -4
- package/dist-types/shared/useTypedField.d.ts +7 -0
- package/dist-types/shared/valueEvents.d.ts +6 -0
- package/dist-types/tag-name-map.d.ts +61 -21
- package/package.json +3 -2
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "c-accordion-item",
|
|
34
|
-
"description": "One collapsible section of a `c-accordion`: a header button showing its `heading` (or the `heading` slot) and an optional icon, above the content in the default slot. Place it directly inside the accordion and give it a `value`: the accordion expands items by value and leaves an item without one collapsed.\n---\n\n\n### **Slots:**\n - **heading** - Rich heading content, replacing the `heading` prop; no interactive content\n- **icon** - Icon shown in the header before the heading\n- **default** - The content shown while the item is expanded\n\n### **CSS Parts:**\n - **root** - The item's box: its share of the accordion frame, the lifted outline and
|
|
34
|
+
"description": "One collapsible section of a `c-accordion`: a header button showing its `heading` (or the `heading` slot) and an optional icon, above the content in the default slot. Place it directly inside the accordion and give it a `value`: the accordion expands items by value and leaves an item without one collapsed.\n---\n\n\n### **Slots:**\n - **heading** - Rich heading content, replacing the `heading` prop; no interactive content\n- **icon** - Icon shown in the header before the heading\n- **default** - The content shown while the item is expanded\n\n### **CSS Parts:**\n - **root** - The item's box: its share of the accordion frame, the lifted outline and tint while expanded, and the ring the accordion's `outlined` adds\n- **header** - The toggle button row containing the icon, heading and indicator\n- **indicator** - The rotating chevron at the end of the header\n- **content** - The padded card around the slotted content inside the collapsing region",
|
|
35
35
|
"attributes": [
|
|
36
36
|
{
|
|
37
37
|
"name": "heading",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "c-alert",
|
|
51
|
-
"description": "A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral.\n---\n\n\n### **Events:**\n - **close** - Fired when the close button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **heading** - Rich heading content; overrides the `heading` prop\n- **default** - The message\n\n### **CSS Parts:**\n - **root** - The
|
|
51
|
+
"description": "A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral.\n---\n\n\n### **Events:**\n - **close** - Fired when the close button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **heading** - Rich heading content; overrides the `heading` prop\n- **default** - The message\n\n### **CSS Parts:**\n - **root** - The box carrying the type's tint, hairline border and accent edge\n- **icon** - The status icon, rendered only when a `type` is set\n- **content** - The wrapper around the heading and message content\n- **heading** - The heading paragraph rendered from the `heading` prop\n- **close** - The close button rendered when `closeable` is set",
|
|
52
52
|
"attributes": [
|
|
53
53
|
{
|
|
54
54
|
"name": "closeable",
|
|
@@ -143,7 +143,11 @@
|
|
|
143
143
|
"description": "Allow selecting several options: rows toggle, the panel stays open and\nkeeps its query, `value` becomes an array of the selected values (items\nwith `return-object`) in the order they were picked, and the picks show\nas tags inside the field. Arrays have no attribute form — bind `value` as\na DOM property",
|
|
144
144
|
"values": []
|
|
145
145
|
},
|
|
146
|
-
{
|
|
146
|
+
{
|
|
147
|
+
"name": "name",
|
|
148
|
+
"description": "The name the picked value submits under in a native `<form>` — one entry\nper value with `multiple`",
|
|
149
|
+
"values": []
|
|
150
|
+
},
|
|
147
151
|
{
|
|
148
152
|
"name": "placeholder",
|
|
149
153
|
"description": "Placeholder for the in-panel search input",
|
|
@@ -209,7 +213,7 @@
|
|
|
209
213
|
},
|
|
210
214
|
{
|
|
211
215
|
"name": "c-button",
|
|
212
|
-
"description": "Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one filled button (the default `appearance`) per view for its main action; other actions use `appearance=\"outlined\"`, `\"ghost\"` or `\"text\"`.\n---\n\n\n### **Slots:**\n - **default** - Button label content.\n- **icon** - Leading icon, vertically centered before the label.\n- **description** - Secondary text rendered below the label.\n\n### **CSS Parts:**\n - **root** - The native `<button>` / `<a>` element carrying the visual styling.\n- **content** - Layout wrapper for the label, icon and description.\n- **description** - Wrapper of the `description` slot.",
|
|
216
|
+
"description": "Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one filled button (the default `appearance`) per view for its main action; other actions use `appearance=\"outlined\"`, `\"ghost\"` or `\"text\"`.\n---\n\n\n### **Methods:**\n - **focus()** - Focus its button — its link under `href`, or the slotted button — as\n`focus()` does on a native button: the element renders no box of its own to\ntake it.\n\n### **Slots:**\n - **default** - Button label content, or a slotted `<button>` (ADR-0085):\nthe page's own native button, which a password manager reading the form's\nsubmit button finds. Its own `type`, `disabled`, `name`, `value` and\n`form` apply; the element paints its look.\n- **icon** - Leading icon, vertically centered before the label.\n- **description** - Secondary text rendered below the label.\n\n### **CSS Parts:**\n - **root** - The native `<button>` / `<a>` element carrying the visual styling.\n- **content** - Layout wrapper for the label, icon and description.\n- **description** - Wrapper of the `description` slot.",
|
|
213
217
|
"attributes": [
|
|
214
218
|
{
|
|
215
219
|
"name": "active",
|
|
@@ -343,6 +347,11 @@
|
|
|
343
347
|
"description": "Allow several buttons to be active at once. The value becomes an array\nof the active buttons' values (in DOM order). Arrays have no attribute\nform — bind `value` as a DOM property (`:value.prop` in Vue).",
|
|
344
348
|
"values": []
|
|
345
349
|
},
|
|
350
|
+
{
|
|
351
|
+
"name": "name",
|
|
352
|
+
"description": "The name the active button's value submits under in a native `<form>` —\none entry per active button with `multiple`, nothing while none is active",
|
|
353
|
+
"values": []
|
|
354
|
+
},
|
|
346
355
|
{
|
|
347
356
|
"name": "required",
|
|
348
357
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -487,7 +496,7 @@
|
|
|
487
496
|
},
|
|
488
497
|
{
|
|
489
498
|
"name": "name",
|
|
490
|
-
"description": "
|
|
499
|
+
"description": "The name the checkbox submits under in a native `<form>` while it is\nchecked: its `true-value`, or `on` when that is `true`",
|
|
491
500
|
"values": []
|
|
492
501
|
},
|
|
493
502
|
{
|
|
@@ -563,7 +572,11 @@
|
|
|
563
572
|
"description": "Label on top of the field",
|
|
564
573
|
"values": []
|
|
565
574
|
},
|
|
566
|
-
{
|
|
575
|
+
{
|
|
576
|
+
"name": "name",
|
|
577
|
+
"description": "The name the colour submits under in a native `<form>`, in the\npicker's notation",
|
|
578
|
+
"values": []
|
|
579
|
+
},
|
|
567
580
|
{
|
|
568
581
|
"name": "placeholder",
|
|
569
582
|
"description": "Placeholder of the input; an example of the notation when empty",
|
|
@@ -740,7 +753,11 @@
|
|
|
740
753
|
"description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
|
|
741
754
|
"values": []
|
|
742
755
|
},
|
|
743
|
-
{
|
|
756
|
+
{
|
|
757
|
+
"name": "name",
|
|
758
|
+
"description": "The name the date submits under in a native `<form>`, as its ISO text;\na `range` as one ISO 8601 interval, `start/end`",
|
|
759
|
+
"values": []
|
|
760
|
+
},
|
|
744
761
|
{
|
|
745
762
|
"name": "placeholder",
|
|
746
763
|
"description": "Placeholder of the input; the `format` pattern when empty",
|
|
@@ -891,7 +908,7 @@
|
|
|
891
908
|
},
|
|
892
909
|
{
|
|
893
910
|
"name": "c-icon-button",
|
|
894
|
-
"description": "An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element.\n---\n\n\n### **Slots:**\n - **default** - The icon: a `c-icon` or an `<svg>`; it wins over `path`\n\n### **CSS Parts:**\n - **root** - The native `<button>` element carrying the visual styling\n- **content** - Inner wrapper around the slotted icon or loading spinner\n- **badge** - The count bubble at the button's top-right corner, shown by `badge`",
|
|
911
|
+
"description": "An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element.\n---\n\n\n### **Methods:**\n - **focus()** - Focus its button, as `focus()` does on a native button: the element renders\nno box of its own to take it.\n\n### **Slots:**\n - **default** - The icon: a `c-icon` or an `<svg>`; it wins over `path`\n\n### **CSS Parts:**\n - **root** - The native `<button>` element carrying the visual styling\n- **content** - Inner wrapper around the slotted icon or loading spinner\n- **badge** - The count bubble at the button's top-right corner, shown by `badge`",
|
|
895
912
|
"attributes": [
|
|
896
913
|
{
|
|
897
914
|
"name": "appearance",
|
|
@@ -1431,7 +1448,11 @@
|
|
|
1431
1448
|
"description": "The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored",
|
|
1432
1449
|
"values": []
|
|
1433
1450
|
},
|
|
1434
|
-
{
|
|
1451
|
+
{
|
|
1452
|
+
"name": "name",
|
|
1453
|
+
"description": "The name the number submits under in a native `<form>`, written as a\nplain JS number (`1234.5`)",
|
|
1454
|
+
"values": []
|
|
1455
|
+
},
|
|
1435
1456
|
{
|
|
1436
1457
|
"name": "placeholder",
|
|
1437
1458
|
"description": "Placeholder of the input",
|
|
@@ -1539,6 +1560,11 @@
|
|
|
1539
1560
|
"description": "Number of digits in the code, one box each",
|
|
1540
1561
|
"values": []
|
|
1541
1562
|
},
|
|
1563
|
+
{
|
|
1564
|
+
"name": "name",
|
|
1565
|
+
"description": "The name the code submits under in a native `<form>`, as typed so far",
|
|
1566
|
+
"values": []
|
|
1567
|
+
},
|
|
1542
1568
|
{
|
|
1543
1569
|
"name": "required",
|
|
1544
1570
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -1747,6 +1773,11 @@
|
|
|
1747
1773
|
"description": "Label of the radio group",
|
|
1748
1774
|
"values": []
|
|
1749
1775
|
},
|
|
1776
|
+
{
|
|
1777
|
+
"name": "name",
|
|
1778
|
+
"description": "The name the picked radio's value submits under in a native `<form>`;\nnothing submits while no radio is picked",
|
|
1779
|
+
"values": []
|
|
1780
|
+
},
|
|
1750
1781
|
{ "name": "required", "description": "Set as required", "values": [] },
|
|
1751
1782
|
{
|
|
1752
1783
|
"name": "value",
|
|
@@ -1821,7 +1852,11 @@
|
|
|
1821
1852
|
"description": "Allow selecting several options: rows toggle and the list stays open,\n`value` becomes an array of the selected values (items with\n`return-object`) in the order they were picked, and the picks show as\ntags inside the field. `option-as-selection` is ignored in this mode.\nArrays have no attribute form — bind `value` as a DOM property",
|
|
1822
1853
|
"values": []
|
|
1823
1854
|
},
|
|
1824
|
-
{
|
|
1855
|
+
{
|
|
1856
|
+
"name": "name",
|
|
1857
|
+
"description": "The name the picked value submits under in a native `<form>` — one entry\nper value with `multiple`",
|
|
1858
|
+
"values": []
|
|
1859
|
+
},
|
|
1825
1860
|
{
|
|
1826
1861
|
"name": "option-as-selection",
|
|
1827
1862
|
"description": "Display the option as selection (only with <c-option> elements)",
|
|
@@ -1950,7 +1985,7 @@
|
|
|
1950
1985
|
{ "name": "min", "description": "The smallest value.", "values": [] },
|
|
1951
1986
|
{
|
|
1952
1987
|
"name": "name",
|
|
1953
|
-
"description": "
|
|
1988
|
+
"description": "The name the value submits under in a native `<form>`",
|
|
1954
1989
|
"values": []
|
|
1955
1990
|
},
|
|
1956
1991
|
{
|
|
@@ -2106,6 +2141,11 @@
|
|
|
2106
2141
|
"description": "Show a spinner in place of the handle, such as while the change is\nsaved. The switch ignores toggles meanwhile and is announced as busy",
|
|
2107
2142
|
"values": []
|
|
2108
2143
|
},
|
|
2144
|
+
{
|
|
2145
|
+
"name": "name",
|
|
2146
|
+
"description": "The name the switch submits under in a native `<form>` while it is on:\nits `true-value`, or `on` when that is `true`",
|
|
2147
|
+
"values": []
|
|
2148
|
+
},
|
|
2109
2149
|
{
|
|
2110
2150
|
"name": "required",
|
|
2111
2151
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -2296,7 +2336,7 @@
|
|
|
2296
2336
|
},
|
|
2297
2337
|
{
|
|
2298
2338
|
"name": "c-text-field",
|
|
2299
|
-
"description": "A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message.\n---\n\n\n### **Events:**\n - **change** - Fired when typed text is committed — Enter, or leaving the field after\nediting it — carrying the text, trimmed when `trim-whitespace` is set.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` stays in sync. No detail.\n- **update:value** - v-model contract event fired on every keystroke, carrying the current\ntext — trimmed when `trim-whitespace` is set.\n\n### **Methods:**\n - **focus()** - Focus its input, as `focus()` does on a native control: the element renders\nno box of its own to take it.\n\n### **Slots:**\n - **pre** - Content inside the field, before the input, such as an icon\n- **post** - Content inside the field, after the input and its password or date button\n\n### **CSS Parts:**\n - **mask-guide** - The faint rest of the input mask, shown behind the typed text\n- **message** - The hint / error message area below the field (always reserved unless `hide-message`)",
|
|
2339
|
+
"description": "A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message.\n---\n\n\n### **Events:**\n - **change** - Fired when typed text is committed — Enter, or leaving the field after\nediting it — carrying the text, trimmed when `trim-whitespace` is set.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` stays in sync. No detail.\n- **update:value** - v-model contract event fired on every keystroke, carrying the current\ntext — trimmed when `trim-whitespace` is set.\n\n### **Methods:**\n - **focus()** - Focus its input, as `focus()` does on a native control: the element renders\nno box of its own to take it.\n\n### **Slots:**\n - **default** - A page's own `<input>`, framed in place of the field's own so that every password manager can fill it; its native attributes are its own\n- **pre** - Content inside the field, before the input, such as an icon\n- **post** - Content inside the field, after the input and its password or date button\n\n### **CSS Parts:**\n - **mask-guide** - The faint rest of the input mask, shown behind the typed text\n- **message** - The hint / error message area below the field (always reserved unless `hide-message`)",
|
|
2300
2340
|
"attributes": [
|
|
2301
2341
|
{
|
|
2302
2342
|
"name": "autocapitalize",
|
|
@@ -2378,7 +2418,7 @@
|
|
|
2378
2418
|
},
|
|
2379
2419
|
{
|
|
2380
2420
|
"name": "name",
|
|
2381
|
-
"description": "
|
|
2421
|
+
"description": "The name the text submits under in a native `<form>`",
|
|
2382
2422
|
"values": []
|
|
2383
2423
|
},
|
|
2384
2424
|
{
|
|
@@ -2508,7 +2548,11 @@
|
|
|
2508
2548
|
"description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
|
|
2509
2549
|
"values": []
|
|
2510
2550
|
},
|
|
2511
|
-
{
|
|
2551
|
+
{
|
|
2552
|
+
"name": "name",
|
|
2553
|
+
"description": "The name the time submits under in a native `<form>`, as its ISO text;\na `range` as one ISO 8601 interval, `start/end`",
|
|
2554
|
+
"values": []
|
|
2555
|
+
},
|
|
2512
2556
|
{
|
|
2513
2557
|
"name": "placeholder",
|
|
2514
2558
|
"description": "Placeholder of the input; the `format` pattern when empty",
|
|
@@ -2703,7 +2747,11 @@
|
|
|
2703
2747
|
"description": "Label on top of the field",
|
|
2704
2748
|
"values": []
|
|
2705
2749
|
},
|
|
2706
|
-
{
|
|
2750
|
+
{
|
|
2751
|
+
"name": "name",
|
|
2752
|
+
"description": "The name the picked value submits under in a native `<form>`",
|
|
2753
|
+
"values": []
|
|
2754
|
+
},
|
|
2707
2755
|
{
|
|
2708
2756
|
"name": "placeholder",
|
|
2709
2757
|
"description": "Placeholder for the search input inside the panel",
|
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-rc.
|
|
4
|
+
"version": "4.0.0-rc.6",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "c-accordion-item",
|
|
114
|
-
"description": "One collapsible section of a `c-accordion`: a header button showing its `heading` (or the `heading` slot) and an optional icon, above the content in the default slot. Place it directly inside the accordion and give it a `value`: the accordion expands items by value and leaves an item without one collapsed.\n---\n\n\n### **Slots:**\n - **heading** - Rich heading content, replacing the `heading` prop; no interactive content\n- **icon** - Icon shown in the header before the heading\n- **default** - The content shown while the item is expanded\n\n### **CSS Parts:**\n - **root** - The item's box: its share of the accordion frame, the lifted outline and
|
|
114
|
+
"description": "One collapsible section of a `c-accordion`: a header button showing its `heading` (or the `heading` slot) and an optional icon, above the content in the default slot. Place it directly inside the accordion and give it a `value`: the accordion expands items by value and leaves an item without one collapsed.\n---\n\n\n### **Slots:**\n - **heading** - Rich heading content, replacing the `heading` prop; no interactive content\n- **icon** - Icon shown in the header before the heading\n- **default** - The content shown while the item is expanded\n\n### **CSS Parts:**\n - **root** - The item's box: its share of the accordion frame, the lifted outline and tint while expanded, and the ring the accordion's `outlined` adds\n- **header** - The toggle button row containing the icon, heading and indicator\n- **indicator** - The rotating chevron at the end of the header\n- **content** - The padded card around the slotted content inside the collapsing region",
|
|
115
115
|
"doc-url": "",
|
|
116
116
|
"attributes": [
|
|
117
117
|
{
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"name": "c-alert",
|
|
166
|
-
"description": "A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral.\n---\n\n\n### **Events:**\n - **close** - Fired when the close button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **heading** - Rich heading content; overrides the `heading` prop\n- **default** - The message\n\n### **CSS Parts:**\n - **root** - The
|
|
166
|
+
"description": "A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral.\n---\n\n\n### **Events:**\n - **close** - Fired when the close button is pressed. The alert does not hide\nitself — the consumer owns removal.\n\n### **Slots:**\n - **heading** - Rich heading content; overrides the `heading` prop\n- **default** - The message\n\n### **CSS Parts:**\n - **root** - The box carrying the type's tint, hairline border and accent edge\n- **icon** - The status icon, rendered only when a `type` is set\n- **content** - The wrapper around the heading and message content\n- **heading** - The heading paragraph rendered from the `heading` prop\n- **close** - The close button rendered when `closeable` is set",
|
|
167
167
|
"doc-url": "",
|
|
168
168
|
"attributes": [
|
|
169
169
|
{
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
"name": "name",
|
|
355
|
-
"description": "
|
|
355
|
+
"description": "The name the picked value submits under in a native `<form>` — one entry\nper value with `multiple`",
|
|
356
356
|
"value": {
|
|
357
357
|
"type": "string",
|
|
358
358
|
"default": "''"
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
},
|
|
536
536
|
{
|
|
537
537
|
"name": "name",
|
|
538
|
-
"description": "
|
|
538
|
+
"description": "The name the picked value submits under in a native `<form>` — one entry\nper value with `multiple`",
|
|
539
539
|
"type": "string"
|
|
540
540
|
},
|
|
541
541
|
{
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
},
|
|
695
695
|
{
|
|
696
696
|
"name": "c-button",
|
|
697
|
-
"description": "Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one filled button (the default `appearance`) per view for its main action; other actions use `appearance=\"outlined\"`, `\"ghost\"` or `\"text\"`.\n---\n\n\n### **Slots:**\n - **default** - Button label content.\n- **icon** - Leading icon, vertically centered before the label.\n- **description** - Secondary text rendered below the label.\n\n### **CSS Parts:**\n - **root** - The native `<button>` / `<a>` element carrying the visual styling.\n- **content** - Layout wrapper for the label, icon and description.\n- **description** - Wrapper of the `description` slot.",
|
|
697
|
+
"description": "Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one filled button (the default `appearance`) per view for its main action; other actions use `appearance=\"outlined\"`, `\"ghost\"` or `\"text\"`.\n---\n\n\n### **Methods:**\n - **focus()** - Focus its button — its link under `href`, or the slotted button — as\n`focus()` does on a native button: the element renders no box of its own to\ntake it.\n\n### **Slots:**\n - **default** - Button label content, or a slotted `<button>` (ADR-0085):\nthe page's own native button, which a password manager reading the form's\nsubmit button finds. Its own `type`, `disabled`, `name`, `value` and\n`form` apply; the element paints its look.\n- **icon** - Leading icon, vertically centered before the label.\n- **description** - Secondary text rendered below the label.\n\n### **CSS Parts:**\n - **root** - The native `<button>` / `<a>` element carrying the visual styling.\n- **content** - Layout wrapper for the label, icon and description.\n- **description** - Wrapper of the `description` slot.",
|
|
698
698
|
"doc-url": "",
|
|
699
699
|
"attributes": [
|
|
700
700
|
{
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
"slots": [
|
|
839
839
|
{
|
|
840
840
|
"name": "default",
|
|
841
|
-
"description": "Button label content."
|
|
841
|
+
"description": "Button label content, or a slotted `<button>` (ADR-0085):\nthe page's own native button, which a password manager reading the form's\nsubmit button finds. Its own `type`, `disabled`, `name`, `value` and\n`form` apply; the element paints its look."
|
|
842
842
|
},
|
|
843
843
|
{
|
|
844
844
|
"name": "icon",
|
|
@@ -978,6 +978,14 @@
|
|
|
978
978
|
"default": "false"
|
|
979
979
|
}
|
|
980
980
|
},
|
|
981
|
+
{
|
|
982
|
+
"name": "name",
|
|
983
|
+
"description": "The name the active button's value submits under in a native `<form>` —\none entry per active button with `multiple`, nothing while none is active",
|
|
984
|
+
"value": {
|
|
985
|
+
"type": "string",
|
|
986
|
+
"default": "''"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
981
989
|
{
|
|
982
990
|
"name": "required",
|
|
983
991
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -1048,6 +1056,11 @@
|
|
|
1048
1056
|
"description": "Allow several buttons to be active at once. The value becomes an array\nof the active buttons' values (in DOM order). Arrays have no attribute\nform — bind `value` as a DOM property (`:value.prop` in Vue).",
|
|
1049
1057
|
"type": "boolean"
|
|
1050
1058
|
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "name",
|
|
1061
|
+
"description": "The name the active button's value submits under in a native `<form>` —\none entry per active button with `multiple`, nothing while none is active",
|
|
1062
|
+
"type": "string"
|
|
1063
|
+
},
|
|
1051
1064
|
{
|
|
1052
1065
|
"name": "required",
|
|
1053
1066
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -1313,7 +1326,7 @@
|
|
|
1313
1326
|
},
|
|
1314
1327
|
{
|
|
1315
1328
|
"name": "name",
|
|
1316
|
-
"description": "
|
|
1329
|
+
"description": "The name the checkbox submits under in a native `<form>` while it is\nchecked: its `true-value`, or `on` when that is `true`",
|
|
1317
1330
|
"value": {
|
|
1318
1331
|
"type": "string",
|
|
1319
1332
|
"default": "''"
|
|
@@ -1420,7 +1433,7 @@
|
|
|
1420
1433
|
},
|
|
1421
1434
|
{
|
|
1422
1435
|
"name": "name",
|
|
1423
|
-
"description": "
|
|
1436
|
+
"description": "The name the checkbox submits under in a native `<form>` while it is\nchecked: its `true-value`, or `on` when that is `true`",
|
|
1424
1437
|
"type": "string"
|
|
1425
1438
|
},
|
|
1426
1439
|
{
|
|
@@ -1554,7 +1567,7 @@
|
|
|
1554
1567
|
},
|
|
1555
1568
|
{
|
|
1556
1569
|
"name": "name",
|
|
1557
|
-
"description": "
|
|
1570
|
+
"description": "The name the colour submits under in a native `<form>`, in the\npicker's notation",
|
|
1558
1571
|
"value": {
|
|
1559
1572
|
"type": "string",
|
|
1560
1573
|
"default": "''"
|
|
@@ -1691,7 +1704,7 @@
|
|
|
1691
1704
|
},
|
|
1692
1705
|
{
|
|
1693
1706
|
"name": "name",
|
|
1694
|
-
"description": "
|
|
1707
|
+
"description": "The name the colour submits under in a native `<form>`, in the\npicker's notation",
|
|
1695
1708
|
"type": "string"
|
|
1696
1709
|
},
|
|
1697
1710
|
{
|
|
@@ -2167,7 +2180,7 @@
|
|
|
2167
2180
|
},
|
|
2168
2181
|
{
|
|
2169
2182
|
"name": "name",
|
|
2170
|
-
"description": "
|
|
2183
|
+
"description": "The name the date submits under in a native `<form>`, as its ISO text;\na `range` as one ISO 8601 interval, `start/end`",
|
|
2171
2184
|
"value": {
|
|
2172
2185
|
"type": "string",
|
|
2173
2186
|
"default": "''"
|
|
@@ -2353,7 +2366,7 @@
|
|
|
2353
2366
|
},
|
|
2354
2367
|
{
|
|
2355
2368
|
"name": "name",
|
|
2356
|
-
"description": "
|
|
2369
|
+
"description": "The name the date submits under in a native `<form>`, as its ISO text;\na `range` as one ISO 8601 interval, `start/end`",
|
|
2357
2370
|
"type": "string"
|
|
2358
2371
|
},
|
|
2359
2372
|
{
|
|
@@ -2789,7 +2802,7 @@
|
|
|
2789
2802
|
},
|
|
2790
2803
|
{
|
|
2791
2804
|
"name": "c-icon-button",
|
|
2792
|
-
"description": "An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element.\n---\n\n\n### **Slots:**\n - **default** - The icon: a `c-icon` or an `<svg>`; it wins over `path`\n\n### **CSS Parts:**\n - **root** - The native `<button>` element carrying the visual styling\n- **content** - Inner wrapper around the slotted icon or loading spinner\n- **badge** - The count bubble at the button's top-right corner, shown by `badge`",
|
|
2805
|
+
"description": "An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element.\n---\n\n\n### **Methods:**\n - **focus()** - Focus its button, as `focus()` does on a native button: the element renders\nno box of its own to take it.\n\n### **Slots:**\n - **default** - The icon: a `c-icon` or an `<svg>`; it wins over `path`\n\n### **CSS Parts:**\n - **root** - The native `<button>` element carrying the visual styling\n- **content** - Inner wrapper around the slotted icon or loading spinner\n- **badge** - The count bubble at the button's top-right corner, shown by `badge`",
|
|
2793
2806
|
"doc-url": "",
|
|
2794
2807
|
"attributes": [
|
|
2795
2808
|
{
|
|
@@ -4065,7 +4078,7 @@
|
|
|
4065
4078
|
},
|
|
4066
4079
|
{
|
|
4067
4080
|
"name": "name",
|
|
4068
|
-
"description": "
|
|
4081
|
+
"description": "The name the number submits under in a native `<form>`, written as a\nplain JS number (`1234.5`)",
|
|
4069
4082
|
"value": {
|
|
4070
4083
|
"type": "string",
|
|
4071
4084
|
"default": "''"
|
|
@@ -4229,7 +4242,7 @@
|
|
|
4229
4242
|
},
|
|
4230
4243
|
{
|
|
4231
4244
|
"name": "name",
|
|
4232
|
-
"description": "
|
|
4245
|
+
"description": "The name the number submits under in a native `<form>`, written as a\nplain JS number (`1234.5`)",
|
|
4233
4246
|
"type": "string"
|
|
4234
4247
|
},
|
|
4235
4248
|
{
|
|
@@ -4452,6 +4465,14 @@
|
|
|
4452
4465
|
"default": "6"
|
|
4453
4466
|
}
|
|
4454
4467
|
},
|
|
4468
|
+
{
|
|
4469
|
+
"name": "name",
|
|
4470
|
+
"description": "The name the code submits under in a native `<form>`, as typed so far",
|
|
4471
|
+
"value": {
|
|
4472
|
+
"type": "string",
|
|
4473
|
+
"default": "''"
|
|
4474
|
+
}
|
|
4475
|
+
},
|
|
4455
4476
|
{
|
|
4456
4477
|
"name": "required",
|
|
4457
4478
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -4539,6 +4560,11 @@
|
|
|
4539
4560
|
"description": "Number of digits in the code, one box each",
|
|
4540
4561
|
"type": "number"
|
|
4541
4562
|
},
|
|
4563
|
+
{
|
|
4564
|
+
"name": "name",
|
|
4565
|
+
"description": "The name the code submits under in a native `<form>`, as typed so far",
|
|
4566
|
+
"type": "string"
|
|
4567
|
+
},
|
|
4542
4568
|
{
|
|
4543
4569
|
"name": "required",
|
|
4544
4570
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -5068,6 +5094,14 @@
|
|
|
5068
5094
|
"default": "''"
|
|
5069
5095
|
}
|
|
5070
5096
|
},
|
|
5097
|
+
{
|
|
5098
|
+
"name": "name",
|
|
5099
|
+
"description": "The name the picked radio's value submits under in a native `<form>`;\nnothing submits while no radio is picked",
|
|
5100
|
+
"value": {
|
|
5101
|
+
"type": "string",
|
|
5102
|
+
"default": "''"
|
|
5103
|
+
}
|
|
5104
|
+
},
|
|
5071
5105
|
{
|
|
5072
5106
|
"name": "required",
|
|
5073
5107
|
"description": "Set as required",
|
|
@@ -5154,6 +5188,11 @@
|
|
|
5154
5188
|
"description": "Label of the radio group",
|
|
5155
5189
|
"type": "string"
|
|
5156
5190
|
},
|
|
5191
|
+
{
|
|
5192
|
+
"name": "name",
|
|
5193
|
+
"description": "The name the picked radio's value submits under in a native `<form>`;\nnothing submits while no radio is picked",
|
|
5194
|
+
"type": "string"
|
|
5195
|
+
},
|
|
5157
5196
|
{
|
|
5158
5197
|
"name": "required",
|
|
5159
5198
|
"description": "Set as required",
|
|
@@ -5295,7 +5334,7 @@
|
|
|
5295
5334
|
},
|
|
5296
5335
|
{
|
|
5297
5336
|
"name": "name",
|
|
5298
|
-
"description": "
|
|
5337
|
+
"description": "The name the picked value submits under in a native `<form>` — one entry\nper value with `multiple`",
|
|
5299
5338
|
"value": {
|
|
5300
5339
|
"type": "string",
|
|
5301
5340
|
"default": "''"
|
|
@@ -5471,7 +5510,7 @@
|
|
|
5471
5510
|
},
|
|
5472
5511
|
{
|
|
5473
5512
|
"name": "name",
|
|
5474
|
-
"description": "
|
|
5513
|
+
"description": "The name the picked value submits under in a native `<form>` — one entry\nper value with `multiple`",
|
|
5475
5514
|
"type": "string"
|
|
5476
5515
|
},
|
|
5477
5516
|
{
|
|
@@ -5793,7 +5832,7 @@
|
|
|
5793
5832
|
},
|
|
5794
5833
|
{
|
|
5795
5834
|
"name": "name",
|
|
5796
|
-
"description": "
|
|
5835
|
+
"description": "The name the value submits under in a native `<form>`",
|
|
5797
5836
|
"value": {
|
|
5798
5837
|
"type": "string",
|
|
5799
5838
|
"default": "''"
|
|
@@ -5899,7 +5938,7 @@
|
|
|
5899
5938
|
},
|
|
5900
5939
|
{
|
|
5901
5940
|
"name": "name",
|
|
5902
|
-
"description": "
|
|
5941
|
+
"description": "The name the value submits under in a native `<form>`",
|
|
5903
5942
|
"type": "string"
|
|
5904
5943
|
},
|
|
5905
5944
|
{
|
|
@@ -6251,6 +6290,14 @@
|
|
|
6251
6290
|
"default": "false"
|
|
6252
6291
|
}
|
|
6253
6292
|
},
|
|
6293
|
+
{
|
|
6294
|
+
"name": "name",
|
|
6295
|
+
"description": "The name the switch submits under in a native `<form>` while it is on:\nits `true-value`, or `on` when that is `true`",
|
|
6296
|
+
"value": {
|
|
6297
|
+
"type": "string",
|
|
6298
|
+
"default": "''"
|
|
6299
|
+
}
|
|
6300
|
+
},
|
|
6254
6301
|
{
|
|
6255
6302
|
"name": "required",
|
|
6256
6303
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -6325,6 +6372,11 @@
|
|
|
6325
6372
|
"description": "Show a spinner in place of the handle, such as while the change is\nsaved. The switch ignores toggles meanwhile and is announced as busy",
|
|
6326
6373
|
"type": "boolean"
|
|
6327
6374
|
},
|
|
6375
|
+
{
|
|
6376
|
+
"name": "name",
|
|
6377
|
+
"description": "The name the switch submits under in a native `<form>` while it is on:\nits `true-value`, or `on` when that is `true`",
|
|
6378
|
+
"type": "string"
|
|
6379
|
+
},
|
|
6328
6380
|
{
|
|
6329
6381
|
"name": "required",
|
|
6330
6382
|
"description": "Set as required — shows the required marker on the label",
|
|
@@ -6845,7 +6897,7 @@
|
|
|
6845
6897
|
},
|
|
6846
6898
|
{
|
|
6847
6899
|
"name": "c-text-field",
|
|
6848
|
-
"description": "A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message.\n---\n\n\n### **Events:**\n - **change** - Fired when typed text is committed — Enter, or leaving the field after\nediting it — carrying the text, trimmed when `trim-whitespace` is set.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` stays in sync. No detail.\n- **update:value** - v-model contract event fired on every keystroke, carrying the current\ntext — trimmed when `trim-whitespace` is set.\n\n### **Methods:**\n - **focus()** - Focus its input, as `focus()` does on a native control: the element renders\nno box of its own to take it.\n\n### **Slots:**\n - **pre** - Content inside the field, before the input, such as an icon\n- **post** - Content inside the field, after the input and its password or date button\n\n### **CSS Parts:**\n - **mask-guide** - The faint rest of the input mask, shown behind the typed text\n- **message** - The hint / error message area below the field (always reserved unless `hide-message`)",
|
|
6900
|
+
"description": "A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message.\n---\n\n\n### **Events:**\n - **change** - Fired when typed text is committed — Enter, or leaving the field after\nediting it — carrying the text, trimmed when `trim-whitespace` is set.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` stays in sync. No detail.\n- **update:value** - v-model contract event fired on every keystroke, carrying the current\ntext — trimmed when `trim-whitespace` is set.\n\n### **Methods:**\n - **focus()** - Focus its input, as `focus()` does on a native control: the element renders\nno box of its own to take it.\n\n### **Slots:**\n - **default** - A page's own `<input>`, framed in place of the field's own so that every password manager can fill it; its native attributes are its own\n- **pre** - Content inside the field, before the input, such as an icon\n- **post** - Content inside the field, after the input and its password or date button\n\n### **CSS Parts:**\n - **mask-guide** - The faint rest of the input mask, shown behind the typed text\n- **message** - The hint / error message area below the field (always reserved unless `hide-message`)",
|
|
6849
6901
|
"doc-url": "",
|
|
6850
6902
|
"attributes": [
|
|
6851
6903
|
{
|
|
@@ -6969,7 +7021,7 @@
|
|
|
6969
7021
|
},
|
|
6970
7022
|
{
|
|
6971
7023
|
"name": "name",
|
|
6972
|
-
"description": "
|
|
7024
|
+
"description": "The name the text submits under in a native `<form>`",
|
|
6973
7025
|
"value": {
|
|
6974
7026
|
"type": "string",
|
|
6975
7027
|
"default": "''"
|
|
@@ -7057,6 +7109,10 @@
|
|
|
7057
7109
|
}
|
|
7058
7110
|
],
|
|
7059
7111
|
"slots": [
|
|
7112
|
+
{
|
|
7113
|
+
"name": "default",
|
|
7114
|
+
"description": "A page's own `<input>`, framed in place of the field's own so that every password manager can fill it; its native attributes are its own"
|
|
7115
|
+
},
|
|
7060
7116
|
{
|
|
7061
7117
|
"name": "pre",
|
|
7062
7118
|
"description": "Content inside the field, before the input, such as an icon"
|
|
@@ -7162,7 +7218,7 @@
|
|
|
7162
7218
|
},
|
|
7163
7219
|
{
|
|
7164
7220
|
"name": "name",
|
|
7165
|
-
"description": "
|
|
7221
|
+
"description": "The name the text submits under in a native `<form>`",
|
|
7166
7222
|
"type": "string"
|
|
7167
7223
|
},
|
|
7168
7224
|
{
|
|
@@ -7357,7 +7413,7 @@
|
|
|
7357
7413
|
},
|
|
7358
7414
|
{
|
|
7359
7415
|
"name": "name",
|
|
7360
|
-
"description": "
|
|
7416
|
+
"description": "The name the time submits under in a native `<form>`, as its ISO text;\na `range` as one ISO 8601 interval, `start/end`",
|
|
7361
7417
|
"value": {
|
|
7362
7418
|
"type": "string",
|
|
7363
7419
|
"default": "''"
|
|
@@ -7512,7 +7568,7 @@
|
|
|
7512
7568
|
},
|
|
7513
7569
|
{
|
|
7514
7570
|
"name": "name",
|
|
7515
|
-
"description": "
|
|
7571
|
+
"description": "The name the time submits under in a native `<form>`, as its ISO text;\na `range` as one ISO 8601 interval, `start/end`",
|
|
7516
7572
|
"type": "string"
|
|
7517
7573
|
},
|
|
7518
7574
|
{
|
|
@@ -7922,7 +7978,7 @@
|
|
|
7922
7978
|
},
|
|
7923
7979
|
{
|
|
7924
7980
|
"name": "name",
|
|
7925
|
-
"description": "
|
|
7981
|
+
"description": "The name the picked value submits under in a native `<form>`",
|
|
7926
7982
|
"value": {
|
|
7927
7983
|
"type": "string",
|
|
7928
7984
|
"default": "''"
|
|
@@ -8074,7 +8130,7 @@
|
|
|
8074
8130
|
},
|
|
8075
8131
|
{
|
|
8076
8132
|
"name": "name",
|
|
8077
|
-
"description": "
|
|
8133
|
+
"description": "The name the picked value submits under in a native `<form>`",
|
|
8078
8134
|
"type": "string"
|
|
8079
8135
|
},
|
|
8080
8136
|
{
|
|
@@ -8153,7 +8209,7 @@
|
|
|
8153
8209
|
},
|
|
8154
8210
|
{
|
|
8155
8211
|
"name": "part(root)",
|
|
8156
|
-
"description": "The item's box: its share of the accordion frame, the lifted outline and
|
|
8212
|
+
"description": "The item's box: its share of the accordion frame, the lifted outline and tint while expanded, and the ring the accordion's `outlined` adds"
|
|
8157
8213
|
},
|
|
8158
8214
|
{
|
|
8159
8215
|
"name": "part(header)",
|
|
@@ -8169,7 +8225,7 @@
|
|
|
8169
8225
|
},
|
|
8170
8226
|
{
|
|
8171
8227
|
"name": "part(root)",
|
|
8172
|
-
"description": "The
|
|
8228
|
+
"description": "The box carrying the type's tint, hairline border and accent edge"
|
|
8173
8229
|
},
|
|
8174
8230
|
{
|
|
8175
8231
|
"name": "part(icon)",
|
|
@@ -135,7 +135,9 @@ interface CButtonProps {
|
|
|
135
135
|
}
|
|
136
136
|
declare const _default: typeof __VLS_export;
|
|
137
137
|
export default _default;
|
|
138
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButtonProps, {
|
|
138
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButtonProps, {
|
|
139
|
+
focus: (options?: FocusOptions) => void;
|
|
140
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CButtonProps> & Readonly<{}>, {
|
|
139
141
|
text: boolean;
|
|
140
142
|
outlined: boolean;
|
|
141
143
|
value: number | string;
|
|
@@ -158,7 +160,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
|
|
|
158
160
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
159
161
|
icon?: (props: {}) => any;
|
|
160
162
|
} & {
|
|
161
|
-
default?: (props: {
|
|
163
|
+
default?: (props: {
|
|
164
|
+
class: string;
|
|
165
|
+
}) => any;
|
|
162
166
|
} & {
|
|
163
167
|
description?: (props: {}) => any;
|
|
164
168
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ensureButtonStyles: () => void;
|