@teamprodevs/appsmith-custom-table 0.4.28 → 1.0.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/dist/app.css +1 -1
- package/dist/app.js +14117 -14120
- package/dist/app.umd.cjs +17 -17
- package/dist/index.d.ts +31 -16
- package/package.json +89 -99
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as default_2 } from 'zod';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { SortDirection } from '@tanstack/react-table';
|
|
4
3
|
|
|
5
4
|
export declare function ClientTable(props: TableModel): JSX.Element;
|
|
6
5
|
|
|
@@ -16,12 +15,28 @@ declare enum PinDirection {
|
|
|
16
15
|
right = "right"
|
|
17
16
|
}
|
|
18
17
|
|
|
18
|
+
declare enum RowStyleOperator {
|
|
19
|
+
GT = ">",
|
|
20
|
+
LT = "<",
|
|
21
|
+
GTE = ">=",
|
|
22
|
+
LTE = "<=",
|
|
23
|
+
EQ = "===",
|
|
24
|
+
EQ_LOOSE = "==",
|
|
25
|
+
NEQ = "!==",
|
|
26
|
+
NEQ_LOOSE = "!=",
|
|
27
|
+
CONTAINS = "contains",
|
|
28
|
+
STARTS_WITH = "startsWith",
|
|
29
|
+
ENDS_WITH = "endsWith",
|
|
30
|
+
IS_EMPTY = "isEmpty",
|
|
31
|
+
IS_NOT_EMPTY = "isNotEmpty"
|
|
32
|
+
}
|
|
33
|
+
|
|
19
34
|
declare type TableModel = default_2.infer<typeof TableModelSchema>;
|
|
20
35
|
|
|
21
36
|
declare const TableModelSchema: default_2.ZodObject<{
|
|
22
37
|
tableData: default_2.ZodDefault<default_2.ZodArray<default_2.ZodAny>>;
|
|
23
38
|
limit: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodNumber>>;
|
|
24
|
-
max_count: default_2.ZodNumber
|
|
39
|
+
max_count: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodNumber>>;
|
|
25
40
|
schema: default_2.ZodRecord<default_2.ZodString, default_2.ZodObject<{
|
|
26
41
|
type: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<{
|
|
27
42
|
text: "text";
|
|
@@ -31,9 +46,8 @@ declare const TableModelSchema: default_2.ZodObject<{
|
|
|
31
46
|
datetime: "datetime";
|
|
32
47
|
currency: "currency";
|
|
33
48
|
}>>>;
|
|
34
|
-
sort: default_2.ZodOptional<default_2.ZodBoolean>;
|
|
35
49
|
size: default_2.ZodOptional<default_2.ZodEnum<typeof ItemSize>>;
|
|
36
|
-
title: default_2.ZodOptional<default_2.ZodString
|
|
50
|
+
title: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
37
51
|
className: default_2.ZodOptional<default_2.ZodString>;
|
|
38
52
|
}, default_2.core.$strip>>;
|
|
39
53
|
rowActions: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
|
|
@@ -5726,12 +5740,15 @@ declare const TableModelSchema: default_2.ZodObject<{
|
|
|
5726
5740
|
ghost: "ghost";
|
|
5727
5741
|
}>>;
|
|
5728
5742
|
}, default_2.core.$strip>>;
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5743
|
+
conditionalRowStyles: default_2.ZodOptional<default_2.ZodArray<default_2.ZodObject<{
|
|
5744
|
+
column: default_2.ZodString;
|
|
5745
|
+
operator: default_2.ZodEnum<typeof RowStyleOperator>;
|
|
5746
|
+
value: default_2.ZodUnion<readonly [default_2.ZodString, default_2.ZodNumber, default_2.ZodUndefined, default_2.ZodBoolean, default_2.ZodObject<{
|
|
5747
|
+
columnRef: default_2.ZodString;
|
|
5748
|
+
}, default_2.core.$strip>]>;
|
|
5749
|
+
className: default_2.ZodString;
|
|
5750
|
+
}, default_2.core.$strip>>>;
|
|
5751
|
+
locale: default_2.ZodString;
|
|
5735
5752
|
styles: default_2.ZodOptional<default_2.ZodObject<{
|
|
5736
5753
|
head: default_2.ZodOptional<default_2.ZodObject<{
|
|
5737
5754
|
body: default_2.ZodOptional<default_2.ZodString>;
|
|
@@ -5747,16 +5764,14 @@ declare const TableModelSchema: default_2.ZodObject<{
|
|
|
5747
5764
|
table: default_2.ZodOptional<default_2.ZodString>;
|
|
5748
5765
|
variables: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
|
|
5749
5766
|
}, default_2.core.$strip>>;
|
|
5750
|
-
triggerEvent: default_2.
|
|
5767
|
+
triggerEvent: default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodString, default_2.ZodObject<{
|
|
5751
5768
|
row: default_2.ZodOptional<default_2.ZodAny>;
|
|
5752
|
-
sortCol: default_2.ZodOptional<default_2.ZodString>;
|
|
5753
|
-
sortOption: default_2.ZodOptional<default_2.ZodCustom<SortDirection, SortDirection>>;
|
|
5754
5769
|
page: default_2.ZodOptional<default_2.ZodNumber>;
|
|
5755
5770
|
limit: default_2.ZodOptional<default_2.ZodNumber>;
|
|
5756
5771
|
url: default_2.ZodOptional<default_2.ZodURL>;
|
|
5757
|
-
}, default_2.core.$strip>], null>, default_2.core.$ZodFunctionOut
|
|
5758
|
-
updateModel: default_2.
|
|
5759
|
-
onModelChange: default_2.
|
|
5772
|
+
}, default_2.core.$strip>], null>, default_2.core.$ZodFunctionOut>;
|
|
5773
|
+
updateModel: default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodAny], null>, default_2.core.$ZodFunctionOut>;
|
|
5774
|
+
onModelChange: default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodAny], null>, default_2.core.$ZodFunctionOut>;
|
|
5760
5775
|
}, default_2.core.$strip>;
|
|
5761
5776
|
|
|
5762
5777
|
export { }
|
package/package.json
CHANGED
|
@@ -1,99 +1,89 @@
|
|
|
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
|
-
"@faker-js/faker": "^10.1.0",
|
|
42
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
43
|
-
"@radix-ui/react-popover": "^1.1.15",
|
|
44
|
-
"@radix-ui/react-
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"vite": "^7.2.4",
|
|
91
|
-
"vitest": "^4.0.13"
|
|
92
|
-
},
|
|
93
|
-
"resolutions": {
|
|
94
|
-
"react-dom": "18.3.1",
|
|
95
|
-
"react": "18.3.1"
|
|
96
|
-
},
|
|
97
|
-
"author": "Ramz001",
|
|
98
|
-
"license": "MIT"
|
|
99
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@teamprodevs/appsmith-custom-table",
|
|
3
|
+
"version": "1.0.1",
|
|
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
|
+
"@faker-js/faker": "^10.1.0",
|
|
42
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
43
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
44
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
45
|
+
"@tanstack/react-table": "^8.21.3",
|
|
46
|
+
"autoprefixer": "^10.4.22",
|
|
47
|
+
"class-variance-authority": "^0.7.1",
|
|
48
|
+
"clsx": "^2.1.1",
|
|
49
|
+
"lucide-react": "^0.553.0",
|
|
50
|
+
"postcss": "^8.5.6",
|
|
51
|
+
"react": "18.3.1",
|
|
52
|
+
"react-intersection-observer": "^10.0.0",
|
|
53
|
+
"tailwind-merge": "^3.4.0",
|
|
54
|
+
"tailwindcss": "3.4.18",
|
|
55
|
+
"tailwindcss-animate": "^1.0.7",
|
|
56
|
+
"vite-plugin-dts": "^4.5.4",
|
|
57
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
58
|
+
"zod": "^4.1.12"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@chromatic-com/storybook": "4.1.3",
|
|
62
|
+
"@eslint/js": "latest",
|
|
63
|
+
"@storybook/addon-a11y": "10.0.8",
|
|
64
|
+
"@storybook/addon-docs": "10.0.8",
|
|
65
|
+
"@storybook/addon-vitest": "10.0.8",
|
|
66
|
+
"@storybook/react-vite": "10.0.8",
|
|
67
|
+
"@types/node": "^24.10.1",
|
|
68
|
+
"@types/react": "^19.2.6",
|
|
69
|
+
"@types/react-dom": "^19.2.3",
|
|
70
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
71
|
+
"@vitest/browser-playwright": "^4.0.13",
|
|
72
|
+
"eslint": "^9.39.1",
|
|
73
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
75
|
+
"globals": "^16.5.0",
|
|
76
|
+
"playwright": "^1.56.1",
|
|
77
|
+
"storybook": "10.0.8",
|
|
78
|
+
"typescript": "~5.9.3",
|
|
79
|
+
"typescript-eslint": "^8.47.0",
|
|
80
|
+
"vite": "^7.2.4",
|
|
81
|
+
"vitest": "^4.0.13"
|
|
82
|
+
},
|
|
83
|
+
"resolutions": {
|
|
84
|
+
"react-dom": "18.3.1",
|
|
85
|
+
"react": "18.3.1"
|
|
86
|
+
},
|
|
87
|
+
"author": "Ramz001",
|
|
88
|
+
"license": "MIT"
|
|
89
|
+
}
|