@cscfi/csc-ui 4.0.0-alpha.14 → 4.0.0-alpha.16

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 (39) hide show
  1. package/dist/csc-ui.js +7427 -7139
  2. package/dist/custom-elements.json +264 -56
  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 +25 -2
  7. package/dist/vscode.css-custom-data.json +48 -0
  8. package/dist/vscode.html-custom-data.json +14 -4
  9. package/dist/web-types.json +83 -15
  10. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +32 -8
  11. package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
  12. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
  13. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +1 -1
  14. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +5 -1
  15. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +24 -10
  16. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
  17. package/dist-types/components/c-input/CInput.vue.d.ts +2 -2
  18. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
  19. package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
  20. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +1 -1
  21. package/dist-types/components/c-select/CSelect.vue.d.ts +32 -8
  22. package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
  23. package/dist-types/components/c-tag/CTag.vue.d.ts +1 -1
  24. package/dist-types/components/c-text-field/CTextField.vue.d.ts +11 -4
  25. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +17 -3
  26. package/dist-types/index.d.ts +2 -0
  27. package/dist-types/shared/FormLabel.vue.d.ts +1 -1
  28. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  29. package/dist-types/shared/appDefaults.d.ts +75 -0
  30. package/dist-types/shared/defineElement.d.ts +1 -0
  31. package/dist-types/shared/lightDismiss.d.ts +35 -0
  32. package/dist-types/shared/modalStack.d.ts +4 -3
  33. package/dist-types/shared/pageLock.d.ts +26 -0
  34. package/dist-types/shared/popoverChain.d.ts +9 -6
  35. package/dist-types/shared/useAnchoredPanel.d.ts +34 -13
  36. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  37. package/dist-types/shared/visualViewport.d.ts +51 -0
  38. package/dist-types/tag-name-map.d.ts +36 -7
  39. 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
167
+ a close button, the search input beneath it, then the options filling the rest
168
+ of the screen. The panel keeps covering the screen and the rows above the
169
+ options stay in view while the on-screen keyboard is open; the close button and
170
+ Escape both return focus to the field; the page behind the panel is inert until
171
+ it closes, and the list has no half-row cut — the screen edge is the cue. The
172
+ threshold is the viewport's width, never the field's, so a narrow field on a
173
+ desktop keeps its anchored panel. The close button's label is the `closePanel`
174
+ text, and the row's 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
114
+ a close button, the field itself beneath it, then the options filling the rest
115
+ of the screen. The panel keeps covering the screen and the rows above the
116
+ options stay in view while the on-screen keyboard is open; the close button and
117
+ Escape both return focus to the field; the page behind the panel is inert until
118
+ it closes, and the list has no half-row cut — the screen edge is the cue. The
119
+ threshold is the viewport's width, never the field's, so a narrow field on a
120
+ desktop keeps its anchored panel. The close button's label is the `closePanel`
121
+ text, and the row's 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
+ ```
@@ -7,7 +7,7 @@ an entry with a non-empty `children` array is a branch and any other entry is
7
7
  a leaf. Values must be unique across the whole tree. An optional `code` — a
8
8
  classification number, say — is shown before the name in a muted column and
9
9
  is matched by the search. Arrays have no attribute form, so bind `items` as a
10
- DOM property (`:items.prop` in Vue; the React wrapper and property assignment
10
+ DOM property (`:items="…"` in Vue; the React wrapper and property assignment
11
11
  do this naturally):
12
12
 
13
13
  ```ts
@@ -100,7 +100,7 @@ prop still wins over `texts.searchPlaceholder` when both are set:
100
100
 
101
101
  ```vue
102
102
  <c-tree-select
103
- :texts.prop="{
103
+ :texts="{
104
104
  root: 'Kaikki',
105
105
  choose: (level) => `Valitse ${level}`,
106
106
  children: (count) => `${count} alakohtaa`,
@@ -108,6 +108,10 @@ prop still wins over `texts.searchPlaceholder` when both are set:
108
108
  />
109
109
  ```
110
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
+
111
115
  ## Scrolling
112
116
 
113
117
  The panel shows `items-per-page` full rows (six by default) and then a
@@ -123,6 +127,25 @@ c-tree-select::part(list) {
123
127
  }
124
128
  ```
125
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
134
+ a close button, the search input beneath it, then the items filling the rest of
135
+ the screen. The panel keeps covering the screen and the rows above the items
136
+ stay in view while the on-screen keyboard is open; the close button and Escape
137
+ both return focus to the field; the page behind the panel is inert until it
138
+ closes, and the list has no half-row cut — the screen edge is the cue. The
139
+ threshold is the viewport's width, never the field's, so a narrow field on a
140
+ desktop keeps its anchored panel. The close button's label is the `closePanel`
141
+ text, and the row's 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
+
126
149
  ## Lazily loaded trees
127
150
 
128
151
  The component walks the `items` you give it and has no loading state of its
@@ -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"
@@ -738,6 +774,18 @@
738
774
  "name": "::part(card)",
739
775
  "description": "The elevated surface inside the panel holding the search row, the breadcrumb, the header and the list"
740
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
+ },
741
789
  {
742
790
  "name": "::part(search)",
743
791
  "description": "The search-input row at the top of the panel"
@@ -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",
@@ -2039,7 +2049,7 @@
2039
2049
  },
2040
2050
  {
2041
2051
  "name": "c-tree-select",
2042
- "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- **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",
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",
2043
2053
  "attributes": [
2044
2054
  {
2045
2055
  "name": "allow-branch",
@@ -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.14",
4
+ "version": "4.0.0-alpha.16",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -252,7 +252,7 @@
252
252
  },
253
253
  {
254
254
  "name": "c-autocomplete",
255
- "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",
255
+ "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",
256
256
  "doc-url": "",
257
257
  "attributes": [
258
258
  {
@@ -1469,9 +1469,14 @@
1469
1469
  },
1470
1470
  {
1471
1471
  "name": "c-dropdown",
1472
- "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`",
1472
+ "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`",
1473
1473
  "doc-url": "",
1474
1474
  "attributes": [
1475
+ {
1476
+ "name": "close-label",
1477
+ "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
1478
+ "value": { "type": "string", "default": "'Close'" }
1479
+ },
1475
1480
  {
1476
1481
  "name": "dropdown-item-type",
1477
1482
  "description": "Whether items are <c-option> elements or plain objects",
@@ -1500,6 +1505,11 @@
1500
1505
  "description": "Items per page before adding scroll",
1501
1506
  "value": { "type": "number", "default": "0" }
1502
1507
  },
1508
+ {
1509
+ "name": "label",
1510
+ "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
1511
+ "value": { "type": "string", "default": "''" }
1512
+ },
1503
1513
  {
1504
1514
  "name": "multiple",
1505
1515
  "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
@@ -1547,19 +1557,24 @@
1547
1557
  "type": "CustomEvent<boolean>",
1548
1558
  "description": "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."
1549
1559
  },
1550
- {
1551
- "name": "selectOption",
1552
- "type": "CustomEvent<{ name: string; value: number | string }>",
1553
- "description": "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."
1554
- },
1555
1560
  {
1556
1561
  "name": "selectall",
1557
1562
  "type": "CustomEvent<void>",
1558
1563
  "description": "Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option."
1564
+ },
1565
+ {
1566
+ "name": "selectOption",
1567
+ "type": "CustomEvent<{ name: string; value: number | string }>",
1568
+ "description": "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."
1559
1569
  }
1560
1570
  ],
1561
1571
  "js": {
1562
1572
  "properties": [
1573
+ {
1574
+ "name": "closeLabel",
1575
+ "description": "Accessible label of the fullscreen panel's close button (narrow viewports)",
1576
+ "type": "string"
1577
+ },
1563
1578
  {
1564
1579
  "name": "dropdownItemType",
1565
1580
  "description": "Whether items are <c-option> elements or plain objects",
@@ -1585,6 +1600,11 @@
1585
1600
  "description": "Items per page before adding scroll",
1586
1601
  "type": "number"
1587
1602
  },
1603
+ {
1604
+ "name": "label",
1605
+ "description": "The parent field's label, shown as the fullscreen panel's heading (narrow viewports)",
1606
+ "type": "string"
1607
+ },
1588
1608
  {
1589
1609
  "name": "multiple",
1590
1610
  "description": "Multi-select mode: rows toggle instead of committing, each carries a\ndecorative checkbox indicator, and the listbox is `aria-multiselectable`",
@@ -1617,15 +1637,15 @@
1617
1637
  "type": "CustomEvent<boolean>",
1618
1638
  "description": "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."
1619
1639
  },
1620
- {
1621
- "name": "selectOption",
1622
- "type": "CustomEvent<{ name: string; value: number | string }>",
1623
- "description": "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."
1624
- },
1625
1640
  {
1626
1641
  "name": "selectall",
1627
1642
  "type": "CustomEvent<void>",
1628
1643
  "description": "Fired when the select-all row is activated; the parent (c-select) toggles\nevery listed enabled option."
1644
+ },
1645
+ {
1646
+ "name": "selectOption",
1647
+ "type": "CustomEvent<{ name: string; value: number | string }>",
1648
+ "description": "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."
1629
1649
  }
1630
1650
  ]
1631
1651
  }
@@ -3550,7 +3570,7 @@
3550
3570
  },
3551
3571
  {
3552
3572
  "name": "c-select",
3553
- "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",
3573
+ "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",
3554
3574
  "doc-url": "",
3555
3575
  "attributes": [
3556
3576
  {
@@ -5545,7 +5565,7 @@
5545
5565
  },
5546
5566
  {
5547
5567
  "name": "c-tree-select",
5548
- "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- **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",
5568
+ "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",
5549
5569
  "doc-url": "",
5550
5570
  "attributes": [
5551
5571
  {
@@ -5854,6 +5874,18 @@
5854
5874
  "name": "part(card)",
5855
5875
  "description": "The elevated surface inside the panel holding the search row and the list"
5856
5876
  },
5877
+ {
5878
+ "name": "part(heading-row)",
5879
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
5880
+ },
5881
+ {
5882
+ "name": "part(heading)",
5883
+ "description": "The field label naming the fullscreen panel"
5884
+ },
5885
+ {
5886
+ "name": "part(close)",
5887
+ "description": "The close button of the fullscreen panel"
5888
+ },
5857
5889
  {
5858
5890
  "name": "part(search)",
5859
5891
  "description": "The search-input row at the top of the panel"
@@ -6033,6 +6065,18 @@
6033
6065
  "name": "part(menu)",
6034
6066
  "description": "The positioned dialog surface holding the field and the list"
6035
6067
  },
6068
+ {
6069
+ "name": "part(heading-row)",
6070
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
6071
+ },
6072
+ {
6073
+ "name": "part(heading)",
6074
+ "description": "The field label naming the fullscreen panel"
6075
+ },
6076
+ {
6077
+ "name": "part(close)",
6078
+ "description": "The close button of the fullscreen panel"
6079
+ },
6036
6080
  { "name": "part(list)", "description": "The scrolling listbox" },
6037
6081
  { "name": "part(item)", "description": "One option row" },
6038
6082
  {
@@ -6321,6 +6365,18 @@
6321
6365
  "name": "part(menu)",
6322
6366
  "description": "The dropdown surface (the positioned dialog) holding the field and the list"
6323
6367
  },
6368
+ {
6369
+ "name": "part(heading-row)",
6370
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
6371
+ },
6372
+ {
6373
+ "name": "part(heading)",
6374
+ "description": "The field label naming the fullscreen panel"
6375
+ },
6376
+ {
6377
+ "name": "part(close)",
6378
+ "description": "The close button of the fullscreen panel"
6379
+ },
6324
6380
  {
6325
6381
  "name": "part(list)",
6326
6382
  "description": "The scrolling listbox of options"
@@ -6550,6 +6606,18 @@
6550
6606
  "name": "part(card)",
6551
6607
  "description": "The elevated surface inside the panel holding the search row, the breadcrumb, the header and the list"
6552
6608
  },
6609
+ {
6610
+ "name": "part(heading-row)",
6611
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
6612
+ },
6613
+ {
6614
+ "name": "part(heading)",
6615
+ "description": "The field label naming the fullscreen panel"
6616
+ },
6617
+ {
6618
+ "name": "part(close)",
6619
+ "description": "The close button of the fullscreen panel"
6620
+ },
6553
6621
  {
6554
6622
  "name": "part(search)",
6555
6623
  "description": "The search-input row at the top of the panel"