diff --git a/dist/button.js b/dist/button.js index 597ff51..c33ace6 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { $ as s, _ as u, a0 as e } from "./common/main-DsH9zeNE.js"; +import { $ as s, _ as u, a0 as e } from "./common/main-DkIsOuM3.js"; import "prop-types"; export { s as auth, diff --git a/dist/common/main-DsH9zeNE.js b/dist/common/main-DkIsOuM3.js similarity index 55% rename from dist/common/main-DsH9zeNE.js rename to dist/common/main-DkIsOuM3.js index ae29f94..5a51a20 100644 --- a/dist/common/main-DsH9zeNE.js +++ b/dist/common/main-DkIsOuM3.js @@ -3,48 +3,48 @@ var Et = (e) => { throw TypeError(e); }; var kn = (e, t, n) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; -var x = (e, t, n) => kn(e, typeof t != "symbol" ? t + "" : t, n), Rt = (e, t, n) => t.has(e) || Et("Cannot " + n); -var m = (e, t, n) => (Rt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), E = (e, t, n) => t.has(e) ? Et("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), B = (e, t, n, a) => (Rt(e, t, "write to private field"), a ? a.call(e, n) : t.set(e, n), n); +var v = (e, t, n) => kn(e, typeof t != "symbol" ? t + "" : t, n), Rt = (e, t, n) => t.has(e) || Et("Cannot " + n); +var m = (e, t, n) => (Rt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), F = (e, t, n) => t.has(e) ? Et("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), U = (e, t, n, a) => (Rt(e, t, "write to private field"), a ? a.call(e, n) : t.set(e, n), n); var Ft = (e, t, n, a) => ({ set _(r) { - B(e, t, r, n); + U(e, t, r, n); }, get _() { return m(e, t, a); } }); -import { jsx as d, jsxs as O } from "react/jsx-runtime"; -import C, { useEffect as R, useState as T, useCallback as ce, useMemo as G, useRef as D, useContext as de, useId as Ge, useLayoutEffect as vn } from "react"; +import { jsx as d, jsxs as V } from "react/jsx-runtime"; +import k, { useEffect as O, useState as E, useCallback as ce, useMemo as G, useRef as D, useContext as de, useId as Ge, useLayoutEffect as xn } from "react"; import p from "lodash"; import qt from "immutability-helper"; -import { Form as Ke, Input as xn, Button as lt, Pagination as Sn, Tree as $n, Breadcrumb as Pn, Table as Nn, Empty as Tn, Popconfirm as En, Tooltip as Rn, Popover as Fn } from "antd"; +import { Form as Ke, Input as vn, Button as lt, Pagination as Sn, Tree as $n, Breadcrumb as Pn, Table as Nn, Empty as Tn, Popconfirm as En, Tooltip as Rn, Popover as Fn } from "antd"; import { useMergedState as On } from "rc-util"; -import V from "classnames"; +import A from "classnames"; import Q, { FieldContext as Ln, Field as Ht } from "rc-field-form"; -import { useParams as Vn, generatePath as jn, createBrowserRouter as An, useInRouterContext as In, Navigate as Mn } from "react-router-dom"; -import k from "prop-types"; +import { useParams as Vn, generatePath as An, createBrowserRouter as jn, useInRouterContext as In, Navigate as Mn } from "react-router-dom"; +import b from "prop-types"; import * as Ot from "react-is"; import { useNotification as zn } from "rc-notification"; -import { N as Re, a as Fe, T as ct, S as Wn } from "./vender-DMK1apIA.js"; +import { N as Re, a as Fe, T as ct, S as Bn } from "./vender-DMK1apIA.js"; import "rc-util/lib/hooks/useMergedState"; -import Bn from "rc-drawer"; +import Wn from "rc-drawer"; import Un from "rc-dialog"; -var $e, Ve, Pe, se, ke, ve; +var $e, Ve, Pe, se, ke, xe; class Jt { constructor(t, n) { - E(this, $e, /* @__PURE__ */ new Map()); - E(this, Ve, !0); - E(this, Pe, []); - E(this, se); - E(this, ke, () => m(this, se)); - E(this, ve, () => Promise.resolve()); - x(this, "get", (...t) => new Promise((n, a) => { + F(this, $e, /* @__PURE__ */ new Map()); + F(this, Ve, !0); + F(this, Pe, []); + F(this, se); + F(this, ke, () => m(this, se)); + F(this, xe, () => Promise.resolve()); + v(this, "get", (...t) => new Promise((n, a) => { const r = JSON.stringify(t); - if (m(this, $e).has(r)) return n(m(this, ve).call(this, m(this, se), ...t)); - if (m(this, se) === void 0) m(this, Pe).push([t, n, a]), m(this, Ve) && (B(this, Ve, !1), Promise.resolve(typeof m(this, ke) == "function" ? m(this, ke).call(this) : m(this, ke)).then((i) => B(this, se, i || null)).finally(() => { + if (m(this, $e).has(r)) return n(m(this, xe).call(this, m(this, se), ...t)); + if (m(this, se) === void 0) m(this, Pe).push([t, n, a]), m(this, Ve) && (U(this, Ve, !1), Promise.resolve(typeof m(this, ke) == "function" ? m(this, ke).call(this) : m(this, ke)).then((i) => U(this, se, i || null)).finally(() => { m(this, Pe).forEach(([i, s, o]) => { try { - const l = m(this, ve).call(this, m(this, se), ...i); + const l = m(this, xe).call(this, m(this, se), ...i); m(this, $e).set(JSON.stringify(i), l), s(l); } catch (l) { o(l); @@ -52,52 +52,52 @@ class Jt { }), m(this, Pe).length = 0; })); else { - const i = m(this, ve).call(this, m(this, se), ...t); + const i = m(this, xe).call(this, m(this, se), ...t); m(this, $e).set(r, i), n(i); } })); - B(this, ve, n), B(this, ke, t); + U(this, xe, n), U(this, ke, t); } } -$e = new WeakMap(), Ve = new WeakMap(), Pe = new WeakMap(), se = new WeakMap(), ke = new WeakMap(), ve = new WeakMap(); -const Za = () => d("div", { children: "Empty" }), We = C.createContext({ ele: {}, mount: () => { +$e = new WeakMap(), Ve = new WeakMap(), Pe = new WeakMap(), se = new WeakMap(), ke = new WeakMap(), xe = new WeakMap(); +const Za = () => d("div", { children: "Empty" }), Be = k.createContext({ ele: {}, mount: () => { }, unmount: () => { -} }), J = ({ rootClassName: e, className: t, children: n, actions: a, title: r, subTitle: i, extras: s, style: o = {} }) => { - const { mount: l, unmount: c } = C.useContext(We); - return a && J.Action({ children: a }), r && J.Title({ children: r }), i && J.SubTitle({ children: i }), s && J.Extra({ children: s }), R(() => (l("rootClassName", e), () => c(e)), [e]), d("div", { className: V("ff-container", t), style: o, children: n }); +} }), K = ({ rootClassName: e, className: t, children: n, actions: a, title: r, subTitle: i, extras: s, style: o = {} }) => { + const { mount: l, unmount: c } = k.useContext(Be); + return a && K.Action({ children: a }), r && K.Title({ children: r }), i && K.SubTitle({ children: i }), s && K.Extra({ children: s }), O(() => (l("rootClassName", e), () => c(e)), [e]), d("div", { className: A("ff-container", t), style: o, children: n }); }, Je = (e) => ({ children: t, className: n }) => { - const { mount: a, unmount: r } = C.useContext(We); - return R(() => (a(e, C.createElement("div", { key: `ff-${e}`, className: V(`ff-popup-${e}`, n) }, t)), () => r(e)), [n, t]), null; + const { mount: a, unmount: r } = k.useContext(Be); + return O(() => (a(e, k.createElement("div", { key: `ff-${e}`, className: A(`ff-popup-${e}`, n) }, t)), () => r(e)), [n, t]), null; }; -J.Action = Je("actions"), J.Title = Je("title"), J.SubTitle = Je("sub-title"), J.Extra = Je("extras"), J.propTypes = { className: k.string, style: k.object, title: k.any, subTitle: k.any, actions: k.any, extras: k.any }; -const er = () => d(J, { className: "ff-loading", children: O("div", { className: "loader", children: [O("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), O("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), O("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), O("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] })] }) }), tr = () => d("div", { children: "NotFound" }), Kt = ({ children: e }) => { - const [t, n] = T({}), a = ce((i, s) => n((o) => ({ ...o, [i]: s })), []), r = ce((i) => n((s) => ({ ...s, [i]: void 0 })), []); - return typeof (e == null ? void 0 : e.type) == "string" ? e : d(We.Provider, { value: { ele: t, mount: a, unmount: r }, children: C.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); +K.Action = Je("actions"), K.Title = Je("title"), K.SubTitle = Je("sub-title"), K.Extra = Je("extras"), K.propTypes = { className: b.string, style: b.object, title: b.any, subTitle: b.any, actions: b.any, extras: b.any }; +const er = () => d(K, { className: "ff-loading", children: V("div", { className: "loader", children: [V("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), V("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), V("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), V("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] })] }) }), tr = () => d("div", { children: "NotFound" }), Kt = ({ children: e }) => { + const [t, n] = E({}), a = ce((i, s) => n((o) => ({ ...o, [i]: s })), []), r = ce((i) => n((s) => ({ ...s, [i]: void 0 })), []); + return typeof (e == null ? void 0 : e.type) == "string" ? e : d(Be.Provider, { value: { ele: t, mount: a, unmount: r }, children: k.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); }; -Kt.propTypes = { children: k.element.isRequired }; -const Lt = { close: ["M563.8 512l262.5-312.9c4.4-5.2 0.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-0.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"], check: ["M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1 0.4-12.8-6.3-12.8z"], info: ["M512 224m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z", "M544 392h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"] }, Ct = ({ type: e, props: t }) => d("i", { ...t, children: d("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Lt[e] || Lt.info).map((n, a) => d("path", { d: n }, a)) }) }), _t = ({ className: e, content: t, icon: n, $close: a }) => O(C.Fragment, { children: [n && d("div", { className: V("ff-notification-icon", e), children: d(Ct, { type: n }) }), t] }), Dn = ({}) => d(J, { children: "Confirm" }); +Kt.propTypes = { children: b.element.isRequired }; +const Lt = { close: ["M563.8 512l262.5-312.9c4.4-5.2 0.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-0.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"], check: ["M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1 0.4-12.8-6.3-12.8z"], info: ["M512 224m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z", "M544 392h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"] }, Ct = ({ type: e, props: t }) => d("i", { ...t, children: d("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Lt[e] || Lt.info).map((n, a) => d("path", { d: n }, a)) }) }), _t = ({ className: e, content: t, icon: n, $close: a }) => V(k.Fragment, { children: [n && d("div", { className: A("ff-notification-icon", e), children: d(Ct, { type: n }) }), t] }), Dn = ({}) => d(K, { children: "Confirm" }); var ge, Ne; const te = class te { constructor() { - E(this, Ne, /* @__PURE__ */ new Map()); - x(this, "init", (t) => B(this, Ne, new Map(t))); - x(this, "check", (t) => !m(this, Ne).has(t) || m(this, Ne).get(t)); + F(this, Ne, /* @__PURE__ */ new Map()); + v(this, "init", (t) => U(this, Ne, new Map(t))); + v(this, "check", (t) => !m(this, Ne).has(t) || m(this, Ne).get(t)); if (m(te, ge)) return m(te, ge); } }; -ge = new WeakMap(), Ne = new WeakMap(), E(te, ge, null), x(te, "getInstance", () => (m(te, ge) || B(te, ge, new te()), m(te, ge))); +ge = new WeakMap(), Ne = new WeakMap(), F(te, ge, null), v(te, "getInstance", () => (m(te, ge) || U(te, ge, new te()), m(te, ge))); let dt = te; const qn = dt.getInstance(); -var pe, je; +var pe, Ae; const ne = class ne { constructor() { - E(this, je, null); - x(this, "init", (t) => B(this, je, t)); - x(this, "get", (t, n) => p.get(m(this, je), t, n)); + F(this, Ae, null); + v(this, "init", (t) => U(this, Ae, t)); + v(this, "get", (t, n) => p.get(m(this, Ae), t, n)); if (m(ne, pe)) return m(ne, pe); } }; -pe = new WeakMap(), je = new WeakMap(), E(ne, pe, null), x(ne, "getInstance", () => (m(ne, pe) || B(ne, pe, new ne()), m(ne, pe))); +pe = new WeakMap(), Ae = new WeakMap(), F(ne, pe, null), v(ne, "getInstance", () => (m(ne, pe) || U(ne, pe, new ne()), m(ne, pe))); let ut = ne; const Oe = ut.getInstance(), Vt = { null2json: (e) => Object.create(), null2array: (e) => [], null2number: (e) => 0, null2bool: (e) => !1, null2string: (e) => "", null2integer: (e) => 0, null2float: (e) => 0, string2json: (e) => e ? JSON.parse(e) : "{}", string2array: (e) => e.substr(0, 1) === "[" && e.substr(-1) === "]" ? JSON.parse(e) : e.split(","), string2number: (e) => e == "" ? 0 : +e, string2integer: (e) => e == "" ? 0 : +e, string2float: (e) => e == "" ? 0 : +e, string2bool: (e) => { switch (`${e}`.toLowerCase()) { @@ -172,17 +172,17 @@ const Oe = ut.getInstance(), Vt = { null2json: (e) => Object.create(), null2arra var t, n; return e ? (n = (t = e.match(/^@pkg(?:[^\/]*\/){1}(?[^\/]+)/)) == null ? void 0 : t.groups) == null ? void 0 : n.owner : ""; }; -var Xe, Ae, Ie, Qe; +var Xe, je, Ie, Qe; const Ze = class Ze { constructor(...t) { - E(this, Ae, []); - E(this, Ie, (t) => { + F(this, je, []); + F(this, Ie, (t) => { var n; - for (let a of t) Array.isArray(a[0]) ? m(this, Ie).call(this, a) : m(this, Ae).push(m(n = Ze, Xe).call(n, a[0], a[1])); + for (let a of t) Array.isArray(a[0]) ? m(this, Ie).call(this, a) : m(this, je).push(m(n = Ze, Xe).call(n, a[0], a[1])); }); - x(this, "toValue", async (t, n = null) => { + v(this, "toValue", async (t, n = null) => { const a = { getValue: () => t, getRecord: () => n }; - return await m(this, Ae).reduce(async (r, i) => { + return await m(this, je).reduce(async (r, i) => { try { const s = await r; return (await i).call(a, s); @@ -191,10 +191,10 @@ const Ze = class Ze { } }, t); }); - x(this, "toRender", (t, n, a = null) => C.createElement(m(this, Qe), { value: t, record: n }, a)); - E(this, Qe, ({ value: t, record: n, children: a }) => { - const [r, i] = T(a); - return xt(() => { + v(this, "toRender", (t, n, a = null) => k.createElement(m(this, Qe), { value: t, record: n }, a)); + F(this, Qe, ({ value: t, record: n, children: a }) => { + const [r, i] = E(a); + return vt(() => { let s = !1; return i(a), this.toValue(t, n).then((o) => X(o, "string")).then((o) => !s && i(o)).catch((o) => !s && i(`${o}`)), () => s = !0; }, [t, n]), r; @@ -202,22 +202,22 @@ const Ze = class Ze { m(this, Ie).call(this, t); } }; -Xe = new WeakMap(), Ae = new WeakMap(), Ie = new WeakMap(), Qe = new WeakMap(), E(Ze, Xe, p.memoize((t, n) => Z.getWidgetComponent(t).then((a) => { +Xe = new WeakMap(), je = new WeakMap(), Ie = new WeakMap(), Qe = new WeakMap(), F(Ze, Xe, p.memoize((t, n) => Z.getWidgetComponent(t).then((a) => { var r; return ((r = a.default) == null ? void 0 : r.call(a, n)) || ((i) => i); }), (t, n) => `${t}::${X(n, "string")}`)); let Ye = Ze; const Hn = (e, t = {}) => G(() => e == null ? void 0 : e.map(({ widgetByJs: n, widgetByJsSetting: a, ...r }, i) => n ? { ...r, render: (s, o) => new Ye([n, a]).toRender(s, o, "-") } : r), [e, t]), sr = (e) => { - const [t, n] = T({}); - return R(() => { + const [t, n] = E({}); + return O(() => { let a = !1; - return e && F.get(`/api/_/${e}`).then((r) => p.pick(r, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((r) => !a && n(r)), () => a = !0; + return e && L.get(`/api/_/${e}`).then((r) => p.pick(r, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((r) => !a && n(r)), () => a = !0; }, [e]), t; }, or = (e, t = {}) => { - const [n, a] = T({ dataSource: [] }); - return Be(() => { + const [n, a] = E({ dataSource: [] }); + return We(() => { let r = !1; - return e && F.get(`/api/${e}/${F.encode({ page: 1, ...t })}`).then((i) => !r && a(i)), () => r = !0; + return e && L.get(`/api/${e}/${L.encode({ page: 1, ...t })}`).then((i) => !r && a(i)), () => r = !0; }, [e, t]), n; }, gt = (e, t = null, n = null, a = "id") => G(() => { if (p.isEmpty(e) || !e.some(({ uuid: i }) => qn.check(i))) return !1; @@ -225,22 +225,22 @@ const Hn = (e, t = {}) => G(() => e == null ? void 0 : e.map(({ widgetByJs: n, w const r = t.map((i) => `${i == null ? void 0 : i[a]}`); return e.some(({ uuid: i }) => !i || !n.has(i) || n.get(i).some((s) => r.includes(`${s}`))); }, [e, t, n, a]), Jn = (e, t, n = "id", a = null) => { - const r = vt(), i = D(!1), s = D(e.dataSource), o = D(e.itemOperationsAccess); - return R(() => (s.current = e.dataSource, o.current = e.itemOperationsAccess, () => i.current = !1), [e.dataSource, e.itemOperationsAccess]), i.current && (e.dataSource = s.current, e.itemOperationsAccess = o.current), [e, (l = 0, c = null) => { + const r = xt(), i = D(!1), s = D(e.dataSource), o = D(e.itemOperationsAccess); + return O(() => (s.current = e.dataSource, o.current = e.itemOperationsAccess, () => i.current = !1), [e.dataSource, e.itemOperationsAccess]), i.current && (e.dataSource = s.current, e.itemOperationsAccess = o.current), [e, (l = 0, c = null) => { var u, g; if (i.current = !1, l === 1) return (u = e.onReload) == null ? void 0 : u.call(e); if (l === 2) { - const h = p.get(c, "__PARENT_ID__", ""), y = p.get(c, n, p.get(c, [a, n], "")), f = p.findIndex(s.current, ["__PARENT_ID__", h]), b = p.findIndex(f > -1 ? p.get(s.current, [f, "children"]) : s.current, [n, y]); - if (b === -1) return (g = e.onReload) == null ? void 0 : g.call(e); - Promise.all([F.get(`/api/${t}/detail/${y}`), F.post(`/api/${t}/list-operations-access`, { ids: y })]).then(([w, $]) => { - const I = p.get(s.current, f > -1 ? [f, "children", b, "children"] : [b, "children"]); - s.current = qt(s.current, f > -1 ? { [f]: { children: { $splice: [[b, 1, { ...w, children: I }]] } } } : { $splice: [[b, 1, { ...w, children: I }]] }); - const L = new Map($); - o.current.forEach((M, j) => { - var A; - (A = L.get(j)) != null && A.some((P) => P == y) || o.current.set(j, M.filter((P) => P !== y)); - }), L.forEach((M, j) => { - o.current.has(j) ? o.current.set(j, p.uniq([...o.current.get(j) || [], ...M])) : o.current.set(j, M); + const f = p.get(c, "__PARENT_ID__", ""), y = p.get(c, n, p.get(c, [a, n], "")), h = p.findIndex(s.current, ["__PARENT_ID__", f]), w = p.findIndex(h > -1 ? p.get(s.current, [h, "children"]) : s.current, [n, y]); + if (w === -1) return (g = e.onReload) == null ? void 0 : g.call(e); + Promise.all([L.get(`/api/${t}/detail/${y}`), L.post(`/api/${t}/list-operations-access`, { ids: y })]).then(([C, S]) => { + const j = p.get(s.current, h > -1 ? [h, "children", w, "children"] : [w, "children"]); + s.current = qt(s.current, h > -1 ? { [h]: { children: { $splice: [[w, 1, { ...C, children: j }]] } } } : { $splice: [[w, 1, { ...C, children: j }]] }); + const P = new Map(S); + o.current.forEach((z, I) => { + var M; + (M = P.get(I)) != null && M.some((R) => R == y) || o.current.set(I, z.filter((R) => R !== y)); + }), P.forEach((z, I) => { + o.current.has(I) ? o.current.set(I, p.uniq([...o.current.get(I) || [], ...z])) : o.current.set(I, z); }); }).then(() => { i.current = !0, r(); @@ -248,23 +248,23 @@ const Hn = (e, t = {}) => G(() => e == null ? void 0 : e.map(({ widgetByJs: n, w } }]; }, Kn = (e, t) => { - const n = vt(), a = D(t), r = D(/* @__PURE__ */ new Map()), i = D([]), s = p.throttle((l) => { - i.current = [], F.list(e, p.pick({ ...a.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: c, condition: u, total: g, tab: h, sider: y, page: f, pageSize: b, operationsAccess: w, dataSource: $ }) => { - a.current = { tab: h, condition: u, sider: y, keyword: c, total: g, pageSize: b, page: $ != null && $.length ? f : 1 }, i.current = $, r.current = new Map(w), n(); + const n = xt(), a = D(t), r = D(/* @__PURE__ */ new Map()), i = D([]), s = p.throttle((l) => { + i.current = [], L.list(e, p.pick({ ...a.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: c, condition: u, total: g, tab: f, sider: y, page: h, pageSize: w, operationsAccess: C, dataSource: S }) => { + a.current = { tab: f, condition: u, sider: y, keyword: c, total: g, pageSize: w, page: S != null && S.length ? h : 1 }, i.current = S, r.current = new Map(C), n(); }); }, 380, { leading: !1, trailing: !0 }); - xt(() => { + vt(() => { i.current = [], e && s(t); }, [e, t]); const o = G(() => p.pick(a.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [a.current]); return Object.assign(o, { onTabChange: (l) => s({ tab: l, page: 1 }), onPageChange: (l, c) => s({ page: l, pageSize: c }), onPageSizeChange: (l) => s({ pageSize: l, page: 1 }), onConditionChange: (l, c) => s({ keyword: c, condition: qt(a.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => s({ sider: l, page: 1 }), onKeywordChange: (l) => s({ keyword: l, page: 1 }), itemOperationsAccess: r.current, dataSource: i.current, onReload: s }); -}, _n = ({ listCode: e, className: t, layouts: n, dataSource: a, isPaginate: r, isItemOperations: i, isBatchOperations: s, batchOperations: o, itemOperations: l, itemOperationsAccess: c, resource: u, primaryKey: g, title: h, itemGridLayout: y, $setting: f, tabs: b, isConditionFormLayout: w, isTreeSider: $, treeSiderConfig: I }) => { - const { classNames: L, onClickCallback: M } = de(ee), j = ce((A, P, S) => d(Gn, { className: V("ff-data-list-framework-item", L.item), operations: i && P ? l == null ? void 0 : l.filter((v) => !(g && v.uuid && c.has(v.uuid)) || c.get(v.uuid).includes(P == null ? void 0 : P[g])) : [], data: u ? { [u]: P } : P, children: A, onClickCallback: M }), [u, g, i, M, l, c]); - return O("div", { className: V("ff-data-list-framework", t), children: [d(n.sider, { isTreeSider: $, ...I }), O("div", { className: V("ff-data-list-container", L == null ? void 0 : L.container), children: [d(n.filter, { isConditionFormLayout: w }), d(n.toolbar, { title: h, tabs: b }), d(oa, { ...y, style: { "--col-num": (f == null ? void 0 : f.colNum) || 1 }, primaryKey: g, itemRender: j, dataSource: a }), d(n.footer, { isPaginate: r, isOperations: s, operations: o })] })] }); -}, Gn = ({ className: e, operations: t, children: n, data: a, onClickCallback: r }) => O("div", { className: V("data-list-grid-layout-item-container", e), children: [n, !!(t != null && t.length) && d("div", { className: "data-list-grid-layout-item-actions", children: t.map((i) => d("span", { className: "data-list-grid-layout-item-action", children: d(N.Link, { uuid: i.uuid, type: i.type, name: i.name, widget: i.widget, widgetType: i.widgetType, widgetProps: i.widgetProps, widgetSetting: i.widgetSetting, widgetContainerProps: i.widgetContainerSetting, data: a, confirm: i.confirm, onAfterClick: (s) => s !== !1 && (r == null ? void 0 : r(i.isRefresh, a)) }, i.uuid || Ge()) }, (i == null ? void 0 : i.uuid) || Ge())) })] }), Yn = ({ listCode: e, className: t, layouts: n, dataSource: a, columns: r, isItemOperations: i, isBatchOperations: s, batchOperations: o, itemOperations: l, itemOperationsAccess: c, resource: u, primaryKey: g, title: h, tabs: y, isPaginate: f, isTreeSider: b, treeSiderConfig: w, isConditionFormLayout: $, ...I }) => { - const { classNames: L, onClickCallback: M } = de(ee), j = gt(l, a, c, g); - return O("div", { className: V("ff-data-table-framework", t), children: [d(n.sider, { isTreeSider: b, ...w }), O("div", { className: V("ff-data-table-container", L == null ? void 0 : L.container), children: [d(n.filter, { isConditionFormLayout: $ }), d(n.toolbar, { title: h, tabs: y }), d(na, { ...I, primaryKey: g, className: "ff-data-table-content", columns: r, dataSource: a, operationRender: j ? (A) => d("div", { className: "ff-data-table-actions", children: l == null ? void 0 : l.reduce((P, S, v) => [...P, d(N.Link, { size: "small", uuid: S.uuid, type: S.type, name: S.name, widget: S.widget, widgetType: S.widgetType, widgetProps: S.widgetProps, widgetData: S.widgetData, widgetSetting: S.widgetSetting, widgetContainerProps: S.widgetContainerSetting, data: A, confirm: S.confirm, onAfterClick: (U) => U !== !1 && (M == null ? void 0 : M(S.isRefresh, A)) }, S.uuid || v)], []) }) : null }), d(n.footer, { isPaginate: f, isOperations: s, operations: o })] })] }); -}, ee = C.createContext({ listCode: "", classNames: {}, getBase62params: (e, t) => { +}, _n = ({ listCode: e, className: t, layouts: n, dataSource: a, isPaginate: r, isItemOperations: i, isBatchOperations: s, batchOperations: o, itemOperations: l, itemOperationsAccess: c, resource: u, primaryKey: g, title: f, itemGridLayout: y, $setting: h, tabs: w, isConditionFormLayout: C, isTreeSider: S, treeSiderConfig: j }) => { + const { classNames: P, onClickCallback: z } = de(ee), I = ce((M, R, $) => d(Gn, { className: A("ff-data-list-framework-item", P.item), operations: i && R ? l == null ? void 0 : l.filter((x) => !(g && x.uuid && c.has(x.uuid)) || c.get(x.uuid).includes(R == null ? void 0 : R[g])) : [], data: u ? { [u]: R } : R, children: M, onClickCallback: z }), [u, g, i, z, l, c]); + return V("div", { className: A("ff-data-list-framework", t), children: [d(n.sider, { isTreeSider: S, ...j }), V("div", { className: A("ff-data-list-container", P == null ? void 0 : P.container), children: [d(n.filter, { isConditionFormLayout: C }), d(n.toolbar, { title: f, tabs: w }), d(oa, { ...y, style: { "--col-num": (h == null ? void 0 : h.colNum) || 1 }, primaryKey: g, itemRender: I, dataSource: a }), d(n.footer, { isPaginate: r, isOperations: s, operations: o })] })] }); +}, Gn = ({ className: e, operations: t, children: n, data: a, onClickCallback: r }) => V("div", { className: A("data-list-grid-layout-item-container", e), children: [n, !!(t != null && t.length) && d("div", { className: "data-list-grid-layout-item-actions", children: t.map((i) => d("span", { className: "data-list-grid-layout-item-action", children: d(T.Link, { uuid: i.uuid, type: i.type, name: i.name, widget: i.widget, widgetType: i.widgetType, widgetProps: i.widgetProps, widgetSetting: i.widgetSetting, widgetContainerProps: i.widgetContainerSetting, data: a, confirm: i.confirm, onAfterClick: (s) => s !== !1 && (r == null ? void 0 : r(i.isRefresh, a)) }, i.uuid || Ge()) }, (i == null ? void 0 : i.uuid) || Ge())) })] }), Yn = ({ listCode: e, className: t, layouts: n, dataSource: a, columns: r, isItemOperations: i, isBatchOperations: s, batchOperations: o, itemOperations: l, itemOperationsAccess: c, resource: u, primaryKey: g, title: f, tabs: y, isPaginate: h, isTreeSider: w, treeSiderConfig: C, isConditionFormLayout: S, ...j }) => { + const { classNames: P, onClickCallback: z } = de(ee), I = gt(l, a, c, g); + return V("div", { className: A("ff-data-table-framework", t), children: [d(n.sider, { isTreeSider: w, ...C }), V("div", { className: A("ff-data-table-container", P == null ? void 0 : P.container), children: [d(n.filter, { isConditionFormLayout: S }), d(n.toolbar, { title: f, tabs: y }), d(na, { ...j, primaryKey: g, className: "ff-data-table-content", columns: r, dataSource: a, operationRender: I ? (M) => d("div", { className: "ff-data-table-actions", children: l == null ? void 0 : l.reduce((R, $, x) => [...R, d(T.Link, { size: "small", uuid: $.uuid, type: $.type, name: $.name, widget: $.widget, widgetType: $.widgetType, widgetProps: $.widgetProps, widgetData: $.widgetData, widgetSetting: $.widgetSetting, widgetContainerProps: $.widgetContainerSetting, data: M, confirm: $.confirm, onAfterClick: (W) => W !== !1 && (z == null ? void 0 : z($.isRefresh, M)) }, $.uuid || x)], []) }) : null }), d(n.footer, { isPaginate: h, isOperations: s, operations: o })] })] }); +}, ee = k.createContext({ listCode: "", classNames: {}, getBase62params: (e, t) => { }, onReload: () => { }, onClickCallback: () => { }, onConditionChange: () => { @@ -275,196 +275,196 @@ const Hn = (e, t = {}) => G(() => e == null ? void 0 : e.map(({ widgetByJs: n, w }, onPageSizeChange: () => { } }), Zt = (e, t, n, a, r = {}, i = 0) => { const s = { "--grid-layout-h": `${a}`, "--grid-layout-w": `${n}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" }; - return r != null && r.autoHeight ? s.height = "fit-content" : s["--grid-layout-row"] = `${a}`, r != null && r.alignItems && (s["--grid-layout-box-align-items"] = r.alignItems), r != null && r.justifyContent && (s["--grid-layout-box-justify-content"] = r.justifyContent), s["--grid-layout-box-margin"] = jt(r == null ? void 0 : r.marginTop, r == null ? void 0 : r.marginRight, r == null ? void 0 : r.marginBottom, r == null ? void 0 : r.marginLeft), s["--grid-layout-box-padding"] = jt(r == null ? void 0 : r.paddingTop, r == null ? void 0 : r.paddingRight, r == null ? void 0 : r.paddingBottom, r == null ? void 0 : r.paddingLeft), i && (s.height = `${i}px`), s; -}, jt = (e, t, n, a) => `${e || 0}px ${t || 0}px ${n || 0}px ${a || 0}px`, en = ({ className: e, isConditionFormLayout: t }) => { - var h, y; - const [n, a] = T({}), { listCode: r, onKeywordChange: i, onConditionChange: s, getBase62params: o, classNames: l } = C.useContext(ee), { keyword: c, condition: u } = (o == null ? void 0 : o()) || {}, [g] = Ke.useForm(); - return R(() => { - r && t && F.get(`/api/_/${r}/list-condition-form-layout`).then(({ resource: f, marginX: b, marginY: w, rowHeight: $, cols: I, fields: L }) => { - a({ resource: f, itemMargin: [b, w], rowHeight: $, cols: I, fields: L }); + return r != null && r.autoHeight ? s.height = "fit-content" : s["--grid-layout-row"] = `${a}`, r != null && r.alignItems && (s["--grid-layout-box-align-items"] = r.alignItems), r != null && r.justifyContent && (s["--grid-layout-box-justify-content"] = r.justifyContent), s["--grid-layout-box-margin"] = At(r == null ? void 0 : r.marginTop, r == null ? void 0 : r.marginRight, r == null ? void 0 : r.marginBottom, r == null ? void 0 : r.marginLeft), s["--grid-layout-box-padding"] = At(r == null ? void 0 : r.paddingTop, r == null ? void 0 : r.paddingRight, r == null ? void 0 : r.paddingBottom, r == null ? void 0 : r.paddingLeft), i && (s.height = `${i}px`), s; +}, At = (e, t, n, a) => `${e || 0}px ${t || 0}px ${n || 0}px ${a || 0}px`, en = ({ className: e, isConditionFormLayout: t }) => { + var f, y; + const [n, a] = E({}), { listCode: r, onKeywordChange: i, onConditionChange: s, getBase62params: o, classNames: l } = k.useContext(ee), { keyword: c, condition: u } = (o == null ? void 0 : o()) || {}, [g] = Ke.useForm(); + return O(() => { + r && t && L.get(`/api/_/${r}/list-condition-form-layout`).then(({ resource: h, marginX: w, marginY: C, rowHeight: S, cols: j, fields: P }) => { + a({ resource: h, itemMargin: [w, C], rowHeight: S, cols: j, fields: P }); }).catch(() => a({})); - }, [r, t]), R(() => { + }, [r, t]), O(() => { g.setFieldsValue({ keyword: c, ...u }); - }, [JSON.stringify([c, u])]), d("div", { className: V("ff-data-list-filter", l.filter, e), children: d(Ke, { form: g, layout: "vertical", autoComplete: "off", onFinish: ((h = n.fields) == null ? void 0 : h.length) > 1 ? (f) => s({ [n.resource]: f[n.resource] }, f.keyword) : () => { - }, onValuesChange: (f) => { - p.isEmpty(p.omit(f, ["keyword"])) || g.submit(); + }, [JSON.stringify([c, u])]), d("div", { className: A("ff-data-list-filter", l.filter, e), children: d(Ke, { form: g, layout: "vertical", autoComplete: "off", onFinish: ((f = n.fields) == null ? void 0 : f.length) > 1 ? (h) => s({ [n.resource]: h[n.resource] }, h.keyword) : () => { + }, onValuesChange: (h) => { + p.isEmpty(p.omit(h, ["keyword"])) || g.submit(); }, children: ((y = n.fields) == null ? void 0 : y.length) > 1 ? d(St, { ...n, children: d(Xn, { onReset: () => { - const { keyword: f, condition: b } = o("init") || {}; - g.setFieldsValue({ keyword: f, ...b }); - } }) }) : d("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: d("div", { className: "grid-layout-item", style: Zt(20, 0, 5, 2), children: d(Ke.Item, { name: ["keyword"], children: d(xn.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (f) => i(f) }) }) }) }) }) }); + const { keyword: h, condition: w } = o("init") || {}; + g.setFieldsValue({ keyword: h, ...w }); + } }) }) : d("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: d("div", { className: "grid-layout-item", style: Zt(20, 0, 5, 2), children: d(Ke.Item, { name: ["keyword"], children: d(vn.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (h) => i(h) }) }) }) }) }) }); }, Xn = ({ cols: e, fields: t, onReset: n }) => { - const [a, r] = T(!1), i = G(() => t == null ? void 0 : t.toReversed().some((s) => s.y > 1 || s.x + s.w >= e - 5), [e, t]); - return O(Ke.Item, { label: " ", style: { "--item-span": 5 }, className: V("ff-data-list-filter-actions", { expanded: a }), children: [d(lt, { onClick: n, children: "重置" }), d(lt, { type: "primary", htmlType: "submit", children: "查询" }), i && d(N.Link, { className: "ff-data-list-filter-expanded-button", widget: () => r((s) => !s), type: "primary", name: a ? "关闭" : "展开", icon: a ? "icon-up" : "icon-down", iconPosition: "end" })] }); + const [a, r] = E(!1), i = G(() => t == null ? void 0 : t.toReversed().some((s) => s.y > 1 || s.x + s.w >= e - 5), [e, t]); + return V(Ke.Item, { label: " ", style: { "--item-span": 5 }, className: A("ff-data-list-filter-actions", { expanded: a }), children: [d(lt, { onClick: n, children: "重置" }), d(lt, { type: "primary", htmlType: "submit", children: "查询" }), i && d(T.Link, { className: "ff-data-list-filter-expanded-button", widget: () => r((s) => !s), type: "primary", name: a ? "关闭" : "展开", icon: a ? "icon-up" : "icon-down", iconPosition: "end" })] }); }; en.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 Qn = ({ className: e, operations: t, isOperations: n, isPaginate: a }) => { - const { onPageChange: r, onPageSizeChange: i, onClickCallback: s, getBase62params: o } = C.useContext(ee), { total: l, page: c, pageSize: u } = (o == null ? void 0 : o()) || {}; - return n && !p.isEmpty(t) || a ? O("div", { className: V("ff-data-list-footer", e), children: [d("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((g, h) => d(N, { uuid: g.uuid, type: g.type, name: g.name, widget: g.widget, widgetType: g.widgetType, widgetProps: g.widgetProps, widgetData: g.widgetData, widgetSetting: g.widgetSetting, widgetContainerProps: g.widgetContainerSetting, onAfterClick: (y) => y !== !1 && (s == null ? void 0 : s(g.isRefresh, null)) }, g.uuid || h)) }), a && d(Sn, { size: "small", total: l, pageSize: u, showSizeChanger: !1, showTotal: (g) => `第 ${c} 页 / 总共 ${g} 条`, onChange: r, onShowSizeChange: i })] }) : null; + const { onPageChange: r, onPageSizeChange: i, onClickCallback: s, getBase62params: o } = k.useContext(ee), { total: l, page: c, pageSize: u } = (o == null ? void 0 : o()) || {}; + return n && !p.isEmpty(t) || a ? V("div", { className: A("ff-data-list-footer", e), children: [d("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((g, f) => d(T, { uuid: g.uuid, type: g.type, name: g.name, widget: g.widget, widgetType: g.widgetType, widgetProps: g.widgetProps, widgetData: g.widgetData, widgetSetting: g.widgetSetting, widgetContainerProps: g.widgetContainerSetting, onAfterClick: (y) => y !== !1 && (s == null ? void 0 : s(g.isRefresh, null)) }, g.uuid || f)) }), a && d(Sn, { size: "small", total: l, pageSize: u, showSizeChanger: !1, showTotal: (g) => `第 ${c} 页 / 总共 ${g} 条`, onChange: r, onShowSizeChange: i })] }) : null; }, Zn = [{ title: "parent 1", key: "0-0", children: [{ title: "parent 1-0", key: "0-0-0", disabled: !0, children: [{ title: "leaf", key: "0-0-0-0", disableCheckbox: !0 }, { title: "leaf", key: "0-0-0-1" }] }, { title: "parent 1-1", key: "0-0-1", children: [{ title: d("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], ea = ({ className: e, width: t = 280, isTreeSider: n }) => { const { classNames: a } = de(ee); - return n ? d($n.DirectoryTree, { className: V("ff-data-list-sider", a.sider, e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: Zn }) : null; + return n ? d($n.DirectoryTree, { className: A("ff-data-list-sider", a.sider, e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: Zn }) : null; }, ta = ({ className: e, title: t, tabs: n }) => { const { getBase62params: a, onTabChange: r, onReload: i, classNames: s } = de(ee), { tab: o } = (a == null ? void 0 : a()) || {}, [l, c] = On((n == null ? void 0 : n[0].value) ?? (n == null ? void 0 : n[0].code), { value: o, onChange: r }); - return O("div", { className: V("ff-data-list-toolbar", s.toolbar, e), children: [d("div", { className: "ff-data-list-title", children: t }), d(Pn, { className: "ff-data-list-tabs", itemRender: ({ label: u, code: g, value: h }) => d("span", { onClick: () => c(h ?? g), className: V("ff-data-list-tab", { active: (h ?? g) == l }), children: u }), items: n }), O("div", { className: "ff-data-list-actions", children: [d(N.Link, { icon: "icon-reload", widget: () => i() }), d(N.Link, { icon: "icon-setting" })] })] }); -}, tn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: r, listCode: i, total: s = 0, page: o = 0, onPageChange: l, pageSize: c = 30, onPageSizeChange: u, tab: g, onTabChange: h, keyword: y, onKeywordChange: f, condition: b, onConditionChange: w, sider: $, onSiderChange: I, layouts: L, classNames: M = {}, ...j }) => { - const [A, P] = T(), S = G(() => { - let v = { sider: ea, filter: en, footer: Qn, toolbar: ta }; - L === !1 ? v = { sider: null, filter: null, footer: null, toolbar: null } : p.isPlainObject(L) && (v = Object.assign({}, v, L)); - for (const U in v) v[U] || (v[U] = () => d(C.Fragment, {})); - return v; - }, [L]); - return R(() => { - t ? Z.getWidgetComponent(t).then((v) => { - if (!v) throw `${t} not found`; - return v; - }).catch((v) => ({ default: () => `${v}` })).then((v) => P(C.createElement(v.default, { ...j, layouts: S, $setting: n }))) : P(d(e ? _n : Yn, { ...j, layouts: S, $setting: n })); - }, [t, n]), d(ee.Provider, { value: { classNames: M, listCode: i, onClickCallback: a, onReload: r, getBase62params: (v, U) => { - const W = { tab: g, page: o, pageSize: c, keyword: y, sider: $, condition: b, total: s }; - return v && v != "init" ? W[v] ?? U : W; - }, onPageChange: l, onPageSizeChange: u, onTabChange: h, onSiderChange: I, onKeywordChange: f, onConditionChange: w }, children: A && C.cloneElement(A, j) }); + return V("div", { className: A("ff-data-list-toolbar", s.toolbar, e), children: [d("div", { className: "ff-data-list-title", children: t }), d(Pn, { className: "ff-data-list-tabs", itemRender: ({ label: u, code: g, value: f }) => d("span", { onClick: () => c(f ?? g), className: A("ff-data-list-tab", { active: (f ?? g) == l }), children: u }), items: n }), V("div", { className: "ff-data-list-actions", children: [d(T.Link, { icon: "icon-reload", widget: () => i() }), d(T.Link, { icon: "icon-setting" })] })] }); +}, tn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: r, listCode: i, total: s = 0, page: o = 0, onPageChange: l, pageSize: c = 30, onPageSizeChange: u, tab: g, onTabChange: f, keyword: y, onKeywordChange: h, condition: w, onConditionChange: C, sider: S, onSiderChange: j, layouts: P, classNames: z = {}, ...I }) => { + const [M, R] = E(), $ = G(() => { + let x = { sider: ea, filter: en, footer: Qn, toolbar: ta }; + P === !1 ? x = { sider: null, filter: null, footer: null, toolbar: null } : p.isPlainObject(P) && (x = Object.assign({}, x, P)); + for (const W in x) x[W] || (x[W] = () => d(k.Fragment, {})); + return x; + }, [P]); + return O(() => { + t ? Z.getWidgetComponent(t).then((x) => { + if (!x) throw `${t} not found`; + return x; + }).catch((x) => ({ default: () => `${x}` })).then((x) => R(k.createElement(x.default, { ...I, layouts: $, $setting: n }))) : R(d(e ? _n : Yn, { ...I, layouts: $, $setting: n })); + }, [t, n]), d(ee.Provider, { value: { classNames: z, listCode: i, onClickCallback: a, onReload: r, getBase62params: (x, W) => { + const N = { tab: g, page: o, pageSize: c, keyword: y, sider: S, condition: w, total: s }; + return x && x != "init" ? N[x] ?? W : N; + }, onPageChange: l, onPageSizeChange: u, onTabChange: f, onSiderChange: j, onKeywordChange: h, onConditionChange: C }, children: M && k.cloneElement(M, I) }); }; -tn.propTypes = { layouts: k.oneOfType([k.exact({ sider: k.elementType, filter: k.elementType, footer: k.elementType, toolbar: k.elementType }), k.bool]) }; -var me, oe, xe, et; +tn.propTypes = { classNames: b.exact({ sider: b.string, filter: b.string, footer: b.string, toolbar: b.string, container: b.string, content: b.string, item: b.string }), layouts: b.oneOfType([b.exact({ sider: b.elementType, filter: b.elementType, footer: b.elementType, toolbar: b.elementType }), b.bool]) }; +var me, oe, ve, et; const ae = class ae { constructor() { - E(this, oe, null); - E(this, xe, /* @__PURE__ */ new Map()); - E(this, et, () => { + F(this, oe, null); + F(this, ve, /* @__PURE__ */ new Map()); + F(this, et, () => { if (m(this, oe)) return m(this, oe).port.postMessage({ command: "status", data: [] }); - B(this, oe, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), m(this, oe).port.onmessage = (t) => { + U(this, oe, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), m(this, oe).port.onmessage = (t) => { var n, a; - (n = t.data) != null && n.uuid ? m(this, xe).forEach((r, i) => { + (n = t.data) != null && n.uuid ? m(this, ve).forEach((r, i) => { var s; (r == "*" || (s = r == null ? void 0 : r.includes) != null && s.call(r, t.data.uuid)) && i(t.data); - }) : ((a = t.data) == null ? void 0 : a.readyState) == WebSocket.CLOSED && F.get("/api/user-api-token").then(({ token: r, expire_at: i }) => { - m(this, oe).port.postMessage({ command: "initWs", data: [`ws${p.trimStart(F.appUrl, "http")}api/user-resource-status-ws?token=${r}`] }); + }) : ((a = t.data) == null ? void 0 : a.readyState) == WebSocket.CLOSED && L.get("/api/user-api-token").then(({ token: r, expire_at: i }) => { + m(this, oe).port.postMessage({ command: "initWs", data: [`ws${p.trimStart(L.appUrl, "http")}api/user-resource-status-ws?token=${r}`] }); }); }, m(this, oe).port.postMessage({ command: "status", data: [] }); }); - x(this, "subscribe", (t, n = []) => (n ? Array.isArray(n) && n.length == 0 ? n = "*" : Array.isArray(n) || (n = [n].flat()) : n = "*", m(this, xe).set(t, n), m(this, xe).size == 1 && m(this, et).call(this), () => this.unsubscribe(t))); - x(this, "unsubscribe", (t) => m(this, xe).delete(t)); + v(this, "subscribe", (t, n = []) => (n ? Array.isArray(n) && n.length == 0 ? n = "*" : Array.isArray(n) || (n = [n].flat()) : n = "*", m(this, ve).set(t, n), m(this, ve).size == 1 && m(this, et).call(this), () => this.unsubscribe(t))); + v(this, "unsubscribe", (t) => m(this, ve).delete(t)); if (m(ae, me)) return m(ae, me); } }; -me = new WeakMap(), oe = new WeakMap(), xe = new WeakMap(), et = new WeakMap(), E(ae, me, null), x(ae, "getInstance", () => (m(ae, me) || B(ae, me, new ae()), m(ae, me))); +me = new WeakMap(), oe = new WeakMap(), ve = new WeakMap(), et = new WeakMap(), F(ae, me, null), v(ae, "getInstance", () => (m(ae, me) || U(ae, me, new ae()), m(ae, me))); let pt = ae; -const nn = pt.getInstance(), kt = C.forwardRef(({ listCode: e, base62params: t, className: n, theme: a, themeProps: r, layouts: i, classNames: s }, o) => { - const [{ resource: l, primaryKey: c, batchOperations: u = [], itemOperations: g = [], columns: h = [], themeConfig: y, theme: f, isConditionFormLayout: b = !1, isTreeSider: w, treeSiderConfig: $, isItemGridLayout: I, itemGridLayout: L, title: M, isPaginate: j, tabs: A }, P] = T({ isItemGridLayout: !1, itemGridLayout: {} }), S = Kn(e, t), [{ dataSource: v, itemOperationsAccess: U, condition: W, tab: K, keyword: ue, page: _, total: nt, pageSize: De, sider: at, onConditionChange: Nt, onTabChange: gn, onKeywordChange: pn, onPageChange: mn, onPageSizeChange: hn, onSiderChange: fn, onReload: rt }, Tt] = Jn(S, e, c, l), yn = gt(g, v, U, c), wn = gt(u); - return R(() => { +const nn = pt.getInstance(), kt = k.forwardRef(({ listCode: e, base62params: t, className: n, theme: a, themeProps: r, layouts: i, classNames: s }, o) => { + const [{ resource: l, primaryKey: c, batchOperations: u = [], itemOperations: g = [], columns: f = [], themeConfig: y, theme: h, isConditionFormLayout: w = !1, isTreeSider: C, treeSiderConfig: S, isItemGridLayout: j, itemGridLayout: P, title: z, isPaginate: I, tabs: M }, R] = E({ isItemGridLayout: !1, itemGridLayout: {} }), $ = Kn(e, t), [{ dataSource: x, itemOperationsAccess: W, condition: N, tab: q, keyword: ue, page: _, total: nt, pageSize: De, sider: at, onConditionChange: Nt, onTabChange: gn, onKeywordChange: pn, onPageChange: mn, onPageSizeChange: hn, onSiderChange: fn, onReload: rt }, Tt] = Jn($, e, c, l), yn = gt(g, x, W, c), wn = gt(u); + return O(() => { let qe = null; - return e && F.get(`/api/_/${e}`).resp(({ data: He, res: bn }) => { - He != null && He.isDynamicRefresh && (qe = nn.subscribe(() => rt(), bn)), P(He); - }).catch(() => P({})), () => qe == null ? void 0 : qe(); - }, [e]), C.useImperativeHandle(o, () => ({ onReload: rt, onClickCallback: Tt })), d(tn, { listCode: e, title: M, classNames: s, layouts: i, resource: l, primaryKey: c, theme: a || f, themeProps: r || y, isTreeSider: w, treeSiderConfig: $, isPaginate: j, tabs: A, isItemOperations: yn, isBatchOperations: wn, batchOperations: u, itemOperations: g, isItemGridLayout: I, columns: h, itemGridLayout: L, isConditionFormLayout: b, itemOperationsAccess: U, dataSource: v, onConditionChange: Nt, onTabChange: gn, onKeywordChange: pn, onPageChange: mn, onPageSizeChange: hn, onSiderChange: fn, condition: W, tab: K, keyword: ue, page: _, total: nt, pageSize: De, sider: at, className: V("ff-data-list-helper", n), onReload: rt, onClickCallback: Tt }); + return e && L.get(`/api/_/${e}`).resp(({ data: He, res: bn }) => { + He != null && He.isDynamicRefresh && (qe = nn.subscribe(() => rt(), bn)), R(He); + }).catch(() => R({})), () => qe == null ? void 0 : qe(); + }, [e]), k.useImperativeHandle(o, () => ({ onReload: rt, onClickCallback: Tt })), d(tn, { listCode: e, title: z, classNames: s, layouts: i, resource: l, primaryKey: c, theme: a || h, themeProps: r || y, isTreeSider: C, treeSiderConfig: S, isPaginate: I, tabs: M, isItemOperations: yn, isBatchOperations: wn, batchOperations: u, itemOperations: g, isItemGridLayout: j, columns: f, itemGridLayout: P, isConditionFormLayout: w, itemOperationsAccess: W, dataSource: x, onConditionChange: Nt, onTabChange: gn, onKeywordChange: pn, onPageChange: mn, onPageSizeChange: hn, onSiderChange: fn, condition: N, tab: q, keyword: ue, page: _, total: nt, pageSize: De, sider: at, className: A("ff-data-list-helper", n), onReload: rt, onClickCallback: Tt }); }), an = (e, t, n = !0) => n !== !0 && n-- <= 0 ? [] : p.isArray(e) && !p.isEmpty(e) ? e.reduce((a, r) => (Reflect.has(r, t) && Reflect.has(r, "children") && a.push(r[t]), Reflect.has(r, "children") && !p.isEmpty(r.children) ? a.concat(an(r.children, t, n)) : a), []) : [], na = ({ className: e, primaryKey: t, columns: n = [], dataSource: a = [], operationRender: r, operationWidth: i = 180, ...s }) => { const { classNames: o } = de(ee); Ge(); - const l = D(null), c = D(null), [u, g] = T([]), [h, y] = T({ width: 0, height: 0 }); - R(() => { + const l = D(null), c = D(null), [u, g] = E([]), [f, y] = E({ width: 0, height: 0 }); + O(() => { g(an(a, t)); - }, [a, t]), vn(() => { - const b = new ResizeObserver(() => { - var w; - y({ width: ((w = l.current) == null ? void 0 : w.nativeElement.querySelector(".ant-table-body").scrollWidth) || c.current.offsetWidth, height: c.current.offsetHeight }); + }, [a, t]), xn(() => { + const w = new ResizeObserver(() => { + var C; + y({ width: ((C = l.current) == null ? void 0 : C.nativeElement.querySelector(".ant-table-body").scrollWidth) || c.current.offsetWidth, height: c.current.offsetHeight }); }); - return c.current && b.observe(c.current), () => { - c.current && b.unobserve(c.current); + return c.current && w.observe(c.current), () => { + c.current && w.unobserve(c.current); }; }, []); - const f = Hn(n); - return d("div", { ref: c, className: V("ff-data-list-table", o.content, e), children: h.height ? d(Nn, { ...s, ref: l, rowKey: (b) => (b == null ? void 0 : b[t]) ?? Math.random(), columns: f == null ? void 0 : f.concat(r ? [{ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(i / h.width * 100).toFixed(2)}%`, render: (b, w, $) => r(w, $) }] : []), dataSource: a, size: "middle", scroll: { x: "max-content", y: h.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: g, expandedRowKeys: u } }) : null }); + const h = Hn(n); + return d("div", { ref: c, className: A("ff-data-list-table", o.content, e), children: f.height ? d(Nn, { ...s, ref: l, rowKey: (w) => (w == null ? void 0 : w[t]) ?? Math.random(), columns: h == null ? void 0 : h.concat(r ? [{ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(i / f.width * 100).toFixed(2)}%`, render: (w, C, S) => r(C, S) }] : []), dataSource: a, size: "middle", scroll: { x: "max-content", y: f.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: g, expandedRowKeys: u } }) : null }); }, aa = "RC_FORM_INTERNAL_HOOKS", rn = (e, { initialValue: t, initialValueLanguage: n, convertJs: a, convertJsSetting: r, type: i = "string" }, s = null) => { - const o = D(!1), l = de(Ln), [c, u] = T(), [g, h] = T(n != "javascript" && e ? l.getFieldValue(e) : void 0), { registerWatch: y } = l.getInternalHooks(aa) || {}; - return R(() => y == null ? void 0 : y((f, b, w) => { + const o = D(!1), l = de(Ln), [c, u] = E(), [g, f] = E(n != "javascript" && e ? l.getFieldValue(e) : void 0), { registerWatch: y } = l.getInternalHooks(aa) || {}; + return O(() => y == null ? void 0 : y((h, w, C) => { if (!o.current) return; - const $ = p.get(b, e); - p.isEqual($, g) || h(X($, i)); - }), [g]), R(() => { - n == "javascript" && t ? Ce.exec(t, {}, { getFieldValueForBasicForm: (f) => s ? s.getFieldValue(f) : l.getFieldValue(f), getFieldValue: (f) => l.getFieldValue(f) }).then((f) => h(X(f, i))).catch((f) => notification.error({ message: `布局数据错误: ${JSON.stringify(f)}` })).finally(() => o.current = !0) : (t && h(X(t ?? l.getFieldValue(e), i)), o.current = !0); - }, [t, n]), Be(() => { - o.current && a && new Ye([a, r]).toValue(g, l.getFieldsValue(!0)).then(u).catch((f) => { - u(f), console.error("布局数据转换错误: ", f, a); + const S = p.get(w, e); + p.isEqual(S, g) || f(X(S, i)); + }), [g]), O(() => { + n == "javascript" && t ? Ce.exec(t, {}, { getFieldValueForBasicForm: (h) => s ? s.getFieldValue(h) : l.getFieldValue(h), getFieldValue: (h) => l.getFieldValue(h) }).then((h) => f(X(h, i))).catch((h) => notification.error({ message: `布局数据错误: ${JSON.stringify(h)}` })).finally(() => o.current = !0) : (t && f(X(t ?? l.getFieldValue(e), i)), o.current = !0); + }, [t, n]), We(() => { + o.current && a && new Ye([a, r]).toValue(g, l.getFieldsValue(!0)).then(u).catch((h) => { + u(h), console.error("布局数据转换错误: ", h, a); }); }, [g, a, r]), [c ?? g, g]; }, sn = (e, t, n = "@pkg/ff/grid-layouts", a = null) => G(() => { var r; - return (r = p.sortBy(e, ["y", "x"])) == null ? void 0 : r.map(({ i, x: s, y: o, w: l, h: c, field: { boxStyle: u, widgetPrefix: g = n, widget: h, ...y } }, f) => d("div", { className: "grid-layout-item", style: Zt(s, o, l, c, u, h === "Height" && (y == null ? void 0 : y.initialValue)), children: d(ra, { ...y, basicForm: a, itemWidget: h != null && h.startsWith("@") || h != null && h.startsWith("blob:") ? h : `${g}/${h}`, itemWidgetRender: t }) }, i || f)); + return (r = p.sortBy(e, ["y", "x"])) == null ? void 0 : r.map(({ i, x: s, y: o, w: l, h: c, field: { boxStyle: u, widgetPrefix: g = n, widget: f, ...y } }, h) => d("div", { className: "grid-layout-item", style: Zt(s, o, l, c, u, f === "Height" && (y == null ? void 0 : y.initialValue)), children: d(ra, { ...y, basicForm: a, itemWidget: f != null && f.startsWith("@") || f != null && f.startsWith("blob:") ? f : `${g}/${f}`, itemWidgetRender: t }) }, i || h)); }, [e]), ra = ({ itemWidget: e, itemWidgetRender: t, basicForm: n, ...a }) => { - const [r, i] = T(); - return R(() => { + const [r, i] = E(); + return O(() => { Z.getWidgetComponent(e).then(({ defaultProps: s = {}, default: o }) => { - i(C.createElement(t(o, s, n), a)); + i(k.createElement(t(o, s, n), a)); }).catch((s) => { console.error(s), i(e); }); }, [e]), r; }, on = ({ cols: e = 12, rowHeight: t = 21, fields: n = [], data: a, containerPadding: r = [0, 0], itemMargin: i = [4, 0], formProps: s = {}, className: o, ...l }) => { const [c] = Q.useForm(), u = sn(n, ia, "@pkg/ff/grid-layouts"), g = G(() => [{ name: "__PROPS__", value: s }], [s]); - return Be(() => (c.setFieldsValue(a), () => c.resetFields()), [a]), d(Q, { fields: g, form: c, component: !1, children: d("div", { ...l, className: V("ff-grid-layout", o), style: { "--grid-layout-item-margin-y": `${(i == null ? void 0 : i[0]) || 0}px`, "--grid-layout-item-margin-x": `${(i == null ? void 0 : i[1]) || 0}px`, "--grid-layout-container-padding-y": `${(r == null ? void 0 : r[0]) || 0}px`, "--grid-layout-container-padding-x": `${(r == null ? void 0 : r[1]) || 0}px`, "--grid-layout-cols": e, "--grid-layout-row-height": `${t}px` }, children: u }) }); + return We(() => (c.setFieldsValue(a), () => c.resetFields()), [a]), d(Q, { fields: g, form: c, component: !1, children: d("div", { ...l, className: A("ff-grid-layout", o), style: { "--grid-layout-item-margin-y": `${(i == null ? void 0 : i[0]) || 0}px`, "--grid-layout-item-margin-x": `${(i == null ? void 0 : i[1]) || 0}px`, "--grid-layout-container-padding-y": `${(r == null ? void 0 : r[0]) || 0}px`, "--grid-layout-container-padding-x": `${(r == null ? void 0 : r[1]) || 0}px`, "--grid-layout-cols": e, "--grid-layout-row-height": `${t}px` }, children: u }) }); }, ia = (e, t = {}, n = null) => (a) => { - const { code: r, label: i, extras: s, isVirtual: o, initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, ...h } = p.merge({}, t, a), [y, f] = rn(o ? null : r, { initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, type: (h == null ? void 0 : h.type) || "string" }, n); - return d(e, { ...h, value: y, rawValue: f, $setting: s || {} }); -}, lr = (At = on, function({ code: e, data: t, ...n }) { - const [a, r] = T({ resource: null, cols: 12, rowHeight: 21, fields: [] }); - return R(() => { - e && F.get(`/api/_/${e}`).then((i) => r(p.pick(i, ["resource", "cols", "rowHeight", "fields"]))); - }, [e]), (a == null ? void 0 : a.resource) && d(At, { ...n, rowHeight: a.rowHeight, cols: a.cols, fields: a.fields, data: a != null && a.resource ? { [a == null ? void 0 : a.resource]: t } : {} }); + const { code: r, label: i, extras: s, isVirtual: o, initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, ...f } = p.merge({}, t, a), [y, h] = rn(o ? null : r, { initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, type: (f == null ? void 0 : f.type) || "string" }, n); + return d(e, { ...f, value: y, rawValue: h, $setting: s || {} }); +}, lr = (jt = on, function({ code: e, data: t, ...n }) { + const [a, r] = E({ resource: null, cols: 12, rowHeight: 21, fields: [] }); + return O(() => { + e && L.get(`/api/_/${e}`).then((i) => r(p.pick(i, ["resource", "cols", "rowHeight", "fields"]))); + }, [e]), (a == null ? void 0 : a.resource) && d(jt, { ...n, rowHeight: a.rowHeight, cols: a.cols, fields: a.fields, data: a != null && a.resource ? { [a == null ? void 0 : a.resource]: t } : {} }); }); -var At; +var jt; const cr = ({ widget: e, widgetPrefix: t = "@pkg/ff/grid-layouts", basicForm: n, ...a }) => { - const r = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [i, s] = T(); - return R(() => { - r && Z.getWidgetComponent(r).then(({ defaultProps: o = {}, default: l }) => ({ default: sa(l, o, n) })).catch((o) => ({ default: () => `${o}` })).then((o) => s(C.createElement(o.default, a))); + const r = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [i, s] = E(); + return O(() => { + r && Z.getWidgetComponent(r).then(({ defaultProps: o = {}, default: l }) => ({ default: sa(l, o, n) })).catch((o) => ({ default: () => `${o}` })).then((o) => s(k.createElement(o.default, a))); }, [r]), i; }, sa = (e, t = {}, n = null) => (a) => { - const { code: r, label: i, extras: s, isVirtual: o, initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, value: h, ...y } = p.merge({}, t, a), [f, b] = rn(o ? null : r, { initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, type: (y == null ? void 0 : y.type) || "string" }, n); - return d(e, { ...y, value: f, rawValue: b, $setting: s || {} }); -}, oa = ({ cols: e, rowHeight: t, itemMargin: n, fields: a, primaryKey: r, dataSource: i, itemClassName: s, itemRender: o = (g, h, y) => g, empty: l = d(Tn, { description: null }), className: c, style: u = {} }) => { - const { classNames: g } = de(ee), h = Ge(), y = G(() => d(on, { cols: e, rowHeight: t, itemMargin: n, fields: a, className: s }), [a, e, t, n]); - return d("div", { className: V("ff-data-list-content", g.content, c), style: u, children: p.isEmpty(i) ? l : i.map((f, b) => { - const w = o(C.cloneElement(y, { data: f }), f, b); - return C.cloneElement(w, { key: `${h}-${(f == null ? void 0 : f[r]) || b}` }); + const { code: r, label: i, extras: s, isVirtual: o, initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, value: f, ...y } = p.merge({}, t, a), [h, w] = rn(o ? null : r, { initialValue: l, initialValueLanguage: c, convertJs: u, convertJsSetting: g, type: (y == null ? void 0 : y.type) || "string" }, n); + return d(e, { ...y, value: h, rawValue: w, $setting: s || {} }); +}, oa = ({ cols: e, rowHeight: t, itemMargin: n, fields: a, primaryKey: r, dataSource: i, itemClassName: s, itemRender: o = (g, f, y) => g, empty: l = d(Tn, { description: null }), className: c, style: u = {} }) => { + const { classNames: g } = de(ee), f = Ge(), y = G(() => d(on, { cols: e, rowHeight: t, itemMargin: n, fields: a, className: s }), [a, e, t, n]); + return d("div", { className: A("ff-data-list-content", g.content, c), style: u, children: p.isEmpty(i) ? l : i.map((h, w) => { + const C = o(k.cloneElement(y, { data: h }), h, w); + return k.cloneElement(C, { key: `${f}-${(h == null ? void 0 : h[r]) || w}` }); }) }); }, la = ({ component: e }) => { const { base62params: t } = Vn(); - return d(J, { children: d(kt, { listCode: e, base62params: F.decode(t) }) }); + return d(K, { children: d(kt, { listCode: e, base62params: L.decode(t) }) }); }, ca = () => "Empty", da = ({ component: e, $setting: t }) => { - const [n, a] = T(); - R(() => { + const [n, a] = E(); + O(() => { if (!e) return a(d(ca, { description: null })); - Z.getWidgetComponent(e).catch((i) => ({ default: () => `${i}` })).then((i) => C.createElement(i.default, { $setting: t })).then(a); + Z.getWidgetComponent(e).catch((i) => ({ default: () => `${i}` })).then((i) => k.createElement(i.default, { $setting: t })).then(a); }, [e]); const r = le.getPageParams() || {}; - return n ? C.cloneElement(n, r) : null; + return n ? k.cloneElement(n, r) : null; }; var he, Y, fe, ye, Me, ze; const re = class re { constructor() { - E(this, Y, /* @__PURE__ */ new Map()); - E(this, fe, {}); - E(this, ye, null); - x(this, "init", (t, n) => { - B(this, Y, t), B(this, fe, n); + F(this, Y, /* @__PURE__ */ new Map()); + F(this, fe, {}); + F(this, ye, null); + v(this, "init", (t, n) => { + U(this, Y, t), U(this, fe, n); }); - x(this, "get", (t) => (m(this, Y).has(t) || (t = Array.from(m(this, Y).keys()).find((n) => m(this, Y).get(n).uri === t)), m(this, Y).get(t) || {})); - x(this, "redirect", (t, n, a = {}) => { + v(this, "get", (t) => (m(this, Y).has(t) || (t = Array.from(m(this, Y).keys()).find((n) => m(this, Y).get(n).uri === t)), m(this, Y).get(t) || {})); + v(this, "redirect", (t, n, a = {}) => { const { uri: r, type: i, widgetProps: s } = this.get(t) || {}; - let o = jn(r || t, i != "list" ? n : p.mapValues(n, (c) => F.encode(c))); + let o = An(r || t, i != "list" ? n : p.mapValues(n, (c) => L.encode(c))); const l = new URLSearchParams(); for (const c in s || {}) (s == null ? void 0 : s.type) == "query" && l.append(c, n[c]); return l.size > 0 && (o = `${o}?${l.toString()}`), m(this, ye).navigate(o, a); }); - x(this, "getMenus", (t) => { + v(this, "getMenus", (t) => { var n; return ((n = m(this, fe)) == null ? void 0 : n[t]) || []; }); - x(this, "findMenuPathByUuid", (t) => { + v(this, "findMenuPathByUuid", (t) => { let n = []; for (const a in m(this, fe)) if (n = m(this, Me).call(this, m(this, fe)[a], t, [a]), n.length > 1) return n; return n; }); - x(this, "getMenusByRouteUuid", (t) => m(this, ze).call(this, t, Object.values(m(this, fe)).flat())); - E(this, Me, (t, n, a = []) => { + v(this, "getMenusByRouteUuid", (t) => m(this, ze).call(this, t, Object.values(m(this, fe)).flat())); + F(this, Me, (t, n, a = []) => { if (p.isEmpty(t)) return a; for (const { uuid: r, children: i } of t) { if (r == n) return a.concat(r); @@ -472,74 +472,74 @@ const re = class re { } return a; }); - E(this, ze, (t, n) => { + F(this, ze, (t, n) => { var r; let a = []; for (const i of n) i.widgetType == "redirect" && (i.uuid == t || i.widget == t ? a.push(i) : (r = i.children) != null && r.length && (a = a.concat(m(this, ze).call(this, t, i.children)))); return a; }); - x(this, "getCurrentMenu", () => { + v(this, "getCurrentMenu", () => { const { uuid: t } = this.getCurrentRoute() || {}; if (!t) return; const n = this.getMenusByRouteUuid(t); return p.isEmpty(n) ? void 0 : n[0]; }); - x(this, "getCurrentRoute", (t = 0) => { + v(this, "getCurrentRoute", (t = 0) => { var a; const n = (a = m(this, ye).state.matches[m(this, ye).state.matches.length - 1 - t]) == null ? void 0 : a.route; if (!n) return null; for (let [r, i] of m(this, Y)) if (i.uri === n.path) return i; return null; }); - x(this, "getPageParams", (t) => { + v(this, "getPageParams", (t) => { var i, s; const { location: n = {}, matches: a = [] } = ((i = m(this, ye)) == null ? void 0 : i.state) || {}, r = ((s = a[a.length - 1]) == null ? void 0 : s.params) || {}; return n.search && new URLSearchParams(n.search).forEach((o, l) => { r[l] = o; }), t ? p.get(r, t) : r; }); - x(this, "createBrowserRouter", (t = {}) => { + v(this, "createBrowserRouter", (t = {}) => { if (m(this, Y).size == 0) return null; const n = Oe.get("Common.WEBSITE_DEFAULT_THEME", "@pkg/ff/frameworks/DefaultTheme"), a = Oe.get(Z.checkUserToken() ? "Common.WEBSITE_LOGIN_REDIRECT" : "Common.WEBSITE_DEFAULT", "/index"), r = { [n]: 0 }, i = (o, l) => () => Z.getWidgetComponent(o).then((c) => c.default || function() { return `${o}`; - }).then((c) => ({ Component: () => C.createElement(Kt, {}, C.createElement(c, l)) })), s = Array.from(m(this, Y).values()).reduce((o, { uuid: l, uri: c, name: u, type: g, component: h, widgetSetting: y, isLogin: f, isLayout: b, extra: w }) => { - let $ = {}, I = 0; + }).then((c) => ({ Component: () => k.createElement(Kt, {}, k.createElement(c, l)) })), s = Array.from(m(this, Y).values()).reduce((o, { uuid: l, uri: c, name: u, type: g, component: f, widgetSetting: y, isLogin: h, isLayout: w, extra: C }) => { + let S = {}, j = 0; switch (g) { case "list": - $.element = C.createElement(la, { component: h }); + S.element = k.createElement(la, { component: f }); break; case "fsdpf-component": - $.element = C.createElement(da, { key: h, component: h, $setting: y }); + S.element = k.createElement(da, { key: f, component: f, $setting: y }); } - if (w != null && w.layout) { - if (!r[w == null ? void 0 : w.layout]) return r[w == null ? void 0 : w.layout] = o.length, [...o, { path: "/", lazy: i(w == null ? void 0 : w.layout, {}), children: [{ path: c, ...$ }] }]; - I = r[w == null ? void 0 : w.layout]; + if (C != null && C.layout) { + if (!r[C == null ? void 0 : C.layout]) return r[C == null ? void 0 : C.layout] = o.length, [...o, { path: "/", lazy: i(C == null ? void 0 : C.layout, {}), children: [{ path: c, ...S }] }]; + j = r[C == null ? void 0 : C.layout]; } - return b && I > -1 ? (o[I].children.push({ path: c, ...$ }), o) : [...o, { path: c, ...$ }]; + return w && j > -1 ? (o[j].children.push({ path: c, ...S }), o) : [...o, { path: c, ...S }]; }, [{ path: "/", lazy: i(n, {}), children: [] }]); - return s.push({ index: !0, element: C.createElement(ua, { to: a, replace: !0 }) }), B(this, ye, An(s, t)); + return s.push({ index: !0, element: k.createElement(ua, { to: a, replace: !0 }) }), U(this, ye, jn(s, t)); }); if (m(re, he)) return m(re, he); } }; -he = new WeakMap(), Y = new WeakMap(), fe = new WeakMap(), ye = new WeakMap(), Me = new WeakMap(), ze = new WeakMap(), E(re, he, null), x(re, "getInstance", () => (m(re, he) || B(re, he, new re()), m(re, he))); +he = new WeakMap(), Y = new WeakMap(), fe = new WeakMap(), ye = new WeakMap(), Me = new WeakMap(), ze = new WeakMap(), F(re, he, null), v(re, "getInstance", () => (m(re, he) || U(re, he, new re()), m(re, he))); let mt = re; -const ua = ({ to: e, replace: t }) => In() ? C.createElement(Mn, { to: e, replace: t }) : (window.document.location = e, "redirect"), le = mt.getInstance(), Se = new Worker(new URL("/ff-worker/index.js", self.location)), It = { getConfigure: (e) => Oe.get(e), route: { redirect: (...e) => le.redirect(...e), getPageParams: (...e) => le.getPageParams(...e), getCurrentRoute: () => le.getCurrentRoute() }, popup: { notification: (...e) => H.notification(...e), success: (...e) => H.success(...e), error: (...e) => H.error(...e), form: (...e) => H.form(...e), modal: (...e) => H.modal(...e), confirm: (...e) => H.confirm(...e) } }; +const ua = ({ to: e, replace: t }) => In() ? k.createElement(Mn, { to: e, replace: t }) : (window.document.location = e, "redirect"), le = mt.getInstance(), Se = new Worker(new URL("/ff-worker/index.js", self.location)), It = { getConfigure: (e) => Oe.get(e), route: { redirect: (...e) => le.redirect(...e), getPageParams: (...e) => le.getPageParams(...e), getCurrentRoute: () => le.getCurrentRoute() }, popup: { notification: (...e) => J.notification(...e), success: (...e) => J.success(...e), error: (...e) => J.error(...e), form: (...e) => J.form(...e), modal: (...e) => J.modal(...e), confirm: (...e) => J.confirm(...e) } }; var tt, Te, we; -const z = class z { +const B = class B { constructor() { - x(this, "exec", (t, n = {}, a = {}, r = "") => new Promise((i, s) => { - const o = Ft(z, tt)._++; - m(z, Te).set(o, a), z.mQueue.set(o, [i, s]), Se.postMessage({ id: o, session: r, category: "eval", method: t, args: n }); + v(this, "exec", (t, n = {}, a = {}, r = "") => new Promise((i, s) => { + const o = Ft(B, tt)._++; + m(B, Te).set(o, a), B.mQueue.set(o, [i, s]), Se.postMessage({ id: o, session: r, category: "eval", method: t, args: n }); })); - x(this, "clear", (t) => Se.postMessage({ session: t, category: "clear" })); - if (m(z, we)) return m(z, we); - Promise.resolve().then(() => ja).then((t) => { + v(this, "clear", (t) => Se.postMessage({ session: t, category: "clear" })); + if (m(B, we)) return m(B, we); + Promise.resolve().then(() => Aa).then((t) => { It.http = t.http; }), Se.addEventListener("message", ({ data: { id: t, task_id: n, method: a, args: r, category: i, data: s, error: o, session: l } }) => { - if (i === "eval" && z.mQueue.has(t)) o !== null ? z.mQueue.get(t)[1](o) : z.mQueue.get(t)[0](s), m(z, Te).delete(t), z.mQueue.delete(t); + if (i === "eval" && B.mQueue.has(t)) o !== null ? B.mQueue.get(t)[1](o) : B.mQueue.get(t)[0](s), m(B, Te).delete(t), B.mQueue.delete(t); else if (i === "util") try { - const c = p.get(It, a.split("/")) || p.get(m(z, Te).get(n), a.split("/")); + const c = p.get(It, a.split("/")) || p.get(m(B, Te).get(n), a.split("/")); if (!p.isFunction(c)) throw `${a} not found`; Promise.resolve(Reflect.apply(c, void 0, r)).then((u) => { Se.postMessage({ id: t, task_id: n, category: i, method: a, args: r, session: l, data: u, error: null }); @@ -552,75 +552,75 @@ const z = class z { }, !1); } }; -tt = new WeakMap(), Te = new WeakMap(), we = new WeakMap(), x(z, "mQueue", /* @__PURE__ */ new Map()), E(z, tt, 0), E(z, Te, /* @__PURE__ */ new Map()), E(z, we, null), x(z, "getInstance", () => (m(z, we) || B(z, we, new z()), m(z, we))); -let ht = z; -const Ce = ht.getInstance(), vt = () => { - const e = D(!0), [, t] = C.useReducer((n) => n + 1, 0); - return R(() => () => e.current = !1, []), () => e.current && t(); +tt = new WeakMap(), Te = new WeakMap(), we = new WeakMap(), v(B, "mQueue", /* @__PURE__ */ new Map()), F(B, tt, 0), F(B, Te, /* @__PURE__ */ new Map()), F(B, we, null), v(B, "getInstance", () => (m(B, we) || U(B, we, new B()), m(B, we))); +let ht = B; +const Ce = ht.getInstance(), xt = () => { + const e = D(!0), [, t] = k.useReducer((n) => n + 1, 0); + return O(() => () => e.current = !1, []), () => e.current && t(); }, dr = (e) => { const t = D(); - return R(() => { + return O(() => { t.current = e; }, [e]), t.current; }, ur = (e) => { - const [t, n] = T(e), a = D(null), r = ce((i, s) => { + const [t, n] = E(e), a = D(null), r = ce((i, s) => { a.current = s, n(i); }, []); - return R(() => { + return O(() => { a.current && (a.current(t), a.current = null); }, [t]), [t, r]; -}, Be = (e = (a) => { +}, We = (e = (a) => { }, t, n = p.isEqual) => { - const a = C.useRef(); - n(t, a.current) || (a.current = p.cloneDeep(t)), C.useEffect(e, [a.current]); -}, xt = Be, ln = (e, t = "string") => { + const a = k.useRef(); + n(t, a.current) || (a.current = p.cloneDeep(t)), k.useEffect(e, [a.current]); +}, vt = We, ln = (e, t = "string") => { var n; if (!Array.isArray(e)) return e; for (let a = 0; a < e.length; a++) e[a].value = X((n = e[a]) == null ? void 0 : n.value, t), e[a] && Reflect.has(e[a], "children") && (e[a].children = ln(e[a].children, t)); return e; }, gr = (e, t = "json", n = "string", a, r = null) => { - const [i] = Q.useForm(a), [s, o] = T([{ label: "无", value: "", disabled: !0 }]), l = D([]), c = Q.useWatch((u) => l.current.length === 0 ? null : p.pick(u, l.current), i) || null; - return R(() => { + const [i] = Q.useForm(a), [s, o] = E([{ label: "无", value: "", disabled: !0 }]), l = D([]), c = Q.useWatch((u) => l.current.length === 0 ? null : p.pick(u, l.current), i) || null; + return O(() => { Array.isArray(e) ? o(e) : t === "javascript" && e ? Ce.exec(e, {}, { getFieldValue: (u) => (l.current.includes(u) || l.current.push(u), i.getFieldValue(u)), getFieldValueForBasicForm: (u) => (l.current.includes(u) || l.current.push(u), r ? r.getFieldValue(u) : i.getFieldValue(u)) }).then((u) => { o(X(u, "array")); }) : e && o(X(e, "array")); }, [e, t, c]), ln(s, n); }, pr = (e) => { - const [t, n] = T(), a = { type: "GET" }; + const [t, n] = E(), a = { type: "GET" }; if (typeof e == "string" ? a.url = e : p.isPlainObject(e) && Object.assign(a, e), !(a != null && a.url)) throw "url is required"; - const r = (i) => F.request(a, !1).resp((s) => (console.log("useSubscribeRequest", i), n(s), s)); - return Be(() => { + const r = (i) => L.request(a, !1).resp((s) => (console.log("useSubscribeRequest", i), n(s), s)); + return We(() => { let i = null; return r().then((s) => { i = nn.subscribe(p.throttle(r, 180, { leading: !1, trailing: !0 }), s.res); }), () => i == null ? void 0 : i(); }, a), t; }, ga = (e) => { - const [t, n] = C.useState({ gridItems: [], hideItems: [] }); - return C.useEffect(() => { - e && F.get(`/api/_/${e}`).then(({ pk: a, uuid: r, code: i, resource: s, align: o, cols: l, rowHeight: c, marginX: u, marginY: g, listenChangeFields: h, listenChangeFieldsFunc: y, fields: f }) => ({ pk: a, uuid: r, code: i, resource: s, align: o, cols: l, rowHeight: c, marginX: u, marginY: g, listenChangeFields: h, listenChangeFieldsFunc: y, ...f.reduce((b, w) => { - var $; - return ($ = w == null ? void 0 : w.field) != null && $.hidden ? b.hides.push(w == null ? void 0 : w.field) : b.items.push(w), b; + const [t, n] = k.useState({ gridItems: [], hideItems: [] }); + return k.useEffect(() => { + e && L.get(`/api/_/${e}`).then(({ pk: a, uuid: r, code: i, resource: s, align: o, cols: l, rowHeight: c, marginX: u, marginY: g, listenChangeFields: f, listenChangeFieldsFunc: y, fields: h }) => ({ pk: a, uuid: r, code: i, resource: s, align: o, cols: l, rowHeight: c, marginX: u, marginY: g, listenChangeFields: f, listenChangeFieldsFunc: y, ...h.reduce((w, C) => { + var S; + return (S = C == null ? void 0 : C.field) != null && S.hidden ? w.hides.push(C == null ? void 0 : C.field) : w.items.push(C), w; }, { items: [], hides: [] }) })).then(n); }, [e]), t; }, pa = ({ max: e = 0, min: t = 0, type: n = "", message: a, pattern: r, required: i = !1, validator: s } = {}, o, l) => { - const [c, u] = T([]); - return R(() => { + const [c, u] = E([]); + return O(() => { const g = []; if (i) { - let h = l; + let f = l; switch (l) { case "number": case "string": case "array": break; case "bool": - h = "boolean"; + f = "boolean"; break; case "json": - h = "object"; + f = "object"; } - g.push({ type: h, required: !0, whitespace: !0, message: "该项必填" }); + g.push({ type: f, required: !0, whitespace: !0, message: "该项必填" }); } switch (n) { case "string": @@ -630,73 +630,73 @@ const Ce = ht.getInstance(), vt = () => { g.push({ type: "string", pattern: r, message: a }); break; case "validator": - s && g.push(({ getFieldValue: h }) => ({ validator: async (y, f) => { - const b = await Ce.exec(s, { value: f, fieldName: o }, { getFieldValue: h }); - return p.isString(b) && b ? Promise.reject(b) : p.isBoolean(b) && !b ? Promise.reject(a) : Promise.resolve(); + s && g.push(({ getFieldValue: f }) => ({ validator: async (y, h) => { + const w = await Ce.exec(s, { value: h, fieldName: o }, { getFieldValue: f }); + return p.isString(w) && w ? Promise.reject(w) : p.isBoolean(w) && !w ? Promise.reject(a) : Promise.resolve(); } })); } u(g); }, [e, t, n, a, r, i, s]), c; }, ma = (e, t, n) => { - const [a, r] = T(null); - return R(() => { + const [a, r] = E(null); + return O(() => { const { initDataUri: i = `/api/${e}`, initDataMethod: s = "GET" } = n || {}; - t && F.request({ method: s, url: p.trimEnd(`${i}/${t}`, "/") }).then((o) => { + t && L.request({ method: s, url: p.trimEnd(`${i}/${t}`, "/") }).then((o) => { r(o); }); }, [e, t, n]), a; }, ha = (e, t, n, a = {}) => { - const r = vt(), i = D(!0), s = D([]), [o, l] = T(n), c = Q.useWatch((u) => JSON.stringify(p.pick(u, s.current)), t) || "{}"; - return R(() => { - e && Ce.exec(e, a, { getFieldValue: p.wrap(t.getFieldValue, (u, g) => (s.current.some((h) => p.isEqual(h, g)) || (s.current.push(g), r()), u(g))), isFieldTouched: t.isFieldTouched, isFieldsTouched: t.isFieldsTouched }).then((u) => i.current && l(u)); - }, [e, c, t, a]), R(() => () => i.current = !1, []), o; + const r = xt(), i = D(!0), s = D([]), [o, l] = E(n), c = Q.useWatch((u) => JSON.stringify(p.pick(u, s.current)), t) || "{}"; + return O(() => { + e && Ce.exec(e, a, { getFieldValue: p.wrap(t.getFieldValue, (u, g) => (s.current.some((f) => p.isEqual(f, g)) || (s.current.push(g), r()), u(g))), isFieldTouched: t.isFieldTouched, isFieldsTouched: t.isFieldsTouched }).then((u) => i.current && l(u)); + }, [e, c, t, a]), O(() => () => i.current = !1, []), o; }, mr = ({ value: e, onChange: t }, n = null) => { const a = D(), [r] = Q.useForm(n); - return xt(() => { + return vt(() => { p.isEqual(a.current, e) || r.setFieldsValue(e); - }, [e]), R(() => () => r.resetFields(), []), [G(() => r.__INTERNAL__ ? r : { ...r, __INTERNAL__: {} }, [r]), (i, s) => { + }, [e]), O(() => () => r.resetFields(), []), [G(() => r.__INTERNAL__ ? r : { ...r, __INTERNAL__: {} }, [r]), (i, s) => { a.current = s, t(s); }]; }, fa = ({ type: e, initialValue: t, initialValueLanguage: n, onChange: a, form: r }) => { const i = ha(n == "javascript" && t, r, n == "javascript" ? void 0 : t, {}); - return R(() => { + return O(() => { n == "javascript" ? a(X(i, e)) : t && a(X(t, e)); }, [e, t, i]), null; }, ya = ({ widget: e = "Input", widgetPrefix: t = "@pkg/ff/grid-layout-forms", widgetDecorator: n, subWidgets: a, basicForm: r, ...i }) => { - const s = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [o, l] = T(); - return R(() => { - s && Z.getWidgetComponent(s).then(({ defaultProps: c = {}, default: u }) => ({ default: cn(u, c, r) })).catch((c) => ({ default: () => `${c}` })).then((c) => l(C.createElement(c.default, i))); - }, [s]), o && C.cloneElement(o, i); + const s = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [o, l] = E(); + return O(() => { + s && Z.getWidgetComponent(s).then(({ defaultProps: c = {}, default: u }) => ({ default: cn(u, c, r) })).catch((c) => ({ default: () => `${c}` })).then((c) => l(k.createElement(c.default, i))); + }, [s]), o && k.cloneElement(o, i); }, cn = (e, t = {}, n = null) => (a) => { - const { type: r, code: i, label: s, noStyle: o, placeholder: l, extras: c, validators: u, help: g, isVirtual: h, $isReserved: y, initialValue: f, initialValueLanguage: b, convertJs: w, convertJsSetting: $, widgetPerfix: I, boxStyle: L, widgetDecorator: M, subWidgets: j, ...A } = { ...t, ...a }, P = pa(u || {}, i, r), S = { label: s, noStyle: o, colon: !1, layout: "vertical" }, v = { placeholder: l, ...A }, U = ce((W) => W == null ? void 0 : X(W, r), [r]); - return d(Ht, { name: i, rules: P, initialValue: U(f), normalize: U, children: (W, K, ue) => { + const { type: r, code: i, label: s, noStyle: o, placeholder: l, extras: c, validators: u, help: g, isVirtual: f, $isReserved: y, initialValue: h, initialValueLanguage: w, convertJs: C, convertJsSetting: S, widgetPerfix: j, boxStyle: P, widgetDecorator: z, subWidgets: I, ...M } = { ...t, ...a }, R = pa(u || {}, i, r), $ = { label: s, noStyle: o, colon: !1, layout: "vertical" }, x = { placeholder: l, ...M }, W = ce((N) => N == null ? void 0 : X(N, r), [r]); + return d(Ht, { name: i, rules: R, initialValue: W(h), normalize: W, children: (N, q, ue) => { var _; - return d(e, { type: r, rcform: ue, itemProps: { validateStatus: K.errors.length > 0 ? "error" : "success", tooltip: g, help: K.errors.length > 0 ? K.errors.join("、") : null, required: ((_ = P == null ? void 0 : P[0]) == null ? void 0 : _.required) || !1, ...S }, fieldProps: { ...v, ...W }, $setting: c || {} }); + return d(e, { type: r, rcform: ue, itemProps: { validateStatus: q.errors.length > 0 ? "error" : "success", tooltip: g, help: q.errors.length > 0 ? q.errors.join("、") : null, required: ((_ = R == null ? void 0 : R[0]) == null ? void 0 : _.required) || !1, ...$ }, fieldProps: { ...x, ...N }, $setting: c || {} }); } }); }, St = ({ cols: e = 24, rowHeight: t = 16, itemMargin: n = [8, 16], containerPadding: a = [0, 0], fields: r = [], children: i, basicForm: s = null }) => { const o = sn(r, cn, "@pkg/ff/grid-layout-forms"); - return O("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": `${(a == null ? void 0 : a[0]) || 0}px`, "--grid-layout-container-padding-x": `${(a == null ? void 0 : a[1]) || 0}px`, "--grid-layout-cols": e, "--grid-layout-row-height": `${t}px` }, children: [o, i && C.cloneElement(i, { cols: e, rowHeight: t, itemMargin: n, containerPadding: a, fields: r })] }); + return V("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": `${(a == null ? void 0 : a[0]) || 0}px`, "--grid-layout-container-padding-x": `${(a == null ? void 0 : a[1]) || 0}px`, "--grid-layout-cols": e, "--grid-layout-row-height": `${t}px` }, children: [o, i && k.cloneElement(i, { cols: e, rowHeight: t, itemMargin: n, containerPadding: a, fields: r })] }); }; -St.propTypes = { fields: k.array }; +St.propTypes = { fields: b.array }; const wa = (Mt = St, ({ code: e, layout: t, name: n, primaryKey: a = 0, style: r = {}, formProps: i = {}, form: s, isPreview: o = !1, className: l, onFinish: c, onValuesChange: u = () => { }, ...g }) => { - const { align: h, autoComplete: y, resource: f, items: b, hides: w, rowHeight: $, marginX: I, marginY: L, cols: M, listenChangeFields: j, listenChangeFieldsFunc: A, pk: P, uuid: S } = ga(e), [v] = Q.useForm(s), U = G(() => [{ name: "__PK__", value: P }, { name: "__PROPS__", value: i }, { name: "__RESOURCE__", value: f }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: S }, { name: "__PRIMARY_KEY__", value: a }], [P, e, S, f, a, i]); - return O(Q, { className: l, name: n || e, layout: t || h, fields: U, form: v, autoComplete: y, style: { ...r, position: "relative" }, onFinish: c, onValuesChange: (W, K) => (({ changedValues: ue, allValues: _, listenChangeFields: nt, listenChangeFieldsFunc: De, onValuesChange: at, code: Nt }) => { - at(ue, _), De && Array.isArray(nt) && Ce.exec(De, { changedValues: ue, allValues: _ }, { getFieldValue: v.getFieldValue, setFieldValue: v.setFieldValue, setFieldsValue: v.setFieldsValue, isFieldTouched: v.isFieldTouched, isFieldsTouched: v.isFieldsTouched }); - })({ changedValues: W, allValues: K, listenChangeFields: j, listenChangeFieldsFunc: A, onValuesChange: u, code: e }), children: [d(Mt, { ...g, form: v, code: e, fields: b, cols: M, rowHeight: $, itemMargin: [I, L] }), w == null ? void 0 : w.map((W) => { - var K; - return d(Ht, { name: W.code, children: d(fa, { form: v, name: W.code, type: W.type, initialValue: W.initialValue, initialValueLanguage: (K = W.extras) == null ? void 0 : K.initialValueLanguage }) }, JSON.stringify(W.code)); + const { align: f, autoComplete: y, resource: h, items: w, hides: C, rowHeight: S, marginX: j, marginY: P, cols: z, listenChangeFields: I, listenChangeFieldsFunc: M, pk: R, uuid: $ } = ga(e), [x] = Q.useForm(s), W = G(() => [{ name: "__PK__", value: R }, { name: "__PROPS__", value: i }, { name: "__RESOURCE__", value: h }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: $ }, { name: "__PRIMARY_KEY__", value: a }], [R, e, $, h, a, i]); + return V(Q, { className: l, name: n || e, layout: t || f, fields: W, form: x, autoComplete: y, style: { ...r, position: "relative" }, onFinish: c, onValuesChange: (N, q) => (({ changedValues: ue, allValues: _, listenChangeFields: nt, listenChangeFieldsFunc: De, onValuesChange: at, code: Nt }) => { + at(ue, _), De && Array.isArray(nt) && Ce.exec(De, { changedValues: ue, allValues: _ }, { getFieldValue: x.getFieldValue, setFieldValue: x.setFieldValue, setFieldsValue: x.setFieldsValue, isFieldTouched: x.isFieldTouched, isFieldsTouched: x.isFieldsTouched }); + })({ changedValues: N, allValues: q, listenChangeFields: I, listenChangeFieldsFunc: M, onValuesChange: u, code: e }), children: [d(Mt, { ...g, form: x, code: e, fields: w, cols: z, rowHeight: S, itemMargin: [j, P] }), C == null ? void 0 : C.map((N) => { + var q; + return d(Ht, { name: N.code, children: d(fa, { form: x, name: N.code, type: N.type, initialValue: N.initialValue, initialValueLanguage: (q = N.extras) == null ? void 0 : q.initialValueLanguage }) }, JSON.stringify(N.code)); })] }, e); }); var Mt; const dn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: r, ...i }) => { const [s] = Q.useForm(), o = ma(a, r, e); - return R(() => { + return O(() => { o && s.setFieldsValue(o); - }, [o]), d(J, { actions: O(C.Fragment, { children: [d(N, { name: "保存", type: "primary", widget: () => { + }, [o]), d(K, { actions: V(k.Fragment, { children: [d(T, { name: "保存", type: "primary", widget: () => { const l = s.getFieldValue("__RESOURCE__"), { initDataUri: c = `/api/${a}` } = e || {}; - s.validateFields(!0).then((u) => l ? p.pick(u, [l]) : u).then((u) => F.post(r ? `${c}/${r}` : `${c}`, u).msg(t)).catch(() => H.error("请先完善表单信息", { duration: 2e3 })); - } }), d(N, { name: "取消", widget: () => t(!1) })] }), extras: n, children: d(wa, { form: s, code: a, primaryKey: r, ...i }) }); + s.validateFields(!0).then((u) => l ? p.pick(u, [l]) : u).then((u) => L.post(r ? `${c}/${r}` : `${c}`, u).msg(t)).catch(() => J.error("请先完善表单信息", { duration: 2e3 })); + } }), d(T, { name: "取消", widget: () => t(!1) })] }), extras: n, children: d(wa, { form: s, code: a, primaryKey: r, ...i }) }); }, ba = (e, t, n, { isReplaceRouteHistory: a = !1 } = {}) => le.redirect(n, t, { replace: a }), Ca = (e, t = {}, n, a = {}) => { var i; const r = (i = a.router) == null ? void 0 : i.reduce((s, [o, l, c]) => { @@ -704,114 +704,112 @@ const dn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: r, ...i }) if (!u && u !== 0 && l) throw `请传入 ${c}`; return `${s}/${u}`; }, `/api/${n}`); - return F.del(r, t.param).msg(); + return L.del(r, t.param).msg(); }, zt = (e, t, n, { status: { loading: a, disabled: r }, setStatus: i }) => { const s = { loading: (o) => o === void 0 ? a : i((l) => ({ ...l, loading: o })), disabled: (o) => o === void 0 ? r : i((l) => ({ ...l, disabled: o })) }; return p.isFunction(n) ? n.call(null, { ...t, ...s }) : p.isString(n) && n ? Ce.exec(n, t, s) : null; -}, Wt = (e, t, n, a, r) => p.isString(n) && n ? Z.getWidgetComponent(n).then(({ default: i }) => H.modal(i, { ...t, $setting: a }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r)).catch((i) => { - H.error(n, { content: i.toString() }); -}) : H.modal(n, { ...t, $setting: a }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r), ka = (e, t, n, a, r) => H.modal(dn, { ...t, $setting: a, code: n }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r), va = (e, t, n, a, r) => H.modal(kt, { base62params: t, $setting: a, listCode: n }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r), xa = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: r, widgetContainerProps: i }, { onAfterClick: s, onBeforeClick: o }) => { - const l = de(ee), [c, u] = T({ leading: !0, trailing: !1 }), g = G(() => { +}, Bt = (e, t, n, a, r) => p.isString(n) && n ? Z.getWidgetComponent(n).then(({ default: i }) => J.modal(i, { ...t, $setting: a }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r)).catch((i) => { + J.error(n, { content: i.toString() }); +}) : J.modal(n, { ...t, $setting: a }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r), ka = (e, t, n, a, r) => J.modal(dn, { ...t, $setting: a, code: n }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r), xa = (e, t, n, a, r) => J.modal(kt, { base62params: t, $setting: a, listCode: n }, r != null && r.title ? { ...r, title: p.template(r.title)(e) } : r), va = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: r, widgetContainerProps: i }, { onAfterClick: s, onBeforeClick: o }) => { + const l = de(ee), [c, u] = E({ leading: !0, trailing: !1 }), g = G(() => { switch (t) { case "redirect": return p.partialRight(ba, e, r); case "func": return p.partialRight(zt, (r == null ? void 0 : r.code) ?? e, { status: c, setStatus: u }); case "fsdpf-component": - return p.partialRight(Wt, e, r, i); + return p.partialRight(Bt, e, r, i); case "grid-layout-form": return p.partialRight(ka, e, r, i); case "data-list": - return p.partialRight(va, e, r, i); + return p.partialRight(xa, e, r, i); case "destroy": return p.partialRight(Ca, e, r, i); default: - if (Pt(e) || C.isValidElement(e)) return p.partialRight(Wt, e, r, i); + if (Pt(e) || k.isValidElement(e)) return p.partialRight(Bt, e, r, i); if (p.isFunction(e)) return p.partialRight(zt, (r == null ? void 0 : r.code) || e, { status: c, setStatus: u }); } - return (...h) => console.error("useButton unknown widgetType", t, ...h); + return (...f) => console.error("useButton unknown widgetType", t, ...f); }, [e, t]); - return [p.debounce((h) => (o == null || o(h), Promise.resolve(Gt(a, h, { list: l })).then((y) => g(h, { ...n, ...y })).then((y) => s == null ? void 0 : s(y)).catch(console.error)), 300, { leading: !0, trailing: !1 }), c]; -}, Bt = /* @__PURE__ */ new Set(), ft = (e = [], t = 0) => { + return [p.debounce((f) => (o == null || o(f), Promise.resolve(Gt(a, f, { list: l })).then((y) => g(f, { ...n, ...y })).then((y) => s == null ? void 0 : s(y)).catch(console.error)), 300, { leading: !0, trailing: !1 }), c]; +}, Wt = /* @__PURE__ */ new Set(), ft = (e = [], t = 0) => { const n = e[t]; - if (n.length && !Bt.has(n)) { + if (n.length && !Wt.has(n)) { const a = document.createElement("script"); a.setAttribute("src", n), a.setAttribute("data-namespace", n), e.length > t + 1 && (a.onload = () => { ft(e, t + 1); }, a.onerror = () => { ft(e, t + 1); - }), Bt.add(n), document.body.appendChild(a); + }), Wt.add(n), document.body.appendChild(a); } -}, yt = ({ className: e, type: t, style: n = {}, ...a }) => d("span", { role: "img", className: V("ff-iconfont", e), style: n, ...a, children: d("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: d("use", { xlinkHref: `#${t}` }) }) }); -yt.propTypes = { className: k.string, type: k.string.isRequired, style: k.object }, yt.init = ft; -const Ue = (e) => function({ className: t, children: n, name: a, icon: r, type: i = "default", iconPosition: s = "start", noAuthType: o, onAfterClick: l, onBeforeClick: c, data: u, loading: g, disabled: h, tooltip: y, confirm: f, widget: b, widgetType: w, widgetData: $, widgetProps: I, widgetSetting: L, widgetContainerProps: M, ...j }) { - const A = p.isEmpty(y) || !y.enabled ? {} : y, P = p.isEmpty(f) ? { enabled: !1 } : Object.assign({ enabled: !0 }, f), S = { type: "primary", className: V("ff-button", t), iconPosition: s }; - i === "danger" ? S.danger = !0 : i === "default" && (S.type = i), e === "link" || e === "dashed" ? (S.type = e, i === "default" && (S.className = V(S.className, "ff-default"))) : e !== "circle" && e !== "round" || (S.shape = e), r && (S.icon = d(yt, { type: r })); - const [v, U] = T(!1), [W, { disabled: K, loading: ue }] = xa({ widget: b, widgetType: w, widgetData: $, widgetProps: I, widgetSetting: L, widgetContainerProps: M }, { onAfterClick: l, onBeforeClick: c }); - return d(En, { okText: "确定", cancelText: "取消", ...P, disabled: K || h, open: v, onOpenChange: (_) => { - if (!_) return U(_); - P.enabled ? U(_) : W(u); +}, yt = ({ className: e, type: t, style: n = {}, ...a }) => d("span", { role: "img", className: A("ff-iconfont", e), style: n, ...a, children: d("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: d("use", { xlinkHref: `#${t}` }) }) }); +yt.propTypes = { className: b.string, type: b.string.isRequired, style: b.object }, yt.init = ft; +const Ue = (e) => function({ className: t, children: n, name: a, icon: r, type: i = "default", iconPosition: s = "start", noAuthType: o, onAfterClick: l, onBeforeClick: c, data: u, loading: g, disabled: f, tooltip: y, confirm: h, widget: w, widgetType: C, widgetData: S, widgetProps: j, widgetSetting: P, widgetContainerProps: z, ...I }) { + const M = p.isEmpty(y) || !y.enabled ? {} : y, R = p.isEmpty(h) ? { enabled: !1 } : Object.assign({ enabled: !0 }, h), $ = { type: "primary", className: A("ff-button", t), iconPosition: s }; + i === "danger" ? $.danger = !0 : i === "default" && ($.type = i), e === "link" || e === "dashed" ? ($.type = e, i === "default" && ($.className = A($.className, "ff-default"))) : e !== "circle" && e !== "round" || ($.shape = e), r && ($.icon = d(yt, { type: r })); + const [x, W] = E(!1), [N, { disabled: q, loading: ue }] = va({ widget: w, widgetType: C, widgetData: S, widgetProps: j, widgetSetting: P, widgetContainerProps: z }, { onAfterClick: l, onBeforeClick: c }); + return d(En, { okText: "确定", cancelText: "取消", ...R, disabled: q || f, open: x, onOpenChange: (_) => { + if (!_) return W(_); + R.enabled ? W(_) : N(u); }, onConfirm: () => { - W(u); + N(u); }, onClick: (_) => { _.stopPropagation(); - }, children: d(Rn, { ...A, title: v ? null : A == null ? void 0 : A.title, trigger: ["hover", "click"], children: d(lt, { loading: ue || g, disabled: K || h, ...S, ...j, children: n || a }) }) }); -}, N = Ue("default"), Sa = Ue("link"), $a = Ue("circle"), Pa = Ue("round"), Na = Ue("dashed"), Ut = ({ data: e, widget: t, widgetType: n = "fsdpf-component", children: a, widgetData: r, widgetProps: i, widgetSetting: s, widgetContainerProps: o }) => { - const l = de(ee), [c, u] = T(!1), [g, h] = T("hover"), [y, f] = T({}), [b, w] = T(), { placement: $, align: I, arrow: L = { pointAtCenter: !0 }, getPopupContainer: M, ...j } = o || {}; - R(() => { - n == "grid-layout-form" ? w(C.createElement(dn, { ...r, $setting: s, code: t })) : n == "data-list" ? w(C.createElement(kt, { base62params: e, $setting: s, listCode: t })) : p.isString(t) ? Z.getWidgetComponent(t).then(({ default: S }) => { - w(C.createElement(S, { ...r, $setting: s })); - }).catch((S) => w(S.toString())) : Pt(t) ? w(C.createElement(t, { ...r, $setting: s })) : C.isValidElement(t) && w(C.cloneElement(t, { ...r, $setting: s })); - }, [t, n, r]), R(() => { - Promise.resolve(Gt(i, e, { list: l })).then(f); - }, [i, e]); - const A = (S) => { - u(S), !S && h("hover"); - }, P = (S) => { - u(!0), h("click"); + }, children: d(Rn, { ...M, title: x ? null : M == null ? void 0 : M.title, trigger: ["hover", "click"], children: d(lt, { loading: ue || g, disabled: q || f, ...$, ...I, children: n || a }) }) }); +}, T = Ue("default"), Sa = Ue("link"), $a = Ue("circle"), Pa = Ue("round"), Na = Ue("dashed"), Ut = ({ data: e, widget: t, widgetType: n = "fsdpf-component", widgetData: a, widgetProps: r, widgetSetting: i, widgetContainerProps: s, onAfterClick: o, onBeforeClick: l, children: c, extras: u }) => { + const g = de(ee), [f, y] = E(!1), [h, w] = E("hover"), [C, S] = E({}), [j, P] = E(), { placement: z, align: I, arrow: M = { pointAtCenter: !0 }, getPopupContainer: R, ...$ } = s || {}; + O(() => { + n == "grid-layout-form" ? P(k.createElement(dn, { ...a, $setting: i, code: t })) : n == "data-list" ? P(k.createElement(kt, { base62params: e, $setting: i, listCode: t })) : p.isString(t) ? Z.getWidgetComponent(t).then(({ default: N }) => { + P(k.createElement(N, { ...a, $setting: i })); + }).catch((N) => P(N.toString())) : Pt(t) ? P(k.createElement(t, { ...a, $setting: i })) : k.isValidElement(t) && P(k.cloneElement(t, { ...a, $setting: i })); + }, [t, n, a]), O(() => { + Promise.resolve(Gt(r, e, { list: g })).then(S); + }, [r, e]); + const x = (N, q = !1) => (y(N), !N && w("hover"), N ? l == null ? void 0 : l(C) : o == null ? void 0 : o(q)), W = (N) => { + y(!0), w("click"); }; - return d(Fn, { zIndex: 1080, placement: $, onPopupClick: P, onClick: P, open: c, align: I, arrow: L, trigger: g, getPopupContainer: M, content: d(Ta, { ...j, children: b && C.cloneElement(b, { ...y, $close: () => A(!1) }) }), children: a, onOpenChange: A }); -}, Ta = ({ title: e, className: t, children: n, width: a, height: r, ...i }) => { - const [s, o] = T({}), l = ce((g, h) => o((y) => ({ ...y, [g]: h })), []), c = ce((g) => o((h) => ({ ...h, [g]: void 0 })), []), u = e ? C.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title; - return d(We.Provider, { value: { ele: s, mount: l, unmount: c }, children: O("div", { className: V("ff-popup ff-popover", t), style: { width: a, height: r }, ...i, children: [O("div", { className: "ff-popup-header", children: [u, s == null ? void 0 : s["sub-title"]] }), n, O("div", { className: "ff-popup-footer", children: [s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) }); + return d(Fn, { zIndex: 1080, placement: z, onPopupClick: W, onClick: W, open: f, align: I, arrow: M, trigger: h, getPopupContainer: R, content: d(Ta, { ...$, extras: u, children: j && k.cloneElement(j, { ...C, $close: (N) => x(!1, N) }) }), children: c, onOpenChange: x }); +}, Ta = ({ title: e, className: t, children: n, extras: a, width: r, height: i, ...s }) => { + const [o, l] = E({}), c = ce((y, h) => l((w) => ({ ...w, [y]: h })), []), u = ce((y) => l((h) => ({ ...h, [y]: void 0 })), []), g = e ? k.createElement("div", { className: "ff-popup-title" }, e) : o == null ? void 0 : o.title, f = a ?? k.createElement("div", { className: "ff-popup-reserved-extras" }, a); + return d(Be.Provider, { value: { ele: o, mount: c, unmount: u }, children: V("div", { className: A("ff-popup ff-popover", t), style: { width: r, height: i }, ...s, children: [V("div", { className: "ff-popup-header", children: [g, o == null ? void 0 : o["sub-title"]] }), n, V("div", { className: "ff-popup-footer", children: [f, o == null ? void 0 : o.extras, o == null ? void 0 : o.actions] })] }) }); }; -Ut.propTypes = { widgetType: k.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }, N.propTypes = { type: k.oneOf(["primary", "default", "danger", ""]), name: k.string, icon: k.string, iconPosition: k.oneOf(["start", "end"]), data: k.any, widget: k.any, widgetType: k.oneOf(["destroy", "redirect", "func", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: k.object, widgetProps: k.object, widgetSetting: k.object, widgetContainerProps: k.object, tooltip: k.exact({ title: k.string.isRequired, placement: k.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: k.oneOfType([k.bool, k.number]), getPopupContainer: k.func }), confirm: k.exact({ title: k.string.isRequired, cancelText: k.string, okText: k.string, okType: k.oneOf(["primary", "default", "danger", ""]), placement: k.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: k.oneOfType([k.bool, k.number]), getPopupContainer: k.func, arrow: k.oneOfType([k.bool, k.exact({ pointAtCenter: k.bool })]) }) }, N.Link = Sa, N.Link.defaultProps = N.defaultProps, N.Link.propTypes = N.propTypes, N.Circle = $a, N.Circle.defaultProps = N.defaultProps, N.Circle.propTypes = N.propTypes, N.Round = Pa, N.Round.defaultProps = N.defaultProps, N.Round.propTypes = N.propTypes, N.Dashed = Na, N.Dashed.defaultProps = N.defaultProps, N.Dashed.propTypes = N.propTypes, N.Popover = Ut; +Ut.propTypes = { widgetType: b.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }, T.propTypes = { type: b.oneOf(["primary", "default", "danger", ""]), name: b.string, icon: b.string, iconPosition: b.oneOf(["start", "end"]), data: b.any, widget: b.any, widgetType: b.oneOf(["destroy", "redirect", "func", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: b.object, widgetProps: b.object, widgetSetting: b.object, widgetContainerProps: b.object, tooltip: b.exact({ title: b.string.isRequired, placement: b.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: b.oneOfType([b.bool, b.number]), getPopupContainer: b.func }), confirm: b.exact({ title: b.string.isRequired, cancelText: b.string, okText: b.string, okType: b.oneOf(["primary", "default", "danger", ""]), placement: b.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: b.oneOfType([b.bool, b.number]), getPopupContainer: b.func, arrow: b.oneOfType([b.bool, b.exact({ pointAtCenter: b.bool })]) }) }, T.Link = Sa, T.Link.defaultProps = T.defaultProps, T.Link.propTypes = T.propTypes, T.Circle = $a, T.Circle.defaultProps = T.defaultProps, T.Circle.propTypes = T.propTypes, T.Round = Pa, T.Round.defaultProps = T.defaultProps, T.Round.propTypes = T.propTypes, T.Dashed = Na, T.Dashed.defaultProps = T.defaultProps, T.Dashed.propTypes = T.propTypes, T.Popover = Ut; const Ea = ({ fields: e, formProps: t, $close: n }) => { const [a] = Q.useForm(), r = G(() => [{ name: "__PROPS__", value: t }], [t]); - return d(J, { actions: O(C.Fragment, { children: [d(N, { name: "取消", widget: () => n(!1) }), d(N, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: d(Q, { fields: r, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: i, ...s }) => d(ya, { code: i, ...s }, i)) }) }); -}, Ra = ({ className: e, $close: t, children: n, title: a, subTitle: r, actions: i, extras: s, zIndex: o, ...l }) => O(Bn, { ...l, prefixCls: "ff-drawer", className: V("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (c) => ({ motionAppear: !0, motionName: `panel-motion-${c}` }), children: [O("div", { className: "ff-popup-header", children: [d("button", { "aria-label": "Close", className: "ff-popup-close", onClick: l.onClose, children: d(Ct, { type: "close" }) }), a, r] }), d("div", { className: "ff-popup-body", children: n }), O("div", { className: "ff-popup-footer", children: [s, i] })] }), Fa = ({ className: e, $close: t, $event: n, children: a, title: r, subTitle: i, actions: s, extras: o, zIndex: l, placement: c, ...u }) => { + return d(K, { actions: V(k.Fragment, { children: [d(T, { name: "取消", widget: () => n(!1) }), d(T, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: d(Q, { fields: r, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: i, ...s }) => d(ya, { code: i, ...s }, i)) }) }); +}, Ra = ({ className: e, $close: t, children: n, title: a, subTitle: r, actions: i, extras: s, zIndex: o, ...l }) => V(Wn, { ...l, prefixCls: "ff-drawer", className: A("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (c) => ({ motionAppear: !0, motionName: `panel-motion-${c}` }), children: [V("div", { className: "ff-popup-header", children: [d("button", { "aria-label": "Close", className: "ff-popup-close", onClick: l.onClose, children: d(Ct, { type: "close" }) }), a, r] }), d("div", { className: "ff-popup-body", children: n }), V("div", { className: "ff-popup-footer", children: [s, i] })] }), Fa = ({ className: e, $close: t, $event: n, children: a, title: r, subTitle: i, actions: s, extras: o, zIndex: l, placement: c, ...u }) => { const g = (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 d(Un, { ...u, ...g, prefixCls: "ff-modal", modalRender: () => O("div", { className: V("ff-modal-content ff-popup", e), children: [O("div", { className: "ff-popup-header", children: [d("button", { "aria-label": "Close", className: "ff-popup-close", onClick: u.onClose, children: d(Ct, { type: "close" }) }), r, i] }), d("div", { className: "ff-popup-body", children: a }), O("div", { className: "ff-popup-footer", children: [o, s] })] }) }); + return d(Un, { ...u, ...g, prefixCls: "ff-modal", modalRender: () => V("div", { className: A("ff-modal-content ff-popup", e), children: [V("div", { className: "ff-popup-header", children: [d("button", { "aria-label": "Close", className: "ff-popup-close", onClick: u.onClose, children: d(Ct, { type: "close" }) }), r, i] }), d("div", { className: "ff-popup-body", children: a }), V("div", { className: "ff-popup-footer", children: [o, s] })] }) }); }, un = ({ placement: e, $close: t, $event: n, children: a, title: r, ...i }) => { - const [s, o] = T({}), [l, c] = T(!0), u = ce((f, b) => o((w) => ({ ...w, [f]: b })), []), g = ce((f) => o((b) => ({ ...b, [f]: void 0 })), []); - let h = { ...i, className: s.rootClassName, title: s.title || r && C.createElement("div", { className: V("ff-popup-title") }, r), subTitle: s["sub-title"], actions: s.actions, extras: s.extras, children: a, $close: t, $event: n, onClose: () => c(!1) }; + const [s, o] = E({}), [l, c] = E(!0), u = ce((h, w) => o((C) => ({ ...C, [h]: w })), []), g = ce((h) => o((w) => ({ ...w, [h]: void 0 })), []); + let f = { ...i, className: s.rootClassName, title: s.title || r && k.createElement("div", { className: A("ff-popup-title") }, r), subTitle: s["sub-title"], actions: s.actions, extras: s.extras, children: a, $close: t, $event: n, onClose: () => c(!1) }; const y = () => { t(!1); }; - return d(We.Provider, { value: { ele: s, mount: u, unmount: g }, children: e && e !== "center" ? d(Ra, { ...h, placement: e, open: l, afterOpenChange: (f) => !f && y() }) : d(Fa, { ...h, visible: l, afterClose: y }) }); + return d(Be.Provider, { value: { ele: s, mount: u, unmount: g }, children: e && e !== "center" ? d(Ra, { ...f, placement: e, open: l, afterOpenChange: (h) => !h && y() }) : d(Fa, { ...f, visible: l, afterClose: y }) }); }; -un.propTypes = { placement: k.oneOf(["center", "left", "top", "right", "bottom"]) }; -const q = () => { +un.propTypes = { placement: b.oneOf(["center", "left", "top", "right", "bottom"]) }; +const H = () => { const [e, t] = zn({ maxCount: 6, motion: { motionName: "ff-notification-fade", motionAppear: !0, motionEnter: !0, motionLeave: !0, onLeaveStart: (i) => { const { offsetHeight: s } = i; return { height: s }; - }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, n] = C.useReducer((i) => i + 1, 0); - R(() => { - q.$onClick = a, q.$queue.forEach(([i, s, o], l, c) => { + }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, n] = k.useReducer((i) => i + 1, 0); + O(() => { + H.$onClick = a, H.$queue.forEach(([i, s, o], l, c) => { r([s, o], ...i), delete c[l]; }); }, []); const a = (i, s = {}, o = {}) => new Promise((l, c) => r([l, c], i, s, o)), r = ([i, s], o, l = {}, c = {}) => { - const u = q.$index++, g = (h) => ((y, f) => (q.$popups.delete(y), n(), f == null ? void 0 : f()))(u, () => i(h)); - if (o === _t) return e.open({ ...c, key: u, content: C.createElement(o, { ...l, $close: () => e.close(u) }) }); - q.$popups.set(u, C.createElement(un, { zIndex: u, maskClosable: !1, $event: l == null ? void 0 : l.$event, ...c, key: u, $close: g }, C.isValidElement(o) ? C.cloneElement(o, { ...l, $close: g }) : o != null && o.name || Ot.isForwardRef(o) || (o == null ? void 0 : o.$$typeof) === Ot.ForwardRef ? C.createElement(o, { ...l, $close: g }) : o)), n(); + const u = H.$index++, g = (f) => ((y, h) => (H.$popups.delete(y), n(), h == null ? void 0 : h()))(u, () => i(f)); + if (o === _t) return e.open({ ...c, key: u, content: k.createElement(o, { ...l, $close: () => e.close(u) }) }); + H.$popups.set(u, k.createElement(un, { zIndex: u, maskClosable: !1, $event: l == null ? void 0 : l.$event, ...c, key: u, $close: g }, k.isValidElement(o) ? k.cloneElement(o, { ...l, $close: g }) : o != null && o.name || Ot.isForwardRef(o) || (o == null ? void 0 : o.$$typeof) === Ot.ForwardRef ? k.createElement(o, { ...l, $close: g }) : o)), n(); }; - return O(C.Fragment, { children: [Array.from(q.$popups).map(([i, s]) => s), t] }); + return V(k.Fragment, { children: [Array.from(H.$popups).map(([i, s]) => s), t] }); }; -q.$popups = /* @__PURE__ */ new Map(), q.$index = 0, q.$queue = [], q.$onClick = (...e) => new Promise((t, n) => { - q.$queue.push([e, t, n]); +H.$popups = /* @__PURE__ */ new Map(), H.$index = 0, H.$queue = [], H.$onClick = (...e) => new Promise((t, n) => { + H.$queue.push([e, t, n]); }); -const Dt = (e, t, n = {}) => q.$onClick(e, t, n), st = (e, { showProgress: t, duration: n, ...a } = { duration: 1.5 }) => q.$onClick(_t, { content: e, ...a }, { showProgress: t, duration: n }), H = { modal: Dt, confirm: (e, t = {}) => q.$onClick(Dn, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => Dt(Ea, { formProps: n, fields: e }, { placement: "center", ...t }).then((a) => { +const Dt = (e, t, n = {}) => H.$onClick(e, t, n), st = (e, { showProgress: t, duration: n, ...a } = { duration: 1.5 }) => H.$onClick(_t, { content: e, ...a }, { showProgress: t, duration: n }), J = { modal: Dt, confirm: (e, t = {}) => H.$onClick(Dn, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => Dt(Ea, { formProps: n, fields: e }, { placement: "center", ...t }).then((a) => { if (a === !1) throw !1; return a; }), notification: st, success: (e, t = { duration: 1.5 }) => st(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => st(e, { ...t, className: "ff-notification-error", icon: "close" }) }; @@ -821,10 +819,10 @@ Re.configure({ showSpinner: !1 }), Fe.interceptors.request.use((e) => { return e.headers.Authorization = t ? `Bearer ${t} ` : void 0, Re.inc(), e; }, (e) => (Re.done(), Promise.reject({ code: -1, msg: e }))), Fe.interceptors.response.use(({ data: e, headers: t }) => (Re.done(), { ...e, res: t == null ? void 0 : t.res }), function(e) { return Re.done(), Promise.reject(e.message); -}), window.addEventListener("unhandledrejection", ct.onUnhandledRejection), ct.onMsg = (e, t) => H[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && le.redirect(Oe.get("Common.WEBSITE_LOGIN_PAGE"))); +}), window.addEventListener("unhandledrejection", ct.onUnhandledRejection), ct.onMsg = (e, t) => J[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && le.redirect(Oe.get("Common.WEBSITE_LOGIN_PAGE"))); const wt = { appUrl: "", init: (e, t, n) => { wt.appUrl = n, Fe.defaults.baseURL = n, Fe.defaults.timeout = 15e3, Object.assign(wt, new ct(e, t, Fe)); -} }, F = wt; +} }, L = wt; class $t extends Error { constructor(t, n) { super(n), Error.captureStackTrace && Error.captureStackTrace(this, $t), !n instanceof Le && (this.name = `${t} Error Runtime`); @@ -839,8 +837,8 @@ const ot = "mine", _e = "token"; var be, Ee; const ie = class ie { constructor() { - E(this, Ee, /* @__PURE__ */ new Map()); - x(this, "setVendor", (t, n) => m(this, Ee).set(t, new Jt(n, async (a, r) => { + F(this, Ee, /* @__PURE__ */ new Map()); + v(this, "setVendor", (t, n) => m(this, Ee).set(t, new Jt(n, async (a, r) => { var s, o; if (!(a != null && a.default)) throw "@pkg not found"; let i = () => r; @@ -851,23 +849,23 @@ const ie = class ie { } throw new Le(r); }))); - x(this, "getWidgetComponent", async (t) => { + v(this, "getWidgetComponent", async (t) => { if (!t) throw "getWidgetComponent widget is required"; if (t != null && t.startsWith("blob:") || t != null && t.startsWith("http:") || t != null && t.startsWith("https:")) return await import(t); const [, n] = t == null ? void 0 : t.split("@pkg/"); if (!n) throw new Le(t); try { - return m(this, Ee).has("pkg") ? await m(this, Ee).get("pkg").get(n) : await import(`${F.appUrl}/api/pkg-import/web?name=${t}`); + return m(this, Ee).has("pkg") ? await m(this, Ee).get("pkg").get(n) : await import(`${L.appUrl}/api/pkg-import/web?name=${t}`); } catch (a) { throw new $t(t, a); } }); - x(this, "getRoutes", () => F.get("/api/my-router").then((t) => [...t, { uuid: "data-list-setting", isLayout: !0, uri: "/data-list-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/DataListSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-setting", isLayout: !0, uri: "/grid-layout-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-form-setting", isLayout: !0, uri: "/grid-layout-form-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutFormSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "resource-api-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ResourceApiSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "charts-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ChartsSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "fsm-setting", isLayout: !0, uri: "/fsm-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/FsmSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "component-setting", isLayout: !0, uri: "/component-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ComponentSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "login", uri: "/login", name: "登录", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/Login" }, { uuid: "not-found", uri: "*", name: "Not Found", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/NotFound" }].map(({ uuid: n, ...a }) => [n, { uuid: n, ...a }])).then((t) => new Map(t))); - x(this, "getMenus", () => F.get("/api/my-menu")); - x(this, "getConfigure", () => F.get("api/init-configure")); - x(this, "getWidgetOperationAuth", () => F.get("/api/init-widget-operation-auth").then((t) => t.reduce((n, { uuid: a, auth: r }) => [...n, [a, r]], []))); - x(this, "getPhoneNumber", (t) => F.get(`/api/user-wx-phone-number/${t}`)); - x(this, "getUserToken", () => { + v(this, "getRoutes", () => L.get("/api/my-router").then((t) => [...t, { uuid: "data-list-setting", isLayout: !0, uri: "/data-list-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/DataListSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-setting", isLayout: !0, uri: "/grid-layout-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-form-setting", isLayout: !0, uri: "/grid-layout-form-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutFormSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "resource-api-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ResourceApiSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "charts-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ChartsSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "fsm-setting", isLayout: !0, uri: "/fsm-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/FsmSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "component-setting", isLayout: !0, uri: "/component-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ComponentSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "login", uri: "/login", name: "登录", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/Login" }, { uuid: "not-found", uri: "*", name: "Not Found", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/NotFound" }].map(({ uuid: n, ...a }) => [n, { uuid: n, ...a }])).then((t) => new Map(t))); + v(this, "getMenus", () => L.get("/api/my-menu")); + v(this, "getConfigure", () => L.get("api/init-configure")); + v(this, "getWidgetOperationAuth", () => L.get("/api/init-widget-operation-auth").then((t) => t.reduce((n, { uuid: a, auth: r }) => [...n, [a, r]], []))); + v(this, "getPhoneNumber", (t) => L.get(`/api/user-wx-phone-number/${t}`)); + v(this, "getUserToken", () => { const t = window.localStorage.getItem(_e); if (!t) return ""; const n = t.split("."); @@ -876,48 +874,48 @@ const ie = class ie { if (Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) - a > 2592e3) throw "登录令牌已过期, 请重新登录!"; return t; }); - x(this, "checkUserToken", () => { + v(this, "checkUserToken", () => { try { return !!this.getUserToken(); } catch { return !1; } }); - x(this, "getUserInfo", (t = !0) => { + v(this, "getUserInfo", (t = !0) => { var n; try { const a = this.getUserToken(); if (!a) return Promise.resolve(null); - const { iat: r } = JSON.parse(window.atob((n = a == null ? void 0 : a.split(".")) == null ? void 0 : n[1])), { iat: i, ...s } = F.decode(window.localStorage.getItem(ot) || "", {}); - return i === r ? Promise.resolve(s) : F.get("/api/mine-info").then(({ User: o = null }) => (window.localStorage.setItem(ot, F.encode({ ...o, iat: r })), o)); + const { iat: r } = JSON.parse(window.atob((n = a == null ? void 0 : a.split(".")) == null ? void 0 : n[1])), { iat: i, ...s } = L.decode(window.localStorage.getItem(ot) || "", {}); + return i === r ? Promise.resolve(s) : L.get("/api/mine-info").then(({ User: o = null }) => (window.localStorage.setItem(ot, L.encode({ ...o, iat: r })), o)); } catch (a) { - console.error(a), t && H.error("请登录").then(this.logout); + console.error(a), t && J.error("请登录").then(this.logout); } return Promise.resolve(null); }); - x(this, "login", (t, n, a = {}) => F.post("/api/user-token", { username: t, passwd: Wn.hash(n), platform: "web", ...a }).then(({ token: r }) => (window.localStorage.setItem(_e, r), r))); - x(this, "logout", (t) => (window.localStorage.removeItem(ot), window.localStorage.removeItem(_e), t == null ? void 0 : t())); + v(this, "login", (t, n, a = {}) => L.post("/api/user-token", { username: t, passwd: Bn.hash(n), platform: "web", ...a }).then(({ token: r }) => (window.localStorage.setItem(_e, r), r))); + v(this, "logout", (t) => (window.localStorage.removeItem(ot), window.localStorage.removeItem(_e), t == null ? void 0 : t())); if (m(ie, be)) return m(ie, be); } }; -be = new WeakMap(), Ee = new WeakMap(), E(ie, be, null), x(ie, "getInstance", () => (m(ie, be) || B(ie, be, new ie()), m(ie, be))); +be = new WeakMap(), Ee = new WeakMap(), F(ie, be, null), v(ie, "getInstance", () => (m(ie, be) || U(ie, be, new ie()), m(ie, be))); let bt = ie; -const Z = bt.getInstance(), Oa = C.createContext({ user: {}, initUser: () => { -}, initUserComplete: !1 }), La = C.createContext({ set: () => { +const Z = bt.getInstance(), Oa = k.createContext({ user: {}, initUser: () => { +}, initUserComplete: !1 }), La = k.createContext({ set: () => { }, get: () => { }, assign: () => { }, currentRoute: () => { -} }), Pt = (e) => !!(e != null && e.name) && (e.prototype instanceof C.Component || /^[A-Z]/.test(e.name)), Va = (e, t) => { +} }), Pt = (e) => !!(e != null && e.name) && (e.prototype instanceof k.Component || /^[A-Z]/.test(e.name)), Va = (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); -}, ja = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Oa, AppGlobalParamsContext: La, cache: Jt, configure: Oe, default: Z, func: Ce, http: F, insertStyle: Va, isReactComponent: Pt, route: le }, Symbol.toStringTag, { value: "Module" })), Aa = (e, t, n = "children") => { +}, Aa = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Oa, AppGlobalParamsContext: La, cache: Jt, configure: Oe, default: Z, func: Ce, http: L, insertStyle: Va, isReactComponent: Pt, route: le }, Symbol.toStringTag, { value: "Module" })), ja = (e, t, n = "children") => { if (p.isEmpty(e)) return {}; const a = p.find(e, ["value", t]); if (!p.isEmpty(a)) return a; const r = e.length; for (let i = 0; i < r; i++) { - const { [n]: s } = e[i], o = Aa(s, t, n); + const { [n]: s } = e[i], o = ja(s, t, n); if (!p.isEmpty(o)) return o; } return {}; @@ -932,11 +930,11 @@ export { Kn as F, lr as G, aa as H, - vt as I, + xt as I, dr as J, ur as K, - Be as L, - xt as M, + We as L, + vt as M, gr as N, pr as O, wa as P, @@ -950,28 +948,28 @@ export { ha as X, mr as Y, yt as Z, - N as _, + T as _, ar as a, - xa as a0, - J as a1, - We as a2, + va as a0, + K as a1, + Be as a2, Kt as a3, - q as a4, - H as a5, + H as a4, + J as a5, Za as a6, er as a7, tr as a8, Z as a9, Pt as aa, Va as ab, - F as ac, + L as ac, Jt as ad, Oe as ae, Ce as af, le as ag, Oa as ah, La as ai, - Aa as aj, + ja as aj, rr as b, ir as c, Yt as d, diff --git a/dist/components.js b/dist/components.js index 23ff179..67dca78 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { a6 as s, Z as p, a7 as n, a8 as t, a5 as d } from "./common/main-DsH9zeNE.js"; +import { a6 as s, Z as p, a7 as n, a8 as t, a5 as d } from "./common/main-DkIsOuM3.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index d1a9378..bb91fb5 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { a2 as o, a6 as s, a7 as p, a8 as t, a3 as d, a5 as n, a4 as r, a1 as u } from "./common/main-DsH9zeNE.js"; +import { a2 as o, a6 as s, a7 as p, a8 as t, a3 as d, a5 as n, a4 as r, a1 as u } from "./common/main-DkIsOuM3.js"; export { o as Context, s as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index 38072d6..e56cd8d 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-DsH9zeNE.js"; +import { D as p } from "./common/main-DkIsOuM3.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 67ad760..9cea090 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { w as t, s as e, m as r, p as o, x as i, q as l, o as u, v as D, n as L, y as n, l as m, z as p, F as C, B as F, C as b, E as c, A as d } from "./common/main-DsH9zeNE.js"; +import { w as t, s as e, m as r, p as o, x as i, q as l, o as u, v as D, n as L, y as n, l as m, z as p, F as C, B as F, C as b, E as c, A as d } from "./common/main-DkIsOuM3.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index d79c199..7e2862d 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { f as a } from "../common/main-DsH9zeNE.js"; +import { f as a } from "../common/main-DkIsOuM3.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 542870a..c6f268a 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { Q as s, T as r, S as u, P as o, X as t, W as d, Y as m, V as F, U as i } from "./common/main-DsH9zeNE.js"; +import { Q as s, T as r, S as u, P as o, X as t, W as d, Y as m, V as F, U as i } from "./common/main-DkIsOuM3.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 9ff9556..2774ad5 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { aj as a } from "../common/main-DsH9zeNE.js"; +import { aj as a } from "../common/main-DkIsOuM3.js"; export { a as getOptionItemByValue }; diff --git a/dist/grid-layout.js b/dist/grid-layout.js index 4932593..52125fc 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { h as d, i as e, H as i, G as t, j as u, k as o } from "./common/main-DsH9zeNE.js"; +import { h as d, i as e, H as i, G as t, j as u, k as o } from "./common/main-DkIsOuM3.js"; export { d as GridLayout, e as GridLayoutWidget, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index 6b87c6d..bdf666c 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { e as t } from "../common/main-DsH9zeNE.js"; +import { e as t } from "../common/main-DkIsOuM3.js"; export { t as getBoxStyle }; diff --git a/dist/hooks.js b/dist/hooks.js index a2e3795..6b32633 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,7 +1,7 @@ import "lodash"; import "rc-field-form"; import "react"; -import { M as r, L as o, N as p, J as f, K as i, O as m, I as c } from "./common/main-DsH9zeNE.js"; +import { M as r, L as o, N as p, J as f, K as i, O as m, I as c } from "./common/main-DkIsOuM3.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 31ba575..a32b52c 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 { Z as a } from "./common/main-DsH9zeNE.js"; +import { Z as a } from "./common/main-DkIsOuM3.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index 4f68c44..d250d25 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { ah as t, ai as e, ad as o, ae as n, a9 as p, af as c, ac as r, ab as f, aa as i, ag as l } from "./common/main-DsH9zeNE.js"; +import { ah as t, ai as e, ad as o, ae as n, a9 as p, af as c, ac as r, ab as f, aa as i, ag as l } from "./common/main-DkIsOuM3.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/res-ws.js b/dist/res-ws.js index d9fd075..222197a 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-DsH9zeNE.js"; +import { R as a } from "./common/main-DkIsOuM3.js"; export { a as default }; diff --git a/dist/style.css b/dist/style.css index d9e6920..3b11f4b 100644 --- a/dist/style.css +++ b/dist/style.css @@ -1 +1 @@ -#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.react-grid-layout .react-grid-item{box-sizing:border-box!important}.monaco-editor .parameter-hints-widget{border:0px}.monaco-editor .parameter-hints-widget .signature{padding:0}.monaco-editor .suggest-widget,.monaco-editor.vs-dark .suggest-widget{border:0px}.monaco-editor .rename-box{top:0}.ant-divider:has(+.ant-form .ant-divider:first-child){display:none}:root{--padding-lg: 24px;--padding-md: 16px;--padding-sm: 12px;--padding-xs: 8px;--padding-xss: 4px;--margin-lg: 24px;--margin-md: 16px;--margin-sm: 12px;--margin-xs: 8px;--margin-xss: 4px;--border-color: #f2f2f2;--bg-color: rgba(0, 0, 0, .02)}#root{height:100vh;background-color:#f0f2f5}*::-webkit-scrollbar-thumb{background:#aaa;border-radius:5px}*::-webkit-scrollbar-thumb:hover{background:#999}*::-webkit-scrollbar-track{background-color:#ddd}*::-webkit-scrollbar-corner{background-color:#ddd}*::-webkit-scrollbar{width:5px;height:5px}.ff-container{height:100%}.ff-loading{height:100vh;width:100%;background-color:#f0f2f5;display:flex;justify-content:center;align-items:center}.ff-loading .loader{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:128px;height:80px}.ff-loading .loader .square{position:relative}.ff-loading .loader .square:nth-child(1){margin-left:0}.ff-loading .loader .square:nth-child(1) span{-webkit-animation:animsquare1 2s infinite ease-in;animation:animsquare1 2s infinite ease-in}.ff-loading .loader .square:nth-child(2){margin-left:44px}.ff-loading .loader .square:nth-child(2) span{-webkit-animation:animsquare2 2s infinite ease-in;animation:animsquare2 2s infinite ease-in}.ff-loading .loader .square:nth-child(3){margin-left:88px}.ff-loading .loader .square:nth-child(3) span{-webkit-animation:animsquare3 2s infinite ease-in;animation:animsquare3 2s infinite ease-in}.ff-loading .loader .square:nth-child(4){margin-left:132px}.ff-loading .loader .square:nth-child(4) span{-webkit-animation:animsquare4 2s infinite ease-in;animation:animsquare4 2s infinite ease-in}.ff-loading .loader .square span{position:absolute;top:0;left:20px;height:36px;width:36px;border-radius:2px;background-color:#fff}.ff-loading .loader .square span:nth-child(1){top:0;-webkit-animation-delay:0s;animation-delay:0s}.ff-loading .loader .square span:nth-child(2){top:44px;-webkit-animation-delay:.15s;animation-delay:.15s}.ff-loading .loader .square span:nth-child(3){top:88px;-webkit-animation-delay:.3s;animation-delay:.3s}@media (max-width: 550px){.ff-loading .loader{-webkit-transform:scale(.75);transform:scale(.75)}}@media (max-width: 440px){.ff-loading .loader{-webkit-transform:scale(.5);transform:scale(.5)}}@keyframes animsquare4{0%,5%,95%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}30%,70%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare3{0%,10%,90%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}35%,65%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare2{0%,15%,85%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}40%,60%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare1{0%,20%,80%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}45%,55%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}.ff-notification{position:fixed;z-index:2000;display:flex;max-height:100vh;padding:20px;align-items:flex-end;width:380px;overflow-x:hidden;overflow-y:clip;height:100vh;box-sizing:content-box;pointer-events:none;flex-direction:column;gap:24px}.ff-notification-top,.ff-notification-topLeft,.ff-notification-topRight{top:0}.ff-notification-bottom,.ff-notification-bottomRight,.ff-notification-bottomLeft{bottom:0}.ff-notification-bottomRight,.ff-notification-topRight{right:0}.ff-notification-notice{position:relative;display:block;box-sizing:border-box;line-height:1.5;width:100%}.ff-notification-notice-wrapper{z-index:2000;pointer-events:auto;position:relative;display:block;box-sizing:border-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;width:calc(100% - 40px);background-color:#fff;right:0}.ff-notification-notice-content{padding:14px 18px;display:flex;gap:8px;white-space:pre-wrap}.ff-notification-notice-content .ff-notification-icon.ff-notification-error{--bg-color: #ff4d4f}.ff-notification-notice-content .ff-notification-icon.ff-notification-success{--bg-color: #52c41a}.ff-notification-notice-content .ff-notification-icon.ff-notification-info{--bg-color: #1677ff}.ff-notification-notice-content .ff-notification-icon>*:first-child{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;background-color:var(--bg-color)}.ff-notification-notice-progress{position:absolute;left:3px;right:3px;border-radius:1px;overflow:hidden;-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;inline-size:100%;block-size:2px;border:0}.ff-notification-notice-progress,.ff-notification-notice-progress::-webkit-progress-bar{background-color:#0000000a}.ff-notification-notice-progress::-moz-progress-bar{background-color:#31afff}.ff-notification-notice-progress::-webkit-progress-value{background-color:#31afff}.ff-notification-fade{overflow:hidden;transition:all .3s}.ff-notification-fade-appear-prepare{pointer-events:none;opacity:0!important}.ff-notification-fade-appear-start{transform:translate(100%);opacity:0}.ff-notification-fade-appear-active{transform:translate(0);opacity:1}.ff-data-list-framework{height:100%;--sider-width: 280px;--col-num: 1;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-list-framework .ff-data-list-container{width:100%;height:100%;row-gap:var(--gap);display:flex;flex-direction:column}.ff-data-list-framework .ff-data-list-container .ff-data-list-content{flex:1;overflow-y:auto;display:grid;gap:var(--gap);padding:calc(var(--gap) / 2);grid-template-columns:repeat(var(--col-num),1fr);grid-auto-rows:min-content}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;border-radius:4px;background-color:#fff;box-shadow:0 0 8px #00000014}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .ff-grid-layout{padding:8px}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .data-list-grid-layout-item-actions{margin-top:8px;display:flex;justify-content:space-between;border-top:1px solid #f0f0f0}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action{text-align:center;margin:2px 0;flex:1}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action:not(:last-child){border-right:1px solid #f0f0f0}.ff-data-table-framework{height:100%;--sider-width: 280px;--col-num: 1;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-table-framework .ff-data-table-container{width:100%;height:100%;display:flex;flex-direction:column;row-gap:var(--gap)}.ff-data-list-filter:has(.ff-data-list-filter-actions:not(.expanded)){height:60px;overflow-y:hidden}.ff-data-list-filter .ff-data-list-filter-default-form.ff-grid-layout-form{--grid-layout-cols: 25;--grid-layout-item-margin-x: 8px;--grid-layout-item-margin-y: 16px}.ff-data-list-filter .ff-data-list-filter-actions{grid-column:span var(--itemp-span, 5) / calc(var(--grid-layout-cols, 25) + 1)}.ff-data-list-filter .ff-data-list-filter-actions:not(.expanded){grid-row:1}.ff-data-list-filter .ff-data-list-filter-actions .ff-data-list-filter-expanded-button{margin-left:8px}.ff-data-list-filter .ff-data-list-filter-actions .ant-form-item-control-input-content{display:flex;justify-content:flex-end;align-items:center;gap:8px}.ff-data-list-footer{padding-block-start:8px;display:flex;justify-content:space-between}.ff-data-list-footer .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-sider{width:var(--sider-width, 280px);overflow-y:auto;box-shadow:8px 0 4px -8px #0000000d}.ff-data-list-sider+.ff-data-list-container{width:calc(100% - var(--sider-width, 280px))}.ff-data-list-toolbar{gap:8px;display:flex;justify-content:space-between;align-items:center}.ff-data-list-toolbar .ff-data-list-title{color:#000000e0;font-weight:600;font-size:14px}.ff-data-list-toolbar .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-toolbar .ff-data-list-tabs{cursor:pointer}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab{color:#00000073}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab:hover{font-weight:600}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab.active{color:#1677ff;font-weight:600}.ff-data-list-item-operations{max-width:180px;display:flex;flex-wrap:wrap;gap:var(--margin-xss, 4px)}.ff-data-list-item-operations>.ant-btn:not(.ant-btn-circle){flex-grow:1}.ff-data-list-helper{height:100%}.ff-data-list-table{height:100%;overflow-y:hidden}.ff-data-list-table .ant-table *{scrollbar-width:auto;scrollbar-color:auto}.ff-grid-layout{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y));column-gap:var(--grid-layout-item-margin-x);row-gap:var(--grid-layout-item-margin-y)}.ff-grid-layout .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-paddin);margin:var(--grid-layout-box-margin);display:var(--grid-layout-box-display, flex);align-items:var(--grid-layout-box-align-items, center);justify-content:var(--grid-layout-box-justify-content, normal)}.ff-grid-layout-form{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y, 16px));column-gap:var(--grid-layout-item-margin-x, 8px);row-gap:var(--grid-layout-item-margin-y, 16px)}.ff-grid-layout-form .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-padding-y, 0) var(--grid-layout-box-padding-x, 0);margin:var(--grid-layout-box-margin)}.ff-iconfont{transform:scale(1.14);vertical-align:-.125em;display:inline-flex;align-items:center;justify-content:center}.ff-iconfont:not(:last-child){margin-right:8px}.ff-button.ant-btn-link,.ff-button.ant-btn-text{width:initial;padding:0;height:auto}.ff-default.ant-btn-link{color:#000000e0}.ant-btn-link.ant-btn:not(:disabled):focus-visible{outline:initial;outline-offset:initial;transition:initial}.ff-popover .ff-popup-header{margin-bottom:calc(var(--margin-sm) / 2)}.ff-popover .ff-popup-header:empty{display:none}.ff-popover .ff-popup-footer{display:flex;justify-content:space-between;margin-top:var(--margin-sm)}.ff-popover .ff-popup-footer:empty{display:none}.ff-modal-form{display:flex;flex-direction:column;gap:var(--modal-form-gap, 8px)}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave-active{transition:all .3s}.mask-motion-enter,.mask-motion-appear{opacity:0}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave{opacity:1}.mask-motion-leave-active{opacity:0}.panel-motion-left-enter-start,.panel-motion-left-appear-start,.panel-motion-left-leave-start{transition:none!important}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave-active{transition:all .3s}.panel-motion-left-enter,.panel-motion-left-appear{transform:translate(-100%)}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave{transform:translate(0)}.panel-motion-left-leave-active{transform:translate(-100%)!important}.panel-motion-right-enter-start,.panel-motion-right-appear-start,.panel-motion-right-leave-start{transition:none!important}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave-active{transition:all .3s}.panel-motion-right-enter,.panel-motion-right-appear{transform:translate(100%)}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave{transform:translate(0)}.panel-motion-right-leave-active{transform:translate(100%)!important}.panel-motion-top-enter-start,.panel-motion-top-appear-start,.panel-motion-top-leave-start{transition:none!important}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave-active{transition:all .3s}.panel-motion-top-enter,.panel-motion-top-appear{transform:translateY(-100%)}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave{transform:translateY(0)}.panel-motion-top-leave-active{transform:translateY(-100%)!important}.panel-motion-bottom-enter-start,.panel-motion-bottom-appear-start,.panel-motion-bottom-leave-start{transition:none!important}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave-active{transition:all .3s}.panel-motion-bottom-enter,.panel-motion-bottom-appear{transform:translateY(100%)}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave{transform:translateY(0)}.panel-motion-bottom-leave-active{transform:translateY(100%)!important}.ff-drawer-mask{top:0;right:0;bottom:0;left:0;position:absolute;z-index:1050;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45))}.ff-drawer{top:0;right:0;bottom:0;left:0;position:fixed;z-index:1050;pointer-events:none}.ff-drawer .ff-popup-close{top:14px;right:0}.ff-drawer-inline{position:absolute}.ff-drawer-left .ff-drawer-content-wrapper{inset:0 auto 0 0;box-shadow:6px 0 16px #00000014,3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.ff-drawer-right .ff-drawer-content-wrapper{inset:0 0 0 auto;box-shadow:-6px 0 16px #00000014,-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper{top:0;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.ff-drawer-bottom .ff-drawer-content-wrapper{bottom:0;box-shadow:0 -6px 16px #00000014,0 -3px 6px -4px #0000001f,0 -9px 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper,.ff-drawer-bottom .ff-drawer-content-wrapper{inset-inline:0}.ff-drawer-content{width:100%;height:100%;overflow:auto;background-color:var(--popup-bg-color, #fff);pointer-events:auto}.ff-drawer .ff-popup-header{padding:16px 8px;border-bottom:1px solid rgba(5,5,5,.06)}.ff-drawer .ff-popup-footer{border-top:1px solid rgba(5,5,5,.06);padding:12px 8px}.ff-drawer .ff-popup-body{padding:8px}.ff-drawer-content-wrapper{position:absolute;z-index:1050;overflow:hidden;transition:transform .3s;max-width:100vw}.ff-drawer-content-wrapper-hidden{display:none}.ff-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45));height:100%;filter:alpha(opacity=50);z-index:1050}.ff-modal-mask-hidden{display:none}.ff-modal-fade-enter,.ff-modal-fade-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-enter.ff-modal-fade-enter-active,.ff-modal-fade-appear.ff-modal-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.ff-modal-fade-leave.ff-modal-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}.ff-modal{position:relative;top:100px;width:min-content;margin:0 auto}.ff-modal .ff-popup-close{top:14px;right:8px}.ff-modal .ff-popup-header:has(.ff-popup-title),.ff-modal .ff-popup-header:has(.ff-popup-sub-title){margin-bottom:8px}.ff-modal .ff-popup-footer:not(:empty){margin-top:12px}.ff-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.ff-modal-title{margin:0;font-size:14px;line-height:21px;font-weight:700}.ff-modal-content{position:relative;background-color:var(--popup-bg-color, #fff);border-radius:8px;background-clip:padding-box;max-height:calc(100vh - 150px);min-width:max(35vw,600px);box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:20px 24px}.ff-modal-zoom-enter,.ff-modal-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.ff-modal-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.ff-modal-zoom-enter.ff-modal-zoom-enter-active,.ff-modal-zoom-appear.ff-modal-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.ff-modal-zoom-leave.ff-modal-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}.ff-popup-close{cursor:pointer;border:0;background:transparent;font-size:24px;position:absolute;line-height:1;color:#000;opacity:.5}.ff-popup-close:disabled{pointer-events:none}.ff-popup-close:hover{opacity:.65}.ff-popup{display:flex;flex-direction:column}.ff-popup-title,.ff-popup-sub-title{display:inline}.ff-popup-title{font-size:18px;font-weight:600}.ff-popup-footer{display:flex;gap:8px;justify-content:flex-end}.ff-popup-footer:empty{display:none}.ff-popup-extras,.ff-popup-actions{display:flex;align-items:center;gap:8px}.ff-popup-extras{flex:1}.ff-popup-body{flex:1;overflow-y:auto} +#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.react-grid-layout .react-grid-item{box-sizing:border-box!important}.monaco-editor .parameter-hints-widget{border:0px}.monaco-editor .parameter-hints-widget .signature{padding:0}.monaco-editor .suggest-widget,.monaco-editor.vs-dark .suggest-widget{border:0px}.monaco-editor .rename-box{top:0}.ant-divider:has(+.ant-form .ant-divider:first-child){display:none}:root{--padding-lg: 24px;--padding-md: 16px;--padding-sm: 12px;--padding-xs: 8px;--padding-xss: 4px;--margin-lg: 24px;--margin-md: 16px;--margin-sm: 12px;--margin-xs: 8px;--margin-xss: 4px;--border-color: #f2f2f2;--bg-color: rgba(0, 0, 0, .02)}#root{height:100vh;background-color:#f0f2f5}*::-webkit-scrollbar-thumb{background:#aaa;border-radius:5px}*::-webkit-scrollbar-thumb:hover{background:#999}*::-webkit-scrollbar-track{background-color:#ddd}*::-webkit-scrollbar-corner{background-color:#ddd}*::-webkit-scrollbar{width:5px;height:5px}.ff-container{height:100%}.ff-loading{height:100vh;width:100%;background-color:#f0f2f5;display:flex;justify-content:center;align-items:center}.ff-loading .loader{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:128px;height:80px}.ff-loading .loader .square{position:relative}.ff-loading .loader .square:nth-child(1){margin-left:0}.ff-loading .loader .square:nth-child(1) span{-webkit-animation:animsquare1 2s infinite ease-in;animation:animsquare1 2s infinite ease-in}.ff-loading .loader .square:nth-child(2){margin-left:44px}.ff-loading .loader .square:nth-child(2) span{-webkit-animation:animsquare2 2s infinite ease-in;animation:animsquare2 2s infinite ease-in}.ff-loading .loader .square:nth-child(3){margin-left:88px}.ff-loading .loader .square:nth-child(3) span{-webkit-animation:animsquare3 2s infinite ease-in;animation:animsquare3 2s infinite ease-in}.ff-loading .loader .square:nth-child(4){margin-left:132px}.ff-loading .loader .square:nth-child(4) span{-webkit-animation:animsquare4 2s infinite ease-in;animation:animsquare4 2s infinite ease-in}.ff-loading .loader .square span{position:absolute;top:0;left:20px;height:36px;width:36px;border-radius:2px;background-color:#fff}.ff-loading .loader .square span:nth-child(1){top:0;-webkit-animation-delay:0s;animation-delay:0s}.ff-loading .loader .square span:nth-child(2){top:44px;-webkit-animation-delay:.15s;animation-delay:.15s}.ff-loading .loader .square span:nth-child(3){top:88px;-webkit-animation-delay:.3s;animation-delay:.3s}@media (max-width: 550px){.ff-loading .loader{-webkit-transform:scale(.75);transform:scale(.75)}}@media (max-width: 440px){.ff-loading .loader{-webkit-transform:scale(.5);transform:scale(.5)}}@keyframes animsquare4{0%,5%,95%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}30%,70%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare3{0%,10%,90%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}35%,65%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare2{0%,15%,85%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}40%,60%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}@keyframes animsquare1{0%,20%,80%,to{-webkit-transform:translate(0px,0px) rotate(0deg);transform:translate(0) rotate(0)}45%,55%{-webkit-transform:translate(40px,0px) rotate(90deg);transform:translate(40px) rotate(90deg)}}.ff-notification{position:fixed;z-index:2000;display:flex;max-height:100vh;padding:20px;align-items:flex-end;width:380px;overflow-x:hidden;overflow-y:clip;height:100vh;box-sizing:content-box;pointer-events:none;flex-direction:column;gap:24px}.ff-notification-top,.ff-notification-topLeft,.ff-notification-topRight{top:0}.ff-notification-bottom,.ff-notification-bottomRight,.ff-notification-bottomLeft{bottom:0}.ff-notification-bottomRight,.ff-notification-topRight{right:0}.ff-notification-notice{position:relative;display:block;box-sizing:border-box;line-height:1.5;width:100%}.ff-notification-notice-wrapper{z-index:2000;pointer-events:auto;position:relative;display:block;box-sizing:border-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;width:calc(100% - 40px);background-color:#fff;right:0}.ff-notification-notice-content{padding:14px 18px;display:flex;gap:8px;white-space:pre-wrap}.ff-notification-notice-content .ff-notification-icon.ff-notification-error{--bg-color: #ff4d4f}.ff-notification-notice-content .ff-notification-icon.ff-notification-success{--bg-color: #52c41a}.ff-notification-notice-content .ff-notification-icon.ff-notification-info{--bg-color: #1677ff}.ff-notification-notice-content .ff-notification-icon>*:first-child{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;background-color:var(--bg-color)}.ff-notification-notice-progress{position:absolute;left:3px;right:3px;border-radius:1px;overflow:hidden;-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;inline-size:100%;block-size:2px;border:0}.ff-notification-notice-progress,.ff-notification-notice-progress::-webkit-progress-bar{background-color:#0000000a}.ff-notification-notice-progress::-moz-progress-bar{background-color:#31afff}.ff-notification-notice-progress::-webkit-progress-value{background-color:#31afff}.ff-notification-fade{overflow:hidden;transition:all .3s}.ff-notification-fade-appear-prepare{pointer-events:none;opacity:0!important}.ff-notification-fade-appear-start{transform:translate(100%);opacity:0}.ff-notification-fade-appear-active{transform:translate(0);opacity:1}.ff-data-list-framework{height:100%;--sider-width: 280px;--col-num: 1;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-list-framework .ff-data-list-container{width:100%;height:100%;row-gap:var(--gap);display:flex;flex-direction:column}.ff-data-list-framework .ff-data-list-container .ff-data-list-content{flex:1;overflow-y:auto;display:grid;gap:var(--gap);padding:calc(var(--gap) / 2);grid-template-columns:repeat(var(--col-num),1fr);grid-auto-rows:min-content}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;border-radius:4px;background-color:#fff;box-shadow:0 0 8px #00000014}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .ff-grid-layout{padding:8px}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .data-list-grid-layout-item-actions{margin-top:8px;display:flex;justify-content:space-between;border-top:1px solid #f0f0f0}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action{text-align:center;margin:2px 0;flex:1}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .ff-data-list-framework-item .data-list-grid-layout-item-actions .data-list-grid-layout-item-action:not(:last-child){border-right:1px solid #f0f0f0}.ff-data-table-framework{height:100%;--sider-width: 280px;--col-num: 1;--gap: 8px;display:flex;gap:var(--gap)}.ff-data-table-framework .ff-data-table-container{width:100%;height:100%;display:flex;flex-direction:column;row-gap:var(--gap)}.ff-data-list-filter:has(.ff-data-list-filter-actions:not(.expanded)){height:60px;overflow-y:hidden}.ff-data-list-filter .ff-data-list-filter-default-form.ff-grid-layout-form{--grid-layout-cols: 25;--grid-layout-item-margin-x: 8px;--grid-layout-item-margin-y: 16px}.ff-data-list-filter .ff-data-list-filter-actions{grid-column:span var(--itemp-span, 5) / calc(var(--grid-layout-cols, 25) + 1)}.ff-data-list-filter .ff-data-list-filter-actions:not(.expanded){grid-row:1}.ff-data-list-filter .ff-data-list-filter-actions .ff-data-list-filter-expanded-button{margin-left:8px}.ff-data-list-filter .ff-data-list-filter-actions .ant-form-item-control-input-content{display:flex;justify-content:flex-end;align-items:center;gap:8px}.ff-data-list-footer{padding-block-start:8px;display:flex;justify-content:space-between}.ff-data-list-footer .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-sider{width:var(--sider-width, 280px);overflow-y:auto;box-shadow:8px 0 4px -8px #0000000d}.ff-data-list-sider+.ff-data-list-container{width:calc(100% - var(--sider-width, 280px))}.ff-data-list-toolbar{gap:8px;display:flex;justify-content:space-between;align-items:center}.ff-data-list-toolbar .ff-data-list-title{color:#000000e0;font-weight:600;font-size:14px}.ff-data-list-toolbar .ff-data-list-actions{display:flex;justify-content:center;gap:8px}.ff-data-list-toolbar .ff-data-list-tabs{cursor:pointer}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab{color:#00000073}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab:hover{font-weight:600}.ff-data-list-toolbar .ff-data-list-tabs .ff-data-list-tab.active{color:#1677ff;font-weight:600}.ff-data-list-item-operations{max-width:180px;display:flex;flex-wrap:wrap;gap:var(--margin-xss, 4px)}.ff-data-list-item-operations>.ant-btn:not(.ant-btn-circle){flex-grow:1}.ff-data-list-helper{height:100%}.ff-data-list-table{height:100%;overflow-y:hidden}.ff-data-list-table .ant-table *{scrollbar-width:auto;scrollbar-color:auto}.ff-grid-layout{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y));column-gap:var(--grid-layout-item-margin-x);row-gap:var(--grid-layout-item-margin-y)}.ff-grid-layout .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-paddin);margin:var(--grid-layout-box-margin);display:var(--grid-layout-box-display, flex);align-items:var(--grid-layout-box-align-items, center);justify-content:var(--grid-layout-box-justify-content, normal)}.ff-grid-layout-form{--grid-layout-h: 1;--grid-layout-row: none;--grid-layout-row-height: 18px;--grid-layout-row-height-offset: 0px;--grid-layout-cols: 12;display:grid;grid-template-columns:repeat(var(--grid-layout-cols),1fr);grid-auto-rows:minmax(min-content,max-content);padding:var(--grid-layout-container-padding-y, 0) var(--grid-layout-container-padding-x, 0);padding-bottom:calc(var(--grid-layout-container-padding-y, 0) + var(--grid-layout-item-margin-y, 16px));column-gap:var(--grid-layout-item-margin-x, 8px);row-gap:var(--grid-layout-item-margin-y, 16px)}.ff-grid-layout-form .grid-layout-item{grid-row:span var(--grid-layout-h, 1);grid-column:calc(var(--grid-layout-x, 1) + 1)/calc(var(--grid-layout-x, 1) + var(--grid-layout-w, 1) + 1);height:calc(var(--grid-layout-row-height) * var(--grid-layout-h) + var(--grid-layout-row-height-offset));padding:var(--grid-layout-box-padding-y, 0) var(--grid-layout-box-padding-x, 0);margin:var(--grid-layout-box-margin)}.ff-iconfont{transform:scale(1.14);vertical-align:-.125em;display:inline-flex;align-items:center;justify-content:center}.ff-iconfont:not(:last-child){margin-right:8px}.ff-button.ant-btn-link,.ff-button.ant-btn-text{width:initial;padding:0;height:auto}.ff-default.ant-btn-link{color:#000000e0}.ant-btn-link.ant-btn:not(:disabled):focus-visible{outline:initial;outline-offset:initial;transition:initial}.ff-popover .ff-popup-header{margin-bottom:calc(var(--margin-sm) / 2)}.ff-popover .ff-popup-header:empty{display:none}.ff-popover .ff-popup-footer{display:flex;justify-content:space-between;margin-top:var(--margin-sm)}.ff-popover .ff-popup-footer:empty{display:none}.ff-modal-form{display:flex;flex-direction:column;gap:var(--modal-form-gap, 8px)}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave-active{transition:all .3s}.mask-motion-enter,.mask-motion-appear{opacity:0}.mask-motion-enter-active,.mask-motion-appear-active,.mask-motion-leave{opacity:1}.mask-motion-leave-active{opacity:0}.panel-motion-left-enter-start,.panel-motion-left-appear-start,.panel-motion-left-leave-start{transition:none!important}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave-active{transition:all .3s}.panel-motion-left-enter,.panel-motion-left-appear{transform:translate(-100%)}.panel-motion-left-enter-active,.panel-motion-left-appear-active,.panel-motion-left-leave{transform:translate(0)}.panel-motion-left-leave-active{transform:translate(-100%)!important}.panel-motion-right-enter-start,.panel-motion-right-appear-start,.panel-motion-right-leave-start{transition:none!important}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave-active{transition:all .3s}.panel-motion-right-enter,.panel-motion-right-appear{transform:translate(100%)}.panel-motion-right-enter-active,.panel-motion-right-appear-active,.panel-motion-right-leave{transform:translate(0)}.panel-motion-right-leave-active{transform:translate(100%)!important}.panel-motion-top-enter-start,.panel-motion-top-appear-start,.panel-motion-top-leave-start{transition:none!important}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave-active{transition:all .3s}.panel-motion-top-enter,.panel-motion-top-appear{transform:translateY(-100%)}.panel-motion-top-enter-active,.panel-motion-top-appear-active,.panel-motion-top-leave{transform:translateY(0)}.panel-motion-top-leave-active{transform:translateY(-100%)!important}.panel-motion-bottom-enter-start,.panel-motion-bottom-appear-start,.panel-motion-bottom-leave-start{transition:none!important}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave-active{transition:all .3s}.panel-motion-bottom-enter,.panel-motion-bottom-appear{transform:translateY(100%)}.panel-motion-bottom-enter-active,.panel-motion-bottom-appear-active,.panel-motion-bottom-leave{transform:translateY(0)}.panel-motion-bottom-leave-active{transform:translateY(100%)!important}.ff-drawer-mask{top:0;right:0;bottom:0;left:0;position:absolute;z-index:1050;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45))}.ff-drawer{top:0;right:0;bottom:0;left:0;position:fixed;z-index:1050;pointer-events:none}.ff-drawer .ff-popup-close{top:14px;right:0}.ff-drawer-inline{position:absolute}.ff-drawer-left .ff-drawer-content-wrapper{inset:0 auto 0 0;box-shadow:6px 0 16px #00000014,3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.ff-drawer-right .ff-drawer-content-wrapper{inset:0 0 0 auto;box-shadow:-6px 0 16px #00000014,-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper{top:0;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.ff-drawer-bottom .ff-drawer-content-wrapper{bottom:0;box-shadow:0 -6px 16px #00000014,0 -3px 6px -4px #0000001f,0 -9px 28px 8px #0000000d}.ff-drawer-top .ff-drawer-content-wrapper,.ff-drawer-bottom .ff-drawer-content-wrapper{inset-inline:0}.ff-drawer-content{width:100%;height:100%;overflow:auto;background-color:var(--popup-bg-color, #fff);pointer-events:auto}.ff-drawer .ff-popup-header{padding:16px 8px;border-bottom:1px solid rgba(5,5,5,.06)}.ff-drawer .ff-popup-footer{border-top:1px solid rgba(5,5,5,.06);padding:12px 8px}.ff-drawer .ff-popup-body{padding:8px}.ff-drawer-content-wrapper{position:absolute;z-index:1050;overflow:hidden;transition:transform .3s;max-width:100vw}.ff-drawer-content-wrapper-hidden{display:none}.ff-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;pointer-events:auto;background-color:var(--popup-mask-bg-color, rgba(0, 0, 0, .45));height:100%;filter:alpha(opacity=50);z-index:1050}.ff-modal-mask-hidden{display:none}.ff-modal-fade-enter,.ff-modal-fade-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused}.ff-modal-fade-enter.ff-modal-fade-enter-active,.ff-modal-fade-appear.ff-modal-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.ff-modal-fade-leave.ff-modal-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}.ff-modal{position:relative;top:100px;width:min-content;margin:0 auto}.ff-modal .ff-popup-close{top:14px;right:8px}.ff-modal .ff-popup-header:has(.ff-popup-title),.ff-modal .ff-popup-header:has(.ff-popup-sub-title){margin-bottom:8px}.ff-modal .ff-popup-footer:not(:empty){margin-top:12px}.ff-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.ff-modal-title{margin:0;font-size:14px;line-height:21px;font-weight:700}.ff-modal-content{position:relative;background-color:var(--popup-bg-color, #fff);border-radius:8px;background-clip:padding-box;max-height:calc(100vh - 150px);min-width:max(35vw,600px);box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:20px 24px}.ff-modal-zoom-enter,.ff-modal-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.ff-modal-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.ff-modal-zoom-enter.ff-modal-zoom-enter-active,.ff-modal-zoom-appear.ff-modal-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.ff-modal-zoom-leave.ff-modal-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}.ff-popup-close{cursor:pointer;border:0;background:transparent;font-size:24px;position:absolute;line-height:1;color:#000;opacity:.5}.ff-popup-close:disabled{pointer-events:none}.ff-popup-close:hover{opacity:.65}.ff-popup{display:flex;flex-direction:column}.ff-popup-title,.ff-popup-sub-title{display:inline}.ff-popup-title{font-size:18px;font-weight:600}.ff-popup-footer{display:flex;gap:8px;justify-content:flex-end}.ff-popup-footer:empty{display:none}.ff-popup-reserved-extras,.ff-popup-extras,.ff-popup-actions{display:flex;align-items:center;gap:8px}.ff-popup-actions{margin-left:auto}.ff-popup-body{flex:1;overflow-y:auto} diff --git a/dist/utils.js b/dist/utils.js index ac60edf..93f8981 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { d as g, b as s, a as r, c as o, g as i, r as m, t as p, u as P } from "./common/main-DsH9zeNE.js"; +import { d as g, b as s, a as r, c as o, g as i, r as m, t as p, u as P } from "./common/main-DkIsOuM3.js"; export { g as deepSome, s as getPkgCategory, diff --git a/package.json b/package.json index 84c625d..d4d7953 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.4.44", + "version": "0.4.45", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",