@gct-paas/excel 0.1.39-beta.47 → 0.1.39-beta.49

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 (97) hide show
  1. package/dist/{BaseComponent-B4z-0IvX.js → BaseComponent-C1h429zs.js} +2 -2
  2. package/dist/{VueVideoPlayer-CsiWnQT8.js → VueVideoPlayer-Ca23ED7v.js} +2 -2
  3. package/dist/{align-editor-CRjMBiv1.js → align-editor-6c2LC6xc.js} +1 -1
  4. package/dist/{barcode-design-CkIF3AdC.js → barcode-design-C_xO0jor.js} +2 -2
  5. package/dist/base/index.es.js +109 -62
  6. package/dist/{diagonal-design-CBGnh101.js → diagonal-design-BFxBAG3i.js} +2 -2
  7. package/dist/{dynamic-table-action-ZAmTIvcp.js → dynamic-table-action-DFabTKVv.js} +119 -82
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DTkBFPUl.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang--M6ES58_.js} +382 -368
  9. package/dist/{edit.utils-CXmmCnxE-Be_Jj92u.js → edit.utils-CXmmCnxE-CW2WVjJi.js} +1 -1
  10. package/dist/excel.css +2 -2
  11. package/dist/{exceljs.min-BdYR3omv.js → exceljs.min-vOmepi6j.js} +2 -2
  12. package/dist/{font-editor-C40nR0g-.js → font-editor-CNA-69tk.js} +3 -3
  13. package/dist/{image-design-CjDaoN6i.js → image-design-DAMqKfR4.js} +2 -2
  14. package/dist/{index-C3YwX02a.js → index-2SkzLFoC.js} +2 -2
  15. package/dist/{index-BYLb70Wd.js → index-5B4uB3JL.js} +2 -2
  16. package/dist/{index-CAeGCpqZ.js → index-6CT_4Jha.js} +1 -1
  17. package/dist/{index-KGWuZtk7.js → index-B-wN9cvQ.js} +2 -2
  18. package/dist/{index-BJh9up1X.js → index-BEVtkZps.js} +1 -1
  19. package/dist/{index-BMTx6T5g.js → index-BH2VaJgM.js} +3 -3
  20. package/dist/{index-YqLRgg7Y.js → index-BJ7AkCbB.js} +2 -2
  21. package/dist/{index-CSl64wAM.js → index-BJFbn7eK.js} +3 -3
  22. package/dist/{index-DPrC3u3G.js → index-BV8-rI9q.js} +3 -3
  23. package/dist/{index-BQMXQ1X0.js → index-BVR1UCrj.js} +2 -2
  24. package/dist/{index-6v9F3V5a.js → index-BVYi3rfK.js} +3 -3
  25. package/dist/{index-Cl-nmu1E.js → index-Bnn8D9vx.js} +1 -1
  26. package/dist/{index-BJOhGaZ4.js → index-Bq_rp1rw.js} +2 -2
  27. package/dist/{index-BTUEzj0j.js → index-BrB6jgrE.js} +2 -2
  28. package/dist/{index-DxBNlXoA.js → index-BxIQyIEM.js} +2 -2
  29. package/dist/{index-DrzUn5zx.js → index-CHQfSnNJ.js} +1 -1
  30. package/dist/{index-jzjOcKYl.js → index-CSHFxbHp.js} +2 -2
  31. package/dist/{index-r-T7O_NL.js → index-Ce9iZFsC.js} +2 -2
  32. package/dist/{index-9bqJP9tH.js → index-ChioR7wt.js} +2 -2
  33. package/dist/{index-CbkZXECS.js → index-Cxjc25sU.js} +3 -3
  34. package/dist/{index-CLFvRsjI.js → index-D-dP3cGJ.js} +2 -2
  35. package/dist/{index-BhwTs4qO.js → index-D1bnU20t.js} +2 -2
  36. package/dist/{index-CwFhzKly.js → index-DAVD3o_T.js} +2 -2
  37. package/dist/{index-DHtjlchw.js → index-DNNqAs8a.js} +168 -149
  38. package/dist/{index-C1Ew74_3.js → index-DOyoMEXD.js} +1 -1
  39. package/dist/{index-CRyXfD1E.js → index-DRu1a_M6.js} +2 -2
  40. package/dist/{index-C8ZmRWFO.js → index-DZ_chfLG.js} +4 -4
  41. package/dist/{index-Dp514iQN.js → index-DjHFRe8n.js} +3 -3
  42. package/dist/{index-CJNVJa0j.js → index-DloaUH4l.js} +2 -2
  43. package/dist/{index-CMBdCQdv.js → index-Es4YDRo8.js} +1 -1
  44. package/dist/{index-BTYJa5FX.js → index-LgYJM2d4.js} +1 -1
  45. package/dist/{index-DGEWt4fq.js → index-ZSXgrukM.js} +1 -1
  46. package/dist/{index-DXJ2ZLjB.js → index-h65oY0wv.js} +1 -1
  47. package/dist/{index-e2fj0ZUQ.js → index-vYnnD6AY.js} +1 -1
  48. package/dist/{index-BJg7lRhl.js → index-zmFqYyCW.js} +2 -2
  49. package/dist/index.es.js +2 -2
  50. package/dist/{mb-render-C7bYBZNr.js → mb-render-HYBbL4je.js} +1 -1
  51. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Bj9EoXh1.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-NbLtIf54.js} +1 -1
  52. package/dist/{pagination-design-DvuhHy_g.js → pagination-design-C33n_knS.js} +2 -2
  53. package/dist/paper-widget-design-BSEiISrR.js +4 -0
  54. package/dist/{print-runtime-instance-CjKnPN_O.js → print-runtime-instance-DKxmOdjq.js} +1 -1
  55. package/dist/{print-snapshot-renderer-Cjtv_a17.js → print-snapshot-renderer-DplvMCOJ.js} +3 -3
  56. package/dist/{qrcode-design-Bmz1I857.js → qrcode-design-CSsYRa59.js} +1 -1
  57. package/dist/{revo-grid.entry-BORGM9ol.js → revo-grid.entry-Be97ST99.js} +1 -1
  58. package/dist/{revogr-attribution_7.entry-Bbt9xrbj.js → revogr-attribution_7.entry-DY55EHUK.js} +3 -3
  59. package/dist/{revogr-clipboard_3.entry-BALlsgGo.js → revogr-clipboard_3.entry-BBOcVxnm.js} +2 -2
  60. package/dist/{revogr-data_4.entry-C5gCRtZO.js → revogr-data_4.entry-BbfKmCSr.js} +2 -2
  61. package/dist/{revogr-filter-panel.entry-0bOrAEF0.js → revogr-filter-panel.entry-CQgUZAYK.js} +1 -1
  62. package/dist/seal-design-C1pRzFqT.js +4 -0
  63. package/dist/{serialnumber-design-DqpV7rjc.js → serialnumber-design-B_Vr6PTs.js} +1 -1
  64. package/dist/shared/index.es.js +6 -6
  65. package/dist/{single-field-drop-DME3ih-W.js → single-field-drop-DDCsNS3W.js} +2 -2
  66. package/dist/{size-editor-BwDIwzDh.js → size-editor-BQqwHGX-.js} +1 -1
  67. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +3 -1
  68. package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +2 -0
  69. package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +2 -0
  70. package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +6 -2
  71. package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +2 -0
  72. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +12 -0
  73. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +9 -1
  74. package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/hooks/useObjectInit.d.ts +1 -0
  75. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +6 -0
  76. package/dist/src/online-form/src/views/designer/types/index.d.ts +2 -0
  77. package/dist/{sub-table-factory-9_e9NXAk.js → sub-table-factory-BpyB5OlC.js} +2 -2
  78. package/dist/{text-design-CCgUDgoT.js → text-design-6ExcVDYW.js} +2 -2
  79. package/dist/{throttle-Cpk1LoGk-DEt1jg2L.js → throttle-Cpk1LoGk-Bg_Bed1e.js} +1 -1
  80. package/dist/{timediff-design-DDss5fNj.js → timediff-design-BEVJAK71.js} +1 -1
  81. package/dist/{trace-like-wrapper-BUq72oS3.js → trace-like-wrapper-CBpVK8U6.js} +2 -2
  82. package/dist/{value-editor.vue_vue_type_style_index_0_lang-WNhb31ms.js → value-editor.vue_vue_type_style_index_0_lang-mSchVPf0.js} +2 -2
  83. package/dist/web-render/index.es.js +3 -3
  84. package/dist/{widget-barcode-BZnKdE1G.js → widget-barcode-BMA-mWsJ.js} +4 -4
  85. package/dist/{widget-diagonal-BklDdpSM.js → widget-diagonal-DA3UW7np.js} +3 -3
  86. package/dist/{widget-image-C_UvhchS.js → widget-image-aDBxxk8w.js} +5 -5
  87. package/dist/{widget-line-DY28Dncn.js → widget-line-BxocSAh7.js} +2 -2
  88. package/dist/{widget-pagination-CfYnms-D.js → widget-pagination-Colzk2mT.js} +5 -5
  89. package/dist/{widget-power-CoFnc1vr.js → widget-power-Cbet700Q.js} +3 -3
  90. package/dist/{widget-qrcode-CKMRpndx.js → widget-qrcode-DgjnrEVt.js} +3 -3
  91. package/dist/{widget-rangelimit-yZ0Omj6J.js → widget-rangelimit-B9vhV0nA.js} +3 -3
  92. package/dist/{widget-serialnumber-SYVYekOJ.js → widget-serialnumber-D8EJ1fV-.js} +1 -1
  93. package/dist/{widget-text-D6vtAr4i.js → widget-text-D-vER3xP.js} +5 -5
  94. package/dist/{widget-timediff-FSvEPH5s.js → widget-timediff-gbfqYExJ.js} +2 -2
  95. package/package.json +1 -1
  96. package/dist/paper-widget-design-CAz9s6te.js +0 -4
  97. package/dist/seal-design-BDuIghlX.js +0 -4
@@ -1,17 +1,17 @@
1
1
  import * as Vue from "vue";
2
2
  import { createVNode, computed, unref, ref, 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, withKeys, vModelText, isRef, provide, isVNode as isVNode$1, createApp, render, TransitionGroup, toRefs, onScopeDispose, useCssVars, onBeforeMount, createSlots, toRef, mergeDefaults, toHandlers, getCurrentInstance as getCurrentInstance$1, useAttrs, 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 SubTableType, h as getAllBusinessRefModelTypes, D as DateObjectContext, j as isBlank$1, F as FIELD_TYPE, k as isSameFieldValue$1, l as runDateObjectHandler, m as companionIdKey, n as companionLabelKey, P as PaginationFormat, o as PaperWidgeType, B as BwipCodeType, L as LineType, p as PageSizeEnum, O as Orientation, s as src, T as TRACE_FIELD_TYPES, q as BUSINESS_FIELD_TYPES, t as resolveFieldRenderComponent, C as ComponentTypeEnum, u as parse$1, v as estraverse, w as Syntax, x as isDynamicCreateTarget, y as CellType, z as isDynamicCellSubTable, A as ParamModelTypeEnum, E as api, G as FieldTypeToJs, H as CreateType, I as uuid2, J as useModal, K as requireEstraverse, M as commonjsGlobal, N as getDefaultExportFromCjs, Q as PaperWidgeValueType, R as onlineFormMasterModelTypeEnum, W as WAREHOUSE_FIELD_TYPES, U as UniqueConstraintType, V as FieldDefaultValueTypeEnum, X as FormTypeEnum, Y as mitt, Z as isDateObjectField, _ as PlatformEnum, $ as LabelPosition, a0 as BooleanShowMode, a1 as SignatureImageDirectionEnum, a2 as FallbackSignTypeEnum, a3 as SignatureNumberTypeEnum, a4 as SignatureTimeTypeEnum, a5 as SignShowTypeEnum, a6 as SignatureTypeEnum, a7 as _export_sfc, a8 as normalizeFieldType, a9 as PaperSizeMap, aa as getFieldMain, ab as buildUUID, ac as FieldIconMap, ad as BigNumber, ae as FieldSysVarDefaultValueEnum, af as CellWidgetViewState, ag as DiagonalDirection, ah as WidgetImageSizeMode, ai as LineDirection, aj as TimeDiffFormat, ak as DiagonalVertex, al as resolveDiagonalVertex, am as getThemeColorByTableType, an as ViewTypeEnum, ao as isDynamicSubTablePanelType, ap as isFixedSubTablePanelType, aq as ExpressionModeEnum, ar as ReturnTypeEnum, as as ExpressionTabEnum, at as RangeValidateMode, au as RangeCompareOp, av as DecimalDisplayMode$1, aw as ImageDisplayModeEnum, ax as FormDesignEnum, ay as BASIC_FIELD_TYPES, az as getExclusiveBusinessTypeTokens, aA as getSubTableTypeByRefModelType, aB as getAllTableProfiles, aC as transformUtils, aD as EmptySymbol, aE as ASSIGNMENTSTRATEGY_ENUM, aF as Dependency_ENUM, aG as EntityModelCategoryEnum, aH as resolveLotDisplayLabel, aI as CheckDsTypeEnum, aJ as DeviceLink, aK as DeviceParamsTypeTitle, aL as AITooltips, aM as DenoiseMethodOptions, aN as BinarizeMethodOptions, aO as JoinModelTypeEum, aP as sqlUtils, aQ as DateFormat, aR as LOT_CONTAINER_ROLE, aS as buildLotSnListQuery, aT as renderUtils, aU as resolveLotRecordByValue, aV as materialCheck, aW as getLotLockedReason, aX as validateReinspectionDate, aY as buildMaterialLotListQuery, aZ as ProductionIdentificationTypeEnum, a_ as BindCmpStyleEnum, a$ as getParseRuleInfo, b0 as getParseRuleValue, b1 as normalizeRefLoaderResult, b2 as STOCKTAKE_DIMENSION, b3 as F, b4 as resolveStocktakeSelectApi, b5 as RenderModeEnum, b6 as normalizeProductionContainerOptions, b7 as buildProductionLotListQuery, b8 as refUtils, b9 as buildInspectionLotListQuery, ba as buildDeviceFilterQuery, bb as DEVICE_GROUP_QUERY_KEY, bc as getRowId, bd as findRuntimeTableRow, be as findRuntimeParentRow, bf as useOnlineFormTransformField2Component, bg as FormulaRuleFieldKeyEnum, bh as formulaRuleFieldDict, bi as resolveDesignPanelFeatures, bj as BIZ_TABLE_CONFIG_SEED_TYPES, bk as STOCKTAKE_DIMENSION_OPTIONS, bl as isRepeatingSubTablePanelType, bm as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DTkBFPUl.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 SubTableType, h as getAllBusinessRefModelTypes, D as DateObjectContext, j as isBlank$1, F as FIELD_TYPE, k as isSameFieldValue$1, l as runDateObjectHandler, m as companionIdKey, n as companionLabelKey, P as PaginationFormat, o as PaperWidgeType, B as BwipCodeType, L as LineType, p as PageSizeEnum, O as Orientation, s as src, T as TRACE_FIELD_TYPES, q as BUSINESS_FIELD_TYPES, t as resolveFieldRenderComponent, C as ComponentTypeEnum, u as parse$1, v as estraverse, w as Syntax, x as isDynamicCreateTarget, y as CellType, z as isDynamicCellSubTable, A as ParamModelTypeEnum, E as api, G as FieldTypeToJs, H as CreateType, I as uuid2, J as useModal, K as requireEstraverse, M as commonjsGlobal, N as getDefaultExportFromCjs, Q as PaperWidgeValueType, R as onlineFormMasterModelTypeEnum, W as WAREHOUSE_FIELD_TYPES, U as UniqueConstraintType, V as FieldDefaultValueTypeEnum, X as FormTypeEnum, Y as mitt, Z as isDateObjectField, _ as PlatformEnum, $ as LabelPosition, a0 as BooleanShowMode, a1 as SignatureImageDirectionEnum, a2 as FallbackSignTypeEnum, a3 as SignatureNumberTypeEnum, a4 as SignatureTimeTypeEnum, a5 as SignShowTypeEnum, a6 as SignatureTypeEnum, a7 as _export_sfc, a8 as normalizeFieldType, a9 as PaperSizeMap, aa as getFieldMain, ab as buildUUID, ac as FieldIconMap, ad as BigNumber, ae as FieldSysVarDefaultValueEnum, af as CellWidgetViewState, ag as DiagonalDirection, ah as WidgetImageSizeMode, ai as LineDirection, aj as TimeDiffFormat, ak as DiagonalVertex, al as resolveDiagonalVertex, am as getThemeColorByTableType, an as ViewTypeEnum, ao as isDynamicSubTablePanelType, ap as isFixedSubTablePanelType, aq as ExpressionModeEnum, ar as ReturnTypeEnum, as as ExpressionTabEnum, at as RangeValidateMode, au as RangeCompareOp, av as DecimalDisplayMode$1, aw as ImageDisplayModeEnum, ax as FormDesignEnum, ay as BASIC_FIELD_TYPES, az as getExclusiveBusinessTypeTokens, aA as getSubTableTypeByRefModelType, aB as getAllTableProfiles, aC as transformUtils, aD as EmptySymbol, aE as ASSIGNMENTSTRATEGY_ENUM, aF as Dependency_ENUM, aG as EntityModelCategoryEnum, aH as resolveLotDisplayLabel, aI as CheckDsTypeEnum, aJ as DeviceLink, aK as DeviceParamsTypeTitle, aL as AITooltips, aM as DenoiseMethodOptions, aN as BinarizeMethodOptions, aO as JoinModelTypeEum, aP as sqlUtils, aQ as DateFormat, aR as LOT_CONTAINER_ROLE, aS as buildLotSnListQuery, aT as renderUtils, aU as resolveLotRecordByValue, aV as materialCheck, aW as getLotLockedReason, aX as validateReinspectionDate, aY as buildMaterialLotListQuery, aZ as ProductionIdentificationTypeEnum, a_ as BindCmpStyleEnum, a$ as getParseRuleInfo, b0 as getParseRuleValue, b1 as normalizeRefLoaderResult, b2 as STOCKTAKE_DIMENSION, b3 as F, b4 as resolveStocktakeSelectApi, b5 as RenderModeEnum, b6 as normalizeProductionContainerOptions, b7 as buildProductionLotListQuery, b8 as refUtils, b9 as buildInspectionLotListQuery, ba as buildDeviceFilterQuery, bb as DEVICE_GROUP_QUERY_KEY, bc as getRowId, bd as findRuntimeTableRow, be as findRuntimeParentRow, bf as useOnlineFormTransformField2Component, bg as FormulaRuleFieldKeyEnum, bh as formulaRuleFieldDict, bi as resolveDesignPanelFeatures, bj as BIZ_TABLE_CONFIG_SEED_TYPES, bk as STOCKTAKE_DIMENSION_OPTIONS, bl as isRepeatingSubTablePanelType, bm as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang--M6ES58_.js";
4
4
  import { range, cloneDeep, get as get$3, 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 * as Antd from "ant-design-vue";
7
7
  import { message, Modal, Alert, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, Input, Tree, Transfer, Select, Tag, AutoComplete, TimePicker, DatePicker, Textarea, TreeSelect, CheckboxGroup, Checkbox, Radio, RadioGroup } from "ant-design-vue";
8
- import { M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, g as getBusinessFieldKey, b as MULTI_SHEET_SCHEMA_VERSION, n as normalizeGridColumnWidth, c as getParseFormulaVarInfos, d as createRuntimeDocumentV2, e as clampSealPosition, f as normalizeSealDiameter, h as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, i as isCellAutoLineBreak, B as BorderTD, u as useFormTmplConfig, j as normalizeHistoricalBusinessRow, k as DeviceLinkTmplUtil, l as normalizeAIOcrTmpl, m as useWidgetStaticAttrs, o as useRuntimeInstanceServices, s as setSelectValidatorId, p as setSelectAnnotationId, q as useRuntimeRowState, r as getObjectBomMaterialLotQuery, t as buildObjectLotExtraQuery, v as resolveObjectFieldKeys, w as MaterialConsumptionPatternEnum, x as validateObjectBomForScan, y as resolveObjectBomEntry, z as runWithFillProduct, A as useNocodeFormWidget, C as applyConsumeObjectTraceChange, E as getObjectBomProductQuery, F as EMPTY_PRODUCT_VERSION_ID, G as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, H as readSealValue, I as isSealStamped, J as stampSealValue, K as isValidSealValue, L as clearSealValue, O as parseRuntimeFieldPath, P as calculateFormula, Q as useStyles, R as useDependency, S as useFieldPresentation, T as useRuntimeEditorFlusher, U as RuntimeFormStateStore, V as createRuntimeInstanceContext, W as RuntimeInstanceRegistry, X as ScanParamType, Y as RequiredQtyCalcRule, Z as registerFormulaFuncs, _ as moveSealValue, $ as DocumentPaper, a0 as DynamicTableAction, a1 as _sfc_main$6w } from "./dynamic-table-action-ZAmTIvcp.js";
9
- import { S as SEARCH_SEVICE, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6u, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Bj9EoXh1.js";
8
+ import { M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, g as getBusinessFieldKey, b as MULTI_SHEET_SCHEMA_VERSION, n as normalizeGridColumnWidth, c as getParseFormulaVarInfos, d as createRuntimeDocumentV2, e as clampSealPosition, f as normalizeSealDiameter, h as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, i as isCellAutoLineBreak, B as BorderTD, u as useFormTmplConfig, j as normalizeHistoricalBusinessRow, k as DeviceLinkTmplUtil, l as normalizeAIOcrTmpl, m as useWidgetStaticAttrs, o as useRuntimeInstanceServices, s as setSelectValidatorId, p as setSelectAnnotationId, q as useRuntimeRowState, r as getObjectBomMaterialLotQuery, t as buildObjectLotExtraQuery, v as resolveObjectFieldKeys, w as MaterialConsumptionPatternEnum, x as validateObjectBomForScan, y as resolveObjectBomEntry, z as runWithFillProduct, A as useNocodeFormWidget, C as applyConsumeObjectTraceChange, E as getObjectBomProductQuery, F as EMPTY_PRODUCT_VERSION_ID, G as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, H as readSealValue, I as isSealStamped, J as stampSealValue, K as isValidSealValue, L as clearSealValue, O as parseRuntimeFieldPath, P as calculateFormula, Q as useStyles, R as useDependency, S as useFieldPresentation, T as useRuntimeEditorFlusher, U as RuntimeFormStateStore, V as createRuntimeInstanceContext, W as RuntimeInstanceRegistry, X as ScanParamType, Y as RequiredQtyCalcRule, Z as registerFormulaFuncs, _ as moveSealValue, $ as DocumentPaper, a0 as DynamicTableAction, a1 as _sfc_main$6w } from "./dynamic-table-action-DFabTKVv.js";
9
+ import { S as SEARCH_SEVICE, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6u, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-NbLtIf54.js";
10
10
  import { I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, a as useNamespace } from "./AntdIcon-DCIaV352.js";
11
- import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6v, h as initWebNocodeAdapter } from "./index-KGWuZtk7.js";
11
+ import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6v, h as initWebNocodeAdapter } from "./index-B-wN9cvQ.js";
12
12
  import { useFormBaseModal, FormBaseModalPlugin } from "@gct-paas/form-base";
13
13
  import { Tooltip, Grid, Table, Column, Icon as Icon$2, Edit, Validator, VxeGrid } from "vxe-table";
14
- import { u as useFormModel, F as FormModelController } from "./mb-render-C7bYBZNr.js";
14
+ import { u as useFormModel, F as FormModelController } from "./mb-render-HYBbL4je.js";
15
15
  import { HttpUtil } from "@gct-paas/api";
16
16
  import { useModal as useModal$1, t as t$2 } from "@gct-paas/core";
17
17
  import { useRoute } from "vue-router";
@@ -1931,7 +1931,7 @@ function openWindow(url, opt) {
1931
1931
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
1932
1932
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
1933
1933
  async function createWorkbook() {
1934
- const ExcelJs = (await import("./exceljs.min-BdYR3omv.js").then((n) => n.e)).default;
1934
+ const ExcelJs = (await import("./exceljs.min-vOmepi6j.js").then((n) => n.e)).default;
1935
1935
  return new ExcelJs.Workbook();
1936
1936
  }
1937
1937
  class XlsxParser {
@@ -2302,39 +2302,39 @@ class XlsxParser {
2302
2302
  }
2303
2303
  function asyncImportClassModules() {
2304
2304
  const modules = /* @__PURE__ */ Object.assign({
2305
- "./_field_/auto-complete/index.ts": () => import("./index-Dp514iQN.js").then((m) => m["default"]),
2306
- "./_field_/datepicker/index.ts": () => import("./index-CLFvRsjI.js").then((m) => m["default"]),
2307
- "./_field_/datetimepicker/index.ts": () => import("./index-CJNVJa0j.js").then((m) => m["default"]),
2308
- "./_field_/department/index.ts": () => import("./index-BhwTs4qO.js").then((m) => m["default"]),
2309
- "./_field_/enum-select/index.ts": () => import("./index-BMTx6T5g.js").then((m) => m["default"]),
2310
- "./_field_/input/index.ts": () => import("./index-BJOhGaZ4.js").then((m) => m["default"]),
2311
- "./_field_/inputdouble/index.ts": () => import("./index-DxBNlXoA.js").then((m) => m["default"]),
2312
- "./_field_/inputnumber/index.ts": () => import("./index-jzjOcKYl.js").then((m) => m["default"]),
2313
- "./_field_/rdo-select/index.ts": () => import("./index-CSl64wAM.js").then((m) => m["default"]),
2314
- "./_field_/seal/index.ts": () => import("./index-DPrC3u3G.js").then((m) => m["default"]),
2315
- "./_field_/select/index.ts": () => import("./index-CbkZXECS.js").then((m) => m["default"]),
2316
- "./_field_/sign/index.ts": () => import("./index-C3YwX02a.js").then((m) => m["default"]),
2317
- "./_field_/switch/index.ts": () => import("./index-C8ZmRWFO.js").then((m) => m["default"]),
2318
- "./_field_/textarea/index.ts": () => import("./index-BJg7lRhl.js").then((m) => m["default"]),
2319
- "./_field_/timepicker/index.ts": () => import("./index-CRyXfD1E.js").then((m) => m["default"]),
2320
- "./_field_/upload-file/index.ts": () => import("./index-YqLRgg7Y.js").then((m) => m["default"]),
2321
- "./_field_/upload-image/index.ts": () => import("./index-r-T7O_NL.js").then((m) => m["default"]),
2322
- "./_field_/userpicker/index.ts": () => import("./index-BYLb70Wd.js").then((m) => m["default"]),
2323
- "./_widget_/barcode/index.ts": () => import("./index-DGEWt4fq.js").then((m) => m["default"]),
2324
- "./_widget_/combine-fields/index.ts": () => import("./index-CwFhzKly.js").then((m) => m["default"]),
2325
- "./_widget_/diagonal/index.ts": () => import("./index-BQMXQ1X0.js").then((m) => m["default"]),
2326
- "./_widget_/dyn-value/index.ts": () => import("./index-BTUEzj0j.js").then((m) => m["default"]),
2327
- "./_widget_/image/index.ts": () => import("./index-CMBdCQdv.js").then((m) => m["default"]),
2328
- "./_widget_/line/index.ts": () => import("./index-BTYJa5FX.js").then((m) => m["default"]),
2329
- "./_widget_/power/index.ts": () => import("./index-C1Ew74_3.js").then((m) => m["default"]),
2330
- "./_widget_/qrcode/index.ts": () => import("./index-DrzUn5zx.js").then((m) => m["default"]),
2331
- "./_widget_/ro/index.ts": () => import("./index-DXJ2ZLjB.js").then((m) => m["default"]),
2332
- "./_widget_/serialnumber/index.ts": () => import("./index-BJh9up1X.js").then((m) => m["default"]),
2333
- "./_widget_/sub-table/index.ts": () => import("./index-e2fj0ZUQ.js").then((m) => m["default"]),
2334
- "./_widget_/timediff/index.ts": () => import("./index-Cl-nmu1E.js").then((m) => m["default"]),
2335
- "./paper/index.ts": () => import("./index-CAeGCpqZ.js").then((m) => m["default"]),
2336
- "./td/index.ts": () => import("./index-6v9F3V5a.js").then((m) => m["default"]),
2337
- "./tr/index.ts": () => import("./index-9bqJP9tH.js").then((m) => m["default"])
2305
+ "./_field_/auto-complete/index.ts": () => import("./index-DjHFRe8n.js").then((m) => m["default"]),
2306
+ "./_field_/datepicker/index.ts": () => import("./index-D-dP3cGJ.js").then((m) => m["default"]),
2307
+ "./_field_/datetimepicker/index.ts": () => import("./index-DloaUH4l.js").then((m) => m["default"]),
2308
+ "./_field_/department/index.ts": () => import("./index-D1bnU20t.js").then((m) => m["default"]),
2309
+ "./_field_/enum-select/index.ts": () => import("./index-BH2VaJgM.js").then((m) => m["default"]),
2310
+ "./_field_/input/index.ts": () => import("./index-Bq_rp1rw.js").then((m) => m["default"]),
2311
+ "./_field_/inputdouble/index.ts": () => import("./index-BxIQyIEM.js").then((m) => m["default"]),
2312
+ "./_field_/inputnumber/index.ts": () => import("./index-CSHFxbHp.js").then((m) => m["default"]),
2313
+ "./_field_/rdo-select/index.ts": () => import("./index-BJFbn7eK.js").then((m) => m["default"]),
2314
+ "./_field_/seal/index.ts": () => import("./index-BV8-rI9q.js").then((m) => m["default"]),
2315
+ "./_field_/select/index.ts": () => import("./index-Cxjc25sU.js").then((m) => m["default"]),
2316
+ "./_field_/sign/index.ts": () => import("./index-2SkzLFoC.js").then((m) => m["default"]),
2317
+ "./_field_/switch/index.ts": () => import("./index-DZ_chfLG.js").then((m) => m["default"]),
2318
+ "./_field_/textarea/index.ts": () => import("./index-zmFqYyCW.js").then((m) => m["default"]),
2319
+ "./_field_/timepicker/index.ts": () => import("./index-DRu1a_M6.js").then((m) => m["default"]),
2320
+ "./_field_/upload-file/index.ts": () => import("./index-BJ7AkCbB.js").then((m) => m["default"]),
2321
+ "./_field_/upload-image/index.ts": () => import("./index-Ce9iZFsC.js").then((m) => m["default"]),
2322
+ "./_field_/userpicker/index.ts": () => import("./index-5B4uB3JL.js").then((m) => m["default"]),
2323
+ "./_widget_/barcode/index.ts": () => import("./index-ZSXgrukM.js").then((m) => m["default"]),
2324
+ "./_widget_/combine-fields/index.ts": () => import("./index-DAVD3o_T.js").then((m) => m["default"]),
2325
+ "./_widget_/diagonal/index.ts": () => import("./index-BVR1UCrj.js").then((m) => m["default"]),
2326
+ "./_widget_/dyn-value/index.ts": () => import("./index-BrB6jgrE.js").then((m) => m["default"]),
2327
+ "./_widget_/image/index.ts": () => import("./index-Es4YDRo8.js").then((m) => m["default"]),
2328
+ "./_widget_/line/index.ts": () => import("./index-LgYJM2d4.js").then((m) => m["default"]),
2329
+ "./_widget_/power/index.ts": () => import("./index-DOyoMEXD.js").then((m) => m["default"]),
2330
+ "./_widget_/qrcode/index.ts": () => import("./index-CHQfSnNJ.js").then((m) => m["default"]),
2331
+ "./_widget_/ro/index.ts": () => import("./index-h65oY0wv.js").then((m) => m["default"]),
2332
+ "./_widget_/serialnumber/index.ts": () => import("./index-BEVtkZps.js").then((m) => m["default"]),
2333
+ "./_widget_/sub-table/index.ts": () => import("./index-vYnnD6AY.js").then((m) => m["default"]),
2334
+ "./_widget_/timediff/index.ts": () => import("./index-Bnn8D9vx.js").then((m) => m["default"]),
2335
+ "./paper/index.ts": () => import("./index-6CT_4Jha.js").then((m) => m["default"]),
2336
+ "./td/index.ts": () => import("./index-BVYi3rfK.js").then((m) => m["default"]),
2337
+ "./tr/index.ts": () => import("./index-ChioR7wt.js").then((m) => m["default"])
2338
2338
  });
2339
2339
  return modules;
2340
2340
  }
@@ -11823,6 +11823,7 @@ const hasSelection = computed(() => {
11823
11823
  return selection$1.t !== 0;
11824
11824
  });
11825
11825
  const copyAndNewCellCache = ref({});
11826
+ let pendingCut;
11826
11827
  const gridLineVisible = ref(true);
11827
11828
  const panelData = reactive({
11828
11829
  type: PanelType.Paper,
@@ -13411,24 +13412,7 @@ function useSpreadSheet() {
13411
13412
  });
13412
13413
  return placedFieldKeys.value.has(fieldKey);
13413
13414
  }
13414
- function getAllSubTableRanges() {
13415
- const subTableRanges = [];
13416
- if (paper$1.value.dynamicTables?.length) {
13417
- subTableRanges.push(...paper$1.value.dynamicTables.map((item) => item.range));
13418
- }
13419
- if (paper$1.value.fixedTables?.length) {
13420
- subTableRanges.push(...paper$1.value.fixedTables.map((item) => item.range));
13421
- }
13422
- return subTableRanges;
13423
- }
13424
- function isInSubTable(range2) {
13425
- const subTableRanges = getAllSubTableRanges();
13426
- return subTableRanges.some((item) => isIn(range2, item));
13427
- }
13428
- function calcSelectionPaperData(range2, excludeOpts = {
13429
- /** 排除子表字段信息 */
13430
- noSubFields: true
13431
- }) {
13415
+ function calcSelectionPaperData(range2) {
13432
13416
  const { l, r, t: t2, b } = range2;
13433
13417
  const cells = [];
13434
13418
  for (let rowIndex = t2; rowIndex <= b; rowIndex++) {
@@ -13436,17 +13420,7 @@ function useSpreadSheet() {
13436
13420
  const copyRow = [];
13437
13421
  for (let colIndex = l; colIndex <= r; colIndex++) {
13438
13422
  const cell = row[colIndex - 1];
13439
- const cloneCell = cloneDeep(cell);
13440
- if (excludeOpts.noSubFields) {
13441
- if (cloneCell.type === CellType.Field && cloneCell.fieldMeta?.model !== doc.value.modelKey) {
13442
- clearCellConfig(cloneCell);
13443
- } else if (cloneCell.multiFields && cloneCell.multiFieldsContent?.some(
13444
- (item) => item.fieldMeta && item.fieldMeta.model !== doc.value.modelKey
13445
- )) {
13446
- clearCellConfig(cloneCell);
13447
- }
13448
- }
13449
- copyRow.push(cloneCell);
13423
+ copyRow.push(cloneDeep(cell));
13450
13424
  }
13451
13425
  cells.push(copyRow);
13452
13426
  }
@@ -13480,18 +13454,57 @@ function useSpreadSheet() {
13480
13454
  const rangesBStr = rangesB.filter((item) => isValidMergeCell(item)).sort(sortCompare).map((item) => `${item.t}-${item.l}-${item.b}-${item.r}`).join(",");
13481
13455
  return rangesAStr === rangesBStr;
13482
13456
  }
13457
+ function hasClipboardFields(cells) {
13458
+ return cells.some(
13459
+ (row) => row.some(
13460
+ (cell) => [cell, ...cell.multiFieldsContent ?? []].some(
13461
+ (item) => item.type === CellType.Field || !!item.fieldMeta || !!item.fieldWidget
13462
+ )
13463
+ )
13464
+ );
13465
+ }
13466
+ function getClipboardFieldCounts(cells) {
13467
+ const counts = /* @__PURE__ */ new Map();
13468
+ cells.forEach((row) => {
13469
+ row.forEach((cell) => {
13470
+ [cell, ...cell.multiFieldsContent ?? []].forEach(({ fieldMeta }) => {
13471
+ if (!fieldMeta?.field) return;
13472
+ const key = getBusinessFieldKey({
13473
+ modelKey: fieldMeta.model ?? fieldMeta.modelLink,
13474
+ fieldId: fieldMeta.field
13475
+ });
13476
+ counts.set(key, (counts.get(key) ?? 0) + 1);
13477
+ });
13478
+ });
13479
+ });
13480
+ return counts;
13481
+ }
13482
+ function getPlacedClipboardFieldCounts() {
13483
+ return getClipboardFieldCounts(
13484
+ sheetsData.value.flatMap(({ paper: sheetPaper }) => [
13485
+ ...sheetPaper.cells,
13486
+ (sheetPaper.floatingFields ?? []).map(({ fieldMeta }) => ({ fieldMeta }))
13487
+ ])
13488
+ );
13489
+ }
13490
+ function getClipboardCellContext(x, y) {
13491
+ const info = judgeCellInfo(x, y);
13492
+ return info ? JSON.stringify([info.modelKey, info.refFieldKey, info.dataGroup2D?.colModel]) : "";
13493
+ }
13483
13494
  function copy() {
13484
13495
  if (!hasSelection.value) {
13485
13496
  message.error($t("sys.onlineForm.pleaseSelectContentToCopyFirst"));
13486
13497
  return;
13487
13498
  }
13488
13499
  const selectionPaperData = calcSelectionPaperData(pick(selection$1, ["t", "l", "b", "r"]));
13500
+ if (hasClipboardFields(selectionPaperData.cells)) return;
13489
13501
  return {
13490
13502
  documentId: doc.value.id,
13491
13503
  ...selectionPaperData
13492
13504
  };
13493
13505
  }
13494
13506
  function paste(type, data) {
13507
+ if (sheetReadonly.value) return;
13495
13508
  if (!hasSelection.value) {
13496
13509
  message.error($t("sys.onlineForm.pleaseSelectAreaToPasteFirst"));
13497
13510
  return;
@@ -13499,6 +13512,17 @@ function useSpreadSheet() {
13499
13512
  if (type === "online-form" || type === "html") {
13500
13513
  const copyData = type === "html" ? parseHtml(data) : data;
13501
13514
  const isSameDoc = copyData.documentId === doc.value.id;
13515
+ const cutData = pendingCut;
13516
+ const isCut = !!(type === "online-form" && isSameDoc && cutData?.document === doc.value && copyData.cutId && cutData?.payload === JSON.stringify(copyData));
13517
+ const containsFields = hasClipboardFields(copyData.cells);
13518
+ if (containsFields) {
13519
+ if (!isCut || !cutData) return;
13520
+ const currentCounts = getPlacedClipboardFieldCounts();
13521
+ if (Array.from(cutData.remainingFieldCounts).some(
13522
+ ([key, count]) => (currentCounts.get(key) ?? 0) !== count
13523
+ ))
13524
+ return;
13525
+ }
13502
13526
  const rowNum = copyData.cells.length;
13503
13527
  const colNum = copyData.cells[0].length;
13504
13528
  const pasteRange = {
@@ -13514,6 +13538,12 @@ function useSpreadSheet() {
13514
13538
  });
13515
13539
  return;
13516
13540
  }
13541
+ if (containsFields && cutData && copyData.cells.some(
13542
+ (row, rowIndex) => row.some(
13543
+ (cell, colIndex) => hasClipboardFields([[cell]]) && cutData.contexts[rowIndex]?.[colIndex] !== getClipboardCellContext(pasteRange.l + colIndex, pasteRange.t + rowIndex)
13544
+ )
13545
+ ))
13546
+ return;
13517
13547
  const pasteAreaPaperData = calcSelectionPaperData(pasteRange);
13518
13548
  let isAllowPaste = false;
13519
13549
  if (pasteAreaPaperData.mergedCells.length === 0) {
@@ -13544,12 +13574,6 @@ function useSpreadSheet() {
13544
13574
  const paperCell = paper$1.value.cells[t2 + rowIndex - 1][l + colIndex - 1];
13545
13575
  const copyCell = copyData.cells[rowIndex][colIndex];
13546
13576
  if (isSameDoc) {
13547
- if (isInSubTable({ t: t2 + rowIndex, l: l + colIndex, b: t2 + rowIndex, r: l + colIndex })) {
13548
- copyCell.fieldMeta = void 0;
13549
- copyCell.multiFieldsContent = void 0;
13550
- copyCell.multiFields = void 0;
13551
- copyCell.type = copyCell.type === CellType.Field ? CellType.Default : copyCell.type;
13552
- }
13553
13577
  clearCell(paperCell);
13554
13578
  paperCell.border = void 0;
13555
13579
  Object.assign(paperCell, copyCell);
@@ -13563,6 +13587,7 @@ function useSpreadSheet() {
13563
13587
  }
13564
13588
  });
13565
13589
  });
13590
+ if (isCut) pendingCut = void 0;
13566
13591
  return;
13567
13592
  }
13568
13593
  if (type === "text") {
@@ -13758,7 +13783,7 @@ function useSpreadSheet() {
13758
13783
  element.remove();
13759
13784
  }
13760
13785
  }
13761
- const writeClipboard = async (copyData, event2) => {
13786
+ const writeClipboard = (copyData, event2) => {
13762
13787
  const payload = JSON.stringify({
13763
13788
  _type: CopyTransferKey,
13764
13789
  data: copyData
@@ -13771,9 +13796,43 @@ function useSpreadSheet() {
13771
13796
  };
13772
13797
  function copyAndWrite(event2) {
13773
13798
  const copyData = copy();
13774
- if (copyData) {
13775
- writeClipboard(copyData, event2);
13799
+ if (!copyData) return false;
13800
+ writeClipboard(copyData, event2);
13801
+ pendingCut = void 0;
13802
+ return true;
13803
+ }
13804
+ function cutAndWrite(event2) {
13805
+ if (sheetReadonly.value || !hasSelection.value) return false;
13806
+ const data = {
13807
+ documentId: doc.value.id,
13808
+ cutId: uuid2(16),
13809
+ ...calcSelectionPaperData(pick(selection$1, ["t", "l", "b", "r"]))
13810
+ };
13811
+ const fieldCounts = getClipboardFieldCounts(data.cells);
13812
+ const placedCounts = getPlacedClipboardFieldCounts();
13813
+ const cutData = {
13814
+ document: doc.value,
13815
+ payload: JSON.stringify(data),
13816
+ contexts: data.cells.map(
13817
+ (row, rowIndex) => row.map(
13818
+ (_cell, colIndex) => getClipboardCellContext(selection$1.l + colIndex, selection$1.t + rowIndex)
13819
+ )
13820
+ ),
13821
+ remainingFieldCounts: new Map(
13822
+ Array.from(
13823
+ fieldCounts,
13824
+ ([key, count]) => [key, (placedCounts.get(key) ?? 0) - count]
13825
+ )
13826
+ )
13827
+ };
13828
+ try {
13829
+ writeClipboard(data, event2);
13830
+ } catch {
13831
+ return false;
13776
13832
  }
13833
+ resetRange();
13834
+ pendingCut = cutData;
13835
+ return true;
13777
13836
  }
13778
13837
  async function parsePaste(event2) {
13779
13838
  function isOnlineFormData(str) {
@@ -13807,6 +13866,7 @@ function useSpreadSheet() {
13807
13866
  }
13808
13867
  }
13809
13868
  async function copyAndNew() {
13869
+ if (sheetReadonly.value) return;
13810
13870
  const { copyField } = useModelFields();
13811
13871
  const { validateOnlyBusinessKey } = useReverseModeling();
13812
13872
  const { l, r, t: t2, b, e } = selection$1;
@@ -13959,6 +14019,7 @@ function useSpreadSheet() {
13959
14019
  clearCellContent,
13960
14020
  parsePaste,
13961
14021
  copyAndWrite,
14022
+ cutAndWrite,
13962
14023
  copyAndNew
13963
14024
  };
13964
14025
  }
@@ -16051,7 +16112,7 @@ function asyncImportWidgetConfigList() {
16051
16112
  return widgetConfigList;
16052
16113
  }
16053
16114
  function asyncImportWidgetDesign() {
16054
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-BDuIghlX.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-CkIF3AdC.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-CBGnh101.js"), "./image/image-design.vue": () => import("./image-design-CjDaoN6i.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-DvuhHy_g.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-CAz9s6te.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-Bmz1I857.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-DqpV7rjc.js"), "./text/text-design.vue": () => import("./text-design-CCgUDgoT.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-DDss5fNj.js") });
16115
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-C1pRzFqT.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-C_xO0jor.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-BFxBAG3i.js"), "./image/image-design.vue": () => import("./image-design-DAMqKfR4.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-C33n_knS.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-BSEiISrR.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-CSsYRa59.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-B_Vr6PTs.js"), "./text/text-design.vue": () => import("./text-design-6ExcVDYW.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-BEVJAK71.js") });
16055
16116
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16056
16117
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16057
16118
  if (mKey) {
@@ -23008,8 +23069,6 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23008
23069
  sheetReadonly: sheetReadonly2,
23009
23070
  globalSubTables: globalSubTables2,
23010
23071
  clearCellContent,
23011
- resetRange: resetRange2,
23012
- copyAndWrite,
23013
23072
  copyAndNew,
23014
23073
  currentCell: currentCell2
23015
23074
  } = useSpreadSheet();
@@ -23022,11 +23081,8 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23022
23081
  return l === e._l && t2 === e._t && r === e._r && b === e._b;
23023
23082
  });
23024
23083
  const isSingleFieldCell = computed(() => {
23025
- if (currentCell2.value) {
23026
- const { fieldWidget } = currentCell2.value.data;
23027
- return !!fieldWidget;
23028
- }
23029
- return false;
23084
+ const cell = currentCell2.value?.data;
23085
+ return isSelectCell.value && !!cell?.fieldMeta && !!cell.fieldWidget && !cell.multiFields;
23030
23086
  });
23031
23087
  const currentFixedTable = computed(() => {
23032
23088
  const fixedTable = paper2.value.fixedTables?.find(
@@ -23074,7 +23130,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23074
23130
  if (current2DTable.value) {
23075
23131
  menus.push(ContextMenu$1.DataGroup2D);
23076
23132
  }
23077
- menus.push(ContextMenu$1.Copy, ContextMenu$1.Cut, ContextMenu$1.ClearCellContent);
23133
+ menus.push(ContextMenu$1.ClearCellContent);
23078
23134
  if (isSingleFieldCell.value) {
23079
23135
  menus.push(ContextMenu$1.CopyAndNew);
23080
23136
  }
@@ -23134,6 +23190,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23134
23190
  }
23135
23191
  };
23136
23192
  const handleMenuClick = async ({ key }) => {
23193
+ if (sheetReadonly2.value) return;
23137
23194
  switch (key) {
23138
23195
  case ContextMenu$1.InsertColBefore:
23139
23196
  insertCols(selection2.l, formState.leftColNum, selection2.r);
@@ -23176,14 +23233,8 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23176
23233
  case ContextMenu$1.ClearCellContent:
23177
23234
  clearCellContent();
23178
23235
  break;
23179
- case ContextMenu$1.Copy:
23180
- await copyAndWrite();
23181
- break;
23182
- case ContextMenu$1.Cut:
23183
- await copyAndWrite();
23184
- resetRange2();
23185
- break;
23186
23236
  case ContextMenu$1.CopyAndNew:
23237
+ if (!isSingleFieldCell.value) return;
23187
23238
  await copyAndNew();
23188
23239
  await formFieldC.refresh();
23189
23240
  break;
@@ -23220,21 +23271,10 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23220
23271
  overlay: withCtx(() => [
23221
23272
  createVNode(_component_a_menu, { onClick: handleMenuClick }, {
23222
23273
  default: withCtx(() => [
23223
- showMenus.value.includes(unref(ContextMenu$1).Copy) ? (openBlock(), createBlock(_component_a_menu_item, {
23224
- key: unref(ContextMenu$1).Copy
23225
- }, {
23226
- icon: withCtx(() => [..._cache[4] || (_cache[4] = [
23227
- createElementVNode("i", { class: "iconfont !text-[24px] icon-fuzhiq" }, null, -1)
23228
- ])]),
23229
- default: withCtx(() => [
23230
- createTextVNode(" " + toDisplayString$1(_ctx.$t("sys.onlineForm.copy")), 1)
23231
- ]),
23232
- _: 1
23233
- })) : createCommentVNode("", true),
23234
23274
  showMenus.value.includes(unref(ContextMenu$1).CopyAndNew) ? (openBlock(), createBlock(_component_a_menu_item, {
23235
23275
  key: unref(ContextMenu$1).CopyAndNew
23236
23276
  }, {
23237
- icon: withCtx(() => [..._cache[5] || (_cache[5] = [
23277
+ icon: withCtx(() => [..._cache[4] || (_cache[4] = [
23238
23278
  createElementVNode("i", { class: "iconfont !text-[24px] icon-fuzhibingxinjian" }, null, -1)
23239
23279
  ])]),
23240
23280
  default: withCtx(() => [
@@ -23242,32 +23282,10 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23242
23282
  ]),
23243
23283
  _: 1
23244
23284
  })) : createCommentVNode("", true),
23245
- showMenus.value.includes(unref(ContextMenu$1).Cut) ? (openBlock(), createBlock(_component_a_menu_item, {
23246
- key: unref(ContextMenu$1).Cut
23247
- }, {
23248
- icon: withCtx(() => [..._cache[6] || (_cache[6] = [
23249
- createElementVNode("i", { class: "iconfont !text-[24px] icon-jianqie" }, null, -1)
23250
- ])]),
23251
- default: withCtx(() => [
23252
- createTextVNode(" " + toDisplayString$1(_ctx.$t("sys.onlineForm.cut")), 1)
23253
- ]),
23254
- _: 1
23255
- })) : createCommentVNode("", true),
23256
- showMenus.value.includes(unref(ContextMenu$1).Paste) ? (openBlock(), createBlock(_component_a_menu_item, {
23257
- key: unref(ContextMenu$1).Paste
23258
- }, {
23259
- icon: withCtx(() => [..._cache[7] || (_cache[7] = [
23260
- createElementVNode("i", { class: "iconfont !text-[24px] icon-niantie1" }, null, -1)
23261
- ])]),
23262
- default: withCtx(() => [
23263
- createTextVNode(" " + toDisplayString$1(_ctx.$t("sys.onlineForm.paste")), 1)
23264
- ]),
23265
- _: 1
23266
- })) : createCommentVNode("", true),
23267
23285
  showMenus.value.includes(unref(ContextMenu$1).InsertColBefore) ? (openBlock(), createBlock(_component_a_menu_item, {
23268
23286
  key: unref(ContextMenu$1).InsertColBefore
23269
23287
  }, {
23270
- icon: withCtx(() => [..._cache[8] || (_cache[8] = [
23288
+ icon: withCtx(() => [..._cache[5] || (_cache[5] = [
23271
23289
  createElementVNode("i", { class: "iconfont !text-[24px] icon-zuoce1" }, null, -1)
23272
23290
  ])]),
23273
23291
  default: withCtx(() => [
@@ -23282,7 +23300,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23282
23300
  showMenus.value.includes(unref(ContextMenu$1).InsertColAfter) ? (openBlock(), createBlock(_component_a_menu_item, {
23283
23301
  key: unref(ContextMenu$1).InsertColAfter
23284
23302
  }, {
23285
- icon: withCtx(() => [..._cache[9] || (_cache[9] = [
23303
+ icon: withCtx(() => [..._cache[6] || (_cache[6] = [
23286
23304
  createElementVNode("i", { class: "iconfont !text-[24px] icon-youce1" }, null, -1)
23287
23305
  ])]),
23288
23306
  default: withCtx(() => [
@@ -23297,7 +23315,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23297
23315
  showMenus.value.includes(unref(ContextMenu$1).SetColWidth) ? (openBlock(), createBlock(_component_a_menu_item, {
23298
23316
  key: unref(ContextMenu$1).SetColWidth
23299
23317
  }, {
23300
- icon: withCtx(() => [..._cache[10] || (_cache[10] = [
23318
+ icon: withCtx(() => [..._cache[7] || (_cache[7] = [
23301
23319
  createElementVNode("i", { class: "iconfont !text-[24px] icon-hangkuan" }, null, -1)
23302
23320
  ])]),
23303
23321
  default: withCtx(() => [
@@ -23308,7 +23326,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23308
23326
  showMenus.value.includes(unref(ContextMenu$1).InsertRowBefore) ? (openBlock(), createBlock(_component_a_menu_item, {
23309
23327
  key: unref(ContextMenu$1).InsertRowBefore
23310
23328
  }, {
23311
- icon: withCtx(() => [..._cache[11] || (_cache[11] = [
23329
+ icon: withCtx(() => [..._cache[8] || (_cache[8] = [
23312
23330
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shangfang" }, null, -1)
23313
23331
  ])]),
23314
23332
  default: withCtx(() => [
@@ -23323,7 +23341,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23323
23341
  showMenus.value.includes(unref(ContextMenu$1).InsertRowAfter) ? (openBlock(), createBlock(_component_a_menu_item, {
23324
23342
  key: unref(ContextMenu$1).InsertRowAfter
23325
23343
  }, {
23326
- icon: withCtx(() => [..._cache[12] || (_cache[12] = [
23344
+ icon: withCtx(() => [..._cache[9] || (_cache[9] = [
23327
23345
  createElementVNode("i", { class: "iconfont !text-[24px] icon-xiafang" }, null, -1)
23328
23346
  ])]),
23329
23347
  default: withCtx(() => [
@@ -23338,7 +23356,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23338
23356
  showMenus.value.includes(unref(ContextMenu$1).SetRowHeight) ? (openBlock(), createBlock(_component_a_menu_item, {
23339
23357
  key: unref(ContextMenu$1).SetRowHeight
23340
23358
  }, {
23341
- icon: withCtx(() => [..._cache[13] || (_cache[13] = [
23359
+ icon: withCtx(() => [..._cache[10] || (_cache[10] = [
23342
23360
  createElementVNode("i", { class: "iconfont !text-[24px] icon-hanggao" }, null, -1)
23343
23361
  ])]),
23344
23362
  default: withCtx(() => [
@@ -23349,7 +23367,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23349
23367
  showMenus.value.includes(unref(ContextMenu$1).DataGroup) ? (openBlock(), createBlock(_component_a_menu_item, {
23350
23368
  key: unref(ContextMenu$1).DataGroup
23351
23369
  }, {
23352
- icon: withCtx(() => [..._cache[14] || (_cache[14] = [
23370
+ icon: withCtx(() => [..._cache[11] || (_cache[11] = [
23353
23371
  createElementVNode("i", { class: "iconfont icon-fenzu" }, null, -1)
23354
23372
  ])]),
23355
23373
  default: withCtx(() => [
@@ -23360,7 +23378,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23360
23378
  showMenus.value.includes(unref(ContextMenu$1).DataGroup2D) ? (openBlock(), createBlock(_component_a_menu_item, {
23361
23379
  key: unref(ContextMenu$1).DataGroup2D
23362
23380
  }, {
23363
- icon: withCtx(() => [..._cache[15] || (_cache[15] = [
23381
+ icon: withCtx(() => [..._cache[12] || (_cache[12] = [
23364
23382
  createElementVNode("i", { class: "iconfont text-[24px] icon-shujuliandong" }, null, -1)
23365
23383
  ])]),
23366
23384
  default: withCtx(() => [
@@ -23371,7 +23389,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23371
23389
  showMenus.value.includes(unref(ContextMenu$1).MergeCell) ? (openBlock(), createBlock(_component_a_menu_item, {
23372
23390
  key: unref(ContextMenu$1).MergeCell
23373
23391
  }, {
23374
- icon: withCtx(() => [..._cache[16] || (_cache[16] = [
23392
+ icon: withCtx(() => [..._cache[13] || (_cache[13] = [
23375
23393
  createElementVNode("i", { class: "iconfont icon-hebing" }, null, -1)
23376
23394
  ])]),
23377
23395
  default: withCtx(() => [
@@ -23382,7 +23400,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23382
23400
  showMenus.value.includes(unref(ContextMenu$1).SplitCell) ? (openBlock(), createBlock(_component_a_menu_item, {
23383
23401
  key: unref(ContextMenu$1).SplitCell
23384
23402
  }, {
23385
- icon: withCtx(() => [..._cache[17] || (_cache[17] = [
23403
+ icon: withCtx(() => [..._cache[14] || (_cache[14] = [
23386
23404
  createElementVNode("i", { class: "iconfont icon-chaifen" }, null, -1)
23387
23405
  ])]),
23388
23406
  default: withCtx(() => [
@@ -23394,7 +23412,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23394
23412
  showMenus.value.includes(unref(ContextMenu$1).DeleteCol) ? (openBlock(), createBlock(_component_a_menu_item, {
23395
23413
  key: unref(ContextMenu$1).DeleteCol
23396
23414
  }, {
23397
- icon: withCtx(() => [..._cache[18] || (_cache[18] = [
23415
+ icon: withCtx(() => [..._cache[15] || (_cache[15] = [
23398
23416
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shanlie" }, null, -1)
23399
23417
  ])]),
23400
23418
  default: withCtx(() => [
@@ -23405,7 +23423,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23405
23423
  showMenus.value.includes(unref(ContextMenu$1).DeleteRow) ? (openBlock(), createBlock(_component_a_menu_item, {
23406
23424
  key: unref(ContextMenu$1).DeleteRow
23407
23425
  }, {
23408
- icon: withCtx(() => [..._cache[19] || (_cache[19] = [
23426
+ icon: withCtx(() => [..._cache[16] || (_cache[16] = [
23409
23427
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shanhang" }, null, -1)
23410
23428
  ])]),
23411
23429
  default: withCtx(() => [
@@ -23416,7 +23434,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23416
23434
  showMenus.value.includes(unref(ContextMenu$1).ClearCellContent) ? (openBlock(), createBlock(_component_a_menu_item, {
23417
23435
  key: unref(ContextMenu$1).ClearCellContent
23418
23436
  }, {
23419
- icon: withCtx(() => [..._cache[20] || (_cache[20] = [
23437
+ icon: withCtx(() => [..._cache[17] || (_cache[17] = [
23420
23438
  createElementVNode("i", { class: "iconfont !text-[24px] icon-shanchu11" }, null, -1)
23421
23439
  ])]),
23422
23440
  default: withCtx(() => [
@@ -23436,7 +23454,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
23436
23454
  };
23437
23455
  }
23438
23456
  });
23439
- const ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5H, [["__scopeId", "data-v-10739a10"]]);
23457
+ const ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5H, [["__scopeId", "data-v-e327dc6f"]]);
23440
23458
  const _hoisted_1$3d = { class: "paper-content" };
23441
23459
  const _hoisted_2$2l = {
23442
23460
  cellpadding: "0",
@@ -25191,11 +25209,11 @@ const _sfc_main$5p = /* @__PURE__ */ defineComponent({
25191
25209
  save: save2,
25192
25210
  setThead,
25193
25211
  setCurrentDataGroup,
25194
- resetRange: resetRange2,
25195
25212
  setSubTable,
25196
25213
  selection: selection2,
25197
25214
  paper: paper2,
25198
25215
  copyAndWrite,
25216
+ cutAndWrite,
25199
25217
  parsePaste,
25200
25218
  panelData: panelData2,
25201
25219
  sheetReadonly: sheetReadonly2,
@@ -25338,6 +25356,7 @@ const _sfc_main$5p = /* @__PURE__ */ defineComponent({
25338
25356
  return;
25339
25357
  }
25340
25358
  event2.preventDefault();
25359
+ if (sheetReadonly2.value) return;
25341
25360
  await parsePaste(event2);
25342
25361
  };
25343
25362
  const handleCut = async (event2) => {
@@ -25345,8 +25364,8 @@ const _sfc_main$5p = /* @__PURE__ */ defineComponent({
25345
25364
  return;
25346
25365
  }
25347
25366
  event2.preventDefault();
25348
- copyAndWrite();
25349
- resetRange2();
25367
+ if (sheetReadonly2.value) return;
25368
+ cutAndWrite(event2);
25350
25369
  };
25351
25370
  document.addEventListener("keydown", handleKeyDown, true);
25352
25371
  document.addEventListener("paste", handlePaste);
@@ -25405,7 +25424,7 @@ const _sfc_main$5p = /* @__PURE__ */ defineComponent({
25405
25424
  };
25406
25425
  }
25407
25426
  });
25408
- const SpreadSheet = /* @__PURE__ */ _export_sfc(_sfc_main$5p, [["__scopeId", "data-v-467f6f1b"]]);
25427
+ const SpreadSheet = /* @__PURE__ */ _export_sfc(_sfc_main$5p, [["__scopeId", "data-v-39141cf4"]]);
25409
25428
  const DHR_LICENSE_API = "/gct-apaas/api/dhr/license/module";
25410
25429
  const AVAILABLE_EDITIONS = ["eDHR Max", "eDHR Ultra"];
25411
25430
  let dhrEditionRequest;
@@ -53017,7 +53036,7 @@ const _sfc_main$3q = /* @__PURE__ */ defineComponent({
53017
53036
  }
53018
53037
  });
53019
53038
  function asyncImportWidgetProp() {
53020
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-BZnKdE1G.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-BklDdpSM.js"), "./widget-image.vue": () => import("./widget-image-C_UvhchS.js"), "./widget-line.vue": () => import("./widget-line-DY28Dncn.js"), "./widget-pagination.vue": () => import("./widget-pagination-CfYnms-D.js"), "./widget-power.vue": () => import("./widget-power-CoFnc1vr.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-CKMRpndx.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-yZ0Omj6J.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-SYVYekOJ.js"), "./widget-text.vue": () => import("./widget-text-D6vtAr4i.js"), "./widget-timediff.vue": () => import("./widget-timediff-FSvEPH5s.js") });
53039
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-BMA-mWsJ.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-DA3UW7np.js"), "./widget-image.vue": () => import("./widget-image-aDBxxk8w.js"), "./widget-line.vue": () => import("./widget-line-BxocSAh7.js"), "./widget-pagination.vue": () => import("./widget-pagination-Colzk2mT.js"), "./widget-power.vue": () => import("./widget-power-Cbet700Q.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DgjnrEVt.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-B9vhV0nA.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-D8EJ1fV-.js"), "./widget-text.vue": () => import("./widget-text-D-vER3xP.js"), "./widget-timediff.vue": () => import("./widget-timediff-gbfqYExJ.js") });
53021
53040
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
53022
53041
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
53023
53042
  if (mKey) {
@@ -70338,7 +70357,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
70338
70357
  }
70339
70358
  });
70340
70359
  const VueVideoPlayer = defineAsyncComponent(
70341
- () => import("./VueVideoPlayer-CsiWnQT8.js")
70360
+ () => import("./VueVideoPlayer-Ca23ED7v.js")
70342
70361
  );
70343
70362
  const _hoisted_1$17 = {
70344
70363
  key: 0,
@@ -91407,8 +91426,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
91407
91426
  printTask = (async () => {
91408
91427
  if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
91409
91428
  await nextTick();
91410
- const { printRuntimeInstance } = await import("./print-runtime-instance-CjKnPN_O.js");
91411
- const { default: renderer } = await import("./print-snapshot-renderer-Cjtv_a17.js");
91429
+ const { printRuntimeInstance } = await import("./print-runtime-instance-DKxmOdjq.js");
91430
+ const { default: renderer } = await import("./print-snapshot-renderer-DplvMCOJ.js");
91412
91431
  if (abort.signal.aborted) throw new Error("打印已取消");
91413
91432
  printRenderer.value = markRaw(renderer);
91414
91433
  await printRuntimeInstance(