diff --git a/dist/button.js b/dist/button.js index 29163e6..792276b 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { aa as s, a9 as u, ab as e } from "./common/main-CDGdxjIv.js"; +import { aa as s, a9 as u, ab as e } from "./common/main-DZ2sKQPT.js"; export { s as auth, u as default, diff --git a/dist/common/main-CDGdxjIv.js b/dist/common/main-DZ2sKQPT.js similarity index 96% rename from dist/common/main-CDGdxjIv.js rename to dist/common/main-DZ2sKQPT.js index caca7ca..d26857c 100644 --- a/dist/common/main-CDGdxjIv.js +++ b/dist/common/main-DZ2sKQPT.js @@ -14,16 +14,16 @@ var Vt = (e, t, i, n) => ({ } }); import { jsx as p, jsxs as j } from "react/jsx-runtime"; -import x, { useEffect as A, useState as E, useCallback as X, useMemo as U, useRef as W, useContext as ce, useId as Ze, isValidElement as Li, useLayoutEffect as Ai } from "react"; +import x, { useEffect as A, useState as E, useCallback as X, useMemo as U, useRef as W, useContext as ce, useId as Qe, isValidElement as Li, useLayoutEffect as Ai } from "react"; import w from "prop-types"; import M from "classnames"; import * as It from "react-is"; import { useNotification as Vi } from "rc-notification"; import d from "lodash"; import te, { FieldContext as Yt, Field as Xt } from "rc-field-form"; -import { M as Ge, N as je, a as Le, P as mt, S as Ii } from "./vender-CtjyT19B.js"; +import { M as dt, N as je, a as Le, P as mt, S as Ii } from "./vender-CtjyT19B.js"; import Qt from "immutability-helper"; -import { Form as Xe, Input as Mi, Button as et, Pagination as zi, Tree as Bi, Breadcrumb as Di, Table as qi, Empty as Wi, Popconfirm as Ui, Tooltip as Hi, Popover as Ji } from "antd"; +import { Form as Ye, Input as Mi, Button as Ze, Pagination as zi, Tree as Bi, Breadcrumb as Di, Table as qi, Empty as Wi, Popconfirm as Ui, Tooltip as Hi, Popover as Ji } from "antd"; import { useMergedState as Ki } from "rc-util"; import { generatePath as _i, useInRouterContext as Zt, useParams as Gi, useLocation as Yi, createBrowserRouter as Xi, Navigate as Qi } from "react-router-dom"; import "rc-util/lib/hooks/useMergedState"; @@ -65,11 +65,11 @@ const gr = () => p("div", { children: "Empty" }), We = x.createContext({ ele: {} } }), G = ({ rootClassName: e, className: t, children: i, actions: n, title: r, subTitle: a, extras: o, style: s = {} }) => { const { mount: l, unmount: u } = x.useContext(We); return G.Action({ children: n }), G.Title({ children: r }), G.SubTitle({ children: a }), G.Extra({ children: o }), A(() => (l("rootClassName", e), () => u(e)), [e]), p("div", { className: M("ff-container", t), style: s, children: i }); -}, Ye = (e) => ({ children: t, className: i }) => { +}, Ge = (e) => ({ children: t, className: i }) => { const { mount: n, unmount: r } = x.useContext(We); return A(() => (t && n(e, x.createElement("div", { key: `ff-${e}`, className: M(`ff-popup-${e}`, i) }, t)), () => r(e)), [i, t]), null; }; -G.Action = Ye("actions"), G.Title = Ye("title"), G.SubTitle = Ye("sub-title"), G.Extra = Ye("extras"), G.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any }; +G.Action = Ge("actions"), G.Title = Ge("title"), G.SubTitle = Ge("sub-title"), G.Extra = Ge("extras"), G.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any }; const pr = () => p(G, { className: "ff-loading", children: j("div", { className: "loader", children: [j("div", { className: "square", children: [p("span", {}), p("span", {}), p("span", {})] }), j("div", { className: "square", children: [p("span", {}), p("span", {}), p("span", {})] }), j("div", { className: "square", children: [p("span", {}), p("span", {}), p("span", {})] }), j("div", { className: "square", children: [p("span", {}), p("span", {}), p("span", {})] })] }) }), mr = () => p("div", { children: "NotFound" }), ti = ({ children: e }) => { const [t, i] = E({}), n = X((a, o) => i((s) => ({ ...s, [a]: o })), []), r = X((a) => i((o) => ({ ...o, [a]: void 0 })), []); return typeof (e == null ? void 0 : e.type) == "string" ? e : p(We.Provider, { value: { ele: t, mount: n, unmount: r }, children: x.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); @@ -183,17 +183,17 @@ const Ae = ft.getInstance(), zt = { null2json: (e) => Object.create(), null2arra return e ? (i = (t = e.match(/^@pkg(?:[^\/]*\/){1}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : i.owner : ""; }, oi = () => K.$index++, an = (e, t = 32, i = "auto") => { const n = yt(e), r = i === "auto" ? "x64" : i; - if (t === 32) return r === "x64" ? Ge.x64.hash32(n).toString() : Ge.x86.hash32(n).toString(); - if (t === 128) return r === "x64" ? Ge.x64.hash128(n) : Ge.x86.hash128(n); + if (t === 32) return dt.x86.hash32(n).toString(); + if (t === 128) return r === "x64" ? dt.x64.hash128(n) : dt.x86.hash128(n); throw new Error("bits 只能是 32 或 128"); }, yt = (e) => e == null ? "null" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "function" ? e.toString() : Array.isArray(e) ? "[" + e.map(yt).join(",") + "]" : typeof e == "object" ? "{" + Object.keys(e).sort().map((t) => `${t}:${yt(e[t])}`).join(",") + "}" : String(e); -var it, ze, Be, nt; -const rt = class rt { +var tt, ze, Be, it; +const nt = class nt { constructor(...t) { O(this, ze, []); O(this, Be, (t) => { var i; - for (let n of t) Array.isArray(n[0]) ? y(this, Be).call(this, n) : y(this, ze).push(y(i = rt, it).call(i, n[0], n[1])); + for (let n of t) Array.isArray(n[0]) ? y(this, Be).call(this, n) : y(this, ze).push(y(i = nt, tt).call(i, n[0], n[1])); }); v(this, "toValue", async (t, i = null) => { const n = { getValue: () => t, getRecord: () => i }; @@ -206,10 +206,10 @@ const rt = class rt { } }, t); }); - v(this, "toRender", (t, i, n = null) => x.createElement(y(this, nt), { value: t, record: i }, n)); - O(this, nt, ({ value: t, record: i, children: n }) => { + v(this, "toRender", (t, i, n = null) => x.createElement(y(this, it), { value: t, record: i }, n)); + O(this, it, ({ value: t, record: i, children: n }) => { const [r, a] = E(n); - return lt(() => { + return ot(() => { let o = !1; return a(n), this.toValue(t, i).then((s) => ee(s, "string")).then((s) => !o && a(s)).catch((s) => !o && a(`${s}`)), () => o = !0; }, [t, i]), r; @@ -217,12 +217,12 @@ const rt = class rt { y(this, Be).call(this, t); } }; -it = new WeakMap(), ze = new WeakMap(), Be = new WeakMap(), nt = new WeakMap(), O(rt, it, d.memoize((t, i) => le.getWidgetComponent(t).then((n) => { +tt = new WeakMap(), ze = new WeakMap(), Be = new WeakMap(), it = new WeakMap(), O(nt, tt, d.memoize((t, i) => le.getWidgetComponent(t).then((n) => { var r; return ((r = n.default) == null ? void 0 : r.call(n, i)) || ((a) => a); }), (t, i) => `${t}::${ee(i, "string")}`)); -let tt = rt; -const sn = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: i, widgetByJsSetting: n, ...r }, a) => i ? { ...r, render: (o, s) => new tt([i, n]).toRender(o, s, "-") } : r), [e, t]), br = (e) => { +let et = nt; +const sn = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: i, widgetByJsSetting: n, ...r }, a) => i ? { ...r, render: (o, s) => new et([i, n]).toRender(o, s, "-") } : r), [e, t]), br = (e) => { const [t, i] = E({}); return A(() => { let n = !1; @@ -246,7 +246,7 @@ const sn = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: i, w return e.some(({ uuid: s }) => !s || !t.has(s) || t.get(s).some((l) => o.some((u) => u == l))); }, [e, i, t, a]); }, on = (e, t, i = "id", n = null) => { - const r = ot(), a = W(!1), o = W(e.dataSource), s = W(e.itemOperationsAccess); + const r = st(), a = W(!1), o = W(e.dataSource), s = W(e.itemOperationsAccess); return A(() => (o.current = e.dataSource, s.current = e.itemOperationsAccess, () => a.current = !1), [e.dataSource, e.itemOperationsAccess]), a.current && (e.dataSource = o.current, e.itemOperationsAccess = s.current), [e, (l = 0, u = null) => { var c, g; if (a.current = !1, l === 1) return (c = e.onReload) == null ? void 0 : c.call(e); @@ -269,12 +269,12 @@ const sn = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: i, w } }]; }, ln = (e, t) => { - const i = ot(), n = W(t), r = W(/* @__PURE__ */ new Map()), a = W([]), o = d.throttle((l) => { + const i = st(), n = W(t), r = W(/* @__PURE__ */ new Map()), a = W([]), o = d.throttle((l) => { a.current = [], L.list(e, d.pick({ ...n.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: u, condition: c, total: g, tab: h, sider: m, page: f, pageSize: C, operationsAccess: b, dataSource: k }) => { n.current = { tab: h, condition: c, sider: m, keyword: u, total: g, pageSize: C, page: k != null && k.length ? f : 1 }, a.current = k, r.current = new Map(b), i(); }); }, 380, { leading: !1, trailing: !0 }); - lt(() => { + ot(() => { a.current = [], e && o(t); }, [e, t]); const s = U(() => d.pick(n.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [n.current]); @@ -282,7 +282,7 @@ const sn = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: i, w }, cn = ({ listCode: e, className: t, layouts: i, dataSource: n, isPaginate: r, isItemOperations: a, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: u, resource: c, primaryKey: g, title: h, itemGridLayout: m, $setting: f, tabs: C, isConditionFormLayout: b, isTreeSider: k, treeSiderConfig: S }) => { const { classNames: $, onClickCallback: T } = ce(ie), I = d.pick(f, ["column", "colWidth", "beforeRender", "afterRender", "style"]), q = li(l, u, g, c), z = X((V, R, B) => p(dn, { className: M("ff-data-list-framework-item", $.item), operations: a ? q(R) : [], data: c ? { [c]: R } : R, children: V, onClickCallback: T }), [c, g, a, T, l, u]); return j("div", { className: M("ff-data-list-framework", t), children: [p(i.sider, { isTreeSider: k, ...S }), j("div", { className: M("ff-data-list-container", $ == null ? void 0 : $.container), children: [p(i.filter, { isConditionFormLayout: b }), p(i.toolbar, { title: h, tabs: C }), p(xn, { ...I, ...m, primaryKey: g, itemRender: z, dataSource: n }), p(i.footer, { isPaginate: r, isOperations: o, operations: s })] })] }); -}, dn = ({ className: e, operations: t, children: i, data: n, onClickCallback: r }) => j("div", { className: M("data-list-grid-layout-item-container", e), children: [i, !!(t != null && t.length) && p("div", { className: "data-list-grid-layout-item-actions", children: t.map((a) => p("span", { className: "data-list-grid-layout-item-action", children: p(P.Link, { uuid: a.uuid, type: a.type, name: a.name, widget: a.widget, widgetType: a.widgetType, widgetProps: a.widgetProps, widgetSetting: a.widgetSetting, widgetContainerProps: a.widgetContainerSetting, data: n, confirm: a.confirm, onAfterClick: (o) => o !== !1 && (r == null ? void 0 : r(a.isRefresh, n)) }, a.uuid || Ze()) }, (a == null ? void 0 : a.uuid) || Ze())) })] }), un = ({ listCode: e, className: t, layouts: i, dataSource: n, columns: r, isItemOperations: a, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: u, resource: c, primaryKey: g, title: h, tabs: m, isPaginate: f, isTreeSider: C, treeSiderConfig: b, isConditionFormLayout: k, ...S }) => { +}, dn = ({ className: e, operations: t, children: i, data: n, onClickCallback: r }) => j("div", { className: M("data-list-grid-layout-item-container", e), children: [i, !!(t != null && t.length) && p("div", { className: "data-list-grid-layout-item-actions", children: t.map((a) => p("span", { className: "data-list-grid-layout-item-action", children: p(P.Link, { uuid: a.uuid, type: a.type, name: a.name, widget: a.widget, widgetType: a.widgetType, widgetProps: a.widgetProps, widgetSetting: a.widgetSetting, widgetContainerProps: a.widgetContainerSetting, data: n, confirm: a.confirm, onAfterClick: (o) => o !== !1 && (r == null ? void 0 : r(a.isRefresh, n)) }, a.uuid || Qe()) }, (a == null ? void 0 : a.uuid) || Qe())) })] }), un = ({ listCode: e, className: t, layouts: i, dataSource: n, columns: r, isItemOperations: a, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: u, resource: c, primaryKey: g, title: h, tabs: m, isPaginate: f, isTreeSider: C, treeSiderConfig: b, isConditionFormLayout: k, ...S }) => { const { classNames: $, onClickCallback: T } = ce(ie), I = li(l, u, g, c), q = wt(l, u, n, g, c); return j("div", { className: M("ff-data-table-framework", t), children: [p(i.sider, { isTreeSider: C, ...b }), j("div", { className: M("ff-data-table-container", $ == null ? void 0 : $.container), children: [p(i.filter, { isConditionFormLayout: k }), p(i.toolbar, { title: h, tabs: m }), p(yn, { ...S, primaryKey: g, className: "ff-data-table-content", columns: r, dataSource: n, operationRender: q ? (z) => { var V; @@ -302,23 +302,23 @@ const sn = (e, t = {}) => U(() => e == null ? void 0 : e.map(({ widgetByJs: i, w return r != null && r.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${n}`, 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"] = Bt(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"] = Bt(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; }, Bt = (e, t, i, n) => `${e || 0}px ${t || 0}px ${i || 0}px ${n || 0}px`, kr = (e = "Text", t = "@pkg/ff/grid-layouts") => e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, di = ({ className: e, isConditionFormLayout: t }) => { var h, m; - const [i, n] = E({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = x.useContext(ie), { keyword: u, condition: c } = (s == null ? void 0 : s()) || {}, [g] = Xe.useForm(); + const [i, n] = E({}), { listCode: r, onKeywordChange: a, onConditionChange: o, getBase62params: s, classNames: l } = x.useContext(ie), { keyword: u, condition: c } = (s == null ? void 0 : s()) || {}, [g] = Ye.useForm(); return A(() => { r && t && L.get(`/api/_/${r}/list-condition-form-layout`).then(({ resource: f, marginX: C, marginY: b, rowHeight: k, cols: S, fields: $ }) => { n({ resource: f, itemMargin: [C, b], rowHeight: k, cols: S, fields: $ }); }).catch(() => n({})); }, [r, t]), A(() => { g.setFieldsValue({ keyword: u, ...c }); - }, [JSON.stringify([u, c])]), p("div", { className: M("ff-data-list-filter", l.filter, e), children: p(Xe, { form: g, layout: "vertical", autoComplete: "off", onFinish: ((h = i.fields) == null ? void 0 : h.length) > 1 ? (f) => o({ [i.resource]: f[i.resource] }, f.keyword) : () => { + }, [JSON.stringify([u, c])]), p("div", { className: M("ff-data-list-filter", l.filter, e), children: p(Ye, { form: g, layout: "vertical", autoComplete: "off", onFinish: ((h = i.fields) == null ? void 0 : h.length) > 1 ? (f) => o({ [i.resource]: f[i.resource] }, f.keyword) : () => { }, onValuesChange: (f) => { d.isEmpty(d.omit(f, ["keyword"])) || g.submit(); }, children: ((m = i.fields) == null ? void 0 : m.length) > 1 ? p(Nt, { ...i, children: p(gn, { onReset: () => { const { keyword: f, condition: C } = s("init") || {}; g.setFieldsValue({ keyword: f, ...C }); - } }) }) : p("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: p("div", { className: "grid-layout-item", style: ci(20, 0, 5, 2), children: p(Xe.Item, { name: ["keyword"], children: p(Mi.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (f) => a(f) }) }) }) }) }) }); + } }) }) : p("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: p("div", { className: "grid-layout-item", style: ci(20, 0, 5, 2), children: p(Ye.Item, { name: ["keyword"], children: p(Mi.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (f) => a(f) }) }) }) }) }) }); }, gn = ({ cols: e, fields: t, onReset: i }) => { const [n, r] = E(!1), a = U(() => t == null ? void 0 : t.toReversed().some((o) => o.y > 1 || o.x + o.w >= e - 5), [e, t]); - return j(Xe.Item, { label: " ", style: { "--item-span": 5 }, className: M("ff-data-list-filter-actions", { expanded: n }), children: [p(et, { onClick: i, children: "重置" }), p(et, { type: "primary", htmlType: "submit", children: "查询" }), a && p(P.Link, { className: "ff-data-list-filter-expanded-button", widget: () => r((o) => !o), type: "primary", name: n ? "关闭" : "展开", icon: n ? "icon-up" : "icon-down", iconPosition: "end" })] }); + return j(Ye.Item, { label: " ", style: { "--item-span": 5 }, className: M("ff-data-list-filter-actions", { expanded: n }), children: [p(Ze, { onClick: i, children: "重置" }), p(Ze, { type: "primary", htmlType: "submit", children: "查询" }), a && p(P.Link, { className: "ff-data-list-filter-expanded-button", widget: () => r((o) => !o), type: "primary", name: n ? "关闭" : "展开", icon: n ? "icon-up" : "icon-down", iconPosition: "end" })] }); }; di.reservedFields = [{ x: 0, y: 0, h: 3, w: 5, field: { isVirtual: !0, widgetPrefix: "@pkg/ff/grid-layout-forms", widget: "Input", code: "keyword", label: "关键字", placeholder: "多关键字 | 分割", extras: { prefix: "icon-search" } } }]; const pn = ({ className: e, operations: t, isOperations: i, isPaginate: n }) => { @@ -353,12 +353,12 @@ const pn = ({ className: e, operations: t, isOperations: i, isPaginate: n }) => }, [t, i]), p(ie.Provider, { value: { classNames: T, listCode: a, onClickCallback: n, onReload: r, getBase62params: R, onPageChange: l, onPageSizeChange: c, onTabChange: h, onSiderChange: S, onKeywordChange: f, onConditionChange: b }, children: z && x.cloneElement(z, q) }); }; ui.propTypes = { classNames: w.exact({ sider: w.string, filter: w.string, footer: w.string, toolbar: w.string, container: w.string, content: w.string, item: w.string }), layouts: w.oneOfType([w.exact({ sider: w.oneOfType([w.elementType, w.element]), filter: w.oneOfType([w.elementType, w.element]), footer: w.oneOfType([w.elementType, w.element]), toolbar: w.oneOfType([w.elementType, w.element]) }), w.bool]) }; -var he, ge, Pe, at; +var he, ge, Pe, rt; const ae = class ae { constructor() { O(this, ge, null); O(this, Pe, /* @__PURE__ */ new Map()); - O(this, at, () => { + O(this, rt, () => { if (y(this, ge)) return y(this, ge).port.postMessage({ command: "status", data: [] }); H(this, ge, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), y(this, ge).port.onmessage = (t) => { var i, n; @@ -370,26 +370,26 @@ const ae = class ae { }); }, y(this, ge).port.postMessage({ command: "status", data: [] }); }); - v(this, "subscribe", (t, i = []) => (i ? Array.isArray(i) && i.length == 0 ? i = "*" : Array.isArray(i) || (i = [i].flat()) : i = "*", y(this, Pe).set(t, i), y(this, Pe).size == 1 && y(this, at).call(this), () => this.unsubscribe(t))); + v(this, "subscribe", (t, i = []) => (i ? Array.isArray(i) && i.length == 0 ? i = "*" : Array.isArray(i) || (i = [i].flat()) : i = "*", y(this, Pe).set(t, i), y(this, Pe).size == 1 && y(this, rt).call(this), () => this.unsubscribe(t))); v(this, "unsubscribe", (t) => y(this, Pe).delete(t)); if (y(ae, he)) return y(ae, he); } }; -he = new WeakMap(), ge = new WeakMap(), Pe = new WeakMap(), at = new WeakMap(), O(ae, he, null), v(ae, "getInstance", () => (y(ae, he) || H(ae, he, new ae()), y(ae, he))); +he = new WeakMap(), ge = new WeakMap(), Pe = new WeakMap(), rt = new WeakMap(), O(ae, he, null), v(ae, "getInstance", () => (y(ae, he) || H(ae, he, new ae()), y(ae, he))); let bt = ae; const gi = bt.getInstance(), Tt = x.forwardRef(({ listCode: e, base62params: t, className: i, theme: n, themeProps: r, layouts: a, classNames: o }, s) => { - const [{ resource: l, primaryKey: u, batchOperations: c = [], itemOperations: g = [], columns: h = [], themeConfig: m, theme: f, isConditionFormLayout: C = !1, isTreeSider: b, treeSiderConfig: k, isItemGridLayout: S, itemGridLayout: $, title: T, isPaginate: I, tabs: q }, z] = E({ isItemGridLayout: !1, itemGridLayout: {} }), V = ln(e, t), [{ dataSource: R, itemOperationsAccess: B, condition: N, tab: F, keyword: J, page: de, total: $e, pageSize: Y, sider: Ke, onConditionChange: ct, onTabChange: Ot, onKeywordChange: Si, onPageChange: vi, onPageSizeChange: Pi, onSiderChange: $i, onReload: dt, payload: Ti }, jt] = on(V, e, u, l), Ni = wt(g, B, R, u), Ri = wt(c); + const [{ resource: l, primaryKey: u, batchOperations: c = [], itemOperations: g = [], columns: h = [], themeConfig: m, theme: f, isConditionFormLayout: C = !1, isTreeSider: b, treeSiderConfig: k, isItemGridLayout: S, itemGridLayout: $, title: T, isPaginate: I, tabs: q }, z] = E({ isItemGridLayout: !1, itemGridLayout: {} }), V = ln(e, t), [{ dataSource: R, itemOperationsAccess: B, condition: N, tab: F, keyword: J, page: de, total: $e, pageSize: Y, sider: Ke, onConditionChange: lt, onTabChange: Ot, onKeywordChange: Si, onPageChange: vi, onPageSizeChange: Pi, onSiderChange: $i, onReload: ct, payload: Ti }, jt] = on(V, e, u, l), Ni = wt(g, B, R, u), Ri = wt(c); A(() => { let Q = null; return e && L.get(`/api/_/${e}`).resp(({ data: _e, res: Ei }) => { - _e != null && _e.isDynamicRefresh && (Q = gi.subscribe(() => dt(), Ei)), z(_e); + _e != null && _e.isDynamicRefresh && (Q = gi.subscribe(() => ct(), Ei)), z(_e); }).catch(() => z({})), () => Q == null ? void 0 : Q(); - }, [e]), x.useImperativeHandle(s, () => ({ onReload: dt, onClickCallback: jt })); - const Fi = { listCode: e, title: T, classNames: o, layouts: a, resource: l, primaryKey: u, theme: n || f, themeProps: r || m, isTreeSider: b, treeSiderConfig: k, isPaginate: I, tabs: q, isItemOperations: Ni, itemOperations: g == null ? void 0 : g.map((Q) => d.isEmpty(Q == null ? void 0 : Q.confirm) ? Q : { ...Q, confirm: Object.assign({}, Q.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Ri, batchOperations: c, isItemGridLayout: S, columns: h, itemGridLayout: $, isConditionFormLayout: C, itemOperationsAccess: B, dataSource: R, onConditionChange: ct, onTabChange: Ot, onKeywordChange: Si, onPageChange: vi, onPageSizeChange: Pi, onSiderChange: $i, condition: N, tab: F, keyword: J, page: de, total: $e, pageSize: Y, sider: Ke, payload: Ti }; - return p(ui, { ...Fi, className: M("ff-data-list-helper", i), onReload: dt, onClickCallback: jt }); + }, [e]), x.useImperativeHandle(s, () => ({ onReload: ct, onClickCallback: jt })); + const Fi = { listCode: e, title: T, classNames: o, layouts: a, resource: l, primaryKey: u, theme: n || f, themeProps: r || m, isTreeSider: b, treeSiderConfig: k, isPaginate: I, tabs: q, isItemOperations: Ni, itemOperations: g == null ? void 0 : g.map((Q) => d.isEmpty(Q == null ? void 0 : Q.confirm) ? Q : { ...Q, confirm: Object.assign({}, Q.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Ri, batchOperations: c, isItemGridLayout: S, columns: h, itemGridLayout: $, isConditionFormLayout: C, itemOperationsAccess: B, dataSource: R, onConditionChange: lt, onTabChange: Ot, onKeywordChange: Si, onPageChange: vi, onPageSizeChange: Pi, onSiderChange: $i, condition: N, tab: F, keyword: J, page: de, total: $e, pageSize: Y, sider: Ke, payload: Ti }; + return p(ui, { ...Fi, className: M("ff-data-list-helper", i), onReload: ct, onClickCallback: jt }); }), pi = (e, t, i = !0) => i !== !0 && i-- <= 0 ? [] : d.isArray(e) && !d.isEmpty(e) ? e.reduce((n, r) => (Reflect.has(r, t) && Reflect.has(r, "children") && n.push(r[t]), Reflect.has(r, "children") && !d.isEmpty(r.children) ? n.concat(pi(r.children, t, i)) : n), []) : [], yn = ({ className: e, primaryKey: t, columns: i = [], dataSource: n = [], operationRender: r, operationWidth: a = 180, ...o }) => { const { classNames: s } = ce(ie); - Ze(); + Qe(); const l = W(null), u = W(null), [c, g] = E([]), [h, m] = E({ width: 0, height: 0 }); A(() => { g(pi(n, t)); @@ -413,7 +413,7 @@ const gi = bt.getInstance(), Tt = x.forwardRef(({ listCode: e, base62params: t, }), [g]), A(() => { i == "javascript" && t ? xe.exec(t, {}, { getFieldValueForBasicForm: (f) => o ? o.getFieldValue(f) : l.getFieldValue(f), getFieldValue: (f) => l.getFieldValue(f) }).then((f) => h(ee(f, a))).catch((f) => notification.error({ message: `布局数据错误: ${JSON.stringify(f)}` })).finally(() => s.current = !0) : (t && h(ee(t ?? l.getFieldValue(e), a)), s.current = !0); }, [t, i]), He(() => { - s.current && n && new tt([n, r]).toValue(g, l.getFieldsValue(!0)).then(c).catch((f) => { + s.current && n && new et([n, r]).toValue(g, l.getFieldsValue(!0)).then(c).catch((f) => { c(f), console.error("布局数据转换错误: ", f, n); }); }, [g, n, r]), [u ?? g, g]; @@ -555,12 +555,12 @@ const se = class se { fe = new WeakMap(), Z = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), De = new WeakMap(), qe = new WeakMap(), O(se, fe, null), v(se, "getInstance", () => (y(se, fe) || H(se, fe, new se()), y(se, fe))); let Ct = se; const Pn = ({ to: e, replace: t }) => Zt() ? x.createElement(Qi, { to: e, replace: t }) : (window.document.location = e, "redirect"), ke = Ct.getInstance(), Te = new Worker(new URL("/ff-worker/index.js", self.location)), qt = { getConfigure: (e) => Ae.get(e), route: { redirect: (...e) => ke.redirect(...e), getPageParams: (...e) => ke.getPageParams(...e), getCurrentRoute: () => ke.getCurrentRoute() }, popup: { notification: (...e) => _.notification(...e), success: (...e) => _.success(...e), error: (...e) => _.error(...e), form: (...e) => _.form(...e), modal: (...e) => _.modal(...e), confirm: (...e) => _.confirm(...e) } }; -var st, Ee, be; +var at, Ee, be; const D = class D { constructor() { v(this, "exec", (t, i = {}, n = {}, r = "") => new Promise((a, o) => { if (!/^(?!\s*(\/\/|\/\*|\*)).*?\S+/m.test(t)) return a(); - const s = Vt(D, st)._++; + const s = Vt(D, at)._++; y(D, Ee).set(s, n), D.mQueue.set(s, [a, o]), Te.postMessage({ id: s, session: r, category: "eval", method: t, args: i }); })); v(this, "clear", (t) => Te.postMessage({ session: t, category: "clear" })); @@ -583,9 +583,9 @@ const D = class D { }, !1); } }; -st = new WeakMap(), Ee = new WeakMap(), be = new WeakMap(), v(D, "mQueue", /* @__PURE__ */ new Map()), O(D, st, 0), O(D, Ee, /* @__PURE__ */ new Map()), O(D, be, null), v(D, "getInstance", () => (y(D, be) || H(D, be, new D()), y(D, be))); +at = new WeakMap(), Ee = new WeakMap(), be = new WeakMap(), v(D, "mQueue", /* @__PURE__ */ new Map()), O(D, at, 0), O(D, Ee, /* @__PURE__ */ new Map()), O(D, be, null), v(D, "getInstance", () => (y(D, be) || H(D, be, new D()), y(D, be))); let kt = D; -const xe = kt.getInstance(), ot = () => { +const xe = kt.getInstance(), st = () => { const e = W(!0), [, t] = x.useReducer((i) => i + 1, 0); return A(() => () => e.current = !1, []), () => e.current && t(); }, Pr = (e) => { @@ -604,7 +604,7 @@ const xe = kt.getInstance(), ot = () => { }, t, i = d.isEqual) => { const n = x.useRef(); i(t, n.current) || (n.current = d.cloneDeep(t)), x.useEffect(e, [n.current]); -}, lt = He, yi = (e, t = "string") => { +}, ot = He, yi = (e, t = "string") => { var i; if (!Array.isArray(e)) return e; for (let n = 0; n < e.length; n++) e[n].value = ee((i = e[n]) == null ? void 0 : i.value, t), e[n] && Reflect.has(e[n], "children") && (e[n].children = yi(e[n].children, t)); @@ -677,14 +677,14 @@ const xe = kt.getInstance(), ot = () => { }); }, [e, t, i]), n; }, wi = (e, t, i = {}, n = {}, r = {}) => { - const a = ce(Yt), o = ot(), s = W(!0), l = W([]), [u, c] = E(t), g = te.useWatch((h) => JSON.stringify(d.pick(h, l.current)), a) || "{}"; - return lt(() => { + const a = ce(Yt), o = st(), s = W(!0), l = W([]), [u, c] = E(t), g = te.useWatch((h) => JSON.stringify(d.pick(h, l.current)), a) || "{}"; + return ot(() => { e && xe.exec(e, i, { ...n, getFieldValueForBasicForm: (h) => r ? r.getFieldValue(h) : null, getFieldValue: d.wrap(a.getFieldValue, (h, m) => (l.current.some((f) => d.isEqual(f, m)) || (l.current.push(m), o()), h == null ? void 0 : h(m))), isFieldTouched: a.isFieldTouched, isFieldsTouched: a.isFieldsTouched }).then((h) => s.current && c(h)); }, [e, g, a, i, n]), A(() => () => s.current = !1, []), u; }, Rn = (e, t, i = [], n = {}) => { const r = W({}); if (!t) return [e, r.current]; - const a = W(), o = d.debounce(ot(), 180), s = ["disabled", "required"], l = (g, h) => { + const a = W(), o = d.debounce(st(), 180), s = ["disabled", "required"], l = (g, h) => { s.includes(g) && (r.current[g] = h), o(); }, u = U(() => ({ setDisabled: (g) => l("disabled", g), setRequired: (g) => l("required", g), getDisabled: () => r.current.disabled, getRequired: () => r.current.required }), [t]), c = wi(t, -1, {}, u, n) ?? -1; if (a.current != c && (c >= 0 || !d.isEmpty(i == null ? void 0 : i[c]))) { @@ -695,7 +695,7 @@ const xe = kt.getInstance(), ot = () => { return [e, r.current]; }, Wt = (e) => e === void 0 || e === !1 ? "" : (Array.isArray(e) ? e : [e]).join("_"), Rr = ({ value: e, onChange: t }, i = null) => { const n = W(), [r] = te.useForm(i), a = W({}); - return lt(() => { + return ot(() => { d.isEqual(n.current, e) || r.setFieldsValue(e); }, [e]), A(() => () => r.resetFields(), []), [U(() => r.__INTERNAL__ ? r : { ...r, __INTERNAL__: { itemRef: (o) => (s) => { const l = Wt(o); @@ -737,8 +737,8 @@ Nt.propTypes = { fields: w.array }; const On = (Ut = Nt, ({ code: e, layout: t, name: i, primaryKey: n = 0, style: r = {}, formProps: a = {}, form: o, basicForm: s, isPreview: l = !1, className: u, onFinish: c, onValuesChange: g = () => { }, ...h }) => { const { align: m, autoComplete: f, resource: C, items: b, hides: k, rowHeight: S, marginX: $, marginY: T, cols: I, listenChangeFields: q, listenChangeFieldsFunc: z, pk: V, uuid: R } = $n(e), [B] = te.useForm(o), N = U(() => [{ name: "__PK__", value: V }, { name: "__PROPS__", value: a }, { name: "__RESOURCE__", value: C }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: R }, { name: "__PRIMARY_KEY__", value: n }], [V, e, R, C, n, a]); - return j(te, { className: u, name: i || e, layout: t || m, fields: N, form: B, autoComplete: f, style: { ...r, position: "relative" }, onFinish: c, onValuesChange: (F, J) => (({ changedValues: de, allValues: $e, listenChangeFields: Y, listenChangeFieldsFunc: Ke, onValuesChange: ct, code: Ot }) => { - ct(de, $e), Ke && Array.isArray(Y) && xe.exec(Ke, { changedValues: de, allValues: $e }, { getFieldValue: B.getFieldValue, setFieldValue: B.setFieldValue, setFieldsValue: B.setFieldsValue, isFieldTouched: B.isFieldTouched, isFieldsTouched: B.isFieldsTouched }); + return j(te, { className: u, name: i || e, layout: t || m, fields: N, form: B, autoComplete: f, style: { ...r, position: "relative" }, onFinish: c, onValuesChange: (F, J) => (({ changedValues: de, allValues: $e, listenChangeFields: Y, listenChangeFieldsFunc: Ke, onValuesChange: lt, code: Ot }) => { + lt(de, $e), Ke && Array.isArray(Y) && xe.exec(Ke, { changedValues: de, allValues: $e }, { getFieldValue: B.getFieldValue, setFieldValue: B.setFieldValue, setFieldsValue: B.setFieldsValue, isFieldTouched: B.isFieldTouched, isFieldsTouched: B.isFieldsTouched }); })({ changedValues: F, allValues: J, listenChangeFields: q, listenChangeFieldsFunc: z, onValuesChange: g, code: e }), children: [p(Ut, { ...h, form: B, basicForm: s, code: e, fields: b, cols: I, rowHeight: S, itemMargin: [$, T] }), k == null ? void 0 : k.map((F) => { var J; return p(Xt, { name: F.code, children: p(Fn, { form: B, basicForm: s, name: F.code, type: F.type, initialValue: F.initialValue, initialValueLanguage: (J = F.extras) == null ? void 0 : J.initialValueLanguage }) }, JSON.stringify(F.code)); @@ -813,7 +813,7 @@ const jn = (e, t, i, n) => ke.redirect(i, t, n), Ln = (e, t = {}, i, n = {}) => J(g); }, onClick: (Y) => { Y.stopPropagation(); - }, children: p(Hi, { zIndex: z, getPopupContainer: (Y) => Y, ...V, title: N ? null : V == null ? void 0 : V.title, trigger: ["hover", "click"], children: p(et, { loading: $e || h, disabled: de || m, ...B, ...q, children: n || r }) }) }); + }, children: p(Hi, { zIndex: z, getPopupContainer: (Y) => Y, ...V, title: N ? null : V == null ? void 0 : V.title, trigger: ["hover", "click"], children: p(Ze, { loading: $e || h, disabled: de || m, ...B, ...q, children: n || r }) }) }); }, P = Je("default"); P.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", "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 Mn = Je("link"), zn = Je("circle"), Bn = Je("round"), Dn = Je("dashed"), Rt = ({ data: e, widget: t, widgetType: i = "fsdpf-component", widgetData: n, widgetProps: r, widgetSetting: a, widgetContainerProps: o, onAfterClick: s, onBeforeClick: l, children: u, extras: c }) => { @@ -836,13 +836,13 @@ const Mn = Je("link"), zn = Je("circle"), Bn = Je("round"), Dn = Je("dashed"), R Rt.propTypes = { widgetType: w.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }; const _t = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: i = (m, f, C) => { }, onBeforeClick: n = (m, f, C) => { -}, labelVariant: r = "link", labelSize: a, labelRender: o, btnVariant: s, btnSize: l, btnRender: u = (m, f) => p(P, { ...m, data: f }, m.uuid || Ze()), widgetContainerProps: c = {}, children: g, data: h }) => { +}, labelVariant: r = "link", labelSize: a, labelRender: o, btnVariant: s, btnSize: l, btnRender: u = (m, f) => p(P, { ...m, data: f }, m.uuid || Qe()), widgetContainerProps: c = {}, children: g, data: h }) => { if (d.isEmpty(e)) return g; const [m, f] = U(() => (e || []).reduce((b, k) => { const S = t.indexOf(k.widgetType); return S === -1 ? b[1].push(k) : b[0] ? S < t.indexOf(b[0].widgetType) ? (b[1].push(b[0]), b[0] = k) : b[1].push(k) : b[0] = k, b; }, [null, []]), [e, t]); - o ? g = o(m, h) || g : g || (g = p(et, { ...ki(Object.assign(m != null && m.name || m != null && m.icon ? {} : { icon: "icon-location" }, m, { size: a }), r) })); + o ? g = o(m, h) || g : g || (g = p(Ze, { ...ki(Object.assign(m != null && m.name || m != null && m.icon ? {} : { icon: "icon-location" }, m, { size: a }), r) })); const C = f.map((b) => u(Object.assign({ uuid: b.uuid, type: b.type, name: b.name, widget: b.widget, widgetType: b.widgetType, widgetProps: b.widgetProps, widgetData: b.widgetData, widgetSetting: b.widgetSetting, widgetContainerProps: b.widgetContainerSetting, confirm: b.confirm, onAfterClick: d.partialRight(i, b, h), onBeforeClick: d.partialRight(n, b, h) }, { size: l, variant: s }), h)); return p(Rt, { 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({}, c, m == null ? void 0 : m.widgetContainerProps), data: h, widgetData: m == null ? void 0 : m.widgetData, extras: C, onAfterClick: d.partialRight(i, m, h), onBeforeClick: d.partialRight(n, m, h), children: g }); }; @@ -888,7 +888,7 @@ const Gt = (e, t, i = {}) => K.$onClick(e, t, i), gt = (e, { showProgress: t, du }), notification: gt, success: (e, t = { duration: 1.5 }) => gt(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => gt(e, { ...t, className: "ff-notification-error", icon: "close" }) }; je.configure({ showSpinner: !1 }), Le.interceptors.request.use((e) => { e.headers.Platform = "web", e.headers.SaaS = window.localStorage.getItem("SaaS"); - const t = window.localStorage.getItem(Qe); + const t = window.localStorage.getItem(Xe); return e.headers.Authorization = t ? `Bearer ${t} ` : void 0, je.inc(), e; }, (e) => (je.done(), Promise.reject({ code: -1, msg: e }))), Le.interceptors.response.use(({ data: e, headers: t }) => (je.done(), { ...e, res: t == null ? void 0 : t.res }), function(e) { return je.done(), Promise.reject(e.message); @@ -906,7 +906,7 @@ class Ve extends Error { super(...i), Error.captureStackTrace && Error.captureStackTrace(this, Ve), this.name = `${t} Not Found`; } } -const pt = "mine", Qe = "token"; +const pt = "mine", Xe = "token"; var Ce, Oe; const oe = class oe { constructor() { @@ -939,7 +939,7 @@ const oe = class oe { v(this, "getWidgetOperationAuth", () => L.get("/api/init-widget-operation-auth").then((t) => t.reduce((i, { uuid: n, auth: r }) => [...i, [n, r]], []))); v(this, "getPhoneNumber", (t) => L.get(`/api/user-wx-phone-number/${t}`)); v(this, "getUserToken", () => { - const t = window.localStorage.getItem(Qe); + const t = window.localStorage.getItem(Xe); if (!t) return ""; const i = t.split("."); if (!Array.isArray(i) || i.length !== 3) throw "登录令牌无效!"; @@ -966,8 +966,8 @@ const oe = class oe { } return Promise.resolve(null); }); - v(this, "login", (t, i, n = {}) => L.post("/api/user-token", { username: t, passwd: Ii.hash(i), platform: "web", ...n }).then(({ token: r }) => (window.localStorage.setItem(Qe, r), r))); - v(this, "logout", (t) => (window.localStorage.removeItem(pt), window.localStorage.removeItem(Qe), t == null ? void 0 : t())); + v(this, "login", (t, i, n = {}) => L.post("/api/user-token", { username: t, passwd: Ii.hash(i), platform: "web", ...n }).then(({ token: r }) => (window.localStorage.setItem(Xe, r), r))); + v(this, "logout", (t) => (window.localStorage.removeItem(pt), window.localStorage.removeItem(Xe), t == null ? void 0 : t())); if (y(oe, Ce)) return y(oe, Ce); } }; @@ -988,7 +988,7 @@ export { yn as A, xn as B, cn as C, - tt as D, + et as D, un as E, sn as F, xr as G, @@ -1004,11 +1004,11 @@ export { Sr as Q, gi as R, vr as S, - ot as T, + st as T, Pr as U, $r as V, He as W, - lt as X, + ot as X, Tr as Y, Nr as Z, On as _, diff --git a/dist/components.js b/dist/components.js index c023ea8..ae625ad 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { ah as s, a8 as p, ai as n, aj as t, ag as d } from "./common/main-CDGdxjIv.js"; +import { ah as s, a8 as p, ai as n, aj as t, ag as d } from "./common/main-DZ2sKQPT.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index c1c48a8..a7902f8 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { ad as o, ah as s, ai as d, aj as p, ae as t, ag as n, af as r, ac as u } from "./common/main-CDGdxjIv.js"; +import { ad as o, ah as s, ai as d, aj as p, ae as t, ag as n, af as r, ac as u } from "./common/main-DZ2sKQPT.js"; export { o as Context, s as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index 0895cb0..cf70cc3 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-CDGdxjIv.js"; +import { D as p } from "./common/main-DZ2sKQPT.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 63c7610..72d0f33 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { B as t, z as e, s as r, x as o, C as i, y as u, w as D, A as l, v as L, E as n, q as m, F as p, N as C, J as c, L as F, K as b, M as d, I as k } from "./common/main-CDGdxjIv.js"; +import { B as t, z as e, s as r, x as o, C as i, y as u, w as D, A as l, v as L, E as n, q as m, F as p, N as C, J as c, L as F, K as b, M as d, I as k } from "./common/main-DZ2sKQPT.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index bf73b24..cdb5273 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { l as a } from "../common/main-CDGdxjIv.js"; +import { l as a } from "../common/main-DZ2sKQPT.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 147bc29..72cfc04 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { $ as s, a1 as r, a0 as u, _ as o, a5 as t, a4 as d, a7 as m, a3 as F, a2 as i, a6 as g } from "./common/main-CDGdxjIv.js"; +import { $ as s, a1 as r, a0 as u, _ as o, a5 as t, a4 as d, a7 as m, a3 as F, a2 as i, a6 as g } from "./common/main-DZ2sKQPT.js"; export { s as GridLayoutForm, r as GridLayoutFormHelper, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index bbf1f5b..1a04a23 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-CDGdxjIv.js"; +import { g as o, a as g } from "../common/main-DZ2sKQPT.js"; export { o as getOptionItemByValue, g as getWidgetByNormalize diff --git a/dist/grid-layout.js b/dist/grid-layout.js index 2eedaab..a31c0c7 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { m as d, n as e, H as i, G as o, o as t, p as u } from "./common/main-CDGdxjIv.js"; +import { m as d, n as e, H as i, G as o, o as t, p as u } from "./common/main-DZ2sKQPT.js"; export { d as GridLayout, e as GridLayoutWidget, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index 5718582..cc319d7 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { j as o, k as a } from "../common/main-CDGdxjIv.js"; +import { j as o, k as a } from "../common/main-DZ2sKQPT.js"; export { o as getBoxStyle, a as getWidgetByNormalize diff --git a/dist/hooks.js b/dist/hooks.js index 74cd762..3aa2353 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; import "react"; -import { X as r, W as o, Y as p, U as f, V as i, Z as m, T as c } from "./common/main-CDGdxjIv.js"; +import { X as r, W as o, Y as p, U as f, V as i, Z as m, T as c } from "./common/main-DZ2sKQPT.js"; import { default as b } from "rc-util/lib/hooks/useMergedState"; export { r as useDeepEffect, diff --git a/dist/iconfont.js b/dist/iconfont.js index 3bff076..6b840c8 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 { a8 as a } from "./common/main-CDGdxjIv.js"; +import { a8 as a } from "./common/main-DZ2sKQPT.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index 2925017..004d257 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { as as t, at as e, ao as o, ap as n, ak as p, aq as r, an as c, am as l, al as f, ar as m } from "./common/main-CDGdxjIv.js"; +import { as as t, at as e, ao as o, ap as n, ak as p, aq as r, an as c, am as l, al as f, ar as m } from "./common/main-DZ2sKQPT.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index c467112..1d662bc 100644 --- a/dist/pages.js +++ b/dist/pages.js @@ -1,4 +1,4 @@ -import { P as t, O as e, Q as o, S as P } from "./common/main-CDGdxjIv.js"; +import { P as t, O as e, Q as o, S as P } from "./common/main-DZ2sKQPT.js"; export { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index eccf327..5c55552 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-CDGdxjIv.js"; +import { R as a } from "./common/main-DZ2sKQPT.js"; export { a as default }; diff --git a/dist/utils.js b/dist/utils.js index f1e7dd9..2e12f00 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { d as g, e as i, c as p, f as m, h as P, b as d, i as u, r as h, t as k, u as c } from "./common/main-CDGdxjIv.js"; +import { d as g, e as i, c as p, f as m, h as P, b as d, i as u, r as h, t as k, u as c } from "./common/main-DZ2sKQPT.js"; import "react/jsx-runtime"; import "react"; import "./common/vender-CtjyT19B.js"; diff --git a/package.json b/package.json index 83fb330..d37296f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.5.5", + "version": "0.5.6", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",