@cscfi/csc-ui 4.0.0-alpha.13 → 4.0.0-alpha.15

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.
Files changed (41) hide show
  1. package/dist/csc-ui.js +8257 -7166
  2. package/dist/custom-elements.json +841 -44
  3. package/dist/docs/c-autocomplete/usage.md +25 -2
  4. package/dist/docs/c-button-group/usage.md +1 -1
  5. package/dist/docs/c-select/usage.md +25 -2
  6. package/dist/docs/c-tree-select/usage.md +156 -0
  7. package/dist/styles/css/tokens.css +2 -1
  8. package/dist/vscode.css-custom-data.json +97 -0
  9. package/dist/vscode.html-custom-data.json +94 -3
  10. package/dist/web-types.json +388 -15
  11. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +32 -8
  12. package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
  13. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
  14. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +1 -1
  15. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +5 -1
  16. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +27 -12
  17. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
  18. package/dist-types/components/c-input/CInput.vue.d.ts +2 -2
  19. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
  20. package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
  21. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +1 -1
  22. package/dist-types/components/c-select/CSelect.vue.d.ts +32 -8
  23. package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
  24. package/dist-types/components/c-tag/CTag.vue.d.ts +1 -1
  25. package/dist-types/components/c-text-field/CTextField.vue.d.ts +11 -4
  26. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
  27. package/dist-types/index.d.ts +3 -0
  28. package/dist-types/shared/FormLabel.vue.d.ts +1 -1
  29. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  30. package/dist-types/shared/appDefaults.d.ts +75 -0
  31. package/dist-types/shared/defineElement.d.ts +1 -0
  32. package/dist-types/shared/lightDismiss.d.ts +35 -0
  33. package/dist-types/shared/modalStack.d.ts +4 -3
  34. package/dist-types/shared/pageLock.d.ts +26 -0
  35. package/dist-types/shared/popoverChain.d.ts +9 -6
  36. package/dist-types/shared/useAnchoredPanel.d.ts +89 -0
  37. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  38. package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
  39. package/dist-types/shared/visualViewport.d.ts +35 -0
  40. package/dist-types/tag-name-map.d.ts +137 -9
  41. package/package.json +13 -4
@@ -89,7 +89,7 @@ Set `multiple` to let the user pick several options. The value is then an
89
89
  array of the picked options' values in the order they were picked (an array
90
90
  of `{ name, value }` items with `return-object`), and `[]` when nothing is
91
91
  picked. Arrays have no attribute form — bind `value` as a DOM property
92
- (`v-model` or `:value.prop` in Vue; the React wrapper and property
92
+ (`v-model` or `:value="…"` in Vue; the React wrapper and property
93
93
  assignment do this naturally). Picking an option toggles it and keeps the
94
94
  panel open; the search input keeps its query after a pick, so several
95
95
  matches can be picked in a row. `clearable` clears the whole selection.
@@ -133,7 +133,7 @@ as a DOM property; the `placeholder` prop still wins over
133
133
 
134
134
  ```vue
135
135
  <c-autocomplete
136
- :texts.prop="{
136
+ :texts="{
137
137
  noResults: 'Ei osumia',
138
138
  remove: (label) => `Poista ${label}`,
139
139
  }"
@@ -141,6 +141,10 @@ as a DOM property; the `placeholder` prop still wins over
141
141
  />
142
142
  ```
143
143
 
144
+ To translate every autocomplete at once, set `texts` app-wide with
145
+ `applyDefaults({ 'c-autocomplete': { texts } })` (Customization → App-wide
146
+ prop defaults); a per-instance `texts` still wins key by key.
147
+
144
148
  ## Scrolling
145
149
 
146
150
  The panel shows `items-per-page` full rows (six by default) and then a
@@ -155,3 +159,22 @@ c-autocomplete::part(list) {
155
159
  scrollbar-width: auto;
156
160
  }
157
161
  ```
162
+
163
+ ## Narrow viewports
164
+
165
+ On a viewport narrower than 760px the panel opens as a **fullscreen panel**
166
+ instead of anchoring under the field: a heading row with the field's `label` and a
167
+ close button, the search input beneath it, then the options filling the rest of
168
+ the screen. The rows above the options stay in view while the on-screen
169
+ keyboard is open; the close button and Escape both return focus to the field;
170
+ the page behind the panel is inert until it closes, and the list has no
171
+ half-row cut — the screen edge is the cue. The threshold is the viewport's
172
+ width, never the field's, so a narrow field on a desktop keeps its anchored
173
+ panel. The close button's label is the `closePanel` text, and the row's
174
+ parts are `heading-row`, `heading` and `close`:
175
+
176
+ ```css
177
+ c-autocomplete::part(heading-row) {
178
+ border-bottom-color: var(--c-primary);
179
+ }
180
+ ```
@@ -26,7 +26,7 @@ toggles it off (value `null`) unless `mandatory` is set.
26
26
 
27
27
  With `multiple` the value is an array of the active buttons' values in DOM
28
28
  order. Arrays have no attribute form — bind `value` as a DOM property
29
- (`:value.prop` in Vue; the React wrapper and property assignment do this
29
+ (`:value="…"` in Vue; the React wrapper and property assignment do this
30
30
  naturally).
31
31
 
32
32
  In both modes every active button paints its own fill. The sliding
@@ -41,7 +41,7 @@ Set `multiple` to let the user pick several options. The value is then an
41
41
  array of the picked options' values in the order they were picked (an array
42
42
  of `{ name, value }` items with `return-object`), and `[]` when nothing is
43
43
  picked. Arrays have no attribute form — bind `value` as a DOM property
44
- (`v-model` or `:value.prop` in Vue; the React wrapper and property
44
+ (`v-model` or `:value="…"` in Vue; the React wrapper and property
45
45
  assignment do this naturally). Picking an option toggles it and keeps the
46
46
  list open; `clearable` clears the whole selection. `option-as-selection`
47
47
  has no effect in this mode.
@@ -80,7 +80,7 @@ label texts are functions, so the object must be bound as a DOM property:
80
80
 
81
81
  ```vue
82
82
  <c-select
83
- :texts.prop="{
83
+ :texts="{
84
84
  more: (n) => `+${n} lisää`,
85
85
  remove: (label) => `Poista ${label}`,
86
86
  }"
@@ -88,6 +88,10 @@ label texts are functions, so the object must be bound as a DOM property:
88
88
  />
89
89
  ```
90
90
 
91
+ To translate every select at once, set `texts` app-wide with
92
+ `applyDefaults({ 'c-select': { texts } })` (Customization → App-wide prop
93
+ defaults); a per-instance `texts` still wins key by key.
94
+
91
95
  ## Scrolling
92
96
 
93
97
  The list shows `items-per-page` full rows (six by default) and then a
@@ -102,3 +106,22 @@ c-select::part(list) {
102
106
  scrollbar-width: auto;
103
107
  }
104
108
  ```
109
+
110
+ ## Narrow viewports
111
+
112
+ On a viewport narrower than 760px the panel opens as a **fullscreen panel**
113
+ instead of dropping under the field: a heading row with the field's `label` and a
114
+ close button, the field itself beneath it, then the options filling the rest of
115
+ the screen. The rows above the options stay in view while the on-screen
116
+ keyboard is open; the close button and Escape both return focus to the field;
117
+ the page behind the panel is inert until it closes, and the list has no
118
+ half-row cut — the screen edge is the cue. The threshold is the viewport's
119
+ width, never the field's, so a narrow field on a desktop keeps its anchored
120
+ panel. The close button's label is the `closePanel` text, and the row's
121
+ parts are `heading-row`, `heading` and `close`:
122
+
123
+ ```css
124
+ c-select::part(heading-row) {
125
+ border-bottom-color: var(--c-primary);
126
+ }
127
+ ```
@@ -0,0 +1,156 @@
1
+ A hierarchical value-selection component: a readonly value field that opens a panel for browsing a tree one level at a time, or searching it as a whole, to commit one item.
2
+
3
+ ## Items
4
+
5
+ The tree is the `items` property: an array of `{ value, name }` entries where
6
+ an entry with a non-empty `children` array is a branch and any other entry is
7
+ a leaf. Values must be unique across the whole tree. An optional `code` — a
8
+ classification number, say — is shown before the name in a muted column and
9
+ is matched by the search. Arrays have no attribute form, so bind `items` as a
10
+ DOM property (`:items="…"` in Vue; the React wrapper and property assignment
11
+ do this naturally):
12
+
13
+ ```ts
14
+ const items: CTreeSelectItem[] = [
15
+ {
16
+ value: '1',
17
+ code: '1',
18
+ name: 'Natural sciences',
19
+ children: [
20
+ {
21
+ value: '111',
22
+ code: '111',
23
+ name: 'Mathematics',
24
+ children: [{ value: '1111', code: '1111', name: 'Pure mathematics' }],
25
+ },
26
+ ],
27
+ },
28
+ ];
29
+ ```
30
+
31
+ A `disabled` branch cannot be entered and a `disabled` leaf cannot be
32
+ committed; both render as disabled rows, and the items below a disabled
33
+ branch are listed disabled in search results.
34
+
35
+ The value is the committed item's `value`, or `null` when nothing is
36
+ committed. With `return-object` the value is a fresh `{ value, name, code,
37
+ path }` object instead — `path` holds the item's ancestors root-first, each
38
+ as `{ value, name, code }` — never the `items` entry itself, and never its
39
+ children. The closed field shows the committed item's path on a muted line
40
+ above its code and name.
41
+
42
+ ## Browsing and searching
43
+
44
+ The panel lists one level at a time: the top-level items first, then the
45
+ children of whichever branch is picked, with a breadcrumb above the list —
46
+ the root crumb ("All") followed by one crumb per ancestor — for climbing
47
+ back. The header names the level being chosen: give `level-labels` an array
48
+ of names, top level first ("Main field", "Field", "Subfield"), and it reads
49
+ "Choose Field"; a level without a name reads "Choose Level 2". While the
50
+ tree is evenly deep — every leaf at the same level — the header also counts
51
+ the steps ("Step 2 of 3"); in an unevenly deep tree the counter is left out,
52
+ and a level made only of leaves says "Final level" instead. Reopening the
53
+ panel returns to the committed item's level with its row selected, so its
54
+ siblings are one click away.
55
+
56
+ Typing into the search input switches the panel to a flat list of matches
57
+ from the whole tree, each with its path on a second line. The query is
58
+ matched case-insensitively anywhere in the name or code of an item and of
59
+ every ancestor above it, so a query matching a branch lists all of its
60
+ leaves. Supply a `filter` predicate to change the matching — it receives the
61
+ item, the query and the item's ancestors, and lists the item when it returns
62
+ `true`. Because `filter` is a function, it must be bound as a DOM property.
63
+ Deleting the query, or the "Browse instead" control in the header, returns to
64
+ the level the user was browsing.
65
+
66
+ While a query is typed, the runs of each row's code, label and path that
67
+ equal it are marked. The marks are the `match` part, the path line the `path`
68
+ part and the code column the `code` part:
69
+
70
+ ```css
71
+ c-tree-select::part(match) {
72
+ font-weight: 600;
73
+ }
74
+ ```
75
+
76
+ From the keyboard, ArrowDown and ArrowUp move through the rows and Enter
77
+ activates one: a branch descends, a leaf commits. ArrowRight descends into a
78
+ highlighted branch and ArrowLeft — or Backspace with nothing left to delete —
79
+ climbs one level. Escape closes the panel and returns focus to the field; Tab
80
+ closes it and moves on.
81
+
82
+ ## Committing a branch
83
+
84
+ By default only a leaf can be committed; a branch always opens its children.
85
+ Set `allow-branch` to let a branch be the value as well: every level below
86
+ the root then starts with a pinned select-branch row ("Select Natural
87
+ sciences") that commits the branch the user is in, and branches matching a
88
+ query are listed as search results and commit directly. The pinned row is the
89
+ `select-branch` part.
90
+
91
+ ## Texts
92
+
93
+ Every built-in string — the root crumb, the header texts, a branch row's
94
+ child count, the select-branch row's label, the "Browse instead" control, the
95
+ no-results row, the search input's placeholder and accessible label, the
96
+ clear and toggle button labels — can be replaced for another language through
97
+ the `texts` object, merged over the English defaults. Interpolated texts are
98
+ functions, so the object must be bound as a DOM property; the `placeholder`
99
+ prop still wins over `texts.searchPlaceholder` when both are set:
100
+
101
+ ```vue
102
+ <c-tree-select
103
+ :texts="{
104
+ root: 'Kaikki',
105
+ choose: (level) => `Valitse ${level}`,
106
+ children: (count) => `${count} alakohtaa`,
107
+ }"
108
+ />
109
+ ```
110
+
111
+ To translate every tree select at once, set `texts` app-wide with
112
+ `applyDefaults({ 'c-tree-select': { texts } })` (Customization → App-wide
113
+ prop defaults); a per-instance `texts` still wins key by key.
114
+
115
+ ## Scrolling
116
+
117
+ The panel shows `items-per-page` full rows (six by default) and then a
118
+ half-visible row instead of a scrollbar: the cut row is the cue that more
119
+ items follow, and the wheel, touch and arrow keys scroll as usual. Set
120
+ `items-per-page="0"` to let the list grow to the space the panel allows; it
121
+ still ends on a half row when it overflows. To bring the native scrollbar
122
+ back:
123
+
124
+ ```css
125
+ c-tree-select::part(list) {
126
+ scrollbar-width: auto;
127
+ }
128
+ ```
129
+
130
+ ## Narrow viewports
131
+
132
+ On a viewport narrower than 760px the panel opens as a **fullscreen panel**
133
+ instead of anchoring under the field: a heading row with the field's `label` and a
134
+ close button, the search input beneath it, then the items filling the rest of
135
+ the screen. The rows above the items stay in view while the on-screen
136
+ keyboard is open; the close button and Escape both return focus to the field;
137
+ the page behind the panel is inert until it closes, and the list has no
138
+ half-row cut — the screen edge is the cue. The threshold is the viewport's
139
+ width, never the field's, so a narrow field on a desktop keeps its anchored
140
+ panel. The close button's label is the `closePanel` text, and the row's
141
+ parts are `heading-row`, `heading` and `close`:
142
+
143
+ ```css
144
+ c-tree-select::part(heading-row) {
145
+ border-bottom-color: var(--c-primary);
146
+ }
147
+ ```
148
+
149
+ ## Lazily loaded trees
150
+
151
+ The component walks the `items` you give it and has no loading state of its
152
+ own: there is no `external` mode and no per-branch fetch event yet. A tree
153
+ that arrives in pieces can still be shown by re-assigning `items` with the
154
+ fetched `children` filled in — the panel keeps its level and re-homes the
155
+ highlight when the tree changes. A branch must already list its children to
156
+ be enterable, so load at least one level ahead of the user.
@@ -505,7 +505,8 @@ c-text-field:not(:defined),
505
505
  c-toast:not(:defined),
506
506
  c-toasts:not(:defined),
507
507
  c-toolbar:not(:defined),
508
- c-tooltip:not(:defined) {
508
+ c-tooltip:not(:defined),
509
+ c-tree-select:not(:defined) {
509
510
  visibility: hidden;
510
511
  animation-name: c-pre-upgrade-reveal;
511
512
  animation-duration: 0s;
@@ -54,6 +54,18 @@
54
54
  "name": "::part(card)",
55
55
  "description": "The elevated surface inside the panel holding the search row and the list"
56
56
  },
57
+ {
58
+ "name": "::part(heading-row)",
59
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
60
+ },
61
+ {
62
+ "name": "::part(heading)",
63
+ "description": "The field label naming the fullscreen panel"
64
+ },
65
+ {
66
+ "name": "::part(close)",
67
+ "description": "The close button of the fullscreen panel"
68
+ },
57
69
  {
58
70
  "name": "::part(search)",
59
71
  "description": "The search-input row at the top of the panel"
@@ -224,6 +236,18 @@
224
236
  "name": "::part(menu)",
225
237
  "description": "The positioned dialog surface holding the field and the list"
226
238
  },
239
+ {
240
+ "name": "::part(heading-row)",
241
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
242
+ },
243
+ {
244
+ "name": "::part(heading)",
245
+ "description": "The field label naming the fullscreen panel"
246
+ },
247
+ {
248
+ "name": "::part(close)",
249
+ "description": "The close button of the fullscreen panel"
250
+ },
227
251
  { "name": "::part(list)", "description": "The scrolling listbox" },
228
252
  { "name": "::part(item)", "description": "One option row" },
229
253
  {
@@ -509,6 +533,18 @@
509
533
  "name": "::part(menu)",
510
534
  "description": "The dropdown surface (the positioned dialog) holding the field and the list"
511
535
  },
536
+ {
537
+ "name": "::part(heading-row)",
538
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
539
+ },
540
+ {
541
+ "name": "::part(heading)",
542
+ "description": "The field label naming the fullscreen panel"
543
+ },
544
+ {
545
+ "name": "::part(close)",
546
+ "description": "The close button of the fullscreen panel"
547
+ },
512
548
  {
513
549
  "name": "::part(list)",
514
550
  "description": "The scrolling listbox of options"
@@ -729,6 +765,67 @@
729
765
  {
730
766
  "name": "::part(panel)",
731
767
  "description": "The floating tooltip bubble positioned against the trigger"
768
+ },
769
+ {
770
+ "name": "::part(panel)",
771
+ "description": "The top-layer popover container anchored below the field"
772
+ },
773
+ {
774
+ "name": "::part(card)",
775
+ "description": "The elevated surface inside the panel holding the search row, the breadcrumb, the header and the list"
776
+ },
777
+ {
778
+ "name": "::part(heading-row)",
779
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
780
+ },
781
+ {
782
+ "name": "::part(heading)",
783
+ "description": "The field label naming the fullscreen panel"
784
+ },
785
+ {
786
+ "name": "::part(close)",
787
+ "description": "The close button of the fullscreen panel"
788
+ },
789
+ {
790
+ "name": "::part(search)",
791
+ "description": "The search-input row at the top of the panel"
792
+ },
793
+ {
794
+ "name": "::part(breadcrumb)",
795
+ "description": "The breadcrumb navigation naming the browsed level's path"
796
+ },
797
+ {
798
+ "name": "::part(crumb)",
799
+ "description": "One crumb in the breadcrumb: the root crumb, an ancestor, or the collapsed \"…\" crumb"
800
+ },
801
+ {
802
+ "name": "::part(header)",
803
+ "description": "The header line under the breadcrumb: the level to choose and its step counter, or the match count and the \"Browse instead\" control"
804
+ },
805
+ {
806
+ "name": "::part(list)",
807
+ "description": "The scrollable listbox: the level list while browsing, the results while searching"
808
+ },
809
+ { "name": "::part(item)", "description": "One item row in the list" },
810
+ {
811
+ "name": "::part(select-branch)",
812
+ "description": "The pinned select-branch row at the top of a level list inside a branch (`allow-branch`)"
813
+ },
814
+ {
815
+ "name": "::part(code)",
816
+ "description": "An item's code column, in a row and in the closed field"
817
+ },
818
+ {
819
+ "name": "::part(path)",
820
+ "description": "The ancestor path line under a search result's label"
821
+ },
822
+ {
823
+ "name": "::part(match)",
824
+ "description": "A run of an item's code, label or path equal to the query, in a row; underlined in the primary colour, text inherits the row"
825
+ },
826
+ {
827
+ "name": "::part(info)",
828
+ "description": "The no-results row shown when nothing is listed"
732
829
  }
733
830
  ]
734
831
  }
@@ -86,7 +86,7 @@
86
86
  },
87
87
  {
88
88
  "name": "c-autocomplete",
89
- "description": "A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options.\n---\n\n\n### **Events:**\n - **change** - Native change event (no detail) dispatched whenever a selection is\ncommitted or cleared; bubbles through the shadow boundary for\nform-style listeners.\n- **change:query** - Fired whenever the query changes — on every keystroke in the search\ninput, and with an empty string when the panel opens. Carries the query\nstring. With `external`, drive your data source from this (debounce on\nyour side) and feed the results back via `items`.\n- **changeValue** - Fired when the selected value changes (an option is committed or the\nselection is cleared), carrying the new value — the option's value, or\nthe whole `{ name, value }` item when `return-object` is set; `null`\nwhen cleared. In `multiple` mode the whole array of picked values, in\npick order (`[]` when cleared). Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset autocomplete state\n\n### **Slots:**\n - **pre** - Content placed before the value field inside the input row\n- **default** - The c-option elements used as the data source (never rendered in place)\n- **post** - Content placed after the value field inside the input row\n\n### **CSS Parts:**\n - **panel** - The top-layer popover container anchored below the field\n- **card** - The elevated surface inside the panel holding the search row and the list\n- **search** - The search-input row at the top of the panel\n- **list** - The scrollable options listbox\n- **item** - One option row in the list\n- **select-all** - The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row\n- **indicator** - The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)\n- **mark** - The check glyph inside a row indicator; draws with `currentColor`\n- **match** - A run of an option's label equal to the query, in the row; underlined in the primary colour, text inherits the row\n- **info** - The info row: loading while `loading` with an empty list, otherwise no-results when the query matches no options\n- **tags** - The row of selected-value tags inside the field (`multiple` mode)\n- **tag** - One selected-value tag: the `c-tag` host, including the overflow tag\n- **tag-root** - The pill box inside each tag (the `c-tag` `root` part), for colours and borders",
89
+ "description": "A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options.\n---\n\n\n### **Events:**\n - **change** - Native change event (no detail) dispatched whenever a selection is\ncommitted or cleared; bubbles through the shadow boundary for\nform-style listeners.\n- **change:query** - Fired whenever the query changes — on every keystroke in the search\ninput, and with an empty string when the panel opens. Carries the query\nstring. With `external`, drive your data source from this (debounce on\nyour side) and feed the results back via `items`.\n- **changeValue** - Fired when the selected value changes (an option is committed or the\nselection is cleared), carrying the new value — the option's value, or\nthe whole `{ name, value }` item when `return-object` is set; `null`\nwhen cleared. In `multiple` mode the whole array of picked values, in\npick order (`[]` when cleared). Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset autocomplete state\n\n### **Slots:**\n - **pre** - Content placed before the value field inside the input row\n- **default** - The c-option elements used as the data source (never rendered in place)\n- **post** - Content placed after the value field inside the input row\n\n### **CSS Parts:**\n - **panel** - The top-layer popover container anchored below the field\n- **card** - The elevated surface inside the panel holding the search row and the list\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **search** - The search-input row at the top of the panel\n- **list** - The scrollable options listbox\n- **item** - One option row in the list\n- **select-all** - The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row\n- **indicator** - The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)\n- **mark** - The check glyph inside a row indicator; draws with `currentColor`\n- **match** - A run of an option's label equal to the query, in the row; underlined in the primary colour, text inherits the row\n- **info** - The info row: loading while `loading` with an empty list, otherwise no-results when the query matches no options\n- **tags** - The row of selected-value tags inside the field (`multiple` mode)\n- **tag** - One selected-value tag: the `c-tag` host, including the overflow tag\n- **tag-root** - The pill box inside each tag (the `c-tag` `root` part), for colours and borders",
90
90
  "attributes": [
91
91
  {
92
92
  "name": "clearable",
@@ -517,8 +517,13 @@
517
517
  },
518
518
  {
519
519
  "name": "c-dropdown",
520
- "description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n- **selectall** - Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field\n\n### **CSS Parts:**\n - **menu** - The positioned dialog surface holding the field and the list\n- **list** - The scrolling listbox\n- **item** - One option row\n- **select-all** - The pinned select-all row at the top of the list in `multiple` mode; carries the same indicator / mark parts as an option row\n- **indicator** - The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together\n- **mark** - The check glyph inside a row indicator; draws with `currentColor`",
520
+ "description": "\n---\n\n\n### **Events:**\n - **dropdownStateChange** - Fired when the dropdown menu opens or closes; the detail is the new open\nstate. Also dispatched as `dropdown-state-change` — bind that name in Vue templates.\n- **selectall** - Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option.\n- **selectOption** - Fired when the user selects an option row, carrying the option's name\nand value for the parent (c-select) to commit. Also dispatched as `select-option` — bind that name in Vue templates.\n\n### **Methods:**\n - **close()** - Close dropdown\n- **open()** - Open dropdown\n- **selectItem()** - Select item\n- **updateList()** - Update list items\n\n### **Slots:**\n - **default** - The anchor c-input of the parent select / autocomplete, rendered inline while the menu is closed\n- **input-top** - Target the c-input is moved into when the menu opens below the field\n- **input-bottom** - Target the c-input is moved into when the menu opens above the field\n\n### **CSS Parts:**\n - **menu** - The positioned dialog surface holding the field and the list\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **list** - The scrolling listbox\n- **item** - One option row\n- **select-all** - The pinned select-all row at the top of the list in `multiple` mode; carries the same indicator / mark parts as an option row\n- **indicator** - The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together\n- **mark** - The check glyph inside a row indicator; draws with `currentColor`",
521
521
  "attributes": [
522
+ {
523
+ "name": "close-label",
524
+ "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
525
+ "values": []
526
+ },
522
527
  {
523
528
  "name": "dropdown-item-type",
524
529
  "description": "Whether items are <c-option> elements or plain objects",
@@ -544,6 +549,11 @@
544
549
  "description": "Items per page before adding scroll",
545
550
  "values": []
546
551
  },
552
+ {
553
+ "name": "label",
554
+ "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
555
+ "values": []
556
+ },
547
557
  {
548
558
  "name": "multiple",
549
559
  "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
@@ -1355,7 +1365,7 @@
1355
1365
  },
1356
1366
  {
1357
1367
  "name": "c-select",
1358
- "description": "A value-selection field: a readonly field that opens a listbox of options — slotted `c-option` elements or an `items` array — and holds the picked value, emitting the value events that back `v-model`.\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared.\nIn `multiple` mode the whole array of picked values, in pick order\n(`[]` when cleared). Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls\n\n### **CSS Parts:**\n - **menu** - The dropdown surface (the positioned dialog) holding the field and the list\n- **list** - The scrolling listbox of options\n- **item** - One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup\n- **select-all** - The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row\n- **indicator** - The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)\n- **mark** - The check glyph inside a row indicator; draws with `currentColor`\n- **tags** - The row of selected-value tags inside the field (`multiple` mode)\n- **tag** - One selected-value tag: the `c-tag` host, including the overflow tag\n- **tag-root** - The pill box inside each tag (the `c-tag` `root` part), for colours and borders",
1368
+ "description": "A value-selection field: a readonly field that opens a listbox of options — slotted `c-option` elements or an `items` array — and holds the picked value, emitting the value events that back `v-model`.\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the selection changes (an option is picked or the value is\ncleared), carrying the new value — the option's value, or the whole\n`{ name, value }` item when `return-object` is set; `null` when cleared.\nIn `multiple` mode the whole array of picked values, in pick order\n(`[]` when cleared). Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Methods:**\n - **reset()** - Reset select state\n\n### **Slots:**\n - **default** - Use c-option elements only\n- **pre** - Leading content forwarded to the inner c-input, rendered before the select's value\n- **post** - Trailing content forwarded to the inner c-input, rendered after the select's controls\n\n### **CSS Parts:**\n - **menu** - The dropdown surface (the positioned dialog) holding the field and the list\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **list** - The scrolling listbox of options\n- **item** - One option row in the list. Any `part` attribute set on content inside a slotted `<c-option>` is exported too, so `c-select::part(<name>)` reaches the consumer's own option markup\n- **select-all** - The pinned select-all row at the top of the list (`multiple` mode with `select-all`); carries the same indicator / mark parts as an option row\n- **indicator** - The decorative checkbox box on an option row in `multiple` mode; border, fill and glyph draw with `currentColor`, so `color` recolours them together (the c-checkbox recipe)\n- **mark** - The check glyph inside a row indicator; draws with `currentColor`\n- **tags** - The row of selected-value tags inside the field (`multiple` mode)\n- **tag** - One selected-value tag: the `c-tag` host, including the overflow tag\n- **tag-root** - The pill box inside each tag (the `c-tag` `root` part), for colours and borders",
1359
1369
  "attributes": [
1360
1370
  {
1361
1371
  "name": "clearable",
@@ -2036,6 +2046,87 @@
2036
2046
  }
2037
2047
  ],
2038
2048
  "references": []
2049
+ },
2050
+ {
2051
+ "name": "c-tree-select",
2052
+ "description": "A hierarchical value-selection component: a readonly value field that opens a panel for browsing a tree one level at a time, or searching it as a whole, to commit one item.\n---\n\n\n### **Events:**\n - **change** - Fired when the selection changes — an item is committed or the selection\nis cleared — carrying the new value: the item's value, the\n`CTreeSelectSelection` with `return-object`, or `null` when cleared.\n- **change:query** - Fired whenever the query changes — on every keystroke in the search\ninput, and with an empty string when the panel opens. Carries the query\nstring.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `change` with the same detail — the `v-model` contract.\n\n### **CSS Parts:**\n - **panel** - The top-layer popover container anchored below the field\n- **card** - The elevated surface inside the panel holding the search row, the breadcrumb, the header and the list\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **search** - The search-input row at the top of the panel\n- **breadcrumb** - The breadcrumb navigation naming the browsed level's path\n- **crumb** - One crumb in the breadcrumb: the root crumb, an ancestor, or the collapsed \"…\" crumb\n- **header** - The header line under the breadcrumb: the level to choose and its step counter, or the match count and the \"Browse instead\" control\n- **list** - The scrollable listbox: the level list while browsing, the results while searching\n- **item** - One item row in the list\n- **select-branch** - The pinned select-branch row at the top of a level list inside a branch (`allow-branch`)\n- **code** - An item's code column, in a row and in the closed field\n- **path** - The ancestor path line under a search result's label\n- **match** - A run of an item's code, label or path equal to the query, in a row; underlined in the primary colour, text inherits the row\n- **info** - The no-results row shown when nothing is listed",
2053
+ "attributes": [
2054
+ {
2055
+ "name": "allow-branch",
2056
+ "description": "Let a branch be committed as the value: a pinned select-branch row heads\nevery level below the root, and matching branches are listed as search\nresults",
2057
+ "values": []
2058
+ },
2059
+ {
2060
+ "name": "clearable",
2061
+ "description": "Make the selected value clearable",
2062
+ "values": []
2063
+ },
2064
+ {
2065
+ "name": "disabled",
2066
+ "description": "Disable the field",
2067
+ "values": []
2068
+ },
2069
+ {
2070
+ "name": "error-message",
2071
+ "description": "Error message shown in place of the hint while the field is invalid",
2072
+ "values": []
2073
+ },
2074
+ {
2075
+ "name": "hide-details",
2076
+ "description": "Hide the hint and error messages",
2077
+ "values": []
2078
+ },
2079
+ {
2080
+ "name": "hint",
2081
+ "description": "Hint text for the field",
2082
+ "values": []
2083
+ },
2084
+ { "name": "host-id", "description": "Id of the element", "values": [] },
2085
+ {
2086
+ "name": "items-per-page",
2087
+ "description": "Items per page before the list scrolls",
2088
+ "values": []
2089
+ },
2090
+ { "name": "label", "description": "Element label", "values": [] },
2091
+ {
2092
+ "name": "label-on-top",
2093
+ "description": "Label on top of the field",
2094
+ "values": []
2095
+ },
2096
+ { "name": "name", "description": "Input field name", "values": [] },
2097
+ {
2098
+ "name": "placeholder",
2099
+ "description": "Placeholder for the search input inside the panel",
2100
+ "values": []
2101
+ },
2102
+ {
2103
+ "name": "required",
2104
+ "description": "Set the field as required",
2105
+ "values": []
2106
+ },
2107
+ {
2108
+ "name": "return-object",
2109
+ "description": "Emit the committed item with its path as a `CTreeSelectSelection` instead\nof its value",
2110
+ "values": []
2111
+ },
2112
+ { "name": "shadow", "description": "Shadow variant", "values": [] },
2113
+ {
2114
+ "name": "size",
2115
+ "description": "Field height: the 44px default or the 36px `small` box",
2116
+ "values": [{ "name": "default" }, { "name": "small" }]
2117
+ },
2118
+ {
2119
+ "name": "valid",
2120
+ "description": "Set the validity of the field",
2121
+ "values": []
2122
+ },
2123
+ {
2124
+ "name": "value",
2125
+ "description": "Selected value: the committed item's value, or the `CTreeSelectSelection`\nwith `return-object`; `null` when nothing is selected",
2126
+ "values": [{ "name": "CTreeSelectValue" }]
2127
+ }
2128
+ ],
2129
+ "references": []
2039
2130
  }
2040
2131
  ]
2041
2132
  }