@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.
- package/README.md +55 -48
- package/dist/api/client.d.ts +14 -14
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/datetime.d.ts +5 -5
- package/dist/api/datetime.d.ts.map +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/metadata.d.ts +2 -2
- package/dist/api/metadata.d.ts.map +1 -1
- package/dist/api.cjs +1 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.mjs +27 -0
- package/dist/api.types.cjs +1 -0
- package/dist/api.types.d.ts +4 -0
- package/dist/api.types.d.ts.map +1 -0
- package/dist/api.types.mjs +1 -0
- package/dist/auth/AuthProvider.d.ts +3 -3
- package/dist/auth/AuthProvider.d.ts.map +1 -1
- package/dist/auth/authClient.d.ts +4 -4
- package/dist/auth/authClient.d.ts.map +1 -1
- package/dist/auth/authConfig.d.ts +5 -5
- package/dist/auth/authConfig.d.ts.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/types.d.ts +21 -21
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/useAuth.d.ts +2 -2
- package/dist/auth/useAuth.d.ts.map +1 -1
- package/dist/auth.cjs +1 -0
- package/dist/auth.d.ts +5 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.mjs +280 -0
- package/dist/auth.types.cjs +1 -0
- package/dist/auth.types.d.ts +2 -0
- package/dist/auth.types.d.ts.map +1 -0
- package/dist/auth.types.mjs +1 -0
- package/dist/base-types.d.ts +2 -0
- package/dist/base-types.d.ts.map +1 -0
- package/dist/client-C15j4O5B.cjs +1 -0
- package/dist/client-CfvLiGfP.js +233 -0
- package/dist/cn-Dr87sK3i.js +2775 -0
- package/dist/cn-mXUIg4vp.cjs +1 -0
- package/dist/components/hooks/index.d.ts +3 -3
- package/dist/components/hooks/index.d.ts.map +1 -1
- package/dist/components/hooks/useFilter/index.d.ts +2 -2
- package/dist/components/hooks/useFilter/index.d.ts.map +1 -1
- package/dist/components/hooks/useFilter/types.d.ts +19 -31
- package/dist/components/hooks/useFilter/types.d.ts.map +1 -1
- package/dist/components/hooks/useFilter/useFilter.d.ts +2 -2
- package/dist/components/hooks/useFilter/useFilter.d.ts.map +1 -1
- package/dist/components/hooks/useForm/apiClient.d.ts +6 -6
- package/dist/components/hooks/useForm/apiClient.d.ts.map +1 -1
- package/dist/components/hooks/useForm/expressionValidator.utils.d.ts +7 -7
- package/dist/components/hooks/useForm/expressionValidator.utils.d.ts.map +1 -1
- package/dist/components/hooks/useForm/index.d.ts +5 -5
- package/dist/components/hooks/useForm/index.d.ts.map +1 -1
- package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts +10 -10
- package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts.map +1 -1
- package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts +7 -12
- package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts.map +1 -1
- package/dist/components/hooks/useForm/schemaParser.utils.d.ts +7 -7
- package/dist/components/hooks/useForm/schemaParser.utils.d.ts.map +1 -1
- package/dist/components/hooks/useForm/types.d.ts +67 -76
- package/dist/components/hooks/useForm/types.d.ts.map +1 -1
- package/dist/components/hooks/useForm/useForm.d.ts +2 -2
- package/dist/components/hooks/useForm/useForm.d.ts.map +1 -1
- package/dist/components/hooks/useKanban/apiClient.d.ts +16 -16
- package/dist/components/hooks/useKanban/apiClient.d.ts.map +1 -1
- package/dist/components/hooks/useKanban/context.d.ts +3 -3
- package/dist/components/hooks/useKanban/context.d.ts.map +1 -1
- package/dist/components/hooks/useKanban/dragDropManager.d.ts +7 -7
- package/dist/components/hooks/useKanban/dragDropManager.d.ts.map +1 -1
- package/dist/components/hooks/useKanban/index.d.ts +1 -1
- package/dist/components/hooks/useKanban/index.d.ts.map +1 -1
- package/dist/components/hooks/useKanban/types.d.ts +65 -67
- package/dist/components/hooks/useKanban/types.d.ts.map +1 -1
- package/dist/components/hooks/useKanban/useKanban.d.ts +2 -2
- package/dist/components/hooks/useKanban/useKanban.d.ts.map +1 -1
- package/dist/components/hooks/useTable/index.d.ts +1 -1
- package/dist/components/hooks/useTable/index.d.ts.map +1 -1
- package/dist/components/hooks/useTable/types.d.ts +10 -10
- package/dist/components/hooks/useTable/types.d.ts.map +1 -1
- package/dist/components/hooks/useTable/useTable.d.ts +2 -2
- package/dist/components/hooks/useTable/useTable.d.ts.map +1 -1
- package/dist/filter.cjs +1 -0
- package/dist/filter.d.ts +3 -0
- package/dist/filter.d.ts.map +1 -0
- package/dist/filter.mjs +6 -0
- package/dist/filter.types.cjs +1 -0
- package/dist/filter.types.d.ts +2 -0
- package/dist/filter.types.d.ts.map +1 -0
- package/dist/filter.types.mjs +1 -0
- package/dist/form.cjs +1 -0
- package/dist/form.d.ts +3 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.mjs +1346 -0
- package/dist/form.types.cjs +1 -0
- package/dist/form.types.d.ts +2 -0
- package/dist/form.types.d.ts.map +1 -0
- package/dist/form.types.mjs +1 -0
- package/dist/jsx-runtime-BYECrxsp.cjs +30 -0
- package/dist/jsx-runtime-DGlMoOmv.js +630 -0
- package/dist/kanban.cjs +13 -0
- package/dist/kanban.d.ts +5 -0
- package/dist/kanban.d.ts.map +1 -0
- package/dist/kanban.mjs +694 -0
- package/dist/kanban.types.cjs +1 -0
- package/dist/kanban.types.d.ts +2 -0
- package/dist/kanban.types.d.ts.map +1 -0
- package/dist/kanban.types.mjs +1 -0
- package/dist/kanban.ui.cjs +1 -0
- package/dist/kanban.ui.d.ts +2 -0
- package/dist/kanban.ui.d.ts.map +1 -0
- package/dist/kanban.ui.mjs +104 -0
- package/dist/metadata-2FLBsFcf.cjs +1 -0
- package/dist/metadata-DBcoDth-.js +43 -0
- package/dist/table.cjs +1 -0
- package/dist/table.d.ts +2 -0
- package/dist/table.d.ts.map +1 -0
- package/dist/table.mjs +148 -0
- package/dist/table.types.cjs +1 -0
- package/dist/table.types.d.ts +2 -0
- package/dist/table.types.d.ts.map +1 -0
- package/dist/table.types.mjs +1 -0
- package/dist/types/base-fields.d.ts +45 -45
- package/dist/types/base-fields.d.ts.map +1 -1
- package/dist/types/common.d.ts +45 -61
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types.cjs +1 -0
- package/dist/types.mjs +1 -0
- package/dist/useFilter-CXFqEHyI.js +129 -0
- package/dist/useFilter-D-bCDo6Z.cjs +1 -0
- package/dist/utils/formatting.d.ts +4 -4
- package/dist/utils/formatting.d.ts.map +1 -1
- package/dist/utils.cjs +4 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.mjs +105 -0
- package/package.json +147 -9
- package/sdk/api/client.ts +51 -51
- package/sdk/api/datetime.ts +5 -5
- package/sdk/api/index.ts +28 -33
- package/sdk/api/metadata.ts +4 -4
- package/sdk/api.ts +24 -0
- package/sdk/api.types.ts +58 -0
- package/sdk/auth/AuthProvider.tsx +18 -18
- package/sdk/auth/authClient.ts +9 -9
- package/sdk/auth/authConfig.ts +9 -9
- package/sdk/auth/index.ts +5 -5
- package/sdk/auth/types.ts +21 -21
- package/sdk/auth/useAuth.ts +2 -2
- package/sdk/auth.ts +22 -0
- package/sdk/auth.types.ts +28 -0
- package/sdk/base-types.ts +45 -0
- package/sdk/components/hooks/index.ts +22 -22
- package/sdk/components/hooks/useFilter/index.ts +8 -14
- package/sdk/components/hooks/useFilter/types.ts +29 -58
- package/sdk/components/hooks/useFilter/useFilter.ts +41 -44
- package/sdk/components/hooks/useForm/apiClient.ts +8 -8
- package/sdk/components/hooks/useForm/expressionValidator.utils.ts +18 -18
- package/sdk/components/hooks/useForm/index.ts +24 -24
- package/sdk/components/hooks/useForm/optimizedExpressionValidator.utils.ts +22 -22
- package/sdk/components/hooks/useForm/ruleClassifier.utils.ts +26 -62
- package/sdk/components/hooks/useForm/schemaParser.utils.ts +24 -24
- package/sdk/components/hooks/useForm/types.ts +66 -82
- package/sdk/components/hooks/useForm/useForm.ts +15 -21
- package/sdk/components/hooks/useKanban/apiClient.ts +54 -54
- package/sdk/components/hooks/useKanban/context.ts +3 -3
- package/sdk/components/hooks/useKanban/dragDropManager.ts +19 -19
- package/sdk/components/hooks/useKanban/index.ts +26 -26
- package/sdk/components/hooks/useKanban/types.ts +69 -71
- package/sdk/components/hooks/useKanban/useKanban.ts +43 -51
- package/sdk/components/hooks/useKanban/useKanbanSimple.ts +4 -4
- package/sdk/components/hooks/useTable/index.ts +5 -1
- package/sdk/components/hooks/useTable/types.ts +10 -10
- package/sdk/components/hooks/useTable/useTable.ts +10 -10
- package/sdk/filter.ts +13 -0
- package/sdk/filter.types.ts +17 -0
- package/sdk/form.ts +15 -0
- package/sdk/form.types.ts +46 -0
- package/sdk/kanban.ts +23 -0
- package/sdk/kanban.types.ts +50 -0
- package/sdk/kanban.ui.ts +16 -0
- package/sdk/table.ts +7 -0
- package/sdk/table.types.ts +13 -0
- package/sdk/types/base-fields.ts +47 -47
- package/sdk/types/common.ts +47 -71
- package/sdk/types/index.ts +1 -1
- package/sdk/utils/formatting.ts +4 -4
- package/sdk/utils.ts +10 -0
- package/dist/index.cjs +0 -45
- 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 @@
|
|
|
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=$;
|
package/dist/table.d.ts
ADDED
|
@@ -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 @@
|
|
|
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
|
|
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
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* StringFieldType // => string
|
|
17
|
+
* StringFieldType<'active' | 'inactive'> // => 'active' | 'inactive'
|
|
18
|
+
* StringFieldType<string, 1, 100> // => string with length constraints
|
|
19
19
|
*/
|
|
20
|
-
export type
|
|
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
|
-
*
|
|
28
|
+
* TextAreaFieldType // => string (multi-line)
|
|
29
29
|
*/
|
|
30
|
-
export type
|
|
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
|
-
*
|
|
40
|
-
*
|
|
39
|
+
* NumberFieldType // => number
|
|
40
|
+
* NumberFieldType<2> // => number with 2 decimal places
|
|
41
41
|
*/
|
|
42
|
-
export type
|
|
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
|
-
*
|
|
50
|
+
* LongFieldType // => number (large integer)
|
|
51
51
|
*/
|
|
52
|
-
export type
|
|
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
|
|
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
|
-
*
|
|
67
|
+
* DateFieldType // => Date (date only)
|
|
68
68
|
*/
|
|
69
|
-
export type
|
|
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
|
-
*
|
|
77
|
+
* DateTimeFieldType // => Date (with time)
|
|
78
78
|
*/
|
|
79
|
-
export type
|
|
79
|
+
export type DateTimeFieldType = Date;
|
|
80
80
|
/**
|
|
81
81
|
* Currency field supporting multiple value formats
|
|
82
|
-
* Resolves to:
|
|
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
|
-
*
|
|
87
|
+
* CurrencyFieldType // => {value: number, currency: string} | string
|
|
88
88
|
*/
|
|
89
|
-
export type
|
|
89
|
+
export type CurrencyFieldType = CurrencyValueType;
|
|
90
90
|
/**
|
|
91
91
|
* Currency value format - supports both object and string representations
|
|
92
92
|
*/
|
|
93
|
-
export type
|
|
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
|
|
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
|
-
*
|
|
106
|
-
*
|
|
105
|
+
* JSONFieldType // => JSONValueType (any valid JSON)
|
|
106
|
+
* JSONFieldType<{settings: {theme: string}}> // => {settings: {theme: string}}
|
|
107
107
|
*/
|
|
108
|
-
export type
|
|
109
|
-
export type
|
|
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
|
|
114
|
-
export interface
|
|
115
|
-
[key: string]:
|
|
113
|
+
export type JSONValueType = string | number | boolean | null | JSONObjectType | JSONArrayType;
|
|
114
|
+
export interface JSONObjectType {
|
|
115
|
+
[key: string]: JSONValueType;
|
|
116
116
|
}
|
|
117
|
-
export interface
|
|
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
|
-
*
|
|
127
|
+
* SelectFieldType<'active' | 'inactive' | 'pending'> // => 'active' | 'inactive' | 'pending'
|
|
128
128
|
*/
|
|
129
|
-
export type
|
|
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
|
-
*
|
|
139
|
-
*
|
|
138
|
+
* LookupFieldType // => string (referenced record ID)
|
|
139
|
+
* LookupFieldType<IdFieldType> // => string (typed as IdFieldType)
|
|
140
140
|
*/
|
|
141
|
-
export type
|
|
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
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
150
|
+
* ArrayFieldType<string> // => string[]
|
|
151
|
+
* ArrayFieldType<IdFieldType> // => string[]
|
|
152
|
+
* ArrayFieldType<SelectFieldType<'tag1' | 'tag2'>> // => ('tag1' | 'tag2')[]
|
|
153
153
|
*/
|
|
154
|
-
export type
|
|
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
|
-
*
|
|
163
|
+
* ObjectFieldType<{ name: string; age: number }> // => { name: string; age: number }
|
|
164
164
|
*/
|
|
165
|
-
export type
|
|
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
|
-
*
|
|
174
|
-
*
|
|
173
|
+
* OptionalFieldType<StringFieldType> // => string | undefined
|
|
174
|
+
* OptionalFieldType<NumberFieldType> // => number | undefined
|
|
175
175
|
*/
|
|
176
|
-
export type
|
|
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
|
|
181
|
+
export type ExtractFieldTypeType<T> = T extends OptionalFieldType<infer U> ? U : T;
|
|
182
182
|
//# sourceMappingURL=base-fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-fields.d.ts","sourceRoot":"","sources":["../../sdk/types/base-fields.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"base-fields.d.ts","sourceRoot":"","sources":["../../sdk/types/base-fields.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,eAAe,CACzB,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,UAAU,SAAS,MAAM,GAAG,KAAK,IAC/B,CAAC,CAAC;AAEN;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,CAAC,UAAU,SAAS,MAAM,GAAG,KAAK,IAAI,MAAM,CAAC;AAExE;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAMrC;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACnC,MAAM,CAAC;AAEX;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,aAAa,IAAI,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC;CAAG;AAE9D;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;AAM3D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAEpC;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;AAE/D;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;AAMjD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CAAC,SAAS,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC"}
|