From 4484f4c8f108dbd50c163ad88b06365bcecaad87 Mon Sep 17 00:00:00 2001 From: what Date: Mon, 11 May 2026 16:36:28 +0800 Subject: [PATCH] v0.6.42 --- dist/button.js | 2 +- .../{main-dcg6oSDh.js => main-BP-r6Qm1.js} | 930 +++++++++--------- dist/components.js | 2 +- dist/container.js | 2 +- dist/data-converter.js | 2 +- dist/data-list.js | 2 +- dist/data-list/utils.js | 2 +- dist/grid-layout-form.js | 2 +- dist/grid-layout-form/utils.js | 2 +- dist/grid-layout.js | 2 +- dist/grid-layout/utils.js | 2 +- dist/hooks.js | 2 +- dist/iconfont.js | 2 +- dist/index.js | 2 +- dist/pages.js | 2 +- dist/res-ws.js | 2 +- dist/style.css | 2 +- dist/utils.js | 2 +- dist/virtual-fs.js | 2 +- package.json | 2 +- 20 files changed, 489 insertions(+), 479 deletions(-) rename dist/common/{main-dcg6oSDh.js => main-BP-r6Qm1.js} (72%) diff --git a/dist/button.js b/dist/button.js index ba7fd79..a0c416a 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { al as s, ak as u, am as e } from "./common/main-dcg6oSDh.js"; +import { al as s, ak as u, am as e } from "./common/main-BP-r6Qm1.js"; export { s as auth, u as default, diff --git a/dist/common/main-dcg6oSDh.js b/dist/common/main-BP-r6Qm1.js similarity index 72% rename from dist/common/main-dcg6oSDh.js rename to dist/common/main-BP-r6Qm1.js index 613cd25..350d82b 100644 --- a/dist/common/main-dcg6oSDh.js +++ b/dist/common/main-BP-r6Qm1.js @@ -1,8 +1,8 @@ -var Er = Object.defineProperty; +var $r = Object.defineProperty; var hi = (t) => { throw TypeError(t); }; -var Pr = (t, e, i) => e in t ? Er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i; +var Pr = (t, e, i) => e in t ? $r(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i; var T = (t, e, i) => Pr(t, typeof e != "symbol" ? e + "" : e, i), mi = (t, e, i) => e.has(t) || hi("Cannot " + i); var c = (t, e, i) => (mi(t, e, "read from private field"), i ? i.call(t) : e.get(t)), v = (t, e, i) => e.has(t) ? hi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), q = (t, e, i, r) => (mi(t, e, "write to private field"), r ? r.call(t, i) : e.set(t, i), i); var fi = (t, e, i, r) => ({ @@ -14,9 +14,9 @@ var fi = (t, e, i, r) => ({ } }); import { jsx as m, jsxs as I } from "react/jsx-runtime"; -import $, { useEffect as U, useState as A, useCallback as _, useRef as J, useContext as ge, useMemo as K, useId as Dt, isValidElement as vr, useLayoutEffect as xr } from "react"; -import he from "pathe"; -import C from "prop-types"; +import E, { useEffect as U, useState as A, useCallback as _, useRef as J, useContext as ge, useMemo as K, useId as Dt, isValidElement as vr, useLayoutEffect as xr } from "react"; +import me from "pathe"; +import b from "prop-types"; import F from "classnames"; import { useNotification as Nr } from "rc-notification"; import f from "lodash"; @@ -31,22 +31,22 @@ import { generatePath as Br, useInRouterContext as Ii, useParams as Ur, useLocat import Jr from "rc-drawer"; import _r from "rc-dialog"; import * as wi from "react-is"; -var He, rt, Je, Ee, ze, We; +var He, rt, Je, Pe, ze, We; class Mi { constructor(e, i) { v(this, He, /* @__PURE__ */ new Map()); v(this, rt, !0); v(this, Je, []); - v(this, Ee); - v(this, ze, () => c(this, Ee)); + v(this, Pe); + v(this, ze, () => c(this, Pe)); v(this, We, () => Promise.resolve()); T(this, "get", (...e) => new Promise((i, r) => { const n = JSON.stringify(e); - if (c(this, He).has(n)) return i(c(this, We).call(this, c(this, Ee), ...e)); - if (c(this, Ee) === void 0) c(this, Je).push([e, i, r]), c(this, rt) && (q(this, rt, !1), Promise.resolve(typeof c(this, ze) == "function" ? c(this, ze).call(this) : c(this, ze)).then((o) => q(this, Ee, o || null)).finally(() => { + if (c(this, He).has(n)) return i(c(this, We).call(this, c(this, Pe), ...e)); + if (c(this, Pe) === void 0) c(this, Je).push([e, i, r]), c(this, rt) && (q(this, rt, !1), Promise.resolve(typeof c(this, ze) == "function" ? c(this, ze).call(this) : c(this, ze)).then((o) => q(this, Pe, o || null)).finally(() => { c(this, Je).forEach(([o, a, s]) => { try { - const l = c(this, We).call(this, c(this, Ee), ...o); + const l = c(this, We).call(this, c(this, Pe), ...o); c(this, He).set(JSON.stringify(o), l), a(l); } catch (l) { s(l); @@ -54,41 +54,41 @@ class Mi { }), c(this, Je).length = 0; })); else { - const o = c(this, We).call(this, c(this, Ee), ...e); + const o = c(this, We).call(this, c(this, Pe), ...e); c(this, He).set(n, o), i(o); } })); q(this, We, i), q(this, ze, e); } } -He = new WeakMap(), rt = new WeakMap(), Je = new WeakMap(), Ee = new WeakMap(), ze = new WeakMap(), We = new WeakMap(); -const ko = () => m("div", { children: "Empty" }), ht = $.createContext({ ele: {}, mount: () => { +He = new WeakMap(), rt = new WeakMap(), Je = new WeakMap(), Pe = new WeakMap(), ze = new WeakMap(), We = new WeakMap(); +const Co = () => m("div", { children: "Empty" }), ht = E.createContext({ ele: {}, mount: () => { }, unmount: () => { } }), ee = ({ rootClassName: t, className: e, children: i, actions: r, title: n, subTitle: o, extras: a, style: s = {} }) => { - const { mount: l, unmount: d } = $.useContext(ht); + const { mount: l, unmount: d } = E.useContext(ht); return ee.Action({ children: r }), ee.Title({ children: n }), ee.SubTitle({ children: o }), ee.Extra({ children: a }), U(() => (l("rootClassName", t), () => d(t)), [t]), m("div", { className: F("ff-container", e), style: s, children: i }); }, wt = (t) => ({ children: e, className: i }) => { - const { mount: r, unmount: n } = $.useContext(ht); - return U(() => (e && r(t, $.createElement("div", { key: `ff-${t}`, className: F(`ff-popup-${t}`, i) }, e)), () => n(t)), [i, e]), null; + const { mount: r, unmount: n } = E.useContext(ht); + return U(() => (e && r(t, E.createElement("div", { key: `ff-${t}`, className: F(`ff-popup-${t}`, i) }, e)), () => n(t)), [i, e]), null; }; -ee.Action = wt("actions"), ee.Title = wt("title"), ee.SubTitle = wt("sub-title"), ee.Extra = wt("extras"), ee.propTypes = { className: C.string, style: C.object, title: C.any, subTitle: C.any, actions: C.any, extras: C.any }; -const So = () => m(ee, { className: "ff-loading", children: I("div", { className: "loader", children: [I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] }), I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] }), I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] }), I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] })] }) }), $o = () => m("div", { children: "NotFound" }), Vi = ({ children: t }) => { +ee.Action = wt("actions"), ee.Title = wt("title"), ee.SubTitle = wt("sub-title"), ee.Extra = wt("extras"), ee.propTypes = { className: b.string, style: b.object, title: b.any, subTitle: b.any, actions: b.any, extras: b.any }; +const ko = () => m(ee, { className: "ff-loading", children: I("div", { className: "loader", children: [I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] }), I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] }), I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] }), I("div", { className: "square", children: [m("span", {}), m("span", {}), m("span", {})] })] }) }), So = () => m("div", { children: "NotFound" }), Vi = ({ children: t }) => { const [e, i] = A({}), r = _((o, a) => i((s) => ({ ...s, [o]: a })), []), n = _((o) => i((a) => ({ ...a, [o]: void 0 })), []); - return typeof (t == null ? void 0 : t.type) == "string" ? t : m(ht.Provider, { value: { ele: e, mount: r, unmount: n }, children: $.cloneElement(t, { className: e.rootClassName, title: e.title, subTitle: e["sub-title"], actions: e.actions, extras: e.extras }) }); + return typeof (t == null ? void 0 : t.type) == "string" ? t : m(ht.Provider, { value: { ele: e, mount: r, unmount: n }, children: E.cloneElement(t, { className: e.rootClassName, title: e.title, subTitle: e["sub-title"], actions: e.actions, extras: e.extras }) }); }; -Vi.propTypes = { children: C.element.isRequired }; -const bi = { 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"] }, Zt = ({ type: t, props: e }) => m("i", { ...e, children: m("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (bi[t] || bi.info).map((i, r) => m("path", { d: i }, r)) }) }), Di = ({ className: t, content: e, icon: i, $close: r }) => I($.Fragment, { children: [i && m("div", { className: F("ff-notification-icon", t), children: m(Zt, { type: i }) }), e] }), Gr = ({}) => m(ee, { children: "Confirm" }); -var Te, _e; -const me = class me { +Vi.propTypes = { children: b.element.isRequired }; +const bi = { 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"] }, Zt = ({ type: t, props: e }) => m("i", { ...e, children: m("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (bi[t] || bi.info).map((i, r) => m("path", { d: i }, r)) }) }), Di = ({ className: t, content: e, icon: i, $close: r }) => I(E.Fragment, { children: [i && m("div", { className: F("ff-notification-icon", t), children: m(Zt, { type: i }) }), e] }), Gr = ({}) => m(ee, { children: "Confirm" }); +var Oe, _e; +const fe = class fe { constructor() { v(this, _e, /* @__PURE__ */ new Map()); T(this, "init", (e) => q(this, _e, new Map(e))); T(this, "check", (e) => !c(this, _e).has(e) || c(this, _e).get(e)); - if (c(me, Te)) return c(me, Te); + if (c(fe, Oe)) return c(fe, Oe); } }; -Te = new WeakMap(), _e = new WeakMap(), v(me, Te, null), T(me, "getInstance", () => (c(me, Te) || q(me, Te, new me()), c(me, Te))); -let Bt = me; +Oe = new WeakMap(), _e = new WeakMap(), v(fe, Oe, null), T(fe, "getInstance", () => (c(fe, Oe) || q(fe, Oe, new fe()), c(fe, Oe))); +let Bt = fe; const zi = Bt.getInstance(), Yr = (t, e, i = "children") => { if (f.isEmpty(t)) return {}; const r = f.find(t, ["value", e]); @@ -100,25 +100,25 @@ const zi = Bt.getInstance(), Yr = (t, e, i = "children") => { } return {}; }, Wi = (t = "Input", e = "@pkg/ff/grid-layout-forms") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`; -var Oe, nt; -const fe = class fe { +var Re, nt; +const ye = class ye { constructor() { v(this, nt, null); T(this, "init", (e) => q(this, nt, e)); T(this, "get", (e, i) => f.get(c(this, nt), e, i)); - if (c(fe, Oe)) return c(fe, Oe); + if (c(ye, Re)) return c(ye, Re); } }; -Oe = new WeakMap(), nt = new WeakMap(), v(fe, Oe, null), T(fe, "getInstance", () => (c(fe, Oe) || q(fe, Oe, new fe()), c(fe, Oe))); -let Ut = fe; +Re = new WeakMap(), nt = new WeakMap(), v(ye, Re, null), T(ye, "getInstance", () => (c(ye, Re) || q(ye, Re, new ye()), c(ye, Re))); +let Ut = ye; const qe = Ut.getInstance(); -var Ge, Et, ot, at, Pt; -const Ne = class Ne { +var Ge, $t, ot, at, Pt; +const Te = class Te { constructor(...e) { v(this, ot, []); v(this, at, (e) => { var i; - for (let r of e) Array.isArray(r[0]) ? c(this, at).call(this, r) : c(this, ot).push(c(i = Ne, Et).call(i, r[0], r[1])); + for (let r of e) Array.isArray(r[0]) ? c(this, at).call(this, r) : c(this, ot).push(c(i = Te, $t).call(i, r[0], r[1])); }); T(this, "toValue", async (e, i = null) => { const r = { getValue: () => e, getRecord: () => i }; @@ -135,7 +135,7 @@ const Ne = class Ne { } return n; }); - T(this, "toRender", (e, i, r = null) => $.createElement(c(this, Pt), { value: e, record: i }, r)); + T(this, "toRender", (e, i, r = null) => E.createElement(c(this, Pt), { value: e, record: i }, r)); v(this, Pt, ({ value: e, record: i, children: r }) => { const [n, o] = A(r); return ft(() => { @@ -146,7 +146,7 @@ const Ne = class Ne { c(this, at).call(this, e); } }; -Ge = new WeakMap(), Et = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), Pt = new WeakMap(), v(Ne, Ge, null), v(Ne, Et, f.memoize((e, i) => { +Ge = new WeakMap(), $t = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), Pt = new WeakMap(), v(Te, Ge, null), v(Te, $t, f.memoize((e, i) => { if (typeof e == "function") return e(i); if (typeof e == "string") return pe.getWidgetComponent(e).then((r) => { var n; @@ -155,10 +155,10 @@ Ge = new WeakMap(), Et = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), throw new TypeError("middleware must be a string or a function"); }, (...e) => { var i; - return c(Ne, Ge) || q(Ne, Ge, Pn()), c(i = Ne, Ge).call(i, ...e); + return c(Te, Ge) || q(Te, Ge, $n()), c(i = Te, Ge).call(i, ...e); })); -let St = Ne; -const se = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, e) => { +let St = Te; +const se = E.createContext({ listCode: "", classNames: {}, getBase62params: (t, e) => { }, getSelectedRows: () => [], onReload: () => { }, onClickCallback: () => { }, onConditionChange: () => { @@ -177,44 +177,46 @@ const se = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, } }), Ci = ({ className: t, record: e, column: i, ...r }) => { if (i != null && i.editableByJs && (i != null && i.uuid)) { const { formSetting: n = { primaryKey: "id" }, widgetSetting: o = {}, widgetContainerSetting: a = {} } = (i == null ? void 0 : i.editableByJsSetting) || {}; - return m(O.Popover, { widget: Xr, widgetData: { record: e, column: i }, widgetSetting: { widgetSetting: o, formSetting: n }, widgetContainerProps: { title: i != null && i.title ? `${i.title} - 编辑` : "编辑", ...a, width: (a == null ? void 0 : a.width) || 260, arrow: !0 }, children: m("td", { className: F("ff-data-list-cell-editable", t), ...r }) }); + return m(O.Popover, { widget: Bi, widgetData: { record: e, column: i }, widgetSetting: { widgetSetting: o, formSetting: n }, widgetContainerProps: { title: i != null && i.title ? `${i.title} - 编辑` : "编辑", ...a, width: (a == null ? void 0 : a.width) || 260, arrow: !0 }, children: m("td", { className: F("ff-data-list-cell-editable", t), ...r }) }); } return m("td", { className: t, ...r }); -}, Xr = ({ record: t, column: e, $close: i, $setting: r }) => { - const n = J($n(f.get(t, e == null ? void 0 : e.dataIndex))), { listCode: o, onClickCallback: a } = ge(se), [s] = oe.useForm(), { formSetting: l, widgetSetting: d } = r, u = (l == null ? void 0 : l.primaryKey) || "id", p = () => { +}, Bi = ({ record: t, column: e, $close: i, $setting: r }) => { + const n = J(Sn(f.get(t, e == null ? void 0 : e.dataIndex))), { listCode: o, onClickCallback: a } = ge(se), [s] = oe.useForm(), { formSetting: l, widgetSetting: d } = r, u = (l == null ? void 0 : l.primaryKey) || "id", p = () => { s.setFieldsValue({ value: f.get(t, e == null ? void 0 : e.dataIndex), __PROPS__: t }); }; - return ft(() => p(), [t, e == null ? void 0 : e.dataIndex, o]), m(ee, { actions: I($.Fragment, { children: [m(O, { size: "small", onClick: p, children: "重置" }), I(Fr.Compact, { block: !0, children: [m(O, { size: "small", widget: i, children: "取消" }), m(O, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: h }) => { + return ft(() => p(), [t, e == null ? void 0 : e.dataIndex, o]), m(ee, { actions: I(E.Fragment, { children: [m(O, { size: "small", onClick: p, children: "重置" }), I(Fr.Compact, { block: !0, children: [m(O, { size: "small", widget: i, children: "取消" }), m(O, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: h }) => { const g = f.get(t, u.substring(u.indexOf(".") + 1)); if (!g) throw "获取更新主键失败!"; - W.put(`/api/${o}-storeBy-${e == null ? void 0 : e.uuid}/${g}`, { value: h }).msg(() => a(2, t)).then(i); + z.put(`/api/${o}-storeBy-${e == null ? void 0 : e.uuid}/${g}`, { value: h }).msg(() => a(2, t)).then(i); }).catch(console.warn), children: "保存" })] })] }), children: I(oe, { form: s, children: [m(ii, { label: "", type: n.current, code: "value", widget: e == null ? void 0 : e.editableByJs, extras: d }), m(Qt, { noStyle: !0, name: ["__PROPS__"], children: () => { } })] }) }); -}, Qr = (t) => function(e) { +}; +Bi.displayName = "DataListCellEditableContainer"; +const Xr = (t) => function(e) { return t(e, getRecord()); -}, Zr = (t, e = {}) => K(() => { +}, Qr = (t, e = {}) => K(() => { var i; return (i = t == null ? void 0 : t.filter(Boolean)) == null ? void 0 : i.map(({ widgetByJs: r, widgetByJsSetting: n, ...o }, a) => { const s = (d) => ({ record: d, column: o }); let l = []; - return r && l.push([r, n]), l.length > 0 ? (o != null && o.render && l.push([Qr, o.render]), { ...o, onCell: s, render: (d, u) => new St(l).toRender(d, u, "-") }) : { ...o, onCell: s }; + return r && l.push([r, n]), l.length > 0 ? (o != null && o.render && l.push([Xr, o.render]), { ...o, onCell: s, render: (d, u) => new St(l).toRender(d, u, "-") }) : { ...o, onCell: s }; }); -}, [t, e]), en = (t = {}) => K(() => { +}, [t, e]), Zr = (t = {}) => K(() => { var e; return t.body ?? (t.body = { cell: Ci }), (e = t.body).cell ?? (e.cell = Ci), t; }, [t]), Eo = (t) => { const [e, i] = A({}); return U(() => { let r = !1; - return t && W.get(`/api/_/${t}`).then((n) => f.pick(n, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig", "selectionType"])).then((n) => !r && i(n)), () => r = !0; + return t && z.get(`/api/_/${t}`).then((n) => f.pick(n, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig", "selectionType"])).then((n) => !r && i(n)), () => r = !0; }, [t]), e; -}, Po = (t, e = {}) => { +}, $o = (t, e = {}) => { const [i, r] = A({ dataSource: [] }); return mt(() => { let n = !1; - return t && W.get(`/api/${t}/${W.encode({ page: 1, ...e })}`).then((o) => !n && r(o)), () => n = !0; + return t && z.get(`/api/${t}/${z.encode({ page: 1, ...e })}`).then((o) => !n && r(o)), () => n = !0; }, [t, e]), i; -}, Bi = (t = [], e = /* @__PURE__ */ new Map(), i = "id", r) => { +}, Ui = (t = [], e = /* @__PURE__ */ new Map(), i = "id", r) => { const n = _(r ? (o) => f.get(o, i, f.get(o, [r, i])) : (o) => f.get(o, i), [i, r]); return _((o) => t == null ? void 0 : t.filter((a) => !a.uuid || !e.has(a.uuid) || e.get(a.uuid).some((s) => s == n(o))), [t, e, n]); }, qt = (t = [], e = /* @__PURE__ */ new Map(), i = [], r = "id", n) => { @@ -225,7 +227,7 @@ const se = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, const a = i.map((s) => o(s)); return t.some(({ uuid: s }) => !s || !e.has(s) || e.get(s).some((l) => a.some((d) => d == l))); }, [t, i, e, o]); -}, tn = (t, e, i = "id", r = null) => { +}, en = (t, e, i = "id", r = null) => { const n = Ot(), o = J(!1), a = J(t.dataSource), s = J(t.itemOperationsAccess); return U(() => (a.current = t.dataSource, s.current = t.itemOperationsAccess, () => o.current = !1), [t.dataSource, t.itemOperationsAccess]), o.current && (t.dataSource = a.current, t.itemOperationsAccess = s.current), [t, (l = 0, d = null) => { var u, p; @@ -233,25 +235,25 @@ const se = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, if (l === 2) { const h = f.get(d, "__PARENT_ID__", ""), g = f.get(d, i, f.get(d, [r, i], "")), y = f.findIndex(a.current, ["__PARENT_ID__", h]), w = f.findIndex(y > -1 ? f.get(a.current, [y, "children"]) : a.current, [i, g]); if (w === -1) return (p = t.onReload) == null ? void 0 : p.call(t); - Promise.all([W.get(`/api/${e}/detail/${g}`), W.post(`/api/${e}/list-operations-access`, { ids: g })]).then(([b, S]) => { + Promise.all([z.get(`/api/${e}/detail/${g}`), z.post(`/api/${e}/list-operations-access`, { ids: g })]).then(([C, S]) => { const P = f.get(a.current, y > -1 ? [y, "children", w, "children"] : [w, "children"]); - a.current = Li(a.current, y > -1 ? { [y]: { children: { $splice: [[w, 1, { ...b, children: P }]] } } } : { $splice: [[w, 1, { ...b, children: P }]] }); + a.current = Li(a.current, y > -1 ? { [y]: { children: { $splice: [[w, 1, { ...C, children: P }]] } } } : { $splice: [[w, 1, { ...C, children: P }]] }); const k = new Map(S); - s.current.forEach((E, R) => { + s.current.forEach(($, R) => { var L; - (L = k.get(R)) != null && L.some((x) => x == g) || s.current.set(R, E.filter((x) => x !== g)); - }), k.forEach((E, R) => { - s.current.has(R) ? s.current.set(R, f.uniq([...s.current.get(R) || [], ...E])) : s.current.set(R, E); + (L = k.get(R)) != null && L.some((x) => x == g) || s.current.set(R, $.filter((x) => x !== g)); + }), k.forEach(($, R) => { + s.current.has(R) ? s.current.set(R, f.uniq([...s.current.get(R) || [], ...$])) : s.current.set(R, $); }); }).then(() => { o.current = !0, n(); }); } }]; -}, rn = (t, e) => { +}, tn = (t, e) => { const i = Ot(), r = J(e), n = J(/* @__PURE__ */ new Map()), o = J([]), a = f.throttle((l) => { - o.current = [], W.list(t, f.pick({ ...r.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: d, condition: u, total: p, tab: h, sider: g, page: y, pageSize: w, operationsAccess: b, dataSource: S }) => { - r.current = { tab: h, condition: u, sider: g, keyword: d, total: p, pageSize: w, page: S != null && S.length ? y : 1 }, o.current = S, n.current = new Map(b), i(); + o.current = [], z.list(t, f.pick({ ...r.current, ...l }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: d, condition: u, total: p, tab: h, sider: g, page: y, pageSize: w, operationsAccess: C, dataSource: S }) => { + r.current = { tab: h, condition: u, sider: g, keyword: d, total: p, pageSize: w, page: S != null && S.length ? y : 1 }, o.current = S, n.current = new Map(C), i(); }); }, 380, { leading: !1, trailing: !0 }); ft(() => { @@ -259,252 +261,252 @@ const se = $.createContext({ listCode: "", classNames: {}, getBase62params: (t, }, [t, e]); const s = K(() => f.pick(r.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [r.current]); return Object.assign(s, { onTabChange: (l) => a({ tab: l, page: 1 }), onPageChange: (l, d) => a({ page: l, pageSize: d }), onPageSizeChange: (l) => a({ pageSize: l, page: 1 }), onConditionChange: (l, d) => a({ keyword: d, condition: Li(r.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => a({ sider: l, page: 1 }), onKeywordChange: (l) => a({ keyword: l, page: 1 }), itemOperationsAccess: n.current, dataSource: o.current, onReload: a, payload: e == null ? void 0 : e.payload }); -}, nn = ({ listCode: t, className: e, layouts: i = {}, dataSource: r, isPaginate: n, isItemOperations: o, isBatchOperations: a, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: u, primaryKey: p, title: h, itemGridLayout: g, $setting: y, tabs: w, isConditionFormLayout: b, isTreeSider: S, treeSiderConfig: P, rowSelection: k }) => { - const { classNames: E, onClickCallback: R } = ge(se), L = f.pick(y, ["column", "colWidth", "beforeRender", "afterRender", "style"]), x = Bi(l, d, p, u), j = _((V, N, M) => m(on, { className: F("ff-data-list-framework-item", E == null ? void 0 : E.item), operations: o ? x(N) : [], data: u ? { [u]: N } : N, children: V, onClickCallback: R }), [u, p, o, R, l, d]); - return I("div", { className: F("ff-data-list-framework", e), children: [m(i.sider, { isTreeSider: S, ...P }), I("div", { className: F("ff-data-list-container", E == null ? void 0 : E.container), children: [m(i.filter, { isConditionFormLayout: b }), m(i.toolbar, { title: h, tabs: w }), m(bn, { ...L, ...g, rowSelection: k, empty: m(i.empty, { className: E == null ? void 0 : E.empty }), primaryKey: p, itemRender: j, dataSource: r }), m(i.footer, { isPaginate: n, isOperations: a, operations: s })] })] }); -}, on = ({ className: t, operations: e, children: i, data: r, onClickCallback: n, onSelect: o, isSelected: a }) => I("div", { className: F("data-list-grid-layout-item", { "is-selected": a }, t), onClick: o, children: [m("div", { className: "data-list-grid-layout-item-container", children: i }), !!(e != null && e.length) && m("div", { className: "data-list-grid-layout-item-actions", children: e.map((s) => m("span", { className: "data-list-grid-layout-item-action", children: m(O.Link, { uuid: s.uuid, type: s.type, name: s.name, widget: s.widget, widgetType: s.widgetType, widgetProps: s.widgetProps, widgetSetting: s.widgetSetting, widgetContainerProps: s.widgetContainerSetting, data: r, confirm: s.confirm, onAfterClick: (l) => l !== !1 && (n == null ? void 0 : n(s.isRefresh, r)) }, s.uuid || Dt()) }, (s == null ? void 0 : s.uuid) || Dt())) })] }), an = ({ listCode: t, className: e, layouts: i = {}, dataSource: r, columns: n, isItemOperations: o, isBatchOperations: a, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: u, primaryKey: p, title: h, tabs: g, isPaginate: y, rowSelection: w, isTreeSider: b, treeSiderConfig: S, isConditionFormLayout: P, ...k }) => { - const { classNames: E, onClickCallback: R } = ge(se), L = Bi(l, d, p, u), x = qt(l, d, r, p, u); - return I("div", { className: F("ff-data-table-framework", e), children: [m(i.sider, { isTreeSider: b, ...S }), I("div", { className: F("ff-data-table-container", E == null ? void 0 : E.container), children: [m(i.filter, { isConditionFormLayout: P }), m(i.toolbar, { title: h, tabs: g }), m(gn, { ...k, primaryKey: p, className: "ff-data-table-content", columns: n, dataSource: r, rowSelection: w, operationRender: x ? (j) => { +}, rn = ({ listCode: t, className: e, layouts: i = {}, dataSource: r, isPaginate: n, isItemOperations: o, isBatchOperations: a, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: u, primaryKey: p, title: h, itemGridLayout: g, $setting: y, tabs: w, isConditionFormLayout: C, isTreeSider: S, treeSiderConfig: P, rowSelection: k }) => { + const { classNames: $, onClickCallback: R } = ge(se), L = f.pick(y, ["column", "colWidth", "beforeRender", "afterRender", "style"]), x = Ui(l, d, p, u), j = _((V, N, M) => m(nn, { className: F("ff-data-list-framework-item", $ == null ? void 0 : $.item), operations: o ? x(N) : [], data: u ? { [u]: N } : N, children: V, onClickCallback: R }), [u, p, o, R, l, d]); + return I("div", { className: F("ff-data-list-framework", e), children: [m(i.sider, { isTreeSider: S, ...P }), I("div", { className: F("ff-data-list-container", $ == null ? void 0 : $.container), children: [m(i.filter, { isConditionFormLayout: C }), m(i.toolbar, { title: h, tabs: w }), m(wn, { ...L, ...g, rowSelection: k, empty: m(i.empty, { className: $ == null ? void 0 : $.empty }), primaryKey: p, itemRender: j, dataSource: r }), m(i.footer, { isPaginate: n, isOperations: a, operations: s })] })] }); +}, nn = ({ className: t, operations: e, children: i, data: r, onClickCallback: n, onSelect: o, isSelected: a }) => I("div", { className: F("data-list-grid-layout-item", { "is-selected": a }, t), onClick: o, children: [m("div", { className: "data-list-grid-layout-item-container", children: i }), !!(e != null && e.length) && m("div", { className: "data-list-grid-layout-item-actions", children: e.map((s) => m("span", { className: "data-list-grid-layout-item-action", children: m(O.Link, { uuid: s.uuid, type: s.type, name: s.name, widget: s.widget, widgetType: s.widgetType, widgetProps: s.widgetProps, widgetSetting: s.widgetSetting, widgetContainerProps: s.widgetContainerSetting, data: r, confirm: s.confirm, onAfterClick: (l) => l !== !1 && (n == null ? void 0 : n(s.isRefresh, r)) }, s.uuid || Dt()) }, (s == null ? void 0 : s.uuid) || Dt())) })] }), on = ({ listCode: t, className: e, layouts: i = {}, dataSource: r, columns: n, isItemOperations: o, isBatchOperations: a, batchOperations: s, itemOperations: l, itemOperationsAccess: d, resource: u, primaryKey: p, title: h, tabs: g, isPaginate: y, rowSelection: w, isTreeSider: C, treeSiderConfig: S, isConditionFormLayout: P, ...k }) => { + const { classNames: $, onClickCallback: R } = ge(se), L = Ui(l, d, p, u), x = qt(l, d, r, p, u); + return I("div", { className: F("ff-data-table-framework", e), children: [m(i.sider, { isTreeSider: C, ...S }), I("div", { className: F("ff-data-table-container", $ == null ? void 0 : $.container), children: [m(i.filter, { isConditionFormLayout: P }), m(i.toolbar, { title: h, tabs: g }), m(pn, { ...k, primaryKey: p, className: "ff-data-table-content", columns: n, dataSource: r, rowSelection: w, operationRender: x ? (j) => { var V; - return m("div", { className: "ff-data-table-actions", children: (V = L(j)) == null ? void 0 : V.map((N, M) => m(O.Link, { size: "small", uuid: N.uuid, type: N.type, name: N.name, widget: N.widget, widgetType: N.widgetType, widgetProps: N.widgetProps, widgetData: N.widgetData, widgetSetting: N.widgetSetting, widgetContainerProps: N.widgetContainerSetting, data: j, confirm: N.confirm, onAfterClick: (B) => B !== !1 && (R == null ? void 0 : R(N.isRefresh, j)) }, N.uuid || M)) }); + return m("div", { className: "ff-data-table-actions", children: (V = L(j)) == null ? void 0 : V.map((N, M) => m(O.Link, { size: "small", uuid: N.uuid, type: N.type, name: N.name, widget: N.widget, widgetType: N.widgetType, widgetProps: N.widgetProps, widgetData: N.widgetData, widgetSetting: N.widgetSetting, widgetContainerProps: N.widgetContainerSetting, data: j, confirm: N.confirm, onAfterClick: (D) => D !== !1 && (R == null ? void 0 : R(N.isRefresh, j)) }, N.uuid || M)) }); } : null }), m(i.footer, { isPaginate: y, isOperations: a, operations: s })] })] }); }, ei = (t = [], e, i = null) => { var r; - return (r = f.sortBy(t, ["y", "x"])) == null ? void 0 : r.map(({ i: n, x: o, y: a, w: s, h: l, field: { boxStyle: d, ...u } = {} }, p) => m("div", { className: "grid-layout-item", style: Ui(o, a, s, l, d), children: m(e, { ...u, basicForm: i }) }, n ?? p)); -}, Ui = (t, e, i, r, n = {}, o = 0) => { + return (r = f.sortBy(t, ["y", "x"])) == null ? void 0 : r.map(({ i: n, x: o, y: a, w: s, h: l, field: { boxStyle: d, ...u } = {} }, p) => m("div", { className: "grid-layout-item", style: qi(o, a, s, l, d), children: m(e, { ...u, basicForm: i }) }, n ?? p)); +}, qi = (t, e, i, r, n = {}, o = 0) => { const a = { "--grid-layout-h": `${r}`, "--grid-layout-w": `${i}`, "--grid-layout-x": `${t}`, "--grid-layout-y": `${e}`, "--grid-layout-row-height-offset": "0px" }; return n != null && n.autoHeight ? a.height = "fit-content" : a["--grid-layout-row"] = `${r}`, n != null && n.alignItems && (a["--grid-layout-box-align-items"] = n.alignItems), n != null && n.justifyContent && (a["--grid-layout-box-justify-content"] = n.justifyContent), a["--grid-layout-box-margin"] = ki(n == null ? void 0 : n.marginTop, n == null ? void 0 : n.marginRight, n == null ? void 0 : n.marginBottom, n == null ? void 0 : n.marginLeft), a["--grid-layout-box-padding"] = ki(n == null ? void 0 : n.paddingTop, n == null ? void 0 : n.paddingRight, n == null ? void 0 : n.paddingBottom, n == null ? void 0 : n.paddingLeft), o && (a.height = `${o}px`), a; -}, ki = (t, e, i, r) => `${t || 0}px ${e || 0}px ${i || 0}px ${r || 0}px`, vo = (t = "Text", e = "@pkg/ff/grid-layouts") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, qi = (t) => Object.keys(t).reduce((e, i) => (/^on[A-Z]/.test(i) && (e[i] = t[i]), e), {}), Ki = ({ className: t, isConditionFormLayout: e }) => { +}, ki = (t, e, i, r) => `${t || 0}px ${e || 0}px ${i || 0}px ${r || 0}px`, Po = (t = "Text", e = "@pkg/ff/grid-layouts") => t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, Ki = (t) => Object.keys(t).reduce((e, i) => (/^on[A-Z]/.test(i) && (e[i] = t[i]), e), {}), Hi = ({ className: t, isConditionFormLayout: e }) => { var h, g; - const [i, r] = A({}), { listCode: n, onKeywordChange: o, onConditionChange: a, getBase62params: s, classNames: l } = $.useContext(se), { keyword: d, condition: u } = (s == null ? void 0 : s()) || {}, [p] = bt.useForm(); + const [i, r] = A({}), { listCode: n, onKeywordChange: o, onConditionChange: a, getBase62params: s, classNames: l } = E.useContext(se), { keyword: d, condition: u } = (s == null ? void 0 : s()) || {}, [p] = bt.useForm(); return U(() => { - n && e && W.get(`/api/_/${n}/list-condition-form-layout`).then(({ resource: y, marginX: w, marginY: b, rowHeight: S, cols: P, fields: k }) => { - r({ resource: y, itemMargin: [w, b], rowHeight: S, cols: P, fields: k }); + n && e && z.get(`/api/_/${n}/list-condition-form-layout`).then(({ resource: y, marginX: w, marginY: C, rowHeight: S, cols: P, fields: k }) => { + r({ resource: y, itemMargin: [w, C], rowHeight: S, cols: P, fields: k }); }).catch(() => r({})); }, [n, e]), U(() => { p.setFieldsValue({ keyword: d, ...u }); }, [JSON.stringify([d, u])]), m("div", { className: F("ff-data-list-filter", l.filter, t), children: m(bt, { form: p, layout: "vertical", autoComplete: "off", onFinish: ((h = i.fields) == null ? void 0 : h.length) > 1 ? (y) => a({ [i.resource]: y[i.resource] }, y.keyword) : () => { }, onValuesChange: (y) => { f.isEmpty(f.omit(y, ["keyword"])) || p.submit(); - }, children: ((g = i.fields) == null ? void 0 : g.length) > 1 ? m(ri, { ...i, children: m(sn, { onReset: () => { + }, children: ((g = i.fields) == null ? void 0 : g.length) > 1 ? m(ri, { ...i, children: m(an, { onReset: () => { const { keyword: y, condition: w } = s("init") || {}; p.setFieldsValue({ keyword: y, ...w }); - } }) }) : m("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: m("div", { className: "grid-layout-item", style: Ui(20, 0, 5, 2), children: m(bt.Item, { name: ["keyword"], children: m(jr.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (y) => o(y) }) }) }) }) }) }); -}, sn = ({ cols: t, fields: e, onReset: i }) => { + } }) }) : m("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: m("div", { className: "grid-layout-item", style: qi(20, 0, 5, 2), children: m(bt.Item, { name: ["keyword"], children: m(jr.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (y) => o(y) }) }) }) }) }) }); +}, an = ({ cols: t, fields: e, onReset: i }) => { const [r, n] = A(!1), o = K(() => e == null ? void 0 : e.toReversed().some((a) => a.y > 1 || a.x + a.w >= t - 5), [t, e]); return I(bt.Item, { label: " ", style: { "--item-span": 5 }, className: F("ff-data-list-filter-actions", { expanded: r }), children: [m(kt, { onClick: i, children: "重置" }), m(kt, { type: "primary", htmlType: "submit", children: "查询" }), o && m(O.Link, { className: "ff-data-list-filter-expanded-button", widget: () => n((a) => !a), type: "primary", name: r ? "关闭" : "展开", icon: r ? "icon-up" : "icon-down", iconPosition: "end" })] }); }; -Ki.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 ln = ({ className: t, operations: e, isOperations: i, isPaginate: r }) => { - const { onPageChange: n, onPageSizeChange: o, onClickCallback: a, getBase62params: s } = $.useContext(se), { total: l, page: d, pageSize: u } = (s == null ? void 0 : s()) || {}; +Hi.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 sn = ({ className: t, operations: e, isOperations: i, isPaginate: r }) => { + const { onPageChange: n, onPageSizeChange: o, onClickCallback: a, getBase62params: s } = E.useContext(se), { total: l, page: d, pageSize: u } = (s == null ? void 0 : s()) || {}; return i && !f.isEmpty(e) || r ? I("div", { className: F("ff-data-list-footer", t), children: [m("div", { className: "ff-data-list-actions", children: e == null ? void 0 : e.map((p, h) => m(O, { uuid: p.uuid, type: p.type, name: p.name, widget: p.widget, widgetType: p.widgetType, widgetProps: p.widgetProps, widgetData: p.widgetData, widgetSetting: p.widgetSetting, widgetContainerProps: p.widgetContainerSetting, onAfterClick: (g) => g !== !1 && (a == null ? void 0 : a(p.isRefresh, null)) }, p.uuid || h)) }), r && m(Ar, { size: "small", total: l, pageSize: u, showSizeChanger: !1, showTotal: (p) => `第 ${d} 页 / 总共 ${p} 条`, onChange: n, onShowSizeChange: o })] }) : null; -}, cn = [{ 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: m("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], dn = ({ className: t, width: e = 280, isTreeSider: i }) => { +}, ln = [{ 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: m("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], cn = ({ className: t, width: e = 280, isTreeSider: i }) => { const { classNames: r } = ge(se); - return i ? m(Lr.DirectoryTree, { className: F("ff-data-list-sider", r.sider, t), style: { "--sider-width": e }, showLine: !0, showIcon: !1, treeData: cn }) : null; -}, un = ({ className: t, title: e, tabs: i }) => { + return i ? m(Lr.DirectoryTree, { className: F("ff-data-list-sider", r.sider, t), style: { "--sider-width": e }, showLine: !0, showIcon: !1, treeData: ln }) : null; +}, dn = ({ className: t, title: e, tabs: i }) => { const { getBase62params: r, onTabChange: n, onReload: o, classNames: a } = ge(se), { tab: s } = (r == null ? void 0 : r()) || {}, [l, d] = Wr((i == null ? void 0 : i[0].value) ?? (i == null ? void 0 : i[0].code), { value: s, onChange: n }); return I("div", { className: F("ff-data-list-toolbar", a.toolbar, t), children: [m("div", { className: "ff-data-list-title", children: e }), m(Ir, { className: "ff-data-list-tabs", itemRender: ({ label: u, code: p, value: h }) => m("span", { onClick: () => d(h ?? p), className: F("ff-data-list-tab", { active: (h ?? p) == l }), children: u }), items: i }), I("div", { className: "ff-data-list-actions", children: [m(O.Link, { icon: "icon-reload", widget: () => o() }), m(O.Link, { icon: "icon-setting" })] })] }); -}, pn = ({ className: t, ...e }) => m(Wt, { className: F(t, "ff-data-list-empty"), image: Wt.PRESENTED_IMAGE_SIMPLE, ...e }), Hi = ({ isItemGridLayout: t, theme: e, themeProps: i, onClickCallback: r, onReload: n, listCode: o, total: a = 0, page: s = 0, onPageChange: l, pageSize: d = 30, onPageSizeChange: u, tab: p, onTabChange: h, keyword: g, onKeywordChange: y, condition: w, onConditionChange: b, sider: S, onSiderChange: P, layouts: k, classNames: E = {}, payload: R = {}, dataSource: L = [], rowSelection: x, getSelectedRows: j, primaryKey: V, ...N }) => { - const [M, B] = A(), z = j ?? (() => L), le = _((D, ae) => { +}, un = ({ className: t, ...e }) => m(Wt, { className: F(t, "ff-data-list-empty"), image: Wt.PRESENTED_IMAGE_SIMPLE, ...e }), Ji = ({ isItemGridLayout: t, theme: e, themeProps: i, onClickCallback: r, onReload: n, listCode: o, total: a = 0, page: s = 0, onPageChange: l, pageSize: d = 30, onPageSizeChange: u, tab: p, onTabChange: h, keyword: g, onKeywordChange: y, condition: w, onConditionChange: C, sider: S, onSiderChange: P, layouts: k, classNames: $ = {}, payload: R = {}, dataSource: L = [], rowSelection: x, getSelectedRows: j, primaryKey: V, ...N }) => { + const [M, D] = A(), W = j ?? (() => L), he = _((B, le) => { const G = { tab: p, page: s, pageSize: d, keyword: g, sider: S, condition: w, total: a, payload: R }; - return D && D != "init" ? f.get(G, D, ae) : G; - }, [JSON.stringify(w), JSON.stringify(R), p, s, d, g, S, a]), Me = K(() => { - let D = { sider: dn, filter: Ki, footer: ln, toolbar: un, empty: pn }; - k === !1 ? D = { sider: null, filter: null, footer: null, toolbar: null, empty: null } : f.isPlainObject(k) && (D = Object.assign({}, D, k)); - for (const ae in D) if (D[ae]) { - if (vr(D[ae])) { - const G = D[ae]; - D[ae] = (Ft) => $.cloneElement(G, Ft); + return B && B != "init" ? f.get(G, B, le) : G; + }, [JSON.stringify(w), JSON.stringify(R), p, s, d, g, S, a]), ae = K(() => { + let B = { sider: cn, filter: Hi, footer: sn, toolbar: dn, empty: un }; + k === !1 ? B = { sider: null, filter: null, footer: null, toolbar: null, empty: null } : f.isPlainObject(k) && (B = Object.assign({}, B, k)); + for (const le in B) if (B[le]) { + if (vr(B[le])) { + const G = B[le]; + B[le] = (Ft) => E.cloneElement(G, Ft); } - } else D[ae] = () => m($.Fragment, {}); - return D; + } else B[le] = () => m(E.Fragment, {}); + return B; }, [k]); return U(() => { - e ? pe.getWidgetComponent(e).then((D) => { - if (!D) throw `${e} not found`; - return D; - }).catch((D) => ({ default: () => `${D}` })).then((D) => B($.createElement(D.default, { ...N, layouts: Me, $setting: i }))) : B(m(t ? nn : an, { ...N, layouts: Me, $setting: i })); - }, [e, i]), m(se.Provider, { value: { classNames: E, listCode: o, onClickCallback: r, onReload: n, getBase62params: le, onPageChange: l, onPageSizeChange: u, onTabChange: h, onSiderChange: P, onKeywordChange: y, onConditionChange: b, setPage: l, setPageSize: u, setTab: h, setSider: P, setKeyword: y, setCondition: b, getSelectedRows: z }, children: M && $.cloneElement(M, { dataSource: L, primaryKey: V, rowSelection: x, ...N }) }); + e ? pe.getWidgetComponent(e).then((B) => { + if (!B) throw `${e} not found`; + return B; + }).catch((B) => ({ default: () => `${B}` })).then((B) => D(E.createElement(B.default, { ...N, layouts: ae, $setting: i }))) : D(m(t ? rn : on, { ...N, layouts: ae, $setting: i })); + }, [e, i]), m(se.Provider, { value: { classNames: $, listCode: o, onClickCallback: r, onReload: n, getBase62params: he, onPageChange: l, onPageSizeChange: u, onTabChange: h, onSiderChange: P, onKeywordChange: y, onConditionChange: C, setPage: l, setPageSize: u, setTab: h, setSider: P, setKeyword: y, setCondition: C, getSelectedRows: W }, children: M && E.cloneElement(M, { dataSource: L, primaryKey: V, rowSelection: x, ...N }) }); }; -Hi.propTypes = { classNames: C.exact({ sider: C.string, filter: C.string, footer: C.string, toolbar: C.string, container: C.string, content: C.string, item: C.string, empty: C.string }), layouts: C.oneOfType([C.exact({ sider: C.oneOfType([C.elementType, C.element]), filter: C.oneOfType([C.elementType, C.element]), footer: C.oneOfType([C.elementType, C.element]), toolbar: C.oneOfType([C.elementType, C.element]), empty: C.oneOfType([C.elementType, C.element]) }), C.bool]) }; -var Re, Pe, Be, vt; -const ye = class ye { +Ji.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, empty: b.string }), layouts: b.oneOfType([b.exact({ sider: b.oneOfType([b.elementType, b.element]), filter: b.oneOfType([b.elementType, b.element]), footer: b.oneOfType([b.elementType, b.element]), toolbar: b.oneOfType([b.elementType, b.element]), empty: b.oneOfType([b.elementType, b.element]) }), b.bool]) }; +var Fe, ve, Be, vt; +const we = class we { constructor() { - v(this, Pe, null); + v(this, ve, null); v(this, Be, /* @__PURE__ */ new Map()); v(this, vt, () => { - if (c(this, Pe)) return c(this, Pe).port.postMessage({ command: "status", data: [] }); - q(this, Pe, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), c(this, Pe).port.onmessage = (e) => { + if (c(this, ve)) return c(this, ve).port.postMessage({ command: "status", data: [] }); + q(this, ve, new SharedWorker(new URL("/ff-worker/res-ws.js", self.location))), c(this, ve).port.onmessage = (e) => { var i, r; (i = e.data) != null && i.uuid ? c(this, Be).forEach((n, o) => { var a; (n == "*" || (a = n == null ? void 0 : n.includes) != null && a.call(n, e.data.uuid)) && o(e.data); - }) : ((r = e.data) == null ? void 0 : r.readyState) == WebSocket.CLOSED && W.get("/api/user-api-token").then(({ token: n, expire_at: o }) => { - c(this, Pe).port.postMessage({ command: "initWs", data: [`ws${f.trimStart(W.appUrl, "http")}api/user-resource-status-ws?token=${n}`] }); + }) : ((r = e.data) == null ? void 0 : r.readyState) == WebSocket.CLOSED && z.get("/api/user-api-token").then(({ token: n, expire_at: o }) => { + c(this, ve).port.postMessage({ command: "initWs", data: [`ws${f.trimStart(z.appUrl, "http")}api/user-resource-status-ws?token=${n}`] }); }); - }, c(this, Pe).port.postMessage({ command: "status", data: [] }); + }, c(this, ve).port.postMessage({ command: "status", data: [] }); }); T(this, "subscribe", (e, i = []) => (i ? Array.isArray(i) && i.length == 0 ? i = "*" : Array.isArray(i) || (i = [i].flat()) : i = "*", c(this, Be).set(e, i), c(this, Be).size == 1 && c(this, vt).call(this), () => this.unsubscribe(e))); T(this, "unsubscribe", (e) => c(this, Be).delete(e)); - if (c(ye, Re)) return c(ye, Re); + if (c(we, Fe)) return c(we, Fe); } }; -Re = new WeakMap(), Pe = new WeakMap(), Be = new WeakMap(), vt = new WeakMap(), v(ye, Re, null), T(ye, "getInstance", () => (c(ye, Re) || q(ye, Re, new ye()), c(ye, Re))); -let Kt = ye; -const Ji = Kt.getInstance(), ti = $.forwardRef(({ listCode: t, base62params: e, className: i, theme: r, themeProps: n, layouts: o, classNames: a, onSelectionChange: s, defaultSelectedRowKeys: l, selectedRowKeys: d, onDataSourceChange: u, onClick: p }, h) => { - const [{ resource: g, primaryKey: y, batchOperations: w = [], itemOperations: b = [], columns: S = [], themeConfig: P, theme: k, isConditionFormLayout: E = !1, isTreeSider: R, treeSiderConfig: L, isItemGridLayout: x, itemGridLayout: { themeConfig: j, ...V } = {}, title: N, isPaginate: M, tabs: B, selectionType: z }, le] = A({ isItemGridLayout: !1, itemGridLayout: {} }), Me = rn(t, e), [{ dataSource: D, itemOperationsAccess: ae, condition: G, tab: Ft, keyword: lr, page: si, total: li, pageSize: ci, sider: cr, onConditionChange: dr, onTabChange: ur, onKeywordChange: pr, onPageChange: gr, onPageSizeChange: hr, onSiderChange: mr, onReload: jt, payload: fr }, di] = tn(Me, t, y, g), yr = Tr(u); +Fe = new WeakMap(), ve = new WeakMap(), Be = new WeakMap(), vt = new WeakMap(), v(we, Fe, null), T(we, "getInstance", () => (c(we, Fe) || q(we, Fe, new we()), c(we, Fe))); +let Kt = we; +const _i = Kt.getInstance(), ti = E.forwardRef(({ listCode: t, base62params: e, className: i, theme: r, themeProps: n, layouts: o, classNames: a, onSelectionChange: s, defaultSelectedRowKeys: l, selectedRowKeys: d, onDataSourceChange: u }, p) => { + const [{ resource: h, primaryKey: g, batchOperations: y = [], itemOperations: w = [], columns: C = [], themeConfig: S, theme: P, isConditionFormLayout: k = !1, isTreeSider: $, treeSiderConfig: R, isItemGridLayout: L, itemGridLayout: { themeConfig: x, ...j } = {}, title: V, isPaginate: N, tabs: M, selectionType: D }, W] = A({ isItemGridLayout: !1, itemGridLayout: {} }), he = tn(t, e), [{ dataSource: ae, itemOperationsAccess: B, condition: le, tab: G, keyword: Ft, page: si, total: li, pageSize: ci, sider: cr, onConditionChange: dr, onTabChange: ur, onKeywordChange: pr, onPageChange: gr, onPageSizeChange: hr, onSiderChange: mr, onReload: jt, payload: fr }, di] = en(he, t, g, h), yr = Tr(u); Fi(() => { - yr(D, { page: si, pageSize: ci, total: li }); - }, [D]); - const [wr, br] = zr([], { defaultValue: l ?? [], value: d }), [ui, Cr] = A([]), pi = _(() => z ? ui : D, [z, ui, D]), kr = qt(b, ae, D, y), Sr = qt(w); + yr(ae, { page: si, pageSize: ci, total: li }); + }, [ae]); + const [wr, br] = zr([], { defaultValue: l ?? [], value: d }), [ui, Cr] = A([]), pi = _(() => D ? ui : ae, [D, ui, ae]), kr = qt(w, B, ae, g), Sr = qt(y); U(() => { let X = null; - return t && W.get(`/api/_/${t}`).resp(({ data: Ve, res: At }) => { - Ve != null && Ve.isDynamicRefresh && (X = Ji.subscribe(() => jt(), At)), le(Ve); - }).catch(() => le({})), () => X == null ? void 0 : X(); - }, [t]), $.useImperativeHandle(h, () => ({ onReload: jt, onClickCallback: di, getSelectedRows: pi })); - const $r = { listCode: t, title: N, classNames: a, layouts: o, resource: g, primaryKey: y, theme: r || k, themeProps: n || P, isTreeSider: R, treeSiderConfig: L, isPaginate: M, rowSelection: z ? { type: z, columnWidth: 80, selectedRowKeys: wr, onChange: (X, Ve) => { + return t && z.get(`/api/_/${t}`).resp(({ data: Ve, res: At }) => { + Ve != null && Ve.isDynamicRefresh && (X = _i.subscribe(() => jt(), At)), W(Ve); + }).catch(() => W({})), () => X == null ? void 0 : X(); + }, [t]), E.useImperativeHandle(p, () => ({ onReload: jt, onClickCallback: di, getSelectedRows: pi })); + const Er = { listCode: t, title: V, classNames: a, layouts: o, resource: h, primaryKey: g, theme: r || P, themeProps: n || S, isTreeSider: $, treeSiderConfig: R, isPaginate: N, rowSelection: D ? { type: D, columnWidth: 80, selectedRowKeys: wr, onChange: (X, Ve) => { Cr((At) => { - const gi = new Map(At.map((ce) => [ce == null ? void 0 : ce[y], ce])); - return Ve.forEach((ce) => gi.set(ce == null ? void 0 : ce[y], ce)), X.map((ce) => gi.get(ce)).filter(Boolean); + const gi = new Map(At.map((ce) => [ce == null ? void 0 : ce[g], ce])); + return Ve.forEach((ce) => gi.set(ce == null ? void 0 : ce[g], ce)), X.map((ce) => gi.get(ce)).filter(Boolean); }), br(X), s == null || s(X, Ve); - } } : void 0, getSelectedRows: pi, tabs: B, isItemOperations: kr, itemOperations: b == null ? void 0 : b.map((X) => f.isEmpty(X == null ? void 0 : X.confirm) ? X : { ...X, confirm: Object.assign({}, X.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Sr, batchOperations: w, isItemGridLayout: x, columns: S, itemGridLayout: { ...V, themeProps: j }, isConditionFormLayout: E, itemOperationsAccess: ae, dataSource: D, onConditionChange: dr, onTabChange: ur, onKeywordChange: pr, onPageChange: gr, onPageSizeChange: hr, onSiderChange: mr, condition: G, tab: Ft, keyword: lr, page: si, total: li, pageSize: ci, sider: cr, payload: fr }; - return m(Hi, { ...$r, className: F("ff-data-list-helper", i), onReload: jt, onClickCallback: di }); -}), _i = (t, e, i = !0) => i !== !0 && i-- <= 0 ? [] : f.isArray(t) && !f.isEmpty(t) ? t.reduce((r, n) => (Reflect.has(n, e) && Reflect.has(n, "children") && r.push(n[e]), Reflect.has(n, "children") && !f.isEmpty(n.children) ? r.concat(_i(n.children, e, i)) : r), []) : [], gn = ({ className: t, primaryKey: e, columns: i = [], dataSource: r = [], operationRender: n, operationWidth: o = 180, components: a = {}, rowSelection: s, ...l }) => { + } } : void 0, getSelectedRows: pi, tabs: M, isItemOperations: kr, itemOperations: w == null ? void 0 : w.map((X) => f.isEmpty(X == null ? void 0 : X.confirm) ? X : { ...X, confirm: Object.assign({}, X.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: Sr, batchOperations: y, isItemGridLayout: L, columns: C, itemGridLayout: { ...j, themeProps: x }, isConditionFormLayout: k, itemOperationsAccess: B, dataSource: ae, onConditionChange: dr, onTabChange: ur, onKeywordChange: pr, onPageChange: gr, onPageSizeChange: hr, onSiderChange: mr, condition: le, tab: G, keyword: Ft, page: si, total: li, pageSize: ci, sider: cr, payload: fr }; + return m(Ji, { ...Er, className: F("ff-data-list-helper", i), onReload: jt, onClickCallback: di }); +}), Gi = (t, e, i = !0) => i !== !0 && i-- <= 0 ? [] : f.isArray(t) && !f.isEmpty(t) ? t.reduce((r, n) => (Reflect.has(n, e) && Reflect.has(n, "children") && r.push(n[e]), Reflect.has(n, "children") && !f.isEmpty(n.children) ? r.concat(Gi(n.children, e, i)) : r), []) : [], pn = ({ className: t, primaryKey: e, columns: i = [], dataSource: r = [], operationRender: n, operationWidth: o = 180, components: a = {}, rowSelection: s, ...l }) => { const { classNames: d } = ge(se), u = J(null), p = J(null), [h, g] = A([]), [y, w] = A({ width: 0, height: 0 }); U(() => { - g(_i(r, e)); + g(Gi(r, e)); }, [r, e]), xr(() => { const k = new ResizeObserver(() => { - var E; - w({ width: ((E = u.current) == null ? void 0 : E.nativeElement.querySelector(".ant-table-body").scrollWidth) || p.current.offsetWidth, height: p.current.offsetHeight }); + var $; + w({ width: (($ = u.current) == null ? void 0 : $.nativeElement.querySelector(".ant-table-body").scrollWidth) || p.current.offsetWidth, height: p.current.offsetHeight }); }); return p.current && k.observe(p.current), () => { p.current && k.unobserve(p.current); }; }, []); - const b = K(() => { + const C = K(() => { if (!(y != null && y.width) || !(i != null && i.length)) return i; - const k = (s ? s.columnWidth ?? 32 : 0) + (n ? o : 0), E = i.reduce((x, j) => x + (j.isWidthFixed && j.width ? j.width : 0), 0), R = i.filter((x) => !x.isWidthFixed).reduce((x, j) => x + (j.width ?? 100), 0); - if (E + R + k >= y.width) return i; - const L = y.width - E - k; + const k = (s ? s.columnWidth ?? 32 : 0) + (n ? o : 0), $ = i.reduce((x, j) => x + (j.isWidthFixed && j.width ? j.width : 0), 0), R = i.filter((x) => !x.isWidthFixed).reduce((x, j) => x + (j.width ?? 100), 0); + if ($ + R + k >= y.width) return i; + const L = y.width - $ - k; return i.map((x) => x.isWidthFixed ? x : { ...x, width: Math.floor(L * (x.width ?? 100) / R) }); - }, [i, y.width, s, n, o]), S = Zr(b), P = en(a); + }, [i, y.width, s, n, o]), S = Qr(C), P = Zr(a); return m("div", { ref: p, className: F("ff-data-list-table", d.content, t), children: y.height ? m(yi, { bordered: !0, ...l, components: P, ref: u, rowKey: (k) => (k == null ? void 0 : k[e]) ?? Math.random(), rowSelection: s, columns: (() => { - var E, R; + var $, R; const k = [...S ?? []]; - return s && k.splice((R = (E = k[0]) == null ? void 0 : E.key) != null && R.startsWith("__") ? 1 : 0, 0, yi.SELECTION_COLUMN), n && k.push({ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(o / y.width * 100).toFixed(2)}%`, render: (L, x, j) => n(x, j) }), k; + return s && k.splice((R = ($ = k[0]) == null ? void 0 : $.key) != null && R.startsWith("__") ? 1 : 0, 0, yi.SELECTION_COLUMN), n && k.push({ title: "操作", align: "center", fixed: "right", width: `${Math.ceil(o / y.width * 100).toFixed(2)}%`, render: (L, x, j) => n(x, j) }), k; })(), dataSource: r, size: "middle", scroll: { x: "max-content", y: y.height - 50 }, pagination: !1, expandable: { defaultExpandAllRows: !0, expandRowByClick: !0, onExpandedRowsChange: g, expandedRowKeys: h } }) : null }); -}, hn = "RC_FORM_INTERNAL_HOOKS", mn = (t) => { - const [e, i] = $.useState({ items: [] }); +}, gn = "RC_FORM_INTERNAL_HOOKS", hn = (t) => { + const [e, i] = E.useState({ items: [] }); return U(() => { - t && W.get(`/api/_/${t}`).then(({ uuid: r, code: n, name: o, resource: a, primaryKey: s, marginX: l, marginY: d, cols: u, rowHeight: p, fields: h, theme: g, themeSetting: y, groups: w }) => ({ uuid: r, code: n, name: o, resource: a, primaryKey: s, marginX: l, marginY: d, cols: u, rowHeight: p, theme: g, themeProps: y, groups: w, items: h })).then(i); + t && z.get(`/api/_/${t}`).then(({ uuid: r, code: n, name: o, resource: a, primaryKey: s, marginX: l, marginY: d, cols: u, rowHeight: p, fields: h, theme: g, themeSetting: y, groups: w }) => ({ uuid: r, code: n, name: o, resource: a, primaryKey: s, marginX: l, marginY: d, cols: u, rowHeight: p, theme: g, themeProps: y, groups: w, items: h })).then(i); }, [t]), e; -}, fn = (t, { initialValue: e, initialValueLanguage: i, convertJs: r, convertJsSetting: n, type: o = "string" }, a = null) => { - const s = J(!1), l = ge(Ri), [d, u] = A(), [p, h] = A(i != "javascript" && t ? l.getFieldValue(t) : void 0), { registerWatch: g } = l.getInternalHooks(hn) || {}; - return U(() => g == null ? void 0 : g((y, w, b) => { +}, mn = (t, { initialValue: e, initialValueLanguage: i, convertJs: r, convertJsSetting: n, type: o = "string" }, a = null) => { + const s = J(!1), l = ge(Ri), [d, u] = A(), [p, h] = A(i != "javascript" && t ? l.getFieldValue(t) : void 0), { registerWatch: g } = l.getInternalHooks(gn) || {}; + return U(() => g == null ? void 0 : g((y, w, C) => { if (!s.current) return; const S = f.get(w, t); f.isEqual(S, p) || h(ue(S, o)); }), [p]), U(() => { - i == "javascript" && e ? Ie.exec(e, {}, { getFieldValueForBasicForm: (y) => a ? a.getFieldValue(y) : l.getFieldValue(y), getFieldValue: (y) => l.getFieldValue(y) }).then((y) => h(ue(y, o))).catch((y) => notification.error({ message: `布局数据错误: ${JSON.stringify(y)}` })).finally(() => s.current = !0) : (e && h(ue(e ?? l.getFieldValue(t), o)), s.current = !0); + i == "javascript" && e ? Me.exec(e, {}, { getFieldValueForBasicForm: (y) => a ? a.getFieldValue(y) : l.getFieldValue(y), getFieldValue: (y) => l.getFieldValue(y) }).then((y) => h(ue(y, o))).catch((y) => notification.error({ message: `布局数据错误: ${JSON.stringify(y)}` })).finally(() => s.current = !0) : (e && h(ue(e ?? l.getFieldValue(t), o)), s.current = !0); }, [e, i]), mt(() => { s.current && r && new St([r, n]).toValue(p, l.getFieldsValue(!0)).then(u).catch((y) => { u(y), console.error("布局数据转换错误: ", y, r); }); }, [p, r, n]), [d ?? p, p]; -}, xo = (t, e, i = null) => K(() => ei(t, e, i), [t]), Gi = (t, e, i = {}, r = {}, n = {}, o = null) => { +}, vo = (t, e, i = null) => K(() => ei(t, e, i), [t]), Yi = (t, e, i = {}, r = {}, n = {}, o = null) => { const a = ge(Ri), s = Ot(), l = J(!0), d = J([]), [u, p] = A(e), [h, g] = A(), y = oe.useWatch((w) => JSON.stringify(f.pick(w, d.current)), a) || "{}"; return ft(() => { - t && Ie.exec(t, i, { ...r, getFieldValueForBasicForm: (w) => n ? n.getFieldValue(w) : null, getFieldValue: f.wrap(a.getFieldValue, (w, b) => (d.current.some((S) => f.isEqual(S, b)) || (d.current.push(b), s()), w == null ? void 0 : w(b))), isFieldTouched: a.isFieldTouched, isFieldsTouched: a.isFieldsTouched }).then((w) => { + t && Me.exec(t, i, { ...r, getFieldValueForBasicForm: (w) => n ? n.getFieldValue(w) : null, getFieldValue: f.wrap(a.getFieldValue, (w, C) => (d.current.some((S) => f.isEqual(S, C)) || (d.current.push(C), s()), w == null ? void 0 : w(C))), isFieldTouched: a.isFieldTouched, isFieldsTouched: a.isFieldsTouched }).then((w) => { l.current && (p(w), g(null)); }).catch((w) => { l.current && (p(e), g(w)); }); }, [t, y, a, i, r]), U(() => () => l.current = !1, []), t ? [o ? ue(u, o) : u, h] : [o ? ue(e, o) : e, null]; -}, yn = ({ widget: t, widgetPrefix: e = "@pkg/ff/grid-layouts", basicForm: i, ...r }) => { +}, fn = ({ widget: t, widgetPrefix: e = "@pkg/ff/grid-layouts", basicForm: i, ...r }) => { const n = t != null && t.startsWith("@") || t != null && t.startsWith("blob:") ? t : `${e}/${t}`, [o, a] = A(); return U(() => { - n && pe.getWidgetComponent(n).then(({ defaultProps: s = {}, default: l }) => ({ default: wn(l, s, i) })).catch((s) => ({ default: () => `${s}` })).then((s) => a($.createElement(s.default, r))); + n && pe.getWidgetComponent(n).then(({ defaultProps: s = {}, default: l }) => ({ default: yn(l, s, i) })).catch((s) => ({ default: () => `${s}` })).then((s) => a(E.createElement(s.default, r))); }, [n]), o; -}, wn = (t, e = {}, i = null) => (r) => { - const { code: n, label: o, extras: a, isVirtual: s, initialValue: l, initialValueLanguage: d, convertJs: u, convertJsSetting: p, value: h, ...g } = f.merge({}, e, r), [y, w] = fn(s ? null : n, { initialValue: l, initialValueLanguage: d, convertJs: u, convertJsSetting: p, type: (g == null ? void 0 : g.type) || "string" }, i), b = K(() => { +}, yn = (t, e = {}, i = null) => (r) => { + const { code: n, label: o, extras: a, isVirtual: s, initialValue: l, initialValueLanguage: d, convertJs: u, convertJsSetting: p, value: h, ...g } = f.merge({}, e, r), [y, w] = mn(s ? null : n, { initialValue: l, initialValueLanguage: d, convertJs: u, convertJsSetting: p, type: (g == null ? void 0 : g.type) || "string" }, i), C = K(() => { const k = Object.keys((e == null ? void 0 : e.extras) || {}); return f.over([f.partialRight(f.pick, k), f.partialRight(f.omit, k)]); - }, [e == null ? void 0 : e.extras]), [S, P] = b(g); + }, [e == null ? void 0 : e.extras]), [S, P] = C(g); return m(t, { ...P, value: y, rawValue: w, $setting: Object.assign({}, a, S) }); -}, Yi = ({ theme: t, basicForm: e, items: i = [{ key: "default", label: "默认" }], fields: r = [], itemRender: n, chunks: o = [], children: a, $setting: s = {}, ...l }) => { +}, Xi = ({ theme: t, basicForm: e, items: i = [{ key: "default", label: "默认" }], fields: r = [], itemRender: n, chunks: o = [], children: a, $setting: s = {}, ...l }) => { const [d, u] = A(); U(() => { t ? pe.getWidgetComponent(t).then((h) => { if (!(h != null && h.default)) throw "not found"; return h; - }).catch((h) => ({ default: () => `${t} ${h}` })).then((h) => u($.createElement(h.default, {}))) : u(null); + }).catch((h) => ({ default: () => `${t} ${h}` })).then((h) => u(E.createElement(h.default, {}))) : u(null); }, [t]); const p = K(() => i == null ? void 0 : i.map((h) => ({ ...h, children: n(h, r == null ? void 0 : r.filter((g) => !(g != null && g.group) && h.key == "default" || g.group == h.key), h.key == "default" ? a : null) })).concat(o), [i, a, o]); - return d && $.cloneElement(d, { items: p, basicForm: e, $setting: { ...s, ...l } }); -}, Xi = ({ name: t, form: e = null, basicForm: i = null, style: r = {}, className: n, cols: o = 12, rowHeight: a = 21, containerPadding: s = [0, 0], itemMargin: l = [4, 0], formProps: d = {}, formFields: u = [], fields: p = [], data: h, theme: g, themeProps: y = {}, groups: w = [{ key: "default", label: "默认" }], children: b, ...S }) => { + return d && E.cloneElement(d, { items: p, basicForm: e, $setting: { ...s, ...l } }); +}, Qi = ({ name: t, form: e = null, basicForm: i = null, style: r = {}, className: n, cols: o = 12, rowHeight: a = 21, containerPadding: s = [0, 0], itemMargin: l = [4, 0], formProps: d = {}, formFields: u = [], fields: p = [], data: h, theme: g, themeProps: y = {}, groups: w = [{ key: "default", label: "默认" }], children: C, ...S }) => { const [P] = oe.useForm(e), k = K(() => [{ name: "__PROPS__", value: d }].concat(u), [d, u]); mt(() => (P.setFieldsValue(h), () => P.resetFields()), [h]); - const E = (R, L, x) => { - const j = ei(L, yn, i), V = qi(S); - return I("div", { ...V, className: F("ff-grid-layout", n), style: { ...r, "--grid-layout-item-margin-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-item-margin-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-container-padding-y": `${(s == null ? void 0 : s[0]) || 0}px`, "--grid-layout-container-padding-x": `${(s == null ? void 0 : s[1]) || 0}px`, "--grid-layout-cols": o, "--grid-layout-row-height": `${a}px` }, children: [j, x && $.cloneElement(x, { cols: o, rowHeight: a, itemMargin: l, containerPadding: s, fields: L, basicForm: i })] }); + const $ = (R, L, x) => { + const j = ei(L, fn, i), V = Ki(S); + return I("div", { ...V, className: F("ff-grid-layout", n), style: { ...r, "--grid-layout-item-margin-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-item-margin-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-container-padding-y": `${(s == null ? void 0 : s[0]) || 0}px`, "--grid-layout-container-padding-x": `${(s == null ? void 0 : s[1]) || 0}px`, "--grid-layout-cols": o, "--grid-layout-row-height": `${a}px` }, children: [j, x && E.cloneElement(x, { cols: o, rowHeight: a, itemMargin: l, containerPadding: s, fields: L, basicForm: i })] }); }; - return m(oe, { ...S, fields: k, form: P, component: !1, children: g ? m(Yi, { ...y, items: w, theme: g, itemRender: E, fields: p, children: b, basicForm: i }) : E(0, p, b) }); -}, No = /* @__PURE__ */ ((t) => function({ code: e, data: i, ...r }) { - const { uuid: n, resource: o, items: a, hides: s, rowHeight: l, marginX: d, marginY: u, cols: p, theme: h, themeProps: g, groups: y } = mn(e) || {}, w = K(() => [{ name: "__RESOURCE__", value: o }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: n }], [e, n, o]); + return m(oe, { ...S, fields: k, form: P, component: !1, children: g ? m(Xi, { ...y, items: w, theme: g, itemRender: $, fields: p, children: C, basicForm: i }) : $(0, p, C) }); +}, xo = /* @__PURE__ */ ((t) => function({ code: e, data: i, ...r }) { + const { uuid: n, resource: o, items: a, hides: s, rowHeight: l, marginX: d, marginY: u, cols: p, theme: h, themeProps: g, groups: y } = hn(e) || {}, w = K(() => [{ name: "__RESOURCE__", value: o }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: n }], [e, n, o]); return o && m(t, { name: e, theme: h, themeProps: g, groups: y, ...r, fields: a, formFields: w, rowHeight: l, cols: p, itemMargin: [d, u], data: o ? { [o]: i } : i }); -})(Xi), bn = ({ column: t = 0, colWidth: e = 0, cols: i, rowHeight: r, itemMargin: n, fields: o, primaryKey: a, dataSource: s, beforeRender: l = null, afterRender: d = null, itemClassName: u, itemRender: p = (k, E, R) => k, empty: h = m(Wt, { description: null }), className: g, style: y = {}, theme: w, themeProps: b = {}, groups: S = [{ key: "default", label: "默认" }], rowSelection: P }) => { - const { classNames: k } = ge(se), E = _((x) => { +})(Qi), wn = ({ column: t = 0, colWidth: e = 0, cols: i, rowHeight: r, itemMargin: n, fields: o, primaryKey: a, dataSource: s, beforeRender: l = null, afterRender: d = null, itemClassName: u, itemRender: p = (k, $, R) => k, empty: h = m(Wt, { description: null }), className: g, style: y = {}, theme: w, themeProps: C = {}, groups: S = [{ key: "default", label: "默认" }], rowSelection: P }) => { + const { classNames: k } = ge(se), $ = _((x) => { if (!P) return; const { selectedRowKeys: j = [], onChange: V, type: N = "checkbox" } = P, M = x == null ? void 0 : x[a]; - let B; - B = N === "radio" ? [M] : j.includes(M) ? j.filter((z) => z !== M) : [...j, M], V == null || V(B, s.filter((z) => B.includes(z == null ? void 0 : z[a]))); - }, [P, a, s]), R = K(() => m(Xi, { groups: S, theme: w, themeProps: b, cols: i, rowHeight: r, itemMargin: n, fields: o, className: u }), [o, i, r, n, S, w, b]), L = f.isEmpty(s); + let D; + D = N === "radio" ? [M] : j.includes(M) ? j.filter((W) => W !== M) : [...j, M], V == null || V(D, s.filter((W) => D.includes(W == null ? void 0 : W[a]))); + }, [P, a, s]), R = K(() => m(Qi, { groups: S, theme: w, themeProps: C, cols: i, rowHeight: r, itemMargin: n, fields: o, className: u }), [o, i, r, n, S, w, C]), L = f.isEmpty(s); return I("div", { className: F("ff-data-list-content", k.content, g), style: Object.assign({}, y, t && { "--col-num": t }, e && { "--col-width": e }), children: [l == null ? void 0 : l(s), L ? h : s.map((x, j) => { - var B; - const V = (x == null ? void 0 : x[a]) ?? j, N = `${V}-${En(x)}`, M = p($.cloneElement(R, { data: x }), x, j); - return $.cloneElement(M, { key: N, ...P && { isSelected: (B = P == null ? void 0 : P.selectedRowKeys) == null ? void 0 : B.includes(V), onSelect: () => E(x) } }); + var D; + const V = (x == null ? void 0 : x[a]) ?? j, N = `${V}-${En(x)}`, M = p(E.cloneElement(R, { data: x }), x, j); + return E.cloneElement(M, { key: N, ...P && { isSelected: (D = P == null ? void 0 : P.selectedRowKeys) == null ? void 0 : D.includes(V), onSelect: () => $(x) } }); }), d == null ? void 0 : d(s)] }); -}, Cn = ({ component: t, $props: e }) => { +}, bn = ({ component: t, $props: e }) => { const { base62params: i } = Tt(e, {}); - return m(ee, { children: m(ti, { listCode: t, base62params: W.decode(i) }) }); -}, To = () => m(Qi, {}), Qi = () => "Empty", kn = ({ component: t, $setting: e, $props: i }) => { - const [r, n] = A(), [o, a] = rr(i); + return m(ee, { children: m(ti, { listCode: t, base62params: z.decode(i) }) }); +}, No = () => m(Zi, {}), Zi = () => "Empty", Cn = ({ component: t, $setting: e, $props: i }) => { + const [r, n] = A(), [o, a] = nr(i); return U(() => { - if (!t) return n(m(Qi, { description: null })); - pe.getWidgetComponent(t).catch((s) => ({ default: () => `${s}` })).then((s) => $.createElement(s.default, { $setting: e })).then(n); - }, [t]), r ? $.cloneElement(r, { ...o, $setProps: a }) : null; -}, Oo = () => "NotFoundPage"; -var Fe, de, je, Ce, st, lt; -const we = class we { + if (!t) return n(m(Zi, { description: null })); + pe.getWidgetComponent(t).catch((s) => ({ default: () => `${s}` })).then((s) => E.createElement(s.default, { $setting: e })).then(n); + }, [t]), r ? E.cloneElement(r, { ...o, $setProps: a }) : null; +}, To = () => "NotFoundPage"; +var je, de, Ae, ke, st, lt; +const be = class be { constructor() { v(this, de, /* @__PURE__ */ new Map()); - v(this, je, {}); - v(this, Ce, null); + v(this, Ae, {}); + v(this, ke, null); T(this, "init", (e, i) => { - q(this, de, e), q(this, je, i); + q(this, de, e), q(this, Ae, i); }); T(this, "get", (e) => (c(this, de).has(e) || (e = Array.from(c(this, de).keys()).find((i) => c(this, de).get(i).uri === e)), c(this, de).get(e) || {})); T(this, "redirect", (e, i, r = {}) => { var y; const { uri: n, type: o, widgetProps: a } = this.get(e) || {}, { router: s, query: l, ...d } = i || {}, u = Object.assign({}, d, s), p = Object.assign({}, d, l); - o == "list" && (u.base62params = W.encode(u != null && u.base62params ? u.base62params : u)); + o == "list" && (u.base62params = z.encode(u != null && u.base62params ? u.base62params : u)); let h = Br(n || e, u); const g = new URLSearchParams(); for (const w in a || {}) ((y = a[w]) == null ? void 0 : y.type) == "query" && Object.has(p, w) && g.append(w, JSON.stringify(p[w])); - return g.size > 0 && (h = `${h}?${g.toString()}`), r != null && r.isOpenWindow ? window.open(h) : c(this, Ce).navigate(h, { replace: !!(r != null && r.isReplaceRouteHistory) }); + return g.size > 0 && (h = `${h}?${g.toString()}`), r != null && r.isOpenWindow ? window.open(h) : c(this, ke).navigate(h, { replace: !!(r != null && r.isReplaceRouteHistory) }); }); T(this, "getMenus", (e) => { var i; - return ((i = c(this, je)) == null ? void 0 : i[e]) || []; + return ((i = c(this, Ae)) == null ? void 0 : i[e]) || []; }); T(this, "findMenuPathByUuid", (e) => { let i = []; - for (const r in c(this, je)) if (i = c(this, st).call(this, c(this, je)[r], e, [r]), i.length > 1) return i; + for (const r in c(this, Ae)) if (i = c(this, st).call(this, c(this, Ae)[r], e, [r]), i.length > 1) return i; return i; }); - T(this, "getMenusByRouteUuid", (e) => c(this, lt).call(this, e, Object.values(c(this, je)).flat())); + T(this, "getMenusByRouteUuid", (e) => c(this, lt).call(this, e, Object.values(c(this, Ae)).flat())); v(this, st, (e, i, r = []) => { if (f.isEmpty(e)) return r; for (const { uuid: n, children: o } of e) { @@ -527,14 +529,14 @@ const we = class we { }); T(this, "getCurrentRoute", (e = 0) => { var r; - const i = (r = c(this, Ce).state.matches[c(this, Ce).state.matches.length - 1 - e]) == null ? void 0 : r.route; + const i = (r = c(this, ke).state.matches[c(this, ke).state.matches.length - 1 - e]) == null ? void 0 : r.route; if (!i) return null; for (let [n, o] of c(this, de)) if (o.uri === i.path) return o; return null; }); T(this, "getPageParams", (e) => { var a, s; - const { location: i = {}, matches: r = [] } = ((a = c(this, Ce)) == null ? void 0 : a.state) || {}, n = { ...((s = r[r.length - 1]) == null ? void 0 : s.params) || {} }, o = i.search; + const { location: i = {}, matches: r = [] } = ((a = c(this, ke)) == null ? void 0 : a.state) || {}, n = { ...((s = r[r.length - 1]) == null ? void 0 : s.params) || {} }, o = i.search; return o && new URLSearchParams(o).forEach((l, d) => { n[d] = l; }), e ? f.get(n, e) : n; @@ -546,35 +548,35 @@ const we = class we { }); T(this, "createBrowserRouter", (e = {}) => { if (c(this, de).size == 0) return null; - if (c(this, Ce)) return c(this, Ce); + if (c(this, ke)) return c(this, ke); const i = qe.get("Common.WEBSITE_DEFAULT_THEME", "@pkg/ff/frameworks/DefaultTheme"), r = qe.get(pe.checkUserToken() ? "Common.WEBSITE_LOGIN_REDIRECT" : "Common.WEBSITE_DEFAULT", "/index"), n = { [i]: 0 }, o = (s, l) => () => Promise.all([pe.getWidgetComponent(s), Tt(l)]).then(([d, u]) => [d.default || function() { return `${s}`; - }, u]).then(([d, u]) => ({ Component: () => $.createElement(Vi, {}, $.createElement(d, { $setting: u })) })), a = Array.from(c(this, de).values()).reduce((s, { uuid: l, uri: d, name: u, type: p, component: h, widgetSetting: g, widgetProps: y, isLogin: w, isLayout: b, extra: S }) => { + }, u]).then(([d, u]) => ({ Component: () => E.createElement(Vi, {}, E.createElement(d, { $setting: u })) })), a = Array.from(c(this, de).values()).reduce((s, { uuid: l, uri: d, name: u, type: p, component: h, widgetSetting: g, widgetProps: y, isLogin: w, isLayout: C, extra: S }) => { let P = {}, k = 0; switch (p) { case "list": - P.element = $.createElement(Cn, { component: h, $props: y }); + P.element = E.createElement(bn, { component: h, $props: y }); break; case "fsdpf-component": - P.element = $.createElement(kn, { key: h, component: h, $setting: g, $props: y }); + P.element = E.createElement(Cn, { key: h, component: h, $setting: g, $props: y }); } - const E = (S == null ? void 0 : S.theme) ?? (S == null ? void 0 : S.layout); - if (E) { + const $ = (S == null ? void 0 : S.theme) ?? (S == null ? void 0 : S.layout); + if ($) { const R = (S == null ? void 0 : S.themeProps) ?? (S == null ? void 0 : S.layoutProps); - if (!n[E]) return n[E] = s.length, [...s, { path: "/", lazy: o(E, R), children: [{ path: d, ...P }] }]; - k = n[E]; + if (!n[$]) return n[$] = s.length, [...s, { path: "/", lazy: o($, R), children: [{ path: d, ...P }] }]; + k = n[$]; } - return b && k > -1 ? (s[k].children.push({ path: d, ...P }), s) : [...s, { path: d, ...P }]; + return C && k > -1 ? (s[k].children.push({ path: d, ...P }), s) : [...s, { path: d, ...P }]; }, [{ path: "/", lazy: o(i, {}), children: [] }]); - return a.push({ index: !0, element: $.createElement(Sn, { to: r, replace: !0 }) }), q(this, Ce, Kr(a, e)); + return a.push({ index: !0, element: E.createElement(kn, { to: r, replace: !0 }) }), q(this, ke, Kr(a, e)); }); - if (c(we, Fe)) return c(we, Fe); + if (c(be, je)) return c(be, je); } }; -Fe = new WeakMap(), de = new WeakMap(), je = new WeakMap(), Ce = new WeakMap(), st = new WeakMap(), lt = new WeakMap(), v(we, Fe, null), T(we, "getInstance", () => (c(we, Fe) || q(we, Fe, new we()), c(we, Fe))); -let Ht = we; -const Sn = ({ to: t, replace: e }) => Ii() ? $.createElement(Hr, { to: t, replace: e }) : (window.document.location = t, "redirect"), ne = Ht.getInstance(), Ke = new Worker(new URL("/ff-worker/index.js", self.location)), Si = { getConfigure: (t) => qe.get(t), route: { redirect: (...t) => ne.redirect(...t), getPageParams: (...t) => ne.getPageParams(...t), getCurrentRoute: () => ne.getCurrentRoute() }, popup: { notification: (...t) => re.notification(...t), success: (...t) => re.success(...t), error: (...t) => re.error(...t), form: (...t) => re.form(...t), modal: (...t) => re.modal(...t), confirm: (...t) => re.confirm(...t) } }; -var xt, Ye, Ae; +je = new WeakMap(), de = new WeakMap(), Ae = new WeakMap(), ke = new WeakMap(), st = new WeakMap(), lt = new WeakMap(), v(be, je, null), T(be, "getInstance", () => (c(be, je) || q(be, je, new be()), c(be, je))); +let Ht = be; +const kn = ({ to: t, replace: e }) => Ii() ? E.createElement(Hr, { to: t, replace: e }) : (window.document.location = t, "redirect"), ne = Ht.getInstance(), Ke = new Worker(new URL("/ff-worker/index.js", self.location)), Si = { getConfigure: (t) => qe.get(t), route: { redirect: (...t) => ne.redirect(...t), getPageParams: (...t) => ne.getPageParams(...t), getCurrentRoute: () => ne.getCurrentRoute() }, popup: { notification: (...t) => re.notification(...t), success: (...t) => re.success(...t), error: (...t) => re.error(...t), form: (...t) => re.form(...t), modal: (...t) => re.modal(...t), confirm: (...t) => re.confirm(...t) } }; +var xt, Ye, Le; const H = class H { constructor() { T(this, "exec", (e, i = {}, r = {}, n = "") => new Promise((o, a) => { @@ -583,8 +585,8 @@ const H = class H { c(H, Ye).set(s, r), H.mQueue.set(s, [o, a]), Ke.postMessage({ id: s, session: n, category: "eval", method: e, args: i }); })); T(this, "clear", (e) => Ke.postMessage({ session: e, category: "clear" })); - if (c(H, Ae)) return c(H, Ae); - Promise.resolve().then(() => eo).then((e) => { + if (c(H, Le)) return c(H, Le); + Promise.resolve().then(() => Zn).then((e) => { Si.http = e.http; }), Ke.addEventListener("message", ({ data: { id: e, task_id: i, method: r, args: n, category: o, data: a, error: s, session: l } }) => { if (o === "eval" && H.mQueue.has(e)) s !== null ? H.mQueue.get(e)[1](s) : H.mQueue.get(e)[0](a), c(H, Ye).delete(e), H.mQueue.delete(e); @@ -602,9 +604,9 @@ const H = class H { }, !1); } }; -xt = new WeakMap(), Ye = new WeakMap(), Ae = new WeakMap(), T(H, "mQueue", /* @__PURE__ */ new Map()), v(H, xt, 0), v(H, Ye, /* @__PURE__ */ new Map()), v(H, Ae, null), T(H, "getInstance", () => (c(H, Ae) || q(H, Ae, new H()), c(H, Ae))); +xt = new WeakMap(), Ye = new WeakMap(), Le = new WeakMap(), T(H, "mQueue", /* @__PURE__ */ new Map()), v(H, xt, 0), v(H, Ye, /* @__PURE__ */ new Map()), v(H, Le, null), T(H, "getInstance", () => (c(H, Le) || q(H, Le, new H()), c(H, Le))); let Jt = H; -const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2array: (t) => [], null2number: (t) => 0, null2bool: (t) => !1, null2string: (t) => "", null2integer: (t) => 0, null2float: (t) => 0, string2json: (t) => t ? JSON.parse(t) : "{}", string2array: (t) => t.substr(0, 1) === "[" && t.substr(-1) === "]" ? JSON.parse(t) : t.split(","), string2number: (t) => t == "" ? 0 : +t, string2integer: (t) => t == "" ? 0 : +t, string2float: (t) => t == "" ? 0 : +t, string2bool: (t) => { +const Me = Jt.getInstance(), Ei = { null2json: (t) => Object.create(), null2array: (t) => [], null2number: (t) => 0, null2bool: (t) => !1, null2string: (t) => "", null2integer: (t) => 0, null2float: (t) => 0, string2json: (t) => t ? JSON.parse(t) : "{}", string2array: (t) => t.substr(0, 1) === "[" && t.substr(-1) === "]" ? JSON.parse(t) : t.split(","), string2number: (t) => t == "" ? 0 : +t, string2integer: (t) => t == "" ? 0 : +t, string2float: (t) => t == "" ? 0 : +t, string2bool: (t) => { switch (`${t}`.toLowerCase()) { case "0": case "false": @@ -617,8 +619,8 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra let i = "string"; i = Array.isArray(t) ? "array" : typeof t, f.isObject(t) && (i = "json"); const r = `${i}2${e}`; - return Reflect.has($i, r) ? $i[r](t) : t; -}, $n = (t) => t === null ? "null" : Array.isArray(t) ? "array" : typeof t == "object" ? "json" : typeof t == "boolean" ? "bool" : typeof t == "string" ? "string" : typeof t == "number" ? Number.isInteger(t) ? "integer" : "float" : typeof t, Tt = (t = {}, e = {}, i = {}, r = "") => Zi(t, (n, o) => o === "type" && n === "code") ? er(t, e, i, r) : tr(t, e, r), Zi = (t, e = () => !1) => f.some(t, (i) => !!f.some(i, e) || (f.isEmpty(i) || !f.isPlainObject(i) && !f.isArray(i) ? void 0 : Zi(i, e))), er = async (t = {}, e = {}, i = {}, r = "") => { + return Reflect.has(Ei, r) ? Ei[r](t) : t; +}, Sn = (t) => t === null ? "null" : Array.isArray(t) ? "array" : typeof t == "object" ? "json" : typeof t == "boolean" ? "bool" : typeof t == "string" ? "string" : typeof t == "number" ? Number.isInteger(t) ? "integer" : "float" : typeof t, Tt = (t = {}, e = {}, i = {}, r = "") => er(t, (n, o) => o === "type" && n === "code") ? tr(t, e, i, r) : ir(t, e, r), er = (t, e = () => !1) => f.some(t, (i) => !!f.some(i, e) || (f.isEmpty(i) || !f.isPlainObject(i) && !f.isArray(i) ? void 0 : er(i, e))), tr = async (t = {}, e = {}, i = {}, r = "") => { let n = /* @__PURE__ */ Object.create(null); for (let o in t) { let a; @@ -627,7 +629,7 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra switch (s) { case "code": try { - a = await Ie.exec(l, e, i); + a = await Me.exec(l, e, i); } catch (u) { console.error("getWidgetPropsData", u); } @@ -643,11 +645,11 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra a = l; } a ?? (a = d); - } else a = await er(t[o], e, i, r); + } else a = await tr(t[o], e, i, r); f.set(n, o, a); } return n; -}, tr = (t = {}, e = {}, i = "") => Object.keys(t || {}).reduce((r, n) => { +}, ir = (t = {}, e = {}, i = "") => Object.keys(t || {}).reduce((r, n) => { if (f.isPlainObject(t[n])) { let o; if (Reflect.has(t[n], "type") && ["field", "router", "query", "string"].includes(t[n].type)) { @@ -664,20 +666,20 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra o = s; } o ?? (o = l); - } else o = tr(t[n], e, i); + } else o = ir(t[n], e, i); f.set(r, n, o); } return r; -}, {}), It = (t, e) => t && typeof t == "object" ? Array.isArray(t) ? t.map((i) => It(i, e)) : Object.keys(t).reduce((i, r) => (e[r] ? i[e[r]] = It(t[r], e) : i[r] = It(t[r], e), i), {}) : t, Ro = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => { +}, {}), It = (t, e) => t && typeof t == "object" ? Array.isArray(t) ? t.map((i) => It(i, e)) : Object.keys(t).reduce((i, r) => (e[r] ? i[e[r]] = It(t[r], e) : i[r] = It(t[r], e), i), {}) : t, Oo = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => { const e = 16 * Math.random() | 0; return (t === "x" ? e : 3 & e | 8).toString(16); -}), Fo = (t) => { +}), Ro = (t) => { var e, i; return t ? (i = (e = t.match(/^@pkg(?:[^\/]*\/){3}(?[^\/]+)/)) == null ? void 0 : e.groups) == null ? void 0 : i.name : ""; -}, jo = (t) => { +}, Fo = (t) => { var e, i; return t ? (i = (e = t.match(/^@pkg(?:[^\/]*\/){2}(?[^\/]+)/)) == null ? void 0 : e.groups) == null ? void 0 : i.category : ""; -}, Ao = (t) => { +}, jo = (t) => { var e, i; return t ? (i = (e = t.match(/^@pkg(?:[^\/]*\/){1}(?[^\/]+)/)) == null ? void 0 : e.groups) == null ? void 0 : i.owner : ""; }, En = (t, e = 32, i = "auto") => { @@ -685,14 +687,14 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra if (e === 32) return Lt.x86.hash32(r).toString(); if (e === 128) return n === "x64" ? Lt.x64.hash128(r) : Lt.x86.hash128(r); throw new Error("bits 只能是 32 或 128"); -}, _t = (t) => t == null ? "null" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : typeof t == "function" ? t.toString() : Array.isArray(t) ? "[" + t.map(_t).join(",") + "]" : typeof t == "object" ? "{" + Object.keys(t).sort().map((e) => `${e}:${_t(t[e])}`).join(",") + "}" : String(t), Pn = () => { +}, _t = (t) => t == null ? "null" : typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" ? String(t) : typeof t == "function" ? t.toString() : Array.isArray(t) ? "[" + t.map(_t).join(",") + "]" : typeof t == "object" ? "{" + Object.keys(t).sort().map((e) => `${e}:${_t(t[e])}`).join(",") + "}" : String(t), $n = () => { let t = 1; const e = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map(); return (...r) => r.length === 0 ? "" : r.map((n) => { return String((o = n) === null || typeof o != "object" && typeof o != "function" ? (i.has(o) || i.set(o, t++), i.get(o)) : (e.has(o) || e.set(o, t++), e.get(o))); var o; }).join("::"); -}, vn = (t) => { +}, Pn = (t) => { if (!t || typeof t != "string" || t.startsWith("/") || t.startsWith("./") || t.startsWith("../")) return !1; try { let e = t.startsWith("//") ? `http:${t}` : t; @@ -700,14 +702,14 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra } catch { return !1; } -}, Lo = (t, e = "") => { - if (!t || typeof t != "string" || vn(t)) return t; +}, Ao = (t, e = "") => { + if (!t || typeof t != "string" || Pn(t)) return t; let i = e; return !i && typeof window < "u" && window.location && (i = `${window.location.protocol}//${window.location.host}`), t.startsWith("/") ? i ? `${i}${t}` : t : i ? `${i}/${t}` : t; }, Ot = () => { - const t = J(!0), [, e] = $.useReducer((i) => i + 1, 0); + const t = J(!0), [, e] = E.useReducer((i) => i + 1, 0); return U(() => () => t.current = !1, []), () => t.current && e(); -}, Io = (t) => { +}, Lo = (t) => { const [e, i] = A(t), r = J(null), n = _((o, a) => { r.current = a, i(o); }, []); @@ -716,31 +718,31 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra }, [e]), [e, n]; }, mt = (t = (r) => { }, e, i = f.isEqual) => { - const r = $.useRef(); - i(e, r.current) || (r.current = f.cloneDeep(e)), $.useEffect(t, [r.current]); -}, ft = mt, ir = (t, e = "string") => { + const r = E.useRef(); + i(e, r.current) || (r.current = f.cloneDeep(e)), E.useEffect(t, [r.current]); +}, ft = mt, rr = (t, e = "string") => { var i; if (!Array.isArray(t)) return t; - for (let r = 0; r < t.length; r++) t[r].value = ue((i = t[r]) == null ? void 0 : i.value, e), t[r] && Reflect.has(t[r], "children") && (t[r].children = ir(t[r].children, e)); + for (let r = 0; r < t.length; r++) t[r].value = ue((i = t[r]) == null ? void 0 : i.value, e), t[r] && Reflect.has(t[r], "children") && (t[r].children = rr(t[r].children, e)); return t; -}, Mo = (t, e = "json", i = "string", r, n = null) => { +}, Io = (t, e = "json", i = "string", r, n = null) => { const [o] = oe.useForm(r), [a, s] = A([{ label: "无", value: "", disabled: !0 }]), l = J([]), d = oe.useWatch((u) => l.current.length === 0 ? null : f.pick(u, l.current), o) || null; return U(() => { - Array.isArray(t) ? s(t) : e === "javascript" && t ? Ie.exec(t, {}, { getFieldValue: (u) => (l.current.includes(u) || l.current.push(u), o.getFieldValue(u)), getFieldValueForBasicForm: (u) => (l.current.includes(u) || l.current.push(u), n ? n.getFieldValue(u) : o.getFieldValue(u)) }).then((u) => { + Array.isArray(t) ? s(t) : e === "javascript" && t ? Me.exec(t, {}, { getFieldValue: (u) => (l.current.includes(u) || l.current.push(u), o.getFieldValue(u)), getFieldValueForBasicForm: (u) => (l.current.includes(u) || l.current.push(u), n ? n.getFieldValue(u) : o.getFieldValue(u)) }).then((u) => { s(ue(u, "array")); }).catch((u) => console.error("useOptions", u)) : t && s(ue(t, "array")); - }, [t, e, d]), ir(a, i); -}, Vo = (t) => { + }, [t, e, d]), rr(a, i); +}, Mo = (t) => { const [e, i] = A(), r = { type: "GET" }; if (typeof t == "string" ? r.url = t : f.isPlainObject(t) && Object.assign(r, t), !(r != null && r.url)) throw "url is required"; - const n = (o) => W.request(r, !1).resp((a) => (console.log("useSubscribeRequest", o), i(a), a)); + const n = (o) => z.request(r, !1).resp((a) => (console.log("useSubscribeRequest", o), i(a), a)); return mt(() => { let o = null; return n().then((a) => { - o = Ji.subscribe(f.throttle(n, 180, { leading: !1, trailing: !0 }), a.res); + o = _i.subscribe(f.throttle(n, 180, { leading: !1, trailing: !0 }), a.res); }), () => o == null ? void 0 : o(); }, r), e; -}, xn = (t, e) => _((i) => { +}, vn = (t, e) => _((i) => { const r = {}; for (const [n, o] of Object.entries(i)) { const a = t == null ? void 0 : t[n]; @@ -750,7 +752,7 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra } else r[n] = o; } Object.keys(r).length > 0 && e(r); -}, [t, e]), rr = (t, e = {}, i = {}, r = []) => { +}, [t, e]), nr = (t, e = {}, i = {}, r = []) => { const [n, o] = A({}), [a, s] = A({}), l = ji(a), d = ne.usePageParams(); Ai(() => { Promise.resolve(Tt(t, e, i)).then(s); @@ -758,19 +760,19 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra const h = l ?? {}, g = Object.keys({ ...h, ...a }).reduce((y, w) => (h[w] !== a[w] && (y[w] = a[w]), y), {}); Object.keys(g).length > 0 && o((y) => ({ ...y, ...g })); }, [a]); - const u = xn(t, (h) => { + const u = vn(t, (h) => { o((g) => ({ ...g, ...h })); }), p = K(() => Object.fromEntries(Object.entries(n).filter(([h, g]) => g !== a[h])), [n, a]); return [n, u, p]; -}, Nn = (t) => { - const [e, i] = $.useState({ items: [], hides: [] }); - return $.useEffect(() => { - t && W.get(`/api/_/${t}`).then(({ pk: r, uuid: n, code: o, resource: a, align: s, cols: l, rowHeight: d, marginX: u, marginY: p, listenChangeFields: h, listenChangeFieldsFunc: g, fields: y, theme: w, themeSetting: b, groups: S }) => ({ pk: r, uuid: n, code: o, resource: a, align: s, cols: l, rowHeight: d, marginX: u, marginY: p, theme: w, themeProps: b, groups: S, listenChangeFields: h, listenChangeFieldsFunc: g, ...y.reduce((P, k) => { - var E; - return (E = k == null ? void 0 : k.field) != null && E.hidden ? P.hides.push(k == null ? void 0 : k.field) : P.items.push(k), P; +}, xn = (t) => { + const [e, i] = E.useState({ items: [], hides: [] }); + return E.useEffect(() => { + t && z.get(`/api/_/${t}`).then(({ pk: r, uuid: n, code: o, resource: a, align: s, cols: l, rowHeight: d, marginX: u, marginY: p, listenChangeFields: h, listenChangeFieldsFunc: g, fields: y, theme: w, themeSetting: C, groups: S }) => ({ pk: r, uuid: n, code: o, resource: a, align: s, cols: l, rowHeight: d, marginX: u, marginY: p, theme: w, themeProps: C, groups: S, listenChangeFields: h, listenChangeFieldsFunc: g, ...y.reduce((P, k) => { + var $; + return ($ = k == null ? void 0 : k.field) != null && $.hidden ? P.hides.push(k == null ? void 0 : k.field) : P.items.push(k), P; }, { items: [], hides: [] }) })).then(i); }, [t]), e; -}, Tn = ({ max: t = 0, min: e = 0, type: i = "", message: r, pattern: n, required: o = !1, validator: a } = {}, s, l) => { +}, Nn = ({ max: t = 0, min: e = 0, type: i = "", message: r, pattern: n, required: o = !1, validator: a } = {}, s, l) => { const [d, u] = A([]); return U(() => { const p = []; @@ -798,96 +800,96 @@ const Ie = Jt.getInstance(), $i = { null2json: (t) => Object.create(), null2arra break; case "validator": a && p.push(({ getFieldValue: h }) => ({ validator: async (g, y) => { - const w = await Ie.exec(a, { value: y, fieldName: s }, { getFieldValue: h }); + const w = await Me.exec(a, { value: y, fieldName: s }, { getFieldValue: h }); return f.isString(w) && w ? Promise.reject(w) : f.isBoolean(w) && !w ? Promise.reject(r) : Promise.resolve(); } })); } u(p); }, [t, e, i, r, n, o, a]), d; -}, On = (t, e, i) => { +}, Tn = (t, e, i) => { const [r, n] = A(null); return U(() => { const { initDataUri: o = `/api/${t}`, initDataMethod: a = "GET" } = i || {}; - e && W.request({ method: a, url: f.trimEnd(`${o}/${e}`, "/") }).then((s) => { + e && z.request({ method: a, url: f.trimEnd(`${o}/${e}`, "/") }).then((s) => { n(s); }); }, [t, e, i]), r; -}, Rn = (t, e, i) => _((r, n = { serialize: (o) => o, onSuccess: () => { +}, On = (t, e, i) => _((r, n = { serialize: (o) => o, onSuccess: () => { }, onFail: (o) => (o == null ? void 0 : o.errorFields) && re.error("请先完善表单信息", { duration: 2e3 }) }) => { const o = r.getFieldValue("__RESOURCE__"), { submitDataUri: a = `/api/${t}`, submitDataMethod: s = "POST" } = i || {}; - return r.validateFields().then((l) => o ? f.pick(l, [o]) : l).then(n.serialize).then((l) => W.request({ method: s, url: f.trimEnd(`${a}/${e || ""}`, "/"), data: l }).msg(n.onSuccess)).catch(n.onFail); -}, [t, e, i]), Fn = (t, e, i, r) => { - const n = On(e, i, r); + return r.validateFields().then((l) => o ? f.pick(l, [o]) : l).then(n.serialize).then((l) => z.request({ method: s, url: f.trimEnd(`${a}/${e || ""}`, "/"), data: l }).msg(n.onSuccess)).catch(n.onFail); +}, [t, e, i]), Rn = (t, e, i, r) => { + const n = Tn(e, i, r); U(() => { n ? t.setFieldsValue(n) : t.resetFields(); }, [t, n]); - const o = Rn(e, i, r); + const o = On(e, i, r); return f.partial(o, t); -}, jn = (t, e, i = [], r = {}) => { +}, Fn = (t, e, i = [], r = {}) => { const n = J({}), o = J(), a = f.debounce(Ot(), 180), s = ["disabled", "required"], l = (h, g) => { s.includes(h) && (n.current[h] = g), a(); - }, d = K(() => ({ setDisabled: (h) => l("disabled", h), setRequired: (h) => l("required", h), getDisabled: () => n.current.disabled, getRequired: () => n.current.required }), [e]), [u, p] = Gi(e, -1, {}, d, r); + }, d = K(() => ({ setDisabled: (h) => l("disabled", h), setRequired: (h) => l("required", h), getDisabled: () => n.current.disabled, getRequired: () => n.current.required }), [e]), [u, p] = Yi(e, -1, {}, d, r); if (!p && o.current != u && (u >= 0 || !f.isEmpty(i == null ? void 0 : i[u]))) { o.current = u; const { widget: h, widgetPrefix: g, props: y } = i == null ? void 0 : i[u]; t = Wi(h, g), n.current = f.merge(y, f.pick(n.current, s)); } return [t, n.current]; -}, Ei = (t) => t === void 0 || t === !1 ? "" : (Array.isArray(t) ? t : [t]).join("_"), Do = ({ value: t, onChange: e }, i = null) => { +}, $i = (t) => t === void 0 || t === !1 ? "" : (Array.isArray(t) ? t : [t]).join("_"), Vo = ({ value: t, onChange: e }, i = null) => { const r = J(), [n] = oe.useForm(i), o = J({}); return ft(() => { f.isEqual(r.current, t) || n.setFieldsValue(t); }, [t]), U(() => () => n.resetFields(), []), [K(() => n.__INTERNAL__ ? n : { ...n, __INTERNAL__: { itemRef: (a) => (s) => { - const l = Ei(a); + const l = $i(a); s ? o.current[l] = s : delete o.current[l]; } }, scrollToField: (a, s = {}) => { console.warn("useMergedFormValuesChange scrollToField not work, unreferenced antd form"); }, focusField: (a) => { console.warn("useMergedFormValuesChange focusField not work, unreferenced antd form"); }, getFieldInstance: (a) => { - const s = Ei(a); + const s = $i(a); return o.current[s]; } }, [n]), (a, s) => { r.current = s, e == null || e(s); }]; }, ii = ({ widget: t = "Input", widgetPrefix: e = "@pkg/ff/grid-layout-forms", widgetDecorator: i, subWidgets: r = [], basicForm: n, ...o }) => { - const a = Wi(t, e), [s, l] = jn(a, i, r, n), [d, u] = A(); + const a = Wi(t, e), [s, l] = Fn(a, i, r, n), [d, u] = A(); return U(() => { - s && pe.getWidgetComponent(s).then(({ defaultProps: p = {}, default: h }) => ({ default: An(h, p, n) })).catch((p) => ({ default: () => `${p}` })).then((p) => u($.createElement(p.default, o))); - }, [s]), d && $.cloneElement(d, { ...o, ...l }); -}, An = (t, e = {}, i = null) => (r) => { - const { type: n, code: o, label: a, noStyle: s, style: l, placeholder: d, required: u = !1, extras: p, validators: h, help: g, isVirtual: y, $isReserved: w, initialValue: b, initialValueLanguage: S, ...P } = f.omit(f.merge({}, e, r), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), k = Tn(Object.assign({}, h, u ? { required: !0 } : {}), o, n), E = K(() => { + s && pe.getWidgetComponent(s).then(({ defaultProps: p = {}, default: h }) => ({ default: jn(h, p, n) })).catch((p) => ({ default: () => `${p}` })).then((p) => u(E.createElement(p.default, o))); + }, [s]), d && E.cloneElement(d, { ...o, ...l }); +}, jn = (t, e = {}, i = null) => (r) => { + const { type: n, code: o, label: a, noStyle: s, style: l, placeholder: d, required: u = !1, extras: p, validators: h, help: g, isVirtual: y, $isReserved: w, initialValue: C, initialValueLanguage: S, ...P } = f.omit(f.merge({}, e, r), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), k = Nn(Object.assign({}, h, u ? { required: !0 } : {}), o, n), $ = K(() => { const V = Object.keys((e == null ? void 0 : e.extras) || {}); return f.over([f.partialRight(f.pick, V), f.partialRight(f.omit, V)]); - }, [e == null ? void 0 : e.extras]), [R, L] = E(P), x = { label: a, noStyle: s, style: l, colon: !1, layout: "vertical" }, j = _((V) => V == null ? void 0 : ue(V, n), [n]); - return m(Qt, { name: o, rules: k, initialValue: j(b), normalize: j, children: (V, N, M) => { - var B; - return m(t, { type: n, rcform: M, basicForm: i, itemProps: { validateStatus: N.errors.length > 0 ? "error" : "success", tooltip: g || null, help: N.errors.length > 0 ? N.errors.join("、") : null, required: ((B = k == null ? void 0 : k[0]) == null ? void 0 : B.required) || !1, ...x }, fieldProps: { placeholder: d, ...L, ...V }, $setting: Object.assign({}, p, R) }); + }, [e == null ? void 0 : e.extras]), [R, L] = $(P), x = { label: a, noStyle: s, style: l, colon: !1, layout: "vertical" }, j = _((V) => V == null ? void 0 : ue(V, n), [n]); + return m(Qt, { name: o, rules: k, initialValue: j(C), normalize: j, children: (V, N, M) => { + var D; + return m(t, { type: n, rcform: M, basicForm: i, itemProps: { validateStatus: N.errors.length > 0 ? "error" : "success", tooltip: g || null, help: N.errors.length > 0 ? N.errors.join("、") : null, required: ((D = k == null ? void 0 : k[0]) == null ? void 0 : D.required) || !1, ...x }, fieldProps: { placeholder: d, ...L, ...V }, $setting: Object.assign({}, p, R) }); } }); -}, ri = ({ name: t, form: e = null, basicForm: i = null, style: r = {}, className: n, cols: o = 24, rowHeight: a = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: d = [], hides: u = [], primaryKey: p = 0, formProps: h = {}, formFields: g = [], listenChangeFields: y, listenChangeFieldsFunc: w, onValuesChange: b, theme: S, themeProps: P = {}, groups: k = [{ key: "default", label: "默认" }], children: E, ...R }) => { +}, ri = ({ name: t, form: e = null, basicForm: i = null, style: r = {}, className: n, cols: o = 24, rowHeight: a = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: d = [], hides: u = [], primaryKey: p = 0, formProps: h = {}, formFields: g = [], listenChangeFields: y, listenChangeFieldsFunc: w, onValuesChange: C, theme: S, themeProps: P = {}, groups: k = [{ key: "default", label: "默认" }], children: $, ...R }) => { const [L] = oe.useForm(e), x = _((N, M) => { - b == null || b(N, M), w && Array.isArray(y) && Ie.exec(w, { changedValues: N, allValues: M }, { getFieldValue: L.getFieldValue, setFieldValue: L.setFieldValue, setFieldsValue: L.setFieldsValue, isFieldTouched: L.isFieldTouched, isFieldsTouched: L.isFieldsTouched }).catch((B) => console.error("onFormValuesChange", t, B)); - }, [t, L, b, y, w]), j = K(() => [{ name: "__PROPS__", value: h }, { name: "__PRIMARY_KEY__", value: p }].concat(g), [p, h, g]), V = (N, M, B) => { - const z = ei(M, ii, i), le = qi(R); - return I("div", { ...le, className: F("ff-grid-layout-form", n), style: { ...r, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": o, "--grid-layout-row-height": `${a}px` }, children: [z, B && $.cloneElement(B, { cols: o, rowHeight: a, itemMargin: s, containerPadding: l, fields: M, basicForm: i })] }); + C == null || C(N, M), w && Array.isArray(y) && Me.exec(w, { changedValues: N, allValues: M }, { getFieldValue: L.getFieldValue, setFieldValue: L.setFieldValue, setFieldsValue: L.setFieldsValue, isFieldTouched: L.isFieldTouched, isFieldsTouched: L.isFieldsTouched }).catch((D) => console.error("onFormValuesChange", t, D)); + }, [t, L, C, y, w]), j = K(() => [{ name: "__PROPS__", value: h }, { name: "__PRIMARY_KEY__", value: p }].concat(g), [p, h, g]), V = (N, M, D) => { + const W = ei(M, ii, i), he = Ki(R); + return I("div", { ...he, className: F("ff-grid-layout-form", n), style: { ...r, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": o, "--grid-layout-row-height": `${a}px` }, children: [W, D && E.cloneElement(D, { cols: o, rowHeight: a, itemMargin: s, containerPadding: l, fields: M, basicForm: i })] }); }; - return I(oe, { ...R, form: L, fields: j, onValuesChange: x, children: [S ? m(Yi, { ...P, items: k, theme: S, itemRender: V, fields: d, children: E, basicForm: i }) : V(0, d, E), u == null ? void 0 : u.map((N) => { + return I(oe, { ...R, form: L, fields: j, onValuesChange: x, children: [S ? m(Xi, { ...P, items: k, theme: S, itemRender: V, fields: d, children: $, basicForm: i }) : V(0, d, $), u == null ? void 0 : u.map((N) => { var M; - return m(Qt, { name: N.code, children: m(Ln, { form: L, basicForm: i, name: N.code, type: N.type, initialValue: N.initialValue, initialValueLanguage: (M = N.extras) == null ? void 0 : M.initialValueLanguage }) }, JSON.stringify(N.code)); + return m(Qt, { name: N.code, children: m(An, { form: L, basicForm: i, name: N.code, type: N.type, initialValue: N.initialValue, initialValueLanguage: (M = N.extras) == null ? void 0 : M.initialValueLanguage }) }, JSON.stringify(N.code)); })] }); -}, Ln = ({ type: t, initialValue: e, initialValueLanguage: i, onChange: r, basicForm: n }) => { - const [o, a] = Gi(i == "javascript" && e, i == "javascript" ? void 0 : e, {}, {}, n); +}, An = ({ type: t, initialValue: e, initialValueLanguage: i, onChange: r, basicForm: n }) => { + const [o, a] = Yi(i == "javascript" && e, i == "javascript" ? void 0 : e, {}, {}, n); return U(() => { i == "javascript" ? r(ue(o, t)) : e && r(ue(e, t)); }, [t, e, o]), null; }; -ri.propTypes = { fields: C.array, hides: C.array }; -const In = /* @__PURE__ */ ((t) => ({ code: e, isPreview: i = !1, ...r }) => { - const { align: n, autoComplete: o, resource: a, items: s, hides: l, rowHeight: d, marginX: u, marginY: p, cols: h, listenChangeFields: g, listenChangeFieldsFunc: y, pk: w, uuid: b, theme: S, themeProps: P, groups: k } = Nn(e), E = K(() => [{ name: "__PK__", value: w }, { name: "__RESOURCE__", value: a }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: b }], [w, e, b, a]); - return m(t, { name: e, autoComplete: o, theme: S, themeProps: P, groups: k, ...r, formFields: E, listenChangeFields: g, listenChangeFieldsFunc: y, fields: s, hides: l, cols: h, rowHeight: d, itemMargin: [u, p] }); -})(ri), nr = ({ $setting: t, $close: e, extras: i, code: r, primaryKey: n, ...o }) => { - const [a] = oe.useForm(), s = Fn(a, r, n, t); - return m(ee, { actions: I($.Fragment, { children: [m(O, { name: (t == null ? void 0 : t.okText) || "保存", type: "primary", widget: () => s({ onSuccess: e }) }), m(O, { name: (t == null ? void 0 : t.cancelText) || "取消", widget: () => e(!1) })] }), extras: i, children: m(In, { form: a, code: r, primaryKey: n, ...o }) }); +ri.propTypes = { fields: b.array, hides: b.array }; +const Ln = /* @__PURE__ */ ((t) => ({ code: e, isPreview: i = !1, ...r }) => { + const { align: n, autoComplete: o, resource: a, items: s, hides: l, rowHeight: d, marginX: u, marginY: p, cols: h, listenChangeFields: g, listenChangeFieldsFunc: y, pk: w, uuid: C, theme: S, themeProps: P, groups: k } = xn(e), $ = K(() => [{ name: "__PK__", value: w }, { name: "__RESOURCE__", value: a }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: C }], [w, e, C, a]); + return m(t, { name: e, autoComplete: o, theme: S, themeProps: P, groups: k, ...r, formFields: $, listenChangeFields: g, listenChangeFieldsFunc: y, fields: s, hides: l, cols: h, rowHeight: d, itemMargin: [u, p] }); +})(ri), or = ({ $setting: t, $close: e, extras: i, code: r, primaryKey: n, ...o }) => { + const [a] = oe.useForm(), s = Rn(a, r, n, t); + return m(ee, { actions: I(E.Fragment, { children: [m(O, { name: (t == null ? void 0 : t.okText) || "保存", type: "primary", widget: () => s({ onSuccess: e }) }), m(O, { name: (t == null ? void 0 : t.cancelText) || "取消", widget: () => e(!1) })] }), extras: i, children: m(Ln, { form: a, code: r, primaryKey: n, ...o }) }); }, Pi = /* @__PURE__ */ new Set(), Gt = (t = [], e = 0) => { const i = t[e]; if (i.length && !Pi.has(i)) { @@ -898,107 +900,107 @@ const In = /* @__PURE__ */ ((t) => ({ code: e, isPreview: i = !1, ...r }) => { Gt(t, e + 1); }), Pi.add(i), document.body.appendChild(r); } -}, $t = ({ className: t, type: e, style: i = {}, ...r }) => m("span", { role: "img", className: F("ff-iconfont", t), style: i, ...r, children: m("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: m("use", { xlinkHref: `#${e}` }) }) }); -$t.propTypes = { className: C.string, type: C.string.isRequired, style: C.object }, $t.init = Gt; -const Mn = (t, e, i, r) => ne.redirect(i, e, r), Vn = (t, e = {}, i, r = {}) => { +}, Et = ({ className: t, type: e, style: i = {}, ...r }) => m("span", { role: "img", className: F("ff-iconfont", t), style: i, ...r, children: m("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: m("use", { xlinkHref: `#${e}` }) }) }); +Et.propTypes = { className: b.string, type: b.string.isRequired, style: b.object }, Et.init = Gt; +const In = (t, e, i, r) => ne.redirect(i, e, r), Mn = (t, e = {}, i, r = {}) => { var o; const n = (o = r.router) == null ? void 0 : o.reduce((a, [s, l, d]) => { const u = f.get(e, ["router", s]); if (!u && u !== 0 && l) throw `请传入 ${d}`; return `${a}/${u}`; }, `/api/${i}`); - return W.del(n, e.param).msg(); + return z.del(n, e.param).msg(); }, vi = (t, e, i, { status: { loading: r, disabled: n }, setStatus: o, listFn: a }) => { const s = { loading: (l) => l === void 0 ? r : o((d) => ({ ...d, loading: l })), disabled: (l) => l === void 0 ? n : o((d) => ({ ...d, disabled: l })), list: a }; - return f.isFunction(i) ? i.call(null, e, s) : f.isString(i) && i ? Ie.exec(i, e, s) : null; + return f.isFunction(i) ? i.call(null, e, s) : f.isString(i) && i ? Me.exec(i, e, s) : null; }, xi = (t, e, i, r, n) => f.isString(i) && i ? pe.getWidgetComponent(i).then(({ default: o }) => re.modal(o, { ...e, $setting: r }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n)).catch((o) => { re.error(i, { content: o.toString() }); -}) : re.modal(i, { ...e, $setting: r }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), Dn = (t, e, i, r, n) => re.modal(nr, { ...e, $setting: r, code: i }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), zn = (t, e, i, r, n) => re.modal(ti, { base62params: e, $setting: r, listCode: i }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), Wn = ({ widget: t, widgetType: e, widgetData: i, widgetProps: r, widgetSetting: n, widgetContainerProps: o }, { onAfterClick: a, onBeforeClick: s } = {}) => { +}) : re.modal(i, { ...e, $setting: r }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), Vn = (t, e, i, r, n) => re.modal(or, { ...e, $setting: r, code: i }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), Dn = (t, e, i, r, n) => re.modal(ti, { base62params: e, $setting: r, listCode: i }, n != null && n.title ? { ...n, title: f.template(n.title)(t) } : n), zn = ({ widget: t, widgetType: e, widgetData: i, widgetProps: r, widgetSetting: n, widgetContainerProps: o }, { onAfterClick: a, onBeforeClick: s } = {}) => { const l = ge(se), [d, u] = A({ leading: !0, trailing: !1 }), p = K(() => { switch (e) { case "redirect": - return f.partialRight(Mn, t, n); + return f.partialRight(In, t, n); case "func": return f.partialRight(vi, (n == null ? void 0 : n.code) ?? t, { status: d, setStatus: u, listFn: l }); case "component": case "fsdpf-component": return f.partialRight(xi, t, n, o); case "grid-layout-form": - return f.partialRight(Dn, t, n, o); - case "data-list": - return f.partialRight(zn, t, n, o); - case "destroy": return f.partialRight(Vn, t, n, o); + case "data-list": + return f.partialRight(Dn, t, n, o); + case "destroy": + return f.partialRight(Mn, t, n, o); default: - if (oi(t) || $.isValidElement(t)) return f.partialRight(xi, t, n, o); + if (oi(t) || E.isValidElement(t)) return f.partialRight(xi, t, n, o); if (f.isFunction(t)) return f.partialRight(vi, (n == null ? void 0 : n.code) || t, { status: d, setStatus: u }); } return (...h) => console.error("useButton unknown widgetType", e, ...h); }, [t, e, l.getBase62params, l.getSelectedRows]); return [f.debounce((h) => (s == null || s(h), Promise.resolve(Tt(r, h, { list: l })).then((g) => p(h, { ...i, ...g })).then((g) => a == null ? void 0 : a(g)).catch(console.error)), 300, { leading: !0, trailing: !1 }), d]; -}, or = ({ type: t, name: e, className: i, icon: r, iconPosition: n, size: o }, a = "default") => K(() => { +}, ar = ({ type: t, name: e, className: i, icon: r, iconPosition: n, size: o }, a = "default") => K(() => { const s = { type: "primary", className: F("ff-button", i), iconPosition: n, size: o }; - return t === "danger" ? s.danger = !0 : t === "default" && (s.type = t), a === "link" || a === "dashed" ? (s.type = a, t === "default" && (s.className = F(s.className, "ff-default"))) : a !== "circle" && a !== "round" || (s.shape = a), r && (s.icon = m($t, { type: r })), e && (s.children = e), s; + return t === "danger" ? s.danger = !0 : t === "default" && (s.type = t), a === "link" || a === "dashed" ? (s.type = a, t === "default" && (s.className = F(s.className, "ff-default"))) : a !== "circle" && a !== "round" || (s.shape = a), r && (s.icon = m(Et, { type: r })), e && (s.children = e), s; }, [a, t, i, r, n]), Rt = ({ data: t, widget: e, widgetType: i = "fsdpf-component", widgetData: r, widgetProps: n, widgetSetting: o, widgetContainerProps: a, onAfterClick: s, onBeforeClick: l, children: d, extras: u }) => { - const p = ge(se), [h, g] = A(!1), [y, w] = A("hover"), [b, S] = rr(n, t, { list: p }, [p.getBase62params, p.getSelectedRows]), [P, k] = A(), { placement: E, align: R, zIndex: L, arrow: x = { pointAtCenter: !0 }, getPopupContainer: j, isPopupMountBodyContainer: V = !0, ...N } = a || {}; + const p = ge(se), [h, g] = A(!1), [y, w] = A("hover"), [C, S] = nr(n, t, { list: p }, [p.getBase62params, p.getSelectedRows]), [P, k] = A(), { placement: $, align: R, zIndex: L, arrow: x = { pointAtCenter: !0 }, getPopupContainer: j, isPopupMountBodyContainer: V = !0, ...N } = a || {}; U(() => { - i == "grid-layout-form" ? k($.createElement(nr, { ...r, $setting: o, code: e })) : i == "data-list" ? k($.createElement(ti, { base62params: t, $setting: o, listCode: e })) : f.isString(e) ? pe.getWidgetComponent(e).then(({ default: z }) => { - k($.createElement(z, { ...r, $setting: o })); - }).catch((z) => k(z.toString())) : oi(e) ? k($.createElement(e, { ...r, $setting: o })) : $.isValidElement(e) && k($.cloneElement(e, { ...r, $setting: o })); + i == "grid-layout-form" ? k(E.createElement(or, { ...r, $setting: o, code: e })) : i == "data-list" ? k(E.createElement(ti, { base62params: t, $setting: o, listCode: e })) : f.isString(e) ? pe.getWidgetComponent(e).then(({ default: W }) => { + k(E.createElement(W, { ...r, $setting: o })); + }).catch((W) => k(W.toString())) : E.isValidElement(e) ? k(E.cloneElement(e, { ...r, $setting: o })) : (oi(e) || f.isFunction(e) && ["component", "fsdpf-component"].includes(i)) && k(E.createElement(e, { ...r, $setting: o })); }, [e, i, r]); - const M = (z, le = !1) => (g(z), !z && w("hover"), z ? l == null ? void 0 : l(b) : s == null ? void 0 : s(le)), B = (z) => { + const M = (W, he = !1) => (g(W), !W && w("hover"), W ? l == null ? void 0 : l(C) : s == null ? void 0 : s(he)), D = (W) => { g(!0), w("click"); }; - return m(Mr, { zIndex: L, placement: E, onPopupClick: B, onClick: B, open: h, align: R, arrow: x, trigger: y, getPopupContainer: j || V ? void 0 : (z) => z, content: m(Bn, { ...N, extras: u, children: P && $.cloneElement(P, { ...b, $setProps: S, $close: (z) => M(!1, z) }) }), children: d, onOpenChange: M }); -}, Bn = ({ title: t, className: e, classNames: i, children: r, extras: n, width: o, height: a, ...s }) => { - const [l, d] = A({}), u = _((y, w) => d((b) => ({ ...b, [y]: w })), []), p = _((y) => d((w) => ({ ...w, [y]: void 0 })), []), h = t ? $.createElement("div", { className: "ff-popup-title" }, t) : l == null ? void 0 : l.title, g = n ?? $.createElement("div", { className: "ff-popup-reserved-extras" }, n); + return m(Mr, { zIndex: L, placement: $, onPopupClick: D, onClick: D, open: h, align: R, arrow: x, trigger: y, getPopupContainer: j || V ? void 0 : (W) => W, content: m(Wn, { ...N, extras: u, children: P && E.cloneElement(P, { ...C, $setProps: S, $close: (W) => M(!1, W) }) }), children: d, onOpenChange: M }); +}, Wn = ({ title: t, className: e, classNames: i, children: r, extras: n, width: o, height: a, ...s }) => { + const [l, d] = A({}), u = _((y, w) => d((C) => ({ ...C, [y]: w })), []), p = _((y) => d((w) => ({ ...w, [y]: void 0 })), []), h = t ? E.createElement("div", { className: "ff-popup-title" }, t) : l == null ? void 0 : l.title, g = n ?? E.createElement("div", { className: "ff-popup-reserved-extras" }, n); return m(ht.Provider, { value: { ele: l, mount: u, unmount: p }, children: I("div", { className: F("ff-popup ff-popover", e, l.rootClassName), style: { width: o ?? 260, height: a }, ...s, children: [I("div", { className: F("ff-popup-header", "ff-popover-header", i == null ? void 0 : i.header), children: [h, l == null ? void 0 : l["sub-title"]] }), m("div", { className: F("ff-popup-body", "ff-popover-body", i == null ? void 0 : i.body), children: r }), I("div", { className: F("ff-popup-footer", "ff-popover-footer", i == null ? void 0 : i.footer), children: [g, l == null ? void 0 : l.extras, l == null ? void 0 : l.actions] })] }) }); }; -Rt.propTypes = { widgetType: C.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }; -const yt = (t) => function({ className: e, variant: i, children: r, name: n, icon: o, type: a = "default", iconPosition: s = "start", noAuthType: l, onAfterClick: d, onBeforeClick: u, data: p, loading: h, disabled: g, tooltip: y, confirm: w, widget: b = () => { -}, widgetType: S, widgetData: P, widgetProps: k, widgetSetting: E, widgetContainerProps: R, ...L }) { - const { mode: x, ...j } = R || {}, V = or({ className: e, name: n, type: a, icon: o, iconPosition: s }, i ?? t), N = m(kt, { ...V, ...L, children: r || n }); - if (x === "popover" && !["destroy", "redirect", "func"].includes(S)) return m(Rt, { data: p, widget: b, widgetType: S, widgetData: P, widgetProps: k, widgetSetting: E, widgetContainerProps: j, onAfterClick: d, onBeforeClick: u, children: N }); - const M = f.isEmpty(y) || !y.enabled ? {} : y, B = f.isEmpty(w) ? { enabled: !1 } : Object.assign({ enabled: !0 }, w), [z, le] = A(!1), [Me, { disabled: D, loading: ae }] = Wn({ widget: b, widgetType: S, widgetData: P, widgetProps: k, widgetSetting: E, widgetContainerProps: j }, { onAfterClick: d, onBeforeClick: u }); - return m(Vr, { okText: "确定", cancelText: "取消", getPopupContainer: (G) => G, ...B, disabled: D || g, open: z, onOpenChange: (G) => { - if (!G) return le(G); - B.enabled ? le(G) : Me(p); +Rt.propTypes = { widgetType: b.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }; +const yt = (t) => function({ className: e, variant: i, children: r, name: n, icon: o, type: a = "default", iconPosition: s = "start", noAuthType: l, onAfterClick: d, onBeforeClick: u, data: p, loading: h, disabled: g, tooltip: y, confirm: w, widget: C = () => { +}, widgetType: S, widgetData: P, widgetProps: k, widgetSetting: $, widgetContainerProps: R, ...L }) { + const { mode: x, ...j } = R || {}, V = ar({ className: e, name: n, type: a, icon: o, iconPosition: s }, i ?? t), N = m(kt, { ...V, ...L, children: r || n }); + if (x === "popover" && !["destroy", "redirect", "func"].includes(S)) return m(Rt, { data: p, widget: C, widgetType: S, widgetData: P, widgetProps: k, widgetSetting: $, widgetContainerProps: j, onAfterClick: d, onBeforeClick: u, children: N }); + const M = f.isEmpty(y) || !y.enabled ? {} : y, D = f.isEmpty(w) ? { enabled: !1 } : Object.assign({ enabled: !0 }, w), [W, he] = A(!1), [ae, { disabled: B, loading: le }] = zn({ widget: C, widgetType: S, widgetData: P, widgetProps: k, widgetSetting: $, widgetContainerProps: j }, { onAfterClick: d, onBeforeClick: u }); + return m(Vr, { okText: "确定", cancelText: "取消", getPopupContainer: (G) => G, ...D, disabled: B || g, open: W, onOpenChange: (G) => { + if (!G) return he(G); + D.enabled ? he(G) : ae(p); }, onConfirm: (G) => { - Me(p, G); + ae(p, G); }, onClick: (G) => { G.stopPropagation(); - }, children: m(Dr, { getPopupContainer: (G) => G, ...M, title: z ? null : M == null ? void 0 : M.title, trigger: ["hover", "click"], children: $.cloneElement(N, { loading: ae || h, disabled: D || g }) }) }); + }, children: m(Dr, { getPopupContainer: (G) => G, ...M, title: W ? null : M == null ? void 0 : M.title, trigger: ["hover", "click"], children: E.cloneElement(N, { loading: le || h, disabled: B || g }) }) }); }, O = yt("default"); -O.propTypes = { type: C.oneOf(["primary", "default", "danger", ""]), size: C.oneOf(["large", "middle", "small"]), name: C.string, icon: C.string, iconPosition: C.oneOf(["start", "end"]), data: C.any, widget: C.any, widgetType: C.oneOf(["destroy", "redirect", "func", "component", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: C.object, widgetProps: C.object, widgetSetting: C.object, widgetContainerProps: C.object, tooltip: C.exact({ title: C.string.isRequired, placement: C.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: C.oneOfType([C.bool, C.number]), getPopupContainer: C.func }), confirm: C.exact({ title: C.string.isRequired, cancelText: C.string, okText: C.string, okType: C.oneOf(["primary", "default", "danger", ""]), placement: C.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: C.oneOfType([C.bool, C.number]), getPopupContainer: C.func, arrow: C.oneOfType([C.bool, C.exact({ pointAtCenter: C.bool })]) }) }; -const Un = yt("link"), qn = yt("circle"), Kn = yt("round"), Hn = yt("dashed"), Ni = ({ options: t = [], triggerWeights: e = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: i = (g, y, w) => { +O.propTypes = { type: b.oneOf(["primary", "default", "danger", ""]), size: b.oneOf(["large", "middle", "small"]), name: b.string, icon: b.string, iconPosition: b.oneOf(["start", "end"]), data: b.any, widget: b.any, widgetType: b.oneOf(["destroy", "redirect", "func", "component", "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 })]) }) }; +const Bn = yt("link"), Un = yt("circle"), qn = yt("round"), Kn = yt("dashed"), Ni = ({ options: t = [], triggerWeights: e = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: i = (g, y, w) => { }, onBeforeClick: r = (g, y, w) => { }, labelVariant: n = "link", labelSize: o, labelRender: a, btnVariant: s, btnSize: l, btnRender: d = (g, y) => m(O, { ...g, data: y }, g.uuid || Dt()), widgetContainerProps: u = {}, children: p, data: h }) => { if (f.isEmpty(t)) return p; - const [g, y] = K(() => (t || []).reduce((b, S) => { + const [g, y] = K(() => (t || []).reduce((C, S) => { const P = e.indexOf(S.widgetType); - return P === -1 ? b[1].push(S) : b[0] ? P < e.indexOf(b[0].widgetType) ? (b[1].push(b[0]), b[0] = S) : b[1].push(S) : b[0] = S, b; + return P === -1 ? C[1].push(S) : C[0] ? P < e.indexOf(C[0].widgetType) ? (C[1].push(C[0]), C[0] = S) : C[1].push(S) : C[0] = S, C; }, [null, []]), [t, e]); - a ? p = a(g, h) || p : p || (p = m(kt, { ...or(Object.assign(g != null && g.name || g != null && g.icon ? {} : { icon: "icon-location" }, g, { size: o }), n) })); - const w = y.map((b) => d(Object.assign({ uuid: b.uuid, type: b.type, name: b.name, widget: b.widget, widgetType: b.widgetType, widgetProps: b.widgetProps, widgetData: b.widgetData, widgetSetting: b.widgetSetting, widgetContainerProps: b.widgetContainerSetting, confirm: b.confirm, onAfterClick: f.partialRight(i, b, h), onBeforeClick: f.partialRight(r, b, h) }, { size: l, variant: s }), h)); + a ? p = a(g, h) || p : p || (p = m(kt, { ...ar(Object.assign(g != null && g.name || g != null && g.icon ? {} : { icon: "icon-location" }, g, { size: o }), n) })); + const w = y.map((C) => d(Object.assign({ uuid: C.uuid, type: C.type, name: C.name, widget: C.widget, widgetType: C.widgetType, widgetProps: C.widgetProps, widgetData: C.widgetData, widgetSetting: C.widgetSetting, widgetContainerProps: C.widgetContainerSetting, confirm: C.confirm, onAfterClick: f.partialRight(i, C, h), onBeforeClick: f.partialRight(r, C, h) }, { size: l, variant: s }), h)); return m(Rt, { widget: g == null ? void 0 : g.widget, widgetType: g == null ? void 0 : g.widgetType, widgetProps: g == null ? void 0 : g.widgetProps, widgetSetting: g == null ? void 0 : g.widgetSetting, widgetContainerProps: Object.assign({}, u, g == null ? void 0 : g.widgetContainerProps), data: h, widgetData: g == null ? void 0 : g.widgetData, extras: w, onAfterClick: f.partialRight(i, g, h), onBeforeClick: f.partialRight(r, g, h), children: p }); }; -Ni.propTypes = { triggerWeights: C.array, options: C.arrayOf(C.shape({ ...O.propTypes, widgetType: O.propTypes.widgetType.isRequired })), btnSize: O.propTypes.size, btnRender: C.func, btnVariant: C.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: C.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: C.func, labelSize: O.propTypes.size, onAfterClick: C.func, onBeforeClick: C.func, widgetContainerProps: O.propTypes.widgetContainerProps, data: O.propTypes.data }, O.Link = Un, O.Link.defaultProps = O.defaultProps, O.Link.propTypes = O.propTypes, O.Circle = qn, O.Circle.defaultProps = O.defaultProps, O.Circle.propTypes = O.propTypes, O.Round = Kn, O.Round.defaultProps = O.defaultProps, O.Round.propTypes = O.propTypes, O.Dashed = Hn, O.Dashed.defaultProps = O.defaultProps, O.Dashed.propTypes = O.propTypes, O.Popover = Rt, O.GroupPopover = Ni; -const Jn = ({ fields: t, formProps: e, $close: i }) => { +Ni.propTypes = { triggerWeights: b.array, options: b.arrayOf(b.shape({ ...O.propTypes, widgetType: O.propTypes.widgetType.isRequired })), btnSize: O.propTypes.size, btnRender: b.func, btnVariant: b.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: b.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: b.func, labelSize: O.propTypes.size, onAfterClick: b.func, onBeforeClick: b.func, widgetContainerProps: O.propTypes.widgetContainerProps, data: O.propTypes.data }, O.Link = Bn, O.Link.defaultProps = O.defaultProps, O.Link.propTypes = O.propTypes, O.Circle = Un, O.Circle.defaultProps = O.defaultProps, O.Circle.propTypes = O.propTypes, O.Round = qn, O.Round.defaultProps = O.defaultProps, O.Round.propTypes = O.propTypes, O.Dashed = Kn, O.Dashed.defaultProps = O.defaultProps, O.Dashed.propTypes = O.propTypes, O.Popover = Rt, O.GroupPopover = Ni; +const Hn = ({ fields: t, formProps: e, $close: i }) => { const [r] = oe.useForm(), n = K(() => [{ name: "__PROPS__", value: e }], [e]); - return m(ee, { actions: I($.Fragment, { children: [m(O, { name: "取消", widget: () => i(!1) }), m(O, { name: "确定", type: "primary", widget: () => r.validateFields(!0).then(i) })] }), children: m(oe, { fields: n, form: r, className: "ff-modal-form", children: t == null ? void 0 : t.map(({ code: o, ...a }) => m(ii, { code: o, ...a }, o)) }) }); -}, _n = ({ className: t, classNames: e, $close: i, children: r, title: n, subTitle: o, actions: a, extras: s, ...l }) => I(Jr, { ...l, prefixCls: "ff-drawer", className: F("ff-popup", t), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (d) => ({ motionAppear: !0, motionName: `panel-motion-${d}` }), children: [I("div", { className: F("ff-popup-header", "ff-drawer-header", e == null ? void 0 : e.header), children: [m("button", { "aria-label": "Close", className: F("ff-popup-close", "ff-drawer-close", e == null ? void 0 : e.close), onClick: l.onClose, children: m(Zt, { type: "close" }) }), n, o] }), m("div", { className: F("ff-popup-body", "ff-drawer-body", e == null ? void 0 : e.body), children: r }), I("div", { className: F("ff-popup-footer", "ff-drawer-footer", e == null ? void 0 : e.footer), children: [s, a] })] }), Gn = ({ className: t, classNames: e, $close: i, $event: r, children: n, title: o, subTitle: a, actions: s, extras: l, placement: d, ...u }) => { + return m(ee, { actions: I(E.Fragment, { children: [m(O, { name: "取消", widget: () => i(!1) }), m(O, { name: "确定", type: "primary", widget: () => r.validateFields(!0).then(i) })] }), children: m(oe, { fields: n, form: r, className: "ff-modal-form", children: t == null ? void 0 : t.map(({ code: o, ...a }) => m(ii, { code: o, ...a }, o)) }) }); +}, Jn = ({ className: t, classNames: e, $close: i, children: r, title: n, subTitle: o, actions: a, extras: s, ...l }) => I(Jr, { ...l, prefixCls: "ff-drawer", className: F("ff-popup", t), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (d) => ({ motionAppear: !0, motionName: `panel-motion-${d}` }), children: [I("div", { className: F("ff-popup-header", "ff-drawer-header", e == null ? void 0 : e.header), children: [m("button", { "aria-label": "Close", className: F("ff-popup-close", "ff-drawer-close", e == null ? void 0 : e.close), onClick: l.onClose, children: m(Zt, { type: "close" }) }), n, o] }), m("div", { className: F("ff-popup-body", "ff-drawer-body", e == null ? void 0 : e.body), children: r }), I("div", { className: F("ff-popup-footer", "ff-drawer-footer", e == null ? void 0 : e.footer), children: [s, a] })] }), _n = ({ className: t, classNames: e, $close: i, $event: r, children: n, title: o, subTitle: a, actions: s, extras: l, placement: d, ...u }) => { const p = (r == null ? void 0 : r.pageX) === void 0 ? { animation: null, maskAnimation: null, mousePosition: { x: null, y: null } } : { animation: "zoom", maskAnimation: "fade", mousePosition: { x: r == null ? void 0 : r.pageX, y: r == null ? void 0 : r.pageY } }; return m(_r, { ...u, ...p, prefixCls: "ff-modal", modalRender: () => I("div", { className: F("ff-modal-content ff-popup", t), children: [I("div", { className: F("ff-popup-header", "ff-modal-header", e == null ? void 0 : e.header), children: [m("button", { "aria-label": "Close", className: F("ff-popup-close", "ff-modal-close", e == null ? void 0 : e.close), onClick: u.onClose, children: m(Zt, { type: "close" }) }), o, a] }), m("div", { className: F("ff-popup-body", "ff-modal-body", e == null ? void 0 : e.body), children: n }), I("div", { className: F("ff-popup-footer", "ff-modal-footer", e == null ? void 0 : e.footer), children: [l, s] })] }) }); -}, ar = ({ placement: t, $close: e, $event: i, children: r, title: n, ...o }) => { - const [a, s] = A({}), [l, d] = A(!0), u = _((y, w) => s((b) => ({ ...b, [y]: w })), []), p = _((y) => s((w) => ({ ...w, [y]: void 0 })), []); - let h = { ...o, className: a.rootClassName, title: a.title || n && $.createElement("div", { className: F("ff-popup-title") }, n), subTitle: a["sub-title"], actions: a.actions, extras: a.extras, children: r, $close: e, $event: i, onClose: () => d(!1) }; +}, sr = ({ placement: t, $close: e, $event: i, children: r, title: n, ...o }) => { + const [a, s] = A({}), [l, d] = A(!0), u = _((y, w) => s((C) => ({ ...C, [y]: w })), []), p = _((y) => s((w) => ({ ...w, [y]: void 0 })), []); + let h = { ...o, className: a.rootClassName, title: a.title || n && E.createElement("div", { className: F("ff-popup-title") }, n), subTitle: a["sub-title"], actions: a.actions, extras: a.extras, children: r, $close: e, $event: i, onClose: () => d(!1) }; const g = () => { e(!1); }; - return m(ht.Provider, { value: { ele: a, mount: u, unmount: p }, children: t && t !== "center" ? m(_n, { ...h, placement: t, open: l, afterOpenChange: (y) => !y && g() }) : m(Gn, { ...h, visible: l, afterClose: g }) }); + return m(ht.Provider, { value: { ele: a, mount: u, unmount: p }, children: t && t !== "center" ? m(Jn, { ...h, placement: t, open: l, afterOpenChange: (y) => !y && g() }) : m(_n, { ...h, visible: l, afterClose: g }) }); }; -ar.propTypes = { placement: C.oneOf(["center", "left", "top", "right", "bottom"]) }; -const Yn = ({ widget: t, widgetProps: e, $close: i, onSetProps: r }) => { +sr.propTypes = { placement: b.oneOf(["center", "left", "top", "right", "bottom"]) }; +const Gn = ({ widget: t, widgetProps: e, $close: i, onSetProps: r }) => { const [n, o] = A(e || {}), a = ji(e); Ai(() => { const l = a ?? {}, d = e ?? {}, u = Object.keys({ ...l, ...d }).reduce((p, h) => (l[h] !== d[h] && (p[h] = d[h]), p), {}); @@ -1007,38 +1009,38 @@ const Yn = ({ widget: t, widgetProps: e, $close: i, onSetProps: r }) => { const s = _((l) => { o((d) => ({ ...d, ...l })), r == null || r(l); }, [r]); - return $.isValidElement(t) ? $.cloneElement(t, { ...n, $close: i, $setProps: s }) : t != null && t.name || wi.isForwardRef(t) || (t == null ? void 0 : t.$$typeof) === wi.ForwardRef ? $.createElement(t, { ...n, $close: i, $setProps: s }) : t; + return E.isValidElement(t) ? E.cloneElement(t, { ...n, $close: i, $setProps: s }) : t != null && t.name || wi.isForwardRef(t) || (t == null ? void 0 : t.$$typeof) === wi.ForwardRef ? E.createElement(t, { ...n, $close: i, $setProps: s }) : t; }, ie = () => { const [t, e] = Nr({ maxCount: 6, motion: { motionName: "ff-notification-fade", motionAppear: !0, motionEnter: !0, motionLeave: !0, onLeaveStart: (o) => { const { offsetHeight: a } = o; return { height: a }; - }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, i] = $.useReducer((o) => o + 1, 0); + }, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, i] = E.useReducer((o) => o + 1, 0); U(() => { ie.$onClick = r, ie.$queue.forEach(([o, a, s], l, d) => { n([a, s], ...o), delete d[l]; }); }, []); const r = (o, a = {}, s = {}) => new Promise((l, d) => n([l, d], o, a, s)), n = ([o, a], s, l = {}, d = {}) => { - const u = ie.$index++, p = (y) => ((w, b) => (ie.$popups.delete(w), i(), b == null ? void 0 : b()))(u, () => o(y)); - if (s === Di) return t.open({ ...d, key: u, content: $.createElement(s, { ...l, $close: () => t.close(u) }) }); + const u = ie.$index++, p = (y) => ((w, C) => (ie.$popups.delete(w), i(), C == null ? void 0 : C()))(u, () => o(y)); + if (s === Di) return t.open({ ...d, key: u, content: E.createElement(s, { ...l, $close: () => t.close(u) }) }); const { $setProps: h, ...g } = l; - ie.$popups.set(u, $.createElement(ar, { maskClosable: !1, $event: g == null ? void 0 : g.$event, ...d, key: u, $close: p }, $.createElement(Yn, { widget: s, widgetProps: g, $close: p, onSetProps: h }))), i(); + ie.$popups.set(u, E.createElement(sr, { maskClosable: !1, $event: g == null ? void 0 : g.$event, ...d, key: u, $close: p }, E.createElement(Gn, { widget: s, widgetProps: g, $close: p, onSetProps: h }))), i(); }; - return I($.Fragment, { children: [Array.from(ie.$popups).map(([o, a]) => a), e] }); + return I(E.Fragment, { children: [Array.from(ie.$popups).map(([o, a]) => a), e] }); }; ie.$popups = /* @__PURE__ */ new Map(), ie.$index = 0, ie.$queue = [], ie.$onClick = (...t) => new Promise((e, i) => { ie.$queue.push([t, e, i]); }); -const Ti = (t, e, i = {}) => ie.$onClick(t, e, i), Mt = (t, { showProgress: e, duration: i, ...r } = { duration: 1.5 }) => ie.$onClick(Di, { content: t, ...r }, { showProgress: e, duration: i }), re = { modal: Ti, confirm: (t, e = {}) => ie.$onClick(Gr, { content: t, ...e }, { placement: "center" }), form: (t, e = {}, i = {}) => Ti(Jn, { formProps: i, fields: t }, { placement: "center", ...e }).then((r) => { +const Ti = (t, e, i = {}) => ie.$onClick(t, e, i), Mt = (t, { showProgress: e, duration: i, ...r } = { duration: 1.5 }) => ie.$onClick(Di, { content: t, ...r }, { showProgress: e, duration: i }), re = { modal: Ti, confirm: (t, e = {}) => ie.$onClick(Gr, { content: t, ...e }, { placement: "center" }), form: (t, e = {}, i = {}) => Ti(Hn, { formProps: i, fields: t }, { placement: "center", ...e }).then((r) => { if (r === !1) throw !1; return r; }), notification: Mt, success: (t, e = { duration: 1.5 }) => Mt(t, { ...e, className: "ff-notification-success", icon: "check" }), error: (t, e = { duration: 1.5 }) => Mt(t, { ...e, className: "ff-notification-error", icon: "close" }) }; tt.configure({ showSpinner: !1 }); -const sr = () => { +const lr = () => { const t = window.localStorage.getItem(Ct); return Object.freeze({ Platform: "web", SaaS: window.localStorage.getItem("SaaS"), Authorization: t ? `Bearer ${t} ` : void 0 }); }; -De.interceptors.request.use((t) => (Object.assign(t.headers, sr()), tt.inc(), t), (t) => (tt.done(), Promise.reject({ code: -1, msg: t }))), De.interceptors.response.use(({ data: t, headers: e }) => (tt.done(), { ...t, res: e == null ? void 0 : e.res }), function(t) { +De.interceptors.request.use((t) => (Object.assign(t.headers, lr()), tt.inc(), t), (t) => (tt.done(), Promise.reject({ code: -1, msg: t }))), De.interceptors.response.use(({ data: t, headers: e }) => (tt.done(), { ...t, res: e == null ? void 0 : e.res }), function(t) { return tt.done(), Promise.reject(t.message); }), window.addEventListener("unhandledrejection", zt.onUnhandledRejection), zt.onMsg = (t, e) => re[[0, 1].includes(t) ? "success" : "error"](e).then(() => t === 20300 && ne.redirect(qe.get("Common.WEBSITE_LOGIN_PAGE"))); var Xe, Ue, Qe; @@ -1061,7 +1063,7 @@ const Q = class Q { return De; } get headers() { - return sr(); + return lr(); } mock(e = {}) { return c(this, Xe) ?? q(this, Xe, new Or(De, { onNoMatch: "passthrough", ...e })); @@ -1073,7 +1075,7 @@ const Q = class Q { }; Xe = new WeakMap(), Ue = new WeakMap(), Qe = new WeakMap(), v(Q, Ue), v(Q, Qe), T(Q, "getInstance", () => c(Q, Ue) ?? q(Q, Ue, new Q())); let Yt = Q; -const W = Yt.getInstance(); +const z = Yt.getInstance(); class ni extends Error { constructor(e, i) { super(i), Error.captureStackTrace && Error.captureStackTrace(this, ni), !i instanceof it && (this.name = `${e} Error Runtime`); @@ -1085,8 +1087,8 @@ class it extends Error { } } const Vt = "mine", Ct = "token"; -var Le, Ze; -const be = class be { +var Ie, Ze; +const Ce = class Ce { constructor() { v(this, Ze, /* @__PURE__ */ new Map()); T(this, "setVendor", (e, i) => c(this, Ze).set(e, new Mi(i, async (r, n) => { @@ -1106,16 +1108,16 @@ const be = class be { const [, i] = e == null ? void 0 : e.split("@pkg/"); if (!i) throw new it(e); try { - return c(this, Ze).has("pkg") ? await c(this, Ze).get("pkg").get(i) : await import(`${W.appUrl}/api/pkg-import/web?name=${e}`); + return c(this, Ze).has("pkg") ? await c(this, Ze).get("pkg").get(i) : await import(`${z.appUrl}/api/pkg-import/web?name=${e}`); } catch (r) { throw new ni(e, r); } }); - T(this, "getRoutes", () => W.get("/api/my-router").then((e) => [...e, { 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: i, ...r }) => [i, { uuid: i, ...r }])).then((e) => new Map(e))); - T(this, "getMenus", () => W.get("/api/my-menu")); - T(this, "getConfigure", () => W.get("api/init-configure")); - T(this, "getWidgetOperationAuth", () => W.get("/api/init-widget-operation-auth").then((e) => e.reduce((i, { uuid: r, auth: n }) => [...i, [r, n]], []))); - T(this, "getPhoneNumber", (e) => W.get(`/api/user-wx-phone-number/${e}`)); + T(this, "getRoutes", () => z.get("/api/my-router").then((e) => [...e, { 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: i, ...r }) => [i, { uuid: i, ...r }])).then((e) => new Map(e))); + T(this, "getMenus", () => z.get("/api/my-menu")); + T(this, "getConfigure", () => z.get("api/init-configure")); + T(this, "getWidgetOperationAuth", () => z.get("/api/init-widget-operation-auth").then((e) => e.reduce((i, { uuid: r, auth: n }) => [...i, [r, n]], []))); + T(this, "getPhoneNumber", (e) => z.get(`/api/user-wx-phone-number/${e}`)); T(this, "getUserToken", () => { const e = window.localStorage.getItem(Ct); if (!e) return ""; @@ -1137,70 +1139,78 @@ const be = class be { try { const r = this.getUserToken(); if (!r) return Promise.resolve(null); - const { iat: n } = JSON.parse(window.atob((i = r == null ? void 0 : r.split(".")) == null ? void 0 : i[1])), { iat: o, ...a } = W.decode(window.localStorage.getItem(Vt) || "", {}); - return o === n ? Promise.resolve(a) : W.get("/api/mine-info").then(({ User: s = null }) => (window.localStorage.setItem(Vt, W.encode({ ...s, iat: n })), s)); + const { iat: n } = JSON.parse(window.atob((i = r == null ? void 0 : r.split(".")) == null ? void 0 : i[1])), { iat: o, ...a } = z.decode(window.localStorage.getItem(Vt) || "", {}); + return o === n ? Promise.resolve(a) : z.get("/api/mine-info").then(({ User: s = null }) => (window.localStorage.setItem(Vt, z.encode({ ...s, iat: n })), s)); } catch (r) { console.error(r), e && re.error("请登录").then(this.logout); } return Promise.resolve(null); }); - T(this, "login", (e, i, r = {}) => W.post("/api/user-token", { username: e, passwd: Rr.hash(i), platform: "web", ...r }).then(({ token: n }) => (window.localStorage.setItem(Ct, n), n)).then(async (n) => (await this.initAppEnv(), n))); + T(this, "login", (e, i, r = {}) => z.post("/api/user-token", { username: e, passwd: Rr.hash(i), platform: "web", ...r }).then(({ token: n }) => (window.localStorage.setItem(Ct, n), n)).then(async (n) => (await this.initAppEnv(), n))); T(this, "logout", (e) => (window.localStorage.removeItem(Vt), window.localStorage.removeItem(Ct), e == null ? void 0 : e())); T(this, "initAppEnv", async () => { const [e, i, r, n] = await Promise.all([this.getWidgetOperationAuth(), this.getRoutes(), this.getMenus(), this.getConfigure()]); - return zi.init(e), qe.init(n), ne.init(i, r), $t.init(qe.get("Common.ICONFONT")), { widgetOperationAuth: e, routes: i, menus: r, configures: n }; + return zi.init(e), qe.init(n), ne.init(i, r), Et.init(qe.get("Common.ICONFONT")), { widgetOperationAuth: e, routes: i, menus: r, configures: n }; }); - if (c(be, Le)) return c(be, Le); + if (c(Ce, Ie)) return c(Ce, Ie); } }; -Le = new WeakMap(), Ze = new WeakMap(), v(be, Le, null), T(be, "getInstance", () => (c(be, Le) || q(be, Le, new be()), c(be, Le))); -let Xt = be; -const pe = Xt.getInstance(), Xn = $.createContext({ user: {}, initUser: () => { -}, initUserComplete: !1 }), Qn = $.createContext({ set: () => { +Ie = new WeakMap(), Ze = new WeakMap(), v(Ce, Ie, null), T(Ce, "getInstance", () => (c(Ce, Ie) || q(Ce, Ie, new Ce()), c(Ce, Ie))); +let Xt = Ce; +const pe = Xt.getInstance(), Yn = E.createContext({ user: {}, initUser: () => { +}, initUserComplete: !1 }), Xn = E.createContext({ set: () => { }, get: () => { }, assign: () => { }, currentRoute: () => { -} }), oi = (t) => !!(t != null && t.name) && (t.prototype instanceof $.Component || /^[A-Z]/.test(t.name)), Zn = (t, e) => { +} }), oi = (t) => { + if (!t) return !1; + if (t.prototype instanceof E.Component || t.$$typeof) return !0; + if (typeof t == "function") { + const e = t.displayName || t.name; + return !e || /^[A-Z]/.test(e); + } + return !1; +}, Qn = (t, e) => { if (!t || typeof window > "u") return; let i = document.querySelector(`style[ff-style-token="${e}"]`); return i ? (i.innerHTML = t, t) : (i = document.createElement("style"), i.setAttribute("ff-style-token", e), i.setAttribute("type", "text/css"), i.innerHTML = t, document.head.appendChild(i), t); -}, eo = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Xn, AppGlobalParamsContext: Qn, cache: Mi, configure: qe, default: pe, func: Ie, http: W, insertStyle: Zn, isReactComponent: oi, route: ne }, Symbol.toStringTag, { value: "Module" })); -var ve, et, xe, ke, Se, te, Z, Y, $e, ct, dt, ut, pt, Nt, gt; +}, Zn = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Yn, AppGlobalParamsContext: Xn, cache: Mi, configure: qe, default: pe, func: Me, http: z, insertStyle: Qn, isReactComponent: oi, route: ne }, Symbol.toStringTag, { value: "Module" })); +var xe, et, Ne, Se, Ee, te, Z, Y, $e, ct, dt, ut, pt, Nt, gt; const ai = class ai { constructor(e, i = "/") { - v(this, ve, "/"); + v(this, xe, "/"); v(this, et, /* @__PURE__ */ new Set()); - v(this, xe, (e) => { + v(this, Ne, (e) => { for (const i of c(this, et)) try { i(e); } catch (r) { console.error("Error in VirtualFS event listener:", r); } }); - v(this, ke, (e) => { + v(this, Se, (e) => { const i = Date.now(); - if (e && (e.lastModified = i), c(this, ve) != "/") { - const r = c(this, Y).call(this, c(this, ve)); + if (e && (e.lastModified = i), c(this, xe) != "/") { + const r = c(this, Y).call(this, c(this, xe)); r && (r.lastModified = i); } this.root.lastModified = i; }); - v(this, Se, (e) => { - let i = he.normalize(e); + v(this, Ee, (e) => { + let i = me.normalize(e); return i.startsWith("/") || (i = "/" + i), i.length > 1 && i.endsWith("/") && (i = i.slice(0, -1)), i; }); v(this, te, (e) => { - const i = he.join(c(this, ve), e); - return c(this, Se).call(this, i); + const i = me.join(c(this, xe), e); + return c(this, Ee).call(this, i); }); v(this, Z, (e) => { if (!e || typeof e != "string") return !1; - const i = c(this, Se).call(this, e); + const i = c(this, Ee).call(this, e); return !i.includes("..") && i.startsWith("/"); }); v(this, Y, (e) => { var o; - const i = c(this, Se).call(this, e); + const i = c(this, Ee).call(this, e); if (i === "/") return this.root; const r = i.split("/").filter((a) => a); let n = this.root; @@ -1213,10 +1223,10 @@ const ai = class ai { return n; }); v(this, $e, (e) => { - const i = c(this, Se).call(this, e), r = he.basename(i), n = he.dirname(i); + const i = c(this, Ee).call(this, e), r = me.basename(i), n = me.dirname(i); return { parent: c(this, Y).call(this, n), name: r }; }); - v(this, ct, (e, i, r) => r === !1 ? e : r === "root" ? e.map((n) => he.join(i, n)) : r === !0 || r === "working" ? e.map((n) => he.relative(c(this, ve), he.join(i, n))) : e); + v(this, ct, (e, i, r) => r === !1 ? e : r === "root" ? e.map((n) => me.join(i, n)) : r === !0 || r === "working" ? e.map((n) => me.relative(c(this, xe), me.join(i, n))) : e); v(this, dt, async (e, i, r, n = "") => { const o = [], a = c(this, Y).call(this, e); if (!a || a.type !== "dir") return o; @@ -1243,7 +1253,7 @@ const ai = class ai { const u = await c(this, Nt).call(this, e, d); o.push(...u); } else { - const u = he.join(e, d), p = c(this, Se).call(this, u); + const u = me.join(e, d), p = c(this, Ee).call(this, u); c(this, Y).call(this, p) && o.push(d); } return o; @@ -1282,7 +1292,7 @@ const ai = class ai { return new RegExp(`^${r}$`).test(e); }); var r, n, o; - q(this, ve, i), this.root = { name: "/", type: "dir", children: [], lastModified: Date.now() }, Array.isArray(e) ? this.root.children = e : e && typeof e == "object" && (e.name && e.name !== "/" ? this.root.children.push(e) : (this.root = e, (r = this.root).name ?? (r.name = "/"), (n = this.root).children ?? (n.children = []), (o = this.root).lastModified ?? (o.lastModified = Date.now()))); + q(this, xe, i), this.root = { name: "/", type: "dir", children: [], lastModified: Date.now() }, Array.isArray(e) ? this.root.children = e : e && typeof e == "object" && (e.name && e.name !== "/" ? this.root.children.push(e) : (this.root = e, (r = this.root).name ?? (r.name = "/"), (n = this.root).children ?? (n.children = []), (o = this.root).lastModified ?? (o.lastModified = Date.now()))); } async stat(e) { const i = c(this, te).call(this, e); @@ -1314,7 +1324,7 @@ const ai = class ai { if (!n) throw new Error(`ENOENT: no such file or directory, open '${e}'`); if (n.type !== "dir") throw new Error("ENOTDIR: not a directory"); const a = n.children.findIndex((d) => d.name === o), s = a >= 0, l = { name: o, type: "file", content: i, lastModified: Date.now() }; - s ? n.children[a] = l : n.children.push(l), c(this, ke).call(this, n), c(this, xe).call(this, { action: s ? "update" : "create", path: r, type: "file", timestamp: Date.now() }); + s ? n.children[a] = l : n.children.push(l), c(this, Se).call(this, n), c(this, Ne).call(this, { action: s ? "update" : "create", path: r, type: "file", timestamp: Date.now() }); } async mkdir(e, i = {}) { const r = c(this, te).call(this, e); @@ -1324,11 +1334,11 @@ const ai = class ai { const o = r.split("/").filter((s) => s); let a = "/"; for (const s of o) - if (a = he.join(a, s), !c(this, Y).call(this, a)) { + if (a = me.join(a, s), !c(this, Y).call(this, a)) { const { parent: l, name: d } = c(this, $e).call(this, a); if (l && l.type === "dir") { const u = { name: d, type: "dir", children: [], lastModified: Date.now() }; - l.children.push(u), c(this, ke).call(this, l), c(this, xe).call(this, { action: "create", path: c(this, Se).call(this, a), type: "dir", timestamp: Date.now() }); + l.children.push(u), c(this, Se).call(this, l), c(this, Ne).call(this, { action: "create", path: c(this, Ee).call(this, a), type: "dir", timestamp: Date.now() }); } } } else { @@ -1337,7 +1347,7 @@ const ai = class ai { if (o.type !== "dir") throw new Error("ENOTDIR: not a directory"); if (o.children.find((l) => l.name === a)) throw new Error(`EEXIST: file already exists, mkdir '${e}'`); const s = { name: a, type: "dir", children: [], lastModified: Date.now() }; - o.children.push(s), c(this, ke).call(this, o), c(this, xe).call(this, { action: "create", path: r, type: "dir", timestamp: Date.now() }); + o.children.push(s), c(this, Se).call(this, o), c(this, Ne).call(this, { action: "create", path: r, type: "dir", timestamp: Date.now() }); } } async unlink(e) { @@ -1348,7 +1358,7 @@ const ai = class ai { const o = r.children.findIndex((a) => a.name === n); if (o < 0) throw new Error(`ENOENT: no such file or directory, unlink '${e}'`); if (r.children[o].type !== "file") throw new Error(`EISDIR: illegal operation on a directory, unlink '${e}'`); - r.children.splice(o, 1), c(this, ke).call(this, r), c(this, xe).call(this, { action: "delete", path: i, type: "file", timestamp: Date.now() }); + r.children.splice(o, 1), c(this, Se).call(this, r), c(this, Ne).call(this, { action: "delete", path: i, type: "file", timestamp: Date.now() }); } async rmdir(e, i = {}) { const r = c(this, te).call(this, e); @@ -1360,7 +1370,7 @@ const ai = class ai { const s = n.children[a]; if (s.type !== "dir") throw new Error(`ENOTDIR: not a directory, rmdir '${e}'`); if (!i.recursive && s.children.length > 0) throw new Error(`ENOTEMPTY: directory not empty, rmdir '${e}'`); - n.children.splice(a, 1), c(this, ke).call(this, n), c(this, xe).call(this, { action: "delete", path: r, type: "dir", timestamp: Date.now() }); + n.children.splice(a, 1), c(this, Se).call(this, n), c(this, Ne).call(this, { action: "delete", path: r, type: "dir", timestamp: Date.now() }); } async rename(e, i) { const r = c(this, te).call(this, e), n = c(this, te).call(this, i); @@ -1371,7 +1381,7 @@ const ai = class ai { if (!s) throw new Error(`ENOENT: no such file or directory, rename '${e}' -> '${i}'`); if (c(this, Y).call(this, n)) throw new Error(`EEXIST: file already exists, rename '${e}' -> '${i}'`); const d = o.children.findIndex((p) => p.name === a), u = { ...o.children[d], name: l, lastModified: Date.now() }; - o.children.splice(d, 1), s.children.push(u), c(this, ke).call(this, o), o !== s && c(this, ke).call(this, s), c(this, xe).call(this, { action: "rename", path: n, oldPath: r, type: u.type, timestamp: Date.now() }); + o.children.splice(d, 1), s.children.push(u), c(this, Se).call(this, o), o !== s && c(this, Se).call(this, s), c(this, Ne).call(this, { action: "rename", path: n, oldPath: r, type: u.type, timestamp: Date.now() }); } async exists(e) { const i = c(this, te).call(this, e); @@ -1387,10 +1397,10 @@ const ai = class ai { }; } getWorkingDirectory() { - return c(this, ve); + return c(this, xe); } scope(e = "/") { - const i = c(this, Se).call(this, e); + const i = c(this, Ee).call(this, e); if (!c(this, Z).call(this, i)) throw new Error(`EINVAL: invalid path '${e}'`); const r = c(this, Y).call(this, i); if (!r) throw new Error(`ENOENT: no such file or directory '${e}'`); @@ -1412,11 +1422,11 @@ const ai = class ai { return c(this, ct).call(this, l, n, s); } }; -ve = new WeakMap(), et = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Se = new WeakMap(), te = new WeakMap(), Z = new WeakMap(), Y = new WeakMap(), $e = new WeakMap(), ct = new WeakMap(), dt = new WeakMap(), ut = new WeakMap(), pt = new WeakMap(), Nt = new WeakMap(), gt = new WeakMap(); +xe = new WeakMap(), et = new WeakMap(), Ne = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), te = new WeakMap(), Z = new WeakMap(), Y = new WeakMap(), $e = new WeakMap(), ct = new WeakMap(), dt = new WeakMap(), ut = new WeakMap(), pt = new WeakMap(), Nt = new WeakMap(), gt = new WeakMap(); let Oi = ai; -const to = async (t, e = "/", i = "") => { +const eo = async (t, e = "/", i = "") => { try { - const r = await t.stat(e), n = e === "/" ? "/" : he.basename(e), o = { title: n, key: i ? `${i}${e}` : e, isLeaf: r.isFile() }; + const r = await t.stat(e), n = e === "/" ? "/" : me.basename(e), o = { title: n, key: i ? `${i}${e}` : e, isLeaf: r.isFile() }; if (r.isDirectory()) { const a = await t.dir(e); if (a.length > 0) { @@ -1434,7 +1444,7 @@ const to = async (t, e = "/", i = "") => { for (const d of [...s, ...l]) { const u = e === "/" ? `/${d}` : `${e}/${d}`; try { - const p = await to(t, u, i); + const p = await eo(t, u, i); o.children.push(p); } catch (p) { console.warn(`Failed to process ${u}:`, p.message); @@ -1448,102 +1458,102 @@ const to = async (t, e = "/", i = "") => { } }; export { - Lo as $, - en as A, + Ao as $, + Zr as A, Eo as B, - Po as C, + $o as C, St as D, - Bi as E, + Ui as E, qt as F, - No as G, - hn as H, - tn as I, - rn as J, - Cn as K, - kn as L, - To as M, - Oo as N, + xo as G, + gn as H, + en as I, + tn as J, + bn as K, + Cn as L, + No as M, + To as N, ue as O, - $n as P, + Sn as P, Tt as Q, - Ji as R, - Zi as S, + _i as R, + er as S, It as T, - Ro as U, - Fo as V, - jo as W, - Ao as X, + Oo as U, + Ro as V, + Fo as W, + jo as X, En as Y, - Pn as Z, - vn as _, + $n as Z, + Pn as _, Wi as a, Ot as a0, - Io as a1, + Lo as a1, mt as a2, ft as a3, - Mo as a4, - Vo as a5, - xn as a6, - rr as a7, - In as a8, + Io as a4, + Mo as a5, + vn as a6, + nr as a7, + Ln as a8, ri as a9, qe as aA, - Ie as aB, + Me as aB, ne as aC, - Xn as aD, - Qn as aE, + Yn as aD, + Xn as aE, Oi as aF, - to as aG, - Yn as aH, + eo as aG, + Gn as aH, ii as aa, - nr as ab, - Nn as ac, - Tn as ad, - On as ae, - Rn as af, - Fn as ag, - jn as ah, - Do as ai, - $t as aj, + or as ab, + xn as ac, + Nn as ad, + Tn as ae, + On as af, + Rn as ag, + Fn as ah, + Vo as ai, + Et as aj, O as ak, zi as al, - Wn as am, + zn as am, ee as an, ht as ao, Vi as ap, ie as aq, re as ar, - ko as as, - So as at, - $o as au, + Co as as, + ko as at, + So as au, pe as av, oi as aw, - Zn as ax, - W as ay, + Qn as ax, + z as ay, Mi as az, - Ui as b, - vo as c, - qi as d, + qi as b, + Po as c, + Ki as d, ei as e, - _i as f, + Gi as f, Yr as g, - Xi as h, - yn as i, - Yi as j, - fn as k, - xo as l, - Gi as m, - Hi as n, - Ki as o, - un as p, - dn as q, - ln as r, + Qi as h, + fn as i, + Xi as j, + mn as k, + vo as l, + Yi as m, + Ji as n, + Hi as o, + dn as p, + cn as q, + sn as r, ti as s, se as t, - mn as u, - gn as v, - bn as w, - nn as x, - an as y, - Zr as z + hn as u, + pn as v, + wn as w, + rn as x, + on as y, + Qr as z }; diff --git a/dist/components.js b/dist/components.js index 06c5e0b..5f85528 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { as as s, aj as p, at as r, au as t, ar as e, aH as n } from "./common/main-dcg6oSDh.js"; +import { as as s, aj as p, at as r, au as t, ar as e, aH as n } from "./common/main-BP-r6Qm1.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index ca69b27..3296016 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { ao as s, as as e, at as p, au as t, ap as n, ar as d, aq as r, an as u } from "./common/main-dcg6oSDh.js"; +import { ao as s, as as e, at as p, au as t, ap as n, ar as d, aq as r, an as u } from "./common/main-BP-r6Qm1.js"; export { s as Context, e as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index 5f86ede..b56ba15 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-dcg6oSDh.js"; +import { D as p } from "./common/main-BP-r6Qm1.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index 9d14a66..a9204bb 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { w as t, t as e, o as r, r as o, x as i, s as l, q as u, v as n, p as D, y as L, n as p, A as C, z as m, J as b, C as c, F, E as d, I as k, B as w } from "./common/main-dcg6oSDh.js"; +import { w as t, t as e, o as r, r as o, x as i, s as l, q as u, v as n, p as D, y as L, n as p, A as C, z as m, J as b, C as c, F, E as d, I as k, B as w } from "./common/main-BP-r6Qm1.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index d3901ef..096f978 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-dcg6oSDh.js"; +import { f as a } from "../common/main-BP-r6Qm1.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 364e978..4b0280e 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { a9 as s, ab as r, aa as u, a8 as o, m as t, ag as m, ae as d, af as i, ai as F, ad as g, ac as c, ah as l } from "./common/main-dcg6oSDh.js"; +import { a9 as s, ab as r, aa as u, a8 as o, m as t, ag as m, ae as d, af as i, ai as F, ad as g, ac as c, ah as l } from "./common/main-BP-r6Qm1.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 1897ed6..165a7c5 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { a as o, g } from "../common/main-dcg6oSDh.js"; +import { a as o, g } from "../common/main-BP-r6Qm1.js"; export { o as getNormalizeWidget, g as getOptionItemByValue diff --git a/dist/grid-layout.js b/dist/grid-layout.js index bddd2b2..5fa247b 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { h as u, j as e, i as r, H as t, G as d, k as i, m as o, l as G, u as l } from "./common/main-dcg6oSDh.js"; +import { h as u, j as e, i as r, H as t, G as d, k as i, m as o, l as G, u as l } from "./common/main-BP-r6Qm1.js"; export { u as GridLayout, e as GridLayoutFramework, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index b73c506..7693544 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { b as a, d as o, e as s, c as g } from "../common/main-dcg6oSDh.js"; +import { b as a, d as o, e as s, c as g } from "../common/main-BP-r6Qm1.js"; export { a as getBoxStyle, o as getEventProps, diff --git a/dist/hooks.js b/dist/hooks.js index 35fe884..7454031 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -2,7 +2,7 @@ import "lodash"; import "rc-field-form"; import "react"; import "react-use"; -import { a3 as u, a2 as o, a4 as i, a1 as f, a5 as m, a0 as d, a7 as c, a6 as l } from "./common/main-dcg6oSDh.js"; +import { a3 as u, a2 as o, a4 as i, a1 as f, a5 as m, a0 as d, a7 as c, a6 as l } from "./common/main-BP-r6Qm1.js"; import { default as b } from "rc-util/lib/hooks/useMergedState"; import { a as x } from "./common/vender-hQk7ADWo.js"; export { diff --git a/dist/iconfont.js b/dist/iconfont.js index 9ef010f..5175373 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 { aj as a } from "./common/main-dcg6oSDh.js"; +import { aj as a } from "./common/main-BP-r6Qm1.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index ae1f1d7..00bff3d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { aD as t, aE as e, az as o, aA as n, av as p, aB as r, ay as c, ax as f, aw as l, aC as u } from "./common/main-dcg6oSDh.js"; +import { aD as t, aE as e, az as o, aA as n, av as p, aB as r, ay as c, ax as f, aw as l, aC as u } from "./common/main-BP-r6Qm1.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/pages.js b/dist/pages.js index 0096216..a48522b 100644 --- a/dist/pages.js +++ b/dist/pages.js @@ -1,4 +1,4 @@ -import { L as t, K as e, M as o, N as g } from "./common/main-dcg6oSDh.js"; +import { L as t, K as e, M as o, N as g } from "./common/main-BP-r6Qm1.js"; export { t as CustomPage, e as DataListPage, diff --git a/dist/res-ws.js b/dist/res-ws.js index e002509..bdb0628 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-dcg6oSDh.js"; +import { R as a } from "./common/main-BP-r6Qm1.js"; export { a as default }; diff --git a/dist/style.css b/dist/style.css index 198b28d..4f3d74d 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}input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:#000!important;transition:background-color 9999s ease-in-out 0s}: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-cell-editable:after{content:" ";display:block;position:absolute;width:0px;height:0px;bottom:0;right:0;border-style:solid;border-color:rgba(0,0,0,.45) transparent;border-width:0 0 var(--padding-xs, 8px) var(--padding-xs, 8px)}.ff-data-list-framework{height:100%;--sider-width: 280px;--col-num: 1;--col-width: 200px;--gap: 8px;--item-selected-color: rgba(0, 122, 255, .1);--item-selected-bg-color: #fff;--item-selected-mark-size: 16px;--item-selected-mark-color: #007aff;--item-selected-outline-width: 1px;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;padding:calc(var(--gap) / 2)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item{display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--gap);position:relative;border-radius:4px;overflow-x:hidden;background-color:#fff;box-shadow:0 0 8px #00000014;transition:box-shadow .2s}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item.is-selected{background-color:var(--item-selected-bg-color);outline-style:solid;outline-width:var(--item-selected-outline-width);outline-color:var(--item-selected-color)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item.is-selected:after{content:" ";display:block;position:absolute;width:0px;height:0px;top:0;right:0;border-style:solid;border-color:var(--item-selected-mark-color) transparent;border-width:var(--item-selected-mark-size) 0 0 var(--item-selected-mark-size)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-container{padding:var(--gap)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f0f0;height:32px}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-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 .data-list-grid-layout-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-empty{display:flex;align-items:center;justify-content:center}.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-data-list-content{display:grid;gap:var(--gap, 8px);grid-template-columns:repeat(var(--col-num, 5),1fr);grid-auto-rows:min-content}.ff-data-list-content[style*=--col-width]{grid-template-columns:repeat(auto-fill,minmax(var(--col-width, 280px),1fr))}.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-popover-header{margin-bottom:calc(var(--margin-sm) / 2)}.ff-popover-header:empty{display:none}.ff-popover-footer{padding-top:12px}.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-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-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-header{padding:16px 8px;border-bottom:1px solid rgba(5,5,5,.06)}.ff-drawer-footer{border-top:1px solid rgba(5,5,5,.06);padding:12px 8px}.ff-drawer-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:fit-content;min-width:max(35vw,248px);padding:0;margin:0 auto}.ff-modal-close{position:absolute;top:14px;right:8px}.ff-modal-header:has(.ff-popup-title),.ff-modal-header:has(.ff-popup-sub-title){margin-bottom:8px}.ff-modal-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;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:20px 24px;max-height:calc(100vh - 150px)}.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:16px;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-reserved-extras:empty,.ff-popup-extras:empty,.ff-popup-actions:empty{display:none}.ff-popup-actions{margin-left:auto}.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}input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:#000!important;transition:background-color 9999s ease-in-out 0s}: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-cell-editable:after{content:" ";display:block;position:absolute;width:0px;height:0px;bottom:0;right:0;border-style:solid;border-color:rgba(0,0,0,.45) transparent;border-width:0 0 var(--padding-xs, 8px) var(--padding-xs, 8px)}.ff-data-list-framework{height:100%;--sider-width: 280px;--col-num: 1;--col-width: 200px;--gap: 8px;--item-selected-color: rgba(0, 122, 255, .1);--item-selected-bg-color: #fff;--item-selected-mark-size: 16px;--item-selected-mark-color: #007aff;--item-selected-border-width: 1px;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;padding:calc(var(--gap) / 2)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item{display:flex;flex-direction:column;justify-content:space-between;row-gap:var(--gap);position:relative;border-radius:4px;overflow-x:hidden;background-color:#fff;border:var(--item-selected-border-width) solid transparent;box-shadow:0 0 8px #00000014;transition:border-color .2s,background-color .2s}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item.is-selected{background-color:var(--item-selected-bg-color);border-color:var(--item-selected-color)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item.is-selected:after{content:" ";display:block;position:absolute;width:0px;height:0px;top:0;right:0;border-style:solid;border-color:var(--item-selected-mark-color) transparent;border-width:var(--item-selected-mark-size) 0 0 var(--item-selected-mark-size)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-container{padding:var(--gap)}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-item .data-list-grid-layout-item-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f0f0;height:32px}.ff-data-list-framework .ff-data-list-container .ff-data-list-content .data-list-grid-layout-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 .data-list-grid-layout-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-empty{display:flex;align-items:center;justify-content:center}.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-data-list-content{display:grid;gap:var(--gap, 8px);grid-template-columns:repeat(var(--col-num, 5),1fr);grid-auto-rows:min-content}.ff-data-list-content[style*=--col-width]{grid-template-columns:repeat(auto-fill,minmax(var(--col-width, 280px),1fr))}.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-popover-header{margin-bottom:calc(var(--margin-sm) / 2)}.ff-popover-header:empty{display:none}.ff-popover-footer{padding-top:12px}.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-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-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-header{padding:16px 8px;border-bottom:1px solid rgba(5,5,5,.06)}.ff-drawer-footer{border-top:1px solid rgba(5,5,5,.06);padding:12px 8px}.ff-drawer-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:fit-content;min-width:max(35vw,248px);padding:0;margin:0 auto}.ff-modal-close{position:absolute;top:14px;right:8px}.ff-modal-header:has(.ff-popup-title),.ff-modal-header:has(.ff-popup-sub-title){margin-bottom:8px}.ff-modal-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;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:20px 24px;max-height:calc(100vh - 150px)}.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:16px;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-reserved-extras:empty,.ff-popup-extras:empty,.ff-popup-actions:empty{display:none}.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 6b796ae..f6e3ba2 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { S as r, W as i, V as g, X as o, P, $ as m, Q as p, _ as d, Y as h, Z as k, T as U, O as f, U as l } from "./common/main-dcg6oSDh.js"; +import { S as r, W as i, V as g, X as o, P, $ as m, Q as p, _ as d, Y as h, Z as k, T as U, O as f, U as l } from "./common/main-BP-r6Qm1.js"; import "./common/vender-hQk7ADWo.js"; export { r as deepSome, diff --git a/dist/virtual-fs.js b/dist/virtual-fs.js index 861715d..72a4460 100644 --- a/dist/virtual-fs.js +++ b/dist/virtual-fs.js @@ -1,5 +1,5 @@ import "pathe"; -import { aF as o, aG as r } from "./common/main-dcg6oSDh.js"; +import { aF as o, aG as r } from "./common/main-BP-r6Qm1.js"; export { o as default, r as toTreePaths diff --git a/package.json b/package.json index 9da5d47..19cfb9d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.6.41", + "version": "0.6.42", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js",