@cscfi/csc-ui 4.0.0-rc.2 → 4.0.0-rc.3
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 +6496 -6443
- package/dist/custom-elements.json +579 -23
- package/dist/docs/c-button/usage.md +15 -2
- package/dist/docs/c-card/usage.md +2 -2
- package/dist/docs/c-checkbox/usage.md +1 -1
- package/dist/docs/c-icon-button/usage.md +3 -2
- package/dist/docs/c-link/usage.md +1 -1
- package/dist/docs/c-loader/usage.md +3 -2
- package/dist/docs/c-otp-input/usage.md +1 -1
- package/dist/docs/c-radio-group/usage.md +1 -1
- package/dist/docs/c-side-navigation/usage.md +6 -6
- package/dist/docs/c-side-navigation-item/usage.md +1 -1
- package/dist/docs/c-slider/usage.md +10 -3
- package/dist/docs/c-spinner/usage.md +2 -2
- package/dist/docs/c-sub-navigation-item/usage.md +1 -1
- package/dist/docs/c-toasts/usage.md +7 -3
- package/dist/vscode.css-custom-data.json +12 -12
- package/dist/vscode.html-custom-data.json +178 -46
- package/dist/web-types.json +2090 -496
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +9 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +22 -4
- package/dist-types/components/c-card/CCard.vue.d.ts +8 -0
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +8 -0
- package/dist-types/components/c-color-picker/CColorPicker.vue.d.ts +9 -0
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +9 -0
- package/dist-types/components/c-file-upload/CFileUpload.vue.d.ts +9 -0
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +23 -4
- package/dist-types/components/c-loader/CLoader.vue.d.ts +7 -0
- package/dist-types/components/c-number-field/CNumberField.vue.d.ts +9 -0
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +8 -0
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +8 -0
- package/dist-types/components/c-select/CSelect.vue.d.ts +9 -0
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +16 -0
- package/dist-types/components/c-slider/CSlider.vue.d.ts +8 -0
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +7 -0
- package/dist-types/components/c-step/CStep.vue.d.ts +1 -1
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +9 -0
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +9 -0
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +9 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +26 -0
- package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +9 -0
- package/dist-types/index.d.ts +3 -3
- package/dist-types/shared/appDefaults.d.ts +8 -1
- package/dist-types/shared/buttonAppearance.d.ts +20 -0
- package/dist-types/tag-name-map.d.ts +281 -70
- package/package.json +1 -1
|
@@ -132,7 +132,7 @@ export interface CAutocompleteElementEventMap {
|
|
|
132
132
|
'update:value': CustomEvent<CAutocompleteValue>;
|
|
133
133
|
}
|
|
134
134
|
/** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
|
|
135
|
-
export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'external' | 'filter' | 'hideDetails' | 'hint' | 'invalid' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'maxTags' | 'multiple' | 'name' | 'placeholder' | 'required' | 'returnObject' | 'selectAll' | 'shadow' | 'size' | 'texts' | 'value'> {
|
|
135
|
+
export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'external' | 'filter' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'maxTags' | 'multiple' | 'name' | 'placeholder' | 'required' | 'returnObject' | 'selectAll' | 'shadow' | 'size' | 'texts' | 'value'> {
|
|
136
136
|
/** Make the selected value clearable */
|
|
137
137
|
clearable?: boolean;
|
|
138
138
|
/** Disable the input */
|
|
@@ -147,8 +147,17 @@ export interface CAutocompleteElement extends Omit<HTMLElement, 'clearable' | 'd
|
|
|
147
147
|
external?: boolean;
|
|
148
148
|
/** Custom filter predicate; receives a normalized option + the query. Ignored when `external` is set */
|
|
149
149
|
filter?: CAutocompleteFilter;
|
|
150
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Hide the hint and error messages
|
|
152
|
+
*
|
|
153
|
+
* @deprecated Use `hide-message`.
|
|
154
|
+
*/
|
|
151
155
|
hideDetails?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Hide the message line — the hint and error messages under the field —
|
|
158
|
+
* and the room it keeps.
|
|
159
|
+
*/
|
|
160
|
+
hideMessage?: boolean;
|
|
152
161
|
/** Hint text for the input */
|
|
153
162
|
hint?: string;
|
|
154
163
|
/**
|
|
@@ -242,8 +251,8 @@ export interface CBreadcrumbItemElement extends Omit<HTMLElement, 'href' | 'targ
|
|
|
242
251
|
/** Browsing context the link opens in; the same tab when unset */
|
|
243
252
|
target?: string;
|
|
244
253
|
}
|
|
245
|
-
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one primary (default appearance) button per view; secondary actions use
|
|
246
|
-
export interface CButtonElement extends Omit<HTMLElement, 'active' | 'asTab' | 'danger' | 'disabled' | 'fit' | 'ghost' | 'href' | 'inverted' | 'loading' | 'noRadius' | 'noRipple' | 'outlined' | 'size' | 'target' | 'text' | 'type' | 'value'> {
|
|
254
|
+
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one primary (filled, the default `appearance`) button per view; secondary actions use `appearance="outlined"`, `"ghost"` or `"text"`. */
|
|
255
|
+
export interface CButtonElement extends Omit<HTMLElement, 'active' | 'appearance' | 'asTab' | 'danger' | 'disabled' | 'fit' | 'ghost' | 'href' | 'inverted' | 'loading' | 'noRadius' | 'noRipple' | 'outlined' | 'size' | 'target' | 'text' | 'type' | 'value'> {
|
|
247
256
|
/**
|
|
248
257
|
* Pressed (toggle) state — renders the selected look and sets
|
|
249
258
|
* `aria-pressed`. Leave unset for regular action buttons: only a
|
|
@@ -252,8 +261,14 @@ export interface CButtonElement extends Omit<HTMLElement, 'active' | 'asTab' | '
|
|
|
252
261
|
*/
|
|
253
262
|
active?: boolean;
|
|
254
263
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
264
|
+
* The button's look: `filled` (unless set) for the main action of a view;
|
|
265
|
+
* `outlined` (a primary outline, no fill), `ghost` (a light primary tint)
|
|
266
|
+
* or `text` (no fill or outline) for lower emphasis.
|
|
267
|
+
*/
|
|
268
|
+
appearance?: 'filled' | 'ghost' | 'outlined' | 'text';
|
|
269
|
+
/**
|
|
270
|
+
* Danger look for a destructive action: the filled button in the error
|
|
271
|
+
* colour; no effect on the `outlined`, `ghost` or `text` appearance.
|
|
257
272
|
*/
|
|
258
273
|
danger?: boolean;
|
|
259
274
|
/**
|
|
@@ -263,7 +278,11 @@ export interface CButtonElement extends Omit<HTMLElement, 'active' | 'asTab' | '
|
|
|
263
278
|
disabled?: boolean;
|
|
264
279
|
/** Stretch the button to the full width of its container. */
|
|
265
280
|
fit?: boolean;
|
|
266
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* Ghost appearance: primary text on a light primary tint, for lower emphasis.
|
|
283
|
+
*
|
|
284
|
+
* @deprecated Use `appearance="ghost"`.
|
|
285
|
+
*/
|
|
267
286
|
ghost?: boolean;
|
|
268
287
|
/**
|
|
269
288
|
* URL to link to: the button renders as a real link (`<a>`) styled as a
|
|
@@ -272,8 +291,8 @@ export interface CButtonElement extends Omit<HTMLElement, 'active' | 'asTab' | '
|
|
|
272
291
|
href?: string;
|
|
273
292
|
/**
|
|
274
293
|
* Inverted colours for a fixed dark or brand-coloured backdrop: the
|
|
275
|
-
* `inverse-*` family, the same in both theme modes. Combines with
|
|
276
|
-
*
|
|
294
|
+
* `inverse-*` family, the same in both theme modes. Combines with every
|
|
295
|
+
* appearance.
|
|
277
296
|
*/
|
|
278
297
|
inverted?: boolean;
|
|
279
298
|
/**
|
|
@@ -286,6 +305,8 @@ export interface CButtonElement extends Omit<HTMLElement, 'active' | 'asTab' | '
|
|
|
286
305
|
/**
|
|
287
306
|
* Outlined appearance: a primary outline and text with no fill, for lower
|
|
288
307
|
* emphasis.
|
|
308
|
+
*
|
|
309
|
+
* @deprecated Use `appearance="outlined"`.
|
|
289
310
|
*/
|
|
290
311
|
outlined?: boolean;
|
|
291
312
|
/**
|
|
@@ -298,7 +319,11 @@ export interface CButtonElement extends Omit<HTMLElement, 'active' | 'asTab' | '
|
|
|
298
319
|
* `_blank` for a new one.
|
|
299
320
|
*/
|
|
300
321
|
target?: string;
|
|
301
|
-
/**
|
|
322
|
+
/**
|
|
323
|
+
* Text appearance: primary text with no fill or outline, the lightest look.
|
|
324
|
+
*
|
|
325
|
+
* @deprecated Use `appearance="text"`.
|
|
326
|
+
*/
|
|
302
327
|
text?: boolean;
|
|
303
328
|
/**
|
|
304
329
|
* Native `type` of the button: `button` unless set, `submit` or `reset`.
|
|
@@ -367,12 +392,19 @@ export interface CButtonGroupElement extends Omit<HTMLElement, 'disabled' | 'lab
|
|
|
367
392
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
368
393
|
}
|
|
369
394
|
/** A raised, bordered surface that groups one piece of content — its heading, body and actions — into a single box on the page. */
|
|
370
|
-
export interface CCardElement extends Omit<HTMLElement, 'fullscreen'> {
|
|
395
|
+
export interface CCardElement extends Omit<HTMLElement, 'fullscreen' | 'showFullscreen'> {
|
|
371
396
|
/**
|
|
372
397
|
* Shows a toggle button in the card's top-right corner that puts the card
|
|
373
398
|
* in the browser's fullscreen mode and back.
|
|
399
|
+
*
|
|
400
|
+
* @deprecated Use `show-fullscreen`.
|
|
374
401
|
*/
|
|
375
402
|
fullscreen?: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Show a toggle button in the card's top-right corner that puts the card
|
|
405
|
+
* in the browser's fullscreen mode and back.
|
|
406
|
+
*/
|
|
407
|
+
showFullscreen?: boolean;
|
|
376
408
|
/**
|
|
377
409
|
* Shows the card in the browser's fullscreen mode; does nothing while any
|
|
378
410
|
* element is already fullscreen. Browsers grant it only in response to a
|
|
@@ -426,7 +458,7 @@ export interface CCheckboxElementEventMap {
|
|
|
426
458
|
'update:value': CustomEvent<boolean | number | string>;
|
|
427
459
|
}
|
|
428
460
|
/** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
|
|
429
|
-
export interface CCheckboxElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'errorMessage' | 'falseValue' | 'hideDetails' | 'hint' | 'indeterminate' | 'invalid' | 'label' | 'name' | 'required' | 'trueValue' | 'value'> {
|
|
461
|
+
export interface CCheckboxElement extends Omit<HTMLElement, 'checked' | 'disabled' | 'errorMessage' | 'falseValue' | 'hideDetails' | 'hideMessage' | 'hint' | 'indeterminate' | 'invalid' | 'label' | 'name' | 'required' | 'trueValue' | 'value'> {
|
|
430
462
|
/**
|
|
431
463
|
* Whether the checkbox is on: the boolean view of `value`. Setting it sets
|
|
432
464
|
* `value` to `trueValue` or `falseValue`; reading it reports whether
|
|
@@ -440,8 +472,17 @@ export interface CCheckboxElement extends Omit<HTMLElement, 'checked' | 'disable
|
|
|
440
472
|
errorMessage?: string;
|
|
441
473
|
/** The value when the checkbox is unchecked */
|
|
442
474
|
falseValue?: boolean | number | string;
|
|
443
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* Hide the hint and error messages
|
|
477
|
+
*
|
|
478
|
+
* @deprecated Use `hide-message`.
|
|
479
|
+
*/
|
|
444
480
|
hideDetails?: boolean;
|
|
481
|
+
/**
|
|
482
|
+
* Hide the message line — the hint and error messages under the field —
|
|
483
|
+
* and the room it keeps.
|
|
484
|
+
*/
|
|
485
|
+
hideMessage?: boolean;
|
|
445
486
|
/** Hint text for the checkbox */
|
|
446
487
|
hint?: string;
|
|
447
488
|
/**
|
|
@@ -512,7 +553,7 @@ export interface CColorPickerElementEventMap {
|
|
|
512
553
|
'update:value': CustomEvent<CColorPickerValue>;
|
|
513
554
|
}
|
|
514
555
|
/** A colour field that takes any typed CSS colour, or opens a panel for picking one: a colour area, hue and alpha sliders, per-channel inputs and swatches — or swatches alone under `swatches-only`. */
|
|
515
|
-
export interface CColorPickerElement extends Omit<HTMLElement, 'alpha' | 'clearable' | 'disabled' | 'errorMessage' | 'format' | 'hideDetails' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'name' | 'placeholder' | 'required' | 'shadow' | 'size' | 'swatches' | 'swatchesOnly' | 'texts' | 'value'> {
|
|
556
|
+
export interface CColorPickerElement extends Omit<HTMLElement, 'alpha' | 'clearable' | 'disabled' | 'errorMessage' | 'format' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'name' | 'placeholder' | 'required' | 'shadow' | 'size' | 'swatches' | 'swatchesOnly' | 'texts' | 'value'> {
|
|
516
557
|
/**
|
|
517
558
|
* Let the colour carry transparency: an alpha slider and an A channel join
|
|
518
559
|
* the panel. Without it typed alpha is dropped
|
|
@@ -529,8 +570,17 @@ export interface CColorPickerElement extends Omit<HTMLElement, 'alpha' | 'cleara
|
|
|
529
570
|
* `#rrggbb`, `rgb(r g b)` or `oklch(l c h)`
|
|
530
571
|
*/
|
|
531
572
|
format?: 'hex' | 'oklch' | 'rgb';
|
|
532
|
-
/**
|
|
573
|
+
/**
|
|
574
|
+
* Hide the hint and error messages
|
|
575
|
+
*
|
|
576
|
+
* @deprecated Use `hide-message`.
|
|
577
|
+
*/
|
|
533
578
|
hideDetails?: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* Hide the message line — the hint and error messages under the field —
|
|
581
|
+
* and the room it keeps.
|
|
582
|
+
*/
|
|
583
|
+
hideMessage?: boolean;
|
|
534
584
|
/** Hint text for the field */
|
|
535
585
|
hint?: string;
|
|
536
586
|
/**
|
|
@@ -713,7 +763,7 @@ export interface CDatePickerElementEventMap {
|
|
|
713
763
|
'update:value': CustomEvent<CDatePickerValue>;
|
|
714
764
|
}
|
|
715
765
|
/** A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`. */
|
|
716
|
-
export interface CDatePickerElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'disabledDates' | 'errorMessage' | 'firstDayOfWeek' | 'format' | 'hideDetails' | 'hint' | 'invalid' | 'isDateDisabled' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'range' | 'required' | 'shadow' | 'showToday' | 'showWeekNumbers' | 'size' | 'texts' | 'type' | 'value'> {
|
|
766
|
+
export interface CDatePickerElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'disabledDates' | 'errorMessage' | 'firstDayOfWeek' | 'format' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'isDateDisabled' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'range' | 'required' | 'shadow' | 'showToday' | 'showWeekNumbers' | 'size' | 'texts' | 'type' | 'value'> {
|
|
717
767
|
/** Make the value clearable */
|
|
718
768
|
clearable?: boolean;
|
|
719
769
|
/** Disable the field */
|
|
@@ -735,8 +785,17 @@ export interface CDatePickerElement extends Omit<HTMLElement, 'clearable' | 'dis
|
|
|
735
785
|
* `dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`
|
|
736
786
|
*/
|
|
737
787
|
format?: string;
|
|
738
|
-
/**
|
|
788
|
+
/**
|
|
789
|
+
* Hide the hint and error messages
|
|
790
|
+
*
|
|
791
|
+
* @deprecated Use `hide-message`.
|
|
792
|
+
*/
|
|
739
793
|
hideDetails?: boolean;
|
|
794
|
+
/**
|
|
795
|
+
* Hide the message line — the hint and error messages under the field —
|
|
796
|
+
* and the room it keeps.
|
|
797
|
+
*/
|
|
798
|
+
hideMessage?: boolean;
|
|
740
799
|
/** Hint text for the field */
|
|
741
800
|
hint?: string;
|
|
742
801
|
/**
|
|
@@ -841,7 +900,7 @@ export interface CFileUploadElementEventMap {
|
|
|
841
900
|
'update:value': CustomEvent<CFileUploadEntry[]>;
|
|
842
901
|
}
|
|
843
902
|
/** A field the user adds files to by dropping them on it or choosing them from a file dialog — and, given an upload function, the place each file's upload shows its progress. */
|
|
844
|
-
export interface CFileUploadElement extends Omit<HTMLElement, 'accept' | 'compact' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'invalid' | 'label' | 'manual' | 'maxFiles' | 'maxSize' | 'multiple' | 'required' | 'size' | 'texts' | 'upload' | 'value'> {
|
|
903
|
+
export interface CFileUploadElement extends Omit<HTMLElement, 'accept' | 'compact' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'label' | 'manual' | 'maxFiles' | 'maxSize' | 'multiple' | 'required' | 'size' | 'texts' | 'upload' | 'value'> {
|
|
845
904
|
/** The file types the field takes, in the native `accept` syntax: extensions (`.pdf`) and media types (`image/*`, `application/json`), comma separated. It filters the file dialog and is checked again on a drop */
|
|
846
905
|
accept?: string;
|
|
847
906
|
/** Show the drop zone as a control-height row — a "Choose files" button and a drop prompt — that lines up with the fields beside it */
|
|
@@ -850,8 +909,17 @@ export interface CFileUploadElement extends Omit<HTMLElement, 'accept' | 'compac
|
|
|
850
909
|
disabled?: boolean;
|
|
851
910
|
/** Error message shown in place of the hint while the field is invalid */
|
|
852
911
|
errorMessage?: string;
|
|
853
|
-
/**
|
|
912
|
+
/**
|
|
913
|
+
* Hide the hint and error messages
|
|
914
|
+
*
|
|
915
|
+
* @deprecated Use `hide-message`.
|
|
916
|
+
*/
|
|
854
917
|
hideDetails?: boolean;
|
|
918
|
+
/**
|
|
919
|
+
* Hide the message line — the hint and error messages under the field —
|
|
920
|
+
* and the room it keeps.
|
|
921
|
+
*/
|
|
922
|
+
hideMessage?: boolean;
|
|
855
923
|
/** Hint text under the drop zone — the place to name the accepted types and limits */
|
|
856
924
|
hint?: string;
|
|
857
925
|
/**
|
|
@@ -905,25 +973,35 @@ export interface CIconElement extends Omit<HTMLElement, 'color' | 'path' | 'size
|
|
|
905
973
|
size?: number;
|
|
906
974
|
}
|
|
907
975
|
/** An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element. */
|
|
908
|
-
export interface CIconButtonElement extends Omit<HTMLElement, 'badge' | 'danger' | 'disabled' | 'ghost' | 'inverted' | 'loading' | 'outlined' | 'path' | 'size' | 'text'> {
|
|
976
|
+
export interface CIconButtonElement extends Omit<HTMLElement, 'appearance' | 'badge' | 'danger' | 'disabled' | 'ghost' | 'inverted' | 'loading' | 'outlined' | 'path' | 'size' | 'text'> {
|
|
977
|
+
/**
|
|
978
|
+
* The button's look: `filled` (unless set) for the main action; `outlined`
|
|
979
|
+
* (a primary outline, no fill), `ghost` (a light primary tint) or `text`
|
|
980
|
+
* (no fill or outline) for lower emphasis.
|
|
981
|
+
*/
|
|
982
|
+
appearance?: 'filled' | 'ghost' | 'outlined' | 'text';
|
|
909
983
|
/**
|
|
910
984
|
* Count shown in a bubble at the button's top-right corner; hidden while
|
|
911
985
|
* `null` or empty, so `0` still shows.
|
|
912
986
|
*/
|
|
913
987
|
badge?: null | number | string;
|
|
914
988
|
/**
|
|
915
|
-
* Danger
|
|
916
|
-
* colour; no effect on `outlined`, `ghost` or `text
|
|
989
|
+
* Danger look for a destructive action: the filled button in the error
|
|
990
|
+
* colour; no effect on the `outlined`, `ghost` or `text` appearance.
|
|
917
991
|
*/
|
|
918
992
|
danger?: boolean;
|
|
919
993
|
/** Disable the button: it leaves the Tab order and ignores the pointer. */
|
|
920
994
|
disabled?: boolean;
|
|
921
|
-
/**
|
|
995
|
+
/**
|
|
996
|
+
* Ghost appearance: a light primary tint, for lower emphasis.
|
|
997
|
+
*
|
|
998
|
+
* @deprecated Use `appearance="ghost"`.
|
|
999
|
+
*/
|
|
922
1000
|
ghost?: boolean;
|
|
923
1001
|
/**
|
|
924
1002
|
* Inverted colours for a fixed dark or brand-coloured backdrop: the
|
|
925
|
-
* `inverse-*` family, the same in both theme modes. Combines with
|
|
926
|
-
*
|
|
1003
|
+
* `inverse-*` family, the same in both theme modes. Combines with every
|
|
1004
|
+
* appearance.
|
|
927
1005
|
*/
|
|
928
1006
|
inverted?: boolean;
|
|
929
1007
|
/**
|
|
@@ -931,7 +1009,11 @@ export interface CIconButtonElement extends Omit<HTMLElement, 'badge' | 'danger'
|
|
|
931
1009
|
* focusable and is announced as busy and unavailable.
|
|
932
1010
|
*/
|
|
933
1011
|
loading?: boolean;
|
|
934
|
-
/**
|
|
1012
|
+
/**
|
|
1013
|
+
* Outlined appearance: a primary outline with no fill, for lower emphasis.
|
|
1014
|
+
*
|
|
1015
|
+
* @deprecated Use `appearance="outlined"`.
|
|
1016
|
+
*/
|
|
935
1017
|
outlined?: boolean;
|
|
936
1018
|
/**
|
|
937
1019
|
* Icon path of an icon the button draws itself, always 24px; a slotted icon
|
|
@@ -940,7 +1022,11 @@ export interface CIconButtonElement extends Omit<HTMLElement, 'badge' | 'danger'
|
|
|
940
1022
|
path?: string;
|
|
941
1023
|
/** Size of the button: `default` (40px), `small` (32px) or `x-small` (28px). */
|
|
942
1024
|
size?: 'default' | 'small' | 'x-small';
|
|
943
|
-
/**
|
|
1025
|
+
/**
|
|
1026
|
+
* Text appearance: no fill or outline, the lightest look.
|
|
1027
|
+
*
|
|
1028
|
+
* @deprecated Use `appearance="text"`.
|
|
1029
|
+
*/
|
|
944
1030
|
text?: boolean;
|
|
945
1031
|
}
|
|
946
1032
|
/** A text link to another page or resource: a native `<a>` in the link colour, with an optional underline. */
|
|
@@ -1008,7 +1094,7 @@ export interface CListItemElement extends Omit<HTMLElement, 'active' | 'disabled
|
|
|
1008
1094
|
export interface CListItemTitleElement extends Omit<HTMLElement, 'active'> {
|
|
1009
1095
|
}
|
|
1010
1096
|
/** A loading overlay that covers a container with a translucent scrim and a centred spinner, with an optional message below it, while that container's content loads. */
|
|
1011
|
-
export interface CLoaderElement extends Omit<HTMLElement, 'contentDelay' | 'hide' | 'size' | 'width'> {
|
|
1097
|
+
export interface CLoaderElement extends Omit<HTMLElement, 'contentDelay' | 'hide' | 'size' | 'thickness' | 'width'> {
|
|
1012
1098
|
/**
|
|
1013
1099
|
* Delay, in milliseconds, before the slotted message fades in once the
|
|
1014
1100
|
* loader shows.
|
|
@@ -1022,7 +1108,13 @@ export interface CLoaderElement extends Omit<HTMLElement, 'contentDelay' | 'hide
|
|
|
1022
1108
|
hide?: boolean;
|
|
1023
1109
|
/** The spinner's diameter in pixels. */
|
|
1024
1110
|
size?: number;
|
|
1025
|
-
/** The spinner's stroke
|
|
1111
|
+
/** The spinner's stroke thickness in pixels: 4 unless set. */
|
|
1112
|
+
thickness?: number;
|
|
1113
|
+
/**
|
|
1114
|
+
* The spinner's stroke width in pixels.
|
|
1115
|
+
*
|
|
1116
|
+
* @deprecated Use `thickness`.
|
|
1117
|
+
*/
|
|
1026
1118
|
width?: number;
|
|
1027
1119
|
}
|
|
1028
1120
|
/** One identity-provider choice inside `c-login-buttons`: a card with the provider's logo (`src`, or markup in the `image` slot) above the provider's name. With an `href` it is a link to the provider's sign-in; without one it is a button whose `click` you handle. Leave `alt` empty when the name already identifies the provider. */
|
|
@@ -1245,7 +1337,7 @@ export interface CNumberFieldElementEventMap {
|
|
|
1245
1337
|
'update:value': CustomEvent<null | number>;
|
|
1246
1338
|
}
|
|
1247
1339
|
/** A field for a number — an integer, or one with decimals — shown with thousands separators as it is typed. */
|
|
1248
|
-
export interface CNumberFieldElement extends Omit<HTMLElement, 'decimals' | 'decimalSeparator' | 'disabled' | 'errorMessage' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'shadow' | 'size' | 'step' | 'texts' | 'value'> {
|
|
1340
|
+
export interface CNumberFieldElement extends Omit<HTMLElement, 'decimals' | 'decimalSeparator' | 'disabled' | 'errorMessage' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'shadow' | 'size' | 'step' | 'texts' | 'value'> {
|
|
1249
1341
|
/** The most fraction digits the field takes; `0` makes it an integer field */
|
|
1250
1342
|
decimals?: number;
|
|
1251
1343
|
/** The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`) */
|
|
@@ -1258,8 +1350,17 @@ export interface CNumberFieldElement extends Omit<HTMLElement, 'decimals' | 'dec
|
|
|
1258
1350
|
fixedDecimals?: boolean;
|
|
1259
1351
|
/** The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`) */
|
|
1260
1352
|
groupSeparator?: string;
|
|
1261
|
-
/**
|
|
1353
|
+
/**
|
|
1354
|
+
* Hide the hint and error messages
|
|
1355
|
+
*
|
|
1356
|
+
* @deprecated Use `hide-message`.
|
|
1357
|
+
*/
|
|
1262
1358
|
hideDetails?: boolean;
|
|
1359
|
+
/**
|
|
1360
|
+
* Hide the message line — the hint and error messages under the field —
|
|
1361
|
+
* and the room it keeps.
|
|
1362
|
+
*/
|
|
1363
|
+
hideMessage?: boolean;
|
|
1263
1364
|
/** Hint text for the field */
|
|
1264
1365
|
hint?: string;
|
|
1265
1366
|
/**
|
|
@@ -1340,13 +1441,22 @@ export interface COtpInputElementEventMap {
|
|
|
1340
1441
|
'update:value': CustomEvent<string>;
|
|
1341
1442
|
}
|
|
1342
1443
|
/** A one-time-code field: a row of single-digit boxes, filled in order as the user types or pastes a code, under a group label and above a hint or error message. */
|
|
1343
|
-
export interface COtpInputElement extends Omit<HTMLElement, 'autofocus' | 'errorMessage' | 'hideDetails' | 'hint' | 'invalid' | 'label' | 'length' | 'required' | 'value'> {
|
|
1444
|
+
export interface COtpInputElement extends Omit<HTMLElement, 'autofocus' | 'errorMessage' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'label' | 'length' | 'required' | 'value'> {
|
|
1344
1445
|
/** Focus the first digit when the field mounts. */
|
|
1345
1446
|
autofocus?: boolean;
|
|
1346
1447
|
/** Error message shown in place of the hint while the input is invalid */
|
|
1347
1448
|
errorMessage?: string;
|
|
1348
|
-
/**
|
|
1449
|
+
/**
|
|
1450
|
+
* Hide the hint and error messages
|
|
1451
|
+
*
|
|
1452
|
+
* @deprecated Use `hide-message`.
|
|
1453
|
+
*/
|
|
1349
1454
|
hideDetails?: boolean;
|
|
1455
|
+
/**
|
|
1456
|
+
* Hide the message line — the hint and error messages under the field —
|
|
1457
|
+
* and the room it keeps.
|
|
1458
|
+
*/
|
|
1459
|
+
hideMessage?: boolean;
|
|
1350
1460
|
/** Hint text for the input */
|
|
1351
1461
|
hint?: string;
|
|
1352
1462
|
/**
|
|
@@ -1524,13 +1634,22 @@ export interface CRadioGroupElementEventMap {
|
|
|
1524
1634
|
'update:value': CustomEvent<string>;
|
|
1525
1635
|
}
|
|
1526
1636
|
/** 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. */
|
|
1527
|
-
export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'inline' | 'invalid' | 'label' | 'required' | 'value'> {
|
|
1637
|
+
export interface CRadioGroupElement extends Omit<HTMLElement, 'disabled' | 'errorMessage' | 'hideDetails' | 'hideMessage' | 'hint' | 'inline' | 'invalid' | 'label' | 'required' | 'value'> {
|
|
1528
1638
|
/** Disable the radio group */
|
|
1529
1639
|
disabled?: boolean;
|
|
1530
1640
|
/** Error message shown in place of the hint while the group is invalid */
|
|
1531
1641
|
errorMessage?: string;
|
|
1532
|
-
/**
|
|
1642
|
+
/**
|
|
1643
|
+
* Hide the hint and error messages
|
|
1644
|
+
*
|
|
1645
|
+
* @deprecated Use `hide-message`.
|
|
1646
|
+
*/
|
|
1533
1647
|
hideDetails?: boolean;
|
|
1648
|
+
/**
|
|
1649
|
+
* Hide the message line — the hint and error messages under the field —
|
|
1650
|
+
* and the room it keeps.
|
|
1651
|
+
*/
|
|
1652
|
+
hideMessage?: boolean;
|
|
1534
1653
|
/** Hint text for the input */
|
|
1535
1654
|
hint?: string;
|
|
1536
1655
|
/** Display radio buttons inline */
|
|
@@ -1578,15 +1697,24 @@ export interface CSelectElementEventMap {
|
|
|
1578
1697
|
'update:value': CustomEvent<CSelectValue>;
|
|
1579
1698
|
}
|
|
1580
1699
|
/** 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`. */
|
|
1581
|
-
export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'invalid' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'maxTags' | 'multiple' | 'name' | 'optionAsSelection' | 'placeholder' | 'required' | 'returnObject' | 'selectAll' | 'shadow' | 'size' | 'texts' | 'value'> {
|
|
1700
|
+
export interface CSelectElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'loading' | 'maxTags' | 'multiple' | 'name' | 'optionAsSelection' | 'placeholder' | 'required' | 'returnObject' | 'selectAll' | 'shadow' | 'size' | 'texts' | 'value'> {
|
|
1582
1701
|
/** Make the selected value clearable */
|
|
1583
1702
|
clearable?: boolean;
|
|
1584
1703
|
/** Disable the input */
|
|
1585
1704
|
disabled?: boolean;
|
|
1586
1705
|
/** Error message shown in place of the hint while the select is invalid */
|
|
1587
1706
|
errorMessage?: string;
|
|
1588
|
-
/**
|
|
1707
|
+
/**
|
|
1708
|
+
* Hide the hint and error messages
|
|
1709
|
+
*
|
|
1710
|
+
* @deprecated Use `hide-message`.
|
|
1711
|
+
*/
|
|
1589
1712
|
hideDetails?: boolean;
|
|
1713
|
+
/**
|
|
1714
|
+
* Hide the message line — the hint and error messages under the field —
|
|
1715
|
+
* and the room it keeps.
|
|
1716
|
+
*/
|
|
1717
|
+
hideMessage?: boolean;
|
|
1590
1718
|
/** Hint text for the input */
|
|
1591
1719
|
hint?: string;
|
|
1592
1720
|
/**
|
|
@@ -1698,13 +1826,27 @@ export interface CSideNavigationItemElementEventMap {
|
|
|
1698
1826
|
value: string | undefined;
|
|
1699
1827
|
}>;
|
|
1700
1828
|
}
|
|
1701
|
-
/** One entry of a `c-side-navigation`: its label text, after an optional leading `c-icon`, goes in the default slot, and activating it fires `select` with its `value`; with `href` it is a real link, opened in `target`, and without one a button. Write `c-sub-navigation-item` children inside it to make it an expandable parent,
|
|
1702
|
-
export interface CSideNavigationItemElement extends Omit<HTMLElement, 'active' | 'collapsed' | 'href' | 'loading' | 'target' | 'value'> {
|
|
1829
|
+
/** One entry of a `c-side-navigation`: its label text, after an optional leading `c-icon`, goes in the default slot, and activating it fires `select` with its `value`; with `href` it is a real link, opened in `target`, and without one a button. Write `c-sub-navigation-item` children inside it to make it an expandable parent, shown open while `expanded`; an item without sub-items marks the page shown with `current`. */
|
|
1830
|
+
export interface CSideNavigationItemElement extends Omit<HTMLElement, 'active' | 'collapsed' | 'current' | 'expanded' | 'href' | 'loading' | 'target' | 'value'> {
|
|
1703
1831
|
/**
|
|
1704
1832
|
* On an item without sub-items, mark the current page
|
|
1705
1833
|
* (`aria-current="page"`); on a parent, expand its sub-items.
|
|
1834
|
+
*
|
|
1835
|
+
* @deprecated Use `current` on an item without sub-items and `expanded` on a parent.
|
|
1706
1836
|
*/
|
|
1707
1837
|
active?: boolean;
|
|
1838
|
+
/**
|
|
1839
|
+
* Mark the item as the page shown (`aria-current="page"`), on an item
|
|
1840
|
+
* without sub-items. Bind it from the page your router or the URL shows:
|
|
1841
|
+
* the navigation never sets it.
|
|
1842
|
+
*/
|
|
1843
|
+
current?: boolean;
|
|
1844
|
+
/**
|
|
1845
|
+
* Show a parent item's sub-items. The navigation sets it as parents open
|
|
1846
|
+
* and close, collapsing the other top-level parents; set it to open one
|
|
1847
|
+
* initially.
|
|
1848
|
+
*/
|
|
1849
|
+
expanded?: boolean;
|
|
1708
1850
|
/** URL that makes the item a real link; without it the item is a button. */
|
|
1709
1851
|
href?: string;
|
|
1710
1852
|
/** Cover the item with a loading overlay: a translucent scrim and a spinner. */
|
|
@@ -1743,7 +1885,7 @@ export interface CSliderElementEventMap {
|
|
|
1743
1885
|
'update:value': CustomEvent<number>;
|
|
1744
1886
|
}
|
|
1745
1887
|
/** A slider for picking a number from a range by dragging a thumb along a track, with a label, a value bubble and optional tick marks. */
|
|
1746
|
-
export interface CSliderElement extends Omit<HTMLElement, 'disabled' | 'disableTooltip' | 'label' | 'labels' | 'max' | 'min' | 'name' | 'segments' | 'step' | 'ticks' | 'unit' | 'value'> {
|
|
1888
|
+
export interface CSliderElement extends Omit<HTMLElement, 'disabled' | 'disableTooltip' | 'label' | 'labels' | 'max' | 'min' | 'name' | 'segments' | 'step' | 'tickLabels' | 'ticks' | 'unit' | 'value'> {
|
|
1747
1889
|
/** Disable the slider */
|
|
1748
1890
|
disabled?: boolean;
|
|
1749
1891
|
/**
|
|
@@ -1756,6 +1898,8 @@ export interface CSliderElement extends Omit<HTMLElement, 'disabled' | 'disableT
|
|
|
1756
1898
|
/**
|
|
1757
1899
|
* Write a number under the track at each tick mark position, `segments`
|
|
1758
1900
|
* apart, formatted like the value bubble's; shown with or without `ticks`
|
|
1901
|
+
*
|
|
1902
|
+
* @deprecated Use `tick-labels`.
|
|
1759
1903
|
*/
|
|
1760
1904
|
labels?: boolean;
|
|
1761
1905
|
/** The largest value. */
|
|
@@ -1771,6 +1915,11 @@ export interface CSliderElement extends Omit<HTMLElement, 'disabled' | 'disableT
|
|
|
1771
1915
|
segments?: number;
|
|
1772
1916
|
/** Step between values. */
|
|
1773
1917
|
step?: number;
|
|
1918
|
+
/**
|
|
1919
|
+
* Write a number under the track at each tick mark position, `segments`
|
|
1920
|
+
* apart, formatted like the value bubble's; shown with or without `ticks`
|
|
1921
|
+
*/
|
|
1922
|
+
tickLabels?: boolean;
|
|
1774
1923
|
/** Draw tick marks along the track, `segments` apart. */
|
|
1775
1924
|
ticks?: boolean;
|
|
1776
1925
|
/** Unit shown after the value in the tooltip and read with it, e.g. `%`. */
|
|
@@ -1788,7 +1937,7 @@ export interface CSliderElement extends Omit<HTMLElement, 'disabled' | 'disableT
|
|
|
1788
1937
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1789
1938
|
}
|
|
1790
1939
|
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
1791
|
-
export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'width'> {
|
|
1940
|
+
export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'thickness' | 'width'> {
|
|
1792
1941
|
/**
|
|
1793
1942
|
* Stroke colour, the primary role by default; `currentColor` follows the
|
|
1794
1943
|
* surrounding text colour.
|
|
@@ -1796,7 +1945,13 @@ export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 'w
|
|
|
1796
1945
|
color?: string;
|
|
1797
1946
|
/** Diameter in pixels. */
|
|
1798
1947
|
size?: number;
|
|
1799
|
-
/** Stroke
|
|
1948
|
+
/** Stroke thickness in pixels: 2 unless set. */
|
|
1949
|
+
thickness?: number;
|
|
1950
|
+
/**
|
|
1951
|
+
* Stroke width in pixels.
|
|
1952
|
+
*
|
|
1953
|
+
* @deprecated Use `thickness`.
|
|
1954
|
+
*/
|
|
1800
1955
|
width?: number;
|
|
1801
1956
|
}
|
|
1802
1957
|
/** A status pill: a short word naming the state of a record, such as Active, Pending or Failed, tinted with the colours of its status type. */
|
|
@@ -1825,13 +1980,21 @@ export interface CSubNavigationItemElementEventMap {
|
|
|
1825
1980
|
value: string | undefined;
|
|
1826
1981
|
}>;
|
|
1827
1982
|
}
|
|
1828
|
-
/** A second-level entry of a `c-side-navigation`, written inside the `c-side-navigation-item` it belongs to (no `slot` attribute needed) and shown while that parent is `
|
|
1829
|
-
export interface CSubNavigationItemElement extends Omit<HTMLElement, 'active' | 'collapsed' | 'href' | 'loading' | 'target' | 'value'> {
|
|
1983
|
+
/** A second-level entry of a `c-side-navigation`, written inside the `c-side-navigation-item` it belongs to (no `slot` attribute needed) and shown while that parent is `expanded`. Activating it fires `select` with its `value` and closes the mobile drawer. It does not mark itself as the current page: set `current` on the sub-item of the page shown, and `expanded` on its parent. */
|
|
1984
|
+
export interface CSubNavigationItemElement extends Omit<HTMLElement, 'active' | 'collapsed' | 'current' | 'href' | 'loading' | 'target' | 'value'> {
|
|
1830
1985
|
/**
|
|
1831
1986
|
* Mark the sub-item as the current page (`aria-current="page"`); set `active`
|
|
1832
1987
|
* on its parent item too, so the parent is expanded.
|
|
1988
|
+
*
|
|
1989
|
+
* @deprecated Use `current`.
|
|
1833
1990
|
*/
|
|
1834
1991
|
active?: boolean;
|
|
1992
|
+
/**
|
|
1993
|
+
* Mark the sub-item as the page shown (`aria-current="page"`), and set
|
|
1994
|
+
* `expanded` on its parent item so the parent is open. Bind it from the
|
|
1995
|
+
* page your router or the URL shows: the navigation never sets it.
|
|
1996
|
+
*/
|
|
1997
|
+
current?: boolean;
|
|
1835
1998
|
/**
|
|
1836
1999
|
* URL that makes the sub-item a real link; without it the sub-item is a
|
|
1837
2000
|
* button.
|
|
@@ -2075,7 +2238,7 @@ export interface CTextFieldElementEventMap {
|
|
|
2075
2238
|
'update:value': CustomEvent<string>;
|
|
2076
2239
|
}
|
|
2077
2240
|
/** A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message. */
|
|
2078
|
-
export interface CTextFieldElement extends Omit<HTMLElement, 'autocapitalize' | 'autocomplete' | 'autocorrect' | 'autofocus' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'mask' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'size' | 'step' | 'trimWhitespace' | 'type' | 'value'> {
|
|
2241
|
+
export interface CTextFieldElement extends Omit<HTMLElement, 'autocapitalize' | 'autocomplete' | 'autocorrect' | 'autofocus' | 'disabled' | 'errorMessage' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'mask' | 'max' | 'min' | 'name' | 'placeholder' | 'readonly' | 'required' | 'rows' | 'shadow' | 'size' | 'step' | 'trimWhitespace' | 'type' | 'value'> {
|
|
2079
2242
|
/**
|
|
2080
2243
|
* How on-screen keyboards capitalize typed text, as the native
|
|
2081
2244
|
* `autocapitalize` attribute; unset leaves the browser's default
|
|
@@ -2103,8 +2266,17 @@ export interface CTextFieldElement extends Omit<HTMLElement, 'autocapitalize' |
|
|
|
2103
2266
|
disabled?: boolean;
|
|
2104
2267
|
/** Error message shown in place of the hint while the input is invalid */
|
|
2105
2268
|
errorMessage?: string;
|
|
2106
|
-
/**
|
|
2269
|
+
/**
|
|
2270
|
+
* Hide the hint and error messages
|
|
2271
|
+
*
|
|
2272
|
+
* @deprecated Use `hide-message`.
|
|
2273
|
+
*/
|
|
2107
2274
|
hideDetails?: boolean;
|
|
2275
|
+
/**
|
|
2276
|
+
* Hide the message line — the hint and error messages under the field —
|
|
2277
|
+
* and the room it keeps.
|
|
2278
|
+
*/
|
|
2279
|
+
hideMessage?: boolean;
|
|
2108
2280
|
/** Hint text for the input */
|
|
2109
2281
|
hint?: string;
|
|
2110
2282
|
/**
|
|
@@ -2203,7 +2375,7 @@ export interface CTimePickerElementEventMap {
|
|
|
2203
2375
|
'update:value': CustomEvent<CTimePickerValue>;
|
|
2204
2376
|
}
|
|
2205
2377
|
/** 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`. */
|
|
2206
|
-
export interface CTimePickerElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'format' | 'hideDetails' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'max' | 'min' | 'minuteStep' | 'name' | 'placeholder' | 'range' | 'required' | 'shadow' | 'showNow' | 'size' | 'texts' | 'value'> {
|
|
2378
|
+
export interface CTimePickerElement extends Omit<HTMLElement, 'clearable' | 'disabled' | 'errorMessage' | 'format' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'label' | 'labelOnTop' | 'max' | 'min' | 'minuteStep' | 'name' | 'placeholder' | 'range' | 'required' | 'shadow' | 'showNow' | 'size' | 'texts' | 'value'> {
|
|
2207
2379
|
/** Make the value clearable */
|
|
2208
2380
|
clearable?: boolean;
|
|
2209
2381
|
/** Disable the field */
|
|
@@ -2216,8 +2388,17 @@ export interface CTimePickerElement extends Omit<HTMLElement, 'clearable' | 'dis
|
|
|
2216
2388
|
* any separators, e.g. `HH:mm` or `h:mm a`
|
|
2217
2389
|
*/
|
|
2218
2390
|
format?: string;
|
|
2219
|
-
/**
|
|
2391
|
+
/**
|
|
2392
|
+
* Hide the hint and error messages
|
|
2393
|
+
*
|
|
2394
|
+
* @deprecated Use `hide-message`.
|
|
2395
|
+
*/
|
|
2220
2396
|
hideDetails?: boolean;
|
|
2397
|
+
/**
|
|
2398
|
+
* Hide the message line — the hint and error messages under the field —
|
|
2399
|
+
* and the room it keeps.
|
|
2400
|
+
*/
|
|
2401
|
+
hideMessage?: boolean;
|
|
2221
2402
|
/** Hint text for the field */
|
|
2222
2403
|
hint?: string;
|
|
2223
2404
|
/**
|
|
@@ -2291,19 +2472,40 @@ export interface CToastsElementEventMap {
|
|
|
2291
2472
|
close: CustomEvent<CToastMessage>;
|
|
2292
2473
|
}
|
|
2293
2474
|
/** Toasts are passive, transient notifications — operation results, background progress — stacked and managed by a single `c-toasts` container via its `addToast` / `removeToast` methods. `addToast` returns the message's `id` (its own, or a generated one), which `removeToast` takes; `close` fires on the container with the message once a toast has left. */
|
|
2294
|
-
export interface CToastsElement extends Omit<HTMLElement, 'absolute' | 'horizontal' | 'vertical'> {
|
|
2475
|
+
export interface CToastsElement extends Omit<HTMLElement, 'absolute' | 'contained' | 'horizontal' | 'position' | 'vertical'> {
|
|
2295
2476
|
/**
|
|
2296
2477
|
* Places the stack in its nearest positioned ancestor instead of the
|
|
2297
2478
|
* viewport, for in-container notifications. Such a stack is not
|
|
2298
2479
|
* guaranteed to paint above an open modal.
|
|
2480
|
+
*
|
|
2481
|
+
* @deprecated Use `contained`.
|
|
2299
2482
|
*/
|
|
2300
2483
|
absolute?: boolean;
|
|
2484
|
+
/**
|
|
2485
|
+
* Keep the stack inside its nearest positioned ancestor instead of the
|
|
2486
|
+
* viewport, for in-container notifications. Such a stack is not
|
|
2487
|
+
* guaranteed to paint above an open modal.
|
|
2488
|
+
*/
|
|
2489
|
+
contained?: boolean;
|
|
2301
2490
|
/**
|
|
2302
2491
|
* Where the stack sits across the viewport, or across its container
|
|
2303
2492
|
* under `absolute`.
|
|
2493
|
+
*
|
|
2494
|
+
* @deprecated Use `position`.
|
|
2304
2495
|
*/
|
|
2305
2496
|
horizontal?: 'center' | 'left' | 'right';
|
|
2306
|
-
/**
|
|
2497
|
+
/**
|
|
2498
|
+
* Where the stack sits in the viewport, or in its container when
|
|
2499
|
+
* `contained`: `bottom` (unless set), `bottom-start`, `bottom-end`,
|
|
2500
|
+
* `top`, `top-start` or `top-end`. Toasts slide in from the top or bottom
|
|
2501
|
+
* edge.
|
|
2502
|
+
*/
|
|
2503
|
+
position?: 'bottom-end' | 'bottom-start' | 'bottom' | 'top-end' | 'top-start' | 'top';
|
|
2504
|
+
/**
|
|
2505
|
+
* The edge the stack is anchored to; toasts slide in from it.
|
|
2506
|
+
*
|
|
2507
|
+
* @deprecated Use `position`.
|
|
2508
|
+
*/
|
|
2307
2509
|
vertical?: 'bottom' | 'top';
|
|
2308
2510
|
/**
|
|
2309
2511
|
* Show a message as a toast and return its `id` — the message's own, or a
|
|
@@ -2392,7 +2594,7 @@ export interface CTreeSelectElementEventMap {
|
|
|
2392
2594
|
'update:value': CustomEvent<CTreeSelectValue>;
|
|
2393
2595
|
}
|
|
2394
2596
|
/** 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. */
|
|
2395
|
-
export interface CTreeSelectElement extends Omit<HTMLElement, 'allowBranch' | 'clearable' | 'disabled' | 'errorMessage' | 'filter' | 'hideDetails' | 'hint' | 'invalid' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'levelLabels' | 'name' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'size' | 'texts' | 'value'> {
|
|
2597
|
+
export interface CTreeSelectElement extends Omit<HTMLElement, 'allowBranch' | 'clearable' | 'disabled' | 'errorMessage' | 'filter' | 'hideDetails' | 'hideMessage' | 'hint' | 'invalid' | 'items' | 'itemsPerPage' | 'label' | 'labelOnTop' | 'levelLabels' | 'name' | 'placeholder' | 'required' | 'returnObject' | 'shadow' | 'size' | 'texts' | 'value'> {
|
|
2396
2598
|
/**
|
|
2397
2599
|
* Let a branch be committed as the value: a pinned select-branch row heads
|
|
2398
2600
|
* every level below the root, and matching branches are listed as search
|
|
@@ -2410,8 +2612,17 @@ export interface CTreeSelectElement extends Omit<HTMLElement, 'allowBranch' | 'c
|
|
|
2410
2612
|
* ancestors. Functions have no attribute form — bind as a DOM property
|
|
2411
2613
|
*/
|
|
2412
2614
|
filter?: CTreeSelectFilter;
|
|
2413
|
-
/**
|
|
2615
|
+
/**
|
|
2616
|
+
* Hide the hint and error messages
|
|
2617
|
+
*
|
|
2618
|
+
* @deprecated Use `hide-message`.
|
|
2619
|
+
*/
|
|
2414
2620
|
hideDetails?: boolean;
|
|
2621
|
+
/**
|
|
2622
|
+
* Hide the message line — the hint and error messages under the field —
|
|
2623
|
+
* and the room it keeps.
|
|
2624
|
+
*/
|
|
2625
|
+
hideMessage?: boolean;
|
|
2415
2626
|
/** Hint text for the field */
|
|
2416
2627
|
hint?: string;
|
|
2417
2628
|
/**
|
|
@@ -2478,35 +2689,35 @@ export interface CTreeSelectElement extends Omit<HTMLElement, 'allowBranch' | 'c
|
|
|
2478
2689
|
* always wins over an app default.
|
|
2479
2690
|
*/
|
|
2480
2691
|
export interface CAppDefaults {
|
|
2481
|
-
'c-autocomplete'?: Partial<Pick<CAutocompleteElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2692
|
+
'c-autocomplete'?: Partial<Pick<CAutocompleteElement, 'hideDetails' | 'hideMessage' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2482
2693
|
'c-breadcrumb'?: Partial<Pick<CBreadcrumbElement, 'texts'>>;
|
|
2483
|
-
'c-color-picker'?: Partial<Pick<CColorPickerElement, 'alpha' | 'format' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2694
|
+
'c-color-picker'?: Partial<Pick<CColorPickerElement, 'alpha' | 'format' | 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2484
2695
|
'c-data-table'?: Partial<Pick<CDataTableElement, 'texts'>>;
|
|
2485
|
-
'c-date-picker'?: Partial<Pick<CDatePickerElement, 'firstDayOfWeek' | 'format' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'showToday' | 'showWeekNumbers' | 'size' | 'texts'>>;
|
|
2486
|
-
'c-file-upload'?: Partial<Pick<CFileUploadElement, 'compact' | 'hideDetails' | 'size' | 'texts'>>;
|
|
2696
|
+
'c-date-picker'?: Partial<Pick<CDatePickerElement, 'firstDayOfWeek' | 'format' | 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'showToday' | 'showWeekNumbers' | 'size' | 'texts'>>;
|
|
2697
|
+
'c-file-upload'?: Partial<Pick<CFileUploadElement, 'compact' | 'hideDetails' | 'hideMessage' | 'size' | 'texts'>>;
|
|
2487
2698
|
'c-navigation-button'?: Partial<Pick<CNavigationButtonElement, 'texts'>>;
|
|
2488
|
-
'c-number-field'?: Partial<Pick<CNumberFieldElement, 'decimalSeparator' | 'decimals' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'size' | 'step' | 'texts'>>;
|
|
2699
|
+
'c-number-field'?: Partial<Pick<CNumberFieldElement, 'decimalSeparator' | 'decimals' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'size' | 'step' | 'texts'>>;
|
|
2489
2700
|
'c-pagination'?: Partial<Pick<CPaginationElement, 'texts'>>;
|
|
2490
|
-
'c-select'?: Partial<Pick<CSelectElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2491
|
-
'c-text-field'?: Partial<Pick<CTextFieldElement, 'hideDetails' | 'labelOnTop' | 'shadow' | 'size'>>;
|
|
2492
|
-
'c-time-picker'?: Partial<Pick<CTimePickerElement, 'format' | 'hideDetails' | 'labelOnTop' | 'shadow' | 'showNow' | 'size' | 'texts'>>;
|
|
2493
|
-
'c-tree-select'?: Partial<Pick<CTreeSelectElement, 'hideDetails' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2701
|
+
'c-select'?: Partial<Pick<CSelectElement, 'hideDetails' | 'hideMessage' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2702
|
+
'c-text-field'?: Partial<Pick<CTextFieldElement, 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'size'>>;
|
|
2703
|
+
'c-time-picker'?: Partial<Pick<CTimePickerElement, 'format' | 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'showNow' | 'size' | 'texts'>>;
|
|
2704
|
+
'c-tree-select'?: Partial<Pick<CTreeSelectElement, 'hideDetails' | 'hideMessage' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2494
2705
|
}
|
|
2495
2706
|
/** Runtime allow-list behind `applyDefaults()` validation — the same data as `CAppDefaults`. */
|
|
2496
2707
|
export declare const DEFAULTABLE_PROPS: {
|
|
2497
|
-
readonly 'c-autocomplete': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2708
|
+
readonly 'c-autocomplete': readonly ["hideDetails", "hideMessage", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2498
2709
|
readonly 'c-breadcrumb': readonly ["texts"];
|
|
2499
|
-
readonly 'c-color-picker': readonly ["alpha", "format", "hideDetails", "labelOnTop", "shadow", "size", "texts"];
|
|
2710
|
+
readonly 'c-color-picker': readonly ["alpha", "format", "hideDetails", "hideMessage", "labelOnTop", "shadow", "size", "texts"];
|
|
2500
2711
|
readonly 'c-data-table': readonly ["texts"];
|
|
2501
|
-
readonly 'c-date-picker': readonly ["firstDayOfWeek", "format", "hideDetails", "labelOnTop", "shadow", "showToday", "showWeekNumbers", "size", "texts"];
|
|
2502
|
-
readonly 'c-file-upload': readonly ["compact", "hideDetails", "size", "texts"];
|
|
2712
|
+
readonly 'c-date-picker': readonly ["firstDayOfWeek", "format", "hideDetails", "hideMessage", "labelOnTop", "shadow", "showToday", "showWeekNumbers", "size", "texts"];
|
|
2713
|
+
readonly 'c-file-upload': readonly ["compact", "hideDetails", "hideMessage", "size", "texts"];
|
|
2503
2714
|
readonly 'c-navigation-button': readonly ["texts"];
|
|
2504
|
-
readonly 'c-number-field': readonly ["decimalSeparator", "decimals", "fixedDecimals", "groupSeparator", "hideDetails", "labelOnTop", "shadow", "size", "step", "texts"];
|
|
2715
|
+
readonly 'c-number-field': readonly ["decimalSeparator", "decimals", "fixedDecimals", "groupSeparator", "hideDetails", "hideMessage", "labelOnTop", "shadow", "size", "step", "texts"];
|
|
2505
2716
|
readonly 'c-pagination': readonly ["texts"];
|
|
2506
|
-
readonly 'c-select': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2507
|
-
readonly 'c-text-field': readonly ["hideDetails", "labelOnTop", "shadow", "size"];
|
|
2508
|
-
readonly 'c-time-picker': readonly ["format", "hideDetails", "labelOnTop", "shadow", "showNow", "size", "texts"];
|
|
2509
|
-
readonly 'c-tree-select': readonly ["hideDetails", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2717
|
+
readonly 'c-select': readonly ["hideDetails", "hideMessage", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2718
|
+
readonly 'c-text-field': readonly ["hideDetails", "hideMessage", "labelOnTop", "shadow", "size"];
|
|
2719
|
+
readonly 'c-time-picker': readonly ["format", "hideDetails", "hideMessage", "labelOnTop", "shadow", "showNow", "size", "texts"];
|
|
2720
|
+
readonly 'c-tree-select': readonly ["hideDetails", "hideMessage", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2510
2721
|
};
|
|
2511
2722
|
/** Tags dispatching the v-model contract event `update:value` — the value controls (CONTEXT.md). */
|
|
2512
2723
|
export declare const VALUE_TAGS: readonly ["c-accordion", "c-autocomplete", "c-button-group", "c-checkbox", "c-color-picker", "c-date-picker", "c-file-upload", "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"];
|