@teamprodevs/appsmith-custom-table 0.2.3 → 0.4.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/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 +27 -35
- package/package.json +104 -103
- package/dist/2AITGKQY-C7rOfhUj.js +0 -42
- package/dist/NCMVHL6D-D_KqW9jK.js +0 -33
- package/dist/ZDWCUMSJ-10WkI1tX.js +0 -8979
- package/dist/index-BlBhv5G5.js +0 -49091
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +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
|
-
export declare function
|
|
5
|
-
|
|
6
|
-
declare enum ColumnType {
|
|
7
|
-
TEXT = "text",
|
|
8
|
-
NUMBER = "number",
|
|
9
|
-
ENUM = "enum",
|
|
10
|
-
BOOL = "bool",
|
|
11
|
-
ID = "id",
|
|
12
|
-
DATE = "date",
|
|
13
|
-
CURRENCY = "currency",
|
|
14
|
-
PHONE = "phone"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare enum HTTP_METHODS {
|
|
18
|
-
"GET" = "GET",
|
|
19
|
-
"POST" = "POST",
|
|
20
|
-
"PUT" = "PUT",
|
|
21
|
-
"DELETE" = "DELETE",
|
|
22
|
-
"PATCH" = "PATCH"
|
|
23
|
-
}
|
|
5
|
+
export declare function ClientTable(props: TableModel): JSX.Element;
|
|
24
6
|
|
|
25
7
|
declare enum ItemSize {
|
|
26
8
|
"xs" = "xs",
|
|
@@ -37,27 +19,17 @@ declare enum PinDirection {
|
|
|
37
19
|
declare type TableModel = default_2.infer<typeof TableModelSchema>;
|
|
38
20
|
|
|
39
21
|
declare const TableModelSchema: default_2.ZodObject<{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
method: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<typeof HTTP_METHODS>>>;
|
|
43
|
-
headers: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
44
|
-
body: default_2.ZodOptional<default_2.ZodAny>;
|
|
45
|
-
accessor: default_2.ZodOptional<default_2.ZodString>;
|
|
46
|
-
}, 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>>;
|
|
47
24
|
schema: default_2.ZodRecord<default_2.ZodString, default_2.ZodObject<{
|
|
48
|
-
type: default_2.ZodEnum<typeof ColumnType>;
|
|
49
|
-
options: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
|
|
50
|
-
value: default_2.ZodString;
|
|
51
|
-
title: default_2.ZodString;
|
|
52
|
-
}, default_2.core.$strip>>>;
|
|
53
25
|
sort: default_2.ZodOptional<default_2.ZodBoolean>;
|
|
54
|
-
filter: default_2.ZodOptional<default_2.ZodBoolean>;
|
|
55
26
|
size: default_2.ZodOptional<default_2.ZodEnum<typeof ItemSize>>;
|
|
56
27
|
title: default_2.ZodOptional<default_2.ZodString>;
|
|
57
28
|
className: default_2.ZodOptional<default_2.ZodString>;
|
|
58
29
|
}, default_2.core.$strip>>;
|
|
59
30
|
indexRow: default_2.ZodOptional<default_2.ZodObject<{
|
|
60
31
|
enable: default_2.ZodBoolean;
|
|
32
|
+
pin: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<typeof PinDirection>>>;
|
|
61
33
|
size: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<typeof ItemSize>>>;
|
|
62
34
|
}, default_2.core.$strip>>;
|
|
63
35
|
rowActions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
|
|
@@ -5740,10 +5712,30 @@ declare const TableModelSchema: default_2.ZodObject<{
|
|
|
5740
5712
|
pin: default_2.ZodDefault<default_2.ZodEnum<typeof PinDirection>>;
|
|
5741
5713
|
}, default_2.core.$strip>>;
|
|
5742
5714
|
translations: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
5743
|
-
|
|
5715
|
+
styles: default_2.ZodOptional<default_2.ZodObject<{
|
|
5716
|
+
head: default_2.ZodOptional<default_2.ZodObject<{
|
|
5717
|
+
body: default_2.ZodOptional<default_2.ZodString>;
|
|
5718
|
+
row: default_2.ZodOptional<default_2.ZodString>;
|
|
5719
|
+
cell: default_2.ZodOptional<default_2.ZodString>;
|
|
5720
|
+
icon: default_2.ZodOptional<default_2.ZodString>;
|
|
5721
|
+
}, default_2.core.$strip>>;
|
|
5722
|
+
body: default_2.ZodOptional<default_2.ZodObject<{
|
|
5723
|
+
body: default_2.ZodOptional<default_2.ZodString>;
|
|
5724
|
+
row: default_2.ZodOptional<default_2.ZodString>;
|
|
5725
|
+
cell: default_2.ZodOptional<default_2.ZodString>;
|
|
5726
|
+
}, default_2.core.$strip>>;
|
|
5727
|
+
container: default_2.ZodOptional<default_2.ZodString>;
|
|
5728
|
+
table: default_2.ZodOptional<default_2.ZodString>;
|
|
5729
|
+
variables: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
5730
|
+
}, default_2.core.$strip>>;
|
|
5744
5731
|
triggerEvent: default_2.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodString, default_2.ZodObject<{
|
|
5745
|
-
row: default_2.ZodAny
|
|
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>;
|
|
5746
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>>;
|
|
5747
5739
|
}, default_2.core.$strip>;
|
|
5748
5740
|
|
|
5749
5741
|
export { }
|
package/package.json
CHANGED
|
@@ -1,103 +1,104 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@teamprodevs/appsmith-custom-table",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"private": false,
|
|
6
|
-
"keywords": [
|
|
7
|
-
"appsmith",
|
|
8
|
-
"custom table",
|
|
9
|
-
"tanstack table"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc -b && vite build",
|
|
16
|
-
"lint": "eslint .",
|
|
17
|
-
"preview": "vite preview",
|
|
18
|
-
"prepublishOnly": "npm run build",
|
|
19
|
-
"storybook": "storybook dev -p 6006",
|
|
20
|
-
"build-storybook": "storybook build"
|
|
21
|
-
},
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/smarts-uz/ts-vite-appsmith-table.git"
|
|
25
|
-
},
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"import": "./dist/app.js",
|
|
30
|
-
"require": "./dist/app.umd.cjs"
|
|
31
|
-
},
|
|
32
|
-
"./dist/styles.css": "./dist/styles.css"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"dist"
|
|
36
|
-
],
|
|
37
|
-
"sideEffects": false,
|
|
38
|
-
"main": "./dist/app.umd.js",
|
|
39
|
-
"module": "./dist/app.es.js",
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
42
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
43
|
-
"@radix-ui/react-hover-card": "^1.1.15",
|
|
44
|
-
"@radix-ui/react-label": "^2.1.8",
|
|
45
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
46
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
47
|
-
"@radix-ui/react-separator": "^1.1.8",
|
|
48
|
-
"@radix-ui/react-slider": "^1.3.6",
|
|
49
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
50
|
-
"@radix-ui/react-switch": "^1.2.6",
|
|
51
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
|
-
"@storybook/react": "^10.0.7",
|
|
53
|
-
"@tailwindcss/vite": "^4.1.17",
|
|
54
|
-
"@tanstack/react-query": "^5.90.7",
|
|
55
|
-
"@tanstack/react-query-devtools": "^5.90.2",
|
|
56
|
-
"@tanstack/react-table": "^8.21.3",
|
|
57
|
-
"autoprefixer": "^10.4.22",
|
|
58
|
-
"class-variance-authority": "^0.7.1",
|
|
59
|
-
"clsx": "^2.1.1",
|
|
60
|
-
"date-fns": "^4.1.0",
|
|
61
|
-
"lodash": "^4.17.21",
|
|
62
|
-
"lucide-react": "^0.553.0",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"react
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"tailwindcss
|
|
69
|
-
"
|
|
70
|
-
"vite-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@storybook/addon-
|
|
78
|
-
"@storybook/addon-
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@
|
|
81
|
-
"@types/
|
|
82
|
-
"@types/
|
|
83
|
-
"@types/react
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@vitest/
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"eslint
|
|
90
|
-
"eslint-plugin-react-
|
|
91
|
-
"eslint-plugin-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"typescript
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@teamprodevs/appsmith-custom-table",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"keywords": [
|
|
7
|
+
"appsmith",
|
|
8
|
+
"custom table",
|
|
9
|
+
"tanstack table"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc -b && vite build",
|
|
16
|
+
"lint": "eslint .",
|
|
17
|
+
"preview": "vite preview",
|
|
18
|
+
"prepublishOnly": "npm run build",
|
|
19
|
+
"storybook": "storybook dev -p 6006",
|
|
20
|
+
"build-storybook": "storybook build"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/smarts-uz/ts-vite-appsmith-table.git"
|
|
25
|
+
},
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/app.js",
|
|
30
|
+
"require": "./dist/app.umd.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./dist/styles.css": "./dist/styles.css"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"main": "./dist/app.umd.js",
|
|
39
|
+
"module": "./dist/app.es.js",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
42
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
43
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
44
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
45
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
46
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
47
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
48
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
49
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
50
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
51
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
|
+
"@storybook/react": "^10.0.7",
|
|
53
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
54
|
+
"@tanstack/react-query": "^5.90.7",
|
|
55
|
+
"@tanstack/react-query-devtools": "^5.90.2",
|
|
56
|
+
"@tanstack/react-table": "^8.21.3",
|
|
57
|
+
"autoprefixer": "^10.4.22",
|
|
58
|
+
"class-variance-authority": "^0.7.1",
|
|
59
|
+
"clsx": "^2.1.1",
|
|
60
|
+
"date-fns": "^4.1.0",
|
|
61
|
+
"lodash": "^4.17.21",
|
|
62
|
+
"lucide-react": "^0.553.0",
|
|
63
|
+
"nuqs": "^2.8.0",
|
|
64
|
+
"postcss": "^8.5.6",
|
|
65
|
+
"react": "18.3.1",
|
|
66
|
+
"react-day-picker": "^9.11.1",
|
|
67
|
+
"tailwind-merge": "^3.3.1",
|
|
68
|
+
"tailwindcss": "3.4.18",
|
|
69
|
+
"tailwindcss-animate": "^1.0.7",
|
|
70
|
+
"vite-plugin-dts": "^4.5.4",
|
|
71
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
72
|
+
"zod": "^4.1.12"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@chromatic-com/storybook": "4.1.2",
|
|
76
|
+
"@eslint/js": "latest",
|
|
77
|
+
"@storybook/addon-a11y": "10.0.7",
|
|
78
|
+
"@storybook/addon-docs": "10.0.7",
|
|
79
|
+
"@storybook/addon-vitest": "10.0.7",
|
|
80
|
+
"@storybook/react-vite": "10.0.7",
|
|
81
|
+
"@types/lodash": "^4.17.20",
|
|
82
|
+
"@types/node": "^24.6.0",
|
|
83
|
+
"@types/react": "^19.1.16",
|
|
84
|
+
"@types/react-dom": "^19.1.9",
|
|
85
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
86
|
+
"@vitest/browser-playwright": "^4.0.9",
|
|
87
|
+
"@vitest/coverage-v8": "^4.0.9",
|
|
88
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
89
|
+
"eslint": "^9.36.0",
|
|
90
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
91
|
+
"eslint-plugin-react-refresh": "^0.4.22",
|
|
92
|
+
"eslint-plugin-storybook": "10.0.7",
|
|
93
|
+
"globals": "^16.4.0",
|
|
94
|
+
"playwright": "^1.56.1",
|
|
95
|
+
"storybook": "10.0.7",
|
|
96
|
+
"tw-animate-css": "^1.4.0",
|
|
97
|
+
"typescript": "~5.9.3",
|
|
98
|
+
"typescript-eslint": "^8.45.0",
|
|
99
|
+
"vite": "^7.1.7",
|
|
100
|
+
"vitest": "^4.0.9"
|
|
101
|
+
},
|
|
102
|
+
"author": "Ramz001",
|
|
103
|
+
"license": "MIT"
|
|
104
|
+
}
|
|
@@ -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-10WkI1tX.js";
|
|
2
|
-
import { g as v, c as C, a as e } from "./index-BlBhv5G5.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-10WkI1tX.js";
|
|
2
|
-
import { g as d, c as f, a as e } from "./index-BlBhv5G5.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
|
-
};
|