@coreui/vue-pro 4.9.0-beta.2 → 5.0.0-alpha.0
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 +1 -1
- package/dist/components/dropdown/CDropdown.d.ts +62 -4
- package/dist/components/dropdown/CDropdownToggle.d.ts +1 -1
- package/dist/components/form/CFormCheck.d.ts +26 -2
- package/dist/components/form/CFormInput.d.ts +6 -18
- package/dist/components/multi-select/CMultiSelect.d.ts +6 -6
- package/dist/components/popover/CPopover.d.ts +75 -6
- package/dist/components/toast/CToast.d.ts +1 -1
- package/dist/components/tooltip/CTooltip.d.ts +77 -8
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/useColorModes.d.ts +1 -1
- package/dist/composables/usePopper.d.ts +6 -0
- package/dist/index.es.js +384 -238
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +383 -236
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/getRTLPlacement.d.ts +3 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +11 -11
- package/src/components/date-range-picker/CDateRangePicker.ts +6 -4
- package/src/components/dropdown/CDropdown.ts +116 -61
- package/src/components/dropdown/CDropdownMenu.ts +2 -47
- package/src/components/dropdown/CDropdownToggle.ts +5 -5
- package/src/components/form/CFormCheck.ts +53 -4
- package/src/components/multi-select/CMultiSelect.ts +3 -3
- package/src/components/popover/CPopover.ts +96 -50
- package/src/components/tooltip/CTooltip.ts +97 -51
- package/src/composables/index.ts +2 -1
- package/src/composables/useColorModes.ts +2 -1
- package/src/composables/usePopper.ts +25 -0
- package/src/types.ts +1 -1
- package/src/utils/getRTLPlacement.ts +18 -0
- package/src/utils/index.ts +2 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
Several quick start options are available:
|
|
48
48
|
|
|
49
|
-
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v5.0.0-alpha.0.zip)
|
|
50
50
|
- Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
|
|
51
51
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
|
|
52
52
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { Placement } from '@popperjs/core';
|
|
3
|
-
import { Triggers } from '../../types';
|
|
2
|
+
import type { Placement } from '@popperjs/core';
|
|
3
|
+
import type { Triggers } from '../../types';
|
|
4
|
+
export type Directions = 'start' | 'end';
|
|
5
|
+
export type Breakpoints = {
|
|
6
|
+
xs: Directions;
|
|
7
|
+
} | {
|
|
8
|
+
sm: Directions;
|
|
9
|
+
} | {
|
|
10
|
+
md: Directions;
|
|
11
|
+
} | {
|
|
12
|
+
lg: Directions;
|
|
13
|
+
} | {
|
|
14
|
+
xl: Directions;
|
|
15
|
+
} | {
|
|
16
|
+
xxl: Directions;
|
|
17
|
+
};
|
|
18
|
+
export type Alignments = Directions | Breakpoints;
|
|
4
19
|
declare const CDropdown: import("vue").DefineComponent<{
|
|
5
20
|
/**
|
|
6
21
|
* Set aligment of dropdown menu.
|
|
@@ -8,7 +23,19 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
8
23
|
* @values { 'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'} }
|
|
9
24
|
*/
|
|
10
25
|
alignment: {
|
|
11
|
-
type:
|
|
26
|
+
type: PropType<string | {
|
|
27
|
+
xs: Directions;
|
|
28
|
+
} | {
|
|
29
|
+
sm: Directions;
|
|
30
|
+
} | {
|
|
31
|
+
md: Directions;
|
|
32
|
+
} | {
|
|
33
|
+
lg: Directions;
|
|
34
|
+
} | {
|
|
35
|
+
xl: Directions;
|
|
36
|
+
} | {
|
|
37
|
+
xxl: Directions;
|
|
38
|
+
}>;
|
|
12
39
|
validator: (value: string | any) => boolean;
|
|
13
40
|
};
|
|
14
41
|
/**
|
|
@@ -40,6 +67,15 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
40
67
|
* Toggle the disabled state for the component.
|
|
41
68
|
*/
|
|
42
69
|
disabled: BooleanConstructor;
|
|
70
|
+
/**
|
|
71
|
+
* Offset of the dropdown menu relative to its target.
|
|
72
|
+
*
|
|
73
|
+
* @since 4.9.0
|
|
74
|
+
*/
|
|
75
|
+
offset: {
|
|
76
|
+
type: ArrayConstructor;
|
|
77
|
+
default: () => number[];
|
|
78
|
+
};
|
|
43
79
|
/**
|
|
44
80
|
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
|
|
45
81
|
*
|
|
@@ -88,7 +124,19 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
88
124
|
* @values { 'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'} }
|
|
89
125
|
*/
|
|
90
126
|
alignment: {
|
|
91
|
-
type:
|
|
127
|
+
type: PropType<string | {
|
|
128
|
+
xs: Directions;
|
|
129
|
+
} | {
|
|
130
|
+
sm: Directions;
|
|
131
|
+
} | {
|
|
132
|
+
md: Directions;
|
|
133
|
+
} | {
|
|
134
|
+
lg: Directions;
|
|
135
|
+
} | {
|
|
136
|
+
xl: Directions;
|
|
137
|
+
} | {
|
|
138
|
+
xxl: Directions;
|
|
139
|
+
}>;
|
|
92
140
|
validator: (value: string | any) => boolean;
|
|
93
141
|
};
|
|
94
142
|
/**
|
|
@@ -120,6 +168,15 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
120
168
|
* Toggle the disabled state for the component.
|
|
121
169
|
*/
|
|
122
170
|
disabled: BooleanConstructor;
|
|
171
|
+
/**
|
|
172
|
+
* Offset of the dropdown menu relative to its target.
|
|
173
|
+
*
|
|
174
|
+
* @since 4.9.0
|
|
175
|
+
*/
|
|
176
|
+
offset: {
|
|
177
|
+
type: ArrayConstructor;
|
|
178
|
+
default: () => number[];
|
|
179
|
+
};
|
|
123
180
|
/**
|
|
124
181
|
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
|
|
125
182
|
*
|
|
@@ -166,6 +223,7 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
166
223
|
dark: boolean;
|
|
167
224
|
variant: string;
|
|
168
225
|
placement: Placement;
|
|
226
|
+
offset: unknown[];
|
|
169
227
|
autoClose: string | boolean;
|
|
170
228
|
popper: boolean;
|
|
171
229
|
trigger: Triggers;
|
|
@@ -5,6 +5,12 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
5
5
|
* @see http://coreui.io/vue/docs/components/button.html
|
|
6
6
|
*/
|
|
7
7
|
button: ObjectConstructor;
|
|
8
|
+
/**
|
|
9
|
+
* Use in conjunction with the v-model directive to specify the value that should be assigned to the bound variable when the checkbox is in the `false` state.
|
|
10
|
+
*
|
|
11
|
+
* @since 4.9.0
|
|
12
|
+
*/
|
|
13
|
+
falseValue: StringConstructor;
|
|
8
14
|
/**
|
|
9
15
|
* Provide valuable, actionable feedback.
|
|
10
16
|
*
|
|
@@ -54,7 +60,7 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
54
60
|
* The default name for a value passed using v-model.
|
|
55
61
|
*/
|
|
56
62
|
modelValue: {
|
|
57
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
63
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
|
|
58
64
|
value: undefined;
|
|
59
65
|
};
|
|
60
66
|
/**
|
|
@@ -69,6 +75,12 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
69
75
|
* @since 4.3.0
|
|
70
76
|
*/
|
|
71
77
|
tooltipFeedback: BooleanConstructor;
|
|
78
|
+
/**
|
|
79
|
+
* Use in conjunction with the v-model directive to specify the value that should be assigned to the bound variable when the checkbox is in the `true` state.
|
|
80
|
+
*
|
|
81
|
+
* @since 4.9.0
|
|
82
|
+
*/
|
|
83
|
+
trueValue: StringConstructor;
|
|
72
84
|
/**
|
|
73
85
|
* Specifies the type of component.
|
|
74
86
|
*
|
|
@@ -97,6 +109,12 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
97
109
|
* @see http://coreui.io/vue/docs/components/button.html
|
|
98
110
|
*/
|
|
99
111
|
button: ObjectConstructor;
|
|
112
|
+
/**
|
|
113
|
+
* Use in conjunction with the v-model directive to specify the value that should be assigned to the bound variable when the checkbox is in the `false` state.
|
|
114
|
+
*
|
|
115
|
+
* @since 4.9.0
|
|
116
|
+
*/
|
|
117
|
+
falseValue: StringConstructor;
|
|
100
118
|
/**
|
|
101
119
|
* Provide valuable, actionable feedback.
|
|
102
120
|
*
|
|
@@ -146,7 +164,7 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
146
164
|
* The default name for a value passed using v-model.
|
|
147
165
|
*/
|
|
148
166
|
modelValue: {
|
|
149
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
167
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
|
|
150
168
|
value: undefined;
|
|
151
169
|
};
|
|
152
170
|
/**
|
|
@@ -161,6 +179,12 @@ declare const CFormCheck: import("vue").DefineComponent<{
|
|
|
161
179
|
* @since 4.3.0
|
|
162
180
|
*/
|
|
163
181
|
tooltipFeedback: BooleanConstructor;
|
|
182
|
+
/**
|
|
183
|
+
* Use in conjunction with the v-model directive to specify the value that should be assigned to the bound variable when the checkbox is in the `true` state.
|
|
184
|
+
*
|
|
185
|
+
* @since 4.9.0
|
|
186
|
+
*/
|
|
187
|
+
trueValue: StringConstructor;
|
|
164
188
|
/**
|
|
165
189
|
* Specifies the type of component.
|
|
166
190
|
*
|
|
@@ -47,12 +47,8 @@ export declare const File: {
|
|
|
47
47
|
};
|
|
48
48
|
fromEntries<T_13 = any>(entries: Iterable<readonly [PropertyKey, T_13]>): {
|
|
49
49
|
[k: string]: T_13;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
fromEntries(entries: Iterable<readonly any[]>): any; /**
|
|
54
|
-
* Set component validation state to invalid.
|
|
55
|
-
*/
|
|
50
|
+
};
|
|
51
|
+
fromEntries(entries: Iterable<readonly any[]>): any;
|
|
56
52
|
} | {
|
|
57
53
|
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
58
54
|
prototype: File;
|
|
@@ -152,12 +148,8 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
152
148
|
};
|
|
153
149
|
fromEntries<T_13 = any>(entries: Iterable<readonly [PropertyKey, T_13]>): {
|
|
154
150
|
[k: string]: T_13;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
*/
|
|
158
|
-
fromEntries(entries: Iterable<readonly any[]>): any; /**
|
|
159
|
-
* Set component validation state to invalid.
|
|
160
|
-
*/
|
|
151
|
+
};
|
|
152
|
+
fromEntries(entries: Iterable<readonly any[]>): any;
|
|
161
153
|
} | {
|
|
162
154
|
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
163
155
|
prototype: File;
|
|
@@ -301,12 +293,8 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
301
293
|
};
|
|
302
294
|
fromEntries<T_13 = any>(entries: Iterable<readonly [PropertyKey, T_13]>): {
|
|
303
295
|
[k: string]: T_13;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
*/
|
|
307
|
-
fromEntries(entries: Iterable<readonly any[]>): any; /**
|
|
308
|
-
* Set component validation state to invalid.
|
|
309
|
-
*/
|
|
296
|
+
};
|
|
297
|
+
fromEntries(entries: Iterable<readonly any[]>): any;
|
|
310
298
|
} | {
|
|
311
299
|
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): File;
|
|
312
300
|
prototype: File;
|
|
@@ -4,7 +4,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
4
4
|
/**
|
|
5
5
|
* Allow users to create options if they are not in the list of options.
|
|
6
6
|
*
|
|
7
|
-
* @since 4.9.0
|
|
7
|
+
* @since 4.9.0
|
|
8
8
|
*/
|
|
9
9
|
allowCreateOptions: BooleanConstructor;
|
|
10
10
|
/**
|
|
@@ -19,7 +19,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
19
19
|
/**
|
|
20
20
|
* Clear current search on selecting an item.
|
|
21
21
|
*
|
|
22
|
-
* @since 4.9.0
|
|
22
|
+
* @since 4.9.0
|
|
23
23
|
*/
|
|
24
24
|
clearSearchOnSelect: BooleanConstructor;
|
|
25
25
|
/**
|
|
@@ -63,7 +63,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
63
63
|
/**
|
|
64
64
|
* When set, the options list will have a loading style: loading spinner and reduced opacity.
|
|
65
65
|
*
|
|
66
|
-
* @since 4.9.0
|
|
66
|
+
* @since 4.9.0
|
|
67
67
|
*/
|
|
68
68
|
loading: BooleanConstructor;
|
|
69
69
|
/**
|
|
@@ -223,7 +223,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
223
223
|
/**
|
|
224
224
|
* Allow users to create options if they are not in the list of options.
|
|
225
225
|
*
|
|
226
|
-
* @since 4.9.0
|
|
226
|
+
* @since 4.9.0
|
|
227
227
|
*/
|
|
228
228
|
allowCreateOptions: BooleanConstructor;
|
|
229
229
|
/**
|
|
@@ -238,7 +238,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
238
238
|
/**
|
|
239
239
|
* Clear current search on selecting an item.
|
|
240
240
|
*
|
|
241
|
-
* @since 4.9.0
|
|
241
|
+
* @since 4.9.0
|
|
242
242
|
*/
|
|
243
243
|
clearSearchOnSelect: BooleanConstructor;
|
|
244
244
|
/**
|
|
@@ -282,7 +282,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
282
282
|
/**
|
|
283
283
|
* When set, the options list will have a loading style: loading spinner and reduced opacity.
|
|
284
284
|
*
|
|
285
|
-
* @since 4.9.0
|
|
285
|
+
* @since 4.9.0
|
|
286
286
|
*/
|
|
287
287
|
loading: BooleanConstructor;
|
|
288
288
|
/**
|
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
import { PropType, RendererElement } from 'vue';
|
|
2
|
-
import { Placement } from '@popperjs/core';
|
|
2
|
+
import type { Placement } from '@popperjs/core';
|
|
3
|
+
import type { Placements, Triggers } from '../../types';
|
|
3
4
|
declare const CPopover: import("vue").DefineComponent<{
|
|
5
|
+
/**
|
|
6
|
+
* Apply a CSS fade transition to the popover.
|
|
7
|
+
*
|
|
8
|
+
* @since 4.9.0
|
|
9
|
+
*/
|
|
10
|
+
animation: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
4
14
|
/**
|
|
5
15
|
* Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
|
|
6
16
|
*/
|
|
7
17
|
content: StringConstructor;
|
|
18
|
+
/**
|
|
19
|
+
* The delay for displaying and hiding the popover (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`.
|
|
20
|
+
*
|
|
21
|
+
* @since 4.9.0
|
|
22
|
+
*/
|
|
23
|
+
delay: {
|
|
24
|
+
type: PropType<number | {
|
|
25
|
+
show: number;
|
|
26
|
+
hide: number;
|
|
27
|
+
}>;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
32
|
+
*
|
|
33
|
+
* @since 4.9.0
|
|
34
|
+
*/
|
|
35
|
+
fallbackPlacements: {
|
|
36
|
+
type: PropType<string | string[]>;
|
|
37
|
+
default: () => string[];
|
|
38
|
+
validator: (value: Placements | Placements[]) => boolean;
|
|
39
|
+
};
|
|
8
40
|
/**
|
|
9
41
|
* Offset of the popover relative to its target.
|
|
10
42
|
*/
|
|
@@ -30,9 +62,9 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
30
62
|
* @values 'click', 'focus', 'hover'
|
|
31
63
|
*/
|
|
32
64
|
trigger: {
|
|
33
|
-
type: PropType<
|
|
65
|
+
type: PropType<Triggers | Triggers[]>;
|
|
34
66
|
default: string;
|
|
35
|
-
validator: (value:
|
|
67
|
+
validator: (value: Triggers | Triggers[]) => boolean;
|
|
36
68
|
};
|
|
37
69
|
/**
|
|
38
70
|
* Toggle the visibility of popover component.
|
|
@@ -43,10 +75,41 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
43
75
|
}> | import("vue").VNode<import("vue").RendererNode, RendererElement, {
|
|
44
76
|
[key: string]: any;
|
|
45
77
|
}>[] | undefined)[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show")[], "hide" | "show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
+
/**
|
|
79
|
+
* Apply a CSS fade transition to the popover.
|
|
80
|
+
*
|
|
81
|
+
* @since 4.9.0
|
|
82
|
+
*/
|
|
83
|
+
animation: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
46
87
|
/**
|
|
47
88
|
* Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
|
|
48
89
|
*/
|
|
49
90
|
content: StringConstructor;
|
|
91
|
+
/**
|
|
92
|
+
* The delay for displaying and hiding the popover (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`.
|
|
93
|
+
*
|
|
94
|
+
* @since 4.9.0
|
|
95
|
+
*/
|
|
96
|
+
delay: {
|
|
97
|
+
type: PropType<number | {
|
|
98
|
+
show: number;
|
|
99
|
+
hide: number;
|
|
100
|
+
}>;
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
105
|
+
*
|
|
106
|
+
* @since 4.9.0
|
|
107
|
+
*/
|
|
108
|
+
fallbackPlacements: {
|
|
109
|
+
type: PropType<string | string[]>;
|
|
110
|
+
default: () => string[];
|
|
111
|
+
validator: (value: Placements | Placements[]) => boolean;
|
|
112
|
+
};
|
|
50
113
|
/**
|
|
51
114
|
* Offset of the popover relative to its target.
|
|
52
115
|
*/
|
|
@@ -72,9 +135,9 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
72
135
|
* @values 'click', 'focus', 'hover'
|
|
73
136
|
*/
|
|
74
137
|
trigger: {
|
|
75
|
-
type: PropType<
|
|
138
|
+
type: PropType<Triggers | Triggers[]>;
|
|
76
139
|
default: string;
|
|
77
|
-
validator: (value:
|
|
140
|
+
validator: (value: Triggers | Triggers[]) => boolean;
|
|
78
141
|
};
|
|
79
142
|
/**
|
|
80
143
|
* Toggle the visibility of popover component.
|
|
@@ -87,6 +150,12 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
87
150
|
visible: boolean;
|
|
88
151
|
placement: Placement;
|
|
89
152
|
offset: unknown[];
|
|
90
|
-
trigger:
|
|
153
|
+
trigger: Triggers | Triggers[];
|
|
154
|
+
animation: boolean;
|
|
155
|
+
delay: number | {
|
|
156
|
+
show: number;
|
|
157
|
+
hide: number;
|
|
158
|
+
};
|
|
159
|
+
fallbackPlacements: string | string[];
|
|
91
160
|
}, {}>;
|
|
92
161
|
export { CPopover };
|
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
import { PropType, RendererElement } from 'vue';
|
|
2
|
-
import { Placement } from '@popperjs/core';
|
|
2
|
+
import type { Placement } from '@popperjs/core';
|
|
3
|
+
import type { Placements, Triggers } from '../../types';
|
|
3
4
|
declare const CTooltip: import("vue").DefineComponent<{
|
|
5
|
+
/**
|
|
6
|
+
* Apply a CSS fade transition to the tooltip.
|
|
7
|
+
*
|
|
8
|
+
* @since 4.9.0
|
|
9
|
+
*/
|
|
10
|
+
animation: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
4
14
|
/**
|
|
5
15
|
* Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
|
|
6
16
|
*/
|
|
7
17
|
content: StringConstructor;
|
|
18
|
+
/**
|
|
19
|
+
* The delay for displaying and hiding the popover (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`.
|
|
20
|
+
*
|
|
21
|
+
* @since 4.9.0
|
|
22
|
+
*/
|
|
23
|
+
delay: {
|
|
24
|
+
type: PropType<number | {
|
|
25
|
+
show: number;
|
|
26
|
+
hide: number;
|
|
27
|
+
}>;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
32
|
+
*
|
|
33
|
+
* @since 4.9.0
|
|
34
|
+
*/
|
|
35
|
+
fallbackPlacements: {
|
|
36
|
+
type: PropType<string | string[]>;
|
|
37
|
+
default: () => string[];
|
|
38
|
+
validator: (value: Placements | Placements[]) => boolean;
|
|
39
|
+
};
|
|
8
40
|
/**
|
|
9
41
|
* Offset of the tooltip relative to its target.
|
|
10
42
|
*/
|
|
@@ -26,9 +58,9 @@ declare const CTooltip: import("vue").DefineComponent<{
|
|
|
26
58
|
* @values 'click', 'focus', 'hover'
|
|
27
59
|
*/
|
|
28
60
|
trigger: {
|
|
29
|
-
type: PropType<
|
|
30
|
-
default: string;
|
|
31
|
-
validator: (value:
|
|
61
|
+
type: PropType<Triggers | Triggers[]>;
|
|
62
|
+
default: () => string[];
|
|
63
|
+
validator: (value: Triggers | Triggers[]) => boolean;
|
|
32
64
|
};
|
|
33
65
|
/**
|
|
34
66
|
* Toggle the visibility of tooltip component.
|
|
@@ -39,10 +71,41 @@ declare const CTooltip: import("vue").DefineComponent<{
|
|
|
39
71
|
}> | import("vue").VNode<import("vue").RendererNode, RendererElement, {
|
|
40
72
|
[key: string]: any;
|
|
41
73
|
}>[] | undefined)[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show")[], "hide" | "show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
/**
|
|
75
|
+
* Apply a CSS fade transition to the tooltip.
|
|
76
|
+
*
|
|
77
|
+
* @since 4.9.0
|
|
78
|
+
*/
|
|
79
|
+
animation: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
42
83
|
/**
|
|
43
84
|
* Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
|
|
44
85
|
*/
|
|
45
86
|
content: StringConstructor;
|
|
87
|
+
/**
|
|
88
|
+
* The delay for displaying and hiding the popover (in milliseconds). When a numerical value is provided, the delay applies to both the hide and show actions. The object structure for specifying the delay is as follows: delay: `{ 'show': 500, 'hide': 100 }`.
|
|
89
|
+
*
|
|
90
|
+
* @since 4.9.0
|
|
91
|
+
*/
|
|
92
|
+
delay: {
|
|
93
|
+
type: PropType<number | {
|
|
94
|
+
show: number;
|
|
95
|
+
hide: number;
|
|
96
|
+
}>;
|
|
97
|
+
default: number;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Specify the desired order of fallback placements by providing a list of placements as an array. The placements should be prioritized based on preference.
|
|
101
|
+
*
|
|
102
|
+
* @since 4.9.0
|
|
103
|
+
*/
|
|
104
|
+
fallbackPlacements: {
|
|
105
|
+
type: PropType<string | string[]>;
|
|
106
|
+
default: () => string[];
|
|
107
|
+
validator: (value: Placements | Placements[]) => boolean;
|
|
108
|
+
};
|
|
46
109
|
/**
|
|
47
110
|
* Offset of the tooltip relative to its target.
|
|
48
111
|
*/
|
|
@@ -64,9 +127,9 @@ declare const CTooltip: import("vue").DefineComponent<{
|
|
|
64
127
|
* @values 'click', 'focus', 'hover'
|
|
65
128
|
*/
|
|
66
129
|
trigger: {
|
|
67
|
-
type: PropType<
|
|
68
|
-
default: string;
|
|
69
|
-
validator: (value:
|
|
130
|
+
type: PropType<Triggers | Triggers[]>;
|
|
131
|
+
default: () => string[];
|
|
132
|
+
validator: (value: Triggers | Triggers[]) => boolean;
|
|
70
133
|
};
|
|
71
134
|
/**
|
|
72
135
|
* Toggle the visibility of tooltip component.
|
|
@@ -79,6 +142,12 @@ declare const CTooltip: import("vue").DefineComponent<{
|
|
|
79
142
|
visible: boolean;
|
|
80
143
|
placement: Placement;
|
|
81
144
|
offset: unknown[];
|
|
82
|
-
trigger:
|
|
145
|
+
trigger: Triggers | Triggers[];
|
|
146
|
+
animation: boolean;
|
|
147
|
+
delay: number | {
|
|
148
|
+
show: number;
|
|
149
|
+
hide: number;
|
|
150
|
+
};
|
|
151
|
+
fallbackPlacements: string | string[];
|
|
83
152
|
}, {}>;
|
|
84
153
|
export { CTooltip };
|