voiptime-components 1.0.17 → 1.0.18
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/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +123 -0
- package/dist/index.es.js +1046 -891
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/assets/main.scss +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,10 @@ import { Component } from 'vue';
|
|
|
3
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
4
|
import { ComponentProvideOptions } from 'vue';
|
|
5
5
|
import { DefineComponent } from 'vue';
|
|
6
|
+
import { InjectionKey } from 'vue';
|
|
6
7
|
import { ObjectDirective } from 'vue';
|
|
7
8
|
import { PublicProps } from 'vue';
|
|
9
|
+
import { Ref } from 'vue';
|
|
8
10
|
import { VNode } from 'vue';
|
|
9
11
|
|
|
10
12
|
declare const __VLS_component: DefineComponent<VButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -140,6 +142,39 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {
|
|
|
140
142
|
tableWrapperRef: HTMLDivElement;
|
|
141
143
|
}, HTMLDivElement>;
|
|
142
144
|
|
|
145
|
+
declare const __VLS_component_5: DefineComponent<DropdownProps, {
|
|
146
|
+
show: () => void;
|
|
147
|
+
hide: () => void;
|
|
148
|
+
visible: Ref<boolean>;
|
|
149
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
150
|
+
click: (event: MouseEvent) => any;
|
|
151
|
+
"visible-change": (visible: boolean) => any;
|
|
152
|
+
command: (command: string | number) => any;
|
|
153
|
+
}, string, PublicProps, Readonly<DropdownProps> & Readonly<{
|
|
154
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
155
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
156
|
+
onCommand?: ((command: string | number) => any) | undefined;
|
|
157
|
+
}>, {
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
trigger: "click" | "hover" | "contextmenu";
|
|
160
|
+
placement: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end";
|
|
161
|
+
splitButton: boolean;
|
|
162
|
+
hideOnClick: boolean;
|
|
163
|
+
showTimeout: number;
|
|
164
|
+
hideTimeout: number;
|
|
165
|
+
tabindex: number;
|
|
166
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
167
|
+
dropdownRef: HTMLDivElement;
|
|
168
|
+
triggerRef: HTMLDivElement;
|
|
169
|
+
menuRef: HTMLDivElement;
|
|
170
|
+
}, HTMLDivElement>;
|
|
171
|
+
|
|
172
|
+
declare const __VLS_component_6: DefineComponent<DropdownItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
173
|
+
click: (event: MouseEvent) => any;
|
|
174
|
+
}, string, PublicProps, Readonly<DropdownItemProps> & Readonly<{
|
|
175
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
176
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
177
|
+
|
|
143
178
|
declare type __VLS_Props = {
|
|
144
179
|
name: IconName;
|
|
145
180
|
};
|
|
@@ -189,6 +224,29 @@ declare function __VLS_template_4(): {
|
|
|
189
224
|
rootEl: HTMLDivElement;
|
|
190
225
|
};
|
|
191
226
|
|
|
227
|
+
declare function __VLS_template_5(): {
|
|
228
|
+
attrs: Partial<{}>;
|
|
229
|
+
slots: {
|
|
230
|
+
default?(_: {}): any;
|
|
231
|
+
dropdown?(_: {}): any;
|
|
232
|
+
};
|
|
233
|
+
refs: {
|
|
234
|
+
dropdownRef: HTMLDivElement;
|
|
235
|
+
triggerRef: HTMLDivElement;
|
|
236
|
+
menuRef: HTMLDivElement;
|
|
237
|
+
};
|
|
238
|
+
rootEl: HTMLDivElement;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare function __VLS_template_6(): {
|
|
242
|
+
attrs: Partial<{}>;
|
|
243
|
+
slots: {
|
|
244
|
+
default?(_: {}): any;
|
|
245
|
+
};
|
|
246
|
+
refs: {};
|
|
247
|
+
rootEl: HTMLLIElement;
|
|
248
|
+
};
|
|
249
|
+
|
|
192
250
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
193
251
|
|
|
194
252
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
@@ -197,6 +255,10 @@ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
|
197
255
|
|
|
198
256
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
199
257
|
|
|
258
|
+
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
259
|
+
|
|
260
|
+
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
261
|
+
|
|
200
262
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
201
263
|
new (): {
|
|
202
264
|
$slots: S;
|
|
@@ -221,6 +283,18 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
221
283
|
};
|
|
222
284
|
};
|
|
223
285
|
|
|
286
|
+
declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
287
|
+
new (): {
|
|
288
|
+
$slots: S;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
293
|
+
new (): {
|
|
294
|
+
$slots: S;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
|
|
224
298
|
export declare const DEFAULT_COLUMN_CONFIG: {
|
|
225
299
|
readonly sortable: true;
|
|
226
300
|
readonly actionColumn: false;
|
|
@@ -230,6 +304,51 @@ export declare const DEFAULT_COLUMN_CONFIG: {
|
|
|
230
304
|
readonly pinnedRight: false;
|
|
231
305
|
};
|
|
232
306
|
|
|
307
|
+
export declare interface DropdownContext {
|
|
308
|
+
handleCommand: (command: string | number) => void;
|
|
309
|
+
hideOnClick: boolean;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export declare const DropdownContextKey: InjectionKey<DropdownContext>;
|
|
313
|
+
|
|
314
|
+
export declare interface DropdownEmits {
|
|
315
|
+
'visible-change': [visible: boolean];
|
|
316
|
+
click: [event: MouseEvent];
|
|
317
|
+
command: [command: string | number];
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export declare interface DropdownExpose {
|
|
321
|
+
show: () => void;
|
|
322
|
+
hide: () => void;
|
|
323
|
+
visible: Ref<boolean>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export declare interface DropdownItemEmits {
|
|
327
|
+
click: [event: MouseEvent];
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export declare interface DropdownItemProps {
|
|
331
|
+
command?: string | number;
|
|
332
|
+
disabled?: boolean;
|
|
333
|
+
divided?: boolean;
|
|
334
|
+
icon?: string;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export declare type DropdownPlacement = 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
|
|
338
|
+
|
|
339
|
+
export declare interface DropdownProps {
|
|
340
|
+
trigger?: 'click' | 'hover' | 'contextmenu';
|
|
341
|
+
placement?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
|
|
342
|
+
disabled?: boolean;
|
|
343
|
+
splitButton?: boolean;
|
|
344
|
+
hideOnClick?: boolean;
|
|
345
|
+
showTimeout?: number;
|
|
346
|
+
hideTimeout?: number;
|
|
347
|
+
tabindex?: number;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export declare type DropdownTriggerType = 'click' | 'hover' | 'contextmenu';
|
|
351
|
+
|
|
233
352
|
export declare type IconName = keyof typeof icons;
|
|
234
353
|
|
|
235
354
|
declare const icons: {
|
|
@@ -399,6 +518,10 @@ export declare interface VCheckboxSlots {
|
|
|
399
518
|
label?: () => any;
|
|
400
519
|
}
|
|
401
520
|
|
|
521
|
+
export declare const VDropdown: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
522
|
+
|
|
523
|
+
export declare const VDropdownItem: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
524
|
+
|
|
402
525
|
export declare const VIcon: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
403
526
|
|
|
404
527
|
export declare const VLoader: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
|