v0.6.12
This commit is contained in:
parent
b6d446810b
commit
f9edd39466
2
dist/button.js
vendored
2
dist/button.js
vendored
@ -1,4 +1,4 @@
|
||||
import { ah as s, ag as u, ai as e } from "./common/main-Bo_1as7N.js";
|
||||
import { ah as s, ag as u, ai as e } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
s as auth,
|
||||
u as default,
|
||||
|
||||
@ -13,7 +13,7 @@ var Dt = (e, t, n, a) => ({
|
||||
return y(e, t, a);
|
||||
}
|
||||
});
|
||||
import { jsx as u, jsxs as O } from "react/jsx-runtime";
|
||||
import { jsx as u, jsxs as E } from "react/jsx-runtime";
|
||||
import S, { useEffect as V, useState as A, useCallback as G, useRef as K, useContext as ie, useMemo as W, useId as yt, isValidElement as In, useLayoutEffect as Mn } from "react";
|
||||
import w from "prop-types";
|
||||
import R from "classnames";
|
||||
@ -70,12 +70,12 @@ const xi = () => u("div", { children: "Empty" }), Ke = S.createContext({ ele: {}
|
||||
return V(() => (t && a(e, S.createElement("div", { key: `ff-${e}`, className: R(`ff-popup-${e}`, n) }, t)), () => i(e)), [n, t]), null;
|
||||
};
|
||||
J.Action = Ze("actions"), J.Title = Ze("title"), J.SubTitle = Ze("sub-title"), J.Extra = Ze("extras"), J.propTypes = { className: w.string, style: w.object, title: w.any, subTitle: w.any, actions: w.any, extras: w.any };
|
||||
const Pi = () => u(J, { 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", {})] })] }) }), vi = () => u("div", { children: "NotFound" }), rn = ({ children: e }) => {
|
||||
const Pi = () => u(J, { className: "ff-loading", children: E("div", { className: "loader", children: [E("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), E("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), E("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] }), E("div", { className: "square", children: [u("span", {}), u("span", {}), u("span", {})] })] }) }), vi = () => u("div", { children: "NotFound" }), rn = ({ children: e }) => {
|
||||
const [t, n] = A({}), a = G((r, o) => n((s) => ({ ...s, [r]: o })), []), i = G((r) => n((o) => ({ ...o, [r]: void 0 })), []);
|
||||
return typeof (e == null ? void 0 : e.type) == "string" ? e : u(Ke.Provider, { value: { ele: t, mount: a, unmount: i }, children: S.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) });
|
||||
};
|
||||
rn.propTypes = { children: w.element.isRequired };
|
||||
const qt = { 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"] }, Et = ({ type: e, props: t }) => u("i", { ...t, children: u("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (qt[e] || qt.info).map((n, a) => u("path", { d: n }, a)) }) }), on = ({ className: e, content: t, icon: n, $close: a }) => O(S.Fragment, { children: [n && u("div", { className: R("ff-notification-icon", e), children: u(Et, { type: n }) }), t] }), ra = ({}) => u(J, { children: "Confirm" });
|
||||
const qt = { 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"] }, Et = ({ type: e, props: t }) => u("i", { ...t, children: u("svg", { viewBox: "0 0 1024 1024", width: "1em", height: "1em", fill: "currentColor", children: (qt[e] || qt.info).map((n, a) => u("path", { d: n }, a)) }) }), on = ({ className: e, content: t, icon: n, $close: a }) => E(S.Fragment, { children: [n && u("div", { className: R("ff-notification-icon", e), children: u(Et, { type: n }) }), t] }), ra = ({}) => u(J, { children: "Confirm" });
|
||||
var me, Ee;
|
||||
const re = class re {
|
||||
constructor() {
|
||||
@ -267,11 +267,11 @@ const ee = S.createContext({ listCode: "", classNames: {}, getBase62params: (e,
|
||||
const i = K(la(p.get(e, t == null ? void 0 : t.dataIndex))), { listCode: r, onClickCallback: o } = ie(ee), [s] = Z.useForm(), { formSetting: l, widgetSetting: g } = a, c = (l == null ? void 0 : l.primaryKey) || "id", d = () => {
|
||||
s.setFieldsValue({ value: p.get(e, t == null ? void 0 : t.dataIndex), __PROPS__: e });
|
||||
};
|
||||
return Je(() => d(), [e, t == null ? void 0 : t.dataIndex, r]), u(J, { actions: O(S.Fragment, { children: [u(v, { size: "small", onClick: d, children: "重置" }), O(Dn.Compact, { block: !0, children: [u(v, { size: "small", widget: n, children: "取消" }), u(v, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: h }) => {
|
||||
return Je(() => d(), [e, t == null ? void 0 : t.dataIndex, r]), u(J, { actions: E(S.Fragment, { children: [u(v, { size: "small", onClick: d, children: "重置" }), E(Dn.Compact, { block: !0, children: [u(v, { size: "small", widget: n, children: "取消" }), u(v, { type: "primary", size: "small", widget: () => s.validateFields().then(({ value: h }) => {
|
||||
const m = p.get(e, c.substring(c.indexOf(".") + 1));
|
||||
if (!m) throw "获取更新主键失败!";
|
||||
L.put(`/api/${r}-storeBy-${t == null ? void 0 : t.uuid}/${m}`, { value: h }).msg(() => o(2, e)).then(n);
|
||||
}).catch(console.warn), children: "保存" })] })] }), children: O(Z, { form: s, children: [u(At, { label: "", type: i.current, code: "value", widget: t == null ? void 0 : t.editableByJs, extras: g }), u(Ft, { noStyle: !0, name: ["__PROPS__"], children: () => {
|
||||
}).catch(console.warn), children: "保存" })] })] }), children: E(Z, { form: s, children: [u(At, { label: "", type: i.current, code: "value", widget: t == null ? void 0 : t.editableByJs, extras: g }), u(Ft, { noStyle: !0, name: ["__PROPS__"], children: () => {
|
||||
} })] }) });
|
||||
}, ga = (e) => function(t) {
|
||||
return e(t, getRecord());
|
||||
@ -317,11 +317,11 @@ const ee = S.createContext({ listCode: "", classNames: {}, getBase62params: (e,
|
||||
const x = p.get(o.current, f > -1 ? [f, "children", b, "children"] : [b, "children"]);
|
||||
o.current = tn(o.current, f > -1 ? { [f]: { children: { $splice: [[b, 1, { ...C, children: x }]] } } } : { $splice: [[b, 1, { ...C, children: x }]] });
|
||||
const P = new Map(k);
|
||||
s.current.forEach((E, F) => {
|
||||
s.current.forEach((O, F) => {
|
||||
var B;
|
||||
(B = P.get(F)) != null && B.some((M) => M == m) || s.current.set(F, E.filter((M) => M !== m));
|
||||
}), P.forEach((E, F) => {
|
||||
s.current.has(F) ? s.current.set(F, p.uniq([...s.current.get(F) || [], ...E])) : s.current.set(F, E);
|
||||
(B = P.get(F)) != null && B.some((I) => I == m) || s.current.set(F, O.filter((I) => I !== m));
|
||||
}), P.forEach((O, F) => {
|
||||
s.current.has(F) ? s.current.set(F, p.uniq([...s.current.get(F) || [], ...O])) : s.current.set(F, O);
|
||||
});
|
||||
}).then(() => {
|
||||
r.current = !0, i();
|
||||
@ -340,17 +340,17 @@ const ee = S.createContext({ listCode: "", classNames: {}, getBase62params: (e,
|
||||
const s = W(() => p.pick(a.current, ["total", "tab", "page", "pageSize", "condition", "sider", "keyword"]), [a.current]);
|
||||
return Object.assign(s, { onTabChange: (l) => o({ tab: l, page: 1 }), onPageChange: (l, g) => o({ page: l, pageSize: g }), onPageSizeChange: (l) => o({ pageSize: l, page: 1 }), onConditionChange: (l, g) => o({ keyword: g, condition: tn(a.current.condition || {}, { $merge: l || {} }), page: 1 }), onSiderChange: (l) => o({ sider: l, page: 1 }), onKeywordChange: (l) => o({ keyword: l, page: 1 }), itemOperationsAccess: i.current, dataSource: r.current, onReload: o, payload: t == null ? void 0 : t.payload });
|
||||
}, ya = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, isPaginate: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: g, resource: c, primaryKey: d, title: h, itemGridLayout: m, $setting: f, tabs: b, isConditionFormLayout: C, isTreeSider: k, treeSiderConfig: x }) => {
|
||||
const { classNames: P, onClickCallback: E } = ie(ee), F = p.pick(f, ["column", "colWidth", "beforeRender", "afterRender", "style"]), B = un(l, g, d, c), M = G((I, T, z) => u(wa, { className: R("ff-data-list-framework-item", P.item), operations: r ? B(T) : [], data: c ? { [c]: T } : T, children: I, onClickCallback: E }), [c, d, r, E, l, g]);
|
||||
return O("div", { className: R("ff-data-list-framework", t), children: [u(n.sider, { isTreeSider: k, ...x }), O("div", { className: R("ff-data-list-container", P == null ? void 0 : P.container), children: [u(n.filter, { isConditionFormLayout: C }), u(n.toolbar, { title: h, tabs: b }), u(Ea, { ...F, ...m, primaryKey: d, itemRender: M, dataSource: a }), u(n.footer, { isPaginate: i, isOperations: o, operations: s })] })] });
|
||||
}, wa = ({ className: e, operations: t, children: n, data: a, onClickCallback: i }) => O("div", { className: R("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((r) => u("span", { className: "data-list-grid-layout-item-action", children: u(v.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: a, confirm: r.confirm, onAfterClick: (o) => o !== !1 && (i == null ? void 0 : i(r.isRefresh, a)) }, r.uuid || yt()) }, (r == null ? void 0 : r.uuid) || yt())) })] }), ba = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, columns: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: g, resource: c, primaryKey: d, title: h, tabs: m, isPaginate: f, isTreeSider: b, treeSiderConfig: C, isConditionFormLayout: k, ...x }) => {
|
||||
const { classNames: P, onClickCallback: E } = ie(ee), F = un(l, g, d, c), B = St(l, g, a, d, c);
|
||||
return O("div", { className: R("ff-data-table-framework", t), children: [u(n.sider, { isTreeSider: b, ...C }), O("div", { className: R("ff-data-table-container", P == null ? void 0 : P.container), children: [u(n.filter, { isConditionFormLayout: k }), u(n.toolbar, { title: h, tabs: m }), u(va, { ...x, primaryKey: d, className: "ff-data-table-content", columns: i, dataSource: a, operationRender: B ? (M) => {
|
||||
var I;
|
||||
return u("div", { className: "ff-data-table-actions", children: (I = F(M)) == null ? void 0 : I.map((T, z) => u(v.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: M, confirm: T.confirm, onAfterClick: ($) => $ !== !1 && (E == null ? void 0 : E(T.isRefresh, M)) }, T.uuid || z)) });
|
||||
const { classNames: P, onClickCallback: O } = ie(ee), F = p.pick(f, ["column", "colWidth", "beforeRender", "afterRender", "style"]), B = un(l, g, d, c), I = G((M, $, z) => u(wa, { className: R("ff-data-list-framework-item", P.item), operations: r ? B($) : [], data: c ? { [c]: $ } : $, children: M, onClickCallback: O }), [c, d, r, O, l, g]);
|
||||
return E("div", { className: R("ff-data-list-framework", t), children: [u(n.sider, { isTreeSider: k, ...x }), E("div", { className: R("ff-data-list-container", P == null ? void 0 : P.container), children: [u(n.filter, { isConditionFormLayout: C }), u(n.toolbar, { title: h, tabs: b }), u(Ea, { ...F, ...m, primaryKey: d, itemRender: I, dataSource: a }), u(n.footer, { isPaginate: i, isOperations: o, operations: s })] })] });
|
||||
}, wa = ({ className: e, operations: t, children: n, data: a, onClickCallback: i }) => E("div", { className: R("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((r) => u("span", { className: "data-list-grid-layout-item-action", children: u(v.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: a, confirm: r.confirm, onAfterClick: (o) => o !== !1 && (i == null ? void 0 : i(r.isRefresh, a)) }, r.uuid || yt()) }, (r == null ? void 0 : r.uuid) || yt())) })] }), ba = ({ listCode: e, className: t, layouts: n = {}, dataSource: a, columns: i, isItemOperations: r, isBatchOperations: o, batchOperations: s, itemOperations: l, itemOperationsAccess: g, resource: c, primaryKey: d, title: h, tabs: m, isPaginate: f, isTreeSider: b, treeSiderConfig: C, isConditionFormLayout: k, ...x }) => {
|
||||
const { classNames: P, onClickCallback: O } = ie(ee), F = un(l, g, d, c), B = St(l, g, a, d, c);
|
||||
return E("div", { className: R("ff-data-table-framework", t), children: [u(n.sider, { isTreeSider: b, ...C }), E("div", { className: R("ff-data-table-container", P == null ? void 0 : P.container), children: [u(n.filter, { isConditionFormLayout: k }), u(n.toolbar, { title: h, tabs: m }), u(va, { ...x, primaryKey: d, className: "ff-data-table-content", columns: i, dataSource: a, operationRender: B ? (I) => {
|
||||
var M;
|
||||
return u("div", { className: "ff-data-table-actions", children: (M = F(I)) == null ? void 0 : M.map(($, z) => u(v.Link, { size: "small", uuid: $.uuid, type: $.type, name: $.name, widget: $.widget, widgetType: $.widgetType, widgetProps: $.widgetProps, widgetData: $.widgetData, widgetSetting: $.widgetSetting, widgetContainerProps: $.widgetContainerSetting, data: I, confirm: $.confirm, onAfterClick: (T) => T !== !1 && (O == null ? void 0 : O($.isRefresh, I)) }, $.uuid || z)) });
|
||||
} : null }), u(n.footer, { isPaginate: f, isOperations: o, operations: s })] })] });
|
||||
}, Ot = (e, t, n = null) => {
|
||||
}, Ot = (e = [], t, n = null) => {
|
||||
var a;
|
||||
return (a = p.sortBy(e, ["y", "x"])) == null ? void 0 : a.map(({ i, x: r, y: o, w: s, h: l, field: { boxStyle: g, ...c } }, d) => u("div", { className: "grid-layout-item", style: gn(r, o, s, l, g), children: u(t, { ...c, basicForm: n }) }, i ?? d));
|
||||
return (a = p.sortBy(e, ["y", "x"])) == null ? void 0 : a.map(({ i, x: r, y: o, w: s, h: l, field: { boxStyle: g, ...c } = {} }, d) => u("div", { className: "grid-layout-item", style: gn(r, o, s, l, g), children: u(t, { ...c, basicForm: n }) }, i ?? d));
|
||||
}, gn = (e, t, n, a, i = {}, r = 0) => {
|
||||
const o = { "--grid-layout-h": `${a}`, "--grid-layout-w": `${n}`, "--grid-layout-x": `${e}`, "--grid-layout-y": `${t}`, "--grid-layout-row-height-offset": "0px" };
|
||||
return i != null && i.autoHeight ? o.height = "fit-content" : o["--grid-layout-row"] = `${a}`, i != null && i.alignItems && (o["--grid-layout-box-align-items"] = i.alignItems), i != null && i.justifyContent && (o["--grid-layout-box-justify-content"] = i.justifyContent), o["--grid-layout-box-margin"] = _t(i == null ? void 0 : i.marginTop, i == null ? void 0 : i.marginRight, i == null ? void 0 : i.marginBottom, i == null ? void 0 : i.marginLeft), o["--grid-layout-box-padding"] = _t(i == null ? void 0 : i.paddingTop, i == null ? void 0 : i.paddingRight, i == null ? void 0 : i.paddingBottom, i == null ? void 0 : i.paddingLeft), r && (o.height = `${r}px`), o;
|
||||
@ -372,39 +372,39 @@ const ee = S.createContext({ listCode: "", classNames: {}, getBase62params: (e,
|
||||
} }) }) : u("div", { className: "ff-data-list-filter-default-form ff-grid-layout-form", children: u("div", { className: "grid-layout-item", style: gn(20, 0, 5, 2), children: u(et.Item, { name: ["keyword"], children: u(Un.Search, { allowClear: !0, enterButton: "搜索", placeholder: "多关键字 | 分割", onSearch: (f) => r(f) }) }) }) }) }) });
|
||||
}, Ca = ({ cols: e, fields: t, onReset: n }) => {
|
||||
const [a, i] = A(!1), r = W(() => t == null ? void 0 : t.toReversed().some((o) => o.y > 1 || o.x + o.w >= e - 5), [e, t]);
|
||||
return O(et.Item, { label: " ", style: { "--item-span": 5 }, className: R("ff-data-list-filter-actions", { expanded: a }), children: [u(nt, { onClick: n, children: "重置" }), u(nt, { type: "primary", htmlType: "submit", children: "查询" }), r && u(v.Link, { className: "ff-data-list-filter-expanded-button", widget: () => i((o) => !o), type: "primary", name: a ? "关闭" : "展开", icon: a ? "icon-up" : "icon-down", iconPosition: "end" })] });
|
||||
return E(et.Item, { label: " ", style: { "--item-span": 5 }, className: R("ff-data-list-filter-actions", { expanded: a }), children: [u(nt, { onClick: n, children: "重置" }), u(nt, { type: "primary", htmlType: "submit", children: "查询" }), r && u(v.Link, { className: "ff-data-list-filter-expanded-button", widget: () => i((o) => !o), type: "primary", name: a ? "关闭" : "展开", icon: a ? "icon-up" : "icon-down", iconPosition: "end" })] });
|
||||
};
|
||||
pn.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 ka = ({ className: e, operations: t, isOperations: n, isPaginate: a }) => {
|
||||
const { onPageChange: i, onPageSizeChange: r, onClickCallback: o, getBase62params: s } = S.useContext(ee), { total: l, page: g, pageSize: c } = (s == null ? void 0 : s()) || {};
|
||||
return n && !p.isEmpty(t) || a ? O("div", { className: R("ff-data-list-footer", e), children: [u("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((d, h) => u(v, { uuid: d.uuid, type: d.type, name: d.name, widget: d.widget, widgetType: d.widgetType, widgetProps: d.widgetProps, widgetData: d.widgetData, widgetSetting: d.widgetSetting, widgetContainerProps: d.widgetContainerSetting, onAfterClick: (m) => m !== !1 && (o == null ? void 0 : o(d.isRefresh, null)) }, d.uuid || h)) }), a && u(qn, { size: "small", total: l, pageSize: c, showSizeChanger: !1, showTotal: (d) => `第 ${g} 页 / 总共 ${d} 条`, onChange: i, onShowSizeChange: r })] }) : null;
|
||||
return n && !p.isEmpty(t) || a ? E("div", { className: R("ff-data-list-footer", e), children: [u("div", { className: "ff-data-list-actions", children: t == null ? void 0 : t.map((d, h) => u(v, { uuid: d.uuid, type: d.type, name: d.name, widget: d.widget, widgetType: d.widgetType, widgetProps: d.widgetProps, widgetData: d.widgetData, widgetSetting: d.widgetSetting, widgetContainerProps: d.widgetContainerSetting, onAfterClick: (m) => m !== !1 && (o == null ? void 0 : o(d.isRefresh, null)) }, d.uuid || h)) }), a && u(qn, { size: "small", total: l, pageSize: c, showSizeChanger: !1, showTotal: (d) => `第 ${g} 页 / 总共 ${d} 条`, onChange: i, onShowSizeChange: r })] }) : null;
|
||||
}, Sa = [{ 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" }] }] }], xa = ({ className: e, width: t = 280, isTreeSider: n }) => {
|
||||
const { classNames: a } = ie(ee);
|
||||
return n ? u(Wn.DirectoryTree, { className: R("ff-data-list-sider", a.sider, e), style: { "--sider-width": t }, showLine: !0, showIcon: !1, treeData: Sa }) : null;
|
||||
}, Pa = ({ className: e, title: t, tabs: n }) => {
|
||||
const { getBase62params: a, onTabChange: i, onReload: r, classNames: o } = ie(ee), { tab: s } = (a == null ? void 0 : a()) || {}, [l, g] = Xn((n == null ? void 0 : n[0].value) ?? (n == null ? void 0 : n[0].code), { value: s, onChange: i });
|
||||
return O("div", { className: R("ff-data-list-toolbar", o.toolbar, e), children: [u("div", { className: "ff-data-list-title", children: t }), u(Kn, { className: "ff-data-list-tabs", itemRender: ({ label: c, code: d, value: h }) => u("span", { onClick: () => g(h ?? d), className: R("ff-data-list-tab", { active: (h ?? d) == l }), children: c }), items: n }), O("div", { className: "ff-data-list-actions", children: [u(v.Link, { icon: "icon-reload", widget: () => r() }), u(v.Link, { icon: "icon-setting" })] })] });
|
||||
}, mn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: i, listCode: r, total: o = 0, page: s = 0, onPageChange: l, pageSize: g = 30, onPageSizeChange: c, tab: d, onTabChange: h, keyword: m, onKeywordChange: f, condition: b, onConditionChange: C, sider: k, onSiderChange: x, layouts: P, classNames: E = {}, payload: F = {}, ...B }) => {
|
||||
const [M, I] = A(), T = G(($, _) => {
|
||||
return E("div", { className: R("ff-data-list-toolbar", o.toolbar, e), children: [u("div", { className: "ff-data-list-title", children: t }), u(Kn, { className: "ff-data-list-tabs", itemRender: ({ label: c, code: d, value: h }) => u("span", { onClick: () => g(h ?? d), className: R("ff-data-list-tab", { active: (h ?? d) == l }), children: c }), items: n }), E("div", { className: "ff-data-list-actions", children: [u(v.Link, { icon: "icon-reload", widget: () => r() }), u(v.Link, { icon: "icon-setting" })] })] });
|
||||
}, mn = ({ isItemGridLayout: e, theme: t, themeProps: n, onClickCallback: a, onReload: i, listCode: r, total: o = 0, page: s = 0, onPageChange: l, pageSize: g = 30, onPageSizeChange: c, tab: d, onTabChange: h, keyword: m, onKeywordChange: f, condition: b, onConditionChange: C, sider: k, onSiderChange: x, layouts: P, classNames: O = {}, payload: F = {}, ...B }) => {
|
||||
const [I, M] = A(), $ = G((T, _) => {
|
||||
const D = { tab: d, page: s, pageSize: g, keyword: m, sider: k, condition: b, total: o, payload: F };
|
||||
return $ && $ != "init" ? p.get(D, $, _) : D;
|
||||
return T && T != "init" ? p.get(D, T, _) : D;
|
||||
}, [JSON.stringify(b), JSON.stringify(F), d, s, g, m, k, o]), z = W(() => {
|
||||
let $ = { sider: xa, filter: pn, footer: ka, toolbar: Pa };
|
||||
P === !1 ? $ = { sider: null, filter: null, footer: null, toolbar: null } : p.isPlainObject(P) && ($ = Object.assign({}, $, P));
|
||||
for (const _ in $) if ($[_]) {
|
||||
if (In($[_])) {
|
||||
const D = $[_];
|
||||
$[_] = (pe) => S.cloneElement(D, pe);
|
||||
let T = { sider: xa, filter: pn, footer: ka, toolbar: Pa };
|
||||
P === !1 ? T = { sider: null, filter: null, footer: null, toolbar: null } : p.isPlainObject(P) && (T = Object.assign({}, T, P));
|
||||
for (const _ in T) if (T[_]) {
|
||||
if (In(T[_])) {
|
||||
const D = T[_];
|
||||
T[_] = (pe) => S.cloneElement(D, pe);
|
||||
}
|
||||
} else $[_] = () => u(S.Fragment, {});
|
||||
return $;
|
||||
} else T[_] = () => u(S.Fragment, {});
|
||||
return T;
|
||||
}, [P]);
|
||||
return V(() => {
|
||||
t ? ae.getWidgetComponent(t).then(($) => {
|
||||
if (!$) throw `${t} not found`;
|
||||
return $;
|
||||
}).catch(($) => ({ default: () => `${$}` })).then(($) => I(S.createElement($.default, { ...B, layouts: z, $setting: n }))) : I(u(e ? ya : ba, { ...B, layouts: z, $setting: n }));
|
||||
}, [t, n]), u(ee.Provider, { value: { classNames: E, listCode: r, onClickCallback: a, onReload: i, getBase62params: T, onPageChange: l, onPageSizeChange: c, onTabChange: h, onSiderChange: x, onKeywordChange: f, onConditionChange: C, setPage: l, setPageSize: c, setTab: h, setSider: x, setKeyword: f, setCondition: C }, children: M && S.cloneElement(M, B) });
|
||||
t ? ae.getWidgetComponent(t).then((T) => {
|
||||
if (!T) throw `${t} not found`;
|
||||
return T;
|
||||
}).catch((T) => ({ default: () => `${T}` })).then((T) => M(S.createElement(T.default, { ...B, layouts: z, $setting: n }))) : M(u(e ? ya : ba, { ...B, layouts: z, $setting: n }));
|
||||
}, [t, n]), u(ee.Provider, { value: { classNames: O, listCode: r, onClickCallback: a, onReload: i, getBase62params: $, onPageChange: l, onPageSizeChange: c, onTabChange: h, onSiderChange: x, onKeywordChange: f, onConditionChange: C, setPage: l, setPageSize: c, setTab: h, setSider: x, setKeyword: f, setCondition: C }, children: I && S.cloneElement(I, B) });
|
||||
};
|
||||
mn.propTypes = { classNames: w.exact({ sider: w.string, filter: w.string, footer: w.string, toolbar: w.string, container: w.string, content: w.string, item: w.string }), layouts: w.oneOfType([w.exact({ sider: w.oneOfType([w.elementType, w.element]), filter: w.oneOfType([w.elementType, w.element]), footer: w.oneOfType([w.elementType, w.element]), toolbar: w.oneOfType([w.elementType, w.element]) }), w.bool]) };
|
||||
var he, ue, Ne, st;
|
||||
@ -432,14 +432,14 @@ const se = class se {
|
||||
he = new WeakMap(), ue = new WeakMap(), Ne = new WeakMap(), st = new WeakMap(), j(se, he, null), N(se, "getInstance", () => (y(se, he) || q(se, he, new se()), y(se, he)));
|
||||
let xt = se;
|
||||
const fn = xt.getInstance(), jt = S.forwardRef(({ listCode: e, base62params: t, className: n, theme: a, themeProps: i, layouts: r, classNames: o }, s) => {
|
||||
const [{ resource: l, primaryKey: g, batchOperations: c = [], itemOperations: d = [], columns: h = [], themeConfig: m, theme: f, isConditionFormLayout: b = !1, isTreeSider: C, treeSiderConfig: k, isItemGridLayout: x, itemGridLayout: P, title: E, isPaginate: F, tabs: B }, M] = A({ isItemGridLayout: !1, itemGridLayout: {} }), I = ha(e, t), [{ dataSource: T, itemOperationsAccess: z, condition: $, tab: _, keyword: D, page: pe, total: Ye, pageSize: Xe, sider: ut, onConditionChange: Q, onTabChange: vn, onKeywordChange: Nn, onPageChange: Tn, onPageSizeChange: $n, onSiderChange: Rn, onReload: gt, payload: Fn }, Mt] = fa(I, e, g, l), En = St(d, z, T, g), On = St(c);
|
||||
const [{ resource: l, primaryKey: g, batchOperations: c = [], itemOperations: d = [], columns: h = [], themeConfig: m, theme: f, isConditionFormLayout: b = !1, isTreeSider: C, treeSiderConfig: k, isItemGridLayout: x, itemGridLayout: P, title: O, isPaginate: F, tabs: B }, I] = A({ isItemGridLayout: !1, itemGridLayout: {} }), M = ha(e, t), [{ dataSource: $, itemOperationsAccess: z, condition: T, tab: _, keyword: D, page: pe, total: Ye, pageSize: Xe, sider: ut, onConditionChange: Q, onTabChange: vn, onKeywordChange: Nn, onPageChange: Tn, onPageSizeChange: $n, onSiderChange: Rn, onReload: gt, payload: Fn }, Mt] = fa(M, e, g, l), En = St(d, z, $, g), On = St(c);
|
||||
V(() => {
|
||||
let te = null;
|
||||
return e && L.get(`/api/_/${e}`).resp(({ data: Qe, res: An }) => {
|
||||
Qe != null && Qe.isDynamicRefresh && (te = fn.subscribe(() => gt(), An)), M(Qe);
|
||||
}).catch(() => M({})), () => te == null ? void 0 : te();
|
||||
Qe != null && Qe.isDynamicRefresh && (te = fn.subscribe(() => gt(), An)), I(Qe);
|
||||
}).catch(() => I({})), () => te == null ? void 0 : te();
|
||||
}, [e]), S.useImperativeHandle(s, () => ({ onReload: gt, onClickCallback: Mt }));
|
||||
const jn = { listCode: e, title: E, classNames: o, layouts: r, resource: l, primaryKey: g, theme: a || f, themeProps: i || m, isTreeSider: C, treeSiderConfig: k, isPaginate: F, tabs: B, isItemOperations: En, itemOperations: d == null ? void 0 : d.map((te) => p.isEmpty(te == null ? void 0 : te.confirm) ? te : { ...te, confirm: Object.assign({}, te.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: On, batchOperations: c, isItemGridLayout: x, columns: h, itemGridLayout: P, isConditionFormLayout: b, itemOperationsAccess: z, dataSource: T, onConditionChange: Q, onTabChange: vn, onKeywordChange: Nn, onPageChange: Tn, onPageSizeChange: $n, onSiderChange: Rn, condition: $, tab: _, keyword: D, page: pe, total: Ye, pageSize: Xe, sider: ut, payload: Fn };
|
||||
const jn = { listCode: e, title: O, classNames: o, layouts: r, resource: l, primaryKey: g, theme: a || f, themeProps: i || m, isTreeSider: C, treeSiderConfig: k, isPaginate: F, tabs: B, isItemOperations: En, itemOperations: d == null ? void 0 : d.map((te) => p.isEmpty(te == null ? void 0 : te.confirm) ? te : { ...te, confirm: Object.assign({}, te.confirm, { getPopupContainer: () => document.body }) }), isBatchOperations: On, batchOperations: c, isItemGridLayout: x, columns: h, itemGridLayout: P, isConditionFormLayout: b, itemOperationsAccess: z, dataSource: $, onConditionChange: Q, onTabChange: vn, onKeywordChange: Nn, onPageChange: Tn, onPageSizeChange: $n, onSiderChange: Rn, condition: T, tab: _, keyword: D, page: pe, total: Ye, pageSize: Xe, sider: ut, payload: Fn };
|
||||
return u(mn, { ...jn, className: R("ff-data-list-helper", n), onReload: gt, onClickCallback: Mt });
|
||||
}), hn = (e, t, n = !0) => n !== !0 && n-- <= 0 ? [] : p.isArray(e) && !p.isEmpty(e) ? e.reduce((a, i) => (Reflect.has(i, t) && Reflect.has(i, "children") && a.push(i[t]), Reflect.has(i, "children") && !p.isEmpty(i.children) ? a.concat(hn(i.children, t, n)) : a), []) : [], va = ({ className: e, primaryKey: t, columns: n = [], dataSource: a = [], operationRender: i, operationWidth: r = 180, components: o = {}, ...s }) => {
|
||||
const { classNames: l } = ie(ee), g = K(null), c = K(null), [d, h] = A([]), [m, f] = A({ width: 0, height: 0 });
|
||||
@ -507,19 +507,19 @@ const fn = xt.getInstance(), jt = S.forwardRef(({ listCode: e, base62params: t,
|
||||
}, bn = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 12, rowHeight: o = 21, containerPadding: s = [0, 0], itemMargin: l = [4, 0], formProps: g = {}, formFields: c = [], fields: d = [], data: h, theme: m, themeProps: f = {}, children: b, ...C }) => {
|
||||
const [k] = Z.useForm(t), x = W(() => [{ name: "__PROPS__", value: g }].concat(c), [g, c]);
|
||||
He(() => (k.setFieldsValue(h), () => k.resetFields()), [h]);
|
||||
const P = (E, F) => {
|
||||
const B = Ot(E, Ra, n);
|
||||
return O("div", { className: R("ff-grid-layout", i), style: { ...a, "--grid-layout-item-margin-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-item-margin-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-container-padding-y": `${(s == null ? void 0 : s[0]) || 0}px`, "--grid-layout-container-padding-x": `${(s == null ? void 0 : s[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [B, F && S.cloneElement(F, { cols: r, rowHeight: o, itemMargin: l, containerPadding: s, fields: E, basicForm: n })] });
|
||||
const P = (O, F, B) => {
|
||||
const I = Ot(F, Ra, n);
|
||||
return E("div", { className: R("ff-grid-layout", i), style: { ...a, "--grid-layout-item-margin-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-item-margin-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-container-padding-y": `${(s == null ? void 0 : s[0]) || 0}px`, "--grid-layout-container-padding-x": `${(s == null ? void 0 : s[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [I, B && S.cloneElement(B, { cols: r, rowHeight: o, itemMargin: l, containerPadding: s, fields: F, basicForm: n })] });
|
||||
};
|
||||
return u(Z, { ...C, fields: x, form: k, component: !1, children: m ? u(wn, { ...f, theme: m, itemRender: P, fields: d, children: b }) : P(d, b) });
|
||||
return u(Z, { ...C, fields: x, form: k, component: !1, children: m ? u(wn, { ...f, theme: m, itemRender: P, fields: d, children: b }) : P(0, b) });
|
||||
}, Ai = /* @__PURE__ */ ((e) => function({ code: t, data: n, ...a }) {
|
||||
const { uuid: i, resource: r, items: o, hides: s, rowHeight: l, marginX: g, marginY: c, cols: d, theme: h, themeProps: m } = Ta(t), f = W(() => [{ name: "__RESOURCE__", value: r }, { name: "__LAYOUT_KEY__", value: t }, { name: "__LAYOUT_UUID__", value: i }], [t, i, r]);
|
||||
return r && u(e, { name: t, theme: h, themeProps: m, ...a, fields: o, formFields: f, rowHeight: l, cols: d, itemMargin: [g, c], data: r ? { [r]: n } : n });
|
||||
})(bn), Ea = ({ column: e = 0, colWidth: t = 0, cols: n, rowHeight: a, itemMargin: i, fields: r, primaryKey: o, dataSource: s, itemClassName: l, beforeRender: g = null, afterRender: c = null, itemRender: d = (b, C, k) => b, empty: h = u(Hn, { description: null }), className: m, style: f = {} }) => {
|
||||
const { classNames: b } = ie(ee), C = W(() => u(bn, { cols: n, rowHeight: a, itemMargin: i, fields: r, className: l }), [r, n, a, i]), k = p.isEmpty(s);
|
||||
return O("div", { className: R("ff-data-list-content", b.content, m), style: Object.assign({}, f, e && { "--col-num": e }, t && { "--col-width": t }), children: [g == null ? void 0 : g(s), k ? h : s.map((x, P) => {
|
||||
const E = d(S.cloneElement(C, { data: x }), x, P);
|
||||
return S.cloneElement(E, { key: `${(x == null ? void 0 : x[o]) ?? P}-${ca(x)}` });
|
||||
return E("div", { className: R("ff-data-list-content", b.content, m), style: Object.assign({}, f, e && { "--col-num": e }, t && { "--col-width": t }), children: [g == null ? void 0 : g(s), k ? h : s.map((x, P) => {
|
||||
const O = d(S.cloneElement(C, { data: x }), x, P);
|
||||
return S.cloneElement(O, { key: `${(x == null ? void 0 : x[o]) ?? P}-${ca(x)}` });
|
||||
}), c == null ? void 0 : c(s)] });
|
||||
}, Oa = ({ component: e, $props: t }) => {
|
||||
const { base62params: n } = _e(t, {});
|
||||
@ -613,11 +613,11 @@ const le = class le {
|
||||
case "fsdpf-component":
|
||||
x.element = S.createElement(ja, { key: h, component: h, $setting: m, $props: f });
|
||||
}
|
||||
const E = (k == null ? void 0 : k.theme) ?? (k == null ? void 0 : k.layout);
|
||||
if (E) {
|
||||
const O = (k == null ? void 0 : k.theme) ?? (k == null ? void 0 : k.layout);
|
||||
if (O) {
|
||||
const F = (k == null ? void 0 : k.themeProps) ?? (k == null ? void 0 : k.layoutProps);
|
||||
if (!i[E]) return i[E] = s.length, [...s, { path: "/", lazy: r(E, F), children: [{ path: g, ...x }] }];
|
||||
P = i[E];
|
||||
if (!i[O]) return i[O] = s.length, [...s, { path: "/", lazy: r(O, F), children: [{ path: g, ...x }] }];
|
||||
P = i[O];
|
||||
}
|
||||
return C && P > -1 ? (s[P].children.push({ path: g, ...x }), s) : [...s, { path: g, ...x }];
|
||||
}, [{ path: "/", lazy: r(n, {}), children: [] }]);
|
||||
@ -795,23 +795,23 @@ const xe = vt.getInstance(), ct = () => {
|
||||
}, [s]), g && S.cloneElement(g, { ...r, ...l });
|
||||
}, Da = (e, t = {}, n = null) => (a) => {
|
||||
const { type: i, code: r, label: o, noStyle: s, placeholder: l, required: g = !1, extras: c, validators: d, help: h, isVirtual: m, $isReserved: f, initialValue: b, initialValueLanguage: C, ...k } = p.omit(p.merge({}, t, a), ["convertJs", "convertJsSetting", "widget", "widgetPerfix", "widgetDecorator", "subWidgets", "boxStyle"]), x = Va(Object.assign({}, d, g ? { required: !0 } : {}), r, i), P = W(() => {
|
||||
const I = Object.keys((t == null ? void 0 : t.extras) || {});
|
||||
return p.over([p.partialRight(p.pick, I), p.partialRight(p.omit, I)]);
|
||||
}, [t == null ? void 0 : t.extras]), [E, F] = P(k), B = { label: o, noStyle: s, colon: !1, layout: "vertical" }, M = G((I) => I == null ? void 0 : ge(I, i), [i]);
|
||||
return u(Ft, { name: r, rules: x, initialValue: M(b), normalize: M, children: (I, T, z) => {
|
||||
var $;
|
||||
return u(e, { type: i, rcform: z, basicForm: n, itemProps: { validateStatus: T.errors.length > 0 ? "error" : "success", tooltip: h || null, help: T.errors.length > 0 ? T.errors.join("、") : null, required: (($ = x == null ? void 0 : x[0]) == null ? void 0 : $.required) || !1, ...B }, fieldProps: { placeholder: l, ...F, ...I }, $setting: Object.assign({}, c, E) });
|
||||
const M = Object.keys((t == null ? void 0 : t.extras) || {});
|
||||
return p.over([p.partialRight(p.pick, M), p.partialRight(p.omit, M)]);
|
||||
}, [t == null ? void 0 : t.extras]), [O, F] = P(k), B = { label: o, noStyle: s, colon: !1, layout: "vertical" }, I = G((M) => M == null ? void 0 : ge(M, i), [i]);
|
||||
return u(Ft, { name: r, rules: x, initialValue: I(b), normalize: I, children: (M, $, z) => {
|
||||
var T;
|
||||
return u(e, { type: i, rcform: z, basicForm: n, itemProps: { validateStatus: $.errors.length > 0 ? "error" : "success", tooltip: h || null, help: $.errors.length > 0 ? $.errors.join("、") : null, required: ((T = x == null ? void 0 : x[0]) == null ? void 0 : T.required) || !1, ...B }, fieldProps: { placeholder: l, ...F, ...M }, $setting: Object.assign({}, c, O) });
|
||||
} });
|
||||
}, Lt = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: g = [], hides: c = [], primaryKey: d = 0, formProps: h = {}, formFields: m = [], listenChangeFields: f, listenChangeFieldsFunc: b, onValuesChange: C, theme: k, themeProps: x = {}, children: P, ...E }) => {
|
||||
const [F] = Z.useForm(t), B = G((T, z) => {
|
||||
C == null || C(T, z), b && Array.isArray(f) && xe.exec(b, { changedValues: T, allValues: z }, { getFieldValue: F.getFieldValue, setFieldValue: F.setFieldValue, setFieldsValue: F.setFieldsValue, isFieldTouched: F.isFieldTouched, isFieldsTouched: F.isFieldsTouched }).catch(($) => console.error("onFormValuesChange", e, $));
|
||||
}, [e, F, C, f, b]), M = W(() => [{ name: "__PROPS__", value: h }, { name: "__PRIMARY_KEY__", value: d }].concat(m), [d, h, m]), I = (T, z) => {
|
||||
const $ = Ot(T, At, n);
|
||||
return O("div", { className: R("ff-grid-layout-form", i), style: { ...a, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [$, z && S.cloneElement(z, { cols: r, rowHeight: o, itemMargin: s, containerPadding: l, fields: T, basicForm: n })] });
|
||||
}, Lt = ({ name: e, form: t = null, basicForm: n = null, style: a = {}, className: i, cols: r = 24, rowHeight: o = 16, itemMargin: s = [8, 16], containerPadding: l = [0, 0], fields: g = [], hides: c = [], primaryKey: d = 0, formProps: h = {}, formFields: m = [], listenChangeFields: f, listenChangeFieldsFunc: b, onValuesChange: C, theme: k, themeProps: x = {}, children: P, ...O }) => {
|
||||
const [F] = Z.useForm(t), B = G(($, z) => {
|
||||
C == null || C($, z), b && Array.isArray(f) && xe.exec(b, { changedValues: $, allValues: z }, { getFieldValue: F.getFieldValue, setFieldValue: F.setFieldValue, setFieldsValue: F.setFieldsValue, isFieldTouched: F.isFieldTouched, isFieldsTouched: F.isFieldsTouched }).catch((T) => console.error("onFormValuesChange", e, T));
|
||||
}, [e, F, C, f, b]), I = W(() => [{ name: "__PROPS__", value: h }, { name: "__PRIMARY_KEY__", value: d }].concat(m), [d, h, m]), M = ($, z, T) => {
|
||||
const _ = Ot(z, At, n);
|
||||
return E("div", { className: R("ff-grid-layout-form", i), style: { ...a, "--grid-layout-item-margin-x": `${(s == null ? void 0 : s[0]) ?? 8}px`, "--grid-layout-item-margin-y": `${(s == null ? void 0 : s[1]) ?? 16}px`, "--grid-layout-container-padding-y": `${(l == null ? void 0 : l[0]) || 0}px`, "--grid-layout-container-padding-x": `${(l == null ? void 0 : l[1]) || 0}px`, "--grid-layout-cols": r, "--grid-layout-row-height": `${o}px` }, children: [_, T && S.cloneElement(T, { cols: r, rowHeight: o, itemMargin: s, containerPadding: l, fields: z, basicForm: n })] });
|
||||
};
|
||||
return O(Z, { ...E, form: F, fields: M, onValuesChange: B, children: [k ? u(wn, { ...x, theme: k, itemRender: I, fields: g, children: P }) : I(g, P), c == null ? void 0 : c.map((T) => {
|
||||
return E(Z, { ...O, form: F, fields: I, onValuesChange: B, children: [k ? u(wn, { ...x, theme: k, itemRender: M, fields: g, children: P }) : M(0, P), c == null ? void 0 : c.map(($) => {
|
||||
var z;
|
||||
return u(Ft, { name: T.code, children: u(Ua, { form: F, basicForm: n, name: T.code, type: T.type, initialValue: T.initialValue, initialValueLanguage: (z = T.extras) == null ? void 0 : z.initialValueLanguage }) }, JSON.stringify(T.code));
|
||||
return u(Ft, { name: $.code, children: u(Ua, { form: F, basicForm: n, name: $.code, type: $.type, initialValue: $.initialValue, initialValueLanguage: (z = $.extras) == null ? void 0 : z.initialValueLanguage }) }, JSON.stringify($.code));
|
||||
})] });
|
||||
}, Ua = ({ type: e, initialValue: t, initialValueLanguage: n, onChange: a, basicForm: i }) => {
|
||||
const [r, o] = yn(n == "javascript" && t, n == "javascript" ? void 0 : t, {}, {}, i);
|
||||
@ -825,7 +825,7 @@ const qa = /* @__PURE__ */ ((e) => ({ code: t, isPreview: n = !1, ...a }) => {
|
||||
return u(e, { name: t, autoComplete: r, theme: k, themeProps: x, ...a, formFields: P, listenChangeFields: m, listenChangeFieldsFunc: f, fields: s, hides: l, cols: h, rowHeight: g, itemMargin: [c, d] });
|
||||
})(Lt), Sn = ({ $setting: e, $close: t, extras: n, code: a, primaryKey: i, ...r }) => {
|
||||
const [o] = Z.useForm(), s = za(o, a, i, e);
|
||||
return u(J, { actions: O(S.Fragment, { children: [u(v, { name: (e == null ? void 0 : e.okText) || "保存", type: "primary", widget: () => s({ onSuccess: t }) }), u(v, { name: (e == null ? void 0 : e.cancelText) || "取消", widget: () => t(!1) })] }), extras: n, children: u(qa, { form: o, code: a, primaryKey: i, ...r }) });
|
||||
return u(J, { actions: E(S.Fragment, { children: [u(v, { name: (e == null ? void 0 : e.okText) || "保存", type: "primary", widget: () => s({ onSuccess: t }) }), u(v, { name: (e == null ? void 0 : e.cancelText) || "取消", widget: () => t(!1) })] }), extras: n, children: u(qa, { form: o, code: a, primaryKey: i, ...r }) });
|
||||
}, Gt = /* @__PURE__ */ new Set(), Nt = (e = [], t = 0) => {
|
||||
const n = e[t];
|
||||
if (n.length && !Gt.has(n)) {
|
||||
@ -878,7 +878,7 @@ const Wa = (e, t, n, a) => Se.redirect(n, t, a), Ka = (e, t = {}, n, a = {}) =>
|
||||
const s = { type: "primary", className: R("ff-button", n), iconPosition: i, size: r };
|
||||
return e === "danger" ? s.danger = !0 : e === "default" && (s.type = e), o === "link" || o === "dashed" ? (s.type = o, e === "default" && (s.className = R(s.className, "ff-default"))) : o !== "circle" && o !== "round" || (s.shape = o), a && (s.icon = u(Tt, { type: a })), t && (s.children = t), s;
|
||||
}, [o, e, n, a, i]), dt = ({ data: e, widget: t, widgetType: n = "fsdpf-component", widgetData: a, widgetProps: i, widgetSetting: r, widgetContainerProps: o, onAfterClick: s, onBeforeClick: l, children: g, extras: c }) => {
|
||||
const d = ie(ee), [h, m] = A(!1), [f, b] = A("hover"), [C, k] = A({}), [x, P] = A(), { placement: E, align: F, zIndex: B, arrow: M = { pointAtCenter: !0 }, getPopupContainer: I, isPopupMountBodyContainer: T = !1, ...z } = o || {};
|
||||
const d = ie(ee), [h, m] = A(!1), [f, b] = A("hover"), [C, k] = A({}), [x, P] = A(), { placement: O, align: F, zIndex: B, arrow: I = { pointAtCenter: !0 }, getPopupContainer: M, isPopupMountBodyContainer: $ = !1, ...z } = o || {};
|
||||
V(() => {
|
||||
n == "grid-layout-form" ? P(S.createElement(Sn, { ...a, $setting: r, code: t })) : n == "data-list" ? P(S.createElement(jt, { base62params: e, $setting: r, listCode: t })) : p.isString(t) ? ae.getWidgetComponent(t).then(({ default: D }) => {
|
||||
P(S.createElement(D, { ...a, $setting: r }));
|
||||
@ -886,20 +886,20 @@ const Wa = (e, t, n, a) => Se.redirect(n, t, a), Ka = (e, t = {}, n, a = {}) =>
|
||||
}, [t, n, a]), V(() => {
|
||||
Promise.resolve(_e(i, e, { list: d })).then(k);
|
||||
}, [i, e, d.getBase62params]);
|
||||
const $ = (D, pe = !1) => (m(D), !D && b("hover"), D ? l == null ? void 0 : l(C) : s == null ? void 0 : s(pe)), _ = (D) => {
|
||||
const T = (D, pe = !1) => (m(D), !D && b("hover"), D ? l == null ? void 0 : l(C) : s == null ? void 0 : s(pe)), _ = (D) => {
|
||||
m(!0), b("click");
|
||||
};
|
||||
return u(Jn, { zIndex: B, placement: E, onPopupClick: _, onClick: _, open: h, align: F, arrow: M, trigger: f, getPopupContainer: I || T ? void 0 : (D) => D, content: u(Ga, { ...z, extras: c, children: x && S.cloneElement(x, { ...C, $close: (D) => $(!1, D) }) }), children: g, onOpenChange: $ });
|
||||
return u(Jn, { zIndex: B, placement: O, onPopupClick: _, onClick: _, open: h, align: F, arrow: I, trigger: f, getPopupContainer: M || $ ? void 0 : (D) => D, content: u(Ga, { ...z, extras: c, children: x && S.cloneElement(x, { ...C, $close: (D) => T(!1, D) }) }), children: g, onOpenChange: T });
|
||||
}, Ga = ({ title: e, className: t, classNames: n, children: a, extras: i, width: r, height: o, ...s }) => {
|
||||
const [l, g] = A({}), c = G((f, b) => g((C) => ({ ...C, [f]: b })), []), d = G((f) => g((b) => ({ ...b, [f]: void 0 })), []), h = e ? S.createElement("div", { className: "ff-popup-title" }, e) : l == null ? void 0 : l.title, m = i ?? S.createElement("div", { className: "ff-popup-reserved-extras" }, i);
|
||||
return u(Ke.Provider, { value: { ele: l, mount: c, unmount: d }, children: O("div", { className: R("ff-popup ff-popover", t, l.rootClassName), style: { width: r ?? 260, height: o }, ...s, children: [O("div", { className: R("ff-popup-header", "ff-popover-header", n == null ? void 0 : n.header), children: [h, l == null ? void 0 : l["sub-title"]] }), u("div", { className: R("ff-popup-body", "ff-popover-body", n == null ? void 0 : n.body), children: a }), O("div", { className: R("ff-popup-footer", "ff-popover-footer", n == null ? void 0 : n.footer), children: [m, l == null ? void 0 : l.extras, l == null ? void 0 : l.actions] })] }) });
|
||||
return u(Ke.Provider, { value: { ele: l, mount: c, unmount: d }, children: E("div", { className: R("ff-popup ff-popover", t, l.rootClassName), style: { width: r ?? 260, height: o }, ...s, children: [E("div", { className: R("ff-popup-header", "ff-popover-header", n == null ? void 0 : n.header), children: [h, l == null ? void 0 : l["sub-title"]] }), u("div", { className: R("ff-popup-body", "ff-popover-body", n == null ? void 0 : n.body), children: a }), E("div", { className: R("ff-popup-footer", "ff-popover-footer", n == null ? void 0 : n.footer), children: [m, l == null ? void 0 : l.extras, l == null ? void 0 : l.actions] })] }) });
|
||||
};
|
||||
dt.propTypes = { widgetType: w.oneOf(["fsdpf-component", "grid-layout-form", "data-list"]) };
|
||||
const Ge = (e) => function({ className: t, variant: n, children: a, name: i, icon: r, type: o = "default", iconPosition: s = "start", noAuthType: l, onAfterClick: g, onBeforeClick: c, data: d, loading: h, disabled: m, tooltip: f, confirm: b, widget: C = () => {
|
||||
}, widgetType: k, widgetData: x, widgetProps: P, widgetSetting: E, widgetContainerProps: F, ...B }) {
|
||||
const { mode: M, ...I } = F || {}, T = xn({ className: t, name: i, type: o, icon: r, iconPosition: s }, n ?? e), z = u(nt, { ...T, ...B, children: a || i });
|
||||
if (M === "popover" && !["destroy", "redirect", "func"].includes(k)) return u(dt, { data: d, widget: C, widgetType: k, widgetData: x, widgetProps: P, widgetSetting: E, widgetContainerProps: I, onAfterClick: g, onBeforeClick: c, children: z });
|
||||
const $ = p.isEmpty(f) || !f.enabled ? {} : f, _ = p.isEmpty(b) ? { enabled: !1 } : Object.assign({ enabled: !0 }, b), [D, pe] = A(!1), [Ye, { disabled: Xe, loading: ut }] = Ja({ widget: C, widgetType: k, widgetData: x, widgetProps: P, widgetSetting: E, widgetContainerProps: I }, { onAfterClick: g, onBeforeClick: c });
|
||||
}, widgetType: k, widgetData: x, widgetProps: P, widgetSetting: O, widgetContainerProps: F, ...B }) {
|
||||
const { mode: I, ...M } = F || {}, $ = xn({ className: t, name: i, type: o, icon: r, iconPosition: s }, n ?? e), z = u(nt, { ...$, ...B, children: a || i });
|
||||
if (I === "popover" && !["destroy", "redirect", "func"].includes(k)) return u(dt, { data: d, widget: C, widgetType: k, widgetData: x, widgetProps: P, widgetSetting: O, widgetContainerProps: M, onAfterClick: g, onBeforeClick: c, children: z });
|
||||
const T = p.isEmpty(f) || !f.enabled ? {} : f, _ = p.isEmpty(b) ? { enabled: !1 } : Object.assign({ enabled: !0 }, b), [D, pe] = A(!1), [Ye, { disabled: Xe, loading: ut }] = Ja({ widget: C, widgetType: k, widgetData: x, widgetProps: P, widgetSetting: O, widgetContainerProps: M }, { onAfterClick: g, onBeforeClick: c });
|
||||
return u(Gn, { okText: "确定", cancelText: "取消", getPopupContainer: (Q) => Q, ..._, disabled: Xe || m, open: D, onOpenChange: (Q) => {
|
||||
if (!Q) return pe(Q);
|
||||
_.enabled ? pe(Q) : Ye(d);
|
||||
@ -907,7 +907,7 @@ const Ge = (e) => function({ className: t, variant: n, children: a, name: i, ico
|
||||
Ye(d, Q);
|
||||
}, onClick: (Q) => {
|
||||
Q.stopPropagation();
|
||||
}, children: u(Yn, { getPopupContainer: (Q) => Q, ...$, title: D ? null : $ == null ? void 0 : $.title, trigger: ["hover", "click"], children: S.cloneElement(z, { loading: ut || h, disabled: Xe || m }) }) });
|
||||
}, children: u(Yn, { getPopupContainer: (Q) => Q, ...T, title: D ? null : T == null ? void 0 : T.title, trigger: ["hover", "click"], children: S.cloneElement(z, { loading: ut || h, disabled: Xe || m }) }) });
|
||||
}, v = Ge("default");
|
||||
v.propTypes = { type: w.oneOf(["primary", "default", "danger", ""]), size: w.oneOf(["large", "middle", "small"]), name: w.string, icon: w.string, iconPosition: w.oneOf(["start", "end"]), data: w.any, widget: w.any, widgetType: w.oneOf(["destroy", "redirect", "func", "component", "fsdpf-component", "grid-layout-form", "grid-layout", "data-list"]), widgetData: w.object, widgetProps: w.object, widgetSetting: w.object, widgetContainerProps: w.object, tooltip: w.exact({ title: w.string.isRequired, placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func }), confirm: w.exact({ title: w.string.isRequired, cancelText: w.string, okText: w.string, okType: w.oneOf(["primary", "default", "danger", ""]), placement: w.oneOf(["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]), enabled: w.oneOfType([w.bool, w.number]), getPopupContainer: w.func, arrow: w.oneOfType([w.bool, w.exact({ pointAtCenter: w.bool })]) }) };
|
||||
const Ya = Ge("link"), Xa = Ge("circle"), Qa = Ge("round"), Za = Ge("dashed"), Qt = ({ options: e = [], triggerWeights: t = ["grid-layout-form", "grid-layout", "fsdpf-component", "print"], onAfterClick: n = (m, f, b) => {
|
||||
@ -925,10 +925,10 @@ const Ya = Ge("link"), Xa = Ge("circle"), Qa = Ge("round"), Za = Ge("dashed"), Q
|
||||
Qt.propTypes = { triggerWeights: w.array, options: w.arrayOf(w.shape({ ...v.propTypes, widgetType: v.propTypes.widgetType.isRequired })), btnSize: v.propTypes.size, btnRender: w.func, btnVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelVariant: w.oneOf(["", "default", "link", "circle", "round", "dashed"]), labelRender: w.func, labelSize: v.propTypes.size, onAfterClick: w.func, onBeforeClick: w.func, widgetContainerProps: v.propTypes.widgetContainerProps, data: v.propTypes.data }, v.Link = Ya, v.Link.defaultProps = v.defaultProps, v.Link.propTypes = v.propTypes, v.Circle = Xa, v.Circle.defaultProps = v.defaultProps, v.Circle.propTypes = v.propTypes, v.Round = Qa, v.Round.defaultProps = v.defaultProps, v.Round.propTypes = v.propTypes, v.Dashed = Za, v.Dashed.defaultProps = v.defaultProps, v.Dashed.propTypes = v.propTypes, v.Popover = dt, v.GroupPopover = Qt;
|
||||
const ei = ({ fields: e, formProps: t, $close: n }) => {
|
||||
const [a] = Z.useForm(), i = W(() => [{ name: "__PROPS__", value: t }], [t]);
|
||||
return u(J, { actions: O(S.Fragment, { children: [u(v, { name: "取消", widget: () => n(!1) }), u(v, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: u(Z, { fields: i, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: r, ...o }) => u(At, { code: r, ...o }, r)) }) });
|
||||
}, ti = ({ className: e, classNames: t, $close: n, children: a, title: i, subTitle: r, actions: o, extras: s, ...l }) => O(aa, { ...l, prefixCls: "ff-drawer", className: R("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (g) => ({ motionAppear: !0, motionName: `panel-motion-${g}` }), children: [O("div", { className: R("ff-popup-header", "ff-drawer-header", t == null ? void 0 : t.header), children: [u("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-drawer-close", t == null ? void 0 : t.close), onClick: l.onClose, children: u(Et, { type: "close" }) }), i, r] }), u("div", { className: R("ff-popup-body", "ff-drawer-body", t == null ? void 0 : t.body), children: a }), O("div", { className: R("ff-popup-footer", "ff-drawer-footer", t == null ? void 0 : t.footer), children: [s, o] })] }), ni = ({ className: e, classNames: t, $close: n, $event: a, children: i, title: r, subTitle: o, actions: s, extras: l, placement: g, ...c }) => {
|
||||
return u(J, { actions: E(S.Fragment, { children: [u(v, { name: "取消", widget: () => n(!1) }), u(v, { name: "确定", type: "primary", widget: () => a.validateFields(!0).then(n) })] }), children: u(Z, { fields: i, form: a, className: "ff-modal-form", children: e == null ? void 0 : e.map(({ code: r, ...o }) => u(At, { code: r, ...o }, r)) }) });
|
||||
}, ti = ({ className: e, classNames: t, $close: n, children: a, title: i, subTitle: r, actions: o, extras: s, ...l }) => E(aa, { ...l, prefixCls: "ff-drawer", className: R("ff-popup", e), maskMotion: { motionAppear: !0, motionName: "mask-motion" }, motion: (g) => ({ motionAppear: !0, motionName: `panel-motion-${g}` }), children: [E("div", { className: R("ff-popup-header", "ff-drawer-header", t == null ? void 0 : t.header), children: [u("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-drawer-close", t == null ? void 0 : t.close), onClick: l.onClose, children: u(Et, { type: "close" }) }), i, r] }), u("div", { className: R("ff-popup-body", "ff-drawer-body", t == null ? void 0 : t.body), children: a }), E("div", { className: R("ff-popup-footer", "ff-drawer-footer", t == null ? void 0 : t.footer), children: [s, o] })] }), ni = ({ className: e, classNames: t, $close: n, $event: a, children: i, title: r, subTitle: o, actions: s, extras: l, placement: g, ...c }) => {
|
||||
const d = (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 u(ia, { ...c, ...d, prefixCls: "ff-modal", modalRender: () => O("div", { className: R("ff-modal-content ff-popup", e), children: [O("div", { className: R("ff-popup-header", "ff-modal-header", t == null ? void 0 : t.header), children: [u("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-modal-close", t == null ? void 0 : t.close), onClick: c.onClose, children: u(Et, { type: "close" }) }), r, o] }), u("div", { className: R("ff-popup-body", "ff-modal-body", t == null ? void 0 : t.body), children: i }), O("div", { className: R("ff-popup-footer", "ff-modal-footer", t == null ? void 0 : t.footer), children: [l, s] })] }) });
|
||||
return u(ia, { ...c, ...d, prefixCls: "ff-modal", modalRender: () => E("div", { className: R("ff-modal-content ff-popup", e), children: [E("div", { className: R("ff-popup-header", "ff-modal-header", t == null ? void 0 : t.header), children: [u("button", { "aria-label": "Close", className: R("ff-popup-close", "ff-modal-close", t == null ? void 0 : t.close), onClick: c.onClose, children: u(Et, { type: "close" }) }), r, o] }), u("div", { className: R("ff-popup-body", "ff-modal-body", t == null ? void 0 : t.body), children: i }), E("div", { className: R("ff-popup-footer", "ff-modal-footer", t == null ? void 0 : t.footer), children: [l, s] })] }) });
|
||||
}, Pn = ({ placement: e, $close: t, $event: n, children: a, title: i, ...r }) => {
|
||||
const [o, s] = A({}), [l, g] = A(!0), c = G((f, b) => s((C) => ({ ...C, [f]: b })), []), d = G((f) => s((b) => ({ ...b, [f]: void 0 })), []);
|
||||
let h = { ...r, className: o.rootClassName, title: o.title || i && S.createElement("div", { className: R("ff-popup-title") }, i), subTitle: o["sub-title"], actions: o.actions, extras: o.extras, children: a, $close: t, $event: n, onClose: () => g(!1) };
|
||||
@ -953,7 +953,7 @@ const Y = () => {
|
||||
if (s === on) return e.open({ ...g, key: c, content: S.createElement(s, { ...l, $close: () => e.close(c) }) });
|
||||
Y.$popups.set(c, S.createElement(Pn, { maskClosable: !1, $event: l == null ? void 0 : l.$event, ...g, key: c, $close: d }, S.isValidElement(s) ? S.cloneElement(s, { ...l, $close: d }) : s != null && s.name || Ut.isForwardRef(s) || (s == null ? void 0 : s.$$typeof) === Ut.ForwardRef ? S.createElement(s, { ...l, $close: d }) : s)), n();
|
||||
};
|
||||
return O(S.Fragment, { children: [Array.from(Y.$popups).map(([r, o]) => o), t] });
|
||||
return E(S.Fragment, { children: [Array.from(Y.$popups).map(([r, o]) => o), t] });
|
||||
};
|
||||
Y.$popups = /* @__PURE__ */ new Map(), Y.$index = 0, Y.$queue = [], Y.$onClick = (...e) => new Promise((t, n) => {
|
||||
Y.$queue.push([e, t, n]);
|
||||
2
dist/components.js
vendored
2
dist/components.js
vendored
@ -1,4 +1,4 @@
|
||||
import { ao as p, af as s, ap as n, aq as t, an as d } from "./common/main-Bo_1as7N.js";
|
||||
import { ao as p, af as s, ap as n, aq as t, an as d } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
p as Empty,
|
||||
s as Icon,
|
||||
|
||||
2
dist/container.js
vendored
2
dist/container.js
vendored
@ -1,4 +1,4 @@
|
||||
import { ak as e, ao as s, ap as p, aq as n, al as t, an as d, am as r, aj as u } from "./common/main-Bo_1as7N.js";
|
||||
import { ak as e, ao as s, ap as p, aq as n, al as t, an as d, am as r, aj as u } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
e 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-Bo_1as7N.js";
|
||||
import { D as p } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
p as default
|
||||
};
|
||||
|
||||
2
dist/data-list.js
vendored
2
dist/data-list.js
vendored
@ -1,4 +1,4 @@
|
||||
import { J as t, F as e, z as r, C as o, K as i, E as l, B as u, I as D, A as n, L, y as C, N as m, M as p, U as b, P as c, S as F, Q as d, T as O, O as S } from "./common/main-Bo_1as7N.js";
|
||||
import { J as t, F as e, z as r, C as o, K as i, E as l, B as u, I as D, A as n, L, y as C, N as m, M as p, U as b, P as c, S as F, Q as d, T as O, O as S } from "./common/main-D5FjEFNr.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 { n as a } from "../common/main-Bo_1as7N.js";
|
||||
import { n as a } from "../common/main-D5FjEFNr.js";
|
||||
export {
|
||||
a as getDefaultExpandRowKeys
|
||||
};
|
||||
|
||||
2
dist/grid-layout-form.js
vendored
2
dist/grid-layout-form.js
vendored
@ -1,4 +1,4 @@
|
||||
import { a5 as s, a7 as r, a6 as u, a4 as o, x as t, ac as m, aa as d, ab as F, ae as i, a9 as c, a8 as g, ad as l } from "./common/main-Bo_1as7N.js";
|
||||
import { a5 as s, a7 as r, a6 as u, a4 as o, x as t, ac as m, aa as d, ab as F, ae as i, a9 as c, a8 as g, ad as l } from "./common/main-D5FjEFNr.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 { a as o, g } from "../common/main-Bo_1as7N.js";
|
||||
import { a as o, g } from "../common/main-D5FjEFNr.js";
|
||||
export {
|
||||
o as getNormalizeWidget,
|
||||
g as getOptionItemByValue
|
||||
|
||||
2
dist/grid-layout.js
vendored
2
dist/grid-layout.js
vendored
@ -1,4 +1,4 @@
|
||||
import { o as u, q as e, p as r, H as t, G as d, v as o, x as i, w as G, s as y } from "./common/main-Bo_1as7N.js";
|
||||
import { o as u, q as e, p as r, H as t, G as d, v as o, x as i, w as G, s as y } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
u as GridLayout,
|
||||
e as GridLayoutFramework,
|
||||
|
||||
2
dist/grid-layout/utils.js
vendored
2
dist/grid-layout/utils.js
vendored
@ -1,4 +1,4 @@
|
||||
import { j as a, l, k as o } from "../common/main-Bo_1as7N.js";
|
||||
import { j as a, l, k as o } from "../common/main-D5FjEFNr.js";
|
||||
export {
|
||||
a as getBoxStyle,
|
||||
l as getNormalizeFields,
|
||||
|
||||
2
dist/hooks.js
vendored
2
dist/hooks.js
vendored
@ -1,7 +1,7 @@
|
||||
import "lodash";
|
||||
import "rc-field-form";
|
||||
import "react";
|
||||
import { a1 as r, a0 as o, a2 as p, _ as f, $ as i, a3 as m, Z as c } from "./common/main-Bo_1as7N.js";
|
||||
import { a1 as r, a0 as o, a2 as p, _ as f, $ as i, a3 as m, Z as c } from "./common/main-D5FjEFNr.js";
|
||||
import { default as b } 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 { af as a } from "./common/main-Bo_1as7N.js";
|
||||
import { af as a } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -1,4 +1,4 @@
|
||||
import { az as t, aA as e, av as o, aw as n, ar as p, ax as r, au as c, at as u, as as f, ay as l } from "./common/main-Bo_1as7N.js";
|
||||
import { az as t, aA as e, av as o, aw as n, ar as p, ax as r, au as c, at as u, as as f, ay as l } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
t as AppContext,
|
||||
e as AppGlobalParamsContext,
|
||||
|
||||
2
dist/pages.js
vendored
2
dist/pages.js
vendored
@ -1,4 +1,4 @@
|
||||
import { W as t, V as e, X as o, Y as g } from "./common/main-Bo_1as7N.js";
|
||||
import { W as t, V as e, X as o, Y as g } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
t as CustomPage,
|
||||
e as DataListPage,
|
||||
|
||||
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-Bo_1as7N.js";
|
||||
import { R as a } from "./common/main-D5FjEFNr.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
||||
2
dist/utils.js
vendored
2
dist/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { d as r, f as i, e as g, h as m, b as o, c as p, i as P, m as d, r as k, t as u, u as h } from "./common/main-Bo_1as7N.js";
|
||||
import { d as r, f as i, e as g, h as m, b as o, c as p, i as P, m as d, r as k, t as u, u as h } from "./common/main-D5FjEFNr.js";
|
||||
import "./common/vender-FNiQWFaA.js";
|
||||
export {
|
||||
r as deepSome,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ff",
|
||||
"private": true,
|
||||
"version": "0.6.11",
|
||||
"version": "0.6.12",
|
||||
"author": "www.fsdpf.com",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user