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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/csc-ui.js +8257 -7166
  2. package/dist/custom-elements.json +841 -44
  3. package/dist/docs/c-autocomplete/usage.md +25 -2
  4. package/dist/docs/c-button-group/usage.md +1 -1
  5. package/dist/docs/c-select/usage.md +25 -2
  6. package/dist/docs/c-tree-select/usage.md +156 -0
  7. package/dist/styles/css/tokens.css +2 -1
  8. package/dist/vscode.css-custom-data.json +97 -0
  9. package/dist/vscode.html-custom-data.json +94 -3
  10. package/dist/web-types.json +388 -15
  11. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +32 -8
  12. package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
  13. package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
  14. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +1 -1
  15. package/dist-types/components/c-data-table/CDataTable.vue.d.ts +5 -1
  16. package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +27 -12
  17. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
  18. package/dist-types/components/c-input/CInput.vue.d.ts +2 -2
  19. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
  20. package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
  21. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +1 -1
  22. package/dist-types/components/c-select/CSelect.vue.d.ts +32 -8
  23. package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
  24. package/dist-types/components/c-tag/CTag.vue.d.ts +1 -1
  25. package/dist-types/components/c-text-field/CTextField.vue.d.ts +11 -4
  26. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
  27. package/dist-types/index.d.ts +3 -0
  28. package/dist-types/shared/FormLabel.vue.d.ts +1 -1
  29. package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
  30. package/dist-types/shared/appDefaults.d.ts +75 -0
  31. package/dist-types/shared/defineElement.d.ts +1 -0
  32. package/dist-types/shared/lightDismiss.d.ts +35 -0
  33. package/dist-types/shared/modalStack.d.ts +4 -3
  34. package/dist-types/shared/pageLock.d.ts +26 -0
  35. package/dist-types/shared/popoverChain.d.ts +9 -6
  36. package/dist-types/shared/useAnchoredPanel.d.ts +89 -0
  37. package/dist-types/shared/useNarrowViewport.d.ts +19 -0
  38. package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
  39. package/dist-types/shared/visualViewport.d.ts +35 -0
  40. package/dist-types/tag-name-map.d.ts +137 -9
  41. package/package.json +13 -4
@@ -97,12 +97,12 @@ type __VLS_Slots = {} & {
97
97
  declare const __VLS_base: import("vue").DefineComponent<CCheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CCheckboxProps> & Readonly<{}>, {
98
98
  label: string;
99
99
  value: boolean | number | string;
100
+ required: boolean;
100
101
  disabled: boolean;
101
102
  errorMessage: string;
102
103
  hideDetails: boolean;
103
104
  hint: string;
104
105
  hostId: string;
105
- required: boolean;
106
106
  valid: boolean;
107
107
  checked: boolean;
108
108
  falseValue: boolean | number | string;
@@ -147,7 +147,11 @@ export interface CDataTableProps {
147
147
  stickyFooter?: boolean;
148
148
  /** Keep the header row visible while the table scrolls vertically. */
149
149
  stickyHeader?: boolean;
150
- /** UI text overrides (i18n), merged over the English defaults. */
150
+ /**
151
+ * UI text overrides (i18n), merged over the English defaults.
152
+ *
153
+ * @defaultable {}
154
+ */
151
155
  texts?: CDataTableTexts;
152
156
  }
153
157
  /** A single data row — the consumer's own plain domain object. */
@@ -1,6 +1,12 @@
1
1
  type CDropdownItemType = 'item' | 'option';
2
2
  type CDropdownParentType = 'autocomplete' | 'select';
3
3
  interface CDropdownProps {
4
+ /**
5
+ * Accessible label of the fullscreen panel's close button (narrow viewports)
6
+ *
7
+ * @freeform
8
+ */
9
+ closeLabel?: string;
4
10
  /** Whether items are <c-option> elements or plain objects */
5
11
  dropdownItemType?: CDropdownItemType;
6
12
  /**
@@ -15,6 +21,12 @@ interface CDropdownProps {
15
21
  items?: ArrayLike<DropdownItem>;
16
22
  /** Items per page before adding scroll */
17
23
  itemsPerPage?: number;
24
+ /**
25
+ * The parent field's label, shown as the fullscreen panel's heading (narrow viewports)
26
+ *
27
+ * @freeform
28
+ */
29
+ label?: string;
18
30
  /**
19
31
  * Multi-select mode: rows toggle instead of committing, each carries a
20
32
  * decorative checkbox indicator, and the listbox is `aria-multiselectable`
@@ -28,20 +40,14 @@ interface CDropdownProps {
28
40
  */
29
41
  selectAllRow?: CDropdownSelectAllRow | null;
30
42
  /**
31
- * Values of the currently selected items in `multiple` mode; drives each
32
- * row's `aria-selected` and its indicator
43
+ * Values of the currently selected items — the picked values in `multiple`
44
+ * mode, the single value otherwise; drives each row's `aria-selected`, its
45
+ * indicator and the single-mode selected-row check
33
46
  */
34
47
  selected?: (number | string)[];
35
48
  /** Parent type — drives autocomplete-only behaviour (highlight, messages) */
36
49
  type?: CDropdownParentType;
37
50
  }
38
- type DropdownItem = {
39
- disabled?: boolean | string;
40
- name: string;
41
- outerHTML?: string;
42
- selected?: boolean;
43
- value: number | string;
44
- };
45
51
  /**
46
52
  * The select-all row as the parent computes it (ADR-0046): the label, the
47
53
  * indicator's tri-state and the counts the live region speaks.
@@ -52,13 +58,20 @@ interface CDropdownSelectAllRow {
52
58
  state: 'all' | 'none' | 'some';
53
59
  total: number;
54
60
  }
55
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_20: {};
61
+ type DropdownItem = {
62
+ disabled?: boolean | string;
63
+ name: string;
64
+ outerHTML?: string;
65
+ selected?: boolean;
66
+ value: number | string;
67
+ };
68
+ declare var __VLS_1: {}, __VLS_10: {}, __VLS_27: {};
56
69
  type __VLS_Slots = {} & {
57
70
  default?: (props: typeof __VLS_1) => any;
58
71
  } & {
59
- 'input-top'?: (props: typeof __VLS_3) => any;
72
+ 'input-top'?: (props: typeof __VLS_10) => any;
60
73
  } & {
61
- 'input-bottom'?: (props: typeof __VLS_20) => any;
74
+ 'input-bottom'?: (props: typeof __VLS_27) => any;
62
75
  };
63
76
  declare const __VLS_base: import("vue").DefineComponent<CDropdownProps, {
64
77
  close: () => void;
@@ -68,12 +81,14 @@ declare const __VLS_base: import("vue").DefineComponent<CDropdownProps, {
68
81
  setStatusText: (text: string) => void;
69
82
  updateList: (reset?: boolean) => void;
70
83
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CDropdownProps> & Readonly<{}>, {
84
+ label: string;
71
85
  type: CDropdownParentType;
72
86
  multiple: boolean;
73
87
  hostId: string;
74
88
  items: ArrayLike<DropdownItem>;
75
89
  itemsPerPage: number;
76
90
  selected: (number | string)[];
91
+ closeLabel: string;
77
92
  dropdownItemType: CDropdownItemType;
78
93
  index: null | number;
79
94
  parent: HTMLElement | null;
@@ -73,8 +73,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CIconB
73
73
  text: boolean;
74
74
  outlined: boolean;
75
75
  disabled: boolean;
76
- loading: boolean;
77
76
  size: CIconButtonSize;
77
+ loading: boolean;
78
78
  danger: boolean;
79
79
  ghost: boolean;
80
80
  inverted: boolean;
@@ -81,14 +81,14 @@ type __VLS_Slots = {} & {
81
81
  };
82
82
  declare const __VLS_base: import("vue").DefineComponent<CInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CInputProps> & Readonly<{}>, {
83
83
  label: string;
84
+ required: boolean;
84
85
  disabled: boolean;
86
+ size: CFieldSize;
85
87
  errorMessage: string;
86
88
  hideDetails: boolean;
87
89
  hint: string;
88
90
  labelOnTop: boolean;
89
- required: boolean;
90
91
  shadow: boolean;
91
- size: CFieldSize;
92
92
  valid: boolean;
93
93
  active: boolean;
94
94
  filled: boolean;
@@ -69,10 +69,10 @@ declare const __VLS_base: import("vue").DefineComponent<COtpInputProps, {}, {},
69
69
  label: string;
70
70
  length: number;
71
71
  value: string;
72
+ required: boolean;
72
73
  errorMessage: string;
73
74
  hideDetails: boolean;
74
75
  hint: string;
75
- required: boolean;
76
76
  valid: boolean;
77
77
  elementId: string;
78
78
  hasAutofocus: boolean;
@@ -50,8 +50,8 @@ declare const _default: typeof __VLS_export;
50
50
  export default _default;
51
51
  declare const __VLS_export: import("vue").DefineComponent<CPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CPaginationProps> & Readonly<{}>, {
52
52
  value: CPaginationOptions;
53
- hideDetails: boolean;
54
53
  size: CPaginationSize;
54
+ hideDetails: boolean;
55
55
  hideRange: boolean;
56
56
  simple: boolean;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -52,11 +52,11 @@ type __VLS_Slots = {} & {
52
52
  declare const __VLS_base: import("vue").DefineComponent<CRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioGroupProps> & Readonly<{}>, {
53
53
  label: string;
54
54
  value: null | string;
55
+ required: boolean;
55
56
  disabled: boolean;
56
57
  errorMessage: string;
57
58
  hideDetails: boolean;
58
59
  hint: string;
59
- required: boolean;
60
60
  valid: boolean;
61
61
  inline: boolean;
62
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,7 +10,11 @@ export interface CSelectProps {
10
10
  * @freeform
11
11
  */
12
12
  errorMessage?: string;
13
- /** Hide the hint and error messages */
13
+ /**
14
+ * Hide the hint and error messages
15
+ *
16
+ * @defaultable false
17
+ */
14
18
  hideDetails?: boolean;
15
19
  /**
16
20
  * Hint text for the input
@@ -26,7 +30,11 @@ export interface CSelectProps {
26
30
  hostId?: string;
27
31
  /** Dropdown items (when not using <c-option> elements) */
28
32
  items?: CSelectItem[];
29
- /** Items per page before adding scroll */
33
+ /**
34
+ * Items per page before adding scroll
35
+ *
36
+ * @defaultable 6
37
+ */
30
38
  itemsPerPage?: number;
31
39
  /**
32
40
  * Element label
@@ -34,7 +42,11 @@ export interface CSelectProps {
34
42
  * @freeform
35
43
  */
36
44
  label?: string;
37
- /** Label on top of the input */
45
+ /**
46
+ * Label on top of the input
47
+ *
48
+ * @defaultable false
49
+ */
38
50
  labelOnTop?: boolean;
39
51
  /** Show loading state */
40
52
  loading?: boolean;
@@ -77,13 +89,23 @@ export interface CSelectProps {
77
89
  * unselects them. Ignored in single mode
78
90
  */
79
91
  selectAll?: boolean;
80
- /** Shadow variant */
92
+ /**
93
+ * Shadow variant
94
+ *
95
+ * @defaultable false
96
+ */
81
97
  shadow?: boolean;
82
- /** Field height: the 44px default or the 36px `small` box */
98
+ /**
99
+ * Field height: the 44px default or the 36px `small` box
100
+ *
101
+ * @defaultable 'default'
102
+ */
83
103
  size?: CFieldSize;
84
104
  /**
85
105
  * UI text overrides (i18n), merged over the English defaults. Objects have
86
106
  * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
107
+ *
108
+ * @defaultable {}
87
109
  */
88
110
  texts?: CSelectTexts;
89
111
  /** Set the validity of the input */
@@ -101,6 +123,8 @@ export interface CSelectProps {
101
123
  export interface CSelectTexts {
102
124
  /** Accessible label of the clear button. */
103
125
  clearSelection?: string;
126
+ /** Accessible label of the close button in the fullscreen panel (narrow viewports). */
127
+ closePanel?: string;
104
128
  /**
105
129
  * Text of the overflow tag when `max-tags` folds the selection; receives the
106
130
  * number of hidden tags.
@@ -137,8 +161,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelec
137
161
  value: CSelectValue;
138
162
  name: string;
139
163
  multiple: boolean;
140
- clearable: boolean;
164
+ required: boolean;
141
165
  disabled: boolean;
166
+ size: CFieldSize;
167
+ clearable: boolean;
142
168
  errorMessage: string;
143
169
  hideDetails: boolean;
144
170
  hint: string;
@@ -149,11 +175,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelec
149
175
  loading: boolean;
150
176
  maxTags: number;
151
177
  placeholder: string;
152
- required: boolean;
153
178
  returnObject: boolean;
154
179
  selectAll: boolean;
155
180
  shadow: boolean;
156
- size: CFieldSize;
157
181
  texts: CSelectTexts;
158
182
  valid: boolean;
159
183
  optionAsSelection: boolean;
@@ -62,10 +62,10 @@ type __VLS_Slots = {} & {
62
62
  declare const __VLS_base: import("vue").DefineComponent<CSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSwitchProps> & Readonly<{}>, {
63
63
  label: string;
64
64
  value: boolean | number | string;
65
+ required: boolean;
65
66
  disabled: boolean;
66
67
  hostId: string;
67
68
  loading: boolean;
68
- required: boolean;
69
69
  checked: boolean;
70
70
  falseValue: boolean | number | string;
71
71
  trueValue: boolean | number | string;
@@ -47,9 +47,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTagPr
47
47
  flat: boolean;
48
48
  size: CTagSize;
49
49
  active: boolean;
50
+ closeLabel: string;
50
51
  badge: null | number | string;
51
52
  closeable: boolean;
52
- closeLabel: string;
53
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
54
54
  default?: (props: {}) => any;
55
55
  }>;
@@ -40,6 +40,7 @@ export interface CTextFieldProps {
40
40
  * Hide the hint and error messages
41
41
  *
42
42
  * @seeded from csc-ui — verify
43
+ * @defaultable false
43
44
  */
44
45
  hideDetails?: boolean;
45
46
  /**
@@ -67,6 +68,7 @@ export interface CTextFieldProps {
67
68
  * Label on top of the input
68
69
  *
69
70
  * @seeded from csc-ui — verify
71
+ * @defaultable false
70
72
  */
71
73
  labelOnTop?: boolean;
72
74
  /**
@@ -117,9 +119,14 @@ export interface CTextFieldProps {
117
119
  * Shadow variant of the input
118
120
  *
119
121
  * @seeded from csc-ui — verify
122
+ * @defaultable false
120
123
  */
121
124
  shadow?: boolean;
122
- /** Field height: the 44px default or the 36px `small` box (single-line fields) */
125
+ /**
126
+ * Field height: the 44px default or the 36px `small` box (single-line fields)
127
+ *
128
+ * @defaultable 'default'
129
+ */
123
130
  size?: CFieldSize;
124
131
  /**
125
132
  * Step size on a numeric input
@@ -166,17 +173,17 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTextF
166
173
  value: string;
167
174
  type: CTextFieldType;
168
175
  name: string;
169
- autocorrect: boolean;
176
+ required: boolean;
170
177
  disabled: boolean;
178
+ size: CFieldSize;
179
+ autocorrect: boolean;
171
180
  errorMessage: string;
172
181
  hideDetails: boolean;
173
182
  hint: string;
174
183
  hostId: string;
175
184
  labelOnTop: boolean;
176
185
  placeholder: string;
177
- required: boolean;
178
186
  shadow: boolean;
179
- size: CFieldSize;
180
187
  valid: boolean;
181
188
  max: null | number;
182
189
  min: null | number;
@@ -0,0 +1,261 @@
1
+ import type { CFieldSize } from '../../types';
2
+ /**
3
+ * Custom search predicate for `c-tree-select`. Receives the item, the query
4
+ * and the item's ancestors root-first; return `true` to list the item. The
5
+ * default matches the query case-insensitively anywhere in the `name` or
6
+ * `code` of the item or of any of its ancestors.
7
+ */
8
+ export type CTreeSelectFilter = (item: CTreeSelectItem, query: string, path: CTreeSelectItem[]) => boolean;
9
+ /**
10
+ * One item of a `c-tree-select` tree. An item with a non-empty `children`
11
+ * array is a branch; any other item is a leaf. Values must be unique across
12
+ * the whole tree.
13
+ */
14
+ export interface CTreeSelectItem {
15
+ /** Child items; present and non-empty for a branch. */
16
+ children?: CTreeSelectItem[];
17
+ /**
18
+ * Short code shown before the name and matched by the search (a
19
+ * classification number, say).
20
+ */
21
+ code?: string;
22
+ /**
23
+ * Disable the item: a disabled branch cannot be entered, a disabled leaf
24
+ * cannot be committed.
25
+ */
26
+ disabled?: boolean;
27
+ /** The item's label. */
28
+ name: string;
29
+ /** The item's value, unique across the tree. */
30
+ value: number | string;
31
+ }
32
+ export interface CTreeSelectProps {
33
+ /**
34
+ * Let a branch be committed as the value: a pinned select-branch row heads
35
+ * every level below the root, and matching branches are listed as search
36
+ * results
37
+ */
38
+ allowBranch?: boolean;
39
+ /**
40
+ * Make the selected value clearable
41
+ */
42
+ clearable?: boolean;
43
+ /**
44
+ * Disable the field
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * Error message shown in place of the hint while the field is invalid
49
+ *
50
+ * @freeform
51
+ */
52
+ errorMessage?: string;
53
+ /**
54
+ * Custom search predicate; receives the item, the query and the item's
55
+ * ancestors. Functions have no attribute form — bind as a DOM property
56
+ */
57
+ filter?: CTreeSelectFilter;
58
+ /**
59
+ * Hide the hint and error messages
60
+ *
61
+ * @defaultable false
62
+ */
63
+ hideDetails?: boolean;
64
+ /**
65
+ * Hint text for the field
66
+ *
67
+ * @freeform
68
+ */
69
+ hint?: string;
70
+ /**
71
+ * Id of the element
72
+ *
73
+ * @freeform
74
+ */
75
+ hostId?: string;
76
+ /**
77
+ * The tree to pick from. Arrays have no attribute form — bind as a DOM
78
+ * property (`:items.prop` in Vue)
79
+ */
80
+ items?: CTreeSelectItem[];
81
+ /**
82
+ * Items per page before the list scrolls
83
+ *
84
+ * @defaultable 6
85
+ */
86
+ itemsPerPage?: number;
87
+ /**
88
+ * Element label
89
+ *
90
+ * @freeform
91
+ */
92
+ label?: string;
93
+ /**
94
+ * Label on top of the field
95
+ *
96
+ * @defaultable false
97
+ */
98
+ labelOnTop?: boolean;
99
+ /**
100
+ * Names of the levels, top level first, shown in the panel header; a
101
+ * missing entry falls back to `texts.level(n)`. Arrays have no attribute
102
+ * form — bind as a DOM property
103
+ */
104
+ levelLabels?: string[];
105
+ /**
106
+ * Input field name
107
+ *
108
+ * @freeform
109
+ */
110
+ name?: string;
111
+ /**
112
+ * Placeholder for the search input inside the panel
113
+ *
114
+ * @freeform
115
+ */
116
+ placeholder?: string;
117
+ /**
118
+ * Set the field as required
119
+ */
120
+ required?: boolean;
121
+ /**
122
+ * Emit the committed item with its path as a `CTreeSelectSelection` instead
123
+ * of its value
124
+ */
125
+ returnObject?: boolean;
126
+ /**
127
+ * Shadow variant
128
+ *
129
+ * @defaultable false
130
+ */
131
+ shadow?: boolean;
132
+ /**
133
+ * Field height: the 44px default or the 36px `small` box
134
+ *
135
+ * @defaultable 'default'
136
+ */
137
+ size?: CFieldSize;
138
+ /**
139
+ * UI text overrides (i18n), merged over the English defaults. Objects have
140
+ * no attribute form — bind as a DOM property (`:texts.prop` in Vue)
141
+ *
142
+ * @defaultable {}
143
+ */
144
+ texts?: CTreeSelectTexts;
145
+ /**
146
+ * Set the validity of the field
147
+ */
148
+ valid?: boolean;
149
+ /**
150
+ * Selected value: the committed item's value, or the `CTreeSelectSelection`
151
+ * with `return-object`; `null` when nothing is selected
152
+ */
153
+ value?: CTreeSelectValue;
154
+ }
155
+ /**
156
+ * The committed item as emitted with `return-object`: a fresh object — never
157
+ * the `items` entry itself — with its ancestors root-first and without
158
+ * `children`.
159
+ */
160
+ export interface CTreeSelectSelection {
161
+ /** The committed item's code, when it has one. */
162
+ code?: string;
163
+ /** The committed item's label. */
164
+ name: string;
165
+ /** The committed item's ancestors, root-first. */
166
+ path: Array<{
167
+ code?: string;
168
+ name: string;
169
+ value: number | string;
170
+ }>;
171
+ /** The committed item's value. */
172
+ value: number | string;
173
+ }
174
+ /**
175
+ * UI texts of `c-tree-select`, shallow-merged over the English defaults.
176
+ * Static labels are strings; interpolated ones are functions.
177
+ */
178
+ export interface CTreeSelectTexts {
179
+ /** Accessible label of the breadcrumb navigation in the panel. */
180
+ breadcrumb?: string;
181
+ /**
182
+ * Label of the "Browse instead" control shown in the header while a query
183
+ * is typed.
184
+ */
185
+ browse?: string;
186
+ /** Meta text on a branch row; receives its number of children. */
187
+ children?: (count: number) => string;
188
+ /**
189
+ * Header text in browse mode; receives the label of the level being
190
+ * listed.
191
+ */
192
+ choose?: (levelLabel: string) => string;
193
+ /** Accessible label of the clear button. */
194
+ clearSelection?: string;
195
+ /** Accessible label of the close button in the fullscreen panel (narrow viewports). */
196
+ closePanel?: string;
197
+ /** Accessible label of the search input inside the panel. */
198
+ filterOptions?: string;
199
+ /**
200
+ * Header text of a level whose rows are all leaves in an unevenly deep
201
+ * tree (an evenly deep tree shows the step counter instead).
202
+ */
203
+ final?: string;
204
+ /**
205
+ * Default label of level `n` (1 = the top level) when `level-labels` gives
206
+ * none.
207
+ */
208
+ level?: (n: number) => string;
209
+ /** Header text in search mode; receives the number of matches. */
210
+ matches?: (count: number) => string;
211
+ /** Text of the row shown when nothing is listed. */
212
+ noResults?: string;
213
+ /** Label of the root crumb. */
214
+ root?: string;
215
+ /** Placeholder of the search input when the `placeholder` prop is empty. */
216
+ searchPlaceholder?: string;
217
+ /**
218
+ * Label of the pinned select-branch row; receives the current branch's
219
+ * name.
220
+ */
221
+ select?: (name: string) => string;
222
+ /**
223
+ * Header step counter shown while the tree is evenly deep (every leaf at
224
+ * one level); receives the step and the total number of levels.
225
+ */
226
+ step?: (n: number, total: number) => string;
227
+ /** Accessible label of the chevron button that opens and closes the panel. */
228
+ toggleOptions?: string;
229
+ }
230
+ /**
231
+ * Selection value of `c-tree-select`: the committed item's value — or a
232
+ * {@link CTreeSelectSelection} with `return-object` — and `null` when
233
+ * cleared.
234
+ */
235
+ export type CTreeSelectValue = CTreeSelectSelection | null | number | string;
236
+ declare const _default: typeof __VLS_export;
237
+ export default _default;
238
+ declare const __VLS_export: import("vue").DefineComponent<CTreeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTreeSelectProps> & Readonly<{}>, {
239
+ label: string;
240
+ filter: CTreeSelectFilter;
241
+ value: CTreeSelectValue;
242
+ name: string;
243
+ required: boolean;
244
+ disabled: boolean;
245
+ size: CFieldSize;
246
+ clearable: boolean;
247
+ errorMessage: string;
248
+ hideDetails: boolean;
249
+ hint: string;
250
+ hostId: string;
251
+ items: CTreeSelectItem[];
252
+ itemsPerPage: number;
253
+ labelOnTop: boolean;
254
+ placeholder: string;
255
+ returnObject: boolean;
256
+ shadow: boolean;
257
+ texts: CTreeSelectTexts;
258
+ valid: boolean;
259
+ allowBranch: boolean;
260
+ levelLabels: string[];
261
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -20,9 +20,12 @@ export type { CTextFieldAutocapitalize, CTextFieldProps, CTextFieldType, } from
20
20
  export type { CToastProps } from './components/c-toast/CToast.vue';
21
21
  export type { CToastsHorizontal, CToastsProps, CToastsVertical, } from './components/c-toasts/CToasts.vue';
22
22
  export type { CTooltipProps } from './components/c-tooltip/CTooltip.vue';
23
+ export type { CTreeSelectFilter, CTreeSelectItem, CTreeSelectProps, CTreeSelectSelection, CTreeSelectTexts, CTreeSelectValue, } from './components/c-tree-select/CTreeSelect.vue';
23
24
  export type * from './tag-name-map';
24
25
  export { applyTheme, resetTheme, themeToCss } from './theme/applyTheme';
25
26
  export type { Family, ThemeSeeds } from './theme/applyTheme';
27
+ export { applyDefaults, DEFAULTABLE_PROPS, resetDefaults, } from './shared/appDefaults';
28
+ export type { AppDefaults, DefaultableTag } from './shared/appDefaults';
26
29
  export { chartAnatomy, chartAnatomyHex, chartSlots, chartSlotsHex, } from './theme/chart-data';
27
30
  export type { ChartAnatomy, ChartSlots } from './theme/chart-data';
28
31
  export { DEFAULT_SEEDS, FAMILIES } from './theme/ramp.js';
@@ -20,9 +20,9 @@ declare const __VLS_base: import("vue").DefineComponent<FormLabelProps, {}, {},
20
20
  label: string;
21
21
  part: string;
22
22
  required: boolean;
23
- tag: "div" | "label" | "span";
24
23
  htmlFor: string;
25
24
  labelId: string;
25
+ tag: "div" | "label" | "span";
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
28
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ /** Accessible label of the close button. */
3
+ closeLabel: string;
4
+ /** The field's label, shown as the panel heading. */
5
+ heading: string;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ close: () => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClose?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;