@cscfi/csc-ui 4.0.0-alpha.2 → 4.0.0-alpha.21

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 (88) hide show
  1. package/dist/csc-ui.js +10212 -7251
  2. package/dist/custom-elements.json +2278 -257
  3. package/dist/docs/c-alert/usage.md +24 -0
  4. package/dist/docs/c-autocomplete/usage.md +152 -0
  5. package/dist/docs/c-button-group/usage.md +14 -1
  6. package/dist/docs/c-checkbox/usage.md +53 -0
  7. package/dist/docs/c-main/usage.md +21 -1
  8. package/dist/docs/c-menu/usage.md +15 -0
  9. package/dist/docs/c-menu-item/usage.md +6 -0
  10. package/dist/docs/c-option-value/usage.md +1 -0
  11. package/dist/docs/c-popover/usage.md +33 -0
  12. package/dist/docs/c-progress-bar/usage.md +23 -0
  13. package/dist/docs/c-progress-circle/usage.md +25 -0
  14. package/dist/docs/c-radio/usage.md +45 -0
  15. package/dist/docs/c-radio-group/usage.md +67 -0
  16. package/dist/docs/c-select/usage.md +127 -0
  17. package/dist/docs/c-side-navigation/usage.md +21 -0
  18. package/dist/docs/c-spinner/usage.md +21 -0
  19. package/dist/docs/c-switch/usage.md +36 -0
  20. package/dist/docs/c-tab-buttons/usage.md +7 -0
  21. package/dist/docs/c-table/usage.md +14 -0
  22. package/dist/docs/c-toolbar/usage.md +17 -0
  23. package/dist/docs/c-tooltip/usage.md +30 -0
  24. package/dist/docs/c-tree-select/usage.md +156 -0
  25. package/dist/styles/css/tailwind-theme.css +32 -0
  26. package/dist/styles/css/tokens.css +707 -197
  27. package/dist/vscode.css-custom-data.json +286 -19
  28. package/dist/vscode.html-custom-data.json +334 -51
  29. package/dist/web-types.json +1200 -190
  30. package/dist-types/components/c-alert/CAlert.vue.d.ts +18 -4
  31. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +118 -18
  32. package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
  33. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
  34. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +3 -3
  35. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +6 -2
  36. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +48 -5
  37. package/dist-types/components/c-icon/CIcon.vue.d.ts +1 -1
  38. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
  39. package/dist-types/components/c-input/CInput.vue.d.ts +6 -2
  40. package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +4 -2
  41. package/dist-types/components/c-main/CMain.vue.d.ts +9 -2
  42. package/dist-types/components/c-menu/CMenu.vue.d.ts +14 -4
  43. package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +30 -3
  44. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
  45. package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
  46. package/dist-types/components/c-popover/CPopover.vue.d.ts +43 -0
  47. package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +32 -0
  48. package/dist-types/components/c-radio/CRadio.vue.d.ts +7 -11
  49. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +9 -47
  50. package/dist-types/components/c-select/CSelect.vue.d.ts +115 -24
  51. package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +1 -1
  52. package/dist-types/components/c-spinner/CSpinner.vue.d.ts +1 -1
  53. package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
  54. package/dist-types/components/c-table/CTable.vue.d.ts +11 -1
  55. package/dist-types/components/c-table/injectTableStyles.d.ts +1 -0
  56. package/dist-types/components/c-tag/CTag.vue.d.ts +8 -1
  57. package/dist-types/components/c-text-field/CTextField.vue.d.ts +15 -4
  58. package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
  59. package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +49 -0
  60. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
  61. package/dist-types/index.d.ts +14 -2
  62. package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
  63. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  64. package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
  65. package/dist-types/shared/appDefaults.d.ts +75 -0
  66. package/dist-types/shared/defineElement.d.ts +1 -0
  67. package/dist-types/shared/lightDismiss.d.ts +35 -0
  68. package/dist-types/shared/modalStack.d.ts +4 -3
  69. package/dist-types/shared/optionLabel.d.ts +18 -0
  70. package/dist-types/shared/pageLock.d.ts +26 -0
  71. package/dist-types/shared/peekCap.d.ts +35 -0
  72. package/dist-types/shared/popoverChain.d.ts +65 -0
  73. package/dist-types/shared/positionArea.d.ts +13 -0
  74. package/dist-types/shared/selectAll.d.ts +29 -0
  75. package/dist-types/shared/splitMatches.d.ts +18 -0
  76. package/dist-types/shared/useAnchoredPanel.d.ts +98 -0
  77. package/dist-types/shared/useDesignatedTrigger.d.ts +40 -0
  78. package/dist-types/shared/useHostStates.d.ts +25 -0
  79. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  80. package/dist-types/shared/useScrollStrip.d.ts +39 -0
  81. package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
  82. package/dist-types/shared/visualViewport.d.ts +51 -0
  83. package/dist-types/tag-name-map.d.ts +440 -51
  84. package/dist-types/theme/chart-data.d.ts +51 -0
  85. package/dist-types/theme/ramp.d.ts +38 -0
  86. package/dist-types/theme/themeMode.d.ts +51 -0
  87. package/dist-types/types.d.ts +13 -0
  88. package/package.json +19 -8
@@ -5,27 +5,32 @@
5
5
  * Typed element interfaces for every registered custom element, plus the
6
6
  * global `HTMLElementTagNameMap` augmentation that makes
7
7
  * `document.createElement('c-button')` and `querySelector('c-button')`
8
- * return the typed element.
8
+ * return the typed element. Also the `AppDefaults` map (tag → props a
9
+ * consumer may set app-wide with `applyDefaults()`) and its runtime twin
10
+ * `DEFAULTABLE_PROPS`, both derived from the `@defaultable` prop tags.
9
11
  */
10
- import type { CAutocompleteFilter, CAutocompleteItem } from './components/c-autocomplete/CAutocomplete.vue';
12
+ import type { CAutocompleteFilter, CAutocompleteItem, CAutocompleteTexts, CAutocompleteValue } from './components/c-autocomplete/CAutocomplete.vue';
11
13
  import type { CButtonGroupValue } from './components/c-button-group/CButtonGroup.vue';
12
14
  import type { CDataTableCellContent, CDataTableColumn, CDataTableExpandedContext, CDataTableRow, CDataTableSort, CDataTableTexts } from './components/c-data-table/CDataTable.vue';
13
15
  import type { CPaginationOptions } from './components/c-pagination/CPagination.vue';
16
+ import type { CSelectTexts, CSelectValue } from './components/c-select/CSelect.vue';
17
+ import type { CTreeSelectFilter, CTreeSelectItem, CTreeSelectTexts, CTreeSelectValue } from './components/c-tree-select/CTreeSelect.vue';
14
18
  import type { CSelectItem, CToastMessage } from './types';
15
19
  type AccordionPrimitive = number | string;
16
20
  type AccordionValue = AccordionPrimitive | AccordionPrimitive[] | null;
21
+ interface CDropdownSelectAllRow {
22
+ label: string;
23
+ selected: number;
24
+ state: 'all' | 'none' | 'some';
25
+ total: number;
26
+ }
17
27
  type DropdownItem = {
18
- disabled?: boolean;
28
+ disabled?: boolean | string;
19
29
  name: string;
20
30
  outerHTML?: string;
21
31
  selected?: boolean;
22
32
  value: number | string;
23
33
  };
24
- interface RadioItem {
25
- disabled?: boolean;
26
- name: string;
27
- value: number | string;
28
- }
29
34
  /** Events dispatched by `<c-accordion>`. */
30
35
  export interface CAccordionElementEventMap {
31
36
  /**
@@ -92,9 +97,32 @@ export interface CAccordionItemElement extends Omit<HTMLElement, 'collapsable' |
92
97
  removeEventListener<K extends keyof CAccordionItemElementEventMap>(type: K, listener: (this: CAccordionItemElement, ev: CAccordionItemElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
93
98
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
94
99
  }
95
- export interface CAlertElement extends Omit<HTMLElement, 'type'> {
100
+ /** Events dispatched by `<c-alert>`. */
101
+ export interface CAlertElementEventMap {
102
+ /**
103
+ * Fired when the dismiss button is pressed. The alert does not hide
104
+ * itself — the consumer owns removal.
105
+ */
106
+ dismiss: CustomEvent<void>;
107
+ }
108
+ /** A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral. */
109
+ export interface CAlertElement extends Omit<HTMLElement, 'dismissible' | 'heading' | 'type'> {
110
+ /**
111
+ * Show a dismiss button. The alert only emits `dismiss` — removing it from
112
+ * the page stays the consumer's job.
113
+ */
114
+ dismissible?: boolean;
115
+ /**
116
+ * Heading rendered above the message. The `heading` slot overrides it for
117
+ * rich content.
118
+ */
119
+ heading?: string;
96
120
  /** Type of the alert */
97
121
  type?: 'default' | 'error' | 'info' | 'success' | 'warning';
122
+ addEventListener<K extends keyof CAlertElementEventMap>(type: K, listener: (this: CAlertElement, ev: CAlertElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
123
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
124
+ removeEventListener<K extends keyof CAlertElementEventMap>(type: K, listener: (this: CAlertElement, ev: CAlertElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
125
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
98
126
  }
99
127
  /** Events dispatched by `<c-autocomplete>`. */
100
128
  export interface CAutocompleteElementEventMap {
@@ -115,9 +143,10 @@ export interface CAutocompleteElementEventMap {
115
143
  * Fired when the selected value changes (an option is committed or the
116
144
  * selection is cleared), carrying the new value — the option's value, or
117
145
  * the whole `{ name, value }` item when `return-object` is set; `null`
118
- * when cleared.
146
+ * when cleared. In `multiple` mode the whole array of picked values, in
147
+ * pick order (`[]` when cleared).
119
148
  */
120
- changeValue: CustomEvent<CAutocompleteItem | null | number | string>;
149
+ changeValue: CustomEvent<CAutocompleteValue>;
121
150
  /**
122
151
  * Native bubbling input event dispatched alongside every value change so a
123
152
  * plain `v-model` stays in sync. Carries no detail.
@@ -127,10 +156,10 @@ export interface CAutocompleteElementEventMap {
127
156
  * Fired alongside `changeValue` with the same detail — the `v-model`
128
157
  * contract.
129
158
  */
130
- 'update:value': CustomEvent<CAutocompleteItem | null | number | string>;
159
+ 'update:value': CustomEvent<CAutocompleteValue>;
131
160
  }
132
161
  /** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
133
- export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'external' | 'filter' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'name' | 'noResultsText' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'valid' | 'value'> {
162
+ export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'external' | 'filter' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'maxTags' | 'multiple' | 'name' | 'placeholder' | 'required' | 'returnObject' | 'selectAll' | 'shadow' | 'size' | 'texts' | 'valid' | 'value'> {
134
163
  /** Make the selected value clearable */
135
164
  clearable?: boolean;
136
165
  /** Disable the input */
@@ -161,22 +190,52 @@ export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'd
161
190
  labelOnTop?: boolean;
162
191
  /** Show loading state */
163
192
  loading?: boolean;
193
+ /**
194
+ * In `multiple` mode, show at most this many selected-value tags and fold
195
+ * the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
196
+ * instead; unset shows every tag
197
+ */
198
+ maxTags?: number;
199
+ /**
200
+ * Allow selecting several options: rows toggle, the panel stays open and
201
+ * keeps its query, `value` becomes an array of the selected values (items
202
+ * with `return-object`) in the order they were picked, and the picks show
203
+ * as tags inside the field. Arrays have no attribute form — bind `value` as
204
+ * a DOM property
205
+ */
206
+ multiple?: boolean;
164
207
  /** Input field name */
165
208
  name?: string;
166
- /** Message shown when the query matches no options */
167
- noResultsText?: string;
168
209
  /** Placeholder for the in-panel search input */
169
210
  placeholder?: string;
170
211
  /** Set the autocomplete as required */
171
212
  required?: boolean;
172
213
  /** Return object instead of value */
173
214
  returnObject?: boolean;
215
+ /**
216
+ * In `multiple` mode, pin a select-all row at the top of the list. Its
217
+ * checkbox shows whether none, some or all enabled options currently listed
218
+ * — the matches while a query is typed, the given `items` with `external` —
219
+ * are selected; activating it selects them all, or, when all are selected,
220
+ * unselects them. Ignored in single mode
221
+ */
222
+ selectAll?: boolean;
174
223
  /** Shadow variant */
175
224
  shadow?: boolean;
225
+ /** Field height: the 52px default (the shared control height) or the 36px `small` box */
226
+ size?: 'default' | 'small';
227
+ /**
228
+ * UI text overrides (i18n), merged over the English defaults. Objects have
229
+ * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
230
+ */
231
+ texts?: CAutocompleteTexts;
176
232
  /** Set the validity of the input */
177
233
  valid?: boolean;
178
- /** Selected value (scalar, or object when return-object is set) */
179
- value?: CAutocompleteItem | null | number | string;
234
+ /**
235
+ * Selected value: the option's value, or the whole item with
236
+ * `return-object`; an array of them in `multiple` mode
237
+ */
238
+ value?: CAutocompleteValue;
180
239
  /** Reset autocomplete state */
181
240
  reset(): void;
182
241
  addEventListener<K extends keyof CAutocompleteElementEventMap>(type: K, listener: (this: CAutocompleteElement, ev: CAutocompleteElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
@@ -323,6 +382,7 @@ export interface CCheckboxElementEventMap {
323
382
  */
324
383
  'update:value': CustomEvent<boolean | number | string>;
325
384
  }
385
+ /** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
326
386
  export interface CCheckboxElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'errorMessage' | 'falseValue' | 'hideDetails' | 'hint' | 'hostId' | 'hostName' | 'indeterminate' | 'label' | 'required' | 'trueValue' | 'valid' | 'value'> {
327
387
  /** If `true`, the checkbox is selected. */
328
388
  checked?: boolean;
@@ -465,6 +525,11 @@ export interface CDropdownElementEventMap {
465
525
  * state.
466
526
  */
467
527
  dropdownStateChange: CustomEvent<boolean>;
528
+ /**
529
+ * Fired when the select-all row is activated; the parent (c-select) toggles
530
+ * every listed enabled option.
531
+ */
532
+ selectall: CustomEvent<void>;
468
533
  /**
469
534
  * Fired when the user selects an option row, carrying the option's name
470
535
  * and value for the parent (c-select) to commit.
@@ -474,19 +539,39 @@ export interface CDropdownElementEventMap {
474
539
  value: number | string;
475
540
  }>;
476
541
  }
477
- export interface CDropdownElement extends Omit<HTMLElement, 'dropdownItemType' | 'hostId' | 'index' | 'items' | 'itemsPerPage' | 'parent' | 'type'> {
542
+ export interface CDropdownElement extends Omit<HTMLElement, 'closeLabel' | 'dropdownItemType' | 'hostId' | 'index' | 'items' | 'itemsPerPage' | 'label' | 'multiple' | 'parent' | 'selectAllRow' | 'selected' | 'type'> {
543
+ /** Accessible label of the fullscreen panel's close button (narrow viewports) */
544
+ closeLabel?: string;
478
545
  /** Whether items are <c-option> elements or plain objects */
479
546
  dropdownItemType?: 'item' | 'option';
480
547
  /** Id used to build option/announce element ids */
481
548
  hostId?: string;
482
- /** Current highlighted index */
549
+ /** Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row */
483
550
  index?: null | number;
484
551
  /** Dropdown options: a NodeList of <c-option> or an array of items */
485
552
  items?: ArrayLike<DropdownItem>;
486
553
  /** Items per page before adding scroll */
487
554
  itemsPerPage?: number;
555
+ /** The parent field's label, shown as the fullscreen panel's heading (narrow viewports) */
556
+ label?: string;
557
+ /**
558
+ * Multi-select mode: rows toggle instead of committing, each carries a
559
+ * decorative checkbox indicator, and the listbox is `aria-multiselectable`
560
+ */
561
+ multiple?: boolean;
488
562
  /** Dropdown parent (the c-select / c-autocomplete host element) */
489
563
  parent?: HTMLElement | null;
564
+ /**
565
+ * The select-all row in `multiple` mode, as the parent computes it (label,
566
+ * tri-state, counts for the live region); `null` renders no row
567
+ */
568
+ selectAllRow?: CDropdownSelectAllRow | null;
569
+ /**
570
+ * Values of the currently selected items — the picked values in `multiple`
571
+ * mode, the single value otherwise; drives each row's `aria-selected`, its
572
+ * indicator and the single-mode selected-row check
573
+ */
574
+ selected?: (number | string)[];
490
575
  /** Parent type — drives autocomplete-only behaviour (highlight, messages) */
491
576
  type?: 'autocomplete' | 'select';
492
577
  /** Close dropdown */
@@ -534,7 +619,7 @@ export interface CIconButtonElement extends Omit<HTMLElement, 'badge' | 'danger'
534
619
  /** Text variant of the button */
535
620
  text?: boolean;
536
621
  }
537
- export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' | 'errorMessage' | 'filled' | 'hideDetails' | 'hint' | 'inputId' | 'isTextarea' | 'label' | 'labelOnTop' | 'required' | 'shadow' | 'valid'> {
622
+ export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' | 'errorMessage' | 'filled' | 'hideDetails' | 'hint' | 'inputId' | 'isTextarea' | 'label' | 'labelOnTop' | 'required' | 'shadow' | 'size' | 'valid'> {
538
623
  /** Set by the wrapping form component when its input has focus or holds a value. */
539
624
  active?: boolean;
540
625
  /** Disable the input */
@@ -559,6 +644,8 @@ export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' |
559
644
  required?: boolean;
560
645
  /** Shadow variant of the input */
561
646
  shadow?: boolean;
647
+ /** Field height: the 52px default (the shared control height) or the 36px `small` box */
648
+ size?: 'default' | 'small';
562
649
  /** Set the validíty of the input */
563
650
  valid?: boolean;
564
651
  }
@@ -658,7 +745,7 @@ export interface CLoginCardContentElement extends HTMLElement {
658
745
  }
659
746
  export interface CLoginCardTitleElement extends HTMLElement {
660
747
  }
661
- /** Wrapper component for the whole page */
748
+ /** The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls. */
662
749
  export interface CMainElement extends Omit<HTMLElement, 'disableLayout'> {
663
750
  /** Disable the default dashboard layout */
664
751
  disableLayout?: boolean;
@@ -680,27 +767,55 @@ export interface CMenuElementEventMap {
680
767
  value: unknown;
681
768
  }>;
682
769
  }
683
- export interface CMenuElement extends Omit<HTMLElement, 'distance' | 'open' | 'position'> {
770
+ /** A command menu: a transient panel of actions or navigation choices opened from a trigger (the WAI-ARIA menu-button pattern), authored declaratively with slotted `c-menu-item`, `c-menu-label` and `c-divider` elements. Activating an item fires a one-off `select` event and closes the menu; the menu holds no selected value — that is `c-select`'s job. */
771
+ export interface CMenuElement extends Omit<HTMLElement, 'distance' | 'open' | 'position' | 'trigger'> {
684
772
  /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
685
773
  distance?: number | string;
686
774
  /** Whether the menu is open. Two-way: emits `change:open`. */
687
775
  open?: boolean;
688
776
  /** Preferred placement of the panel relative to the trigger. */
689
777
  position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
778
+ /**
779
+ * Designated trigger: an element elsewhere in the document that opens the
780
+ * menu — its document ID, or the element itself. The same trigger concept
781
+ * as the `trigger` slot, supplied by reference: the menu wires
782
+ * click-to-toggle, arrow-key opening, ARIA and focus return onto it and
783
+ * anchors the panel to it. When both routes are supplied, this prop wins
784
+ * over the slot.
785
+ */
786
+ trigger?: HTMLElement | string;
690
787
  addEventListener<K extends keyof CMenuElementEventMap>(type: K, listener: (this: CMenuElement, ev: CMenuElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
691
788
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
692
789
  removeEventListener<K extends keyof CMenuElementEventMap>(type: K, listener: (this: CMenuElement, ev: CMenuElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
693
790
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
694
791
  }
695
792
  /** A single command in a `c-menu`. */
696
- export interface CMenuItemElement extends Omit<HTMLElement, 'danger' | 'disabled' | 'value'> {
793
+ export interface CMenuItemElement extends Omit<HTMLElement, 'active' | 'activeIcon' | 'danger' | 'disabled' | 'icon' | 'value'> {
794
+ /**
795
+ * Marks the item as the currently selected choice: renders the trailing
796
+ * indicator icon and stamps `role="menuitemradio"` + `aria-checked`. Leave
797
+ * unset for regular command items — only a true/false value marks the item
798
+ * as a selectable choice. The state is consumer-owned: the menu emits
799
+ * `select` as usual and never toggles this itself. Distinct from the
800
+ * keyboard highlight (the `data-active` attribute the controlling menu
801
+ * moves between rows).
802
+ */
803
+ active?: boolean;
804
+ /**
805
+ * SVG path for the trailing indicator shown while `active`; defaults to a
806
+ * check mark.
807
+ */
808
+ activeIcon?: string;
697
809
  /** Marks the action as destructive (renders in the error colour). */
698
810
  danger?: boolean;
699
811
  /** Disables the item — it is skipped by keyboard nav and emits no select. */
700
812
  disabled?: boolean;
813
+ /** SVG path for a leading icon rendered before the item's content. */
814
+ icon?: string;
701
815
  /** Value reported in the menu's `select` event when this item is chosen. */
702
816
  value?: string;
703
817
  closeSubmenu(): void;
818
+ isSubmenuOpen(): boolean;
704
819
  openSubmenu(): void;
705
820
  }
706
821
  /** Section label for a group of `c-menu-item`s. */
@@ -767,6 +882,7 @@ export interface COptionElement extends Omit<HTMLElement, 'disabled' | 'name' |
767
882
  /** Option value */
768
883
  value?: number | string;
769
884
  }
885
+ /** The label region of a `c-option`: wraps the text that c-select and c-autocomplete use as the option's label — in the closed field, its tag and the autocomplete filter — so the option can carry a description or an icon beside its label, and the region in which c-autocomplete marks the runs equal to the query (`::part(match)`). */
770
886
  export interface COptionValueElement extends HTMLElement {
771
887
  }
772
888
  /** Events dispatched by `<c-otp-input>`. */
@@ -859,6 +975,45 @@ export interface CPaginationElement extends Omit<HTMLElement, 'hideDetails' | 'h
859
975
  removeEventListener<K extends keyof CPaginationElementEventMap>(type: K, listener: (this: CPaginationElement, ev: CPaginationElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
860
976
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
861
977
  }
978
+ /** Events dispatched by `<c-popover>`. */
979
+ export interface CPopoverElementEventMap {
980
+ /**
981
+ * Fired whenever the popover opens or closes, carrying the new open state.
982
+ * Named `change:open`, not `update:open`: Vue's runtime silently drops
983
+ * `onUpdate:*` listeners on custom elements (`isModelListener`), so a
984
+ * template `@update:open` would never be attached.
985
+ */
986
+ 'change:open': CustomEvent<boolean>;
987
+ }
988
+ /** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
989
+ export interface CPopoverElement extends Omit<HTMLElement, 'distance' | 'heading' | 'open' | 'position' | 'trigger'> {
990
+ /** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
991
+ distance?: number | string;
992
+ /**
993
+ * Heading rendered at the top of the panel, doubling as its accessible
994
+ * name. Without it, set `aria-label` on the host. Named `heading`, not
995
+ * `title`: a `title` attribute on the host would trigger the browser's
996
+ * native tooltip and collides with `HTMLElement.title`.
997
+ */
998
+ heading?: string;
999
+ /** Whether the popover is open. Two-way: emits `change:open`. */
1000
+ open?: boolean;
1001
+ /** Preferred placement of the panel relative to the trigger. */
1002
+ position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
1003
+ /**
1004
+ * Designated trigger: an element elsewhere in the document that opens the
1005
+ * popover — its document ID, or the element itself. The same trigger
1006
+ * concept as the `trigger` slot, supplied by reference: the popover wires
1007
+ * click-to-toggle, ARIA and focus return onto it and anchors the panel to
1008
+ * it. When both routes are supplied, this prop wins over the slot.
1009
+ */
1010
+ trigger?: HTMLElement | string;
1011
+ addEventListener<K extends keyof CPopoverElementEventMap>(type: K, listener: (this: CPopoverElement, ev: CPopoverElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
1012
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1013
+ removeEventListener<K extends keyof CPopoverElementEventMap>(type: K, listener: (this: CPopoverElement, ev: CPopoverElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1014
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1015
+ }
1016
+ /** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
862
1017
  export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | 'indeterminate' | 'label' | 'singleLine' | 'value'> {
863
1018
  /** Hide the percentage display */
864
1019
  hideDetails?: boolean;
@@ -871,33 +1026,56 @@ export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | '
871
1026
  /** Progress bar value in percentage (0 to 100) */
872
1027
  value?: number;
873
1028
  }
874
- export interface CRadioElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'value'> {
875
- /** Set option as checked */
876
- checked?: boolean;
1029
+ /** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
1030
+ export interface CProgressCircleElement extends Omit<HTMLElement, 'size' | 'value' | 'width'> {
1031
+ /** Diameter of the circle in pixels */
1032
+ size?: number;
1033
+ /** Progress value in percentage (0 to 100) */
1034
+ value?: number;
1035
+ /**
1036
+ * Stroke width of the track in pixels; the value arc draws at half this
1037
+ * width, inset within the track
1038
+ */
1039
+ width?: number;
1040
+ }
1041
+ /** Events dispatched by `<c-radio>`. */
1042
+ export interface CRadioElementEventMap {
1043
+ /**
1044
+ * Fired when the radio is selected by the user, carrying its `value`.
1045
+ * Bubbles composed so the parent `<c-radio-group>` — whose shadow root a
1046
+ * light-DOM event never enters — catches it on its host; a consumer
1047
+ * listening on the group hears it too, with the radio as `target`.
1048
+ */
1049
+ change: CustomEvent<string>;
1050
+ }
1051
+ /** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
1052
+ export interface CRadioElement extends Omit<HTMLElement, 'disabled' | 'value'> {
877
1053
  /** Disable the radio button */
878
1054
  disabled?: boolean;
879
1055
  /** Radio button value */
880
1056
  value?: string;
1057
+ addEventListener<K extends keyof CRadioElementEventMap>(type: K, listener: (this: CRadioElement, ev: CRadioElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
1058
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1059
+ removeEventListener<K extends keyof CRadioElementEventMap>(type: K, listener: (this: CRadioElement, ev: CRadioElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1060
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
881
1061
  }
882
1062
  /** Events dispatched by `<c-radio-group>`. */
883
1063
  export interface CRadioGroupElementEventMap {
884
- /**
885
- * Fired when a radio option is selected, carrying the selected item's
886
- * value — or the whole item object when `return-object` is set.
887
- */
888
- changeValue: CustomEvent<number | RadioItem | string>;
1064
+ /** Fired when a radio is selected, carrying the selected radio's value. */
1065
+ changeValue: CustomEvent<string>;
889
1066
  /**
890
1067
  * Native bubbling input event fired on selection so a plain Vue `v-model`
891
1068
  * works without the `v-control` directive. No detail.
892
1069
  */
893
1070
  input: CustomEvent<void>;
894
1071
  /**
895
- * v-model contract event fired on selection, carrying the selected item's
896
- * value — or the whole item object when `return-object` is set.
1072
+ * v-model contract event fired on selection, carrying the selected radio's
1073
+ * value.
897
1074
  */
898
- 'update:value': CustomEvent<number | RadioItem | string>;
1075
+ 'update:value': CustomEvent<string>;
899
1076
  }
900
- export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'inline' | 'items' | 'label' | 'required' | 'returnObject' | 'valid' | 'value'> {
1077
+ /** A radio group is a set of mutually exclusive choices where exactly one can be selected, authored as slotted `c-radio` children. Give the group a `label` so the choice it represents is named for every user, and a `hint` describing how to answer. */
1078
+ export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'inline' | 'label' | 'required' | 'valid' | 'value'> {
901
1079
  /** Disable the radio group */
902
1080
  disabled?: boolean;
903
1081
  /** Error message shown in place of the hint while the group is invalid */
@@ -906,22 +1084,19 @@ export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'erro
906
1084
  hideDetails?: boolean;
907
1085
  /** Hint text for the input */
908
1086
  hint?: string;
909
- /** Id of the element */
910
- hostId?: string;
911
1087
  /** Display radio buttons inline */
912
1088
  inline?: boolean;
913
- /** Radio group items */
914
- items?: RadioItem[];
915
1089
  /** Label of the radio group */
916
1090
  label?: string;
917
1091
  /** Set as required */
918
1092
  required?: boolean;
919
- /** Return the whole item object */
920
- returnObject?: boolean;
921
1093
  /** Set the validity of the input */
922
1094
  valid?: boolean;
923
- /** Value of the radio group */
924
- value?: null | number | RadioItem | string;
1095
+ /**
1096
+ * Value of the radio group; matched against each radio's `value` by strict
1097
+ * string equality
1098
+ */
1099
+ value?: null | string;
925
1100
  addEventListener<K extends keyof CRadioGroupElementEventMap>(type: K, listener: (this: CRadioGroupElement, ev: CRadioGroupElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
926
1101
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
927
1102
  removeEventListener<K extends keyof CRadioGroupElementEventMap>(type: K, listener: (this: CRadioGroupElement, ev: CRadioGroupElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
@@ -933,8 +1108,10 @@ export interface CSelectElementEventMap {
933
1108
  * Fired when the selection changes (an option is picked or the value is
934
1109
  * cleared), carrying the new value — the option's value, or the whole
935
1110
  * `{ name, value }` item when `return-object` is set; `null` when cleared.
1111
+ * In `multiple` mode the whole array of picked values, in pick order
1112
+ * (`[]` when cleared).
936
1113
  */
937
- changeValue: CustomEvent<CSelectItem | null | number | string>;
1114
+ changeValue: CustomEvent<CSelectValue>;
938
1115
  /**
939
1116
  * Native bubbling input event dispatched alongside every value change so a
940
1117
  * plain `v-model` stays in sync. Carries no detail.
@@ -944,9 +1121,10 @@ export interface CSelectElementEventMap {
944
1121
  * Fired alongside `changeValue` with the same detail — the `v-model`
945
1122
  * contract.
946
1123
  */
947
- 'update:value': CustomEvent<CSelectItem | null | number | string>;
1124
+ 'update:value': CustomEvent<CSelectValue>;
948
1125
  }
949
- export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'name' | 'optionAsSelection' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'valid' | 'value'> {
1126
+ /** 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`. */
1127
+ export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'maxTags' | 'multiple' | 'name' | 'optionAsSelection' | 'placeholder' | 'required' | 'returnObject' | 'selectAll' | 'shadow' | 'size' | 'texts' | 'valid' | 'value'> {
950
1128
  /** Make the selected value clearable */
951
1129
  clearable?: boolean;
952
1130
  /** Disable the input */
@@ -969,6 +1147,20 @@ export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disable
969
1147
  labelOnTop?: boolean;
970
1148
  /** Show loading state */
971
1149
  loading?: boolean;
1150
+ /**
1151
+ * In `multiple` mode, show at most this many selected-value tags and fold
1152
+ * the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
1153
+ * instead; unset shows every tag
1154
+ */
1155
+ maxTags?: number;
1156
+ /**
1157
+ * Allow selecting several options: rows toggle and the list stays open,
1158
+ * `value` becomes an array of the selected values (items with
1159
+ * `return-object`) in the order they were picked, and the picks show as
1160
+ * tags inside the field. `option-as-selection` is ignored in this mode.
1161
+ * Arrays have no attribute form — bind `value` as a DOM property
1162
+ */
1163
+ multiple?: boolean;
972
1164
  /** Input field name */
973
1165
  name?: string;
974
1166
  /** Display the option as selection (only with <c-option> elements) */
@@ -979,12 +1171,29 @@ export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disable
979
1171
  required?: boolean;
980
1172
  /** Return object instead of value */
981
1173
  returnObject?: boolean;
1174
+ /**
1175
+ * In `multiple` mode, pin a select-all row at the top of the list. Its
1176
+ * checkbox shows whether none, some or all enabled options are selected;
1177
+ * activating it selects every enabled option — or, when all are selected,
1178
+ * unselects them. Ignored in single mode
1179
+ */
1180
+ selectAll?: boolean;
982
1181
  /** Shadow variant */
983
1182
  shadow?: boolean;
1183
+ /** Field height: the 52px default (the shared control height) or the 36px `small` box */
1184
+ size?: 'default' | 'small';
1185
+ /**
1186
+ * UI text overrides (i18n), merged over the English defaults. Objects have
1187
+ * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
1188
+ */
1189
+ texts?: CSelectTexts;
984
1190
  /** Set the validity of the input */
985
1191
  valid?: boolean;
986
- /** Selected value (scalar, or object when return-object is set) */
987
- value?: CSelectItem | null | number | string;
1192
+ /**
1193
+ * Selected value: the option's value, or the whole item with
1194
+ * `return-object`; an array of them in `multiple` mode
1195
+ */
1196
+ value?: CSelectValue;
988
1197
  /** Reset select state */
989
1198
  reset(): void;
990
1199
  addEventListener<K extends keyof CSelectElementEventMap>(type: K, listener: (this: CSelectElement, ev: CSelectElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
@@ -1004,6 +1213,7 @@ export interface CSideNavigationElementEventMap {
1004
1213
  */
1005
1214
  'change:menu-visible': CustomEvent<boolean>;
1006
1215
  }
1216
+ /** The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile. */
1007
1217
  export interface CSideNavigationElement extends Omit<HTMLElement, 'menuVisible' | 'mobile' | 'styles'> {
1008
1218
  /** Mobile version menu visibility */
1009
1219
  menuVisible?: boolean;
@@ -1096,6 +1306,7 @@ export interface CSliderElement extends Omit<HTMLElement, 'ariaLabelInternal' |
1096
1306
  removeEventListener<K extends keyof CSliderElementEventMap>(type: K, listener: (this: CSliderElement, ev: CSliderElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1097
1307
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1098
1308
  }
1309
+ /** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
1099
1310
  export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'width'> {
1100
1311
  /** Color of the spinner */
1101
1312
  color?: string;
@@ -1154,6 +1365,7 @@ export interface CSwitchElementEventMap {
1154
1365
  */
1155
1366
  'update:value': CustomEvent<boolean | number | string>;
1156
1367
  }
1368
+ /** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
1157
1369
  export interface CSwitchElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'falseValue' | 'hostId' | 'label' | 'loading' | 'required' | 'trueValue' | 'value'> {
1158
1370
  /** If `true`, the checkbox is selected. */
1159
1371
  checked?: boolean;
@@ -1271,6 +1483,7 @@ export interface CTabItemsElement extends Omit<HTMLElement, 'disableAnimation' |
1271
1483
  /** Currently active tab */
1272
1484
  value?: number | string;
1273
1485
  }
1486
+ /** A styled wrapper for a table you author yourself: slot in a plain `<table>` and c-table gives it the CSC look plus an optional responsive card layout on narrow screens. The table stays in your own DOM — your stylesheets, your framework's rendering, and `::part()` selectors on components nested in cells (a `c-tag` status chip, a `c-pagination` footer) all keep working. */
1274
1487
  export interface CTableElement extends Omit<HTMLElement, 'mobileBreakpoint' | 'responsive'> {
1275
1488
  /** Mobile breakpoint in pixels */
1276
1489
  mobileBreakpoint?: number;
@@ -1318,13 +1531,15 @@ export interface CTagElementEventMap {
1318
1531
  /** Fired when the tag's close button is activated. */
1319
1532
  close: CustomEvent<void>;
1320
1533
  }
1321
- export interface CTagElement extends Omit<HTMLElement, 'active' | 'badge' | 'closeable' | 'flat' | 'size'> {
1534
+ export interface CTagElement extends Omit<HTMLElement, 'active' | 'badge' | 'closeable' | 'closeLabel' | 'flat' | 'size'> {
1322
1535
  /** Mark tag as active */
1323
1536
  active?: boolean;
1324
1537
  /** Display an optional badge at the start of the tag */
1325
1538
  badge?: null | number | string;
1326
1539
  /** Mark tag as closeable */
1327
1540
  closeable?: boolean;
1541
+ /** Accessible name of the close button rendered when `closeable` */
1542
+ closeLabel?: string;
1328
1543
  /** Remove the hover effect */
1329
1544
  flat?: boolean;
1330
1545
  /** Size of the tag */
@@ -1367,7 +1582,7 @@ export interface CTextFieldElementEventMap {
1367
1582
  */
1368
1583
  'update:value': CustomEvent<string>;
1369
1584
  }
1370
- export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'autocorrect' | 'automaticCapitalize' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'step' | 'trimWhitespace' | 'type' | 'valid' | 'value'> {
1585
+ export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'autocorrect' | 'automaticCapitalize' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'size' | 'step' | 'trimWhitespace' | 'type' | 'valid' | 'value'> {
1371
1586
  /** HTML input autocomplete */
1372
1587
  autocomplete?: string;
1373
1588
  /**
@@ -1409,6 +1624,8 @@ export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'a
1409
1624
  rows?: number;
1410
1625
  /** Shadow variant of the input */
1411
1626
  shadow?: boolean;
1627
+ /** Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields) */
1628
+ size?: 'default' | 'small';
1412
1629
  /** Step size on a numeric input */
1413
1630
  step?: null | number;
1414
1631
  /** Trim whitespace from the return value */
@@ -1456,8 +1673,176 @@ export interface CToastsElement extends Omit<HTMLElement, 'absolute' | 'horizont
1456
1673
  /** Remove a message by id (id should be specified in the addToast params) */
1457
1674
  removeToast(id: string): void;
1458
1675
  }
1459
- export interface CToolbarElement extends HTMLElement {
1676
+ /** The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content. */
1677
+ export interface CToolbarElement extends Omit<HTMLElement, 'static'> {
1678
+ /**
1679
+ * Keep the toolbar in the page flow so it scrolls away with the content
1680
+ * instead of staying pinned to the top of its scroll container
1681
+ */
1682
+ static?: boolean;
1683
+ }
1684
+ /** Events dispatched by `<c-tooltip>`. */
1685
+ export interface CTooltipElementEventMap {
1686
+ /**
1687
+ * Fired whenever the tooltip shows or hides, carrying the new open state.
1688
+ * Named `change:open`, not `update:open`: Vue's runtime silently drops
1689
+ * `onUpdate:*` listeners on custom elements (`isModelListener`), so a
1690
+ * template `@update:open` would never be attached.
1691
+ */
1692
+ 'change:open': CustomEvent<boolean>;
1693
+ }
1694
+ /** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
1695
+ export interface CTooltipElement extends Omit<HTMLElement, 'delay' | 'distance' | 'open' | 'position' | 'text' | 'trigger'> {
1696
+ /**
1697
+ * Delay before the tooltip shows on hover, in milliseconds. Keyboard focus
1698
+ * shows the tooltip immediately, regardless of this value. Defaults to
1699
+ * `400`.
1700
+ */
1701
+ delay?: number | string;
1702
+ /** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */
1703
+ distance?: number | string;
1704
+ /** Whether the tooltip is open. Two-way: emits `change:open`. */
1705
+ open?: boolean;
1706
+ /** Preferred placement of the tooltip relative to the trigger. */
1707
+ position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
1708
+ /**
1709
+ * The tooltip text. Overridden by the `content` slot when that is
1710
+ * populated.
1711
+ */
1712
+ text?: string;
1713
+ /**
1714
+ * Designated trigger: an element elsewhere in the document that the
1715
+ * tooltip describes — its document ID, or the element itself. The same
1716
+ * trigger concept as the `trigger` slot, supplied by reference: the
1717
+ * tooltip wires hover/focus, mirrors `aria-description` onto it and
1718
+ * anchors the bubble to it. When both routes are supplied, this prop wins
1719
+ * over the slot.
1720
+ */
1721
+ trigger?: HTMLElement | string;
1722
+ addEventListener<K extends keyof CTooltipElementEventMap>(type: K, listener: (this: CTooltipElement, ev: CTooltipElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
1723
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1724
+ removeEventListener<K extends keyof CTooltipElementEventMap>(type: K, listener: (this: CTooltipElement, ev: CTooltipElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1725
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1726
+ }
1727
+ /** Events dispatched by `<c-tree-select>`. */
1728
+ export interface CTreeSelectElementEventMap {
1729
+ /**
1730
+ * Fired when the selection changes — an item is committed or the selection
1731
+ * is cleared — carrying the new value: the item's value, the
1732
+ * `CTreeSelectSelection` with `return-object`, or `null` when cleared.
1733
+ */
1734
+ change: CustomEvent<CTreeSelectValue>;
1735
+ /**
1736
+ * Fired whenever the query changes — on every keystroke in the search
1737
+ * input, and with an empty string when the panel opens. Carries the query
1738
+ * string.
1739
+ */
1740
+ 'change:query': CustomEvent<string>;
1741
+ /**
1742
+ * Native bubbling input event dispatched alongside every value change so a
1743
+ * plain `v-model` stays in sync. Carries no detail.
1744
+ */
1745
+ input: CustomEvent<void>;
1746
+ /** Fired alongside `change` with the same detail — the `v-model` contract. */
1747
+ 'update:value': CustomEvent<CTreeSelectValue>;
1748
+ }
1749
+ /** 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. */
1750
+ export interface CTreeSelectElement extends Omit<HTMLElement, 'allowBranch' | 'clearable' | 'disabled' | 'errorMessage' | 'filter' | 'hideDetails' | 'hint' | 'hostId' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'levelLabels' | 'name' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'size' | 'texts' | 'valid' | 'value'> {
1751
+ /**
1752
+ * Let a branch be committed as the value: a pinned select-branch row heads
1753
+ * every level below the root, and matching branches are listed as search
1754
+ * results
1755
+ */
1756
+ allowBranch?: boolean;
1757
+ /** Make the selected value clearable */
1758
+ clearable?: boolean;
1759
+ /** Disable the field */
1760
+ disabled?: boolean;
1761
+ /** Error message shown in place of the hint while the field is invalid */
1762
+ errorMessage?: string;
1763
+ /**
1764
+ * Custom search predicate; receives the item, the query and the item's
1765
+ * ancestors. Functions have no attribute form — bind as a DOM property
1766
+ */
1767
+ filter?: CTreeSelectFilter;
1768
+ /** Hide the hint and error messages */
1769
+ hideDetails?: boolean;
1770
+ /** Hint text for the field */
1771
+ hint?: string;
1772
+ /** Id of the element */
1773
+ hostId?: string;
1774
+ /**
1775
+ * The tree to pick from. Arrays have no attribute form — bind as a DOM
1776
+ * property (`:items.prop` in Vue)
1777
+ */
1778
+ items?: CTreeSelectItem[];
1779
+ /** Items per page before the list scrolls */
1780
+ itemsPerPage?: number;
1781
+ /** Element label */
1782
+ label?: string;
1783
+ /** Label on top of the field */
1784
+ labelOnTop?: boolean;
1785
+ /**
1786
+ * Names of the levels, top level first, shown in the panel header; a
1787
+ * missing entry falls back to `texts.level(n)`. Arrays have no attribute
1788
+ * form — bind as a DOM property
1789
+ */
1790
+ levelLabels?: string[];
1791
+ /** Input field name */
1792
+ name?: string;
1793
+ /** Placeholder for the search input inside the panel */
1794
+ placeholder?: string;
1795
+ /** Set the field as required */
1796
+ required?: boolean;
1797
+ /**
1798
+ * Emit the committed item with its path as a `CTreeSelectSelection` instead
1799
+ * of its value
1800
+ */
1801
+ returnObject?: boolean;
1802
+ /** Shadow variant */
1803
+ shadow?: boolean;
1804
+ /** Field height: the 52px default (the shared control height) or the 36px `small` box */
1805
+ size?: 'default' | 'small';
1806
+ /**
1807
+ * UI text overrides (i18n), merged over the English defaults. Objects have
1808
+ * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
1809
+ */
1810
+ texts?: CTreeSelectTexts;
1811
+ /** Set the validity of the field */
1812
+ valid?: boolean;
1813
+ /**
1814
+ * Selected value: the committed item's value, or the `CTreeSelectSelection`
1815
+ * with `return-object`; `null` when nothing is selected
1816
+ */
1817
+ value?: CTreeSelectValue;
1818
+ addEventListener<K extends keyof CTreeSelectElementEventMap>(type: K, listener: (this: CTreeSelectElement, ev: CTreeSelectElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
1819
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1820
+ removeEventListener<K extends keyof CTreeSelectElementEventMap>(type: K, listener: (this: CTreeSelectElement, ev: CTreeSelectElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
1821
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1460
1822
  }
1823
+ /**
1824
+ * Props a consumer may set for every instance of a tag with
1825
+ * `applyDefaults()` (`@defaultable` in the manifest), typed as the
1826
+ * element's own members. An explicit per-instance attribute or property
1827
+ * always wins over an app default.
1828
+ */
1829
+ export interface AppDefaults {
1830
+ 'c-autocomplete'?: Partial<Pick<CAutocompleteElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
1831
+ 'c-data-table'?: Partial<Pick<CDataTableElement, 'texts'>>;
1832
+ 'c-select'?: Partial<Pick<CSelectElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
1833
+ 'c-text-field'?: Partial<Pick<CTextFieldElement, 'hideDetails' | 'labelOnTop' | 'shadow' | 'size'>>;
1834
+ 'c-tree-select'?: Partial<Pick<CTreeSelectElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
1835
+ }
1836
+ /** Runtime allow-list behind `applyDefaults()` validation — the same data as `AppDefaults`. */
1837
+ export declare const DEFAULTABLE_PROPS: {
1838
+ readonly 'c-autocomplete': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
1839
+ readonly 'c-data-table': readonly ["texts"];
1840
+ readonly 'c-select': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
1841
+ readonly 'c-text-field': readonly ["hideDetails", "labelOnTop", "shadow", "size"];
1842
+ readonly 'c-tree-select': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
1843
+ };
1844
+ /** Tags dispatching the v-model contract event `update:value` — the value controls (CONTEXT.md). */
1845
+ export declare const VALUE_TAGS: readonly ["c-accordion", "c-autocomplete", "c-button-group", "c-checkbox", "c-modal", "c-otp-input", "c-pagination", "c-radio-group", "c-select", "c-slider", "c-switch", "c-tabs", "c-text-field", "c-tree-select"];
1461
1846
  declare global {
1462
1847
  interface HTMLElementTagNameMap {
1463
1848
  'c-accordion': CAccordionElement;
@@ -1502,7 +1887,9 @@ declare global {
1502
1887
  'c-otp-input': COtpInputElement;
1503
1888
  'c-page': CPageElement;
1504
1889
  'c-pagination': CPaginationElement;
1890
+ 'c-popover': CPopoverElement;
1505
1891
  'c-progress-bar': CProgressBarElement;
1892
+ 'c-progress-circle': CProgressCircleElement;
1506
1893
  'c-radio': CRadioElement;
1507
1894
  'c-radio-group': CRadioGroupElement;
1508
1895
  'c-select': CSelectElement;
@@ -1528,6 +1915,8 @@ declare global {
1528
1915
  'c-toast': CToastElement;
1529
1916
  'c-toasts': CToastsElement;
1530
1917
  'c-toolbar': CToolbarElement;
1918
+ 'c-tooltip': CTooltipElement;
1919
+ 'c-tree-select': CTreeSelectElement;
1531
1920
  }
1532
1921
  }
1533
1922
  export {};