openxiangda 1.0.255 → 1.0.256

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.
@@ -34204,10 +34204,14 @@ function ComponentRegistryProvider({
34204
34204
  components,
34205
34205
  children
34206
34206
  }) {
34207
- const [registry, setRegistry] = import_react2.default.useState(components);
34207
+ const [registeredComponents, setRegisteredComponents] = import_react2.default.useState({});
34208
34208
  const register = import_react2.default.useCallback((name, component) => {
34209
- setRegistry((prev) => ({ ...prev, [name]: component }));
34209
+ setRegisteredComponents((prev) => ({ ...prev, [name]: component }));
34210
34210
  }, []);
34211
+ const registry = import_react2.default.useMemo(
34212
+ () => ({ ...components, ...registeredComponents }),
34213
+ [components, registeredComponents]
34214
+ );
34211
34215
  const value = import_react2.default.useMemo(() => ({ registry, register }), [registry, register]);
34212
34216
  return import_react2.default.createElement(ComponentRegistryContext.Provider, { value }, children);
34213
34217
  }
@@ -45184,16 +45188,33 @@ function DigitalSignatureField(props) {
45184
45188
  // packages/sdk/src/components/fields/JSONField/index.tsx
45185
45189
  init_cjs_shims();
45186
45190
  var import_react52 = require("react");
45191
+ var import_antd27 = require("antd");
45187
45192
  var import_jsx_runtime76 = require("react/jsx-runtime");
45188
- var formatJson = (value) => {
45193
+ var formatJson = (value, indent = 2) => {
45189
45194
  if (value === void 0 || value === null || value === "") return "--";
45190
45195
  if (typeof value === "string") return value;
45191
45196
  try {
45192
- return JSON.stringify(value, null, 2);
45197
+ return JSON.stringify(value, null, indent);
45193
45198
  } catch {
45194
45199
  return String(value);
45195
45200
  }
45196
45201
  };
45202
+ var formatJsonForEditing = (value, indent = 2) => {
45203
+ if (value === void 0 || value === null || value === "") return "";
45204
+ try {
45205
+ return JSON.stringify(value, null, indent);
45206
+ } catch {
45207
+ return String(value);
45208
+ }
45209
+ };
45210
+ var parseJson = (text) => {
45211
+ if (!text.trim()) return { value: void 0, error: void 0 };
45212
+ try {
45213
+ return { value: JSON.parse(text), error: void 0 };
45214
+ } catch {
45215
+ return { value: void 0, error: "\u8BF7\u8F93\u5165\u6709\u6548\u7684 JSON" };
45216
+ }
45217
+ };
45197
45218
  function JSONField(props) {
45198
45219
  const {
45199
45220
  fieldId,
@@ -45205,11 +45226,22 @@ function JSONField(props) {
45205
45226
  labelClassName,
45206
45227
  tipsClassName,
45207
45228
  readonlyClassName,
45208
- defaultValue
45229
+ inputClassName,
45230
+ placeholder = "\u8BF7\u8F93\u5165\u6709\u6548\u7684 JSON",
45231
+ defaultValue,
45232
+ indent = 2,
45233
+ rows = 8,
45234
+ renderer,
45235
+ editor,
45236
+ onChange,
45237
+ onBlur
45209
45238
  } = props;
45210
- const { formData, fieldBehaviors, setFieldValue, registerField, unregisterField } = useFormContext();
45211
- const behavior = propBehavior ?? fieldBehaviors[fieldId] ?? "READONLY";
45239
+ const { formData, fieldBehaviors, setFieldValue, setFieldError, registerField, unregisterField } = useFormContext();
45240
+ const behavior = propBehavior ?? fieldBehaviors[fieldId] ?? "NORMAL";
45212
45241
  const value = formData[fieldId];
45242
+ const [editorText, setEditorText] = (0, import_react52.useState)(() => formatJsonForEditing(value, indent));
45243
+ const [parseError, setParseError] = (0, import_react52.useState)();
45244
+ const editingRef = (0, import_react52.useRef)(false);
45213
45245
  (0, import_react52.useEffect)(() => {
45214
45246
  registerField(fieldId);
45215
45247
  if (defaultValue !== void 0 && formData[fieldId] === void 0) {
@@ -45217,7 +45249,55 @@ function JSONField(props) {
45217
45249
  }
45218
45250
  return () => unregisterField(fieldId);
45219
45251
  }, [fieldId]);
45252
+ (0, import_react52.useEffect)(() => {
45253
+ if (editingRef.current) return;
45254
+ setEditorText(formatJsonForEditing(value, indent));
45255
+ setParseError(void 0);
45256
+ }, [indent, value]);
45220
45257
  if (behavior === "HIDDEN") return null;
45258
+ const renderContext = {
45259
+ fieldId,
45260
+ label,
45261
+ value,
45262
+ formattedValue: formatJson(value, indent),
45263
+ behavior
45264
+ };
45265
+ const updateValue = (nextValue) => {
45266
+ setFieldValue(fieldId, nextValue);
45267
+ onChange?.(nextValue);
45268
+ };
45269
+ const handleTextChange = (event) => {
45270
+ const nextText = event.target.value;
45271
+ editingRef.current = true;
45272
+ setEditorText(nextText);
45273
+ const parsed = parseJson(nextText);
45274
+ setParseError(parsed.error);
45275
+ setFieldError(fieldId, parsed.error);
45276
+ if (!parsed.error) updateValue(parsed.value);
45277
+ };
45278
+ const handleStructuredChange = (nextValue) => {
45279
+ editingRef.current = true;
45280
+ setEditorText(formatJsonForEditing(nextValue, indent));
45281
+ setParseError(void 0);
45282
+ setFieldError(fieldId, null);
45283
+ updateValue(nextValue);
45284
+ };
45285
+ const handleEditorError = (error) => {
45286
+ setParseError(error);
45287
+ setFieldError(fieldId, error);
45288
+ };
45289
+ const handleBlur = () => {
45290
+ editingRef.current = false;
45291
+ const parsed = parseJson(editorText);
45292
+ setParseError(parsed.error);
45293
+ setFieldError(fieldId, parsed.error);
45294
+ if (!parsed.error) {
45295
+ setEditorText(formatJsonForEditing(parsed.value, indent));
45296
+ onBlur?.(parsed.value);
45297
+ return;
45298
+ }
45299
+ onBlur?.(value);
45300
+ };
45221
45301
  return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
45222
45302
  FieldWrapper,
45223
45303
  {
@@ -45228,14 +45308,41 @@ function JSONField(props) {
45228
45308
  className,
45229
45309
  labelClassName,
45230
45310
  tipsClassName,
45231
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
45311
+ children: behavior === "READONLY" ? renderer ? renderer(renderContext) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
45232
45312
  "pre",
45233
45313
  {
45234
45314
  className: readonlyClassName || "sy-field-readonly-value",
45235
45315
  "data-testid": `jsonfield-readonly-${fieldId}`,
45236
- children: formatJson(value)
45237
- }
45238
- )
45316
+ children: renderContext.formattedValue
45317
+ }
45318
+ ) : editor ? editor({
45319
+ ...renderContext,
45320
+ disabled: behavior === "DISABLED",
45321
+ error: parseError,
45322
+ onChange: handleStructuredChange,
45323
+ onError: handleEditorError
45324
+ }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
45325
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
45326
+ import_antd27.Input.TextArea,
45327
+ {
45328
+ className: inputClassName,
45329
+ "data-testid": `jsonfield-input-${fieldId}`,
45330
+ value: editorText,
45331
+ placeholder,
45332
+ rows,
45333
+ disabled: behavior === "DISABLED",
45334
+ status: parseError ? "error" : void 0,
45335
+ "aria-invalid": Boolean(parseError),
45336
+ spellCheck: false,
45337
+ onFocus: () => {
45338
+ editingRef.current = true;
45339
+ },
45340
+ onChange: handleTextChange,
45341
+ onBlur: handleBlur
45342
+ }
45343
+ ),
45344
+ parseError && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "sy-field-error", role: "alert", "data-testid": `jsonfield-error-${fieldId}`, children: parseError })
45345
+ ] })
45239
45346
  }
45240
45347
  );
45241
45348
  }
@@ -46603,6 +46710,7 @@ function FormProvider({
46603
46710
  const initialValuesRef = (0, import_react53.useRef)(computedInitialValues);
46604
46711
  const [formData, setFormData] = (0, import_react53.useState)({ ...computedInitialValues });
46605
46712
  const [fieldErrors, setFieldErrors] = (0, import_react53.useState)({});
46713
+ const [componentFieldErrors, setComponentFieldErrors] = (0, import_react53.useState)({});
46606
46714
  const [registeredFields] = (0, import_react53.useState)(/* @__PURE__ */ new Set());
46607
46715
  (0, import_react53.useEffect)(() => {
46608
46716
  if (!schema.fields.some((field) => needsCurrentUserRuntime(field.defaultShortcut?.type)))
@@ -46694,10 +46802,16 @@ function FormProvider({
46694
46802
  if (changed) {
46695
46803
  setFormData(nextData);
46696
46804
  setFieldErrors(nextErrors);
46805
+ setComponentFieldErrors((prev) => {
46806
+ const next = { ...prev };
46807
+ for (const action of valueActions) delete next[action.fieldId];
46808
+ return next;
46809
+ });
46697
46810
  }
46698
46811
  }, [effects, formData, fieldErrors]);
46699
46812
  const setFieldValue = (0, import_react53.useCallback)((fieldId, value) => {
46700
46813
  setFormData((prev) => ({ ...prev, [fieldId]: value }));
46814
+ setComponentFieldErrors((prev) => replaceSingleFieldError(prev, fieldId, null));
46701
46815
  setFieldErrors((prev) => {
46702
46816
  if (prev[fieldId]) {
46703
46817
  const next = { ...prev };
@@ -46707,6 +46821,10 @@ function FormProvider({
46707
46821
  return prev;
46708
46822
  });
46709
46823
  }, []);
46824
+ const setFieldError = (0, import_react53.useCallback)((fieldId, error) => {
46825
+ setComponentFieldErrors((prev) => replaceSingleFieldError(prev, fieldId, error || null));
46826
+ setFieldErrors((prev) => replaceSingleFieldError(prev, fieldId, error || null));
46827
+ }, []);
46710
46828
  const getFieldValue = (0, import_react53.useCallback)((fieldId) => formData[fieldId], [formData]);
46711
46829
  const getFormData2 = (0, import_react53.useCallback)(() => ({ ...formData }), [formData]);
46712
46830
  const validateFieldById = (0, import_react53.useCallback)(
@@ -46717,6 +46835,9 @@ function FormProvider({
46717
46835
  if (!scopedField) return true;
46718
46836
  const parentBehavior = fieldBehaviors[scopedField.parent.fieldId] ?? scopedField.parent.behavior ?? "NORMAL";
46719
46837
  if (isInactiveBehavior(parentBehavior) || isInactiveBehavior(scopedField.column.behavior)) {
46838
+ setComponentFieldErrors(
46839
+ (prev) => replaceSingleFieldError(prev, scopedField.scopedFieldId, null)
46840
+ );
46720
46841
  setFieldErrors((prev) => replaceSingleFieldError(prev, scopedField.scopedFieldId, null));
46721
46842
  return true;
46722
46843
  }
@@ -46736,6 +46857,7 @@ function FormProvider({
46736
46857
  }
46737
46858
  const behavior = fieldBehaviors[fieldId] ?? field.behavior ?? "NORMAL";
46738
46859
  if (isInactiveBehavior(behavior)) {
46860
+ setComponentFieldErrors((prev) => clearFieldAndChildrenErrors(prev, fieldId));
46739
46861
  setFieldErrors((prev) => {
46740
46862
  return clearFieldAndChildrenErrors(prev, fieldId);
46741
46863
  });
@@ -46760,7 +46882,7 @@ function FormProvider({
46760
46882
  }
46761
46883
  if (rules.length === 0 && Object.keys(errors).length === 0) {
46762
46884
  if (field.componentName !== "SubFormField") {
46763
- return true;
46885
+ return !componentFieldErrors[fieldId];
46764
46886
  }
46765
46887
  }
46766
46888
  setFieldErrors((prev) => {
@@ -46768,16 +46890,18 @@ function FormProvider({
46768
46890
  });
46769
46891
  return Object.keys(errors).length === 0;
46770
46892
  },
46771
- [schema, formData, fieldBehaviors, fieldOverrides]
46893
+ [schema, formData, fieldBehaviors, componentFieldErrors, fieldOverrides]
46772
46894
  );
46773
46895
  const validateAllWithErrors = (0, import_react53.useCallback)(async () => {
46774
46896
  const fieldRules = {};
46775
46897
  const validationData = { ...formData };
46898
+ const activeFieldIds = /* @__PURE__ */ new Set();
46776
46899
  for (const field of schema.fields) {
46777
46900
  const behavior = fieldBehaviors[field.fieldId] ?? field.behavior ?? "NORMAL";
46778
46901
  if (isInactiveBehavior(behavior)) {
46779
46902
  continue;
46780
46903
  }
46904
+ activeFieldIds.add(field.fieldId);
46781
46905
  const rules = buildValidationRules(
46782
46906
  field.label,
46783
46907
  fieldOverrides[field.fieldId]?.required ?? field.required,
@@ -46790,10 +46914,20 @@ function FormProvider({
46790
46914
  collectSubFormValidationRules(field, formData, validationData, fieldRules);
46791
46915
  }
46792
46916
  }
46793
- const errors = await validateAllFields(validationData, fieldRules);
46917
+ const componentErrors = Object.fromEntries(
46918
+ Object.entries(componentFieldErrors).filter(
46919
+ ([fieldId]) => [...activeFieldIds].some(
46920
+ (activeFieldId) => fieldId === activeFieldId || fieldId.startsWith(`${activeFieldId}.`)
46921
+ )
46922
+ )
46923
+ );
46924
+ const errors = {
46925
+ ...componentErrors,
46926
+ ...await validateAllFields(validationData, fieldRules)
46927
+ };
46794
46928
  setFieldErrors(errors);
46795
46929
  return errors;
46796
- }, [schema, formData, fieldBehaviors, fieldOverrides]);
46930
+ }, [schema, formData, fieldBehaviors, componentFieldErrors, fieldOverrides]);
46797
46931
  const validateAll = (0, import_react53.useCallback)(async () => {
46798
46932
  const errors = await validateAllWithErrors();
46799
46933
  return Object.keys(errors).length === 0;
@@ -46801,6 +46935,7 @@ function FormProvider({
46801
46935
  const resetForm = (0, import_react53.useCallback)(() => {
46802
46936
  setFormData({ ...initialValuesRef.current });
46803
46937
  setFieldErrors({});
46938
+ setComponentFieldErrors({});
46804
46939
  }, []);
46805
46940
  const registerField = (0, import_react53.useCallback)(
46806
46941
  (fieldId) => {
@@ -46913,6 +47048,7 @@ function FormProvider({
46913
47048
  submit: config.submit
46914
47049
  },
46915
47050
  setFieldValue,
47051
+ setFieldError,
46916
47052
  getFieldValue,
46917
47053
  getFormData: getFormData2,
46918
47054
  validateField: validateFieldById,
@@ -46938,6 +47074,7 @@ function FormProvider({
46938
47074
  config.formInstanceId,
46939
47075
  config.submit,
46940
47076
  setFieldValue,
47077
+ setFieldError,
46941
47078
  getFieldValue,
46942
47079
  getFormData2,
46943
47080
  validateFieldById,
@@ -46948,7 +47085,10 @@ function FormProvider({
46948
47085
  unregisterField
46949
47086
  ]
46950
47087
  );
46951
- const registryComponents = components ?? defaultComponentRegistry;
47088
+ const registryComponents = (0, import_react53.useMemo)(
47089
+ () => components ? { ...defaultComponentRegistry, ...components } : defaultComponentRegistry,
47090
+ [components]
47091
+ );
46952
47092
  return import_react53.default.createElement(
46953
47093
  FormContext.Provider,
46954
47094
  { value: contextValue },
@@ -47344,7 +47484,7 @@ var sizeClassMap = {
47344
47484
  default: "sy-gap-y-6 sy-gap-x-6",
47345
47485
  large: "sy-gap-y-8 sy-gap-x-8"
47346
47486
  };
47347
- var defaultFullWidthComponents = /* @__PURE__ */ new Set(["SubFormField", "EditorField"]);
47487
+ var defaultFullWidthComponents = /* @__PURE__ */ new Set(["SubFormField", "EditorField", "JSONField"]);
47348
47488
  function getDefaultFieldWrapperClass(field, renderContext, hasExplicitGridColumn = false) {
47349
47489
  if (renderContext === "grid" || hasExplicitGridColumn) return void 0;
47350
47490
  return defaultFullWidthComponents.has(field.componentName) ? "sy-layout-field-full" : "sy-layout-field";
@@ -47688,11 +47828,11 @@ function FormShell({ children, appearance, className }) {
47688
47828
  // packages/sdk/src/components/core/FormActions.tsx
47689
47829
  init_cjs_shims();
47690
47830
  var import_react59 = require("react");
47691
- var import_antd28 = require("antd");
47831
+ var import_antd29 = require("antd");
47692
47832
 
47693
47833
  // packages/sdk/src/components/core/validationFeedback.ts
47694
47834
  init_cjs_shims();
47695
- var import_antd27 = require("antd");
47835
+ var import_antd28 = require("antd");
47696
47836
  function escapeCss(value) {
47697
47837
  return typeof CSS !== "undefined" && CSS.escape ? CSS.escape(value) : value.replace(/["\\]/g, "\\$&");
47698
47838
  }
@@ -47707,7 +47847,7 @@ function scrollToFirstError(errors) {
47707
47847
  function notifyValidationErrors(errors) {
47708
47848
  const firstMessage = Object.values(errors)[0] || "\u8BF7\u5B8C\u5584\u5FC5\u586B\u9879";
47709
47849
  try {
47710
- import_antd27.message?.error?.(firstMessage);
47850
+ import_antd28.message?.error?.(firstMessage);
47711
47851
  } catch {
47712
47852
  }
47713
47853
  scrollToFirstError(errors);
@@ -47775,7 +47915,7 @@ function FormActions({
47775
47915
  if (mode === "readonly") return null;
47776
47916
  return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: className ?? "sy-form-actions", "data-testid": "form-actions", children: [
47777
47917
  /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
47778
- import_antd28.Button,
47918
+ import_antd29.Button,
47779
47919
  {
47780
47920
  type: "primary",
47781
47921
  htmlType: "submit",
@@ -47786,7 +47926,7 @@ function FormActions({
47786
47926
  }
47787
47927
  ),
47788
47928
  showReset && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
47789
- import_antd28.Button,
47929
+ import_antd29.Button,
47790
47930
  {
47791
47931
  htmlType: "reset",
47792
47932
  disabled: isSubmitting,
@@ -50293,7 +50433,7 @@ init_cjs_shims();
50293
50433
  // packages/sdk/src/components/modules/RecordChangePanel.tsx
50294
50434
  init_cjs_shims();
50295
50435
  var import_react71 = require("react");
50296
- var import_antd29 = require("antd");
50436
+ var import_antd30 = require("antd");
50297
50437
  var import_icons10 = require("@ant-design/icons");
50298
50438
  var import_jsx_runtime87 = require("react/jsx-runtime");
50299
50439
  var sourceLabels = {
@@ -50311,7 +50451,7 @@ function formatValue(value) {
50311
50451
  if (value === null || value === void 0 || value === "")
50312
50452
  return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "text-ant-text-tertiary", children: "\u7A7A" });
50313
50453
  if (Array.isArray(value)) {
50314
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "inline-flex flex-wrap gap-1", children: value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Tag, { className: "m-0", children: String(
50454
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "inline-flex flex-wrap gap-1", children: value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Tag, { className: "m-0", children: String(
50315
50455
  typeof item === "object" ? item.label || item.value || JSON.stringify(item) : item
50316
50456
  ) }, `${index}-${String(item)}`)) });
50317
50457
  }
@@ -50369,7 +50509,7 @@ var RecordChangePanel = ({
50369
50509
  }
50370
50510
  ),
50371
50511
  expanded && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
50372
- import_antd29.Button,
50512
+ import_antd30.Button,
50373
50513
  {
50374
50514
  type: "text",
50375
50515
  size: "small",
@@ -50381,7 +50521,7 @@ var RecordChangePanel = ({
50381
50521
  )
50382
50522
  ] }),
50383
50523
  expanded ? /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "p-5", children: [
50384
- loading && records.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Skeleton, { active: true, paragraph: { rows: 3 } }) : records.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Empty, { description: "\u6682\u65E0\u53D8\u66F4\u8BB0\u5F55" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "space-y-4", children: records.map((record) => {
50524
+ loading && records.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Skeleton, { active: true, paragraph: { rows: 3 } }) : records.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Empty, { description: "\u6682\u65E0\u53D8\u66F4\u8BB0\u5F55" }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "space-y-4", children: records.map((record) => {
50385
50525
  const changes = record.changes && record.changes.length > 0 ? record.changes : [
50386
50526
  {
50387
50527
  fieldKey: record.fieldId,
@@ -50414,9 +50554,9 @@ var RecordChangePanel = ({
50414
50554
  ] })
50415
50555
  ] }),
50416
50556
  /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("span", { className: "flex flex-wrap justify-end gap-2", children: [
50417
- record.changeType && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Tag, { children: typeLabels[record.changeType] || record.changeType }),
50418
- record.changeSource && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Tag, { color: "blue", children: sourceLabels[record.changeSource] || record.changeSource }),
50419
- record.operationId && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Tooltip, { title: `\u64CD\u4F5CID\uFF1A${record.operationId}`, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Tag, { children: record.operationId.slice(0, 8) }) })
50557
+ record.changeType && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Tag, { children: typeLabels[record.changeType] || record.changeType }),
50558
+ record.changeSource && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Tag, { color: "blue", children: sourceLabels[record.changeSource] || record.changeSource }),
50559
+ record.operationId && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Tooltip, { title: `\u64CD\u4F5CID\uFF1A${record.operationId}`, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Tag, { children: record.operationId.slice(0, 8) }) })
50420
50560
  ] })
50421
50561
  ] }),
50422
50562
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "mt-4 space-y-3", children: changes.map((change) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
@@ -50440,7 +50580,7 @@ var RecordChangePanel = ({
50440
50580
  );
50441
50581
  }) }),
50442
50582
  onPageChange && count > pageSize ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
50443
- import_antd29.Pagination,
50583
+ import_antd30.Pagination,
50444
50584
  {
50445
50585
  size: "small",
50446
50586
  current: page,
@@ -50449,7 +50589,7 @@ var RecordChangePanel = ({
50449
50589
  onChange: onPageChange,
50450
50590
  showSizeChanger: true
50451
50591
  }
50452
- ) }) : hasMore ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd29.Button, { block: true, className: "mt-4", onClick: onLoadMore, loading, children: "\u52A0\u8F7D\u66F4\u591A" }) : null
50592
+ ) }) : hasMore ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_antd30.Button, { block: true, className: "mt-4", onClick: onLoadMore, loading, children: "\u52A0\u8F7D\u66F4\u591A" }) : null
50453
50593
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "px-5 py-4 text-sm text-ant-text-tertiary", children: "\u70B9\u51FB\u5C55\u5F00\u67E5\u770B\u53D8\u66F4\u8BB0\u5F55" })
50454
50594
  ]
50455
50595
  }
@@ -50756,13 +50896,13 @@ var ApprovalTimeline = ({
50756
50896
  // packages/sdk/src/components/modules/ApprovalActionBar.tsx
50757
50897
  init_cjs_shims();
50758
50898
  var import_react74 = __toESM(require("react"));
50759
- var import_antd31 = require("antd");
50899
+ var import_antd32 = require("antd");
50760
50900
  var import_icons13 = require("@ant-design/icons");
50761
50901
 
50762
50902
  // packages/sdk/src/components/modules/StickyActionBar.tsx
50763
50903
  init_cjs_shims();
50764
50904
  var import_react73 = require("react");
50765
- var import_antd30 = require("antd");
50905
+ var import_antd31 = require("antd");
50766
50906
  var import_icons12 = require("@ant-design/icons");
50767
50907
 
50768
50908
  // packages/sdk/src/components/utils/confirmAction.ts
@@ -50827,7 +50967,7 @@ var StickyActionBar = ({
50827
50967
  };
50828
50968
  const renderButton = (action, mobile = false) => {
50829
50969
  const button = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
50830
- import_antd30.Button,
50970
+ import_antd31.Button,
50831
50971
  {
50832
50972
  type: action.type === "danger" ? "primary" : action.type === "text" ? "text" : action.type || "default",
50833
50973
  danger: action.type === "danger",
@@ -50841,7 +50981,7 @@ var StickyActionBar = ({
50841
50981
  action.key
50842
50982
  );
50843
50983
  if (!action.disabled || !action.disabledReason) return button;
50844
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_antd30.Tooltip, { title: action.disabledReason, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: mobile ? "flex min-w-0 flex-1" : "inline-flex", children: button }) }, action.key);
50984
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_antd31.Tooltip, { title: action.disabledReason, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: mobile ? "flex min-w-0 flex-1" : "inline-flex", children: button }) }, action.key);
50845
50985
  };
50846
50986
  return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `${positionClass} z-20 ${spacingClass} ${surfaceClass} ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
50847
50987
  "div",
@@ -50851,7 +50991,7 @@ var StickyActionBar = ({
50851
50991
  children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
50852
50992
  /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex flex-1 gap-2", children: primaryMobile.map((action) => renderButton(action, true)) }),
50853
50993
  moreMobile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
50854
- import_antd30.Dropdown,
50994
+ import_antd31.Dropdown,
50855
50995
  {
50856
50996
  trigger: ["click"],
50857
50997
  placement: "topRight",
@@ -50865,7 +51005,7 @@ var StickyActionBar = ({
50865
51005
  onClick: () => runAction(action)
50866
51006
  }))
50867
51007
  },
50868
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_antd30.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_icons12.MoreOutlined, {}), className: "rounded-md", children: "\u66F4\u591A" })
51008
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_antd31.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_icons12.MoreOutlined, {}), className: "rounded-md", children: "\u66F4\u591A" })
50869
51009
  }
50870
51010
  )
50871
51011
  ] }) : layoutMode === "approval" ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex flex-wrap items-center justify-center gap-3", children: visibleActions.map((action) => renderButton(action)) }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `flex flex-wrap items-center ${desktopJustifyClass} gap-3`, children: visibleActions.map((action) => renderButton(action)) })
@@ -50933,7 +51073,7 @@ function DefaultTransferSelector({
50933
51073
  const selectedLabel = selectedUsers[0] ? getUserName(selectedUsers[0]) : value;
50934
51074
  return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
50935
51075
  /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
50936
- import_antd31.Input,
51076
+ import_antd32.Input,
50937
51077
  {
50938
51078
  readOnly: true,
50939
51079
  value: selectedLabel,
@@ -50983,7 +51123,7 @@ var ApprovalActionBar = ({
50983
51123
  inDrawer = false,
50984
51124
  maxWidth
50985
51125
  }) => {
50986
- const [form] = import_antd31.Form.useForm();
51126
+ const [form] = import_antd32.Form.useForm();
50987
51127
  const [modalAction, setModalAction] = (0, import_react74.useState)(null);
50988
51128
  const [activeAction, setActiveAction] = (0, import_react74.useState)(null);
50989
51129
  const [loading, setLoading] = (0, import_react74.useState)(false);
@@ -51088,7 +51228,7 @@ var ApprovalActionBar = ({
51088
51228
  }
51089
51229
  ),
51090
51230
  /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
51091
- import_antd31.Modal,
51231
+ import_antd32.Modal,
51092
51232
  {
51093
51233
  getContainer: false,
51094
51234
  title: getModalTitle(modalAction),
@@ -51103,9 +51243,9 @@ var ApprovalActionBar = ({
51103
51243
  form.resetFields();
51104
51244
  },
51105
51245
  destroyOnHidden: true,
51106
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_antd31.Form, { form, layout: "vertical", children: [
51246
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_antd32.Form, { form, layout: "vertical", children: [
51107
51247
  modalAction === "transfer" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
51108
- import_antd31.Form.Item,
51248
+ import_antd32.Form.Item,
51109
51249
  {
51110
51250
  name: "userId",
51111
51251
  label: "\u8F6C\u4EA4\u7ED9",
@@ -51128,13 +51268,13 @@ var ApprovalActionBar = ({
51128
51268
  formatReturnPolicy(returnPolicy)
51129
51269
  ] }),
51130
51270
  /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
51131
- import_antd31.Form.Item,
51271
+ import_antd32.Form.Item,
51132
51272
  {
51133
51273
  name: "nodeId",
51134
51274
  label: "\u9000\u56DE\u5230\u8282\u70B9",
51135
51275
  rules: [{ required: true, message: "\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9" }],
51136
51276
  children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
51137
- import_antd31.Select,
51277
+ import_antd32.Select,
51138
51278
  {
51139
51279
  placeholder: "\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9",
51140
51280
  getPopupContainer: (triggerNode) => triggerNode.parentElement || document.body,
@@ -51148,12 +51288,12 @@ var ApprovalActionBar = ({
51148
51288
  )
51149
51289
  ] }),
51150
51290
  /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
51151
- import_antd31.Form.Item,
51291
+ import_antd32.Form.Item,
51152
51292
  {
51153
51293
  name: modalAction === "withdraw" || modalAction === "transfer" || modalAction === "return" ? "reason" : "comments",
51154
51294
  label: modalAction === "withdraw" ? "\u64A4\u9500\u539F\u56E0" : modalAction === "transfer" ? "\u8F6C\u4EA4\u539F\u56E0" : modalAction === "return" ? "\u9000\u56DE\u539F\u56E0" : "\u5BA1\u6279\u610F\u89C1",
51155
51295
  rules: [{ required: requiredComment, message: "\u8BF7\u586B\u5199\u8BF4\u660E" }],
51156
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_antd31.Input.TextArea, { rows: 4, maxLength: 500, showCount: true, placeholder: "\u8BF7\u8F93\u5165\u8BF4\u660E" })
51296
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_antd32.Input.TextArea, { rows: 4, maxLength: 500, showCount: true, placeholder: "\u8BF7\u8F93\u5165\u8BF4\u660E" })
51157
51297
  }
51158
51298
  ),
51159
51299
  activeAction && renderActionModalExtra?.(activeAction)
@@ -51166,7 +51306,7 @@ var ApprovalActionBar = ({
51166
51306
  // packages/sdk/src/components/modules/ApprovalActions.tsx
51167
51307
  init_cjs_shims();
51168
51308
  var import_react75 = require("react");
51169
- var import_antd32 = require("antd");
51309
+ var import_antd33 = require("antd");
51170
51310
  var import_icons14 = require("@ant-design/icons");
51171
51311
  var import_jsx_runtime92 = require("react/jsx-runtime");
51172
51312
  var priority = {
@@ -51192,7 +51332,7 @@ var ApprovalActions = ({
51192
51332
  maxVisible = 3,
51193
51333
  className = ""
51194
51334
  }) => {
51195
- const [form] = import_antd32.Form.useForm();
51335
+ const [form] = import_antd33.Form.useForm();
51196
51336
  const [modalAction, setModalAction] = (0, import_react75.useState)(null);
51197
51337
  const [activeAction, setActiveAction] = (0, import_react75.useState)(null);
51198
51338
  const [loading, setLoading] = (0, import_react75.useState)(false);
@@ -51255,7 +51395,7 @@ var ApprovalActions = ({
51255
51395
  const moreButtons = renderableActions.slice(maxVisible);
51256
51396
  const title = modalAction === "approve" ? "\u5BA1\u6279\u610F\u89C1" : modalAction === "reject" ? "\u62D2\u7EDD\u7406\u7531" : "\u64A4\u9500\u539F\u56E0";
51257
51397
  const button = (action) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
51258
- import_antd32.Button,
51398
+ import_antd33.Button,
51259
51399
  {
51260
51400
  type: action.action === "agree" || action.action === "approved" ? "primary" : "default",
51261
51401
  danger: action.action === "rejected" || action.action === "reject" || action.action === "withdraw",
@@ -51273,7 +51413,7 @@ var ApprovalActions = ({
51273
51413
  children: [
51274
51414
  visibleButtons.map(button),
51275
51415
  moreButtons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
51276
- import_antd32.Dropdown,
51416
+ import_antd33.Dropdown,
51277
51417
  {
51278
51418
  trigger: ["click"],
51279
51419
  getPopupContainer: (triggerNode) => triggerNode.parentElement || document.body,
@@ -51285,14 +51425,14 @@ var ApprovalActions = ({
51285
51425
  onClick: () => handleAction(action)
51286
51426
  }))
51287
51427
  },
51288
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_antd32.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_icons14.MoreOutlined, {}), children: "\u66F4\u591A" })
51428
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_antd33.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_icons14.MoreOutlined, {}), children: "\u66F4\u591A" })
51289
51429
  }
51290
51430
  )
51291
51431
  ]
51292
51432
  }
51293
51433
  ),
51294
51434
  /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
51295
- import_antd32.Modal,
51435
+ import_antd33.Modal,
51296
51436
  {
51297
51437
  getContainer: false,
51298
51438
  title,
@@ -51307,8 +51447,8 @@ var ApprovalActions = ({
51307
51447
  form.resetFields();
51308
51448
  },
51309
51449
  destroyOnHidden: true,
51310
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_antd32.Form, { form, layout: "vertical", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
51311
- import_antd32.Form.Item,
51450
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_antd33.Form, { form, layout: "vertical", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
51451
+ import_antd33.Form.Item,
51312
51452
  {
51313
51453
  name: "comments",
51314
51454
  label: modalAction === "approve" ? "\u5BA1\u6279\u610F\u89C1" : "\u8BF7\u8F93\u5165\u7406\u7531",
@@ -51318,7 +51458,7 @@ var ApprovalActions = ({
51318
51458
  message: "\u8BF7\u586B\u5199\u8BF4\u660E"
51319
51459
  }
51320
51460
  ],
51321
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_antd32.Input.TextArea, { rows: 4, maxLength: 500, showCount: true, placeholder: "\u8BF7\u8F93\u5165\u8BF4\u660E" })
51461
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_antd33.Input.TextArea, { rows: 4, maxLength: 500, showCount: true, placeholder: "\u8BF7\u8F93\u5165\u8BF4\u660E" })
51322
51462
  }
51323
51463
  ) })
51324
51464
  }
@@ -51329,7 +51469,7 @@ var ApprovalActions = ({
51329
51469
  // packages/sdk/src/components/modules/FormActionBar.tsx
51330
51470
  init_cjs_shims();
51331
51471
  var import_react76 = require("react");
51332
- var import_antd33 = require("antd");
51472
+ var import_antd34 = require("antd");
51333
51473
  var import_jsx_runtime93 = require("react/jsx-runtime");
51334
51474
  var FormActionBar = ({
51335
51475
  actions,
@@ -51374,7 +51514,7 @@ var FormActionBar = ({
51374
51514
  children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "flex items-center justify-end gap-3 flex-wrap md:flex-nowrap", children: sortedActions.map((action) => {
51375
51515
  const isLoading = action.loading || loadingKeys.has(action.key);
51376
51516
  return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
51377
- import_antd33.Button,
51517
+ import_antd34.Button,
51378
51518
  {
51379
51519
  type: action.type === "danger" ? "primary" : action.type === "text" ? "text" : action.type || "default",
51380
51520
  danger: action.type === "danger",
@@ -51401,7 +51541,7 @@ var FormActionBar = ({
51401
51541
 
51402
51542
  // packages/sdk/src/components/modules/RuntimePageShell.tsx
51403
51543
  init_cjs_shims();
51404
- var import_antd34 = require("antd");
51544
+ var import_antd35 = require("antd");
51405
51545
  var import_jsx_runtime94 = require("react/jsx-runtime");
51406
51546
  var RuntimePageShell = ({
51407
51547
  children,
@@ -51419,13 +51559,13 @@ var RuntimePageShell = ({
51419
51559
  const maxWidthStyle = typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth;
51420
51560
  const renderState = () => {
51421
51561
  if (loading) {
51422
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "min-h-[360px] flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_antd34.Spin, { tip: loadingTip }) });
51562
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "min-h-[360px] flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_antd35.Spin, { tip: loadingTip }) });
51423
51563
  }
51424
51564
  if (accessDenied) {
51425
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_antd34.Empty, { description: "\u65E0\u6743\u9650\u67E5\u770B\u8BE6\u60C5" });
51565
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_antd35.Empty, { description: "\u65E0\u6743\u9650\u67E5\u770B\u8BE6\u60C5" });
51426
51566
  }
51427
51567
  if (error) {
51428
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_antd34.Alert, { type: "error", showIcon: true, message: "\u9875\u9762\u52A0\u8F7D\u5931\u8D25", description: error });
51568
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_antd35.Alert, { type: "error", showIcon: true, message: "\u9875\u9762\u52A0\u8F7D\u5931\u8D25", description: error });
51429
51569
  }
51430
51570
  if (empty) {
51431
51571
  return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_jsx_runtime94.Fragment, { children: empty });
@@ -51453,7 +51593,7 @@ var RuntimePageShell = ({
51453
51593
 
51454
51594
  // packages/sdk/src/components/modules/SummaryPanel.tsx
51455
51595
  init_cjs_shims();
51456
- var import_antd35 = require("antd");
51596
+ var import_antd36 = require("antd");
51457
51597
  var import_icons15 = require("@ant-design/icons");
51458
51598
  var import_jsx_runtime95 = require("react/jsx-runtime");
51459
51599
  var toneClasses3 = {
@@ -51479,7 +51619,7 @@ var SummaryPanel = ({
51479
51619
  key: "creator",
51480
51620
  label: "\u521B\u5EFA\u4EBA",
51481
51621
  value: creator?.name || "\u672A\u77E5\u7528\u6237",
51482
- icon: creator?.avatar ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd35.Avatar, { size: 24, src: creator.avatar }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd35.Avatar, { size: 24, children: creator?.name?.slice(0, 1) || "\u8868" })
51622
+ icon: creator?.avatar ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd36.Avatar, { size: 24, src: creator.avatar }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd36.Avatar, { size: 24, children: creator?.name?.slice(0, 1) || "\u8868" })
51483
51623
  },
51484
51624
  {
51485
51625
  key: "department",
@@ -51519,7 +51659,7 @@ var SummaryPanel = ({
51519
51659
  /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h1", { className: "sy-summary-title m-0 break-words text-2xl font-semibold leading-9 text-ant-text md:text-[28px]", children: title }),
51520
51660
  showMobileIdentity && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "sy-summary-mobile-identity", children: [
51521
51661
  creator && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "sy-summary-mobile-person", children: [
51522
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "sy-summary-mobile-avatar", children: creator.avatar ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd35.Avatar, { size: 22, src: creator.avatar }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd35.Avatar, { size: 22, children: creator.name?.slice(0, 1) || "\u8868" }) }),
51662
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "sy-summary-mobile-avatar", children: creator.avatar ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd36.Avatar, { size: 22, src: creator.avatar }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_antd36.Avatar, { size: 22, children: creator.name?.slice(0, 1) || "\u8868" }) }),
51523
51663
  /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "sy-summary-mobile-person-name", children: mobileCreatorText })
51524
51664
  ] }),
51525
51665
  createdAt && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "sy-summary-mobile-time", children: createdAt })
@@ -51539,7 +51679,7 @@ var SummaryPanel = ({
51539
51679
 
51540
51680
  // packages/sdk/src/components/modules/DraftManager.tsx
51541
51681
  init_cjs_shims();
51542
- var import_antd36 = require("antd");
51682
+ var import_antd37 = require("antd");
51543
51683
  var import_icons16 = require("@ant-design/icons");
51544
51684
  var import_jsx_runtime96 = require("react/jsx-runtime");
51545
51685
  function formatRelativeTime(timestamp) {
@@ -51579,8 +51719,8 @@ var DraftManager = ({
51579
51719
  ] })
51580
51720
  ] }),
51581
51721
  /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center gap-2", children: [
51582
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_antd36.Button, { type: "text", size: "small", onClick: onDiscard, className: "!text-gray-500", children: "\u4E22\u5F03" }),
51583
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_antd36.Button, { type: "primary", size: "small", onClick: onRestore, children: "\u6062\u590D\u586B\u5199" })
51722
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_antd37.Button, { type: "text", size: "small", onClick: onDiscard, className: "!text-gray-500", children: "\u4E22\u5F03" }),
51723
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_antd37.Button, { type: "primary", size: "small", onClick: onRestore, children: "\u6062\u590D\u586B\u5199" })
51584
51724
  ] })
51585
51725
  ] })
51586
51726
  }
@@ -51589,7 +51729,7 @@ var DraftManager = ({
51589
51729
 
51590
51730
  // packages/sdk/src/components/modules/ProcessPreview.tsx
51591
51731
  init_cjs_shims();
51592
- var import_antd37 = require("antd");
51732
+ var import_antd38 = require("antd");
51593
51733
  var import_icons17 = require("@ant-design/icons");
51594
51734
  var import_jsx_runtime97 = require("react/jsx-runtime");
51595
51735
  var ProcessPreview = ({
@@ -51601,7 +51741,7 @@ var ProcessPreview = ({
51601
51741
  }) => {
51602
51742
  const routeList = Array.isArray(routes) ? routes : [];
51603
51743
  return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
51604
- import_antd37.Modal,
51744
+ import_antd38.Modal,
51605
51745
  {
51606
51746
  getContainer: false,
51607
51747
  title: "\u6D41\u7A0B\u9884\u89C8",
@@ -51609,10 +51749,10 @@ var ProcessPreview = ({
51609
51749
  onCancel: onClose,
51610
51750
  width: 520,
51611
51751
  footer: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex justify-end gap-3", children: [
51612
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_antd37.Button, { onClick: onClose, children: "\u53D6\u6D88" }),
51613
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_antd37.Button, { type: "primary", onClick: onConfirm, loading, children: "\u786E\u8BA4\u63D0\u4EA4" })
51752
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_antd38.Button, { onClick: onClose, children: "\u53D6\u6D88" }),
51753
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_antd38.Button, { type: "primary", onClick: onConfirm, loading, children: "\u786E\u8BA4\u63D0\u4EA4" })
51614
51754
  ] }),
51615
- children: loading && routeList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_antd37.Skeleton, { active: true, paragraph: { rows: 4 } }) : routeList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-gray-400 text-center py-8", children: "\u6682\u65E0\u6D41\u7A0B\u8282\u70B9" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "py-2", children: routeList.map((route, index) => {
51755
+ children: loading && routeList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_antd38.Skeleton, { active: true, paragraph: { rows: 4 } }) : routeList.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-gray-400 text-center py-8", children: "\u6682\u65E0\u6D41\u7A0B\u8282\u70B9" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "py-2", children: routeList.map((route, index) => {
51616
51756
  const isLast = index === routeList.length - 1;
51617
51757
  return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex gap-3", children: [
51618
51758
  /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col items-center", children: [
@@ -51642,7 +51782,7 @@ var ProcessPreview = ({
51642
51782
  // packages/sdk/src/components/modules/DataManagementList.tsx
51643
51783
  init_cjs_shims();
51644
51784
  var import_react82 = require("react");
51645
- var import_antd42 = require("antd");
51785
+ var import_antd43 = require("antd");
51646
51786
  var import_dayjs11 = __toESM(require("dayjs"));
51647
51787
  var import_icons19 = require("@ant-design/icons");
51648
51788
 
@@ -51657,46 +51797,46 @@ var import_dayjs9 = __toESM(require("dayjs"));
51657
51797
 
51658
51798
  // packages/sdk/src/components/templates/PageSkeleton.tsx
51659
51799
  init_cjs_shims();
51660
- var import_antd38 = require("antd");
51800
+ var import_antd39 = require("antd");
51661
51801
  var import_jsx_runtime98 = require("react/jsx-runtime");
51662
51802
  var CardSkeleton = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "bg-white rounded-xl shadow-sm border border-gray-100 p-6", children });
51663
51803
  var SummaryCardSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(CardSkeleton, { children: [
51664
51804
  /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex items-start justify-between", children: [
51665
51805
  /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex-1", children: [
51666
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "large", style: { width: 200 } }),
51667
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "small", style: { width: 80 } }) })
51806
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "large", style: { width: 200 } }),
51807
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "mt-2", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "small", style: { width: 80 } }) })
51668
51808
  ] }),
51669
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Button, { active: true, size: "small", shape: "round", style: { width: 60 } })
51809
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Button, { active: true, size: "small", shape: "round", style: { width: 60 } })
51670
51810
  ] }),
51671
51811
  /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex items-center gap-3 mt-4", children: [
51672
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Avatar, { active: true, size: "small" }),
51673
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "small", style: { width: 120 } })
51812
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Avatar, { active: true, size: "small" }),
51813
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "small", style: { width: 120 } })
51674
51814
  ] })
51675
51815
  ] });
51676
51816
  var FormGridSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CardSkeleton, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-5", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "space-y-2", children: [
51677
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "small", style: { width: 80 } }),
51678
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, block: true, style: { width: "100%" } })
51817
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "small", style: { width: 80 } }),
51818
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, block: true, style: { width: "100%" } })
51679
51819
  ] }, i)) }) });
51680
51820
  var ActionBarSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "fixed bottom-0 left-0 right-0 backdrop-blur-lg bg-white/80 border-t border-gray-200 px-6 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex items-center justify-end gap-3", children: [
51681
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Button, { active: true, style: { width: 80 } }),
51682
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Button, { active: true, style: { width: 80 } })
51821
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Button, { active: true, style: { width: 80 } }),
51822
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Button, { active: true, style: { width: 80 } })
51683
51823
  ] }) });
51684
51824
  var TimelineSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(CardSkeleton, { children: [
51685
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "medium", style: { width: 100, marginBottom: 16 } }),
51825
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "medium", style: { width: 100, marginBottom: 16 } }),
51686
51826
  /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "space-y-4", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex gap-4", children: [
51687
51827
  /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col items-center", children: [
51688
51828
  /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "w-3 h-3 rounded-full bg-gray-200 animate-pulse" }),
51689
51829
  i < 2 && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "w-0.5 flex-1 bg-gray-200 mt-1" })
51690
51830
  ] }),
51691
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex-1 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton, { active: true, paragraph: { rows: 1 }, title: { width: "60%" } }) })
51831
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex-1 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton, { active: true, paragraph: { rows: 1 }, title: { width: "60%" } }) })
51692
51832
  ] }, i)) })
51693
51833
  ] });
51694
51834
  var PageSkeleton = ({ type }) => {
51695
51835
  if (type === "submit") {
51696
51836
  return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "space-y-6", children: [
51697
51837
  /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "space-y-2", children: [
51698
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "large", style: { width: 200 } }),
51699
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd38.Skeleton.Input, { active: true, size: "small", style: { width: 300 } })
51838
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "large", style: { width: 200 } }),
51839
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_antd39.Skeleton.Input, { active: true, size: "small", style: { width: 300 } })
51700
51840
  ] }),
51701
51841
  /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(FormGridSkeleton, {}),
51702
51842
  /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ActionBarSkeleton, {})
@@ -51747,6 +51887,7 @@ var InnerDetailContent = ({
51747
51887
  renderActions,
51748
51888
  onDelete,
51749
51889
  onSave,
51890
+ components,
51750
51891
  inDrawer = false
51751
51892
  }) => {
51752
51893
  const formDataRef = (0, import_react77.useRef)(void 0);
@@ -51888,16 +52029,25 @@ var InnerDetailContent = ({
51888
52029
  ] }) }),
51889
52030
  /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "sy-detail-main", children: [
51890
52031
  mode === "edit" && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "bg-blue-50 border border-blue-200 rounded-lg px-4 py-3 text-sm text-blue-700 transition-all duration-150", children: "\u6B63\u5728\u7F16\u8F91\uFF0C\u4FEE\u6539\u540E\u8BF7\u4FDD\u5B58" }),
51891
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "sy-detail-card", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(FormProvider, { schema, config: formConfig, initialValues: formData ?? void 0, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(FormShell, { appearance: schema.template?.appearance, className: "sy-form-shell", children: [
51892
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(FormDataBridge, { formDataRef, validateRef }),
51893
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
51894
- FormRenderer,
51895
- {
51896
- columns: schema.template?.appearance?.columns ?? 2,
51897
- size: schema.template?.appearance?.rendererSize ?? "default"
51898
- }
51899
- )
51900
- ] }) }) }),
52032
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "sy-detail-card", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
52033
+ FormProvider,
52034
+ {
52035
+ schema,
52036
+ config: formConfig,
52037
+ initialValues: formData ?? void 0,
52038
+ components,
52039
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(FormShell, { appearance: schema.template?.appearance, className: "sy-form-shell", children: [
52040
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(FormDataBridge, { formDataRef, validateRef }),
52041
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
52042
+ FormRenderer,
52043
+ {
52044
+ columns: schema.template?.appearance?.columns ?? 2,
52045
+ size: schema.template?.appearance?.rendererSize ?? "default"
52046
+ }
52047
+ )
52048
+ ] })
52049
+ }
52050
+ ) }),
51901
52051
  enableChangeRecords && canViewChangeRecords && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
51902
52052
  RecordChangePanel,
51903
52053
  {
@@ -51918,26 +52068,26 @@ var InnerDetailContent = ({
51918
52068
  );
51919
52069
  };
51920
52070
  var FormDetailTemplate = (props) => {
51921
- const { schema, formUuid, appType, formInstanceId } = props;
52071
+ const { schema, formUuid, appType, formInstanceId, components } = props;
51922
52072
  const wrapperConfig = {
51923
52073
  mode: "readonly",
51924
52074
  formUuid,
51925
52075
  appType,
51926
52076
  formInstanceId
51927
52077
  };
51928
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(FormProvider, { schema, config: wrapperConfig, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(InnerDetailContent, { ...props }) });
52078
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(FormProvider, { schema, config: wrapperConfig, components, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(InnerDetailContent, { ...props }) });
51929
52079
  };
51930
52080
 
51931
52081
  // packages/sdk/src/components/templates/FormSubmitTemplate.tsx
51932
52082
  init_cjs_shims();
51933
52083
  var import_react79 = require("react");
51934
- var import_antd40 = require("antd");
52084
+ var import_antd41 = require("antd");
51935
52085
  var import_icons18 = require("@ant-design/icons");
51936
52086
 
51937
52087
  // packages/sdk/src/components/modules/InitiatorApproverSelector.tsx
51938
52088
  init_cjs_shims();
51939
52089
  var import_react78 = require("react");
51940
- var import_antd39 = require("antd");
52090
+ var import_antd40 = require("antd");
51941
52091
  var import_jsx_runtime100 = require("react/jsx-runtime");
51942
52092
  var scopeText = {
51943
52093
  all: "\u5168\u90E8\u6210\u5458",
@@ -52014,7 +52164,7 @@ var RequirementSelect = ({
52014
52164
  )
52015
52165
  );
52016
52166
  } else if (initialCandidates.length === 0) {
52017
- import_antd39.message.error("\u52A0\u8F7D\u5BA1\u6279\u5019\u9009\u4EBA\u5931\u8D25");
52167
+ import_antd40.message.error("\u52A0\u8F7D\u5BA1\u6279\u5019\u9009\u4EBA\u5931\u8D25");
52018
52168
  }
52019
52169
  } finally {
52020
52170
  setLoading(false);
@@ -52038,15 +52188,15 @@ var RequirementSelect = ({
52038
52188
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "rounded-lg border border-ant-border-secondary bg-ant-bg-container p-3", children: [
52039
52189
  /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "mb-2 flex items-start justify-between gap-3", children: [
52040
52190
  /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { children: [
52041
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Typography.Text, { strong: true, children: requirement.nodeName }),
52191
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Typography.Text, { strong: true, children: requirement.nodeName }),
52042
52192
  /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "mt-1 text-xs text-ant-color-text-tertiary", children: [
52043
52193
  "\u9009\u62E9\u8303\u56F4\uFF1A",
52044
52194
  scopeText[requirement.scope] || "\u5168\u90E8\u6210\u5458"
52045
52195
  ] })
52046
52196
  ] }),
52047
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Button, { onClick: () => setPickerOpen(true), children: selectedUsers.length > 0 ? "\u91CD\u65B0\u9009\u62E9\u6210\u5458" : "\u9009\u62E9\u6210\u5458" })
52197
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Button, { onClick: () => setPickerOpen(true), children: selectedUsers.length > 0 ? "\u91CD\u65B0\u9009\u62E9\u6210\u5458" : "\u9009\u62E9\u6210\u5458" })
52048
52198
  ] }),
52049
- selectedUsers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Space, { size: [4, 4], wrap: true, className: "mt-2", children: selectedUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Tag, { children: getUserLabel(user) }, user.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Empty, { image: import_antd39.Empty.PRESENTED_IMAGE_SIMPLE, description: "\u8BF7\u4ECE\u7EC4\u7EC7\u67B6\u6784\u9009\u62E9\u6210\u5458" }),
52199
+ selectedUsers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Space, { size: [4, 4], wrap: true, className: "mt-2", children: selectedUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Tag, { children: getUserLabel(user) }, user.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Empty, { image: import_antd40.Empty.PRESENTED_IMAGE_SIMPLE, description: "\u8BF7\u4ECE\u7EC4\u7EC7\u67B6\u6784\u9009\u62E9\u6210\u5458" }),
52050
52200
  /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
52051
52201
  UserPicker,
52052
52202
  {
@@ -52069,14 +52219,14 @@ var RequirementSelect = ({
52069
52219
  }
52070
52220
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "rounded-lg border border-ant-border-secondary bg-ant-bg-container p-3", children: [
52071
52221
  /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "mb-2", children: [
52072
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Typography.Text, { strong: true, children: requirement.nodeName }),
52222
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Typography.Text, { strong: true, children: requirement.nodeName }),
52073
52223
  /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "mt-1 text-xs text-ant-color-text-tertiary", children: [
52074
52224
  "\u9009\u62E9\u8303\u56F4\uFF1A",
52075
52225
  scopeText[requirement.scope] || "\u5168\u90E8\u6210\u5458"
52076
52226
  ] })
52077
52227
  ] }),
52078
52228
  /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
52079
- import_antd39.Select,
52229
+ import_antd40.Select,
52080
52230
  {
52081
52231
  mode: "multiple",
52082
52232
  className: "w-full",
@@ -52087,7 +52237,7 @@ var RequirementSelect = ({
52087
52237
  loading,
52088
52238
  value: selectedUsers.map((user) => user.id),
52089
52239
  options,
52090
- notFoundContent: loading ? "\u52A0\u8F7D\u4E2D..." : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Empty, { image: import_antd39.Empty.PRESENTED_IMAGE_SIMPLE }),
52240
+ notFoundContent: loading ? "\u52A0\u8F7D\u4E2D..." : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Empty, { image: import_antd40.Empty.PRESENTED_IMAGE_SIMPLE }),
52091
52241
  onSearch: (keyword) => {
52092
52242
  void loadCandidates(keyword);
52093
52243
  },
@@ -52099,7 +52249,7 @@ var RequirementSelect = ({
52099
52249
  }
52100
52250
  }
52101
52251
  ),
52102
- selectedUsers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Space, { size: [4, 4], wrap: true, className: "mt-2", children: selectedUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Tag, { children: getUserLabel(user) }, user.id)) }) : null
52252
+ selectedUsers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Space, { size: [4, 4], wrap: true, className: "mt-2", children: selectedUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Tag, { children: getUserLabel(user) }, user.id)) }) : null
52103
52253
  ] });
52104
52254
  };
52105
52255
  var InitiatorApproverSelector = ({
@@ -52124,7 +52274,7 @@ var InitiatorApproverSelector = ({
52124
52274
  (requirement) => !(selected[requirement.nodeId] || []).length
52125
52275
  );
52126
52276
  return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
52127
- import_antd39.Modal,
52277
+ import_antd40.Modal,
52128
52278
  {
52129
52279
  getContainer: false,
52130
52280
  title: "\u9009\u62E9\u5BA1\u6279\u4EBA",
@@ -52135,13 +52285,13 @@ var InitiatorApproverSelector = ({
52135
52285
  onCancel,
52136
52286
  onOk: () => {
52137
52287
  if (missingNodes.length > 0) {
52138
- import_antd39.message.error("\u8BF7\u4E3A\u6240\u6709\u53D1\u8D77\u4EBA\u81EA\u9009\u8282\u70B9\u9009\u62E9\u5BA1\u6279\u4EBA");
52288
+ import_antd40.message.error("\u8BF7\u4E3A\u6240\u6709\u53D1\u8D77\u4EBA\u81EA\u9009\u8282\u70B9\u9009\u62E9\u5BA1\u6279\u4EBA");
52139
52289
  return;
52140
52290
  }
52141
52291
  onOk(selected);
52142
52292
  },
52143
52293
  destroyOnHidden: true,
52144
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd39.Space, { direction: "vertical", size: 12, className: "w-full", children: requirements.map((requirement) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
52294
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_antd40.Space, { direction: "vertical", size: 12, className: "w-full", children: requirements.map((requirement) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
52145
52295
  RequirementSelect,
52146
52296
  {
52147
52297
  open,
@@ -52255,8 +52405,8 @@ var SubmitSuccessCard = ({
52255
52405
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h2", { className: "text-lg font-semibold text-gray-900 mb-1", children: "\u63D0\u4EA4\u6210\u529F" }),
52256
52406
  /* @__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" }),
52257
52407
  /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex gap-3", children: [
52258
- (mode === "stay" || mode === "redirect") && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_antd40.Button, { onClick: onContinue, children: "\u7EE7\u7EED\u63D0\u4EA4" }),
52259
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_antd40.Button, { type: "primary", onClick: onViewDetail, children: "\u67E5\u770B\u8BE6\u60C5" })
52408
+ (mode === "stay" || mode === "redirect") && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_antd41.Button, { onClick: onContinue, children: "\u7EE7\u7EED\u63D0\u4EA4" }),
52409
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_antd41.Button, { type: "primary", onClick: onViewDetail, children: "\u67E5\u770B\u8BE6\u60C5" })
52260
52410
  ] }),
52261
52411
  isRedirecting && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "mt-6 w-48", children: [
52262
52412
  /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "text-xs text-gray-400 text-center mb-1", children: [
@@ -52361,7 +52511,7 @@ var InnerFormContent = ({
52361
52511
  const loadedUser = runtimeUser || unwrapRuntimePayload2(await api.getUserById("current"));
52362
52512
  const departments = normalizeDepartmentOptions(loadedUser?.departments);
52363
52513
  if (departments.length === 0) {
52364
- import_antd40.message.error("\u5F53\u524D\u8D26\u53F7\u672A\u5206\u914D\u90E8\u95E8\uFF0C\u65E0\u6CD5\u53D1\u8D77\u4E3B\u7BA1\u5BA1\u6279\u6D41\u7A0B");
52514
+ import_antd41.message.error("\u5F53\u524D\u8D26\u53F7\u672A\u5206\u914D\u90E8\u95E8\uFF0C\u65E0\u6CD5\u53D1\u8D77\u4E3B\u7BA1\u5BA1\u6279\u6D41\u7A0B");
52365
52515
  return null;
52366
52516
  }
52367
52517
  if (departments.length === 1) {
@@ -52430,7 +52580,7 @@ var InnerFormContent = ({
52430
52580
  }
52431
52581
  } catch (error) {
52432
52582
  console.error("[FormSubmitTemplate] Submit failed:", error);
52433
- import_antd40.message.error(error instanceof Error ? error.message : "\u63D0\u4EA4\u5931\u8D25");
52583
+ import_antd41.message.error(error instanceof Error ? error.message : "\u63D0\u4EA4\u5931\u8D25");
52434
52584
  } finally {
52435
52585
  setSubmitting(false);
52436
52586
  }
@@ -52496,7 +52646,7 @@ var InnerFormContent = ({
52496
52646
  try {
52497
52647
  submissionDepartmentId = saveDraftSubmit ? void 0 : await resolveSubmissionDepartmentId();
52498
52648
  } catch (error) {
52499
- import_antd40.message.error(error instanceof Error ? error.message : "\u63D0\u4EA4\u5931\u8D25");
52649
+ import_antd41.message.error(error instanceof Error ? error.message : "\u63D0\u4EA4\u5931\u8D25");
52500
52650
  return;
52501
52651
  }
52502
52652
  if (submissionDepartmentId === null) {
@@ -52522,7 +52672,7 @@ var InnerFormContent = ({
52522
52672
  }
52523
52673
  } catch (error) {
52524
52674
  console.error("[FormSubmitTemplate] Load initiator approver requirements failed:", error);
52525
- import_antd40.message.error(error instanceof Error ? error.message : "\u52A0\u8F7D\u5BA1\u6279\u4EBA\u9009\u62E9\u8981\u6C42\u5931\u8D25");
52675
+ import_antd41.message.error(error instanceof Error ? error.message : "\u52A0\u8F7D\u5BA1\u6279\u4EBA\u9009\u62E9\u8981\u6C42\u5931\u8D25");
52526
52676
  return;
52527
52677
  }
52528
52678
  }
@@ -52627,7 +52777,7 @@ var InnerFormContent = ({
52627
52777
  onChange: setDepartmentId,
52628
52778
  options: departmentOptions
52629
52779
  }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
52630
- import_antd40.Select,
52780
+ import_antd41.Select,
52631
52781
  {
52632
52782
  allowClear: true,
52633
52783
  className: "w-full",
@@ -52737,7 +52887,7 @@ var InnerFormContent = ({
52737
52887
  }
52738
52888
  ),
52739
52889
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
52740
- import_antd40.Modal,
52890
+ import_antd41.Modal,
52741
52891
  {
52742
52892
  getContainer: false,
52743
52893
  open: submissionDepartmentModalOpen,
@@ -52746,7 +52896,7 @@ var InnerFormContent = ({
52746
52896
  cancelText: "\u53D6\u6D88",
52747
52897
  onOk: () => {
52748
52898
  if (!selectedSubmissionDepartmentId) {
52749
- import_antd40.message.error("\u8BF7\u9009\u62E9\u63D0\u4EA4\u90E8\u95E8");
52899
+ import_antd41.message.error("\u8BF7\u9009\u62E9\u63D0\u4EA4\u90E8\u95E8");
52750
52900
  return;
52751
52901
  }
52752
52902
  setDepartmentId(selectedSubmissionDepartmentId);
@@ -52755,7 +52905,7 @@ var InnerFormContent = ({
52755
52905
  onCancel: () => closeSubmissionDepartmentModal(null),
52756
52906
  destroyOnHidden: true,
52757
52907
  children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
52758
- import_antd40.Select,
52908
+ import_antd41.Select,
52759
52909
  {
52760
52910
  className: "w-full",
52761
52911
  placeholder: "\u8BF7\u9009\u62E9\u63D0\u4EA4\u90E8\u95E8",
@@ -52788,39 +52938,49 @@ var FormSubmitTemplate = ({
52788
52938
  renderSuccess,
52789
52939
  onSubmitSuccess,
52790
52940
  initialValues,
52941
+ components,
52791
52942
  inDrawer = false
52792
52943
  }) => {
52793
52944
  const resolvedFormType = normalizeSubmitFormType(formType);
52794
52945
  const resolvedEnableProcessPreview = enableProcessPreview ?? schema.template?.enableProcessPreview ?? resolvedFormType === "process";
52795
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(FormProvider, { schema, config, initialValues, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
52796
- InnerFormContent,
52946
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
52947
+ FormProvider,
52797
52948
  {
52798
52949
  schema,
52799
52950
  config,
52800
- formType: resolvedFormType,
52801
- submitSuccessMode,
52802
- enableDraft,
52803
- enableProcessPreview: resolvedEnableProcessPreview,
52804
- enableSubmissionDepartmentSelect,
52805
- departmentOptions,
52806
- header,
52807
- footer,
52808
- beforeForm,
52809
- afterForm,
52810
- renderDepartmentSelector,
52811
- renderForm,
52812
- renderSuccess,
52813
- onSubmitSuccess,
52814
- inDrawer
52951
+ initialValues,
52952
+ components,
52953
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
52954
+ InnerFormContent,
52955
+ {
52956
+ schema,
52957
+ config,
52958
+ formType: resolvedFormType,
52959
+ submitSuccessMode,
52960
+ enableDraft,
52961
+ enableProcessPreview: resolvedEnableProcessPreview,
52962
+ enableSubmissionDepartmentSelect,
52963
+ departmentOptions,
52964
+ header,
52965
+ footer,
52966
+ beforeForm,
52967
+ afterForm,
52968
+ renderDepartmentSelector,
52969
+ renderForm,
52970
+ renderSuccess,
52971
+ onSubmitSuccess,
52972
+ inDrawer
52973
+ }
52974
+ )
52815
52975
  }
52816
- ) });
52976
+ );
52817
52977
  };
52818
52978
 
52819
52979
  // packages/sdk/src/components/templates/ProcessDetailTemplate.tsx
52820
52980
  init_cjs_shims();
52821
52981
  var import_react80 = require("react");
52822
52982
  var import_dayjs10 = __toESM(require("dayjs"));
52823
- var import_antd41 = require("antd");
52983
+ var import_antd42 = require("antd");
52824
52984
  var import_jsx_runtime102 = require("react/jsx-runtime");
52825
52985
  function FormDataBridge2({
52826
52986
  formDataRef,
@@ -52909,11 +53069,12 @@ var InnerProcessContent = ({
52909
53069
  onActionComplete,
52910
53070
  onSave,
52911
53071
  onDelete,
53072
+ components,
52912
53073
  inDrawer = false
52913
53074
  }) => {
52914
53075
  const formDataRef = (0, import_react80.useRef)(void 0);
52915
53076
  const validateRef = (0, import_react80.useRef)(void 0);
52916
- const [withdrawForm] = import_antd41.Form.useForm();
53077
+ const [withdrawForm] = import_antd42.Form.useForm();
52917
53078
  const [withdrawOpen, setWithdrawOpen] = (0, import_react80.useState)(false);
52918
53079
  const [withdrawLoading, setWithdrawLoading] = (0, import_react80.useState)(false);
52919
53080
  const [saveLoading, setSaveLoading] = (0, import_react80.useState)(false);
@@ -53032,7 +53193,7 @@ var InnerProcessContent = ({
53032
53193
  if (!await validateForm()) return;
53033
53194
  const values = formDataRef.current?.() ?? formData ?? {};
53034
53195
  if (!currentTaskId) {
53035
- import_antd41.message.error("\u672A\u627E\u5230\u53D1\u8D77\u4EBA\u4FEE\u6539\u4EFB\u52A1");
53196
+ import_antd42.message.error("\u672A\u627E\u5230\u53D1\u8D77\u4EBA\u4FEE\u6539\u4EFB\u52A1");
53036
53197
  return;
53037
53198
  }
53038
53199
  let requirements = [];
@@ -53048,7 +53209,7 @@ var InnerProcessContent = ({
53048
53209
  "[ProcessDetailTemplate] Load resubmit initiator approver requirements failed:",
53049
53210
  error
53050
53211
  );
53051
- import_antd41.message.error(error instanceof Error ? error.message : "\u52A0\u8F7D\u5BA1\u6279\u4EBA\u9009\u62E9\u8981\u6C42\u5931\u8D25");
53212
+ import_antd42.message.error(error instanceof Error ? error.message : "\u52A0\u8F7D\u5BA1\u6279\u4EBA\u9009\u62E9\u8981\u6C42\u5931\u8D25");
53052
53213
  return;
53053
53214
  }
53054
53215
  if (requirements.length > 0) {
@@ -53348,6 +53509,7 @@ var InnerProcessContent = ({
53348
53509
  schema,
53349
53510
  config: formConfig,
53350
53511
  initialValues: formData ?? void 0,
53512
+ components,
53351
53513
  children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(FormShell, { appearance: schema.template?.appearance, className: "sy-form-shell", children: [
53352
53514
  /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(FormDataBridge2, { formDataRef, validateRef }),
53353
53515
  /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
@@ -53391,7 +53553,7 @@ var InnerProcessContent = ({
53391
53553
  )
53392
53554
  ] }),
53393
53555
  /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
53394
- import_antd41.Modal,
53556
+ import_antd42.Modal,
53395
53557
  {
53396
53558
  getContainer: false,
53397
53559
  title: "\u64A4\u9500\u6D41\u7A0B",
@@ -53403,13 +53565,13 @@ var InnerProcessContent = ({
53403
53565
  onOk: handleFooterWithdraw,
53404
53566
  onCancel: handleFooterWithdrawCancel,
53405
53567
  destroyOnHidden: true,
53406
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_antd41.Form, { form: withdrawForm, layout: "vertical", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
53407
- import_antd41.Form.Item,
53568
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_antd42.Form, { form: withdrawForm, layout: "vertical", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
53569
+ import_antd42.Form.Item,
53408
53570
  {
53409
53571
  name: "reason",
53410
53572
  label: "\u64A4\u9500\u539F\u56E0",
53411
53573
  rules: [{ required: true, message: "\u8BF7\u586B\u5199\u64A4\u9500\u539F\u56E0" }],
53412
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_antd41.Input.TextArea, { rows: 4, maxLength: 500, showCount: true, placeholder: "\u8BF7\u8F93\u5165\u64A4\u9500\u539F\u56E0" })
53574
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_antd42.Input.TextArea, { rows: 4, maxLength: 500, showCount: true, placeholder: "\u8BF7\u8F93\u5165\u64A4\u9500\u539F\u56E0" })
53413
53575
  }
53414
53576
  ) })
53415
53577
  }
@@ -53431,14 +53593,14 @@ var InnerProcessContent = ({
53431
53593
  );
53432
53594
  };
53433
53595
  var ProcessDetailTemplate = (props) => {
53434
- const { schema, formUuid, appType, formInstanceId } = props;
53596
+ const { schema, formUuid, appType, formInstanceId, components } = props;
53435
53597
  const wrapperConfig = {
53436
53598
  mode: "readonly",
53437
53599
  formUuid,
53438
53600
  appType,
53439
53601
  formInstanceId
53440
53602
  };
53441
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(FormProvider, { schema, config: wrapperConfig, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(InnerProcessContent, { ...props }) });
53603
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(FormProvider, { schema, config: wrapperConfig, components, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(InnerProcessContent, { ...props }) });
53442
53604
  };
53443
53605
 
53444
53606
  // packages/sdk/src/components/templates/StandardFormPage.tsx
@@ -53462,6 +53624,7 @@ var StandardFormPage = ({
53462
53624
  compatibility,
53463
53625
  onSubmit,
53464
53626
  onSubmitSuccess,
53627
+ components,
53465
53628
  inDrawer
53466
53629
  }) => {
53467
53630
  const resolvedMode = mode || schema.template?.defaultMode || "submit";
@@ -53502,6 +53665,7 @@ var StandardFormPage = ({
53502
53665
  enableEdit: schema.template?.enableEdit,
53503
53666
  enableDelete: schema.template?.enableDelete,
53504
53667
  enableChangeRecords: schema.template?.enableChangeRecords,
53668
+ components,
53505
53669
  inDrawer
53506
53670
  }
53507
53671
  );
@@ -53517,6 +53681,7 @@ var StandardFormPage = ({
53517
53681
  enableEdit: schema.template?.enableEdit,
53518
53682
  enableDelete: schema.template?.enableDelete,
53519
53683
  enableChangeRecords: schema.template?.enableChangeRecords,
53684
+ components,
53520
53685
  inDrawer
53521
53686
  }
53522
53687
  );
@@ -53542,6 +53707,7 @@ var StandardFormPage = ({
53542
53707
  enableProcessPreview: schema.template?.enableProcessPreview,
53543
53708
  initialValues: initialValues ?? void 0,
53544
53709
  onSubmitSuccess,
53710
+ components,
53545
53711
  inDrawer
53546
53712
  }
53547
53713
  );
@@ -53808,7 +53974,7 @@ var renderStatusTag = (value, fieldId) => {
53808
53974
  };
53809
53975
  if (fieldId !== "processInstanceStatus" && fieldId !== "approvalResult") return null;
53810
53976
  const meta = statusMap[raw];
53811
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Tag, { color: meta?.color, children: meta?.label || raw || "--" });
53977
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Tag, { color: meta?.color, children: meta?.label || raw || "--" });
53812
53978
  };
53813
53979
  var renderCellValue = (value, field) => {
53814
53980
  const status = renderStatusTag(value, field.fieldId);
@@ -53830,17 +53996,17 @@ var renderCellValue = (value, field) => {
53830
53996
  )) });
53831
53997
  }
53832
53998
  if (field.componentName === "AttachmentField") {
53833
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { size: 4, wrap: true, children: [
53834
- value.slice(0, 3).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Tag, { children: item?.name || item?.originalName || `\u9644\u4EF6${index + 1}` }, item?.uid || item?.id || index)),
53835
- value.length > 3 && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Tag, { children: [
53999
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { size: 4, wrap: true, children: [
54000
+ value.slice(0, 3).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Tag, { children: item?.name || item?.originalName || `\u9644\u4EF6${index + 1}` }, item?.uid || item?.id || index)),
54001
+ value.length > 3 && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Tag, { children: [
53836
54002
  "+",
53837
54003
  value.length - 3
53838
54004
  ] })
53839
54005
  ] });
53840
54006
  }
53841
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { size: 4, wrap: true, children: [
53842
- value.slice(0, 4).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Tag, { children: pickOptionLabel(field, item) }, `${field.fieldId}_${index}`)),
53843
- value.length > 4 && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Tag, { children: [
54007
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { size: 4, wrap: true, children: [
54008
+ value.slice(0, 4).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Tag, { children: pickOptionLabel(field, item) }, `${field.fieldId}_${index}`)),
54009
+ value.length > 4 && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Tag, { children: [
53844
54010
  "+",
53845
54011
  value.length - 4
53846
54012
  ] })
@@ -53856,7 +54022,7 @@ var renderCellValue = (value, field) => {
53856
54022
  if (value.label || value.name || value.value) {
53857
54023
  return pickOptionLabel(field, value);
53858
54024
  }
53859
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Tooltip, { title: JSON.stringify(value), children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-ant-color-text-secondary", children: "\u5BF9\u8C61\u6570\u636E" }) });
54025
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Tooltip, { title: JSON.stringify(value), children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-ant-color-text-secondary", children: "\u5BF9\u8C61\u6570\u636E" }) });
53860
54026
  }
53861
54027
  if (["SelectField", "RadioField", "CheckboxField", "MultiSelectField"].includes(field.componentName)) {
53862
54028
  return pickOptionLabel(field, value);
@@ -54125,7 +54291,7 @@ function AsyncEntityFilterSelect({
54125
54291
  void loadOptions();
54126
54292
  }, [loadOptions]);
54127
54293
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54128
- import_antd42.Select,
54294
+ import_antd43.Select,
54129
54295
  {
54130
54296
  showSearch: true,
54131
54297
  allowClear: true,
@@ -54157,7 +54323,7 @@ function FilterValueEditor({
54157
54323
  const range = Array.isArray(value) ? value : [void 0, void 0];
54158
54324
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex w-full gap-2", children: [
54159
54325
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54160
- import_antd42.InputNumber,
54326
+ import_antd43.InputNumber,
54161
54327
  {
54162
54328
  className: "w-full",
54163
54329
  placeholder: "\u6700\u5C0F\u503C",
@@ -54166,7 +54332,7 @@ function FilterValueEditor({
54166
54332
  }
54167
54333
  ),
54168
54334
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54169
- import_antd42.InputNumber,
54335
+ import_antd43.InputNumber,
54170
54336
  {
54171
54337
  className: "w-full",
54172
54338
  placeholder: "\u6700\u5927\u503C",
@@ -54177,7 +54343,7 @@ function FilterValueEditor({
54177
54343
  ] });
54178
54344
  }
54179
54345
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54180
- import_antd42.InputNumber,
54346
+ import_antd43.InputNumber,
54181
54347
  {
54182
54348
  className: "w-full",
54183
54349
  value: value === "" || value === void 0 ? null : Number(value),
@@ -54190,7 +54356,7 @@ function FilterValueEditor({
54190
54356
  if (normalizedOperator === "BETWEEN") {
54191
54357
  const range = Array.isArray(value) ? value : [];
54192
54358
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54193
- import_antd42.DatePicker.RangePicker,
54359
+ import_antd43.DatePicker.RangePicker,
54194
54360
  {
54195
54361
  className: "w-full",
54196
54362
  locale: antdDatePickerChineseLocale,
@@ -54203,7 +54369,7 @@ function FilterValueEditor({
54203
54369
  );
54204
54370
  }
54205
54371
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54206
- import_antd42.DatePicker,
54372
+ import_antd43.DatePicker,
54207
54373
  {
54208
54374
  className: "w-full",
54209
54375
  locale: antdDatePickerChineseLocale,
@@ -54217,7 +54383,7 @@ function FilterValueEditor({
54217
54383
  if (kind === "singleOption" || kind === "multiOption") {
54218
54384
  const multiple = normalizedOperator === "IN" || kind === "multiOption";
54219
54385
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54220
- import_antd42.Select,
54386
+ import_antd43.Select,
54221
54387
  {
54222
54388
  allowClear: true,
54223
54389
  mode: multiple ? "multiple" : void 0,
@@ -54232,7 +54398,7 @@ function FilterValueEditor({
54232
54398
  const cascadeOptions = normalizeCascadeOptions(field);
54233
54399
  if (normalizedOperator === "IN") {
54234
54400
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54235
- import_antd42.Select,
54401
+ import_antd43.Select,
54236
54402
  {
54237
54403
  allowClear: true,
54238
54404
  mode: "multiple",
@@ -54244,7 +54410,7 @@ function FilterValueEditor({
54244
54410
  );
54245
54411
  }
54246
54412
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54247
- import_antd42.Cascader,
54413
+ import_antd43.Cascader,
54248
54414
  {
54249
54415
  className: "w-full",
54250
54416
  allowClear: true,
@@ -54272,7 +54438,7 @@ function FilterValueEditor({
54272
54438
  }
54273
54439
  if (normalizedOperator === "IN") {
54274
54440
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54275
- import_antd42.Select,
54441
+ import_antd43.Select,
54276
54442
  {
54277
54443
  mode: "tags",
54278
54444
  tokenSeparators: [",", "\uFF0C"],
@@ -54283,7 +54449,7 @@ function FilterValueEditor({
54283
54449
  );
54284
54450
  }
54285
54451
  return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54286
- import_antd42.Input,
54452
+ import_antd43.Input,
54287
54453
  {
54288
54454
  value: value ?? "",
54289
54455
  placeholder: "\u8F93\u5165\u7B5B\u9009\u503C",
@@ -54318,7 +54484,7 @@ function FilterGroupEditor({
54318
54484
  children: [
54319
54485
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center justify-between", children: [
54320
54486
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54321
- import_antd42.Segmented,
54487
+ import_antd43.Segmented,
54322
54488
  {
54323
54489
  size: "small",
54324
54490
  value: group.logic,
@@ -54329,9 +54495,9 @@ function FilterGroupEditor({
54329
54495
  onChange: (value) => onChange({ ...group, logic: value })
54330
54496
  }
54331
54497
  ),
54332
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { children: [
54498
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { children: [
54333
54499
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54334
- import_antd42.Button,
54500
+ import_antd43.Button,
54335
54501
  {
54336
54502
  size: "small",
54337
54503
  onClick: () => onChange({ ...group, rules: [...group.rules, createRule(fields[0])] }),
@@ -54339,7 +54505,7 @@ function FilterGroupEditor({
54339
54505
  }
54340
54506
  ),
54341
54507
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54342
- import_antd42.Button,
54508
+ import_antd43.Button,
54343
54509
  {
54344
54510
  size: "small",
54345
54511
  onClick: () => onChange({ ...group, conditions: [...group.conditions, createGroup()] }),
@@ -54354,7 +54520,7 @@ function FilterGroupEditor({
54354
54520
  className: "grid grid-cols-[minmax(140px,1fr)_132px_minmax(180px,1.4fr)_auto] gap-2",
54355
54521
  children: [
54356
54522
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54357
- import_antd42.Select,
54523
+ import_antd43.Select,
54358
54524
  {
54359
54525
  showSearch: true,
54360
54526
  placeholder: "\u5B57\u6BB5",
@@ -54374,7 +54540,7 @@ function FilterGroupEditor({
54374
54540
  }
54375
54541
  ),
54376
54542
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54377
- import_antd42.Select,
54543
+ import_antd43.Select,
54378
54544
  {
54379
54545
  value: normalizeOperator(rule.operator),
54380
54546
  options: getOperatorOptions(fields.find((field) => field.fieldId === rule.key)),
@@ -54395,7 +54561,7 @@ function FilterGroupEditor({
54395
54561
  }
54396
54562
  ),
54397
54563
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
54398
- import_antd42.Button,
54564
+ import_antd43.Button,
54399
54565
  {
54400
54566
  danger: true,
54401
54567
  type: "text",
@@ -54421,7 +54587,7 @@ function FilterGroupEditor({
54421
54587
  },
54422
54588
  child.id
54423
54589
  )),
54424
- group.rules.length === 0 && group.conditions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Empty, { image: import_antd42.Empty.PRESENTED_IMAGE_SIMPLE, description: "\u6682\u65E0\u7B5B\u9009\u6761\u4EF6" })
54590
+ group.rules.length === 0 && group.conditions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Empty, { image: import_antd43.Empty.PRESENTED_IMAGE_SIMPLE, description: "\u6682\u65E0\u7B5B\u9009\u6761\u4EF6" })
54425
54591
  ]
54426
54592
  }
54427
54593
  );
@@ -54489,6 +54655,7 @@ var DataManagementList = ({
54489
54655
  formTitle,
54490
54656
  formType: propFormType,
54491
54657
  schema: providedSchema,
54658
+ components,
54492
54659
  forcedConfig,
54493
54660
  showForcedConfig = true,
54494
54661
  detailRenderer,
@@ -54690,7 +54857,7 @@ var DataManagementList = ({
54690
54857
  setPageSize(nextPageSize);
54691
54858
  } catch (error) {
54692
54859
  console.error("[DataManagementList] loadData failed:", error);
54693
- import_antd42.message.error("\u52A0\u8F7D\u6570\u636E\u5931\u8D25");
54860
+ import_antd43.message.error("\u52A0\u8F7D\u6570\u636E\u5931\u8D25");
54694
54861
  } finally {
54695
54862
  setLoading(false);
54696
54863
  }
@@ -54767,7 +54934,7 @@ var DataManagementList = ({
54767
54934
  });
54768
54935
  } catch (error) {
54769
54936
  console.error("[DataManagementList] load schema failed:", error);
54770
- import_antd42.message.error(error instanceof Error ? error.message : "\u52A0\u8F7D\u8868\u5355\u914D\u7F6E\u5931\u8D25");
54937
+ import_antd43.message.error(error instanceof Error ? error.message : "\u52A0\u8F7D\u8868\u5355\u914D\u7F6E\u5931\u8D25");
54771
54938
  } finally {
54772
54939
  if (mounted) setSchemaLoading(false);
54773
54940
  }
@@ -54802,7 +54969,7 @@ var DataManagementList = ({
54802
54969
  config: nextConfig
54803
54970
  }).catch((error) => {
54804
54971
  console.error("[DataManagementList] save config failed:", error);
54805
- import_antd42.message.warning("\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\uFF0C\u672C\u6B21\u4EC5\u5728\u5F53\u524D\u9875\u9762\u751F\u6548");
54972
+ import_antd43.message.warning("\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\uFF0C\u672C\u6B21\u4EC5\u5728\u5F53\u524D\u9875\u9762\u751F\u6548");
54806
54973
  });
54807
54974
  },
54808
54975
  [appType, config, forcedConfig, formUuid, menuFormUuid, request]
@@ -54852,7 +55019,7 @@ var DataManagementList = ({
54852
55019
  (record) => {
54853
55020
  const formInstanceId = getRecordId(record);
54854
55021
  if (!formInstanceId) {
54855
- import_antd42.message.warning("\u5F53\u524D\u8BB0\u5F55\u7F3A\u5C11\u5B9E\u4F8B ID\uFF0C\u65E0\u6CD5\u6253\u5F00\u8BE6\u60C5");
55022
+ import_antd43.message.warning("\u5F53\u524D\u8BB0\u5F55\u7F3A\u5C11\u5B9E\u4F8B ID\uFF0C\u65E0\u6CD5\u6253\u5F00\u8BE6\u60C5");
54856
55023
  return;
54857
55024
  }
54858
55025
  if (detailOpenMode === "newPage" && typeof window !== "undefined") {
@@ -54877,7 +55044,7 @@ var DataManagementList = ({
54877
55044
  async (ids) => {
54878
55045
  if (ids.length === 0) return;
54879
55046
  if (!canDelete) {
54880
- import_antd42.message.error("\u65E0\u6743\u9650\u5220\u9664\u6570\u636E");
55047
+ import_antd43.message.error("\u65E0\u6743\u9650\u5220\u9664\u6570\u636E");
54881
55048
  return;
54882
55049
  }
54883
55050
  await deleteDataManagementRows(request, { appType, formUuid, formInstanceIds: ids });
@@ -54910,7 +55077,7 @@ var DataManagementList = ({
54910
55077
  action: batchApprovalAction,
54911
55078
  comments: batchApprovalComments || void 0
54912
55079
  });
54913
- import_antd42.message.success(`\u6279\u91CF${batchApprovalAction === "approved" ? "\u901A\u8FC7" : "\u62D2\u7EDD"}\u5DF2\u63D0\u4EA4`);
55080
+ import_antd43.message.success(`\u6279\u91CF${batchApprovalAction === "approved" ? "\u901A\u8FC7" : "\u62D2\u7EDD"}\u5DF2\u63D0\u4EA4`);
54914
55081
  setSelectedRowKeys([]);
54915
55082
  setBatchApprovalOpen(false);
54916
55083
  setBatchApprovalAction("approved");
@@ -54918,19 +55085,19 @@ var DataManagementList = ({
54918
55085
  await loadData({ current, pageSize });
54919
55086
  } catch (error) {
54920
55087
  console.error("[DataManagementList] batch approval failed:", error);
54921
- import_antd42.message.error("\u6279\u91CF\u5BA1\u6279\u5931\u8D25");
55088
+ import_antd43.message.error("\u6279\u91CF\u5BA1\u6279\u5931\u8D25");
54922
55089
  } finally {
54923
55090
  setBatchApproving(false);
54924
55091
  }
54925
55092
  };
54926
55093
  const handleExport = async (scope) => {
54927
55094
  if (!canExport) {
54928
- import_antd42.message.error("\u65E0\u6743\u9650\u5BFC\u51FA\u6570\u636E");
55095
+ import_antd43.message.error("\u65E0\u6743\u9650\u5BFC\u51FA\u6570\u636E");
54929
55096
  return;
54930
55097
  }
54931
55098
  const selectedIds = scope === "selected" ? getSelectedRecordIds() : [];
54932
55099
  if (scope === "selected" && selectedIds.length === 0) {
54933
- import_antd42.message.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u8BB0\u5F55");
55100
+ import_antd43.message.warning("\u8BF7\u5148\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u8BB0\u5F55");
54934
55101
  return;
54935
55102
  }
54936
55103
  const selectedFilterGroup = createSelectedIdFilterGroup(selectedIds);
@@ -54960,24 +55127,24 @@ var DataManagementList = ({
54960
55127
  setExportOpen(false);
54961
55128
  } catch (error) {
54962
55129
  console.error("[DataManagementList] export failed:", error);
54963
- import_antd42.message.error("\u5BFC\u51FA\u5931\u8D25");
55130
+ import_antd43.message.error("\u5BFC\u51FA\u5931\u8D25");
54964
55131
  } finally {
54965
55132
  setExporting(false);
54966
55133
  }
54967
55134
  };
54968
55135
  const handleDownloadTemplate = async () => {
54969
55136
  if (!canImport) {
54970
- import_antd42.message.error("\u65E0\u6743\u9650\u5BFC\u5165\u6570\u636E");
55137
+ import_antd43.message.error("\u65E0\u6743\u9650\u5BFC\u5165\u6570\u636E");
54971
55138
  return;
54972
55139
  }
54973
55140
  setTemplateDownloading(true);
54974
55141
  try {
54975
55142
  const response = await downloadDataManagementImportTemplate(request, { appType, formUuid });
54976
55143
  await downloadBlobResponse(response, `\u5BFC\u5165\u6A21\u677F-${formUuid}.xlsx`);
54977
- import_antd42.message.success("\u6A21\u677F\u4E0B\u8F7D\u5DF2\u5F00\u59CB");
55144
+ import_antd43.message.success("\u6A21\u677F\u4E0B\u8F7D\u5DF2\u5F00\u59CB");
54978
55145
  } catch (error) {
54979
55146
  console.error("[DataManagementList] download template failed:", error);
54980
- import_antd42.message.error(error instanceof Error ? error.message : "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u5931\u8D25");
55147
+ import_antd43.message.error(error instanceof Error ? error.message : "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u5931\u8D25");
54981
55148
  } finally {
54982
55149
  setTemplateDownloading(false);
54983
55150
  }
@@ -54998,8 +55165,8 @@ var DataManagementList = ({
54998
55165
  };
54999
55166
  const handleImportPreview = async (file) => {
55000
55167
  if (!canImport) {
55001
- import_antd42.message.error("\u65E0\u6743\u9650\u5BFC\u5165\u6570\u636E");
55002
- return import_antd42.Upload.LIST_IGNORE;
55168
+ import_antd43.message.error("\u65E0\u6743\u9650\u5BFC\u5165\u6570\u636E");
55169
+ return import_antd43.Upload.LIST_IGNORE;
55003
55170
  }
55004
55171
  const base64 = await fileToBase64(file);
55005
55172
  setImportBase64(base64);
@@ -55015,11 +55182,11 @@ var DataManagementList = ({
55015
55182
  const handleImportConfirm = async () => {
55016
55183
  if (!importBase64) return;
55017
55184
  if (!canImport) {
55018
- import_antd42.message.error("\u65E0\u6743\u9650\u5BFC\u5165\u6570\u636E");
55185
+ import_antd43.message.error("\u65E0\u6743\u9650\u5BFC\u5165\u6570\u636E");
55019
55186
  return;
55020
55187
  }
55021
55188
  await importDataManagementRows(request, { appType, formUuid, fileBase64: importBase64 });
55022
- import_antd42.message.success("\u5BFC\u5165\u4EFB\u52A1\u5DF2\u521B\u5EFA");
55189
+ import_antd43.message.success("\u5BFC\u5165\u4EFB\u52A1\u5DF2\u521B\u5EFA");
55023
55190
  setImportOpen(false);
55024
55191
  setImportPreview([]);
55025
55192
  setImportBase64("");
@@ -55090,15 +55257,15 @@ var DataManagementList = ({
55090
55257
  key: "workflow",
55091
55258
  label: "\u6D41\u7A0B\u65E5\u5FD7",
55092
55259
  icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.HistoryOutlined, {}),
55093
- onClick: () => import_antd42.message.info("\u8BF7\u901A\u8FC7 detailRenderer \u63A5\u5165\u6D41\u7A0B\u65E5\u5FD7\u6216\u6D41\u7A0B\u56FE\u5165\u53E3")
55260
+ onClick: () => import_antd43.message.info("\u8BF7\u901A\u8FC7 detailRenderer \u63A5\u5165\u6D41\u7A0B\u65E5\u5FD7\u6216\u6D41\u7A0B\u56FE\u5165\u53E3")
55094
55261
  }
55095
55262
  ] : []
55096
55263
  ];
55097
55264
  const visibleActions = actions.slice(0, visibleRowActionLimit);
55098
55265
  const moreActions = actions.slice(visibleRowActionLimit);
55099
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { size: 4, children: [
55266
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { size: 4, children: [
55100
55267
  visibleActions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55101
- import_antd42.Button,
55268
+ import_antd43.Button,
55102
55269
  {
55103
55270
  type: "link",
55104
55271
  size: "small",
@@ -55109,7 +55276,7 @@ var DataManagementList = ({
55109
55276
  action.key
55110
55277
  )),
55111
55278
  moreActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55112
- import_antd42.Dropdown,
55279
+ import_antd43.Dropdown,
55113
55280
  {
55114
55281
  trigger: ["click"],
55115
55282
  getPopupContainer,
@@ -55123,7 +55290,7 @@ var DataManagementList = ({
55123
55290
  }))
55124
55291
  },
55125
55292
  children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55126
- import_antd42.Button,
55293
+ import_antd43.Button,
55127
55294
  {
55128
55295
  type: "text",
55129
55296
  size: "small",
@@ -55179,7 +55346,7 @@ var DataManagementList = ({
55179
55346
  };
55180
55347
  });
55181
55348
  }, [fields, importPreview]);
55182
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.ConfigProvider, { getPopupContainer, locale: antdChineseLocale, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
55349
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.ConfigProvider, { getPopupContainer, locale: antdChineseLocale, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
55183
55350
  "div",
55184
55351
  {
55185
55352
  ref: rootRef,
@@ -55187,10 +55354,10 @@ var DataManagementList = ({
55187
55354
  children: [
55188
55355
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "mx-auto flex min-h-0 w-full max-w-[1440px] flex-col px-4 py-4 md:px-6", children: [
55189
55356
  title && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h2", { className: "m-0 text-xl font-semibold text-ant-color-text", children: title }) }),
55190
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-4 flex flex-col gap-3 md:flex-row md:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { wrap: true, children: [
55191
- canCreate && (submitRenderer || runtimeFormSchema) && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.PlusOutlined, {}), type: "primary", onClick: () => setSubmitOpen(true), children: "\u65B0\u589E" }),
55357
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-4 flex flex-col gap-3 md:flex-row md:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { wrap: true, children: [
55358
+ canCreate && (submitRenderer || runtimeFormSchema) && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.PlusOutlined, {}), type: "primary", onClick: () => setSubmitOpen(true), children: "\u65B0\u589E" }),
55192
55359
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55193
- import_antd42.Input.Search,
55360
+ import_antd43.Input.Search,
55194
55361
  {
55195
55362
  allowClear: true,
55196
55363
  className: "w-[260px]",
@@ -55212,10 +55379,10 @@ var DataManagementList = ({
55212
55379
  }
55213
55380
  }
55214
55381
  ),
55215
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.FilterOutlined, {}), onClick: () => setFilterOpen(true), children: "\u7B5B\u9009" }),
55216
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.SettingOutlined, {}), onClick: () => setColumnOpen(true), children: "\u5217\u8BBE\u7F6E" }),
55382
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.FilterOutlined, {}), onClick: () => setFilterOpen(true), children: "\u7B5B\u9009" }),
55383
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.SettingOutlined, {}), onClick: () => setColumnOpen(true), children: "\u5217\u8BBE\u7F6E" }),
55217
55384
  canExport && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55218
- import_antd42.Dropdown,
55385
+ import_antd43.Dropdown,
55219
55386
  {
55220
55387
  getPopupContainer,
55221
55388
  menu: {
@@ -55236,11 +55403,11 @@ var DataManagementList = ({
55236
55403
  }
55237
55404
  ]
55238
55405
  },
55239
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.DownloadOutlined, {}), children: "\u5BFC\u51FA" })
55406
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.DownloadOutlined, {}), children: "\u5BFC\u51FA" })
55240
55407
  }
55241
55408
  ),
55242
55409
  canImport && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55243
- import_antd42.Dropdown,
55410
+ import_antd43.Dropdown,
55244
55411
  {
55245
55412
  getPopupContainer,
55246
55413
  menu: {
@@ -55253,10 +55420,10 @@ var DataManagementList = ({
55253
55420
  }
55254
55421
  ]
55255
55422
  },
55256
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.ImportOutlined, {}), children: "\u5BFC\u5165" })
55423
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.ImportOutlined, {}), children: "\u5BFC\u5165" })
55257
55424
  }
55258
55425
  ),
55259
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.ReloadOutlined, {}), onClick: () => loadData({ current, pageSize }) })
55426
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.ReloadOutlined, {}), onClick: () => loadData({ current, pageSize }) })
55260
55427
  ] }) }),
55261
55428
  selectedRowKeys.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime104.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: [
55262
55429
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { className: "text-sm text-ant-color-text-secondary", children: [
@@ -55264,9 +55431,9 @@ var DataManagementList = ({
55264
55431
  selectedRowKeys.length,
55265
55432
  " \u6761"
55266
55433
  ] }),
55267
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { wrap: true, children: [
55434
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { wrap: true, children: [
55268
55435
  canExport && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55269
- import_antd42.Button,
55436
+ import_antd43.Button,
55270
55437
  {
55271
55438
  icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.DownloadOutlined, {}),
55272
55439
  onClick: () => {
@@ -55277,9 +55444,9 @@ var DataManagementList = ({
55277
55444
  children: "\u5BFC\u51FA\u9009\u4E2D"
55278
55445
  }
55279
55446
  ),
55280
- isProcessForm && canWorkflow && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.SwapOutlined, {}), onClick: handleBatchApprove, children: "\u6279\u91CF\u5BA1\u6279" }),
55447
+ isProcessForm && canWorkflow && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.SwapOutlined, {}), onClick: handleBatchApprove, children: "\u6279\u91CF\u5BA1\u6279" }),
55281
55448
  canDelete && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55282
- import_antd42.Button,
55449
+ import_antd43.Button,
55283
55450
  {
55284
55451
  danger: true,
55285
55452
  icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.DeleteOutlined, {}),
@@ -55291,11 +55458,11 @@ var DataManagementList = ({
55291
55458
  children: "\u6279\u91CF\u5220\u9664"
55292
55459
  }
55293
55460
  ),
55294
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { type: "link", onClick: () => setSelectedRowKeys([]), children: "\u53D6\u6D88\u9009\u62E9" })
55461
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { type: "link", onClick: () => setSelectedRowKeys([]), children: "\u53D6\u6D88\u9009\u62E9" })
55295
55462
  ] })
55296
55463
  ] }),
55297
55464
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "relative flex-1 overflow-hidden rounded-lg border border-ant-border-secondary bg-ant-bg-container", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55298
- import_antd42.Table,
55465
+ import_antd43.Table,
55299
55466
  {
55300
55467
  rowKey: (record) => String(getRecordId(record)),
55301
55468
  loading: loading || schemaLoading,
@@ -55328,7 +55495,7 @@ var DataManagementList = ({
55328
55495
  ) })
55329
55496
  ] }),
55330
55497
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
55331
- import_antd42.Modal,
55498
+ import_antd43.Modal,
55332
55499
  {
55333
55500
  getContainer: getOverlayContainer,
55334
55501
  title: "\u9AD8\u7EA7\u7B5B\u9009",
@@ -55343,7 +55510,7 @@ var DataManagementList = ({
55343
55510
  okText: "\u5E94\u7528\u7B5B\u9009",
55344
55511
  children: [
55345
55512
  showForcedConfig && hasFilterContent(forcedConfig?.filter?.group) && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55346
- import_antd42.Alert,
55513
+ import_antd43.Alert,
55347
55514
  {
55348
55515
  className: "mb-4",
55349
55516
  type: "info",
@@ -55365,7 +55532,7 @@ var DataManagementList = ({
55365
55532
  }
55366
55533
  ),
55367
55534
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55368
- import_antd42.Modal,
55535
+ import_antd43.Modal,
55369
55536
  {
55370
55537
  getContainer: getOverlayContainer,
55371
55538
  title: "\u5217\u8BBE\u7F6E",
@@ -55377,7 +55544,7 @@ var DataManagementList = ({
55377
55544
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
55378
55545
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u663E\u793A\u5217" }),
55379
55546
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55380
- import_antd42.Checkbox.Group,
55547
+ import_antd43.Checkbox.Group,
55381
55548
  {
55382
55549
  className: "grid grid-cols-2 gap-2 md:grid-cols-3",
55383
55550
  value: showFields,
@@ -55395,7 +55562,7 @@ var DataManagementList = ({
55395
55562
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
55396
55563
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u51BB\u7ED3\u5217" }),
55397
55564
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55398
- import_antd42.Select,
55565
+ import_antd43.Select,
55399
55566
  {
55400
55567
  mode: "multiple",
55401
55568
  className: "w-full",
@@ -55412,15 +55579,15 @@ var DataManagementList = ({
55412
55579
  }
55413
55580
  )
55414
55581
  ] }),
55415
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Divider, { className: "my-1" }),
55582
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Divider, { className: "my-1" }),
55416
55583
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
55417
55584
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "mb-2 flex items-center justify-between gap-3", children: [
55418
55585
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-sm font-medium text-ant-color-text", children: "\u6392\u5E8F\u89C4\u5219" }),
55419
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { size: "small", onClick: handleAddSort, disabled: fields.length === 0, children: "\u6DFB\u52A0\u6392\u5E8F" })
55586
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { size: "small", onClick: handleAddSort, disabled: fields.length === 0, children: "\u6DFB\u52A0\u6392\u5E8F" })
55420
55587
  ] }),
55421
55588
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "space-y-2", children: sort.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "rounded-lg border border-dashed border-ant-border-secondary px-3 py-4 text-center text-sm text-ant-color-text-tertiary", children: "\u6682\u65E0\u6392\u5E8F\u89C4\u5219" }) : sort.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-2", children: [
55422
55589
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55423
- import_antd42.Select,
55590
+ import_antd43.Select,
55424
55591
  {
55425
55592
  className: "min-w-0 flex-1",
55426
55593
  value: item.id,
@@ -55432,7 +55599,7 @@ var DataManagementList = ({
55432
55599
  }
55433
55600
  ),
55434
55601
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55435
- import_antd42.Segmented,
55602
+ import_antd43.Segmented,
55436
55603
  {
55437
55604
  value: item.isAsc,
55438
55605
  options: [
@@ -55443,7 +55610,7 @@ var DataManagementList = ({
55443
55610
  }
55444
55611
  ),
55445
55612
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55446
- import_antd42.Button,
55613
+ import_antd43.Button,
55447
55614
  {
55448
55615
  danger: true,
55449
55616
  type: "text",
@@ -55457,7 +55624,7 @@ var DataManagementList = ({
55457
55624
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
55458
55625
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u8868\u683C\u5BC6\u5EA6" }),
55459
55626
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55460
- import_antd42.Segmented,
55627
+ import_antd43.Segmented,
55461
55628
  {
55462
55629
  block: true,
55463
55630
  value: density,
@@ -55473,7 +55640,7 @@ var DataManagementList = ({
55473
55640
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
55474
55641
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u8BE6\u60C5\u6253\u5F00\u65B9\u5F0F" }),
55475
55642
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55476
- import_antd42.Segmented,
55643
+ import_antd43.Segmented,
55477
55644
  {
55478
55645
  block: true,
55479
55646
  value: detailOpenMode,
@@ -55488,7 +55655,7 @@ var DataManagementList = ({
55488
55655
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
55489
55656
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u9875\u5927\u5C0F" }),
55490
55657
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55491
- import_antd42.Select,
55658
+ import_antd43.Select,
55492
55659
  {
55493
55660
  className: "w-full",
55494
55661
  value: pageSize,
@@ -55502,16 +55669,16 @@ var DataManagementList = ({
55502
55669
  }
55503
55670
  ),
55504
55671
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55505
- import_antd42.Modal,
55672
+ import_antd43.Modal,
55506
55673
  {
55507
55674
  getContainer: getOverlayContainer,
55508
55675
  title: exportScope === "selected" ? "\u5BFC\u51FA\u9009\u4E2D\u6570\u636E" : "\u5BFC\u51FA\u5168\u90E8\u6570\u636E",
55509
55676
  open: exportOpen,
55510
55677
  onCancel: () => setExportOpen(false),
55511
- footer: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd42.Space, { children: [
55512
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Button, { onClick: () => setExportOpen(false), children: "\u53D6\u6D88" }),
55678
+ footer: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_antd43.Space, { children: [
55679
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Button, { onClick: () => setExportOpen(false), children: "\u53D6\u6D88" }),
55513
55680
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55514
- import_antd42.Button,
55681
+ import_antd43.Button,
55515
55682
  {
55516
55683
  type: "primary",
55517
55684
  loading: exporting,
@@ -55522,7 +55689,7 @@ var DataManagementList = ({
55522
55689
  )
55523
55690
  ] }),
55524
55691
  children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55525
- import_antd42.Checkbox.Group,
55692
+ import_antd43.Checkbox.Group,
55526
55693
  {
55527
55694
  className: "grid grid-cols-2 gap-2",
55528
55695
  value: exportFields,
@@ -55533,7 +55700,7 @@ var DataManagementList = ({
55533
55700
  }
55534
55701
  ),
55535
55702
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55536
- import_antd42.Modal,
55703
+ import_antd43.Modal,
55537
55704
  {
55538
55705
  getContainer: getOverlayContainer,
55539
55706
  title: "\u6279\u91CF\u5BA1\u6279",
@@ -55549,7 +55716,7 @@ var DataManagementList = ({
55549
55716
  " \u6761\u8BB0\u5F55"
55550
55717
  ] }),
55551
55718
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55552
- import_antd42.Segmented,
55719
+ import_antd43.Segmented,
55553
55720
  {
55554
55721
  block: true,
55555
55722
  value: batchApprovalAction,
@@ -55561,7 +55728,7 @@ var DataManagementList = ({
55561
55728
  }
55562
55729
  ),
55563
55730
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55564
- import_antd42.Input.TextArea,
55731
+ import_antd43.Input.TextArea,
55565
55732
  {
55566
55733
  value: batchApprovalComments,
55567
55734
  rows: 4,
@@ -55575,7 +55742,7 @@ var DataManagementList = ({
55575
55742
  }
55576
55743
  ),
55577
55744
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
55578
- import_antd42.Modal,
55745
+ import_antd43.Modal,
55579
55746
  {
55580
55747
  getContainer: getOverlayContainer,
55581
55748
  title: "\u5BFC\u5165\u6570\u636E",
@@ -55592,7 +55759,7 @@ var DataManagementList = ({
55592
55759
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mt-1 text-xs text-ant-color-text-secondary", children: "\u5148\u4E0B\u8F7D\u6A21\u677F\u586B\u5199\u6570\u636E\uFF0C\u518D\u4E0A\u4F20 Excel \u6587\u4EF6\u5BFC\u5165" })
55593
55760
  ] }),
55594
55761
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55595
- import_antd42.Button,
55762
+ import_antd43.Button,
55596
55763
  {
55597
55764
  icon: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_icons19.DownloadOutlined, {}),
55598
55765
  loading: templateDownloading,
@@ -55603,7 +55770,7 @@ var DataManagementList = ({
55603
55770
  )
55604
55771
  ] }),
55605
55772
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55606
- import_antd42.Upload.Dragger,
55773
+ import_antd43.Upload.Dragger,
55607
55774
  {
55608
55775
  accept: ".xlsx,.xls",
55609
55776
  maxCount: 1,
@@ -55618,7 +55785,7 @@ var DataManagementList = ({
55618
55785
  importPreview.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "mt-4", children: [
55619
55786
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mb-2 text-sm font-medium text-ant-color-text", children: "\u5BFC\u5165\u9884\u89C8" }),
55620
55787
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55621
- import_antd42.Table,
55788
+ import_antd43.Table,
55622
55789
  {
55623
55790
  size: "small",
55624
55791
  dataSource: importPreview,
@@ -55633,7 +55800,7 @@ var DataManagementList = ({
55633
55800
  }
55634
55801
  ),
55635
55802
  /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
55636
- import_antd42.Drawer,
55803
+ import_antd43.Drawer,
55637
55804
  {
55638
55805
  styles: { body: { padding: 24, overflow: "auto" } },
55639
55806
  getContainer: getOverlayContainer,
@@ -55643,7 +55810,7 @@ var DataManagementList = ({
55643
55810
  onClose: () => setRecordsOpen(false),
55644
55811
  children: [
55645
55812
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55646
- import_antd42.Segmented,
55813
+ import_antd43.Segmented,
55647
55814
  {
55648
55815
  value: recordTab,
55649
55816
  options: [
@@ -55654,7 +55821,7 @@ var DataManagementList = ({
55654
55821
  }
55655
55822
  ),
55656
55823
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55657
- import_antd42.Table,
55824
+ import_antd43.Table,
55658
55825
  {
55659
55826
  className: "mt-4",
55660
55827
  size: "small",
@@ -55666,7 +55833,7 @@ var DataManagementList = ({
55666
55833
  }
55667
55834
  ),
55668
55835
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55669
- import_antd42.Drawer,
55836
+ import_antd43.Drawer,
55670
55837
  {
55671
55838
  styles: { body: { padding: 0, overflow: "auto" } },
55672
55839
  getContainer: getOverlayContainer,
@@ -55688,13 +55855,14 @@ var DataManagementList = ({
55688
55855
  formUuid,
55689
55856
  formInstanceId: String(getRecordId(activeRecord)),
55690
55857
  api,
55858
+ components,
55691
55859
  inDrawer: true
55692
55860
  }
55693
- ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Empty, { description: "\u8BF7\u901A\u8FC7 detailRenderer \u63A5\u5165\u8BE6\u60C5\u6A21\u677F" })
55861
+ ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Empty, { description: "\u8BF7\u901A\u8FC7 detailRenderer \u63A5\u5165\u8BE6\u60C5\u6A21\u677F" })
55694
55862
  }
55695
55863
  ),
55696
55864
  /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
55697
- import_antd42.Drawer,
55865
+ import_antd43.Drawer,
55698
55866
  {
55699
55867
  styles: { body: { padding: 0, overflow: "auto" } },
55700
55868
  getContainer: getOverlayContainer,
@@ -55717,13 +55885,14 @@ var DataManagementList = ({
55717
55885
  appType,
55718
55886
  formUuid,
55719
55887
  api,
55888
+ components,
55720
55889
  inDrawer: true,
55721
55890
  onSubmitSuccess: () => {
55722
55891
  setSubmitOpen(false);
55723
55892
  loadData({ current: 1, pageSize });
55724
55893
  }
55725
55894
  }
55726
- ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd42.Empty, { description: "\u8BF7\u901A\u8FC7 submitRenderer \u63A5\u5165\u63D0\u4EA4\u6A21\u677F" })
55895
+ ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_antd43.Empty, { description: "\u8BF7\u901A\u8FC7 submitRenderer \u63A5\u5165\u63D0\u4EA4\u6A21\u677F" })
55727
55896
  }
55728
55897
  )
55729
55898
  ]