@gct-paas/excel 0.1.40-beta.25 → 0.1.40-beta.27

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 (96) hide show
  1. package/dist/{BaseComponent-gOtXQLY_.js → BaseComponent-B0s9C7u7.js} +2 -2
  2. package/dist/{VueVideoPlayer-CB5VHlj2.js → VueVideoPlayer-BCGJs86_.js} +2 -2
  3. package/dist/{align-editor-ssy7gJsD.js → align-editor-DBWdbAV_.js} +1 -1
  4. package/dist/{barcode-design-Mjrep3H_.js → barcode-design-YdLnj4EK.js} +2 -2
  5. package/dist/base/index.es.js +189 -193
  6. package/dist/{diagonal-design-CFBp2E-O.js → diagonal-design-vCovyGwZ.js} +2 -2
  7. package/dist/{dynamic-table-action-BKX0Oeoy.js → dynamic-table-action-9oc6dkLz.js} +144 -215
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-CMil2DLD.js} +751 -320
  9. package/dist/{edit.utils-CXmmCnxE-CwPcGg-f.js → edit.utils-CXmmCnxE-BvWz-8bv.js} +1 -1
  10. package/dist/excel.css +12 -12
  11. package/dist/{exceljs.min-eo-E80If.js → exceljs.min-Dp6PAQE9.js} +2 -2
  12. package/dist/{font-editor-CAZX85G4.js → font-editor-gcStnuue.js} +3 -3
  13. package/dist/{image-design-g9R_z-IY.js → image-design-DJ3VRU2t.js} +2 -2
  14. package/dist/{index--7My1yo5.js → index-2mRh7iFw.js} +350 -192
  15. package/dist/{index-BBq6DSLI.js → index-7WwJSlNN.js} +2 -2
  16. package/dist/{index-DEMinegB.js → index-AmKjgww5.js} +1 -1
  17. package/dist/{index--RhdrCZV.js → index-Avrz1-1F.js} +2 -2
  18. package/dist/{index-C6oivLbu.js → index-B5AUi6i3.js} +1 -1
  19. package/dist/{index-DifKRFVy.js → index-BCeR77y-.js} +2 -2
  20. package/dist/{index-D3cPbNne.js → index-BHTcJLrz.js} +1 -1
  21. package/dist/{index-DzT1SZ9z.js → index-BYf9Fudx.js} +3 -3
  22. package/dist/{index-CoKpbR25.js → index-BaCa0TgP.js} +2 -2
  23. package/dist/{index-BycDrbO0.js → index-BsmHcJs3.js} +2 -2
  24. package/dist/{index-D-WSp3EA.js → index-CFTsMiRR.js} +1 -1
  25. package/dist/{index-CpQiCEe7.js → index-CFvLIeFl.js} +1 -1
  26. package/dist/{index-B9hIqELW.js → index-CLLc5Ob2.js} +1 -1
  27. package/dist/{index-PUFY8idd.js → index-COOampHb.js} +1 -1
  28. package/dist/{index-Cpn8pcne.js → index-Ck06j4gn.js} +2 -2
  29. package/dist/{index-NH1JcF4s.js → index-Cl-QMM1R.js} +2 -2
  30. package/dist/{index-0S-kw2HL.js → index-CtEUzXVk.js} +2 -2
  31. package/dist/{index-iYrfBvkL.js → index-CzUGIYOv.js} +2 -2
  32. package/dist/{index-0pYUJqWX.js → index-D3ZQLjrQ.js} +2 -2
  33. package/dist/{index-BoGFEaqo.js → index-D6eANpFX.js} +2 -2
  34. package/dist/{index-NulsmEum.js → index-D90UOUAU.js} +3 -3
  35. package/dist/{index-DozFqpk2.js → index-D9j3S6qI.js} +1 -1
  36. package/dist/{index-SrAjB-wq.js → index-DIodi5gH.js} +4 -4
  37. package/dist/{index-8WHvZyAx.js → index-DPP4WDPc.js} +2 -2
  38. package/dist/{index-hNdJpzws.js → index-DXqsUrWV.js} +3 -3
  39. package/dist/{index-BLv5fzzG.js → index-DnsZjDDh.js} +2 -2
  40. package/dist/{index-Cmr9DRpz.js → index-Dzl5Ukft.js} +1 -1
  41. package/dist/{index-BMlGh5m0.js → index-Mg-zrcwn.js} +2 -2
  42. package/dist/{index-jTfc0zM7.js → index-agcLaGBj.js} +2 -2
  43. package/dist/{index-BLqJtzs6.js → index-cOcBl2Ga.js} +2 -2
  44. package/dist/{index-DgEDg0_J.js → index-gWEP20xe.js} +3 -3
  45. package/dist/{index-fcxbS2U1.js → index-iYYd2oH1.js} +3 -3
  46. package/dist/{index-9Mi1Iiw8.js → index-sWtzbaDv.js} +3 -3
  47. package/dist/{index-YteSvWxT.js → index-y3jt4BZe.js} +1 -1
  48. package/dist/index.es.js +2 -2
  49. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DjI5GeWt.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-B79l8Vcj.js} +1 -1
  50. package/dist/{pagination-design-DelDPMV6.js → pagination-design-BZZcBbIF.js} +2 -2
  51. package/dist/paper-widget-design-Coh8v5mV.js +4 -0
  52. package/dist/{print-runtime-instance-NcHBwPwX.js → print-runtime-instance-CV0WcU-Z.js} +1 -1
  53. package/dist/{print-snapshot-renderer-Dw-xzoDx.js → print-snapshot-renderer-hHd4ThE0.js} +3 -3
  54. package/dist/{qrcode-design-DAYfoLN-.js → qrcode-design-C8d7cE3K.js} +1 -1
  55. package/dist/{revo-grid.entry-Bh8ebL13.js → revo-grid.entry-DSnc_nH1.js} +1 -1
  56. package/dist/{revogr-attribution_7.entry-CsJaMH68.js → revogr-attribution_7.entry-D67ci-yw.js} +3 -3
  57. package/dist/{revogr-clipboard_3.entry-DgmZ8Pc0.js → revogr-clipboard_3.entry-C9h0dhAb.js} +2 -2
  58. package/dist/{revogr-data_4.entry-CPW7BILy.js → revogr-data_4.entry-DuuRVRex.js} +2 -2
  59. package/dist/{revogr-filter-panel.entry-BpIcSbuR.js → revogr-filter-panel.entry-BeIaYORN.js} +1 -1
  60. package/dist/seal-design-DfKie-Qg.js +4 -0
  61. package/dist/{serialnumber-design-C92sT5qW.js → serialnumber-design-wyJY14Fx.js} +1 -1
  62. package/dist/shared/index.es.js +25 -25
  63. package/dist/{single-field-drop-BcuqHgNO.js → single-field-drop-CA6EtCtR.js} +2 -2
  64. package/dist/{size-editor-JdHGylGx.js → size-editor-lAn0ECzs.js} +1 -1
  65. package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +2 -0
  66. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +3 -0
  67. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
  68. package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
  69. package/dist/src/nocode-base/src/interface/transform.d.ts +8 -0
  70. package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
  71. package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
  72. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +3 -0
  73. package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
  74. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +2 -2
  75. package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useReferenceLabel.d.ts +4 -0
  76. package/dist/src/shared/enum/field-type.d.ts +1 -1
  77. package/dist/{sub-table-factory-v9spfnMN.js → sub-table-factory-CwbQEPJq.js} +14 -2
  78. package/dist/{text-design-BjhwgpUv.js → text-design-Bv4PfeOW.js} +2 -2
  79. package/dist/{throttle-Cpk1LoGk-DQh0IPeE.js → throttle-Cpk1LoGk-BaXaGrUw.js} +1 -1
  80. package/dist/{timediff-design-D84T_Isx.js → timediff-design-CxT_O6R8.js} +1 -1
  81. package/dist/{trace-like-wrapper-DHb2jlre.js → trace-like-wrapper-CGe5K_FN.js} +2 -2
  82. package/dist/{value-editor.vue_vue_type_style_index_0_lang-CV1HsENd.js → value-editor.vue_vue_type_style_index_0_lang-CQTuzWX2.js} +2 -2
  83. package/dist/{widget-barcode-CNB9Sqle.js → widget-barcode-C83yiwNl.js} +4 -4
  84. package/dist/{widget-diagonal-6ZDcxCwX.js → widget-diagonal-C-zD-MLy.js} +3 -3
  85. package/dist/{widget-image-D--Ynjra.js → widget-image-DIcnWHn7.js} +4 -4
  86. package/dist/{widget-line-CpwqEFD9.js → widget-line-BnMezWy-.js} +2 -2
  87. package/dist/{widget-pagination-BN3wWsKq.js → widget-pagination-QWM1Nmlo.js} +5 -5
  88. package/dist/{widget-power-Cn61OOWe.js → widget-power-DnqxPUmW.js} +3 -3
  89. package/dist/{widget-qrcode-BgUCM01T.js → widget-qrcode-PBnm6ehD.js} +3 -3
  90. package/dist/{widget-rangelimit-CnNNwIo0.js → widget-rangelimit-CDyYKHeg.js} +3 -3
  91. package/dist/{widget-serialnumber-gZih5585.js → widget-serialnumber-BwS-Ac9h.js} +1 -1
  92. package/dist/{widget-text--iXnC5zl.js → widget-text-COW-IQ1P.js} +5 -5
  93. package/dist/{widget-timediff-DN-FCR7T.js → widget-timediff-RpQcMPpb.js} +2 -2
  94. package/package.json +2 -2
  95. package/dist/paper-widget-design-UPTi8CN4.js +0 -4
  96. package/dist/seal-design-CeJEHJ-K.js +0 -4
@@ -1,5 +1,5 @@
1
1
  import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, toRef, provide, nextTick, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
2
- import { al as CellWidgetViewState, F as FIELD_TYPE, bm as RenderModeEnum, a0 as FormTypeEnum, bC as BpmnNodeTypeEnum, cr as getFieldPlaceholder, bS as MobileFillTypeEnum, C as ComponentTypeEnum, bl as findRuntimeTableRow, b2 as renderUtils, a3 as PlatformEnum, p as api, bv as uuid2, c0 as calcUtils, c4 as ensureTableRowKeys, bZ as bindRuntimeTableColumns, bk as getRowId, cs as FRONT_ROW_KEY, cj as isTableRowKeyMatch, aA as RangeCompareOp, az as RangeValidateMode, c1 as decodeTableCellRowKey, c3 as ensureFrontRowKey, ba as getParseRuleInfo, aM as transformUtils, b4 as materialCheck, b5 as getLotLockedReason, b6 as validateReinspectionDate, bp as FormulaRuleFieldKeyEnum, N as CreateType, h as SubTableType, bb as getParseRuleValue, bn as findRuntimeParentRow, aP as Dependency_ENUM, aO as ASSIGNMENTSTRATEGY_ENUM, bG as commonUtils, aT as DeviceLink, ac as useNamespace, ad as _export_sfc, I as Icon, cd as getRenderedRuntimeTableCell, H as CellType, ct as resetTableRowIdentity, R as useModal, cu as q, cv as QUICK_FILL_ALLOWED_FIELDS, cw as groupFixedTableRows, cx as processQuickFillRows, cy as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
2
+ import { am as CellWidgetViewState, F as FIELD_TYPE, bo as RenderModeEnum, a1 as FormTypeEnum, bJ as BpmnNodeTypeEnum, by as getRuntimeDataFieldId, cz as getFieldPlaceholder, b_ as MobileFillTypeEnum, C as ComponentTypeEnum, a4 as PlatformEnum, cA as isReferenceOptionActive, p as api, bx as uuid2, c8 as calcUtils, M as getBusinessFieldKey, bn as findRuntimeTableRow, cc as ensureTableRowKeys, c5 as bindRuntimeTableColumns, bm as getRowId, cB as FRONT_ROW_KEY, cr as isTableRowKeyMatch, aB as RangeCompareOp, aA as RangeValidateMode, cC as getCurrentFormData, bB as isAttachFieldActive, bl as parseRuntimeFieldPath, c9 as decodeTableCellRowKey, cb as ensureFrontRowKey, bb as getParseRuleInfo, aN as transformUtils, b5 as materialCheck, b6 as getLotLockedReason, b7 as validateReinspectionDate, br as FormulaRuleFieldKeyEnum, bA as buildRuntimeFieldPath, Q as CreateType, h as SubTableType, bc as getParseRuleValue, bp as findRuntimeParentRow, aQ as Dependency_ENUM, aP as ASSIGNMENTSTRATEGY_ENUM, bO as commonUtils, aU as DeviceLink, ad as useNamespace, ae as _export_sfc, I as Icon, cl as getRenderedRuntimeTableCell, H as CellType, cD as resetTableRowIdentity, U as useModal, cE as q, cF as QUICK_FILL_ALLOWED_FIELDS, cG as groupFixedTableRows, cH as processQuickFillRows, cI as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-CMil2DLD.js";
3
3
  import dayjs from "dayjs";
4
4
  import { cloneDeep, isEmpty, isNil, pickBy, mergeWith, omit, last, pick, merge } from "lodash-es";
5
5
  import "@gct-paas/form-base";
@@ -351,51 +351,6 @@ function resolveRuntimeFieldState(props, info) {
351
351
  keepExceptionHighlight: typeof props.keepExceptionHighlight === "boolean" ? props.keepExceptionHighlight : void 0
352
352
  };
353
353
  }
354
- function getRuntimeDataFieldId(props = {}) {
355
- return props.field ? props.isFieldModel ? props.fieldLink ?? "" : props.field : "";
356
- }
357
- function getBusinessFieldKey(field) {
358
- return [field.subModelKey ?? field.modelKey ?? "", field.fieldId ?? ""].join(":");
359
- }
360
- const FIELD_POSITION_PREFIX = "runtime_field_";
361
- function buildRuntimeFieldPath(position) {
362
- if (!position.fieldId) throw new Error("运行时字段位置缺少 fieldId");
363
- if (position.subFieldKey && !position.rowKey) throw new Error("子表字段位置缺少 front_row_key_");
364
- const serialized = JSON.stringify([
365
- position.modelKey ?? "",
366
- position.subModelKey ?? "",
367
- position.subFieldKey ?? "",
368
- position.rowKey ?? "",
369
- position.fieldId
370
- ]);
371
- return FIELD_POSITION_PREFIX + btoa(
372
- Array.from(new TextEncoder().encode(serialized), (byte) => String.fromCharCode(byte)).join(
373
- ""
374
- )
375
- ).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
376
- }
377
- function parseRuntimeFieldPath(path) {
378
- if (!path.startsWith(FIELD_POSITION_PREFIX)) return void 0;
379
- try {
380
- const encoded = path.slice(FIELD_POSITION_PREFIX.length).replace(/-/g, "+").replace(/_/g, "/");
381
- const parts = JSON.parse(
382
- new TextDecoder().decode(Uint8Array.from(atob(encoded), (char) => char.charCodeAt(0)))
383
- );
384
- if (!Array.isArray(parts) || parts.length !== 5 || parts.some((part) => typeof part !== "string"))
385
- return void 0;
386
- const [modelKey, subModelKey, subFieldKey, rowKey, fieldId] = parts;
387
- if (!fieldId || subFieldKey && !rowKey) return void 0;
388
- return {
389
- modelKey: modelKey || void 0,
390
- subModelKey: subModelKey || void 0,
391
- subFieldKey: subFieldKey || void 0,
392
- rowKey: rowKey || void 0,
393
- fieldId
394
- };
395
- } catch {
396
- return void 0;
397
- }
398
- }
399
354
  function isCellAutoLineBreak(style) {
400
355
  const whiteSpace = style?.whiteSpace ?? style?.["white-space"];
401
356
  const wordBreak = style?.wordBreak ?? style?.["word-break"];
@@ -771,49 +726,6 @@ function getSubTableQuickFillInfo(subTableFieldId, mobileTdIdGroups) {
771
726
  if (!subTableFieldId) return;
772
727
  return assignWidgetInfo(MobileFillTypeEnum.SUB_TABLE, { rowSubFieldKey: subTableFieldId });
773
728
  }
774
- function getCurrentFormData(_rule, options) {
775
- if (!_rule._subtableFieldId) return options?.formData;
776
- return findRuntimeTableRow(options?.formData?.[_rule._subtableFieldId], _rule._rowKey);
777
- }
778
- function isSameOptionValue(current, expected) {
779
- if (typeof expected === "boolean") {
780
- return renderUtils.getBoolValue(current) === expected;
781
- }
782
- if (current === void 0 || current === null || current === "") {
783
- return false;
784
- }
785
- return String(current) === String(expected);
786
- }
787
- function isAttachFieldActive(attach, formData) {
788
- if (attach?.parent && !isAttachFieldActive(attach.parent, formData)) return false;
789
- if (!attach?.belongFieldId || isNil(attach.optionValue)) {
790
- return true;
791
- }
792
- const row = attach.subtableFieldId ? findRuntimeTableRow(formData?.[attach.subtableFieldId], attach.rowKey) : formData;
793
- if (attach.subtableFieldId && (!attach.rowKey || !row || row === formData)) {
794
- return false;
795
- }
796
- const raw = row?.[attach.belongFieldId];
797
- if (attach.multiple) {
798
- const current = renderUtils.getValue(raw, true);
799
- if (!Array.isArray(current)) return false;
800
- return current.some((v) => isSameOptionValue(v, attach.optionValue));
801
- }
802
- return isSameOptionValue(raw, attach.optionValue);
803
- }
804
- function isReferenceOptionActive(referenceInfo, rowFormData) {
805
- if (!referenceInfo?.belongFieldId || isNil(referenceInfo.optionValue)) {
806
- return true;
807
- }
808
- return isAttachFieldActive(
809
- {
810
- belongFieldId: referenceInfo.belongFieldId,
811
- optionValue: referenceInfo.optionValue,
812
- multiple: referenceInfo.multiple
813
- },
814
- rowFormData
815
- );
816
- }
817
729
  function fieldChromeStyles(state) {
818
730
  const required4 = state === "required";
819
731
  const disabled = state === "disabled";
@@ -1557,6 +1469,7 @@ class RuntimeFormStateStore {
1557
1469
  constructor(initialState, subtableFields = [], tableRelations = []) {
1558
1470
  this.tableRelations = tableRelations;
1559
1471
  this.subtableFields = new Set(subtableFields);
1472
+ normalizeEmptyReferenceLabels(initialState);
1560
1473
  this.subtableFields.forEach((field) => ensureTableRowKeys(initialState[field]));
1561
1474
  bindRuntimeTableColumns(initialState, this.tableRelations);
1562
1475
  this.reactiveState = reactive(initialState);
@@ -1713,7 +1626,7 @@ class RuntimeFormStateStore {
1713
1626
  this.ensureIncomingRowKeys(target, fieldKey, value);
1714
1627
  const valueChanged = !Object.is(toRaw(this.unwrap(target[fieldKey])), toRaw(value));
1715
1628
  const labelKey = `${fieldKey}_lb_`;
1716
- const clearLabel = (value == null || value === "" || Array.isArray(value) && value.length === 0) && target[labelKey] != null;
1629
+ const clearLabel = isEmptyReferenceValue(value) && target[labelKey] != null;
1717
1630
  if (!valueChanged && !clearLabel) return;
1718
1631
  const paths = valueChanged ? [path] : [];
1719
1632
  if (clearLabel) paths.push(`${path}_lb_`);
@@ -1752,6 +1665,7 @@ class RuntimeFormStateStore {
1752
1665
  this.mutate(Array.from(paths), source, () => {
1753
1666
  Object.keys(this.reactiveState).forEach((key) => delete this.reactiveState[key]);
1754
1667
  this.assignValues(this.reactiveState, values);
1668
+ normalizeEmptyReferenceLabels(this.reactiveState);
1755
1669
  });
1756
1670
  this.userModifiedPaths.clear();
1757
1671
  if (source === "restore") this.dirty = false;
@@ -1932,6 +1846,23 @@ const ARRAY_MUTATIONS = /* @__PURE__ */ new Set([
1932
1846
  "unshift"
1933
1847
  ]);
1934
1848
  const ARRAY_SEARCHES = /* @__PURE__ */ new Set(["includes", "indexOf", "lastIndexOf"]);
1849
+ function isEmptyReferenceValue(value) {
1850
+ return value == null || value === "" || Array.isArray(value) && value.length === 0;
1851
+ }
1852
+ function normalizeEmptyReferenceLabels(value, visited = /* @__PURE__ */ new WeakSet()) {
1853
+ if (!isMutableRecord(value) || visited.has(toRaw(value))) return;
1854
+ visited.add(toRaw(value));
1855
+ Object.entries(value).forEach(([key, child]) => {
1856
+ if (key.endsWith("_lb_")) {
1857
+ const fieldKey = key.slice(0, -4);
1858
+ if (child != null && Object.prototype.hasOwnProperty.call(value, fieldKey) && isEmptyReferenceValue(value[fieldKey])) {
1859
+ value[key] = null;
1860
+ }
1861
+ } else if (key !== "_DICT") {
1862
+ normalizeEmptyReferenceLabels(child, visited);
1863
+ }
1864
+ });
1865
+ }
1935
1866
  function joinPath(basePath, key) {
1936
1867
  return basePath ? `${basePath}.${key}` : key;
1937
1868
  }
@@ -4481,6 +4412,7 @@ class RuntimeInstanceRegistry {
4481
4412
  this.disposables.get(uniqueId)?.forEach((dispose) => dispose());
4482
4413
  this.disposables.delete(uniqueId);
4483
4414
  record.fieldInitializer?.dispose();
4415
+ record.defaultValueValidation?.dispose();
4484
4416
  record.ruleCompiler?.dispose();
4485
4417
  record.validation.dispose();
4486
4418
  record.scriptRunner?.dispose();
@@ -9221,6 +9153,7 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
9221
9153
  const newRowsData = actionType === "copyRow" ? [cloneDeep(rowData)] : Array.from({
9222
9154
  length: rowNum
9223
9155
  }, (_, index2) => transformUtils.addSubTableRowItem({
9156
+ defaultValueOrigins: instance.value?.defaultValueValidation?.defaults,
9224
9157
  defaultData: currentFieldDefaultData.value,
9225
9158
  quickFillData: quickFillDatas?.[index2],
9226
9159
  subFieldId: field,
@@ -9776,6 +9709,7 @@ const MaterialConsumeTable = /* @__PURE__ */ defineComponent({
9776
9709
  length: rowNum
9777
9710
  }, (_, i) => {
9778
9711
  const row = transformUtils.addSubTableRowItem({
9712
+ defaultValueOrigins: instance.value?.defaultValueValidation?.defaults,
9779
9713
  defaultData: currentFieldDefaultData.value,
9780
9714
  quickFillData: quickFillDatas?.[i],
9781
9715
  subFieldId: field,
@@ -11186,139 +11120,134 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11186
11120
  });
11187
11121
  const DynamicTableAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8710052f"]]);
11188
11122
  export {
11189
- RuntimeInstanceRegistry as $,
11190
- MaterialConsumptionPatternEnum as A,
11123
+ RequiredQtyCalcRule as $,
11124
+ validateObjectBomForScan as A,
11191
11125
  BorderTD as B,
11192
- validateObjectBomForScan as C,
11126
+ resolveObjectBomEntry as C,
11193
11127
  DEFAULT_BOOLEAN_FIELD_WIDTH as D,
11194
- resolveObjectBomEntry as E,
11128
+ runWithFillProduct as E,
11195
11129
  FormModelController as F,
11196
- runWithFillProduct as G,
11197
- useNocodeFormWidget as H,
11198
- applyConsumeObjectTraceChange as I,
11199
- getObjectBomProductQuery as J,
11200
- EMPTY_PRODUCT_VERSION_ID as K,
11201
- normalizeHistoricalAutofillRow as L,
11130
+ useNocodeFormWidget as G,
11131
+ applyConsumeObjectTraceChange as H,
11132
+ getObjectBomProductQuery as I,
11133
+ EMPTY_PRODUCT_VERSION_ID as J,
11134
+ normalizeHistoricalAutofillRow as K,
11135
+ readSealValue as L,
11202
11136
  MAX_RUNTIME_SHEETS as M,
11203
- readSealValue as N,
11204
- isSealStamped as O,
11205
- stampSealValue as P,
11206
- isValidSealValue as Q,
11207
- clearSealValue as R,
11208
- parseRuntimeFieldPath as S,
11209
- NCB_PROVIDE as T,
11210
- calculateFormula as U,
11211
- useStyles as V,
11212
- useDependency as W,
11213
- useFieldPresentation as X,
11214
- useRuntimeEditorFlusher as Y,
11215
- RuntimeFormStateStore as Z,
11216
- createRuntimeInstanceContext as _,
11137
+ isSealStamped as N,
11138
+ stampSealValue as O,
11139
+ isValidSealValue as P,
11140
+ clearSealValue as Q,
11141
+ NCB_PROVIDE as R,
11142
+ calculateFormula as S,
11143
+ useStyles as T,
11144
+ useDependency as U,
11145
+ useFieldPresentation as V,
11146
+ useRuntimeEditorFlusher as W,
11147
+ RuntimeFormStateStore as X,
11148
+ createRuntimeInstanceContext as Y,
11149
+ RuntimeInstanceRegistry as Z,
11150
+ ScanParamType as _,
11217
11151
  MAX_RUNTIME_SHEET_TITLE_LENGTH as a,
11218
- resolveRowFormChangeMark as a$,
11219
- ScanParamType as a0,
11220
- RequiredQtyCalcRule as a1,
11221
- MBRender as a2,
11222
- MCRender as a3,
11223
- moveSealValue as a4,
11224
- DocumentPaper as a5,
11225
- DynamicTableAction as a6,
11226
- _sfc_main$5 as a7,
11227
- getRuntimeDataFieldId as a8,
11228
- buildRuntimeFieldPath as a9,
11229
- LEGACY_RUNTIME_SHEET_TITLE as aA,
11230
- MCDataUtil as aB,
11231
- OCR_MODEL_PRECISION_ENUM_KEY as aC,
11232
- RuntimeAsyncTaskCoordinator as aD,
11233
- RuntimeDependencyService as aE,
11234
- RuntimeFieldRegistry as aF,
11235
- RuntimeInstanceEventBus as aG,
11236
- RuntimePersistenceCoordinator as aH,
11237
- RuntimeValidationService as aI,
11238
- SubTableCore as aJ,
11239
- buildFormChangeDisplayRows as aK,
11240
- convertV1Runtime as aL,
11241
- detailsHaveFormChangeRowOps as aM,
11242
- extractFormChangeRowDetails as aN,
11243
- getFormChangeRowKey as aO,
11244
- getFormChangeRowOp as aP,
11245
- getSubTableQuickFillInfo as aQ,
11246
- isAnnLocationSelected as aR,
11247
- isBlank as aS,
11248
- isFormChangeGhostRow as aT,
11249
- normalizeHistoricalFieldConfig as aU,
11250
- pickObjectFieldKeys as aV,
11251
- recordSubtableRowAdd as aW,
11252
- recordSubtableRowDelete as aX,
11253
- relocateDeletedRowsToEnd as aY,
11254
- resolveAnnotationFieldLocation as aZ,
11255
- resolveFormChangeRowUi as a_,
11256
- resolveRuntimeFieldProps as aa,
11257
- resolveRuntimeFieldState as ab,
11258
- assembleRules as ac,
11259
- isAttachFieldActive as ad,
11260
- getRuntimeDependencyOutputKey as ae,
11261
- isRowAddedInCurrentFormChange as af,
11262
- MaterialConsumeTableController as ag,
11263
- setFormulaParamsConfig as ah,
11264
- normalizeRuntime as ai,
11265
- initializeSealFields as aj,
11266
- RuntimeSheetService as ak,
11267
- validateObjectBomQtyOnSubmit as al,
11268
- areValidationCommentsEqual as am,
11269
- closeValidatorPopovers as an,
11270
- enrichFormChangeRowDetails as ao,
11271
- useMaterialBalance as ap,
11272
- collectFormChangeFieldLocations as aq,
11273
- nextFormChangeRowViewHistoryId as ar,
11274
- BaseFormModelFetcher as as,
11275
- DeviceConnector as at,
11276
- DocumentLoading as au,
11277
- DynamicQuickFillModal as av,
11278
- FixedQuickFillModal as aw,
11279
- FormTmplConfigController as ax,
11280
- LEGACY_RUNTIME_FORM_CONFIG_KEYS as ay,
11281
- LEGACY_RUNTIME_SHEET_ID as az,
11152
+ SubTableActionEnum as a$,
11153
+ MBRender as a0,
11154
+ MCRender as a1,
11155
+ moveSealValue as a2,
11156
+ DocumentPaper as a3,
11157
+ DynamicTableAction as a4,
11158
+ _sfc_main$5 as a5,
11159
+ resolveRuntimeFieldProps as a6,
11160
+ resolveRuntimeFieldState as a7,
11161
+ assembleRules as a8,
11162
+ getRuntimeDependencyOutputKey as a9,
11163
+ RuntimeFieldRegistry as aA,
11164
+ RuntimeInstanceEventBus as aB,
11165
+ RuntimePersistenceCoordinator as aC,
11166
+ RuntimeValidationService as aD,
11167
+ SubTableCore as aE,
11168
+ buildFormChangeDisplayRows as aF,
11169
+ convertV1Runtime as aG,
11170
+ detailsHaveFormChangeRowOps as aH,
11171
+ extractFormChangeRowDetails as aI,
11172
+ getFormChangeRowKey as aJ,
11173
+ getFormChangeRowOp as aK,
11174
+ getSubTableQuickFillInfo as aL,
11175
+ isAnnLocationSelected as aM,
11176
+ isBlank as aN,
11177
+ isFormChangeGhostRow as aO,
11178
+ normalizeHistoricalFieldConfig as aP,
11179
+ pickObjectFieldKeys as aQ,
11180
+ recordSubtableRowAdd as aR,
11181
+ recordSubtableRowDelete as aS,
11182
+ relocateDeletedRowsToEnd as aT,
11183
+ resolveAnnotationFieldLocation as aU,
11184
+ resolveFormChangeRowUi as aV,
11185
+ resolveRowFormChangeMark as aW,
11186
+ setSelectMobileTdId as aX,
11187
+ stripLegacyFormConfigFromPaper as aY,
11188
+ SubTableActionMenuTypeEnum as aZ,
11189
+ getMenuByAction as a_,
11190
+ isRowAddedInCurrentFormChange as aa,
11191
+ MaterialConsumeTableController as ab,
11192
+ setFormulaParamsConfig as ac,
11193
+ normalizeRuntime as ad,
11194
+ initializeSealFields as ae,
11195
+ RuntimeSheetService as af,
11196
+ validateObjectBomQtyOnSubmit as ag,
11197
+ areValidationCommentsEqual as ah,
11198
+ closeValidatorPopovers as ai,
11199
+ enrichFormChangeRowDetails as aj,
11200
+ useMaterialBalance as ak,
11201
+ collectFormChangeFieldLocations as al,
11202
+ nextFormChangeRowViewHistoryId as am,
11203
+ BaseFormModelFetcher as an,
11204
+ DeviceConnector as ao,
11205
+ DocumentLoading as ap,
11206
+ DynamicQuickFillModal as aq,
11207
+ FixedQuickFillModal as ar,
11208
+ FormTmplConfigController as as,
11209
+ LEGACY_RUNTIME_FORM_CONFIG_KEYS as at,
11210
+ LEGACY_RUNTIME_SHEET_ID as au,
11211
+ LEGACY_RUNTIME_SHEET_TITLE as av,
11212
+ MCDataUtil as aw,
11213
+ OCR_MODEL_PRECISION_ENUM_KEY as ax,
11214
+ RuntimeAsyncTaskCoordinator as ay,
11215
+ RuntimeDependencyService as az,
11282
11216
  bindFormulaCacheInvalidation as b,
11283
- setSelectMobileTdId as b0,
11284
- stripLegacyFormConfigFromPaper as b1,
11285
- SubTableActionMenuTypeEnum as b2,
11286
- getMenuByAction as b3,
11287
- SubTableActionEnum as b4,
11288
- resolveScanFillData as b5,
11289
- buildDefaultMapFromProfile as b6,
11290
- buildFieldStatusFromProfile as b7,
11291
- getRowHandlersForFieldChange as b8,
11292
- getInsertSubMenu as b9,
11293
- resolveScanAdjustType as ba,
11294
- resolveScanQty as bb,
11295
- toDateOnly as bc,
11296
- hasSubtableBusinessData as bd,
11297
- getCopySubMenu as be,
11298
- resolveScanParsedValue as bf,
11299
- isProductBatchEmptyRow as bg,
11217
+ resolveScanFillData as b0,
11218
+ buildDefaultMapFromProfile as b1,
11219
+ buildFieldStatusFromProfile as b2,
11220
+ getRowHandlersForFieldChange as b3,
11221
+ getInsertSubMenu as b4,
11222
+ resolveScanAdjustType as b5,
11223
+ resolveScanQty as b6,
11224
+ toDateOnly as b7,
11225
+ hasSubtableBusinessData as b8,
11226
+ getCopySubMenu as b9,
11227
+ resolveScanParsedValue as ba,
11228
+ isProductBatchEmptyRow as bb,
11300
11229
  currentParamsConfig as c,
11301
11230
  MULTI_SHEET_SCHEMA_VERSION as d,
11302
- getParseFormulaVarInfos as e,
11303
- createRuntimeDocumentV2 as f,
11304
- getBusinessFieldKey as g,
11305
- clampSealPosition as h,
11306
- normalizeSealDiameter as i,
11307
- normalizeFieldWidth as j,
11308
- isCellAutoLineBreak as k,
11309
- useFormTmplConfig as l,
11310
- findFieldProfile as m,
11231
+ createRuntimeDocumentV2 as e,
11232
+ clampSealPosition as f,
11233
+ getParseFormulaVarInfos as g,
11234
+ normalizeSealDiameter as h,
11235
+ normalizeFieldWidth as i,
11236
+ isCellAutoLineBreak as j,
11237
+ useFormTmplConfig as k,
11238
+ findFieldProfile as l,
11239
+ normalizeHistoricalBusinessRow as m,
11311
11240
  normalizeGridColumnWidth as n,
11312
- normalizeHistoricalBusinessRow as o,
11313
- DeviceLinkTmplUtil as p,
11314
- normalizeAIOcrTmpl as q,
11315
- useWidgetStaticAttrs as r,
11316
- useRuntimeInstanceServices as s,
11317
- setSelectValidatorId as t,
11241
+ DeviceLinkTmplUtil as o,
11242
+ normalizeAIOcrTmpl as p,
11243
+ useWidgetStaticAttrs as q,
11244
+ useRuntimeInstanceServices as r,
11245
+ setSelectValidatorId as s,
11246
+ setSelectAnnotationId as t,
11318
11247
  useFormModel as u,
11319
- setSelectAnnotationId as v,
11320
- useRuntimeRowState as w,
11321
- getObjectBomMaterialLotQuery as x,
11322
- buildObjectLotExtraQuery as y,
11323
- resolveObjectFieldKeys as z
11248
+ useRuntimeRowState as v,
11249
+ getObjectBomMaterialLotQuery as w,
11250
+ buildObjectLotExtraQuery as x,
11251
+ resolveObjectFieldKeys as y,
11252
+ MaterialConsumptionPatternEnum as z
11324
11253
  };