@coreui/vue-pro 4.9.0-beta.2 → 4.9.0-rc.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 +1 -1
- package/dist/components/form/CFormControl.d.ts +1 -1
- package/dist/components/form/CFormInput.d.ts +2 -2
- package/dist/components/form/CFormTextarea.d.ts +2 -2
- package/dist/components/multi-select/CMultiSelect.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelectNativeSelect.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +1 -1
- package/dist/components/picker/CPicker.d.ts +3 -3
- 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 -2
- package/dist/composables/useColorModes.d.ts +1 -1
- package/dist/composables/usePopper.d.ts +6 -0
- package/dist/index.es.js +3748 -3667
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3747 -3666
- 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 +2 -2
- package/src/components/date-range-picker/CDateRangePicker.ts +85 -65
- 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/multi-select/CMultiSelect.ts +55 -64
- package/src/components/multi-select/CMultiSelectSelection.ts +10 -11
- package/src/components/picker/CPicker.ts +22 -7
- package/src/components/popover/CPopover.ts +96 -50
- package/src/components/time-picker/CTimePicker.ts +29 -11
- package/src/components/tooltip/CTooltip.ts +97 -51
- package/src/composables/index.ts +2 -2
- 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/src/composables/useColorModes.ts +0 -62
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/v4.9.0-
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.9.0-rc.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-rc.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-rc.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;
|
|
@@ -355,15 +355,15 @@ declare const CFormInput: import("vue").DefineComponent<{
|
|
|
355
355
|
valid: BooleanConstructor;
|
|
356
356
|
}>> & {
|
|
357
357
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
358
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
359
358
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
359
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
360
360
|
}, {
|
|
361
361
|
invalid: boolean;
|
|
362
362
|
type: string;
|
|
363
363
|
disabled: boolean;
|
|
364
364
|
valid: boolean;
|
|
365
365
|
tooltipFeedback: boolean;
|
|
366
|
-
readonly: boolean;
|
|
367
366
|
plainText: boolean;
|
|
367
|
+
readonly: boolean;
|
|
368
368
|
}, {}>;
|
|
369
369
|
export { CFormInput };
|
|
@@ -144,14 +144,14 @@ declare const CFormTextarea: import("vue").DefineComponent<{
|
|
|
144
144
|
valid: BooleanConstructor;
|
|
145
145
|
}>> & {
|
|
146
146
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
147
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
148
147
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
149
149
|
}, {
|
|
150
150
|
invalid: boolean;
|
|
151
151
|
disabled: boolean;
|
|
152
152
|
valid: boolean;
|
|
153
153
|
tooltipFeedback: boolean;
|
|
154
|
-
readonly: boolean;
|
|
155
154
|
plainText: boolean;
|
|
155
|
+
readonly: boolean;
|
|
156
156
|
}, {}>;
|
|
157
157
|
export { CFormTextarea };
|
|
@@ -449,10 +449,10 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
449
449
|
required: boolean;
|
|
450
450
|
valid: boolean;
|
|
451
451
|
tooltipFeedback: boolean;
|
|
452
|
+
multiple: boolean;
|
|
452
453
|
options: (Option | OptionsGroup)[];
|
|
453
454
|
cleaner: boolean;
|
|
454
455
|
placeholder: string;
|
|
455
|
-
multiple: boolean;
|
|
456
456
|
loading: boolean;
|
|
457
457
|
visibleItems: number;
|
|
458
458
|
optionsMaxHeight: string | number;
|
|
@@ -30,7 +30,7 @@ declare const CMultiSelectNativeSelect: import("vue").DefineComponent<{
|
|
|
30
30
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
required: boolean;
|
|
33
|
-
options: Option[];
|
|
34
33
|
multiple: boolean;
|
|
34
|
+
options: Option[];
|
|
35
35
|
}, {}>;
|
|
36
36
|
export { CMultiSelectNativeSelect };
|
|
@@ -45,8 +45,8 @@ declare const CMultiSelectSelection: import("vue").DefineComponent<{
|
|
|
45
45
|
}>> & {
|
|
46
46
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
selected: Option[];
|
|
49
48
|
multiple: boolean;
|
|
49
|
+
selected: Option[];
|
|
50
50
|
selectionType: string;
|
|
51
51
|
selectionTypeCounterText: string;
|
|
52
52
|
}, {}>;
|
|
@@ -4,7 +4,7 @@ declare const CPicker: import("vue").DefineComponent<{
|
|
|
4
4
|
* Set container type for the component.
|
|
5
5
|
*/
|
|
6
6
|
container: {
|
|
7
|
-
type: PropType<"
|
|
7
|
+
type: PropType<"inline" | "dropdown">;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -30,7 +30,7 @@ declare const CPicker: import("vue").DefineComponent<{
|
|
|
30
30
|
* Set container type for the component.
|
|
31
31
|
*/
|
|
32
32
|
container: {
|
|
33
|
-
type: PropType<"
|
|
33
|
+
type: PropType<"inline" | "dropdown">;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
@@ -56,6 +56,6 @@ declare const CPicker: import("vue").DefineComponent<{
|
|
|
56
56
|
visible: boolean;
|
|
57
57
|
disabled: boolean;
|
|
58
58
|
footer: boolean;
|
|
59
|
-
container: "
|
|
59
|
+
container: "inline" | "dropdown";
|
|
60
60
|
}, {}>;
|
|
61
61
|
export { CPicker };
|
|
@@ -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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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-rc.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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { usePopper } from './usePopper';
|
|
2
|
+
export { usePopper };
|