@vue-interface/btn-dropdown 2.0.0-beta.6 → 3.0.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/CHANGELOG.md +12 -0
- package/demo.css +4 -0
- package/docs/btn-dropdown.md +747 -0
- package/index.css +3 -0
- package/index.html +585 -0
- package/{dist/index.d.ts → index.ts} +4 -1
- package/package.json +18 -47
- package/src/BtnDropdown.vue +41 -0
- package/src/BtnDropdownSingle.vue +55 -0
- package/src/BtnDropdownSplit.vue +84 -0
- package/src/useDropdownHandler.ts +213 -0
- package/tsconfig.json +27 -0
- package/vite.config.js +52 -0
- package/dist/btn-dropdown.js +0 -1804
- package/dist/btn-dropdown.umd.cjs +0 -5
- package/dist/src/BtnDropdown.vue.d.ts +0 -9
- package/dist/src/BtnDropdownAction.vue.d.ts +0 -43
- package/dist/src/BtnDropdownSingle.vue.d.ts +0 -280
- package/dist/src/BtnDropdownSplit.vue.d.ts +0 -282
- package/dist/src/DropdownHandler.d.ts +0 -424
- package/dist/style.css +0 -1
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, {
|
|
2
|
-
components: {
|
|
3
|
-
BtnDropdownAction: import("vue").DefineComponent<{
|
|
4
|
-
expanded: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default: boolean;
|
|
7
|
-
};
|
|
8
|
-
id: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: undefined;
|
|
11
|
-
};
|
|
12
|
-
href: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
to: {
|
|
17
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
18
|
-
default: undefined;
|
|
19
|
-
};
|
|
20
|
-
}, unknown, unknown, {
|
|
21
|
-
is(): "button" | "router-link" | "a";
|
|
22
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
expanded: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
id: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: undefined;
|
|
30
|
-
};
|
|
31
|
-
href: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: undefined;
|
|
34
|
-
};
|
|
35
|
-
to: {
|
|
36
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
37
|
-
default: undefined;
|
|
38
|
-
};
|
|
39
|
-
}>>, {
|
|
40
|
-
expanded: boolean;
|
|
41
|
-
id: string;
|
|
42
|
-
href: string;
|
|
43
|
-
to: string | Record<string, any>;
|
|
44
|
-
}>;
|
|
45
|
-
BtnGroup: import("vue").DefineComponent<{
|
|
46
|
-
sizePrefix: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default(): string;
|
|
49
|
-
};
|
|
50
|
-
toggle: BooleanConstructor;
|
|
51
|
-
vertical: BooleanConstructor;
|
|
52
|
-
}, unknown, unknown, {
|
|
53
|
-
classes(): {
|
|
54
|
-
[x: number]: boolean;
|
|
55
|
-
'btn-group': boolean;
|
|
56
|
-
'btn-group-toggle': any;
|
|
57
|
-
'btn-group-vertical': any;
|
|
58
|
-
};
|
|
59
|
-
}, {}, import("vue").DefineComponent<{
|
|
60
|
-
componentPrefix: StringConstructor;
|
|
61
|
-
size: StringConstructor;
|
|
62
|
-
sizePrefix: StringConstructor;
|
|
63
|
-
}, unknown, unknown, {
|
|
64
|
-
sizeableClassPrefix(): string | undefined;
|
|
65
|
-
hasSizeablePrefix(): boolean;
|
|
66
|
-
sizeableClass(): string;
|
|
67
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
-
componentPrefix: StringConstructor;
|
|
69
|
-
size: StringConstructor;
|
|
70
|
-
sizePrefix: StringConstructor;
|
|
71
|
-
}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
-
sizePrefix: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
default(): string;
|
|
75
|
-
};
|
|
76
|
-
toggle: BooleanConstructor;
|
|
77
|
-
vertical: BooleanConstructor;
|
|
78
|
-
}>>, {
|
|
79
|
-
sizePrefix: string;
|
|
80
|
-
toggle: boolean;
|
|
81
|
-
vertical: boolean;
|
|
82
|
-
}>;
|
|
83
|
-
DropdownMenu: import("vue").DefineComponent<{
|
|
84
|
-
align: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
validate(value: any): boolean;
|
|
88
|
-
};
|
|
89
|
-
show: BooleanConstructor;
|
|
90
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
-
align: {
|
|
92
|
-
type: StringConstructor;
|
|
93
|
-
default: string;
|
|
94
|
-
validate(value: any): boolean;
|
|
95
|
-
};
|
|
96
|
-
show: BooleanConstructor;
|
|
97
|
-
}>>, {
|
|
98
|
-
align: string;
|
|
99
|
-
show: boolean;
|
|
100
|
-
}>;
|
|
101
|
-
};
|
|
102
|
-
extends: import("vue").DefineComponent<{
|
|
103
|
-
active: BooleanConstructor;
|
|
104
|
-
block: BooleanConstructor;
|
|
105
|
-
componentPrefix: {
|
|
106
|
-
type: StringConstructor;
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
disabled: BooleanConstructor;
|
|
110
|
-
label: StringConstructor;
|
|
111
|
-
outline: BooleanConstructor;
|
|
112
|
-
tag: StringConstructor;
|
|
113
|
-
variant: {
|
|
114
|
-
type: StringConstructor;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
}, unknown, unknown, {
|
|
118
|
-
classes(): string | undefined[];
|
|
119
|
-
component(): string;
|
|
120
|
-
variantClassPrefix(): string;
|
|
121
|
-
}, {}, {
|
|
122
|
-
props: {
|
|
123
|
-
componentPrefix: StringConstructor;
|
|
124
|
-
size: StringConstructor;
|
|
125
|
-
sizePrefix: StringConstructor;
|
|
126
|
-
};
|
|
127
|
-
computed: {
|
|
128
|
-
sizeableClassPrefix(): string | undefined;
|
|
129
|
-
hasSizeablePrefix(): boolean;
|
|
130
|
-
sizeableClass(): string;
|
|
131
|
-
};
|
|
132
|
-
} | {
|
|
133
|
-
props: {
|
|
134
|
-
componentPrefix: StringConstructor;
|
|
135
|
-
variant: StringConstructor;
|
|
136
|
-
variantPrefix: StringConstructor;
|
|
137
|
-
};
|
|
138
|
-
computed: {
|
|
139
|
-
variantClassPrefix(): string | undefined;
|
|
140
|
-
hasVariantPrefix(): boolean;
|
|
141
|
-
variantClass(): string;
|
|
142
|
-
};
|
|
143
|
-
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
144
|
-
active: BooleanConstructor;
|
|
145
|
-
block: BooleanConstructor;
|
|
146
|
-
componentPrefix: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
disabled: BooleanConstructor;
|
|
151
|
-
label: StringConstructor;
|
|
152
|
-
outline: BooleanConstructor;
|
|
153
|
-
tag: StringConstructor;
|
|
154
|
-
variant: {
|
|
155
|
-
type: StringConstructor;
|
|
156
|
-
default: string;
|
|
157
|
-
};
|
|
158
|
-
}>>, {
|
|
159
|
-
active: boolean;
|
|
160
|
-
block: boolean;
|
|
161
|
-
componentPrefix: string;
|
|
162
|
-
disabled: boolean;
|
|
163
|
-
outline: boolean;
|
|
164
|
-
variant: string;
|
|
165
|
-
}>;
|
|
166
|
-
emits: string[];
|
|
167
|
-
props: {
|
|
168
|
-
align: {
|
|
169
|
-
type: StringConstructor;
|
|
170
|
-
default: string;
|
|
171
|
-
validate(value: any): boolean;
|
|
172
|
-
};
|
|
173
|
-
animated: {
|
|
174
|
-
type: BooleanConstructor;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
buttonClass: (StringConstructor | ObjectConstructor)[];
|
|
178
|
-
caret: {
|
|
179
|
-
type: BooleanConstructor;
|
|
180
|
-
default: boolean;
|
|
181
|
-
};
|
|
182
|
-
dropup: {
|
|
183
|
-
type: BooleanConstructor;
|
|
184
|
-
default: boolean;
|
|
185
|
-
};
|
|
186
|
-
dropright: {
|
|
187
|
-
type: BooleanConstructor;
|
|
188
|
-
default: boolean;
|
|
189
|
-
};
|
|
190
|
-
dropleft: {
|
|
191
|
-
type: BooleanConstructor;
|
|
192
|
-
default: boolean;
|
|
193
|
-
};
|
|
194
|
-
height: StringConstructor;
|
|
195
|
-
href: StringConstructor;
|
|
196
|
-
nav: BooleanConstructor;
|
|
197
|
-
label: StringConstructor;
|
|
198
|
-
offset: {
|
|
199
|
-
type: NumberConstructor;
|
|
200
|
-
default: number;
|
|
201
|
-
};
|
|
202
|
-
rotate: {
|
|
203
|
-
type: BooleanConstructor;
|
|
204
|
-
default: boolean;
|
|
205
|
-
};
|
|
206
|
-
split: {
|
|
207
|
-
type: BooleanConstructor;
|
|
208
|
-
default: boolean;
|
|
209
|
-
};
|
|
210
|
-
to: (StringConstructor | ObjectConstructor)[];
|
|
211
|
-
type: {
|
|
212
|
-
type: StringConstructor;
|
|
213
|
-
default: string;
|
|
214
|
-
};
|
|
215
|
-
width: StringConstructor;
|
|
216
|
-
};
|
|
217
|
-
data(): {
|
|
218
|
-
popper: null;
|
|
219
|
-
triggerAnimation: boolean;
|
|
220
|
-
expanded: boolean;
|
|
221
|
-
};
|
|
222
|
-
computed: {
|
|
223
|
-
scope(): {
|
|
224
|
-
placement: any;
|
|
225
|
-
variantClassPrefix: any;
|
|
226
|
-
sizeableClassPrefix: any;
|
|
227
|
-
classes: any;
|
|
228
|
-
actionClasses: any;
|
|
229
|
-
toggleStyle: any;
|
|
230
|
-
toggleClasses: any;
|
|
231
|
-
focus: any;
|
|
232
|
-
queryFocusable: any;
|
|
233
|
-
isFocusable: any;
|
|
234
|
-
toggle: any;
|
|
235
|
-
show: any;
|
|
236
|
-
hide: any;
|
|
237
|
-
onBlur: any;
|
|
238
|
-
onClickItem: any;
|
|
239
|
-
onClickToggle: any;
|
|
240
|
-
expanded: any;
|
|
241
|
-
};
|
|
242
|
-
placement(): "left" | "right" | "top" | "bottom";
|
|
243
|
-
variantClassPrefix(): string;
|
|
244
|
-
sizeableClassPrefix(): string;
|
|
245
|
-
classes(): {
|
|
246
|
-
dropdown: any;
|
|
247
|
-
dropup: any;
|
|
248
|
-
dropright: any;
|
|
249
|
-
dropleft: any;
|
|
250
|
-
'icon-only': boolean;
|
|
251
|
-
'hide-caret': boolean;
|
|
252
|
-
expanded: any;
|
|
253
|
-
'rotate-90': any;
|
|
254
|
-
};
|
|
255
|
-
actionClasses(): any;
|
|
256
|
-
toggleStyle(): {
|
|
257
|
-
width: any;
|
|
258
|
-
height: any;
|
|
259
|
-
};
|
|
260
|
-
toggleClasses(): any;
|
|
261
|
-
};
|
|
262
|
-
beforeUnmount(): void;
|
|
263
|
-
methods: {
|
|
264
|
-
focus(): void;
|
|
265
|
-
queryFocusable(): any;
|
|
266
|
-
isFocusable(element: any): boolean;
|
|
267
|
-
toggle(): void;
|
|
268
|
-
show(): void;
|
|
269
|
-
hide(): void;
|
|
270
|
-
onBlur(e: any): void;
|
|
271
|
-
onClickDocument(e: Event): void;
|
|
272
|
-
onClickItem(e: any): void;
|
|
273
|
-
onClickToggle(e: any): void;
|
|
274
|
-
onKeydown(e: any): void;
|
|
275
|
-
};
|
|
276
|
-
watch: {
|
|
277
|
-
expanded(value: any): void;
|
|
278
|
-
};
|
|
279
|
-
}, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
280
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
281
|
-
}, {}>;
|
|
282
|
-
export default _sfc_main;
|
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
components: {
|
|
3
|
-
BtnDropdownAction: import("vue").DefineComponent<{
|
|
4
|
-
expanded: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default: boolean;
|
|
7
|
-
};
|
|
8
|
-
id: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: undefined;
|
|
11
|
-
};
|
|
12
|
-
href: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
to: {
|
|
17
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
18
|
-
default: undefined;
|
|
19
|
-
};
|
|
20
|
-
}, unknown, unknown, {
|
|
21
|
-
is(): "button" | "router-link" | "a";
|
|
22
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
expanded: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
id: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: undefined;
|
|
30
|
-
};
|
|
31
|
-
href: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: undefined;
|
|
34
|
-
};
|
|
35
|
-
to: {
|
|
36
|
-
type: (StringConstructor | ObjectConstructor)[];
|
|
37
|
-
default: undefined;
|
|
38
|
-
};
|
|
39
|
-
}>>, {
|
|
40
|
-
expanded: boolean;
|
|
41
|
-
id: string;
|
|
42
|
-
href: string;
|
|
43
|
-
to: string | Record<string, any>;
|
|
44
|
-
}>;
|
|
45
|
-
BtnGroup: import("vue").DefineComponent<{
|
|
46
|
-
sizePrefix: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default(): string;
|
|
49
|
-
};
|
|
50
|
-
toggle: BooleanConstructor;
|
|
51
|
-
vertical: BooleanConstructor;
|
|
52
|
-
}, unknown, unknown, {
|
|
53
|
-
classes(): {
|
|
54
|
-
[x: number]: boolean;
|
|
55
|
-
'btn-group': boolean;
|
|
56
|
-
'btn-group-toggle': any;
|
|
57
|
-
'btn-group-vertical': any;
|
|
58
|
-
};
|
|
59
|
-
}, {}, import("vue").DefineComponent<{
|
|
60
|
-
componentPrefix: StringConstructor;
|
|
61
|
-
size: StringConstructor;
|
|
62
|
-
sizePrefix: StringConstructor;
|
|
63
|
-
}, unknown, unknown, {
|
|
64
|
-
sizeableClassPrefix(): string | undefined; /**
|
|
65
|
-
* Should animate the dropdown opening.
|
|
66
|
-
*
|
|
67
|
-
* @property {Boolean}
|
|
68
|
-
*/
|
|
69
|
-
hasSizeablePrefix(): boolean;
|
|
70
|
-
sizeableClass(): string;
|
|
71
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
-
componentPrefix: StringConstructor;
|
|
73
|
-
size: StringConstructor;
|
|
74
|
-
sizePrefix: StringConstructor;
|
|
75
|
-
}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
-
sizePrefix: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default(): string; /**
|
|
79
|
-
* Display as a dropup instead of a dropdown.
|
|
80
|
-
*
|
|
81
|
-
* @property Boolean
|
|
82
|
-
*/
|
|
83
|
-
};
|
|
84
|
-
toggle: BooleanConstructor;
|
|
85
|
-
vertical: BooleanConstructor;
|
|
86
|
-
}>>, {
|
|
87
|
-
sizePrefix: string;
|
|
88
|
-
toggle: boolean;
|
|
89
|
-
vertical: boolean;
|
|
90
|
-
}>;
|
|
91
|
-
DropdownMenu: import("vue").DefineComponent<{
|
|
92
|
-
align: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
default: string;
|
|
95
|
-
validate(value: any): boolean;
|
|
96
|
-
};
|
|
97
|
-
show: BooleanConstructor;
|
|
98
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
|
-
align: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
validate(value: any): boolean;
|
|
103
|
-
};
|
|
104
|
-
show: BooleanConstructor;
|
|
105
|
-
}>>, {
|
|
106
|
-
align: string;
|
|
107
|
-
show: boolean;
|
|
108
|
-
}>;
|
|
109
|
-
};
|
|
110
|
-
extends: import("vue").DefineComponent<{
|
|
111
|
-
active: BooleanConstructor;
|
|
112
|
-
block: BooleanConstructor;
|
|
113
|
-
componentPrefix: {
|
|
114
|
-
type: StringConstructor;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
disabled: BooleanConstructor;
|
|
118
|
-
label: StringConstructor;
|
|
119
|
-
outline: BooleanConstructor;
|
|
120
|
-
tag: StringConstructor;
|
|
121
|
-
variant: {
|
|
122
|
-
type: StringConstructor;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
}, unknown, unknown, {
|
|
126
|
-
classes(): string | undefined[];
|
|
127
|
-
component(): string;
|
|
128
|
-
variantClassPrefix(): string;
|
|
129
|
-
}, {}, {
|
|
130
|
-
props: {
|
|
131
|
-
componentPrefix: StringConstructor;
|
|
132
|
-
size: StringConstructor;
|
|
133
|
-
sizePrefix: StringConstructor;
|
|
134
|
-
};
|
|
135
|
-
computed: {
|
|
136
|
-
sizeableClassPrefix(): string | undefined;
|
|
137
|
-
hasSizeablePrefix(): boolean;
|
|
138
|
-
sizeableClass(): string;
|
|
139
|
-
};
|
|
140
|
-
} | {
|
|
141
|
-
props: {
|
|
142
|
-
componentPrefix: StringConstructor;
|
|
143
|
-
/**
|
|
144
|
-
* Display as a dropup instead of a dropdown.
|
|
145
|
-
*
|
|
146
|
-
* @property Boolean
|
|
147
|
-
*/
|
|
148
|
-
variant: StringConstructor;
|
|
149
|
-
variantPrefix: StringConstructor;
|
|
150
|
-
};
|
|
151
|
-
computed: {
|
|
152
|
-
variantClassPrefix(): string | undefined;
|
|
153
|
-
hasVariantPrefix(): boolean;
|
|
154
|
-
variantClass(): string;
|
|
155
|
-
};
|
|
156
|
-
}, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
157
|
-
active: BooleanConstructor;
|
|
158
|
-
block: BooleanConstructor;
|
|
159
|
-
componentPrefix: {
|
|
160
|
-
type: StringConstructor;
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
disabled: BooleanConstructor;
|
|
164
|
-
label: StringConstructor;
|
|
165
|
-
outline: BooleanConstructor;
|
|
166
|
-
tag: StringConstructor;
|
|
167
|
-
variant: {
|
|
168
|
-
type: StringConstructor;
|
|
169
|
-
default: string;
|
|
170
|
-
};
|
|
171
|
-
}>>, {
|
|
172
|
-
active: boolean;
|
|
173
|
-
block: boolean;
|
|
174
|
-
componentPrefix: string;
|
|
175
|
-
disabled: boolean;
|
|
176
|
-
outline: boolean;
|
|
177
|
-
variant: string;
|
|
178
|
-
}>;
|
|
179
|
-
emits: string[];
|
|
180
|
-
props: {
|
|
181
|
-
/**
|
|
182
|
-
* Display the dropdown menu aligned left or right
|
|
183
|
-
*
|
|
184
|
-
* @property String
|
|
185
|
-
*/
|
|
186
|
-
align: {
|
|
187
|
-
type: StringConstructor;
|
|
188
|
-
default: string;
|
|
189
|
-
validate(value: any): boolean;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* Should animate the dropdown opening.
|
|
193
|
-
*
|
|
194
|
-
* @property {Boolean}
|
|
195
|
-
*/
|
|
196
|
-
animated: {
|
|
197
|
-
type: BooleanConstructor;
|
|
198
|
-
default: boolean;
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* Additional button classes.
|
|
202
|
-
*
|
|
203
|
-
* @property {Object|String}
|
|
204
|
-
*/
|
|
205
|
-
buttonClass: (StringConstructor | ObjectConstructor)[];
|
|
206
|
-
/**
|
|
207
|
-
* Show the caret.
|
|
208
|
-
*
|
|
209
|
-
* @property {Boolean}
|
|
210
|
-
*/
|
|
211
|
-
caret: {
|
|
212
|
-
type: BooleanConstructor;
|
|
213
|
-
default: boolean;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Should display the toggle button as a circle.
|
|
217
|
-
*
|
|
218
|
-
* @property Boolean
|
|
219
|
-
*/
|
|
220
|
-
/**
|
|
221
|
-
* Display as a dropup instead of a dropdown.
|
|
222
|
-
*
|
|
223
|
-
* @property Boolean
|
|
224
|
-
*/
|
|
225
|
-
dropup: {
|
|
226
|
-
type: BooleanConstructor;
|
|
227
|
-
default: boolean;
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Display as a dropright instead of a dropdown.
|
|
231
|
-
*
|
|
232
|
-
* @property Boolean
|
|
233
|
-
*/
|
|
234
|
-
dropright: {
|
|
235
|
-
type: BooleanConstructor;
|
|
236
|
-
default: boolean;
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* Display as a dropleft instead of a dropdown.
|
|
240
|
-
*
|
|
241
|
-
* @property Boolean
|
|
242
|
-
*/
|
|
243
|
-
dropleft: {
|
|
244
|
-
type: BooleanConstructor;
|
|
245
|
-
default: boolean;
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* The action height.
|
|
249
|
-
*
|
|
250
|
-
* @property {String}
|
|
251
|
-
*/
|
|
252
|
-
height: StringConstructor;
|
|
253
|
-
/**
|
|
254
|
-
* The href action.
|
|
255
|
-
*
|
|
256
|
-
* @property {String}
|
|
257
|
-
*/
|
|
258
|
-
href: StringConstructor;
|
|
259
|
-
/**
|
|
260
|
-
* Is the dropdown a nav item?
|
|
261
|
-
*
|
|
262
|
-
* @property {Boolean}
|
|
263
|
-
*/
|
|
264
|
-
nav: BooleanConstructor;
|
|
265
|
-
/**
|
|
266
|
-
* The toggle button's label. If not defined as an attribute,
|
|
267
|
-
* you can override with the component's slot (inner html).
|
|
268
|
-
*
|
|
269
|
-
* @property {String}
|
|
270
|
-
*/
|
|
271
|
-
label: StringConstructor;
|
|
272
|
-
offset: {
|
|
273
|
-
type: NumberConstructor;
|
|
274
|
-
default: number;
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* Should rotate the toggle button when opened.
|
|
278
|
-
*
|
|
279
|
-
* @property {Boolean}
|
|
280
|
-
*/
|
|
281
|
-
rotate: {
|
|
282
|
-
type: BooleanConstructor;
|
|
283
|
-
default: boolean;
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* Display the dropdown button with a split toggle button.
|
|
287
|
-
*
|
|
288
|
-
* @property {Boolean}
|
|
289
|
-
*/
|
|
290
|
-
split: {
|
|
291
|
-
type: BooleanConstructor;
|
|
292
|
-
default: boolean;
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* The "to" path, used for vue-router.
|
|
296
|
-
*
|
|
297
|
-
* @property {String|Object}
|
|
298
|
-
*/
|
|
299
|
-
to: (StringConstructor | ObjectConstructor)[];
|
|
300
|
-
/**
|
|
301
|
-
* The button type attribute.
|
|
302
|
-
*
|
|
303
|
-
* @property {String}
|
|
304
|
-
*/
|
|
305
|
-
type: {
|
|
306
|
-
type: StringConstructor;
|
|
307
|
-
default: string;
|
|
308
|
-
};
|
|
309
|
-
/**
|
|
310
|
-
* The action width.
|
|
311
|
-
*
|
|
312
|
-
* @property {String}
|
|
313
|
-
*/
|
|
314
|
-
width: StringConstructor;
|
|
315
|
-
};
|
|
316
|
-
data(): {
|
|
317
|
-
popper: null;
|
|
318
|
-
triggerAnimation: boolean;
|
|
319
|
-
expanded: boolean;
|
|
320
|
-
};
|
|
321
|
-
computed: {
|
|
322
|
-
scope(): {
|
|
323
|
-
placement: any;
|
|
324
|
-
variantClassPrefix: any;
|
|
325
|
-
sizeableClassPrefix: any;
|
|
326
|
-
classes: any;
|
|
327
|
-
actionClasses: any;
|
|
328
|
-
toggleStyle: any;
|
|
329
|
-
toggleClasses: any;
|
|
330
|
-
focus: any;
|
|
331
|
-
queryFocusable: any;
|
|
332
|
-
isFocusable: any;
|
|
333
|
-
toggle: any;
|
|
334
|
-
show: any;
|
|
335
|
-
hide: any;
|
|
336
|
-
onBlur: any;
|
|
337
|
-
onClickItem: any;
|
|
338
|
-
onClickToggle: any;
|
|
339
|
-
expanded: any;
|
|
340
|
-
};
|
|
341
|
-
placement(): "left" | "right" | "top" | "bottom";
|
|
342
|
-
variantClassPrefix(): string;
|
|
343
|
-
sizeableClassPrefix(): string;
|
|
344
|
-
classes(): {
|
|
345
|
-
dropdown: any;
|
|
346
|
-
dropup: any;
|
|
347
|
-
dropright: any;
|
|
348
|
-
dropleft: any;
|
|
349
|
-
'icon-only': boolean;
|
|
350
|
-
'hide-caret': boolean;
|
|
351
|
-
expanded: any;
|
|
352
|
-
'rotate-90': any;
|
|
353
|
-
};
|
|
354
|
-
actionClasses(): any;
|
|
355
|
-
toggleStyle(): {
|
|
356
|
-
width: any;
|
|
357
|
-
height: any;
|
|
358
|
-
};
|
|
359
|
-
toggleClasses(): any;
|
|
360
|
-
};
|
|
361
|
-
beforeUnmount(): void;
|
|
362
|
-
methods: {
|
|
363
|
-
/**
|
|
364
|
-
* Focus on the the dropdown toggle button
|
|
365
|
-
*
|
|
366
|
-
* @return void
|
|
367
|
-
*/
|
|
368
|
-
focus(): void;
|
|
369
|
-
/**
|
|
370
|
-
* Focus on the the dropdown toggle button
|
|
371
|
-
*
|
|
372
|
-
* @return void
|
|
373
|
-
*/
|
|
374
|
-
queryFocusable(): any;
|
|
375
|
-
/**
|
|
376
|
-
* Method to check if the given element is focusable.
|
|
377
|
-
*
|
|
378
|
-
* @return void
|
|
379
|
-
*/
|
|
380
|
-
isFocusable(element: any): boolean;
|
|
381
|
-
/**
|
|
382
|
-
* Toggle the dropdown menu
|
|
383
|
-
*
|
|
384
|
-
* @return void
|
|
385
|
-
*/
|
|
386
|
-
toggle(): void;
|
|
387
|
-
/**
|
|
388
|
-
* Show the dropdown menu
|
|
389
|
-
*
|
|
390
|
-
* @return void
|
|
391
|
-
*/
|
|
392
|
-
show(): void;
|
|
393
|
-
/**
|
|
394
|
-
* Hide the dropdown menu
|
|
395
|
-
*
|
|
396
|
-
* @return void
|
|
397
|
-
*/
|
|
398
|
-
hide(): void;
|
|
399
|
-
/**
|
|
400
|
-
* A callback function for the `blur-item` event.
|
|
401
|
-
*
|
|
402
|
-
* @return void
|
|
403
|
-
*/
|
|
404
|
-
onBlur(e: any): void;
|
|
405
|
-
onClickDocument(e: Event): void;
|
|
406
|
-
/**
|
|
407
|
-
* A callback function for the `click-item` event.
|
|
408
|
-
*
|
|
409
|
-
* @return void
|
|
410
|
-
*/
|
|
411
|
-
onClickItem(e: any): void;
|
|
412
|
-
/**
|
|
413
|
-
* A callback function for the `click-toggle` event.
|
|
414
|
-
*
|
|
415
|
-
* @return void
|
|
416
|
-
*/
|
|
417
|
-
onClickToggle(e: any): void;
|
|
418
|
-
onKeydown(e: any): void;
|
|
419
|
-
};
|
|
420
|
-
watch: {
|
|
421
|
-
expanded(value: any): void;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
export default _default;
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@-webkit-keyframes btnDropdownZoomIn{0%{opacity:0}to{opacity:1}}@keyframes btnDropdownZoomIn{0%{opacity:0}to{opacity:1}}.btn-dropdown{position:relative}.btn-dropdown .dropdown-toggle{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition:all 125ms ease-in;transition:all 125ms ease-in;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.nav-item .btn-group,.nav-item .btn-dropdown .dropdown-toggle{display:block}.btn-dropdown .rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.btn-dropdown.hide-caret .dropdown-toggle:after,.btn-dropdown.icon-only .dropdown-toggle:after,.btn-dropdown.hide-caret .dropdown-toggle:before,.btn-dropdown.icon-only .dropdown-toggle:before{display:none}.btn-dropdown .dropdown-menu{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.btn-dropdown .dropdown-menu.animated{-webkit-animation-name:btnDropdownZoomIn;animation-name:btnDropdownZoomIn}
|