@ram_28/kf-ai-sdk 1.0.11 → 1.0.12

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.
Files changed (193) hide show
  1. package/README.md +55 -48
  2. package/dist/api/client.d.ts +14 -14
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/datetime.d.ts +5 -5
  5. package/dist/api/datetime.d.ts.map +1 -1
  6. package/dist/api/index.d.ts +1 -1
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/metadata.d.ts +2 -2
  9. package/dist/api/metadata.d.ts.map +1 -1
  10. package/dist/api.cjs +1 -0
  11. package/dist/api.d.ts +4 -0
  12. package/dist/api.d.ts.map +1 -0
  13. package/dist/api.mjs +27 -0
  14. package/dist/api.types.cjs +1 -0
  15. package/dist/api.types.d.ts +4 -0
  16. package/dist/api.types.d.ts.map +1 -0
  17. package/dist/api.types.mjs +1 -0
  18. package/dist/auth/AuthProvider.d.ts +3 -3
  19. package/dist/auth/AuthProvider.d.ts.map +1 -1
  20. package/dist/auth/authClient.d.ts +4 -4
  21. package/dist/auth/authClient.d.ts.map +1 -1
  22. package/dist/auth/authConfig.d.ts +5 -5
  23. package/dist/auth/authConfig.d.ts.map +1 -1
  24. package/dist/auth/index.d.ts +1 -1
  25. package/dist/auth/index.d.ts.map +1 -1
  26. package/dist/auth/types.d.ts +21 -21
  27. package/dist/auth/types.d.ts.map +1 -1
  28. package/dist/auth/useAuth.d.ts +2 -2
  29. package/dist/auth/useAuth.d.ts.map +1 -1
  30. package/dist/auth.cjs +1 -0
  31. package/dist/auth.d.ts +5 -0
  32. package/dist/auth.d.ts.map +1 -0
  33. package/dist/auth.mjs +280 -0
  34. package/dist/auth.types.cjs +1 -0
  35. package/dist/auth.types.d.ts +2 -0
  36. package/dist/auth.types.d.ts.map +1 -0
  37. package/dist/auth.types.mjs +1 -0
  38. package/dist/base-types.d.ts +2 -0
  39. package/dist/base-types.d.ts.map +1 -0
  40. package/dist/client-C15j4O5B.cjs +1 -0
  41. package/dist/client-CfvLiGfP.js +233 -0
  42. package/dist/cn-Dr87sK3i.js +2775 -0
  43. package/dist/cn-mXUIg4vp.cjs +1 -0
  44. package/dist/components/hooks/index.d.ts +3 -3
  45. package/dist/components/hooks/index.d.ts.map +1 -1
  46. package/dist/components/hooks/useFilter/index.d.ts +2 -2
  47. package/dist/components/hooks/useFilter/index.d.ts.map +1 -1
  48. package/dist/components/hooks/useFilter/types.d.ts +19 -31
  49. package/dist/components/hooks/useFilter/types.d.ts.map +1 -1
  50. package/dist/components/hooks/useFilter/useFilter.d.ts +2 -2
  51. package/dist/components/hooks/useFilter/useFilter.d.ts.map +1 -1
  52. package/dist/components/hooks/useForm/apiClient.d.ts +6 -6
  53. package/dist/components/hooks/useForm/apiClient.d.ts.map +1 -1
  54. package/dist/components/hooks/useForm/expressionValidator.utils.d.ts +7 -7
  55. package/dist/components/hooks/useForm/expressionValidator.utils.d.ts.map +1 -1
  56. package/dist/components/hooks/useForm/index.d.ts +5 -5
  57. package/dist/components/hooks/useForm/index.d.ts.map +1 -1
  58. package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts +10 -10
  59. package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts.map +1 -1
  60. package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts +7 -12
  61. package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts.map +1 -1
  62. package/dist/components/hooks/useForm/schemaParser.utils.d.ts +7 -7
  63. package/dist/components/hooks/useForm/schemaParser.utils.d.ts.map +1 -1
  64. package/dist/components/hooks/useForm/types.d.ts +67 -76
  65. package/dist/components/hooks/useForm/types.d.ts.map +1 -1
  66. package/dist/components/hooks/useForm/useForm.d.ts +2 -2
  67. package/dist/components/hooks/useForm/useForm.d.ts.map +1 -1
  68. package/dist/components/hooks/useKanban/apiClient.d.ts +16 -16
  69. package/dist/components/hooks/useKanban/apiClient.d.ts.map +1 -1
  70. package/dist/components/hooks/useKanban/context.d.ts +3 -3
  71. package/dist/components/hooks/useKanban/context.d.ts.map +1 -1
  72. package/dist/components/hooks/useKanban/dragDropManager.d.ts +7 -7
  73. package/dist/components/hooks/useKanban/dragDropManager.d.ts.map +1 -1
  74. package/dist/components/hooks/useKanban/index.d.ts +1 -1
  75. package/dist/components/hooks/useKanban/index.d.ts.map +1 -1
  76. package/dist/components/hooks/useKanban/types.d.ts +65 -67
  77. package/dist/components/hooks/useKanban/types.d.ts.map +1 -1
  78. package/dist/components/hooks/useKanban/useKanban.d.ts +2 -2
  79. package/dist/components/hooks/useKanban/useKanban.d.ts.map +1 -1
  80. package/dist/components/hooks/useTable/index.d.ts +1 -1
  81. package/dist/components/hooks/useTable/index.d.ts.map +1 -1
  82. package/dist/components/hooks/useTable/types.d.ts +10 -10
  83. package/dist/components/hooks/useTable/types.d.ts.map +1 -1
  84. package/dist/components/hooks/useTable/useTable.d.ts +2 -2
  85. package/dist/components/hooks/useTable/useTable.d.ts.map +1 -1
  86. package/dist/filter.cjs +1 -0
  87. package/dist/filter.d.ts +3 -0
  88. package/dist/filter.d.ts.map +1 -0
  89. package/dist/filter.mjs +6 -0
  90. package/dist/filter.types.cjs +1 -0
  91. package/dist/filter.types.d.ts +2 -0
  92. package/dist/filter.types.d.ts.map +1 -0
  93. package/dist/filter.types.mjs +1 -0
  94. package/dist/form.cjs +1 -0
  95. package/dist/form.d.ts +3 -0
  96. package/dist/form.d.ts.map +1 -0
  97. package/dist/form.mjs +1346 -0
  98. package/dist/form.types.cjs +1 -0
  99. package/dist/form.types.d.ts +2 -0
  100. package/dist/form.types.d.ts.map +1 -0
  101. package/dist/form.types.mjs +1 -0
  102. package/dist/jsx-runtime-BYECrxsp.cjs +30 -0
  103. package/dist/jsx-runtime-DGlMoOmv.js +630 -0
  104. package/dist/kanban.cjs +13 -0
  105. package/dist/kanban.d.ts +5 -0
  106. package/dist/kanban.d.ts.map +1 -0
  107. package/dist/kanban.mjs +694 -0
  108. package/dist/kanban.types.cjs +1 -0
  109. package/dist/kanban.types.d.ts +2 -0
  110. package/dist/kanban.types.d.ts.map +1 -0
  111. package/dist/kanban.types.mjs +1 -0
  112. package/dist/kanban.ui.cjs +1 -0
  113. package/dist/kanban.ui.d.ts +2 -0
  114. package/dist/kanban.ui.d.ts.map +1 -0
  115. package/dist/kanban.ui.mjs +104 -0
  116. package/dist/metadata-2FLBsFcf.cjs +1 -0
  117. package/dist/metadata-DBcoDth-.js +43 -0
  118. package/dist/table.cjs +1 -0
  119. package/dist/table.d.ts +2 -0
  120. package/dist/table.d.ts.map +1 -0
  121. package/dist/table.mjs +148 -0
  122. package/dist/table.types.cjs +1 -0
  123. package/dist/table.types.d.ts +2 -0
  124. package/dist/table.types.d.ts.map +1 -0
  125. package/dist/table.types.mjs +1 -0
  126. package/dist/types/base-fields.d.ts +45 -45
  127. package/dist/types/base-fields.d.ts.map +1 -1
  128. package/dist/types/common.d.ts +45 -61
  129. package/dist/types/common.d.ts.map +1 -1
  130. package/dist/types.cjs +1 -0
  131. package/dist/types.mjs +1 -0
  132. package/dist/useFilter-CXFqEHyI.js +129 -0
  133. package/dist/useFilter-D-bCDo6Z.cjs +1 -0
  134. package/dist/utils/formatting.d.ts +4 -4
  135. package/dist/utils/formatting.d.ts.map +1 -1
  136. package/dist/utils.cjs +4 -0
  137. package/dist/utils.d.ts +3 -0
  138. package/dist/utils.d.ts.map +1 -0
  139. package/dist/utils.mjs +105 -0
  140. package/package.json +147 -9
  141. package/sdk/api/client.ts +51 -51
  142. package/sdk/api/datetime.ts +5 -5
  143. package/sdk/api/index.ts +28 -33
  144. package/sdk/api/metadata.ts +4 -4
  145. package/sdk/api.ts +24 -0
  146. package/sdk/api.types.ts +58 -0
  147. package/sdk/auth/AuthProvider.tsx +18 -18
  148. package/sdk/auth/authClient.ts +9 -9
  149. package/sdk/auth/authConfig.ts +9 -9
  150. package/sdk/auth/index.ts +5 -5
  151. package/sdk/auth/types.ts +21 -21
  152. package/sdk/auth/useAuth.ts +2 -2
  153. package/sdk/auth.ts +22 -0
  154. package/sdk/auth.types.ts +28 -0
  155. package/sdk/base-types.ts +45 -0
  156. package/sdk/components/hooks/index.ts +22 -22
  157. package/sdk/components/hooks/useFilter/index.ts +8 -14
  158. package/sdk/components/hooks/useFilter/types.ts +29 -58
  159. package/sdk/components/hooks/useFilter/useFilter.ts +41 -44
  160. package/sdk/components/hooks/useForm/apiClient.ts +8 -8
  161. package/sdk/components/hooks/useForm/expressionValidator.utils.ts +18 -18
  162. package/sdk/components/hooks/useForm/index.ts +24 -24
  163. package/sdk/components/hooks/useForm/optimizedExpressionValidator.utils.ts +22 -22
  164. package/sdk/components/hooks/useForm/ruleClassifier.utils.ts +26 -62
  165. package/sdk/components/hooks/useForm/schemaParser.utils.ts +24 -24
  166. package/sdk/components/hooks/useForm/types.ts +66 -82
  167. package/sdk/components/hooks/useForm/useForm.ts +15 -21
  168. package/sdk/components/hooks/useKanban/apiClient.ts +54 -54
  169. package/sdk/components/hooks/useKanban/context.ts +3 -3
  170. package/sdk/components/hooks/useKanban/dragDropManager.ts +19 -19
  171. package/sdk/components/hooks/useKanban/index.ts +26 -26
  172. package/sdk/components/hooks/useKanban/types.ts +69 -71
  173. package/sdk/components/hooks/useKanban/useKanban.ts +43 -51
  174. package/sdk/components/hooks/useKanban/useKanbanSimple.ts +4 -4
  175. package/sdk/components/hooks/useTable/index.ts +5 -1
  176. package/sdk/components/hooks/useTable/types.ts +10 -10
  177. package/sdk/components/hooks/useTable/useTable.ts +10 -10
  178. package/sdk/filter.ts +13 -0
  179. package/sdk/filter.types.ts +17 -0
  180. package/sdk/form.ts +15 -0
  181. package/sdk/form.types.ts +46 -0
  182. package/sdk/kanban.ts +23 -0
  183. package/sdk/kanban.types.ts +50 -0
  184. package/sdk/kanban.ui.ts +16 -0
  185. package/sdk/table.ts +7 -0
  186. package/sdk/table.types.ts +13 -0
  187. package/sdk/types/base-fields.ts +47 -47
  188. package/sdk/types/common.ts +47 -71
  189. package/sdk/types/index.ts +1 -1
  190. package/sdk/utils/formatting.ts +4 -4
  191. package/sdk/utils.ts +10 -0
  192. package/dist/index.cjs +0 -45
  193. package/dist/index.mjs +0 -6387
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BYECrxsp.cjs"),p=require("react"),o=require("./cn-mXUIg4vp.cjs");function C(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const r=C(p),l=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",a),...e}));l.displayName="Kanban";const i=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",a),...e}));i.displayName="KanbanColumn";const m=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("mb-3 flex items-center justify-between",a),...e}));m.displayName="KanbanColumnHeader";const d=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("h3",{ref:n,className:o.cn("text-sm font-semibold text-gray-700",a),...e}));d.displayName="KanbanColumnTitle";const c=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("flex-1 space-y-2 overflow-y-auto",a),...e}));c.displayName="KanbanColumnContent";const u=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",a),...e}));u.displayName="KanbanCard";const b=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("font-medium text-gray-900 mb-1",a),...e}));b.displayName="KanbanCardTitle";const x=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("text-sm text-gray-600",a),...e}));x.displayName="KanbanCardDescription";const f=r.forwardRef(({className:a,...e},n)=>t.jsxRuntimeExports.jsx("div",{ref:n,className:o.cn("mt-3 pt-3 border-t border-gray-200",a),...e}));f.displayName="KanbanColumnFooter";exports.Kanban=l;exports.KanbanCard=u;exports.KanbanCardDescription=x;exports.KanbanCardTitle=b;exports.KanbanColumn=i;exports.KanbanColumnContent=c;exports.KanbanColumnFooter=f;exports.KanbanColumnHeader=m;exports.KanbanColumnTitle=d;
@@ -0,0 +1,2 @@
1
+ export { Kanban, KanbanColumn, KanbanColumnHeader, KanbanColumnTitle, KanbanColumnContent, KanbanCard, KanbanCardTitle, KanbanCardDescription, KanbanColumnFooter, } from './components/ui/kanban/Kanban';
2
+ //# sourceMappingURL=kanban.ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kanban.ui.d.ts","sourceRoot":"","sources":["../sdk/kanban.ui.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,104 @@
1
+ import { j as o } from "./jsx-runtime-DGlMoOmv.js";
2
+ import * as s from "react";
3
+ import { c as r } from "./cn-Dr87sK3i.js";
4
+ const t = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
5
+ "div",
6
+ {
7
+ ref: n,
8
+ className: r(
9
+ "flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",
10
+ a
11
+ ),
12
+ ...e
13
+ }
14
+ ));
15
+ t.displayName = "Kanban";
16
+ const d = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
17
+ "div",
18
+ {
19
+ ref: n,
20
+ className: r(
21
+ "flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",
22
+ a
23
+ ),
24
+ ...e
25
+ }
26
+ ));
27
+ d.displayName = "KanbanColumn";
28
+ const m = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
29
+ "div",
30
+ {
31
+ ref: n,
32
+ className: r("mb-3 flex items-center justify-between", a),
33
+ ...e
34
+ }
35
+ ));
36
+ m.displayName = "KanbanColumnHeader";
37
+ const l = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
38
+ "h3",
39
+ {
40
+ ref: n,
41
+ className: r("text-sm font-semibold text-gray-700", a),
42
+ ...e
43
+ }
44
+ ));
45
+ l.displayName = "KanbanColumnTitle";
46
+ const i = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
47
+ "div",
48
+ {
49
+ ref: n,
50
+ className: r("flex-1 space-y-2 overflow-y-auto", a),
51
+ ...e
52
+ }
53
+ ));
54
+ i.displayName = "KanbanColumnContent";
55
+ const f = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
56
+ "div",
57
+ {
58
+ ref: n,
59
+ className: r(
60
+ "rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",
61
+ a
62
+ ),
63
+ ...e
64
+ }
65
+ ));
66
+ f.displayName = "KanbanCard";
67
+ const b = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
68
+ "div",
69
+ {
70
+ ref: n,
71
+ className: r("font-medium text-gray-900 mb-1", a),
72
+ ...e
73
+ }
74
+ ));
75
+ b.displayName = "KanbanCardTitle";
76
+ const c = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
77
+ "div",
78
+ {
79
+ ref: n,
80
+ className: r("text-sm text-gray-600", a),
81
+ ...e
82
+ }
83
+ ));
84
+ c.displayName = "KanbanCardDescription";
85
+ const x = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
86
+ "div",
87
+ {
88
+ ref: n,
89
+ className: r("mt-3 pt-3 border-t border-gray-200", a),
90
+ ...e
91
+ }
92
+ ));
93
+ x.displayName = "KanbanColumnFooter";
94
+ export {
95
+ t as Kanban,
96
+ f as KanbanCard,
97
+ c as KanbanCardDescription,
98
+ b as KanbanCardTitle,
99
+ d as KanbanColumn,
100
+ i as KanbanColumnContent,
101
+ x as KanbanColumnFooter,
102
+ m as KanbanColumnHeader,
103
+ l as KanbanColumnTitle
104
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./client-C15j4O5B.cjs");async function c(e){try{const r=o.getApiBaseUrl(),s=o.getDefaultHeaders(),a=await fetch(`${r}/api/app/meta/bdo/${e}`,{method:"GET",headers:s});if(!a.ok)throw new Error(`Failed to fetch schema for ${e}: ${a.statusText}`);const t=await a.json();if(!t||typeof t!="object")throw new Error(`Invalid BDO schema response for ${e}`);return t}catch(r){throw console.error(`Schema fetch error for ${e}:`,r),new Error(`Failed to load BDO schema: ${r instanceof Error?r.message:"Unknown error"}`)}}async function n(e){try{const r=o.getApiBaseUrl(),s=o.getDefaultHeaders(),a=e!=null&&e.Filter||e!=null&&e.Sort?"POST":"GET",t=await fetch(`${r}/api/app/metadata/list`,{method:a,headers:s,...a==="POST"&&e&&{body:JSON.stringify(e)}});if(!t.ok)throw new Error(`Failed to list metadata: ${t.statusText}`);return await t.json()}catch(r){throw console.error("Metadata list error:",r),new Error(`Failed to list metadata: ${r instanceof Error?r.message:"Unknown error"}`)}}exports.getBdoSchema=c;exports.listMetadata=n;
@@ -0,0 +1,43 @@
1
+ import { c as s, g as c } from "./client-CfvLiGfP.js";
2
+ async function l(r) {
3
+ try {
4
+ const e = s(), o = c(), a = await fetch(`${e}/api/app/meta/bdo/${r}`, {
5
+ method: "GET",
6
+ headers: o
7
+ });
8
+ if (!a.ok)
9
+ throw new Error(
10
+ `Failed to fetch schema for ${r}: ${a.statusText}`
11
+ );
12
+ const t = await a.json();
13
+ if (!t || typeof t != "object")
14
+ throw new Error(`Invalid BDO schema response for ${r}`);
15
+ return t;
16
+ } catch (e) {
17
+ throw console.error(`Schema fetch error for ${r}:`, e), new Error(
18
+ `Failed to load BDO schema: ${e instanceof Error ? e.message : "Unknown error"}`
19
+ );
20
+ }
21
+ }
22
+ async function f(r) {
23
+ try {
24
+ const e = s(), o = c(), a = r != null && r.Filter || r != null && r.Sort ? "POST" : "GET", t = await fetch(`${e}/api/app/metadata/list`, {
25
+ method: a,
26
+ headers: o,
27
+ ...a === "POST" && r && {
28
+ body: JSON.stringify(r)
29
+ }
30
+ });
31
+ if (!t.ok)
32
+ throw new Error(`Failed to list metadata: ${t.statusText}`);
33
+ return await t.json();
34
+ } catch (e) {
35
+ throw console.error("Metadata list error:", e), new Error(
36
+ `Failed to list metadata: ${e instanceof Error ? e.message : "Unknown error"}`
37
+ );
38
+ }
39
+ }
40
+ export {
41
+ l as g,
42
+ f as l
43
+ };
package/dist/table.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),O=require("@tanstack/react-query"),Q=require("./client-C15j4O5B.cjs"),_=require("./useFilter-D-bCDo6Z.cjs");function $(t){var N,m,P,k,z,T,F,M,w,E;const[o,p]=a.useState({query:""}),[n,y]=a.useState({field:((m=(N=t.initialState)==null?void 0:N.sorting)==null?void 0:m.field)||null,direction:((k=(P=t.initialState)==null?void 0:P.sorting)==null?void 0:k.direction)||null}),[i,c]=a.useState({pageNo:((T=(z=t.initialState)==null?void 0:z.pagination)==null?void 0:T.pageNo)||1,pageSize:((M=(F=t.initialState)==null?void 0:F.pagination)==null?void 0:M.pageSize)||10}),s=_.useFilter({initialConditions:(w=t.initialState)==null?void 0:w.filters,initialOperator:((E=t.initialState)==null?void 0:E.filterOperator)||"And"}),l=a.useMemo(()=>{const e={};return o.query&&(e.Search=o.query),s.payload&&(e.Filter=s.payload),e},[o.query,s.payload]),b=a.useMemo(()=>{const e={...l};return n.field&&n.direction&&(e.Sort=[{[String(n.field)]:n.direction==="asc"?"ASC":"DESC"}]),t.enablePagination&&(e.Page=i.pageNo,e.PageSize=i.pageSize),e},[l,n,i,t.enablePagination]),{data:u,isLoading:L,isFetching:R,error:x,refetch:q}=O.useQuery({queryKey:["table",t.source,b],queryFn:async()=>{try{const e=await Q.api(t.source).list(b);return t.onSuccess&&t.onSuccess(e.Data),e}catch(e){throw t.onError&&t.onError(e),e}},staleTime:0,gcTime:0}),{data:g,isLoading:A,isFetching:D,error:G,refetch:C}=O.useQuery({queryKey:["table-count",t.source,l],queryFn:async()=>{try{return await Q.api(t.source).count(l)}catch(e){throw t.onError&&t.onError(e),e}},staleTime:0,gcTime:0}),K=a.useMemo(()=>(u==null?void 0:u.Data)||[],[u]),S=a.useMemo(()=>(g==null?void 0:g.Count)||0,[g]),d=a.useMemo(()=>Math.ceil(S/i.pageSize),[S,i.pageSize]),j=a.useCallback(e=>{y(r=>{if(r.field===e){if(r.direction==="asc")return{field:e,direction:"desc"};if(r.direction==="desc")return{field:null,direction:null}}return{field:e,direction:"asc"}})},[]),I=a.useCallback(()=>{y({field:null,direction:null})},[]),B=a.useCallback((e,r)=>{y({field:e,direction:r})},[]),H=a.useCallback(e=>{p({query:e}),c(r=>({...r,pageNo:1}))},[]),J=a.useCallback(()=>{p({query:""})},[]),f=i.pageNo<d,h=i.pageNo>1,U=a.useCallback(()=>{f&&c(e=>({...e,pageNo:e.pageNo+1}))},[f]),V=a.useCallback(()=>{h&&c(e=>({...e,pageNo:e.pageNo-1}))},[h]),W=a.useCallback(e=>{const r=Math.max(1,Math.min(e,d));c(Z=>({...Z,pageNo:r}))},[d]),X=a.useCallback(e=>{c(r=>({...r,pageSize:e,pageNo:1}))},[]),Y=a.useCallback(async()=>{const[e]=await Promise.all([q(),C()]);return e.data||{Data:[]}},[q,C]);return{rows:K,totalItems:S,isLoading:L||A,isFetching:R||D,error:x||G,search:{query:o.query,setQuery:H,clear:J},sort:{field:n.field,direction:n.direction,toggle:j,clear:I,set:B},filter:s,pagination:{currentPage:i.pageNo,pageSize:i.pageSize,totalPages:d,totalItems:S,canGoNext:f,canGoPrevious:h,goToNext:U,goToPrevious:V,goToPage:W,setPageSize:X},refetch:Y}}exports.useTable=$;
@@ -0,0 +1,2 @@
1
+ export { useTable } from './components/hooks/useTable/useTable';
2
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../sdk/table.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC"}
package/dist/table.mjs ADDED
@@ -0,0 +1,148 @@
1
+ import { useState as m, useMemo as c, useCallback as i } from "react";
2
+ import { useQuery as A } from "@tanstack/react-query";
3
+ import { a as D } from "./client-CfvLiGfP.js";
4
+ import { u as v } from "./useFilter-CXFqEHyI.js";
5
+ function ae(t) {
6
+ var F, T, C, b, w, E, x, L, M, O;
7
+ const [s, N] = m({
8
+ query: ""
9
+ }), [n, y] = m({
10
+ field: ((T = (F = t.initialState) == null ? void 0 : F.sorting) == null ? void 0 : T.field) || null,
11
+ direction: ((b = (C = t.initialState) == null ? void 0 : C.sorting) == null ? void 0 : b.direction) || null
12
+ }), [a, o] = m({
13
+ pageNo: ((E = (w = t.initialState) == null ? void 0 : w.pagination) == null ? void 0 : E.pageNo) || 1,
14
+ pageSize: ((L = (x = t.initialState) == null ? void 0 : x.pagination) == null ? void 0 : L.pageSize) || 10
15
+ }), l = v({
16
+ initialConditions: (M = t.initialState) == null ? void 0 : M.filters,
17
+ initialOperator: ((O = t.initialState) == null ? void 0 : O.filterOperator) || "And"
18
+ }), u = c(() => {
19
+ const e = {};
20
+ return s.query && (e.Search = s.query), l.payload && (e.Filter = l.payload), e;
21
+ }, [s.query, l.payload]), q = c(() => {
22
+ const e = { ...u };
23
+ return n.field && n.direction && (e.Sort = [
24
+ {
25
+ [String(n.field)]: n.direction === "asc" ? "ASC" : "DESC"
26
+ }
27
+ ]), t.enablePagination && (e.Page = a.pageNo, e.PageSize = a.pageSize), e;
28
+ }, [u, n, a, t.enablePagination]), {
29
+ data: g,
30
+ isLoading: Q,
31
+ isFetching: R,
32
+ error: G,
33
+ refetch: P
34
+ } = A({
35
+ queryKey: ["table", t.source, q],
36
+ queryFn: async () => {
37
+ try {
38
+ const e = await D(t.source).list(q);
39
+ return t.onSuccess && t.onSuccess(e.Data), e;
40
+ } catch (e) {
41
+ throw t.onError && t.onError(e), e;
42
+ }
43
+ },
44
+ staleTime: 0,
45
+ gcTime: 0
46
+ }), {
47
+ data: f,
48
+ isLoading: K,
49
+ isFetching: k,
50
+ error: I,
51
+ refetch: z
52
+ } = A({
53
+ queryKey: ["table-count", t.source, u],
54
+ queryFn: async () => {
55
+ try {
56
+ return await D(t.source).count(u);
57
+ } catch (e) {
58
+ throw t.onError && t.onError(e), e;
59
+ }
60
+ },
61
+ staleTime: 0,
62
+ gcTime: 0
63
+ }), j = c(() => (g == null ? void 0 : g.Data) || [], [g]), d = c(() => (f == null ? void 0 : f.Count) || 0, [f]), S = c(() => Math.ceil(d / a.pageSize), [d, a.pageSize]), B = i((e) => {
64
+ y((r) => {
65
+ if (r.field === e) {
66
+ if (r.direction === "asc")
67
+ return { field: e, direction: "desc" };
68
+ if (r.direction === "desc")
69
+ return { field: null, direction: null };
70
+ }
71
+ return { field: e, direction: "asc" };
72
+ });
73
+ }, []), H = i(() => {
74
+ y({ field: null, direction: null });
75
+ }, []), J = i(
76
+ (e, r) => {
77
+ y({ field: e, direction: r });
78
+ },
79
+ []
80
+ ), U = i((e) => {
81
+ N({ query: e }), o((r) => ({ ...r, pageNo: 1 }));
82
+ }, []), V = i(() => {
83
+ N({ query: "" });
84
+ }, []), h = a.pageNo < S, p = a.pageNo > 1, W = i(() => {
85
+ h && o((e) => ({ ...e, pageNo: e.pageNo + 1 }));
86
+ }, [h]), X = i(() => {
87
+ p && o((e) => ({ ...e, pageNo: e.pageNo - 1 }));
88
+ }, [p]), Y = i(
89
+ (e) => {
90
+ const r = Math.max(1, Math.min(e, S));
91
+ o(($) => ({ ...$, pageNo: r }));
92
+ },
93
+ [S]
94
+ ), Z = i((e) => {
95
+ o((r) => ({
96
+ ...r,
97
+ pageSize: e,
98
+ pageNo: 1
99
+ }));
100
+ }, []), _ = i(async () => {
101
+ const [e] = await Promise.all([P(), z()]);
102
+ return e.data || { Data: [] };
103
+ }, [P, z]);
104
+ return {
105
+ // Data
106
+ rows: j,
107
+ totalItems: d,
108
+ // Loading States
109
+ isLoading: Q || K,
110
+ isFetching: R || k,
111
+ // Error Handling
112
+ error: G || I,
113
+ // Search (Flat Access)
114
+ search: {
115
+ query: s.query,
116
+ setQuery: U,
117
+ clear: V
118
+ },
119
+ // Sorting (Flat Access)
120
+ sort: {
121
+ field: n.field,
122
+ direction: n.direction,
123
+ toggle: B,
124
+ clear: H,
125
+ set: J
126
+ },
127
+ // Filter (Simplified chainable API)
128
+ filter: l,
129
+ // Pagination (Flat Access)
130
+ pagination: {
131
+ currentPage: a.pageNo,
132
+ pageSize: a.pageSize,
133
+ totalPages: S,
134
+ totalItems: d,
135
+ canGoNext: h,
136
+ canGoPrevious: p,
137
+ goToNext: W,
138
+ goToPrevious: X,
139
+ goToPage: Y,
140
+ setPageSize: Z
141
+ },
142
+ // Operations
143
+ refetch: _
144
+ };
145
+ }
146
+ export {
147
+ ae as useTable
148
+ };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ export type { UseTableOptionsType, UseTableReturnType, ColumnDefinitionType, } from './components/hooks/useTable/types';
2
+ //# sourceMappingURL=table.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.types.d.ts","sourceRoot":"","sources":["../sdk/table.types.ts"],"names":[],"mappings":"AAKA,YAAY,EAEV,mBAAmB,EACnB,kBAAkB,EAGlB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1 @@
1
+
@@ -3,7 +3,7 @@
3
3
  * Resolves to: string
4
4
  * Use this for all ID-type fields (user IDs, order IDs, etc.)
5
5
  */
6
- export type IdField = string;
6
+ export type IdFieldType = string;
7
7
  /**
8
8
  * String field with optional literal type constraint and length limits
9
9
  * @template T - Literal string type (e.g., 'pending' | 'completed')
@@ -13,11 +13,11 @@ export type IdField = string;
13
13
  * Storage: VARCHAR in database
14
14
  *
15
15
  * @example
16
- * StringField // => string
17
- * StringField<'active' | 'inactive'> // => 'active' | 'inactive'
18
- * StringField<string, 1, 100> // => string with length constraints
16
+ * StringFieldType // => string
17
+ * StringFieldType<'active' | 'inactive'> // => 'active' | 'inactive'
18
+ * StringFieldType<string, 1, 100> // => string with length constraints
19
19
  */
20
- export type StringField<T extends string = string, _MinLength extends number = never, _MaxLength extends number = never> = T;
20
+ export type StringFieldType<T extends string = string, _MinLength extends number = never, _MaxLength extends number = never> = T;
21
21
  /**
22
22
  * Multi-line text field for longer content
23
23
  * Resolves to: string
@@ -25,9 +25,9 @@ export type StringField<T extends string = string, _MinLength extends number = n
25
25
  * Use this for descriptions, comments, rich text content
26
26
  *
27
27
  * @example
28
- * TextAreaField // => string (multi-line)
28
+ * TextAreaFieldType // => string (multi-line)
29
29
  */
30
- export type TextAreaField = string;
30
+ export type TextAreaFieldType = string;
31
31
  /**
32
32
  * Numeric field with optional precision constraints
33
33
  * @template Precision - Number of decimal places (optional)
@@ -36,10 +36,10 @@ export type TextAreaField = string;
36
36
  * Use this for quantities, measurements, calculations
37
37
  *
38
38
  * @example
39
- * NumberField // => number
40
- * NumberField<2> // => number with 2 decimal places
39
+ * NumberFieldType // => number
40
+ * NumberFieldType<2> // => number with 2 decimal places
41
41
  */
42
- export type NumberField<_Precision extends number = never> = number;
42
+ export type NumberFieldType<_Precision extends number = never> = number;
43
43
  /**
44
44
  * Large integer field for big numbers
45
45
  * Resolves to: number
@@ -47,16 +47,16 @@ export type NumberField<_Precision extends number = never> = number;
47
47
  * Use this for large counters, timestamps, file sizes
48
48
  *
49
49
  * @example
50
- * LongField // => number (large integer)
50
+ * LongFieldType // => number (large integer)
51
51
  */
52
- export type LongField = number;
52
+ export type LongFieldType = number;
53
53
  /**
54
54
  * Boolean field
55
55
  * Resolves to: boolean
56
56
  * Storage: BOOLEAN in database
57
57
  * Use this for true/false values, flags, toggles
58
58
  */
59
- export type BooleanField = boolean;
59
+ export type BooleanFieldType = boolean;
60
60
  /**
61
61
  * Date field (date only, no time)
62
62
  * Resolves to: Date
@@ -64,9 +64,9 @@ export type BooleanField = boolean;
64
64
  * Use this for birth dates, due dates, calendar events
65
65
  *
66
66
  * @example
67
- * DateField // => Date (date only)
67
+ * DateFieldType // => Date (date only)
68
68
  */
69
- export type DateField = Date;
69
+ export type DateFieldType = Date;
70
70
  /**
71
71
  * DateTime field (date and time)
72
72
  * Resolves to: Date
@@ -74,47 +74,47 @@ export type DateField = Date;
74
74
  * Use this for created_at, updated_at, event timestamps
75
75
  *
76
76
  * @example
77
- * DateTimeField // => Date (with time)
77
+ * DateTimeFieldType // => Date (with time)
78
78
  */
79
- export type DateTimeField = Date;
79
+ export type DateTimeFieldType = Date;
80
80
  /**
81
81
  * Currency field supporting multiple value formats
82
- * Resolves to: CurrencyValue
82
+ * Resolves to: CurrencyValueType
83
83
  * Storage: JSON/VARCHAR in database
84
84
  * Use this for prices, monetary amounts, financial data
85
85
  *
86
86
  * @example
87
- * CurrencyField // => {value: number, currency: string} | string
87
+ * CurrencyFieldType // => {value: number, currency: string} | string
88
88
  */
89
- export type CurrencyField = CurrencyValue;
89
+ export type CurrencyFieldType = CurrencyValueType;
90
90
  /**
91
91
  * Currency value format - supports both object and string representations
92
92
  */
93
- export type CurrencyValue = {
93
+ export type CurrencyValueType = {
94
94
  value: number;
95
95
  currency: string;
96
96
  } | string;
97
97
  /**
98
98
  * JSON field for structured data
99
99
  * @template T - Expected JSON structure (optional)
100
- * Resolves to: T or JSONValue
100
+ * Resolves to: T or JSONValueType
101
101
  * Storage: JSON/TEXT in database
102
102
  * Use this for configurations, metadata, flexible schemas
103
103
  *
104
104
  * @example
105
- * JSONField // => JSONValue (any valid JSON)
106
- * JSONField<{settings: {theme: string}}> // => {settings: {theme: string}}
105
+ * JSONFieldType // => JSONValueType (any valid JSON)
106
+ * JSONFieldType<{settings: {theme: string}}> // => {settings: {theme: string}}
107
107
  */
108
- export type JSONField<T = JSONValue> = T;
109
- export type ReferenceField = string;
108
+ export type JSONFieldType<T = JSONValueType> = T;
109
+ export type ReferenceFieldType = string;
110
110
  /**
111
111
  * Valid JSON value types
112
112
  */
113
- export type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
114
- export interface JSONObject {
115
- [key: string]: JSONValue;
113
+ export type JSONValueType = string | number | boolean | null | JSONObjectType | JSONArrayType;
114
+ export interface JSONObjectType {
115
+ [key: string]: JSONValueType;
116
116
  }
117
- export interface JSONArray extends Array<JSONValue> {
117
+ export interface JSONArrayType extends Array<JSONValueType> {
118
118
  }
119
119
  /**
120
120
  * Select field for single choice from predefined options
@@ -124,9 +124,9 @@ export interface JSONArray extends Array<JSONValue> {
124
124
  * Use this for status fields, categories, enum-like values
125
125
  *
126
126
  * @example
127
- * SelectField<'active' | 'inactive' | 'pending'> // => 'active' | 'inactive' | 'pending'
127
+ * SelectFieldType<'active' | 'inactive' | 'pending'> // => 'active' | 'inactive' | 'pending'
128
128
  */
129
- export type SelectField<T extends string> = T;
129
+ export type SelectFieldType<T extends string> = T;
130
130
  /**
131
131
  * Lookup field for references to other records
132
132
  * @template T - Type of the referenced record ID (defaults to string)
@@ -135,10 +135,10 @@ export type SelectField<T extends string> = T;
135
135
  * Use this for foreign keys, relationships, references
136
136
  *
137
137
  * @example
138
- * LookupField // => string (referenced record ID)
139
- * LookupField<IdField> // => string (typed as IdField)
138
+ * LookupFieldType // => string (referenced record ID)
139
+ * LookupFieldType<IdFieldType> // => string (typed as IdFieldType)
140
140
  */
141
- export type LookupField<T extends string = string> = T;
141
+ export type LookupFieldType<T extends string = string> = T;
142
142
  /**
143
143
  * Array field with MultiValue support
144
144
  * @template T - Type of array elements
@@ -147,11 +147,11 @@ export type LookupField<T extends string = string> = T;
147
147
  * Use this for tags, categories, multiple selections
148
148
  *
149
149
  * @example
150
- * ArrayField<string> // => string[]
151
- * ArrayField<IdField> // => string[]
152
- * ArrayField<SelectField<'tag1' | 'tag2'>> // => ('tag1' | 'tag2')[]
150
+ * ArrayFieldType<string> // => string[]
151
+ * ArrayFieldType<IdFieldType> // => string[]
152
+ * ArrayFieldType<SelectFieldType<'tag1' | 'tag2'>> // => ('tag1' | 'tag2')[]
153
153
  */
154
- export type ArrayField<T> = T[];
154
+ export type ArrayFieldType<T> = T[];
155
155
  /**
156
156
  * Nested object field
157
157
  * @template T - Shape of nested object
@@ -160,9 +160,9 @@ export type ArrayField<T> = T[];
160
160
  * Use this for complex nested structures, embedded documents
161
161
  *
162
162
  * @example
163
- * ObjectField<{ name: string; age: number }> // => { name: string; age: number }
163
+ * ObjectFieldType<{ name: string; age: number }> // => { name: string; age: number }
164
164
  */
165
- export type ObjectField<T extends Record<string, any>> = T;
165
+ export type ObjectFieldType<T extends Record<string, any>> = T;
166
166
  /**
167
167
  * Optional field wrapper
168
168
  * @template T - Base field type
@@ -170,13 +170,13 @@ export type ObjectField<T extends Record<string, any>> = T;
170
170
  * Use this for fields that may not have values
171
171
  *
172
172
  * @example
173
- * OptionalField<StringField> // => string | undefined
174
- * OptionalField<NumberField> // => number | undefined
173
+ * OptionalFieldType<StringFieldType> // => string | undefined
174
+ * OptionalFieldType<NumberFieldType> // => number | undefined
175
175
  */
176
- export type OptionalField<T> = T | undefined;
176
+ export type OptionalFieldType<T> = T | undefined;
177
177
  /**
178
178
  * Utility type to extract the base type from a field type
179
179
  * Useful for runtime validation and type guards
180
180
  */
181
- export type ExtractFieldType<T> = T extends OptionalField<infer U> ? U : T;
181
+ export type ExtractFieldTypeType<T> = T extends OptionalFieldType<infer U> ? U : T;
182
182
  //# sourceMappingURL=base-fields.d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