@cscfi/csc-ui 4.0.0-rc.2 → 4.0.0-rc.4
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 +6848 -6757
- package/dist/custom-elements.json +651 -23
- package/dist/docs/c-button/usage.md +40 -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 +19 -7
- 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/styles/css/tokens.css +13 -9
- package/dist/vscode.css-custom-data.json +12 -12
- package/dist/vscode.html-custom-data.json +202 -46
- package/dist/web-types.json +2118 -496
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +9 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +40 -6
- 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 +39 -4
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +1 -1
- 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 +17 -1
- 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 +10 -1
- 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 +15 -1
- package/dist-types/shared/buttonAppearance.d.ts +20 -0
- package/dist-types/shared/buttonVariant.d.ts +5 -0
- package/dist-types/tag-name-map.d.ts +299 -70
- package/package.json +1 -1
|
@@ -93,8 +93,16 @@ interface CAutocompleteProps {
|
|
|
93
93
|
* Hide the hint and error messages
|
|
94
94
|
*
|
|
95
95
|
* @defaultable false
|
|
96
|
+
* @deprecated Use `hide-message`.
|
|
96
97
|
*/
|
|
97
98
|
hideDetails?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Hide the message line — the hint and error messages under the field —
|
|
101
|
+
* and the room it keeps.
|
|
102
|
+
*
|
|
103
|
+
* @defaultable false
|
|
104
|
+
*/
|
|
105
|
+
hideMessage?: boolean;
|
|
98
106
|
/**
|
|
99
107
|
* Hint text for the input
|
|
100
108
|
*
|
|
@@ -206,6 +214,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAutoc
|
|
|
206
214
|
size: CFieldSize;
|
|
207
215
|
texts: CAutocompleteTexts;
|
|
208
216
|
hideDetails: boolean;
|
|
217
|
+
hideMessage: boolean;
|
|
209
218
|
labelOnTop: boolean;
|
|
210
219
|
shadow: boolean;
|
|
211
220
|
clearable: boolean;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How strongly a button reads: `filled` for the main action, then
|
|
3
|
+
* `outlined`, `ghost` and `text`, each lighter than the last.
|
|
4
|
+
*/
|
|
5
|
+
export type CButtonAppearance = 'filled' | 'ghost' | 'outlined' | 'text';
|
|
1
6
|
/**
|
|
2
7
|
* Size of the button.
|
|
3
8
|
*/
|
|
@@ -7,6 +12,12 @@ export type CButtonSize = 'default' | 'large' | 'small';
|
|
|
7
12
|
* turns the component into a link.
|
|
8
13
|
*/
|
|
9
14
|
export type CButtonType = 'button' | 'reset' | 'submit';
|
|
15
|
+
/**
|
|
16
|
+
* The colour a button takes: `primary` (unless set) and `secondary`, the
|
|
17
|
+
* brand families, or a status colour — `success`, `info`, `warning` and
|
|
18
|
+
* `danger`, a destructive action in the error colour.
|
|
19
|
+
*/
|
|
20
|
+
export type CButtonVariant = 'danger' | 'info' | 'primary' | 'secondary' | 'success' | 'warning';
|
|
10
21
|
interface CButtonProps {
|
|
11
22
|
/**
|
|
12
23
|
* Pressed (toggle) state — renders the selected look and sets
|
|
@@ -15,6 +26,12 @@ interface CButtonProps {
|
|
|
15
26
|
* `c-button-group` on its slotted buttons.
|
|
16
27
|
*/
|
|
17
28
|
active?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The button's look: `filled` (unless set) for the main action of a view;
|
|
31
|
+
* `outlined` (a primary outline, no fill), `ghost` (a light primary tint)
|
|
32
|
+
* or `text` (no fill or outline) for lower emphasis.
|
|
33
|
+
*/
|
|
34
|
+
appearance?: CButtonAppearance;
|
|
18
35
|
/**
|
|
19
36
|
* Be a tab of a tablist: `role="tab"`, with `active` as `aria-selected`
|
|
20
37
|
* instead of `aria-pressed`. c-tab-buttons sets it on its buttons.
|
|
@@ -23,8 +40,9 @@ interface CButtonProps {
|
|
|
23
40
|
*/
|
|
24
41
|
asTab?: boolean;
|
|
25
42
|
/**
|
|
26
|
-
* Danger
|
|
27
|
-
*
|
|
43
|
+
* Danger look for a destructive action: the error colour.
|
|
44
|
+
*
|
|
45
|
+
* @deprecated Use `variant="danger"`.
|
|
28
46
|
*/
|
|
29
47
|
danger?: boolean;
|
|
30
48
|
/**
|
|
@@ -38,6 +56,8 @@ interface CButtonProps {
|
|
|
38
56
|
fit?: boolean;
|
|
39
57
|
/**
|
|
40
58
|
* Ghost appearance: primary text on a light primary tint, for lower emphasis.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated Use `appearance="ghost"`.
|
|
41
61
|
*/
|
|
42
62
|
ghost?: boolean;
|
|
43
63
|
/**
|
|
@@ -49,8 +69,8 @@ interface CButtonProps {
|
|
|
49
69
|
href?: string;
|
|
50
70
|
/**
|
|
51
71
|
* Inverted colours for a fixed dark or brand-coloured backdrop: the
|
|
52
|
-
* `inverse-*` family, the same in both theme modes. Combines with
|
|
53
|
-
*
|
|
72
|
+
* `inverse-*` family, the same in both theme modes. Combines with every
|
|
73
|
+
* appearance.
|
|
54
74
|
*/
|
|
55
75
|
inverted?: boolean;
|
|
56
76
|
/**
|
|
@@ -72,6 +92,8 @@ interface CButtonProps {
|
|
|
72
92
|
/**
|
|
73
93
|
* Outlined appearance: a primary outline and text with no fill, for lower
|
|
74
94
|
* emphasis.
|
|
95
|
+
*
|
|
96
|
+
* @deprecated Use `appearance="outlined"`.
|
|
75
97
|
*/
|
|
76
98
|
outlined?: boolean;
|
|
77
99
|
/**
|
|
@@ -88,6 +110,8 @@ interface CButtonProps {
|
|
|
88
110
|
target?: string;
|
|
89
111
|
/**
|
|
90
112
|
* Text appearance: primary text with no fill or outline, the lightest look.
|
|
113
|
+
*
|
|
114
|
+
* @deprecated Use `appearance="text"`.
|
|
91
115
|
*/
|
|
92
116
|
text?: boolean;
|
|
93
117
|
/**
|
|
@@ -100,6 +124,14 @@ interface CButtonProps {
|
|
|
100
124
|
* of the `c-tab-item` panel it shows.
|
|
101
125
|
*/
|
|
102
126
|
value?: number | string;
|
|
127
|
+
/**
|
|
128
|
+
* The button's colour, in every appearance: `primary` unless set (or
|
|
129
|
+
* changed app-wide), `secondary`, `success`, `info`, `warning`, or `danger`
|
|
130
|
+
* for a destructive action.
|
|
131
|
+
*
|
|
132
|
+
* @defaultable 'primary'
|
|
133
|
+
*/
|
|
134
|
+
variant?: CButtonVariant;
|
|
103
135
|
}
|
|
104
136
|
declare const _default: typeof __VLS_export;
|
|
105
137
|
export default _default;
|
|
@@ -110,17 +142,19 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
|
|
|
110
142
|
type: CButtonType;
|
|
111
143
|
size: CButtonSize;
|
|
112
144
|
fit: boolean;
|
|
145
|
+
variant: CButtonVariant;
|
|
113
146
|
disabled: boolean;
|
|
114
147
|
loading: boolean;
|
|
115
|
-
href: string;
|
|
116
|
-
target: string;
|
|
117
148
|
active: boolean;
|
|
149
|
+
appearance: CButtonAppearance;
|
|
118
150
|
asTab: boolean;
|
|
119
151
|
danger: boolean;
|
|
120
152
|
ghost: boolean;
|
|
153
|
+
href: string;
|
|
121
154
|
inverted: boolean;
|
|
122
155
|
noRadius: boolean;
|
|
123
156
|
noRipple: boolean;
|
|
157
|
+
target: string;
|
|
124
158
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
125
159
|
icon?: (props: {}) => any;
|
|
126
160
|
} & {
|
|
@@ -2,8 +2,15 @@ interface CCardProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* Shows a toggle button in the card's top-right corner that puts the card
|
|
4
4
|
* in the browser's fullscreen mode and back.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use `show-fullscreen`.
|
|
5
7
|
*/
|
|
6
8
|
fullscreen?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Show a toggle button in the card's top-right corner that puts the card
|
|
11
|
+
* in the browser's fullscreen mode and back.
|
|
12
|
+
*/
|
|
13
|
+
showFullscreen?: boolean;
|
|
7
14
|
}
|
|
8
15
|
declare var __VLS_1: {};
|
|
9
16
|
type __VLS_Slots = {} & {
|
|
@@ -14,6 +21,7 @@ declare const __VLS_base: import("vue").DefineComponent<CCardProps, {
|
|
|
14
21
|
exitFullscreen: () => Promise<void>;
|
|
15
22
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CCardProps> & Readonly<{}>, {
|
|
16
23
|
fullscreen: boolean;
|
|
24
|
+
showFullscreen: boolean;
|
|
17
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -22,8 +22,15 @@ interface CCheckboxProps {
|
|
|
22
22
|
falseValue?: boolean | number | string;
|
|
23
23
|
/**
|
|
24
24
|
* Hide the hint and error messages
|
|
25
|
+
*
|
|
26
|
+
* @deprecated Use `hide-message`.
|
|
25
27
|
*/
|
|
26
28
|
hideDetails?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Hide the message line — the hint and error messages under the field —
|
|
31
|
+
* and the room it keeps.
|
|
32
|
+
*/
|
|
33
|
+
hideMessage?: boolean;
|
|
27
34
|
/**
|
|
28
35
|
* Hint text for the checkbox
|
|
29
36
|
*
|
|
@@ -82,6 +89,7 @@ declare const __VLS_base: import("vue").DefineComponent<CCheckboxProps, {
|
|
|
82
89
|
name: string;
|
|
83
90
|
value: string | number | boolean;
|
|
84
91
|
hideDetails: boolean;
|
|
92
|
+
hideMessage: boolean;
|
|
85
93
|
disabled: boolean;
|
|
86
94
|
errorMessage: string;
|
|
87
95
|
hint: string;
|
|
@@ -84,8 +84,16 @@ interface CColorPickerProps {
|
|
|
84
84
|
* Hide the hint and error messages
|
|
85
85
|
*
|
|
86
86
|
* @defaultable false
|
|
87
|
+
* @deprecated Use `hide-message`.
|
|
87
88
|
*/
|
|
88
89
|
hideDetails?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Hide the message line — the hint and error messages under the field —
|
|
92
|
+
* and the room it keeps.
|
|
93
|
+
*
|
|
94
|
+
* @defaultable false
|
|
95
|
+
*/
|
|
96
|
+
hideMessage?: boolean;
|
|
89
97
|
/**
|
|
90
98
|
* Hint text for the field
|
|
91
99
|
*
|
|
@@ -174,6 +182,7 @@ declare const __VLS_export: import("vue").DefineComponent<CColorPickerProps, {
|
|
|
174
182
|
size: CFieldSize;
|
|
175
183
|
texts: CColorPickerTexts;
|
|
176
184
|
hideDetails: boolean;
|
|
185
|
+
hideMessage: boolean;
|
|
177
186
|
labelOnTop: boolean;
|
|
178
187
|
shadow: boolean;
|
|
179
188
|
alpha: boolean;
|
|
@@ -133,8 +133,16 @@ interface CDatePickerProps {
|
|
|
133
133
|
* Hide the hint and error messages
|
|
134
134
|
*
|
|
135
135
|
* @defaultable false
|
|
136
|
+
* @deprecated Use `hide-message`.
|
|
136
137
|
*/
|
|
137
138
|
hideDetails?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Hide the message line — the hint and error messages under the field —
|
|
141
|
+
* and the room it keeps.
|
|
142
|
+
*
|
|
143
|
+
* @defaultable false
|
|
144
|
+
*/
|
|
145
|
+
hideMessage?: boolean;
|
|
138
146
|
/**
|
|
139
147
|
* Hint text for the field
|
|
140
148
|
*
|
|
@@ -257,6 +265,7 @@ declare const __VLS_export: import("vue").DefineComponent<CDatePickerProps, {
|
|
|
257
265
|
size: CFieldSize;
|
|
258
266
|
texts: CDatePickerTexts;
|
|
259
267
|
hideDetails: boolean;
|
|
268
|
+
hideMessage: boolean;
|
|
260
269
|
labelOnTop: boolean;
|
|
261
270
|
shadow: boolean;
|
|
262
271
|
format: string;
|
|
@@ -116,8 +116,16 @@ interface CFileUploadProps {
|
|
|
116
116
|
* Hide the hint and error messages
|
|
117
117
|
*
|
|
118
118
|
* @defaultable false
|
|
119
|
+
* @deprecated Use `hide-message`.
|
|
119
120
|
*/
|
|
120
121
|
hideDetails?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Hide the message line — the hint and error messages under the field —
|
|
124
|
+
* and the room it keeps.
|
|
125
|
+
*
|
|
126
|
+
* @defaultable false
|
|
127
|
+
*/
|
|
128
|
+
hideMessage?: boolean;
|
|
121
129
|
/**
|
|
122
130
|
* Hint text under the drop zone — the place to name the accepted types and limits
|
|
123
131
|
*
|
|
@@ -192,6 +200,7 @@ declare const __VLS_export: import("vue").DefineComponent<CFileUploadProps, {
|
|
|
192
200
|
size: CFieldSize;
|
|
193
201
|
texts: CFileUploadTexts;
|
|
194
202
|
hideDetails: boolean;
|
|
203
|
+
hideMessage: boolean;
|
|
195
204
|
compact: boolean;
|
|
196
205
|
disabled: boolean;
|
|
197
206
|
errorMessage: string;
|
|
@@ -1,17 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How strongly an icon button reads: `filled` for the main action, then
|
|
3
|
+
* `outlined`, `ghost` and `text`, each lighter than the last — `c-button`'s
|
|
4
|
+
* appearances.
|
|
5
|
+
*/
|
|
6
|
+
export type CIconButtonAppearance = 'filled' | 'ghost' | 'outlined' | 'text';
|
|
1
7
|
/**
|
|
2
8
|
* Size of the icon button. `small` and `x-small` render progressively more
|
|
3
9
|
* compact buttons; omitting the attribute renders the default size.
|
|
4
10
|
*/
|
|
5
11
|
export type CIconButtonSize = 'default' | 'small' | 'x-small';
|
|
12
|
+
/**
|
|
13
|
+
* The colour an icon button takes — `c-button`'s variants: `primary` (unless
|
|
14
|
+
* set) and `secondary`, the brand families, or a status colour — `success`,
|
|
15
|
+
* `info`, `warning` and `danger`, a destructive action in the error colour.
|
|
16
|
+
*/
|
|
17
|
+
export type CIconButtonVariant = 'danger' | 'info' | 'primary' | 'secondary' | 'success' | 'warning';
|
|
6
18
|
interface CIconButtonProps {
|
|
19
|
+
/**
|
|
20
|
+
* The button's look: `filled` (unless set) for the main action; `outlined`
|
|
21
|
+
* (a primary outline, no fill), `ghost` (a light primary tint) or `text`
|
|
22
|
+
* (no fill or outline) for lower emphasis.
|
|
23
|
+
*/
|
|
24
|
+
appearance?: CIconButtonAppearance;
|
|
7
25
|
/**
|
|
8
26
|
* Count shown in a bubble at the button's top-right corner; hidden while
|
|
9
27
|
* `null` or empty, so `0` still shows.
|
|
10
28
|
*/
|
|
11
29
|
badge?: null | number | string;
|
|
12
30
|
/**
|
|
13
|
-
* Danger
|
|
14
|
-
*
|
|
31
|
+
* Danger look for a destructive action: the error colour.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated Use `variant="danger"`.
|
|
15
34
|
*/
|
|
16
35
|
danger?: boolean;
|
|
17
36
|
/**
|
|
@@ -20,12 +39,14 @@ interface CIconButtonProps {
|
|
|
20
39
|
disabled?: boolean;
|
|
21
40
|
/**
|
|
22
41
|
* Ghost appearance: a light primary tint, for lower emphasis.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated Use `appearance="ghost"`.
|
|
23
44
|
*/
|
|
24
45
|
ghost?: boolean;
|
|
25
46
|
/**
|
|
26
47
|
* Inverted colours for a fixed dark or brand-coloured backdrop: the
|
|
27
|
-
* `inverse-*` family, the same in both theme modes. Combines with
|
|
28
|
-
*
|
|
48
|
+
* `inverse-*` family, the same in both theme modes. Combines with every
|
|
49
|
+
* appearance.
|
|
29
50
|
*/
|
|
30
51
|
inverted?: boolean;
|
|
31
52
|
/**
|
|
@@ -35,6 +56,8 @@ interface CIconButtonProps {
|
|
|
35
56
|
loading?: boolean;
|
|
36
57
|
/**
|
|
37
58
|
* Outlined appearance: a primary outline with no fill, for lower emphasis.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated Use `appearance="outlined"`.
|
|
38
61
|
*/
|
|
39
62
|
outlined?: boolean;
|
|
40
63
|
/**
|
|
@@ -50,8 +73,18 @@ interface CIconButtonProps {
|
|
|
50
73
|
size?: CIconButtonSize;
|
|
51
74
|
/**
|
|
52
75
|
* Text appearance: no fill or outline, the lightest look.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated Use `appearance="text"`.
|
|
53
78
|
*/
|
|
54
79
|
text?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The button's colour, in every appearance: `primary` unless set (or
|
|
82
|
+
* changed app-wide), `secondary`, `success`, `info`, `warning`, or `danger`
|
|
83
|
+
* for a destructive action.
|
|
84
|
+
*
|
|
85
|
+
* @defaultable 'primary'
|
|
86
|
+
*/
|
|
87
|
+
variant?: CIconButtonVariant;
|
|
55
88
|
}
|
|
56
89
|
declare const _default: typeof __VLS_export;
|
|
57
90
|
export default _default;
|
|
@@ -60,8 +93,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CIconB
|
|
|
60
93
|
text: boolean;
|
|
61
94
|
outlined: boolean;
|
|
62
95
|
size: CIconButtonSize;
|
|
96
|
+
variant: CIconButtonVariant;
|
|
63
97
|
disabled: boolean;
|
|
64
98
|
loading: boolean;
|
|
99
|
+
appearance: CIconButtonAppearance;
|
|
65
100
|
danger: boolean;
|
|
66
101
|
ghost: boolean;
|
|
67
102
|
inverted: boolean;
|
|
@@ -49,9 +49,9 @@ type __VLS_Slots = {} & {
|
|
|
49
49
|
};
|
|
50
50
|
declare const __VLS_base: import("vue").DefineComponent<CListItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CListItemProps> & Readonly<{}>, {
|
|
51
51
|
disabled: boolean;
|
|
52
|
+
active: boolean;
|
|
52
53
|
href: string;
|
|
53
54
|
target: string;
|
|
54
|
-
active: boolean;
|
|
55
55
|
disabledByParent: boolean;
|
|
56
56
|
hoverable: boolean;
|
|
57
57
|
ripple: boolean;
|
|
@@ -14,8 +14,14 @@ interface CLoaderProps {
|
|
|
14
14
|
* The spinner's diameter in pixels.
|
|
15
15
|
*/
|
|
16
16
|
size?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The spinner's stroke thickness in pixels: 4 unless set.
|
|
19
|
+
*/
|
|
20
|
+
thickness?: number;
|
|
17
21
|
/**
|
|
18
22
|
* The spinner's stroke width in pixels.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated Use `thickness`.
|
|
19
25
|
*/
|
|
20
26
|
width?: number;
|
|
21
27
|
}
|
|
@@ -28,6 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<CLoaderProps, {}, {}, {}
|
|
|
28
34
|
size: number;
|
|
29
35
|
contentDelay: number;
|
|
30
36
|
hide: boolean;
|
|
37
|
+
thickness: number;
|
|
31
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -47,8 +47,16 @@ interface CNumberFieldProps {
|
|
|
47
47
|
* Hide the hint and error messages
|
|
48
48
|
*
|
|
49
49
|
* @defaultable false
|
|
50
|
+
* @deprecated Use `hide-message`.
|
|
50
51
|
*/
|
|
51
52
|
hideDetails?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Hide the message line — the hint and error messages under the field —
|
|
55
|
+
* and the room it keeps.
|
|
56
|
+
*
|
|
57
|
+
* @defaultable false
|
|
58
|
+
*/
|
|
59
|
+
hideMessage?: boolean;
|
|
52
60
|
/**
|
|
53
61
|
* Hint text for the field
|
|
54
62
|
*
|
|
@@ -142,6 +150,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CNumbe
|
|
|
142
150
|
size: CFieldSize;
|
|
143
151
|
texts: CNumberFieldTexts;
|
|
144
152
|
hideDetails: boolean;
|
|
153
|
+
hideMessage: boolean;
|
|
145
154
|
labelOnTop: boolean;
|
|
146
155
|
shadow: boolean;
|
|
147
156
|
decimalSeparator: string;
|
|
@@ -11,8 +11,15 @@ interface COtpInputProps {
|
|
|
11
11
|
errorMessage?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Hide the hint and error messages
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Use `hide-message`.
|
|
14
16
|
*/
|
|
15
17
|
hideDetails?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Hide the message line — the hint and error messages under the field —
|
|
20
|
+
* and the room it keeps.
|
|
21
|
+
*/
|
|
22
|
+
hideMessage?: boolean;
|
|
16
23
|
/**
|
|
17
24
|
* Hint text for the input
|
|
18
25
|
*
|
|
@@ -58,6 +65,7 @@ declare const __VLS_base: import("vue").DefineComponent<COtpInputProps, {
|
|
|
58
65
|
length: number;
|
|
59
66
|
value: string;
|
|
60
67
|
hideDetails: boolean;
|
|
68
|
+
hideMessage: boolean;
|
|
61
69
|
errorMessage: string;
|
|
62
70
|
hint: string;
|
|
63
71
|
required: boolean;
|
|
@@ -11,8 +11,15 @@ interface CRadioGroupProps {
|
|
|
11
11
|
errorMessage?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Hide the hint and error messages
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Use `hide-message`.
|
|
14
16
|
*/
|
|
15
17
|
hideDetails?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Hide the message line — the hint and error messages under the field —
|
|
20
|
+
* and the room it keeps.
|
|
21
|
+
*/
|
|
22
|
+
hideMessage?: boolean;
|
|
16
23
|
/**
|
|
17
24
|
* Hint text for the input
|
|
18
25
|
*
|
|
@@ -58,6 +65,7 @@ declare const __VLS_base: import("vue").DefineComponent<CRadioGroupProps, {
|
|
|
58
65
|
value: null | string;
|
|
59
66
|
inline: boolean;
|
|
60
67
|
hideDetails: boolean;
|
|
68
|
+
hideMessage: boolean;
|
|
61
69
|
disabled: boolean;
|
|
62
70
|
errorMessage: string;
|
|
63
71
|
hint: string;
|
|
@@ -50,8 +50,16 @@ interface CSelectProps {
|
|
|
50
50
|
* Hide the hint and error messages
|
|
51
51
|
*
|
|
52
52
|
* @defaultable false
|
|
53
|
+
* @deprecated Use `hide-message`.
|
|
53
54
|
*/
|
|
54
55
|
hideDetails?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Hide the message line — the hint and error messages under the field —
|
|
58
|
+
* and the room it keeps.
|
|
59
|
+
*
|
|
60
|
+
* @defaultable false
|
|
61
|
+
*/
|
|
62
|
+
hideMessage?: boolean;
|
|
55
63
|
/**
|
|
56
64
|
* Hint text for the input
|
|
57
65
|
*
|
|
@@ -163,6 +171,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelec
|
|
|
163
171
|
size: CFieldSize;
|
|
164
172
|
texts: CSelectTexts;
|
|
165
173
|
hideDetails: boolean;
|
|
174
|
+
hideMessage: boolean;
|
|
166
175
|
labelOnTop: boolean;
|
|
167
176
|
shadow: boolean;
|
|
168
177
|
clearable: boolean;
|
|
@@ -2,6 +2,8 @@ interface CSideNavigationItemProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* On an item without sub-items, mark the current page
|
|
4
4
|
* (`aria-current="page"`); on a parent, expand its sub-items.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use `current` on an item without sub-items and `expanded` on a parent.
|
|
5
7
|
*/
|
|
6
8
|
active?: boolean;
|
|
7
9
|
/**
|
|
@@ -11,6 +13,18 @@ interface CSideNavigationItemProps {
|
|
|
11
13
|
* @internal
|
|
12
14
|
*/
|
|
13
15
|
collapsed?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Mark the item as the page shown (`aria-current="page"`), on an item
|
|
18
|
+
* without sub-items. Bind it from the page your router or the URL shows:
|
|
19
|
+
* the navigation never sets it.
|
|
20
|
+
*/
|
|
21
|
+
current?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Show a parent item's sub-items. The navigation sets it as parents open
|
|
24
|
+
* and close, collapsing the other top-level parents; set it to open one
|
|
25
|
+
* initially.
|
|
26
|
+
*/
|
|
27
|
+
expanded?: boolean;
|
|
14
28
|
/**
|
|
15
29
|
* URL that makes the item a real link; without it the item is a button.
|
|
16
30
|
*
|
|
@@ -42,12 +56,14 @@ type __VLS_Slots = {} & {
|
|
|
42
56
|
'sub-item'?: (props: typeof __VLS_16) => any;
|
|
43
57
|
};
|
|
44
58
|
declare const __VLS_base: import("vue").DefineComponent<CSideNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationItemProps> & Readonly<{}>, {
|
|
59
|
+
expanded: boolean;
|
|
45
60
|
value: string;
|
|
46
61
|
loading: boolean;
|
|
62
|
+
active: boolean;
|
|
47
63
|
href: string;
|
|
48
64
|
target: string;
|
|
49
|
-
active: boolean;
|
|
50
65
|
collapsed: boolean;
|
|
66
|
+
current: boolean;
|
|
51
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
69
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,6 +17,8 @@ interface CSliderProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* Write a number under the track at each tick mark position, `segments`
|
|
19
19
|
* apart, formatted like the value bubble's; shown with or without `ticks`
|
|
20
|
+
*
|
|
21
|
+
* @deprecated Use `tick-labels`.
|
|
20
22
|
*/
|
|
21
23
|
labels?: boolean;
|
|
22
24
|
/** The largest value. */
|
|
@@ -34,6 +36,11 @@ interface CSliderProps {
|
|
|
34
36
|
segments?: number;
|
|
35
37
|
/** Step between values. */
|
|
36
38
|
step?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Write a number under the track at each tick mark position, `segments`
|
|
41
|
+
* apart, formatted like the value bubble's; shown with or without `ticks`
|
|
42
|
+
*/
|
|
43
|
+
tickLabels?: boolean;
|
|
37
44
|
/** Draw tick marks along the track, `segments` apart. */
|
|
38
45
|
ticks?: boolean;
|
|
39
46
|
/**
|
|
@@ -58,6 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<CSliderProps, {
|
|
|
58
65
|
disableTooltip: boolean;
|
|
59
66
|
labels: boolean;
|
|
60
67
|
segments: number;
|
|
68
|
+
tickLabels: boolean;
|
|
61
69
|
ticks: boolean;
|
|
62
70
|
unit: string;
|
|
63
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -10,8 +10,14 @@ interface CSpinnerProps {
|
|
|
10
10
|
* Diameter in pixels.
|
|
11
11
|
*/
|
|
12
12
|
size?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Stroke thickness in pixels: 2 unless set.
|
|
15
|
+
*/
|
|
16
|
+
thickness?: number;
|
|
13
17
|
/**
|
|
14
18
|
* Stroke width in pixels.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Use `thickness`.
|
|
15
21
|
*/
|
|
16
22
|
width?: number;
|
|
17
23
|
}
|
|
@@ -19,6 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<CSpinnerProps, {}, {},
|
|
|
19
25
|
width: number;
|
|
20
26
|
size: number;
|
|
21
27
|
color: string;
|
|
28
|
+
thickness: number;
|
|
22
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
30
|
declare const _default: typeof __VLS_export;
|
|
24
31
|
export default _default;
|
|
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_1) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<CStepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CStepProps> & Readonly<{}>, {
|
|
22
|
-
complete: boolean;
|
|
23
22
|
current: boolean;
|
|
23
|
+
complete: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,6 +2,8 @@ interface CSubNavigationItemProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* Mark the sub-item as the current page (`aria-current="page"`); set `active`
|
|
4
4
|
* on its parent item too, so the parent is expanded.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use `current`.
|
|
5
7
|
*/
|
|
6
8
|
active?: boolean;
|
|
7
9
|
/**
|
|
@@ -11,6 +13,12 @@ interface CSubNavigationItemProps {
|
|
|
11
13
|
* @internal
|
|
12
14
|
*/
|
|
13
15
|
collapsed?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Mark the sub-item as the page shown (`aria-current="page"`), and set
|
|
18
|
+
* `expanded` on its parent item so the parent is open. Bind it from the
|
|
19
|
+
* page your router or the URL shows: the navigation never sets it.
|
|
20
|
+
*/
|
|
21
|
+
current?: boolean;
|
|
14
22
|
/**
|
|
15
23
|
* URL that makes the sub-item a real link; without it the sub-item is a
|
|
16
24
|
* button.
|
|
@@ -44,10 +52,11 @@ type __VLS_Slots = {} & {
|
|
|
44
52
|
declare const __VLS_base: import("vue").DefineComponent<CSubNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSubNavigationItemProps> & Readonly<{}>, {
|
|
45
53
|
value: string;
|
|
46
54
|
loading: boolean;
|
|
55
|
+
active: boolean;
|
|
47
56
|
href: string;
|
|
48
57
|
target: string;
|
|
49
|
-
active: boolean;
|
|
50
58
|
collapsed: boolean;
|
|
59
|
+
current: boolean;
|
|
51
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
61
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
62
|
declare const _default: typeof __VLS_export;
|
|
@@ -49,8 +49,16 @@ interface CTextFieldProps {
|
|
|
49
49
|
* Hide the hint and error messages
|
|
50
50
|
*
|
|
51
51
|
* @defaultable false
|
|
52
|
+
* @deprecated Use `hide-message`.
|
|
52
53
|
*/
|
|
53
54
|
hideDetails?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Hide the message line — the hint and error messages under the field —
|
|
57
|
+
* and the room it keeps.
|
|
58
|
+
*
|
|
59
|
+
* @defaultable false
|
|
60
|
+
*/
|
|
61
|
+
hideMessage?: boolean;
|
|
54
62
|
/**
|
|
55
63
|
* Hint text for the input
|
|
56
64
|
*
|
|
@@ -167,6 +175,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTextF
|
|
|
167
175
|
rows: number;
|
|
168
176
|
size: CFieldSize;
|
|
169
177
|
hideDetails: boolean;
|
|
178
|
+
hideMessage: boolean;
|
|
170
179
|
labelOnTop: boolean;
|
|
171
180
|
shadow: boolean;
|
|
172
181
|
step: null | number;
|