@prefabs.tech/vue3-tanstack-table 0.31.0 → 0.33.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/dist/PrefabsTechVue3TanstackTable.es.js +4112 -4736
- package/dist/PrefabsTechVue3TanstackTable.umd.js +2 -2
- package/dist/src/components/FilesPresentation/Index.vue.d.ts +714 -17
- package/dist/src/components/FilesPresentation/Index.vue.d.ts.map +1 -1
- package/dist/src/components/FilesTable/Index.vue.d.ts +385 -28
- package/dist/src/components/FilesTable/Index.vue.d.ts.map +1 -1
- package/dist/src/components/Pagination.vue.d.ts +15 -5
- package/dist/src/components/Pagination.vue.d.ts.map +1 -1
- package/dist/src/components/Table.vue.d.ts +41 -29
- package/dist/src/components/Table.vue.d.ts.map +1 -1
- package/dist/src/components/TableBody.vue.d.ts +6 -5
- package/dist/src/components/TableBody.vue.d.ts.map +1 -1
- package/dist/src/components/TableDataActions.vue.d.ts +39 -12
- package/dist/src/components/TableDataActions.vue.d.ts.map +1 -1
- package/dist/src/components/TableHeader.vue.d.ts +8 -4
- package/dist/src/components/TableHeader.vue.d.ts.map +1 -1
- package/dist/src/components/TableToolbar.vue.d.ts +24 -6
- package/dist/src/components/TableToolbar.vue.d.ts.map +1 -1
- package/dist/src/components/TanstackTable.vue.d.ts +16 -15
- package/dist/src/components/TanstackTable.vue.d.ts.map +1 -1
- package/dist/src/types.d.ts +51 -46
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utilities.d.ts +4 -4
- package/dist/src/utilities.d.ts.map +1 -1
- package/dist/vue3-tanstack-table.css +2 -1
- package/package.json +31 -24
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { DataActionsMenuItem } from "../types";
|
|
2
1
|
import type { ColumnDef, ColumnFiltersState, SortingState } from "@tanstack/vue-table";
|
|
3
2
|
import type { PropType } from "vue";
|
|
4
|
-
|
|
3
|
+
import type { DataActionsMenuItem } from "../types";
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
7
|
actionsMode: {
|
|
6
8
|
default: string;
|
|
7
9
|
type: StringConstructor;
|
|
@@ -11,29 +13,29 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
11
13
|
default: number;
|
|
12
14
|
type: NumberConstructor;
|
|
13
15
|
};
|
|
14
|
-
dataActionMenu: {
|
|
15
|
-
default: () => never[];
|
|
16
|
-
type: PropType<DataActionsMenuItem[]>;
|
|
17
|
-
};
|
|
18
16
|
columnActionButtonLabel: {
|
|
19
17
|
default: undefined;
|
|
20
18
|
type: StringConstructor;
|
|
21
19
|
};
|
|
22
20
|
columnsData: {
|
|
23
|
-
type: PropType<ColumnDef<any>[]>;
|
|
24
21
|
default: () => never[];
|
|
22
|
+
type: PropType<ColumnDef<any>[]>;
|
|
25
23
|
};
|
|
26
24
|
customFormatters: {
|
|
27
25
|
default: () => {};
|
|
28
|
-
type: () => Record<string, (value:
|
|
26
|
+
type: () => Record<string, (value: any) => string>;
|
|
29
27
|
};
|
|
30
28
|
data: {
|
|
29
|
+
default: () => never[];
|
|
31
30
|
type: ArrayConstructor;
|
|
31
|
+
};
|
|
32
|
+
dataActionMenu: {
|
|
32
33
|
default: () => never[];
|
|
34
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
33
35
|
};
|
|
34
36
|
displayActions: {
|
|
35
37
|
default: boolean;
|
|
36
|
-
type: PropType<
|
|
38
|
+
type: PropType<((data: object) => boolean) | boolean>;
|
|
37
39
|
};
|
|
38
40
|
emptyTableMessage: {
|
|
39
41
|
default: undefined;
|
|
@@ -108,8 +110,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
108
110
|
titleInfo: {
|
|
109
111
|
default: undefined;
|
|
110
112
|
type: () => {
|
|
111
|
-
text: string;
|
|
112
113
|
align?: string;
|
|
114
|
+
text: string;
|
|
113
115
|
};
|
|
114
116
|
};
|
|
115
117
|
totalRecords: {
|
|
@@ -120,7 +122,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
120
122
|
default: () => never[];
|
|
121
123
|
type: PropType<string[]>;
|
|
122
124
|
};
|
|
123
|
-
}>, {
|
|
125
|
+
}>, {
|
|
126
|
+
isFilterRowVisible: import("vue").ComputedRef<boolean>;
|
|
127
|
+
selectedRows: import("vue").ComputedRef<unknown[]>;
|
|
128
|
+
table: import("vue").ComputedRef<import("@tanstack/vue-table").Table<unknown>>;
|
|
129
|
+
totalItems: import("vue").ComputedRef<number>;
|
|
130
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
131
|
+
"action:select": (...args: any[]) => void;
|
|
132
|
+
"change:rowSelection": (...args: any[]) => void;
|
|
133
|
+
"update:request": (...args: any[]) => void;
|
|
134
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
124
135
|
actionsMode: {
|
|
125
136
|
default: string;
|
|
126
137
|
type: StringConstructor;
|
|
@@ -130,29 +141,29 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
130
141
|
default: number;
|
|
131
142
|
type: NumberConstructor;
|
|
132
143
|
};
|
|
133
|
-
dataActionMenu: {
|
|
134
|
-
default: () => never[];
|
|
135
|
-
type: PropType<DataActionsMenuItem[]>;
|
|
136
|
-
};
|
|
137
144
|
columnActionButtonLabel: {
|
|
138
145
|
default: undefined;
|
|
139
146
|
type: StringConstructor;
|
|
140
147
|
};
|
|
141
148
|
columnsData: {
|
|
142
|
-
type: PropType<ColumnDef<any>[]>;
|
|
143
149
|
default: () => never[];
|
|
150
|
+
type: PropType<ColumnDef<any>[]>;
|
|
144
151
|
};
|
|
145
152
|
customFormatters: {
|
|
146
153
|
default: () => {};
|
|
147
|
-
type: () => Record<string, (value:
|
|
154
|
+
type: () => Record<string, (value: any) => string>;
|
|
148
155
|
};
|
|
149
156
|
data: {
|
|
157
|
+
default: () => never[];
|
|
150
158
|
type: ArrayConstructor;
|
|
159
|
+
};
|
|
160
|
+
dataActionMenu: {
|
|
151
161
|
default: () => never[];
|
|
162
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
152
163
|
};
|
|
153
164
|
displayActions: {
|
|
154
165
|
default: boolean;
|
|
155
|
-
type: PropType<
|
|
166
|
+
type: PropType<((data: object) => boolean) | boolean>;
|
|
156
167
|
};
|
|
157
168
|
emptyTableMessage: {
|
|
158
169
|
default: undefined;
|
|
@@ -227,8 +238,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
227
238
|
titleInfo: {
|
|
228
239
|
default: undefined;
|
|
229
240
|
type: () => {
|
|
230
|
-
text: string;
|
|
231
241
|
align?: string;
|
|
242
|
+
text: string;
|
|
232
243
|
};
|
|
233
244
|
};
|
|
234
245
|
totalRecords: {
|
|
@@ -244,14 +255,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
244
255
|
"onChange:rowSelection"?: ((...args: any[]) => any) | undefined;
|
|
245
256
|
"onUpdate:request"?: ((...args: any[]) => any) | undefined;
|
|
246
257
|
}>, {
|
|
258
|
+
locale: string;
|
|
247
259
|
inputDebounceTime: number;
|
|
260
|
+
data: unknown[];
|
|
248
261
|
id: string;
|
|
249
|
-
locale: string;
|
|
250
262
|
enableRowSelection: boolean;
|
|
251
|
-
customFormatters: Record<string, (value:
|
|
263
|
+
customFormatters: Record<string, (value: any) => string>;
|
|
252
264
|
emptyTableMessage: string;
|
|
253
265
|
autoModeCount: number;
|
|
254
|
-
data: unknown[];
|
|
255
266
|
displayActions: boolean | ((data: object) => boolean);
|
|
256
267
|
showColumnAction: boolean;
|
|
257
268
|
showResetButton: boolean;
|
|
@@ -261,8 +272,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
261
272
|
isLoading: boolean;
|
|
262
273
|
isServerTable: boolean;
|
|
263
274
|
actionsMode: string;
|
|
264
|
-
dataActionMenu: DataActionsMenuItem[];
|
|
265
275
|
columnsData: ColumnDef<any>[];
|
|
276
|
+
dataActionMenu: DataActionsMenuItem[];
|
|
266
277
|
enableSortingRemoval: boolean;
|
|
267
278
|
initialFilters: ColumnFiltersState;
|
|
268
279
|
initialSorting: SortingState;
|
|
@@ -274,18 +285,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
274
285
|
rowPerPageOptions: number[];
|
|
275
286
|
tableOptions: Record<string, any>;
|
|
276
287
|
titleInfo: {
|
|
277
|
-
text: string;
|
|
278
288
|
align?: string;
|
|
289
|
+
text: string;
|
|
279
290
|
};
|
|
280
291
|
totalRecords: number;
|
|
281
292
|
visibleColumns: string[];
|
|
282
293
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
283
|
-
toolbar
|
|
284
|
-
|
|
285
|
-
|
|
294
|
+
toolbar?: (props: {}) => any;
|
|
295
|
+
} & {
|
|
296
|
+
footer?: (props: {}) => any;
|
|
297
|
+
} & {
|
|
298
|
+
pagination?: (props: {}) => any;
|
|
286
299
|
}>;
|
|
287
|
-
|
|
288
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
300
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
289
301
|
new (): {
|
|
290
302
|
$slots: S;
|
|
291
303
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Table.vue
|
|
1
|
+
{"version":3,"file":"Table.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Table.vue"],"names":[],"mappings":"AAmmBA,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAElB,YAAY,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAcpC,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,UAAU,CAAC;wBAoBrD,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;;;;2BAkrBK,MAAM;;;;;;;;;;;;cAcV,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;;;;cAKzB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;;;;;;;;cAQ7C,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;cAIjB,QAAQ,CACnC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,OAAO,CACtC;;;;;;;;;;;;;;;;;;;;;cAqBc,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2BlB,MAAM;;;;;;;;;;;;cAaV,MAAM,MAAM,EAAE;;;;;;;;;;cAUb,MAAM;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE;;;;;;;;cAQvC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;2BApHd,MAAM;;;;;;;;;;;;cAcV,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;;;;cAKzB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;;;;;;;;cAQ7C,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;cAIjB,QAAQ,CACnC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,OAAO,CACtC;;;;;;;;;;;;;;;;;;;;;cAqBc,QAAQ,CAAC,kBAAkB,CAAC;;;;cAI5B,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2BlB,MAAM;;;;;;;;;;;;cAaV,MAAM,MAAM,EAAE;;;;;;;;;;cAUb,MAAM;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE;;;;;;;;cAQvC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;6CAjGY,GAAG,KAAK,MAAM;;;sCAajD,MAAM,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;gBA4EI,MAAM;cAAQ,MAAM;;;;;cA1H1C,CAAC,KAAK,IAAiB,KAAK,GAAG;;aAChC,CAAC,KAAK,IAAiB,KAAK,GAAG;;iBAC3B,CAAC,KAAK,IAAiB,KAAK,GAAG;EAqI5C,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Table } from "@tanstack/vue-table";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
5
|
customFormatters: {
|
|
4
6
|
default: () => {};
|
|
5
|
-
type: () => Record<string, (value:
|
|
7
|
+
type: () => Record<string, (value: any) => string>;
|
|
6
8
|
};
|
|
7
9
|
emptyTableMessage: {
|
|
8
10
|
default: string;
|
|
@@ -20,7 +22,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
20
22
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
23
|
customFormatters: {
|
|
22
24
|
default: () => {};
|
|
23
|
-
type: () => Record<string, (value:
|
|
25
|
+
type: () => Record<string, (value: any) => string>;
|
|
24
26
|
};
|
|
25
27
|
emptyTableMessage: {
|
|
26
28
|
default: string;
|
|
@@ -38,8 +40,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
40
|
}>> & Readonly<{}>, {
|
|
39
41
|
locale: string;
|
|
40
42
|
enableRowSelection: boolean;
|
|
41
|
-
customFormatters: Record<string, (value:
|
|
43
|
+
customFormatters: Record<string, (value: any) => string>;
|
|
42
44
|
emptyTableMessage: string;
|
|
43
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
-
export default _default;
|
|
45
46
|
//# sourceMappingURL=TableBody.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableBody.vue
|
|
1
|
+
{"version":3,"file":"TableBody.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableBody.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EAAiB,KAAK,EAAE,MAAM,qBAAqB,CAAC;wBAa3C,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;;;cAiOE,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;;;;;;;;;;;;;cAa5C,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;cAbpB,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;;;;;;;;;;;;;cAa5C,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;6CAbS,GAAG,KAAK,MAAM;;4EAiB3D,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { DataActionsMenuItem } from "../types";
|
|
2
1
|
import type { PropType } from "vue";
|
|
3
|
-
|
|
2
|
+
import type { DataActionsMenuItem } from "../types";
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
6
|
actions: {
|
|
5
|
-
type: PropType<DataActionsMenuItem[]>;
|
|
6
7
|
required: true;
|
|
8
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
7
9
|
};
|
|
8
10
|
autoModeCount: {
|
|
9
11
|
default: number;
|
|
@@ -15,17 +17,42 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
15
17
|
};
|
|
16
18
|
displayActions: {
|
|
17
19
|
default: boolean;
|
|
18
|
-
type: PropType<
|
|
20
|
+
type: PropType<((data: object) => boolean) | boolean>;
|
|
19
21
|
};
|
|
20
22
|
mode: {
|
|
21
23
|
default: undefined;
|
|
22
24
|
type: StringConstructor;
|
|
23
25
|
validator: (value: string) => boolean;
|
|
24
26
|
};
|
|
25
|
-
}>, {
|
|
27
|
+
}>, {
|
|
28
|
+
filteredItems: import("vue").ComputedRef<{
|
|
29
|
+
disabled: boolean | undefined;
|
|
30
|
+
display: boolean;
|
|
31
|
+
class?: string;
|
|
32
|
+
confirmationOptions?: {
|
|
33
|
+
body?: string | import("vue").VNode;
|
|
34
|
+
footer?: string | import("vue").VNode;
|
|
35
|
+
header?: string | import("vue").VNode;
|
|
36
|
+
} | ((data: any) => {
|
|
37
|
+
body?: string | import("vue").VNode;
|
|
38
|
+
footer?: string | import("vue").VNode;
|
|
39
|
+
header?: string | import("vue").VNode;
|
|
40
|
+
});
|
|
41
|
+
icon?: string;
|
|
42
|
+
key?: string;
|
|
43
|
+
label?: string;
|
|
44
|
+
requireConfirmationModal?: boolean;
|
|
45
|
+
severity?: "alternate" | "danger" | "primary" | "secondary" | "success" | "warning";
|
|
46
|
+
}[]>;
|
|
47
|
+
onSelectAction: (action: DataActionsMenuItem) => void;
|
|
48
|
+
showActionsMenu: import("vue").ComputedRef<number | false>;
|
|
49
|
+
showConfirmation: import("vue").Ref<boolean, boolean>;
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"action:select": (...args: any[]) => void;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
53
|
actions: {
|
|
27
|
-
type: PropType<DataActionsMenuItem[]>;
|
|
28
54
|
required: true;
|
|
55
|
+
type: PropType<DataActionsMenuItem[]>;
|
|
29
56
|
};
|
|
30
57
|
autoModeCount: {
|
|
31
58
|
default: number;
|
|
@@ -37,7 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
37
64
|
};
|
|
38
65
|
displayActions: {
|
|
39
66
|
default: boolean;
|
|
40
|
-
type: PropType<
|
|
67
|
+
type: PropType<((data: object) => boolean) | boolean>;
|
|
41
68
|
};
|
|
42
69
|
mode: {
|
|
43
70
|
default: undefined;
|
|
@@ -47,16 +74,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
47
74
|
}>> & Readonly<{
|
|
48
75
|
"onAction:select"?: ((...args: any[]) => any) | undefined;
|
|
49
76
|
}>, {
|
|
77
|
+
data: Record<string, any>;
|
|
50
78
|
mode: string;
|
|
51
79
|
autoModeCount: number;
|
|
52
|
-
data: Record<string, any>;
|
|
53
80
|
displayActions: boolean | ((data: object) => boolean);
|
|
54
81
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
55
|
-
trigger
|
|
56
|
-
|
|
82
|
+
trigger?: (props: {}) => any;
|
|
83
|
+
} & {
|
|
84
|
+
confirmationModal?: (props: {}) => any;
|
|
57
85
|
}>;
|
|
58
|
-
|
|
59
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
86
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
60
87
|
new (): {
|
|
61
88
|
$slots: S;
|
|
62
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableDataActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableDataActions.vue
|
|
1
|
+
{"version":3,"file":"TableDataActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableDataActions.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAUpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;wBAG/B,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;;;cAiVC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;;;;;;;;;cAYjB,QAAQ,CACnC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,OAAO,CACtC;;;;;2BAKkB,MAAM;;;;;;;;;;;;;;;;;;;;;;6BA9QG,mBAAmB;;;;;;;;cA2PhC,QAAQ,CAAC,mBAAmB,EAAE,CAAC;;;;;;;;;;;;cAYjB,QAAQ,CACnC,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,OAAO,CACtC;;;;;2BAKkB,MAAM;;;;;;;;sCANf,MAAM,KAAK,OAAO;;cAzBlB,CAAC,KAAK,IAAiB,KAAK,GAAG;;wBACrB,CAAC,KAAK,IAAiB,KAAK,GAAG;EAoCnD,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { Table } from "@tanstack/vue-table";
|
|
2
|
-
declare const _default:
|
|
1
|
+
import type { Column, Table } from "@tanstack/vue-table";
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
5
|
highlightActiveColumn: BooleanConstructor;
|
|
4
6
|
inputDebounceTime: {
|
|
5
7
|
default: undefined;
|
|
@@ -13,7 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
15
|
required: true;
|
|
14
16
|
type: () => Table<unknown>;
|
|
15
17
|
};
|
|
16
|
-
}>, {
|
|
18
|
+
}>, {
|
|
19
|
+
getFormattedDateRange: (dateRange: Date[]) => (string | undefined)[] | null;
|
|
20
|
+
updateRangeFilter: (column: Column<unknown, unknown>, index: number, value: number | undefined) => void;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
22
|
highlightActiveColumn: BooleanConstructor;
|
|
18
23
|
inputDebounceTime: {
|
|
19
24
|
default: undefined;
|
|
@@ -32,5 +37,4 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
37
|
highlightActiveColumn: boolean;
|
|
33
38
|
isFilterRowVisible: boolean;
|
|
34
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
-
export default _default;
|
|
36
40
|
//# sourceMappingURL=TableHeader.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableHeader.vue
|
|
1
|
+
{"version":3,"file":"TableHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableHeader.vue"],"names":[],"mappings":"AAqUA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;wBASpC,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;;;;;;;;;;;;cAuiBE,MAAM,KAAK,CAAC,OAAO,CAAC;;;uCAzgBE,IAAI,EAAE;gCAsBtC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,SACzB,MAAM,SACN,MAAM,GAAG,SAAS,KACxB,IAAI;;;;;;;;;;;;;cAgfa,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;4EAIpC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type { Table } from "@tanstack/vue-table";
|
|
2
|
-
|
|
1
|
+
import type { Column, Table } from "@tanstack/vue-table";
|
|
2
|
+
import type { VNode } from "vue";
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
6
|
columnActionButtonLabel: {
|
|
4
7
|
default: string;
|
|
5
8
|
type: StringConstructor;
|
|
@@ -16,7 +19,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
16
19
|
required: true;
|
|
17
20
|
type: () => Table<unknown>;
|
|
18
21
|
};
|
|
19
|
-
}>, {
|
|
22
|
+
}>, {
|
|
23
|
+
items: import("vue").ComputedRef<{
|
|
24
|
+
data: Column<unknown, unknown>;
|
|
25
|
+
id: number;
|
|
26
|
+
render: (data: any) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>;
|
|
29
|
+
}[]>;
|
|
30
|
+
onDrag: (sorted: {
|
|
31
|
+
data: Column<unknown, unknown>;
|
|
32
|
+
id: number | string;
|
|
33
|
+
render?: (data: unknown) => VNode;
|
|
34
|
+
}[]) => void;
|
|
35
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"on:drag": (...args: any[]) => void;
|
|
37
|
+
"on:reset": (...args: any[]) => void;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
39
|
columnActionButtonLabel: {
|
|
21
40
|
default: string;
|
|
22
41
|
type: StringConstructor;
|
|
@@ -44,10 +63,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
44
63
|
columnActionButtonLabel: string;
|
|
45
64
|
resetButtonLabel: string;
|
|
46
65
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
47
|
-
default
|
|
66
|
+
default?: (props: {}) => any;
|
|
48
67
|
}>;
|
|
49
|
-
|
|
50
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
51
69
|
new (): {
|
|
52
70
|
$slots: S;
|
|
53
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableToolbar.vue
|
|
1
|
+
{"version":3,"file":"TableToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TableToolbar.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;wBAOZ,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;cA+ME,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;uBA3KnB,GAAG;;;;qBAiBA;cAnDhB,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC;YAC1B,MAAM,GAAG,MAAM;iBACV,CAAC,IAAI,EAAE,OAAO,KAAK,KAAK;OAiDL;;;;;;;;;;;;;;;;;;;cA0JV,MAAM,KAAK,CAAC,OAAO,CAAC;;;;;;;;;;;;;cAvB1B,CAAC,KAAK,IAAiB,KAAK,GAAG;EA4BzC,CAAC;AACL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
5
|
columnsData: {
|
|
6
|
+
default: () => never[];
|
|
4
7
|
type: PropType<{
|
|
5
8
|
accessorKey: string;
|
|
6
9
|
header: string;
|
|
7
10
|
size?: number;
|
|
8
11
|
sort?: boolean;
|
|
9
12
|
}[]>;
|
|
10
|
-
default: () => never[];
|
|
11
|
-
};
|
|
12
|
-
rows: {
|
|
13
|
-
type: ArrayConstructor;
|
|
14
|
-
default: () => never[];
|
|
15
13
|
};
|
|
16
14
|
enableToggle: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
15
|
default: () => boolean;
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
};
|
|
18
|
+
rows: {
|
|
19
|
+
default: () => never[];
|
|
20
|
+
type: ArrayConstructor;
|
|
19
21
|
};
|
|
20
22
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
23
|
columnsData: {
|
|
24
|
+
default: () => never[];
|
|
22
25
|
type: PropType<{
|
|
23
26
|
accessorKey: string;
|
|
24
27
|
header: string;
|
|
25
28
|
size?: number;
|
|
26
29
|
sort?: boolean;
|
|
27
30
|
}[]>;
|
|
28
|
-
default: () => never[];
|
|
29
|
-
};
|
|
30
|
-
rows: {
|
|
31
|
-
type: ArrayConstructor;
|
|
32
|
-
default: () => never[];
|
|
33
31
|
};
|
|
34
32
|
enableToggle: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
33
|
default: () => boolean;
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
rows: {
|
|
37
|
+
default: () => never[];
|
|
38
|
+
type: ArrayConstructor;
|
|
37
39
|
};
|
|
38
40
|
}>> & Readonly<{}>, {
|
|
39
41
|
columnsData: {
|
|
@@ -42,8 +44,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
44
|
size?: number;
|
|
43
45
|
sort?: boolean;
|
|
44
46
|
}[];
|
|
45
|
-
rows: unknown[];
|
|
46
47
|
enableToggle: boolean;
|
|
48
|
+
rows: unknown[];
|
|
47
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
|
-
export default _default;
|
|
49
50
|
//# sourceMappingURL=TanstackTable.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TanstackTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TanstackTable.vue
|
|
1
|
+
{"version":3,"file":"TanstackTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TanstackTable.vue"],"names":[],"mappings":"AA6QA,OAAO,EAAE,QAAQ,EAAO,MAAM,KAAK,CAAC;wBAGf,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,QAAA,MAAM,YAAY;;;cA2ZC,QAAQ,CAAC;yBAzZb,MAAM;oBACX,MAAM;mBACP,MAAM;mBACN,OAAO;WAsZ4B,CAAC;;;;;;;;;;;;;cAA1B,QAAQ,CAAC;yBAzZb,MAAM;oBACX,MAAM;mBACP,MAAM;mBACN,OAAO;WAsZ4B,CAAC;;;;;;;;;;;;qBAzZ9B,MAAM;gBACX,MAAM;eACP,MAAM;eACN,OAAO;;;;4EAkaZ,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ declare module "@tanstack/vue-table" {
|
|
|
4
4
|
interface ColumnDefBase<TData, TValue> {
|
|
5
5
|
accessorKey?: string;
|
|
6
6
|
align?: CellAlignmentType;
|
|
7
|
-
dataType?: CellDataType;
|
|
8
|
-
dateOptions?: Omit<FormatDateType, "date">;
|
|
9
7
|
className?: string;
|
|
10
8
|
customFilterComponent?: (column: Column<TData, TValue>) => VNode;
|
|
9
|
+
dataType?: CellDataType;
|
|
10
|
+
dateOptions?: Omit<FormatDateType, "date">;
|
|
11
11
|
filterPlaceholder?: string;
|
|
12
12
|
maxWidth?: string;
|
|
13
13
|
minWidth?: string;
|
|
14
14
|
numberOptions?: Omit<FormatNumberType, "value">;
|
|
15
|
-
tooltip?:
|
|
15
|
+
tooltip?: ((cell: Cell<TData, TValue>) => VNode) | boolean | string;
|
|
16
16
|
tooltipOptions?: object;
|
|
17
17
|
width?: string;
|
|
18
18
|
}
|
|
@@ -20,37 +20,34 @@ declare module "@tanstack/vue-table" {
|
|
|
20
20
|
filterFn?: TFilterFn;
|
|
21
21
|
}
|
|
22
22
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
dateFilterMax?: Date;
|
|
24
|
+
dateFilterMin?: Date;
|
|
25
25
|
filterOptions?: FilterOption[];
|
|
26
|
+
filterVariant?: TFilterVariant;
|
|
27
|
+
rangeFilterMax?: number;
|
|
28
|
+
rangeFilterMin?: number;
|
|
29
|
+
serverFilterFn?: TFilterFn;
|
|
26
30
|
}
|
|
27
31
|
}
|
|
32
|
+
export type CellAlignmentType = "center" | "left" | "right";
|
|
33
|
+
export type CellDataType = "currency" | "date" | "datetime" | "number" | "text" | string;
|
|
34
|
+
export type DataActionsMenuItem = {
|
|
35
|
+
class?: string;
|
|
36
|
+
confirmationOptions?: ConfirmationOptions | ((data: any) => ConfirmationOptions);
|
|
37
|
+
disabled?: boolean | ((data: any) => boolean);
|
|
38
|
+
display?: boolean | ((data: any) => boolean);
|
|
39
|
+
icon?: string;
|
|
40
|
+
key?: string;
|
|
41
|
+
label?: string;
|
|
42
|
+
requireConfirmationModal?: boolean;
|
|
43
|
+
severity?: "alternate" | "danger" | "primary" | "secondary" | "success" | "warning";
|
|
44
|
+
};
|
|
28
45
|
export type FilterOption = {
|
|
29
46
|
label: string;
|
|
30
47
|
value: boolean | number | string;
|
|
31
48
|
};
|
|
32
|
-
export type TFilterRequest = TSingleFilter | {
|
|
33
|
-
AND: TFilterRequest[];
|
|
34
|
-
} | {
|
|
35
|
-
OR: TFilterRequest[];
|
|
36
|
-
} | null;
|
|
37
|
-
export type TLimit = number | null;
|
|
38
|
-
export type TOffset = number | null;
|
|
39
|
-
export type TSingleFilter = {
|
|
40
|
-
key: string;
|
|
41
|
-
operator: string;
|
|
42
|
-
value: string;
|
|
43
|
-
};
|
|
44
|
-
export type TSingleSort = {
|
|
45
|
-
key: string;
|
|
46
|
-
direction: TSortDirection;
|
|
47
|
-
};
|
|
48
|
-
export type TSortRequest = TSingleSort[] | null;
|
|
49
|
-
export type CellAlignmentType = "left" | "center" | "right";
|
|
50
|
-
export type CellDataType = "currency" | "date" | "datetime" | "number" | string | "text";
|
|
51
|
-
export type { ColumnDef as TableColumnDefinition, FilterFn as FilterFunction, FilterFns as FilterFunctions, Row as TableRow, SortingState, } from "@tanstack/vue-table";
|
|
52
49
|
export type FormatDateType = {
|
|
53
|
-
date: Date |
|
|
50
|
+
date: Date | number | string;
|
|
54
51
|
formatOptions?: Intl.DateTimeFormatOptions;
|
|
55
52
|
locale?: string;
|
|
56
53
|
};
|
|
@@ -59,21 +56,6 @@ export type FormatNumberType = {
|
|
|
59
56
|
locale?: string;
|
|
60
57
|
value: number;
|
|
61
58
|
};
|
|
62
|
-
type ConfirmationOptions = {
|
|
63
|
-
body?: string | VNode;
|
|
64
|
-
footer?: string | VNode;
|
|
65
|
-
header?: string | VNode;
|
|
66
|
-
};
|
|
67
|
-
export type DataActionsMenuItem = {
|
|
68
|
-
class?: string;
|
|
69
|
-
confirmationOptions?: ConfirmationOptions | ((data: any) => ConfirmationOptions);
|
|
70
|
-
disabled?: boolean | ((data: any) => boolean);
|
|
71
|
-
display?: boolean | ((data: any) => boolean);
|
|
72
|
-
key?: string;
|
|
73
|
-
label?: string;
|
|
74
|
-
icon?: string;
|
|
75
|
-
requireConfirmationModal?: boolean;
|
|
76
|
-
};
|
|
77
59
|
export interface PersistentTableState {
|
|
78
60
|
columnFilters: ColumnFiltersState;
|
|
79
61
|
columnOrder?: ColumnOrderState;
|
|
@@ -81,13 +63,36 @@ export interface PersistentTableState {
|
|
|
81
63
|
pagination: PaginationState;
|
|
82
64
|
sorting: SortingState;
|
|
83
65
|
}
|
|
84
|
-
export type
|
|
85
|
-
|
|
66
|
+
export type TFilterRequest = null | TSingleFilter | {
|
|
67
|
+
AND: TFilterRequest[];
|
|
68
|
+
} | {
|
|
69
|
+
OR: TFilterRequest[];
|
|
70
|
+
};
|
|
71
|
+
export type TFilterVariant = "checkBox" | "date" | "dateRange" | "multiselect" | "range" | "select" | "text";
|
|
72
|
+
export type { FilterFn as FilterFunction, FilterFns as FilterFunctions, SortingState, ColumnDef as TableColumnDefinition, Row as TableRow, } from "@tanstack/vue-table";
|
|
73
|
+
export type TLimit = null | number;
|
|
74
|
+
export type TOffset = null | number;
|
|
86
75
|
export type TRequestJSON = {
|
|
87
76
|
filter: TFilterRequest;
|
|
88
|
-
sort: TSortRequest;
|
|
89
|
-
offset: TOffset;
|
|
90
77
|
limit: TLimit;
|
|
78
|
+
offset: TOffset;
|
|
79
|
+
sort: TSortRequest;
|
|
80
|
+
};
|
|
81
|
+
export type TSingleFilter = {
|
|
82
|
+
key: string;
|
|
83
|
+
operator: string;
|
|
84
|
+
value: string;
|
|
85
|
+
};
|
|
86
|
+
export type TSingleSort = {
|
|
87
|
+
direction: TSortDirection;
|
|
88
|
+
key: string;
|
|
89
|
+
};
|
|
90
|
+
export type TFilterFn = "between" | "contains" | "endsWith" | "equals" | "greaterThan" | "greaterThanOrEqual" | "in" | "isEmpty" | "isNotEmpty" | "isNotNull" | "isNull" | "lessThan" | "lessThanOrEqual" | "like" | "notBetween" | "notEqual" | "notIn" | "notLike" | "startsWith";
|
|
91
|
+
export type TSortDirection = "" | "ASC" | "DESC";
|
|
92
|
+
export type TSortRequest = null | TSingleSort[];
|
|
93
|
+
type ConfirmationOptions = {
|
|
94
|
+
body?: string | VNode;
|
|
95
|
+
footer?: string | VNode;
|
|
96
|
+
header?: string | VNode;
|
|
91
97
|
};
|
|
92
|
-
export type TSortDirection = "ASC" | "DESC" | "";
|
|
93
98
|
//# sourceMappingURL=types.d.ts.map
|