This commit is contained in:
what 2025-09-28 16:40:05 +08:00
parent 05ebefd78e
commit 0849a0eae8
17 changed files with 86 additions and 86 deletions

2
dist/button.js vendored
View File

@ -1,4 +1,4 @@
import { ab as s, aa as u, ac as e } from "./common/main-UvNID6kN.js"; import { ab as s, aa as u, ac as e } from "./common/main-P7YFOc1H.js";
export { export {
s as auth, s as auth,
u as default, u as default,

View File

@ -60,7 +60,7 @@ class tn {
} }
} }
Fe = new WeakMap(), ze = new WeakMap(), Oe = new WeakMap(), ue = new WeakMap(), ve = new WeakMap(), Pe = new WeakMap(); Fe = new WeakMap(), ze = new WeakMap(), Oe = new WeakMap(), ue = new WeakMap(), ve = new WeakMap(), Pe = new WeakMap();
const gr = () => u("div", { children: "Empty" }), He = x.createContext({ ele: {}, mount: () => { const pr = () => u("div", { children: "Empty" }), He = x.createContext({ ele: {}, mount: () => {
}, unmount: () => { }, unmount: () => {
} }), Y = ({ rootClassName: e, className: t, children: n, actions: i, title: r, subTitle: a, extras: o, style: s = {} }) => { } }), Y = ({ rootClassName: e, className: t, children: n, actions: i, title: r, subTitle: a, extras: o, style: s = {} }) => {
const { mount: l, unmount: g } = x.useContext(He); const { mount: l, unmount: g } = x.useContext(He);
@ -70,7 +70,7 @@ const gr = () => u("div", { children: "Empty" }), He = x.createContext({ ele: {}
return L(() => (t && i(e, x.createElement("div", { key: `ff-${e}`, className: I(`ff-popup-${e}`, n) }, t)), () => r(e)), [n, t]), null; return L(() => (t && i(e, x.createElement("div", { key: `ff-${e}`, className: I(`ff-popup-${e}`, n) }, t)), () => r(e)), [n, t]), null;
}; };
Y.Action = Ye("actions"), Y.Title = Ye("title"), Y.SubTitle = Ye("sub-title"), Y.Extra = Ye("extras"), Y.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any }; Y.Action = Ye("actions"), Y.Title = Ye("title"), Y.SubTitle = Ye("sub-title"), Y.Extra = Ye("extras"), Y.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any };
const pr = () => u(Y, { className: "ff-loading", children: j("div", { className: "loader", children: [j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] })] }) }), mr = () => u("div", { children: "NotFound" }), nn = ({ children: e }) => { const mr = () => u(Y, { className: "ff-loading", children: j("div", { className: "loader", children: [j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), j("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] })] }) }), hr = () => u("div", { children: "NotFound" }), nn = ({ children: e }) => {
const [t, n] = O({}), i = X((a, o) => n((s) => ({ ...s, [a]: o })), []), r = X((a) => n((o) => ({ ...o, [a]: void 0 })), []); const [t, n] = O({}), i = X((a, o) => n((s) => ({ ...s, [a]: o })), []), r = X((a) => n((o) => ({ ...o, [a]: void 0 })), []);
return typeof (e == null ? void 0 : e.type) == "string" ? e : u(He.Provider, { value: { ele: t, mount: i, unmount: r }, children: x.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); return typeof (e == null ? void 0 : e.type) == "string" ? e : u(He.Provider, { value: { ele: t, mount: i, unmount: r }, children: x.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) });
}; };
@ -173,16 +173,16 @@ const Ie = wt.getInstance(), Bt = { null2json: (e) => Object.create(), null2arra
c.set(i, r, a); c.set(i, r, a);
} }
return i; return i;
}, {}), gt = (e, t) => e && typeof e == "object" ? Array.isArray(e) ? e.map((n) => gt(n, t)) : Object.keys(e).reduce((n, i) => (t[i] ? n[t[i]] = gt(e[i], t) : n[i] = gt(e[i], t), n), {}) : e, hr = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => { }, {}), gt = (e, t) => e && typeof e == "object" ? Array.isArray(e) ? e.map((n) => gt(n, t)) : Object.keys(e).reduce((n, i) => (t[i] ? n[t[i]] = gt(e[i], t) : n[i] = gt(e[i], t), n), {}) : e, fr = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
const t = 16 * Math.random() | 0; const t = 16 * Math.random() | 0;
return (e === "x" ? t : 3 & t | 8).toString(16); return (e === "x" ? t : 3 & t | 8).toString(16);
}), fr = (e) => { }), yr = (e) => {
var t, n; var t, n;
return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){3}(?<name>[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.name : ""; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){3}(?<name>[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.name : "";
}, yr = (e) => { }, wr = (e) => {
var t, n; var t, n;
return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){2}(?<category>[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.category : ""; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){2}(?<category>[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.category : "";
}, wr = (e) => { }, br = (e) => {
var t, n; var t, n;
return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){1}(?<owner>[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.owner : ""; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){1}(?<owner>[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.owner : "";
}, ri = (e, t = 32, n = "auto") => { }, ri = (e, t = 32, n = "auto") => {
@ -226,13 +226,13 @@ tt = new WeakMap(), De = new WeakMap(), qe = new WeakMap(), nt = new WeakMap(),
return ((r = i.default) == null ? void 0 : r.call(i, n)) || ((a) => a); return ((r = i.default) == null ? void 0 : r.call(i, n)) || ((a) => a);
}), (t, n) => `${t}::${ee(n, "string")}`)); }), (t, n) => `${t}::${ee(n, "string")}`));
let et = it; let et = it;
const ai = (e, t = {}) => H(() => e == null ? void 0 : e.map(({ widgetByJs: n, widgetByJsSetting: i, ...r }, a) => n ? { ...r, render: (o, s) => new et([n, i]).toRender(o, s, "-") } : r), [e, t]), br = (e) => { const ai = (e, t = {}) => H(() => e == null ? void 0 : e.map(({ widgetByJs: n, widgetByJsSetting: i, ...r }, a) => n ? { ...r, render: (o, s) => new et([n, i]).toRender(o, s, "-") } : r), [e, t]), Cr = (e) => {
const [t, n] = O({}); const [t, n] = O({});
return L(() => { return L(() => {
let i = !1; let i = !1;
return e && A.get(`/api/_/${e}`).then((r) => c.pick(r, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((r) => !i && n(r)), () => i = !0; return e && A.get(`/api/_/${e}`).then((r) => c.pick(r, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((r) => !i && n(r)), () => i = !0;
}, [e]), t; }, [e]), t;
}, Cr = (e, t = {}) => { }, kr = (e, t = {}) => {
const [n, i] = O({ dataSource: [] }); const [n, i] = O({ dataSource: [] });
return Ke(() => { return Ke(() => {
let r = !1; let r = !1;
@ -304,7 +304,7 @@ const ai = (e, t = {}) => H(() => e == null ? void 0 : e.map(({ widgetByJs: n, w
} }), dn = (e, t, n, i, r = {}, a = 0) => { } }), dn = (e, t, n, i, r = {}, a = 0) => {
const o = { "--grid-layout-h": `${i}`, "--grid-layout-w": `${n}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" }; const o = { "--grid-layout-h": `${i}`, "--grid-layout-w": `${n}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" };
return r != null && r.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${i}`, r != null && r.alignItems && (o["--grid-layout-box-align-items"] = r.alignItems), r != null && r.justifyContent && (o["--grid-layout-box-justify-content"] = r.justifyContent), o["--grid-layout-box-margin"] = Dt(r == null ? void 0 : r.marginTop, r == null ? void 0 : r.marginRight, r == null ? void 0 : r.marginBottom, r == null ? void 0 : r.marginLeft), o["--grid-layout-box-padding"] = Dt(r == null ? void 0 : r.paddingTop, r == null ? void 0 : r.paddingRight, r == null ? void 0 : r.paddingBottom, r == null ? void 0 : r.paddingLeft), a && (o.height = `${a}px`), o; return r != null && r.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${i}`, r != null && r.alignItems && (o["--grid-layout-box-align-items"] = r.alignItems), r != null && r.justifyContent && (o["--grid-layout-box-justify-content"] = r.justifyContent), o["--grid-layout-box-margin"] = Dt(r == null ? void 0 : r.marginTop, r == null ? void 0 : r.marginRight, r == null ? void 0 : r.marginBottom, r == null ? void 0 : r.marginLeft), o["--grid-layout-box-padding"] = Dt(r == null ? void 0 : r.paddingTop, r == null ? void 0 : r.paddingRight, r == null ? void 0 : r.paddingBottom, r == null ? void 0 : r.paddingLeft), a && (o.height = `${a}px`), o;
}, Dt = (e, t, n, i) => `${e || 0}px ${t || 0}px ${n || 0}px ${i || 0}px`, kr = (e = "Text", t = "@pkg/ff/grid-layouts") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, un = ({ className: e, isConditionFormLayout: t }) => { }, Dt = (e, t, n, i) => `${e || 0}px ${t || 0}px ${n || 0}px ${i || 0}px`, xr = (e = "Text", t = "@pkg/ff/grid-layouts") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, un = ({ className: e, isConditionFormLayout: t }) => {
var f, m; var f, m;
const [n, i] = O({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = x.useContext(ne), { keyword: g, condition: d } = (s == null ? void 0 : s()) || {}, [p] = Xe.useForm(); const [n, i] = O({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = x.useContext(ne), { keyword: g, condition: d } = (s == null ? void 0 : s()) || {}, [p] = Xe.useForm();
return L(() => { return L(() => {
@ -436,7 +436,7 @@ const pn = kt.getInstance(), Rt = x.forwardRef(({ listCode: e, base62params: t,
}, fn = ({ className: e, cols: t = 12, rowHeight: n = 21, containerPadding: i = [0, 0], itemMargin: r = [4, 0], formProps: a = {}, fields: o = [], data: s, basicForm: l = null, ...g }) => { }, fn = ({ className: e, cols: t = 12, rowHeight: n = 21, containerPadding: i = [0, 0], itemMargin: r = [4, 0], formProps: a = {}, fields: o = [], data: s, basicForm: l = null, ...g }) => {
const [d] = te.useForm(), p = hn(o, bi, l), f = H(() => [{ name: "__PROPS__", value: a }], [a]); const [d] = te.useForm(), p = hn(o, bi, l), f = H(() => [{ name: "__PROPS__", value: a }], [a]);
return Ke(() => (d.setFieldsValue(s), () => d.resetFields()), [s]), u(te, { fields: f, form: d, component: !1, children: u("div", { ...g, className: I("ff-grid-layout", e), style: { "--grid-layout-item-margin-y": `${(r == null ? void 0 : r[0]) || 0}px`, "--grid-layout-item-margin-x": `${(r == null ? void 0 : r[1]) || 0}px`, "--grid-layout-container-padding-y": `${(i == null ? void 0 : i[0]) || 0}px`, "--grid-layout-container-padding-x": `${(i == null ? void 0 : i[1]) || 0}px`, "--grid-layout-cols": t, "--grid-layout-row-height": `${n}px` }, children: p }) }); return Ke(() => (d.setFieldsValue(s), () => d.resetFields()), [s]), u(te, { fields: f, form: d, component: !1, children: u("div", { ...g, className: I("ff-grid-layout", e), style: { "--grid-layout-item-margin-y": `${(r == null ? void 0 : r[0]) || 0}px`, "--grid-layout-item-margin-x": `${(r == null ? void 0 : r[1]) || 0}px`, "--grid-layout-container-padding-y": `${(i == null ? void 0 : i[0]) || 0}px`, "--grid-layout-container-padding-x": `${(i == null ? void 0 : i[1]) || 0}px`, "--grid-layout-cols": t, "--grid-layout-row-height": `${n}px` }, children: p }) });
}, xr = (qt = fn, function({ code: e, data: t, ...n }) { }, Sr = (qt = fn, function({ code: e, data: t, ...n }) {
const [i, r] = O({ resource: null, cols: 12, rowHeight: 21, fields: [] }); const [i, r] = O({ resource: null, cols: 12, rowHeight: 21, fields: [] });
return L(() => { return L(() => {
e && A.get(`/api/_/${e}`).then((a) => r(c.pick(a, ["resource", "cols", "rowHeight", "fields"]))); e && A.get(`/api/_/${e}`).then((a) => r(c.pick(a, ["resource", "cols", "rowHeight", "fields"])));
@ -452,7 +452,7 @@ const ki = ({ column: e = 0, colWidth: t = 0, cols: n, rowHeight: i, itemMargin:
}, xi = ({ component: e, $props: t }) => { }, xi = ({ component: e, $props: t }) => {
const { base62params: n } = Je(t, {}); const { base62params: n } = Je(t, {});
return u(Y, { children: u(Rt, { listCode: e, base62params: A.decode(n) }) }); return u(Y, { children: u(Rt, { listCode: e, base62params: A.decode(n) }) });
}, Sr = () => u(yn, {}), yn = () => "Empty", Si = ({ component: e, $setting: t, $props: n }) => { }, vr = () => u(yn, {}), yn = () => "Empty", Si = ({ component: e, $setting: t, $props: n }) => {
const [i, r] = O(); const [i, r] = O();
L(() => { L(() => {
if (!e) return r(u(yn, { description: null })); if (!e) return r(u(yn, { description: null }));
@ -460,7 +460,7 @@ const ki = ({ column: e = 0, colWidth: t = 0, cols: n, rowHeight: i, itemMargin:
}, [e]); }, [e]);
const a = Je(n, {}); const a = Je(n, {});
return i ? x.cloneElement(i, a) : null; return i ? x.cloneElement(i, a) : null;
}, vr = () => "NotFoundPage"; }, Pr = () => "NotFoundPage";
var fe, Z, ye, we, We, Ue; var fe, Z, ye, we, We, Ue;
const se = class se { const se = class se {
constructor() { constructor() {
@ -567,7 +567,7 @@ const D = class D {
})); }));
P(this, "clear", (t) => Re.postMessage({ session: t, category: "clear" })); P(this, "clear", (t) => Re.postMessage({ session: t, category: "clear" }));
if (y(D, be)) return y(D, be); if (y(D, be)) return y(D, be);
Promise.resolve().then(() => Gi).then((t) => { Promise.resolve().then(() => Yi).then((t) => {
Wt.http = t.http; Wt.http = t.http;
}), Re.addEventListener("message", ({ data: { id: t, task_id: n, method: i, args: r, category: a, data: o, error: s, session: l } }) => { }), Re.addEventListener("message", ({ data: { id: t, task_id: n, method: i, args: r, category: a, data: o, error: s, session: l } }) => {
if (a === "eval" && D.mQueue.has(t)) s !== null ? D.mQueue.get(t)[1](s) : D.mQueue.get(t)[0](o), y(D, je).delete(t), D.mQueue.delete(t); if (a === "eval" && D.mQueue.has(t)) s !== null ? D.mQueue.get(t)[1](s) : D.mQueue.get(t)[0](o), y(D, je).delete(t), D.mQueue.delete(t);
@ -590,12 +590,12 @@ let St = D;
const xe = St.getInstance(), st = () => { const xe = St.getInstance(), st = () => {
const e = W(!0), [, t] = x.useReducer((n) => n + 1, 0); const e = W(!0), [, t] = x.useReducer((n) => n + 1, 0);
return L(() => () => e.current = !1, []), () => e.current && t(); return L(() => () => e.current = !1, []), () => e.current && t();
}, Pr = (e) => { }, Tr = (e) => {
const t = W(); const t = W();
return L(() => { return L(() => {
t.current = e; t.current = e;
}, [e]), t.current; }, [e]), t.current;
}, Tr = (e) => { }, Nr = (e) => {
const [t, n] = O(e), i = W(null), r = X((a, o) => { const [t, n] = O(e), i = W(null), r = X((a, o) => {
i.current = o, n(a); i.current = o, n(a);
}, []); }, []);
@ -611,14 +611,14 @@ const xe = St.getInstance(), st = () => {
if (!Array.isArray(e)) return e; if (!Array.isArray(e)) return e;
for (let i = 0; i < e.length; i++) e[i].value = ee((n = e[i]) == null ? void 0 : n.value, t), e[i] && Reflect.has(e[i], "children") && (e[i].children = wn(e[i].children, t)); for (let i = 0; i < e.length; i++) e[i].value = ee((n = e[i]) == null ? void 0 : n.value, t), e[i] && Reflect.has(e[i], "children") && (e[i].children = wn(e[i].children, t));
return e; return e;
}, Nr = (e, t = "json", n = "string", i, r = null) => { }, $r = (e, t = "json", n = "string", i, r = null) => {
const [a] = te.useForm(i), [o, s] = O([{ label: "无", value: "", disabled: !0 }]), l = W([]), g = te.useWatch((d) => l.current.length === 0 ? null : c.pick(d, l.current), a) || null; const [a] = te.useForm(i), [o, s] = O([{ label: "无", value: "", disabled: !0 }]), l = W([]), g = te.useWatch((d) => l.current.length === 0 ? null : c.pick(d, l.current), a) || null;
return L(() => { return L(() => {
Array.isArray(e) ? s(e) : t === "javascript" && e ? xe.exec(e, {}, { getFieldValue: (d) => (l.current.includes(d) || l.current.push(d), a.getFieldValue(d)), getFieldValueForBasicForm: (d) => (l.current.includes(d) || l.current.push(d), r ? r.getFieldValue(d) : a.getFieldValue(d)) }).then((d) => { Array.isArray(e) ? s(e) : t === "javascript" && e ? xe.exec(e, {}, { getFieldValue: (d) => (l.current.includes(d) || l.current.push(d), a.getFieldValue(d)), getFieldValueForBasicForm: (d) => (l.current.includes(d) || l.current.push(d), r ? r.getFieldValue(d) : a.getFieldValue(d)) }).then((d) => {
s(ee(d, "array")); s(ee(d, "array"));
}).catch((d) => console.error("useOptions", d)) : e && s(ee(e, "array")); }).catch((d) => console.error("useOptions", d)) : e && s(ee(e, "array"));
}, [e, t, g]), wn(o, n); }, [e, t, g]), wn(o, n);
}, $r = (e) => { }, Rr = (e) => {
const [t, n] = O(), i = { type: "GET" }; const [t, n] = O(), i = { type: "GET" };
if (typeof e == "string" ? i.url = e : c.isPlainObject(e) && Object.assign(i, e), !(i != null && i.url)) throw "url is required"; if (typeof e == "string" ? i.url = e : c.isPlainObject(e) && Object.assign(i, e), !(i != null && i.url)) throw "url is required";
const r = (a) => A.request(i, !1).resp((o) => (console.log("useSubscribeRequest", a), n(o), o)); const r = (a) => A.request(i, !1).resp((o) => (console.log("useSubscribeRequest", a), n(o), o));
@ -682,7 +682,7 @@ const xe = St.getInstance(), st = () => {
}, onFail: (a) => (a == null ? void 0 : a.errorFields) && G.error("请先完善表单信息", { duration: 2e3 }) }) => { }, onFail: (a) => (a == null ? void 0 : a.errorFields) && G.error("请先完善表单信息", { duration: 2e3 }) }) => {
const a = i.getFieldValue("__RESOURCE__"), { submitDataUri: o = `/api/${e}`, submitDataMethod: s = "POST" } = n || {}; const a = i.getFieldValue("__RESOURCE__"), { submitDataUri: o = `/api/${e}`, submitDataMethod: s = "POST" } = n || {};
return i.validateFields().then((l) => a ? c.pick(l, [a]) : l).then(r.serialize).then((l) => A.request({ method: s, url: c.trimEnd(`${o}/${t || ""}`, "/"), data: l }).msg(r.onSuccess)).catch(r.onFail); return i.validateFields().then((l) => a ? c.pick(l, [a]) : l).then(r.serialize).then((l) => A.request({ method: s, url: c.trimEnd(`${o}/${t || ""}`, "/"), data: l }).msg(r.onSuccess)).catch(r.onFail);
}, [e, t, n]), Rr = (e, t, n, i) => { }, [e, t, n]), Ri = (e, t, n, i) => {
const r = Ni(t, n, i); const r = Ni(t, n, i);
L(() => { L(() => {
r ? e.setFieldsValue(r) : e.resetFields(); r ? e.setFieldsValue(r) : e.resetFields();
@ -698,7 +698,7 @@ const xe = St.getInstance(), st = () => {
s.current && (d(t), f(h)); s.current && (d(t), f(h));
}); });
}, [e, m, a, n, i]), L(() => () => s.current = !1, []), e ? [g, p] : [t, null]; }, [e, m, a, n, i]), L(() => () => s.current = !1, []), e ? [g, p] : [t, null];
}, Ri = (e, t, n = [], i = {}) => { }, Fi = (e, t, n = [], i = {}) => {
const r = W({}), a = W(), o = c.debounce(st(), 180), s = ["disabled", "required"], l = (f, m) => { const r = W({}), a = W(), o = c.debounce(st(), 180), s = ["disabled", "required"], l = (f, m) => {
s.includes(f) && (r.current[f] = m), o(); s.includes(f) && (r.current[f] = m), o();
}, g = H(() => ({ setDisabled: (f) => l("disabled", f), setRequired: (f) => l("required", f), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [t]), [d, p] = bn(t, -1, {}, g, i); }, g = H(() => ({ setDisabled: (f) => l("disabled", f), setRequired: (f) => l("required", f), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [t]), [d, p] = bn(t, -1, {}, g, i);
@ -725,17 +725,17 @@ const xe = St.getInstance(), st = () => {
} }, [r]), (o, s) => { } }, [r]), (o, s) => {
i.current = s, t == null || t(s); i.current = s, t == null || t(s);
}]; }];
}, Fi = ({ type: e, initialValue: t, initialValueLanguage: n, onChange: i, basicForm: r }) => { }, Oi = ({ type: e, initialValue: t, initialValueLanguage: n, onChange: i, basicForm: r }) => {
const [a, o] = bn(n == "javascript" && t, n == "javascript" ? void 0 : t, {}, {}, r); const [a, o] = bn(n == "javascript" && t, n == "javascript" ? void 0 : t, {}, {}, r);
return L(() => { return L(() => {
n == "javascript" ? i(ee(a, e)) : t && i(ee(t, e)); n == "javascript" ? i(ee(a, e)) : t && i(ee(t, e));
}, [e, t, a]), null; }, [e, t, a]), null;
}, Cn = ({ widget: e = "Input", widgetPrefix: t = "@pkg/ff/grid-layout-forms", widgetDecorator: n, subWidgets: i = [], basicForm: r, ...a }) => { }, Cn = ({ widget: e = "Input", widgetPrefix: t = "@pkg/ff/grid-layout-forms", widgetDecorator: n, subWidgets: i = [], basicForm: r, ...a }) => {
const o = an(e, t), [s, l] = Ri(o, n, i, r), [g, d] = O(); const o = an(e, t), [s, l] = Fi(o, n, i, r), [g, d] = O();
return L(() => { return L(() => {
s && le.getWidgetComponent(s).then(({ defaultProps: p = {}, default: f }) => ({ default: Oi(f, p, r) })).catch((p) => ({ default: () => `${p}` })).then((p) => d(x.createElement(p.default, a))); s && le.getWidgetComponent(s).then(({ defaultProps: p = {}, default: f }) => ({ default: Ei(f, p, r) })).catch((p) => ({ default: () => `${p}` })).then((p) => d(x.createElement(p.default, a)));
}, [s]), g && x.cloneElement(g, { ...a, ...l }); }, [s]), g && x.cloneElement(g, { ...a, ...l });
}, Oi = (e, t = {}, n = null) => (i) => { }, Ei = (e, t = {}, n = null) => (i) => {
const { type: r, code: a, label: o, noStyle: s, placeholder: l, required: g = !1, extras: d, validators: p, help: f, isVirtual: m, $isReserved: h, initialValue: b, initialValueLanguage: C, ...k } = c.omit(c.merge({}, t, i), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), v = Ti(Object.assign({}, p, g ? { required: !0 } : {}), a, r), S = H(() => { const { type: r, code: a, label: o, noStyle: s, placeholder: l, required: g = !1, extras: d, validators: p, help: f, isVirtual: m, $isReserved: h, initialValue: b, initialValueLanguage: C, ...k } = c.omit(c.merge({}, t, i), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), v = Ti(Object.assign({}, p, g ? { required: !0 } : {}), a, r), S = H(() => {
const M = Object.keys((t == null ? void 0 : t.extras) || {}); const M = Object.keys((t == null ? void 0 : t.extras) || {});
return c.over([c.partialRight(c.pick, M), c.partialRight(c.omit, M)]); return c.over([c.partialRight(c.pick, M), c.partialRight(c.omit, M)]);
@ -749,20 +749,20 @@ const xe = St.getInstance(), st = () => {
return j("div", { className: "ff-grid-layout-form", style: { "--grid-layout-item-margin-x": `${(n == null ? void 0 : n[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(n == null ? void 0 : n[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(i == null ? void 0 : i[0]) || 0}px`, "--grid-layout-container-padding-x": `${(i == null ? void 0 : i[1]) || 0}px`, "--grid-layout-cols": e, "--grid-layout-row-height": `${t}px` }, children: [s, a && x.cloneElement(a, { cols: e, rowHeight: t, itemMargin: n, containerPadding: i, fields: r })] }); return j("div", { className: "ff-grid-layout-form", style: { "--grid-layout-item-margin-x": `${(n == null ? void 0 : n[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(n == null ? void 0 : n[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(i == null ? void 0 : i[0]) || 0}px`, "--grid-layout-container-padding-x": `${(i == null ? void 0 : i[1]) || 0}px`, "--grid-layout-cols": e, "--grid-layout-row-height": `${t}px` }, children: [s, a && x.cloneElement(a, { cols: e, rowHeight: t, itemMargin: n, containerPadding: i, fields: r })] });
}; };
Ft.propTypes = { fields: w.array }; Ft.propTypes = { fields: w.array };
const Ei = (Ht = Ft, ({ code: e, layout: t, name: n, primaryKey: i = 0, style: r = {}, formProps: a = {}, form: o, basicForm: s, isPreview: l = !1, className: g, onFinish: d, onValuesChange: p = () => { const ji = (Ht = Ft, ({ code: e, layout: t, name: n, primaryKey: i = 0, style: r = {}, formProps: a = {}, form: o, basicForm: s, isPreview: l = !1, className: g, onFinish: d, onValuesChange: p = () => {
}, ...f }) => { }, ...f }) => {
const { align: m, autoComplete: h, resource: b, items: C, hides: k, rowHeight: v, marginX: S, marginY: $, cols: V, listenChangeFields: q, listenChangeFieldsFunc: B, pk: M, uuid: R } = Pi(e), [z] = te.useForm(o), N = H(() => [{ name: "__PK__", value: M }, { name: "__PROPS__", value: a }, { name: "__RESOURCE__", value: b }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: R }, { name: "__PRIMARY_KEY__", value: i }], [M, e, R, b, i, a]); const { align: m, autoComplete: h, resource: b, items: C, hides: k, rowHeight: v, marginX: S, marginY: $, cols: V, listenChangeFields: q, listenChangeFieldsFunc: B, pk: M, uuid: R } = Pi(e), [z] = te.useForm(o), N = H(() => [{ name: "__PK__", value: M }, { name: "__PROPS__", value: a }, { name: "__RESOURCE__", value: b }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: R }, { name: "__PRIMARY_KEY__", value: i }], [M, e, R, b, i, a]);
return j(te, { className: g, name: n || e, layout: t || m, fields: N, form: z, autoComplete: h, style: { ...r, position: "relative" }, onFinish: d, onValuesChange: (F, J) => (({ changedValues: de, allValues: Se, listenChangeFields: Ne, listenChangeFieldsFunc: $e, onValuesChange: K, code: jt }) => { return j(te, { className: g, name: n || e, layout: t || m, fields: N, form: z, autoComplete: h, style: { ...r, position: "relative" }, onFinish: d, onValuesChange: (F, J) => (({ changedValues: de, allValues: Se, listenChangeFields: Ne, listenChangeFieldsFunc: $e, onValuesChange: K, code: jt }) => {
K(de, Se), $e && Array.isArray(Ne) && xe.exec($e, { changedValues: de, allValues: Se }, { getFieldValue: z.getFieldValue, setFieldValue: z.setFieldValue, setFieldsValue: z.setFieldsValue, isFieldTouched: z.isFieldTouched, isFieldsTouched: z.isFieldsTouched }).catch((ct) => console.error("onFormValuesChange", ct)); K(de, Se), $e && Array.isArray(Ne) && xe.exec($e, { changedValues: de, allValues: Se }, { getFieldValue: z.getFieldValue, setFieldValue: z.setFieldValue, setFieldsValue: z.setFieldsValue, isFieldTouched: z.isFieldTouched, isFieldsTouched: z.isFieldsTouched }).catch((ct) => console.error("onFormValuesChange", ct));
})({ changedValues: F, allValues: J, listenChangeFields: q, listenChangeFieldsFunc: B, onValuesChange: p, code: e }), children: [u(Ht, { ...f, form: z, basicForm: s, code: e, fields: C, cols: V, rowHeight: v, itemMargin: [S, $] }), k == null ? void 0 : k.map((F) => { })({ changedValues: F, allValues: J, listenChangeFields: q, listenChangeFieldsFunc: B, onValuesChange: p, code: e }), children: [u(Ht, { ...f, form: z, basicForm: s, code: e, fields: C, cols: V, rowHeight: v, itemMargin: [S, $] }), k == null ? void 0 : k.map((F) => {
var J; var J;
return u(Qt, { name: F.code, children: u(Fi, { form: z, basicForm: s, name: F.code, type: F.type, initialValue: F.initialValue, initialValueLanguage: (J = F.extras) == null ? void 0 : J.initialValueLanguage }) }, JSON.stringify(F.code)); return u(Qt, { name: F.code, children: u(Oi, { form: z, basicForm: s, name: F.code, type: F.type, initialValue: F.initialValue, initialValueLanguage: (J = F.extras) == null ? void 0 : J.initialValueLanguage }) }, JSON.stringify(F.code));
})] }, e); })] }, e);
}); });
var Ht; var Ht;
const kn = ({ $setting: e, $close: t, extras: n, code: i, primaryKey: r, ...a }) => { const kn = ({ $setting: e, $close: t, extras: n, code: i, primaryKey: r, ...a }) => {
const [o] = te.useForm(), s = useFormAction(o, i, r, e); const [o] = te.useForm(), s = Ri(o, i, r, e);
return u(Y, { actions: j(x.Fragment, { children: [u(T, { name: (e == null ? void 0 : e.okText) || "保存", type: "primary", widget: () => s({ onSuccess: t }) }), u(T, { name: (e == null ? void 0 : e.cancelText) || "取消", widget: () => t(!1) })] }), extras: n, children: u(Ei, { form: o, code: i, primaryKey: r, ...a }) }); return u(Y, { actions: j(x.Fragment, { children: [u(T, { name: (e == null ? void 0 : e.okText) || "保存", type: "primary", widget: () => s({ onSuccess: t }) }), u(T, { name: (e == null ? void 0 : e.cancelText) || "取消", widget: () => t(!1) })] }), extras: n, children: u(ji, { form: o, code: i, primaryKey: r, ...a }) });
}, Jt = /* @__PURE__ */ new Set(), vt = (e = [], t = 0) => { }, Jt = /* @__PURE__ */ new Set(), vt = (e = [], t = 0) => {
const n = e[t]; const n = e[t];
if (n.length && !Jt.has(n)) { if (n.length && !Jt.has(n)) {
@ -775,7 +775,7 @@ const kn = ({ $setting: e, $close: t, extras: n, code: i, primaryKey: r, ...a })
} }
}, Pt = ({ className: e, type: t, style: n = {}, ...i }) => u("span", { role: "img", className: I("ff-iconfont", e), style: n, ...i, children: u("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: u("use", { xlinkHref: `#${t}` }) }) }); }, Pt = ({ className: e, type: t, style: n = {}, ...i }) => u("span", { role: "img", className: I("ff-iconfont", e), style: n, ...i, children: u("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: u("use", { xlinkHref: `#${t}` }) }) });
Pt.propTypes = { className: w.string, type: w.string.isRequired, style: w.object }, Pt.init = vt; Pt.propTypes = { className: w.string, type: w.string.isRequired, style: w.object }, Pt.init = vt;
const ji = (e, t, n, i) => ke.redirect(n, t, i), Ai = (e, t = {}, n, i = {}) => { const Ai = (e, t, n, i) => ke.redirect(n, t, i), Li = (e, t = {}, n, i = {}) => {
var a; var a;
const r = (a = i.router) == null ? void 0 : a.reduce((o, [s, l, g]) => { const r = (a = i.router) == null ? void 0 : a.reduce((o, [s, l, g]) => {
const d = c.get(t, ["router", s]); const d = c.get(t, ["router", s]);
@ -788,22 +788,22 @@ const ji = (e, t, n, i) => ke.redirect(n, t, i), Ai = (e, t = {}, n, i = {}) =>
return c.isFunction(n) ? n.call(null, { ...t, ...o }) : c.isString(n) && n ? xe.exec(n, t, o) : null; return c.isFunction(n) ? n.call(null, { ...t, ...o }) : c.isString(n) && n ? xe.exec(n, t, o) : null;
}, _t = (e, t, n, i, r) => c.isString(n) && n ? le.getWidgetComponent(n).then(({ default: a }) => G.modal(a, { ...t, $setting: i }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r)).catch((a) => { }, _t = (e, t, n, i, r) => c.isString(n) && n ? le.getWidgetComponent(n).then(({ default: a }) => G.modal(a, { ...t, $setting: i }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r)).catch((a) => {
G.error(n, { content: a.toString() }); G.error(n, { content: a.toString() });
}) : G.modal(n, { ...t, $setting: i }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r), Li = (e, t, n, i, r) => G.modal(kn, { ...t, $setting: i, code: n }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r), Vi = (e, t, n, i, r) => G.modal(Rt, { base62params: t, $setting: i, listCode: n }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r), Ii = ({ widget: e, widgetType: t, widgetData: n, widgetProps: i, widgetSetting: r, widgetContainerProps: a }, { onAfterClick: o, onBeforeClick: s }) => { }) : G.modal(n, { ...t, $setting: i }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r), Vi = (e, t, n, i, r) => G.modal(kn, { ...t, $setting: i, code: n }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r), Ii = (e, t, n, i, r) => G.modal(Rt, { base62params: t, $setting: i, listCode: n }, r != null && r.title ? { ...r, title: c.template(r.title)(e) } : r), Mi = ({ widget: e, widgetType: t, widgetData: n, widgetProps: i, widgetSetting: r, widgetContainerProps: a }, { onAfterClick: o, onBeforeClick: s }) => {
const l = ce(ne), [g, d] = O({ leading: !0, trailing: !1 }), p = H(() => { const l = ce(ne), [g, d] = O({ leading: !0, trailing: !1 }), p = H(() => {
switch (t) { switch (t) {
case "redirect": case "redirect":
return c.partialRight(ji, e, r); return c.partialRight(Ai, e, r);
case "func": case "func":
return c.partialRight(Kt, (r == null ? void 0 : r.code) ?? e, { status: g, setStatus: d }); return c.partialRight(Kt, (r == null ? void 0 : r.code) ?? e, { status: g, setStatus: d });
case "component": case "component":
case "fsdpf-component": case "fsdpf-component":
return c.partialRight(_t, e, r, a); return c.partialRight(_t, e, r, a);
case "grid-layout-form": case "grid-layout-form":
return c.partialRight(Li, e, r, a);
case "data-list":
return c.partialRight(Vi, e, r, a); return c.partialRight(Vi, e, r, a);
case "data-list":
return c.partialRight(Ii, e, r, a);
case "destroy": case "destroy":
return c.partialRight(Ai, e, r, a); return c.partialRight(Li, e, r, a);
default: default:
if (Et(e) || x.isValidElement(e)) return c.partialRight(_t, e, r, a); if (Et(e) || x.isValidElement(e)) return c.partialRight(_t, e, r, a);
if (c.isFunction(e)) return c.partialRight(Kt, (r == null ? void 0 : r.code) || e, { status: g, setStatus: d }); if (c.isFunction(e)) return c.partialRight(Kt, (r == null ? void 0 : r.code) || e, { status: g, setStatus: d });
@ -826,8 +826,8 @@ const ji = (e, t, n, i) => ke.redirect(n, t, i), Ai = (e, t = {}, n, i = {}) =>
const z = (F, J = !1) => (m(F), !F && b("hover"), F ? l == null ? void 0 : l(C) : s == null ? void 0 : s(J)), N = (F) => { const z = (F, J = !1) => (m(F), !F && b("hover"), F ? l == null ? void 0 : l(C) : s == null ? void 0 : s(J)), N = (F) => {
m(!0), b("click"); m(!0), b("click");
}; };
return u(Un, { zIndex: q, placement: $, onPopupClick: N, onClick: N, open: f, align: V, arrow: B, trigger: h, getPopupContainer: M, content: u(Mi, { ...R, extras: d, children: v && x.cloneElement(v, { ...C, $close: (F) => z(!1, F) }) }), children: g, onOpenChange: z }); return u(Un, { zIndex: q, placement: $, onPopupClick: N, onClick: N, open: f, align: V, arrow: B, trigger: h, getPopupContainer: M, content: u(zi, { ...R, extras: d, children: v && x.cloneElement(v, { ...C, $close: (F) => z(!1, F) }) }), children: g, onOpenChange: z });
}, Mi = ({ title: e, className: t, children: n, extras: i, width: r, height: a, ...o }) => { }, zi = ({ title: e, className: t, children: n, extras: i, width: r, height: a, ...o }) => {
const [s, l] = O({}), g = X((m, h) => l((b) => ({ ...b, [m]: h })), []), d = X((m) => l((h) => ({ ...h, [m]: void 0 })), []), p = e ? x.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title, f = i ?? x.createElement("div", { className: "ff-popup-reserved-extras" }, i); const [s, l] = O({}), g = X((m, h) => l((b) => ({ ...b, [m]: h })), []), d = X((m) => l((h) => ({ ...h, [m]: void 0 })), []), p = e ? x.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title, f = i ?? x.createElement("div", { className: "ff-popup-reserved-extras" }, i);
return u(He.Provider, { value: { ele: s, mount: g, unmount: d }, children: j("div", { className: I("ff-popup ff-popover", t, s.rootClassName), style: { width: r, height: a }, ...o, children: [j("div", { className: "ff-popup-header", children: [p, s == null ? void 0 : s["sub-title"]] }), n, j("div", { className: "ff-popup-footer", children: [f, s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) }); return u(He.Provider, { value: { ele: s, mount: g, unmount: d }, children: j("div", { className: I("ff-popup ff-popover", t, s.rootClassName), style: { width: r, height: a }, ...o, children: [j("div", { className: "ff-popup-header", children: [p, s == null ? void 0 : s["sub-title"]] }), n, j("div", { className: "ff-popup-footer", children: [f, s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) });
}; };
@ -836,7 +836,7 @@ const _e = (e) => function({ className: t, variant: n, children: i, name: r, ico
}, widgetType: k, widgetData: v, widgetProps: S, widgetSetting: $, widgetContainerProps: V, ...q }) { }, widgetType: k, widgetData: v, widgetProps: S, widgetSetting: $, widgetContainerProps: V, ...q }) {
const { mode: B, ...M } = V || {}, R = xn({ className: t, name: r, type: o, icon: a, iconPosition: s }, n ?? e), z = u(Ze, { ...R, ...q, children: i || r }); const { mode: B, ...M } = V || {}, R = xn({ className: t, name: r, type: o, icon: a, iconPosition: s }, n ?? e), z = u(Ze, { ...R, ...q, children: i || r });
if (B === "popover" && !["destroy", "redirect", "func"].includes(k)) return u(lt, { data: p, widget: C, widgetType: k, widgetData: v, widgetProps: S, widgetSetting: $, widgetContainerProps: M, onAfterClick: g, onBeforeClick: d, children: z }); if (B === "popover" && !["destroy", "redirect", "func"].includes(k)) return u(lt, { data: p, widget: C, widgetType: k, widgetData: v, widgetProps: S, widgetSetting: $, widgetContainerProps: M, onAfterClick: g, onBeforeClick: d, children: z });
const N = c.isEmpty(h) || !h.enabled ? {} : h, F = c.isEmpty(b) ? { enabled: !1 } : Object.assign({ enabled: !0 }, b), [J, de] = O(!1), [Se, { disabled: Ne, loading: $e }] = Ii({ widget: C, widgetType: k, widgetData: v, widgetProps: S, widgetSetting: $, widgetContainerProps: M }, { onAfterClick: g, onBeforeClick: d }); const N = c.isEmpty(h) || !h.enabled ? {} : h, F = c.isEmpty(b) ? { enabled: !1 } : Object.assign({ enabled: !0 }, b), [J, de] = O(!1), [Se, { disabled: Ne, loading: $e }] = Mi({ widget: C, widgetType: k, widgetData: v, widgetProps: S, widgetSetting: $, widgetContainerProps: M }, { onAfterClick: g, onBeforeClick: d });
return u(Hn, { okText: "确定", cancelText: "取消", getPopupContainer: (K) => K, ...F, disabled: Ne || m, open: J, onOpenChange: (K) => { return u(Hn, { okText: "确定", cancelText: "取消", getPopupContainer: (K) => K, ...F, disabled: Ne || m, open: J, onOpenChange: (K) => {
if (!K) return de(K); if (!K) return de(K);
F.enabled ? de(K) : Se(p); F.enabled ? de(K) : Se(p);
@ -847,7 +847,7 @@ const _e = (e) => function({ className: t, variant: n, children: i, name: r, ico
}, children: u(Jn, { getPopupContainer: (K) => K, ...N, title: J ? null : N == null ? void 0 : N.title, trigger: ["hover", "click"], children: x.cloneElement(z, { loading: $e || f, disabled: Ne || m }) }) }); }, children: u(Jn, { getPopupContainer: (K) => K, ...N, title: J ? null : N == null ? void 0 : N.title, trigger: ["hover", "click"], children: x.cloneElement(z, { loading: $e || f, disabled: Ne || m }) }) });
}, T = _e("default"); }, T = _e("default");
T.propTypes = { type: w.oneOf(["primary", "default", "danger", ""]), size: w.oneOf(["large", "middle", "small"]), name: w.string, icon: w.string, iconPosition: w.oneOf(["start", "end"]), data: w.any, widget: w.any, widgetType: w.oneOf(["destroy", "redirect", "func", "component", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: w.object, widgetProps: w.object, widgetSetting: w.object, widgetContainerProps: w.object, tooltip: w.exact({ title: w.string.isRequired, placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func }), confirm: w.exact({ title: w.string.isRequired, cancelText: w.string, okText: w.string, okType: w.oneOf(["primary", "default", "danger", ""]), placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func, arrow: w.oneOfType([w.bool, w.exact({ pointAtCenter: w.bool })]) }) }; T.propTypes = { type: w.oneOf(["primary", "default", "danger", ""]), size: w.oneOf(["large", "middle", "small"]), name: w.string, icon: w.string, iconPosition: w.oneOf(["start", "end"]), data: w.any, widget: w.any, widgetType: w.oneOf(["destroy", "redirect", "func", "component", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: w.object, widgetProps: w.object, widgetSetting: w.object, widgetContainerProps: w.object, tooltip: w.exact({ title: w.string.isRequired, placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func }), confirm: w.exact({ title: w.string.isRequired, cancelText: w.string, okText: w.string, okType: w.oneOf(["primary", "default", "danger", ""]), placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func, arrow: w.oneOfType([w.bool, w.exact({ pointAtCenter: w.bool })]) }) };
const zi = _e("link"), Bi = _e("circle"), Di = _e("round"), qi = _e("dashed"), Gt = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: n = (m, h, b) => { const Bi = _e("link"), Di = _e("circle"), qi = _e("round"), Wi = _e("dashed"), Gt = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: n = (m, h, b) => {
}, onBeforeClick: i = (m, h, b) => { }, onBeforeClick: i = (m, h, b) => {
}, labelVariant: r = "link", labelSize: a, labelRender: o, btnVariant: s, btnSize: l, btnRender: g = (m, h) => u(T, { ...m, data: h }, m.uuid || ht()), widgetContainerProps: d = {}, children: p, data: f }) => { }, labelVariant: r = "link", labelSize: a, labelRender: o, btnVariant: s, btnSize: l, btnRender: g = (m, h) => u(T, { ...m, data: h }, m.uuid || ht()), widgetContainerProps: d = {}, children: p, data: f }) => {
if (c.isEmpty(e)) return p; if (c.isEmpty(e)) return p;
@ -859,11 +859,11 @@ const zi = _e("link"), Bi = _e("circle"), Di = _e("round"), qi = _e("dashed"), G
const b = h.map((C) => g(Object.assign({ uuid: C.uuid, type: C.type, name: C.name, widget: C.widget, widgetType: C.widgetType, widgetProps: C.widgetProps, widgetData: C.widgetData, widgetSetting: C.widgetSetting, widgetContainerProps: C.widgetContainerSetting, confirm: C.confirm, onAfterClick: c.partialRight(n, C, f), onBeforeClick: c.partialRight(i, C, f) }, { size: l, variant: s }), f)); const b = h.map((C) => g(Object.assign({ uuid: C.uuid, type: C.type, name: C.name, widget: C.widget, widgetType: C.widgetType, widgetProps: C.widgetProps, widgetData: C.widgetData, widgetSetting: C.widgetSetting, widgetContainerProps: C.widgetContainerSetting, confirm: C.confirm, onAfterClick: c.partialRight(n, C, f), onBeforeClick: c.partialRight(i, C, f) }, { size: l, variant: s }), f));
return u(lt, { widget: m == null ? void 0 : m.widget, widgetType: m == null ? void 0 : m.widgetType, widgetProps: m == null ? void 0 : m.widgetProps, widgetSetting: m == null ? void 0 : m.widgetSetting, widgetContainerProps: Object.assign({}, d, m == null ? void 0 : m.widgetContainerProps), data: f, widgetData: m == null ? void 0 : m.widgetData, extras: b, onAfterClick: c.partialRight(n, m, f), onBeforeClick: c.partialRight(i, m, f), children: p }); return u(lt, { widget: m == null ? void 0 : m.widget, widgetType: m == null ? void 0 : m.widgetType, widgetProps: m == null ? void 0 : m.widgetProps, widgetSetting: m == null ? void 0 : m.widgetSetting, widgetContainerProps: Object.assign({}, d, m == null ? void 0 : m.widgetContainerProps), data: f, widgetData: m == null ? void 0 : m.widgetData, extras: b, onAfterClick: c.partialRight(n, m, f), onBeforeClick: c.partialRight(i, m, f), children: p });
}; };
Gt.propTypes = { triggerWeights: w.array, options: w.arrayOf(w.shape({ ...T.propTypes, widgetType: T.propTypes.widgetType.isRequired })), btnSize: T.propTypes.size, btnRender: w.func, btnVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: w.func, labelSize: T.propTypes.size, onAfterClick: w.func, onBeforeClick: w.func, widgetContainerProps: T.propTypes.widgetContainerProps, data: T.propTypes.data }, T.Link = zi, T.Link.defaultProps = T.defaultProps, T.Link.propTypes = T.propTypes, T.Circle = Bi, T.Circle.defaultProps = T.defaultProps, T.Circle.propTypes = T.propTypes, T.Round = Di, T.Round.defaultProps = T.defaultProps, T.Round.propTypes = T.propTypes, T.Dashed = qi, T.Dashed.defaultProps = T.defaultProps, T.Dashed.propTypes = T.propTypes, T.Popover = lt, T.GroupPopover = Gt; Gt.propTypes = { triggerWeights: w.array, options: w.arrayOf(w.shape({ ...T.propTypes, widgetType: T.propTypes.widgetType.isRequired })), btnSize: T.propTypes.size, btnRender: w.func, btnVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: w.func, labelSize: T.propTypes.size, onAfterClick: w.func, onBeforeClick: w.func, widgetContainerProps: T.propTypes.widgetContainerProps, data: T.propTypes.data }, T.Link = Bi, T.Link.defaultProps = T.defaultProps, T.Link.propTypes = T.propTypes, T.Circle = Di, T.Circle.defaultProps = T.defaultProps, T.Circle.propTypes = T.propTypes, T.Round = qi, T.Round.defaultProps = T.defaultProps, T.Round.propTypes = T.propTypes, T.Dashed = Wi, T.Dashed.defaultProps = T.defaultProps, T.Dashed.propTypes = T.propTypes, T.Popover = lt, T.GroupPopover = Gt;
const Wi = ({ fields: e, formProps: t, $close: n }) => { const Ui = ({ fields: e, formProps: t, $close: n }) => {
const [i] = te.useForm(), r = H(() => [{ name: "__PROPS__", value: t }], [t]); const [i] = te.useForm(), r = H(() => [{ name: "__PROPS__", value: t }], [t]);
return u(Y, { actions: j(x.Fragment, { children: [u(T, { name: "取消", widget: () => n(!1) }), u(T, { name: "确定", type: "primary", widget: () => i.validateFields(!0).then(n) })] }), children: u(te, { fields: r, form: i, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: a, ...o }) => u(Cn, { code: a, ...o }, a)) }) }); return u(Y, { actions: j(x.Fragment, { children: [u(T, { name: "取消", widget: () => n(!1) }), u(T, { name: "确定", type: "primary", widget: () => i.validateFields(!0).then(n) })] }), children: u(te, { fields: r, form: i, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: a, ...o }) => u(Cn, { code: a, ...o }, a)) }) });
}, Ui = ({ className: e, $close: t, children: n, title: i, subTitle: r, actions: a, extras: o, ...s }) => j(Zn, { ...s, prefixCls: "ff-drawer", className: I("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (l) => ({ motionAppear: !0, motionName: `panel-motion-${l}` }), children: [j("div", { className: "ff-popup-header", children: [u("button", { "aria-label": "Close", className: "ff-popup-close", onClick: s.onClose, children: u($t, { type: "close" }) }), i, r] }), u("div", { className: "ff-popup-body", children: n }), j("div", { className: "ff-popup-footer", children: [o, a] })] }), Hi = ({ className: e, $close: t, $event: n, children: i, title: r, subTitle: a, actions: o, extras: s, placement: l, ...g }) => { }, Hi = ({ className: e, $close: t, children: n, title: i, subTitle: r, actions: a, extras: o, ...s }) => j(Zn, { ...s, prefixCls: "ff-drawer", className: I("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (l) => ({ motionAppear: !0, motionName: `panel-motion-${l}` }), children: [j("div", { className: "ff-popup-header", children: [u("button", { "aria-label": "Close", className: "ff-popup-close", onClick: s.onClose, children: u($t, { type: "close" }) }), i, r] }), u("div", { className: "ff-popup-body", children: n }), j("div", { className: "ff-popup-footer", children: [o, a] })] }), Ji = ({ className: e, $close: t, $event: n, children: i, title: r, subTitle: a, actions: o, extras: s, placement: l, ...g }) => {
const d = (n == null ? void 0 : n.pageX) === void 0 ? { animation: null, maskAnimation: null, mousePosition: { x: null, y: null } } : { animation: "zoom", maskAnimation: "fade", mousePosition: { x: n == null ? void 0 : n.pageX, y: n == null ? void 0 : n.pageY } }; const d = (n == null ? void 0 : n.pageX) === void 0 ? { animation: null, maskAnimation: null, mousePosition: { x: null, y: null } } : { animation: "zoom", maskAnimation: "fade", mousePosition: { x: n == null ? void 0 : n.pageX, y: n == null ? void 0 : n.pageY } };
return u(ei, { ...g, ...d, prefixCls: "ff-modal", modalRender: () => j("div", { className: I("ff-modal-content ff-popup", e), children: [j("div", { className: "ff-popup-header", children: [u("button", { "aria-label": "Close", className: "ff-popup-close", onClick: g.onClose, children: u($t, { type: "close" }) }), r, a] }), u("div", { className: "ff-popup-body", children: i }), j("div", { className: "ff-popup-footer", children: [s, o] })] }) }); return u(ei, { ...g, ...d, prefixCls: "ff-modal", modalRender: () => j("div", { className: I("ff-modal-content ff-popup", e), children: [j("div", { className: "ff-popup-header", children: [u("button", { "aria-label": "Close", className: "ff-popup-close", onClick: g.onClose, children: u($t, { type: "close" }) }), r, a] }), u("div", { className: "ff-popup-body", children: i }), j("div", { className: "ff-popup-footer", children: [s, o] })] }) });
}, Sn = ({ placement: e, $close: t, $event: n, children: i, title: r, ...a }) => { }, Sn = ({ placement: e, $close: t, $event: n, children: i, title: r, ...a }) => {
@ -872,7 +872,7 @@ const Wi = ({ fields: e, formProps: t, $close: n }) => {
const m = () => { const m = () => {
t(!1); t(!1);
}; };
return u(He.Provider, { value: { ele: o, mount: d, unmount: p }, children: e && e !== "center" ? u(Ui, { ...f, placement: e, open: l, afterOpenChange: (h) => !h && m() }) : u(Hi, { ...f, visible: l, afterClose: m }) }); return u(He.Provider, { value: { ele: o, mount: d, unmount: p }, children: e && e !== "center" ? u(Hi, { ...f, placement: e, open: l, afterOpenChange: (h) => !h && m() }) : u(Ji, { ...f, visible: l, afterClose: m }) });
}; };
Sn.propTypes = { placement: w.oneOf(["center", "left", "top", "right", "bottom"]) }; Sn.propTypes = { placement: w.oneOf(["center", "left", "top", "right", "bottom"]) };
const _ = () => { const _ = () => {
@ -895,7 +895,7 @@ const _ = () => {
_.$popups = /* @__PURE__ */ new Map(), _.$index = 0, _.$queue = [], _.$onClick = (...e) => new Promise((t, n) => { _.$popups = /* @__PURE__ */ new Map(), _.$index = 0, _.$queue = [], _.$onClick = (...e) => new Promise((t, n) => {
_.$queue.push([e, t, n]); _.$queue.push([e, t, n]);
}); });
const Yt = (e, t, n = {}) => _.$onClick(e, t, n), pt = (e, { showProgress: t, duration: n, ...i } = { duration: 1.5 }) => _.$onClick(rn, { content: e, ...i }, { showProgress: t, duration: n }), G = { modal: Yt, confirm: (e, t = {}) => _.$onClick(ti, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => Yt(Wi, { formProps: n, fields: e }, { placement: "center", ...t }).then((i) => { const Yt = (e, t, n = {}) => _.$onClick(e, t, n), pt = (e, { showProgress: t, duration: n, ...i } = { duration: 1.5 }) => _.$onClick(rn, { content: e, ...i }, { showProgress: t, duration: n }), G = { modal: Yt, confirm: (e, t = {}) => _.$onClick(ti, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => Yt(Ui, { formProps: n, fields: e }, { placement: "center", ...t }).then((i) => {
if (i === !1) throw !1; if (i === !1) throw !1;
return i; return i;
}), notification: pt, success: (e, t = { duration: 1.5 }) => pt(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => pt(e, { ...t, className: "ff-notification-error", icon: "close" }) }; }), notification: pt, success: (e, t = { duration: 1.5 }) => pt(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => pt(e, { ...t, className: "ff-notification-error", icon: "close" }) };
@ -986,16 +986,16 @@ const oe = class oe {
}; };
Ce = new WeakMap(), Ae = new WeakMap(), E(oe, Ce, null), P(oe, "getInstance", () => (y(oe, Ce) || U(oe, Ce, new oe()), y(oe, Ce))); Ce = new WeakMap(), Ae = new WeakMap(), E(oe, Ce, null), P(oe, "getInstance", () => (y(oe, Ce) || U(oe, Ce, new oe()), y(oe, Ce)));
let Nt = oe; let Nt = oe;
const le = Nt.getInstance(), Ji = x.createContext({ user: {}, initUser: () => { const le = Nt.getInstance(), Ki = x.createContext({ user: {}, initUser: () => {
}, initUserComplete: !1 }), Ki = x.createContext({ set: () => { }, initUserComplete: !1 }), _i = x.createContext({ set: () => {
}, get: () => { }, get: () => {
}, assign: () => { }, assign: () => {
}, currentRoute: () => { }, currentRoute: () => {
} }), Et = (e) => !!(e != null && e.name) && (e.prototype instanceof x.Component || /^[A-Z]/.test(e.name)), _i = (e, t) => { } }), Et = (e) => !!(e != null && e.name) && (e.prototype instanceof x.Component || /^[A-Z]/.test(e.name)), Gi = (e, t) => {
if (!e || typeof window > "u") return; if (!e || typeof window > "u") return;
let n = document.querySelector(`style[ff-style-token="${t}"]`); let n = document.querySelector(`style[ff-style-token="${t}"]`);
return n ? (n.innerHTML = e, e) : (n = document.createElement("style"), n.setAttribute("ff-style-token", t), n.setAttribute("type", "text/css"), n.innerHTML = e, document.head.appendChild(n), e); return n ? (n.innerHTML = e, e) : (n = document.createElement("style"), n.setAttribute("ff-style-token", t), n.setAttribute("type", "text/css"), n.innerHTML = e, document.head.appendChild(n), e);
}, Gi = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Ji, AppGlobalParamsContext: Ki, cache: tn, configure: Ie, default: le, func: xe, http: A, insertStyle: _i, isReactComponent: Et, route: ke }, Symbol.toStringTag, { value: "Module" })); }, Yi = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Ki, AppGlobalParamsContext: _i, cache: tn, configure: Ie, default: le, func: xe, http: A, insertStyle: Gi, isReactComponent: Et, route: ke }, Symbol.toStringTag, { value: "Module" }));
export { export {
Cn as $, Cn as $,
ki as A, ki as A,
@ -1003,27 +1003,27 @@ export {
di as C, di as C,
et as D, et as D,
ai as E, ai as E,
br as F, Cr as F,
xr as G, Sr as G,
yi as H, yi as H,
Cr as I, kr as I,
cn as J, cn as J,
Ct as K, Ct as K,
si as L, si as L,
oi as M, oi as M,
xi as N, xi as N,
Si as O, Si as O,
Sr as P, vr as P,
vr as Q, Pr as Q,
pn as R, pn as R,
st as S, st as S,
Pr as T, Tr as T,
Tr as U, Nr as U,
Ke as V, Ke as V,
ot as W, ot as W,
Nr as X, $r as X,
$r as Y, Rr as Y,
Ei as Z, ji as Z,
Ft as _, Ft as _,
an as a, an as a,
kn as a0, kn as a0,
@ -1031,41 +1031,41 @@ export {
Ti as a2, Ti as a2,
Ni as a3, Ni as a3,
$i as a4, $i as a4,
Rr as a5, Ri as a5,
bn as a6, bn as a6,
Ri as a7, Fi as a7,
Fr as a8, Fr as a8,
Pt as a9, Pt as a9,
T as aa, T as aa,
ni as ab, ni as ab,
Ii as ac, Mi as ac,
Y as ad, Y as ad,
He as ae, He as ae,
nn as af, nn as af,
_ as ag, _ as ag,
G as ah, G as ah,
gr as ai, pr as ai,
pr as aj, mr as aj,
mr as ak, hr as ak,
le as al, le as al,
Et as am, Et as am,
_i as an, Gi as an,
A as ao, A as ao,
tn as ap, tn as ap,
Ie as aq, Ie as aq,
xe as ar, xe as ar,
ke as as, ke as as,
Ji as at, Ki as at,
Ki as au, _i as au,
Je as b, Je as b,
fr as c, yr as c,
sn as d, sn as d,
yr as e, wr as e,
wr as f, br as f,
ii as g, ii as g,
ri as h, ri as h,
dn as i, dn as i,
kr as j, xr as j,
mn as k, mn as k,
fn as l, fn as l,
bi as m, bi as m,
@ -1076,7 +1076,7 @@ export {
gt as r, gt as r,
hi as s, hi as s,
ee as t, ee as t,
hr as u, fr as u,
mi as v, mi as v,
gi as w, gi as w,
Rt as x, Rt as x,

2
dist/components.js vendored
View File

@ -1,4 +1,4 @@
import { ai as s, a9 as p, aj as n, ak as t, ah as d } from "./common/main-UvNID6kN.js"; import { ai as s, a9 as p, aj as n, ak as t, ah as d } from "./common/main-P7YFOc1H.js";
export { export {
s as Empty, s as Empty,
p as Icon, p as Icon,

2
dist/container.js vendored
View File

@ -1,4 +1,4 @@
import { ae as o, ai as s, aj as d, ak as p, af as t, ah as n, ag as r, ad as u } from "./common/main-UvNID6kN.js"; import { ae as o, ai as s, aj as d, ak as p, af as t, ah as n, ag as r, ad as u } from "./common/main-P7YFOc1H.js";
export { export {
o as Context, o as Context,
s as Empty, s as Empty,

View File

@ -1,6 +1,6 @@
import "lodash"; import "lodash";
import "react"; import "react";
import { D as p } from "./common/main-UvNID6kN.js"; import { D as p } from "./common/main-P7YFOc1H.js";
export { export {
p as default p as default
}; };

2
dist/data-list.js vendored
View File

@ -1,4 +1,4 @@
import { A as t, y as e, q as r, w as o, B as i, x as u, v as D, z as l, s as L, C as n, p, E as m, M as C, I as c, K as F, J as b, L as d, F as k } from "./common/main-UvNID6kN.js"; import { A as t, y as e, q as r, w as o, B as i, x as u, v as D, z as l, s as L, C as n, p, E as m, M as C, I as c, K as F, J as b, L as d, F as k } from "./common/main-P7YFOc1H.js";
export { export {
t as DataListContent, t as DataListContent,
e as DataListContext, e as DataListContext,

View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { k as a } from "../common/main-UvNID6kN.js"; import { k as a } from "../common/main-P7YFOc1H.js";
export { export {
a as getDefaultExpandRowKeys a as getDefaultExpandRowKeys
}; };

View File

@ -1,4 +1,4 @@
import { _ as e, a0 as r, $ as u, Z as o, a6 as t, a5 as m, a3 as F, a4 as d, a8 as i, a2 as g, a1 as l, a7 as n } from "./common/main-UvNID6kN.js"; import { _ as e, a0 as r, $ as u, Z as o, a6 as t, a5 as m, a3 as F, a4 as d, a8 as i, a2 as g, a1 as l, a7 as n } from "./common/main-P7YFOc1H.js";
export { export {
e as GridLayoutForm, e as GridLayoutForm,
r as GridLayoutFormHelper, r as GridLayoutFormHelper,

View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { g as o, a as g } from "../common/main-UvNID6kN.js"; import { g as o, a as g } from "../common/main-P7YFOc1H.js";
export { export {
o as getOptionItemByValue, o as getOptionItemByValue,
g as getWidgetByNormalize g as getWidgetByNormalize

2
dist/grid-layout.js vendored
View File

@ -1,4 +1,4 @@
import { l as d, m as e, H as i, G as o, n as t, o as u } from "./common/main-UvNID6kN.js"; import { l as d, m as e, H as i, G as o, n as t, o as u } from "./common/main-P7YFOc1H.js";
export { export {
d as GridLayout, d as GridLayout,
e as GridLayoutWidget, e as GridLayoutWidget,

View File

@ -1,4 +1,4 @@
import { i as o, j as a } from "../common/main-UvNID6kN.js"; import { i as o, j as a } from "../common/main-P7YFOc1H.js";
export { export {
o as getBoxStyle, o as getBoxStyle,
a as getWidgetByNormalize a as getWidgetByNormalize

2
dist/hooks.js vendored
View File

@ -1,7 +1,7 @@
import "lodash"; import "lodash";
import "rc-field-form"; import "rc-field-form";
import "react"; import "react";
import { W as r, V as o, X as p, T as f, U as i, Y as m, S as c } from "./common/main-UvNID6kN.js"; import { W as r, V as o, X as p, T as f, U as i, Y as m, S as c } from "./common/main-P7YFOc1H.js";
import { default as S } from "rc-util/lib/hooks/useMergedState"; import { default as S } from "rc-util/lib/hooks/useMergedState";
export { export {
r as useDeepEffect, r as useDeepEffect,

2
dist/iconfont.js vendored
View File

@ -2,7 +2,7 @@ import "react/jsx-runtime";
import "react"; import "react";
import "prop-types"; import "prop-types";
import "classnames"; import "classnames";
import { a9 as a } from "./common/main-UvNID6kN.js"; import { a9 as a } from "./common/main-P7YFOc1H.js";
export { export {
a as default a as default
}; };

2
dist/index.js vendored
View File

@ -1,4 +1,4 @@
import { at as t, au as e, ap as o, aq as n, al as p, ar as r, ao as c, an as l, am as u, as as f } from "./common/main-UvNID6kN.js"; import { at as t, au as e, ap as o, aq as n, al as p, ar as r, ao as c, an as l, am as u, as as f } from "./common/main-P7YFOc1H.js";
export { export {
t as AppContext, t as AppContext,
e as AppGlobalParamsContext, e as AppGlobalParamsContext,

2
dist/pages.js vendored
View File

@ -1,4 +1,4 @@
import { O as t, N as e, P as o, Q as P } from "./common/main-UvNID6kN.js"; import { O as t, N as e, P as o, Q as P } from "./common/main-P7YFOc1H.js";
export { export {
t as CustomPage, t as CustomPage,
e as DataListPage, e as DataListPage,

2
dist/res-ws.js vendored
View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { R as a } from "./common/main-UvNID6kN.js"; import { R as a } from "./common/main-P7YFOc1H.js";
export { export {
a as default a as default
}; };

2
dist/utils.js vendored
View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { d as r, e as g, c as o, f as i, b as m, h as p, r as P, t as d, u as h } from "./common/main-UvNID6kN.js"; import { d as r, e as g, c as o, f as i, b as m, h as p, r as P, t as d, u as h } from "./common/main-P7YFOc1H.js";
import "./common/vender-CtjyT19B.js"; import "./common/vender-CtjyT19B.js";
export { export {
r as deepSome, r as deepSome,