openxiangda 1.0.220 → 1.0.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/sdk/dist/runtime/index.cjs +239 -170
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.mjs +210 -133
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/react.cjs +177 -108
- package/packages/sdk/dist/runtime/react.cjs.map +1 -1
- package/packages/sdk/dist/runtime/react.mjs +186 -109
- package/packages/sdk/dist/runtime/react.mjs.map +1 -1
- package/packages/sdk/source/admin-list/AdminList.tsx +144 -84
|
@@ -44223,6 +44223,7 @@ init_cjs_shims();
|
|
|
44223
44223
|
// packages/sdk/src/runtime/react/admin-list/AdminList.tsx
|
|
44224
44224
|
init_cjs_shims();
|
|
44225
44225
|
var import_antd12 = require("antd");
|
|
44226
|
+
var import_icons11 = require("@ant-design/icons");
|
|
44226
44227
|
var import_react21 = require("react");
|
|
44227
44228
|
|
|
44228
44229
|
// packages/sdk/src/runtime/react/admin-list/preferences.ts
|
|
@@ -44373,7 +44374,8 @@ function renderSearchControl(field) {
|
|
|
44373
44374
|
disabled: field.disabled,
|
|
44374
44375
|
mode: field.type === "multiSelect" ? "multiple" : void 0,
|
|
44375
44376
|
options: field.options,
|
|
44376
|
-
placeholder
|
|
44377
|
+
placeholder,
|
|
44378
|
+
showSearch: { optionFilterProp: "label" }
|
|
44377
44379
|
}
|
|
44378
44380
|
);
|
|
44379
44381
|
}
|
|
@@ -44449,6 +44451,7 @@ function AdminList(props) {
|
|
|
44449
44451
|
const [form] = import_antd12.Form.useForm();
|
|
44450
44452
|
const [messageApi, messageHolder] = import_antd12.message.useMessage();
|
|
44451
44453
|
const [notificationApi, notificationHolder] = import_antd12.notification.useNotification();
|
|
44454
|
+
const [modalApi, modalHolder] = import_antd12.Modal.useModal();
|
|
44452
44455
|
const sourceKey = dataSource.key || "anonymous";
|
|
44453
44456
|
const [rawPreference, setRawPreference] = (0, import_react21.useState)(null);
|
|
44454
44457
|
const [preference, setPreference] = (0, import_react21.useState)(
|
|
@@ -44492,7 +44495,11 @@ function AdminList(props) {
|
|
|
44492
44495
|
const [draggedSearchKey, setDraggedSearchKey] = (0, import_react21.useState)("");
|
|
44493
44496
|
const selectedKeysRef = (0, import_react21.useRef)([]);
|
|
44494
44497
|
const dataSourceRef = (0, import_react21.useRef)(dataSource);
|
|
44498
|
+
const onQueryChangeRef = (0, import_react21.useRef)(onQueryChange);
|
|
44499
|
+
const onSelectionChangeRef = (0, import_react21.useRef)(onSelectionChange);
|
|
44495
44500
|
dataSourceRef.current = dataSource;
|
|
44501
|
+
onQueryChangeRef.current = onQueryChange;
|
|
44502
|
+
onSelectionChangeRef.current = onSelectionChange;
|
|
44496
44503
|
const definitionFingerprint = JSON.stringify({
|
|
44497
44504
|
columns: columns.map((column) => ({
|
|
44498
44505
|
key: column.key,
|
|
@@ -44521,9 +44528,9 @@ function AdminList(props) {
|
|
|
44521
44528
|
selectedRowsRef.current.clear();
|
|
44522
44529
|
selectedKeysRef.current = [];
|
|
44523
44530
|
setSelectedKeys([]);
|
|
44524
|
-
|
|
44531
|
+
onSelectionChangeRef.current?.({ rowKeys: [], rows: [] });
|
|
44525
44532
|
},
|
|
44526
|
-
[messageApi
|
|
44533
|
+
[messageApi]
|
|
44527
44534
|
);
|
|
44528
44535
|
(0, import_react21.useEffect)(() => {
|
|
44529
44536
|
if (!controlledSelectedKeys) return;
|
|
@@ -44554,11 +44561,11 @@ function AdminList(props) {
|
|
|
44554
44561
|
for (const key of disabledKeys) selectedRowsRef.current.delete(key);
|
|
44555
44562
|
selectedKeysRef.current = nextKeys;
|
|
44556
44563
|
setSelectedKeys(nextKeys);
|
|
44557
|
-
|
|
44564
|
+
onSelectionChangeRef.current?.({
|
|
44558
44565
|
rowKeys: nextKeys,
|
|
44559
44566
|
rows: nextKeys.map((key) => selectedRowsRef.current.get(key)).filter(Boolean)
|
|
44560
44567
|
});
|
|
44561
|
-
}, [
|
|
44568
|
+
}, [rowKey, rowSelectable, rows]);
|
|
44562
44569
|
(0, import_react21.useEffect)(() => {
|
|
44563
44570
|
let active = true;
|
|
44564
44571
|
setReady(false);
|
|
@@ -44642,7 +44649,7 @@ function AdminList(props) {
|
|
|
44642
44649
|
if (!ready) return;
|
|
44643
44650
|
setLoading(true);
|
|
44644
44651
|
setError(null);
|
|
44645
|
-
|
|
44652
|
+
onQueryChangeRef.current?.(query);
|
|
44646
44653
|
try {
|
|
44647
44654
|
const result = await dataSourceRef.current.query(query);
|
|
44648
44655
|
setRows(result.rows || []);
|
|
@@ -44658,7 +44665,7 @@ function AdminList(props) {
|
|
|
44658
44665
|
} finally {
|
|
44659
44666
|
setLoading(false);
|
|
44660
44667
|
}
|
|
44661
|
-
}, [
|
|
44668
|
+
}, [query, ready]);
|
|
44662
44669
|
(0, import_react21.useEffect)(() => {
|
|
44663
44670
|
if (!ready) return;
|
|
44664
44671
|
const fingerprint = queryFingerprint(query, sourceKey);
|
|
@@ -44707,7 +44714,7 @@ function AdminList(props) {
|
|
|
44707
44714
|
);
|
|
44708
44715
|
const title = definition.sortable ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { size: 4, children: [
|
|
44709
44716
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: definition.title }),
|
|
44710
|
-
sortablePriority.has(sortField) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Tag, {
|
|
44717
|
+
sortablePriority.has(sortField) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Tag, { color: "blue", variant: "filled", children: sortablePriority.get(sortField) }) : null
|
|
44711
44718
|
] }) : definition.title;
|
|
44712
44719
|
return {
|
|
44713
44720
|
key: definition.key,
|
|
@@ -44805,7 +44812,7 @@ function AdminList(props) {
|
|
|
44805
44812
|
}
|
|
44806
44813
|
setSelectedKeys(nextKeys);
|
|
44807
44814
|
selectedKeysRef.current = nextKeys;
|
|
44808
|
-
|
|
44815
|
+
onSelectionChangeRef.current?.({
|
|
44809
44816
|
rowKeys: nextKeys,
|
|
44810
44817
|
rows: nextKeys.map((key) => selectedRowsRef.current.get(key)).filter(Boolean)
|
|
44811
44818
|
});
|
|
@@ -45005,7 +45012,7 @@ function AdminList(props) {
|
|
|
45005
45012
|
{
|
|
45006
45013
|
key: "search",
|
|
45007
45014
|
label: "\u641C\u7D22\u9879",
|
|
45008
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45015
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
|
|
45009
45016
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { children: [
|
|
45010
45017
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "\u9ED8\u8BA4\u5C55\u793A" }),
|
|
45011
45018
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -45041,12 +45048,11 @@ function AdminList(props) {
|
|
|
45041
45048
|
),
|
|
45042
45049
|
style: {
|
|
45043
45050
|
alignItems: "center",
|
|
45044
|
-
|
|
45045
|
-
borderRadius: 8,
|
|
45051
|
+
borderBottom: "1px solid rgba(5, 5, 5, 0.06)",
|
|
45046
45052
|
display: "grid",
|
|
45047
|
-
gap:
|
|
45048
|
-
gridTemplateColumns: "
|
|
45049
|
-
padding: "
|
|
45053
|
+
gap: 12,
|
|
45054
|
+
gridTemplateColumns: "24px 1fr auto",
|
|
45055
|
+
padding: "12px 4px"
|
|
45050
45056
|
},
|
|
45051
45057
|
children: [
|
|
45052
45058
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -45054,7 +45060,7 @@ function AdminList(props) {
|
|
|
45054
45060
|
{
|
|
45055
45061
|
"aria-label": `\u62D6\u52A8\u7B2C ${index + 1} \u9879`,
|
|
45056
45062
|
style: { color: "#8c8c8c", cursor: "grab" },
|
|
45057
|
-
children:
|
|
45063
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.HolderOutlined, {})
|
|
45058
45064
|
}
|
|
45059
45065
|
),
|
|
45060
45066
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: definition.label }),
|
|
@@ -45085,7 +45091,7 @@ function AdminList(props) {
|
|
|
45085
45091
|
{
|
|
45086
45092
|
key: "columns",
|
|
45087
45093
|
label: "\u5217\u8BBE\u7F6E",
|
|
45088
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45094
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
|
|
45089
45095
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45090
45096
|
import_antd12.Input,
|
|
45091
45097
|
{
|
|
@@ -45119,12 +45125,11 @@ function AdminList(props) {
|
|
|
45119
45125
|
),
|
|
45120
45126
|
style: {
|
|
45121
45127
|
alignItems: "center",
|
|
45122
|
-
|
|
45123
|
-
borderRadius: 8,
|
|
45128
|
+
borderBottom: "1px solid rgba(5, 5, 5, 0.06)",
|
|
45124
45129
|
display: "grid",
|
|
45125
|
-
gap:
|
|
45126
|
-
gridTemplateColumns: "
|
|
45127
|
-
padding: "
|
|
45130
|
+
gap: 12,
|
|
45131
|
+
gridTemplateColumns: "24px minmax(0, 1fr) 76px 116px",
|
|
45132
|
+
padding: "12px 4px"
|
|
45128
45133
|
},
|
|
45129
45134
|
children: [
|
|
45130
45135
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -45132,7 +45137,7 @@ function AdminList(props) {
|
|
|
45132
45137
|
{
|
|
45133
45138
|
"aria-label": `\u62D6\u52A8\u7B2C ${index + 1} \u5217`,
|
|
45134
45139
|
style: { color: "#8c8c8c", cursor: "grab" },
|
|
45135
|
-
children:
|
|
45140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.HolderOutlined, {})
|
|
45136
45141
|
}
|
|
45137
45142
|
),
|
|
45138
45143
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
@@ -45145,7 +45150,7 @@ function AdminList(props) {
|
|
|
45145
45150
|
}),
|
|
45146
45151
|
children: [
|
|
45147
45152
|
definition.title,
|
|
45148
|
-
locked ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Tag, {
|
|
45153
|
+
locked ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Tag, { variant: "filled", style: { marginInlineStart: 4 }, children: "\u9501\u5B9A" }) : null
|
|
45149
45154
|
]
|
|
45150
45155
|
}
|
|
45151
45156
|
),
|
|
@@ -45186,7 +45191,7 @@ function AdminList(props) {
|
|
|
45186
45191
|
{
|
|
45187
45192
|
key: "sort",
|
|
45188
45193
|
label: "\u6392\u5E8F",
|
|
45189
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
|
|
45190
45195
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45191
45196
|
import_antd12.Alert,
|
|
45192
45197
|
{
|
|
@@ -45200,15 +45205,14 @@ function AdminList(props) {
|
|
|
45200
45205
|
{
|
|
45201
45206
|
style: {
|
|
45202
45207
|
alignItems: "center",
|
|
45203
|
-
|
|
45204
|
-
borderRadius: 8,
|
|
45208
|
+
borderBottom: "1px solid rgba(5, 5, 5, 0.06)",
|
|
45205
45209
|
display: "grid",
|
|
45206
|
-
gap:
|
|
45210
|
+
gap: 12,
|
|
45207
45211
|
gridTemplateColumns: "28px 1fr 100px auto",
|
|
45208
|
-
padding:
|
|
45212
|
+
padding: "12px 4px"
|
|
45209
45213
|
},
|
|
45210
45214
|
children: [
|
|
45211
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Tag, {
|
|
45215
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Tag, { color: "blue", variant: "filled", children: index + 1 }),
|
|
45212
45216
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45213
45217
|
import_antd12.Select,
|
|
45214
45218
|
{
|
|
@@ -45245,8 +45249,9 @@ function AdminList(props) {
|
|
|
45245
45249
|
import_antd12.Button,
|
|
45246
45250
|
{
|
|
45247
45251
|
danger: true,
|
|
45252
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.DeleteOutlined, {}),
|
|
45248
45253
|
size: "small",
|
|
45249
|
-
type: "
|
|
45254
|
+
type: "text",
|
|
45250
45255
|
onClick: () => setSettingsDraft((current) => ({
|
|
45251
45256
|
...current,
|
|
45252
45257
|
sorts: (current.sorts || []).filter(
|
|
@@ -45265,6 +45270,8 @@ function AdminList(props) {
|
|
|
45265
45270
|
{
|
|
45266
45271
|
block: true,
|
|
45267
45272
|
disabled: (settingsDraft.sorts || []).length >= columns.filter((column) => column.sortable).length,
|
|
45273
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.PlusOutlined, {}),
|
|
45274
|
+
type: "text",
|
|
45268
45275
|
onClick: () => {
|
|
45269
45276
|
const used = new Set(
|
|
45270
45277
|
(settingsDraft.sorts || []).map((sort) => sort.field)
|
|
@@ -45292,8 +45299,8 @@ function AdminList(props) {
|
|
|
45292
45299
|
{
|
|
45293
45300
|
key: "display",
|
|
45294
45301
|
label: "\u663E\u793A",
|
|
45295
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45296
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45302
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", size: 20, style: { width: "100%" }, children: [
|
|
45303
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", children: [
|
|
45297
45304
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "\u8868\u683C\u5BC6\u5EA6" }),
|
|
45298
45305
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45299
45306
|
import_antd12.Segmented,
|
|
@@ -45311,7 +45318,7 @@ function AdminList(props) {
|
|
|
45311
45318
|
}
|
|
45312
45319
|
)
|
|
45313
45320
|
] }),
|
|
45314
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45321
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", children: [
|
|
45315
45322
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: "\u9ED8\u8BA4\u6BCF\u9875" }),
|
|
45316
45323
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45317
45324
|
import_antd12.Segmented,
|
|
@@ -45409,59 +45416,87 @@ function AdminList(props) {
|
|
|
45409
45416
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className, style, children: [
|
|
45410
45417
|
messageHolder,
|
|
45411
45418
|
notificationHolder,
|
|
45412
|
-
|
|
45413
|
-
|
|
45414
|
-
|
|
45419
|
+
modalHolder,
|
|
45420
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", size: 16, style: { width: "100%" }, children: [
|
|
45421
|
+
searchFields.length ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45422
|
+
"div",
|
|
45415
45423
|
{
|
|
45416
|
-
|
|
45417
|
-
|
|
45418
|
-
|
|
45419
|
-
|
|
45420
|
-
"
|
|
45424
|
+
style: {
|
|
45425
|
+
background: "#fff",
|
|
45426
|
+
border: "1px solid #e8edf3",
|
|
45427
|
+
borderRadius: 8,
|
|
45428
|
+
overflowX: "auto",
|
|
45429
|
+
padding: "18px 20px"
|
|
45430
|
+
},
|
|
45431
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45432
|
+
import_antd12.Form,
|
|
45421
45433
|
{
|
|
45422
|
-
|
|
45423
|
-
|
|
45424
|
-
|
|
45425
|
-
|
|
45426
|
-
|
|
45427
|
-
|
|
45428
|
-
|
|
45429
|
-
|
|
45430
|
-
|
|
45431
|
-
|
|
45432
|
-
|
|
45433
|
-
|
|
45434
|
-
style: { marginBottom: 0 },
|
|
45435
|
-
children: field.render ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Form.Item, { noStyle: true, shouldUpdate: true, children: () => field.render?.({
|
|
45436
|
-
disabled: field.disabled,
|
|
45437
|
-
value: form.getFieldValue(field.key),
|
|
45438
|
-
onChange: (value) => form.setFieldValue(field.key, value)
|
|
45439
|
-
}) }) : renderSearchControl(field)
|
|
45434
|
+
form,
|
|
45435
|
+
layout: "vertical",
|
|
45436
|
+
onFinish: applySearch,
|
|
45437
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
45438
|
+
"div",
|
|
45439
|
+
{
|
|
45440
|
+
style: {
|
|
45441
|
+
alignItems: "end",
|
|
45442
|
+
display: "grid",
|
|
45443
|
+
gap: 12,
|
|
45444
|
+
gridTemplateColumns: "repeat(4, minmax(180px, 1fr)) minmax(256px, auto)",
|
|
45445
|
+
minWidth: 1040
|
|
45440
45446
|
},
|
|
45441
|
-
|
|
45442
|
-
|
|
45443
|
-
|
|
45444
|
-
|
|
45445
|
-
|
|
45446
|
-
|
|
45447
|
-
|
|
45448
|
-
|
|
45449
|
-
|
|
45450
|
-
|
|
45451
|
-
|
|
45452
|
-
|
|
45453
|
-
|
|
45454
|
-
|
|
45455
|
-
|
|
45447
|
+
children: [
|
|
45448
|
+
visibleSearchFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45449
|
+
import_antd12.Form.Item,
|
|
45450
|
+
{
|
|
45451
|
+
label: field.label,
|
|
45452
|
+
name: field.render ? void 0 : field.key,
|
|
45453
|
+
style: { marginBottom: 0 },
|
|
45454
|
+
children: field.render ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Form.Item, { noStyle: true, shouldUpdate: true, children: () => field.render?.({
|
|
45455
|
+
disabled: field.disabled,
|
|
45456
|
+
value: form.getFieldValue(field.key),
|
|
45457
|
+
onChange: (value) => form.setFieldValue(field.key, value)
|
|
45458
|
+
}) }) : renderSearchControl(field)
|
|
45459
|
+
},
|
|
45460
|
+
field.key
|
|
45461
|
+
)),
|
|
45462
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45463
|
+
import_antd12.Form.Item,
|
|
45464
|
+
{
|
|
45465
|
+
style: {
|
|
45466
|
+
justifySelf: "end",
|
|
45467
|
+
gridColumn: 5,
|
|
45468
|
+
marginBottom: 0,
|
|
45469
|
+
minWidth: 256
|
|
45470
|
+
},
|
|
45471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { size: 8, children: [
|
|
45472
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Button, { htmlType: "submit", type: "primary", children: "\u67E5\u8BE2" }),
|
|
45473
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Button, { onClick: resetSearch, children: "\u91CD\u7F6E" }),
|
|
45474
|
+
searchFields.length > (preference.defaultVisibleSearchCount || defaultVisibleSearchCount) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45475
|
+
import_antd12.Button,
|
|
45476
|
+
{
|
|
45477
|
+
icon: expanded ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.UpOutlined, {}) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.DownOutlined, {}),
|
|
45478
|
+
iconPlacement: "end",
|
|
45479
|
+
type: "link",
|
|
45480
|
+
onClick: () => setExpanded((current) => !current),
|
|
45481
|
+
children: expanded ? "\u6536\u8D77" : "\u66F4\u591A\u7B5B\u9009"
|
|
45482
|
+
}
|
|
45483
|
+
) : null
|
|
45484
|
+
] })
|
|
45485
|
+
}
|
|
45486
|
+
)
|
|
45487
|
+
]
|
|
45488
|
+
}
|
|
45489
|
+
)
|
|
45456
45490
|
}
|
|
45457
45491
|
)
|
|
45458
45492
|
}
|
|
45459
|
-
)
|
|
45493
|
+
) : null,
|
|
45460
45494
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45461
|
-
|
|
45495
|
+
"div",
|
|
45462
45496
|
{
|
|
45463
|
-
|
|
45464
|
-
|
|
45497
|
+
style: {
|
|
45498
|
+
padding: "2px 0 0"
|
|
45499
|
+
},
|
|
45465
45500
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
45466
45501
|
import_antd12.Space,
|
|
45467
45502
|
{
|
|
@@ -45488,14 +45523,37 @@ function AdminList(props) {
|
|
|
45488
45523
|
)
|
|
45489
45524
|
}))
|
|
45490
45525
|
},
|
|
45526
|
+
trigger: ["click"],
|
|
45491
45527
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Button, { disabled: selectedKeys.length === 0, children: "\u6279\u91CF\u64CD\u4F5C" })
|
|
45492
45528
|
}
|
|
45493
45529
|
) : null,
|
|
45494
|
-
exportable && dataSource.createExportTask ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Dropdown, { menu: { items: exportMenuItems }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45530
|
+
exportable && dataSource.createExportTask ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd12.Dropdown, { menu: { items: exportMenuItems }, trigger: ["click"], children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45531
|
+
import_antd12.Button,
|
|
45532
|
+
{
|
|
45533
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.DownloadOutlined, {}),
|
|
45534
|
+
loading: exporting,
|
|
45535
|
+
children: "\u5BFC\u51FA"
|
|
45536
|
+
}
|
|
45537
|
+
) }) : null
|
|
45495
45538
|
] }),
|
|
45496
45539
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { children: [
|
|
45497
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45498
|
-
|
|
45540
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45541
|
+
import_antd12.Button,
|
|
45542
|
+
{
|
|
45543
|
+
"aria-label": "\u5237\u65B0\u5217\u8868",
|
|
45544
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.ReloadOutlined, {}),
|
|
45545
|
+
title: "\u5237\u65B0",
|
|
45546
|
+
onClick: () => void loadData()
|
|
45547
|
+
}
|
|
45548
|
+
),
|
|
45549
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45550
|
+
import_antd12.Button,
|
|
45551
|
+
{
|
|
45552
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons11.SettingOutlined, {}),
|
|
45553
|
+
onClick: openSettings,
|
|
45554
|
+
children: "\u5217\u8868\u8BBE\u7F6E"
|
|
45555
|
+
}
|
|
45556
|
+
)
|
|
45499
45557
|
] })
|
|
45500
45558
|
]
|
|
45501
45559
|
}
|
|
@@ -45529,29 +45587,40 @@ function AdminList(props) {
|
|
|
45529
45587
|
}
|
|
45530
45588
|
) : null,
|
|
45531
45589
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45532
|
-
|
|
45590
|
+
"div",
|
|
45533
45591
|
{
|
|
45534
|
-
|
|
45535
|
-
|
|
45536
|
-
|
|
45537
|
-
|
|
45538
|
-
|
|
45539
|
-
|
|
45540
|
-
|
|
45541
|
-
|
|
45542
|
-
|
|
45543
|
-
|
|
45544
|
-
|
|
45545
|
-
|
|
45546
|
-
|
|
45547
|
-
|
|
45548
|
-
|
|
45549
|
-
|
|
45550
|
-
|
|
45551
|
-
|
|
45552
|
-
|
|
45553
|
-
|
|
45554
|
-
|
|
45592
|
+
style: {
|
|
45593
|
+
background: "#fff",
|
|
45594
|
+
border: "1px solid #edf0f4",
|
|
45595
|
+
borderRadius: 8,
|
|
45596
|
+
overflow: "hidden"
|
|
45597
|
+
},
|
|
45598
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45599
|
+
import_antd12.Table,
|
|
45600
|
+
{
|
|
45601
|
+
bordered: preference.showBorders,
|
|
45602
|
+
columns: resolvedColumns,
|
|
45603
|
+
dataSource: rows,
|
|
45604
|
+
loading,
|
|
45605
|
+
locale: { emptyText: localeEmpty },
|
|
45606
|
+
pagination: tablePagination,
|
|
45607
|
+
rowClassName: (_row, index) => preference.striped && index % 2 === 1 ? "admin-list-row-striped" : "",
|
|
45608
|
+
rowKey: (row) => getRowKey(rowKey, row),
|
|
45609
|
+
rowSelection: selectable ? {
|
|
45610
|
+
preserveSelectedRowKeys: preserveSelectionAcrossPages,
|
|
45611
|
+
selectedRowKeys: selectedKeys,
|
|
45612
|
+
getCheckboxProps: (row) => ({
|
|
45613
|
+
disabled: rowSelectable ? !rowSelectable(row) : false,
|
|
45614
|
+
title: rowSelectionReason?.(row)
|
|
45615
|
+
}),
|
|
45616
|
+
onChange: handleSelectionChange
|
|
45617
|
+
} : void 0,
|
|
45618
|
+
scroll: { x: "max-content" },
|
|
45619
|
+
size: preference.density,
|
|
45620
|
+
onChange: handleTableChange,
|
|
45621
|
+
onRow
|
|
45622
|
+
}
|
|
45623
|
+
)
|
|
45555
45624
|
}
|
|
45556
45625
|
)
|
|
45557
45626
|
] }),
|
|
@@ -45567,7 +45636,7 @@ function AdminList(props) {
|
|
|
45567
45636
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
45568
45637
|
import_antd12.Button,
|
|
45569
45638
|
{
|
|
45570
|
-
onClick: () =>
|
|
45639
|
+
onClick: () => modalApi.confirm({
|
|
45571
45640
|
title: "\u6062\u590D\u7CFB\u7EDF\u9ED8\u8BA4\u8BBE\u7F6E\uFF1F",
|
|
45572
45641
|
content: "\u5F53\u524D\u8D26\u53F7\u4FDD\u5B58\u7684\u5217\u8868\u914D\u7F6E\u5C06\u88AB\u6E05\u9664\u3002",
|
|
45573
45642
|
okText: "\u6062\u590D",
|
|
@@ -45600,10 +45669,10 @@ function AdminList(props) {
|
|
|
45600
45669
|
}
|
|
45601
45670
|
)
|
|
45602
45671
|
] }),
|
|
45603
|
-
|
|
45672
|
+
size: 420,
|
|
45604
45673
|
onClose: () => {
|
|
45605
45674
|
if (JSON.stringify(settingsDraft) !== JSON.stringify(preference)) {
|
|
45606
|
-
|
|
45675
|
+
modalApi.confirm({
|
|
45607
45676
|
title: "\u653E\u5F03\u672A\u4FDD\u5B58\u7684\u8BBE\u7F6E\uFF1F",
|
|
45608
45677
|
content: "\u5F53\u524D\u8C03\u6574\u5C1A\u672A\u5E94\u7528\uFF0C\u5173\u95ED\u540E\u5C06\u4E22\u5931\u3002",
|
|
45609
45678
|
okText: "\u653E\u5F03\u4FEE\u6539",
|
|
@@ -45627,7 +45696,7 @@ function AdminList(props) {
|
|
|
45627
45696
|
title: "\u5BFC\u51FA\u5168\u90E8\u6570\u636E",
|
|
45628
45697
|
onCancel: () => setExportConfirmOpen(false),
|
|
45629
45698
|
onOk: () => void executeExport("all"),
|
|
45630
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, {
|
|
45699
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_antd12.Space, { orientation: "vertical", size: 12, style: { width: "100%" }, children: [
|
|
45631
45700
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: "\u6570\u636E\u8303\u56F4\uFF1A\u5F53\u524D\u67E5\u8BE2\u7ED3\u679C" }),
|
|
45632
45701
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
|
|
45633
45702
|
"\u9884\u8BA1\u6570\u91CF\uFF1A",
|
|
@@ -45818,7 +45887,7 @@ init_cjs_shims();
|
|
|
45818
45887
|
var import_react88 = require("react");
|
|
45819
45888
|
var import_antd44 = require("antd");
|
|
45820
45889
|
var import_dayjs12 = __toESM(require("dayjs"));
|
|
45821
|
-
var
|
|
45890
|
+
var import_icons21 = require("@ant-design/icons");
|
|
45822
45891
|
|
|
45823
45892
|
// packages/sdk/src/components/templates/StandardFormPage.tsx
|
|
45824
45893
|
init_cjs_shims();
|
|
@@ -47061,7 +47130,7 @@ var import_react31 = require("react");
|
|
|
47061
47130
|
// packages/sdk/src/components/fields/shared/MobileField.tsx
|
|
47062
47131
|
init_cjs_shims();
|
|
47063
47132
|
var import_antd_mobile4 = require("antd-mobile");
|
|
47064
|
-
var
|
|
47133
|
+
var import_icons12 = require("@ant-design/icons");
|
|
47065
47134
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
47066
47135
|
function joinClassNames4(...classes) {
|
|
47067
47136
|
return classes.filter(Boolean).join(" ");
|
|
@@ -47118,9 +47187,9 @@ function MobileFieldTrigger({
|
|
|
47118
47187
|
}
|
|
47119
47188
|
},
|
|
47120
47189
|
"aria-label": "\u6E05\u7A7A",
|
|
47121
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
47190
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.CloseCircleFilled, {})
|
|
47122
47191
|
}
|
|
47123
|
-
) : showArrow ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
47192
|
+
) : showArrow ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.RightOutlined, { className: "sy-mobile-field-arrow", "aria-hidden": "true" }) : null
|
|
47124
47193
|
]
|
|
47125
47194
|
}
|
|
47126
47195
|
);
|
|
@@ -47207,7 +47276,7 @@ function MobileSheetFooter({
|
|
|
47207
47276
|
}
|
|
47208
47277
|
function MobileSearchBox({ value, placeholder = "\u641C\u7D22", onChange }) {
|
|
47209
47278
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "sy-mobile-search", children: [
|
|
47210
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "sy-mobile-search-icon", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
47279
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "sy-mobile-search-icon", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons12.SearchOutlined, {}) }),
|
|
47211
47280
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
47212
47281
|
"input",
|
|
47213
47282
|
{
|
|
@@ -51150,7 +51219,7 @@ function getDepartmentPathText(department, separator = "/") {
|
|
|
51150
51219
|
init_cjs_shims();
|
|
51151
51220
|
var import_react55 = require("react");
|
|
51152
51221
|
var import_antd26 = require("antd");
|
|
51153
|
-
var
|
|
51222
|
+
var import_icons13 = require("@ant-design/icons");
|
|
51154
51223
|
var MobileAntd3 = __toESM(require("antd-mobile"));
|
|
51155
51224
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
51156
51225
|
var getMobileComponent2 = (name) => {
|
|
@@ -51358,7 +51427,7 @@ function DepartmentPickerPanel({
|
|
|
51358
51427
|
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
51359
51428
|
import_antd26.List.Item.Meta,
|
|
51360
51429
|
{
|
|
51361
|
-
avatar: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
51430
|
+
avatar: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons13.ApartmentOutlined, {}),
|
|
51362
51431
|
title: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { children: [
|
|
51363
51432
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: name }),
|
|
51364
51433
|
showFullPath && pathText && pathText !== name ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { className: "sy-org-picker-path", children: [
|
|
@@ -51429,7 +51498,7 @@ function DepartmentPickerPanel({
|
|
|
51429
51498
|
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
51430
51499
|
import_antd26.List.Item.Meta,
|
|
51431
51500
|
{
|
|
51432
|
-
avatar: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
51501
|
+
avatar: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons13.ApartmentOutlined, {}),
|
|
51433
51502
|
title: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { children: [
|
|
51434
51503
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: name }),
|
|
51435
51504
|
showFullPath && pathText && pathText !== name ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { className: "sy-org-picker-path", children: [
|
|
@@ -51455,7 +51524,7 @@ function DepartmentPickerPanel({
|
|
|
51455
51524
|
import_antd26.Input,
|
|
51456
51525
|
{
|
|
51457
51526
|
allowClear: true,
|
|
51458
|
-
prefix: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
51527
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons13.SearchOutlined, {}),
|
|
51459
51528
|
placeholder: "\u641C\u7D22\u90E8\u95E8",
|
|
51460
51529
|
value: keyword,
|
|
51461
51530
|
onChange: (event) => setKeyword(event.target.value)
|
|
@@ -53000,7 +53069,7 @@ var import_extension_table_cell = __toESM(require("@tiptap/extension-table-cell"
|
|
|
53000
53069
|
var import_extension_table_header = __toESM(require("@tiptap/extension-table-header"));
|
|
53001
53070
|
var import_lowlight = require("lowlight");
|
|
53002
53071
|
var import_antd31 = require("antd");
|
|
53003
|
-
var
|
|
53072
|
+
var import_icons14 = require("@ant-design/icons");
|
|
53004
53073
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
53005
53074
|
var lowlight = (0, import_lowlight.createLowlight)(import_lowlight.common);
|
|
53006
53075
|
var FontSize = import_core.Extension.create({
|
|
@@ -53202,7 +53271,7 @@ function EditorToolbar({
|
|
|
53202
53271
|
ToolbarButton,
|
|
53203
53272
|
{
|
|
53204
53273
|
label: "\u64A4\u9500",
|
|
53205
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53274
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.UndoOutlined, {}),
|
|
53206
53275
|
disabled: disabled || !canUndo,
|
|
53207
53276
|
onClick: () => editor.chain().focus().undo().run()
|
|
53208
53277
|
}
|
|
@@ -53211,7 +53280,7 @@ function EditorToolbar({
|
|
|
53211
53280
|
ToolbarButton,
|
|
53212
53281
|
{
|
|
53213
53282
|
label: "\u91CD\u505A",
|
|
53214
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53283
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.RedoOutlined, {}),
|
|
53215
53284
|
disabled: disabled || !canRedo,
|
|
53216
53285
|
onClick: () => editor.chain().focus().redo().run()
|
|
53217
53286
|
}
|
|
@@ -53276,7 +53345,7 @@ function EditorToolbar({
|
|
|
53276
53345
|
ToolbarButton,
|
|
53277
53346
|
{
|
|
53278
53347
|
label: "\u52A0\u7C97",
|
|
53279
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53348
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.BoldOutlined, {}),
|
|
53280
53349
|
disabled,
|
|
53281
53350
|
active: editor.isActive("bold"),
|
|
53282
53351
|
onClick: () => editor.chain().focus().toggleBold().run()
|
|
@@ -53286,7 +53355,7 @@ function EditorToolbar({
|
|
|
53286
53355
|
ToolbarButton,
|
|
53287
53356
|
{
|
|
53288
53357
|
label: "\u659C\u4F53",
|
|
53289
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53358
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.ItalicOutlined, {}),
|
|
53290
53359
|
disabled,
|
|
53291
53360
|
active: editor.isActive("italic"),
|
|
53292
53361
|
onClick: () => editor.chain().focus().toggleItalic().run()
|
|
@@ -53296,7 +53365,7 @@ function EditorToolbar({
|
|
|
53296
53365
|
ToolbarButton,
|
|
53297
53366
|
{
|
|
53298
53367
|
label: "\u4E0B\u5212\u7EBF",
|
|
53299
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53368
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.UnderlineOutlined, {}),
|
|
53300
53369
|
disabled,
|
|
53301
53370
|
active: editor.isActive("underline"),
|
|
53302
53371
|
onClick: () => editor.chain().focus().toggleUnderline().run()
|
|
@@ -53306,7 +53375,7 @@ function EditorToolbar({
|
|
|
53306
53375
|
ToolbarButton,
|
|
53307
53376
|
{
|
|
53308
53377
|
label: "\u5220\u9664\u7EBF",
|
|
53309
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53378
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.StrikethroughOutlined, {}),
|
|
53310
53379
|
disabled,
|
|
53311
53380
|
active: editor.isActive("strike"),
|
|
53312
53381
|
onClick: () => editor.chain().focus().toggleStrike().run()
|
|
@@ -53364,7 +53433,7 @@ function EditorToolbar({
|
|
|
53364
53433
|
ToolbarButton,
|
|
53365
53434
|
{
|
|
53366
53435
|
label: "\u9AD8\u4EAE",
|
|
53367
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53436
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.HighlightOutlined, {}),
|
|
53368
53437
|
disabled,
|
|
53369
53438
|
active: editor.isActive("highlight"),
|
|
53370
53439
|
onClick: () => editor.chain().focus().toggleHighlight({ color: "#fff3bf" }).run()
|
|
@@ -53376,7 +53445,7 @@ function EditorToolbar({
|
|
|
53376
53445
|
ToolbarButton,
|
|
53377
53446
|
{
|
|
53378
53447
|
label: "\u65E0\u5E8F\u5217\u8868",
|
|
53379
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53448
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.UnorderedListOutlined, {}),
|
|
53380
53449
|
disabled,
|
|
53381
53450
|
active: editor.isActive("bulletList"),
|
|
53382
53451
|
onClick: () => editor.chain().focus().toggleBulletList().run()
|
|
@@ -53386,7 +53455,7 @@ function EditorToolbar({
|
|
|
53386
53455
|
ToolbarButton,
|
|
53387
53456
|
{
|
|
53388
53457
|
label: "\u6709\u5E8F\u5217\u8868",
|
|
53389
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53458
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.OrderedListOutlined, {}),
|
|
53390
53459
|
disabled,
|
|
53391
53460
|
active: editor.isActive("orderedList"),
|
|
53392
53461
|
onClick: () => editor.chain().focus().toggleOrderedList().run()
|
|
@@ -53416,7 +53485,7 @@ function EditorToolbar({
|
|
|
53416
53485
|
ToolbarButton,
|
|
53417
53486
|
{
|
|
53418
53487
|
label: "\u4EE3\u7801\u5757",
|
|
53419
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53488
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.CodeOutlined, {}),
|
|
53420
53489
|
disabled,
|
|
53421
53490
|
active: editor.isActive("codeBlock"),
|
|
53422
53491
|
onClick: () => editor.chain().focus().toggleCodeBlock().run()
|
|
@@ -53428,7 +53497,7 @@ function EditorToolbar({
|
|
|
53428
53497
|
ToolbarButton,
|
|
53429
53498
|
{
|
|
53430
53499
|
label: "\u5DE6\u5BF9\u9F50",
|
|
53431
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53500
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.AlignLeftOutlined, {}),
|
|
53432
53501
|
disabled,
|
|
53433
53502
|
active: editor.isActive({ textAlign: "left" }),
|
|
53434
53503
|
onClick: () => editor.chain().focus().setTextAlign("left").run()
|
|
@@ -53438,7 +53507,7 @@ function EditorToolbar({
|
|
|
53438
53507
|
ToolbarButton,
|
|
53439
53508
|
{
|
|
53440
53509
|
label: "\u5C45\u4E2D",
|
|
53441
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53510
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.AlignCenterOutlined, {}),
|
|
53442
53511
|
disabled,
|
|
53443
53512
|
active: editor.isActive({ textAlign: "center" }),
|
|
53444
53513
|
onClick: () => editor.chain().focus().setTextAlign("center").run()
|
|
@@ -53448,7 +53517,7 @@ function EditorToolbar({
|
|
|
53448
53517
|
ToolbarButton,
|
|
53449
53518
|
{
|
|
53450
53519
|
label: "\u53F3\u5BF9\u9F50",
|
|
53451
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53520
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.AlignRightOutlined, {}),
|
|
53452
53521
|
disabled,
|
|
53453
53522
|
active: editor.isActive({ textAlign: "right" }),
|
|
53454
53523
|
onClick: () => editor.chain().focus().setTextAlign("right").run()
|
|
@@ -53460,7 +53529,7 @@ function EditorToolbar({
|
|
|
53460
53529
|
ToolbarButton,
|
|
53461
53530
|
{
|
|
53462
53531
|
label: linkActive ? "\u7F16\u8F91\u94FE\u63A5" : "\u63D2\u5165\u94FE\u63A5",
|
|
53463
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53532
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.LinkOutlined, {}),
|
|
53464
53533
|
disabled,
|
|
53465
53534
|
active: linkActive,
|
|
53466
53535
|
onClick: onOpenLink
|
|
@@ -53470,7 +53539,7 @@ function EditorToolbar({
|
|
|
53470
53539
|
ToolbarButton,
|
|
53471
53540
|
{
|
|
53472
53541
|
label: "\u4E0A\u4F20\u56FE\u7247",
|
|
53473
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53542
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.PictureOutlined, {}),
|
|
53474
53543
|
disabled,
|
|
53475
53544
|
onClick: onPickImage
|
|
53476
53545
|
}
|
|
@@ -53490,7 +53559,7 @@ function EditorToolbar({
|
|
|
53490
53559
|
ToolbarButton,
|
|
53491
53560
|
{
|
|
53492
53561
|
label: "\u63D2\u5165\u8868\u683C",
|
|
53493
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53562
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.TableOutlined, {}),
|
|
53494
53563
|
disabled,
|
|
53495
53564
|
active: tableActive,
|
|
53496
53565
|
onClick: onOpenTable
|
|
@@ -53573,7 +53642,7 @@ function EditorToolbar({
|
|
|
53573
53642
|
ToolbarButton,
|
|
53574
53643
|
{
|
|
53575
53644
|
label: "\u6E05\u9664\u683C\u5F0F",
|
|
53576
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
53645
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons14.ClearOutlined, {}),
|
|
53577
53646
|
disabled,
|
|
53578
53647
|
onClick: () => editor.chain().focus().unsetAllMarks().clearNodes().run()
|
|
53579
53648
|
}
|
|
@@ -55582,14 +55651,14 @@ init_cjs_shims();
|
|
|
55582
55651
|
|
|
55583
55652
|
// packages/sdk/src/components/layout/FormSection/index.tsx
|
|
55584
55653
|
init_cjs_shims();
|
|
55585
|
-
var
|
|
55654
|
+
var import_icons15 = require("@ant-design/icons");
|
|
55586
55655
|
var import_react70 = require("react");
|
|
55587
55656
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
55588
55657
|
var sectionIconMap = {
|
|
55589
|
-
user:
|
|
55590
|
-
calendar:
|
|
55591
|
-
file:
|
|
55592
|
-
device:
|
|
55658
|
+
user: import_icons15.UserOutlined,
|
|
55659
|
+
calendar: import_icons15.CalendarOutlined,
|
|
55660
|
+
file: import_icons15.FileTextOutlined,
|
|
55661
|
+
device: import_icons15.DesktopOutlined
|
|
55593
55662
|
};
|
|
55594
55663
|
function cn2(...classes) {
|
|
55595
55664
|
return classes.filter(Boolean).join(" ");
|
|
@@ -56683,7 +56752,7 @@ var RuntimePageShell = ({
|
|
|
56683
56752
|
// packages/sdk/src/components/modules/SummaryPanel.tsx
|
|
56684
56753
|
init_cjs_shims();
|
|
56685
56754
|
var import_antd37 = require("antd");
|
|
56686
|
-
var
|
|
56755
|
+
var import_icons16 = require("@ant-design/icons");
|
|
56687
56756
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
56688
56757
|
var toneClasses2 = {
|
|
56689
56758
|
brand: "bg-blue-50 text-blue-700 border-blue-200",
|
|
@@ -56714,13 +56783,13 @@ var SummaryPanel = ({
|
|
|
56714
56783
|
key: "department",
|
|
56715
56784
|
label: "\u6240\u5C5E\u90E8\u95E8",
|
|
56716
56785
|
value: creator?.department || "-",
|
|
56717
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
56786
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_icons16.ApartmentOutlined, {})
|
|
56718
56787
|
},
|
|
56719
56788
|
{
|
|
56720
56789
|
key: "createdAt",
|
|
56721
56790
|
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
56722
56791
|
value: createdAt || "-",
|
|
56723
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
56792
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_icons16.CalendarOutlined, {})
|
|
56724
56793
|
}
|
|
56725
56794
|
];
|
|
56726
56795
|
const items = metaItems || defaultItems;
|
|
@@ -56734,7 +56803,7 @@ var SummaryPanel = ({
|
|
|
56734
56803
|
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "sy-summary-panel-content p-5 md:p-6", children: [
|
|
56735
56804
|
(showEyebrow || status) && /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "sy-summary-status-row mb-2 flex items-center justify-between gap-3", children: [
|
|
56736
56805
|
showEyebrow ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "min-w-0 text-sm text-ant-text-tertiary", children: eyebrow || /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
|
|
56737
|
-
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
56806
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_icons16.FileTextOutlined, {}),
|
|
56738
56807
|
"\u6570\u636E\u5B9E\u4F8B"
|
|
56739
56808
|
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", {}),
|
|
56740
56809
|
status && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
@@ -56770,7 +56839,7 @@ var SummaryPanel = ({
|
|
|
56770
56839
|
init_cjs_shims();
|
|
56771
56840
|
var import_react77 = require("react");
|
|
56772
56841
|
var import_antd38 = require("antd");
|
|
56773
|
-
var
|
|
56842
|
+
var import_icons17 = require("@ant-design/icons");
|
|
56774
56843
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
56775
56844
|
var sourceLabels = {
|
|
56776
56845
|
frontend: "\u524D\u7AEF",
|
|
@@ -56834,13 +56903,13 @@ var RecordChangePanel = ({
|
|
|
56834
56903
|
className: "flex min-w-0 items-center gap-2 bg-transparent p-0 text-left",
|
|
56835
56904
|
onClick: handleToggle,
|
|
56836
56905
|
children: [
|
|
56837
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
56906
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_icons17.HistoryOutlined, { className: "text-ant-primary" }),
|
|
56838
56907
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "font-semibold text-ant-text", children: "\u53D8\u66F4\u8BB0\u5F55" }),
|
|
56839
56908
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("span", { className: "rounded-full bg-gray-100 px-2 py-0.5 text-xs text-ant-text-tertiary", children: [
|
|
56840
56909
|
count,
|
|
56841
56910
|
" \u6761"
|
|
56842
56911
|
] }),
|
|
56843
|
-
expanded ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
56912
|
+
expanded ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_icons17.UpOutlined, { className: "text-xs" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_icons17.DownOutlined, { className: "text-xs" })
|
|
56844
56913
|
]
|
|
56845
56914
|
}
|
|
56846
56915
|
),
|
|
@@ -56849,7 +56918,7 @@ var RecordChangePanel = ({
|
|
|
56849
56918
|
{
|
|
56850
56919
|
type: "text",
|
|
56851
56920
|
size: "small",
|
|
56852
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
56921
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_icons17.ReloadOutlined, {}),
|
|
56853
56922
|
onClick: onRefresh,
|
|
56854
56923
|
disabled: loading,
|
|
56855
56924
|
children: "\u5237\u65B0"
|
|
@@ -56903,7 +56972,7 @@ var RecordChangePanel = ({
|
|
|
56903
56972
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "text-sm font-medium text-ant-text-secondary", children: change.fieldLabel || change.fieldKey || "-" }),
|
|
56904
56973
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "grid min-w-0 grid-cols-[1fr_auto_1fr] items-start gap-2 text-sm", children: [
|
|
56905
56974
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "min-w-0 rounded bg-red-50 px-2 py-1 text-red-700", children: formatValue(change.beforeValue) }),
|
|
56906
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
56975
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_icons17.ArrowRightOutlined, { className: "mt-1 text-xs text-ant-text-tertiary" }),
|
|
56907
56976
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "min-w-0 rounded bg-emerald-50 px-2 py-1 text-emerald-700", children: formatValue(change.afterValue) })
|
|
56908
56977
|
] })
|
|
56909
56978
|
]
|
|
@@ -57209,7 +57278,7 @@ var FormDetailTemplate = (props) => {
|
|
|
57209
57278
|
init_cjs_shims();
|
|
57210
57279
|
var import_react81 = require("react");
|
|
57211
57280
|
var import_antd41 = require("antd");
|
|
57212
|
-
var
|
|
57281
|
+
var import_icons19 = require("@ant-design/icons");
|
|
57213
57282
|
|
|
57214
57283
|
// packages/sdk/src/components/hooks/useDraftStorage.ts
|
|
57215
57284
|
init_cjs_shims();
|
|
@@ -57435,7 +57504,7 @@ function useFormNavigation(options) {
|
|
|
57435
57504
|
// packages/sdk/src/components/modules/DraftManager.tsx
|
|
57436
57505
|
init_cjs_shims();
|
|
57437
57506
|
var import_antd40 = require("antd");
|
|
57438
|
-
var
|
|
57507
|
+
var import_icons18 = require("@ant-design/icons");
|
|
57439
57508
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
57440
57509
|
function formatRelativeTime(timestamp) {
|
|
57441
57510
|
const now = Date.now();
|
|
@@ -57463,7 +57532,7 @@ var DraftManager = ({
|
|
|
57463
57532
|
className: `bg-blue-50 border border-blue-200 rounded-lg p-4 animate-[slideDown_0.3s_ease-out] ${className}`,
|
|
57464
57533
|
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center justify-between flex-wrap gap-3", children: [
|
|
57465
57534
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center gap-2 text-sm text-blue-700", children: [
|
|
57466
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
57535
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_icons18.EditOutlined, { className: "text-blue-500" }),
|
|
57467
57536
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { children: [
|
|
57468
57537
|
"\u68C0\u6D4B\u5230\u672A\u63D0\u4EA4\u7684\u8349\u7A3F",
|
|
57469
57538
|
timeLabel && /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { className: "text-blue-500 ml-1", children: [
|
|
@@ -57575,7 +57644,7 @@ var SubmitSuccessCard = ({
|
|
|
57575
57644
|
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_jsx_runtime101.Fragment, { children: renderSuccess(info) });
|
|
57576
57645
|
}
|
|
57577
57646
|
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "bg-white rounded-xl shadow-sm border border-gray-100 p-6", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex flex-col items-center py-16 animate-[fadeIn_0.3s_ease-out,scaleIn_0.3s_ease-out]", children: [
|
|
57578
|
-
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
57647
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_icons19.CheckCircleFilled, { className: "text-2xl text-green-500" }) }),
|
|
57579
57648
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h2", { className: "text-lg font-semibold text-gray-900 mb-1", children: "\u63D0\u4EA4\u6210\u529F" }),
|
|
57580
57649
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-sm text-gray-500 mb-6", children: info.message || "\u5DF2\u6210\u529F\u521B\u5EFA\u4E00\u6761\u65B0\u8BB0\u5F55" }),
|
|
57581
57650
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex gap-3", children: [
|
|
@@ -58723,7 +58792,7 @@ function useApprovalActions(options) {
|
|
|
58723
58792
|
init_cjs_shims();
|
|
58724
58793
|
var import_react85 = __toESM(require("react"));
|
|
58725
58794
|
var import_antd42 = require("antd");
|
|
58726
|
-
var
|
|
58795
|
+
var import_icons20 = require("@ant-design/icons");
|
|
58727
58796
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
58728
58797
|
var actionPriority2 = {
|
|
58729
58798
|
agree: 10,
|
|
@@ -58918,7 +58987,7 @@ var ApprovalActionBar = ({
|
|
|
58918
58987
|
key: action.action,
|
|
58919
58988
|
label: getActionLabel(action),
|
|
58920
58989
|
type: normalized === "agree" ? "primary" : danger ? "danger" : "default",
|
|
58921
|
-
icon: normalized === "agree" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
58990
|
+
icon: normalized === "agree" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons20.CheckOutlined, {}) : normalized === "rejected" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons20.CloseOutlined, {}) : normalized === "transfer" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons20.SwapOutlined, {}) : normalized === "return" || normalized === "withdraw" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons20.RollbackOutlined, {}) : normalized === "save" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_icons20.SaveOutlined, {}) : void 0,
|
|
58922
58991
|
onClick: () => handleActionClick(action),
|
|
58923
58992
|
placement: danger || normalized === "save" ? "right" : "left",
|
|
58924
58993
|
priority: actionPriority2[action.action] ?? 50
|
|
@@ -61092,7 +61161,7 @@ function FilterGroupEditor({
|
|
|
61092
61161
|
{
|
|
61093
61162
|
danger: true,
|
|
61094
61163
|
type: "text",
|
|
61095
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61164
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DeleteOutlined, {}),
|
|
61096
61165
|
onClick: () => onChange({ ...group, rules: group.rules.filter((item) => item.id !== rule.id) })
|
|
61097
61166
|
}
|
|
61098
61167
|
)
|
|
@@ -61770,7 +61839,7 @@ var DataManagementList = ({
|
|
|
61770
61839
|
key: "delete",
|
|
61771
61840
|
label: "\u5220\u9664",
|
|
61772
61841
|
danger: true,
|
|
61773
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61842
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DeleteOutlined, {}),
|
|
61774
61843
|
onClick: () => confirmDanger(
|
|
61775
61844
|
"\u786E\u8BA4\u5220\u9664",
|
|
61776
61845
|
"\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u8BA4\u7EE7\u7EED\u5417\uFF1F",
|
|
@@ -61782,7 +61851,7 @@ var DataManagementList = ({
|
|
|
61782
61851
|
{
|
|
61783
61852
|
key: "workflow",
|
|
61784
61853
|
label: "\u6D41\u7A0B\u65E5\u5FD7",
|
|
61785
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61854
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.HistoryOutlined, {}),
|
|
61786
61855
|
onClick: () => import_antd44.message.info("\u8BF7\u901A\u8FC7 detailRenderer \u63A5\u5165\u6D41\u7A0B\u65E5\u5FD7\u6216\u6D41\u7A0B\u56FE\u5165\u53E3")
|
|
61787
61856
|
}
|
|
61788
61857
|
] : []
|
|
@@ -61820,7 +61889,7 @@ var DataManagementList = ({
|
|
|
61820
61889
|
{
|
|
61821
61890
|
type: "text",
|
|
61822
61891
|
size: "small",
|
|
61823
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61892
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.MoreOutlined, {}),
|
|
61824
61893
|
"aria-label": "\u66F4\u591A\u64CD\u4F5C"
|
|
61825
61894
|
}
|
|
61826
61895
|
)
|
|
@@ -61881,7 +61950,7 @@ var DataManagementList = ({
|
|
|
61881
61950
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "mx-auto flex min-h-0 w-full max-w-[1440px] flex-col px-4 py-4 md:px-6", children: [
|
|
61882
61951
|
title && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "m-0 text-xl font-semibold text-ant-color-text", children: title }) }),
|
|
61883
61952
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "mb-4 flex flex-col gap-3 md:flex-row md:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_antd44.Space, { wrap: true, children: [
|
|
61884
|
-
canCreate && (submitRenderer || runtimeFormSchema) && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61953
|
+
canCreate && (submitRenderer || runtimeFormSchema) && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.PlusOutlined, {}), type: "primary", onClick: () => setSubmitOpen(true), children: "\u65B0\u589E" }),
|
|
61885
61954
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61886
61955
|
import_antd44.Input.Search,
|
|
61887
61956
|
{
|
|
@@ -61905,8 +61974,8 @@ var DataManagementList = ({
|
|
|
61905
61974
|
}
|
|
61906
61975
|
}
|
|
61907
61976
|
),
|
|
61908
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61909
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61977
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.FilterOutlined, {}), onClick: () => setFilterOpen(true), children: "\u7B5B\u9009" }),
|
|
61978
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.SettingOutlined, {}), onClick: () => setColumnOpen(true), children: "\u5217\u8BBE\u7F6E" }),
|
|
61910
61979
|
canExport && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61911
61980
|
import_antd44.Dropdown,
|
|
61912
61981
|
{
|
|
@@ -61929,7 +61998,7 @@ var DataManagementList = ({
|
|
|
61929
61998
|
}
|
|
61930
61999
|
]
|
|
61931
62000
|
},
|
|
61932
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62001
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DownloadOutlined, {}), children: "\u5BFC\u51FA" })
|
|
61933
62002
|
}
|
|
61934
62003
|
),
|
|
61935
62004
|
canImport && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
@@ -61946,10 +62015,10 @@ var DataManagementList = ({
|
|
|
61946
62015
|
}
|
|
61947
62016
|
]
|
|
61948
62017
|
},
|
|
61949
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62018
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.ImportOutlined, {}), children: "\u5BFC\u5165" })
|
|
61950
62019
|
}
|
|
61951
62020
|
),
|
|
61952
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62021
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.ReloadOutlined, {}), onClick: () => loadData({ current, pageSize }) })
|
|
61953
62022
|
] }) }),
|
|
61954
62023
|
selectedRowKeys.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "mb-3 flex flex-wrap items-center justify-between gap-3 rounded-lg border border-ant-border-secondary bg-ant-bg-container px-4 py-3 shadow-sm", children: [
|
|
61955
62024
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("span", { className: "text-sm text-ant-color-text-secondary", children: [
|
|
@@ -61961,7 +62030,7 @@ var DataManagementList = ({
|
|
|
61961
62030
|
canExport && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61962
62031
|
import_antd44.Button,
|
|
61963
62032
|
{
|
|
61964
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62033
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DownloadOutlined, {}),
|
|
61965
62034
|
onClick: () => {
|
|
61966
62035
|
setExportScope("selected");
|
|
61967
62036
|
setExportFields(showFields);
|
|
@@ -61970,12 +62039,12 @@ var DataManagementList = ({
|
|
|
61970
62039
|
children: "\u5BFC\u51FA\u9009\u4E2D"
|
|
61971
62040
|
}
|
|
61972
62041
|
),
|
|
61973
|
-
isProcessForm && canWorkflow && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62042
|
+
isProcessForm && canWorkflow && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_antd44.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.SwapOutlined, {}), onClick: handleBatchApprove, children: "\u6279\u91CF\u5BA1\u6279" }),
|
|
61974
62043
|
canDelete && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
61975
62044
|
import_antd44.Button,
|
|
61976
62045
|
{
|
|
61977
62046
|
danger: true,
|
|
61978
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62047
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DeleteOutlined, {}),
|
|
61979
62048
|
onClick: () => confirmDanger(
|
|
61980
62049
|
"\u786E\u8BA4\u6279\u91CF\u5220\u9664",
|
|
61981
62050
|
`\u5C06\u5220\u9664 ${selectedRowKeys.length} \u6761\u6570\u636E\uFF0C\u786E\u8BA4\u7EE7\u7EED\u5417\uFF1F`,
|
|
@@ -62140,7 +62209,7 @@ var DataManagementList = ({
|
|
|
62140
62209
|
{
|
|
62141
62210
|
danger: true,
|
|
62142
62211
|
type: "text",
|
|
62143
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62212
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DeleteOutlined, {}),
|
|
62144
62213
|
onClick: () => handleRemoveSort(index)
|
|
62145
62214
|
}
|
|
62146
62215
|
)
|
|
@@ -62287,7 +62356,7 @@ var DataManagementList = ({
|
|
|
62287
62356
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62288
62357
|
import_antd44.Button,
|
|
62289
62358
|
{
|
|
62290
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
62359
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_icons21.DownloadOutlined, {}),
|
|
62291
62360
|
loading: templateDownloading,
|
|
62292
62361
|
disabled: !canImport,
|
|
62293
62362
|
onClick: handleDownloadTemplate,
|