voiptime-components 0.0.10 → 0.0.11
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 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +492 -0
- package/dist/index.es.js +1740 -37
- package/package.json +4 -2
- package/dist/index.umd.js +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
3
|
+
import { ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { DefineComponent } from 'vue';
|
|
5
|
+
import { ObjectDirective } from 'vue';
|
|
6
|
+
import { PublicProps } from 'vue';
|
|
7
|
+
|
|
8
|
+
declare const __VLS_component: DefineComponent<VButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
click: (event: MouseEvent) => any;
|
|
10
|
+
}, string, PublicProps, Readonly<VButtonProps> & Readonly<{
|
|
11
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
type: VButtonType;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
tooltip: boolean;
|
|
17
|
+
tooltipPlacement: TooltipPlacement;
|
|
18
|
+
htmlType: "button" | "submit" | "reset";
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
|
|
21
|
+
declare const __VLS_component_2: DefineComponent<VModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
22
|
+
close: () => any;
|
|
23
|
+
"update:modelValue": (value: boolean) => any;
|
|
24
|
+
}, string, PublicProps, Readonly<VModalProps> & Readonly<{
|
|
25
|
+
onClose?: (() => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
size: VModalSize;
|
|
29
|
+
showCloseButton: boolean;
|
|
30
|
+
closeOnBackdropClick: boolean;
|
|
31
|
+
zIndex: number;
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
|
|
34
|
+
declare const __VLS_component_3: DefineComponent<VCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
35
|
+
"update:modelValue": (value: boolean) => any;
|
|
36
|
+
change: (value: boolean, event: Event) => any;
|
|
37
|
+
focus: (event: FocusEvent) => any;
|
|
38
|
+
blur: (event: FocusEvent) => any;
|
|
39
|
+
}, string, PublicProps, Readonly<VCheckboxProps> & Readonly<{
|
|
40
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
41
|
+
onChange?: ((value: boolean, event: Event) => any) | undefined;
|
|
42
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
43
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
modelValue: boolean;
|
|
47
|
+
size: "small" | "medium" | "large";
|
|
48
|
+
required: boolean;
|
|
49
|
+
checked: boolean;
|
|
50
|
+
indeterminate: boolean;
|
|
51
|
+
variant: "primary" | "success" | "warning" | "danger" | "info";
|
|
52
|
+
isDouble: boolean;
|
|
53
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
|
|
55
|
+
declare const __VLS_component_4: DefineComponent<__VLS_PublicProps, {
|
|
56
|
+
toggleRowSelection: (row: Record<string, any>, selected?: boolean) => void;
|
|
57
|
+
toggleAllSelection: () => void;
|
|
58
|
+
selectAbsolutelyAll: () => void;
|
|
59
|
+
clearSelection: () => void;
|
|
60
|
+
getSelectionRows: () => Record<string, any>[];
|
|
61
|
+
setSelectionRows: (rows: Record<string, any>[]) => void;
|
|
62
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
63
|
+
[x: string]: any;
|
|
64
|
+
} & {
|
|
65
|
+
[x: string]: any;
|
|
66
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
67
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
68
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
69
|
+
|
|
70
|
+
declare type __VLS_Props = {
|
|
71
|
+
name: IconName;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare type __VLS_Props_2 = VTableProps & {
|
|
75
|
+
allData?: Record<string, any>[];
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
declare type __VLS_PublicProps = __VLS_Props_2 & {
|
|
79
|
+
'columns'?: VTableColumnProps[];
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
declare type __VLS_Slots = {} & {
|
|
83
|
+
default?: (props: typeof __VLS_7) => any;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
declare type __VLS_Slots_2 = {} & {
|
|
87
|
+
default?: (props: typeof __VLS_12) => any;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
declare type __VLS_Slots_3 = {} & {
|
|
91
|
+
label?: (props: typeof __VLS_1) => any;
|
|
92
|
+
} & {
|
|
93
|
+
default?: (props: typeof __VLS_3) => any;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
declare type __VLS_Slots_4 = {} & {
|
|
97
|
+
default?: (props: typeof __VLS_1) => any;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
declare type __VLS_WithSlots<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
declare type __VLS_WithSlots_2<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare type __VLS_WithSlots_3<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
declare type __VLS_WithSlots_4<T, S> = T & {
|
|
119
|
+
new (): {
|
|
120
|
+
$slots: S;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export declare const DEFAULT_COLUMN_CONFIG: {
|
|
125
|
+
sortable: boolean;
|
|
126
|
+
actionColumn: boolean;
|
|
127
|
+
showOverflowTooltip: boolean;
|
|
128
|
+
visible: boolean;
|
|
129
|
+
pinnedLeft: boolean;
|
|
130
|
+
pinnedRight: boolean;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export declare type IconName = keyof typeof icons;
|
|
134
|
+
|
|
135
|
+
declare const icons: {
|
|
136
|
+
readonly arrowDown: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
137
|
+
readonly arrowTop: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
138
|
+
readonly arrowRight: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
139
|
+
readonly arrowLeft: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
140
|
+
readonly arrowReload: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
141
|
+
readonly columnInsert: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
142
|
+
readonly freeze: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
143
|
+
readonly unfreeze: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
144
|
+
readonly columnsMove: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
145
|
+
readonly listBullet: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
146
|
+
readonly listBulletHorizontal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
147
|
+
readonly close: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare const install: (app: App, options?: VUIPluginOptions) => void;
|
|
151
|
+
|
|
152
|
+
export declare const modalManager: VModalManager;
|
|
153
|
+
|
|
154
|
+
export declare interface PaginationCalculations {
|
|
155
|
+
/** Обчислює загальну кількість сторінок */
|
|
156
|
+
getTotalPages(totalItems: number, pageSize: number): number;
|
|
157
|
+
/** Обчислює індекс першого елемента */
|
|
158
|
+
getFromItem(currentPage: number, pageSize: number): number;
|
|
159
|
+
/** Обчислює індекс останнього елемента */
|
|
160
|
+
getToItem(currentPage: number, pageSize: number, totalItems: number): number;
|
|
161
|
+
/** Генерує масив видимих сторінок для навігації */
|
|
162
|
+
getVisiblePages(currentPage: number, totalPages: number, maxVisible: number): (number | string)[];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export declare interface PaginationChangeData {
|
|
166
|
+
/** Номер поточної сторінки */
|
|
167
|
+
page: number;
|
|
168
|
+
/** Розмір сторінки */
|
|
169
|
+
pageSize: number;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare interface PaginationEmits {
|
|
173
|
+
/** Емітується при зміні поточної сторінки */
|
|
174
|
+
(e: 'update:currentPage', page: number): void;
|
|
175
|
+
/** Емітується при зміні розміру сторінки */
|
|
176
|
+
(e: 'update:pageSize', size: number): void;
|
|
177
|
+
/** Емітується при будь-якій зміні пагінації */
|
|
178
|
+
(e: 'pageChange', data: PaginationChangeData): void;
|
|
179
|
+
/** Емітується при натисканні на кнопку */
|
|
180
|
+
(e: 'reloadData', page: number): void;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare interface PaginationProps {
|
|
184
|
+
/** Загальна кількість елементів */
|
|
185
|
+
totalItems: number;
|
|
186
|
+
/** Кількість елементів на сторінку */
|
|
187
|
+
pageSize?: number;
|
|
188
|
+
/** Поточна сторінка */
|
|
189
|
+
currentPage?: number;
|
|
190
|
+
/** Опції для вибору кількості рядків на сторінку */
|
|
191
|
+
pageSizeOptions?: number[];
|
|
192
|
+
/** Максимальна кількість видимих сторінок в навігації */
|
|
193
|
+
maxVisiblePages?: number;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export declare interface PaginationState {
|
|
197
|
+
/** Поточна сторінка */
|
|
198
|
+
currentPage: number;
|
|
199
|
+
/** Розмір сторінки */
|
|
200
|
+
pageSize: number;
|
|
201
|
+
/** Загальна кількість сторінок */
|
|
202
|
+
totalPages: number;
|
|
203
|
+
/** Індекс першого елемента на поточній сторінці */
|
|
204
|
+
fromItem: number;
|
|
205
|
+
/** Індекс останнього елемента на поточній сторінці */
|
|
206
|
+
toItem: number;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export declare interface ResizeState {
|
|
210
|
+
resizingCol: VTableColumnProps | null;
|
|
211
|
+
startX: number;
|
|
212
|
+
startWidth: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export declare interface SelectionChangeEventData {
|
|
216
|
+
selection: Record<string, any>[];
|
|
217
|
+
row?: Record<string, any>;
|
|
218
|
+
selected?: boolean;
|
|
219
|
+
isAllSelected?: boolean;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export declare interface SortChangeEventData {
|
|
223
|
+
column: VTableColumnProps;
|
|
224
|
+
direction: SortDirection | null;
|
|
225
|
+
prop: string;
|
|
226
|
+
sortedData: Record<string, any>[];
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export declare type SortDirection = 'asc' | 'desc';
|
|
230
|
+
|
|
231
|
+
export declare interface SortState {
|
|
232
|
+
prop: string;
|
|
233
|
+
direction: SortDirection;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export declare type StickyPosition = 'left' | 'right';
|
|
237
|
+
|
|
238
|
+
export declare const tooltipDirective: ObjectDirective;
|
|
239
|
+
|
|
240
|
+
export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
241
|
+
|
|
242
|
+
export declare const VButton: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
243
|
+
|
|
244
|
+
export declare interface VButtonEmits {
|
|
245
|
+
click: [event: MouseEvent];
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export declare interface VButtonProps {
|
|
249
|
+
type?: VButtonType;
|
|
250
|
+
shape?: VButtonShape;
|
|
251
|
+
disabled?: boolean;
|
|
252
|
+
loading?: boolean;
|
|
253
|
+
icon?: IconName;
|
|
254
|
+
tooltip?: boolean;
|
|
255
|
+
tooltipPlacement?: TooltipPlacement;
|
|
256
|
+
htmlType?: 'button' | 'submit' | 'reset';
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
declare type VButtonShape = 'circle' | 'square';
|
|
260
|
+
|
|
261
|
+
export declare type VButtonType = 'default' | 'primary' | 'success' | 'danger' | 'warning' | 'info';
|
|
262
|
+
|
|
263
|
+
export declare const VCheckbox: __VLS_WithSlots_3<typeof __VLS_component_3, __VLS_Slots_3>;
|
|
264
|
+
|
|
265
|
+
export declare interface VCheckboxEmits {
|
|
266
|
+
'update:modelValue': [value: boolean];
|
|
267
|
+
change: [value: boolean, event: Event];
|
|
268
|
+
focus: [event: FocusEvent];
|
|
269
|
+
blur: [event: FocusEvent];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export declare interface VCheckboxProps {
|
|
273
|
+
modelValue?: boolean;
|
|
274
|
+
checked?: boolean;
|
|
275
|
+
label?: string;
|
|
276
|
+
disabled?: boolean;
|
|
277
|
+
id?: string;
|
|
278
|
+
name?: string;
|
|
279
|
+
value?: string | number;
|
|
280
|
+
indeterminate?: boolean;
|
|
281
|
+
size?: 'small' | 'medium' | 'large';
|
|
282
|
+
variant?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
283
|
+
required?: boolean;
|
|
284
|
+
isDouble?: boolean;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export declare interface VCheckboxSlots {
|
|
288
|
+
default?: () => any;
|
|
289
|
+
label?: () => any;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export declare const VIcon: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
293
|
+
|
|
294
|
+
export declare const VLoader: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
295
|
+
|
|
296
|
+
export declare const VModal: __VLS_WithSlots_2<typeof __VLS_component_2, __VLS_Slots_2>;
|
|
297
|
+
|
|
298
|
+
export declare interface VModalConfig {
|
|
299
|
+
title?: string;
|
|
300
|
+
content?: string;
|
|
301
|
+
component?: any;
|
|
302
|
+
props?: Record<string, any>;
|
|
303
|
+
size?: VModalSize;
|
|
304
|
+
showCloseButton?: boolean;
|
|
305
|
+
closeOnBackdropClick?: boolean;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export declare interface VModalEmits {
|
|
309
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
310
|
+
(e: 'close'): void;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export declare interface VModalInstance {
|
|
314
|
+
/** Відкриває нове модальне вікно та повертає його ID */
|
|
315
|
+
open: (config: VModalConfig) => string;
|
|
316
|
+
/** Закриває останнє (верхнє) модальне вікно */
|
|
317
|
+
close: () => void;
|
|
318
|
+
/** Закриває модальне вікно за ID */
|
|
319
|
+
closeById: (modalId: string) => void;
|
|
320
|
+
/** Закриває всі модальні вікна */
|
|
321
|
+
closeAll: () => void;
|
|
322
|
+
/** Повертає кількість відкритих модальних вікон */
|
|
323
|
+
getOpenModalsCount: () => number;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare class VModalManager implements VModalInstance {
|
|
327
|
+
private modalStack;
|
|
328
|
+
private baseZIndex;
|
|
329
|
+
open(config?: VModalConfig): string;
|
|
330
|
+
close(): void;
|
|
331
|
+
closeById(modalId: string): void;
|
|
332
|
+
closeAll(): void;
|
|
333
|
+
getOpenModalsCount(): number;
|
|
334
|
+
private cleanupModal;
|
|
335
|
+
private recalculateZIndices;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export declare const VModalPlugin: {
|
|
339
|
+
install(app: App): void;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
export declare interface VModalProps {
|
|
343
|
+
/** Чи відкрите модальне вікно */
|
|
344
|
+
modelValue: boolean;
|
|
345
|
+
/** Заголовок модального вікна */
|
|
346
|
+
title?: string;
|
|
347
|
+
/** Розмір модального вікна */
|
|
348
|
+
size?: VModalSize;
|
|
349
|
+
/** Чи показувати кнопку закриття */
|
|
350
|
+
showCloseButton?: boolean;
|
|
351
|
+
/** Чи закривати при кліку на backdrop */
|
|
352
|
+
closeOnBackdropClick?: boolean;
|
|
353
|
+
/** Z-index для модального вікна */
|
|
354
|
+
zIndex?: number;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export declare type VModalSize = 'small' | 'medium' | 'large';
|
|
358
|
+
|
|
359
|
+
export declare const VPagination: DefineComponent<PaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
360
|
+
"update:currentPage": (page: number) => any;
|
|
361
|
+
"update:pageSize": (size: number) => any;
|
|
362
|
+
pageChange: (data: PaginationChangeData) => any;
|
|
363
|
+
reloadData: (page: number) => any;
|
|
364
|
+
}, string, PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
365
|
+
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
366
|
+
"onUpdate:pageSize"?: ((size: number) => any) | undefined;
|
|
367
|
+
onPageChange?: ((data: PaginationChangeData) => any) | undefined;
|
|
368
|
+
onReloadData?: ((page: number) => any) | undefined;
|
|
369
|
+
}>, {
|
|
370
|
+
pageSize: number;
|
|
371
|
+
currentPage: number;
|
|
372
|
+
pageSizeOptions: number[];
|
|
373
|
+
maxVisiblePages: number;
|
|
374
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
375
|
+
|
|
376
|
+
export declare const VTable: __VLS_WithSlots_4<typeof __VLS_component_4, __VLS_Slots_4>;
|
|
377
|
+
|
|
378
|
+
export declare const VTableColumn: DefineComponent<VTableColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<VTableColumnProps> & Readonly<{}>, {
|
|
379
|
+
sortable: boolean;
|
|
380
|
+
pinnedLeft: boolean;
|
|
381
|
+
pinnedRight: boolean;
|
|
382
|
+
actionColumn: boolean;
|
|
383
|
+
showOverflowTooltip: boolean;
|
|
384
|
+
selectable: boolean;
|
|
385
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
386
|
+
|
|
387
|
+
export declare interface VTableColumnGroup {
|
|
388
|
+
name: string;
|
|
389
|
+
label: string;
|
|
390
|
+
order: number;
|
|
391
|
+
icon?: IconName;
|
|
392
|
+
color?: string;
|
|
393
|
+
columns: VTableColumnProps[];
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export declare interface VTableColumnProps {
|
|
397
|
+
prop: string;
|
|
398
|
+
label: string;
|
|
399
|
+
width?: number;
|
|
400
|
+
minWidth?: number;
|
|
401
|
+
maxWidth?: number;
|
|
402
|
+
sortable?: boolean;
|
|
403
|
+
pinnedLeft?: boolean;
|
|
404
|
+
pinnedRight?: boolean;
|
|
405
|
+
actionColumn?: boolean;
|
|
406
|
+
showOverflowTooltip?: boolean;
|
|
407
|
+
selectable?: boolean;
|
|
408
|
+
renderSlot?: Function;
|
|
409
|
+
sortMethod?: Function;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export declare interface VTableEmits {
|
|
413
|
+
(e: 'sort-change', payload: SortChangeEventData): void;
|
|
414
|
+
(e: 'selection-change', payload: SelectionChangeEventData): void;
|
|
415
|
+
(e: 'current-change', payload: {
|
|
416
|
+
currentRow: Record<string, any> | null;
|
|
417
|
+
oldCurrentRow: Record<string, any> | null;
|
|
418
|
+
}): void;
|
|
419
|
+
(e: 'row-click', payload: {
|
|
420
|
+
row: Record<string, any>;
|
|
421
|
+
column: VTableColumnProps;
|
|
422
|
+
event: Event;
|
|
423
|
+
}): void;
|
|
424
|
+
(e: 'update:columns', payload: VTableColumnProps[]): void;
|
|
425
|
+
(e: 'column-pin', payload: {
|
|
426
|
+
column: VTableColumnProps;
|
|
427
|
+
position: 'left' | 'right' | 'none';
|
|
428
|
+
}): void;
|
|
429
|
+
(e: 'column-resize', payload: {
|
|
430
|
+
column: VTableColumnProps;
|
|
431
|
+
width: number;
|
|
432
|
+
oldWidth?: number;
|
|
433
|
+
}): void;
|
|
434
|
+
(e: 'column-visibility', payload: {
|
|
435
|
+
column: VTableColumnProps;
|
|
436
|
+
}): void;
|
|
437
|
+
(e: 'column-sort', payload: {
|
|
438
|
+
column: VTableColumnProps;
|
|
439
|
+
direction: 'asc' | 'desc' | null;
|
|
440
|
+
}): void;
|
|
441
|
+
(e: 'columns-change', columns: VTableColumnProps[]): void;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export declare interface VTableProps {
|
|
445
|
+
data: Record<string, any>[];
|
|
446
|
+
maxHeight?: number;
|
|
447
|
+
defaultSort?: SortState;
|
|
448
|
+
showSummary?: boolean;
|
|
449
|
+
summaryMethod?: (params: {
|
|
450
|
+
columns: VTableColumnProps[];
|
|
451
|
+
data: Record<string, any>[];
|
|
452
|
+
}) => any[];
|
|
453
|
+
columnsSelector?: VTableColumnGroup[];
|
|
454
|
+
selectable?: boolean;
|
|
455
|
+
selectionKey?: string;
|
|
456
|
+
defaultSelection?: any[];
|
|
457
|
+
selectOnClickRow?: boolean;
|
|
458
|
+
highlightCurrentRow?: boolean;
|
|
459
|
+
allData?: Record<string, any>[];
|
|
460
|
+
columns?: VTableColumnProps[];
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export declare interface VTableStyleConfig {
|
|
464
|
+
[key: string]: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare const VUIPlugin: {
|
|
468
|
+
install(app: App, options?: VUIPluginOptions): void;
|
|
469
|
+
};
|
|
470
|
+
export default VUIPlugin;
|
|
471
|
+
|
|
472
|
+
export declare interface VUIPluginOptions {
|
|
473
|
+
prefix?: string;
|
|
474
|
+
modal?: boolean;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export { }
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
declare module '@vue/runtime-core' {
|
|
481
|
+
interface ComponentCustomProperties {
|
|
482
|
+
$modal: VModalInstance;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
declare module '@vue/runtime-core' {
|
|
488
|
+
interface ComponentCustomProperties {
|
|
489
|
+
$modal: VModalInstance;
|
|
490
|
+
$modalStack: VModalStack;
|
|
491
|
+
}
|
|
492
|
+
}
|