@cscfi/csc-ui 4.0.0-alpha.3 → 4.0.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/csc-ui.js +14305 -8019
- package/dist/custom-elements.json +8952 -4605
- package/dist/docs/c-alert/usage.md +24 -0
- package/dist/docs/c-autocomplete/usage.md +152 -0
- package/dist/docs/c-breadcrumb/usage.md +104 -0
- package/dist/docs/c-breadcrumb-item/usage.md +1 -0
- package/dist/docs/c-button-group/usage.md +14 -1
- package/dist/docs/c-checkbox/usage.md +53 -0
- package/dist/docs/c-date-picker/usage.md +224 -0
- package/dist/docs/c-main/usage.md +21 -1
- package/dist/docs/c-menu/usage.md +15 -0
- package/dist/docs/c-menu-item/usage.md +6 -0
- package/dist/docs/c-number-field/usage.md +112 -0
- package/dist/docs/c-option-value/usage.md +1 -0
- package/dist/docs/c-popover/usage.md +33 -0
- package/dist/docs/c-progress-bar/usage.md +23 -0
- package/dist/docs/c-progress-circle/usage.md +25 -0
- package/dist/docs/c-radio/usage.md +45 -0
- package/dist/docs/c-radio-group/usage.md +67 -0
- package/dist/docs/c-select/usage.md +127 -0
- package/dist/docs/c-side-navigation/usage.md +21 -0
- package/dist/docs/c-spinner/usage.md +21 -0
- package/dist/docs/c-switch/usage.md +36 -0
- package/dist/docs/c-tab-buttons/usage.md +7 -0
- package/dist/docs/c-table/usage.md +14 -0
- package/dist/docs/c-text-field/usage.md +106 -0
- package/dist/docs/c-time-picker/usage.md +170 -0
- package/dist/docs/c-toolbar/usage.md +17 -0
- package/dist/docs/c-tooltip/usage.md +30 -0
- package/dist/docs/c-tree-select/usage.md +156 -0
- package/dist/floating-ui.dom-DvzxEaDJ.js +1292 -0
- package/dist/styles/css/tailwind-theme.css +33 -0
- package/dist/styles/css/tokens.css +719 -197
- package/dist/vscode.css-custom-data.json +474 -20
- package/dist/vscode.html-custom-data.json +659 -57
- package/dist/web-types.json +2813 -697
- package/dist-types/components/c-alert/CAlert.vue.d.ts +18 -4
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +118 -21
- package/dist-types/components/c-breadcrumb/CBreadcrumb.vue.d.ts +35 -0
- package/dist-types/components/c-breadcrumb/fit.d.ts +29 -0
- package/dist-types/components/c-breadcrumb-item/CBreadcrumbItem.vue.d.ts +31 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +4 -4
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +3 -3
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +6 -2
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +282 -0
- package/dist-types/components/c-date-picker/dates.d.ts +119 -0
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +50 -7
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
- package/dist-types/components/c-input/CInput.vue.d.ts +6 -6
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +1 -1
- package/dist-types/components/c-main/CMain.vue.d.ts +10 -2
- package/dist-types/components/c-menu/CMenu.vue.d.ts +13 -3
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +30 -3
- package/dist-types/components/c-number-field/CNumberField.vue.d.ts +174 -0
- package/dist-types/components/c-number-field/numbers.d.ts +58 -0
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
- package/dist-types/components/c-popover/CPopover.vue.d.ts +43 -0
- package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +32 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +7 -11
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +10 -48
- package/dist-types/components/c-select/CSelect.vue.d.ts +115 -27
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +1 -1
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +1 -1
- package/dist-types/components/c-slider/CSlider.vue.d.ts +3 -3
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +1 -1
- package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +1 -1
- package/dist-types/components/c-table/CTable.vue.d.ts +11 -1
- package/dist-types/components/c-table/injectTableStyles.d.ts +1 -0
- package/dist-types/components/c-tag/CTag.vue.d.ts +7 -0
- package/dist-types/components/c-tags/CTags.vue.d.ts +1 -1
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +27 -10
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +210 -0
- package/dist-types/components/c-time-picker/times.d.ts +82 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +1 -1
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +49 -0
- package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
- package/dist-types/index.d.ts +19 -2
- package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
- package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
- package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
- package/dist-types/shared/TypedField.vue.d.ts +46 -0
- package/dist-types/shared/appDefaults.d.ts +75 -0
- package/dist-types/shared/defineElement.d.ts +1 -0
- package/dist-types/shared/inputMask.d.ts +106 -0
- package/dist-types/shared/lightDismiss.d.ts +35 -0
- package/dist-types/shared/modalStack.d.ts +4 -3
- package/dist-types/shared/optionLabel.d.ts +18 -0
- package/dist-types/shared/pageLock.d.ts +26 -0
- package/dist-types/shared/peekCap.d.ts +35 -0
- package/dist-types/shared/popoverChain.d.ts +65 -0
- package/dist-types/shared/positionArea.d.ts +13 -0
- package/dist-types/shared/reducedMotion.d.ts +10 -0
- package/dist-types/shared/selectAll.d.ts +29 -0
- package/dist-types/shared/splitMatches.d.ts +18 -0
- package/dist-types/shared/useAnchoredPanel.d.ts +102 -0
- package/dist-types/shared/useDesignatedTrigger.d.ts +41 -0
- package/dist-types/shared/useFallbackPosition.d.ts +63 -0
- package/dist-types/shared/useHostStates.d.ts +25 -0
- package/dist-types/shared/useKeyboardModality.d.ts +7 -0
- package/dist-types/shared/useNarrowViewport.d.ts +19 -0
- package/dist-types/shared/useScrollStrip.d.ts +39 -0
- package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
- package/dist-types/shared/useTypedField.d.ts +103 -0
- package/dist-types/shared/visualViewport.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +769 -54
- package/dist-types/theme/chart-data.d.ts +51 -0
- package/dist-types/theme/ramp.d.ts +38 -0
- package/dist-types/theme/themeMode.d.ts +51 -0
- package/dist-types/types.d.ts +7 -0
- package/package.json +21 -9
- package/dist/css-anchor-positioning-fn-RTxo68pt.js +0 -6447
- package/dist-types/shared/anchorPolyfill.d.ts +0 -24
|
@@ -5,27 +5,36 @@
|
|
|
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';
|
|
13
|
+
import type { CBreadcrumbTexts } from './components/c-breadcrumb/CBreadcrumb.vue';
|
|
11
14
|
import type { CButtonGroupValue } from './components/c-button-group/CButtonGroup.vue';
|
|
12
15
|
import type { CDataTableCellContent, CDataTableColumn, CDataTableExpandedContext, CDataTableRow, CDataTableSort, CDataTableTexts } from './components/c-data-table/CDataTable.vue';
|
|
16
|
+
import type { CDatePickerDisabledDate, CDatePickerText, CDatePickerTexts, CDatePickerValue } from './components/c-date-picker/CDatePicker.vue';
|
|
17
|
+
import type { CNumberFieldTexts } from './components/c-number-field/CNumberField.vue';
|
|
13
18
|
import type { CPaginationOptions } from './components/c-pagination/CPagination.vue';
|
|
19
|
+
import type { CSelectTexts, CSelectValue } from './components/c-select/CSelect.vue';
|
|
20
|
+
import type { CTimePickerText, CTimePickerTexts, CTimePickerValue } from './components/c-time-picker/CTimePicker.vue';
|
|
21
|
+
import type { CTreeSelectFilter, CTreeSelectItem, CTreeSelectTexts, CTreeSelectValue } from './components/c-tree-select/CTreeSelect.vue';
|
|
14
22
|
import type { CSelectItem, CToastMessage } from './types';
|
|
15
23
|
type AccordionPrimitive = number | string;
|
|
16
24
|
type AccordionValue = AccordionPrimitive | AccordionPrimitive[] | null;
|
|
25
|
+
interface CDropdownSelectAllRow {
|
|
26
|
+
label: string;
|
|
27
|
+
selected: number;
|
|
28
|
+
state: 'all' | 'none' | 'some';
|
|
29
|
+
total: number;
|
|
30
|
+
}
|
|
17
31
|
type DropdownItem = {
|
|
18
|
-
disabled?: boolean;
|
|
32
|
+
disabled?: boolean | string;
|
|
19
33
|
name: string;
|
|
20
34
|
outerHTML?: string;
|
|
21
35
|
selected?: boolean;
|
|
22
36
|
value: number | string;
|
|
23
37
|
};
|
|
24
|
-
interface RadioItem {
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
name: string;
|
|
27
|
-
value: number | string;
|
|
28
|
-
}
|
|
29
38
|
/** Events dispatched by `<c-accordion>`. */
|
|
30
39
|
export interface CAccordionElementEventMap {
|
|
31
40
|
/**
|
|
@@ -92,9 +101,32 @@ export interface CAccordionItemElement extends Omit<HTMLElement, 'collapsable' |
|
|
|
92
101
|
removeEventListener<K extends keyof CAccordionItemElementEventMap>(type: K, listener: (this: CAccordionItemElement, ev: CAccordionItemElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
93
102
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
94
103
|
}
|
|
95
|
-
|
|
104
|
+
/** Events dispatched by `<c-alert>`. */
|
|
105
|
+
export interface CAlertElementEventMap {
|
|
106
|
+
/**
|
|
107
|
+
* Fired when the dismiss button is pressed. The alert does not hide
|
|
108
|
+
* itself — the consumer owns removal.
|
|
109
|
+
*/
|
|
110
|
+
dismiss: CustomEvent<void>;
|
|
111
|
+
}
|
|
112
|
+
/** 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. */
|
|
113
|
+
export interface CAlertElement extends Omit<HTMLElement, 'dismissible' | 'heading' | 'type'> {
|
|
114
|
+
/**
|
|
115
|
+
* Show a dismiss button. The alert only emits `dismiss` — removing it from
|
|
116
|
+
* the page stays the consumer's job.
|
|
117
|
+
*/
|
|
118
|
+
dismissible?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Heading rendered above the message. The `heading` slot overrides it for
|
|
121
|
+
* rich content.
|
|
122
|
+
*/
|
|
123
|
+
heading?: string;
|
|
96
124
|
/** Type of the alert */
|
|
97
125
|
type?: 'default' | 'error' | 'info' | 'success' | 'warning';
|
|
126
|
+
addEventListener<K extends keyof CAlertElementEventMap>(type: K, listener: (this: CAlertElement, ev: CAlertElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
127
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
128
|
+
removeEventListener<K extends keyof CAlertElementEventMap>(type: K, listener: (this: CAlertElement, ev: CAlertElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
129
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
98
130
|
}
|
|
99
131
|
/** Events dispatched by `<c-autocomplete>`. */
|
|
100
132
|
export interface CAutocompleteElementEventMap {
|
|
@@ -115,9 +147,10 @@ export interface CAutocompleteElementEventMap {
|
|
|
115
147
|
* Fired when the selected value changes (an option is committed or the
|
|
116
148
|
* selection is cleared), carrying the new value — the option's value, or
|
|
117
149
|
* the whole `{ name, value }` item when `return-object` is set; `null`
|
|
118
|
-
* when cleared.
|
|
150
|
+
* when cleared. In `multiple` mode the whole array of picked values, in
|
|
151
|
+
* pick order (`[]` when cleared).
|
|
119
152
|
*/
|
|
120
|
-
changeValue: CustomEvent<
|
|
153
|
+
changeValue: CustomEvent<CAutocompleteValue>;
|
|
121
154
|
/**
|
|
122
155
|
* Native bubbling input event dispatched alongside every value change so a
|
|
123
156
|
* plain `v-model` stays in sync. Carries no detail.
|
|
@@ -127,10 +160,10 @@ export interface CAutocompleteElementEventMap {
|
|
|
127
160
|
* Fired alongside `changeValue` with the same detail — the `v-model`
|
|
128
161
|
* contract.
|
|
129
162
|
*/
|
|
130
|
-
'update:value': CustomEvent<
|
|
163
|
+
'update:value': CustomEvent<CAutocompleteValue>;
|
|
131
164
|
}
|
|
132
165
|
/** 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' | '
|
|
166
|
+
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
167
|
/** Make the selected value clearable */
|
|
135
168
|
clearable?: boolean;
|
|
136
169
|
/** Disable the input */
|
|
@@ -161,24 +194,52 @@ export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'd
|
|
|
161
194
|
labelOnTop?: boolean;
|
|
162
195
|
/** Show loading state */
|
|
163
196
|
loading?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* In `multiple` mode, show at most this many selected-value tags and fold
|
|
199
|
+
* the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
|
|
200
|
+
* instead; unset shows every tag
|
|
201
|
+
*/
|
|
202
|
+
maxTags?: number;
|
|
203
|
+
/**
|
|
204
|
+
* Allow selecting several options: rows toggle, the panel stays open and
|
|
205
|
+
* keeps its query, `value` becomes an array of the selected values (items
|
|
206
|
+
* with `return-object`) in the order they were picked, and the picks show
|
|
207
|
+
* as tags inside the field. Arrays have no attribute form — bind `value` as
|
|
208
|
+
* a DOM property
|
|
209
|
+
*/
|
|
210
|
+
multiple?: boolean;
|
|
164
211
|
/** Input field name */
|
|
165
212
|
name?: string;
|
|
166
|
-
/** Message shown when the query matches no options */
|
|
167
|
-
noResultsText?: string;
|
|
168
213
|
/** Placeholder for the in-panel search input */
|
|
169
214
|
placeholder?: string;
|
|
170
215
|
/** Set the autocomplete as required */
|
|
171
216
|
required?: boolean;
|
|
172
217
|
/** Return object instead of value */
|
|
173
218
|
returnObject?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* In `multiple` mode, pin a select-all row at the top of the list. Its
|
|
221
|
+
* checkbox shows whether none, some or all enabled options currently listed
|
|
222
|
+
* — the matches while a query is typed, the given `items` with `external` —
|
|
223
|
+
* are selected; activating it selects them all, or, when all are selected,
|
|
224
|
+
* unselects them. Ignored in single mode
|
|
225
|
+
*/
|
|
226
|
+
selectAll?: boolean;
|
|
174
227
|
/** Shadow variant */
|
|
175
228
|
shadow?: boolean;
|
|
176
|
-
/** Field height: the
|
|
229
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
177
230
|
size?: 'default' | 'small';
|
|
231
|
+
/**
|
|
232
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
233
|
+
* no attribute form — bind as a DOM property (`:texts.prop` in Vue)
|
|
234
|
+
*/
|
|
235
|
+
texts?: CAutocompleteTexts;
|
|
178
236
|
/** Set the validity of the input */
|
|
179
237
|
valid?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
|
|
238
|
+
/**
|
|
239
|
+
* Selected value: the option's value, or the whole item with
|
|
240
|
+
* `return-object`; an array of them in `multiple` mode
|
|
241
|
+
*/
|
|
242
|
+
value?: CAutocompleteValue;
|
|
182
243
|
/** Reset autocomplete state */
|
|
183
244
|
reset(): void;
|
|
184
245
|
addEventListener<K extends keyof CAutocompleteElementEventMap>(type: K, listener: (this: CAutocompleteElement, ev: CAutocompleteElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -188,6 +249,25 @@ export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'd
|
|
|
188
249
|
}
|
|
189
250
|
export interface CBadgeElement extends HTMLElement {
|
|
190
251
|
}
|
|
252
|
+
/** A navigation aid naming where the current page sits in a site's hierarchy: one line of crumbs from the top of the hierarchy down to the current page, the middle ones folding behind a "…" button when the line runs out of room. */
|
|
253
|
+
export interface CBreadcrumbElement extends Omit<HTMLElement, 'texts'> {
|
|
254
|
+
/**
|
|
255
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
256
|
+
* no attribute form — set it as a property
|
|
257
|
+
*/
|
|
258
|
+
texts?: CBreadcrumbTexts;
|
|
259
|
+
}
|
|
260
|
+
/** One crumb in a `c-breadcrumb`: a link to a level of the hierarchy, or, as the last crumb, the current page. */
|
|
261
|
+
export interface CBreadcrumbItemElement extends Omit<HTMLElement, 'href' | 'target'> {
|
|
262
|
+
/**
|
|
263
|
+
* URL of the page the crumb leads to. Ignored on the current crumb (the
|
|
264
|
+
* last one); a crumb without it names a level that has no page and renders
|
|
265
|
+
* as plain text
|
|
266
|
+
*/
|
|
267
|
+
href?: string;
|
|
268
|
+
/** Browsing context the link opens in; the same tab when unset */
|
|
269
|
+
target?: string;
|
|
270
|
+
}
|
|
191
271
|
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one primary (default appearance) button per view; secondary actions use the `outlined`, `ghost` or `text` appearances. */
|
|
192
272
|
export interface CButtonElement extends Omit<HTMLElement, 'active' | 'danger' | 'disabled' | 'fit' | 'ghost' | 'hostId' | 'href' | 'inverted' | 'loading' | 'noRadius' | 'noRipple' | 'outlined' | 'size' | 'target' | 'text' | 'type' | 'value'> {
|
|
193
273
|
/**
|
|
@@ -325,6 +405,7 @@ export interface CCheckboxElementEventMap {
|
|
|
325
405
|
*/
|
|
326
406
|
'update:value': CustomEvent<boolean | number | string>;
|
|
327
407
|
}
|
|
408
|
+
/** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
|
|
328
409
|
export interface CCheckboxElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'errorMessage' | 'falseValue' | 'hideDetails' | 'hint' | 'hostId' | 'hostName' | 'indeterminate' | 'label' | 'required' | 'trueValue' | 'valid' | 'value'> {
|
|
329
410
|
/** If `true`, the checkbox is selected. */
|
|
330
411
|
checked?: boolean;
|
|
@@ -456,6 +537,131 @@ export interface CDataTableElement extends Omit<HTMLElement, 'autohide' | 'colum
|
|
|
456
537
|
removeEventListener<K extends keyof CDataTableElementEventMap>(type: K, listener: (this: CDataTableElement, ev: CDataTableElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
457
538
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
458
539
|
}
|
|
540
|
+
/** Events dispatched by `<c-date-picker>`. */
|
|
541
|
+
export interface CDatePickerElementEventMap {
|
|
542
|
+
/**
|
|
543
|
+
* Fired when the value changes — a day or range is picked, typed text is
|
|
544
|
+
* committed, or the field is cleared — carrying the new value: an ISO
|
|
545
|
+
* date, `{ start, end }` under `range`, or `null`.
|
|
546
|
+
*/
|
|
547
|
+
change: CustomEvent<CDatePickerValue>;
|
|
548
|
+
/**
|
|
549
|
+
* Fired with the displayed month as `YYYY-MM` whenever it changes, and
|
|
550
|
+
* when the panel opens — the signal to load that month's `disabled-dates`.
|
|
551
|
+
*/
|
|
552
|
+
'change:month': CustomEvent<string>;
|
|
553
|
+
/**
|
|
554
|
+
* Fired on every commit of typed text (Enter or leaving the input) with the
|
|
555
|
+
* text as typed — `{ start, end }` under `range`. Read `badInput` to tell
|
|
556
|
+
* whether it named a date that can be picked.
|
|
557
|
+
*/
|
|
558
|
+
'change:text': CustomEvent<CDatePickerText>;
|
|
559
|
+
/**
|
|
560
|
+
* Native bubbling input event dispatched alongside every value change so a
|
|
561
|
+
* plain `v-model` stays in sync. Carries no detail.
|
|
562
|
+
*/
|
|
563
|
+
input: CustomEvent<void>;
|
|
564
|
+
/** Fired alongside `change` with the same detail — the `v-model` contract. */
|
|
565
|
+
'update:value': CustomEvent<CDatePickerValue>;
|
|
566
|
+
}
|
|
567
|
+
/** A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`. */
|
|
568
|
+
export interface CDatePickerElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'disabledDates' | 'errorMessage' | 'firstDayOfWeek' | 'format' | 'hideDetails' | 'hint' | 'hostId' | 'isDateDisabled' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'range' | 'required' | 'shadow' | 'showToday' | 'showWeekNumbers' | 'size' | 'texts' | 'type' | 'valid' | 'value'> {
|
|
569
|
+
/** Make the value clearable */
|
|
570
|
+
clearable?: boolean;
|
|
571
|
+
/** Disable the field */
|
|
572
|
+
disabled?: boolean;
|
|
573
|
+
/**
|
|
574
|
+
* Dates that cannot be picked: ISO dates and inclusive `{ start, end }`
|
|
575
|
+
* spans. Arrays have no attribute form — bind as a DOM property
|
|
576
|
+
*/
|
|
577
|
+
disabledDates?: CDatePickerDisabledDate[];
|
|
578
|
+
/** Error message shown in place of the hint while the field is invalid */
|
|
579
|
+
errorMessage?: string;
|
|
580
|
+
/**
|
|
581
|
+
* First day of the week in the calendar, numbered like `Date.getDay()`:
|
|
582
|
+
* 0 = Sunday, 1 = Monday … 6 = Saturday
|
|
583
|
+
*/
|
|
584
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
585
|
+
/**
|
|
586
|
+
* How dates are shown and read from typing: a pattern of the tokens `d`,
|
|
587
|
+
* `dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`
|
|
588
|
+
*/
|
|
589
|
+
format?: string;
|
|
590
|
+
/** Hide the hint and error messages */
|
|
591
|
+
hideDetails?: boolean;
|
|
592
|
+
/** Hint text for the field */
|
|
593
|
+
hint?: string;
|
|
594
|
+
/** Id of the element */
|
|
595
|
+
hostId?: string;
|
|
596
|
+
/**
|
|
597
|
+
* Predicate for dates that cannot be picked (weekends, say); receives an
|
|
598
|
+
* ISO date. Functions have no attribute form — bind as a DOM property
|
|
599
|
+
*/
|
|
600
|
+
isDateDisabled?: (iso: string) => boolean;
|
|
601
|
+
/** Element label */
|
|
602
|
+
label?: string;
|
|
603
|
+
/** Label on top of the field */
|
|
604
|
+
labelOnTop?: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* The latest date that can be picked or typed, as an ISO date; also bounds
|
|
607
|
+
* the calendar's navigation
|
|
608
|
+
*/
|
|
609
|
+
max?: string;
|
|
610
|
+
/**
|
|
611
|
+
* The earliest date that can be picked or typed, as an ISO date; also
|
|
612
|
+
* bounds the calendar's navigation
|
|
613
|
+
*/
|
|
614
|
+
min?: string;
|
|
615
|
+
/** Input field name */
|
|
616
|
+
name?: string;
|
|
617
|
+
/** Placeholder of the input; the `format` pattern when empty */
|
|
618
|
+
placeholder?: string;
|
|
619
|
+
/**
|
|
620
|
+
* Pick a range: the value becomes `{ start, end }` and the field holds two
|
|
621
|
+
* inputs
|
|
622
|
+
*/
|
|
623
|
+
range?: boolean;
|
|
624
|
+
/** Set the field as required */
|
|
625
|
+
required?: boolean;
|
|
626
|
+
/** Shadow variant */
|
|
627
|
+
shadow?: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Show a Today button under the calendar that picks today ("This month"
|
|
630
|
+
* under `type="month"`)
|
|
631
|
+
*/
|
|
632
|
+
showToday?: boolean;
|
|
633
|
+
/**
|
|
634
|
+
* Show ISO 8601 week numbers beside the calendar rows (meaningful with a
|
|
635
|
+
* Monday week start)
|
|
636
|
+
*/
|
|
637
|
+
showWeekNumbers?: boolean;
|
|
638
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
639
|
+
size?: 'default' | 'small';
|
|
640
|
+
/**
|
|
641
|
+
* UI text overrides (i18n), merged over the names `Intl` gives for the
|
|
642
|
+
* page's `lang` and the English defaults. Objects have no attribute form —
|
|
643
|
+
* bind as a DOM property
|
|
644
|
+
*/
|
|
645
|
+
texts?: CDatePickerTexts;
|
|
646
|
+
/**
|
|
647
|
+
* What the field picks: a calendar date, or a year and a month
|
|
648
|
+
* (`'YYYY-MM'`)
|
|
649
|
+
*/
|
|
650
|
+
type?: 'date' | 'month';
|
|
651
|
+
/** Set the validity of the field */
|
|
652
|
+
valid?: boolean;
|
|
653
|
+
/**
|
|
654
|
+
* The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under
|
|
655
|
+
* `type="month"`), or `{ start, end }` under `range`; `null` when empty
|
|
656
|
+
*/
|
|
657
|
+
value?: CDatePickerValue;
|
|
658
|
+
/** Whether the committed text names no date that can be picked — the value is then `null` (CONTEXT.md "Bad input"). */
|
|
659
|
+
readonly badInput: boolean;
|
|
660
|
+
addEventListener<K extends keyof CDatePickerElementEventMap>(type: K, listener: (this: CDatePickerElement, ev: CDatePickerElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
661
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
662
|
+
removeEventListener<K extends keyof CDatePickerElementEventMap>(type: K, listener: (this: CDatePickerElement, ev: CDatePickerElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
663
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
664
|
+
}
|
|
459
665
|
export interface CDividerElement extends Omit<HTMLElement, 'vertical'> {
|
|
460
666
|
/** Render a vertical separator instead of the default horizontal one. */
|
|
461
667
|
vertical?: boolean;
|
|
@@ -467,6 +673,11 @@ export interface CDropdownElementEventMap {
|
|
|
467
673
|
* state.
|
|
468
674
|
*/
|
|
469
675
|
dropdownStateChange: CustomEvent<boolean>;
|
|
676
|
+
/**
|
|
677
|
+
* Fired when the select-all row is activated; the parent (c-select) toggles
|
|
678
|
+
* every listed enabled option.
|
|
679
|
+
*/
|
|
680
|
+
selectall: CustomEvent<void>;
|
|
470
681
|
/**
|
|
471
682
|
* Fired when the user selects an option row, carrying the option's name
|
|
472
683
|
* and value for the parent (c-select) to commit.
|
|
@@ -476,19 +687,39 @@ export interface CDropdownElementEventMap {
|
|
|
476
687
|
value: number | string;
|
|
477
688
|
}>;
|
|
478
689
|
}
|
|
479
|
-
export interface CDropdownElement extends Omit<HTMLElement, 'dropdownItemType' | 'hostId' | 'index' | 'items' | 'itemsPerPage' | 'parent' | 'type'> {
|
|
690
|
+
export interface CDropdownElement extends Omit<HTMLElement, 'closeLabel' | 'dropdownItemType' | 'hostId' | 'index' | 'items' | 'itemsPerPage' | 'label' | 'multiple' | 'parent' | 'selectAllRow' | 'selected' | 'type'> {
|
|
691
|
+
/** Accessible label of the fullscreen panel's close button (narrow viewports) */
|
|
692
|
+
closeLabel?: string;
|
|
480
693
|
/** Whether items are <c-option> elements or plain objects */
|
|
481
694
|
dropdownItemType?: 'item' | 'option';
|
|
482
695
|
/** Id used to build option/announce element ids */
|
|
483
696
|
hostId?: string;
|
|
484
|
-
/** Current highlighted index */
|
|
697
|
+
/** Current highlighted index; `-1` (`SELECT_ALL_INDEX`) is the select-all row */
|
|
485
698
|
index?: null | number;
|
|
486
699
|
/** Dropdown options: a NodeList of <c-option> or an array of items */
|
|
487
700
|
items?: ArrayLike<DropdownItem>;
|
|
488
701
|
/** Items per page before adding scroll */
|
|
489
702
|
itemsPerPage?: number;
|
|
703
|
+
/** The parent field's label, shown as the fullscreen panel's heading (narrow viewports) */
|
|
704
|
+
label?: string;
|
|
705
|
+
/**
|
|
706
|
+
* Multi-select mode: rows toggle instead of committing, each carries a
|
|
707
|
+
* decorative checkbox indicator, and the listbox is `aria-multiselectable`
|
|
708
|
+
*/
|
|
709
|
+
multiple?: boolean;
|
|
490
710
|
/** Dropdown parent (the c-select / c-autocomplete host element) */
|
|
491
711
|
parent?: HTMLElement | null;
|
|
712
|
+
/**
|
|
713
|
+
* The select-all row in `multiple` mode, as the parent computes it (label,
|
|
714
|
+
* tri-state, counts for the live region); `null` renders no row
|
|
715
|
+
*/
|
|
716
|
+
selectAllRow?: CDropdownSelectAllRow | null;
|
|
717
|
+
/**
|
|
718
|
+
* Values of the currently selected items — the picked values in `multiple`
|
|
719
|
+
* mode, the single value otherwise; drives each row's `aria-selected`, its
|
|
720
|
+
* indicator and the single-mode selected-row check
|
|
721
|
+
*/
|
|
722
|
+
selected?: (number | string)[];
|
|
492
723
|
/** Parent type — drives autocomplete-only behaviour (highlight, messages) */
|
|
493
724
|
type?: 'autocomplete' | 'select';
|
|
494
725
|
/** Close dropdown */
|
|
@@ -561,7 +792,7 @@ export interface CInputElement extends Omit<HTMLElement, 'active' | 'disabled' |
|
|
|
561
792
|
required?: boolean;
|
|
562
793
|
/** Shadow variant of the input */
|
|
563
794
|
shadow?: boolean;
|
|
564
|
-
/** Field height: the
|
|
795
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
565
796
|
size?: 'default' | 'small';
|
|
566
797
|
/** Set the validíty of the input */
|
|
567
798
|
valid?: boolean;
|
|
@@ -662,7 +893,7 @@ export interface CLoginCardContentElement extends HTMLElement {
|
|
|
662
893
|
}
|
|
663
894
|
export interface CLoginCardTitleElement extends HTMLElement {
|
|
664
895
|
}
|
|
665
|
-
/**
|
|
896
|
+
/** 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. */
|
|
666
897
|
export interface CMainElement extends Omit<HTMLElement, 'disableLayout'> {
|
|
667
898
|
/** Disable the default dashboard layout */
|
|
668
899
|
disableLayout?: boolean;
|
|
@@ -684,27 +915,55 @@ export interface CMenuElementEventMap {
|
|
|
684
915
|
value: unknown;
|
|
685
916
|
}>;
|
|
686
917
|
}
|
|
687
|
-
|
|
918
|
+
/** 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. */
|
|
919
|
+
export interface CMenuElement extends Omit<HTMLElement, 'distance' | 'open' | 'position' | 'trigger'> {
|
|
688
920
|
/** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
|
|
689
921
|
distance?: number | string;
|
|
690
922
|
/** Whether the menu is open. Two-way: emits `change:open`. */
|
|
691
923
|
open?: boolean;
|
|
692
924
|
/** Preferred placement of the panel relative to the trigger. */
|
|
693
925
|
position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
926
|
+
/**
|
|
927
|
+
* Designated trigger: an element elsewhere in the document that opens the
|
|
928
|
+
* menu — its document ID, or the element itself. The same trigger concept
|
|
929
|
+
* as the `trigger` slot, supplied by reference: the menu wires
|
|
930
|
+
* click-to-toggle, arrow-key opening, ARIA and focus return onto it and
|
|
931
|
+
* anchors the panel to it. When both routes are supplied, this prop wins
|
|
932
|
+
* over the slot.
|
|
933
|
+
*/
|
|
934
|
+
trigger?: HTMLElement | string;
|
|
694
935
|
addEventListener<K extends keyof CMenuElementEventMap>(type: K, listener: (this: CMenuElement, ev: CMenuElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
695
936
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
696
937
|
removeEventListener<K extends keyof CMenuElementEventMap>(type: K, listener: (this: CMenuElement, ev: CMenuElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
697
938
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
698
939
|
}
|
|
699
940
|
/** A single command in a `c-menu`. */
|
|
700
|
-
export interface CMenuItemElement extends Omit<HTMLElement, 'danger' | 'disabled' | 'value'> {
|
|
941
|
+
export interface CMenuItemElement extends Omit<HTMLElement, 'active' | 'activeIcon' | 'danger' | 'disabled' | 'icon' | 'value'> {
|
|
942
|
+
/**
|
|
943
|
+
* Marks the item as the currently selected choice: renders the trailing
|
|
944
|
+
* indicator icon and stamps `role="menuitemradio"` + `aria-checked`. Leave
|
|
945
|
+
* unset for regular command items — only a true/false value marks the item
|
|
946
|
+
* as a selectable choice. The state is consumer-owned: the menu emits
|
|
947
|
+
* `select` as usual and never toggles this itself. Distinct from the
|
|
948
|
+
* keyboard highlight (the `data-active` attribute the controlling menu
|
|
949
|
+
* moves between rows).
|
|
950
|
+
*/
|
|
951
|
+
active?: boolean;
|
|
952
|
+
/**
|
|
953
|
+
* SVG path for the trailing indicator shown while `active`; defaults to a
|
|
954
|
+
* check mark.
|
|
955
|
+
*/
|
|
956
|
+
activeIcon?: string;
|
|
701
957
|
/** Marks the action as destructive (renders in the error colour). */
|
|
702
958
|
danger?: boolean;
|
|
703
959
|
/** Disables the item — it is skipped by keyboard nav and emits no select. */
|
|
704
960
|
disabled?: boolean;
|
|
961
|
+
/** SVG path for a leading icon rendered before the item's content. */
|
|
962
|
+
icon?: string;
|
|
705
963
|
/** Value reported in the menu's `select` event when this item is chosen. */
|
|
706
964
|
value?: string;
|
|
707
965
|
closeSubmenu(): void;
|
|
966
|
+
isSubmenuOpen(): boolean;
|
|
708
967
|
openSubmenu(): void;
|
|
709
968
|
}
|
|
710
969
|
/** Section label for a group of `c-menu-item`s. */
|
|
@@ -761,6 +1020,77 @@ export interface CModalElement extends Omit<HTMLElement, 'disableBackdropBlur' |
|
|
|
761
1020
|
}
|
|
762
1021
|
export interface CNavigationButtonElement extends HTMLElement {
|
|
763
1022
|
}
|
|
1023
|
+
/** Events dispatched by `<c-number-field>`. */
|
|
1024
|
+
export interface CNumberFieldElementEventMap {
|
|
1025
|
+
/**
|
|
1026
|
+
* Fired whenever typing or a step changes the number, carrying it — `null`
|
|
1027
|
+
* once the field holds no digit. Not fired when only the text changes (a group
|
|
1028
|
+
* separator, a trailing decimal separator) or when `value` is set.
|
|
1029
|
+
*/
|
|
1030
|
+
change: CustomEvent<null | number>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Native bubbling input event fired alongside every value change so a
|
|
1033
|
+
* plain Vue `v-model` works. No detail.
|
|
1034
|
+
*/
|
|
1035
|
+
input: CustomEvent<void>;
|
|
1036
|
+
/** v-model contract event, fired with `change`. */
|
|
1037
|
+
'update:value': CustomEvent<null | number>;
|
|
1038
|
+
}
|
|
1039
|
+
/** A field for a number — an integer, or one with decimals — shown with thousands separators as it is typed. */
|
|
1040
|
+
export interface CNumberFieldElement extends Omit<HTMLElement, 'decimals' | 'decimalSeparator' | 'disabled' | 'errorMessage' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'shadow' | 'size' | 'step' | 'texts' | 'valid' | 'value'> {
|
|
1041
|
+
/** The most fraction digits the field takes; `0` makes it an integer field */
|
|
1042
|
+
decimals?: number;
|
|
1043
|
+
/** The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`) */
|
|
1044
|
+
decimalSeparator?: string;
|
|
1045
|
+
/** Disable the field */
|
|
1046
|
+
disabled?: boolean;
|
|
1047
|
+
/** Error message shown in place of the hint while the field is invalid */
|
|
1048
|
+
errorMessage?: string;
|
|
1049
|
+
/** Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`) */
|
|
1050
|
+
fixedDecimals?: boolean;
|
|
1051
|
+
/** The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`) */
|
|
1052
|
+
groupSeparator?: string;
|
|
1053
|
+
/** Hide the hint and error messages */
|
|
1054
|
+
hideDetails?: boolean;
|
|
1055
|
+
/** Hint text for the field */
|
|
1056
|
+
hint?: string;
|
|
1057
|
+
/** Id of the input */
|
|
1058
|
+
hostId?: string;
|
|
1059
|
+
/** Label of the field */
|
|
1060
|
+
label?: string;
|
|
1061
|
+
/** Label on top of the field */
|
|
1062
|
+
labelOnTop?: boolean;
|
|
1063
|
+
/** The largest number in range; a larger one is kept and reported as out of range */
|
|
1064
|
+
max?: null | number;
|
|
1065
|
+
/** The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored */
|
|
1066
|
+
min?: null | number;
|
|
1067
|
+
/** Name of the input */
|
|
1068
|
+
name?: string;
|
|
1069
|
+
/** Placeholder of the input */
|
|
1070
|
+
placeholder?: string;
|
|
1071
|
+
/** Mark as readonly */
|
|
1072
|
+
readonly?: boolean;
|
|
1073
|
+
/** Set the field as required */
|
|
1074
|
+
required?: boolean;
|
|
1075
|
+
/** Shadow variant of the field */
|
|
1076
|
+
shadow?: boolean;
|
|
1077
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
1078
|
+
size?: 'default' | 'small';
|
|
1079
|
+
/** The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`) */
|
|
1080
|
+
step?: number;
|
|
1081
|
+
/** UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property */
|
|
1082
|
+
texts?: CNumberFieldTexts;
|
|
1083
|
+
/** Set the validity of the field */
|
|
1084
|
+
valid?: boolean;
|
|
1085
|
+
/** The number, or `null` when the field is empty. A string is read as the number it spells, and `''` as empty — what an attribute, or a plain `v-model` holding `null`, writes; the field always emits a number or `null` */
|
|
1086
|
+
value?: null | number | string;
|
|
1087
|
+
/** Whether the number is below `min` or above `max` (CONTEXT.md "Out of range") */
|
|
1088
|
+
readonly outOfRange: boolean;
|
|
1089
|
+
addEventListener<K extends keyof CNumberFieldElementEventMap>(type: K, listener: (this: CNumberFieldElement, ev: CNumberFieldElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
1090
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1091
|
+
removeEventListener<K extends keyof CNumberFieldElementEventMap>(type: K, listener: (this: CNumberFieldElement, ev: CNumberFieldElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
1092
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1093
|
+
}
|
|
764
1094
|
export interface COptionElement extends Omit<HTMLElement, 'disabled' | 'name' | 'selected' | 'value'> {
|
|
765
1095
|
/** Set option as disabled */
|
|
766
1096
|
disabled?: boolean;
|
|
@@ -771,6 +1101,7 @@ export interface COptionElement extends Omit<HTMLElement, 'disabled' | 'name' |
|
|
|
771
1101
|
/** Option value */
|
|
772
1102
|
value?: number | string;
|
|
773
1103
|
}
|
|
1104
|
+
/** 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)`). */
|
|
774
1105
|
export interface COptionValueElement extends HTMLElement {
|
|
775
1106
|
}
|
|
776
1107
|
/** Events dispatched by `<c-otp-input>`. */
|
|
@@ -863,6 +1194,45 @@ export interface CPaginationElement extends Omit<HTMLElement, 'hideDetails' | 'h
|
|
|
863
1194
|
removeEventListener<K extends keyof CPaginationElementEventMap>(type: K, listener: (this: CPaginationElement, ev: CPaginationElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
864
1195
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
865
1196
|
}
|
|
1197
|
+
/** Events dispatched by `<c-popover>`. */
|
|
1198
|
+
export interface CPopoverElementEventMap {
|
|
1199
|
+
/**
|
|
1200
|
+
* Fired whenever the popover opens or closes, carrying the new open state.
|
|
1201
|
+
* Named `change:open`, not `update:open`: Vue's runtime silently drops
|
|
1202
|
+
* `onUpdate:*` listeners on custom elements (`isModelListener`), so a
|
|
1203
|
+
* template `@update:open` would never be attached.
|
|
1204
|
+
*/
|
|
1205
|
+
'change:open': CustomEvent<boolean>;
|
|
1206
|
+
}
|
|
1207
|
+
/** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
|
|
1208
|
+
export interface CPopoverElement extends Omit<HTMLElement, 'distance' | 'heading' | 'open' | 'position' | 'trigger'> {
|
|
1209
|
+
/** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
|
|
1210
|
+
distance?: number | string;
|
|
1211
|
+
/**
|
|
1212
|
+
* Heading rendered at the top of the panel, doubling as its accessible
|
|
1213
|
+
* name. Without it, set `aria-label` on the host. Named `heading`, not
|
|
1214
|
+
* `title`: a `title` attribute on the host would trigger the browser's
|
|
1215
|
+
* native tooltip and collides with `HTMLElement.title`.
|
|
1216
|
+
*/
|
|
1217
|
+
heading?: string;
|
|
1218
|
+
/** Whether the popover is open. Two-way: emits `change:open`. */
|
|
1219
|
+
open?: boolean;
|
|
1220
|
+
/** Preferred placement of the panel relative to the trigger. */
|
|
1221
|
+
position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
1222
|
+
/**
|
|
1223
|
+
* Designated trigger: an element elsewhere in the document that opens the
|
|
1224
|
+
* popover — its document ID, or the element itself. The same trigger
|
|
1225
|
+
* concept as the `trigger` slot, supplied by reference: the popover wires
|
|
1226
|
+
* click-to-toggle, ARIA and focus return onto it and anchors the panel to
|
|
1227
|
+
* it. When both routes are supplied, this prop wins over the slot.
|
|
1228
|
+
*/
|
|
1229
|
+
trigger?: HTMLElement | string;
|
|
1230
|
+
addEventListener<K extends keyof CPopoverElementEventMap>(type: K, listener: (this: CPopoverElement, ev: CPopoverElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
1231
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1232
|
+
removeEventListener<K extends keyof CPopoverElementEventMap>(type: K, listener: (this: CPopoverElement, ev: CPopoverElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
1233
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1234
|
+
}
|
|
1235
|
+
/** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
|
|
866
1236
|
export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | 'indeterminate' | 'label' | 'singleLine' | 'value'> {
|
|
867
1237
|
/** Hide the percentage display */
|
|
868
1238
|
hideDetails?: boolean;
|
|
@@ -875,33 +1245,56 @@ export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | '
|
|
|
875
1245
|
/** Progress bar value in percentage (0 to 100) */
|
|
876
1246
|
value?: number;
|
|
877
1247
|
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1248
|
+
/** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
|
|
1249
|
+
export interface CProgressCircleElement extends Omit<HTMLElement, 'size' | 'value' | 'width'> {
|
|
1250
|
+
/** Diameter of the circle in pixels */
|
|
1251
|
+
size?: number;
|
|
1252
|
+
/** Progress value in percentage (0 to 100) */
|
|
1253
|
+
value?: number;
|
|
1254
|
+
/**
|
|
1255
|
+
* Stroke width of the track in pixels; the value arc draws at half this
|
|
1256
|
+
* width, inset within the track
|
|
1257
|
+
*/
|
|
1258
|
+
width?: number;
|
|
1259
|
+
}
|
|
1260
|
+
/** Events dispatched by `<c-radio>`. */
|
|
1261
|
+
export interface CRadioElementEventMap {
|
|
1262
|
+
/**
|
|
1263
|
+
* Fired when the radio is selected by the user, carrying its `value`.
|
|
1264
|
+
* Bubbles composed so the parent `<c-radio-group>` — whose shadow root a
|
|
1265
|
+
* light-DOM event never enters — catches it on its host; a consumer
|
|
1266
|
+
* listening on the group hears it too, with the radio as `target`.
|
|
1267
|
+
*/
|
|
1268
|
+
change: CustomEvent<string>;
|
|
1269
|
+
}
|
|
1270
|
+
/** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
|
|
1271
|
+
export interface CRadioElement extends Omit<HTMLElement, 'disabled' | 'value'> {
|
|
881
1272
|
/** Disable the radio button */
|
|
882
1273
|
disabled?: boolean;
|
|
883
1274
|
/** Radio button value */
|
|
884
1275
|
value?: string;
|
|
1276
|
+
addEventListener<K extends keyof CRadioElementEventMap>(type: K, listener: (this: CRadioElement, ev: CRadioElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
1277
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1278
|
+
removeEventListener<K extends keyof CRadioElementEventMap>(type: K, listener: (this: CRadioElement, ev: CRadioElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
1279
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
885
1280
|
}
|
|
886
1281
|
/** Events dispatched by `<c-radio-group>`. */
|
|
887
1282
|
export interface CRadioGroupElementEventMap {
|
|
888
|
-
/**
|
|
889
|
-
|
|
890
|
-
* value — or the whole item object when `return-object` is set.
|
|
891
|
-
*/
|
|
892
|
-
changeValue: CustomEvent<number | RadioItem | string>;
|
|
1283
|
+
/** Fired when a radio is selected, carrying the selected radio's value. */
|
|
1284
|
+
changeValue: CustomEvent<string>;
|
|
893
1285
|
/**
|
|
894
1286
|
* Native bubbling input event fired on selection so a plain Vue `v-model`
|
|
895
1287
|
* works without the `v-control` directive. No detail.
|
|
896
1288
|
*/
|
|
897
1289
|
input: CustomEvent<void>;
|
|
898
1290
|
/**
|
|
899
|
-
* v-model contract event fired on selection, carrying the selected
|
|
900
|
-
* value
|
|
1291
|
+
* v-model contract event fired on selection, carrying the selected radio's
|
|
1292
|
+
* value.
|
|
901
1293
|
*/
|
|
902
|
-
'update:value': CustomEvent<
|
|
1294
|
+
'update:value': CustomEvent<string>;
|
|
903
1295
|
}
|
|
904
|
-
|
|
1296
|
+
/** 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. */
|
|
1297
|
+
export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'inline' | 'label' | 'required' | 'valid' | 'value'> {
|
|
905
1298
|
/** Disable the radio group */
|
|
906
1299
|
disabled?: boolean;
|
|
907
1300
|
/** Error message shown in place of the hint while the group is invalid */
|
|
@@ -910,22 +1303,19 @@ export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'erro
|
|
|
910
1303
|
hideDetails?: boolean;
|
|
911
1304
|
/** Hint text for the input */
|
|
912
1305
|
hint?: string;
|
|
913
|
-
/** Id of the element */
|
|
914
|
-
hostId?: string;
|
|
915
1306
|
/** Display radio buttons inline */
|
|
916
1307
|
inline?: boolean;
|
|
917
|
-
/** Radio group items */
|
|
918
|
-
items?: RadioItem[];
|
|
919
1308
|
/** Label of the radio group */
|
|
920
1309
|
label?: string;
|
|
921
1310
|
/** Set as required */
|
|
922
1311
|
required?: boolean;
|
|
923
|
-
/** Return the whole item object */
|
|
924
|
-
returnObject?: boolean;
|
|
925
1312
|
/** Set the validity of the input */
|
|
926
1313
|
valid?: boolean;
|
|
927
|
-
/**
|
|
928
|
-
|
|
1314
|
+
/**
|
|
1315
|
+
* Value of the radio group; matched against each radio's `value` by strict
|
|
1316
|
+
* string equality
|
|
1317
|
+
*/
|
|
1318
|
+
value?: null | string;
|
|
929
1319
|
addEventListener<K extends keyof CRadioGroupElementEventMap>(type: K, listener: (this: CRadioGroupElement, ev: CRadioGroupElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
930
1320
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
931
1321
|
removeEventListener<K extends keyof CRadioGroupElementEventMap>(type: K, listener: (this: CRadioGroupElement, ev: CRadioGroupElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
@@ -937,8 +1327,10 @@ export interface CSelectElementEventMap {
|
|
|
937
1327
|
* Fired when the selection changes (an option is picked or the value is
|
|
938
1328
|
* cleared), carrying the new value — the option's value, or the whole
|
|
939
1329
|
* `{ name, value }` item when `return-object` is set; `null` when cleared.
|
|
1330
|
+
* In `multiple` mode the whole array of picked values, in pick order
|
|
1331
|
+
* (`[]` when cleared).
|
|
940
1332
|
*/
|
|
941
|
-
changeValue: CustomEvent<
|
|
1333
|
+
changeValue: CustomEvent<CSelectValue>;
|
|
942
1334
|
/**
|
|
943
1335
|
* Native bubbling input event dispatched alongside every value change so a
|
|
944
1336
|
* plain `v-model` stays in sync. Carries no detail.
|
|
@@ -948,9 +1340,10 @@ export interface CSelectElementEventMap {
|
|
|
948
1340
|
* Fired alongside `changeValue` with the same detail — the `v-model`
|
|
949
1341
|
* contract.
|
|
950
1342
|
*/
|
|
951
|
-
'update:value': CustomEvent<
|
|
1343
|
+
'update:value': CustomEvent<CSelectValue>;
|
|
952
1344
|
}
|
|
953
|
-
|
|
1345
|
+
/** 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`. */
|
|
1346
|
+
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'> {
|
|
954
1347
|
/** Make the selected value clearable */
|
|
955
1348
|
clearable?: boolean;
|
|
956
1349
|
/** Disable the input */
|
|
@@ -973,6 +1366,20 @@ export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disable
|
|
|
973
1366
|
labelOnTop?: boolean;
|
|
974
1367
|
/** Show loading state */
|
|
975
1368
|
loading?: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* In `multiple` mode, show at most this many selected-value tags and fold
|
|
1371
|
+
* the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
|
|
1372
|
+
* instead; unset shows every tag
|
|
1373
|
+
*/
|
|
1374
|
+
maxTags?: number;
|
|
1375
|
+
/**
|
|
1376
|
+
* Allow selecting several options: rows toggle and the list stays open,
|
|
1377
|
+
* `value` becomes an array of the selected values (items with
|
|
1378
|
+
* `return-object`) in the order they were picked, and the picks show as
|
|
1379
|
+
* tags inside the field. `option-as-selection` is ignored in this mode.
|
|
1380
|
+
* Arrays have no attribute form — bind `value` as a DOM property
|
|
1381
|
+
*/
|
|
1382
|
+
multiple?: boolean;
|
|
976
1383
|
/** Input field name */
|
|
977
1384
|
name?: string;
|
|
978
1385
|
/** Display the option as selection (only with <c-option> elements) */
|
|
@@ -983,14 +1390,29 @@ export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disable
|
|
|
983
1390
|
required?: boolean;
|
|
984
1391
|
/** Return object instead of value */
|
|
985
1392
|
returnObject?: boolean;
|
|
1393
|
+
/**
|
|
1394
|
+
* In `multiple` mode, pin a select-all row at the top of the list. Its
|
|
1395
|
+
* checkbox shows whether none, some or all enabled options are selected;
|
|
1396
|
+
* activating it selects every enabled option — or, when all are selected,
|
|
1397
|
+
* unselects them. Ignored in single mode
|
|
1398
|
+
*/
|
|
1399
|
+
selectAll?: boolean;
|
|
986
1400
|
/** Shadow variant */
|
|
987
1401
|
shadow?: boolean;
|
|
988
|
-
/** Field height: the
|
|
1402
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
989
1403
|
size?: 'default' | 'small';
|
|
1404
|
+
/**
|
|
1405
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
1406
|
+
* no attribute form — bind as a DOM property (`:texts.prop` in Vue)
|
|
1407
|
+
*/
|
|
1408
|
+
texts?: CSelectTexts;
|
|
990
1409
|
/** Set the validity of the input */
|
|
991
1410
|
valid?: boolean;
|
|
992
|
-
/**
|
|
993
|
-
|
|
1411
|
+
/**
|
|
1412
|
+
* Selected value: the option's value, or the whole item with
|
|
1413
|
+
* `return-object`; an array of them in `multiple` mode
|
|
1414
|
+
*/
|
|
1415
|
+
value?: CSelectValue;
|
|
994
1416
|
/** Reset select state */
|
|
995
1417
|
reset(): void;
|
|
996
1418
|
addEventListener<K extends keyof CSelectElementEventMap>(type: K, listener: (this: CSelectElement, ev: CSelectElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1010,6 +1432,7 @@ export interface CSideNavigationElementEventMap {
|
|
|
1010
1432
|
*/
|
|
1011
1433
|
'change:menu-visible': CustomEvent<boolean>;
|
|
1012
1434
|
}
|
|
1435
|
+
/** 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. */
|
|
1013
1436
|
export interface CSideNavigationElement extends Omit<HTMLElement, 'menuVisible' | 'mobile' | 'styles'> {
|
|
1014
1437
|
/** Mobile version menu visibility */
|
|
1015
1438
|
menuVisible?: boolean;
|
|
@@ -1102,6 +1525,7 @@ export interface CSliderElement extends Omit<HTMLElement, 'ariaLabelInternal' |
|
|
|
1102
1525
|
removeEventListener<K extends keyof CSliderElementEventMap>(type: K, listener: (this: CSliderElement, ev: CSliderElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
1103
1526
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1104
1527
|
}
|
|
1528
|
+
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
1105
1529
|
export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'width'> {
|
|
1106
1530
|
/** Color of the spinner */
|
|
1107
1531
|
color?: string;
|
|
@@ -1160,6 +1584,7 @@ export interface CSwitchElementEventMap {
|
|
|
1160
1584
|
*/
|
|
1161
1585
|
'update:value': CustomEvent<boolean | number | string>;
|
|
1162
1586
|
}
|
|
1587
|
+
/** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
|
|
1163
1588
|
export interface CSwitchElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'falseValue' | 'hostId' | 'label' | 'loading' | 'required' | 'trueValue' | 'value'> {
|
|
1164
1589
|
/** If `true`, the checkbox is selected. */
|
|
1165
1590
|
checked?: boolean;
|
|
@@ -1277,6 +1702,7 @@ export interface CTabItemsElement extends Omit<HTMLElement, 'disableAnimation' |
|
|
|
1277
1702
|
/** Currently active tab */
|
|
1278
1703
|
value?: number | string;
|
|
1279
1704
|
}
|
|
1705
|
+
/** 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. */
|
|
1280
1706
|
export interface CTableElement extends Omit<HTMLElement, 'mobileBreakpoint' | 'responsive'> {
|
|
1281
1707
|
/** Mobile breakpoint in pixels */
|
|
1282
1708
|
mobileBreakpoint?: number;
|
|
@@ -1324,13 +1750,15 @@ export interface CTagElementEventMap {
|
|
|
1324
1750
|
/** Fired when the tag's close button is activated. */
|
|
1325
1751
|
close: CustomEvent<void>;
|
|
1326
1752
|
}
|
|
1327
|
-
export interface CTagElement extends Omit<HTMLElement, 'active' | 'badge' | 'closeable' | 'flat' | 'size'> {
|
|
1753
|
+
export interface CTagElement extends Omit<HTMLElement, 'active' | 'badge' | 'closeable' | 'closeLabel' | 'flat' | 'size'> {
|
|
1328
1754
|
/** Mark tag as active */
|
|
1329
1755
|
active?: boolean;
|
|
1330
1756
|
/** Display an optional badge at the start of the tag */
|
|
1331
1757
|
badge?: null | number | string;
|
|
1332
1758
|
/** Mark tag as closeable */
|
|
1333
1759
|
closeable?: boolean;
|
|
1760
|
+
/** Accessible name of the close button rendered when `closeable` */
|
|
1761
|
+
closeLabel?: string;
|
|
1334
1762
|
/** Remove the hover effect */
|
|
1335
1763
|
flat?: boolean;
|
|
1336
1764
|
/** Size of the tag */
|
|
@@ -1373,7 +1801,8 @@ export interface CTextFieldElementEventMap {
|
|
|
1373
1801
|
*/
|
|
1374
1802
|
'update:value': CustomEvent<string>;
|
|
1375
1803
|
}
|
|
1376
|
-
|
|
1804
|
+
/** A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message. */
|
|
1805
|
+
export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'autocorrect' | 'automaticCapitalize' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'mask' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'size' | 'step' | 'trimWhitespace' | 'type' | 'valid' | 'value'> {
|
|
1377
1806
|
/** HTML input autocomplete */
|
|
1378
1807
|
autocomplete?: string;
|
|
1379
1808
|
/**
|
|
@@ -1399,6 +1828,8 @@ export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'a
|
|
|
1399
1828
|
label?: string;
|
|
1400
1829
|
/** Label on top of the input */
|
|
1401
1830
|
labelOnTop?: boolean;
|
|
1831
|
+
/** Input mask the typed text follows: `#` a digit, `A` a letter, `*` a letter or a digit, `\` escapes the next character, `[…]` wraps a trailing optional section, anything else is a literal. Applies to a single-line `text`, `tel` or `search` field */
|
|
1832
|
+
mask?: string;
|
|
1402
1833
|
/** Maximum value on a numeric input */
|
|
1403
1834
|
max?: null | number;
|
|
1404
1835
|
/** Minimum value on a numeric input */
|
|
@@ -1415,7 +1846,7 @@ export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'a
|
|
|
1415
1846
|
rows?: number;
|
|
1416
1847
|
/** Shadow variant of the input */
|
|
1417
1848
|
shadow?: boolean;
|
|
1418
|
-
/** Field height: the
|
|
1849
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields) */
|
|
1419
1850
|
size?: 'default' | 'small';
|
|
1420
1851
|
/** Step size on a numeric input */
|
|
1421
1852
|
step?: null | number;
|
|
@@ -1427,11 +1858,110 @@ export interface CTextFieldElement extends Omit<HTMLElement, 'autocomplete' | 'a
|
|
|
1427
1858
|
valid?: boolean;
|
|
1428
1859
|
/** Value of the input */
|
|
1429
1860
|
value?: string;
|
|
1861
|
+
/** Whether a masked field has every mask token filled (always `true` without a mask) */
|
|
1862
|
+
readonly maskComplete: boolean;
|
|
1863
|
+
/** The text without the mask's literals: only the characters filling its tokens (the text as is without a mask) */
|
|
1864
|
+
readonly unmaskedValue: string;
|
|
1430
1865
|
addEventListener<K extends keyof CTextFieldElementEventMap>(type: K, listener: (this: CTextFieldElement, ev: CTextFieldElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
1431
1866
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1432
1867
|
removeEventListener<K extends keyof CTextFieldElementEventMap>(type: K, listener: (this: CTextFieldElement, ev: CTextFieldElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
1433
1868
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1434
1869
|
}
|
|
1870
|
+
/** Events dispatched by `<c-time-picker>`. */
|
|
1871
|
+
export interface CTimePickerElementEventMap {
|
|
1872
|
+
/**
|
|
1873
|
+
* Fired when the value changes — a row is picked or moved to in a column,
|
|
1874
|
+
* typed text is committed, or the field is cleared — carrying the new
|
|
1875
|
+
* value: an ISO `HH:mm` time, `{ start, end }` under `range`, or `null`.
|
|
1876
|
+
*/
|
|
1877
|
+
change: CustomEvent<CTimePickerValue>;
|
|
1878
|
+
/**
|
|
1879
|
+
* Fired on every commit of typed text (Enter or leaving the input) with the
|
|
1880
|
+
* text as typed — `{ start, end }` under `range`. Read `badInput` to tell
|
|
1881
|
+
* whether it named a time that can be picked.
|
|
1882
|
+
*/
|
|
1883
|
+
'change:text': CustomEvent<CTimePickerText>;
|
|
1884
|
+
/**
|
|
1885
|
+
* Native bubbling input event dispatched alongside every value change so a
|
|
1886
|
+
* plain `v-model` stays in sync. Carries no detail.
|
|
1887
|
+
*/
|
|
1888
|
+
input: CustomEvent<void>;
|
|
1889
|
+
/** Fired alongside `change` with the same detail — the `v-model` contract. */
|
|
1890
|
+
'update:value': CustomEvent<CTimePickerValue>;
|
|
1891
|
+
}
|
|
1892
|
+
/** A time field that takes a typed time, or opens hour and minute columns for picking one, or a start and end time under `range`. */
|
|
1893
|
+
export interface CTimePickerElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'format' | 'hideDetails' | 'hint' | 'hostId' | 'label' | 'labelOnTop' | 'max' | 'min' | 'minuteStep' | 'name' | 'placeholder' | 'range' | 'required' | 'shadow' | 'showNow' | 'size' | 'texts' | 'valid' | 'value'> {
|
|
1894
|
+
/** Make the value clearable */
|
|
1895
|
+
clearable?: boolean;
|
|
1896
|
+
/** Disable the field */
|
|
1897
|
+
disabled?: boolean;
|
|
1898
|
+
/** Error message shown in place of the hint while the field is invalid */
|
|
1899
|
+
errorMessage?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* How times are shown and read from typing: a pattern of the tokens `H`,
|
|
1902
|
+
* `HH` (24-hour), `h`, `hh` (12-hour, with the period `a`) and `mm` with
|
|
1903
|
+
* any separators, e.g. `HH:mm` or `h:mm a`
|
|
1904
|
+
*/
|
|
1905
|
+
format?: string;
|
|
1906
|
+
/** Hide the hint and error messages */
|
|
1907
|
+
hideDetails?: boolean;
|
|
1908
|
+
/** Hint text for the field */
|
|
1909
|
+
hint?: string;
|
|
1910
|
+
/** Id of the element */
|
|
1911
|
+
hostId?: string;
|
|
1912
|
+
/** Element label */
|
|
1913
|
+
label?: string;
|
|
1914
|
+
/** Label on top of the field */
|
|
1915
|
+
labelOnTop?: boolean;
|
|
1916
|
+
/** The latest time that can be picked or typed, as an ISO `HH:mm` time */
|
|
1917
|
+
max?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* The earliest time that can be picked or typed, as an ISO `HH:mm` time;
|
|
1920
|
+
* a `min` after `max` is invalid and both are ignored
|
|
1921
|
+
*/
|
|
1922
|
+
min?: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* Minutes between the minute column's rows; typed times need not fall on
|
|
1925
|
+
* the step
|
|
1926
|
+
*/
|
|
1927
|
+
minuteStep?: number;
|
|
1928
|
+
/** Input field name */
|
|
1929
|
+
name?: string;
|
|
1930
|
+
/** Placeholder of the input; the `format` pattern when empty */
|
|
1931
|
+
placeholder?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* Pick a range: the value becomes `{ start, end }` and the field holds two
|
|
1934
|
+
* inputs
|
|
1935
|
+
*/
|
|
1936
|
+
range?: boolean;
|
|
1937
|
+
/** Set the field as required */
|
|
1938
|
+
required?: boolean;
|
|
1939
|
+
/** Shadow variant */
|
|
1940
|
+
shadow?: boolean;
|
|
1941
|
+
/** Show a Now button under the columns that commits the current time */
|
|
1942
|
+
showNow?: boolean;
|
|
1943
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
1944
|
+
size?: 'default' | 'small';
|
|
1945
|
+
/**
|
|
1946
|
+
* UI text overrides (i18n), merged over the AM/PM texts `Intl` gives for
|
|
1947
|
+
* the page's `lang` and the English defaults. Objects have no attribute
|
|
1948
|
+
* form — bind as a DOM property
|
|
1949
|
+
*/
|
|
1950
|
+
texts?: CTimePickerTexts;
|
|
1951
|
+
/** Set the validity of the field */
|
|
1952
|
+
valid?: boolean;
|
|
1953
|
+
/**
|
|
1954
|
+
* The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`
|
|
1955
|
+
* under `range`; `null` when empty
|
|
1956
|
+
*/
|
|
1957
|
+
value?: CTimePickerValue;
|
|
1958
|
+
/** Whether the committed text names no time that can be picked — the value is then `null` (CONTEXT.md "Bad input"). */
|
|
1959
|
+
readonly badInput: boolean;
|
|
1960
|
+
addEventListener<K extends keyof CTimePickerElementEventMap>(type: K, listener: (this: CTimePickerElement, ev: CTimePickerElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
1961
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1962
|
+
removeEventListener<K extends keyof CTimePickerElementEventMap>(type: K, listener: (this: CTimePickerElement, ev: CTimePickerElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
1963
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1964
|
+
}
|
|
1435
1965
|
/** Events dispatched by `<c-toast>`. */
|
|
1436
1966
|
export interface CToastElementEventMap {
|
|
1437
1967
|
/**
|
|
@@ -1464,8 +1994,184 @@ export interface CToastsElement extends Omit<HTMLElement, 'absolute' | 'horizont
|
|
|
1464
1994
|
/** Remove a message by id (id should be specified in the addToast params) */
|
|
1465
1995
|
removeToast(id: string): void;
|
|
1466
1996
|
}
|
|
1467
|
-
|
|
1997
|
+
/** 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. */
|
|
1998
|
+
export interface CToolbarElement extends Omit<HTMLElement, 'static'> {
|
|
1999
|
+
/**
|
|
2000
|
+
* Keep the toolbar in the page flow so it scrolls away with the content
|
|
2001
|
+
* instead of staying pinned to the top of its scroll container
|
|
2002
|
+
*/
|
|
2003
|
+
static?: boolean;
|
|
2004
|
+
}
|
|
2005
|
+
/** Events dispatched by `<c-tooltip>`. */
|
|
2006
|
+
export interface CTooltipElementEventMap {
|
|
2007
|
+
/**
|
|
2008
|
+
* Fired whenever the tooltip shows or hides, carrying the new open state.
|
|
2009
|
+
* Named `change:open`, not `update:open`: Vue's runtime silently drops
|
|
2010
|
+
* `onUpdate:*` listeners on custom elements (`isModelListener`), so a
|
|
2011
|
+
* template `@update:open` would never be attached.
|
|
2012
|
+
*/
|
|
2013
|
+
'change:open': CustomEvent<boolean>;
|
|
2014
|
+
}
|
|
2015
|
+
/** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
|
|
2016
|
+
export interface CTooltipElement extends Omit<HTMLElement, 'delay' | 'distance' | 'open' | 'position' | 'text' | 'trigger'> {
|
|
2017
|
+
/**
|
|
2018
|
+
* Delay before the tooltip shows on hover, in milliseconds. Keyboard focus
|
|
2019
|
+
* shows the tooltip immediately, regardless of this value. Defaults to
|
|
2020
|
+
* `400`.
|
|
2021
|
+
*/
|
|
2022
|
+
delay?: number | string;
|
|
2023
|
+
/** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */
|
|
2024
|
+
distance?: number | string;
|
|
2025
|
+
/** Whether the tooltip is open. Two-way: emits `change:open`. */
|
|
2026
|
+
open?: boolean;
|
|
2027
|
+
/** Preferred placement of the tooltip relative to the trigger. */
|
|
2028
|
+
position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
2029
|
+
/**
|
|
2030
|
+
* The tooltip text. Overridden by the `content` slot when that is
|
|
2031
|
+
* populated.
|
|
2032
|
+
*/
|
|
2033
|
+
text?: string;
|
|
2034
|
+
/**
|
|
2035
|
+
* Designated trigger: an element elsewhere in the document that the
|
|
2036
|
+
* tooltip describes — its document ID, or the element itself. The same
|
|
2037
|
+
* trigger concept as the `trigger` slot, supplied by reference: the
|
|
2038
|
+
* tooltip wires hover/focus, mirrors `aria-description` onto it and
|
|
2039
|
+
* anchors the bubble to it. When both routes are supplied, this prop wins
|
|
2040
|
+
* over the slot.
|
|
2041
|
+
*/
|
|
2042
|
+
trigger?: HTMLElement | string;
|
|
2043
|
+
addEventListener<K extends keyof CTooltipElementEventMap>(type: K, listener: (this: CTooltipElement, ev: CTooltipElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
2044
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2045
|
+
removeEventListener<K extends keyof CTooltipElementEventMap>(type: K, listener: (this: CTooltipElement, ev: CTooltipElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
2046
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2047
|
+
}
|
|
2048
|
+
/** Events dispatched by `<c-tree-select>`. */
|
|
2049
|
+
export interface CTreeSelectElementEventMap {
|
|
2050
|
+
/**
|
|
2051
|
+
* Fired when the selection changes — an item is committed or the selection
|
|
2052
|
+
* is cleared — carrying the new value: the item's value, the
|
|
2053
|
+
* `CTreeSelectSelection` with `return-object`, or `null` when cleared.
|
|
2054
|
+
*/
|
|
2055
|
+
change: CustomEvent<CTreeSelectValue>;
|
|
2056
|
+
/**
|
|
2057
|
+
* Fired whenever the query changes — on every keystroke in the search
|
|
2058
|
+
* input, and with an empty string when the panel opens. Carries the query
|
|
2059
|
+
* string.
|
|
2060
|
+
*/
|
|
2061
|
+
'change:query': CustomEvent<string>;
|
|
2062
|
+
/**
|
|
2063
|
+
* Native bubbling input event dispatched alongside every value change so a
|
|
2064
|
+
* plain `v-model` stays in sync. Carries no detail.
|
|
2065
|
+
*/
|
|
2066
|
+
input: CustomEvent<void>;
|
|
2067
|
+
/** Fired alongside `change` with the same detail — the `v-model` contract. */
|
|
2068
|
+
'update:value': CustomEvent<CTreeSelectValue>;
|
|
2069
|
+
}
|
|
2070
|
+
/** 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. */
|
|
2071
|
+
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'> {
|
|
2072
|
+
/**
|
|
2073
|
+
* Let a branch be committed as the value: a pinned select-branch row heads
|
|
2074
|
+
* every level below the root, and matching branches are listed as search
|
|
2075
|
+
* results
|
|
2076
|
+
*/
|
|
2077
|
+
allowBranch?: boolean;
|
|
2078
|
+
/** Make the selected value clearable */
|
|
2079
|
+
clearable?: boolean;
|
|
2080
|
+
/** Disable the field */
|
|
2081
|
+
disabled?: boolean;
|
|
2082
|
+
/** Error message shown in place of the hint while the field is invalid */
|
|
2083
|
+
errorMessage?: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* Custom search predicate; receives the item, the query and the item's
|
|
2086
|
+
* ancestors. Functions have no attribute form — bind as a DOM property
|
|
2087
|
+
*/
|
|
2088
|
+
filter?: CTreeSelectFilter;
|
|
2089
|
+
/** Hide the hint and error messages */
|
|
2090
|
+
hideDetails?: boolean;
|
|
2091
|
+
/** Hint text for the field */
|
|
2092
|
+
hint?: string;
|
|
2093
|
+
/** Id of the element */
|
|
2094
|
+
hostId?: string;
|
|
2095
|
+
/**
|
|
2096
|
+
* The tree to pick from. Arrays have no attribute form — bind as a DOM
|
|
2097
|
+
* property (`:items.prop` in Vue)
|
|
2098
|
+
*/
|
|
2099
|
+
items?: CTreeSelectItem[];
|
|
2100
|
+
/** Items per page before the list scrolls */
|
|
2101
|
+
itemsPerPage?: number;
|
|
2102
|
+
/** Element label */
|
|
2103
|
+
label?: string;
|
|
2104
|
+
/** Label on top of the field */
|
|
2105
|
+
labelOnTop?: boolean;
|
|
2106
|
+
/**
|
|
2107
|
+
* Names of the levels, top level first, shown in the panel header; a
|
|
2108
|
+
* missing entry falls back to `texts.level(n)`. Arrays have no attribute
|
|
2109
|
+
* form — bind as a DOM property
|
|
2110
|
+
*/
|
|
2111
|
+
levelLabels?: string[];
|
|
2112
|
+
/** Input field name */
|
|
2113
|
+
name?: string;
|
|
2114
|
+
/** Placeholder for the search input inside the panel */
|
|
2115
|
+
placeholder?: string;
|
|
2116
|
+
/** Set the field as required */
|
|
2117
|
+
required?: boolean;
|
|
2118
|
+
/**
|
|
2119
|
+
* Emit the committed item with its path as a `CTreeSelectSelection` instead
|
|
2120
|
+
* of its value
|
|
2121
|
+
*/
|
|
2122
|
+
returnObject?: boolean;
|
|
2123
|
+
/** Shadow variant */
|
|
2124
|
+
shadow?: boolean;
|
|
2125
|
+
/** Field height: the 52px default (the shared control height) or the 36px `small` box */
|
|
2126
|
+
size?: 'default' | 'small';
|
|
2127
|
+
/**
|
|
2128
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
2129
|
+
* no attribute form — bind as a DOM property (`:texts.prop` in Vue)
|
|
2130
|
+
*/
|
|
2131
|
+
texts?: CTreeSelectTexts;
|
|
2132
|
+
/** Set the validity of the field */
|
|
2133
|
+
valid?: boolean;
|
|
2134
|
+
/**
|
|
2135
|
+
* Selected value: the committed item's value, or the `CTreeSelectSelection`
|
|
2136
|
+
* with `return-object`; `null` when nothing is selected
|
|
2137
|
+
*/
|
|
2138
|
+
value?: CTreeSelectValue;
|
|
2139
|
+
addEventListener<K extends keyof CTreeSelectElementEventMap>(type: K, listener: (this: CTreeSelectElement, ev: CTreeSelectElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
2140
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2141
|
+
removeEventListener<K extends keyof CTreeSelectElementEventMap>(type: K, listener: (this: CTreeSelectElement, ev: CTreeSelectElementEventMap[K]) => void, options?: boolean | EventListenerOptions): void;
|
|
2142
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1468
2143
|
}
|
|
2144
|
+
/**
|
|
2145
|
+
* Props a consumer may set for every instance of a tag with
|
|
2146
|
+
* `applyDefaults()` (`@defaultable` in the manifest), typed as the
|
|
2147
|
+
* element's own members. An explicit per-instance attribute or property
|
|
2148
|
+
* always wins over an app default.
|
|
2149
|
+
*/
|
|
2150
|
+
export interface AppDefaults {
|
|
2151
|
+
'c-autocomplete'?: Partial<Pick<CAutocompleteElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2152
|
+
'c-breadcrumb'?: Partial<Pick<CBreadcrumbElement, 'texts'>>;
|
|
2153
|
+
'c-data-table'?: Partial<Pick<CDataTableElement, 'texts'>>;
|
|
2154
|
+
'c-date-picker'?: Partial<Pick<CDatePickerElement, 'firstDayOfWeek' | 'format' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'showToday' | 'showWeekNumbers' | 'size' | 'texts'>>;
|
|
2155
|
+
'c-number-field'?: Partial<Pick<CNumberFieldElement, 'decimalSeparator' | 'decimals' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'size' | 'step' | 'texts'>>;
|
|
2156
|
+
'c-select'?: Partial<Pick<CSelectElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2157
|
+
'c-text-field'?: Partial<Pick<CTextFieldElement, 'hideDetails' | 'labelOnTop' | 'shadow' | 'size'>>;
|
|
2158
|
+
'c-time-picker'?: Partial<Pick<CTimePickerElement, 'format' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'showNow' | 'size' | 'texts'>>;
|
|
2159
|
+
'c-tree-select'?: Partial<Pick<CTreeSelectElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2160
|
+
}
|
|
2161
|
+
/** Runtime allow-list behind `applyDefaults()` validation — the same data as `AppDefaults`. */
|
|
2162
|
+
export declare const DEFAULTABLE_PROPS: {
|
|
2163
|
+
readonly 'c-autocomplete': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2164
|
+
readonly 'c-breadcrumb': readonly ["texts"];
|
|
2165
|
+
readonly 'c-data-table': readonly ["texts"];
|
|
2166
|
+
readonly 'c-date-picker': readonly ["firstDayOfWeek", "format", "hideDetails", "labelOnTop", "shadow", "showToday", "showWeekNumbers", "size", "texts"];
|
|
2167
|
+
readonly 'c-number-field': readonly ["decimalSeparator", "decimals", "fixedDecimals", "groupSeparator", "hideDetails", "labelOnTop", "shadow", "size", "step", "texts"];
|
|
2168
|
+
readonly 'c-select': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2169
|
+
readonly 'c-text-field': readonly ["hideDetails", "labelOnTop", "shadow", "size"];
|
|
2170
|
+
readonly 'c-time-picker': readonly ["format", "hideDetails", "labelOnTop", "shadow", "showNow", "size", "texts"];
|
|
2171
|
+
readonly 'c-tree-select': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2172
|
+
};
|
|
2173
|
+
/** Tags dispatching the v-model contract event `update:value` — the value controls (CONTEXT.md). */
|
|
2174
|
+
export declare const VALUE_TAGS: readonly ["c-accordion", "c-autocomplete", "c-button-group", "c-checkbox", "c-date-picker", "c-modal", "c-number-field", "c-otp-input", "c-pagination", "c-radio-group", "c-select", "c-slider", "c-switch", "c-tabs", "c-text-field", "c-time-picker", "c-tree-select"];
|
|
1469
2175
|
declare global {
|
|
1470
2176
|
interface HTMLElementTagNameMap {
|
|
1471
2177
|
'c-accordion': CAccordionElement;
|
|
@@ -1473,6 +2179,8 @@ declare global {
|
|
|
1473
2179
|
'c-alert': CAlertElement;
|
|
1474
2180
|
'c-autocomplete': CAutocompleteElement;
|
|
1475
2181
|
'c-badge': CBadgeElement;
|
|
2182
|
+
'c-breadcrumb': CBreadcrumbElement;
|
|
2183
|
+
'c-breadcrumb-item': CBreadcrumbItemElement;
|
|
1476
2184
|
'c-button': CButtonElement;
|
|
1477
2185
|
'c-button-group': CButtonGroupElement;
|
|
1478
2186
|
'c-card': CCardElement;
|
|
@@ -1482,6 +2190,7 @@ declare global {
|
|
|
1482
2190
|
'c-checkbox': CCheckboxElement;
|
|
1483
2191
|
'c-csc-logo': CCscLogoElement;
|
|
1484
2192
|
'c-data-table': CDataTableElement;
|
|
2193
|
+
'c-date-picker': CDatePickerElement;
|
|
1485
2194
|
'c-divider': CDividerElement;
|
|
1486
2195
|
'c-dropdown': CDropdownElement;
|
|
1487
2196
|
'c-icon': CIconElement;
|
|
@@ -1505,12 +2214,15 @@ declare global {
|
|
|
1505
2214
|
'c-message': CMessageElement;
|
|
1506
2215
|
'c-modal': CModalElement;
|
|
1507
2216
|
'c-navigation-button': CNavigationButtonElement;
|
|
2217
|
+
'c-number-field': CNumberFieldElement;
|
|
1508
2218
|
'c-option': COptionElement;
|
|
1509
2219
|
'c-option-value': COptionValueElement;
|
|
1510
2220
|
'c-otp-input': COtpInputElement;
|
|
1511
2221
|
'c-page': CPageElement;
|
|
1512
2222
|
'c-pagination': CPaginationElement;
|
|
2223
|
+
'c-popover': CPopoverElement;
|
|
1513
2224
|
'c-progress-bar': CProgressBarElement;
|
|
2225
|
+
'c-progress-circle': CProgressCircleElement;
|
|
1514
2226
|
'c-radio': CRadioElement;
|
|
1515
2227
|
'c-radio-group': CRadioGroupElement;
|
|
1516
2228
|
'c-select': CSelectElement;
|
|
@@ -1533,9 +2245,12 @@ declare global {
|
|
|
1533
2245
|
'c-tag': CTagElement;
|
|
1534
2246
|
'c-tags': CTagsElement;
|
|
1535
2247
|
'c-text-field': CTextFieldElement;
|
|
2248
|
+
'c-time-picker': CTimePickerElement;
|
|
1536
2249
|
'c-toast': CToastElement;
|
|
1537
2250
|
'c-toasts': CToastsElement;
|
|
1538
2251
|
'c-toolbar': CToolbarElement;
|
|
2252
|
+
'c-tooltip': CTooltipElement;
|
|
2253
|
+
'c-tree-select': CTreeSelectElement;
|
|
1539
2254
|
}
|
|
1540
2255
|
}
|
|
1541
2256
|
export {};
|