@gct-paas/excel 0.1.40-beta.26 → 0.1.40-beta.28

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.
Files changed (98) hide show
  1. package/dist/{BaseComponent-ClKLQPlb.js → BaseComponent-EzX32ZdY.js} +2 -2
  2. package/dist/{VueVideoPlayer-D7buOU3g.js → VueVideoPlayer-BuuQaqyI.js} +2 -2
  3. package/dist/{align-editor-BM2D1Kjn.js → align-editor-DWHHVeY1.js} +1 -1
  4. package/dist/{barcode-design-D8H2Bg9b.js → barcode-design-B0WcJSEI.js} +2 -2
  5. package/dist/base/index.es.js +246 -207
  6. package/dist/{diagonal-design-Ca9DW4R9.js → diagonal-design-D6uOJZmP.js} +2 -2
  7. package/dist/{dynamic-table-action-DPgnmGmu.js → dynamic-table-action-D-ub6KoK.js} +164 -232
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BUKMwvFf.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BCLE4joQ.js} +965 -540
  9. package/dist/{edit.utils-CXmmCnxE-ogCEEMW7.js → edit.utils-CXmmCnxE-CXdATd1V.js} +1 -1
  10. package/dist/excel.css +32 -23
  11. package/dist/{exceljs.min-BzSfyOeP.js → exceljs.min-BXhhaToT.js} +2 -2
  12. package/dist/{font-editor-tmQsLM86.js → font-editor-_HTdKFX6.js} +3 -3
  13. package/dist/{image-design-oRvqavKb.js → image-design-4Ee8rZqa.js} +2 -2
  14. package/dist/{index-DUrJEPXQ.js → index-7AmrbQlC.js} +2 -2
  15. package/dist/{index-C4v0H4FC.js → index-8ZnBcx1k.js} +3 -3
  16. package/dist/{index-CI051jjs.js → index-B4LuUmbW.js} +2 -2
  17. package/dist/{index-DS7TSyjT.js → index-BCCIwSnM.js} +1 -1
  18. package/dist/{index-IlasHrys.js → index-BHJxBByd.js} +1 -1
  19. package/dist/{index-3K7-At9-.js → index-BLf1U1A9.js} +3 -3
  20. package/dist/{index-cBtITF-e.js → index-BYq7x5n6.js} +1 -1
  21. package/dist/{index-CKyxWh-q.js → index-B_DPnVrC.js} +2 -2
  22. package/dist/{index-C8-IDtVr.js → index-Bbyb-owd.js} +2 -2
  23. package/dist/{index-1GK0_6yB.js → index-BlMiHVOC.js} +1 -1
  24. package/dist/{index-C4txo2fg.js → index-BnOOLcX1.js} +2 -2
  25. package/dist/{index-B3_1mcU-.js → index-Bnt54Sc6.js} +2 -2
  26. package/dist/{index-CHTrEvG1.js → index-CH_C9ijO.js} +2 -2
  27. package/dist/{index-Coz70NtU.js → index-CMdXdyvs.js} +2 -2
  28. package/dist/{index-DAuoR0-c.js → index-CQ0_Kx1_.js} +2 -2
  29. package/dist/{index-zJwCoxly.js → index-Cb7Fh_E2.js} +2 -2
  30. package/dist/{index-DvXsENIM.js → index-CtVFTmHZ.js} +3 -3
  31. package/dist/{index-BVJENFMM.js → index-D3KiKYMR.js} +1 -1
  32. package/dist/{index-CMKlsuD6.js → index-D87CVHA-.js} +2 -2
  33. package/dist/{index-D0PRNLPd.js → index-DM0OEvdI.js} +1 -1
  34. package/dist/{index-DLRVgGXr.js → index-DPTR_QJn.js} +1 -1
  35. package/dist/{index-sEcLP8dk.js → index-DVzaxa5k.js} +2 -2
  36. package/dist/{index-B_CDhpav.js → index-DcXbL-0o.js} +4 -4
  37. package/dist/{index-nhC91wtN.js → index-Dn0qfALy.js} +3 -3
  38. package/dist/{index-AU7rrK9g.js → index-Dnz3YPDV.js} +2 -2
  39. package/dist/{index-BMUAwQmf.js → index-DoWp9uDw.js} +2 -2
  40. package/dist/{index-61ZlwI2f.js → index-Dstr-PNj.js} +2 -2
  41. package/dist/{index-eyK5xPX3.js → index-DzqaKW6e.js} +2 -2
  42. package/dist/{index-D1KO6u1Z.js → index-GoAXo3fT.js} +227 -184
  43. package/dist/{index-ZxBcNN-g.js → index-Jy2tofdo.js} +3 -3
  44. package/dist/{index-ZHmmTlG-.js → index-KRo2-iQv.js} +3 -3
  45. package/dist/{index-CcC1xcOH.js → index-KuhYPy5i.js} +1 -1
  46. package/dist/{index-C5Bdrx4J.js → index-YlEOHde0.js} +1 -1
  47. package/dist/{index-DbuDWYlA.js → index-toqlO_-B.js} +1 -1
  48. package/dist/index.es.js +2 -2
  49. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DhmtOtIs.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DAAF0eOB.js} +1 -1
  50. package/dist/{pagination-design-Bh5sF0VU.js → pagination-design-DANnqQdI.js} +2 -2
  51. package/dist/paper-widget-design-BrE7Bb4V.js +4 -0
  52. package/dist/{print-runtime-instance-19OA8Ubq.js → print-runtime-instance-PabaORE2.js} +1 -1
  53. package/dist/{print-snapshot-renderer-D5OUO3Sx.js → print-snapshot-renderer-DQr2G7Hv.js} +3 -3
  54. package/dist/{qrcode-design-CkwIXxb_.js → qrcode-design-BEA1JchI.js} +1 -1
  55. package/dist/{revo-grid.entry-CJ1rhBKH.js → revo-grid.entry-Bj-4xHie.js} +1 -1
  56. package/dist/{revogr-attribution_7.entry-Ba9MJ5p9.js → revogr-attribution_7.entry-NvaozwYj.js} +3 -3
  57. package/dist/{revogr-clipboard_3.entry--neB-vq8.js → revogr-clipboard_3.entry-CkRbECsx.js} +2 -2
  58. package/dist/{revogr-data_4.entry-BcmetTvO.js → revogr-data_4.entry-Dbbd8Mpz.js} +2 -2
  59. package/dist/{revogr-filter-panel.entry-jp8iD-xn.js → revogr-filter-panel.entry-lcMbXUNb.js} +1 -1
  60. package/dist/seal-design-CX-ZxOn3.js +4 -0
  61. package/dist/{serialnumber-design-LzvbjC79.js → serialnumber-design-B608oYcy.js} +1 -1
  62. package/dist/shared/index.es.js +25 -25
  63. package/dist/{single-field-drop-CEbaTw0-.js → single-field-drop-CkUP3H7u.js} +2 -2
  64. package/dist/{size-editor-CaFqQHeU.js → size-editor-Bl-lUcdU.js} +1 -1
  65. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +3 -0
  66. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
  67. package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
  68. package/dist/src/nocode-base/src/interface/transform.d.ts +3 -0
  69. package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
  70. package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +2 -0
  71. package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
  72. package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +6 -2
  73. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +3 -0
  74. package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +2 -0
  75. package/dist/src/nocode-base/src/types/common/base.d.ts +4 -2
  76. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +4 -3
  77. package/dist/src/online-form/src/views/designer/types/index.d.ts +3 -1
  78. package/dist/src/shared/enum/field-type.d.ts +1 -1
  79. package/dist/{sub-table-factory-_1c-Dsu_.js → sub-table-factory-GzYKYE9t.js} +2 -2
  80. package/dist/{text-design-D5QIq5aE.js → text-design-V3TQuLps.js} +2 -2
  81. package/dist/{throttle-Cpk1LoGk-BMfNVrvD.js → throttle-Cpk1LoGk-CFMeLNb-.js} +1 -1
  82. package/dist/{timediff-design-B9m-zonK.js → timediff-design-DRum3zZt.js} +1 -1
  83. package/dist/{trace-like-wrapper-C_NJVd6e.js → trace-like-wrapper-D1Gzs1mF.js} +2 -2
  84. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BpZAIeLC.js → value-editor.vue_vue_type_style_index_0_lang-DoOuCca5.js} +2 -2
  85. package/dist/{widget-barcode-CDMJo5uk.js → widget-barcode-CNrl2NxY.js} +4 -4
  86. package/dist/{widget-diagonal-D9AC_qNv.js → widget-diagonal-CqjD1SwW.js} +3 -3
  87. package/dist/{widget-image-DMiIjg8J.js → widget-image-Xjl5W2Fp.js} +4 -4
  88. package/dist/{widget-line-BwSO-GKu.js → widget-line-BUVVnwrU.js} +2 -2
  89. package/dist/{widget-pagination-Buo5s7Xq.js → widget-pagination-DjMXWioI.js} +5 -5
  90. package/dist/{widget-power-D8HtIVO2.js → widget-power-Dck9H8a9.js} +3 -3
  91. package/dist/{widget-qrcode-XEY9m1Dj.js → widget-qrcode-Cu8BwE24.js} +3 -3
  92. package/dist/{widget-rangelimit-C9j1s6Md.js → widget-rangelimit-DLxebCKf.js} +3 -3
  93. package/dist/{widget-serialnumber-B_IA4_De.js → widget-serialnumber-DecFCGS0.js} +1 -1
  94. package/dist/{widget-text-Bp0FEZa1.js → widget-text-DV3yKKsx.js} +5 -5
  95. package/dist/{widget-timediff-BlYRlDYp.js → widget-timediff-BIwewJ39.js} +2 -2
  96. package/package.json +2 -2
  97. package/dist/paper-widget-design-DZrP96jp.js +0 -4
  98. package/dist/seal-design-DX7PP65G.js +0 -4
@@ -1,13 +1,13 @@
1
1
  import * as Vue from "vue";
2
2
  import { createVNode, computed, unref, ref as ref$1, defineComponent, onMounted, resolveComponent, openBlock, createElementBlock, withCtx, watch, toRaw, inject, reactive, createBlock, Fragment, renderList, createTextVNode, toDisplayString as toDisplayString$1, createCommentVNode, createElementVNode, normalizeClass, h, normalizeStyle, watchEffect, renderSlot, shallowRef, defineAsyncComponent, resolveDynamicComponent, mergeProps, normalizeProps, guardReactiveProps, onUnmounted, Text, nextTick, onBeforeUnmount, withModifiers, withDirectives, vShow, Teleport, getCurrentScope, onScopeDispose, getCurrentInstance as getCurrentInstance$1, withKeys, vModelText, isRef, provide, isVNode as isVNode$1, createApp, render, TransitionGroup, toRefs, useAttrs, createSlots, useCssVars, onBeforeMount, toRef, mergeDefaults, toHandlers, Transition, useModel, mergeModels as mergeModels$1, onErrorCaptured, markRaw } from "vue";
3
- import { g as getAllDataProfiles, i as isDataTableProfile, a as getProfile, b as isBusinessSubTableProfile, c as getProfileByTableType, r as resolveCreateTargetByTableType, d as getBusinessProfileByRefModelType, S as SUB_TABLE_PANEL_TYPE_NAME, e as expandAutofillTemplates, f as resolveAutofillToField, h as SubTableType, j as getAllBusinessRefModelTypes, D as DateObjectContext, k as isBlank$1, F as FIELD_TYPE, l as isSameFieldValue$1, m as runDateObjectHandler, n as companionIdKey, o as companionLabelKey, p as api, I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, P as PaginationFormat, q as PaperWidgeType, B as BwipCodeType, L as LineType, t as PageSizeEnum, O as Orientation, v as src, T as TRACE_FIELD_TYPES, x as BUSINESS_FIELD_TYPES, y as resolveFieldRenderComponent, C as ComponentTypeEnum, z as parse$2, A as estraverse, E as Syntax, G as isDynamicCreateTarget, H as CellType, J as isDynamicCellSubTable, K as ParamModelTypeEnum, M as FieldTypeToJs, N as CreateType, Q as uuid2, R as useModal, U as requireEstraverse, V as commonjsGlobal, W as getDefaultExportFromCjs, X as PaperWidgeValueType, Y as onlineFormMasterModelTypeEnum, Z as WAREHOUSE_FIELD_TYPES, _ as UniqueConstraintType, $ as FieldDefaultValueTypeEnum, a0 as FormTypeEnum, a1 as mitt, a2 as isDateObjectField, a3 as PlatformEnum, a4 as LabelPosition, a5 as BooleanShowMode, a6 as SignatureImageDirectionEnum, a7 as FallbackSignTypeEnum, a8 as SignatureNumberTypeEnum, a9 as SignatureTimeTypeEnum, aa as SignShowTypeEnum, ab as SignatureTypeEnum, ac as useNamespace, ad as _export_sfc, ae as normalizeFieldType, af as PaperSizeMap, ag as getFieldMain, ah as buildUUID, ai as FieldIconMap, aj as BigNumber, ak as FieldSysVarDefaultValueEnum, al as CellWidgetViewState, am as DiagonalDirection, an as WidgetImageSizeMode, ao as LineDirection, ap as TimeDiffFormat, aq as DiagonalVertex, ar as resolveDiagonalVertex, as as getThemeColorByTableType, at as ViewTypeEnum, au as isDynamicSubTablePanelType, av as isFixedSubTablePanelType, aw as ExpressionModeEnum, ax as ReturnTypeEnum, ay as ExpressionTabEnum, az as RangeValidateMode, aA as RangeCompareOp, aB as getExclusiveBusinessTypeTokens, aC as getSubTableTypeByRefModelType, aD as findFieldMain, aE as DecimalDisplayMode$1, aF as ImageDisplayModeEnum, aG as FormDesignEnum, aH as BASIC_FIELD_TYPES, aI as buildDeviceFilterQuery, aJ as refUtils, aK as getAllTableProfiles, aL as getAugmentedNamespace, aM as transformUtils, aN as EmptySymbol, aO as ASSIGNMENTSTRATEGY_ENUM, aP as Dependency_ENUM, aQ as EntityModelCategoryEnum, aR as resolveLotDisplayLabel, aS as CheckDsTypeEnum, aT as DeviceLink, aU as DeviceParamsTypeTitle, aV as AITooltips, aW as DenoiseMethodOptions, aX as BinarizeMethodOptions, aY as JoinModelTypeEum, aZ as sqlUtils, a_ as DateFormat, a$ as withRequestCache, b0 as LOT_CONTAINER_ROLE, b1 as buildLotSnListQuery, b2 as renderUtils, b3 as resolveLotRecordByValue, b4 as materialCheck, b5 as getLotLockedReason, b6 as validateReinspectionDate, b7 as buildMaterialLotListQuery, b8 as ProductionIdentificationTypeEnum, b9 as BindCmpStyleEnum, ba as getParseRuleInfo, bb as getParseRuleValue, bc as normalizeRefLoaderResult, bd as STOCKTAKE_DIMENSION, be as F, bf as resolveStocktakeSelectApi, bg as normalizeProductionContainerOptions, bh as buildProductionLotListQuery, bi as buildInspectionLotListQuery, bj as DEVICE_GROUP_QUERY_KEY, bk as getRowId, bl as findRuntimeTableRow, bm as RenderModeEnum, bn as findRuntimeParentRow, bo as useOnlineFormTransformField2Component, bp as FormulaRuleFieldKeyEnum, bq as formulaRuleFieldDict, br as resolveDesignPanelFeatures, bs as BIZ_TABLE_CONFIG_SEED_TYPES, bt as STOCKTAKE_DIMENSION_OPTIONS, bu as isRepeatingSubTablePanelType, bv as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BUKMwvFf.js";
3
+ import { g as getAllDataProfiles, i as isDataTableProfile, a as getProfile, b as isBusinessSubTableProfile, c as getProfileByTableType, r as resolveCreateTargetByTableType, d as getBusinessProfileByRefModelType, S as SUB_TABLE_PANEL_TYPE_NAME, e as expandAutofillTemplates, f as resolveAutofillToField, h as SubTableType, j as getAllBusinessRefModelTypes, D as DateObjectContext, k as isBlank$1, F as FIELD_TYPE, l as isSameFieldValue$1, m as runDateObjectHandler, n as companionIdKey, o as companionLabelKey, p as api, I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, P as PaginationFormat, q as PaperWidgeType, B as BwipCodeType, L as LineType, t as PageSizeEnum, O as Orientation, v as src, T as TRACE_FIELD_TYPES, x as BUSINESS_FIELD_TYPES, y as resolveFieldRenderComponent, C as ComponentTypeEnum, z as parse$2, A as estraverse, E as Syntax, G as isDynamicCreateTarget, H as CellType, J as isDynamicCellSubTable, K as ParamModelTypeEnum, M as getBusinessFieldKey, N as FieldTypeToJs, Q as CreateType, R as uuid2, U as useModal, V as requireEstraverse, W as commonjsGlobal, X as getDefaultExportFromCjs, Y as PaperWidgeValueType, Z as onlineFormMasterModelTypeEnum, _ as WAREHOUSE_FIELD_TYPES, $ as UniqueConstraintType, a0 as FieldDefaultValueTypeEnum, a1 as FormTypeEnum, a2 as mitt, a3 as isDateObjectField, a4 as PlatformEnum, a5 as LabelPosition, a6 as BooleanShowMode, a7 as SignatureImageDirectionEnum, a8 as FallbackSignTypeEnum, a9 as SignatureNumberTypeEnum, aa as SignatureTimeTypeEnum, ab as SignShowTypeEnum, ac as SignatureTypeEnum, ad as useNamespace, ae as _export_sfc, af as normalizeFieldType, ag as PaperSizeMap, ah as getFieldMain, ai as buildUUID, aj as FieldIconMap, ak as BigNumber, al as FieldSysVarDefaultValueEnum, am as CellWidgetViewState, an as DiagonalDirection, ao as WidgetImageSizeMode, ap as LineDirection, aq as TimeDiffFormat, ar as DiagonalVertex, as as resolveDiagonalVertex, at as getThemeColorByTableType, au as ViewTypeEnum, av as isDynamicSubTablePanelType, aw as isFixedSubTablePanelType, ax as ExpressionModeEnum, ay as ReturnTypeEnum, az as ExpressionTabEnum, aA as RangeValidateMode, aB as RangeCompareOp, aC as getExclusiveBusinessTypeTokens, aD as getSubTableTypeByRefModelType, aE as findFieldMain, aF as DecimalDisplayMode$1, aG as ImageDisplayModeEnum, aH as FormDesignEnum, aI as BASIC_FIELD_TYPES, aJ as buildDeviceFilterQuery, aK as refUtils, aL as getAllTableProfiles, aM as getAugmentedNamespace, aN as transformUtils, aO as EmptySymbol, aP as ASSIGNMENTSTRATEGY_ENUM, aQ as Dependency_ENUM, aR as EntityModelCategoryEnum, aS as resolveLotDisplayLabel, aT as CheckDsTypeEnum, aU as DeviceLink, aV as DeviceParamsTypeTitle, aW as AITooltips, aX as DenoiseMethodOptions, aY as BinarizeMethodOptions, aZ as JoinModelTypeEum, a_ as sqlUtils, a$ as DateFormat, b0 as withRequestCache, b1 as LOT_CONTAINER_ROLE, b2 as buildLotSnListQuery, b3 as renderUtils, b4 as resolveLotRecordByValue, b5 as materialCheck, b6 as getLotLockedReason, b7 as validateReinspectionDate, b8 as buildMaterialLotListQuery, b9 as ProductionIdentificationTypeEnum, ba as BindCmpStyleEnum, bb as getParseRuleInfo, bc as getParseRuleValue, bd as normalizeRefLoaderResult, be as STOCKTAKE_DIMENSION, bf as F, bg as resolveStocktakeSelectApi, bh as normalizeProductionContainerOptions, bi as buildProductionLotListQuery, bj as buildInspectionLotListQuery, bk as DEVICE_GROUP_QUERY_KEY, bl as parseRuntimeFieldPath, bm as getRowId, bn as findRuntimeTableRow, bo as RenderModeEnum, bp as findRuntimeParentRow, bq as useOnlineFormTransformField2Component, br as FormulaRuleFieldKeyEnum, bs as formulaRuleFieldDict, bt as resolveDesignPanelFeatures, bu as BIZ_TABLE_CONFIG_SEED_TYPES, bv as STOCKTAKE_DIMENSION_OPTIONS, bw as isRepeatingSubTablePanelType, bx as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BCLE4joQ.js";
4
4
  import { range as range$1, cloneDeep, get as get$4, merge, isEmpty, zip, pick, omit, has, debounce, isNil, times, clone as clone$3, differenceBy, last, mapValues, set as set$2, hasIn, isEqual } from "lodash-es";
5
5
  import dayjs from "dayjs";
6
6
  import { useFormBaseModal, DataSourceChangeEvent, getBuiltinContextFields, DataSources, FieldFills, closeAllFormBaseModal, FormBaseModalPlugin } from "@gct-paas/form-base";
7
7
  import * as Antd from "ant-design-vue";
8
8
  import { message, Modal, Alert, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, Input, Tree, Transfer, Select, Tag, Form, AutoComplete, TimePicker, DatePicker, Textarea, TreeSelect, CheckboxGroup, Checkbox, Radio, RadioGroup } from "ant-design-vue";
9
- import { b as bindFormulaCacheInvalidation, c as currentParamsConfig, M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, g as getBusinessFieldKey, d as MULTI_SHEET_SCHEMA_VERSION, n as normalizeGridColumnWidth, e as getParseFormulaVarInfos, f as createRuntimeDocumentV2, h as clampSealPosition, i as normalizeSealDiameter, j as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, k as isCellAutoLineBreak, B as BorderTD, u as useFormModel, l as useFormTmplConfig, m as findFieldProfile, o as normalizeHistoricalBusinessRow, p as DeviceLinkTmplUtil, q as normalizeAIOcrTmpl, r as useWidgetStaticAttrs, s as useRuntimeInstanceServices, t as setSelectValidatorId, v as setSelectAnnotationId, w as useRuntimeRowState, x as getObjectBomMaterialLotQuery, y as buildObjectLotExtraQuery, z as resolveObjectFieldKeys, F as FormModelController, A as MaterialConsumptionPatternEnum, C as validateObjectBomForScan, E as resolveObjectBomEntry, G as runWithFillProduct, H as useNocodeFormWidget, I as applyConsumeObjectTraceChange, J as getObjectBomProductQuery, K as EMPTY_PRODUCT_VERSION_ID, L as normalizeHistoricalAutofillRow, N as readSealValue, O as isSealStamped, P as stampSealValue, Q as isValidSealValue, R as clearSealValue, S as parseRuntimeFieldPath, T as NCB_PROVIDE, U as calculateFormula, V as useStyles, W as useDependency, X as useFieldPresentation, Y as useRuntimeEditorFlusher, Z as RuntimeFormStateStore, _ as createRuntimeInstanceContext, $ as RuntimeInstanceRegistry, a0 as ScanParamType, a1 as RequiredQtyCalcRule, a2 as MBRender, a3 as MCRender, a4 as moveSealValue, a5 as DocumentPaper, a6 as DynamicTableAction, a7 as _sfc_main$6C } from "./dynamic-table-action-DPgnmGmu.js";
10
- import { S as SEARCH_SEVICE, u as useWebUpload, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6B, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DhmtOtIs.js";
9
+ import { b as bindFormulaCacheInvalidation, c as currentParamsConfig, M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, d as MULTI_SHEET_SCHEMA_VERSION, n as normalizeGridColumnWidth, g as getParseFormulaVarInfos, e as createRuntimeDocumentV2, f as clampSealPosition, h as normalizeSealDiameter, i as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, j as isCellAutoLineBreak, B as BorderTD, u as useFormModel, k as useFormTmplConfig, l as findFieldProfile, m as normalizeHistoricalBusinessRow, o as DeviceLinkTmplUtil, p as normalizeAIOcrTmpl, q as useWidgetStaticAttrs, r as useRuntimeInstanceServices, s as setSelectValidatorId, t as setSelectAnnotationId, v as useRuntimeRowState, w as getObjectBomMaterialLotQuery, x as buildObjectLotExtraQuery, y as resolveObjectFieldKeys, F as FormModelController, z as MaterialConsumptionPatternEnum, A as validateObjectBomForScan, C as resolveObjectBomEntry, E as runWithFillProduct, G as useNocodeFormWidget, H as applyConsumeObjectTraceChange, I as getObjectBomProductQuery, J as EMPTY_PRODUCT_VERSION_ID, K as normalizeHistoricalAutofillRow, L as readSealValue, N as isSealStamped, O as stampSealValue, P as isValidSealValue, Q as clearSealValue, R as NCB_PROVIDE, S as calculateFormula, T as useStyles, U as useDependency, V as useFieldPresentation, W as useRuntimeEditorFlusher, X as RuntimeFormStateStore, Y as createRuntimeInstanceContext, Z as RuntimeInstanceRegistry, _ as ScanParamType, $ as RequiredQtyCalcRule, a0 as MBRender, a1 as MCRender, a2 as moveSealValue, a3 as DocumentPaper, a4 as DynamicTableAction, a5 as _sfc_main$6C } from "./dynamic-table-action-D-ub6KoK.js";
10
+ import { S as SEARCH_SEVICE, u as useWebUpload, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6B, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DAAF0eOB.js";
11
11
  import { HttpUtil } from "@gct-paas/api";
12
12
  import { Tooltip, Grid, Table, Column, Icon as Icon$2, Edit, Validator, VxeGrid } from "vxe-table";
13
13
  import { useModal as useModal$1, t as t$2 } from "@gct-paas/core";
@@ -2016,7 +2016,7 @@ function openWindow(url, opt) {
2016
2016
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
2017
2017
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
2018
2018
  async function createWorkbook() {
2019
- const ExcelJs = (await import("./exceljs.min-BzSfyOeP.js").then((n) => n.e)).default;
2019
+ const ExcelJs = (await import("./exceljs.min-BXhhaToT.js").then((n) => n.e)).default;
2020
2020
  return new ExcelJs.Workbook();
2021
2021
  }
2022
2022
  class XlsxParser {
@@ -2387,39 +2387,39 @@ class XlsxParser {
2387
2387
  }
2388
2388
  function asyncImportClassModules() {
2389
2389
  const modules = /* @__PURE__ */ Object.assign({
2390
- "./_field_/auto-complete/index.ts": () => import("./index-ZxBcNN-g.js").then((m) => m["default"]),
2391
- "./_field_/datepicker/index.ts": () => import("./index-B3_1mcU-.js").then((m) => m["default"]),
2392
- "./_field_/datetimepicker/index.ts": () => import("./index-DAuoR0-c.js").then((m) => m["default"]),
2393
- "./_field_/department/index.ts": () => import("./index-Coz70NtU.js").then((m) => m["default"]),
2394
- "./_field_/enum-select/index.ts": () => import("./index-C4v0H4FC.js").then((m) => m["default"]),
2395
- "./_field_/input/index.ts": () => import("./index-CHTrEvG1.js").then((m) => m["default"]),
2396
- "./_field_/inputdouble/index.ts": () => import("./index-C4txo2fg.js").then((m) => m["default"]),
2397
- "./_field_/inputnumber/index.ts": () => import("./index-61ZlwI2f.js").then((m) => m["default"]),
2398
- "./_field_/rdo-select/index.ts": () => import("./index-DvXsENIM.js").then((m) => m["default"]),
2399
- "./_field_/seal/index.ts": () => import("./index-nhC91wtN.js").then((m) => m["default"]),
2400
- "./_field_/select/index.ts": () => import("./index-ZHmmTlG-.js").then((m) => m["default"]),
2401
- "./_field_/sign/index.ts": () => import("./index-CI051jjs.js").then((m) => m["default"]),
2402
- "./_field_/switch/index.ts": () => import("./index-B_CDhpav.js").then((m) => m["default"]),
2403
- "./_field_/textarea/index.ts": () => import("./index-AU7rrK9g.js").then((m) => m["default"]),
2404
- "./_field_/timepicker/index.ts": () => import("./index-DUrJEPXQ.js").then((m) => m["default"]),
2405
- "./_field_/upload-file/index.ts": () => import("./index-BMUAwQmf.js").then((m) => m["default"]),
2406
- "./_field_/upload-image/index.ts": () => import("./index-CKyxWh-q.js").then((m) => m["default"]),
2407
- "./_field_/userpicker/index.ts": () => import("./index-sEcLP8dk.js").then((m) => m["default"]),
2408
- "./_widget_/barcode/index.ts": () => import("./index-DS7TSyjT.js").then((m) => m["default"]),
2409
- "./_widget_/combine-fields/index.ts": () => import("./index-C8-IDtVr.js").then((m) => m["default"]),
2410
- "./_widget_/diagonal/index.ts": () => import("./index-eyK5xPX3.js").then((m) => m["default"]),
2411
- "./_widget_/dyn-value/index.ts": () => import("./index-CMKlsuD6.js").then((m) => m["default"]),
2412
- "./_widget_/image/index.ts": () => import("./index-BVJENFMM.js").then((m) => m["default"]),
2413
- "./_widget_/line/index.ts": () => import("./index-1GK0_6yB.js").then((m) => m["default"]),
2414
- "./_widget_/power/index.ts": () => import("./index-DbuDWYlA.js").then((m) => m["default"]),
2415
- "./_widget_/qrcode/index.ts": () => import("./index-D0PRNLPd.js").then((m) => m["default"]),
2416
- "./_widget_/ro/index.ts": () => import("./index-C5Bdrx4J.js").then((m) => m["default"]),
2417
- "./_widget_/serialnumber/index.ts": () => import("./index-IlasHrys.js").then((m) => m["default"]),
2418
- "./_widget_/sub-table/index.ts": () => import("./index-cBtITF-e.js").then((m) => m["default"]),
2419
- "./_widget_/timediff/index.ts": () => import("./index-CcC1xcOH.js").then((m) => m["default"]),
2420
- "./paper/index.ts": () => import("./index-DLRVgGXr.js").then((m) => m["default"]),
2421
- "./td/index.ts": () => import("./index-3K7-At9-.js").then((m) => m["default"]),
2422
- "./tr/index.ts": () => import("./index-zJwCoxly.js").then((m) => m["default"])
2390
+ "./_field_/auto-complete/index.ts": () => import("./index-Jy2tofdo.js").then((m) => m["default"]),
2391
+ "./_field_/datepicker/index.ts": () => import("./index-Bnt54Sc6.js").then((m) => m["default"]),
2392
+ "./_field_/datetimepicker/index.ts": () => import("./index-CQ0_Kx1_.js").then((m) => m["default"]),
2393
+ "./_field_/department/index.ts": () => import("./index-CMdXdyvs.js").then((m) => m["default"]),
2394
+ "./_field_/enum-select/index.ts": () => import("./index-8ZnBcx1k.js").then((m) => m["default"]),
2395
+ "./_field_/input/index.ts": () => import("./index-CH_C9ijO.js").then((m) => m["default"]),
2396
+ "./_field_/inputdouble/index.ts": () => import("./index-BnOOLcX1.js").then((m) => m["default"]),
2397
+ "./_field_/inputnumber/index.ts": () => import("./index-Dstr-PNj.js").then((m) => m["default"]),
2398
+ "./_field_/rdo-select/index.ts": () => import("./index-CtVFTmHZ.js").then((m) => m["default"]),
2399
+ "./_field_/seal/index.ts": () => import("./index-Dn0qfALy.js").then((m) => m["default"]),
2400
+ "./_field_/select/index.ts": () => import("./index-KRo2-iQv.js").then((m) => m["default"]),
2401
+ "./_field_/sign/index.ts": () => import("./index-B4LuUmbW.js").then((m) => m["default"]),
2402
+ "./_field_/switch/index.ts": () => import("./index-DcXbL-0o.js").then((m) => m["default"]),
2403
+ "./_field_/textarea/index.ts": () => import("./index-Dnz3YPDV.js").then((m) => m["default"]),
2404
+ "./_field_/timepicker/index.ts": () => import("./index-7AmrbQlC.js").then((m) => m["default"]),
2405
+ "./_field_/upload-file/index.ts": () => import("./index-DoWp9uDw.js").then((m) => m["default"]),
2406
+ "./_field_/upload-image/index.ts": () => import("./index-B_DPnVrC.js").then((m) => m["default"]),
2407
+ "./_field_/userpicker/index.ts": () => import("./index-DVzaxa5k.js").then((m) => m["default"]),
2408
+ "./_widget_/barcode/index.ts": () => import("./index-BCCIwSnM.js").then((m) => m["default"]),
2409
+ "./_widget_/combine-fields/index.ts": () => import("./index-Bbyb-owd.js").then((m) => m["default"]),
2410
+ "./_widget_/diagonal/index.ts": () => import("./index-DzqaKW6e.js").then((m) => m["default"]),
2411
+ "./_widget_/dyn-value/index.ts": () => import("./index-D87CVHA-.js").then((m) => m["default"]),
2412
+ "./_widget_/image/index.ts": () => import("./index-D3KiKYMR.js").then((m) => m["default"]),
2413
+ "./_widget_/line/index.ts": () => import("./index-BlMiHVOC.js").then((m) => m["default"]),
2414
+ "./_widget_/power/index.ts": () => import("./index-toqlO_-B.js").then((m) => m["default"]),
2415
+ "./_widget_/qrcode/index.ts": () => import("./index-DM0OEvdI.js").then((m) => m["default"]),
2416
+ "./_widget_/ro/index.ts": () => import("./index-YlEOHde0.js").then((m) => m["default"]),
2417
+ "./_widget_/serialnumber/index.ts": () => import("./index-BHJxBByd.js").then((m) => m["default"]),
2418
+ "./_widget_/sub-table/index.ts": () => import("./index-BYq7x5n6.js").then((m) => m["default"]),
2419
+ "./_widget_/timediff/index.ts": () => import("./index-KuhYPy5i.js").then((m) => m["default"]),
2420
+ "./paper/index.ts": () => import("./index-DPTR_QJn.js").then((m) => m["default"]),
2421
+ "./td/index.ts": () => import("./index-BLf1U1A9.js").then((m) => m["default"]),
2422
+ "./tr/index.ts": () => import("./index-Cb7Fh_E2.js").then((m) => m["default"])
2423
2423
  });
2424
2424
  return modules;
2425
2425
  }
@@ -9357,7 +9357,6 @@ const uploadType = {
9357
9357
  };
9358
9358
  function handleFrontFieldType(data) {
9359
9359
  if (data.type === FIELD_TYPE.SEAL) {
9360
- data.type = FIELD_TYPE.TEXT;
9361
9360
  data.bizType = FIELD_TYPE.SEAL;
9362
9361
  }
9363
9362
  if (data.type === FIELD_TYPE.WAREHOUSE_IN_OUT) {
@@ -11927,6 +11926,7 @@ const hasSelection = computed(() => {
11927
11926
  return selection$1.t !== 0;
11928
11927
  });
11929
11928
  const copyAndNewCellCache = ref$1({});
11929
+ let pendingCut;
11930
11930
  const gridLineVisible = ref$1(true);
11931
11931
  const panelData = reactive({
11932
11932
  type: PanelType.Paper,
@@ -12903,7 +12903,8 @@ function useSpreadSheet() {
12903
12903
  });
12904
12904
  }
12905
12905
  async function xlsxToJson(file, payload) {
12906
- const padding = paper$1.value.padding;
12906
+ const { paperSize, width, height, orientation } = paper$1.value;
12907
+ const padding = cloneDeep(paper$1.value.padding);
12907
12908
  const { w, h: paperHeight } = unref(paperLayout);
12908
12909
  const size = [w - padding.l - padding.r + "mm", paperHeight - padding.t - padding.b + "mm"];
12909
12910
  const { modelMetaMap: modelMetaMap2, refreshModelFields: refreshModelFields2 } = useModelFields();
@@ -12911,7 +12912,16 @@ function useSpreadSheet() {
12911
12912
  const imported = await XlsxParser.xlsx2Sheets(file, payload?.withFields ? keyList : [], {
12912
12913
  withFields: !!payload?.withFields
12913
12914
  });
12914
- imported.sheets.forEach((sheet) => XlsxParser.contentFitToPaper(sheet.paper, size));
12915
+ imported.sheets.forEach((sheet) => {
12916
+ Object.assign(sheet.paper, {
12917
+ paperSize,
12918
+ width,
12919
+ height,
12920
+ orientation,
12921
+ padding: cloneDeep(padding)
12922
+ });
12923
+ XlsxParser.contentFitToPaper(sheet.paper, size);
12924
+ });
12915
12925
  const confirmed = await new Promise((resolve) => {
12916
12926
  Modal.confirm({
12917
12927
  title: `确认替换为 ${imported.sheets.length} 个工作表`,
@@ -13322,7 +13332,7 @@ function useSpreadSheet() {
13322
13332
  );
13323
13333
  const seal = {
13324
13334
  id: uuid2(16),
13325
- fieldMeta: { ...data, fieldType: FIELD_TYPE.TEXT, bizType: FIELD_TYPE.SEAL },
13335
+ fieldMeta: { ...data },
13326
13336
  fieldWidget,
13327
13337
  layout
13328
13338
  };
@@ -13541,24 +13551,7 @@ function useSpreadSheet() {
13541
13551
  });
13542
13552
  return placedFieldKeys.value.has(fieldKey);
13543
13553
  }
13544
- function getAllSubTableRanges() {
13545
- const subTableRanges = [];
13546
- if (paper$1.value.dynamicTables?.length) {
13547
- subTableRanges.push(...paper$1.value.dynamicTables.map((item) => item.range));
13548
- }
13549
- if (paper$1.value.fixedTables?.length) {
13550
- subTableRanges.push(...paper$1.value.fixedTables.map((item) => item.range));
13551
- }
13552
- return subTableRanges;
13553
- }
13554
- function isInSubTable(range2) {
13555
- const subTableRanges = getAllSubTableRanges();
13556
- return subTableRanges.some((item) => isIn(range2, item));
13557
- }
13558
- function calcSelectionPaperData(range2, excludeOpts = {
13559
- /** 排除子表字段信息 */
13560
- noSubFields: true
13561
- }) {
13554
+ function calcSelectionPaperData(range2) {
13562
13555
  const { l, r, t: t2, b } = range2;
13563
13556
  const cells = [];
13564
13557
  for (let rowIndex = t2; rowIndex <= b; rowIndex++) {
@@ -13566,17 +13559,7 @@ function useSpreadSheet() {
13566
13559
  const copyRow = [];
13567
13560
  for (let colIndex = l; colIndex <= r; colIndex++) {
13568
13561
  const cell = row[colIndex - 1];
13569
- const cloneCell = cloneDeep(cell);
13570
- if (excludeOpts.noSubFields) {
13571
- if (cloneCell.type === CellType.Field && cloneCell.fieldMeta?.model !== doc.value.modelKey) {
13572
- clearCellConfig(cloneCell);
13573
- } else if (cloneCell.multiFields && cloneCell.multiFieldsContent?.some(
13574
- (item) => item.fieldMeta && item.fieldMeta.model !== doc.value.modelKey
13575
- )) {
13576
- clearCellConfig(cloneCell);
13577
- }
13578
- }
13579
- copyRow.push(cloneCell);
13562
+ copyRow.push(cloneDeep(cell));
13580
13563
  }
13581
13564
  cells.push(copyRow);
13582
13565
  }
@@ -13610,18 +13593,57 @@ function useSpreadSheet() {
13610
13593
  const rangesBStr = rangesB.filter((item) => isValidMergeCell(item)).sort(sortCompare).map((item) => `${item.t}-${item.l}-${item.b}-${item.r}`).join(",");
13611
13594
  return rangesAStr === rangesBStr;
13612
13595
  }
13596
+ function hasClipboardFields(cells) {
13597
+ return cells.some(
13598
+ (row) => row.some(
13599
+ (cell) => [cell, ...cell.multiFieldsContent ?? []].some(
13600
+ (item) => item.type === CellType.Field || !!item.fieldMeta || !!item.fieldWidget
13601
+ )
13602
+ )
13603
+ );
13604
+ }
13605
+ function getClipboardFieldCounts(cells) {
13606
+ const counts = /* @__PURE__ */ new Map();
13607
+ cells.forEach((row) => {
13608
+ row.forEach((cell) => {
13609
+ [cell, ...cell.multiFieldsContent ?? []].forEach(({ fieldMeta }) => {
13610
+ if (!fieldMeta?.field) return;
13611
+ const key = getBusinessFieldKey({
13612
+ modelKey: fieldMeta.model ?? fieldMeta.modelLink,
13613
+ fieldId: fieldMeta.field
13614
+ });
13615
+ counts.set(key, (counts.get(key) ?? 0) + 1);
13616
+ });
13617
+ });
13618
+ });
13619
+ return counts;
13620
+ }
13621
+ function getPlacedClipboardFieldCounts() {
13622
+ return getClipboardFieldCounts(
13623
+ sheetsData.value.flatMap(({ paper: sheetPaper }) => [
13624
+ ...sheetPaper.cells,
13625
+ (sheetPaper.floatingFields ?? []).map(({ fieldMeta }) => ({ fieldMeta }))
13626
+ ])
13627
+ );
13628
+ }
13629
+ function getClipboardCellContext(x, y) {
13630
+ const info = judgeCellInfo(x, y);
13631
+ return info ? JSON.stringify([info.modelKey, info.refFieldKey, info.dataGroup2D?.colModel]) : "";
13632
+ }
13613
13633
  function copy() {
13614
13634
  if (!hasSelection.value) {
13615
13635
  message.error($t("sys.onlineForm.pleaseSelectContentToCopyFirst"));
13616
13636
  return;
13617
13637
  }
13618
13638
  const selectionPaperData = calcSelectionPaperData(pick(selection$1, ["t", "l", "b", "r"]));
13639
+ if (hasClipboardFields(selectionPaperData.cells)) return;
13619
13640
  return {
13620
13641
  documentId: doc.value.id,
13621
13642
  ...selectionPaperData
13622
13643
  };
13623
13644
  }
13624
13645
  function paste(type2, data) {
13646
+ if (sheetReadonly.value) return;
13625
13647
  if (!hasSelection.value) {
13626
13648
  message.error($t("sys.onlineForm.pleaseSelectAreaToPasteFirst"));
13627
13649
  return;
@@ -13629,6 +13651,17 @@ function useSpreadSheet() {
13629
13651
  if (type2 === "online-form" || type2 === "html") {
13630
13652
  const copyData = type2 === "html" ? parseHtml(data) : data;
13631
13653
  const isSameDoc = copyData.documentId === doc.value.id;
13654
+ const cutData = pendingCut;
13655
+ const isCut = !!(type2 === "online-form" && isSameDoc && cutData?.document === doc.value && copyData.cutId && cutData?.payload === JSON.stringify(copyData));
13656
+ const containsFields = hasClipboardFields(copyData.cells);
13657
+ if (containsFields) {
13658
+ if (!isCut || !cutData) return;
13659
+ const currentCounts = getPlacedClipboardFieldCounts();
13660
+ if (Array.from(cutData.remainingFieldCounts).some(
13661
+ ([key, count]) => (currentCounts.get(key) ?? 0) !== count
13662
+ ))
13663
+ return;
13664
+ }
13632
13665
  const rowNum = copyData.cells.length;
13633
13666
  const colNum = copyData.cells[0].length;
13634
13667
  const pasteRange = {
@@ -13644,6 +13677,12 @@ function useSpreadSheet() {
13644
13677
  });
13645
13678
  return;
13646
13679
  }
13680
+ if (containsFields && cutData && copyData.cells.some(
13681
+ (row, rowIndex) => row.some(
13682
+ (cell, colIndex) => hasClipboardFields([[cell]]) && cutData.contexts[rowIndex]?.[colIndex] !== getClipboardCellContext(pasteRange.l + colIndex, pasteRange.t + rowIndex)
13683
+ )
13684
+ ))
13685
+ return;
13647
13686
  const pasteAreaPaperData = calcSelectionPaperData(pasteRange);
13648
13687
  let isAllowPaste = false;
13649
13688
  if (pasteAreaPaperData.mergedCells.length === 0) {
@@ -13674,12 +13713,6 @@ function useSpreadSheet() {
13674
13713
  const paperCell = paper$1.value.cells[t2 + rowIndex - 1][l + colIndex - 1];
13675
13714
  const copyCell = copyData.cells[rowIndex][colIndex];
13676
13715
  if (isSameDoc) {
13677
- if (isInSubTable({ t: t2 + rowIndex, l: l + colIndex, b: t2 + rowIndex, r: l + colIndex })) {
13678
- copyCell.fieldMeta = void 0;
13679
- copyCell.multiFieldsContent = void 0;
13680
- copyCell.multiFields = void 0;
13681
- copyCell.type = copyCell.type === CellType.Field ? CellType.Default : copyCell.type;
13682
- }
13683
13716
  clearCell(paperCell);
13684
13717
  paperCell.border = void 0;
13685
13718
  Object.assign(paperCell, copyCell);
@@ -13693,6 +13726,7 @@ function useSpreadSheet() {
13693
13726
  }
13694
13727
  });
13695
13728
  });
13729
+ if (isCut) pendingCut = void 0;
13696
13730
  return;
13697
13731
  }
13698
13732
  if (type2 === "text") {
@@ -13888,7 +13922,7 @@ function useSpreadSheet() {
13888
13922
  element.remove();
13889
13923
  }
13890
13924
  }
13891
- const writeClipboard = async (copyData, event2) => {
13925
+ const writeClipboard = (copyData, event2) => {
13892
13926
  const payload = JSON.stringify({
13893
13927
  _type: CopyTransferKey,
13894
13928
  data: copyData
@@ -13901,9 +13935,43 @@ function useSpreadSheet() {
13901
13935
  };
13902
13936
  function copyAndWrite(event2) {
13903
13937
  const copyData = copy();
13904
- if (copyData) {
13905
- writeClipboard(copyData, event2);
13938
+ if (!copyData) return false;
13939
+ writeClipboard(copyData, event2);
13940
+ pendingCut = void 0;
13941
+ return true;
13942
+ }
13943
+ function cutAndWrite(event2) {
13944
+ if (sheetReadonly.value || !hasSelection.value) return false;
13945
+ const data = {
13946
+ documentId: doc.value.id,
13947
+ cutId: uuid2(16),
13948
+ ...calcSelectionPaperData(pick(selection$1, ["t", "l", "b", "r"]))
13949
+ };
13950
+ const fieldCounts = getClipboardFieldCounts(data.cells);
13951
+ const placedCounts = getPlacedClipboardFieldCounts();
13952
+ const cutData = {
13953
+ document: doc.value,
13954
+ payload: JSON.stringify(data),
13955
+ contexts: data.cells.map(
13956
+ (row, rowIndex) => row.map(
13957
+ (_cell, colIndex) => getClipboardCellContext(selection$1.l + colIndex, selection$1.t + rowIndex)
13958
+ )
13959
+ ),
13960
+ remainingFieldCounts: new Map(
13961
+ Array.from(
13962
+ fieldCounts,
13963
+ ([key, count]) => [key, (placedCounts.get(key) ?? 0) - count]
13964
+ )
13965
+ )
13966
+ };
13967
+ try {
13968
+ writeClipboard(data, event2);
13969
+ } catch {
13970
+ return false;
13906
13971
  }
13972
+ resetRange();
13973
+ pendingCut = cutData;
13974
+ return true;
13907
13975
  }
13908
13976
  async function parsePaste(event2) {
13909
13977
  function isOnlineFormData(str) {
@@ -13937,6 +14005,7 @@ function useSpreadSheet() {
13937
14005
  }
13938
14006
  }
13939
14007
  async function copyAndNew() {
14008
+ if (sheetReadonly.value) return;
13940
14009
  const { copyField } = useModelFields();
13941
14010
  const { validateOnlyBusinessKey } = useReverseModeling();
13942
14011
  const { l, r, t: t2, b, e } = selection$1;
@@ -14089,6 +14158,7 @@ function useSpreadSheet() {
14089
14158
  clearCellContent,
14090
14159
  parsePaste,
14091
14160
  copyAndWrite,
14161
+ cutAndWrite,
14092
14162
  copyAndNew
14093
14163
  };
14094
14164
  }
@@ -16190,7 +16260,7 @@ function asyncImportWidgetConfigList() {
16190
16260
  return widgetConfigList;
16191
16261
  }
16192
16262
  function asyncImportWidgetDesign() {
16193
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-DX7PP65G.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-D8H2Bg9b.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-Ca9DW4R9.js"), "./image/image-design.vue": () => import("./image-design-oRvqavKb.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-Bh5sF0VU.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-DZrP96jp.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-CkwIXxb_.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-LzvbjC79.js"), "./text/text-design.vue": () => import("./text-design-D5QIq5aE.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-B9m-zonK.js") });
16263
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-CX-ZxOn3.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-B0WcJSEI.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-D6uOJZmP.js"), "./image/image-design.vue": () => import("./image-design-4Ee8rZqa.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-DANnqQdI.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-BrE7Bb4V.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-BEA1JchI.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-B608oYcy.js"), "./text/text-design.vue": () => import("./text-design-V3TQuLps.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-DRum3zZt.js") });
16194
16264
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16195
16265
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16196
16266
  if (mKey) {
@@ -23152,8 +23222,6 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23152
23222
  sheetReadonly: sheetReadonly2,
23153
23223
  globalSubTables: globalSubTables2,
23154
23224
  clearCellContent,
23155
- resetRange: resetRange2,
23156
- copyAndWrite,
23157
23225
  copyAndNew,
23158
23226
  currentCell: currentCell2
23159
23227
  } = useSpreadSheet();
@@ -23166,11 +23234,8 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23166
23234
  return l === e._l && t2 === e._t && r === e._r && b === e._b;
23167
23235
  });
23168
23236
  const isSingleFieldCell = computed(() => {
23169
- if (currentCell2.value) {
23170
- const { fieldWidget } = currentCell2.value.data;
23171
- return !!fieldWidget;
23172
- }
23173
- return false;
23237
+ const cell = currentCell2.value?.data;
23238
+ return isSelectCell.value && !!cell?.fieldMeta && !!cell.fieldWidget && !cell.multiFields;
23174
23239
  });
23175
23240
  const currentFixedTable = computed(() => {
23176
23241
  const fixedTable = paper2.value.fixedTables?.find(
@@ -23218,7 +23283,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23218
23283
  if (current2DTable.value) {
23219
23284
  menus.push(ContextMenu$1.DataGroup2D);
23220
23285
  }
23221
- menus.push(ContextMenu$1.Copy, ContextMenu$1.Cut, ContextMenu$1.ClearCellContent);
23286
+ menus.push(ContextMenu$1.ClearCellContent);
23222
23287
  if (isSingleFieldCell.value) {
23223
23288
  menus.push(ContextMenu$1.CopyAndNew);
23224
23289
  }
@@ -23278,6 +23343,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23278
23343
  }
23279
23344
  };
23280
23345
  const handleMenuClick = async ({ key }) => {
23346
+ if (sheetReadonly2.value) return;
23281
23347
  switch (key) {
23282
23348
  case ContextMenu$1.InsertColBefore:
23283
23349
  insertCols(selection2.l, formState.leftColNum, selection2.r);
@@ -23320,14 +23386,8 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23320
23386
  case ContextMenu$1.ClearCellContent:
23321
23387
  clearCellContent();
23322
23388
  break;
23323
- case ContextMenu$1.Copy:
23324
- await copyAndWrite();
23325
- break;
23326
- case ContextMenu$1.Cut:
23327
- await copyAndWrite();
23328
- resetRange2();
23329
- break;
23330
23389
  case ContextMenu$1.CopyAndNew:
23390
+ if (!isSingleFieldCell.value) return;
23331
23391
  await copyAndNew();
23332
23392
  await formFieldC.refresh();
23333
23393
  break;
@@ -23364,21 +23424,10 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23364
23424
  overlay: withCtx(() => [
23365
23425
  createVNode(_component_a_menu, { onClick: handleMenuClick }, {
23366
23426
  default: withCtx(() => [
23367
- showMenus.value.includes(unref(ContextMenu$1).Copy) ? (openBlock(), createBlock(_component_a_menu_item, {
23368
- key: unref(ContextMenu$1).Copy
23369
- }, {
23370
- icon: withCtx(() => [..._cache[4] || (_cache[4] = [
23371
- createElementVNode("i", { class: "iconfont !text-[24px] icon-fuzhiq" }, null, -1)
23372
- ])]),
23373
- default: withCtx(() => [
23374
- createTextVNode(" " + toDisplayString$1(_ctx.$t("sys.onlineForm.copy")), 1)
23375
- ]),
23376
- _: 1
23377
- })) : createCommentVNode("", true),
23378
23427
  showMenus.value.includes(unref(ContextMenu$1).CopyAndNew) ? (openBlock(), createBlock(_component_a_menu_item, {
23379
23428
  key: unref(ContextMenu$1).CopyAndNew
23380
23429
  }, {
23381
- icon: withCtx(() => [..._cache[5] || (_cache[5] = [
23430
+ icon: withCtx(() => [..._cache[4] || (_cache[4] = [
23382
23431
  createElementVNode("i", { class: "iconfont !text-[24px] icon-fuzhibingxinjian" }, null, -1)
23383
23432
  ])]),
23384
23433
  default: withCtx(() => [
@@ -23386,32 +23435,10 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23386
23435
  ]),
23387
23436
  _: 1
23388
23437
  })) : createCommentVNode("", true),
23389
- showMenus.value.includes(unref(ContextMenu$1).Cut) ? (openBlock(), createBlock(_component_a_menu_item, {
23390
- key: unref(ContextMenu$1).Cut
23391
- }, {
23392
- icon: withCtx(() => [..._cache[6] || (_cache[6] = [
23393
- createElementVNode("i", { class: "iconfont !text-[24px] icon-jianqie" }, null, -1)
23394
- ])]),
23395
- default: withCtx(() => [
23396
- createTextVNode(" " + toDisplayString$1(_ctx.$t("sys.onlineForm.cut")), 1)
23397
- ]),
23398
- _: 1
23399
- })) : createCommentVNode("", true),
23400
- showMenus.value.includes(unref(ContextMenu$1).Paste) ? (openBlock(), createBlock(_component_a_menu_item, {
23401
- key: unref(ContextMenu$1).Paste
23402
- }, {
23403
- icon: withCtx(() => [..._cache[7] || (_cache[7] = [
23404
- createElementVNode("i", { class: "iconfont !text-[24px] icon-niantie1" }, null, -1)
23405
- ])]),
23406
- default: withCtx(() => [
23407
- createTextVNode(" " + toDisplayString$1(_ctx.$t("sys.onlineForm.paste")), 1)
23408
- ]),
23409
- _: 1
23410
- })) : createCommentVNode("", true),
23411
23438
  showMenus.value.includes(unref(ContextMenu$1).InsertColBefore) ? (openBlock(), createBlock(_component_a_menu_item, {
23412
23439
  key: unref(ContextMenu$1).InsertColBefore
23413
23440
  }, {
23414
- icon: withCtx(() => [..._cache[8] || (_cache[8] = [
23441
+ icon: withCtx(() => [..._cache[5] || (_cache[5] = [
23415
23442
  createElementVNode("i", { class: "iconfont !text-[24px] icon-zuoce1" }, null, -1)
23416
23443
  ])]),
23417
23444
  default: withCtx(() => [
@@ -23426,7 +23453,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23426
23453
  showMenus.value.includes(unref(ContextMenu$1).InsertColAfter) ? (openBlock(), createBlock(_component_a_menu_item, {
23427
23454
  key: unref(ContextMenu$1).InsertColAfter
23428
23455
  }, {
23429
- icon: withCtx(() => [..._cache[9] || (_cache[9] = [
23456
+ icon: withCtx(() => [..._cache[6] || (_cache[6] = [
23430
23457
  createElementVNode("i", { class: "iconfont !text-[24px] icon-youce1" }, null, -1)
23431
23458
  ])]),
23432
23459
  default: withCtx(() => [
@@ -23441,7 +23468,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23441
23468
  showMenus.value.includes(unref(ContextMenu$1).SetColWidth) ? (openBlock(), createBlock(_component_a_menu_item, {
23442
23469
  key: unref(ContextMenu$1).SetColWidth
23443
23470
  }, {
23444
- icon: withCtx(() => [..._cache[10] || (_cache[10] = [
23471
+ icon: withCtx(() => [..._cache[7] || (_cache[7] = [
23445
23472
  createElementVNode("i", { class: "iconfont !text-[24px] icon-hangkuan" }, null, -1)
23446
23473
  ])]),
23447
23474
  default: withCtx(() => [
@@ -23452,7 +23479,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23452
23479
  showMenus.value.includes(unref(ContextMenu$1).InsertRowBefore) ? (openBlock(), createBlock(_component_a_menu_item, {
23453
23480
  key: unref(ContextMenu$1).InsertRowBefore
23454
23481
  }, {
23455
- icon: withCtx(() => [..._cache[11] || (_cache[11] = [
23482
+ icon: withCtx(() => [..._cache[8] || (_cache[8] = [
23456
23483
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shangfang" }, null, -1)
23457
23484
  ])]),
23458
23485
  default: withCtx(() => [
@@ -23467,7 +23494,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23467
23494
  showMenus.value.includes(unref(ContextMenu$1).InsertRowAfter) ? (openBlock(), createBlock(_component_a_menu_item, {
23468
23495
  key: unref(ContextMenu$1).InsertRowAfter
23469
23496
  }, {
23470
- icon: withCtx(() => [..._cache[12] || (_cache[12] = [
23497
+ icon: withCtx(() => [..._cache[9] || (_cache[9] = [
23471
23498
  createElementVNode("i", { class: "iconfont !text-[24px] icon-xiafang" }, null, -1)
23472
23499
  ])]),
23473
23500
  default: withCtx(() => [
@@ -23482,7 +23509,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23482
23509
  showMenus.value.includes(unref(ContextMenu$1).SetRowHeight) ? (openBlock(), createBlock(_component_a_menu_item, {
23483
23510
  key: unref(ContextMenu$1).SetRowHeight
23484
23511
  }, {
23485
- icon: withCtx(() => [..._cache[13] || (_cache[13] = [
23512
+ icon: withCtx(() => [..._cache[10] || (_cache[10] = [
23486
23513
  createElementVNode("i", { class: "iconfont !text-[24px] icon-hanggao" }, null, -1)
23487
23514
  ])]),
23488
23515
  default: withCtx(() => [
@@ -23493,7 +23520,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23493
23520
  showMenus.value.includes(unref(ContextMenu$1).DataGroup) ? (openBlock(), createBlock(_component_a_menu_item, {
23494
23521
  key: unref(ContextMenu$1).DataGroup
23495
23522
  }, {
23496
- icon: withCtx(() => [..._cache[14] || (_cache[14] = [
23523
+ icon: withCtx(() => [..._cache[11] || (_cache[11] = [
23497
23524
  createElementVNode("i", { class: "iconfont icon-fenzu" }, null, -1)
23498
23525
  ])]),
23499
23526
  default: withCtx(() => [
@@ -23504,7 +23531,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23504
23531
  showMenus.value.includes(unref(ContextMenu$1).DataGroup2D) ? (openBlock(), createBlock(_component_a_menu_item, {
23505
23532
  key: unref(ContextMenu$1).DataGroup2D
23506
23533
  }, {
23507
- icon: withCtx(() => [..._cache[15] || (_cache[15] = [
23534
+ icon: withCtx(() => [..._cache[12] || (_cache[12] = [
23508
23535
  createElementVNode("i", { class: "iconfont text-[24px] icon-shujuliandong" }, null, -1)
23509
23536
  ])]),
23510
23537
  default: withCtx(() => [
@@ -23515,7 +23542,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23515
23542
  showMenus.value.includes(unref(ContextMenu$1).MergeCell) ? (openBlock(), createBlock(_component_a_menu_item, {
23516
23543
  key: unref(ContextMenu$1).MergeCell
23517
23544
  }, {
23518
- icon: withCtx(() => [..._cache[16] || (_cache[16] = [
23545
+ icon: withCtx(() => [..._cache[13] || (_cache[13] = [
23519
23546
  createElementVNode("i", { class: "iconfont icon-hebing" }, null, -1)
23520
23547
  ])]),
23521
23548
  default: withCtx(() => [
@@ -23526,7 +23553,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23526
23553
  showMenus.value.includes(unref(ContextMenu$1).SplitCell) ? (openBlock(), createBlock(_component_a_menu_item, {
23527
23554
  key: unref(ContextMenu$1).SplitCell
23528
23555
  }, {
23529
- icon: withCtx(() => [..._cache[17] || (_cache[17] = [
23556
+ icon: withCtx(() => [..._cache[14] || (_cache[14] = [
23530
23557
  createElementVNode("i", { class: "iconfont icon-chaifen" }, null, -1)
23531
23558
  ])]),
23532
23559
  default: withCtx(() => [
@@ -23538,7 +23565,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23538
23565
  showMenus.value.includes(unref(ContextMenu$1).DeleteCol) ? (openBlock(), createBlock(_component_a_menu_item, {
23539
23566
  key: unref(ContextMenu$1).DeleteCol
23540
23567
  }, {
23541
- icon: withCtx(() => [..._cache[18] || (_cache[18] = [
23568
+ icon: withCtx(() => [..._cache[15] || (_cache[15] = [
23542
23569
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shanlie" }, null, -1)
23543
23570
  ])]),
23544
23571
  default: withCtx(() => [
@@ -23549,7 +23576,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23549
23576
  showMenus.value.includes(unref(ContextMenu$1).DeleteRow) ? (openBlock(), createBlock(_component_a_menu_item, {
23550
23577
  key: unref(ContextMenu$1).DeleteRow
23551
23578
  }, {
23552
- icon: withCtx(() => [..._cache[19] || (_cache[19] = [
23579
+ icon: withCtx(() => [..._cache[16] || (_cache[16] = [
23553
23580
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shanhang" }, null, -1)
23554
23581
  ])]),
23555
23582
  default: withCtx(() => [
@@ -23560,7 +23587,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23560
23587
  showMenus.value.includes(unref(ContextMenu$1).ClearCellContent) ? (openBlock(), createBlock(_component_a_menu_item, {
23561
23588
  key: unref(ContextMenu$1).ClearCellContent
23562
23589
  }, {
23563
- icon: withCtx(() => [..._cache[20] || (_cache[20] = [
23590
+ icon: withCtx(() => [..._cache[17] || (_cache[17] = [
23564
23591
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shanchu11" }, null, -1)
23565
23592
  ])]),
23566
23593
  default: withCtx(() => [
@@ -23580,7 +23607,7 @@ const _sfc_main$5O = /* @__PURE__ */ defineComponent({
23580
23607
  };
23581
23608
  }
23582
23609
  });
23583
- const ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5O, [["__scopeId", "data-v-10739a10"]]);
23610
+ const ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5O, [["__scopeId", "data-v-e327dc6f"]]);
23584
23611
  const _hoisted_1$3g = { class: "paper-content" };
23585
23612
  const _hoisted_2$2m = {
23586
23613
  cellpadding: "0",
@@ -24336,7 +24363,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
24336
24363
  addField(field);
24337
24364
  addFloatingSeal({
24338
24365
  field: field.key,
24339
- fieldType: FIELD_TYPE.TEXT,
24366
+ fieldType: FIELD_TYPE.SEAL,
24340
24367
  bizType: FIELD_TYPE.SEAL,
24341
24368
  model: field.modelKey,
24342
24369
  fieldLink: field.key,
@@ -24377,7 +24404,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
24377
24404
  };
24378
24405
  }
24379
24406
  });
24380
- const SpreadSheetPaper = /* @__PURE__ */ _export_sfc(_sfc_main$5H, [["__scopeId", "data-v-f0bb0bc5"]]);
24407
+ const SpreadSheetPaper = /* @__PURE__ */ _export_sfc(_sfc_main$5H, [["__scopeId", "data-v-acc024c7"]]);
24381
24408
  const _sfc_main$5G = defineComponent({
24382
24409
  name: "SvgIcon",
24383
24410
  props: {
@@ -25848,11 +25875,11 @@ const _sfc_main$5w = /* @__PURE__ */ defineComponent({
25848
25875
  save: save2,
25849
25876
  setThead,
25850
25877
  setCurrentDataGroup,
25851
- resetRange: resetRange2,
25852
25878
  setSubTable,
25853
25879
  selection: selection2,
25854
25880
  paper: paper2,
25855
25881
  copyAndWrite,
25882
+ cutAndWrite,
25856
25883
  parsePaste,
25857
25884
  panelData: panelData2,
25858
25885
  sheetReadonly: sheetReadonly2,
@@ -25995,6 +26022,7 @@ const _sfc_main$5w = /* @__PURE__ */ defineComponent({
25995
26022
  return;
25996
26023
  }
25997
26024
  event2.preventDefault();
26025
+ if (sheetReadonly2.value) return;
25998
26026
  await parsePaste(event2);
25999
26027
  };
26000
26028
  const handleCut = async (event2) => {
@@ -26002,8 +26030,8 @@ const _sfc_main$5w = /* @__PURE__ */ defineComponent({
26002
26030
  return;
26003
26031
  }
26004
26032
  event2.preventDefault();
26005
- copyAndWrite();
26006
- resetRange2();
26033
+ if (sheetReadonly2.value) return;
26034
+ cutAndWrite(event2);
26007
26035
  };
26008
26036
  document.addEventListener("keydown", handleKeyDown, true);
26009
26037
  document.addEventListener("paste", handlePaste);
@@ -26062,7 +26090,7 @@ const _sfc_main$5w = /* @__PURE__ */ defineComponent({
26062
26090
  };
26063
26091
  }
26064
26092
  });
26065
- const SpreadSheet = /* @__PURE__ */ _export_sfc(_sfc_main$5w, [["__scopeId", "data-v-467f6f1b"]]);
26093
+ const SpreadSheet = /* @__PURE__ */ _export_sfc(_sfc_main$5w, [["__scopeId", "data-v-39141cf4"]]);
26066
26094
  const DHR_LICENSE_API = "/gct-apaas/api/dhr/license/module";
26067
26095
  const AVAILABLE_EDITIONS = ["eDHR Max", "eDHR Ultra"];
26068
26096
  let dhrEditionRequest;
@@ -26145,7 +26173,7 @@ const _hoisted_10$f = { class: "rgba-r" };
26145
26173
  const _hoisted_11$d = ["value"];
26146
26174
  const _hoisted_12$a = { class: "rgba-g" };
26147
26175
  const _hoisted_13$9 = ["value"];
26148
- const _hoisted_14$7 = { class: "rgba-b" };
26176
+ const _hoisted_14$8 = { class: "rgba-b" };
26149
26177
  const _hoisted_15$5 = ["value"];
26150
26178
  const _hoisted_16$5 = { class: "rgba-a" };
26151
26179
  const _hoisted_17$4 = ["value"];
@@ -26613,7 +26641,7 @@ const _sfc_main$5v = /* @__PURE__ */ defineComponent({
26613
26641
  ]),
26614
26642
  _cache[4] || (_cache[4] = createElementVNode("p", null, "G", -1))
26615
26643
  ]),
26616
- createElementVNode("div", _hoisted_14$7, [
26644
+ createElementVNode("div", _hoisted_14$8, [
26617
26645
  createElementVNode("label", null, [
26618
26646
  createElementVNode("input", {
26619
26647
  value: blue.value,
@@ -26863,7 +26891,7 @@ const _hoisted_11$c = {
26863
26891
  };
26864
26892
  const _hoisted_12$9 = ["title", "onClick"];
26865
26893
  const _hoisted_13$8 = { class: "icon-picker__group-block" };
26866
- const _hoisted_14$6 = ["aria-expanded"];
26894
+ const _hoisted_14$7 = ["aria-expanded"];
26867
26895
  const _hoisted_15$4 = ["src"];
26868
26896
  const _hoisted_16$4 = {
26869
26897
  key: 0,
@@ -27183,7 +27211,7 @@ const _sfc_main$5q = /* @__PURE__ */ defineComponent({
27183
27211
  }, null, 8, _hoisted_15$4)
27184
27212
  ], 2),
27185
27213
  createElementVNode("span", null, toDisplayString$1(_ctx.$t("sys.onlineForm.inlineMedia.builtinIcons")), 1)
27186
- ], 8, _hoisted_14$6),
27214
+ ], 8, _hoisted_14$7),
27187
27215
  builtinExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_16$4, [
27188
27216
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(builtinIconGroups), (group) => {
27189
27217
  return openBlock(), createElementBlock("button", {
@@ -27437,7 +27465,7 @@ const _hoisted_10$d = ["onClick"];
27437
27465
  const _hoisted_11$b = ["aria-disabled"];
27438
27466
  const _hoisted_12$8 = ["src"];
27439
27467
  const _hoisted_13$7 = { class: "tool--dropdown tool--dropdown-expand" };
27440
- const _hoisted_14$5 = ["src"];
27468
+ const _hoisted_14$6 = ["src"];
27441
27469
  const _hoisted_15$3 = { class: "expand-text" };
27442
27470
  const _hoisted_16$3 = { class: "flex items-center text-14px" };
27443
27471
  const _hoisted_17$2 = ["src"];
@@ -28002,7 +28030,7 @@ const _sfc_main$5p = /* @__PURE__ */ defineComponent({
28002
28030
  src: unref(TABLE_CATEGORY_SVG).dataTable,
28003
28031
  alt: "",
28004
28032
  srcset: ""
28005
- }, null, 8, _hoisted_14$5),
28033
+ }, null, 8, _hoisted_14$6),
28006
28034
  _cache[25] || (_cache[25] = createElementVNode("i", { class: "arrow" }, null, -1)),
28007
28035
  createElementVNode("div", _hoisted_15$3, toDisplayString$1(_ctx.$t("sys.dataSet.dataTableLabel")), 1)
28008
28036
  ])
@@ -38504,7 +38532,7 @@ const _hoisted_10$c = { class: "field-key" };
38504
38532
  const _hoisted_11$a = ["aria-label"];
38505
38533
  const _hoisted_12$7 = ["title"];
38506
38534
  const _hoisted_13$6 = { class: "field-name" };
38507
- const _hoisted_14$4 = { class: "field-key" };
38535
+ const _hoisted_14$5 = { class: "field-key" };
38508
38536
  const _hoisted_15$2 = {
38509
38537
  key: 1,
38510
38538
  class: "custom-section-heading"
@@ -38834,7 +38862,7 @@ const _sfc_main$4B = /* @__PURE__ */ defineComponent({
38834
38862
  title: rule.toField
38835
38863
  }, [
38836
38864
  createElementVNode("span", _hoisted_13$6, toDisplayString$1(rule.targetLabel), 1),
38837
- createElementVNode("code", _hoisted_14$4, toDisplayString$1(rule.toField), 1)
38865
+ createElementVNode("code", _hoisted_14$5, toDisplayString$1(rule.toField), 1)
38838
38866
  ], 8, _hoisted_12$7)
38839
38867
  ]);
38840
38868
  }), 128))
@@ -48464,7 +48492,7 @@ const _hoisted_10$b = ["title"];
48464
48492
  const _hoisted_11$9 = { class: "common-regex-panel__item-actions" };
48465
48493
  const _hoisted_12$6 = ["onClick"];
48466
48494
  const _hoisted_13$5 = ["onClick"];
48467
- const _hoisted_14$3 = ["onClick"];
48495
+ const _hoisted_14$4 = ["onClick"];
48468
48496
  const _hoisted_15$1 = { class: "common-regex-panel__header has-border" };
48469
48497
  const _hoisted_16$1 = { class: "common-regex-panel__title" };
48470
48498
  const _hoisted_17 = { class: "common-regex-panel__form" };
@@ -48718,7 +48746,7 @@ const _sfc_main$4k = /* @__PURE__ */ defineComponent({
48718
48746
  onClick: withModifiers(($event) => openDeleteConfirm(item, $event), ["stop"])
48719
48747
  }, [..._cache[10] || (_cache[10] = [
48720
48748
  createElementVNode("i", { class: "iconfont icon-shanchu2" }, null, -1)
48721
- ])], 10, _hoisted_14$3)
48749
+ ])], 10, _hoisted_14$4)
48722
48750
  ], 64)) : createCommentVNode("", true)
48723
48751
  ])
48724
48752
  ]);
@@ -56809,7 +56837,7 @@ const _sfc_main$3v = /* @__PURE__ */ defineComponent({
56809
56837
  }
56810
56838
  });
56811
56839
  function asyncImportWidgetProp() {
56812
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-CDMJo5uk.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-D9AC_qNv.js"), "./widget-image.vue": () => import("./widget-image-DMiIjg8J.js"), "./widget-line.vue": () => import("./widget-line-BwSO-GKu.js"), "./widget-pagination.vue": () => import("./widget-pagination-Buo5s7Xq.js"), "./widget-power.vue": () => import("./widget-power-D8HtIVO2.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-XEY9m1Dj.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-C9j1s6Md.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-B_IA4_De.js"), "./widget-text.vue": () => import("./widget-text-Bp0FEZa1.js"), "./widget-timediff.vue": () => import("./widget-timediff-BlYRlDYp.js") });
56840
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-CNrl2NxY.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-CqjD1SwW.js"), "./widget-image.vue": () => import("./widget-image-Xjl5W2Fp.js"), "./widget-line.vue": () => import("./widget-line-BUVVnwrU.js"), "./widget-pagination.vue": () => import("./widget-pagination-DjMXWioI.js"), "./widget-power.vue": () => import("./widget-power-Dck9H8a9.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-Cu8BwE24.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-DLxebCKf.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-DecFCGS0.js"), "./widget-text.vue": () => import("./widget-text-DV3yKKsx.js"), "./widget-timediff.vue": () => import("./widget-timediff-BIwewJ39.js") });
56813
56841
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
56814
56842
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
56815
56843
  if (mKey) {
@@ -62179,7 +62207,7 @@ const _hoisted_12$4 = {
62179
62207
  class: "ai-tmpl-editor__advanced-sub-row"
62180
62208
  };
62181
62209
  const _hoisted_13$3 = { class: "ai-tmpl-editor__section" };
62182
- const _hoisted_14$2 = { class: "ai-tmpl-editor__section-content--prompt" };
62210
+ const _hoisted_14$3 = { class: "ai-tmpl-editor__section-content--prompt" };
62183
62211
  const _hoisted_15 = {
62184
62212
  key: 0,
62185
62213
  class: "ai-tmpl-editor__recommended-box"
@@ -62534,7 +62562,7 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
62534
62562
  }, null, 8, ["class"]),
62535
62563
  _cache[24] || (_cache[24] = createElementVNode("span", null, "提示词", -1))
62536
62564
  ]),
62537
- withDirectives(createElementVNode("div", _hoisted_14$2, [
62565
+ withDirectives(createElementVNode("div", _hoisted_14$3, [
62538
62566
  createVNode(_component_a_radio_group, {
62539
62567
  value: formState.promptMode,
62540
62568
  "onUpdate:value": _cache[14] || (_cache[14] = ($event) => formState.promptMode = $event),
@@ -67645,7 +67673,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
67645
67673
  const emit2 = __emit;
67646
67674
  const currentValue = computed({
67647
67675
  get() {
67648
- return typeof props2.value === "string" ? props2.value : void 0;
67676
+ return props2.value;
67649
67677
  },
67650
67678
  set(val) {
67651
67679
  emit2("update:value", val);
@@ -67696,7 +67724,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
67696
67724
  };
67697
67725
  }
67698
67726
  });
67699
- const CellDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2q, [["__scopeId", "data-v-f0f61f80"]]);
67727
+ const CellDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$2q, [["__scopeId", "data-v-57956802"]]);
67700
67728
  const _hoisted_1$1h = { class: "cell-media__placeholder" };
67701
67729
  const _hoisted_2$T = ["disabled"];
67702
67730
  const _sfc_main$2p = /* @__PURE__ */ defineComponent({
@@ -74458,7 +74486,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
74458
74486
  }
74459
74487
  });
74460
74488
  const VueVideoPlayer = defineAsyncComponent(
74461
- () => import("./VueVideoPlayer-D7buOU3g.js")
74489
+ () => import("./VueVideoPlayer-BuuQaqyI.js")
74462
74490
  );
74463
74491
  const _hoisted_1$18 = {
74464
74492
  key: 0,
@@ -84264,7 +84292,7 @@ const _hoisted_13$2 = {
84264
84292
  key: 1,
84265
84293
  class: "img-box"
84266
84294
  };
84267
- const _hoisted_14$1 = ["aria-label", "onClick"];
84295
+ const _hoisted_14$2 = ["aria-label", "onClick"];
84268
84296
  const _sfc_main$1v = /* @__PURE__ */ defineComponent({
84269
84297
  __name: "base-image-upload",
84270
84298
  props: {
@@ -84713,7 +84741,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
84713
84741
  onClick: withModifiers(($event) => deleteFile(index2), ["stop"])
84714
84742
  }, [
84715
84743
  createVNode(unref(CloseOutlined))
84716
- ], 8, _hoisted_14$1)) : createCommentVNode("", true)
84744
+ ], 8, _hoisted_14$2)) : createCommentVNode("", true)
84717
84745
  ]);
84718
84746
  }), 128))
84719
84747
  ]),
@@ -89881,7 +89909,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
89881
89909
  ]),
89882
89910
  createElementVNode("section", _hoisted_6$9, [
89883
89911
  createElementVNode("h3", _hoisted_7$6, toDisplayString$1(_ctx.$t("sys.onlineForm.inspectionDecisionRule.promptSection")), 1),
89884
- createElementVNode("p", _hoisted_8$6, toDisplayString$1(_ctx.$t("sys.onlineForm.inspectionDecisionRule.promptDescription")), 1),
89912
+ createElementVNode("p", _hoisted_8$6, toDisplayString$1(_ctx.$t("sys.onlineForm.earlyTerminationValidationRulePromptDescription")), 1),
89885
89913
  createVNode(unref(GctTextArea), {
89886
89914
  modelValue: formState.prompt,
89887
89915
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formState.prompt = $event),
@@ -89894,7 +89922,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
89894
89922
  };
89895
89923
  }
89896
89924
  });
89897
- const InspectionDecisionModal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-29368c24"]]);
89925
+ const InspectionDecisionModal = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-a5a0a810"]]);
89898
89926
  const _hoisted_1$w = { class: "panel-rule-config" };
89899
89927
  const _hoisted_2$o = { class: "rule-area" };
89900
89928
  const _hoisted_3$i = { class: "ks-row" };
@@ -89908,6 +89936,7 @@ const _hoisted_10$3 = { class: "ks-col ell" };
89908
89936
  const _hoisted_11$2 = ["onClick"];
89909
89937
  const _hoisted_12$2 = { class: "inspection-rule-config" };
89910
89938
  const _hoisted_13$1 = { class: "inspection-rule-config__switch-row" };
89939
+ const _hoisted_14$1 = { class: "inspection-rule-config__switch-label" };
89911
89940
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
89912
89941
  __name: "panel-rule-config",
89913
89942
  setup(__props) {
@@ -89995,6 +90024,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
89995
90024
  }
89996
90025
  return (_ctx, _cache) => {
89997
90026
  const _component_a_collapse_panel = resolveComponent("a-collapse-panel");
90027
+ const _component_a_tooltip = resolveComponent("a-tooltip");
89998
90028
  const _component_a_collapse = resolveComponent("a-collapse");
89999
90029
  return openBlock(), createElementBlock("div", _hoisted_1$w, [
90000
90030
  createVNode(_component_a_collapse, {
@@ -90057,12 +90087,23 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
90057
90087
  }, 8, ["header"]),
90058
90088
  createVNode(_component_a_collapse_panel, {
90059
90089
  key: "2",
90060
- header: _ctx.$t("sys.onlineForm.inspectionDecisionRule.title")
90090
+ header: _ctx.$t("sys.onlineForm.earlyTerminationValidationRule")
90061
90091
  }, {
90062
90092
  default: withCtx(() => [
90063
90093
  createElementVNode("div", _hoisted_12$2, [
90064
90094
  createElementVNode("div", _hoisted_13$1, [
90065
- createElementVNode("span", null, toDisplayString$1(_ctx.$t("sys.onlineForm.inspectionDecisionRule.title")), 1),
90095
+ createElementVNode("div", _hoisted_14$1, [
90096
+ createElementVNode("span", null, toDisplayString$1(_ctx.$t("sys.onlineForm.earlyTerminationValidationRule")), 1),
90097
+ createVNode(_component_a_tooltip, {
90098
+ placement: "top",
90099
+ title: _ctx.$t("sys.onlineForm.earlyTerminationValidationRuleTip")
90100
+ }, {
90101
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
90102
+ createElementVNode("i", { class: "iconfont icon-assist" }, null, -1)
90103
+ ])]),
90104
+ _: 1
90105
+ }, 8, ["title"])
90106
+ ]),
90066
90107
  createVNode(unref(GctSwitch), {
90067
90108
  size: "small",
90068
90109
  "model-value": inspectionDecisionRule.value.dataRuleEnabled,
@@ -90078,7 +90119,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
90078
90119
  onClick: openInspectionDecisionRule
90079
90120
  }, {
90080
90121
  default: withCtx(() => [
90081
- createTextVNode(toDisplayString$1(hasDecisionRule.value ? _ctx.$t("sys.onlineForm.inspectionDecisionRule.edit") : _ctx.$t("sys.onlineForm.inspectionDecisionRule.add")), 1)
90122
+ createTextVNode(toDisplayString$1(hasDecisionRule.value ? _ctx.$t("sys.onlineForm.editEarlyTerminationValidationRule") : _ctx.$t("sys.onlineForm.addEarlyTerminationValidationRule")), 1)
90082
90123
  ]),
90083
90124
  _: 1
90084
90125
  })) : createCommentVNode("", true)
@@ -90091,7 +90132,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
90091
90132
  }, 8, ["activeKey"]),
90092
90133
  createVNode(unref(GctModal), {
90093
90134
  open: decisionModalOpen.value,
90094
- title: _ctx.$t("sys.onlineForm.inspectionDecisionRule.title"),
90135
+ title: _ctx.$t("sys.onlineForm.earlyTerminationValidationRule"),
90095
90136
  width: 1120,
90096
90137
  "confirm-loading": decisionModalSaving.value,
90097
90138
  onConfirm: saveInspectionDecisionRule,
@@ -90111,7 +90152,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
90111
90152
  };
90112
90153
  }
90113
90154
  });
90114
- const PanelRuleConfig = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-08229d89"]]);
90155
+ const PanelRuleConfig = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-6c109141"]]);
90115
90156
  const labelIdMaps = ref$1({});
90116
90157
  function useProductTranslate() {
90117
90158
  async function translateName(refId) {
@@ -94056,13 +94097,14 @@ const sys$1 = {
94056
94097
  onlineForm: {
94057
94098
  dragFieldOrComponentIn: "Drag a component or field here",
94058
94099
  addUnitConversionRule: "Add conversion rule",
94100
+ earlyTerminationValidationRule: "Early termination validation rule",
94101
+ earlyTerminationValidationRuleTip: "When enabled, meeting the decision conditions allows direct submission without completing the remaining validation items",
94102
+ earlyTerminationValidationRulePromptDescription: "When the conditions above are met, allow submission without completing the remaining validation items and show a prompt",
94103
+ addEarlyTerminationValidationRule: "Add early termination validation rule",
94104
+ editEarlyTerminationValidationRule: "Edit early termination validation rule",
94059
94105
  inspectionDecisionRule: {
94060
- title: "Inspection decision rule",
94061
- add: "Add decision rule",
94062
- edit: "Edit decision rule",
94063
94106
  ruleSection: "Decision rule",
94064
94107
  promptSection: "Prompt",
94065
- promptDescription: "When the conditions above are met, allow submission without completing the remaining inspection items and show a prompt",
94066
94108
  noAvailableFields: "The current model has no fields available for decision rules",
94067
94109
  incompleteCondition: "Add at least one complete decision condition",
94068
94110
  addCondition: "Add condition",
@@ -94454,13 +94496,14 @@ const sys = {
94454
94496
  onlineForm: {
94455
94497
  dragFieldOrComponentIn: "拖入组件/字段",
94456
94498
  addUnitConversionRule: "添加转化规则",
94499
+ earlyTerminationValidationRule: "提前终止校验规则",
94500
+ earlyTerminationValidationRuleTip: "开启后,满足判定条件时允许跳过剩余校验项直接提交",
94501
+ earlyTerminationValidationRulePromptDescription: "满足上方判定条件后,允许跳过剩余校验项直接提交,并给出提示",
94502
+ addEarlyTerminationValidationRule: "添加终止校验规则",
94503
+ editEarlyTerminationValidationRule: "编辑终止校验规则",
94457
94504
  inspectionDecisionRule: {
94458
- title: "检验判定规则",
94459
- add: "添加判定规则",
94460
- edit: "编辑判定规则",
94461
94505
  ruleSection: "判定规则",
94462
94506
  promptSection: "提示信息",
94463
- promptDescription: "满足上方判定条件后,允许跳过剩余检查项直接提交,并给出提示",
94464
94507
  noAvailableFields: "当前模型没有可用于判定的字段",
94465
94508
  incompleteCondition: "请至少添加一条完整的判定条件",
94466
94509
  addCondition: "添加条件",
@@ -96136,8 +96179,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
96136
96179
  printTask = (async () => {
96137
96180
  if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
96138
96181
  await nextTick();
96139
- const { printRuntimeInstance } = await import("./print-runtime-instance-19OA8Ubq.js");
96140
- const { default: renderer } = await import("./print-snapshot-renderer-D5OUO3Sx.js");
96182
+ const { printRuntimeInstance } = await import("./print-runtime-instance-PabaORE2.js");
96183
+ const { default: renderer } = await import("./print-snapshot-renderer-DQr2G7Hv.js");
96141
96184
  if (abort.signal.aborted) throw new Error("打印已取消");
96142
96185
  printRenderer.value = markRaw(renderer);
96143
96186
  await printRuntimeInstance(