voiptime-components 1.0.16 → 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 -1
- package/dist/index.es.js +1011 -876
- 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, {
|
|
@@ -62,7 +64,6 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {
|
|
|
62
64
|
getSelectionRows: () => Record<string, any>[];
|
|
63
65
|
setSelectionRows: (rows: Record<string, any>[]) => void;
|
|
64
66
|
resetInfinityScroll: () => void;
|
|
65
|
-
updateRow: (rowKey: string, updatedRow: any) => void;
|
|
66
67
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
67
68
|
"current-change": (payload: {
|
|
68
69
|
currentRow: Record<string, any> | null;
|
|
@@ -141,6 +142,39 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {
|
|
|
141
142
|
tableWrapperRef: HTMLDivElement;
|
|
142
143
|
}, HTMLDivElement>;
|
|
143
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
|
+
|
|
144
178
|
declare type __VLS_Props = {
|
|
145
179
|
name: IconName;
|
|
146
180
|
};
|
|
@@ -190,6 +224,29 @@ declare function __VLS_template_4(): {
|
|
|
190
224
|
rootEl: HTMLDivElement;
|
|
191
225
|
};
|
|
192
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
|
+
|
|
193
250
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
194
251
|
|
|
195
252
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
@@ -198,6 +255,10 @@ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
|
198
255
|
|
|
199
256
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
200
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
|
+
|
|
201
262
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
202
263
|
new (): {
|
|
203
264
|
$slots: S;
|
|
@@ -222,6 +283,18 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
222
283
|
};
|
|
223
284
|
};
|
|
224
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
|
+
|
|
225
298
|
export declare const DEFAULT_COLUMN_CONFIG: {
|
|
226
299
|
readonly sortable: true;
|
|
227
300
|
readonly actionColumn: false;
|
|
@@ -231,6 +304,51 @@ export declare const DEFAULT_COLUMN_CONFIG: {
|
|
|
231
304
|
readonly pinnedRight: false;
|
|
232
305
|
};
|
|
233
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
|
+
|
|
234
352
|
export declare type IconName = keyof typeof icons;
|
|
235
353
|
|
|
236
354
|
declare const icons: {
|
|
@@ -400,6 +518,10 @@ export declare interface VCheckboxSlots {
|
|
|
400
518
|
label?: () => any;
|
|
401
519
|
}
|
|
402
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
|
+
|
|
403
525
|
export declare const VIcon: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
404
526
|
|
|
405
527
|
export declare const VLoader: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
|