@cscfi/csc-ui 4.0.0-alpha.2 → 4.0.0-alpha.20
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 +10192 -7248
- package/dist/custom-elements.json +2278 -257
- package/dist/docs/c-alert/usage.md +24 -0
- package/dist/docs/c-autocomplete/usage.md +152 -0
- package/dist/docs/c-button-group/usage.md +14 -1
- package/dist/docs/c-checkbox/usage.md +53 -0
- package/dist/docs/c-main/usage.md +21 -1
- package/dist/docs/c-menu/usage.md +15 -0
- package/dist/docs/c-menu-item/usage.md +6 -0
- package/dist/docs/c-option-value/usage.md +1 -0
- package/dist/docs/c-popover/usage.md +33 -0
- package/dist/docs/c-progress-bar/usage.md +23 -0
- package/dist/docs/c-progress-circle/usage.md +25 -0
- package/dist/docs/c-radio/usage.md +45 -0
- package/dist/docs/c-radio-group/usage.md +67 -0
- package/dist/docs/c-select/usage.md +127 -0
- package/dist/docs/c-side-navigation/usage.md +21 -0
- package/dist/docs/c-spinner/usage.md +21 -0
- package/dist/docs/c-switch/usage.md +36 -0
- package/dist/docs/c-tab-buttons/usage.md +7 -0
- package/dist/docs/c-table/usage.md +14 -0
- package/dist/docs/c-toolbar/usage.md +17 -0
- package/dist/docs/c-tooltip/usage.md +30 -0
- package/dist/docs/c-tree-select/usage.md +156 -0
- package/dist/styles/css/tailwind-theme.css +32 -0
- package/dist/styles/css/tokens.css +707 -197
- package/dist/vscode.css-custom-data.json +286 -19
- package/dist/vscode.html-custom-data.json +334 -51
- package/dist/web-types.json +1200 -190
- package/dist-types/components/c-alert/CAlert.vue.d.ts +18 -4
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +118 -18
- package/dist-types/components/c-button/CButton.vue.d.ts +1 -1
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +1 -1
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +3 -3
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +6 -2
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +48 -5
- package/dist-types/components/c-icon/CIcon.vue.d.ts +1 -1
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
- package/dist-types/components/c-input/CInput.vue.d.ts +6 -2
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +4 -2
- package/dist-types/components/c-main/CMain.vue.d.ts +9 -2
- package/dist-types/components/c-menu/CMenu.vue.d.ts +14 -4
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +30 -3
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +1 -1
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +1 -1
- package/dist-types/components/c-popover/CPopover.vue.d.ts +43 -0
- package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +32 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +7 -11
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +9 -47
- package/dist-types/components/c-select/CSelect.vue.d.ts +115 -24
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +1 -1
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +1 -1
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +1 -1
- package/dist-types/components/c-table/CTable.vue.d.ts +11 -1
- package/dist-types/components/c-table/injectTableStyles.d.ts +1 -0
- package/dist-types/components/c-tag/CTag.vue.d.ts +8 -1
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +15 -4
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +49 -0
- package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +261 -0
- package/dist-types/index.d.ts +14 -2
- package/dist-types/shared/FieldMessage.vue.d.ts +21 -0
- package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
- package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
- package/dist-types/shared/appDefaults.d.ts +75 -0
- package/dist-types/shared/defineElement.d.ts +1 -0
- package/dist-types/shared/lightDismiss.d.ts +35 -0
- package/dist-types/shared/modalStack.d.ts +4 -3
- package/dist-types/shared/optionLabel.d.ts +18 -0
- package/dist-types/shared/pageLock.d.ts +26 -0
- package/dist-types/shared/peekCap.d.ts +35 -0
- package/dist-types/shared/popoverChain.d.ts +65 -0
- package/dist-types/shared/positionArea.d.ts +13 -0
- package/dist-types/shared/selectAll.d.ts +29 -0
- package/dist-types/shared/splitMatches.d.ts +18 -0
- package/dist-types/shared/useAnchoredPanel.d.ts +98 -0
- package/dist-types/shared/useDesignatedTrigger.d.ts +40 -0
- package/dist-types/shared/useHostStates.d.ts +25 -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/visualViewport.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +440 -51
- 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 +13 -0
- package/package.json +19 -8
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CPlacement } from '../../types';
|
|
2
|
+
export interface CPopoverProps {
|
|
3
|
+
/** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
|
|
4
|
+
distance?: number | string;
|
|
5
|
+
/**
|
|
6
|
+
* Heading rendered at the top of the panel, doubling as its accessible
|
|
7
|
+
* name. Without it, set `aria-label` on the host. Named `heading`, not
|
|
8
|
+
* `title`: a `title` attribute on the host would trigger the browser's
|
|
9
|
+
* native tooltip and collides with `HTMLElement.title`.
|
|
10
|
+
* @freeform
|
|
11
|
+
*/
|
|
12
|
+
heading?: string;
|
|
13
|
+
/** Whether the popover is open. Two-way: emits `change:open`. */
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/** Preferred placement of the panel relative to the trigger. */
|
|
16
|
+
position?: CPlacement;
|
|
17
|
+
/**
|
|
18
|
+
* Designated trigger: an element elsewhere in the document that opens the
|
|
19
|
+
* popover — its document ID, or the element itself. The same trigger
|
|
20
|
+
* concept as the `trigger` slot, supplied by reference: the popover wires
|
|
21
|
+
* click-to-toggle, ARIA and focus return onto it and anchors the panel to
|
|
22
|
+
* it. When both routes are supplied, this prop wins over the slot.
|
|
23
|
+
*/
|
|
24
|
+
trigger?: HTMLElement | string;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CPopoverProps> & Readonly<{}>, {
|
|
29
|
+
heading: string;
|
|
30
|
+
distance: number | string;
|
|
31
|
+
open: boolean;
|
|
32
|
+
position: CPlacement;
|
|
33
|
+
trigger: HTMLElement | string;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
35
|
+
trigger?: (props: {}) => any;
|
|
36
|
+
} & {
|
|
37
|
+
default?: (props: {}) => any;
|
|
38
|
+
}>;
|
|
39
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface CProgressCircleProps {
|
|
2
|
+
/**
|
|
3
|
+
* Diameter of the circle in pixels
|
|
4
|
+
*/
|
|
5
|
+
size?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Progress value in percentage (0 to 100)
|
|
8
|
+
*/
|
|
9
|
+
value?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Stroke width of the track in pixels; the value arc draws at half this
|
|
12
|
+
* width, inset within the track
|
|
13
|
+
*/
|
|
14
|
+
width?: number;
|
|
15
|
+
}
|
|
16
|
+
declare var __VLS_1: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<CProgressCircleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CProgressCircleProps> & Readonly<{}>, {
|
|
21
|
+
value: number;
|
|
22
|
+
width: number;
|
|
23
|
+
size: number;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
interface CRadioProps {
|
|
2
|
-
/**
|
|
3
|
-
* Set option as checked
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
|
-
*/
|
|
7
|
-
checked?: boolean;
|
|
8
2
|
/**
|
|
9
3
|
* Disable the radio button
|
|
10
|
-
*
|
|
11
|
-
* @seeded from csc-ui — verify
|
|
12
4
|
*/
|
|
13
5
|
disabled?: boolean;
|
|
14
6
|
/**
|
|
15
7
|
* Radio button value
|
|
16
8
|
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
18
9
|
* @freeform
|
|
19
10
|
*/
|
|
20
11
|
value?: string;
|
|
@@ -23,10 +14,15 @@ declare var __VLS_1: {};
|
|
|
23
14
|
type __VLS_Slots = {} & {
|
|
24
15
|
default?: (props: typeof __VLS_1) => any;
|
|
25
16
|
};
|
|
26
|
-
declare const __VLS_base: import("vue").DefineComponent<CRadioProps, {
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<CRadioProps, {
|
|
18
|
+
_syncGroupState: (state: {
|
|
19
|
+
checked: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
tabIndex: number;
|
|
22
|
+
}) => void;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioProps> & Readonly<{}>, {
|
|
27
24
|
value: string;
|
|
28
25
|
disabled: boolean;
|
|
29
|
-
checked: boolean;
|
|
30
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
interface CRadioGroupProps {
|
|
2
2
|
/**
|
|
3
3
|
* Disable the radio group
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
4
|
*/
|
|
7
5
|
disabled?: boolean;
|
|
8
6
|
/**
|
|
@@ -13,88 +11,52 @@ interface CRadioGroupProps {
|
|
|
13
11
|
errorMessage?: string;
|
|
14
12
|
/**
|
|
15
13
|
* Hide the hint and error messages
|
|
16
|
-
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
18
14
|
*/
|
|
19
15
|
hideDetails?: boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Hint text for the input
|
|
22
18
|
*
|
|
23
|
-
* @seeded from csc-ui — verify
|
|
24
19
|
* @freeform
|
|
25
20
|
*/
|
|
26
21
|
hint?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Id of the element
|
|
29
|
-
*
|
|
30
|
-
* @seeded from csc-ui — verify
|
|
31
|
-
* @freeform
|
|
32
|
-
*/
|
|
33
|
-
hostId?: string;
|
|
34
22
|
/**
|
|
35
23
|
* Display radio buttons inline
|
|
36
|
-
*
|
|
37
|
-
* @seeded from csc-ui — verify
|
|
38
24
|
*/
|
|
39
25
|
inline?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Radio group items
|
|
42
|
-
*
|
|
43
|
-
* @seeded from csc-ui — verify
|
|
44
|
-
*/
|
|
45
|
-
items?: RadioItem[];
|
|
46
26
|
/**
|
|
47
27
|
* Label of the radio group
|
|
48
28
|
*
|
|
49
|
-
* @seeded from csc-ui — verify
|
|
50
29
|
* @freeform
|
|
51
30
|
*/
|
|
52
31
|
label?: string;
|
|
53
32
|
/**
|
|
54
33
|
* Set as required
|
|
55
|
-
*
|
|
56
|
-
* @seeded from csc-ui — verify
|
|
57
34
|
*/
|
|
58
35
|
required?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Return the whole item object
|
|
61
|
-
*
|
|
62
|
-
* @seeded from csc-ui — verify
|
|
63
|
-
*/
|
|
64
|
-
returnObject?: boolean;
|
|
65
36
|
/**
|
|
66
37
|
* Set the validity of the input
|
|
67
|
-
*
|
|
68
|
-
* @seeded from csc-ui — verify
|
|
69
38
|
*/
|
|
70
39
|
valid?: boolean;
|
|
71
40
|
/**
|
|
72
|
-
* Value of the radio group
|
|
73
|
-
*
|
|
74
|
-
* @seeded from csc-ui — verify
|
|
41
|
+
* Value of the radio group; matched against each radio's `value` by strict
|
|
42
|
+
* string equality
|
|
75
43
|
*/
|
|
76
|
-
value?: null |
|
|
77
|
-
}
|
|
78
|
-
interface RadioItem {
|
|
79
|
-
disabled?: boolean;
|
|
80
|
-
name: string;
|
|
81
|
-
value: number | string;
|
|
44
|
+
value?: null | string;
|
|
82
45
|
}
|
|
83
|
-
declare var __VLS_7: {};
|
|
46
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
84
47
|
type __VLS_Slots = {} & {
|
|
85
|
-
|
|
48
|
+
label?: (props: typeof __VLS_7) => any;
|
|
49
|
+
} & {
|
|
50
|
+
default?: (props: typeof __VLS_9) => any;
|
|
86
51
|
};
|
|
87
52
|
declare const __VLS_base: import("vue").DefineComponent<CRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CRadioGroupProps> & Readonly<{}>, {
|
|
88
53
|
label: string;
|
|
89
|
-
value: null |
|
|
54
|
+
value: null | string;
|
|
55
|
+
required: boolean;
|
|
90
56
|
disabled: boolean;
|
|
91
57
|
errorMessage: string;
|
|
92
58
|
hideDetails: boolean;
|
|
93
59
|
hint: string;
|
|
94
|
-
hostId: string;
|
|
95
|
-
items: RadioItem[];
|
|
96
|
-
required: boolean;
|
|
97
|
-
returnObject: boolean;
|
|
98
60
|
valid: boolean;
|
|
99
61
|
inline: boolean;
|
|
100
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CSelectItem } from '../../types';
|
|
2
|
-
interface CSelectProps {
|
|
1
|
+
import type { CFieldSize, CSelectItem } from '../../types';
|
|
2
|
+
export interface CSelectProps {
|
|
3
3
|
/** Make the selected value clearable */
|
|
4
4
|
clearable?: boolean;
|
|
5
5
|
/** Disable the input */
|
|
@@ -10,7 +10,11 @@ interface CSelectProps {
|
|
|
10
10
|
* @freeform
|
|
11
11
|
*/
|
|
12
12
|
errorMessage?: string;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Hide the hint and error messages
|
|
15
|
+
*
|
|
16
|
+
* @defaultable false
|
|
17
|
+
*/
|
|
14
18
|
hideDetails?: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* Hint text for the input
|
|
@@ -26,7 +30,11 @@ interface CSelectProps {
|
|
|
26
30
|
hostId?: string;
|
|
27
31
|
/** Dropdown items (when not using <c-option> elements) */
|
|
28
32
|
items?: CSelectItem[];
|
|
29
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Items per page before adding scroll
|
|
35
|
+
*
|
|
36
|
+
* @defaultable 6
|
|
37
|
+
*/
|
|
30
38
|
itemsPerPage?: number;
|
|
31
39
|
/**
|
|
32
40
|
* Element label
|
|
@@ -34,10 +42,28 @@ interface CSelectProps {
|
|
|
34
42
|
* @freeform
|
|
35
43
|
*/
|
|
36
44
|
label?: string;
|
|
37
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Label on top of the input
|
|
47
|
+
*
|
|
48
|
+
* @defaultable false
|
|
49
|
+
*/
|
|
38
50
|
labelOnTop?: boolean;
|
|
39
51
|
/** Show loading state */
|
|
40
52
|
loading?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* In `multiple` mode, show at most this many selected-value tags and fold
|
|
55
|
+
* the rest into one "+N more" tag; `0` shows no tags and reads "N selected"
|
|
56
|
+
* instead; unset shows every tag
|
|
57
|
+
*/
|
|
58
|
+
maxTags?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Allow selecting several options: rows toggle and the list stays open,
|
|
61
|
+
* `value` becomes an array of the selected values (items with
|
|
62
|
+
* `return-object`) in the order they were picked, and the picks show as
|
|
63
|
+
* tags inside the field. `option-as-selection` is ignored in this mode.
|
|
64
|
+
* Arrays have no attribute form — bind `value` as a DOM property
|
|
65
|
+
*/
|
|
66
|
+
multiple?: boolean;
|
|
41
67
|
/**
|
|
42
68
|
* Input field name
|
|
43
69
|
*
|
|
@@ -56,29 +82,89 @@ interface CSelectProps {
|
|
|
56
82
|
required?: boolean;
|
|
57
83
|
/** Return object instead of value */
|
|
58
84
|
returnObject?: boolean;
|
|
59
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* In `multiple` mode, pin a select-all row at the top of the list. Its
|
|
87
|
+
* checkbox shows whether none, some or all enabled options are selected;
|
|
88
|
+
* activating it selects every enabled option — or, when all are selected,
|
|
89
|
+
* unselects them. Ignored in single mode
|
|
90
|
+
*/
|
|
91
|
+
selectAll?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Shadow variant
|
|
94
|
+
*
|
|
95
|
+
* @defaultable false
|
|
96
|
+
*/
|
|
60
97
|
shadow?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Field height: the 44px default or the 36px `small` box
|
|
100
|
+
*
|
|
101
|
+
* @defaultable 'default'
|
|
102
|
+
*/
|
|
103
|
+
size?: CFieldSize;
|
|
104
|
+
/**
|
|
105
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
106
|
+
* no attribute form — bind as a DOM property (`:texts.prop` in Vue)
|
|
107
|
+
*
|
|
108
|
+
* @defaultable {}
|
|
109
|
+
*/
|
|
110
|
+
texts?: CSelectTexts;
|
|
61
111
|
/** Set the validity of the input */
|
|
62
112
|
valid?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Selected value: the option's value, or the whole item with
|
|
115
|
+
* `return-object`; an array of them in `multiple` mode
|
|
116
|
+
*/
|
|
117
|
+
value?: CSelectValue;
|
|
65
118
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
119
|
+
/**
|
|
120
|
+
* UI texts of `c-select`, shallow-merged over the English defaults. Static
|
|
121
|
+
* labels are strings; count- or label-interpolated ones are functions.
|
|
122
|
+
*/
|
|
123
|
+
export interface CSelectTexts {
|
|
124
|
+
/** Accessible label of the clear button. */
|
|
125
|
+
clearSelection?: string;
|
|
126
|
+
/** Accessible label of the close button in the fullscreen panel (narrow viewports). */
|
|
127
|
+
closePanel?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Text of the overflow tag when `max-tags` folds the selection; receives the
|
|
130
|
+
* number of hidden tags.
|
|
131
|
+
*/
|
|
132
|
+
more?: (count: number) => string;
|
|
133
|
+
/** Accessible label of a tag's remove button; receives the option label. */
|
|
134
|
+
remove?: (label: string) => string;
|
|
135
|
+
/**
|
|
136
|
+
* Label of the select-all row; receives the number of enabled options
|
|
137
|
+
* listed.
|
|
138
|
+
*/
|
|
139
|
+
selectAll?: (count: number) => string;
|
|
140
|
+
/**
|
|
141
|
+
* Field text when `max-tags="0"` shows no tags; receives the selection
|
|
142
|
+
* count.
|
|
143
|
+
*/
|
|
144
|
+
selected?: (count: number) => string;
|
|
145
|
+
/** Accessible label of the chevron button that opens and closes the list. */
|
|
146
|
+
toggleOptions?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Selection value of `c-select`: the picked option's value — or the whole
|
|
150
|
+
* `{ name, value }` item with `return-object` — and `null` when nothing is
|
|
151
|
+
* selected. In `multiple` mode an array of them in the order they were
|
|
152
|
+
* picked, `[]` when empty.
|
|
153
|
+
*/
|
|
154
|
+
export type CSelectValue = (number | string)[] | CSelectItem | CSelectItem[] | null | number | string;
|
|
155
|
+
declare const _default: typeof __VLS_export;
|
|
156
|
+
export default _default;
|
|
157
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelectProps, {
|
|
75
158
|
reset: () => void;
|
|
76
159
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSelectProps> & Readonly<{}>, {
|
|
77
160
|
label: string;
|
|
78
|
-
value:
|
|
161
|
+
value: CSelectValue;
|
|
79
162
|
name: string;
|
|
80
|
-
|
|
163
|
+
multiple: boolean;
|
|
164
|
+
required: boolean;
|
|
81
165
|
disabled: boolean;
|
|
166
|
+
size: CFieldSize;
|
|
167
|
+
clearable: boolean;
|
|
82
168
|
errorMessage: string;
|
|
83
169
|
hideDetails: boolean;
|
|
84
170
|
hint: string;
|
|
@@ -87,16 +173,21 @@ declare const __VLS_base: import("vue").DefineComponent<CSelectProps, {
|
|
|
87
173
|
itemsPerPage: number;
|
|
88
174
|
labelOnTop: boolean;
|
|
89
175
|
loading: boolean;
|
|
176
|
+
maxTags: number;
|
|
90
177
|
placeholder: string;
|
|
91
|
-
required: boolean;
|
|
92
178
|
returnObject: boolean;
|
|
179
|
+
selectAll: boolean;
|
|
93
180
|
shadow: boolean;
|
|
181
|
+
texts: CSelectTexts;
|
|
94
182
|
valid: boolean;
|
|
95
183
|
optionAsSelection: boolean;
|
|
96
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
184
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
185
|
+
pre?: (props: {}) => any;
|
|
186
|
+
} & {
|
|
187
|
+
default?: (props: {}) => any;
|
|
188
|
+
} & {
|
|
189
|
+
post?: (props: {}) => any;
|
|
190
|
+
}>;
|
|
100
191
|
type __VLS_WithSlots<T, S> = T & {
|
|
101
192
|
new (): {
|
|
102
193
|
$slots: S;
|
|
@@ -25,8 +25,8 @@ type __VLS_Slots = {} & {
|
|
|
25
25
|
bottom?: (props: typeof __VLS_16) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<CSideNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationProps> & Readonly<{}>, {
|
|
28
|
-
mobile: boolean;
|
|
29
28
|
menuVisible: boolean;
|
|
29
|
+
mobile: boolean;
|
|
30
30
|
styles: null | Record<string, string>;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -21,8 +21,8 @@ interface CSpinnerProps {
|
|
|
21
21
|
}
|
|
22
22
|
declare const __VLS_export: import("vue").DefineComponent<CSpinnerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSpinnerProps> & Readonly<{}>, {
|
|
23
23
|
width: number;
|
|
24
|
-
color: string;
|
|
25
24
|
size: number;
|
|
25
|
+
color: string;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
@@ -62,10 +62,10 @@ type __VLS_Slots = {} & {
|
|
|
62
62
|
declare const __VLS_base: import("vue").DefineComponent<CSwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSwitchProps> & Readonly<{}>, {
|
|
63
63
|
label: string;
|
|
64
64
|
value: boolean | number | string;
|
|
65
|
+
required: boolean;
|
|
65
66
|
disabled: boolean;
|
|
66
67
|
hostId: string;
|
|
67
68
|
loading: boolean;
|
|
68
|
-
required: boolean;
|
|
69
69
|
checked: boolean;
|
|
70
70
|
falseValue: boolean | number | string;
|
|
71
71
|
trueValue: boolean | number | string;
|
|
@@ -12,9 +12,19 @@ interface CTableProps {
|
|
|
12
12
|
*/
|
|
13
13
|
responsive?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
15
|
+
declare var __VLS_1: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_1) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<CTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTableProps> & Readonly<{}>, {
|
|
16
20
|
mobileBreakpoint: number;
|
|
17
21
|
responsive: boolean;
|
|
18
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
24
|
declare const _default: typeof __VLS_export;
|
|
20
25
|
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ensureTableStyles: () => void;
|
|
@@ -17,6 +17,12 @@ export interface CTagProps {
|
|
|
17
17
|
* @seeded from csc-ui — verify
|
|
18
18
|
*/
|
|
19
19
|
closeable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Accessible name of the close button rendered when `closeable`
|
|
22
|
+
*
|
|
23
|
+
* @freeform
|
|
24
|
+
*/
|
|
25
|
+
closeLabel?: string;
|
|
20
26
|
/**
|
|
21
27
|
* Remove the hover effect
|
|
22
28
|
*
|
|
@@ -39,8 +45,9 @@ declare const _default: typeof __VLS_export;
|
|
|
39
45
|
export default _default;
|
|
40
46
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTagProps> & Readonly<{}>, {
|
|
41
47
|
flat: boolean;
|
|
42
|
-
active: boolean;
|
|
43
48
|
size: CTagSize;
|
|
49
|
+
active: boolean;
|
|
50
|
+
closeLabel: string;
|
|
44
51
|
badge: null | number | string;
|
|
45
52
|
closeable: boolean;
|
|
46
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CFieldSize } from '../../types';
|
|
1
2
|
/**
|
|
2
3
|
* Native `autocapitalize` behaviour of the input.
|
|
3
4
|
*/
|
|
@@ -39,6 +40,7 @@ export interface CTextFieldProps {
|
|
|
39
40
|
* Hide the hint and error messages
|
|
40
41
|
*
|
|
41
42
|
* @seeded from csc-ui — verify
|
|
43
|
+
* @defaultable false
|
|
42
44
|
*/
|
|
43
45
|
hideDetails?: boolean;
|
|
44
46
|
/**
|
|
@@ -66,6 +68,7 @@ export interface CTextFieldProps {
|
|
|
66
68
|
* Label on top of the input
|
|
67
69
|
*
|
|
68
70
|
* @seeded from csc-ui — verify
|
|
71
|
+
* @defaultable false
|
|
69
72
|
*/
|
|
70
73
|
labelOnTop?: boolean;
|
|
71
74
|
/**
|
|
@@ -116,8 +119,15 @@ export interface CTextFieldProps {
|
|
|
116
119
|
* Shadow variant of the input
|
|
117
120
|
*
|
|
118
121
|
* @seeded from csc-ui — verify
|
|
122
|
+
* @defaultable false
|
|
119
123
|
*/
|
|
120
124
|
shadow?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Field height: the 44px default or the 36px `small` box (single-line fields)
|
|
127
|
+
*
|
|
128
|
+
* @defaultable 'default'
|
|
129
|
+
*/
|
|
130
|
+
size?: CFieldSize;
|
|
121
131
|
/**
|
|
122
132
|
* Step size on a numeric input
|
|
123
133
|
*
|
|
@@ -163,23 +173,24 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTextF
|
|
|
163
173
|
value: string;
|
|
164
174
|
type: CTextFieldType;
|
|
165
175
|
name: string;
|
|
176
|
+
required: boolean;
|
|
166
177
|
disabled: boolean;
|
|
178
|
+
size: CFieldSize;
|
|
179
|
+
autocorrect: boolean;
|
|
167
180
|
errorMessage: string;
|
|
168
181
|
hideDetails: boolean;
|
|
169
182
|
hint: string;
|
|
170
183
|
hostId: string;
|
|
171
184
|
labelOnTop: boolean;
|
|
172
185
|
placeholder: string;
|
|
173
|
-
required: boolean;
|
|
174
186
|
shadow: boolean;
|
|
175
187
|
valid: boolean;
|
|
176
|
-
autocomplete: string;
|
|
177
|
-
readonly: boolean;
|
|
178
|
-
autocorrect: boolean;
|
|
179
188
|
max: null | number;
|
|
180
189
|
min: null | number;
|
|
181
190
|
step: null | number;
|
|
191
|
+
autocomplete: string;
|
|
182
192
|
automaticCapitalize: CTextFieldAutocapitalize;
|
|
193
|
+
readonly: boolean;
|
|
183
194
|
rows: number;
|
|
184
195
|
trimWhitespace: boolean;
|
|
185
196
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
interface CToolbarProps {
|
|
2
|
+
/**
|
|
3
|
+
* Keep the toolbar in the page flow so it scrolls away with the content
|
|
4
|
+
* instead of staying pinned to the top of its scroll container
|
|
5
|
+
*/
|
|
6
|
+
static?: boolean;
|
|
7
|
+
}
|
|
1
8
|
declare var __VLS_1: {};
|
|
2
9
|
type __VLS_Slots = {} & {
|
|
3
10
|
default?: (props: typeof __VLS_1) => any;
|
|
4
11
|
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<CToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CToolbarProps> & Readonly<{}>, {
|
|
13
|
+
static: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
16
|
declare const _default: typeof __VLS_export;
|
|
8
17
|
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { CPlacement } from '../../types';
|
|
2
|
+
export interface CTooltipProps {
|
|
3
|
+
/**
|
|
4
|
+
* Delay before the tooltip shows on hover, in milliseconds. Keyboard focus
|
|
5
|
+
* shows the tooltip immediately, regardless of this value. Defaults to
|
|
6
|
+
* `400`.
|
|
7
|
+
*/
|
|
8
|
+
delay?: number | string;
|
|
9
|
+
/** Distance from the trigger to the tooltip, in pixels. Defaults to `4`. */
|
|
10
|
+
distance?: number | string;
|
|
11
|
+
/** Whether the tooltip is open. Two-way: emits `change:open`. */
|
|
12
|
+
open?: boolean;
|
|
13
|
+
/** Preferred placement of the tooltip relative to the trigger. */
|
|
14
|
+
position?: CPlacement;
|
|
15
|
+
/**
|
|
16
|
+
* The tooltip text. Overridden by the `content` slot when that is
|
|
17
|
+
* populated.
|
|
18
|
+
* @freeform
|
|
19
|
+
*/
|
|
20
|
+
text?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Designated trigger: an element elsewhere in the document that the
|
|
23
|
+
* tooltip describes — its document ID, or the element itself. The same
|
|
24
|
+
* trigger concept as the `trigger` slot, supplied by reference: the
|
|
25
|
+
* tooltip wires hover/focus, mirrors `aria-description` onto it and
|
|
26
|
+
* anchors the bubble to it. When both routes are supplied, this prop wins
|
|
27
|
+
* over the slot.
|
|
28
|
+
*/
|
|
29
|
+
trigger?: HTMLElement | string;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
32
|
+
export default _default;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CTooltipProps> & Readonly<{}>, {
|
|
34
|
+
text: string;
|
|
35
|
+
distance: number | string;
|
|
36
|
+
open: boolean;
|
|
37
|
+
position: CPlacement;
|
|
38
|
+
trigger: HTMLElement | string;
|
|
39
|
+
delay: number | string;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
41
|
+
trigger?: (props: {}) => any;
|
|
42
|
+
} & {
|
|
43
|
+
content?: (props: {}) => any;
|
|
44
|
+
}>;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|