@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/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
- translations: default_2.ZodOptional<default_2.ZodRecord<default_2.ZodString, default_2.ZodString>>;
5730
- locale: default_2.ZodOptional<default_2.ZodString>;
5731
- direction: default_2.ZodOptional<default_2.ZodDefault<default_2.ZodEnum<{
5732
- ltr: "ltr";
5733
- rtl: "rtl";
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.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodString, default_2.ZodObject<{
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.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodAny], null>, default_2.core.$ZodFunctionOut>>;
5759
- onModelChange: default_2.ZodOptional<default_2.ZodFunction<default_2.ZodTuple<readonly [default_2.ZodAny], null>, default_2.core.$ZodFunctionOut>>;
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.28",
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-slider": "^1.3.6",
45
- "@radix-ui/react-slot": "^1.2.4",
46
- "@radix-ui/react-tooltip": "^1.2.8",
47
- "@tailwindcss/vite": "^4.1.17",
48
- "@tanstack/react-table": "^8.21.3",
49
- "autoprefixer": "^10.4.22",
50
- "class-variance-authority": "^0.7.1",
51
- "clsx": "^2.1.1",
52
- "date-fns": "^4.1.0",
53
- "lucide-react": "^0.553.0",
54
- "postcss": "^8.5.6",
55
- "react": "18.3.1",
56
- "react-day-picker": "^9.11.1",
57
- "react-intersection-observer": "^10.0.0",
58
- "tailwind-merge": "^3.4.0",
59
- "tailwindcss": "3.4.18",
60
- "tailwindcss-animate": "^1.0.7",
61
- "vite-plugin-dts": "^4.5.4",
62
- "vite-tsconfig-paths": "^5.1.4",
63
- "zod": "^4.1.12"
64
- },
65
- "devDependencies": {
66
- "@chromatic-com/storybook": "4.1.3",
67
- "@eslint/js": "latest",
68
- "@storybook/addon-a11y": "10.0.8",
69
- "@storybook/addon-docs": "10.0.8",
70
- "@storybook/addon-vitest": "10.0.8",
71
- "@storybook/react-vite": "10.0.8",
72
- "@types/lodash": "^4.17.20",
73
- "@types/node": "^24.10.1",
74
- "@types/react": "^19.2.6",
75
- "@types/react-dom": "^19.2.3",
76
- "@vitejs/plugin-react": "^5.1.1",
77
- "@vitest/browser-playwright": "^4.0.13",
78
- "@vitest/coverage-v8": "^4.0.13",
79
- "babel-plugin-react-compiler": "^1.0.0",
80
- "eslint": "^9.39.1",
81
- "eslint-plugin-react-hooks": "^5.2.0",
82
- "eslint-plugin-react-refresh": "^0.4.24",
83
- "eslint-plugin-storybook": "10.0.8",
84
- "globals": "^16.5.0",
85
- "playwright": "^1.56.1",
86
- "storybook": "10.0.8",
87
- "tw-animate-css": "^1.4.0",
88
- "typescript": "~5.9.3",
89
- "typescript-eslint": "^8.47.0",
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
+ }