v0.4.40
This commit is contained in:
parent
b9d0979fcd
commit
208ffec6dc
2
dist/button.js
vendored
2
dist/button.js
vendored
@ -1,4 +1,4 @@
|
||||
import { X as s, W as u, Y as e } from "./common/main-1_OUY3sJ.js";
|
||||
import { X as s, W as u, Y as e } from "./common/main-Dj4H7_Ai.js";
|
||||
import "prop-types";
|
||||
export {
|
||||
s as auth,
|
||||
|
@ -18,7 +18,7 @@ import b, { useEffect as R, useState as $, useCallback as ce, useMemo as Z, useR
|
||||
import g from "lodash";
|
||||
import Ht from "immutability-helper";
|
||||
import V from "classnames";
|
||||
import { Form as Ke, Input as $n, Button as lt, Breadcrumb as Pn, Tree as Nn, Pagination as Tn, Table as En, Empty as Rn, Popconfirm as Fn, Tooltip as On, Popover as Ln } from "antd";
|
||||
import { Form as Ke, Input as $n, Button as lt, Breadcrumb as Nn, Tree as Pn, Pagination as Tn, Table as En, Empty as Rn, Popconfirm as Fn, Tooltip as On, Popover as Ln } from "antd";
|
||||
import { useMergedState as Vn } from "rc-util";
|
||||
import X, { FieldContext as An, Field as Jt } from "rc-field-form";
|
||||
import { useParams as jn, generatePath as In, createBrowserRouter as Mn, useInRouterContext as zn, Navigate as Bn } from "react-router-dom";
|
||||
@ -62,30 +62,30 @@ class Kt {
|
||||
Se = new WeakMap(), Ve = new WeakMap(), $e = new WeakMap(), ie = new WeakMap(), Ce = new WeakMap(), ke = new WeakMap();
|
||||
const Za = () => u("div", { children: "Empty" }), Be = b.createContext({ ele: {}, mount: () => {
|
||||
}, unmount: () => {
|
||||
} }), K = ({ rootClassName: e, className: t, children: n, actions: a, title: r, subTitle: s, extras: i, style: o = {} }) => {
|
||||
} }), _ = ({ rootClassName: e, className: t, children: n, actions: a, title: r, subTitle: s, extras: i, style: o = {} }) => {
|
||||
const { mount: l, unmount: d } = b.useContext(Be);
|
||||
return a && K.Action({ children: a }), r && K.Title({ children: r }), s && K.SubTitle({ children: s }), i && K.Extra({ children: i }), R(() => (l("rootClassName", e), () => d(e)), [e]), u("div", { className: V("ff-container", t), style: o, children: n });
|
||||
return a && _.Action({ children: a }), r && _.Title({ children: r }), s && _.SubTitle({ children: s }), i && _.Extra({ children: i }), R(() => (l("rootClassName", e), () => d(e)), [e]), u("div", { className: V("ff-container", t), style: o, children: n });
|
||||
}, Je = (e) => ({ children: t, className: n }) => {
|
||||
const { mount: a, unmount: r } = b.useContext(Be);
|
||||
return R(() => (a(e, b.createElement("div", { key: `ff-${e}`, className: V(`ff-popup-${e}`, n) }, t)), () => r(e)), [n, t]), null;
|
||||
};
|
||||
K.Action = Je("actions"), K.Title = Je("title"), K.SubTitle = Je("sub-title"), K.Extra = Je("extras"), K.propTypes = { className: k.string, style: k.object, title: k.any, subTitle: k.any, actions: k.any, extras: k.any };
|
||||
const er = () => u(K, { className: "ff-loading", children: O("div", { className: "loader", children: [O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] })] }) }), tr = () => u("div", { children: "NotFound" }), _t = ({ children: e }) => {
|
||||
_.Action = Je("actions"), _.Title = Je("title"), _.SubTitle = Je("sub-title"), _.Extra = Je("extras"), _.propTypes = { className: k.string, style: k.object, title: k.any, subTitle: k.any, actions: k.any, extras: k.any };
|
||||
const er = () => u(_, { className: "ff-loading", children: O("div", { className: "loader", children: [O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), O("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] })] }) }), tr = () => u("div", { children: "NotFound" }), _t = ({ children: e }) => {
|
||||
const [t, n] = $({}), a = ce((s, i) => n((o) => ({ ...o, [s]: i })), []), r = ce((s) => n((i) => ({ ...i, [s]: void 0 })), []);
|
||||
return typeof (e == null ? void 0 : e.type) == "string" ? e : u(Be.Provider, { value: { ele: t, mount: a, unmount: r }, children: b.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) });
|
||||
};
|
||||
_t.propTypes = { children: k.element.isRequired };
|
||||
const Vt = { close: ["M563.8 512l262.5-312.9c4.4-5.2 0.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-0.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"], check: ["M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1 0.4-12.8-6.3-12.8z"], info: ["M512 224m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z", "M544 392h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"] }, Ct = ({ type: e, props: t }) => u("i", { ...t, children: u("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Vt[e] || Vt.info).map((n, a) => u("path", { d: n }, a)) }) }), Gt = ({ className: e, content: t, icon: n, $close: a }) => O(b.Fragment, { children: [n && u("div", { className: V("ff-notification-icon", e), children: u(Ct, { type: n }) }), t] }), Hn = ({}) => u(K, { children: "Confirm" });
|
||||
var de, Pe;
|
||||
const Vt = { close: ["M563.8 512l262.5-312.9c4.4-5.2 0.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9c-4.4 5.2-0.7 13.1 6.1 13.1h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"], check: ["M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1 0.4-12.8-6.3-12.8z"], info: ["M512 224m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z", "M544 392h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"] }, Ct = ({ type: e, props: t }) => u("i", { ...t, children: u("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (Vt[e] || Vt.info).map((n, a) => u("path", { d: n }, a)) }) }), Gt = ({ className: e, content: t, icon: n, $close: a }) => O(b.Fragment, { children: [n && u("div", { className: V("ff-notification-icon", e), children: u(Ct, { type: n }) }), t] }), Hn = ({}) => u(_, { children: "Confirm" });
|
||||
var de, Ne;
|
||||
const te = class te {
|
||||
constructor() {
|
||||
E(this, Pe, /* @__PURE__ */ new Map());
|
||||
v(this, "init", (t) => D(this, Pe, new Map(t)));
|
||||
v(this, "check", (t) => !p(this, Pe).has(t) || p(this, Pe).get(t));
|
||||
E(this, Ne, /* @__PURE__ */ new Map());
|
||||
v(this, "init", (t) => D(this, Ne, new Map(t)));
|
||||
v(this, "check", (t) => !p(this, Ne).has(t) || p(this, Ne).get(t));
|
||||
if (p(te, de)) return p(te, de);
|
||||
}
|
||||
};
|
||||
de = new WeakMap(), Pe = new WeakMap(), E(te, de, null), v(te, "getInstance", () => (p(te, de) || D(te, de, new te()), p(te, de)));
|
||||
de = new WeakMap(), Ne = new WeakMap(), E(te, de, null), v(te, "getInstance", () => (p(te, de) || D(te, de, new te()), p(te, de)));
|
||||
let dt = te;
|
||||
const Jn = dt.getInstance();
|
||||
var ue, Ae;
|
||||
@ -228,8 +228,8 @@ const Kn = (e, t = {}) => Z(() => e == null ? void 0 : e.map(({ widgetByJs: n, w
|
||||
i.current = Ht(i.current, y > -1 ? { [y]: { children: { $splice: [[C, 1, { ...w, children: j }]] } } } : { $splice: [[C, 1, { ...w, children: j }]] });
|
||||
const z = new Map(x);
|
||||
o.current.forEach((I, A) => {
|
||||
var P;
|
||||
(P = z.get(A)) != null && P.some((L) => L == f) || o.current.set(A, I.filter((L) => L !== f));
|
||||
var N;
|
||||
(N = z.get(A)) != null && N.some((L) => L == f) || o.current.set(A, I.filter((L) => L !== f));
|
||||
}), z.forEach((I, A) => {
|
||||
o.current.has(A) ? o.current.set(A, g.uniq([...o.current.get(A) || [], ...I])) : o.current.set(A, I);
|
||||
});
|
||||
@ -250,11 +250,11 @@ const Kn = (e, t = {}) => Z(() => e == null ? void 0 : e.map(({ widgetByJs: n, w
|
||||
const o = Z(() => g.pick(a.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [a.current]);
|
||||
return Object.assign(o, { onTabChange: (l) => i({ tab: l, page: 1 }), onPageChange: (l, d) => i({ page: l, pageSize: d }), onPageSizeChange: (l) => i({ pageSize: l, page: 1 }), onConditionChange: (l, d) => i({ keyword: d, condition: Ht(a.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => i({ sider: l, page: 1 }), onKeywordChange: (l) => i({ keyword: l, page: 1 }), itemOperationsAccess: r.current, dataSource: s.current, onReload: i });
|
||||
}, Yn = ({ className: e, itemClassName: t, classNames: n = {}, dataSource: a, isPaginate: r, isItemOperations: s, isBatchOperations: i, batchOperations: o, itemOperations: l, itemOperationsAccess: d, resource: c, primaryKey: m, title: h, itemGridLayout: f, $setting: y, tabs: C, isConditionFormLayout: w, isTreeSider: x, treeSiderConfig: j }) => {
|
||||
const { getBase62params: z, onClickCallback: I } = Ee(we), { total: A, page: P, pageSize: L } = (z == null ? void 0 : z()) || {}, N = ce((W, U, B) => u(Xn, { className: V("ff-data-list-framework-item", t), operations: s && U ? l == null ? void 0 : l.filter((T) => !(m && T.uuid && d.has(T.uuid)) || d.get(T.uuid).includes(U == null ? void 0 : U[m])) : [], data: c ? { [c]: U } : U, children: W, onClickCallback: I }), [c, m, s, I, l, d]);
|
||||
return O("div", { className: V("ff-data-list-framework", e), children: [u(an, { className: n == null ? void 0 : n.sider, isTreeSider: x, ...j }), O("div", { className: V("ff-data-list-container", n == null ? void 0 : n.container), children: [u(vt, { className: n == null ? void 0 : n.filter, isConditionFormLayout: w }), u(nn, { title: h, className: n == null ? void 0 : n.toolbar, tabs: C }), u(oa, { ...f, className: n == null ? void 0 : n.content, style: { "--col-num": (y == null ? void 0 : y.colNum) || 1 }, primaryKey: m, itemRender: N, dataSource: a }), u(rn, { className: n == null ? void 0 : n.footer, isPaginate: r, isOperations: i, operations: o, total: A, page: P, pageSize: L })] })] });
|
||||
const { getBase62params: z, onClickCallback: I } = Ee(we), { total: A, page: N, pageSize: L } = (z == null ? void 0 : z()) || {}, P = ce((W, U, B) => u(Xn, { className: V("ff-data-list-framework-item", t), operations: s && U ? l == null ? void 0 : l.filter((T) => !(m && T.uuid && d.has(T.uuid)) || d.get(T.uuid).includes(U == null ? void 0 : U[m])) : [], data: c ? { [c]: U } : U, children: W, onClickCallback: I }), [c, m, s, I, l, d]);
|
||||
return O("div", { className: V("ff-data-list-framework", e), children: [u(an, { className: n == null ? void 0 : n.sider, isTreeSider: x, ...j }), O("div", { className: V("ff-data-list-container", n == null ? void 0 : n.container), children: [u(vt, { className: n == null ? void 0 : n.filter, isConditionFormLayout: w }), u(nn, { title: h, className: n == null ? void 0 : n.toolbar, tabs: C }), u(oa, { ...f, className: n == null ? void 0 : n.content, style: { "--col-num": (y == null ? void 0 : y.colNum) || 1 }, primaryKey: m, itemRender: P, dataSource: a }), u(rn, { className: n == null ? void 0 : n.footer, isPaginate: r, isOperations: i, operations: o, total: A, page: N, pageSize: L })] })] });
|
||||
}, Xn = ({ className: e, operations: t, children: n, data: a, onClickCallback: r }) => O("div", { className: V("data-list-grid-layout-item-container", e), children: [n, !!(t != null && t.length) && u("div", { className: "data-list-grid-layout-item-actions", children: t.map((s) => u("span", { className: "data-list-grid-layout-item-action", children: u(S.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: a, confirm: s.confirm, onAfterClick: (i) => i !== !1 && (r == null ? void 0 : r(s.isRefresh, a)) }, s.uuid || Ge()) }, (s == null ? void 0 : s.uuid) || Ge())) })] }), Qn = ({ listCode: e, className: t, classNames: n = {}, itemClassName: a, dataSource: r, columns: s, isItemOperations: i, isBatchOperations: o, batchOperations: l, itemOperations: d, itemOperationsAccess: c, resource: m, primaryKey: h, title: f, tabs: y, isPaginate: C, isTreeSider: w, treeSiderConfig: x, isConditionFormLayout: j, ...z }) => {
|
||||
const { getBase62params: I, onClickCallback: A } = Ee(we), { total: P, page: L, pageSize: N } = (I == null ? void 0 : I()) || {}, W = gt(d, r, c, h);
|
||||
return O("div", { className: V("ff-data-table-framework", t), children: [u(an, { className: n == null ? void 0 : n.sider, isTreeSider: w, ...x }), O("div", { className: V("ff-data-table-container", n == null ? void 0 : n.container), children: [u(vt, { listCode: e, isConditionFormLayout: j }), u(nn, { title: f, className: n == null ? void 0 : n.toolbar, tabs: y }), u(na, { ...z, primaryKey: h, className: "ff-data-table-content", columns: s, dataSource: r, operationRender: W ? (U) => u("div", { className: "ff-data-table-actions", children: d == null ? void 0 : d.reduce((B, T, ee) => [...B, u(S.Link, { size: "small", uuid: T.uuid, type: T.type, name: T.name, widget: T.widget, widgetType: T.widgetType, widgetProps: T.widgetProps, widgetData: T.widgetData, widgetSetting: T.widgetSetting, widgetContainerProps: T.widgetContainerSetting, data: U, confirm: T.confirm, onAfterClick: (H) => H !== !1 && (A == null ? void 0 : A(T.isRefresh, U)) }, T.uuid || ee)], []) }) : null }), u(rn, { isPaginate: C, isOperations: o, operations: l, total: P, page: L, pageSize: N })] })] });
|
||||
const { getBase62params: I, onClickCallback: A } = Ee(we), { total: N, page: L, pageSize: P } = (I == null ? void 0 : I()) || {}, W = gt(d, r, c, h);
|
||||
return O("div", { className: V("ff-data-table-framework", t), children: [u(an, { className: n == null ? void 0 : n.sider, isTreeSider: w, ...x }), O("div", { className: V("ff-data-table-container", n == null ? void 0 : n.container), children: [u(vt, { listCode: e, isConditionFormLayout: j }), u(nn, { title: f, className: n == null ? void 0 : n.toolbar, tabs: y }), u(na, { ...z, primaryKey: h, className: "ff-data-table-content", columns: s, dataSource: r, operationRender: W ? (U) => u("div", { className: "ff-data-table-actions", children: d == null ? void 0 : d.reduce((B, T, ee) => [...B, u(S.Link, { size: "small", uuid: T.uuid, type: T.type, name: T.name, widget: T.widget, widgetType: T.widgetType, widgetProps: T.widgetProps, widgetData: T.widgetData, widgetSetting: T.widgetSetting, widgetContainerProps: T.widgetContainerSetting, data: U, confirm: T.confirm, onAfterClick: (H) => H !== !1 && (A == null ? void 0 : A(T.isRefresh, U)) }, T.uuid || ee)], []) }) : null }), u(rn, { isPaginate: C, isOperations: o, operations: l, total: N, page: L, pageSize: P })] })] });
|
||||
}, we = b.createContext({ listCode: "", getBase62params: (e, t) => {
|
||||
}, onReload: () => {
|
||||
}, onClickCallback: () => {
|
||||
@ -267,13 +267,13 @@ const Kn = (e, t = {}) => Z(() => e == null ? void 0 : e.map(({ widgetByJs: n, w
|
||||
} }), Zn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: r, listCode: s, total: i = 0, page: o = 0, onPageChange: l, pageSize: d = 30, onPageSizeChange: c, tab: m, onTabChange: h, keyword: f, onKeywordChange: y, condition: C, onConditionChange: w, sider: x, onSiderChange: j, ...z }) => {
|
||||
const [I, A] = $();
|
||||
return R(() => {
|
||||
t ? Q.getWidgetComponent(t).then((P) => {
|
||||
if (!P) throw `${t} not found`;
|
||||
return P;
|
||||
}).catch((P) => ({ default: () => `${P}` })).then((P) => A(b.createElement(P.default, { ...z, $setting: n }))) : A(u(e ? Yn : Qn, { ...z, $setting: n }));
|
||||
}, [t, n]), u(we.Provider, { value: { listCode: s, onClickCallback: a, onReload: r, getBase62params: (P, L) => {
|
||||
const N = { tab: m, page: o, pageSize: d, keyword: f, sider: x, condition: C, total: i };
|
||||
return P && P != "init" ? N[P] ?? L : N;
|
||||
t ? Q.getWidgetComponent(t).then((N) => {
|
||||
if (!N) throw `${t} not found`;
|
||||
return N;
|
||||
}).catch((N) => ({ default: () => `${N}` })).then((N) => A(b.createElement(N.default, { ...z, $setting: n }))) : A(u(e ? Yn : Qn, { ...z, $setting: n }));
|
||||
}, [t, n]), u(we.Provider, { value: { listCode: s, onClickCallback: a, onReload: r, getBase62params: (N, L) => {
|
||||
const P = { tab: m, page: o, pageSize: d, keyword: f, sider: x, condition: C, total: i };
|
||||
return N && N != "init" ? P[N] ?? L : P;
|
||||
}, onPageChange: l, onPageSizeChange: c, onTabChange: h, onSiderChange: j, onKeywordChange: y, onConditionChange: w }, children: I && b.cloneElement(I, z) });
|
||||
};
|
||||
var ge, oe, ve, et;
|
||||
@ -301,13 +301,13 @@ const ae = class ae {
|
||||
ge = new WeakMap(), oe = new WeakMap(), ve = new WeakMap(), et = new WeakMap(), E(ae, ge, null), v(ae, "getInstance", () => (p(ae, ge) || D(ae, ge, new ae()), p(ae, ge)));
|
||||
let pt = ae;
|
||||
const en = pt.getInstance(), kt = b.forwardRef(({ listCode: e, base62params: t, className: n, itemClassName: a, theme: r, themeProps: s, classNames: i }, o) => {
|
||||
const [{ resource: l, primaryKey: d, batchOperations: c = [], itemOperations: m = [], columns: h = [], themeConfig: f, theme: y, isConditionFormLayout: C = !1, isTreeSider: w, treeSiderConfig: x, isItemGridLayout: j, itemGridLayout: z, title: I, isPaginate: A, tabs: P }, L] = $({ isItemGridLayout: !1, itemGridLayout: {} }), N = Gn(e, t), [{ dataSource: W, itemOperationsAccess: U, condition: B, tab: T, keyword: ee, page: H, total: nt, pageSize: De, sider: at, onConditionChange: Tt, onTabChange: mn, onKeywordChange: hn, onPageChange: fn, onPageSizeChange: yn, onSiderChange: wn, onReload: rt }, Et] = _n(N, e, d, l), bn = gt(m, W, U, d), Cn = gt(c);
|
||||
const [{ resource: l, primaryKey: d, batchOperations: c = [], itemOperations: m = [], columns: h = [], themeConfig: f, theme: y, isConditionFormLayout: C = !1, isTreeSider: w, treeSiderConfig: x, isItemGridLayout: j, itemGridLayout: z, title: I, isPaginate: A, tabs: N }, L] = $({ isItemGridLayout: !1, itemGridLayout: {} }), P = Gn(e, t), [{ dataSource: W, itemOperationsAccess: U, condition: B, tab: T, keyword: ee, page: H, total: nt, pageSize: De, sider: at, onConditionChange: Tt, onTabChange: mn, onKeywordChange: hn, onPageChange: fn, onPageSizeChange: yn, onSiderChange: wn, onReload: rt }, Et] = _n(P, e, d, l), bn = gt(m, W, U, d), Cn = gt(c);
|
||||
return R(() => {
|
||||
let qe = null;
|
||||
return e && F.get(`/api/_/${e}`).resp(({ data: He, res: kn }) => {
|
||||
He != null && He.isDynamicRefresh && (qe = en.subscribe(() => rt(), kn)), L(He);
|
||||
}).catch(() => L({})), () => qe == null ? void 0 : qe();
|
||||
}, [e]), b.useImperativeHandle(o, () => ({ onReload: rt, onClickCallback: Et })), u(Zn, { listCode: e, title: I, itemClassName: a, classNames: i, resource: l, primaryKey: d, theme: r || y, themeProps: s || f, isTreeSider: w, treeSiderConfig: x, isPaginate: A, tabs: P, isItemOperations: bn, isBatchOperations: Cn, batchOperations: c, itemOperations: m, isItemGridLayout: j, columns: h, itemGridLayout: z, isConditionFormLayout: C, itemOperationsAccess: U, dataSource: W, onConditionChange: Tt, onTabChange: mn, onKeywordChange: hn, onPageChange: fn, onPageSizeChange: yn, onSiderChange: wn, condition: B, tab: T, keyword: ee, page: H, total: nt, pageSize: De, sider: at, className: V("ff-data-list-helper", n), onReload: rt, onClickCallback: Et });
|
||||
}, [e]), b.useImperativeHandle(o, () => ({ onReload: rt, onClickCallback: Et })), u(Zn, { listCode: e, title: I, itemClassName: a, classNames: i, resource: l, primaryKey: d, theme: r || y, themeProps: s || f, isTreeSider: w, treeSiderConfig: x, isPaginate: A, tabs: N, isItemOperations: bn, isBatchOperations: Cn, batchOperations: c, itemOperations: m, isItemGridLayout: j, columns: h, itemGridLayout: z, isConditionFormLayout: C, itemOperationsAccess: U, dataSource: W, onConditionChange: Tt, onTabChange: mn, onKeywordChange: hn, onPageChange: fn, onPageSizeChange: yn, onSiderChange: wn, condition: B, tab: T, keyword: ee, page: H, total: nt, pageSize: De, sider: at, className: V("ff-data-list-helper", n), onReload: rt, onClickCallback: Et });
|
||||
}), tn = (e, t, n, a, r = {}, s = 0) => {
|
||||
const i = { "--grid-layout-h": `${a}`, "--grid-layout-w": `${n}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" };
|
||||
return r != null && r.autoHeight ? i.height = "fit-content" : i["--grid-layout-row"] = `${a}`, r != null && r.alignItems && (i["--grid-layout-box-align-items"] = r.alignItems), r != null && r.justifyContent && (i["--grid-layout-box-justify-content"] = r.justifyContent), i["--grid-layout-box-margin"] = jt(r == null ? void 0 : r.marginTop, r == null ? void 0 : r.marginRight, r == null ? void 0 : r.marginBottom, r == null ? void 0 : r.marginLeft), i["--grid-layout-box-padding"] = jt(r == null ? void 0 : r.paddingTop, r == null ? void 0 : r.paddingRight, r == null ? void 0 : r.paddingBottom, r == null ? void 0 : r.paddingLeft), s && (i.height = `${s}px`), i;
|
||||
@ -334,8 +334,8 @@ const en = pt.getInstance(), kt = b.forwardRef(({ listCode: e, base62params: t,
|
||||
vt.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 nn = ({ className: e, title: t, tabs: n }) => {
|
||||
const { getBase62params: a, onTabChange: r, onReload: s } = Ee(we), { tab: i } = (a == null ? void 0 : a()) || {}, [o, l] = Vn((n == null ? void 0 : n[0].value) ?? (n == null ? void 0 : n[0].code), { value: i, onChange: r });
|
||||
return O("div", { className: V("ff-data-list-toolbar", e), children: [u("div", { className: "ff-data-list-title", children: t }), u(Pn, { className: "ff-data-list-tabs", itemRender: ({ label: d, code: c, value: m }) => u("span", { onClick: () => l(m ?? c), className: V("ff-data-list-tab", { active: (m ?? c) == o }), children: d }), items: n }), O("div", { className: "ff-data-list-actions", children: [u(S.Link, { icon: "icon-reload", widget: () => s() }), u(S.Link, { icon: "icon-setting" })] })] });
|
||||
}, ta = [{ 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: u("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], an = ({ className: e, width: t = 280, isTreeSider: n }) => n ? u(Nn.DirectoryTree, { className: V("ff-data-list-sider", e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: ta }) : null, rn = ({ className: e, operations: t, isOperations: n, isPaginate: a, total: r, page: s, pageSize: i }) => {
|
||||
return O("div", { className: V("ff-data-list-toolbar", e), children: [u("div", { className: "ff-data-list-title", children: t }), u(Nn, { className: "ff-data-list-tabs", itemRender: ({ label: d, code: c, value: m }) => u("span", { onClick: () => l(m ?? c), className: V("ff-data-list-tab", { active: (m ?? c) == o }), children: d }), items: n }), O("div", { className: "ff-data-list-actions", children: [u(S.Link, { icon: "icon-reload", widget: () => s() }), u(S.Link, { icon: "icon-setting" })] })] });
|
||||
}, ta = [{ 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: u("span", { style: { color: "#1677ff" }, children: "sss" }), key: "0-0-1-0" }] }] }], an = ({ className: e, width: t = 280, isTreeSider: n }) => n ? u(Pn.DirectoryTree, { className: V("ff-data-list-sider", e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: ta }) : null, rn = ({ className: e, operations: t, isOperations: n, isPaginate: a, total: r, page: s, pageSize: i }) => {
|
||||
const { onPageChange: o, onPageSizeChange: l, onClickCallback: d } = b.useContext(we);
|
||||
return n && !g.isEmpty(t) || a ? O("div", { className: V("ff-data-list-footer", e), children: [u("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((c, m) => u(S, { 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, onAfterClick: (h) => h !== !1 && (d == null ? void 0 : d(c.isRefresh, null)) }, c.uuid || m)) }), a && u(Tn, { size: "small", total: r, pageSize: i, showSizeChanger: !1, showTotal: (c) => `第 ${s} 页 / 总共 ${c} 条`, onChange: o, onShowSizeChange: l })] }) : null;
|
||||
}, sn = (e, t, n = !0) => n !== !0 && n-- <= 0 ? [] : g.isArray(e) && !g.isEmpty(e) ? e.reduce((a, r) => (Reflect.has(r, t) && Reflect.has(r, "children") && a.push(r[t]), Reflect.has(r, "children") && !g.isEmpty(r.children) ? a.concat(sn(r.children, t, n)) : a), []) : [], na = ({ className: e, primaryKey: t, columns: n = [], dataSource: a = [], operationRender: r, operationWidth: s = 180, ...i }) => {
|
||||
@ -408,7 +408,7 @@ const ir = ({ widget: e, widgetPrefix: t = "@pkg/ff/grid-layouts", basicForm: n,
|
||||
}) });
|
||||
}, la = ({ component: e }) => {
|
||||
const { base62params: t } = jn();
|
||||
return u(K, { children: u(kt, { listCode: e, base62params: F.decode(t) }) });
|
||||
return u(_, { children: u(kt, { listCode: e, base62params: F.decode(t) }) });
|
||||
}, ca = () => "Empty", da = ({ component: e, $setting: t }) => {
|
||||
const [n, a] = $();
|
||||
R(() => {
|
||||
@ -505,22 +505,22 @@ const re = class re {
|
||||
};
|
||||
pe = new WeakMap(), G = new WeakMap(), me = new WeakMap(), he = new WeakMap(), Me = new WeakMap(), ze = new WeakMap(), E(re, pe, null), v(re, "getInstance", () => (p(re, pe) || D(re, pe, new re()), p(re, pe)));
|
||||
let mt = re;
|
||||
const ua = ({ to: e, replace: t }) => zn() ? b.createElement(Bn, { to: e, replace: t }) : (window.document.location = e, "redirect"), le = mt.getInstance(), xe = new Worker(new URL("/ff-worker/index.js", self.location)), Mt = { getConfigure: (e) => Oe.get(e), route: { redirect: (...e) => le.redirect(...e), getPageParams: (...e) => le.getPageParams(...e), getCurrentRoute: () => le.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 tt, Ne, fe;
|
||||
const ua = ({ to: e, replace: t }) => zn() ? b.createElement(Bn, { to: e, replace: t }) : (window.document.location = e, "redirect"), le = mt.getInstance(), xe = new Worker(new URL("/ff-worker/index.js", self.location)), Mt = { getConfigure: (e) => Oe.get(e), route: { redirect: (...e) => le.redirect(...e), getPageParams: (...e) => le.getPageParams(...e), getCurrentRoute: () => le.getCurrentRoute() }, popup: { notification: (...e) => K.notification(...e), success: (...e) => K.success(...e), error: (...e) => K.error(...e), form: (...e) => K.form(...e), modal: (...e) => K.modal(...e), confirm: (...e) => K.confirm(...e) } };
|
||||
var tt, Pe, fe;
|
||||
const M = class M {
|
||||
constructor() {
|
||||
v(this, "exec", (t, n = {}, a = {}, r = "") => new Promise((s, i) => {
|
||||
const o = Ot(M, tt)._++;
|
||||
p(M, Ne).set(o, a), M.mQueue.set(o, [s, i]), xe.postMessage({ id: o, session: r, category: "eval", method: t, args: n });
|
||||
p(M, Pe).set(o, a), M.mQueue.set(o, [s, i]), xe.postMessage({ id: o, session: r, category: "eval", method: t, args: n });
|
||||
}));
|
||||
v(this, "clear", (t) => xe.postMessage({ session: t, category: "clear" }));
|
||||
if (p(M, fe)) return p(M, fe);
|
||||
Promise.resolve().then(() => Aa).then((t) => {
|
||||
Mt.http = t.http;
|
||||
}), xe.addEventListener("message", ({ data: { id: t, task_id: n, method: a, args: r, category: s, data: i, error: o, session: l } }) => {
|
||||
if (s === "eval" && M.mQueue.has(t)) o !== null ? M.mQueue.get(t)[1](o) : M.mQueue.get(t)[0](i), p(M, Ne).delete(t), M.mQueue.delete(t);
|
||||
if (s === "eval" && M.mQueue.has(t)) o !== null ? M.mQueue.get(t)[1](o) : M.mQueue.get(t)[0](i), p(M, Pe).delete(t), M.mQueue.delete(t);
|
||||
else if (s === "util") try {
|
||||
const d = g.get(Mt, a.split("/")) || g.get(p(M, Ne).get(n), a.split("/"));
|
||||
const d = g.get(Mt, a.split("/")) || g.get(p(M, Pe).get(n), a.split("/"));
|
||||
if (!g.isFunction(d)) throw `${a} not found`;
|
||||
Promise.resolve(Reflect.apply(d, void 0, r)).then((c) => {
|
||||
xe.postMessage({ id: t, task_id: n, category: s, method: a, args: r, session: l, data: c, error: null });
|
||||
@ -533,7 +533,7 @@ const M = class M {
|
||||
}, !1);
|
||||
}
|
||||
};
|
||||
tt = new WeakMap(), Ne = new WeakMap(), fe = new WeakMap(), v(M, "mQueue", /* @__PURE__ */ new Map()), E(M, tt, 0), E(M, Ne, /* @__PURE__ */ new Map()), E(M, fe, null), v(M, "getInstance", () => (p(M, fe) || D(M, fe, new M()), p(M, fe)));
|
||||
tt = new WeakMap(), Pe = new WeakMap(), fe = new WeakMap(), v(M, "mQueue", /* @__PURE__ */ new Map()), E(M, tt, 0), E(M, Pe, /* @__PURE__ */ new Map()), E(M, fe, null), v(M, "getInstance", () => (p(M, fe) || D(M, fe, new M()), p(M, fe)));
|
||||
let ht = M;
|
||||
const be = ht.getInstance(), xt = () => {
|
||||
const e = q(!0), [, t] = b.useReducer((n) => n + 1, 0);
|
||||
@ -649,10 +649,10 @@ const be = ht.getInstance(), xt = () => {
|
||||
i && Q.getWidgetComponent(i).then(({ defaultProps: d = {}, default: c }) => ({ default: un(c, d, r) })).catch((d) => ({ default: () => `${d}` })).then((d) => l(b.createElement(d.default, s)));
|
||||
}, [i]), o && b.cloneElement(o, s);
|
||||
}, un = (e, t = {}, n = null) => (a) => {
|
||||
const { type: r, code: s, label: i, noStyle: o, placeholder: l, extras: d, validators: c, help: m, isVirtual: h, $isReserved: f, initialValue: y, initialValueLanguage: C, convertJs: w, convertJsSetting: x, widgetPerfix: j, boxStyle: z, widgetDecorator: I, subWidgets: A, ...P } = { ...t, ...a }, L = pa(c || {}, s, r), N = { label: i, noStyle: o, colon: !1, layout: "vertical" }, W = { placeholder: l, ...P }, U = ce((B) => B == null ? void 0 : Y(B, r), [r]);
|
||||
const { type: r, code: s, label: i, noStyle: o, placeholder: l, extras: d, validators: c, help: m, isVirtual: h, $isReserved: f, initialValue: y, initialValueLanguage: C, convertJs: w, convertJsSetting: x, widgetPerfix: j, boxStyle: z, widgetDecorator: I, subWidgets: A, ...N } = { ...t, ...a }, L = pa(c || {}, s, r), P = { label: i, noStyle: o, colon: !1, layout: "vertical" }, W = { placeholder: l, ...N }, U = ce((B) => B == null ? void 0 : Y(B, r), [r]);
|
||||
return u(Jt, { name: s, rules: L, initialValue: U(y), normalize: U, children: (B, T, ee) => {
|
||||
var H;
|
||||
return u(e, { type: r, rcform: ee, itemProps: { validateStatus: T.errors.length > 0 ? "error" : "success", tooltip: m, help: T.errors.length > 0 ? T.errors.join("、") : null, required: ((H = L == null ? void 0 : L[0]) == null ? void 0 : H.required) || !1, ...N }, fieldProps: { ...W, ...B }, $setting: d || {} });
|
||||
return u(e, { type: r, rcform: ee, itemProps: { validateStatus: T.errors.length > 0 ? "error" : "success", tooltip: m, help: T.errors.length > 0 ? T.errors.join("、") : null, required: ((H = L == null ? void 0 : L[0]) == null ? void 0 : H.required) || !1, ...P }, fieldProps: { ...W, ...B }, $setting: d || {} });
|
||||
} });
|
||||
}, $t = ({ cols: e = 24, rowHeight: t = 16, itemMargin: n = [8, 16], containerPadding: a = [0, 0], fields: r = [], children: s, basicForm: i = null }) => {
|
||||
const o = ln(r, un, "@pkg/ff/grid-layout-forms");
|
||||
@ -661,10 +661,10 @@ const be = ht.getInstance(), xt = () => {
|
||||
$t.propTypes = { fields: k.array };
|
||||
const wa = (zt = $t, ({ code: e, layout: t, name: n, primaryKey: a = 0, style: r = {}, formProps: s = {}, form: i, isPreview: o = !1, className: l, onFinish: d, onValuesChange: c = () => {
|
||||
}, ...m }) => {
|
||||
const { align: h, autoComplete: f, resource: y, items: C, hides: w, rowHeight: x, marginX: j, marginY: z, cols: I, listenChangeFields: A, listenChangeFieldsFunc: P, pk: L, uuid: N } = ga(e), [W] = X.useForm(i), U = Z(() => [{ name: "__PK__", value: L }, { name: "__PROPS__", value: s }, { name: "__RESOURCE__", value: y }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: N }, { name: "__PRIMARY_KEY__", value: a }], [L, e, N, y, a, s]);
|
||||
const { align: h, autoComplete: f, resource: y, items: C, hides: w, rowHeight: x, marginX: j, marginY: z, cols: I, listenChangeFields: A, listenChangeFieldsFunc: N, pk: L, uuid: P } = ga(e), [W] = X.useForm(i), U = Z(() => [{ name: "__PK__", value: L }, { name: "__PROPS__", value: s }, { name: "__RESOURCE__", value: y }, { name: "__LAYOUT_KEY__", value: e }, { name: "__LAYOUT_UUID__", value: P }, { name: "__PRIMARY_KEY__", value: a }], [L, e, P, y, a, s]);
|
||||
return O(X, { className: l, name: n || e, layout: t || h, fields: U, form: W, autoComplete: f, style: { ...r, position: "relative" }, onFinish: d, onValuesChange: (B, T) => (({ changedValues: ee, allValues: H, listenChangeFields: nt, listenChangeFieldsFunc: De, onValuesChange: at, code: Tt }) => {
|
||||
at(ee, H), De && Array.isArray(nt) && be.exec(De, { changedValues: ee, allValues: H }, { getFieldValue: W.getFieldValue, setFieldValue: W.setFieldValue, setFieldsValue: W.setFieldsValue, isFieldTouched: W.isFieldTouched, isFieldsTouched: W.isFieldsTouched });
|
||||
})({ changedValues: B, allValues: T, listenChangeFields: A, listenChangeFieldsFunc: P, onValuesChange: c, code: e }), children: [u(zt, { ...m, form: W, code: e, fields: C, cols: I, rowHeight: x, itemMargin: [j, z] }), w == null ? void 0 : w.map((B) => {
|
||||
})({ changedValues: B, allValues: T, listenChangeFields: A, listenChangeFieldsFunc: N, onValuesChange: c, code: e }), children: [u(zt, { ...m, form: W, code: e, fields: C, cols: I, rowHeight: x, itemMargin: [j, z] }), w == null ? void 0 : w.map((B) => {
|
||||
var T;
|
||||
return u(Jt, { name: B.code, children: u(fa, { form: W, name: B.code, type: B.type, initialValue: B.initialValue, initialValueLanguage: (T = B.extras) == null ? void 0 : T.initialValueLanguage }) }, JSON.stringify(B.code));
|
||||
})] }, e);
|
||||
@ -674,9 +674,9 @@ const gn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: r, ...s })
|
||||
const [i] = X.useForm(), o = ma(a, r, e);
|
||||
return R(() => {
|
||||
o && i.setFieldsValue(o);
|
||||
}, [o]), u(K, { actions: O(b.Fragment, { children: [u(S, { name: "保存", type: "primary", widget: () => {
|
||||
}, [o]), u(_, { actions: O(b.Fragment, { children: [u(S, { name: "保存", type: "primary", widget: () => {
|
||||
const l = i.getFieldValue("__RESOURCE__"), { initDataUri: d = `/api/${a}` } = e || {};
|
||||
i.validateFields(!0).then((c) => l ? g.pick(c, [l]) : c).then((c) => F.post(r ? `${d}/${r}` : `${d}`, c).msg(t)).catch(() => _.error("请先完善表单信息", { duration: 2e3 }));
|
||||
i.validateFields(!0).then((c) => l ? g.pick(c, [l]) : c).then((c) => F.post(r ? `${d}/${r}` : `${d}`, c).msg(t)).catch(() => K.error("请先完善表单信息", { duration: 2e3 }));
|
||||
} }), u(S, { name: "取消", widget: () => t(!1) })] }), extras: n, children: u(wa, { form: i, code: a, primaryKey: r, ...s }) });
|
||||
}, ba = (e, t, n, { isReplaceRouteHistory: a = !1 } = {}) => le.redirect(n, t, { replace: a }), Ca = (e, t = {}, n, a = {}) => {
|
||||
var s;
|
||||
@ -689,9 +689,9 @@ const gn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: r, ...s })
|
||||
}, Bt = (e, t, n, { status: { loading: a, disabled: r }, setStatus: s }) => {
|
||||
const i = { loading: (o) => o === void 0 ? a : s((l) => ({ ...l, loading: o })), disabled: (o) => o === void 0 ? r : s((l) => ({ ...l, disabled: o })) };
|
||||
return g.isFunction(n) ? n.call(null, { ...t, ...i }) : g.isString(n) && n ? be.exec(n, t, i) : null;
|
||||
}, Wt = (e, t, n, a, r) => g.isString(n) && n ? Q.getWidgetComponent(n).then(({ default: s }) => _.modal(s, { ...t, $setting: a }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r)).catch((s) => {
|
||||
_.error(n, { content: s.toString() });
|
||||
}) : _.modal(n, { ...t, $setting: a }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r), ka = (e, t, n, a, r) => _.modal(gn, { ...t, $setting: a, code: n }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r), va = (e, t, n, a, r) => _.modal(kt, { base62params: t, $setting: a, listCode: n }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r), xa = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: r, widgetContainerProps: s }, { onAfterClick: i, onBeforeClick: o }) => {
|
||||
}, Wt = (e, t, n, a, r) => g.isString(n) && n ? Q.getWidgetComponent(n).then(({ default: s }) => K.modal(s, { ...t, $setting: a }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r)).catch((s) => {
|
||||
K.error(n, { content: s.toString() });
|
||||
}) : K.modal(n, { ...t, $setting: a }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r), ka = (e, t, n, a, r) => K.modal(gn, { ...t, $setting: a, code: n }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r), va = (e, t, n, a, r) => K.modal(kt, { base62params: t, $setting: a, listCode: n }, r != null && r.title ? { ...r, title: g.template(r.title)(e) } : r), xa = ({ widget: e, widgetType: t, widgetData: n, widgetProps: a, widgetSetting: r, widgetContainerProps: s }, { onAfterClick: i, onBeforeClick: o }) => {
|
||||
const l = Ee(we), [d, c] = $({ leading: !0, trailing: !1 }), m = Z(() => {
|
||||
switch (t) {
|
||||
case "redirect":
|
||||
@ -707,7 +707,7 @@ const gn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: r, ...s })
|
||||
case "destroy":
|
||||
return g.partialRight(Ca, e, r, s);
|
||||
default:
|
||||
if (Nt(e) || b.isValidElement(e)) return g.partialRight(Wt, e, r, s);
|
||||
if (Pt(e) || b.isValidElement(e)) return g.partialRight(Wt, e, r, s);
|
||||
if (g.isFunction(e)) return g.partialRight(Bt, (r == null ? void 0 : r.code) || e, { status: d, setStatus: c });
|
||||
}
|
||||
return (...h) => console.error("useButton unknown widgetType", t, ...h);
|
||||
@ -726,8 +726,8 @@ const gn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: r, ...s })
|
||||
}, yt = ({ className: e, type: t, style: n = {}, ...a }) => u("span", { role: "img", className: V("ff-iconfont", e), style: n, ...a, children: u("svg", { style: { width: "1em", height: "1em", fill: "currentColor", overflow: "hidden" }, viewBox: "0 0 1024 1024", children: u("use", { xlinkHref: `#${t}` }) }) });
|
||||
yt.propTypes = { className: k.string, type: k.string.isRequired, style: k.object }, yt.init = ft;
|
||||
const Ue = (e) => function({ className: t, children: n, name: a, icon: r, type: s = "default", iconPosition: i = "start", noAuthType: o, onAfterClick: l, onBeforeClick: d, data: c, loading: m, disabled: h, tooltip: f, confirm: y, widget: C, widgetType: w, widgetData: x, widgetProps: j, widgetSetting: z, widgetContainerProps: I, ...A }) {
|
||||
const P = g.isEmpty(f) || !f.enabled ? {} : f, L = g.isEmpty(y) ? { enabled: !1 } : Object.assign({ enabled: !0 }, y), N = { type: "primary", className: V("ff-button", t), iconPosition: i };
|
||||
s === "danger" ? N.danger = !0 : s === "default" && (N.type = s), e === "link" || e === "dashed" ? (N.type = e, s === "default" && (N.className = V(N.className, "ff-default"))) : e !== "circle" && e !== "round" || (N.shape = e), r && (N.icon = u(yt, { type: r }));
|
||||
const N = g.isEmpty(f) || !f.enabled ? {} : f, L = g.isEmpty(y) ? { enabled: !1 } : Object.assign({ enabled: !0 }, y), P = { type: "primary", className: V("ff-button", t), iconPosition: i };
|
||||
s === "danger" ? P.danger = !0 : s === "default" && (P.type = s), e === "link" || e === "dashed" ? (P.type = e, s === "default" && (P.className = V(P.className, "ff-default"))) : e !== "circle" && e !== "round" || (P.shape = e), r && (P.icon = u(yt, { type: r }));
|
||||
const [W, U] = $(!1), [B, { disabled: T, loading: ee }] = xa({ widget: C, widgetType: w, widgetData: x, widgetProps: j, widgetSetting: z, widgetContainerProps: I }, { onAfterClick: l, onBeforeClick: d });
|
||||
return u(Fn, { okText: "确定", cancelText: "取消", ...L, disabled: T || h, open: W, onOpenChange: (H) => {
|
||||
if (!H) return U(H);
|
||||
@ -736,30 +736,30 @@ const Ue = (e) => function({ className: t, children: n, name: a, icon: r, type:
|
||||
B(c);
|
||||
}, onClick: (H) => {
|
||||
H.stopPropagation();
|
||||
}, children: u(On, { ...P, title: W ? null : P == null ? void 0 : P.title, trigger: ["hover", "click"], children: u(lt, { loading: ee || m, disabled: T || h, ...N, ...A, children: n || a }) }) });
|
||||
}, S = Ue("default"), Sa = Ue("link"), $a = Ue("circle"), Pa = Ue("round"), Na = Ue("dashed"), Dt = ({ data: e, widget: t, widgetType: n = "fsdpf-component", children: a, widgetData: r, widgetProps: s, widgetSetting: i, widgetContainerProps: o }) => {
|
||||
}, children: u(On, { ...N, title: W ? null : N == null ? void 0 : N.title, trigger: ["hover", "click"], children: u(lt, { loading: ee || m, disabled: T || h, ...P, ...A, children: n || a }) }) });
|
||||
}, S = Ue("default"), Sa = Ue("link"), $a = Ue("circle"), Na = Ue("round"), Pa = Ue("dashed"), Dt = ({ data: e, widget: t, widgetType: n = "fsdpf-component", children: a, widgetData: r, widgetProps: s, widgetSetting: i, widgetContainerProps: o }) => {
|
||||
const l = Ee(we), [d, c] = $(!1), [m, h] = $("hover"), [f, y] = $({}), [C, w] = $(), { placement: x, align: j, arrow: z = { pointAtCenter: !0 }, getPopupContainer: I, ...A } = o || {};
|
||||
R(() => {
|
||||
n == "grid-layout-form" ? w(b.createElement(gn, { ...r, $setting: i, code: t })) : n == "data-list" ? w(b.createElement(kt, { base62params: e, $setting: i, listCode: t })) : g.isString(t) ? Q.getWidgetComponent(t).then(({ default: N }) => {
|
||||
w(b.createElement(N, { ...r, $setting: i }));
|
||||
}).catch((N) => w(N.toString())) : Nt(t) ? w(b.createElement(t, { ...r, $setting: i })) : b.isValidElement(t) && w(b.cloneElement(t, { ...r, $setting: i }));
|
||||
n == "grid-layout-form" ? w(b.createElement(gn, { ...r, $setting: i, code: t })) : n == "data-list" ? w(b.createElement(kt, { base62params: e, $setting: i, listCode: t })) : g.isString(t) ? Q.getWidgetComponent(t).then(({ default: P }) => {
|
||||
w(b.createElement(P, { ...r, $setting: i }));
|
||||
}).catch((P) => w(P.toString())) : Pt(t) ? w(b.createElement(t, { ...r, $setting: i })) : b.isValidElement(t) && w(b.cloneElement(t, { ...r, $setting: i }));
|
||||
}, [t, n, r]), R(() => {
|
||||
Promise.resolve(Yt(s, e, { list: l })).then(y);
|
||||
}, [s, e]);
|
||||
const P = (N) => {
|
||||
c(N), !N && h("hover");
|
||||
}, L = (N) => {
|
||||
const N = (P) => {
|
||||
c(P), !P && h("hover");
|
||||
}, L = (P) => {
|
||||
c(!0), h("click");
|
||||
};
|
||||
return u(Ln, { zIndex: 1080, placement: x, onPopupClick: L, onClick: L, open: d, align: j, arrow: z, trigger: m, getPopupContainer: I, content: u(Ta, { ...A, children: C && b.cloneElement(C, { ...f, $close: () => P(!1) }) }), children: a, onOpenChange: P });
|
||||
return u(Ln, { zIndex: 1080, placement: x, onPopupClick: L, onClick: L, open: d, align: j, arrow: z, trigger: m, getPopupContainer: I, content: u(Ta, { ...A, children: C && b.cloneElement(C, { ...f, $close: () => N(!1) }) }), children: a, onOpenChange: N });
|
||||
}, Ta = ({ title: e, className: t, children: n, width: a, height: r, ...s }) => {
|
||||
const [i, o] = $({}), l = ce((m, h) => o((f) => ({ ...f, [m]: h })), []), d = ce((m) => o((h) => ({ ...h, [m]: void 0 })), []), c = e ? b.createElement("div", { className: "ff-popup-title" }, e) : i == null ? void 0 : i.title;
|
||||
return u(Be.Provider, { value: { ele: i, mount: l, unmount: d }, children: O("div", { className: V("ff-popup ff-popover", t), style: { width: a, height: r }, ...s, children: [O("div", { className: "ff-popup-header", children: [c, i == null ? void 0 : i["sub-title"]] }), n, O("div", { className: "ff-popup-footer", children: [i == null ? void 0 : i.extras, i == null ? void 0 : i.actions] })] }) });
|
||||
};
|
||||
Dt.propTypes = { widgetType: k.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }, S.propTypes = { type: k.oneOf(["primary", "default", "danger", ""]), name: k.string, icon: k.string, iconPosition: k.oneOf(["start", "end"]), data: k.any, widget: k.any, widgetType: k.oneOf(["destroy", "redirect", "func", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: k.object, widgetProps: k.object, widgetSetting: k.object, widgetContainerProps: k.object, tooltip: k.exact({ title: k.string.isRequired, placement: k.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: k.oneOfType([k.bool, k.number]), getPopupContainer: k.func }), confirm: k.exact({ title: k.string.isRequired, cancelText: k.string, okText: k.string, okType: k.oneOf(["primary", "default", "danger", ""]), placement: k.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: k.oneOfType([k.bool, k.number]), getPopupContainer: k.func, arrow: k.oneOfType([k.bool, k.exact({ pointAtCenter: k.bool })]) }) }, S.Link = Sa, S.Link.defaultProps = S.defaultProps, S.Link.propTypes = S.propTypes, S.Circle = $a, S.Circle.defaultProps = S.defaultProps, S.Circle.propTypes = S.propTypes, S.Round = Pa, S.Round.defaultProps = S.defaultProps, S.Round.propTypes = S.propTypes, S.Dashed = Na, S.Dashed.defaultProps = S.defaultProps, S.Dashed.propTypes = S.propTypes, S.Popover = Dt;
|
||||
Dt.propTypes = { widgetType: k.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) }, S.propTypes = { type: k.oneOf(["primary", "default", "danger", ""]), name: k.string, icon: k.string, iconPosition: k.oneOf(["start", "end"]), data: k.any, widget: k.any, widgetType: k.oneOf(["destroy", "redirect", "func", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: k.object, widgetProps: k.object, widgetSetting: k.object, widgetContainerProps: k.object, tooltip: k.exact({ title: k.string.isRequired, placement: k.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: k.oneOfType([k.bool, k.number]), getPopupContainer: k.func }), confirm: k.exact({ title: k.string.isRequired, cancelText: k.string, okText: k.string, okType: k.oneOf(["primary", "default", "danger", ""]), placement: k.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: k.oneOfType([k.bool, k.number]), getPopupContainer: k.func, arrow: k.oneOfType([k.bool, k.exact({ pointAtCenter: k.bool })]) }) }, S.Link = Sa, S.Link.defaultProps = S.defaultProps, S.Link.propTypes = S.propTypes, S.Circle = $a, S.Circle.defaultProps = S.defaultProps, S.Circle.propTypes = S.propTypes, S.Round = Na, S.Round.defaultProps = S.defaultProps, S.Round.propTypes = S.propTypes, S.Dashed = Pa, S.Dashed.defaultProps = S.defaultProps, S.Dashed.propTypes = S.propTypes, S.Popover = Dt;
|
||||
const Ea = ({ fields: e, formProps: t, $close: n }) => {
|
||||
const [a] = X.useForm(), r = Z(() => [{ name: "__PROPS__", value: t }], [t]);
|
||||
return u(K, { actions: O(b.Fragment, { children: [u(S, { name: "取消", widget: () => n(!1) }), u(S, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: u(X, { fields: r, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: s, ...i }) => u(ya, { code: s, ...i }, s)) }) });
|
||||
return u(_, { actions: O(b.Fragment, { children: [u(S, { name: "取消", widget: () => n(!1) }), u(S, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: u(X, { fields: r, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: s, ...i }) => u(ya, { code: s, ...i }, s)) }) });
|
||||
}, Ra = ({ className: e, $close: t, children: n, title: a, subTitle: r, actions: s, extras: i, zIndex: o, ...l }) => O(Dn, { ...l, prefixCls: "ff-drawer", className: V("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (d) => ({ motionAppear: !0, motionName: `panel-motion-${d}` }), children: [O("div", { className: "ff-popup-header", children: [u("button", { "aria-label": "Close", className: "ff-popup-close", onClick: l.onClose, children: u(Ct, { type: "close" }) }), a, r] }), u("div", { className: "ff-popup-body", children: n }), O("div", { className: "ff-popup-footer", children: [i, s] })] }), Fa = ({ className: e, $close: t, $event: n, children: a, title: r, subTitle: s, actions: i, extras: o, zIndex: l, placement: d, ...c }) => {
|
||||
const m = (n == null ? void 0 : n.pageX) === void 0 ? { animation: null, maskAnimation: null, mousePosition: { x: null, y: null } } : { animation: "zoom", maskAnimation: "fade", mousePosition: { x: n == null ? void 0 : n.pageX, y: n == null ? void 0 : n.pageY } };
|
||||
return u(qn, { ...c, ...m, prefixCls: "ff-modal", modalRender: () => O("div", { className: V("ff-modal-content ff-popup", e), children: [O("div", { className: "ff-popup-header", children: [u("button", { "aria-label": "Close", className: "ff-popup-close", onClick: c.onClose, children: u(Ct, { type: "close" }) }), r, s] }), u("div", { className: "ff-popup-body", children: a }), O("div", { className: "ff-popup-footer", children: [o, i] })] }) });
|
||||
@ -792,7 +792,7 @@ const J = () => {
|
||||
J.$popups = /* @__PURE__ */ new Map(), J.$index = 0, J.$queue = [], J.$onClick = (...e) => new Promise((t, n) => {
|
||||
J.$queue.push([e, t, n]);
|
||||
});
|
||||
const qt = (e, t, n = {}) => J.$onClick(e, t, n), it = (e, { showProgress: t, duration: n, ...a } = { duration: 1.5 }) => J.$onClick(Gt, { content: e, ...a }, { showProgress: t, duration: n }), _ = { modal: qt, confirm: (e, t = {}) => J.$onClick(Hn, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => qt(Ea, { formProps: n, fields: e }, { placement: "center", ...t }).then((a) => {
|
||||
const qt = (e, t, n = {}) => J.$onClick(e, t, n), it = (e, { showProgress: t, duration: n, ...a } = { duration: 1.5 }) => J.$onClick(Gt, { content: e, ...a }, { showProgress: t, duration: n }), K = { modal: qt, confirm: (e, t = {}) => J.$onClick(Hn, { content: e, ...t }, { placement: "center" }), form: (e, t = {}, n = {}) => qt(Ea, { formProps: n, fields: e }, { placement: "center", ...t }).then((a) => {
|
||||
if (a === !1) throw !1;
|
||||
return a;
|
||||
}), notification: it, success: (e, t = { duration: 1.5 }) => it(e, { ...t, className: "ff-notification-success", icon: "check" }), error: (e, t = { duration: 1.5 }) => it(e, { ...t, className: "ff-notification-error", icon: "close" }) };
|
||||
@ -802,13 +802,13 @@ Re.configure({ showSpinner: !1 }), Fe.interceptors.request.use((e) => {
|
||||
return e.headers.Authorization = t ? `Bearer ${t} ` : void 0, Re.inc(), e;
|
||||
}, (e) => (Re.done(), Promise.reject({ code: -1, msg: e }))), Fe.interceptors.response.use(({ data: e, headers: t }) => (Re.done(), { ...e, res: t == null ? void 0 : t.res }), function(e) {
|
||||
return Re.done(), Promise.reject(e.message);
|
||||
}), window.addEventListener("unhandledrejection", ct.onUnhandledRejection), ct.onMsg = (e, t) => _[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && le.redirect(Oe.get("Common.WEBSITE_LOGIN_PAGE")));
|
||||
}), window.addEventListener("unhandledrejection", ct.onUnhandledRejection), ct.onMsg = (e, t) => K[[0, 1].includes(e) ? "success" : "error"](t).then(() => e === 20300 && le.redirect(Oe.get("Common.WEBSITE_LOGIN_PAGE")));
|
||||
const wt = { appUrl: "", init: (e, t, n) => {
|
||||
wt.appUrl = n, Fe.defaults.baseURL = n, Fe.defaults.timeout = 15e3, Object.assign(wt, new ct(e, t, Fe));
|
||||
} }, F = wt;
|
||||
class Pt extends Error {
|
||||
class Nt extends Error {
|
||||
constructor(t, n) {
|
||||
super(n), Error.captureStackTrace && Error.captureStackTrace(this, Pt), !n instanceof Le && (this.name = `${t} Error Runtime`);
|
||||
super(n), Error.captureStackTrace && Error.captureStackTrace(this, Nt), !n instanceof Le && (this.name = `${t} Error Runtime`);
|
||||
}
|
||||
}
|
||||
class Le extends Error {
|
||||
@ -840,7 +840,7 @@ const se = class se {
|
||||
try {
|
||||
return p(this, Te).has("pkg") ? await p(this, Te).get("pkg").get(n) : await import(`${F.appUrl}/api/pkg-import/web?name=${t}`);
|
||||
} catch (a) {
|
||||
throw new Pt(t, a);
|
||||
throw new Nt(t, a);
|
||||
}
|
||||
});
|
||||
v(this, "getRoutes", () => F.get("/api/my-router").then((t) => [...t, { uuid: "data-list-setting", isLayout: !0, uri: "/data-list-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/DataListSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-setting", isLayout: !0, uri: "/grid-layout-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "grid-layout-form-setting", isLayout: !0, uri: "/grid-layout-form-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/GridLayoutFormSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "resource-api-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ResourceApiSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "charts-setting", isLayout: !0, uri: "/resource-api-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ChartsSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "fsm-setting", isLayout: !0, uri: "/fsm-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/FsmSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "component-setting", isLayout: !0, uri: "/component-setting/:category/:categoryUuid", type: "fsdpf-component", component: "@pkg/ff-design/components/ComponentSetting", extra: { layout: "@pkg/ff-design/frameworks/DesignTheme" } }, { uuid: "login", uri: "/login", name: "登录", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/Login" }, { uuid: "not-found", uri: "*", name: "Not Found", type: "fsdpf-component", isLogin: !1, component: "@pkg/ff/components/NotFound" }].map(({ uuid: n, ...a }) => [n, { uuid: n, ...a }])).then((t) => new Map(t)));
|
||||
@ -872,7 +872,7 @@ const se = class se {
|
||||
const { iat: r } = JSON.parse(window.atob((n = a == null ? void 0 : a.split(".")) == null ? void 0 : n[1])), { iat: s, ...i } = F.decode(window.localStorage.getItem(ot) || "", {});
|
||||
return s === r ? Promise.resolve(i) : F.get("/api/mine-info").then(({ User: o = null }) => (window.localStorage.setItem(ot, F.encode({ ...o, iat: r })), o));
|
||||
} catch (a) {
|
||||
console.error(a), t && Popup.error("请登录").then(logout);
|
||||
console.error(a), t && K.error("请登录").then(logout);
|
||||
}
|
||||
return Promise.resolve(null);
|
||||
});
|
||||
@ -890,11 +890,11 @@ const Q = bt.getInstance(), Oa = b.createContext({ user: {}, initUser: () => {
|
||||
}, get: () => {
|
||||
}, assign: () => {
|
||||
}, currentRoute: () => {
|
||||
} }), Nt = (e) => !!(e != null && e.name) && (e.prototype instanceof b.Component || /^[A-Z]/.test(e.name)), Va = (e, t) => {
|
||||
} }), Pt = (e) => !!(e != null && e.name) && (e.prototype instanceof b.Component || /^[A-Z]/.test(e.name)), Va = (e, t) => {
|
||||
if (!e || typeof window > "u") return;
|
||||
let n = document.querySelector(`style[ff-style-token="${t}"]`);
|
||||
return n ? (n.innerHTML = e, e) : (n = document.createElement("style"), n.setAttribute("ff-style-token", t), n.setAttribute("type", "text/css"), n.innerHTML = e, document.head.appendChild(n), e);
|
||||
}, Aa = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Oa, AppGlobalParamsContext: La, cache: Kt, configure: Oe, default: Q, func: be, http: F, insertStyle: Va, isReactComponent: Nt, route: le }, Symbol.toStringTag, { value: "Module" })), ja = (e, t, n = "children") => {
|
||||
}, Aa = Object.freeze(Object.defineProperty({ __proto__: null, AppContext: Oa, AppGlobalParamsContext: La, cache: Kt, configure: Oe, default: Q, func: be, http: F, insertStyle: Va, isReactComponent: Pt, route: le }, Symbol.toStringTag, { value: "Module" })), ja = (e, t, n = "children") => {
|
||||
if (g.isEmpty(e)) return {};
|
||||
const a = g.find(e, ["value", t]);
|
||||
if (!g.isEmpty(a)) return a;
|
||||
@ -932,16 +932,16 @@ export {
|
||||
S as W,
|
||||
Jn as X,
|
||||
xa as Y,
|
||||
K as Z,
|
||||
_ as Z,
|
||||
Be as _,
|
||||
tn as a,
|
||||
J as a0,
|
||||
_ as a1,
|
||||
K as a1,
|
||||
Za as a2,
|
||||
er as a3,
|
||||
tr as a4,
|
||||
Q as a5,
|
||||
Nt as a6,
|
||||
Pt as a6,
|
||||
Va as a7,
|
||||
F as a8,
|
||||
Kt as a9,
|
2
dist/components.js
vendored
2
dist/components.js
vendored
@ -1,4 +1,4 @@
|
||||
import { a2 as s, V as p, a3 as n, a4 as t, a1 as d } from "./common/main-1_OUY3sJ.js";
|
||||
import { a2 as s, V as p, a3 as n, a4 as t, a1 as d } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
s as Empty,
|
||||
p as Icon,
|
||||
|
2
dist/container.js
vendored
2
dist/container.js
vendored
@ -1,4 +1,4 @@
|
||||
import { _ as o, a2 as s, a3 as p, a4 as t, $ as d, a1 as n, a0 as r, Z as u } from "./common/main-1_OUY3sJ.js";
|
||||
import { _ as o, a2 as s, a3 as p, a4 as t, $ as d, a1 as n, a0 as r, Z as u } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
o as Context,
|
||||
s as Empty,
|
||||
|
2
dist/data-converter.js
vendored
2
dist/data-converter.js
vendored
@ -1,6 +1,6 @@
|
||||
import "lodash";
|
||||
import "react";
|
||||
import { D as p } from "./common/main-1_OUY3sJ.js";
|
||||
import { D as p } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
p as default
|
||||
};
|
||||
|
2
dist/data-list.js
vendored
2
dist/data-list.js
vendored
@ -1,4 +1,4 @@
|
||||
import { p as t, n as e, i as r, l as o, q as i, m as l, k as u, o as D, j as L, s as n, h as m, v as p, A as C, x as b, y as k, z as F, w as c } from "./common/main-1_OUY3sJ.js";
|
||||
import { p as t, n as e, i as r, l as o, q as i, m as l, k as u, o as D, j as L, s as n, h as m, v as p, A as C, x as b, y as k, z as F, w as c } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
t as DataListContent,
|
||||
e as DataListContext,
|
||||
|
2
dist/data-list/utils.js
vendored
2
dist/data-list/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { b as a } from "../common/main-1_OUY3sJ.js";
|
||||
import { b as a } from "../common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
a as getDefaultExpandRowKeys
|
||||
};
|
||||
|
2
dist/grid-layout-form.js
vendored
2
dist/grid-layout-form.js
vendored
@ -1,4 +1,4 @@
|
||||
import { M as s, O as r, N as u, L as o, T as t, S as d, U as m, Q as F, P as i } from "./common/main-1_OUY3sJ.js";
|
||||
import { M as s, O as r, N as u, L as o, T as t, S as d, U as m, Q as F, P as i } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
s as GridLayoutForm,
|
||||
r as GridLayoutFormHelper,
|
||||
|
2
dist/grid-layout-form/utils.js
vendored
2
dist/grid-layout-form/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { af as a } from "../common/main-1_OUY3sJ.js";
|
||||
import { af as a } from "../common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
a as getOptionItemByValue
|
||||
};
|
||||
|
2
dist/grid-layout.js
vendored
2
dist/grid-layout.js
vendored
@ -1,4 +1,4 @@
|
||||
import { c as d, d as e, H as i, G as t, e as u, f as o } from "./common/main-1_OUY3sJ.js";
|
||||
import { c as d, d as e, H as i, G as t, e as u, f as o } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
d as GridLayout,
|
||||
e as GridLayoutWidget,
|
||||
|
2
dist/grid-layout/utils.js
vendored
2
dist/grid-layout/utils.js
vendored
@ -1,4 +1,4 @@
|
||||
import { a as t } from "../common/main-1_OUY3sJ.js";
|
||||
import { a as t } from "../common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
t as getBoxStyle
|
||||
};
|
||||
|
2
dist/hooks.js
vendored
2
dist/hooks.js
vendored
@ -1,7 +1,7 @@
|
||||
import "lodash";
|
||||
import "rc-field-form";
|
||||
import "react";
|
||||
import { I as r, F as o, J as p, C as f, E as i, K as m, B as c } from "./common/main-1_OUY3sJ.js";
|
||||
import { I as r, F as o, J as p, C as f, E as i, K as m, B as c } from "./common/main-Dj4H7_Ai.js";
|
||||
import { default as E } from "rc-util/lib/hooks/useMergedState";
|
||||
export {
|
||||
r as useDeepEffect,
|
||||
|
2
dist/iconfont.js
vendored
2
dist/iconfont.js
vendored
@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
||||
import "react";
|
||||
import "prop-types";
|
||||
import "classnames";
|
||||
import { V as a } from "./common/main-1_OUY3sJ.js";
|
||||
import { V as a } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -1,4 +1,4 @@
|
||||
import { ad as t, ae as e, a9 as o, aa as n, a5 as p, ab as c, a8 as r, a7 as f, a6 as l, ac as u } from "./common/main-1_OUY3sJ.js";
|
||||
import { ad as t, ae as e, a9 as o, aa as n, a5 as p, ab as c, a8 as r, a7 as f, a6 as l, ac as u } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
t as AppContext,
|
||||
e as AppGlobalParamsContext,
|
||||
|
2
dist/res-ws.js
vendored
2
dist/res-ws.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { R as a } from "./common/main-1_OUY3sJ.js";
|
||||
import { R as a } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
2
dist/utils.js
vendored
2
dist/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { g as r, r as i, t as s, u as o } from "./common/main-1_OUY3sJ.js";
|
||||
import { g as r, r as i, t as s, u as o } from "./common/main-Dj4H7_Ai.js";
|
||||
export {
|
||||
r as getWidgetPropsData,
|
||||
i as replaceKeys,
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ff",
|
||||
"private": true,
|
||||
"version": "0.4.39",
|
||||
"version": "0.4.40",
|
||||
"author": "www.fsdpf.com",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user