@cscfi/csc-ui 4.0.0-alpha.9 → 4.0.0-rc.2
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/README.md +36 -2
- package/dist/csc-ui.js +22771 -14908
- package/dist/custom-elements.json +8943 -5632
- package/dist/docs/c-accordion/usage.md +60 -0
- package/dist/docs/c-accordion-item/usage.md +1 -0
- package/dist/docs/c-alert/usage.md +5 -5
- package/dist/docs/c-autocomplete/usage.md +156 -0
- package/dist/docs/c-badge/usage.md +50 -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/usage.md +13 -0
- package/dist/docs/c-button-group/usage.md +16 -2
- package/dist/docs/c-card/usage.md +55 -0
- package/dist/docs/c-card-actions/usage.md +1 -0
- package/dist/docs/c-card-content/usage.md +1 -0
- package/dist/docs/c-card-title/usage.md +3 -0
- package/dist/docs/c-checkbox/usage.md +37 -5
- package/dist/docs/c-color-picker/usage.md +160 -0
- package/dist/docs/c-csc-logo/usage.md +25 -0
- package/dist/docs/c-data-table/usage.md +180 -0
- package/dist/docs/c-date-picker/usage.md +224 -0
- package/dist/docs/c-divider/usage.md +36 -0
- package/dist/docs/c-file-upload/usage.md +189 -0
- package/dist/docs/c-icon/usage.md +51 -0
- package/dist/docs/c-icon-button/usage.md +80 -0
- package/dist/docs/c-link/usage.md +45 -1
- package/dist/docs/c-list/usage.md +50 -0
- package/dist/docs/c-list-item/usage.md +1 -0
- package/dist/docs/c-list-item-title/usage.md +1 -0
- package/dist/docs/c-loader/usage.md +52 -1
- package/dist/docs/c-login-button/usage.md +1 -0
- package/dist/docs/c-login-buttons/usage.md +48 -0
- package/dist/docs/c-login-card/usage.md +45 -0
- package/dist/docs/c-login-card-actions/usage.md +1 -0
- package/dist/docs/c-login-card-content/usage.md +1 -0
- package/dist/docs/c-login-card-title/usage.md +3 -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 +11 -0
- package/dist/docs/c-message/usage.md +56 -0
- package/dist/docs/c-modal/usage.md +18 -12
- package/dist/docs/c-navigation-button/usage.md +32 -0
- package/dist/docs/c-number-field/usage.md +114 -0
- package/dist/docs/c-option/usage.md +1 -0
- package/dist/docs/c-option-value/usage.md +1 -0
- package/dist/docs/c-otp-input/usage.md +95 -0
- package/dist/docs/c-page/usage.md +44 -0
- package/dist/docs/c-pagination/usage.md +69 -0
- package/dist/docs/c-popover/usage.md +1 -1
- package/dist/docs/c-progress-bar/usage.md +1 -1
- package/dist/docs/c-progress-circle/usage.md +1 -1
- package/dist/docs/c-radio/usage.md +9 -6
- package/dist/docs/c-radio-group/usage.md +5 -6
- package/dist/docs/c-select/usage.md +131 -0
- package/dist/docs/c-side-navigation/usage.md +70 -0
- package/dist/docs/c-side-navigation-item/usage.md +1 -0
- package/dist/docs/c-side-navigation-title/usage.md +1 -0
- package/dist/docs/c-slider/usage.md +78 -0
- package/dist/docs/c-spinner/usage.md +1 -1
- package/dist/docs/c-status/usage.md +46 -0
- package/dist/docs/c-step/usage.md +1 -0
- package/dist/docs/c-steps/usage.md +35 -0
- package/dist/docs/c-sub-navigation-item/usage.md +1 -0
- package/dist/docs/c-switch/usage.md +10 -3
- package/dist/docs/c-tab/usage.md +1 -0
- package/dist/docs/c-tab-buttons/usage.md +15 -0
- package/dist/docs/c-tab-item/usage.md +1 -0
- package/dist/docs/c-tab-items/usage.md +1 -0
- package/dist/docs/c-table/usage.md +1 -1
- package/dist/docs/c-tabs/usage.md +77 -0
- package/dist/docs/c-tag/usage.md +1 -0
- package/dist/docs/c-tags/usage.md +85 -0
- package/dist/docs/c-text-field/usage.md +109 -0
- package/dist/docs/c-time-picker/usage.md +170 -0
- package/dist/docs/c-toasts/usage.md +27 -3
- package/dist/docs/c-toolbar/usage.md +17 -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 +2 -1
- package/dist/styles/css/tokens.css +609 -178
- package/dist/vscode.css-custom-data.json +556 -99
- package/dist/vscode.html-custom-data.json +1050 -480
- package/dist/web-types.json +3303 -1707
- package/dist-types/components/c-accordion/CAccordion.vue.d.ts +21 -25
- package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +13 -12
- package/dist-types/components/c-alert/CAlert.vue.d.ts +12 -17
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +124 -31
- 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 +52 -63
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +16 -14
- package/dist-types/components/c-card/CCard.vue.d.ts +2 -3
- package/dist-types/components/c-card-actions/CCardActions.vue.d.ts +5 -7
- package/dist-types/components/c-card-title/CCardTitle.vue.d.ts +11 -1
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +33 -52
- package/dist-types/components/c-color-picker/CColorPicker.vue.d.ts +189 -0
- package/dist-types/components/c-color-picker/colors.d.ts +66 -0
- package/dist-types/components/c-csc-logo/CCscLogo.vue.d.ts +1 -3
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +75 -51
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +277 -0
- package/dist-types/components/c-date-picker/dates.d.ts +119 -0
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +51 -8
- package/dist-types/components/c-file-upload/CFileUpload.vue.d.ts +204 -0
- package/dist-types/components/c-file-upload/files.d.ts +99 -0
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +23 -36
- package/dist-types/components/c-input/CInput.vue.d.ts +21 -43
- package/dist-types/components/c-link/CLink.vue.d.ts +6 -14
- package/dist-types/components/c-list/CList.vue.d.ts +4 -6
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +14 -19
- package/dist-types/components/c-list-item-title/CListItemTitle.vue.d.ts +3 -2
- package/dist-types/components/c-loader/CLoader.vue.d.ts +13 -29
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +9 -9
- package/dist-types/components/c-login-card/CLoginCard.vue.d.ts +11 -16
- package/dist-types/components/c-login-card-actions/CLoginCardActions.vue.d.ts +5 -7
- package/dist-types/components/c-login-card-title/CLoginCardTitle.vue.d.ts +11 -1
- package/dist-types/components/c-main/CMain.vue.d.ts +12 -5
- package/dist-types/components/c-menu/CMenu.vue.d.ts +17 -16
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +27 -35
- package/dist-types/components/c-message/CMessage.vue.d.ts +5 -15
- package/dist-types/components/c-modal/CModal.vue.d.ts +3 -3
- package/dist-types/components/c-navigation-button/CNavigationButton.vue.d.ts +20 -1
- package/dist-types/components/c-number-field/CNumberField.vue.d.ts +169 -0
- package/dist-types/components/c-number-field/numbers.d.ts +58 -0
- package/dist-types/components/c-option/COption.vue.d.ts +1 -1
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +16 -30
- package/dist-types/components/c-page/CPage.vue.d.ts +2 -3
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +56 -26
- package/dist-types/components/c-popover/CPopover.vue.d.ts +11 -7
- package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +10 -14
- package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +7 -7
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +11 -8
- package/dist-types/components/c-select/CSelect.vue.d.ts +119 -35
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +10 -18
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +22 -14
- package/dist-types/components/c-slider/CSlider.vue.d.ts +29 -73
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +4 -8
- package/dist-types/components/c-status/CStatus.vue.d.ts +8 -9
- package/dist-types/components/c-step/CStep.vue.d.ts +6 -4
- package/dist-types/components/c-steps/CSteps.vue.d.ts +3 -7
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +23 -17
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +17 -30
- package/dist-types/components/c-tab/CTab.vue.d.ts +11 -28
- package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +11 -13
- package/dist-types/components/c-tab-item/CTabItem.vue.d.ts +4 -5
- package/dist-types/components/c-tab-items/CTabItems.vue.d.ts +5 -4
- package/dist-types/components/c-table/CTable.vue.d.ts +7 -7
- package/dist-types/components/c-tabs/CTabs.vue.d.ts +13 -20
- package/dist-types/components/c-tag/CTag.vue.d.ts +22 -21
- package/dist-types/components/c-tags/CTags.vue.d.ts +9 -10
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +74 -77
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +205 -0
- package/dist-types/components/c-time-picker/times.d.ts +82 -0
- package/dist-types/components/c-toast/CToast.vue.d.ts +3 -4
- package/dist-types/components/c-toast/swipe.d.ts +40 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +14 -16
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +12 -8
- package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +257 -0
- package/dist-types/index.d.ts +41 -32
- package/dist-types/registry.d.ts +9 -0
- package/dist-types/shared/FieldMessage.vue.d.ts +8 -5
- 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 +48 -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/navigationDrawer.d.ts +4 -0
- 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 +13 -10
- package/dist-types/shared/positionArea.d.ts +9 -4
- 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 +107 -0
- package/dist-types/shared/useControlAttrs.d.ts +8 -0
- package/dist-types/shared/useDesignatedTrigger.d.ts +5 -4
- package/dist-types/shared/useFallbackPosition.d.ts +71 -0
- package/dist-types/shared/useHostEmit.d.ts +38 -0
- package/dist-types/shared/useIdReferences.d.ts +39 -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 +108 -0
- package/dist-types/shared/valueEvents.d.ts +41 -0
- package/dist-types/shared/visualViewport.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +1572 -672
- package/dist-types/theme/applyTheme.d.ts +6 -6
- 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 -11
- package/package.json +32 -21
- package/dist/css-anchor-positioning-fn-RTxo68pt.js +0 -6447
- package/dist/docs/c-toast/usage.md +0 -1
- package/dist-types/shared/anchorPolyfill.d.ts +0 -24
- package/dist-types/shared/emitModelValue.d.ts +0 -37
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
import type { CFieldSize, CSelectItem } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* UI texts of `c-select`, shallow-merged over the English defaults. Static
|
|
4
|
+
* labels are strings; count- or label-interpolated ones are functions.
|
|
5
|
+
*/
|
|
6
|
+
export interface CSelectTexts {
|
|
7
|
+
/** Accessible label of the clear button. */
|
|
8
|
+
clearSelection?: string;
|
|
9
|
+
/** Accessible label of the close button in the fullscreen panel (narrow viewports). */
|
|
10
|
+
closePanel?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text of the overflow tag when `max-tags` folds the selection; receives the
|
|
13
|
+
* number of hidden tags.
|
|
14
|
+
*/
|
|
15
|
+
more?: (count: number) => string;
|
|
16
|
+
/** Accessible label of a tag's remove button; receives the option label. */
|
|
17
|
+
remove?: (label: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Label of the select-all row; receives the number of enabled options
|
|
20
|
+
* listed.
|
|
21
|
+
*/
|
|
22
|
+
selectAll?: (count: number) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Field text when `max-tags="0"` shows no tags; receives the selection
|
|
25
|
+
* count.
|
|
26
|
+
*/
|
|
27
|
+
selected?: (count: number) => string;
|
|
28
|
+
/** Accessible label of the chevron button that opens and closes the list. */
|
|
29
|
+
toggleOptions?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Selection value of `c-select`: the picked option's value — or the whole
|
|
33
|
+
* `{ name, value }` item with `return-object` — and `null` when nothing is
|
|
34
|
+
* selected. In `multiple` mode an array of them in the order they were
|
|
35
|
+
* picked, `[]` when empty.
|
|
36
|
+
*/
|
|
37
|
+
export type CSelectValue = (number | string)[] | CSelectItem | CSelectItem[] | null | number | string;
|
|
2
38
|
interface CSelectProps {
|
|
3
39
|
/** Make the selected value clearable */
|
|
4
40
|
clearable?: boolean;
|
|
@@ -10,7 +46,11 @@ interface CSelectProps {
|
|
|
10
46
|
* @freeform
|
|
11
47
|
*/
|
|
12
48
|
errorMessage?: string;
|
|
13
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Hide the hint and error messages
|
|
51
|
+
*
|
|
52
|
+
* @defaultable false
|
|
53
|
+
*/
|
|
14
54
|
hideDetails?: boolean;
|
|
15
55
|
/**
|
|
16
56
|
* Hint text for the input
|
|
@@ -19,14 +59,17 @@ interface CSelectProps {
|
|
|
19
59
|
*/
|
|
20
60
|
hint?: string;
|
|
21
61
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @freeform
|
|
62
|
+
* Show the control as invalid: its `error-message`, when set, replaces the
|
|
63
|
+
* hint, and the control is marked `aria-invalid`.
|
|
25
64
|
*/
|
|
26
|
-
|
|
65
|
+
invalid?: boolean;
|
|
27
66
|
/** Dropdown items (when not using <c-option> elements) */
|
|
28
67
|
items?: CSelectItem[];
|
|
29
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Items per page before adding scroll
|
|
70
|
+
*
|
|
71
|
+
* @defaultable 6
|
|
72
|
+
*/
|
|
30
73
|
itemsPerPage?: number;
|
|
31
74
|
/**
|
|
32
75
|
* Element label
|
|
@@ -34,10 +77,28 @@ interface CSelectProps {
|
|
|
34
77
|
* @freeform
|
|
35
78
|
*/
|
|
36
79
|
label?: string;
|
|
37
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Label on top of the input
|
|
82
|
+
*
|
|
83
|
+
* @defaultable false
|
|
84
|
+
*/
|
|
38
85
|
labelOnTop?: boolean;
|
|
39
86
|
/** Show loading state */
|
|
40
87
|
loading?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* In `multiple` mode, show at most this many selected-value tags and fold
|
|
90
|
+
* the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
|
|
91
|
+
* instead; unset shows every tag
|
|
92
|
+
*/
|
|
93
|
+
maxTags?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Allow selecting several options: rows toggle and the list stays open,
|
|
96
|
+
* `value` becomes an array of the selected values (items with
|
|
97
|
+
* `return-object`) in the order they were picked, and the picks show as
|
|
98
|
+
* tags inside the field. `option-as-selection` is ignored in this mode.
|
|
99
|
+
* Arrays have no attribute form — bind `value` as a DOM property
|
|
100
|
+
*/
|
|
101
|
+
multiple?: boolean;
|
|
41
102
|
/**
|
|
42
103
|
* Input field name
|
|
43
104
|
*
|
|
@@ -56,50 +117,73 @@ interface CSelectProps {
|
|
|
56
117
|
required?: boolean;
|
|
57
118
|
/** Return object instead of value */
|
|
58
119
|
returnObject?: boolean;
|
|
59
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* In `multiple` mode, pin a select-all row at the top of the list. Its
|
|
122
|
+
* checkbox shows whether none, some or all enabled options are selected;
|
|
123
|
+
* activating it selects every enabled option — or, when all are selected,
|
|
124
|
+
* unselects them. Ignored in single mode
|
|
125
|
+
*/
|
|
126
|
+
selectAll?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Shadow variant
|
|
129
|
+
*
|
|
130
|
+
* @defaultable false
|
|
131
|
+
*/
|
|
60
132
|
shadow?: boolean;
|
|
61
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Field height: the 52px default (the shared control height) or the 36px `small` box
|
|
135
|
+
*
|
|
136
|
+
* @defaultable 'default'
|
|
137
|
+
*/
|
|
62
138
|
size?: CFieldSize;
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
139
|
+
/**
|
|
140
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
141
|
+
* no attribute form — bind as a DOM property (`:texts.prop` in Vue)
|
|
142
|
+
*
|
|
143
|
+
* @defaultable {}
|
|
144
|
+
*/
|
|
145
|
+
texts?: CSelectTexts;
|
|
146
|
+
/**
|
|
147
|
+
* Selected value: the option's value, or the whole item with
|
|
148
|
+
* `return-object`; an array of them in `multiple` mode
|
|
149
|
+
*/
|
|
150
|
+
value?: CSelectValue;
|
|
67
151
|
}
|
|
68
|
-
declare
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
default?: (props: typeof __VLS_54) => any;
|
|
73
|
-
} & {
|
|
74
|
-
post?: (props: typeof __VLS_56) => any;
|
|
75
|
-
};
|
|
76
|
-
declare const __VLS_base: import("vue").DefineComponent<CSelectProps, {
|
|
77
|
-
reset: () => void;
|
|
152
|
+
declare const _default: typeof __VLS_export;
|
|
153
|
+
export default _default;
|
|
154
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelectProps, {
|
|
155
|
+
focus: (options?: FocusOptions) => void;
|
|
78
156
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSelectProps> & Readonly<{}>, {
|
|
79
157
|
label: string;
|
|
80
|
-
|
|
158
|
+
invalid: boolean;
|
|
81
159
|
name: string;
|
|
160
|
+
value: CSelectValue;
|
|
161
|
+
multiple: boolean;
|
|
162
|
+
itemsPerPage: number;
|
|
163
|
+
size: CFieldSize;
|
|
164
|
+
texts: CSelectTexts;
|
|
165
|
+
hideDetails: boolean;
|
|
166
|
+
labelOnTop: boolean;
|
|
167
|
+
shadow: boolean;
|
|
82
168
|
clearable: boolean;
|
|
83
169
|
disabled: boolean;
|
|
84
170
|
errorMessage: string;
|
|
85
|
-
hideDetails: boolean;
|
|
86
171
|
hint: string;
|
|
87
|
-
hostId: string;
|
|
88
172
|
items: CSelectItem[];
|
|
89
|
-
itemsPerPage: number;
|
|
90
|
-
labelOnTop: boolean;
|
|
91
173
|
loading: boolean;
|
|
174
|
+
maxTags: number;
|
|
92
175
|
placeholder: string;
|
|
93
176
|
required: boolean;
|
|
94
177
|
returnObject: boolean;
|
|
95
|
-
|
|
96
|
-
size: CFieldSize;
|
|
97
|
-
valid: boolean;
|
|
178
|
+
selectAll: boolean;
|
|
98
179
|
optionAsSelection: boolean;
|
|
99
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
180
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
181
|
+
pre?: (props: {}) => any;
|
|
182
|
+
} & {
|
|
183
|
+
default?: (props: {}) => any;
|
|
184
|
+
} & {
|
|
185
|
+
post?: (props: {}) => any;
|
|
186
|
+
}>;
|
|
103
187
|
type __VLS_WithSlots<T, S> = T & {
|
|
104
188
|
new (): {
|
|
105
189
|
$slots: S;
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
interface CSideNavigationProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
menuVisible?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Mobile version
|
|
10
|
-
*
|
|
11
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* Render the drawer as a panel that slides in from the right over a backdrop,
|
|
4
|
+
* opened and closed by `open` or a `c-navigation-button`; while open it is a
|
|
5
|
+
* modal dialog.
|
|
12
6
|
*/
|
|
13
7
|
mobile?: boolean;
|
|
14
8
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
9
|
+
* Whether the `mobile` drawer is open. A `c-navigation-button` anywhere on
|
|
10
|
+
* the page toggles it.
|
|
18
11
|
*/
|
|
19
|
-
|
|
12
|
+
open?: boolean;
|
|
20
13
|
}
|
|
21
|
-
declare var
|
|
14
|
+
declare var __VLS_16: {}, __VLS_18: {};
|
|
22
15
|
type __VLS_Slots = {} & {
|
|
23
|
-
default?: (props: typeof
|
|
16
|
+
default?: (props: typeof __VLS_16) => any;
|
|
24
17
|
} & {
|
|
25
|
-
bottom?: (props: typeof
|
|
18
|
+
bottom?: (props: typeof __VLS_18) => any;
|
|
26
19
|
};
|
|
27
20
|
declare const __VLS_base: import("vue").DefineComponent<CSideNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationProps> & Readonly<{}>, {
|
|
21
|
+
open: boolean;
|
|
28
22
|
mobile: boolean;
|
|
29
|
-
menuVisible: boolean;
|
|
30
|
-
styles: null | Record<string, string>;
|
|
31
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
interface CSideNavigationItemProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* On an item without sub-items, mark the current page
|
|
4
|
+
* (`aria-current="page"`); on a parent, expand its sub-items.
|
|
6
5
|
*/
|
|
7
6
|
active?: boolean;
|
|
8
|
-
/** Whether the item is in the keyboard tab order — a parent item sets this to false on its collapsed sub-items so hidden items aren't Tab-reachable */
|
|
9
|
-
focusable?: boolean;
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
8
|
+
* Whether the item sits under a collapsed parent item, which sets it so
|
|
9
|
+
* hidden items are not Tab-reachable.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
collapsed?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* URL that makes the item a real link; without it the item is a button.
|
|
12
16
|
*
|
|
13
|
-
* @seeded from csc-ui — verify
|
|
14
17
|
* @freeform any URL
|
|
15
18
|
*/
|
|
16
19
|
href?: string;
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @seeded from csc-ui — verify
|
|
21
|
+
* Cover the item with a loading overlay: a translucent scrim and a spinner.
|
|
21
22
|
*/
|
|
22
23
|
loading?: boolean;
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
+
* Where the `href` opens, as on a native `<a>`: the same tab unless set —
|
|
26
|
+
* `_blank` for a new one.
|
|
25
27
|
*
|
|
26
|
-
* @seeded from csc-ui — verify
|
|
27
28
|
* @freeform any browsing-context name (e.g. _blank, _self)
|
|
28
29
|
*/
|
|
29
30
|
target?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Value reported in the `select` event when the item is activated
|
|
33
|
+
*
|
|
34
|
+
* @freeform
|
|
35
|
+
*/
|
|
36
|
+
value?: string;
|
|
30
37
|
}
|
|
31
38
|
declare var __VLS_14: {}, __VLS_16: {};
|
|
32
39
|
type __VLS_Slots = {} & {
|
|
@@ -35,11 +42,12 @@ type __VLS_Slots = {} & {
|
|
|
35
42
|
'sub-item'?: (props: typeof __VLS_16) => any;
|
|
36
43
|
};
|
|
37
44
|
declare const __VLS_base: import("vue").DefineComponent<CSideNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationItemProps> & Readonly<{}>, {
|
|
45
|
+
value: string;
|
|
38
46
|
loading: boolean;
|
|
39
|
-
active: boolean;
|
|
40
47
|
href: string;
|
|
41
48
|
target: string;
|
|
42
|
-
|
|
49
|
+
active: boolean;
|
|
50
|
+
collapsed: boolean;
|
|
43
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
52
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
53
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,107 +1,63 @@
|
|
|
1
1
|
interface CSliderProps {
|
|
2
|
-
/**
|
|
3
|
-
* Aria label
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
|
-
* @freeform
|
|
7
|
-
*/
|
|
8
|
-
ariaLabelInternal?: string;
|
|
9
2
|
/**
|
|
10
3
|
* Disable the slider
|
|
11
|
-
*
|
|
12
|
-
* @seeded from csc-ui — verify
|
|
13
4
|
*/
|
|
14
5
|
disabled?: boolean;
|
|
15
6
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @seeded from csc-ui — verify
|
|
7
|
+
* Turn off the value bubble shown above the thumb while the slider is
|
|
8
|
+
* hovered, pressed or focused
|
|
19
9
|
*/
|
|
20
10
|
disableTooltip?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Id of the element
|
|
23
|
-
*
|
|
24
|
-
* @seeded from csc-ui — verify
|
|
25
|
-
* @freeform
|
|
26
|
-
*/
|
|
27
|
-
hostId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Id of the element
|
|
30
|
-
*
|
|
31
|
-
* @seeded from csc-ui — verify
|
|
32
|
-
* @freeform
|
|
33
|
-
*/
|
|
34
|
-
hostName?: string;
|
|
35
11
|
/**
|
|
36
12
|
* Label of the slider
|
|
37
13
|
*
|
|
38
|
-
* @seeded from csc-ui — verify
|
|
39
14
|
* @freeform
|
|
40
15
|
*/
|
|
41
16
|
label?: string;
|
|
42
17
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* @seeded from csc-ui — verify
|
|
18
|
+
* Write a number under the track at each tick mark position, `segments`
|
|
19
|
+
* apart, formatted like the value bubble's; shown with or without `ticks`
|
|
46
20
|
*/
|
|
47
21
|
labels?: boolean;
|
|
22
|
+
/** The largest value. */
|
|
23
|
+
max?: number;
|
|
24
|
+
/** The smallest value. */
|
|
25
|
+
min?: number;
|
|
48
26
|
/**
|
|
49
|
-
*
|
|
27
|
+
* `name` of the inner range input. The component is not
|
|
28
|
+
* form-associated, so it does not submit with a `<form>`.
|
|
50
29
|
*
|
|
51
|
-
* @
|
|
52
|
-
*/
|
|
53
|
-
max?: number | string;
|
|
54
|
-
/**
|
|
55
|
-
* Min value
|
|
56
|
-
*
|
|
57
|
-
* @seeded from csc-ui — verify
|
|
58
|
-
*/
|
|
59
|
-
min?: number | string;
|
|
60
|
-
/**
|
|
61
|
-
* Segment count
|
|
62
|
-
*
|
|
63
|
-
* @seeded from csc-ui — verify
|
|
64
|
-
*/
|
|
65
|
-
segments?: number | string;
|
|
66
|
-
/**
|
|
67
|
-
* Step
|
|
68
|
-
*
|
|
69
|
-
* @seeded from csc-ui — verify
|
|
70
|
-
*/
|
|
71
|
-
step?: number | string;
|
|
72
|
-
/**
|
|
73
|
-
* Thow ticks
|
|
74
|
-
*
|
|
75
|
-
* @seeded from csc-ui — verify
|
|
30
|
+
* @freeform
|
|
76
31
|
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/** Number of segments the tick marks divide the track into. */
|
|
34
|
+
segments?: number;
|
|
35
|
+
/** Step between values. */
|
|
36
|
+
step?: number;
|
|
37
|
+
/** Draw tick marks along the track, `segments` apart. */
|
|
77
38
|
ticks?: boolean;
|
|
78
39
|
/**
|
|
79
|
-
* Unit
|
|
40
|
+
* Unit shown after the value in the tooltip and read with it, e.g. `%`.
|
|
80
41
|
*
|
|
81
|
-
* @seeded from csc-ui — verify
|
|
82
42
|
* @freeform
|
|
83
43
|
*/
|
|
84
44
|
unit?: string;
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
*
|
|
88
|
-
* @seeded from csc-ui — verify
|
|
89
|
-
*/
|
|
90
|
-
value?: number | string;
|
|
45
|
+
/** The value, a number between `min` and `max`. */
|
|
46
|
+
value?: number;
|
|
91
47
|
}
|
|
92
|
-
declare const __VLS_export: import("vue").DefineComponent<CSliderProps, {
|
|
48
|
+
declare const __VLS_export: import("vue").DefineComponent<CSliderProps, {
|
|
49
|
+
focus: (options?: FocusOptions) => void;
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSliderProps> & Readonly<{}>, {
|
|
93
51
|
label: string;
|
|
94
|
-
|
|
52
|
+
name: string;
|
|
53
|
+
value: number;
|
|
54
|
+
step: number;
|
|
95
55
|
disabled: boolean;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
ariaLabelInternal: string;
|
|
56
|
+
max: number;
|
|
57
|
+
min: number;
|
|
99
58
|
disableTooltip: boolean;
|
|
100
59
|
labels: boolean;
|
|
101
|
-
|
|
102
|
-
min: number | string;
|
|
103
|
-
segments: number | string;
|
|
104
|
-
step: number | string;
|
|
60
|
+
segments: number;
|
|
105
61
|
ticks: boolean;
|
|
106
62
|
unit: string;
|
|
107
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
interface CSpinnerProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Stroke colour, the primary role by default; `currentColor` follows the
|
|
4
|
+
* surrounding text colour.
|
|
4
5
|
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
6
|
* @freeform any CSS color value
|
|
7
7
|
*/
|
|
8
8
|
color?: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @seeded from csc-ui — verify
|
|
10
|
+
* Diameter in pixels.
|
|
13
11
|
*/
|
|
14
12
|
size?: number;
|
|
15
13
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @seeded from csc-ui — verify
|
|
14
|
+
* Stroke width in pixels.
|
|
19
15
|
*/
|
|
20
16
|
width?: number;
|
|
21
17
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
export interface CStatusProps {
|
|
2
|
-
/**
|
|
3
|
-
* Status type
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
|
-
*/
|
|
7
|
-
type?: CStatusType;
|
|
8
|
-
}
|
|
9
1
|
/**
|
|
10
2
|
* Status type of the pill. Each value paints the matching semantic status
|
|
11
|
-
* colours; omitting the attribute renders the neutral
|
|
3
|
+
* colours; omitting the attribute renders the neutral grey pill.
|
|
12
4
|
*/
|
|
13
5
|
export type CStatusType = 'error' | 'info' | 'success' | 'warning';
|
|
6
|
+
interface CStatusProps {
|
|
7
|
+
/**
|
|
8
|
+
* The status family whose tint and ink paint the pill; without it the
|
|
9
|
+
* pill is neutral grey.
|
|
10
|
+
*/
|
|
11
|
+
type?: CStatusType;
|
|
12
|
+
}
|
|
14
13
|
declare const _default: typeof __VLS_export;
|
|
15
14
|
export default _default;
|
|
16
15
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CStatusProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
interface CStepProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Whether the step comes before the current one; the parent `<c-steps>`
|
|
4
|
+
* sets it from its `value`.
|
|
4
5
|
*
|
|
5
|
-
* @
|
|
6
|
+
* @internal
|
|
6
7
|
*/
|
|
7
8
|
complete?: boolean;
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Whether this is the current step; the parent `<c-steps>` sets it from its
|
|
11
|
+
* `value`.
|
|
10
12
|
*
|
|
11
|
-
* @
|
|
13
|
+
* @internal
|
|
12
14
|
*/
|
|
13
15
|
current?: boolean;
|
|
14
16
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
interface CStepsProps {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
|
-
*/
|
|
7
|
-
value?: number | string;
|
|
2
|
+
/** Number of the current step, counting from 1. */
|
|
3
|
+
value?: number;
|
|
8
4
|
}
|
|
9
5
|
declare var __VLS_1: {};
|
|
10
6
|
type __VLS_Slots = {} & {
|
|
11
7
|
default?: (props: typeof __VLS_1) => any;
|
|
12
8
|
};
|
|
13
9
|
declare const __VLS_base: import("vue").DefineComponent<CStepsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CStepsProps> & Readonly<{}>, {
|
|
14
|
-
value: number
|
|
10
|
+
value: number;
|
|
15
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,47 +1,53 @@
|
|
|
1
1
|
interface CSubNavigationItemProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* Mark the sub-item as the current page (`aria-current="page"`); set `active`
|
|
4
|
+
* on its parent item too, so the parent is expanded.
|
|
6
5
|
*/
|
|
7
6
|
active?: boolean;
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* Whether the item sits under a collapsed `<c-side-navigation-item>`,
|
|
9
|
+
* which sets it so hidden items are not Tab-reachable.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
11
|
+
* @internal
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
collapsed?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* URL that makes the sub-item a real link; without it the sub-item is a
|
|
16
|
+
* button.
|
|
16
17
|
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
18
18
|
* @freeform any URL
|
|
19
19
|
*/
|
|
20
20
|
href?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @seeded from csc-ui — verify
|
|
22
|
+
* Cover the sub-item with a loading overlay: a translucent scrim and a
|
|
23
|
+
* spinner.
|
|
25
24
|
*/
|
|
26
25
|
loading?: boolean;
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
27
|
+
* Where the `href` opens, as on a native `<a>`: the same tab unless set —
|
|
28
|
+
* `_blank` for a new one.
|
|
29
29
|
*
|
|
30
|
-
* @seeded from csc-ui — verify
|
|
31
30
|
* @freeform any browsing-context name (e.g. _blank, _self)
|
|
32
31
|
*/
|
|
33
32
|
target?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Value reported in the `select` event when the item is activated
|
|
35
|
+
*
|
|
36
|
+
* @freeform
|
|
37
|
+
*/
|
|
38
|
+
value?: string;
|
|
34
39
|
}
|
|
35
|
-
declare var
|
|
40
|
+
declare var __VLS_7: {};
|
|
36
41
|
type __VLS_Slots = {} & {
|
|
37
|
-
default?: (props: typeof
|
|
42
|
+
default?: (props: typeof __VLS_7) => any;
|
|
38
43
|
};
|
|
39
44
|
declare const __VLS_base: import("vue").DefineComponent<CSubNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSubNavigationItemProps> & Readonly<{}>, {
|
|
45
|
+
value: string;
|
|
40
46
|
loading: boolean;
|
|
41
|
-
active: boolean;
|
|
42
47
|
href: string;
|
|
43
48
|
target: string;
|
|
44
|
-
|
|
49
|
+
active: boolean;
|
|
50
|
+
collapsed: boolean;
|
|
45
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
52
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
53
|
declare const _default: typeof __VLS_export;
|