@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.
- package/dist/{BaseComponent-gOtXQLY_.js → BaseComponent-B0s9C7u7.js} +2 -2
- package/dist/{VueVideoPlayer-CB5VHlj2.js → VueVideoPlayer-BCGJs86_.js} +2 -2
- package/dist/{align-editor-ssy7gJsD.js → align-editor-DBWdbAV_.js} +1 -1
- package/dist/{barcode-design-Mjrep3H_.js → barcode-design-YdLnj4EK.js} +2 -2
- package/dist/base/index.es.js +189 -193
- package/dist/{diagonal-design-CFBp2E-O.js → diagonal-design-vCovyGwZ.js} +2 -2
- package/dist/{dynamic-table-action-BKX0Oeoy.js → dynamic-table-action-9oc6dkLz.js} +144 -215
- 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
- package/dist/{edit.utils-CXmmCnxE-CwPcGg-f.js → edit.utils-CXmmCnxE-BvWz-8bv.js} +1 -1
- package/dist/excel.css +12 -12
- package/dist/{exceljs.min-eo-E80If.js → exceljs.min-Dp6PAQE9.js} +2 -2
- package/dist/{font-editor-CAZX85G4.js → font-editor-gcStnuue.js} +3 -3
- package/dist/{image-design-g9R_z-IY.js → image-design-DJ3VRU2t.js} +2 -2
- package/dist/{index--7My1yo5.js → index-2mRh7iFw.js} +350 -192
- package/dist/{index-BBq6DSLI.js → index-7WwJSlNN.js} +2 -2
- package/dist/{index-DEMinegB.js → index-AmKjgww5.js} +1 -1
- package/dist/{index--RhdrCZV.js → index-Avrz1-1F.js} +2 -2
- package/dist/{index-C6oivLbu.js → index-B5AUi6i3.js} +1 -1
- package/dist/{index-DifKRFVy.js → index-BCeR77y-.js} +2 -2
- package/dist/{index-D3cPbNne.js → index-BHTcJLrz.js} +1 -1
- package/dist/{index-DzT1SZ9z.js → index-BYf9Fudx.js} +3 -3
- package/dist/{index-CoKpbR25.js → index-BaCa0TgP.js} +2 -2
- package/dist/{index-BycDrbO0.js → index-BsmHcJs3.js} +2 -2
- package/dist/{index-D-WSp3EA.js → index-CFTsMiRR.js} +1 -1
- package/dist/{index-CpQiCEe7.js → index-CFvLIeFl.js} +1 -1
- package/dist/{index-B9hIqELW.js → index-CLLc5Ob2.js} +1 -1
- package/dist/{index-PUFY8idd.js → index-COOampHb.js} +1 -1
- package/dist/{index-Cpn8pcne.js → index-Ck06j4gn.js} +2 -2
- package/dist/{index-NH1JcF4s.js → index-Cl-QMM1R.js} +2 -2
- package/dist/{index-0S-kw2HL.js → index-CtEUzXVk.js} +2 -2
- package/dist/{index-iYrfBvkL.js → index-CzUGIYOv.js} +2 -2
- package/dist/{index-0pYUJqWX.js → index-D3ZQLjrQ.js} +2 -2
- package/dist/{index-BoGFEaqo.js → index-D6eANpFX.js} +2 -2
- package/dist/{index-NulsmEum.js → index-D90UOUAU.js} +3 -3
- package/dist/{index-DozFqpk2.js → index-D9j3S6qI.js} +1 -1
- package/dist/{index-SrAjB-wq.js → index-DIodi5gH.js} +4 -4
- package/dist/{index-8WHvZyAx.js → index-DPP4WDPc.js} +2 -2
- package/dist/{index-hNdJpzws.js → index-DXqsUrWV.js} +3 -3
- package/dist/{index-BLv5fzzG.js → index-DnsZjDDh.js} +2 -2
- package/dist/{index-Cmr9DRpz.js → index-Dzl5Ukft.js} +1 -1
- package/dist/{index-BMlGh5m0.js → index-Mg-zrcwn.js} +2 -2
- package/dist/{index-jTfc0zM7.js → index-agcLaGBj.js} +2 -2
- package/dist/{index-BLqJtzs6.js → index-cOcBl2Ga.js} +2 -2
- package/dist/{index-DgEDg0_J.js → index-gWEP20xe.js} +3 -3
- package/dist/{index-fcxbS2U1.js → index-iYYd2oH1.js} +3 -3
- package/dist/{index-9Mi1Iiw8.js → index-sWtzbaDv.js} +3 -3
- package/dist/{index-YteSvWxT.js → index-y3jt4BZe.js} +1 -1
- package/dist/index.es.js +2 -2
- 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
- package/dist/{pagination-design-DelDPMV6.js → pagination-design-BZZcBbIF.js} +2 -2
- package/dist/paper-widget-design-Coh8v5mV.js +4 -0
- package/dist/{print-runtime-instance-NcHBwPwX.js → print-runtime-instance-CV0WcU-Z.js} +1 -1
- package/dist/{print-snapshot-renderer-Dw-xzoDx.js → print-snapshot-renderer-hHd4ThE0.js} +3 -3
- package/dist/{qrcode-design-DAYfoLN-.js → qrcode-design-C8d7cE3K.js} +1 -1
- package/dist/{revo-grid.entry-Bh8ebL13.js → revo-grid.entry-DSnc_nH1.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CsJaMH68.js → revogr-attribution_7.entry-D67ci-yw.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DgmZ8Pc0.js → revogr-clipboard_3.entry-C9h0dhAb.js} +2 -2
- package/dist/{revogr-data_4.entry-CPW7BILy.js → revogr-data_4.entry-DuuRVRex.js} +2 -2
- package/dist/{revogr-filter-panel.entry-BpIcSbuR.js → revogr-filter-panel.entry-BeIaYORN.js} +1 -1
- package/dist/seal-design-DfKie-Qg.js +4 -0
- package/dist/{serialnumber-design-C92sT5qW.js → serialnumber-design-wyJY14Fx.js} +1 -1
- package/dist/shared/index.es.js +25 -25
- package/dist/{single-field-drop-BcuqHgNO.js → single-field-drop-CA6EtCtR.js} +2 -2
- package/dist/{size-editor-JdHGylGx.js → size-editor-lAn0ECzs.js} +1 -1
- package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
- package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +8 -0
- package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
- package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +3 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useReferenceLabel.d.ts +4 -0
- package/dist/src/shared/enum/field-type.d.ts +1 -1
- package/dist/{sub-table-factory-v9spfnMN.js → sub-table-factory-CwbQEPJq.js} +14 -2
- package/dist/{text-design-BjhwgpUv.js → text-design-Bv4PfeOW.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-DQh0IPeE.js → throttle-Cpk1LoGk-BaXaGrUw.js} +1 -1
- package/dist/{timediff-design-D84T_Isx.js → timediff-design-CxT_O6R8.js} +1 -1
- package/dist/{trace-like-wrapper-DHb2jlre.js → trace-like-wrapper-CGe5K_FN.js} +2 -2
- 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
- package/dist/{widget-barcode-CNB9Sqle.js → widget-barcode-C83yiwNl.js} +4 -4
- package/dist/{widget-diagonal-6ZDcxCwX.js → widget-diagonal-C-zD-MLy.js} +3 -3
- package/dist/{widget-image-D--Ynjra.js → widget-image-DIcnWHn7.js} +4 -4
- package/dist/{widget-line-CpwqEFD9.js → widget-line-BnMezWy-.js} +2 -2
- package/dist/{widget-pagination-BN3wWsKq.js → widget-pagination-QWM1Nmlo.js} +5 -5
- package/dist/{widget-power-Cn61OOWe.js → widget-power-DnqxPUmW.js} +3 -3
- package/dist/{widget-qrcode-BgUCM01T.js → widget-qrcode-PBnm6ehD.js} +3 -3
- package/dist/{widget-rangelimit-CnNNwIo0.js → widget-rangelimit-CDyYKHeg.js} +3 -3
- package/dist/{widget-serialnumber-gZih5585.js → widget-serialnumber-BwS-Ac9h.js} +1 -1
- package/dist/{widget-text--iXnC5zl.js → widget-text-COW-IQ1P.js} +5 -5
- package/dist/{widget-timediff-DN-FCR7T.js → widget-timediff-RpQcMPpb.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-UPTi8CN4.js +0 -4
- 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 {
|
|
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
|
|
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
|
-
|
|
11190
|
-
|
|
11123
|
+
RequiredQtyCalcRule as $,
|
|
11124
|
+
validateObjectBomForScan as A,
|
|
11191
11125
|
BorderTD as B,
|
|
11192
|
-
|
|
11126
|
+
resolveObjectBomEntry as C,
|
|
11193
11127
|
DEFAULT_BOOLEAN_FIELD_WIDTH as D,
|
|
11194
|
-
|
|
11128
|
+
runWithFillProduct as E,
|
|
11195
11129
|
FormModelController as F,
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
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
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
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
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
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
|
-
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
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
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
|
|
11308
|
-
|
|
11309
|
-
|
|
11310
|
-
|
|
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
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
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
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11248
|
+
useRuntimeRowState as v,
|
|
11249
|
+
getObjectBomMaterialLotQuery as w,
|
|
11250
|
+
buildObjectLotExtraQuery as x,
|
|
11251
|
+
resolveObjectFieldKeys as y,
|
|
11252
|
+
MaterialConsumptionPatternEnum as z
|
|
11324
11253
|
};
|