@teamprodevs/appsmith-custom-table 0.3.0 → 0.4.1
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/README.md +179 -75
- package/dist/app.css +1 -1
- package/dist/app.js +40421 -2
- package/dist/app.umd.cjs +36 -1272
- package/dist/index.d.ts +14 -46
- package/package.json +1 -4
- package/dist/2AITGKQY-B2qrGmN6.js +0 -42
- package/dist/NCMVHL6D-C55o1FcN.js +0 -33
- package/dist/ZDWCUMSJ-D0jBnQB_.js +0 -8979
- package/dist/index-C1g_GPyX.js +0 -49396
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import { default as default_2 } from 'zod';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { SortDirection } from '@tanstack/react-table';
|
|
3
4
|
|
|
4
|
-
declare
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
NUMBER = "number",
|
|
7
|
-
ENUM = "enum",
|
|
8
|
-
DATE = "date",
|
|
9
|
-
CURRENCY = "currency",
|
|
10
|
-
PHONE = "phone"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare enum HTTP_METHODS {
|
|
14
|
-
"GET" = "GET",
|
|
15
|
-
"POST" = "POST",
|
|
16
|
-
"PUT" = "PUT",
|
|
17
|
-
"DELETE" = "DELETE",
|
|
18
|
-
"PATCH" = "PATCH"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare function InfiniteTable(props: TableModel): JSX.Element;
|
|
5
|
+
export declare function ClientTable(props: TableModel): JSX.Element;
|
|
22
6
|
|
|
23
7
|
declare enum ItemSize {
|
|
24
8
|
"xs" = "xs",
|
|
@@ -35,33 +19,17 @@ declare enum PinDirection {
|
|
|
35
19
|
declare type TableModel = default_2.infer<typeof TableModelSchema>;
|
|
36
20
|
|
|
37
21
|
declare const TableModelSchema: default_2.ZodObject<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
method: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<typeof HTTP_METHODS>>>;
|
|
41
|
-
headers: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
42
|
-
body: default_2.ZodOptional<default_2.ZodAny>;
|
|
43
|
-
accessor: default_2.ZodOptional<default_2.ZodString>;
|
|
44
|
-
paginationKeys: default_2.ZodOptional<default_2.ZodObject<{
|
|
45
|
-
offset: default_2.ZodDefault<default_2.ZodString>;
|
|
46
|
-
limit: default_2.ZodDefault<default_2.ZodString>;
|
|
47
|
-
}, default_2.core.$strip>>;
|
|
48
|
-
perPage: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodNumber>>;
|
|
49
|
-
pageParam: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodNumber>>;
|
|
50
|
-
}, default_2.core.$strip>;
|
|
22
|
+
data: default_2.ZodDefault<default_2.ZodArray<default_2.ZodAny>>;
|
|
23
|
+
limit: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodNumber>>;
|
|
51
24
|
schema: default_2.ZodRecord<default_2.ZodString, default_2.ZodObject<{
|
|
52
|
-
type: default_2.ZodEnum<typeof ColumnType>;
|
|
53
|
-
options: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
|
|
54
|
-
value: default_2.ZodString;
|
|
55
|
-
title: default_2.ZodString;
|
|
56
|
-
}, default_2.core.$strip>>>;
|
|
57
25
|
sort: default_2.ZodOptional<default_2.ZodBoolean>;
|
|
58
|
-
filter: default_2.ZodOptional<default_2.ZodBoolean>;
|
|
59
26
|
size: default_2.ZodOptional<default_2.ZodEnum<typeof ItemSize>>;
|
|
60
27
|
title: default_2.ZodOptional<default_2.ZodString>;
|
|
61
28
|
className: default_2.ZodOptional<default_2.ZodString>;
|
|
62
29
|
}, default_2.core.$strip>>;
|
|
63
30
|
indexRow: default_2.ZodOptional<default_2.ZodObject<{
|
|
64
31
|
enable: default_2.ZodBoolean;
|
|
32
|
+
pin: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<typeof PinDirection>>>;
|
|
65
33
|
size: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<typeof ItemSize>>>;
|
|
66
34
|
}, default_2.core.$strip>>;
|
|
67
35
|
rowActions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
|
|
@@ -5744,10 +5712,6 @@ declare const TableModelSchema: default_2.ZodObject<{
|
|
|
5744
5712
|
pin: default_2.ZodDefault<default_2.ZodEnum<typeof PinDirection>>;
|
|
5745
5713
|
}, default_2.core.$strip>>;
|
|
5746
5714
|
translations: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
5747
|
-
updateModel: default_2.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodAny], null>, default_2.core.$ZodFunctionOut>>;
|
|
5748
|
-
triggerEvent: default_2.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodString, default_2.ZodObject<{
|
|
5749
|
-
row: default_2.ZodAny;
|
|
5750
|
-
}, default_2.core.$strip>], null>, default_2.core.$ZodFunctionOut>>;
|
|
5751
5715
|
styles: default_2.ZodOptional<default_2.ZodObject<{
|
|
5752
5716
|
head: default_2.ZodOptional<default_2.ZodObject<{
|
|
5753
5717
|
body: default_2.ZodOptional<default_2.ZodString>;
|
|
@@ -5760,14 +5724,18 @@ declare const TableModelSchema: default_2.ZodObject<{
|
|
|
5760
5724
|
row: default_2.ZodOptional<default_2.ZodString>;
|
|
5761
5725
|
cell: default_2.ZodOptional<default_2.ZodString>;
|
|
5762
5726
|
}, default_2.core.$strip>>;
|
|
5763
|
-
|
|
5764
|
-
container: default_2.ZodOptional<default_2.ZodString>;
|
|
5765
|
-
header: default_2.ZodOptional<default_2.ZodString>;
|
|
5766
|
-
content: default_2.ZodOptional<default_2.ZodString>;
|
|
5767
|
-
}, default_2.core.$strip>>;
|
|
5727
|
+
container: default_2.ZodOptional<default_2.ZodString>;
|
|
5768
5728
|
table: default_2.ZodOptional<default_2.ZodString>;
|
|
5769
5729
|
variables: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
5770
5730
|
}, default_2.core.$strip>>;
|
|
5731
|
+
triggerEvent: default_2.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodString, default_2.ZodObject<{
|
|
5732
|
+
row: default_2.ZodOptional<default_2.ZodAny>;
|
|
5733
|
+
sortCol: default_2.ZodOptional<default_2.ZodString>;
|
|
5734
|
+
sortOption: default_2.ZodOptional<default_2.ZodCustom<SortDirection, SortDirection>>;
|
|
5735
|
+
page: default_2.ZodOptional<default_2.ZodNumber>;
|
|
5736
|
+
limit: default_2.ZodOptional<default_2.ZodNumber>;
|
|
5737
|
+
}, default_2.core.$strip>], null>, default_2.core.$ZodFunctionOut>>;
|
|
5738
|
+
updateModel: default_2.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodAny], null>, default_2.core.$ZodFunctionOut>>;
|
|
5771
5739
|
}, default_2.core.$strip>;
|
|
5772
5740
|
|
|
5773
5741
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamprodevs/appsmith-custom-table",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -51,14 +51,11 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@storybook/react": "^10.0.7",
|
|
53
53
|
"@tailwindcss/vite": "^4.1.17",
|
|
54
|
-
"@tanstack/react-query": "^5.90.7",
|
|
55
|
-
"@tanstack/react-query-devtools": "^5.90.2",
|
|
56
54
|
"@tanstack/react-table": "^8.21.3",
|
|
57
55
|
"autoprefixer": "^10.4.22",
|
|
58
56
|
"class-variance-authority": "^0.7.1",
|
|
59
57
|
"clsx": "^2.1.1",
|
|
60
58
|
"date-fns": "^4.1.0",
|
|
61
|
-
"lodash": "^4.17.21",
|
|
62
59
|
"lucide-react": "^0.553.0",
|
|
63
60
|
"postcss": "^8.5.6",
|
|
64
61
|
"react": "18.3.1",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./ZDWCUMSJ-D0jBnQB_.js";
|
|
2
|
-
import { g as v, c as C, a as e } from "./index-C1g_GPyX.js";
|
|
3
|
-
var h = (t) => {
|
|
4
|
-
const [r, o] = s({
|
|
5
|
-
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), a = v(), l = C(() => {
|
|
7
|
-
const n = r.theme_preference || c;
|
|
8
|
-
return n !== "system" ? n : a();
|
|
9
|
-
});
|
|
10
|
-
return e(d.Provider, {
|
|
11
|
-
value: t,
|
|
12
|
-
get children() {
|
|
13
|
-
return e(u, {
|
|
14
|
-
disabled: !0,
|
|
15
|
-
localStore: r,
|
|
16
|
-
setLocalStore: o,
|
|
17
|
-
get children() {
|
|
18
|
-
return e(i.Provider, {
|
|
19
|
-
value: l,
|
|
20
|
-
get children() {
|
|
21
|
-
return e(m, {
|
|
22
|
-
get children() {
|
|
23
|
-
return e(P, {
|
|
24
|
-
localStore: r,
|
|
25
|
-
setLocalStore: o,
|
|
26
|
-
get onClose() {
|
|
27
|
-
return t.onClose;
|
|
28
|
-
},
|
|
29
|
-
showPanelViewOnly: !0
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}, p = h;
|
|
40
|
-
export {
|
|
41
|
-
p as default
|
|
42
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./ZDWCUMSJ-D0jBnQB_.js";
|
|
2
|
-
import { g as d, c as f, a as e } from "./index-C1g_GPyX.js";
|
|
3
|
-
var p = (a) => {
|
|
4
|
-
const [r, t] = c({
|
|
5
|
-
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), n = d(), s = f(() => {
|
|
7
|
-
const o = r.theme_preference || l;
|
|
8
|
-
return o !== "system" ? o : n();
|
|
9
|
-
});
|
|
10
|
-
return e(i.Provider, {
|
|
11
|
-
value: a,
|
|
12
|
-
get children() {
|
|
13
|
-
return e(m, {
|
|
14
|
-
localStore: r,
|
|
15
|
-
setLocalStore: t,
|
|
16
|
-
get children() {
|
|
17
|
-
return e(u.Provider, {
|
|
18
|
-
value: s,
|
|
19
|
-
get children() {
|
|
20
|
-
return e(v, {
|
|
21
|
-
localStore: r,
|
|
22
|
-
setLocalStore: t
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}, C = p;
|
|
31
|
-
export {
|
|
32
|
-
C as default
|
|
33
|
-
};
|