@prefabs.tech/vue3-tanstack-table 0.12.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/LICENSE +21 -0
- package/dist/PrefabsTechVue3TanstackTable.es.js +4787 -0
- package/dist/PrefabsTechVue3TanstackTable.umd.js +22 -0
- package/dist/menu.png +0 -0
- package/dist/src/components/FilesPresentation/Index.vue.d.ts +94 -0
- package/dist/src/components/FilesPresentation/Index.vue.d.ts.map +1 -0
- package/dist/src/components/FilesTable/Index.vue.d.ts +136 -0
- package/dist/src/components/FilesTable/Index.vue.d.ts.map +1 -0
- package/dist/src/components/Pagination.vue.d.ts +115 -0
- package/dist/src/components/Pagination.vue.d.ts.map +1 -0
- package/dist/src/components/Table.vue.d.ts +267 -0
- package/dist/src/components/Table.vue.d.ts.map +1 -0
- package/dist/src/components/TableBody.vue.d.ts +36 -0
- package/dist/src/components/TableBody.vue.d.ts.map +1 -0
- package/dist/src/components/TableDataActions.vue.d.ts +56 -0
- package/dist/src/components/TableDataActions.vue.d.ts.map +1 -0
- package/dist/src/components/TableHeader.vue.d.ts +33 -0
- package/dist/src/components/TableHeader.vue.d.ts.map +1 -0
- package/dist/src/components/TableToolbar.vue.d.ts +55 -0
- package/dist/src/components/TableToolbar.vue.d.ts.map +1 -0
- package/dist/src/components/TanstackTable.vue.d.ts +49 -0
- package/dist/src/components/TanstackTable.vue.d.ts.map +1 -0
- package/dist/src/constants.d.ts +10 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/types.d.ts +92 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils.d.ts +13 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/vue3-tanstack-table.css +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
currentPage: {
|
|
3
|
+
required: true;
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
};
|
|
6
|
+
defaultItemsPerPage: {
|
|
7
|
+
default: undefined;
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
};
|
|
10
|
+
inputDebounceTime: {
|
|
11
|
+
default: undefined;
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
};
|
|
14
|
+
itemsPerPageControlLabel: {
|
|
15
|
+
default: string;
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
itemsPerPageOptions: {
|
|
19
|
+
default: () => number[];
|
|
20
|
+
type: () => number[];
|
|
21
|
+
};
|
|
22
|
+
pageInputLabel: {
|
|
23
|
+
default: string;
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
showFirstLastButtons: {
|
|
27
|
+
default: boolean;
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
showItemsPerPageControl: {
|
|
31
|
+
default: boolean;
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
};
|
|
34
|
+
showPageButtons: {
|
|
35
|
+
default: boolean;
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
showPageInput: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
showPreviousNextButtons: {
|
|
43
|
+
default: boolean;
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
};
|
|
46
|
+
totalItems: {
|
|
47
|
+
required: true;
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:currentPage" | "update:itemsPerPage")[], "update:currentPage" | "update:itemsPerPage", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
currentPage: {
|
|
52
|
+
required: true;
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
};
|
|
55
|
+
defaultItemsPerPage: {
|
|
56
|
+
default: undefined;
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
};
|
|
59
|
+
inputDebounceTime: {
|
|
60
|
+
default: undefined;
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
};
|
|
63
|
+
itemsPerPageControlLabel: {
|
|
64
|
+
default: string;
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
};
|
|
67
|
+
itemsPerPageOptions: {
|
|
68
|
+
default: () => number[];
|
|
69
|
+
type: () => number[];
|
|
70
|
+
};
|
|
71
|
+
pageInputLabel: {
|
|
72
|
+
default: string;
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
showFirstLastButtons: {
|
|
76
|
+
default: boolean;
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
};
|
|
79
|
+
showItemsPerPageControl: {
|
|
80
|
+
default: boolean;
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
showPageButtons: {
|
|
84
|
+
default: boolean;
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
87
|
+
showPageInput: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
showPreviousNextButtons: {
|
|
92
|
+
default: boolean;
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
};
|
|
95
|
+
totalItems: {
|
|
96
|
+
required: true;
|
|
97
|
+
type: NumberConstructor;
|
|
98
|
+
};
|
|
99
|
+
}>> & Readonly<{
|
|
100
|
+
"onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
"onUpdate:itemsPerPage"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
defaultItemsPerPage: number;
|
|
104
|
+
inputDebounceTime: number;
|
|
105
|
+
itemsPerPageControlLabel: string;
|
|
106
|
+
itemsPerPageOptions: number[];
|
|
107
|
+
pageInputLabel: string;
|
|
108
|
+
showFirstLastButtons: boolean;
|
|
109
|
+
showItemsPerPageControl: boolean;
|
|
110
|
+
showPageButtons: boolean;
|
|
111
|
+
showPageInput: boolean;
|
|
112
|
+
showPreviousNextButtons: boolean;
|
|
113
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
114
|
+
export default _default;
|
|
115
|
+
//# sourceMappingURL=Pagination.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;cA6GmB,MAAM,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAd,MAAM,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvGjC,wBAodc"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import type { DataActionsMenuItem } from "../types";
|
|
2
|
+
import type { ColumnDef, ColumnFiltersState, SortingState } from "@tanstack/vue-table";
|
|
3
|
+
import type { PropType } from "vue";
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
dataActionMenu: {
|
|
6
|
+
default: () => never[];
|
|
7
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
8
|
+
};
|
|
9
|
+
columnActionButtonLabel: {
|
|
10
|
+
default: undefined;
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
columnsData: {
|
|
14
|
+
type: PropType<ColumnDef<any>[]>;
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
customFormatters: {
|
|
18
|
+
default: () => {};
|
|
19
|
+
type: () => Record<string, (value: unknown) => unknown>;
|
|
20
|
+
};
|
|
21
|
+
data: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
displayActions: {
|
|
26
|
+
default: boolean;
|
|
27
|
+
type: PropType<boolean | ((data: object) => boolean)>;
|
|
28
|
+
};
|
|
29
|
+
emptyTableMessage: {
|
|
30
|
+
default: undefined;
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
enableRowSelection: {
|
|
34
|
+
default: boolean;
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
};
|
|
37
|
+
enableSortingRemoval: {
|
|
38
|
+
default: boolean;
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
};
|
|
41
|
+
id: {
|
|
42
|
+
default: undefined;
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
initialFilters: {
|
|
46
|
+
default: () => never[];
|
|
47
|
+
type: PropType<ColumnFiltersState>;
|
|
48
|
+
};
|
|
49
|
+
initialSorting: {
|
|
50
|
+
default: () => never[];
|
|
51
|
+
type: PropType<SortingState>;
|
|
52
|
+
};
|
|
53
|
+
inputDebounceTime: {
|
|
54
|
+
default: undefined;
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
};
|
|
57
|
+
isLoading: BooleanConstructor;
|
|
58
|
+
isServerTable: BooleanConstructor;
|
|
59
|
+
paginated: {
|
|
60
|
+
default: boolean;
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
};
|
|
63
|
+
paginationOptions: {
|
|
64
|
+
default: () => {};
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
};
|
|
67
|
+
persistState: BooleanConstructor;
|
|
68
|
+
persistStateStorage: {
|
|
69
|
+
default: string;
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
validator: (value: string) => boolean;
|
|
72
|
+
};
|
|
73
|
+
resetButtonLabel: {
|
|
74
|
+
default: undefined;
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
rowPerPage: {
|
|
78
|
+
default: number;
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
};
|
|
81
|
+
rowPerPageOptions: {
|
|
82
|
+
default: () => number[];
|
|
83
|
+
type: () => number[];
|
|
84
|
+
};
|
|
85
|
+
showColumnAction: BooleanConstructor;
|
|
86
|
+
showResetButton: BooleanConstructor;
|
|
87
|
+
singleActionMode: {
|
|
88
|
+
default: string;
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
validator: (value: string) => boolean;
|
|
91
|
+
};
|
|
92
|
+
tableOptions: {
|
|
93
|
+
default: () => {};
|
|
94
|
+
type: ObjectConstructor;
|
|
95
|
+
};
|
|
96
|
+
titleInfo: {
|
|
97
|
+
default: undefined;
|
|
98
|
+
type: () => {
|
|
99
|
+
text: string;
|
|
100
|
+
align?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
totalRecords: {
|
|
104
|
+
default: number;
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
};
|
|
107
|
+
visibleColumns: {
|
|
108
|
+
default: () => never[];
|
|
109
|
+
type: PropType<string[]>;
|
|
110
|
+
};
|
|
111
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("action:click" | "action:select" | "change:rowSelection" | "update:request")[], "action:click" | "action:select" | "change:rowSelection" | "update:request", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
|
+
dataActionMenu: {
|
|
113
|
+
default: () => never[];
|
|
114
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
115
|
+
};
|
|
116
|
+
columnActionButtonLabel: {
|
|
117
|
+
default: undefined;
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
};
|
|
120
|
+
columnsData: {
|
|
121
|
+
type: PropType<ColumnDef<any>[]>;
|
|
122
|
+
default: () => never[];
|
|
123
|
+
};
|
|
124
|
+
customFormatters: {
|
|
125
|
+
default: () => {};
|
|
126
|
+
type: () => Record<string, (value: unknown) => unknown>;
|
|
127
|
+
};
|
|
128
|
+
data: {
|
|
129
|
+
type: ArrayConstructor;
|
|
130
|
+
default: () => never[];
|
|
131
|
+
};
|
|
132
|
+
displayActions: {
|
|
133
|
+
default: boolean;
|
|
134
|
+
type: PropType<boolean | ((data: object) => boolean)>;
|
|
135
|
+
};
|
|
136
|
+
emptyTableMessage: {
|
|
137
|
+
default: undefined;
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
};
|
|
140
|
+
enableRowSelection: {
|
|
141
|
+
default: boolean;
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
};
|
|
144
|
+
enableSortingRemoval: {
|
|
145
|
+
default: boolean;
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
};
|
|
148
|
+
id: {
|
|
149
|
+
default: undefined;
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
};
|
|
152
|
+
initialFilters: {
|
|
153
|
+
default: () => never[];
|
|
154
|
+
type: PropType<ColumnFiltersState>;
|
|
155
|
+
};
|
|
156
|
+
initialSorting: {
|
|
157
|
+
default: () => never[];
|
|
158
|
+
type: PropType<SortingState>;
|
|
159
|
+
};
|
|
160
|
+
inputDebounceTime: {
|
|
161
|
+
default: undefined;
|
|
162
|
+
type: NumberConstructor;
|
|
163
|
+
};
|
|
164
|
+
isLoading: BooleanConstructor;
|
|
165
|
+
isServerTable: BooleanConstructor;
|
|
166
|
+
paginated: {
|
|
167
|
+
default: boolean;
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
};
|
|
170
|
+
paginationOptions: {
|
|
171
|
+
default: () => {};
|
|
172
|
+
type: ObjectConstructor;
|
|
173
|
+
};
|
|
174
|
+
persistState: BooleanConstructor;
|
|
175
|
+
persistStateStorage: {
|
|
176
|
+
default: string;
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
validator: (value: string) => boolean;
|
|
179
|
+
};
|
|
180
|
+
resetButtonLabel: {
|
|
181
|
+
default: undefined;
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
};
|
|
184
|
+
rowPerPage: {
|
|
185
|
+
default: number;
|
|
186
|
+
type: NumberConstructor;
|
|
187
|
+
};
|
|
188
|
+
rowPerPageOptions: {
|
|
189
|
+
default: () => number[];
|
|
190
|
+
type: () => number[];
|
|
191
|
+
};
|
|
192
|
+
showColumnAction: BooleanConstructor;
|
|
193
|
+
showResetButton: BooleanConstructor;
|
|
194
|
+
singleActionMode: {
|
|
195
|
+
default: string;
|
|
196
|
+
type: StringConstructor;
|
|
197
|
+
validator: (value: string) => boolean;
|
|
198
|
+
};
|
|
199
|
+
tableOptions: {
|
|
200
|
+
default: () => {};
|
|
201
|
+
type: ObjectConstructor;
|
|
202
|
+
};
|
|
203
|
+
titleInfo: {
|
|
204
|
+
default: undefined;
|
|
205
|
+
type: () => {
|
|
206
|
+
text: string;
|
|
207
|
+
align?: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
totalRecords: {
|
|
211
|
+
default: number;
|
|
212
|
+
type: NumberConstructor;
|
|
213
|
+
};
|
|
214
|
+
visibleColumns: {
|
|
215
|
+
default: () => never[];
|
|
216
|
+
type: PropType<string[]>;
|
|
217
|
+
};
|
|
218
|
+
}>> & Readonly<{
|
|
219
|
+
"onAction:click"?: ((...args: any[]) => any) | undefined;
|
|
220
|
+
"onAction:select"?: ((...args: any[]) => any) | undefined;
|
|
221
|
+
"onChange:rowSelection"?: ((...args: any[]) => any) | undefined;
|
|
222
|
+
"onUpdate:request"?: ((...args: any[]) => any) | undefined;
|
|
223
|
+
}>, {
|
|
224
|
+
inputDebounceTime: number;
|
|
225
|
+
id: string;
|
|
226
|
+
enableRowSelection: boolean;
|
|
227
|
+
customFormatters: Record<string, (value: unknown) => unknown>;
|
|
228
|
+
emptyTableMessage: string;
|
|
229
|
+
data: unknown[];
|
|
230
|
+
displayActions: boolean | ((data: object) => boolean);
|
|
231
|
+
singleActionMode: string;
|
|
232
|
+
showColumnAction: boolean;
|
|
233
|
+
showResetButton: boolean;
|
|
234
|
+
columnActionButtonLabel: string;
|
|
235
|
+
resetButtonLabel: string;
|
|
236
|
+
isLoading: boolean;
|
|
237
|
+
isServerTable: boolean;
|
|
238
|
+
persistState: boolean;
|
|
239
|
+
dataActionMenu: DataActionsMenuItem[];
|
|
240
|
+
columnsData: ColumnDef<any>[];
|
|
241
|
+
enableSortingRemoval: boolean;
|
|
242
|
+
initialFilters: ColumnFiltersState;
|
|
243
|
+
initialSorting: SortingState;
|
|
244
|
+
paginated: boolean;
|
|
245
|
+
paginationOptions: Record<string, any>;
|
|
246
|
+
persistStateStorage: string;
|
|
247
|
+
rowPerPage: number;
|
|
248
|
+
rowPerPageOptions: number[];
|
|
249
|
+
tableOptions: Record<string, any>;
|
|
250
|
+
titleInfo: {
|
|
251
|
+
text: string;
|
|
252
|
+
align?: string;
|
|
253
|
+
};
|
|
254
|
+
totalRecords: number;
|
|
255
|
+
visibleColumns: string[];
|
|
256
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
257
|
+
toolbar: (_: {}) => any;
|
|
258
|
+
footer: (_: {}) => any;
|
|
259
|
+
pagination: (_: {}) => any;
|
|
260
|
+
}>;
|
|
261
|
+
export default _default;
|
|
262
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
263
|
+
new (): {
|
|
264
|
+
$slots: S;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
//# sourceMappingURL=Table.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Table.vue.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,UAAU,CAAC;AAE1E,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAElB,YAAY,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;;;cAgejB,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;;;;cAQ/B,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;;;;;cAKzB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;;;;;;;;cAQpC,QAAQ,CACnC,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CACtC;;;;;;;;;;;;;;;;;;;;cAoBc,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;2BAoBlB,MAAM;;;;;;;;;;;;cAaV,MAAM,MAAM,EAAE;;;;;;;2BAOV,MAAM;;;;;;;;cAQT,MAAM;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;cAQvC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;cAvGlB,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;;;;cAQ/B,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;;;;;cAKzB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;;;;;;;;cAQpC,QAAQ,CACnC,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CACtC;;;;;;;;;;;;;;;;;;;;cAoBc,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;2BAoBlB,MAAM;;;;;;;;;;;;cAaV,MAAM,MAAM,EAAE;;;;;;;2BAOV,MAAM;;;;;;;;cAQT,MAAM;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;cAQvC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;6CA1FY,OAAO,KAAK,OAAO;;;sCAS5C,MAAM,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;cAyER,MAAM;gBAAU,MAAM;;;;;aAwM/C,CAAC,CAAC,IAAgB,KAAK,GAAG;YAC3B,CAAC,CAAC,IAAiB,KAAK,GAAG;gBACvB,CAAC,CAAC,IAAiB,KAAK,GAAG;;AAtwBvC,wBA8xBc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Table } from "@tanstack/vue-table";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
customFormatters: {
|
|
4
|
+
default: () => {};
|
|
5
|
+
type: () => Record<string, (value: unknown) => unknown>;
|
|
6
|
+
};
|
|
7
|
+
emptyTableMessage: {
|
|
8
|
+
default: string;
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
enableRowSelection: BooleanConstructor;
|
|
12
|
+
table: {
|
|
13
|
+
required: true;
|
|
14
|
+
type: () => Table<unknown>;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
customFormatters: {
|
|
18
|
+
default: () => {};
|
|
19
|
+
type: () => Record<string, (value: unknown) => unknown>;
|
|
20
|
+
};
|
|
21
|
+
emptyTableMessage: {
|
|
22
|
+
default: string;
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
enableRowSelection: BooleanConstructor;
|
|
26
|
+
table: {
|
|
27
|
+
required: true;
|
|
28
|
+
type: () => Table<unknown>;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
enableRowSelection: boolean;
|
|
32
|
+
customFormatters: Record<string, (value: unknown) => unknown>;
|
|
33
|
+
emptyTableMessage: string;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default _default;
|
|
36
|
+
//# sourceMappingURL=TableBody.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableBody.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableBody.vue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAiB,KAAK,EAAE,MAAM,qBAAqB,CAAC;;;;cAiG5C,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;;;;;;;;;cASjD,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;cATpB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;;;;;;;;;cASjD,MAAM,KAAK,CAAC,OAAO,CAAC;;;;6CATS,OAAO,KAAK,OAAO;;;AA9FpE,wBAwQc"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { DataActionsMenuItem } from "../types";
|
|
2
|
+
import type { PropType } from "vue";
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
actions: {
|
|
5
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
data: {
|
|
9
|
+
default: () => {};
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
};
|
|
12
|
+
displayActions: {
|
|
13
|
+
default: boolean;
|
|
14
|
+
type: PropType<boolean | ((data: object) => boolean)>;
|
|
15
|
+
};
|
|
16
|
+
singleActionMode: {
|
|
17
|
+
default: string;
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
validator: (value: string) => boolean;
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("action:click" | "action:select")[], "action:click" | "action:select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
actions: {
|
|
23
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
data: {
|
|
27
|
+
default: () => {};
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
};
|
|
30
|
+
displayActions: {
|
|
31
|
+
default: boolean;
|
|
32
|
+
type: PropType<boolean | ((data: object) => boolean)>;
|
|
33
|
+
};
|
|
34
|
+
singleActionMode: {
|
|
35
|
+
default: string;
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
validator: (value: string) => boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
"onAction:click"?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
"onAction:select"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
data: Record<string, any>;
|
|
44
|
+
displayActions: boolean | ((data: object) => boolean);
|
|
45
|
+
singleActionMode: string;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
+
trigger: (_: {}) => any;
|
|
48
|
+
confirmationModal: (_: {}) => any;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=TableDataActions.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableDataActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableDataActions.vue.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;;;cA+EjB,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;;;;;;cASjB,QAAQ,CACnC,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CACtC;;;;;2BAKkB,MAAM;;;;cAhBV,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;;;;;;cASjB,QAAQ,CACnC,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CACtC;;;;;2BAKkB,MAAM;;;;;;;sCANL,MAAM,KAAK,OAAO;;;aAwMjC,CAAC,CAAC,IAAiB,KAAK,GAAG;uBACjB,CAAC,CAAC,IAAiB,KAAK,GAAG;;AA/R9C,wBAuTc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Table } from "@tanstack/vue-table";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
inputDebounceTime: {
|
|
4
|
+
default: undefined;
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
};
|
|
7
|
+
isFilterRowVisible: {
|
|
8
|
+
default: boolean;
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
};
|
|
11
|
+
table: {
|
|
12
|
+
required: true;
|
|
13
|
+
type: () => Table<unknown>;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
inputDebounceTime: {
|
|
17
|
+
default: undefined;
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
};
|
|
20
|
+
isFilterRowVisible: {
|
|
21
|
+
default: boolean;
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
};
|
|
24
|
+
table: {
|
|
25
|
+
required: true;
|
|
26
|
+
type: () => Table<unknown>;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
inputDebounceTime: number;
|
|
30
|
+
isFilterRowVisible: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
33
|
+
//# sourceMappingURL=TableHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableHeader.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAU,KAAK,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;cAgFrC,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;;;;;;;;cAApB,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;AA7ExC,wBA8cc"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Table } from "@tanstack/vue-table";
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
columnActionButtonLabel: {
|
|
4
|
+
default: string;
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
hasActionsColumn: BooleanConstructor;
|
|
8
|
+
hasSelectionColumn: BooleanConstructor;
|
|
9
|
+
resetButtonLabel: {
|
|
10
|
+
default: string;
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
showColumnAction: BooleanConstructor;
|
|
14
|
+
showResetButton: BooleanConstructor;
|
|
15
|
+
table: {
|
|
16
|
+
required: true;
|
|
17
|
+
type: () => Table<unknown>;
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on:drag" | "on:reset")[], "on:drag" | "on:reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
columnActionButtonLabel: {
|
|
21
|
+
default: string;
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
hasActionsColumn: BooleanConstructor;
|
|
25
|
+
hasSelectionColumn: BooleanConstructor;
|
|
26
|
+
resetButtonLabel: {
|
|
27
|
+
default: string;
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
showColumnAction: BooleanConstructor;
|
|
31
|
+
showResetButton: BooleanConstructor;
|
|
32
|
+
table: {
|
|
33
|
+
required: true;
|
|
34
|
+
type: () => Table<unknown>;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{
|
|
37
|
+
"onOn:drag"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
"onOn:reset"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
hasActionsColumn: boolean;
|
|
41
|
+
hasSelectionColumn: boolean;
|
|
42
|
+
showColumnAction: boolean;
|
|
43
|
+
showResetButton: boolean;
|
|
44
|
+
columnActionButtonLabel: string;
|
|
45
|
+
resetButtonLabel: string;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
+
default: (_: {}) => any;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=TableToolbar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableToolbar.vue.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAU,KAAK,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;cAmFrC,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;cAApB,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;;;;;;;;aA4G/B,CAAC,CAAC,IAAiB,KAAK,GAAG;;AA3LpC,wBA6Mc;AACd,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
columnsData: {
|
|
4
|
+
type: PropType<{
|
|
5
|
+
accessorKey: string;
|
|
6
|
+
header: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
sort?: boolean;
|
|
9
|
+
}[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
rows: {
|
|
13
|
+
type: ArrayConstructor;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
enableToggle: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: () => boolean;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
columnsData: {
|
|
22
|
+
type: PropType<{
|
|
23
|
+
accessorKey: string;
|
|
24
|
+
header: string;
|
|
25
|
+
size?: number;
|
|
26
|
+
sort?: boolean;
|
|
27
|
+
}[]>;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
};
|
|
30
|
+
rows: {
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
enableToggle: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: () => boolean;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
|
+
columnsData: {
|
|
40
|
+
accessorKey: string;
|
|
41
|
+
header: string;
|
|
42
|
+
size?: number;
|
|
43
|
+
sort?: boolean;
|
|
44
|
+
}[];
|
|
45
|
+
rows: unknown[];
|
|
46
|
+
enableToggle: boolean;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
49
|
+
//# sourceMappingURL=TanstackTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TanstackTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TanstackTable.vue.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;;;cA4FjB,QAAQ,CAAC;yBAhFb,MAAM;oBACX,MAAM;mBACP,MAAM;mBACN,OAAO;WA6E4B,CAAC;;;;;;;;;;;;;cAA1B,QAAQ,CAAC;yBAhFb,MAAM;oBACX,MAAM;mBACP,MAAM;mBACN,OAAO;WA6E4B,CAAC;;;;;;;;;;;;;qBAhF9B,MAAM;gBACX,MAAM;eACP,MAAM;eACN,OAAO;;;;;AANhB,wBAyZc"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const DEFAULT_COL_SIZE = 150;
|
|
2
|
+
export declare const DEFAULT_COLUMNS_DATA: never[];
|
|
3
|
+
export declare const DEFAULT_INPUT_DEBOUNCE_TIME = 300;
|
|
4
|
+
export declare const DEFAULT_PAGE_INDEX = 0;
|
|
5
|
+
export declare const DEFAULT_PAGE_PER_OPTIONS: number[];
|
|
6
|
+
export declare const DEFAULT_PAGE_SIZE = 10;
|
|
7
|
+
export declare const DEFAULT_TABLE_DATA: never[];
|
|
8
|
+
export declare const DEFAULT_TOTAL_ITEMS = 0;
|
|
9
|
+
export declare const TABLE_STATE_PREFIX = "table";
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,oBAAoB,SAAK,CAAC;AACvC,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,wBAAwB,UAAe,CAAC;AACrD,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,kBAAkB,SAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,eAAO,MAAM,kBAAkB,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import FilesPresentation from "./components/FilesPresentation/Index.vue";
|
|
2
|
+
import FilesTable from "./components/FilesTable/Index.vue";
|
|
3
|
+
import Table from "./components/Table.vue";
|
|
4
|
+
import TableBody from "./components/TableBody.vue";
|
|
5
|
+
import TableHeader from "./components/TableHeader.vue";
|
|
6
|
+
import TanstackTable from "./components/TanstackTable.vue";
|
|
7
|
+
export { FilesPresentation, FilesTable, Table, TableBody, TableHeader, TanstackTable };
|
|
8
|
+
export type { DataActionsMenuItem, FilterFunction, FilterFunctions, FilterOption, SortingState, TableColumnDefinition, TableRow, TRequestJSON, } from "./types";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,0CAA0C,CAAC;AACzE,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,KAAK,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACd,CAAC;AAEF,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,QAAQ,EACR,YAAY,GACb,MAAM,SAAS,CAAC"}
|