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