@gct-paas/excel 0.1.39-beta.36 → 0.1.39-beta.39

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 (60) hide show
  1. package/dist/{BaseComponent-BZ7vpBcD.js → BaseComponent-DidQ_7a_.js} +1 -1
  2. package/dist/{barcode-design-CHiFJjFA.js → barcode-design-B8Wx_KI7.js} +1 -1
  3. package/dist/base/index.es.js +72 -72
  4. package/dist/{diagonal-design-51m5OQ1N.js → diagonal-design-Be5dGB14.js} +1 -1
  5. package/dist/{dynamic-table-action-BvHth2cC.js → dynamic-table-action-Bmdi7alJ.js} +134 -121
  6. package/dist/excel.css +16 -16
  7. package/dist/{exceljs.min-CCRdOgpe.js → exceljs.min-wH4A-2gc.js} +1 -1
  8. package/dist/{font-editor-Ct4lpMfK.js → font-editor-B57ztQI3.js} +1 -1
  9. package/dist/{index-Djg7VKKV.js → index-4GNzFs_7.js} +1 -1
  10. package/dist/{index-g5NmWlup.js → index-B0Vbs0k9.js} +1 -1
  11. package/dist/{index-D41PvgVJ.js → index-B57o3Egn.js} +44 -48
  12. package/dist/{index-CkgcA21r.js → index-BK6FsaFW.js} +1 -1
  13. package/dist/{index-sbz8PAuq.js → index-BKkc9PaW.js} +1 -1
  14. package/dist/{index-chIttzzx.js → index-BMrT49e4.js} +1 -1
  15. package/dist/{index-Ds0ZWSC-.js → index-BNIABvw9.js} +4 -6
  16. package/dist/{index-B4aDuWy4.js → index-BU9aiCZH.js} +1 -1
  17. package/dist/{index-Cip1bDDj.js → index-B_f2z7Fg.js} +1 -1
  18. package/dist/{index-Ezicwad7.js → index-Bserup-h.js} +1 -1
  19. package/dist/{index-C6YQlAg6.js → index-Bx6NpFE9.js} +3 -3
  20. package/dist/{index-DzchEThV.js → index-C8iDQtRr.js} +1 -1
  21. package/dist/{index-CkpXmnj0.js → index-CC2qut8m.js} +2 -2
  22. package/dist/{index-CTLIQVKX.js → index-CF39ggy5.js} +1 -1
  23. package/dist/{index-Cm54hS-S.js → index-CqqJ3his.js} +1 -1
  24. package/dist/{index-CfS4Vi7D.js → index-D0drNdqI.js} +2 -2
  25. package/dist/{index-0cS2b0oE.js → index-D7ovxfg9.js} +1 -1
  26. package/dist/{index-C5rtaFud.js → index-DM7iO1vz.js} +1 -1
  27. package/dist/{index-BYOG-n0c.js → index-DQBCQIUX.js} +1 -1
  28. package/dist/{index-rOFrrioK.js → index-DT3EoOVp.js} +2 -2
  29. package/dist/{index-DZztykCc.js → index-NNGcsmsY.js} +2 -2
  30. package/dist/{index-CX4Pp6kw.js → index-PFPhIStD.js} +1 -1
  31. package/dist/{index-BzgVexIB.js → index-aGcBuVIb.js} +1 -1
  32. package/dist/{index-C-Ihj0-2.js → index-jvotzKm2.js} +2 -2
  33. package/dist/index.es.js +1 -1
  34. package/dist/{pagination-design-CqNGzUdR.js → pagination-design-CcNfWRta.js} +1 -1
  35. package/dist/paper-widget-design-Dbo_qYm8.js +4 -0
  36. package/dist/{print-runtime-instance-BW1wWNE7.js → print-runtime-instance-wqeNIemM.js} +1 -1
  37. package/dist/{print-snapshot-renderer-N_R2s5YL.js → print-snapshot-renderer-CPFIw63J.js} +3 -3
  38. package/dist/{qrcode-design-BVeRIRND.js → qrcode-design-BjA8SQXf.js} +1 -1
  39. package/dist/seal-design-B2qsDyWv.js +4 -0
  40. package/dist/{single-field-drop-BI6V9wuP.js → single-field-drop-BA3lBMcJ.js} +1 -1
  41. package/dist/src/shared/utils/cell-wrap.d.ts +9 -0
  42. package/dist/src/shared/utils/grid-size.d.ts +2 -0
  43. package/dist/{sub-table-factory-b8fCKT0z.js → sub-table-factory-BP2eBKGz.js} +1 -1
  44. package/dist/{text-design-r6V-PpnP.js → text-design-CZkgq9OB.js} +4 -3
  45. package/dist/{trace-like-wrapper-DdbD-CG9.js → trace-like-wrapper-CuKzkv-c.js} +1 -1
  46. package/dist/{value-editor.vue_vue_type_style_index_0_lang-CLPKj7Hn.js → value-editor.vue_vue_type_style_index_0_lang-Vw4MwIVM.js} +1 -1
  47. package/dist/{widget-barcode-6zHG0_c7.js → widget-barcode-W5MQVGy_.js} +2 -2
  48. package/dist/{widget-diagonal-DaeCTtev.js → widget-diagonal-BYx_rmij.js} +2 -2
  49. package/dist/{widget-image-C-0Gr5cP.js → widget-image-Btu_5z7c.js} +1 -1
  50. package/dist/{widget-line-BGAZB9Kv.js → widget-line-B7NFA4CC.js} +1 -1
  51. package/dist/{widget-pagination-ehbqliMZ.js → widget-pagination-DLS5-U_l.js} +2 -2
  52. package/dist/{widget-power-CU1P2yVF.js → widget-power-BTR1uZ_X.js} +2 -2
  53. package/dist/{widget-qrcode-CNve4oe-.js → widget-qrcode-CJmioStY.js} +2 -2
  54. package/dist/{widget-rangelimit-BPdn49_k.js → widget-rangelimit-DfuNVDsE.js} +2 -2
  55. package/dist/{widget-serialnumber-DuJRJYTF.js → widget-serialnumber-KeVYJBn8.js} +1 -1
  56. package/dist/{widget-text-B05U7W1k.js → widget-text-D6PjB04d.js} +3 -3
  57. package/dist/{widget-timediff-BnRseRze.js → widget-timediff-CSKXudmS.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/paper-widget-design-D7DXrGXu.js +0 -4
  60. package/dist/seal-design-bgpCeBnt.js +0 -4
@@ -1,4 +1,4 @@
1
- import { f as normalizeFieldWidth } from "./dynamic-table-action-BvHth2cC.js";
1
+ import { h as normalizeFieldWidth } from "./dynamic-table-action-Bmdi7alJ.js";
2
2
  import { get, pick } from "lodash-es";
3
3
  import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
4
4
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-D41PvgVJ.js";
3
+ import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-B57o3Egn.js";
4
4
  import { Q as PaperWidgeValueType, a7 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,13 +1,13 @@
1
1
  import { E as api, _ as PlatformEnum, F as FIELD_TYPE, bb as getRowId, bc as findRuntimeTableRow, b4 as RenderModeEnum, C as ComponentTypeEnum, aF as Dependency_ENUM, aE as ASSIGNMENTSTRATEGY_ENUM, bm as fetchHistoryConsume, bn as isBomGranted, aT as renderUtils, bl as uuid2, bo as parseFrontConfig, aI as CheckDsTypeEnum, aC as transformUtils, bp as baseDataUtils, X as FormTypeEnum, bq as normalizeToArray, br as safeParseArray, bs as BpmnNodeTypeEnum, bt as mergeByMultiKey, a7 as _export_sfc, bu as evaluateInspectionDecisionRule, bv as useNocodeEmitter, bw as commonUtils, aG as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
2
2
  import { aL, aN, aZ, a0, bx, by, B, bz, y, af, bA, bB, bC, ba, bD, aQ, av, aM, aJ, aK, bE, ag, ak, bF, bG, aD, a2, ae, aw, aO, $, ai, L, bH, bI, bJ, O, p, P, a9, o, Q, A, bK, bL, au, at, a5, a1, a3, a4, a6, f, bM, aj, an, ah, bN, bO, bP, bQ, b9, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, bd, b$, c0, aW, c1, a_, a$, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, aV, cc, b0, b7, cd, ce, al, t, aP, cf, cg, be, aX } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
3
- import { a0 as getRuntimeDataFieldId, K as parseRuntimeFieldPath, a1 as buildRuntimeFieldPath, a2 as resolveRuntimeFieldProps, a3 as resolveRuntimeFieldState, a4 as assembleRules, a5 as isAttachFieldActive, L as calculateFormula, a6 as getRuntimeDependencyOutputKey, a7 as isRowAddedInCurrentFormChange, g as getParseFormulaVarInfos, t as MaterialConsumptionPatternEnum, a8 as MaterialConsumeTableController, a9 as setFormulaParamsConfig, aa as normalizeRuntime, T as createRuntimeInstanceContext, ab as initializeSealFields, S as RuntimeFormStateStore, ac as RuntimeSheetService, c as getBusinessFieldKey, ad as validateObjectBomQtyOnSubmit, ae as areValidationCommentsEqual, af as closeValidatorPopovers, ag as enrichFormChangeRowDetails, N as NCB_PROVIDE, U as RuntimeInstanceRegistry, ah as useMaterialBalance, ai as collectFormChangeFieldLocations, aj as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-BvHth2cC.js";
4
- import { B as B2, ak as ak2, i, $ as $2, al as al2, Z, am, _, E, an as an2, ao, ap, aq, ar, M, a, as, b, at as at2, au as au2, av as av2, aw as aw2, ax, ay, az, aA, z, aB, q, aC, d, aD as aD2, aE, aF, aG, p as p2, A as A2, aH, aI, aJ as aJ2, aK as aK2, j, C, h, aL as aL2, aM as aM2, aN as aN2, aO as aO2, aP as aP2, aQ as aQ2, aR, w, r, aS, x, m, aT, s, aU, P as P2, Q as Q2, u, y as y2, R, l, o as o2, O as O2, k, v } from "../dynamic-table-action-BvHth2cC.js";
3
+ import { a2 as getRuntimeDataFieldId, O as parseRuntimeFieldPath, a3 as buildRuntimeFieldPath, a4 as resolveRuntimeFieldProps, a5 as resolveRuntimeFieldState, a6 as assembleRules, a7 as isAttachFieldActive, P as calculateFormula, a8 as getRuntimeDependencyOutputKey, a9 as isRowAddedInCurrentFormChange, g as getParseFormulaVarInfos, w as MaterialConsumptionPatternEnum, aa as MaterialConsumeTableController, ab as setFormulaParamsConfig, ac as normalizeRuntime, V as createRuntimeInstanceContext, ad as initializeSealFields, U as RuntimeFormStateStore, ae as RuntimeSheetService, c as getBusinessFieldKey, af as validateObjectBomQtyOnSubmit, ag as areValidationCommentsEqual, ah as closeValidatorPopovers, ai as enrichFormChangeRowDetails, N as NCB_PROVIDE, W as RuntimeInstanceRegistry, aj as useMaterialBalance, ak as collectFormChangeFieldLocations, al as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-Bmdi7alJ.js";
4
+ import { B as B2, am, k, a1 as a12, an as an2, $ as $2, ao, a0 as a02, F, ap, aq, ar, as, at as at2, M, a, au as au2, b, av as av2, aw as aw2, ax, ay, az, aA, aB, aC, C, aD as aD2, t as t2, aE, d, aF, aG, aH, aI, r, E, aJ as aJ2, aK as aK2, aL as aL2, aM as aM2, l, G, j, aN as aN2, aO as aO2, aP as aP2, aQ as aQ2, aR, aS, aT, y as y2, v, aU, z, p as p2, aV as aV2, s, aW as aW2, R, S, u, A as A2, T, o as o2, q, Q as Q2, m, x } from "../dynamic-table-action-Bmdi7alJ.js";
5
5
  import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted, markRaw, reactive, onBeforeUnmount } from "vue";
6
6
  import { cloneDeep, defaults, isEmpty, merge } from "lodash-es";
7
7
  import "dayjs";
8
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-b8fCKT0z.js";
9
- import { A as A3, D, M as M2, a as a7, P as P3, b as b2, c, d as d2, e, W, f as f2, g, h as h2 } from "../sub-table-factory-b8fCKT0z.js";
10
- import { B as B3, F, M as M3, a as a8, u as u2 } from "../mb-render-FUO_-FXR.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-BP2eBKGz.js";
9
+ import { A as A3, D, M as M2, a as a7, P as P2, b as b2, c, d as d2, e, W, f as f2, g, h } from "../sub-table-factory-BP2eBKGz.js";
10
+ import { B as B3, F as F2, M as M3, a as a8, u as u2 } from "../mb-render-FUO_-FXR.js";
11
11
  const InstanceStatusValues = {
12
12
  /** 作废状态 */
13
13
  ABANDON: "ABANDON",
@@ -2773,7 +2773,7 @@ function useEbrWikiFactoryV2(props, payload) {
2773
2773
  }
2774
2774
  watch(
2775
2775
  [() => props.materialNo, () => edhrCounter.value],
2776
- async ([newMaterialNo, _2]) => {
2776
+ async ([newMaterialNo, _]) => {
2777
2777
  if (isEmpty(newMaterialNo)) return;
2778
2778
  loading.value = true;
2779
2779
  clear();
@@ -2952,7 +2952,7 @@ function useEbrWikiFactoryV2(props, payload) {
2952
2952
  );
2953
2953
  watch(
2954
2954
  [() => selectSelfInfo.value, () => instanceCounter.value],
2955
- ([newSelectSelfInfo, _2]) => {
2955
+ ([newSelectSelfInfo, _]) => {
2956
2956
  if (newSelectSelfInfo && payload.pageType === "record-change") {
2957
2957
  emitter.emit(EmitterEnum.__on_select_ebr_doc_instance_id, {
2958
2958
  instanceId: newSelectSelfInfo.id
@@ -3381,38 +3381,38 @@ export {
3381
3381
  aQ as DateFormat,
3382
3382
  av as DecimalDisplayMode,
3383
3383
  aM as DenoiseMethodOptions,
3384
- ak2 as DeviceConnector,
3384
+ am as DeviceConnector,
3385
3385
  aJ as DeviceLink,
3386
- i as DeviceLinkTmplUtil,
3386
+ k as DeviceLinkTmplUtil,
3387
3387
  aK as DeviceParamsTypeTitle,
3388
3388
  D as DevicePartConsumeTableCore,
3389
3389
  bE as DeviceStatus,
3390
3390
  ag as DiagonalDirection,
3391
3391
  ak as DiagonalVertex,
3392
- $2 as DocumentLayout,
3393
- al2 as DocumentLoading,
3394
- Z as DocumentPaper,
3395
- am as DynamicQuickFillModal,
3396
- _ as DynamicTableAction,
3392
+ a12 as DocumentLayout,
3393
+ an2 as DocumentLoading,
3394
+ $2 as DocumentPaper,
3395
+ ao as DynamicQuickFillModal,
3396
+ a02 as DynamicTableAction,
3397
3397
  bF as EBR_PROVIDE_ENUM,
3398
3398
  bG as EFieldBizTypeEnum,
3399
- E as EMPTY_PRODUCT_VERSION_ID,
3399
+ F as EMPTY_PRODUCT_VERSION_ID,
3400
3400
  aD as EmptySymbol,
3401
3401
  a2 as FallbackSignTypeEnum,
3402
3402
  ae as FieldSysVarDefaultValueEnum,
3403
3403
  FillingTypeEnum,
3404
- an2 as FixedQuickFillModal,
3404
+ ap as FixedQuickFillModal,
3405
3405
  FormAnnotationController,
3406
- F as FormModelController,
3406
+ F2 as FormModelController,
3407
3407
  FormTmplBomController,
3408
- ao as FormTmplConfigController,
3408
+ aq as FormTmplConfigController,
3409
3409
  FormTypeEnum,
3410
3410
  aw as ImageDisplayModeEnum,
3411
3411
  InstanceStatusValues,
3412
3412
  aO as JoinModelTypeEum,
3413
- ap as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3414
- aq as LEGACY_RUNTIME_SHEET_ID,
3415
- ar as LEGACY_RUNTIME_SHEET_TITLE,
3413
+ ar as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3414
+ as as LEGACY_RUNTIME_SHEET_ID,
3415
+ at2 as LEGACY_RUNTIME_SHEET_TITLE,
3416
3416
  $ as LabelPosition,
3417
3417
  ai as LineDirection,
3418
3418
  L as LineType,
@@ -3420,7 +3420,7 @@ export {
3420
3420
  M as MAX_RUNTIME_SHEETS,
3421
3421
  a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
3422
3422
  M3 as MBRender,
3423
- as as MCDataUtil,
3423
+ au2 as MCDataUtil,
3424
3424
  a8 as MCRender,
3425
3425
  b as MULTI_SHEET_SCHEMA_VERSION,
3426
3426
  MaterialConsumeTableController,
@@ -3430,7 +3430,7 @@ export {
3430
3430
  a7 as MaterialSubstitutionTableCore,
3431
3431
  bI as MobileFillTypeEnum,
3432
3432
  NCB_PROVIDE,
3433
- at2 as OCR_MODEL_PRECISION_ENUM_KEY,
3433
+ av2 as OCR_MODEL_PRECISION_ENUM_KEY,
3434
3434
  bJ as OfficeTypeEnum,
3435
3435
  O as Orientation,
3436
3436
  p as PageSizeEnum,
@@ -3439,7 +3439,7 @@ export {
3439
3439
  o as PaperWidgeType,
3440
3440
  Q as PaperWidgeValueType,
3441
3441
  A as ParamModelTypeEnum,
3442
- P3 as PartStocktakeTableCore,
3442
+ P2 as PartStocktakeTableCore,
3443
3443
  PlatformEnum,
3444
3444
  bK as PosEnum,
3445
3445
  b2 as PretreatmentListTableCore,
@@ -3448,17 +3448,17 @@ export {
3448
3448
  au as RangeCompareOp,
3449
3449
  at as RangeValidateMode,
3450
3450
  RenderModeEnum,
3451
- au2 as RuntimeAsyncTaskCoordinator,
3452
- av2 as RuntimeDependencyService,
3453
- aw2 as RuntimeFieldRegistry,
3451
+ aw2 as RuntimeAsyncTaskCoordinator,
3452
+ ax as RuntimeDependencyService,
3453
+ ay as RuntimeFieldRegistry,
3454
3454
  RuntimeFormStateStore,
3455
3455
  RuntimeInstanceController,
3456
- ax as RuntimeInstanceEventBus,
3456
+ az as RuntimeInstanceEventBus,
3457
3457
  RuntimeInstanceRegistry,
3458
- ay as RuntimePersistenceCoordinator,
3458
+ aA as RuntimePersistenceCoordinator,
3459
3459
  RuntimeRuleCompiler,
3460
3460
  RuntimeSheetService,
3461
- az as RuntimeValidationService,
3461
+ aB as RuntimeValidationService,
3462
3462
  a5 as SignShowTypeEnum,
3463
3463
  a1 as SignatureImageDirectionEnum,
3464
3464
  a3 as SignatureNumberTypeEnum,
@@ -3466,7 +3466,7 @@ export {
3466
3466
  a6 as SignatureTypeEnum,
3467
3467
  d2 as SterilizeBatchTableCore,
3468
3468
  e as StocktakeTableCore,
3469
- aA as SubTableCore,
3469
+ aC as SubTableCore,
3470
3470
  SubTableCoreFactory,
3471
3471
  f as SubTableType,
3472
3472
  bM as SummaryApproveHisTypeEnum,
@@ -3475,17 +3475,17 @@ export {
3475
3475
  W as WarehouseInTableCore,
3476
3476
  f2 as WarehouseInboundTableCore,
3477
3477
  g as WarehouseOutTableCore,
3478
- h2 as WarehouseOutboundTableCore,
3478
+ h as WarehouseOutboundTableCore,
3479
3479
  ah as WidgetImageSizeMode,
3480
3480
  bN as applyCheckDsDataToRuntime,
3481
- z as applyConsumeObjectTraceChange,
3481
+ C as applyConsumeObjectTraceChange,
3482
3482
  bO as applyMedProCheckDsDataToRuntime,
3483
3483
  baseDataUtils,
3484
3484
  bP as bindRuntimeTableColumns,
3485
3485
  bQ as buildDeviceBaseQuery,
3486
3486
  b9 as buildDeviceFilterQuery,
3487
- aB as buildFormChangeDisplayRows,
3488
- q as buildObjectLotExtraQuery,
3487
+ aD2 as buildFormChangeDisplayRows,
3488
+ t2 as buildObjectLotExtraQuery,
3489
3489
  buildRuntimeFieldPath,
3490
3490
  bR as calcFillData,
3491
3491
  bS as calcUtils,
@@ -3494,16 +3494,16 @@ export {
3494
3494
  collectFormChangeFieldLocations,
3495
3495
  commonUtils,
3496
3496
  convertHistoricalAnnotationLocation,
3497
- aC as convertV1Runtime,
3497
+ aE as convertV1Runtime,
3498
3498
  d as createRuntimeDocumentV2,
3499
3499
  createRuntimeInstanceContext,
3500
3500
  bT as decodeTableCellRowKey,
3501
- aD2 as detailsHaveFormChangeRowOps,
3501
+ aF as detailsHaveFormChangeRowOps,
3502
3502
  bU as encodeTableCellRowKey,
3503
3503
  enrichFormChangeRowDetails,
3504
3504
  bV as ensureFrontRowKey,
3505
3505
  bW as ensureTableRowKeys,
3506
- aE as extractFormChangeRowDetails,
3506
+ aG as extractFormChangeRowDetails,
3507
3507
  bX as extractKeywordFromQueryData,
3508
3508
  bY as fetchCheckDsDataForTable,
3509
3509
  bZ as fetchCustomCheckDsData,
@@ -3518,11 +3518,11 @@ export {
3518
3518
  getAppInfo,
3519
3519
  getBusinessFieldKey,
3520
3520
  c0 as getCheckTableSnapshotKey,
3521
- aF as getFormChangeRowKey,
3522
- aG as getFormChangeRowOp,
3521
+ aH as getFormChangeRowKey,
3522
+ aI as getFormChangeRowOp,
3523
3523
  aW as getLotLockedReason,
3524
- p2 as getObjectBomMaterialLotQuery,
3525
- A2 as getObjectBomProductQuery,
3524
+ r as getObjectBomMaterialLotQuery,
3525
+ E as getObjectBomProductQuery,
3526
3526
  getParseFormulaVarInfos,
3527
3527
  c1 as getParseRuleConfig,
3528
3528
  a_ as getParseRuleInfo,
@@ -3531,18 +3531,18 @@ export {
3531
3531
  c3 as getRenderedRuntimeTableCell,
3532
3532
  getRuntimeDataFieldId,
3533
3533
  getRuntimeDependencyOutputKey,
3534
- aH as getSubTableQuickFillInfo,
3534
+ aJ2 as getSubTableQuickFillInfo,
3535
3535
  getSuiteKey,
3536
3536
  c4 as handleOldConfig,
3537
3537
  c5 as hasAnyCheckTableSnapshot,
3538
3538
  c6 as hasByTableCheckTableSnapshot,
3539
3539
  c7 as hasSharedCheckTableSnapshot,
3540
- aI as isAnnLocationSelected,
3541
- aJ2 as isBlank,
3540
+ aK2 as isAnnLocationSelected,
3541
+ aL2 as isBlank,
3542
3542
  isBomGranted,
3543
3543
  isEdhrSuite,
3544
3544
  isEqmSuite,
3545
- aK2 as isFormChangeGhostRow,
3545
+ aM2 as isFormChangeGhostRow,
3546
3546
  c8 as isMedProSuite,
3547
3547
  isRowAddedInCurrentFormChange,
3548
3548
  c9 as isTableRowKeyMatch,
@@ -3551,56 +3551,56 @@ export {
3551
3551
  aV as materialCheck,
3552
3552
  cc as migrateDiagonalDirectionToVertex,
3553
3553
  nextFormChangeRowViewHistoryId,
3554
- j as normalizeAIOcrTmpl,
3555
- C as normalizeHistoricalAutofillRow,
3556
- h as normalizeHistoricalBusinessRow,
3557
- aL2 as normalizeHistoricalFieldConfig,
3554
+ l as normalizeAIOcrTmpl,
3555
+ G as normalizeHistoricalAutofillRow,
3556
+ j as normalizeHistoricalBusinessRow,
3557
+ aN2 as normalizeHistoricalFieldConfig,
3558
3558
  b0 as normalizeRefLoaderResult,
3559
3559
  normalizeRuntime,
3560
3560
  parseFrontConfig,
3561
3561
  parseRuntimeFieldPath,
3562
3562
  parseUdi,
3563
- aM2 as pickObjectFieldKeys,
3564
- aN2 as recordSubtableRowAdd,
3565
- aO2 as recordSubtableRowDelete,
3563
+ aO2 as pickObjectFieldKeys,
3564
+ aP2 as recordSubtableRowAdd,
3565
+ aQ2 as recordSubtableRowDelete,
3566
3566
  b7 as refUtils,
3567
- aP2 as relocateDeletedRowsToEnd,
3567
+ aR as relocateDeletedRowsToEnd,
3568
3568
  renderUtils,
3569
3569
  cd as requestMedProCheckDsData,
3570
3570
  ce as requestNonMedProCheckDsData,
3571
- aQ2 as resolveAnnotationFieldLocation,
3571
+ aS as resolveAnnotationFieldLocation,
3572
3572
  al as resolveDiagonalVertex,
3573
3573
  t as resolveFieldRenderComponent,
3574
- aR as resolveFormChangeRowUi,
3575
- w as resolveObjectBomEntry,
3576
- r as resolveObjectFieldKeys,
3577
- aS as resolveRowFormChangeMark,
3574
+ aT as resolveFormChangeRowUi,
3575
+ y2 as resolveObjectBomEntry,
3576
+ v as resolveObjectFieldKeys,
3577
+ aU as resolveRowFormChangeMark,
3578
3578
  resolveUdiQuery,
3579
- x as runWithFillProduct,
3580
- m as setSelectAnnotationId,
3581
- aT as setSelectMobileTdId,
3579
+ z as runWithFillProduct,
3580
+ p2 as setSelectAnnotationId,
3581
+ aV2 as setSelectMobileTdId,
3582
3582
  s as setSelectValidatorId,
3583
3583
  aP as sqlUtils,
3584
3584
  cf as stockCheck,
3585
- aU as stripLegacyFormConfigFromPaper,
3585
+ aW2 as stripLegacyFormConfigFromPaper,
3586
3586
  transformUtils,
3587
- P2 as useDependency,
3587
+ R as useDependency,
3588
3588
  useEbrWikiFactoryV2,
3589
- Q2 as useFieldPresentation,
3589
+ S as useFieldPresentation,
3590
3590
  u2 as useFormModel,
3591
3591
  u as useFormTmplConfig,
3592
3592
  useMaterialBalance,
3593
3593
  useNocodeEmitter,
3594
- y2 as useNocodeFormWidget,
3594
+ A2 as useNocodeFormWidget,
3595
3595
  cg as useOnlineFormActionButton,
3596
3596
  be as useOnlineFormTransformField2Component,
3597
3597
  useRenderPageFactory,
3598
- R as useRuntimeEditorFlusher,
3599
- l as useRuntimeInstanceServices,
3600
- o2 as useRuntimeRowState,
3601
- O2 as useStyles,
3602
- k as useWidgetStaticAttrs,
3603
- v as validateObjectBomForScan,
3598
+ T as useRuntimeEditorFlusher,
3599
+ o2 as useRuntimeInstanceServices,
3600
+ q as useRuntimeRowState,
3601
+ Q2 as useStyles,
3602
+ m as useWidgetStaticAttrs,
3603
+ x as validateObjectBomForScan,
3604
3604
  validateObjectBomQtyOnSubmit,
3605
3605
  aX as validateReinspectionDate
3606
3606
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { h as useModelFields, D as Diagonal } from "./index-D41PvgVJ.js";
2
+ import { h as useModelFields, D as Diagonal } from "./index-B57o3Egn.js";
3
3
  import { al as resolveDiagonalVertex, a7 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
@@ -1,7 +1,7 @@
1
1
  import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, nextTick, toRef, provide, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
2
2
  import { af as CellWidgetViewState, F as FIELD_TYPE, b4 as RenderModeEnum, X as FormTypeEnum, bs as BpmnNodeTypeEnum, ch as getFieldPlaceholder, bI as MobileFillTypeEnum, C as ComponentTypeEnum, bc as findRuntimeTableRow, aT as renderUtils, _ as PlatformEnum, E as api, bl as uuid2, bS as calcUtils, bW as ensureTableRowKeys, bP as bindRuntimeTableColumns, bb as getRowId, ci as FRONT_ROW_KEY, c9 as isTableRowKeyMatch, au as RangeCompareOp, at as RangeValidateMode, bT as decodeTableCellRowKey, bV as ensureFrontRowKey, a_ as getParseRuleInfo, aC as transformUtils, aV as materialCheck, aW as getLotLockedReason, aX as validateReinspectionDate, bf as FormulaRuleFieldKeyEnum, f as SubTableType, a$ as getParseRuleValue, H as CreateType, bd as findRuntimeParentRow, aF as Dependency_ENUM, aE as ASSIGNMENTSTRATEGY_ENUM, bw as commonUtils, aJ as DeviceLink, a7 as _export_sfc, c3 as getRenderedRuntimeTableCell, y as CellType, cj as resetTableRowIdentity, J as useModal, ck as q, cl as QUICK_FILL_ALLOWED_FIELDS, cm as groupFixedTableRows, cn as processQuickFillRows, co as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
3
3
  import dayjs from "dayjs";
4
- import { cloneDeep, isEmpty, has, isNil, pickBy, mergeWith, omit, last, pick, merge } from "lodash-es";
4
+ import { cloneDeep, isEmpty, isNil, pickBy, mergeWith, omit, last, pick, merge } from "lodash-es";
5
5
  import { a as useNamespace, I as Icon } from "./AntdIcon-DCIaV352.js";
6
6
  import { Modal, message } from "ant-design-vue";
7
7
  import { u as useFormModel } from "./mb-render-FUO_-FXR.js";
@@ -337,6 +337,11 @@ function parseRuntimeFieldPath(path) {
337
337
  return void 0;
338
338
  }
339
339
  }
340
+ function isCellAutoLineBreak(style) {
341
+ const whiteSpace = style?.whiteSpace ?? style?.["white-space"];
342
+ const wordBreak = style?.wordBreak ?? style?.["word-break"];
343
+ return whiteSpace === "pre-wrap" && wordBreak === "break-all" || whiteSpace === "pre-line";
344
+ }
340
345
  var NCB_PROVIDE = /* @__PURE__ */ ((NCB_PROVIDE2) => {
341
346
  NCB_PROVIDE2["IS_PDF"] = "NCB_IsPdf";
342
347
  NCB_PROVIDE2["RUNTIME_INSTANCE_REGISTRY"] = "NCB_RuntimeInstanceRegistry";
@@ -454,12 +459,7 @@ function useWidgetStaticAttrs(widget) {
454
459
  dataRelationShip
455
460
  )
456
461
  );
457
- const isAutoLineBreak = computed(() => {
458
- if (!isEmpty(widget.style) && has(widget.style, "whiteSpace") && has(widget.style, "wordBreak") && widget.style.whiteSpace === "pre-wrap" && widget.style.wordBreak === "break-all") {
459
- return true;
460
- }
461
- return false;
462
- });
462
+ const isAutoLineBreak = computed(() => isCellAutoLineBreak(widget.style));
463
463
  return {
464
464
  field,
465
465
  fieldType,
@@ -897,6 +897,9 @@ function useMaterialBalance() {
897
897
  destoryConsumeModal
898
898
  };
899
899
  }
900
+ function normalizeGridColumnWidth(value) {
901
+ return typeof value === "number" && Number.isFinite(value) ? Math.max(0, value) : 75;
902
+ }
900
903
  function normalizeHistoricalFieldConfig(value) {
901
904
  if (!value || typeof value !== "object") return value;
902
905
  if (Array.isArray(value)) {
@@ -914,10 +917,17 @@ function normalizeHistoricalFieldConfig(value) {
914
917
  const props = result.props;
915
918
  const attachment = props.fieldType === FIELD_TYPE.ATTACHMENT && props.viewState === CellWidgetViewState.Auto;
916
919
  const autofill = Array.isArray(props.autofillRules) && props.enableAutofill === void 0;
917
- if (attachment || autofill) {
920
+ const wrap = result.component === "td" && props.autoLineBreak !== true && isCellAutoLineBreak(result.cellWidget?.style);
921
+ const colsWidth = Array.isArray(props.colsWidth) ? props.colsWidth.map(
922
+ (width) => typeof width === "number" && Number.isFinite(width) ? normalizeGridColumnWidth(width) : width
923
+ ) : void 0;
924
+ const columnWidths = colsWidth?.some((width, index) => width !== props.colsWidth[index]);
925
+ if (attachment || autofill || wrap || columnWidths) {
918
926
  result = { ...result, props: { ...props } };
919
927
  if (attachment) result.props.viewState = CellWidgetViewState.Readonly;
920
928
  if (autofill) result.props.enableAutofill = true;
929
+ if (wrap) result.props.autoLineBreak = true;
930
+ if (columnWidths) result.props.colsWidth = colsWidth;
921
931
  }
922
932
  }
923
933
  return result;
@@ -1019,10 +1029,11 @@ function validateSheetGraph(sheet) {
1019
1029
  }
1020
1030
  function normalizeSheetMetadata(sheet) {
1021
1031
  const nodes = normalizeHistoricalFieldConfig(sheet.nodes);
1032
+ const sourcePaper = normalizeHistoricalFieldConfig(sheet.paper);
1022
1033
  const paper = {
1023
- ...sheet.paper,
1034
+ ...sourcePaper,
1024
1035
  props: {
1025
- ...sheet.paper.props,
1036
+ ...sourcePaper.props,
1026
1037
  subTableWidgetIds: Object.entries(nodes).filter(([, node]) => node.component === ComponentTypeEnum.SUB_TABLE).map(([id]) => id)
1027
1038
  }
1028
1039
  };
@@ -10879,127 +10890,129 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10879
10890
  });
10880
10891
  const DynamicTableAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-53d7e66c"]]);
10881
10892
  export {
10882
- _sfc_main$5 as $,
10883
- getObjectBomProductQuery as A,
10893
+ DocumentPaper as $,
10894
+ useNocodeFormWidget as A,
10884
10895
  BorderTD as B,
10885
- normalizeHistoricalAutofillRow as C,
10896
+ applyConsumeObjectTraceChange as C,
10886
10897
  DEFAULT_BOOLEAN_FIELD_WIDTH as D,
10887
- EMPTY_PRODUCT_VERSION_ID as E,
10888
- readSealValue as F,
10889
- isSealStamped as G,
10890
- stampSealValue as H,
10891
- isValidSealValue as I,
10892
- clearSealValue as J,
10893
- parseRuntimeFieldPath as K,
10894
- calculateFormula as L,
10898
+ getObjectBomProductQuery as E,
10899
+ EMPTY_PRODUCT_VERSION_ID as F,
10900
+ normalizeHistoricalAutofillRow as G,
10901
+ readSealValue as H,
10902
+ isSealStamped as I,
10903
+ stampSealValue as J,
10904
+ isValidSealValue as K,
10905
+ clearSealValue as L,
10895
10906
  MAX_RUNTIME_SHEETS as M,
10896
10907
  NCB_PROVIDE as N,
10897
- useStyles as O,
10898
- useDependency as P,
10899
- useFieldPresentation as Q,
10900
- useRuntimeEditorFlusher as R,
10901
- RuntimeFormStateStore as S,
10902
- createRuntimeInstanceContext as T,
10903
- RuntimeInstanceRegistry as U,
10904
- ScanParamType as V,
10905
- RequiredQtyCalcRule as W,
10906
- registerFormulaFuncs as X,
10907
- moveSealValue as Y,
10908
- DocumentPaper as Z,
10909
- DynamicTableAction as _,
10908
+ parseRuntimeFieldPath as O,
10909
+ calculateFormula as P,
10910
+ useStyles as Q,
10911
+ useDependency as R,
10912
+ useFieldPresentation as S,
10913
+ useRuntimeEditorFlusher as T,
10914
+ RuntimeFormStateStore as U,
10915
+ createRuntimeInstanceContext as V,
10916
+ RuntimeInstanceRegistry as W,
10917
+ ScanParamType as X,
10918
+ RequiredQtyCalcRule as Y,
10919
+ registerFormulaFuncs as Z,
10920
+ moveSealValue as _,
10910
10921
  MAX_RUNTIME_SHEET_TITLE_LENGTH as a,
10911
- resolveScanQty as a$,
10912
- getRuntimeDataFieldId as a0,
10913
- buildRuntimeFieldPath as a1,
10914
- resolveRuntimeFieldProps as a2,
10915
- resolveRuntimeFieldState as a3,
10916
- assembleRules as a4,
10917
- isAttachFieldActive as a5,
10918
- getRuntimeDependencyOutputKey as a6,
10919
- isRowAddedInCurrentFormChange as a7,
10920
- MaterialConsumeTableController as a8,
10921
- setFormulaParamsConfig as a9,
10922
- SubTableCore as aA,
10923
- buildFormChangeDisplayRows as aB,
10924
- convertV1Runtime as aC,
10925
- detailsHaveFormChangeRowOps as aD,
10926
- extractFormChangeRowDetails as aE,
10927
- getFormChangeRowKey as aF,
10928
- getFormChangeRowOp as aG,
10929
- getSubTableQuickFillInfo as aH,
10930
- isAnnLocationSelected as aI,
10931
- isBlank as aJ,
10932
- isFormChangeGhostRow as aK,
10933
- normalizeHistoricalFieldConfig as aL,
10934
- pickObjectFieldKeys as aM,
10935
- recordSubtableRowAdd as aN,
10936
- recordSubtableRowDelete as aO,
10937
- relocateDeletedRowsToEnd as aP,
10938
- resolveAnnotationFieldLocation as aQ,
10939
- resolveFormChangeRowUi as aR,
10940
- resolveRowFormChangeMark as aS,
10941
- setSelectMobileTdId as aT,
10942
- stripLegacyFormConfigFromPaper as aU,
10943
- SubTableActionMenuTypeEnum as aV,
10944
- getMenuByAction as aW,
10945
- SubTableActionEnum as aX,
10946
- resolveScanFillData as aY,
10947
- getInsertSubMenu as aZ,
10948
- resolveScanAdjustType as a_,
10949
- normalizeRuntime as aa,
10950
- initializeSealFields as ab,
10951
- RuntimeSheetService as ac,
10952
- validateObjectBomQtyOnSubmit as ad,
10953
- areValidationCommentsEqual as ae,
10954
- closeValidatorPopovers as af,
10955
- enrichFormChangeRowDetails as ag,
10956
- useMaterialBalance as ah,
10957
- collectFormChangeFieldLocations as ai,
10958
- nextFormChangeRowViewHistoryId as aj,
10959
- DeviceConnector as ak,
10960
- DocumentLoading as al,
10961
- DynamicQuickFillModal as am,
10962
- FixedQuickFillModal as an,
10963
- FormTmplConfigController as ao,
10964
- LEGACY_RUNTIME_FORM_CONFIG_KEYS as ap,
10965
- LEGACY_RUNTIME_SHEET_ID as aq,
10966
- LEGACY_RUNTIME_SHEET_TITLE as ar,
10967
- MCDataUtil as as,
10968
- OCR_MODEL_PRECISION_ENUM_KEY as at,
10969
- RuntimeAsyncTaskCoordinator as au,
10970
- RuntimeDependencyService as av,
10971
- RuntimeFieldRegistry as aw,
10972
- RuntimeInstanceEventBus as ax,
10973
- RuntimePersistenceCoordinator as ay,
10974
- RuntimeValidationService as az,
10922
+ getInsertSubMenu as a$,
10923
+ DynamicTableAction as a0,
10924
+ _sfc_main$5 as a1,
10925
+ getRuntimeDataFieldId as a2,
10926
+ buildRuntimeFieldPath as a3,
10927
+ resolveRuntimeFieldProps as a4,
10928
+ resolveRuntimeFieldState as a5,
10929
+ assembleRules as a6,
10930
+ isAttachFieldActive as a7,
10931
+ getRuntimeDependencyOutputKey as a8,
10932
+ isRowAddedInCurrentFormChange as a9,
10933
+ RuntimePersistenceCoordinator as aA,
10934
+ RuntimeValidationService as aB,
10935
+ SubTableCore as aC,
10936
+ buildFormChangeDisplayRows as aD,
10937
+ convertV1Runtime as aE,
10938
+ detailsHaveFormChangeRowOps as aF,
10939
+ extractFormChangeRowDetails as aG,
10940
+ getFormChangeRowKey as aH,
10941
+ getFormChangeRowOp as aI,
10942
+ getSubTableQuickFillInfo as aJ,
10943
+ isAnnLocationSelected as aK,
10944
+ isBlank as aL,
10945
+ isFormChangeGhostRow as aM,
10946
+ normalizeHistoricalFieldConfig as aN,
10947
+ pickObjectFieldKeys as aO,
10948
+ recordSubtableRowAdd as aP,
10949
+ recordSubtableRowDelete as aQ,
10950
+ relocateDeletedRowsToEnd as aR,
10951
+ resolveAnnotationFieldLocation as aS,
10952
+ resolveFormChangeRowUi as aT,
10953
+ resolveRowFormChangeMark as aU,
10954
+ setSelectMobileTdId as aV,
10955
+ stripLegacyFormConfigFromPaper as aW,
10956
+ SubTableActionMenuTypeEnum as aX,
10957
+ getMenuByAction as aY,
10958
+ SubTableActionEnum as aZ,
10959
+ resolveScanFillData as a_,
10960
+ MaterialConsumeTableController as aa,
10961
+ setFormulaParamsConfig as ab,
10962
+ normalizeRuntime as ac,
10963
+ initializeSealFields as ad,
10964
+ RuntimeSheetService as ae,
10965
+ validateObjectBomQtyOnSubmit as af,
10966
+ areValidationCommentsEqual as ag,
10967
+ closeValidatorPopovers as ah,
10968
+ enrichFormChangeRowDetails as ai,
10969
+ useMaterialBalance as aj,
10970
+ collectFormChangeFieldLocations as ak,
10971
+ nextFormChangeRowViewHistoryId as al,
10972
+ DeviceConnector as am,
10973
+ DocumentLoading as an,
10974
+ DynamicQuickFillModal as ao,
10975
+ FixedQuickFillModal as ap,
10976
+ FormTmplConfigController as aq,
10977
+ LEGACY_RUNTIME_FORM_CONFIG_KEYS as ar,
10978
+ LEGACY_RUNTIME_SHEET_ID as as,
10979
+ LEGACY_RUNTIME_SHEET_TITLE as at,
10980
+ MCDataUtil as au,
10981
+ OCR_MODEL_PRECISION_ENUM_KEY as av,
10982
+ RuntimeAsyncTaskCoordinator as aw,
10983
+ RuntimeDependencyService as ax,
10984
+ RuntimeFieldRegistry as ay,
10985
+ RuntimeInstanceEventBus as az,
10975
10986
  MULTI_SHEET_SCHEMA_VERSION as b,
10976
- toDateOnly as b0,
10977
- hasSubtableBusinessData as b1,
10978
- getCopySubMenu as b2,
10979
- resolveScanParsedValue as b3,
10980
- isProductBatchEmptyRow as b4,
10987
+ resolveScanAdjustType as b0,
10988
+ resolveScanQty as b1,
10989
+ toDateOnly as b2,
10990
+ hasSubtableBusinessData as b3,
10991
+ getCopySubMenu as b4,
10992
+ resolveScanParsedValue as b5,
10993
+ isProductBatchEmptyRow as b6,
10981
10994
  getBusinessFieldKey as c,
10982
10995
  createRuntimeDocumentV2 as d,
10983
10996
  clampSealPosition as e,
10984
- normalizeFieldWidth as f,
10997
+ normalizeSealDiameter as f,
10985
10998
  getParseFormulaVarInfos as g,
10986
- normalizeHistoricalBusinessRow as h,
10987
- DeviceLinkTmplUtil as i,
10988
- normalizeAIOcrTmpl as j,
10989
- useWidgetStaticAttrs as k,
10990
- useRuntimeInstanceServices as l,
10991
- setSelectAnnotationId as m,
10992
- normalizeSealDiameter as n,
10993
- useRuntimeRowState as o,
10994
- getObjectBomMaterialLotQuery as p,
10995
- buildObjectLotExtraQuery as q,
10996
- resolveObjectFieldKeys as r,
10999
+ normalizeFieldWidth as h,
11000
+ isCellAutoLineBreak as i,
11001
+ normalizeHistoricalBusinessRow as j,
11002
+ DeviceLinkTmplUtil as k,
11003
+ normalizeAIOcrTmpl as l,
11004
+ useWidgetStaticAttrs as m,
11005
+ normalizeGridColumnWidth as n,
11006
+ useRuntimeInstanceServices as o,
11007
+ setSelectAnnotationId as p,
11008
+ useRuntimeRowState as q,
11009
+ getObjectBomMaterialLotQuery as r,
10997
11010
  setSelectValidatorId as s,
10998
- MaterialConsumptionPatternEnum as t,
11011
+ buildObjectLotExtraQuery as t,
10999
11012
  useFormTmplConfig as u,
11000
- validateObjectBomForScan as v,
11001
- resolveObjectBomEntry as w,
11002
- runWithFillProduct as x,
11003
- useNocodeFormWidget as y,
11004
- applyConsumeObjectTraceChange as z
11013
+ resolveObjectFieldKeys as v,
11014
+ MaterialConsumptionPatternEnum as w,
11015
+ validateObjectBomForScan as x,
11016
+ resolveObjectBomEntry as y,
11017
+ runWithFillProduct as z
11005
11018
  };