From 0849a0eae824175a0d2d482d5e5bc86438718657 Mon Sep 17 00:00:00 2001 From: what Date: Sun, 28 Sep 2025 16:40:05 +0800 Subject: [PATCH] v0.5.16 --- dist/button.js | 2 +- .../{main-UvNID6kN.js => main-P7YFOc1H.js} | 140 +++++++++--------- dist/components.js | 2 +- dist/container.js | 2 +- dist/data-converter.js | 2 +- dist/data-list.js | 2 +- dist/data-list/utils.js | 2 +- dist/grid-layout-form.js | 2 +- dist/grid-layout-form/utils.js | 2 +- dist/grid-layout.js | 2 +- dist/grid-layout/utils.js | 2 +- dist/hooks.js | 2 +- dist/iconfont.js | 2 +- dist/index.js | 2 +- dist/pages.js | 2 +- dist/res-ws.js | 2 +- dist/utils.js | 2 +- 17 files changed, 86 insertions(+), 86 deletions(-) rename dist/common/{main-UvNID6kN.js => main-P7YFOc1H.js} (96%) diff --git a/dist/button.js b/dist/button.js index e6d0409..a50cde7 100644 --- a/dist/button.js +++ b/dist/button.js @@ -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 { s as auth, u as default, diff --git a/dist/common/main-UvNID6kN.js b/dist/common/main-P7YFOc1H.js similarity index 96% rename from dist/common/main-UvNID6kN.js rename to dist/common/main-P7YFOc1H.js index 51a0633..c58e20d 100644 --- a/dist/common/main-UvNID6kN.js +++ b/dist/common/main-P7YFOc1H.js @@ -60,7 +60,7 @@ class tn { } } 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: () => { } }), 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); @@ -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; }; 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 })), []); 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); } 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; return (e === "x" ? t : 3 & t | 8).toString(16); -}), fr = (e) => { +}), yr = (e) => { var t, n; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){3}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.name : ""; -}, yr = (e) => { +}, wr = (e) => { var t, n; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){2}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.category : ""; -}, wr = (e) => { +}, br = (e) => { var t, n; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){1}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.owner : ""; }, 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); }), (t, n) => `${t}::${ee(n, "string")}`)); 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({}); return L(() => { 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; }, [e]), t; -}, Cr = (e, t = {}) => { +}, kr = (e, t = {}) => { const [n, i] = O({ dataSource: [] }); return Ke(() => { 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) => { 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; -}, 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; 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(() => { @@ -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 }) => { 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 }) }); -}, 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: [] }); return L(() => { 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 }) => { const { base62params: n } = Je(t, {}); 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(); L(() => { 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]); const a = Je(n, {}); return i ? x.cloneElement(i, a) : null; -}, vr = () => "NotFoundPage"; +}, Pr = () => "NotFoundPage"; var fe, Z, ye, we, We, Ue; const se = class se { constructor() { @@ -567,7 +567,7 @@ const D = class D { })); P(this, "clear", (t) => Re.postMessage({ session: t, category: "clear" })); if (y(D, be)) return y(D, be); - Promise.resolve().then(() => Gi).then((t) => { + Promise.resolve().then(() => Yi).then((t) => { 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 } }) => { 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 e = W(!0), [, t] = x.useReducer((n) => n + 1, 0); return L(() => () => e.current = !1, []), () => e.current && t(); -}, Pr = (e) => { +}, Tr = (e) => { const t = W(); return L(() => { t.current = e; }, [e]), t.current; -}, Tr = (e) => { +}, Nr = (e) => { const [t, n] = O(e), i = W(null), r = X((a, o) => { i.current = o, n(a); }, []); @@ -611,14 +611,14 @@ const xe = St.getInstance(), st = () => { 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)); 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; 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) => { s(ee(d, "array")); }).catch((d) => console.error("useOptions", d)) : e && s(ee(e, "array")); }, [e, t, g]), wn(o, n); -}, $r = (e) => { +}, Rr = (e) => { 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"; 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 }) }) => { 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); -}, [e, t, n]), Rr = (e, t, n, i) => { +}, [e, t, n]), Ri = (e, t, n, i) => { const r = Ni(t, n, i); L(() => { r ? e.setFieldsValue(r) : e.resetFields(); @@ -698,7 +698,7 @@ const xe = St.getInstance(), st = () => { s.current && (d(t), f(h)); }); }, [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) => { 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); @@ -725,17 +725,17 @@ const xe = St.getInstance(), st = () => { } }, [r]), (o, 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); return L(() => { n == "javascript" ? i(ee(a, e)) : t && i(ee(t, e)); }, [e, t, a]), null; }, 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(() => { - 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 }); -}, 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 M = Object.keys((t == null ? void 0 : t.extras) || {}); 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 })] }); }; 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 }) => { 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 }) => { 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) => { 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); }); var Ht; const kn = ({ $setting: e, $close: t, extras: n, code: i, primaryKey: r, ...a }) => { - const [o] = te.useForm(), s = useFormAction(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 }) }); + 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(ji, { form: o, code: i, primaryKey: r, ...a }) }); }, Jt = /* @__PURE__ */ new Set(), vt = (e = [], t = 0) => { const n = e[t]; 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.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; const r = (a = i.router) == null ? void 0 : a.reduce((o, [s, l, g]) => { 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; }, _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.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(() => { switch (t) { case "redirect": - return c.partialRight(ji, e, r); + return c.partialRight(Ai, e, r); case "func": return c.partialRight(Kt, (r == null ? void 0 : r.code) ?? e, { status: g, setStatus: d }); case "component": case "fsdpf-component": return c.partialRight(_t, e, r, a); case "grid-layout-form": - return c.partialRight(Li, e, r, a); - case "data-list": return c.partialRight(Vi, e, r, a); + case "data-list": + return c.partialRight(Ii, e, r, a); case "destroy": - return c.partialRight(Ai, e, r, a); + return c.partialRight(Li, e, r, a); default: 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 }); @@ -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) => { 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 }); -}, Mi = ({ title: e, className: t, children: n, extras: i, width: r, height: a, ...o }) => { + 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 }); +}, 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); 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 }) { 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 }); - 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) => { if (!K) return de(K); 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 }) }) }); }, 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 })]) }) }; -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) => { }, 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; @@ -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)); 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; -const Wi = ({ fields: e, formProps: t, $close: n }) => { +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 Ui = ({ fields: e, formProps: t, $close: n }) => { 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)) }) }); -}, 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 } }; 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 }) => { @@ -872,7 +872,7 @@ const Wi = ({ fields: e, formProps: t, $close: n }) => { const m = () => { 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"]) }; const _ = () => { @@ -895,7 +895,7 @@ const _ = () => { _.$popups = /* @__PURE__ */ new Map(), _.$index = 0, _.$queue = [], _.$onClick = (...e) => new Promise((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; 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" }) }; @@ -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))); let Nt = oe; -const le = Nt.getInstance(), Ji = x.createContext({ user: {}, initUser: () => { -}, initUserComplete: !1 }), Ki = x.createContext({ set: () => { +const le = Nt.getInstance(), Ki = x.createContext({ user: {}, initUser: () => { +}, initUserComplete: !1 }), _i = x.createContext({ set: () => { }, get: () => { }, assign: () => { }, 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; 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); -}, 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 { Cn as $, ki as A, @@ -1003,27 +1003,27 @@ export { di as C, et as D, ai as E, - br as F, - xr as G, + Cr as F, + Sr as G, yi as H, - Cr as I, + kr as I, cn as J, Ct as K, si as L, oi as M, xi as N, Si as O, - Sr as P, - vr as Q, + vr as P, + Pr as Q, pn as R, st as S, - Pr as T, - Tr as U, + Tr as T, + Nr as U, Ke as V, ot as W, - Nr as X, - $r as Y, - Ei as Z, + $r as X, + Rr as Y, + ji as Z, Ft as _, an as a, kn as a0, @@ -1031,41 +1031,41 @@ export { Ti as a2, Ni as a3, $i as a4, - Rr as a5, + Ri as a5, bn as a6, - Ri as a7, + Fi as a7, Fr as a8, Pt as a9, T as aa, ni as ab, - Ii as ac, + Mi as ac, Y as ad, He as ae, nn as af, _ as ag, G as ah, - gr as ai, - pr as aj, - mr as ak, + pr as ai, + mr as aj, + hr as ak, le as al, Et as am, - _i as an, + Gi as an, A as ao, tn as ap, Ie as aq, xe as ar, ke as as, - Ji as at, - Ki as au, + Ki as at, + _i as au, Je as b, - fr as c, + yr as c, sn as d, - yr as e, - wr as f, + wr as e, + br as f, ii as g, ri as h, dn as i, - kr as j, + xr as j, mn as k, fn as l, bi as m, @@ -1076,7 +1076,7 @@ export { gt as r, hi as s, ee as t, - hr as u, + fr as u, mi as v, gi as w, Rt as x, diff --git a/dist/components.js b/dist/components.js index 74501d3..6322bff 100644 --- a/dist/components.js +++ b/dist/components.js @@ -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 { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index afbc03f..f355aae 100644 --- a/dist/container.js +++ b/dist/container.js @@ -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 { o as Context, s as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index c94d45d..cfc9016 100644 --- a/dist/data-converter.js +++ b/dist/data-converter.js @@ -1,6 +1,6 @@ import "lodash"; import "react"; -import { D as p } from "./common/main-UvNID6kN.js"; +import { D as p } from "./common/main-P7YFOc1H.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index b0c86be..31c3409 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -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 { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index 3330af1..f5158ee 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { k as a } from "../common/main-UvNID6kN.js"; +import { k as a } from "../common/main-P7YFOc1H.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index db4cd2e..f6c634b 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -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 { e as GridLayoutForm, r as GridLayoutFormHelper, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index c55a13f..5f575ed 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ 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 { o as getOptionItemByValue, g as getWidgetByNormalize diff --git a/dist/grid-layout.js b/dist/grid-layout.js index 9821cb4..f7a022f 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -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 { d as GridLayout, e as GridLayoutWidget, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index f9db758..a4c7181 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -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 { o as getBoxStyle, a as getWidgetByNormalize diff --git a/dist/hooks.js b/dist/hooks.js index 865df0e..59bea98 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; 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"; export { r as useDeepEffect, diff --git a/dist/iconfont.js b/dist/iconfont.js index aa49f97..32662d9 100644 --- a/dist/iconfont.js +++ b/dist/iconfont.js @@ -2,7 +2,7 @@ import "react/jsx-runtime"; import "react"; import "prop-types"; import "classnames"; -import { a9 as a } from "./common/main-UvNID6kN.js"; +import { a9 as a } from "./common/main-P7YFOc1H.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index ef82194..4d7dd4e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index df8623e..28c71ef 100644 --- a/dist/pages.js +++ b/dist/pages.js @@ -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 { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index 42b28cf..03f6c47 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-UvNID6kN.js"; +import { R as a } from "./common/main-P7YFOc1H.js"; export { a as default }; diff --git a/dist/utils.js b/dist/utils.js index ad6324e..16922eb 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,5 +1,5 @@ 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"; export { r as deepSome,