This commit is contained in:
what 2024-09-03 17:08:33 +08:00
parent 5ba721e480
commit 1a92dd1161
15 changed files with 62 additions and 62 deletions

2
dist/button.js vendored
View File

@ -1,4 +1,4 @@
import { P as s, O as u, Q as e } from "./common/main-CLm93Jv-.js";
import { P as s, O as u, Q as e } from "./common/main-C-TqcCNl.js";
import "prop-types";
export {
s as auth,

View File

@ -77,20 +77,20 @@ class Jt {
Ie = new WeakMap(), qe = new WeakMap(), Ae = new WeakMap(), de = new WeakMap(), Fe = new WeakMap(), Re = new WeakMap();
const Dn = () => c("div", { children: "Empty" }), _e = C.createContext({ ele: {}, mount: () => {
}, unmount: () => {
} }), q = ({ rootClassName: e, className: t, children: a, actions: n, title: i, subTitle: r, extras: s, style: o = {} }) => {
} }), J = ({ rootClassName: e, className: t, children: a, actions: n, title: i, subTitle: r, extras: s, style: o = {} }) => {
const { mount: l, unmount: u } = C.useContext(_e);
return n && q.Action({ children: n }), i && q.Title({ children: i }), r && q.SubTitle({ children: r }), s && q.Extra({ children: s }), $(() => (l("rootClassName", e), () => u(e)), [e]), c("div", { className: R("ff-container", t), style: o, children: a });
return n && J.Action({ children: n }), i && J.Title({ children: i }), r && J.SubTitle({ children: r }), s && J.Extra({ children: s }), $(() => (l("rootClassName", e), () => u(e)), [e]), c("div", { className: R("ff-container", t), style: o, children: a });
}, Xe = (e) => ({ children: t, className: a }) => {
const { mount: n, unmount: i } = C.useContext(_e);
return $(() => (n(e, C.createElement("div", { key: `ff-${e}`, className: R(`ff-popup-${e}`, a) }, t)), () => i(e)), [a, t]), null;
};
q.Action = Xe("actions"), q.Title = Xe("title"), q.SubTitle = Xe("sub-title"), q.Extra = Xe("extras"), q.propTypes = { className: O.string, style: O.object, title: O.any, subTitle: O.any, actions: O.any, extras: O.any };
const Wn = () => c(q, { className: "ff-loading", children: N("div", { className: "loader", children: [N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] }), N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] }), N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] }), N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] })] }) }), qn = () => c("div", { children: "NotFound" }), Kt = ({ children: e }) => {
J.Action = Xe("actions"), J.Title = Xe("title"), J.SubTitle = Xe("sub-title"), J.Extra = Xe("extras"), J.propTypes = { className: O.string, style: O.object, title: O.any, subTitle: O.any, actions: O.any, extras: O.any };
const Wn = () => c(J, { className: "ff-loading", children: N("div", { className: "loader", children: [N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] }), N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] }), N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] }), N("div", { className: "square", children: [c("span", {}), c("span", {}), c("span", {})] })] }) }), qn = () => c("div", { children: "NotFound" }), Kt = ({ children: e }) => {
const [t, a] = P({}), n = ge((r, s) => a((o) => ({ ...o, [r]: s })), []), i = ge((r) => a((s) => ({ ...s, [r]: void 0 })), []);
return typeof (e == null ? void 0 : e.type) == "string" ? e : c(_e.Provider, { value: { ele: t, mount: n, unmount: i }, children: C.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) });
};
Kt.propTypes = { children: O.element.isRequired };
const Rt = { 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"] }, bt = ({ type: e, props: t }) => c("i", { ...t, children: c("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Rt[e] || Rt.info).map((a, n) => c("path", { d: a }, n)) }) }), Gt = ({ className: e, content: t, icon: a, $close: n }) => N(C.Fragment, { children: [a && c("div", { className: R("ff-notification-icon", e), children: c(bt, { type: a }) }), t] }), ja = ({}) => c(q, { children: "Confirm" });
const Rt = { 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"] }, bt = ({ type: e, props: t }) => c("i", { ...t, children: c("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Rt[e] || Rt.info).map((a, n) => c("path", { d: a }, n)) }) }), Gt = ({ className: e, content: t, icon: a, $close: n }) => N(C.Fragment, { children: [a && c("div", { className: R("ff-notification-icon", e), children: c(bt, { type: a }) }), t] }), ja = ({}) => c(J, { children: "Confirm" });
var fe, Me;
const ee = class ee {
constructor() {
@ -184,11 +184,11 @@ const De = ut.getInstance(), Aa = (e, t, a, n, i) => {
const i = t.map((r) => r == null ? void 0 : r[n]);
return e.some(({ uuid: r }) => !r || !a.has(r) || a.get(r).some((s) => i.includes(s)));
}, [e, t, a, n]), za = ({ className: e, itemClassName: t, classNames: a = {}, dataSource: n, isPaginate: i, isItemOperations: r, isBatchOperations: s, batchOperations: o, itemOperations: l, itemOperationsAccess: u, resource: d, primaryKey: m, title: f, itemGridLayout: h, $setting: y, tabs: b, isConditionFormLayout: w, isTreeSider: E, treeSiderConfig: z }) => {
const { getBase62params: _, onClickCallback: H, onTabChange: D } = Ge(Le), { total: A, page: L, pageSize: J, tab: M } = _() || {}, K = ge((j, v, se) => c(Ba, { className: R("ff-data-list-framework-item", t), operations: r && v ? l == null ? void 0 : l.filter((V) => !(m && V.uuid && u.has(V.uuid)) || u.get(V.uuid).includes(v == null ? void 0 : v[m])) : [], data: d ? { [d]: v } : v, children: j, onClickCallback: H }), [d, m, r, H, l, u]);
return N("div", { className: R("ff-data-list-framework", e), children: [c(ta, { className: a == null ? void 0 : a.sider, isTreeSider: E, ...z }), N("div", { className: R("ff-data-list-container", a == null ? void 0 : a.container), children: [c(vt, { className: a == null ? void 0 : a.filter, isConditionFormLayout: w }), c(ea, { title: f, className: a == null ? void 0 : a.toolbar, tabs: b, tab: M, onTabChange: D }), c(Ya, { ...h, className: a == null ? void 0 : a.content, style: { "--col-num": (y == null ? void 0 : y.colNum) || 1 }, primaryKey: m, itemRender: K, dataSource: n }), c(aa, { className: a == null ? void 0 : a.footer, isPaginate: i, isOperations: s, operations: o, total: A, page: L, pageSize: J })] })] });
}, Ba = ({ className: e, operations: t, children: a, data: n, onClickCallback: i }) => N("div", { className: R("data-list-grid-layout-item-container", e), children: [a, !!(t != null && t.length) && c("div", { className: "data-list-grid-layout-item-actions", children: t.map((r) => c("span", { className: "data-list-grid-layout-item-action", children: c(S.Link, { uuid: r.uuid, type: r.type, name: r.name, widget: r.widget, widgetType: r.widgetType, widgetProps: r.widgetProps, widgetSetting: r.widgetSetting, widgetContainerProps: r.widgetContainerSetting, data: n, onAfterClick: (s) => s !== !1 && (i == null ? void 0 : i(r.isRefresh, n)) }, r.uuid || useId()) }, (r == null ? void 0 : r.uuid) || useId())) })] }), Ua = ({ listCode: e, className: t, classNames: a = {}, itemClassName: n, dataSource: i, columns: r, isItemOperations: s, isBatchOperations: o, batchOperations: l, itemOperations: u, itemOperationsAccess: d, resource: m, primaryKey: f, title: h, tabs: y, isPaginate: b, isTreeSider: w, treeSiderConfig: E, isConditionFormLayout: z, ..._ }) => {
const { getBase62params: H, onClickCallback: D, onTabChange: A } = Ge(Le), { total: L, page: J, tab: M, pageSize: K } = H() || {}, j = gt(u, i, d, f);
return N("div", { className: R("ff-data-table-framework", t), children: [c(ta, { className: a == null ? void 0 : a.sider, isTreeSider: w, ...E }), N("div", { className: R("ff-data-table-container", a == null ? void 0 : a.container), children: [c(vt, { listCode: e, isConditionFormLayout: z }), c(ea, { title: h, className: a == null ? void 0 : a.toolbar, tabs: y, tab: M, onTabChange: A }), c(Ha, { ..._, className: "ff-data-table-content", columns: r, dataSource: i, operationRender: j ? (v) => c("div", { className: "ff-data-table-actions", children: u == null ? void 0 : u.reduce((se, V, me) => [...se, c(S.Link, { size: "small", uuid: V.uuid, type: V.type, name: V.name, widget: V.widget, widgetType: V.widgetType, widgetProps: V.widgetProps, widgetData: V.widgetData, widgetSetting: V.widgetSetting, widgetContainerProps: V.widgetContainerSetting, data: v, onAfterClick: ($e) => $e !== !1 && (D == null ? void 0 : D(V.isRefresh, data)) }, V.uuid || me)], []) }) : null }), c(aa, { isPaginate: b, isOperations: o, operations: l, total: L, page: J, pageSize: K })] })] });
const { getBase62params: q, onClickCallback: D, onTabChange: W } = Ge(Le), { total: A, page: L, pageSize: K, tab: M } = (q == null ? void 0 : q()) || {}, G = ge((j, v, se) => c(Ba, { className: R("ff-data-list-framework-item", t), operations: r && v ? l == null ? void 0 : l.filter((V) => !(m && V.uuid && u.has(V.uuid)) || u.get(V.uuid).includes(v == null ? void 0 : v[m])) : [], data: d ? { [d]: v } : v, children: j, onClickCallback: D }), [d, m, r, D, l, u]);
return N("div", { className: R("ff-data-list-framework", e), children: [c(ta, { className: a == null ? void 0 : a.sider, isTreeSider: E, ...z }), N("div", { className: R("ff-data-list-container", a == null ? void 0 : a.container), children: [c(vt, { className: a == null ? void 0 : a.filter, isConditionFormLayout: w }), c(ea, { title: f, className: a == null ? void 0 : a.toolbar, tabs: b, tab: M, onTabChange: W }), c(Ya, { ...h, className: a == null ? void 0 : a.content, style: { "--col-num": (y == null ? void 0 : y.colNum) || 1 }, primaryKey: m, itemRender: G, dataSource: n }), c(aa, { className: a == null ? void 0 : a.footer, isPaginate: i, isOperations: s, operations: o, total: A, page: L, pageSize: K })] })] });
}, Ba = ({ className: e, operations: t, children: a, data: n, onClickCallback: i }) => N("div", { className: R("data-list-grid-layout-item-container", e), children: [a, !!(t != null && t.length) && c("div", { className: "data-list-grid-layout-item-actions", children: t.map((r) => c("span", { className: "data-list-grid-layout-item-action", children: c(S.Link, { uuid: r.uuid, type: r.type, name: r.name, widget: r.widget, widgetType: r.widgetType, widgetProps: r.widgetProps, widgetSetting: r.widgetSetting, widgetContainerProps: r.widgetContainerSetting, data: n, onAfterClick: (s) => s !== !1 && (i == null ? void 0 : i(r.isRefresh, n)) }, r.uuid || useId()) }, (r == null ? void 0 : r.uuid) || useId())) })] }), Ua = ({ listCode: e, className: t, classNames: a = {}, itemClassName: n, dataSource: i, columns: r, isItemOperations: s, isBatchOperations: o, batchOperations: l, itemOperations: u, itemOperationsAccess: d, resource: m, primaryKey: f, title: h, tabs: y, isPaginate: b, isTreeSider: w, treeSiderConfig: E, isConditionFormLayout: z, ...q }) => {
const { getBase62params: D, onClickCallback: W, onTabChange: A } = Ge(Le), { total: L, page: K, tab: M, pageSize: G } = (D == null ? void 0 : D()) || {}, j = gt(u, i, d, f);
return N("div", { className: R("ff-data-table-framework", t), children: [c(ta, { className: a == null ? void 0 : a.sider, isTreeSider: w, ...E }), N("div", { className: R("ff-data-table-container", a == null ? void 0 : a.container), children: [c(vt, { listCode: e, isConditionFormLayout: z }), c(ea, { title: h, className: a == null ? void 0 : a.toolbar, tabs: y, tab: M, onTabChange: A }), c(Ha, { ...q, className: "ff-data-table-content", columns: r, dataSource: i, operationRender: j ? (v) => c("div", { className: "ff-data-table-actions", children: u == null ? void 0 : u.reduce((se, V, me) => [...se, c(S.Link, { size: "small", uuid: V.uuid, type: V.type, name: V.name, widget: V.widget, widgetType: V.widgetType, widgetProps: V.widgetProps, widgetData: V.widgetData, widgetSetting: V.widgetSetting, widgetContainerProps: V.widgetContainerSetting, data: v, onAfterClick: ($e) => $e !== !1 && (W == null ? void 0 : W(V.isRefresh, data)) }, V.uuid || me)], []) }) : null }), c(aa, { isPaginate: b, isOperations: o, operations: l, total: L, page: K, pageSize: G })] })] });
}, Le = C.createContext({ listCode: "", getBase62params: (e, t) => {
}, onReload: () => {
}, onClickCallback: () => {
@ -232,7 +232,7 @@ const ae = class ae {
we = new WeakMap(), ue = new WeakMap(), Oe = new WeakMap(), at = new WeakMap(), F(ae, we, null), k(ae, "getInstance", () => (p(ae, we) || B(ae, we, new ae()), p(ae, we)));
let pt = ae;
const Xt = pt.getInstance(), kt = C.forwardRef(({ listCode: e, base62params: t, className: a, itemClassName: n, theme: i, themeProps: r, classNames: s }, o) => {
const l = oa(), u = Q(t), d = Q(/* @__PURE__ */ new Map()), m = Q([]), [{ resource: f, primaryKey: h, batchOperations: y = [], itemOperations: b = [], columns: w = [], themeConfig: E, theme: z, isConditionFormLayout: _ = !1, isTreeSider: H, treeSiderConfig: D, isItemGridLayout: A, itemGridLayout: L, title: J, isPaginate: M, tabs: K }, j] = P({ isItemGridLayout: !1, itemGridLayout: {} }), v = g.throttle((T) => {
const l = oa(), u = Q(t), d = Q(/* @__PURE__ */ new Map()), m = Q([]), [{ resource: f, primaryKey: h, batchOperations: y = [], itemOperations: b = [], columns: w = [], themeConfig: E, theme: z, isConditionFormLayout: q = !1, isTreeSider: D, treeSiderConfig: W, isItemGridLayout: A, itemGridLayout: L, title: K, isPaginate: M, tabs: G }, j] = P({ isItemGridLayout: !1, itemGridLayout: {} }), v = g.throttle((T) => {
m.current = [], x.list(e, g.pick({ ...u.current, ...T }, ["tab", "page", "pageSize", "condition", "sider", "keyword"])).then(({ keyword: U, condition: Ve, total: xe, tab: he, sider: Ee, page: oe, pageSize: le, operationsAccess: ce, dataSource: Te }) => {
u.current = { tab: he, condition: Ve, sider: Ee, keyword: U, total: xe, pageSize: le, page: Te != null && Te.length ? oe : 1 }, m.current = Te, d.current = new Map(ce), l();
});
@ -264,7 +264,7 @@ const Xt = pt.getInstance(), kt = C.forwardRef(({ listCode: e, base62params: t,
} else T === 1 && me();
};
C.useImperativeHandle(o, () => ({ onReload: me, onClickCallback: $e }));
const it = { listCode: e, title: J, itemClassName: n, classNames: s, resource: f, primaryKey: h, theme: i || z, themeProps: r || E, isTreeSider: H, treeSiderConfig: D, isPaginate: M, tabs: K, isItemOperations: se, isBatchOperations: V, batchOperations: y, itemOperations: b, isItemGridLayout: A, columns: w, itemGridLayout: L, isConditionFormLayout: _, itemOperationsAccess: d.current, dataSource: m.current };
const it = { listCode: e, title: K, itemClassName: n, classNames: s, resource: f, primaryKey: h, theme: i || z, themeProps: r || E, isTreeSider: D, treeSiderConfig: W, isPaginate: M, tabs: G, isItemOperations: se, isBatchOperations: V, batchOperations: y, itemOperations: b, isItemGridLayout: A, columns: w, itemGridLayout: L, isConditionFormLayout: q, itemOperationsAccess: d.current, dataSource: m.current };
return c(Da, { ...it, className: R("ff-data-list-helper", a), getBase62params: (T, U, Ve = !1) => T == "init" ? t : T ? g.get(u.current, T, U) : u.current, onReload: me, onClickCallback: $e, onConditonChange: (T, U) => v({ keyword: U, condition: Tt(u.current.condition || {}, { $merge: T || {} }), page: 1 }), onTabChange: (T) => v({ tab: T, page: 1 }), onSiderChange: (T) => v({ sider: T, page: 1 }), onKeywordChange: (T) => v({ keyword: T, page: 1 }), onPageChange: (T, U) => v({ page: T, pageSize: U }), onPageSizeChange: (T) => v({ pageSize: T, page: 1 }) });
}), Zt = (e, t, a, n, i = {}, r = 0) => {
const s = { "--grid-layout-h": `${n}`, "--grid-layout-w": `${a}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" };
@ -363,7 +363,7 @@ const Gn = ({ widget: e, widgetPrefix: t = "@pkg/grid-layouts", basicForm: a, ..
return c("div", { className: R("ff-data-list-content", u), style: d, children: g.isEmpty(r) ? l : r == null ? void 0 : r.map((h, y) => c(C.Fragment, { children: o(C.cloneElement(f, { data: h }), h, y) }, `${m}-${(h == null ? void 0 : h[i]) || y}`)) });
}, Qa = ({ component: e }) => {
const { base62params: t } = $a();
return c(q, { children: c(kt, { listCode: e, base62params: x.decode(t) }) });
return c(J, { children: c(kt, { listCode: e, base62params: x.decode(t) }) });
}, Xa = () => "Empty", Za = ({ component: e, $setting: t }) => {
const [a, n] = P();
return $(() => {
@ -458,7 +458,7 @@ const ne = class ne {
};
Ce = new WeakMap(), Z = new WeakMap(), be = new WeakMap(), ke = new WeakMap(), Je = new WeakMap(), Ke = new WeakMap(), F(ne, Ce, null), k(ne, "getInstance", () => (p(ne, Ce) || B(ne, Ce, new ne()), p(ne, Ce)));
let mt = ne;
const en = ({ to: e, replace: t }) => Ta() ? C.createElement(Fa, { to: e, replace: t }) : (window.document.location = e, "redirect"), Pe = mt.getInstance(), je = new Worker(new URL("/ff-worker/index.js", self.location)), Vt = { getConfigure: (e) => De.get(e), route: { redirect: (...e) => Pe.redirect(...e), getPageParams: (...e) => Pe.getPageParams(...e), getCurrentRoute: () => Pe.getCurrentRoute() }, popup: { notification: (...e) => G.notification(...e), success: (...e) => G.success(...e), error: (...e) => G.error(...e), form: (...e) => G.form(...e), modal: (...e) => G.modal(...e), confirm: (...e) => G.confirm(...e) } };
const en = ({ to: e, replace: t }) => Ta() ? C.createElement(Fa, { to: e, replace: t }) : (window.document.location = e, "redirect"), Pe = mt.getInstance(), je = new Worker(new URL("/ff-worker/index.js", self.location)), Vt = { getConfigure: (e) => De.get(e), route: { redirect: (...e) => Pe.redirect(...e), getPageParams: (...e) => Pe.getPageParams(...e), getCurrentRoute: () => Pe.getCurrentRoute() }, popup: { notification: (...e) => _.notification(...e), success: (...e) => _.success(...e), error: (...e) => _.error(...e), form: (...e) => _.form(...e), modal: (...e) => _.modal(...e), confirm: (...e) => _.confirm(...e) } };
var nt, ze, ve;
const I = class I {
constructor() {
@ -595,10 +595,10 @@ const Ne = ht.getInstance(), oa = () => {
s && X.getWidgetComponent(s).then(({ defaultProps: u = {}, default: d }) => ({ default: ca(d, u, i) })).catch((u) => ({ default: () => `${u}` })).then((u) => l(C.createElement(u.default, r)));
}, [s]), o && C.cloneElement(o, r);
}, ca = (e, t = {}, a = null) => (n) => {
const { type: i, code: r, label: s, noStyle: o, placeholder: l, extras: u, validators: d, help: m, isVirtual: f, $isReserved: h, initialValue: y, initialValueLanguage: b, convertJs: w, convertJsSetting: E, widgetPerfix: z, boxStyle: _, widgetDecorator: H, subWidgets: D, ...A } = { ...t, ...n }, L = nn(d || {}, r, i), J = { label: s, noStyle: o, colon: !1, layout: "vertical" }, M = { placeholder: l, ...A }, K = ge((j) => j == null ? void 0 : g.toPrimitive(j, i), [i]);
return c(Wt, { name: r, rules: L, initialValue: K(y), normalize: K, children: (j, v, se) => {
const { type: i, code: r, label: s, noStyle: o, placeholder: l, extras: u, validators: d, help: m, isVirtual: f, $isReserved: h, initialValue: y, initialValueLanguage: b, convertJs: w, convertJsSetting: E, widgetPerfix: z, boxStyle: q, widgetDecorator: D, subWidgets: W, ...A } = { ...t, ...n }, L = nn(d || {}, r, i), K = { label: s, noStyle: o, colon: !1, layout: "vertical" }, M = { placeholder: l, ...A }, G = ge((j) => j == null ? void 0 : g.toPrimitive(j, i), [i]);
return c(Wt, { name: r, rules: L, initialValue: G(y), normalize: G, children: (j, v, se) => {
var V;
return c(e, { type: i, rcform: se, itemProps: { validateStatus: v.errors.length > 0 ? "error" : "success", tooltip: m, help: v.errors.length > 0 ? v.errors.join("、") : null, required: ((V = L == null ? void 0 : L[0]) == null ? void 0 : V.required) || !1, ...J }, fieldProps: { ...M, ...j }, $setting: u || {} });
return c(e, { type: i, rcform: se, itemProps: { validateStatus: v.errors.length > 0 ? "error" : "success", tooltip: m, help: v.errors.length > 0 ? v.errors.join("、") : null, required: ((V = L == null ? void 0 : L[0]) == null ? void 0 : V.required) || !1, ...K }, fieldProps: { ...M, ...j }, $setting: u || {} });
} });
}, St = ({ cols: e = 24, rowHeight: t = 16, itemMargin: a = [8, 16], containerPadding: n = [0, 0], fields: i = [], children: r }) => {
const s = ra(i, ca, "@pkg/grid-layout-forms");
@ -607,29 +607,29 @@ const Ne = ht.getInstance(), oa = () => {
St.propTypes = { fields: O.array };
const cn = (It = St, ({ code: e, layout: t, name: a, primaryKey: n = 0, style: i = {}, formProps: r = {}, form: s, isPreview: o = !1, className: l, onFinish: u, onValuesChange: d = () => {
}, ...m }) => {
const { align: f, autoComplete: h, resource: y, items: b, hides: w, rowHeight: E, marginX: z, marginY: _, cols: H, listenChangeFields: D, listenChangeFieldsFunc: A, pk: L, uuid: J } = an(e), [M] = re.useForm(s), K = pe(() => [{ name: "__PK__", value: L }, { name: "__PROPS__", value: r }, { name: "__RESOURCE__", value: y }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: J }, { name: "__PRIMARY_KEY__", value: n }], [L, e, J, y, n, r]);
return N(re, { className: l, name: a || e, layout: t || f, fields: K, form: M, autoComplete: h, style: { ...i, position: "relative" }, onFinish: u, onValuesChange: (j, v) => (({ changedValues: se, allValues: V, listenChangeFields: me, listenChangeFieldsFunc: $e, onValuesChange: it, code: T }) => {
const { align: f, autoComplete: h, resource: y, items: b, hides: w, rowHeight: E, marginX: z, marginY: q, cols: D, listenChangeFields: W, listenChangeFieldsFunc: A, pk: L, uuid: K } = an(e), [M] = re.useForm(s), G = pe(() => [{ name: "__PK__", value: L }, { name: "__PROPS__", value: r }, { name: "__RESOURCE__", value: y }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: K }, { name: "__PRIMARY_KEY__", value: n }], [L, e, K, y, n, r]);
return N(re, { className: l, name: a || e, layout: t || f, fields: G, form: M, autoComplete: h, style: { ...i, position: "relative" }, onFinish: u, onValuesChange: (j, v) => (({ changedValues: se, allValues: V, listenChangeFields: me, listenChangeFieldsFunc: $e, onValuesChange: it, code: T }) => {
it(se, V), $e && Array.isArray(me) && Ne.exec($e, { changedValues: se, allValues: V }, { getFieldValue: M.getFieldValue, setFieldValue: M.setFieldValue, setFieldsValue: M.setFieldsValue, isFieldTouched: M.isFieldTouched, isFieldsTouched: M.isFieldsTouched });
})({ changedValues: j, allValues: v, listenChangeFields: D, listenChangeFieldsFunc: A, onValuesChange: d, code: e }), children: [c(It, { ...m, form: M, code: e, fields: b, cols: H, rowHeight: E, itemMargin: [z, _] }), w == null ? void 0 : w.map((j) => {
})({ changedValues: j, allValues: v, listenChangeFields: W, listenChangeFieldsFunc: A, onValuesChange: d, code: e }), children: [c(It, { ...m, form: M, code: e, fields: b, cols: D, rowHeight: E, itemMargin: [z, q] }), w == null ? void 0 : w.map((j) => {
var v;
return c(Wt, { name: j.code, children: c(on, { form: M, name: j.code, type: j.type, initialValue: j.initialValue, initialValueLanguage: (v = j.extras) == null ? void 0 : v.initialValueLanguage }) }, JSON.stringify(j.code));
})] });
})] }, e);
});
var It;
const da = ({ $setting: e, $close: t, extras: a, code: n, primaryKey: i, ...r }) => {
const [s] = re.useForm(), o = rn(n, i, e);
return $(() => {
o && s.setFieldsValue(o);
}, [o]), c(q, { actions: N(C.Fragment, { children: [c(S, { name: "保存", type: "primary", widget: () => {
}, [o]), c(J, { actions: N(C.Fragment, { children: [c(S, { name: "保存", type: "primary", widget: () => {
const l = s.getFieldValue("__RESOURCE__"), { initDataUri: u = `/api/${n}` } = e || {};
s.validateFields(!0).then((d) => l ? g.pick(d, [l]) : d).then((d) => x.post(i ? `${u}/${i}` : `${u}`, d).msg(t)).catch(() => G.error("请先完善表单信息", { duration: 2e3 }));
s.validateFields(!0).then((d) => l ? g.pick(d, [l]) : d).then((d) => x.post(i ? `${u}/${i}` : `${u}`, d).msg(t)).catch(() => _.error("请先完善表单信息", { duration: 2e3 }));
} }), c(S, { name: "取消", widget: () => t(!1) })] }), extras: a, children: c(cn, { form: s, code: n, primaryKey: i, ...r }) });
}, dn = (e, t, { isReplaceRouteHistory: a = !1 } = {}) => Pe.redirect(t, e, { replace: a }), At = (e, t, { status: { loading: a, disabled: n }, setStatus: i }) => {
const r = { loading: (s) => s === void 0 ? a : i((o) => ({ ...o, loading: s })), disabled: (s) => s === void 0 ? n : i((o) => ({ ...o, disabled: s })) };
return g.isFunction(t) ? t.call(null, { ...e, ...r }) : g.isString(t) && t ? Ne.exec(t, e, r) : null;
}, Mt = (e, t, a, n) => g.isString(t) && t ? X.getWidgetComponent(t).then(({ default: i }) => G.modal(i, { ...e, $setting: a }, n)).catch((i) => {
G.error(t, { content: i.toString() });
}) : G.modal(t, { ...e, $setting: a }, n), un = (e, t, a, n) => G.modal(da, { ...e, $setting: a, code: t }, n), gn = (e, t, a, n) => G.modal(kt, { base62params: e, $setting: a, listCode: t }, n), pn = ({ widget: e, widgetType: t, widgetData: a, widgetProps: n, widgetSetting: i, widgetContainerProps: r }, { onAfterClick: s, onBeforeClick: o }) => {
}, Mt = (e, t, a, n) => g.isString(t) && t ? X.getWidgetComponent(t).then(({ default: i }) => _.modal(i, { ...e, $setting: a }, n)).catch((i) => {
_.error(t, { content: i.toString() });
}) : _.modal(t, { ...e, $setting: a }, n), un = (e, t, a, n) => _.modal(da, { ...e, $setting: a, code: t }, n), gn = (e, t, a, n) => _.modal(kt, { base62params: e, $setting: a, listCode: t }, n), pn = ({ widget: e, widgetType: t, widgetData: a, widgetProps: n, widgetSetting: i, widgetContainerProps: r }, { onAfterClick: s, onBeforeClick: o }) => {
const l = Ge(Le), [u, d] = P({ leading: !0, trailing: !1 }), m = pe(() => {
switch (t) {
case "redirect":
@ -661,20 +661,20 @@ const da = ({ $setting: e, $close: t, extras: a, code: n, primaryKey: i, ...r })
}
}, yt = ({ className: e, type: t, style: a = {}, ...n }) => c("span", { role: "img", className: R("ff-iconfont", e), style: a, ...n, children: c("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: c("use", { xlinkHref: `#${t}` }) }) });
yt.propTypes = { className: O.string, type: O.string.isRequired, style: O.object }, yt.init = ft;
const Qe = (e) => function({ className: t, children: a, name: n, icon: i, type: r = "default", iconPosition: s = "start", noAuthType: o, onAfterClick: l, onBeforeClick: u, data: d, loading: m, disabled: f, tooltip: h, popConfirm: y, widget: b, widgetType: w, widgetData: E, widgetProps: z, widgetSetting: _, widgetContainerProps: H, ...D }) {
const Qe = (e) => function({ className: t, children: a, name: n, icon: i, type: r = "default", iconPosition: s = "start", noAuthType: o, onAfterClick: l, onBeforeClick: u, data: d, loading: m, disabled: f, tooltip: h, popConfirm: y, widget: b, widgetType: w, widgetData: E, widgetProps: z, widgetSetting: q, widgetContainerProps: D, ...W }) {
const A = { type: "primary", className: R("ff-button", t), iconPosition: s };
r === "danger" ? A.danger = !0 : r === "default" && (A.type = r), e === "link" || e === "dashed" ? (A.type = e, r === "default" && (A.className = R(A.className, "ff-default"))) : e !== "circle" && e !== "round" || (A.shape = e), i && (A.icon = c(yt, { type: i }));
const [L, J] = P(!1), [M, { disabled: K, loading: j }] = pn({ widget: b, widgetType: w, widgetData: E, widgetProps: z, widgetSetting: _, widgetContainerProps: H }, { onAfterClick: l, onBeforeClick: u });
return c(ka, { okText: "确定", cancelText: "取消", ...y || {}, disabled: K || f, open: L, onOpenChange: (v) => {
if (!v) return J(v);
y ? J(v) : M(d);
const [L, K] = P(!1), [M, { disabled: G, loading: j }] = pn({ widget: b, widgetType: w, widgetData: E, widgetProps: z, widgetSetting: q, widgetContainerProps: D }, { onAfterClick: l, onBeforeClick: u });
return c(ka, { okText: "确定", cancelText: "取消", ...y || {}, disabled: G || f, open: L, onOpenChange: (v) => {
if (!v) return K(v);
y ? K(v) : M(d);
}, onConfirm: () => {
M(d);
}, onClick: (v) => {
v.stopPropagation();
}, children: c(va, { ...h, title: L ? null : h == null ? void 0 : h.title, trigger: ["hover", "click"], children: c(lt, { loading: j || m, disabled: K || f, ...A, ...D, children: a || n }) }) });
}, children: c(va, { ...h, title: L ? null : h == null ? void 0 : h.title, trigger: ["hover", "click"], children: c(lt, { loading: j || m, disabled: G || f, ...A, ...W, children: a || n }) }) });
}, S = Qe("default"), mn = Qe("link"), hn = Qe("circle"), fn = Qe("round"), yn = Qe("dashed"), Bt = ({ data: e, widget: t, widgetType: a = "fsdpf-component", children: n, widgetData: i, widgetProps: r, widgetSetting: s, widgetContainerProps: o }) => {
const l = Ge(Le), [u, d] = P(!1), [m, f] = P("hover"), [h, y] = P({}), [b, w] = P(), { placement: E, align: z, arrow: _ = { pointAtCenter: !0 }, ...H } = o || {};
const l = Ge(Le), [u, d] = P(!1), [m, f] = P("hover"), [h, y] = P({}), [b, w] = P(), { placement: E, align: z, arrow: q = { pointAtCenter: !0 }, ...D } = o || {};
$(() => {
a == "grid-layout-form" ? w(C.createElement(da, { ...i, $setting: s, code: t })) : a == "data-list" ? w(C.createElement(kt, { base62params: e, $setting: s, listCode: t })) : g.isString(t) ? X.getWidgetComponent(t).then(({ default: L }) => {
w(C.createElement(L, { ...i, $setting: s }));
@ -682,12 +682,12 @@ const Qe = (e) => function({ className: t, children: a, name: n, icon: i, type:
}, [t, a, i]), $(() => {
Promise.resolve(_t(r, e, { list: l })).then(y);
}, [r, e]);
const D = (L) => {
const W = (L) => {
d(L), !L && f("hover");
}, A = () => {
d(!0), f("click");
};
return c(Sa, { zIndex: 1080, placement: E, onPopupClick: A, onClick: A, open: u, align: z, arrow: _, trigger: m, content: c(wn, { ...H, children: b && C.cloneElement(b, { ...h, $close: () => D(!1) }) }), children: n, onOpenChange: D });
return c(Sa, { zIndex: 1080, placement: E, onPopupClick: A, onClick: A, open: u, align: z, arrow: q, trigger: m, content: c(wn, { ...D, children: b && C.cloneElement(b, { ...h, $close: () => W(!1) }) }), children: n, onOpenChange: W });
}, wn = ({ title: e, className: t, children: a, width: n, height: i, ...r }) => {
const [s, o] = P({}), l = ge((m, f) => o((h) => ({ ...h, [m]: f })), []), u = ge((m) => o((f) => ({ ...f, [m]: void 0 })), []), d = e ? C.createElement("div", { className: "ff-popup-title" }, e) : s == null ? void 0 : s.title;
return c(_e.Provider, { value: { ele: s, mount: l, unmount: u }, children: N("div", { className: R("ff-popup ff-popover", t), style: { width: n, height: i }, ...r, children: [N("div", { className: "ff-popup-header", children: [d, s == null ? void 0 : s["sub-title"]] }), a, N("div", { className: "ff-popup-footer", children: [s == null ? void 0 : s.extras, s == null ? void 0 : s.actions] })] }) });
@ -695,7 +695,7 @@ const Qe = (e) => function({ className: t, children: a, name: n, icon: i, type:
Bt.propTypes = { widgetType: O.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }, S.propTypes = { type: O.oneOf(["primary", "default", "danger", ""]), name: O.string, icon: O.string, iconPosition: O.oneOf(["start", "end"]), data: O.any, widget: O.any, widgetType: O.oneOf(["destroy", "redirect", "func", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: O.object, widgetProps: O.object, widgetSetting: O.object, widgetContainerProps: O.object }, S.Link = mn, S.Link.defaultProps = S.defaultProps, S.Link.propTypes = S.propTypes, S.Circle = hn, S.Circle.defaultProps = S.defaultProps, S.Circle.propTypes = S.propTypes, S.Round = fn, S.Round.defaultProps = S.defaultProps, S.Round.propTypes = S.propTypes, S.Dashed = yn, S.Dashed.defaultProps = S.defaultProps, S.Dashed.propTypes = S.propTypes, S.Popover = Bt;
const Cn = ({ fields: e, formProps: t, $close: a }) => {
const [n] = re.useForm(), i = pe(() => [{ name: "__PROPS__", value: t }], [t]);
return c(q, { actions: N(C.Fragment, { children: [c(S, { name: "取消", widget: () => a(!1) }), c(S, { name: "确定", type: "primary", widget: () => n.validateFields(!0).then(a) })] }), children: c(re, { fields: i, form: n, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: r, ...s }) => c(ln, { code: r, ...s }, r)) }) });
return c(J, { actions: N(C.Fragment, { children: [c(S, { name: "取消", widget: () => a(!1) }), c(S, { name: "确定", type: "primary", widget: () => n.validateFields(!0).then(a) })] }), children: c(re, { fields: i, form: n, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: r, ...s }) => c(ln, { code: r, ...s }, r)) }) });
}, bn = ({ className: e, $close: t, children: a, title: n, subTitle: i, actions: r, extras: s, zIndex: o, ...l }) => N(La, { ...l, prefixCls: "ff-drawer", className: R("ff-popup", e), height: 378, maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (u) => ({ motionAppear: !0, motionName: `panel-motion-${u}` }), children: [N("div", { className: "ff-popup-header", children: [c("button", { "aria-label": "Close", className: "ff-popup-close", onClick: l.onClose, children: c(bt, { type: "close" }) }), n, i] }), c("div", { className: "ff-popup-body", children: a }), N("div", { className: "ff-popup-footer", children: [s, r] })] }), kn = ({ className: e, $close: t, $event: a, children: n, title: i, subTitle: r, actions: s, extras: o, zIndex: l, placement: u, ...d }) => {
const m = (a == null ? void 0 : a.pageX) === void 0 ? { animation: null, maskAnimation: null, mousePosition: { x: null, y: null } } : { animation: "zoom", maskAnimation: "fade", mousePosition: { x: a == null ? void 0 : a.pageX, y: a == null ? void 0 : a.pageY } };
return c(Va, { ...d, ...m, prefixCls: "ff-modal", modalRender: () => N("div", { className: R("ff-modal-content ff-popup", e), children: [N("div", { className: "ff-popup-header", children: [c("button", { "aria-label": "Close", className: "ff-popup-close", onClick: d.onClose, children: c(bt, { type: "close" }) }), i, r] }), c("div", { className: "ff-popup-body", children: n }), N("div", { className: "ff-popup-footer", children: [o, s] })] }) });
@ -708,27 +708,27 @@ const Cn = ({ fields: e, formProps: t, $close: a }) => {
return c(_e.Provider, { value: { ele: s, mount: d, unmount: m }, children: e && e !== "center" ? c(bn, { ...f, placement: e, open: l, afterOpenChange: (y) => !y && h() }) : c(kn, { ...f, visible: l, afterClose: h }) });
};
ua.propTypes = { placement: O.oneOf(["center", "left", "top", "right", "bottom"]) };
const W = () => {
const H = () => {
const [e, t] = Ra({ maxCount: 6, motion: { motionName: "ff-notification-fade", motionAppear: !0, motionEnter: !0, motionLeave: !0, onLeaveStart: (r) => {
const { offsetHeight: s } = r;
return { height: s };
}, onLeaveActive: () => ({ height: 0, opacity: 0, margin: 0 }) }, prefixCls: "ff-notification" }), [, a] = C.useReducer((r) => r + 1, 0);
$(() => {
W.$onClick = n, W.$queue.forEach(([r, s, o], l, u) => {
H.$onClick = n, H.$queue.forEach(([r, s, o], l, u) => {
i([s, o], ...r), delete u[l];
});
}, []);
const n = (r, s = {}, o = {}) => new Promise((l, u) => i([l, u], r, s, o)), i = ([r, s], o, l = {}, u = {}) => {
const d = W.$index++, m = (f) => ((h, y) => (W.$popups.delete(h), a(), y == null ? void 0 : y()))(d, () => r(f));
const d = H.$index++, m = (f) => ((h, y) => (H.$popups.delete(h), a(), y == null ? void 0 : y()))(d, () => r(f));
if (o === Gt) return e.open({ ...u, key: d, content: C.createElement(o, { ...l, $close: () => e.close(d) }) });
W.$popups.set(d, C.createElement(ua, { zIndex: d, maskClosable: !1, $event: l == null ? void 0 : l.$event, ...u, key: d, $close: m }, C.isValidElement(o) ? C.cloneElement(o, { ...l, $close: m }) : o != null && o.name ? C.createElement(o, { ...l, $close: m }) : o)), a();
H.$popups.set(d, C.createElement(ua, { zIndex: d, maskClosable: !1, $event: l == null ? void 0 : l.$event, ...u, key: d, $close: m }, C.isValidElement(o) ? C.cloneElement(o, { ...l, $close: m }) : o != null && o.name ? C.createElement(o, { ...l, $close: m }) : o)), a();
};
return N(C.Fragment, { children: [Array.from(W.$popups).map(([r, s]) => s), t] });
return N(C.Fragment, { children: [Array.from(H.$popups).map(([r, s]) => s), t] });
};
W.$popups = /* @__PURE__ */ new Map(), W.$index = 0, W.$queue = [], W.$onClick = (...e) => new Promise((t, a) => {
W.$queue.push([e, t, a]);
H.$popups = /* @__PURE__ */ new Map(), H.$index = 0, H.$queue = [], H.$onClick = (...e) => new Promise((t, a) => {
H.$queue.push([e, t, a]);
});
const Ut = (e, t, a = {}) => W.$onClick(e, t, a), st = (e, { showProgress: t, duration: a, ...n } = { duration: 1.5 }) => W.$onClick(Gt, { content: e, ...n }, { showProgress: t, duration: a }), G = { modal: Ut, confirm: (e, t = {}) => W.$onClick(ja, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, a = {}) => Ut(Cn, { formProps: a, fields: e }, { placement: "center", ...t }).then((n) => {
const Ut = (e, t, a = {}) => H.$onClick(e, t, a), st = (e, { showProgress: t, duration: a, ...n } = { duration: 1.5 }) => H.$onClick(Gt, { content: e, ...n }, { showProgress: t, duration: a }), _ = { modal: Ut, confirm: (e, t = {}) => H.$onClick(ja, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, a = {}) => Ut(Cn, { formProps: a, fields: e }, { placement: "center", ...t }).then((n) => {
if (n === !1) throw !1;
return n;
}), notification: st, success: (e, t = { duration: 1.5 }) => st(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => st(e, { ...t, className: "ff-notification-error", icon: "close" }) };
@ -738,7 +738,7 @@ Be.configure({ showSpinner: !1 }), Ue.interceptors.request.use((e) => {
return e.headers.Authorization = t ? `Bearer ${t} ` : void 0, Be.inc(), e;
}, (e) => (Be.done(), Promise.reject({ code: -1, msg: e }))), Ue.interceptors.response.use(({ data: e, headers: t }) => (Be.done(), { ...e, res: t == null ? void 0 : t.res }), function(e) {
return Be.done(), Promise.reject(e.message);
}), window.addEventListener("unhandledrejection", ct.onUnhandledRejection), ct.onMsg = (e, t) => G[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && Pe.redirect(De.get("Common.WEBSITE_LOGIN_PAGE")));
}), window.addEventListener("unhandledrejection", ct.onUnhandledRejection), ct.onMsg = (e, t) => _[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && Pe.redirect(De.get("Common.WEBSITE_LOGIN_PAGE")));
const wt = { appUrl: "", init: (e, t, a) => {
wt.appUrl = a, Ue.defaults.baseURL = a, Ue.defaults.timeout = 15e3, Object.assign(wt, new ct(e, t, Ue));
} }, x = wt;
@ -866,11 +866,11 @@ export {
Ia as P,
pn as Q,
Xt as R,
q as S,
J as S,
_e as T,
Kt as U,
W as V,
G as W,
H as V,
_ as W,
Dn as X,
Wn as Y,
qn as Z,

2
dist/components.js vendored
View File

@ -1,4 +1,4 @@
import { X as s, N as p, Y as n, Z as t, W as d } from "./common/main-CLm93Jv-.js";
import { X as s, N as p, Y as n, Z as t, W as d } from "./common/main-C-TqcCNl.js";
export {
s as Empty,
p as Icon,

2
dist/container.js vendored
View File

@ -1,4 +1,4 @@
import { T as o, X as s, Y as p, Z as t, U as d, W as n, V as r, S as u } from "./common/main-CLm93Jv-.js";
import { T as o, X as s, Y as p, Z as t, U as d, W as n, V as r, S as u } from "./common/main-C-TqcCNl.js";
export {
o as Context,
s as Empty,

2
dist/data-list.js vendored
View File

@ -1,4 +1,4 @@
import { m as s, k as e, e as r, i, n as o, j as D, h as l, l as u, f as L, o as n, D as d, p as m, q as F, s as p, t as C, r as b } from "./common/main-CLm93Jv-.js";
import { m as s, k as e, e as r, i, n as o, j as D, h as l, l as u, f as L, o as n, D as d, p as m, q as F, s as p, t as C, r as b } from "./common/main-C-TqcCNl.js";
export {
s as DataListContent,
e as DataListContext,

View File

@ -1,5 +1,5 @@
import "lodash";
import { a as t } from "../common/main-CLm93Jv-.js";
import { a as t } from "../common/main-C-TqcCNl.js";
export {
t as getDefaultExpandRowKeys
};

View File

@ -1,4 +1,4 @@
import { E as r, I as u, F as e, C as o, M as t, L as F, K as d, J as m } from "./common/main-CLm93Jv-.js";
import { E as r, I as u, F as e, C as o, M as t, L as F, K as d, J as m } from "./common/main-C-TqcCNl.js";
export {
r as GridLayoutForm,
u as GridLayoutFormHelper,

View File

@ -1,5 +1,5 @@
import "lodash";
import { a7 as a } from "../common/main-CLm93Jv-.js";
import { a7 as a } from "../common/main-C-TqcCNl.js";
export {
a as getOptionItemByValue
};

2
dist/grid-layout.js vendored
View File

@ -1,4 +1,4 @@
import { b as d, c as e, H as u, G as i, u as t, d as o } from "./common/main-CLm93Jv-.js";
import { b as d, c as e, H as u, G as i, u as t, d as o } from "./common/main-C-TqcCNl.js";
export {
d as GridLayout,
e as GridLayoutWidget,

View File

@ -1,4 +1,4 @@
import { g as t } from "../common/main-CLm93Jv-.js";
import { g as t } from "../common/main-C-TqcCNl.js";
export {
t as getBoxStyle
};

2
dist/hooks.js vendored
View File

@ -1,7 +1,7 @@
import "lodash";
import "rc-field-form";
import "react";
import { z as p, y as i, A as o, w as r, x as f, B as c, v as m } from "./common/main-CLm93Jv-.js";
import { z as p, y as i, A as o, w as r, x as f, B as c, v as m } from "./common/main-C-TqcCNl.js";
export {
p as useDeepEffect,
i as useDeepEqualEffect,

2
dist/iconfont.js vendored
View File

@ -2,7 +2,7 @@ import "react/jsx-runtime";
import "react";
import "prop-types";
import "classnames";
import { N as a } from "./common/main-CLm93Jv-.js";
import { N as a } from "./common/main-C-TqcCNl.js";
export {
a as default
};

2
dist/index.js vendored
View File

@ -1,4 +1,4 @@
import { a5 as t, a6 as e, a1 as o, a2 as p, _ as n, a3 as c, a0 as r, $ as f, a4 as u } from "./common/main-CLm93Jv-.js";
import { a5 as t, a6 as e, a1 as o, a2 as p, _ as n, a3 as c, a0 as r, $ as f, a4 as u } from "./common/main-C-TqcCNl.js";
export {
t as AppContext,
e as AppGlobalParamsContext,

2
dist/res-ws.js vendored
View File

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

View File

@ -1,7 +1,7 @@
{
"name": "ff",
"private": true,
"version": "0.4.12",
"version": "0.4.13",
"author": "www.fsdpf.com",
"type": "module",
"main": "./dist/index.js",