@gct-paas/excel 0.1.40-beta.26 → 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 (94) hide show
  1. package/dist/{BaseComponent-ClKLQPlb.js → BaseComponent-B0s9C7u7.js} +2 -2
  2. package/dist/{VueVideoPlayer-D7buOU3g.js → VueVideoPlayer-BCGJs86_.js} +2 -2
  3. package/dist/{align-editor-BM2D1Kjn.js → align-editor-DBWdbAV_.js} +1 -1
  4. package/dist/{barcode-design-D8H2Bg9b.js → barcode-design-YdLnj4EK.js} +2 -2
  5. package/dist/base/index.es.js +183 -191
  6. package/dist/{diagonal-design-Ca9DW4R9.js → diagonal-design-vCovyGwZ.js} +2 -2
  7. package/dist/{dynamic-table-action-DPgnmGmu.js → dynamic-table-action-9oc6dkLz.js} +124 -214
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BUKMwvFf.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-CMil2DLD.js} +729 -318
  9. package/dist/{edit.utils-CXmmCnxE-ogCEEMW7.js → edit.utils-CXmmCnxE-BvWz-8bv.js} +1 -1
  10. package/dist/excel.css +3 -3
  11. package/dist/{exceljs.min-BzSfyOeP.js → exceljs.min-Dp6PAQE9.js} +2 -2
  12. package/dist/{font-editor-tmQsLM86.js → font-editor-gcStnuue.js} +3 -3
  13. package/dist/{image-design-oRvqavKb.js → image-design-DJ3VRU2t.js} +2 -2
  14. package/dist/{index-D1KO6u1Z.js → index-2mRh7iFw.js} +45 -46
  15. package/dist/{index-Coz70NtU.js → index-7WwJSlNN.js} +2 -2
  16. package/dist/{index-D0PRNLPd.js → index-AmKjgww5.js} +1 -1
  17. package/dist/{index-B3_1mcU-.js → index-Avrz1-1F.js} +2 -2
  18. package/dist/{index-1GK0_6yB.js → index-B5AUi6i3.js} +1 -1
  19. package/dist/{index-61ZlwI2f.js → index-BCeR77y-.js} +2 -2
  20. package/dist/{index-DS7TSyjT.js → index-BHTcJLrz.js} +1 -1
  21. package/dist/{index-ZHmmTlG-.js → index-BYf9Fudx.js} +3 -3
  22. package/dist/{index-CMKlsuD6.js → index-BaCa0TgP.js} +2 -2
  23. package/dist/{index-eyK5xPX3.js → index-BsmHcJs3.js} +2 -2
  24. package/dist/{index-BVJENFMM.js → index-CFTsMiRR.js} +1 -1
  25. package/dist/{index-cBtITF-e.js → index-CFvLIeFl.js} +1 -1
  26. package/dist/{index-C5Bdrx4J.js → index-CLLc5Ob2.js} +1 -1
  27. package/dist/{index-CcC1xcOH.js → index-COOampHb.js} +1 -1
  28. package/dist/{index-CI051jjs.js → index-Ck06j4gn.js} +2 -2
  29. package/dist/{index-AU7rrK9g.js → index-Cl-QMM1R.js} +2 -2
  30. package/dist/{index-CHTrEvG1.js → index-CtEUzXVk.js} +2 -2
  31. package/dist/{index-DAuoR0-c.js → index-CzUGIYOv.js} +2 -2
  32. package/dist/{index-C8-IDtVr.js → index-D3ZQLjrQ.js} +2 -2
  33. package/dist/{index-C4txo2fg.js → index-D6eANpFX.js} +2 -2
  34. package/dist/{index-DvXsENIM.js → index-D90UOUAU.js} +3 -3
  35. package/dist/{index-DbuDWYlA.js → index-D9j3S6qI.js} +1 -1
  36. package/dist/{index-B_CDhpav.js → index-DIodi5gH.js} +4 -4
  37. package/dist/{index-BMUAwQmf.js → index-DPP4WDPc.js} +2 -2
  38. package/dist/{index-C4v0H4FC.js → index-DXqsUrWV.js} +3 -3
  39. package/dist/{index-CKyxWh-q.js → index-DnsZjDDh.js} +2 -2
  40. package/dist/{index-DLRVgGXr.js → index-Dzl5Ukft.js} +1 -1
  41. package/dist/{index-zJwCoxly.js → index-Mg-zrcwn.js} +2 -2
  42. package/dist/{index-DUrJEPXQ.js → index-agcLaGBj.js} +2 -2
  43. package/dist/{index-sEcLP8dk.js → index-cOcBl2Ga.js} +2 -2
  44. package/dist/{index-ZxBcNN-g.js → index-gWEP20xe.js} +3 -3
  45. package/dist/{index-nhC91wtN.js → index-iYYd2oH1.js} +3 -3
  46. package/dist/{index-3K7-At9-.js → index-sWtzbaDv.js} +3 -3
  47. package/dist/{index-IlasHrys.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-DhmtOtIs.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-Bh5sF0VU.js → pagination-design-BZZcBbIF.js} +2 -2
  51. package/dist/paper-widget-design-Coh8v5mV.js +4 -0
  52. package/dist/{print-runtime-instance-19OA8Ubq.js → print-runtime-instance-CV0WcU-Z.js} +1 -1
  53. package/dist/{print-snapshot-renderer-D5OUO3Sx.js → print-snapshot-renderer-hHd4ThE0.js} +3 -3
  54. package/dist/{qrcode-design-CkwIXxb_.js → qrcode-design-C8d7cE3K.js} +1 -1
  55. package/dist/{revo-grid.entry-CJ1rhBKH.js → revo-grid.entry-DSnc_nH1.js} +1 -1
  56. package/dist/{revogr-attribution_7.entry-Ba9MJ5p9.js → revogr-attribution_7.entry-D67ci-yw.js} +3 -3
  57. package/dist/{revogr-clipboard_3.entry--neB-vq8.js → revogr-clipboard_3.entry-C9h0dhAb.js} +2 -2
  58. package/dist/{revogr-data_4.entry-BcmetTvO.js → revogr-data_4.entry-DuuRVRex.js} +2 -2
  59. package/dist/{revogr-filter-panel.entry-jp8iD-xn.js → revogr-filter-panel.entry-BeIaYORN.js} +1 -1
  60. package/dist/seal-design-DfKie-Qg.js +4 -0
  61. package/dist/{serialnumber-design-LzvbjC79.js → serialnumber-design-wyJY14Fx.js} +1 -1
  62. package/dist/shared/index.es.js +25 -25
  63. package/dist/{single-field-drop-CEbaTw0-.js → single-field-drop-CA6EtCtR.js} +2 -2
  64. package/dist/{size-editor-CaFqQHeU.js → size-editor-lAn0ECzs.js} +1 -1
  65. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +3 -0
  66. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
  67. package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
  68. package/dist/src/nocode-base/src/interface/transform.d.ts +3 -0
  69. package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
  70. package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
  71. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +3 -0
  72. package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
  73. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +2 -2
  74. package/dist/src/shared/enum/field-type.d.ts +1 -1
  75. package/dist/{sub-table-factory-_1c-Dsu_.js → sub-table-factory-CwbQEPJq.js} +2 -2
  76. package/dist/{text-design-D5QIq5aE.js → text-design-Bv4PfeOW.js} +2 -2
  77. package/dist/{throttle-Cpk1LoGk-BMfNVrvD.js → throttle-Cpk1LoGk-BaXaGrUw.js} +1 -1
  78. package/dist/{timediff-design-B9m-zonK.js → timediff-design-CxT_O6R8.js} +1 -1
  79. package/dist/{trace-like-wrapper-C_NJVd6e.js → trace-like-wrapper-CGe5K_FN.js} +2 -2
  80. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BpZAIeLC.js → value-editor.vue_vue_type_style_index_0_lang-CQTuzWX2.js} +2 -2
  81. package/dist/{widget-barcode-CDMJo5uk.js → widget-barcode-C83yiwNl.js} +4 -4
  82. package/dist/{widget-diagonal-D9AC_qNv.js → widget-diagonal-C-zD-MLy.js} +3 -3
  83. package/dist/{widget-image-DMiIjg8J.js → widget-image-DIcnWHn7.js} +4 -4
  84. package/dist/{widget-line-BwSO-GKu.js → widget-line-BnMezWy-.js} +2 -2
  85. package/dist/{widget-pagination-Buo5s7Xq.js → widget-pagination-QWM1Nmlo.js} +5 -5
  86. package/dist/{widget-power-D8HtIVO2.js → widget-power-DnqxPUmW.js} +3 -3
  87. package/dist/{widget-qrcode-XEY9m1Dj.js → widget-qrcode-PBnm6ehD.js} +3 -3
  88. package/dist/{widget-rangelimit-C9j1s6Md.js → widget-rangelimit-CDyYKHeg.js} +3 -3
  89. package/dist/{widget-serialnumber-B_IA4_De.js → widget-serialnumber-BwS-Ac9h.js} +1 -1
  90. package/dist/{widget-text-Bp0FEZa1.js → widget-text-COW-IQ1P.js} +5 -5
  91. package/dist/{widget-timediff-BlYRlDYp.js → widget-timediff-RpQcMPpb.js} +2 -2
  92. package/package.json +2 -2
  93. package/dist/paper-widget-design-DZrP96jp.js +0 -4
  94. package/dist/seal-design-DX7PP65G.js +0 -4
@@ -1,6 +1,6 @@
1
1
  import { has, isEmpty, keyBy, pick, isNil, mapKeys, cloneDeep, flatMap, omit, merge, pickBy, isObject as isObject$1, omitBy, defaults, groupBy, isEqual, get as get$1, last, first } from "lodash-es";
2
+ import { computed, defineComponent, ref, onMounted, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, vShow, createVNode, render as render$1, toRaw, watch, inject, nextTick as nextTick$1, h as h$1, defineAsyncComponent, getCurrentInstance } from "vue";
2
3
  import dayjs from "dayjs";
3
- import { computed, defineComponent, ref, onMounted, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, vShow, createVNode, render as render$1, toRaw, inject, nextTick as nextTick$1, h as h$1, defineAsyncComponent, getCurrentInstance } from "vue";
4
4
  import { api as api$1 } from "@gct-paas/api";
5
5
  var PlatformEnum = /* @__PURE__ */ ((PlatformEnum2) => {
6
6
  PlatformEnum2["INTEGRATION_PAAS_DP"] = "INTEGRATION_PAAS_DP";
@@ -4274,6 +4274,51 @@ function resolveDesignPanelFeatures(tableType) {
4274
4274
  showConfigSection
4275
4275
  };
4276
4276
  }
4277
+ function getRuntimeDataFieldId(props = {}) {
4278
+ return props.field ? props.isFieldModel ? props.fieldLink ?? "" : props.field : "";
4279
+ }
4280
+ function getBusinessFieldKey(field) {
4281
+ return [field.subModelKey ?? field.modelKey ?? "", field.fieldId ?? ""].join(":");
4282
+ }
4283
+ const FIELD_POSITION_PREFIX = "runtime_field_";
4284
+ function buildRuntimeFieldPath(position) {
4285
+ if (!position.fieldId) throw new Error("运行时字段位置缺少 fieldId");
4286
+ if (position.subFieldKey && !position.rowKey) throw new Error("子表字段位置缺少 front_row_key_");
4287
+ const serialized = JSON.stringify([
4288
+ position.modelKey ?? "",
4289
+ position.subModelKey ?? "",
4290
+ position.subFieldKey ?? "",
4291
+ position.rowKey ?? "",
4292
+ position.fieldId
4293
+ ]);
4294
+ return FIELD_POSITION_PREFIX + btoa(
4295
+ Array.from(new TextEncoder().encode(serialized), (byte) => String.fromCharCode(byte)).join(
4296
+ ""
4297
+ )
4298
+ ).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4299
+ }
4300
+ function parseRuntimeFieldPath(path) {
4301
+ if (!path.startsWith(FIELD_POSITION_PREFIX)) return void 0;
4302
+ try {
4303
+ const encoded = path.slice(FIELD_POSITION_PREFIX.length).replace(/-/g, "+").replace(/_/g, "/");
4304
+ const parts = JSON.parse(
4305
+ new TextDecoder().decode(Uint8Array.from(atob(encoded), (char) => char.charCodeAt(0)))
4306
+ );
4307
+ if (!Array.isArray(parts) || parts.length !== 5 || parts.some((part) => typeof part !== "string"))
4308
+ return void 0;
4309
+ const [modelKey, subModelKey, subFieldKey, rowKey, fieldId] = parts;
4310
+ if (!fieldId || subFieldKey && !rowKey) return void 0;
4311
+ return {
4312
+ modelKey: modelKey || void 0,
4313
+ subModelKey: subModelKey || void 0,
4314
+ subFieldKey: subFieldKey || void 0,
4315
+ rowKey: rowKey || void 0,
4316
+ fieldId
4317
+ };
4318
+ } catch {
4319
+ return void 0;
4320
+ }
4321
+ }
4277
4322
  const manifest$1h = {
4278
4323
  type: FIELD_TYPE.MATERIAL_CONTAINER,
4279
4324
  design: "fw:auto-complete",
@@ -60326,6 +60371,11 @@ const transformUtils = {
60326
60371
  formConfig,
60327
60372
  dataCenters
60328
60373
  });
60374
+ for (const field of Object.keys(objectInitialValuesData)) {
60375
+ if (objectInitialValuesData[field] !== void 0) {
60376
+ delete payload.defaultValueOrigins?.values.gct_main?.[field];
60377
+ }
60378
+ }
60329
60379
  merge(
60330
60380
  formState,
60331
60381
  renderUtils.getDefaultValueInfo({ defaultDataMap, key: "gct_main" }),
@@ -60666,8 +60716,10 @@ const transformUtils = {
60666
60716
  if (!isDataProcessed) {
60667
60717
  if (viewMode === RenderModeEnum.FormMode) {
60668
60718
  merge(formState, payload.defaultData);
60719
+ payload.defaultValueOrigins?.capture(formState);
60669
60720
  }
60670
60721
  if (!isEmpty(payload.paramData)) {
60722
+ payload.defaultValueOrigins?.excludeOverrides(formState, payload.paramData);
60671
60723
  const paramData = cloneDeep(payload.paramData);
60672
60724
  subTableInfo?.forEach((subInfo) => {
60673
60725
  const defaultRows = formState[subInfo.field];
@@ -60698,10 +60750,13 @@ const transformUtils = {
60698
60750
  return mergeKeys.includes(key);
60699
60751
  };
60700
60752
  payload.customData.forEach((fromData2DataSource) => {
60701
- merge(formState, pickBy(fromData2DataSource, shouldKeepField));
60753
+ const data = pickBy(fromData2DataSource, shouldKeepField);
60754
+ payload.defaultValueOrigins?.excludeOverrides(formState, data);
60755
+ merge(formState, data);
60702
60756
  });
60703
60757
  }
60704
60758
  if (!isEmpty(payload.initEventData)) {
60759
+ payload.defaultValueOrigins?.excludeOverrides(formState, payload.initEventData);
60705
60760
  merge(formState, payload.initEventData);
60706
60761
  }
60707
60762
  if (!isEmpty(payload.materialConsumeData)) {
@@ -60731,7 +60786,9 @@ const transformUtils = {
60731
60786
  return acc;
60732
60787
  }, {});
60733
60788
  };
60734
- merge(formState, transformSourceData(filterInterFaceData(), interfaceData.dict));
60789
+ const data = transformSourceData(filterInterFaceData(), interfaceData.dict);
60790
+ payload.defaultValueOrigins?.excludeOverrides(formState, data);
60791
+ merge(formState, data);
60735
60792
  }
60736
60793
  subTableInfo?.forEach((sInfo) => setSubTableFormState(viewMode, sInfo, formState));
60737
60794
  Object.entries(payload?.balanceTableDataMaps ?? {}).forEach(([key, data]) => {
@@ -60790,6 +60847,7 @@ const transformUtils = {
60790
60847
  Object.assign(rowData, subDefaultData);
60791
60848
  }
60792
60849
  ensureFrontRowKey(rowData);
60850
+ payload.defaultValueOrigins?.captureRow(rowData, payload.subFieldId, payload.quickFillData);
60793
60851
  return rowData;
60794
60852
  },
60795
60853
  /** 数据转成真实提交数据(二维表要平铺);layout 是所有 Sheet 的业务表汇总索引。 */
@@ -63083,6 +63141,7 @@ const renderUtils = {
63083
63141
  /** 获取默认值集合 */
63084
63142
  getDefaultValueMapByField: ({
63085
63143
  defaultValueFields,
63144
+ onDesignerDefault = void 0,
63086
63145
  objectProductDefaults = /* @__PURE__ */ new WeakMap(),
63087
63146
  mainMaterialNo = void 0,
63088
63147
  mainRelatedLotNo = void 0,
@@ -63108,12 +63167,17 @@ const renderUtils = {
63108
63167
  }) => {
63109
63168
  const defaultDataMap = /* @__PURE__ */ new Map();
63110
63169
  const configuredDefaultFields = /* @__PURE__ */ new WeakSet();
63170
+ const designerDefaultFields = /* @__PURE__ */ new WeakSet();
63171
+ const designerDefault = (field) => {
63172
+ if (!isNil(field.defaultValue) && field.defaultValue !== "") designerDefaultFields.add(field);
63173
+ return field.defaultValue;
63174
+ };
63111
63175
  const pickDesignerDefault = (field, businessValue) => {
63112
63176
  const configured = field.defaultValue;
63113
63177
  if (isNil(configured) || configured === "") return businessValue;
63114
63178
  if (field.subFieldKey || field.subModelKey || isNil(businessValue) || businessValue === "") {
63115
63179
  configuredDefaultFields.add(field);
63116
- return configured;
63180
+ return designerDefault(field);
63117
63181
  }
63118
63182
  return businessValue;
63119
63183
  };
@@ -63169,13 +63233,13 @@ const renderUtils = {
63169
63233
  case FIELD_TYPE.RELATED_LOT_NO:
63170
63234
  return mainRelatedLotNo;
63171
63235
  case FIELD_TYPE.PRODUCT:
63172
- return pickDesignerDefault(field, mainProductName || void 0) ?? defaultValue;
63236
+ return pickDesignerDefault(field, mainProductName || void 0) ?? designerDefault(field);
63173
63237
  case FIELD_TYPE.ROUTING_OPERATION:
63174
63238
  return pickDesignerDefault(field, mainRoutingOperation);
63175
63239
  case FIELD_TYPE.MFG_ORDER:
63176
63240
  return mainMfgOrderId;
63177
63241
  default:
63178
- return defaultValue;
63242
+ return designerDefault(field);
63179
63243
  }
63180
63244
  };
63181
63245
  const assignValue = (key, id, value) => {
@@ -63185,7 +63249,9 @@ const renderUtils = {
63185
63249
  defaultValueFields.forEach((field) => {
63186
63250
  const { subFieldKey, fieldId, fieldType, autofillRules, enableAutofill, bizType } = field;
63187
63251
  const key = subFieldKey || "gct_main";
63188
- assignValue(key, fieldId, getDefaultValue(field));
63252
+ const value = getDefaultValue(field);
63253
+ assignValue(key, fieldId, value);
63254
+ if (designerDefaultFields.has(field)) onDesignerDefault?.(field, value);
63189
63255
  if (bizType === FIELD_TYPE.STERILIZATION_CONTAINER || fieldType === FIELD_TYPE.STERILIZATION_CONTAINER) {
63190
63256
  assignValue(key, `${fieldId}_id_`, mainSterilizationLotId);
63191
63257
  }
@@ -65072,6 +65138,341 @@ function resolveFieldRenderComponent(props) {
65072
65138
  }
65073
65139
  return resolveRenderComponent(props.bizType, props.fieldType);
65074
65140
  }
65141
+ function getCurrentFormData(_rule, options) {
65142
+ if (!_rule._subtableFieldId) return options?.formData;
65143
+ return findRuntimeTableRow(options?.formData?.[_rule._subtableFieldId], _rule._rowKey);
65144
+ }
65145
+ function isSameOptionValue(current, expected) {
65146
+ if (typeof expected === "boolean") {
65147
+ return renderUtils.getBoolValue(current) === expected;
65148
+ }
65149
+ if (current === void 0 || current === null || current === "") {
65150
+ return false;
65151
+ }
65152
+ return String(current) === String(expected);
65153
+ }
65154
+ function isAttachFieldActive(attach, formData) {
65155
+ if (attach?.parent && !isAttachFieldActive(attach.parent, formData)) return false;
65156
+ if (!attach?.belongFieldId || isNil(attach.optionValue)) {
65157
+ return true;
65158
+ }
65159
+ const row = attach.subtableFieldId ? findRuntimeTableRow(formData?.[attach.subtableFieldId], attach.rowKey) : formData;
65160
+ if (attach.subtableFieldId && (!attach.rowKey || !row || row === formData)) {
65161
+ return false;
65162
+ }
65163
+ const raw = row?.[attach.belongFieldId];
65164
+ if (attach.multiple) {
65165
+ const current = renderUtils.getValue(raw, true);
65166
+ if (!Array.isArray(current)) return false;
65167
+ return current.some((v) => isSameOptionValue(v, attach.optionValue));
65168
+ }
65169
+ return isSameOptionValue(raw, attach.optionValue);
65170
+ }
65171
+ function isReferenceOptionActive(referenceInfo, rowFormData) {
65172
+ if (!referenceInfo?.belongFieldId || isNil(referenceInfo.optionValue)) {
65173
+ return true;
65174
+ }
65175
+ return isAttachFieldActive(
65176
+ {
65177
+ belongFieldId: referenceInfo.belongFieldId,
65178
+ optionValue: referenceInfo.optionValue,
65179
+ multiple: referenceInfo.multiple
65180
+ },
65181
+ rowFormData
65182
+ );
65183
+ }
65184
+ function listRuntimeFieldRows(record, subFieldKey, targetFieldId) {
65185
+ if (!subFieldKey) {
65186
+ return [{ row: record.formState.state }];
65187
+ }
65188
+ const value = record.formState.state[subFieldKey];
65189
+ const table2DInfo = [
65190
+ ...record.context.businessIndex.subTable2DList,
65191
+ ...record.context.businessIndex.checkTable2DList
65192
+ ].find((item) => item.rowSubFieldKey === subFieldKey);
65193
+ const isChild = table2DInfo && (table2DInfo.crossFieldKeys ?? []).includes(targetFieldId);
65194
+ return Array.isArray(value) ? value.flatMap((row) => {
65195
+ if (row?.deleted_) return [];
65196
+ if (!isChild) return [{ row }];
65197
+ return (Array.isArray(row._2DTABLE_) ? row._2DTABLE_ : []).flatMap(
65198
+ (child) => child?.deleted_ ? [] : [{ row: child, parentRow: row }]
65199
+ );
65200
+ }) : [];
65201
+ }
65202
+ function canClearDesignerDefaults(status) {
65203
+ if (status.dataStatus === "STASH") return false;
65204
+ if (status.instanceStatus) return status.instanceStatus === "UNFILLED";
65205
+ return !status.dataStatus || status.dataStatus === "UNFILLED";
65206
+ }
65207
+ class DesignerDefaultValues {
65208
+ values = {};
65209
+ applied = /* @__PURE__ */ new Map();
65210
+ appliedRows;
65211
+ add(subFieldKey, field, value) {
65212
+ if (value === void 0 || value === null || value === "") return;
65213
+ (this.values[subFieldKey || "gct_main"] ??= {})[field] = value;
65214
+ }
65215
+ key(row, subFieldKey, field) {
65216
+ return JSON.stringify([subFieldKey || "", subFieldKey ? row[FRONT_ROW_KEY] : "", field]);
65217
+ }
65218
+ captureRow(row, subFieldKey, overrides) {
65219
+ for (const [field, value] of Object.entries(this.values[subFieldKey || "gct_main"] ?? {})) {
65220
+ if (Object.is(row[field], value) && overrides?.[field] === void 0) {
65221
+ const key = this.key(row, subFieldKey, field);
65222
+ this.applied.set(key, value);
65223
+ this.appliedRows?.set(key, toRaw(row));
65224
+ }
65225
+ }
65226
+ row._2DTABLE_?.forEach(
65227
+ (child) => this.captureRow(child, subFieldKey, overrides)
65228
+ );
65229
+ }
65230
+ capture(state) {
65231
+ this.captureRow(state);
65232
+ for (const key of Object.keys(this.values)) {
65233
+ if (key === "gct_main") continue;
65234
+ state[key]?.forEach((row) => this.captureRow(row, key));
65235
+ }
65236
+ }
65237
+ /** 转换及合并结束后绑定真实运行时对象,替换成同 ID、同值的新行也不再算旧默认值。 */
65238
+ bindRuntimeRows(state) {
65239
+ const rows = /* @__PURE__ */ new Map();
65240
+ const bindRow = (row, subFieldKey) => {
65241
+ for (const field of Object.keys(this.values[subFieldKey || "gct_main"] ?? {})) {
65242
+ const key = this.key(row, subFieldKey, field);
65243
+ if (this.applied.has(key) && Object.is(this.applied.get(key), row[field])) {
65244
+ rows.set(key, toRaw(row));
65245
+ }
65246
+ }
65247
+ row._2DTABLE_?.forEach((child) => bindRow(child, subFieldKey));
65248
+ };
65249
+ bindRow(state);
65250
+ for (const key of Object.keys(this.values)) {
65251
+ if (key !== "gct_main") state[key]?.forEach((row) => bindRow(row, key));
65252
+ }
65253
+ this.appliedRows = rows;
65254
+ }
65255
+ has(row, subFieldKey, field) {
65256
+ const key = this.key(row, subFieldKey, field);
65257
+ return this.owns(row, subFieldKey, field) && Object.is(this.applied.get(key), row[field]);
65258
+ }
65259
+ owns(row, subFieldKey, field) {
65260
+ const key = this.key(row, subFieldKey, field);
65261
+ return this.applied.has(key) && (!this.appliedRows || this.appliedRows.get(key) === toRaw(row));
65262
+ }
65263
+ revoke(row, subFieldKey, field) {
65264
+ const key = this.key(row, subFieldKey, field);
65265
+ this.applied.delete(key);
65266
+ this.appliedRows?.delete(key);
65267
+ }
65268
+ /** 后续数据源显式提供同一个值也算覆盖,不能仅比较最终值是否相等。 */
65269
+ excludeOverrides(target, source, subFieldKey) {
65270
+ if (!source || typeof source !== "object") return;
65271
+ if (Array.isArray(target)) {
65272
+ const rows = Array.isArray(source) ? source : source.data;
65273
+ if (Array.isArray(rows)) {
65274
+ rows.forEach((row, index2) => {
65275
+ if (target[index2]) this.excludeOverrides(target[index2], row, subFieldKey);
65276
+ });
65277
+ }
65278
+ return;
65279
+ }
65280
+ for (const [field, value] of Object.entries(source)) {
65281
+ if (value === void 0) continue;
65282
+ this.revoke(target, subFieldKey, field);
65283
+ if (target[field] && typeof value === "object") {
65284
+ this.excludeOverrides(target[field], value, field === "_2DTABLE_" ? subFieldKey : field);
65285
+ }
65286
+ }
65287
+ }
65288
+ clear() {
65289
+ this.applied.clear();
65290
+ this.appliedRows?.clear();
65291
+ }
65292
+ }
65293
+ const STATUS_QUERY_OPTIONS = { errorMessageMode: "none", timeout: 8e3 };
65294
+ const REFERENCE_TYPES = /* @__PURE__ */ new Set([
65295
+ FIELD_TYPE.DEVICE,
65296
+ FIELD_TYPE.PRODUCT,
65297
+ FIELD_TYPE.MODEL_RELATION,
65298
+ FIELD_TYPE.E_SOP,
65299
+ FIELD_TYPE.SHOPFLOOR,
65300
+ FIELD_TYPE.WAREHOUSE,
65301
+ FIELD_TYPE.TARGET_WAREHOUSE,
65302
+ FIELD_TYPE.ROUTING_OPERATION,
65303
+ FIELD_TYPE.REF,
65304
+ FIELD_TYPE.REF_MULTI,
65305
+ FIELD_TYPE.RDO_REF,
65306
+ FIELD_TYPE.DEVICE_REF,
65307
+ FIELD_TYPE.DEVICE_REF_MULTI,
65308
+ FIELD_TYPE.NOT_GOOD_REASON,
65309
+ FIELD_TYPE.NOT_GOOD_GROUP,
65310
+ FIELD_TYPE.SCRAP_REASON,
65311
+ FIELD_TYPE.SCRAP_GROUP
65312
+ ]);
65313
+ function getInvalidDefaultReason(result, props) {
65314
+ const data = result?.data;
65315
+ if (!data || typeof data !== "object" || Array.isArray(data)) return;
65316
+ if (data.deleted_ === true) return "引用记录已删除(deleted_ = true)";
65317
+ if (data.operating_state_ === false) return "引用记录已停用(operating_state_ = false)";
65318
+ const isDevice = props.refModelKey === "em_device" || [props.fieldType, props.bizType].some(
65319
+ (type) => [FIELD_TYPE.DEVICE, FIELD_TYPE.DEVICE_REF, FIELD_TYPE.DEVICE_REF_MULTI].includes(type)
65320
+ );
65321
+ if (isDevice && typeof data.state_ === "string" && data.state_ !== "" && data.state_ !== DeviceStatus.IN_USE)
65322
+ return `设备不在使用中(state_ = ${data.state_})`;
65323
+ }
65324
+ class RuntimeDefaultValueValidation {
65325
+ constructor(record, info, defaults2) {
65326
+ this.record = record;
65327
+ this.info = info;
65328
+ this.defaults = defaults2;
65329
+ defaults2.bindRuntimeRows(record.formState.state);
65330
+ this.stops = [
65331
+ record.formState.subscribe((change) => {
65332
+ if (change.paths.includes("*")) defaults2.clear();
65333
+ for (const target of this.targets()) {
65334
+ if (!defaults2.has(target.row, target.props.subFieldKey, target.field) || change.paths.includes(record.formState.getFieldPath(target.row, target.field))) {
65335
+ defaults2.revoke(target.row, target.props.subFieldKey, target.field);
65336
+ }
65337
+ }
65338
+ this.schedule();
65339
+ }),
65340
+ watch(
65341
+ () => [
65342
+ info.renderModeType,
65343
+ info.annSwitchStatus,
65344
+ info.instanceStatus,
65345
+ info.dataStatus,
65346
+ info.formChangeStatus
65347
+ ],
65348
+ () => this.schedule()
65349
+ )
65350
+ ];
65351
+ }
65352
+ record;
65353
+ info;
65354
+ defaults;
65355
+ disposed = false;
65356
+ scheduled = false;
65357
+ /** 同一实例中,相同引用记录的查询结果可供不同 Sheet 和行复用。 */
65358
+ requests = /* @__PURE__ */ new Map();
65359
+ stops;
65360
+ targets() {
65361
+ return this.record.fields.allWidgets().flatMap(({ widget, referenceInfo }) => {
65362
+ const props = widget.props;
65363
+ const field = getRuntimeDataFieldId(props);
65364
+ if (!field || props.isFieldModel || this.defaults.values[props.subFieldKey || "gct_main"]?.[field] === void 0 || ![props.fieldType, props.bizType].some((type) => REFERENCE_TYPES.has(type)))
65365
+ return [];
65366
+ return listRuntimeFieldRows(
65367
+ this.record,
65368
+ props.subFieldKey,
65369
+ referenceInfo?.scopeFieldId ?? field
65370
+ ).filter(({ row }) => this.defaults.owns(row, props.subFieldKey, field)).map(({ row }) => {
65371
+ const rowKey = props.subFieldKey ? getRowId(row) : void 0;
65372
+ const attach = (reference) => reference ? {
65373
+ ...reference,
65374
+ subtableFieldId: props.subFieldKey,
65375
+ rowKey,
65376
+ parent: attach(reference.parent)
65377
+ } : void 0;
65378
+ return {
65379
+ props,
65380
+ field,
65381
+ row,
65382
+ rowKey,
65383
+ attach: attach(referenceInfo),
65384
+ isRdo: widget.component === ComponentTypeEnum.RdoSelect || [props.fieldType, props.bizType].some(
65385
+ (type) => [FIELD_TYPE.PRODUCT, FIELD_TYPE.E_SOP, FIELD_TYPE.RDO_REF].includes(type)
65386
+ )
65387
+ };
65388
+ });
65389
+ });
65390
+ }
65391
+ async queryDefault(props, id, isRdo) {
65392
+ const modelKey = props.refModelKey;
65393
+ if (!modelKey || !id) return;
65394
+ const bsKey = isRdo ? "biz_get_rdo_data_by_id" : "biz_get_ndo_data_by_id";
65395
+ const key = JSON.stringify([bsKey, modelKey, id]);
65396
+ let task = this.requests.get(key);
65397
+ if (!task) {
65398
+ task = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey(
65399
+ { modelCategory: "entity", modelKey: "em_custom_field_model", bsKey },
65400
+ { id, modelKey },
65401
+ STATUS_QUERY_OPTIONS
65402
+ ).catch(() => void 0);
65403
+ this.requests.set(key, task);
65404
+ }
65405
+ return task;
65406
+ }
65407
+ /** 后台检查不加入页面准备、草稿或提交的等待链路。 */
65408
+ requestCheck() {
65409
+ this.schedule();
65410
+ }
65411
+ schedule() {
65412
+ if (this.disposed || this.scheduled) return;
65413
+ this.scheduled = true;
65414
+ queueMicrotask(() => {
65415
+ this.scheduled = false;
65416
+ void this.initialize().catch((error) => console.error("默认值状态检查失败", error));
65417
+ });
65418
+ }
65419
+ isEnabled() {
65420
+ return !this.disposed && canClearDesignerDefaults(this.info) && !this.info.formChangeStatus && this.info.renderModeType === RenderModeEnum.FormMode && !this.info.annSwitchStatus && !this.info.renderPurpose && this.info.platformType !== PlatformEnum.INTEGRATION_PAAS_DP;
65421
+ }
65422
+ async initialize() {
65423
+ if (this.disposed) return;
65424
+ const targets = this.isEnabled() ? this.targets().filter(
65425
+ (target) => this.defaults.has(target.row, target.props.subFieldKey, target.field) && isAttachFieldActive(target.attach, this.record.formState.state)
65426
+ ) : [];
65427
+ await Promise.all(
65428
+ targets.map(async (target) => {
65429
+ const previous = target.row[target.field];
65430
+ const value = String(previous);
65431
+ const ids = [FIELD_TYPE.REF_MULTI, FIELD_TYPE.DEVICE_REF_MULTI].includes(
65432
+ target.props.fieldType
65433
+ ) ? value.split(",").filter(Boolean) : [value];
65434
+ const results = await Promise.all(
65435
+ ids.map((id) => this.queryDefault(target.props, id, target.isRdo))
65436
+ );
65437
+ const invalidReferences = results.flatMap((result, index2) => {
65438
+ const reason = getInvalidDefaultReason(result, target.props);
65439
+ return reason ? [{ id: ids[index2], reason }] : [];
65440
+ });
65441
+ if (!invalidReferences.length) return;
65442
+ const currentRow = target.props.subFieldKey ? findRuntimeTableRow(
65443
+ this.record.formState.state[target.props.subFieldKey],
65444
+ target.rowKey
65445
+ ) : this.record.formState.state;
65446
+ if (!this.isEnabled() || !currentRow || toRaw(currentRow) !== toRaw(target.row) || !Object.is(currentRow[target.field], previous) || !this.defaults.has(currentRow, target.props.subFieldKey, target.field) || this.record.formState.isUserModified(
65447
+ this.record.formState.getFieldPath(currentRow, target.field)
65448
+ ) || !isAttachFieldActive(target.attach, this.record.formState.state))
65449
+ return;
65450
+ this.record.formState.setObjectField(currentRow, target.field, null, "system");
65451
+ console.info(
65452
+ `[默认值清空] ${[...new Set(invalidReferences.map(({ reason }) => reason))].join(";")}`,
65453
+ {
65454
+ uniqueId: this.record.context.uniqueId,
65455
+ instanceStatus: this.info.instanceStatus,
65456
+ dataStatus: this.info.dataStatus,
65457
+ modelKey: target.props.modelKey ?? this.info.modelKey,
65458
+ refModelKey: target.props.refModelKey,
65459
+ field: target.field,
65460
+ fieldName: target.props.newSpecificConfig?.newFieldName,
65461
+ subFieldKey: target.props.subFieldKey,
65462
+ rowKey: target.rowKey,
65463
+ previousValue: previous,
65464
+ invalidReferences
65465
+ }
65466
+ );
65467
+ })
65468
+ );
65469
+ }
65470
+ dispose() {
65471
+ this.disposed = true;
65472
+ this.stops.forEach((stop) => stop());
65473
+ this.requests.clear();
65474
+ }
65475
+ }
65075
65476
  const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
65076
65477
  const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
65077
65478
  async function materialCheck(params) {
@@ -68199,27 +68600,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
68199
68600
  case "revo-grid":
68200
68601
  return import(
68201
68602
  /* webpackMode: "lazy" */
68202
- "./revo-grid.entry-CJ1rhBKH.js"
68603
+ "./revo-grid.entry-DSnc_nH1.js"
68203
68604
  ).then(processMod, consoleError);
68204
68605
  case "revogr-filter-panel":
68205
68606
  return import(
68206
68607
  /* webpackMode: "lazy" */
68207
- "./revogr-filter-panel.entry-jp8iD-xn.js"
68608
+ "./revogr-filter-panel.entry-BeIaYORN.js"
68208
68609
  ).then(processMod, consoleError);
68209
68610
  case "revogr-attribution_7":
68210
68611
  return import(
68211
68612
  /* webpackMode: "lazy" */
68212
- "./revogr-attribution_7.entry-Ba9MJ5p9.js"
68613
+ "./revogr-attribution_7.entry-D67ci-yw.js"
68213
68614
  ).then(processMod, consoleError);
68214
68615
  case "revogr-clipboard_3":
68215
68616
  return import(
68216
68617
  /* webpackMode: "lazy" */
68217
- "./revogr-clipboard_3.entry--neB-vq8.js"
68618
+ "./revogr-clipboard_3.entry-C9h0dhAb.js"
68218
68619
  ).then(processMod, consoleError);
68219
68620
  case "revogr-data_4":
68220
68621
  return import(
68221
68622
  /* webpackMode: "lazy" */
68222
- "./revogr-data_4.entry-BcmetTvO.js"
68623
+ "./revogr-data_4.entry-DuuRVRex.js"
68223
68624
  ).then(processMod, consoleError);
68224
68625
  }
68225
68626
  }
@@ -78455,7 +78856,7 @@ function groupFixedTableRows(rows, options) {
78455
78856
  return result;
78456
78857
  }
78457
78858
  export {
78458
- FieldDefaultValueTypeEnum as $,
78859
+ UniqueConstraintType as $,
78459
78860
  estraverse as A,
78460
78861
  BwipCodeType as B,
78461
78862
  ComponentTypeEnum as C,
@@ -78468,320 +78869,330 @@ export {
78468
78869
  isDynamicCellSubTable as J,
78469
78870
  ParamModelTypeEnum as K,
78470
78871
  LineType as L,
78471
- FieldTypeToJs as M,
78472
- CreateType as N,
78872
+ getBusinessFieldKey as M,
78873
+ FieldTypeToJs as N,
78473
78874
  Orientation as O,
78474
78875
  PaginationFormat as P,
78475
- uuid2$1 as Q,
78476
- useModal as R,
78876
+ CreateType as Q,
78877
+ uuid2$1 as R,
78477
78878
  SUB_TABLE_PANEL_TYPE_NAME as S,
78478
78879
  TRACE_FIELD_TYPES as T,
78479
- requireEstraverse as U,
78480
- commonjsGlobal as V,
78481
- getDefaultExportFromCjs as W,
78482
- PaperWidgeValueType as X,
78483
- onlineFormMasterModelTypeEnum as Y,
78484
- WAREHOUSE_FIELD_TYPES as Z,
78485
- UniqueConstraintType as _,
78880
+ useModal as U,
78881
+ requireEstraverse as V,
78882
+ commonjsGlobal as W,
78883
+ getDefaultExportFromCjs as X,
78884
+ PaperWidgeValueType as Y,
78885
+ onlineFormMasterModelTypeEnum as Z,
78886
+ WAREHOUSE_FIELD_TYPES as _,
78486
78887
  getProfile as a,
78487
- withRequestCache as a$,
78488
- FormTypeEnum as a0,
78489
- mitt as a1,
78490
- isDateObjectField as a2,
78491
- PlatformEnum as a3,
78492
- LabelPosition as a4,
78493
- BooleanShowMode as a5,
78494
- SignatureImageDirectionEnum as a6,
78495
- FallbackSignTypeEnum as a7,
78496
- SignatureNumberTypeEnum as a8,
78497
- SignatureTimeTypeEnum as a9,
78498
- RangeCompareOp as aA,
78499
- getExclusiveBusinessTypeTokens as aB,
78500
- getSubTableTypeByRefModelType as aC,
78501
- findFieldMain as aD,
78502
- DecimalDisplayMode as aE,
78503
- ImageDisplayModeEnum as aF,
78504
- FormDesignEnum as aG,
78505
- BASIC_FIELD_TYPES as aH,
78506
- buildDeviceFilterQuery as aI,
78507
- refUtils as aJ,
78508
- getAllTableProfiles as aK,
78509
- getAugmentedNamespace as aL,
78510
- transformUtils as aM,
78511
- EmptySymbol as aN,
78512
- ASSIGNMENTSTRATEGY_ENUM as aO,
78513
- Dependency_ENUM as aP,
78514
- EntityModelCategoryEnum as aQ,
78515
- resolveLotDisplayLabel as aR,
78516
- CheckDsTypeEnum as aS,
78517
- DeviceLink as aT,
78518
- DeviceParamsTypeTitle as aU,
78519
- AITooltips as aV,
78520
- DenoiseMethodOptions as aW,
78521
- BinarizeMethodOptions as aX,
78522
- JoinModelTypeEum as aY,
78523
- sqlUtils as aZ,
78524
- DateFormat as a_,
78525
- SignShowTypeEnum as aa,
78526
- SignatureTypeEnum as ab,
78527
- useNamespace as ac,
78528
- _export_sfc as ad,
78529
- normalizeFieldType as ae,
78530
- PaperSizeMap as af,
78531
- getFieldMain as ag,
78532
- buildUUID as ah,
78533
- FieldIconMap as ai,
78534
- BigNumber as aj,
78535
- FieldSysVarDefaultValueEnum as ak,
78536
- CellWidgetViewState as al,
78537
- DiagonalDirection as am,
78538
- WidgetImageSizeMode as an,
78539
- LineDirection as ao,
78540
- TimeDiffFormat as ap,
78541
- DiagonalVertex as aq,
78542
- resolveDiagonalVertex as ar,
78543
- getThemeColorByTableType as as,
78544
- ViewTypeEnum as at,
78545
- isDynamicSubTablePanelType as au,
78546
- isFixedSubTablePanelType as av,
78547
- ExpressionModeEnum as aw,
78548
- ReturnTypeEnum as ax,
78549
- ExpressionTabEnum as ay,
78550
- RangeValidateMode as az,
78888
+ DateFormat as a$,
78889
+ FieldDefaultValueTypeEnum as a0,
78890
+ FormTypeEnum as a1,
78891
+ mitt as a2,
78892
+ isDateObjectField as a3,
78893
+ PlatformEnum as a4,
78894
+ LabelPosition as a5,
78895
+ BooleanShowMode as a6,
78896
+ SignatureImageDirectionEnum as a7,
78897
+ FallbackSignTypeEnum as a8,
78898
+ SignatureNumberTypeEnum as a9,
78899
+ RangeValidateMode as aA,
78900
+ RangeCompareOp as aB,
78901
+ getExclusiveBusinessTypeTokens as aC,
78902
+ getSubTableTypeByRefModelType as aD,
78903
+ findFieldMain as aE,
78904
+ DecimalDisplayMode as aF,
78905
+ ImageDisplayModeEnum as aG,
78906
+ FormDesignEnum as aH,
78907
+ BASIC_FIELD_TYPES as aI,
78908
+ buildDeviceFilterQuery as aJ,
78909
+ refUtils as aK,
78910
+ getAllTableProfiles as aL,
78911
+ getAugmentedNamespace as aM,
78912
+ transformUtils as aN,
78913
+ EmptySymbol as aO,
78914
+ ASSIGNMENTSTRATEGY_ENUM as aP,
78915
+ Dependency_ENUM as aQ,
78916
+ EntityModelCategoryEnum as aR,
78917
+ resolveLotDisplayLabel as aS,
78918
+ CheckDsTypeEnum as aT,
78919
+ DeviceLink as aU,
78920
+ DeviceParamsTypeTitle as aV,
78921
+ AITooltips as aW,
78922
+ DenoiseMethodOptions as aX,
78923
+ BinarizeMethodOptions as aY,
78924
+ JoinModelTypeEum as aZ,
78925
+ sqlUtils as a_,
78926
+ SignatureTimeTypeEnum as aa,
78927
+ SignShowTypeEnum as ab,
78928
+ SignatureTypeEnum as ac,
78929
+ useNamespace as ad,
78930
+ _export_sfc as ae,
78931
+ normalizeFieldType as af,
78932
+ PaperSizeMap as ag,
78933
+ getFieldMain as ah,
78934
+ buildUUID as ai,
78935
+ FieldIconMap as aj,
78936
+ BigNumber as ak,
78937
+ FieldSysVarDefaultValueEnum as al,
78938
+ CellWidgetViewState as am,
78939
+ DiagonalDirection as an,
78940
+ WidgetImageSizeMode as ao,
78941
+ LineDirection as ap,
78942
+ TimeDiffFormat as aq,
78943
+ DiagonalVertex as ar,
78944
+ resolveDiagonalVertex as as,
78945
+ getThemeColorByTableType as at,
78946
+ ViewTypeEnum as au,
78947
+ isDynamicSubTablePanelType as av,
78948
+ isFixedSubTablePanelType as aw,
78949
+ ExpressionModeEnum as ax,
78950
+ ReturnTypeEnum as ay,
78951
+ ExpressionTabEnum as az,
78551
78952
  isBusinessSubTableProfile as b,
78552
- calcFillData as b$,
78553
- LOT_CONTAINER_ROLE as b0,
78554
- buildLotSnListQuery as b1,
78555
- renderUtils as b2,
78556
- resolveLotRecordByValue as b3,
78557
- materialCheck as b4,
78558
- getLotLockedReason as b5,
78559
- validateReinspectionDate as b6,
78560
- buildMaterialLotListQuery as b7,
78561
- ProductionIdentificationTypeEnum as b8,
78562
- BindCmpStyleEnum as b9,
78563
- normalizeToArray as bA,
78564
- safeParseArray as bB,
78565
- BpmnNodeTypeEnum as bC,
78566
- mergeByMultiKey as bD,
78567
- evaluateInspectionDecisionRule as bE,
78568
- useNocodeEmitter as bF,
78569
- commonUtils as bG,
78570
- BpmnSignatureTypeEnum as bH,
78571
- ButtonTypeEnum as bI,
78572
- CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bJ,
78573
- CodeRunner as bK,
78574
- Config_Fields as bL,
78575
- ControlStatusEnum as bM,
78576
- DEVICE_SEARCH_API as bN,
78577
- DeviceStatus as bO,
78578
- EBR_PROVIDE_ENUM as bP,
78579
- EFieldBizTypeEnum as bQ,
78580
- MAX_FRONT_ROW_KEY_LENGTH as bR,
78581
- MobileFillTypeEnum as bS,
78582
- OfficeTypeEnum as bT,
78583
- PosEnum as bU,
78584
- RUNTIME_COLUMN_ROW_KEY as bV,
78585
- SummaryApproveHisTypeEnum as bW,
78586
- applyCheckDsDataToRuntime as bX,
78587
- applyMedProCheckDsDataToRuntime as bY,
78588
- bindRuntimeTableColumns as bZ,
78589
- buildDeviceBaseQuery as b_,
78590
- getParseRuleInfo as ba,
78591
- getParseRuleValue as bb,
78592
- normalizeRefLoaderResult as bc,
78593
- STOCKTAKE_DIMENSION as bd,
78594
- F$8 as be,
78595
- resolveStocktakeSelectApi as bf,
78596
- normalizeProductionContainerOptions as bg,
78597
- buildProductionLotListQuery as bh,
78598
- buildInspectionLotListQuery as bi,
78599
- DEVICE_GROUP_QUERY_KEY as bj,
78600
- getRowId as bk,
78601
- findRuntimeTableRow as bl,
78602
- RenderModeEnum as bm,
78603
- findRuntimeParentRow as bn,
78604
- useOnlineFormTransformField2Component as bo,
78605
- FormulaRuleFieldKeyEnum as bp,
78606
- formulaRuleFieldDict as bq,
78607
- resolveDesignPanelFeatures as br,
78608
- BIZ_TABLE_CONFIG_SEED_TYPES as bs,
78609
- STOCKTAKE_DIMENSION_OPTIONS as bt,
78610
- isRepeatingSubTablePanelType as bu,
78611
- uuid2 as bv,
78612
- fetchHistoryConsume as bw,
78613
- isBomGranted as bx,
78614
- parseFrontConfig as by,
78615
- baseDataUtils as bz,
78953
+ OfficeTypeEnum as b$,
78954
+ withRequestCache as b0,
78955
+ LOT_CONTAINER_ROLE as b1,
78956
+ buildLotSnListQuery as b2,
78957
+ renderUtils as b3,
78958
+ resolveLotRecordByValue as b4,
78959
+ materialCheck as b5,
78960
+ getLotLockedReason as b6,
78961
+ validateReinspectionDate as b7,
78962
+ buildMaterialLotListQuery as b8,
78963
+ ProductionIdentificationTypeEnum as b9,
78964
+ buildRuntimeFieldPath as bA,
78965
+ isAttachFieldActive as bB,
78966
+ fetchHistoryConsume as bC,
78967
+ isBomGranted as bD,
78968
+ parseFrontConfig as bE,
78969
+ DesignerDefaultValues as bF,
78970
+ baseDataUtils as bG,
78971
+ normalizeToArray as bH,
78972
+ safeParseArray as bI,
78973
+ BpmnNodeTypeEnum as bJ,
78974
+ mergeByMultiKey as bK,
78975
+ evaluateInspectionDecisionRule as bL,
78976
+ RuntimeDefaultValueValidation as bM,
78977
+ useNocodeEmitter as bN,
78978
+ commonUtils as bO,
78979
+ BpmnSignatureTypeEnum as bP,
78980
+ ButtonTypeEnum as bQ,
78981
+ CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bR,
78982
+ CodeRunner as bS,
78983
+ Config_Fields as bT,
78984
+ ControlStatusEnum as bU,
78985
+ DEVICE_SEARCH_API as bV,
78986
+ DeviceStatus as bW,
78987
+ EBR_PROVIDE_ENUM as bX,
78988
+ EFieldBizTypeEnum as bY,
78989
+ MAX_FRONT_ROW_KEY_LENGTH as bZ,
78990
+ MobileFillTypeEnum as b_,
78991
+ BindCmpStyleEnum as ba,
78992
+ getParseRuleInfo as bb,
78993
+ getParseRuleValue as bc,
78994
+ normalizeRefLoaderResult as bd,
78995
+ STOCKTAKE_DIMENSION as be,
78996
+ F$8 as bf,
78997
+ resolveStocktakeSelectApi as bg,
78998
+ normalizeProductionContainerOptions as bh,
78999
+ buildProductionLotListQuery as bi,
79000
+ buildInspectionLotListQuery as bj,
79001
+ DEVICE_GROUP_QUERY_KEY as bk,
79002
+ parseRuntimeFieldPath as bl,
79003
+ getRowId as bm,
79004
+ findRuntimeTableRow as bn,
79005
+ RenderModeEnum as bo,
79006
+ findRuntimeParentRow as bp,
79007
+ useOnlineFormTransformField2Component as bq,
79008
+ FormulaRuleFieldKeyEnum as br,
79009
+ formulaRuleFieldDict as bs,
79010
+ resolveDesignPanelFeatures as bt,
79011
+ BIZ_TABLE_CONFIG_SEED_TYPES as bu,
79012
+ STOCKTAKE_DIMENSION_OPTIONS as bv,
79013
+ isRepeatingSubTablePanelType as bw,
79014
+ uuid2 as bx,
79015
+ getRuntimeDataFieldId as by,
79016
+ listRuntimeFieldRows as bz,
78616
79017
  getProfileByTableType as c,
78617
- F as c$,
78618
- calcUtils as c0,
78619
- decodeTableCellRowKey as c1,
78620
- encodeTableCellRowKey as c2,
78621
- ensureFrontRowKey as c3,
78622
- ensureTableRowKeys as c4,
78623
- extractKeywordFromQueryData as c5,
78624
- fetchCheckDsDataForTable as c6,
78625
- fetchCustomCheckDsData as c7,
78626
- fetchMedProCheckDsData as c8,
78627
- findRuntimeTableCell as c9,
78628
- EntityModelTypeEnum as cA,
78629
- RecordNoGenerateEnum as cB,
78630
- TagTypeEnum as cC,
78631
- F$3 as cD,
78632
- FILL_FROM_TARGET_PRODUCT_OPTION as cE,
78633
- F$6 as cF,
78634
- SCAN_ROW_CONTENT_FIELDS as cG,
78635
- F$7 as cH,
78636
- runRowHandler as cI,
78637
- F$a as cJ,
78638
- F$9 as cK,
78639
- FILL_FROM_SOURCE_PRODUCT_OPTION as cL,
78640
- FILL_FROM_TARGET_MATERIAL_NO_OPTION as cM,
78641
- FILL_FROM_INVENTORY_OPTION$2 as cN,
78642
- FILL_FROM_PART_OPTION as cO,
78643
- FILL_FROM_INVENTORY_OPTION$3 as cP,
78644
- TABLE_TYPE$b as cQ,
78645
- FILL_FROM_INVENTORY_OPTION$1 as cR,
78646
- INVENTORY_BASE_FIELDS as cS,
78647
- resolveGroupByWarehouse as cT,
78648
- AUTO_LOAD_READONLY_SELECT_FIELDS as cU,
78649
- buildFillFromInventoryOption as cV,
78650
- resolveStocktakeInventoryApi as cW,
78651
- F$5 as cX,
78652
- FILL_FROM_INVENTORY_OPTION as cY,
78653
- LOCKED_INPUT_FIELDS as cZ,
78654
- composeProductionLotListQuery as c_,
78655
- getCheckTableSnapshotKey as ca,
78656
- getParseRuleConfig as cb,
78657
- getReinspectionDate as cc,
78658
- getRenderedRuntimeTableCell as cd,
78659
- handleOldConfig as ce,
78660
- hasAnyCheckTableSnapshot as cf,
78661
- hasByTableCheckTableSnapshot as cg,
78662
- hasSharedCheckTableSnapshot as ch,
78663
- isMedProSuite as ci,
78664
- isTableRowKeyMatch as cj,
78665
- jsonSchemaUtils as ck,
78666
- judgeUnique as cl,
78667
- migrateDiagonalDirectionToVertex as cm,
78668
- requestMedProCheckDsData as cn,
78669
- requestNonMedProCheckDsData as co,
78670
- stockCheck as cp,
78671
- useOnlineFormActionButton as cq,
78672
- getFieldPlaceholder as cr,
78673
- FRONT_ROW_KEY as cs,
78674
- resetTableRowIdentity as ct,
78675
- q as cu,
78676
- QUICK_FILL_ALLOWED_FIELDS as cv,
78677
- groupFixedTableRows as cw,
78678
- processQuickFillRows as cx,
78679
- getIsGroupEmpty as cy,
78680
- CardControlEnum as cz,
79018
+ FILL_FROM_INVENTORY_OPTION$1 as c$,
79019
+ PosEnum as c0,
79020
+ RUNTIME_COLUMN_ROW_KEY as c1,
79021
+ SummaryApproveHisTypeEnum as c2,
79022
+ applyCheckDsDataToRuntime as c3,
79023
+ applyMedProCheckDsDataToRuntime as c4,
79024
+ bindRuntimeTableColumns as c5,
79025
+ buildDeviceBaseQuery as c6,
79026
+ calcFillData as c7,
79027
+ calcUtils as c8,
79028
+ decodeTableCellRowKey as c9,
79029
+ isReferenceOptionActive as cA,
79030
+ FRONT_ROW_KEY as cB,
79031
+ getCurrentFormData as cC,
79032
+ resetTableRowIdentity as cD,
79033
+ q as cE,
79034
+ QUICK_FILL_ALLOWED_FIELDS as cF,
79035
+ groupFixedTableRows as cG,
79036
+ processQuickFillRows as cH,
79037
+ getIsGroupEmpty as cI,
79038
+ CardControlEnum as cJ,
79039
+ EntityModelTypeEnum as cK,
79040
+ RecordNoGenerateEnum as cL,
79041
+ TagTypeEnum as cM,
79042
+ F$3 as cN,
79043
+ FILL_FROM_TARGET_PRODUCT_OPTION as cO,
79044
+ F$6 as cP,
79045
+ SCAN_ROW_CONTENT_FIELDS as cQ,
79046
+ F$7 as cR,
79047
+ runRowHandler as cS,
79048
+ F$a as cT,
79049
+ F$9 as cU,
79050
+ FILL_FROM_SOURCE_PRODUCT_OPTION as cV,
79051
+ FILL_FROM_TARGET_MATERIAL_NO_OPTION as cW,
79052
+ FILL_FROM_INVENTORY_OPTION$2 as cX,
79053
+ FILL_FROM_PART_OPTION as cY,
79054
+ FILL_FROM_INVENTORY_OPTION$3 as cZ,
79055
+ TABLE_TYPE$b as c_,
79056
+ encodeTableCellRowKey as ca,
79057
+ ensureFrontRowKey as cb,
79058
+ ensureTableRowKeys as cc,
79059
+ extractKeywordFromQueryData as cd,
79060
+ fetchCheckDsDataForTable as ce,
79061
+ fetchCustomCheckDsData as cf,
79062
+ fetchMedProCheckDsData as cg,
79063
+ findRuntimeTableCell as ch,
79064
+ getCheckTableSnapshotKey as ci,
79065
+ getParseRuleConfig as cj,
79066
+ getReinspectionDate as ck,
79067
+ getRenderedRuntimeTableCell as cl,
79068
+ handleOldConfig as cm,
79069
+ hasAnyCheckTableSnapshot as cn,
79070
+ hasByTableCheckTableSnapshot as co,
79071
+ hasSharedCheckTableSnapshot as cp,
79072
+ isMedProSuite as cq,
79073
+ isTableRowKeyMatch as cr,
79074
+ jsonSchemaUtils as cs,
79075
+ judgeUnique as ct,
79076
+ migrateDiagonalDirectionToVertex as cu,
79077
+ requestMedProCheckDsData as cv,
79078
+ requestNonMedProCheckDsData as cw,
79079
+ stockCheck as cx,
79080
+ useOnlineFormActionButton as cy,
79081
+ getFieldPlaceholder as cz,
78681
79082
  getBusinessProfileByRefModelType as d,
78682
- getCellEditor as d$,
78683
- isProductManuallyEditable as d0,
78684
- applyFillFromMfgOrderOption as d1,
78685
- applyFillFromOption as d2,
78686
- applyFillFromProductOption as d3,
78687
- mergeQueryFilters as d4,
78688
- composeMaterialLotListQuery as d5,
78689
- MATERIAL_CONTAINER_ID as d6,
78690
- F$c as d7,
78691
- PRODUCT_QUICK_SEARCH_FIELDS as d8,
78692
- PRODUCT_QUICK_SEARCH_EXP as d9,
78693
- reduce as dA,
78694
- columnTypes as dB,
78695
- debounce$1 as dC,
78696
- RESIZE_INTERVAL as dD,
78697
- DimensionStore as dE,
78698
- gatherTrimmedItems as dF,
78699
- getColumnSizes as dG,
78700
- getItemByIndex as dH,
78701
- DataStore as dI,
78702
- getSourceItem as dJ,
78703
- getSourceItemVirtualIndexByProp as dK,
78704
- getColumnType as dL,
78705
- setSourceByPhysicalIndex as dM,
78706
- setSourceByVirtualIndex as dN,
78707
- SelectionStore as dO,
78708
- cropCellToMax as dP,
78709
- nextCell as dQ,
78710
- isRowType as dR,
78711
- ViewportStore as dS,
78712
- AndOrButton as dT,
78713
- ReorderButton as dU,
78714
- TrashButton as dV,
78715
- isFilterBtn as dW,
78716
- ColumnService as dX,
78717
- MOBILE_CLASS as dY,
78718
- SELECTION_BORDER_CLASS as dZ,
78719
- getCellData as d_,
78720
- isProductManuallyEditable$1 as da,
78721
- applyFillFromMaterialNoOption as db,
78722
- applyFillFromProductOption$1 as dc,
78723
- F$b as dd,
78724
- FILL_FROM_INVENTORY_OPTION$4 as de,
78725
- registerInstance as df,
78726
- createEvent as dg,
78727
- getColumnByProp as dh,
78728
- timeout as di,
78729
- getVisibleSourceItem as dj,
78730
- getColumns as dk,
78731
- rowTypes as dl,
78732
- GroupingRowPlugin as dm,
78733
- StretchColumn as dn,
78734
- isStretchPlugin as dp,
78735
- AutoSizeColumnPlugin as dq,
78736
- FilterPlugin as dr,
78737
- ExportFilePlugin as ds,
78738
- SortingPlugin as dt,
78739
- ColumnMovePlugin as du,
78740
- ThemeService as dv,
78741
- h as dw,
78742
- Host as dx,
78743
- getElement as dy,
78744
- BasePlugin as dz,
79083
+ isRowType as d$,
79084
+ INVENTORY_BASE_FIELDS as d0,
79085
+ resolveGroupByWarehouse as d1,
79086
+ AUTO_LOAD_READONLY_SELECT_FIELDS as d2,
79087
+ buildFillFromInventoryOption as d3,
79088
+ resolveStocktakeInventoryApi as d4,
79089
+ F$5 as d5,
79090
+ FILL_FROM_INVENTORY_OPTION as d6,
79091
+ LOCKED_INPUT_FIELDS as d7,
79092
+ composeProductionLotListQuery as d8,
79093
+ F as d9,
79094
+ AutoSizeColumnPlugin as dA,
79095
+ FilterPlugin as dB,
79096
+ ExportFilePlugin as dC,
79097
+ SortingPlugin as dD,
79098
+ ColumnMovePlugin as dE,
79099
+ ThemeService as dF,
79100
+ h as dG,
79101
+ Host as dH,
79102
+ getElement as dI,
79103
+ BasePlugin as dJ,
79104
+ reduce as dK,
79105
+ columnTypes as dL,
79106
+ debounce$1 as dM,
79107
+ RESIZE_INTERVAL as dN,
79108
+ DimensionStore as dO,
79109
+ gatherTrimmedItems as dP,
79110
+ getColumnSizes as dQ,
79111
+ getItemByIndex as dR,
79112
+ DataStore as dS,
79113
+ getSourceItem as dT,
79114
+ getSourceItemVirtualIndexByProp as dU,
79115
+ getColumnType as dV,
79116
+ setSourceByPhysicalIndex as dW,
79117
+ setSourceByVirtualIndex as dX,
79118
+ SelectionStore as dY,
79119
+ cropCellToMax as dZ,
79120
+ nextCell as d_,
79121
+ isProductManuallyEditable as da,
79122
+ applyFillFromMfgOrderOption as db,
79123
+ applyFillFromOption as dc,
79124
+ applyFillFromProductOption as dd,
79125
+ mergeQueryFilters as de,
79126
+ composeMaterialLotListQuery as df,
79127
+ MATERIAL_CONTAINER_ID as dg,
79128
+ F$c as dh,
79129
+ PRODUCT_QUICK_SEARCH_FIELDS as di,
79130
+ PRODUCT_QUICK_SEARCH_EXP as dj,
79131
+ isProductManuallyEditable$1 as dk,
79132
+ applyFillFromMaterialNoOption as dl,
79133
+ applyFillFromProductOption$1 as dm,
79134
+ F$b as dn,
79135
+ FILL_FROM_INVENTORY_OPTION$4 as dp,
79136
+ registerInstance as dq,
79137
+ createEvent as dr,
79138
+ getColumnByProp as ds,
79139
+ timeout as dt,
79140
+ getVisibleSourceItem as du,
79141
+ getColumns as dv,
79142
+ rowTypes as dw,
79143
+ GroupingRowPlugin as dx,
79144
+ StretchColumn as dy,
79145
+ isStretchPlugin as dz,
78745
79146
  expandAutofillTemplates as e,
78746
- getRange as e0,
78747
- isRangeSingleCell as e1,
78748
- codesLetter as e2,
78749
- calculateRowHeaderSize as e3,
78750
- ROW_HEADER_TYPE as e4,
78751
- getScrollbarSize as e5,
78752
- FOCUS_CLASS as e6,
78753
- CELL_HANDLER_CLASS as e7,
78754
- TMP_SELECTION_BG_CLASS as e8,
78755
- getItemByPosition as e9,
78756
- FilterButton as eA,
78757
- HeaderCellRenderer as eB,
78758
- HEADER_CLASS as eC,
78759
- EDIT_INPUT_WR as ea,
78760
- keyValues as eb,
78761
- isObject as ec,
78762
- DRAGG_TEXT as ed,
78763
- PSEUDO_GROUP_ITEM as ee,
78764
- GROUP_EXPANDED as ef,
78765
- GROUP_DEPTH as eg,
78766
- GROUP_EXPAND_BTN as eh,
78767
- DATA_ROW as ei,
78768
- isGroupingColumn as ej,
78769
- GROUP_COLUMN_PROP as ek,
78770
- getCellRaw as el,
78771
- DATA_COL as em,
78772
- CELL_CLASS as en,
78773
- Build as eo,
78774
- isRowDragService as ep,
78775
- DRAG_ICON_CLASS as eq,
78776
- DRAGGABLE_CLASS as er,
78777
- getCellDataParsed as es,
78778
- GROUP_EXPAND_EVENT as et,
78779
- isGrouping as eu,
78780
- HEADER_ROW_CLASS as ev,
78781
- HEADER_ACTUAL_ROW_CLASS as ew,
78782
- ROW_FOCUSED_CLASS as ex,
78783
- HEADER_SORTABLE_CLASS as ey,
78784
- MIN_COL_SIZE as ez,
79147
+ ViewportStore as e0,
79148
+ AndOrButton as e1,
79149
+ ReorderButton as e2,
79150
+ TrashButton as e3,
79151
+ isFilterBtn as e4,
79152
+ ColumnService as e5,
79153
+ MOBILE_CLASS as e6,
79154
+ SELECTION_BORDER_CLASS as e7,
79155
+ getCellData as e8,
79156
+ getCellEditor as e9,
79157
+ DRAG_ICON_CLASS as eA,
79158
+ DRAGGABLE_CLASS as eB,
79159
+ getCellDataParsed as eC,
79160
+ GROUP_EXPAND_EVENT as eD,
79161
+ isGrouping as eE,
79162
+ HEADER_ROW_CLASS as eF,
79163
+ HEADER_ACTUAL_ROW_CLASS as eG,
79164
+ ROW_FOCUSED_CLASS as eH,
79165
+ HEADER_SORTABLE_CLASS as eI,
79166
+ MIN_COL_SIZE as eJ,
79167
+ FilterButton as eK,
79168
+ HeaderCellRenderer as eL,
79169
+ HEADER_CLASS as eM,
79170
+ getRange as ea,
79171
+ isRangeSingleCell as eb,
79172
+ codesLetter as ec,
79173
+ calculateRowHeaderSize as ed,
79174
+ ROW_HEADER_TYPE as ee,
79175
+ getScrollbarSize as ef,
79176
+ FOCUS_CLASS as eg,
79177
+ CELL_HANDLER_CLASS as eh,
79178
+ TMP_SELECTION_BG_CLASS as ei,
79179
+ getItemByPosition as ej,
79180
+ EDIT_INPUT_WR as ek,
79181
+ keyValues as el,
79182
+ isObject as em,
79183
+ DRAGG_TEXT as en,
79184
+ PSEUDO_GROUP_ITEM as eo,
79185
+ GROUP_EXPANDED as ep,
79186
+ GROUP_DEPTH as eq,
79187
+ GROUP_EXPAND_BTN as er,
79188
+ DATA_ROW as es,
79189
+ isGroupingColumn as et,
79190
+ GROUP_COLUMN_PROP as eu,
79191
+ getCellRaw as ev,
79192
+ DATA_COL as ew,
79193
+ CELL_CLASS as ex,
79194
+ Build as ey,
79195
+ isRowDragService as ez,
78785
79196
  resolveAutofillToField as f,
78786
79197
  getAllDataProfiles as g,
78787
79198
  SubTableType as h,