@gct-paas/excel 0.1.39-beta.1 → 0.1.40-beta.0
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-wXAepA6P.js → BaseComponent-BTolXjlE.js} +4 -3
- package/dist/{VueVideoPlayer-C--qHZWs.js → VueVideoPlayer-Dvf7Ya7H.js} +2 -2
- package/dist/{align-editor-BMFoEgQf.js → align-editor-jp0NsOnT.js} +1 -1
- package/dist/{barcode-design-M3FjUJNm.js → barcode-design-ClfdoOKn.js} +3 -2
- package/dist/base/index.es.js +154 -12
- package/dist/{diagonal-design-C2lATeRX.js → diagonal-design-Br0xpyqC.js} +3 -2
- package/dist/{dynamic-table-action-Cm8HO12b.js → dynamic-table-action-C-HIKtZG.js} +36 -16
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CYRNF_U3.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js} +7 -7
- package/dist/{edit.utils-CXmmCnxE-CaZuzVd6.js → edit.utils-CXmmCnxE-D4-n_eOM.js} +1 -1
- package/dist/excel.css +10 -10
- package/dist/{exceljs.min-CeIQpaOT.js → exceljs.min-BH63KI8s.js} +2 -2
- package/dist/{font-editor-CPn2F_OZ.js → font-editor-QSpu9bjJ.js} +3 -3
- package/dist/{image-design-DWjjBFQa.js → image-design-ySQAmnTF.js} +2 -2
- package/dist/{index-yfTjcRJ8.js → index-2FWN7Q91.js} +3 -2
- package/dist/{index-BcpTVyHa.js → index-4_qe7Eco.js} +3 -2
- package/dist/{index-B72KgWBu.js → index-8yhxxqYM.js} +2 -1
- package/dist/{index-pxBPpLrG.js → index-B3mCVcXB.js} +3 -2
- package/dist/{index-C__Qm3ub.js → index-B6Bs-q34.js} +3 -2
- package/dist/{index-DSSJ8S81.js → index-BHiNdrGr.js} +3 -2
- package/dist/{index-C3GHvYcj.js → index-BJ6ZaX-f.js} +3 -2
- package/dist/{index-DtS3ze0S.js → index-BJQd1G0r.js} +4 -3
- package/dist/{index-BrZiEGAB.js → index-BOaDYNtp.js} +3 -2
- package/dist/{index-ChRhjdl_.js → index-BXXvFDgt.js} +2 -1
- package/dist/{index-BZcapeWR.js → index-BxEjRF0o.js} +3 -2
- package/dist/{index-DqQ2ZxDn.js → index-C2RMbM6E.js} +3 -2
- package/dist/{index-DdVlAV0_.js → index-C7DwXZ-K.js} +2 -1
- package/dist/{index-OIXBBHHu.js → index-CMOvPSr6.js} +3 -2
- package/dist/{index-CNlb3Y3A.js → index-CN-rY-3F.js} +2 -1
- package/dist/{index-CcBF1mOx.js → index-COx1-SPe.js} +3 -2
- package/dist/{index-DHPRpllA.js → index-CTO4kNz9.js} +2 -1
- package/dist/{index-Cg0trWkY.js → index-CUrMIr2v.js} +3 -2
- package/dist/{index-CED1SWU9.js → index-Ca8q7yXC.js} +3 -2
- package/dist/{index-B3oqnny_.js → index-Cb-I6DkL.js} +2 -1
- package/dist/{index-BatfBVeN.js → index-Cf7KwZfa.js} +5 -4
- package/dist/{index-ClVsGQoQ.js → index-CvDQjwre.js} +2 -1
- package/dist/{index-mA7F37nK.js → index-D3IdoYWe.js} +3 -2
- package/dist/{index-gra19syg.js → index-D9zBCWpE.js} +3 -2
- package/dist/{index-CWmsgguT.js → index-DYxskDRv.js} +4 -3
- package/dist/{index-BEQELF4E.js → index-DZGqXE3S.js} +4 -3
- package/dist/{index-DC8dEMj4.js → index-DbPA5PUX.js} +2 -1
- package/dist/{index-CpN3c_Lk.js → index-FSCxAVGq.js} +3 -2
- package/dist/{index-BuNKNsIb.js → index-QTmeSdj9.js} +3 -2
- package/dist/{index-DxCN78vg.js → index-Qf8D5LdT.js} +4 -3
- package/dist/{index-DhkQma-u.js → index-dhaw5vxN.js} +3 -2
- package/dist/{index-CRGOLDI8.js → index-ibQys99q.js} +2 -1
- package/dist/{index-CIiCyyBv.js → index-nBc_3R3r.js} +2 -1
- package/dist/{index-B3S5QpVz.js → index-oOLbaFI8.js} +257 -174
- package/dist/{index-DTSHn9ii.js → index-uVpJOLb3.js} +2 -2
- package/dist/index.es.js +4 -2
- package/dist/{mb-render-BZXw-tG7.js → mb-render-BRejJNP-.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-uXt_kyMo.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-QX4lxsni.js} +2 -1
- package/dist/{pagination-design-CCRMgYhc.js → pagination-design-pTh3Fqbz.js} +3 -2
- package/dist/paper-widget-design-CBI-8vTV.js +4 -0
- package/dist/{print-runtime-instance-MA7UVZdA.js → print-runtime-instance-CBUjws4D.js} +1 -1
- package/dist/{print-snapshot-renderer-BavXucNu.js → print-snapshot-renderer-s0IhY_T_.js} +3 -3
- package/dist/{qrcode-design-BC1PBKf_.js → qrcode-design-CnKOb-s9.js} +1 -1
- package/dist/{revo-grid.entry-DjiOpHRm.js → revo-grid.entry-BqbaKcyR.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CDnB9lLs.js → revogr-attribution_7.entry-jmN78nkb.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-C6O9JrN7.js → revogr-clipboard_3.entry-eK74i7_f.js} +2 -2
- package/dist/{revogr-data_4.entry-y1feqF9h.js → revogr-data_4.entry-D2lAUBEM.js} +2 -2
- package/dist/{revogr-filter-panel.entry-By9rD4Y9.js → revogr-filter-panel.entry-C-1WXBDy.js} +1 -1
- package/dist/seal-design-CMJBAfIN.js +4 -0
- package/dist/{serialnumber-design-Bb75HRGq.js → serialnumber-design-DEYD9ku_.js} +1 -1
- package/dist/shared/index.es.js +2 -2
- package/dist/{single-field-drop-BlAQcTBT.js → single-field-drop-Bd3PcWQF.js} +2 -2
- package/dist/{size-editor-BWnv8oH4.js → size-editor-DiZ8E2R6.js} +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +45 -0
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +39 -0
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +21 -0
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +5 -2
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +5 -5
- package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +124 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +62 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +6 -0
- package/dist/src/online-form/src/views/designer/types/index.d.ts +5 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +1 -0
- package/dist/{sub-table-factory-CGELiUkd.js → sub-table-factory-B6HdlZ7-.js} +2 -2
- package/dist/{text-design-CiWiGhwN.js → text-design-D2IwsbOW.js} +3 -2
- package/dist/{throttle-Cpk1LoGk-B466AVFI.js → throttle-Cpk1LoGk-DRpYOKiV.js} +1 -1
- package/dist/{timediff-design-CnCXGLgF.js → timediff-design-Cq3SADlb.js} +2 -1
- package/dist/{trace-like-wrapper-CPFayyjF.js → trace-like-wrapper-Qmczl-Hz.js} +3 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DyTtWYrg.js → value-editor.vue_vue_type_style_index_0_lang-UXPOa0Wv.js} +3 -2
- package/dist/web-render/index.es.js +4 -3
- package/dist/{widget-barcode-DMt5IwNO.js → widget-barcode-C7wO0SFO.js} +5 -4
- package/dist/{widget-diagonal-D073XXKw.js → widget-diagonal-Cbuv8o5A.js} +4 -3
- package/dist/{widget-image-Bc-6H2uA.js → widget-image-4AeqjwGp.js} +5 -5
- package/dist/{widget-line-BtfMvVGp.js → widget-line--RgXiyvO.js} +3 -2
- package/dist/{widget-pagination-CIlAAI2a.js → widget-pagination-jr6bVWPW.js} +6 -5
- package/dist/{widget-power-Bu16c4bS.js → widget-power-ptilZfAF.js} +4 -3
- package/dist/{widget-qrcode-AfILjhmH.js → widget-qrcode-DH-1741M.js} +4 -3
- package/dist/{widget-rangelimit-B-mhBJN4.js → widget-rangelimit-B4yv3Qw3.js} +3 -3
- package/dist/{widget-serialnumber-DVoe5bqh.js → widget-serialnumber-AZ2IUJTg.js} +1 -1
- package/dist/{widget-text-DWNEbQUk.js → widget-text-CW0A1n16.js} +5 -5
- package/dist/{widget-timediff-B2mjc1qy.js → widget-timediff-C3xTGqfj.js} +3 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-BbQeY4Hv.js +0 -4
- package/dist/seal-design-CN_B6div.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as normalizeFieldWidth } from "./dynamic-table-action-
|
|
1
|
+
import { n as normalizeFieldWidth } from "./dynamic-table-action-C-HIKtZG.js";
|
|
2
2
|
import { get, pick } from "lodash-es";
|
|
3
|
-
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
4
4
|
import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
|
|
5
5
|
const DESIGNER_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
6
6
|
FIELD_TYPE.DEVICE,
|
|
@@ -45,7 +45,8 @@ class BaseComponent {
|
|
|
45
45
|
cmpWidth: String(normalizeFieldWidth(data.info?.compWidth)),
|
|
46
46
|
cmpHeight: get(data.info, "compHeight", 30),
|
|
47
47
|
size: get(data.info, "fontSize", 12),
|
|
48
|
-
componentDependency: get(data.info, "componentDependency", void 0)
|
|
48
|
+
componentDependency: get(data.info, "componentDependency", void 0),
|
|
49
|
+
valueChangeDataSourceKeys: get(data.info, "valueChangeDataSourceKeys", void 0)
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
getCommonStyle(data) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, toRaw, shallowRef, computed, ref, readonly, onMounted, watch, normalizeClass, onBeforeUnmount, h as h$1, watchEffect, unref, createVNode, reactive } from "vue";
|
|
2
|
-
import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
-
import { r as require$$0 } from "./index-
|
|
2
|
+
import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
|
+
import { r as require$$0 } from "./index-uVpJOLb3.js";
|
|
4
4
|
var window_1;
|
|
5
5
|
var hasRequiredWindow;
|
|
6
6
|
function requireWindow() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
3
|
const _hoisted_1 = { class: "align-group-box" };
|
|
4
4
|
const _hoisted_2 = ["onClick"];
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { pick } from "lodash-es";
|
|
3
|
-
import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-
|
|
4
|
-
import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-oOLbaFI8.js";
|
|
4
|
+
import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
5
5
|
import "dayjs";
|
|
6
|
+
import "@gct-paas/form-base";
|
|
6
7
|
import "ant-design-vue";
|
|
7
8
|
const _hoisted_1 = { class: "wrapper" };
|
|
8
9
|
const _hoisted_2 = {
|
package/dist/base/index.es.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { E as api, $ as PlatformEnum, F as FIELD_TYPE, bi as getRowId, bj as findRuntimeTableRow, b8 as RenderModeEnum, C as ComponentTypeEnum, bv as assembleRules, bw as isAttachFieldActive, aI as Dependency_ENUM, bk as calculateFormula, aH as ASSIGNMENTSTRATEGY_ENUM, R as getParseFormulaVarInfos, bx as fetchHistoryConsume, by as isBomGranted, aW as renderUtils, bu as uuid2, bz as parseFrontConfig, aL as CheckDsTypeEnum, aF as transformUtils, bA as baseDataUtils, bB as initializeSealFields, Y as FormTypeEnum, bC as normalizeToArray, bD as safeParseArray, bE as BpmnNodeTypeEnum, bF as mergeByMultiKey, a8 as _export_sfc, bG as evaluateInspectionDecisionRule, bH as areValidationCommentsEqual, bI as useNocodeEmitter, bJ as commonUtils, aJ as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
-
import { aO, aQ, a$, a1, bK, bL, B, bM, y, ai, bN, bO, bP, bh, bQ, aT, ay, aP, aM, aN, bR, aj, an, bS, bT, aG, a3, ah, az, aR, a0, al, L, bU, bV, O, p, P, aa, o, Q, A, bW, bX, ax, aw, a6, a2, a4, a5, a7, f, bY, am, aq, ak, bZ, b_, b$, c0, bg, c1, c2, c3, c4, c5, c6, c7, c8, bl, c9, ca, aZ, cb, b0, b1, cc, cd, ce, cf, cg, ch, ci, cj, ck, aY, cl, b2, be, cm, cn, co, ao, t, aS, cp, cq, bm, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
-
import { L as getRuntimeDataFieldId, x as parseRuntimeFieldPath, O as buildRuntimeFieldPath, P as resolveRuntimeFieldProps, Q as resolveRuntimeFieldState, T as getRuntimeDependencyOutputKey, U as isRowAddedInCurrentFormChange, l as MaterialConsumptionPatternEnum, V as MaterialConsumeTableController, W as setFormulaParamsConfig, X as normalizeRuntime, F as createRuntimeInstanceContext, R as RuntimeFormStateStore, Y as RuntimeSheetService, g as getBusinessFieldKey, Z as validateObjectBomQtyOnSubmit, $ as closeValidatorPopovers, a0 as enrichFormChangeRowDetails, N as NCB_PROVIDE, G as RuntimeInstanceRegistry, a1 as useMaterialBalance, a2 as collectFormChangeFieldLocations, a3 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-
|
|
4
|
-
import { B as B2, a4 as a42, b, _, a5 as a52, J, a6 as a62, K, E, a7 as a72, a8, a9, aa as aa2, ab, ac, M, ad, ae, af, ag, ah as ah2, ai as ai2, aj as aj2, ak as ak2, q, al as al2, k, am as am2, c, an as an2, ao as ao2, ap, aq as aq2, j, t as t2, ar, as, at, au, d, w, a, av, aw as aw2, ax as ax2, ay as ay2, az as az2, aA, m, r, aB, o as o2, h, aC, s, aD, z, A as A2, u, p as p2, C, f as f2, i, y as y2, e, v } from "../dynamic-table-action-
|
|
5
|
-
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted,
|
|
6
|
-
import { cloneDeep, defaults, isEmpty, merge } from "lodash-es";
|
|
1
|
+
import { E as api, $ as PlatformEnum, F as FIELD_TYPE, bi as getRowId, bj as findRuntimeTableRow, b8 as RenderModeEnum, C as ComponentTypeEnum, bv as assembleRules, bw as isAttachFieldActive, aI as Dependency_ENUM, bk as calculateFormula, aH as ASSIGNMENTSTRATEGY_ENUM, R as getParseFormulaVarInfos, bx as fetchHistoryConsume, by as isBomGranted, aW as renderUtils, bu as uuid2, bz as parseFrontConfig, aL as CheckDsTypeEnum, aF as transformUtils, bA as baseDataUtils, bB as initializeSealFields, Y as FormTypeEnum, bC as normalizeToArray, bD as safeParseArray, bE as BpmnNodeTypeEnum, bF as mergeByMultiKey, a8 as _export_sfc, bG as evaluateInspectionDecisionRule, bH as areValidationCommentsEqual, bI as useNocodeEmitter, bJ as commonUtils, aJ as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
2
|
+
import { aO, aQ, a$, a1, bK, bL, B, bM, y, ai, bN, bO, bP, bh, bQ, aT, ay, aP, aM, aN, bR, aj, an, bS, bT, aG, a3, ah, az, aR, a0, al, L, bU, bV, O, p, P, aa, o, Q, A, bW, bX, ax, aw, a6, a2, a4, a5, a7, f, bY, am, aq, ak, bZ, b_, b$, c0, bg, c1, c2, c3, c4, c5, c6, c7, c8, bl, c9, ca, aZ, cb, b0, b1, cc, cd, ce, cf, cg, ch, ci, cj, ck, aY, cl, b2, be, cm, cn, co, ao, t, aS, cp, cq, bm, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
|
+
import { L as getRuntimeDataFieldId, x as parseRuntimeFieldPath, O as buildRuntimeFieldPath, P as resolveRuntimeFieldProps, Q as resolveRuntimeFieldState, T as getRuntimeDependencyOutputKey, U as isRowAddedInCurrentFormChange, l as MaterialConsumptionPatternEnum, V as MaterialConsumeTableController, W as setFormulaParamsConfig, X as normalizeRuntime, F as createRuntimeInstanceContext, R as RuntimeFormStateStore, Y as RuntimeSheetService, g as getBusinessFieldKey, Z as validateObjectBomQtyOnSubmit, $ as closeValidatorPopovers, a0 as enrichFormChangeRowDetails, N as NCB_PROVIDE, G as RuntimeInstanceRegistry, a1 as useMaterialBalance, a2 as collectFormChangeFieldLocations, a3 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-C-HIKtZG.js";
|
|
4
|
+
import { B as B2, a4 as a42, b, _, a5 as a52, J, a6 as a62, K, E, a7 as a72, a8, a9, aa as aa2, ab, ac, M, ad, ae, af, ag, ah as ah2, ai as ai2, aj as aj2, ak as ak2, q, al as al2, k, am as am2, c, an as an2, ao as ao2, ap, aq as aq2, j, t as t2, ar, as, at, au, d, w, a, av, aw as aw2, ax as ax2, ay as ay2, az as az2, aA, m, r, aB, o as o2, h, aC, s, aD, z, A as A2, u, p as p2, C, f as f2, i, y as y2, e, v } from "../dynamic-table-action-C-HIKtZG.js";
|
|
5
|
+
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, shallowRef, markRaw, ref, provide, onUnmounted, reactive, onBeforeUnmount } from "vue";
|
|
6
|
+
import { cloneDeep, defaults, isEmpty, merge, get } from "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
|
-
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-
|
|
9
|
-
import { A as A3, D, M as M2, a as a10, P as P2, b as b3, c as c10, d as d2, e as e2, W, f as f3, g, h as h2 } from "../sub-table-factory-
|
|
10
|
-
import {
|
|
8
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-B6HdlZ7-.js";
|
|
9
|
+
import { A as A3, D, M as M2, a as a10, P as P2, b as b3, c as c10, d as d2, e as e2, W, f as f3, g, h as h2 } from "../sub-table-factory-B6HdlZ7-.js";
|
|
10
|
+
import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, isFieldFillTargetProtected, buildDataSourceContext } from "@gct-paas/form-base";
|
|
11
|
+
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-BRejJNP-.js";
|
|
11
12
|
const InstanceStatusValues = {
|
|
12
13
|
/** 作废状态 */
|
|
13
14
|
ABANDON: "ABANDON",
|
|
@@ -501,7 +502,8 @@ class RuntimeRuleCompiler {
|
|
|
501
502
|
props,
|
|
502
503
|
widget.id,
|
|
503
504
|
entry.row,
|
|
504
|
-
entry.parentRow
|
|
505
|
+
entry.parentRow,
|
|
506
|
+
this.basicInfo.formChangeStatus
|
|
505
507
|
);
|
|
506
508
|
const state = resolveRuntimeFieldState(effectiveProps, this.basicInfo);
|
|
507
509
|
const rules = assembleRules({
|
|
@@ -601,7 +603,8 @@ class RuntimeRuleCompiler {
|
|
|
601
603
|
props,
|
|
602
604
|
widget.id,
|
|
603
605
|
entry.row,
|
|
604
|
-
entry.parentRow
|
|
606
|
+
entry.parentRow,
|
|
607
|
+
this.basicInfo.formChangeStatus
|
|
605
608
|
);
|
|
606
609
|
return [
|
|
607
610
|
entry.key,
|
|
@@ -2105,6 +2108,135 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
|
|
|
2105
2108
|
prepareInitialView
|
|
2106
2109
|
};
|
|
2107
2110
|
}
|
|
2111
|
+
function createRuntimeDataSourceBinding(registry, payload) {
|
|
2112
|
+
const dataSourceManagerMap = shallowRef({});
|
|
2113
|
+
async function bindDataSources(record, info, selfInfo) {
|
|
2114
|
+
if (payload.isMockReport || !["instance", "batchInstance"].includes(payload.factoryType)) return;
|
|
2115
|
+
const isDetail = () => typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage;
|
|
2116
|
+
if (isDetail()) return;
|
|
2117
|
+
const { context, formState } = record;
|
|
2118
|
+
const { uniqueId, formConfig } = context;
|
|
2119
|
+
const canExecute = () => registry.get(uniqueId) === record && info.renderModeType === RenderModeEnum.FormMode && !isDetail();
|
|
2120
|
+
const getContext = () => buildDataSourceContext({ parameters: info.paramsConfig ?? {}, instance: selfInfo });
|
|
2121
|
+
let fieldFillRuntime;
|
|
2122
|
+
const manager = markRaw(
|
|
2123
|
+
createDataSourceManager({
|
|
2124
|
+
canExecute,
|
|
2125
|
+
initializeOnEnable: false,
|
|
2126
|
+
sources: formConfig.dataSources ?? [],
|
|
2127
|
+
onManualLoad: (key) => fieldFillRuntime?.reapplyDataSource(key),
|
|
2128
|
+
getContext,
|
|
2129
|
+
getInstanceId: () => info.key,
|
|
2130
|
+
getForm: () => formState.state,
|
|
2131
|
+
adapters: payload.dataSourceAdapters
|
|
2132
|
+
})
|
|
2133
|
+
);
|
|
2134
|
+
let taskSequence = 0;
|
|
2135
|
+
async function track(execute) {
|
|
2136
|
+
const result = await record.asyncTasks.run(
|
|
2137
|
+
`data-source:${uniqueId}:${++taskSequence}`,
|
|
2138
|
+
async () => {
|
|
2139
|
+
try {
|
|
2140
|
+
return { ok: true, value: await execute() };
|
|
2141
|
+
} catch (error) {
|
|
2142
|
+
return { ok: false, error };
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
);
|
|
2146
|
+
if (!result) throw new Error(`数源实例已释放:${uniqueId}`);
|
|
2147
|
+
if (!result.ok) throw result.error;
|
|
2148
|
+
return result.value;
|
|
2149
|
+
}
|
|
2150
|
+
const exposedManager = markRaw({
|
|
2151
|
+
...manager,
|
|
2152
|
+
query: (...args) => track(() => manager.query(...args)),
|
|
2153
|
+
reload: (...args) => track(() => manager.reload(...args)),
|
|
2154
|
+
reloadAll: () => track(() => manager.reloadAll()),
|
|
2155
|
+
queryOnValueChange: (...args) => track(() => manager.queryOnValueChange(...args)),
|
|
2156
|
+
initialize: () => track(() => manager.initialize())
|
|
2157
|
+
});
|
|
2158
|
+
const protectedTargets = getLegacyFieldFillTargets(formConfig);
|
|
2159
|
+
const targets = /* @__PURE__ */ new Map();
|
|
2160
|
+
for (const { widget } of record.fields.allWidgets()) {
|
|
2161
|
+
const config = widget.props;
|
|
2162
|
+
const fieldKey = config.field;
|
|
2163
|
+
if (!config.subFieldKey && !config.subModelKey && fieldKey) {
|
|
2164
|
+
targets.set(fieldKey, {
|
|
2165
|
+
field: config.isFieldModel ? config.fieldLink || fieldKey : fieldKey,
|
|
2166
|
+
isFieldModel: !!config.isFieldModel
|
|
2167
|
+
});
|
|
2168
|
+
if (config.componentDependency?.configDependency?.assignment?.expression) {
|
|
2169
|
+
protectedTargets.add(fieldKey);
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
if (config.enableAutofill !== false) {
|
|
2173
|
+
for (const rule of config.autofillRules ?? []) {
|
|
2174
|
+
if (!rule.toSubModel && rule.toField) protectedTargets.add(rule.toField);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
fieldFillRuntime = markRaw(
|
|
2179
|
+
createFieldFillRuntime({
|
|
2180
|
+
preserveExistingValues: true,
|
|
2181
|
+
fills: formConfig.fieldFills ?? [],
|
|
2182
|
+
manager,
|
|
2183
|
+
getContext,
|
|
2184
|
+
getForm: () => formState.state,
|
|
2185
|
+
getFormField: (key) => {
|
|
2186
|
+
const target = targets.get(key);
|
|
2187
|
+
return target?.isFieldModel ? formState.state._OPCT?.[target.field] : get(formState.state, key);
|
|
2188
|
+
},
|
|
2189
|
+
hasTargetField: (key) => targets.has(key),
|
|
2190
|
+
canWrite: (key) => canExecute() && targets.has(key) && !isFieldFillTargetProtected(key, protectedTargets, (field) => {
|
|
2191
|
+
const target = targets.get(field);
|
|
2192
|
+
return target?.isFieldModel ? `_OPCT.${target.field}` : target?.field ?? field;
|
|
2193
|
+
}),
|
|
2194
|
+
setField: (key, value) => {
|
|
2195
|
+
if (registry.get(uniqueId) !== record) throw new Error(`字段填充实例已释放:${uniqueId}`);
|
|
2196
|
+
const target = targets.get(key);
|
|
2197
|
+
if (target.isFieldModel) {
|
|
2198
|
+
if (!formState.state._OPCT) formState.setField("_OPCT", { _DICT: {} }, "async");
|
|
2199
|
+
formState.setObjectField(
|
|
2200
|
+
formState.state._OPCT,
|
|
2201
|
+
target.field,
|
|
2202
|
+
value,
|
|
2203
|
+
"async",
|
|
2204
|
+
`_OPCT.${target.field}`
|
|
2205
|
+
);
|
|
2206
|
+
} else {
|
|
2207
|
+
formState.setField(target.field, value, "async");
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
})
|
|
2211
|
+
);
|
|
2212
|
+
let initializationStarted = false;
|
|
2213
|
+
async function initializeOnce() {
|
|
2214
|
+
if (initializationStarted || !canExecute()) return;
|
|
2215
|
+
initializationStarted = true;
|
|
2216
|
+
try {
|
|
2217
|
+
await exposedManager.initialize();
|
|
2218
|
+
} catch (error) {
|
|
2219
|
+
initializationStarted = false;
|
|
2220
|
+
throw error;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
const stopModeWatch = watch(canExecute, (enabled) => {
|
|
2224
|
+
if (enabled) void initializeOnce().catch(() => void 0);
|
|
2225
|
+
}, { flush: "sync" });
|
|
2226
|
+
record.dataSourceManager = exposedManager;
|
|
2227
|
+
dataSourceManagerMap.value = { ...dataSourceManagerMap.value, [uniqueId]: exposedManager };
|
|
2228
|
+
registry.registerDisposable(uniqueId, () => {
|
|
2229
|
+
stopModeWatch();
|
|
2230
|
+
record.dataSourceManager = void 0;
|
|
2231
|
+
fieldFillRuntime?.dispose();
|
|
2232
|
+
manager.dispose();
|
|
2233
|
+
const { [uniqueId]: _2, ...rest } = dataSourceManagerMap.value;
|
|
2234
|
+
dataSourceManagerMap.value = rest;
|
|
2235
|
+
});
|
|
2236
|
+
await initializeOnce();
|
|
2237
|
+
}
|
|
2238
|
+
return { dataSourceManagerMap, bindDataSources };
|
|
2239
|
+
}
|
|
2108
2240
|
function createRuntimeAnnotationBinding(runtimeRegistry, basicInfoList, props, payload, updateRenderModeType) {
|
|
2109
2241
|
const normalizeAnnotationLocation = (uniqueId, path, sheetId) => {
|
|
2110
2242
|
const record = runtimeRegistry.require(uniqueId);
|
|
@@ -2209,6 +2341,10 @@ function useRenderPageFactory(props, payload) {
|
|
|
2209
2341
|
const finisher = ref(0);
|
|
2210
2342
|
const runtimeRegistry = new RuntimeInstanceRegistry();
|
|
2211
2343
|
provide(NCB_PROVIDE.RUNTIME_INSTANCE_REGISTRY, runtimeRegistry);
|
|
2344
|
+
const { dataSourceManagerMap, bindDataSources } = createRuntimeDataSourceBinding(
|
|
2345
|
+
runtimeRegistry,
|
|
2346
|
+
payload
|
|
2347
|
+
);
|
|
2212
2348
|
const basicInfoList = ref([]);
|
|
2213
2349
|
const selfInfoList = ref([]);
|
|
2214
2350
|
const { getConsumeData } = useMaterialBalance();
|
|
@@ -2254,6 +2390,7 @@ function useRenderPageFactory(props, payload) {
|
|
|
2254
2390
|
install: async (prepared, isCurrent) => {
|
|
2255
2391
|
clear();
|
|
2256
2392
|
const installed = [];
|
|
2393
|
+
const dataSourceBindings = [];
|
|
2257
2394
|
const installedSelfInfos = /* @__PURE__ */ new Set();
|
|
2258
2395
|
try {
|
|
2259
2396
|
for (const res of prepared) {
|
|
@@ -2282,14 +2419,18 @@ function useRenderPageFactory(props, payload) {
|
|
|
2282
2419
|
basicInfoList.value.push(res.basicInfo);
|
|
2283
2420
|
selfInfoList.value.push(res.selfInfo);
|
|
2284
2421
|
installedSelfInfos.add(selfInfoList.value[selfInfoList.value.length - 1]);
|
|
2285
|
-
|
|
2422
|
+
const reactiveInfo = reactive(res.basicInfo);
|
|
2423
|
+
record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactiveInfo));
|
|
2286
2424
|
bindRuntimeValidation(uniqueId);
|
|
2287
2425
|
bindFormValidationSync(uniqueId);
|
|
2288
2426
|
record.fieldInitializer = markRaw(
|
|
2289
2427
|
new RuntimeFieldInitializer(record, res.basicInfo, res.selfInfo)
|
|
2290
2428
|
);
|
|
2291
2429
|
bindRuntimeBusinessServices(runtimeRegistry, record, res.selfInfo.dataStatus);
|
|
2430
|
+
dataSourceBindings.push(bindDataSources(record, reactiveInfo, res.selfInfo));
|
|
2292
2431
|
}
|
|
2432
|
+
await Promise.all(dataSourceBindings);
|
|
2433
|
+
if (!isCurrent()) return;
|
|
2293
2434
|
await Promise.all(installed.map(prepareInitialView));
|
|
2294
2435
|
if (!isCurrent()) return;
|
|
2295
2436
|
const selfId = Array.isArray(props.selfId) ? props.selfId[0] : props.selfId;
|
|
@@ -2356,6 +2497,7 @@ function useRenderPageFactory(props, payload) {
|
|
|
2356
2497
|
clear();
|
|
2357
2498
|
});
|
|
2358
2499
|
return {
|
|
2500
|
+
dataSourceManagerMap,
|
|
2359
2501
|
counter,
|
|
2360
2502
|
finisher,
|
|
2361
2503
|
loading,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock } from "vue";
|
|
2
|
-
import { h as useModelFields, D as Diagonal } from "./index-
|
|
3
|
-
import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { h as useModelFields, D as Diagonal } from "./index-oOLbaFI8.js";
|
|
3
|
+
import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
|
+
import "@gct-paas/form-base";
|
|
6
7
|
import "ant-design-vue";
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
__name: "diagonal-design",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, nextTick, toRef, provide, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { ai as CellWidgetViewState, F as FIELD_TYPE, b8 as RenderModeEnum, Y as FormTypeEnum, bE as BpmnNodeTypeEnum, cr as getFieldPlaceholder, bU as MobileFillTypeEnum, C as ComponentTypeEnum, $ as PlatformEnum, cs as isReferenceOptionActive, E as api, bu as uuid2, c2 as calcUtils, bj as findRuntimeTableRow, c4 as ensureTableRowKeys, b$ as bindRuntimeTableColumns, bi as getRowId, ct as FRONT_ROW_KEY, bw as isAttachFieldActive, cu as filterRulesByTrigger, cv as isEmptyValue$1, c3 as ensureFrontRowKey, b0 as getParseRuleInfo, aF as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bn as FormulaRuleFieldKeyEnum, f as SubTableType, b1 as getParseRuleValue, cw as buildError, H as CreateType, bl as findRuntimeParentRow, aI as Dependency_ENUM, aH as ASSIGNMENTSTRATEGY_ENUM, bJ as commonUtils, aM as DeviceLink, a8 as _export_sfc, cd as getRenderedRuntimeTableCell, y as CellType, cm as relocateDeletedRowsToEnd, cx as resetTableRowIdentity, J as useModal, cy as q, cz as QUICK_FILL_ALLOWED_FIELDS, cA as groupFixedTableRows, cB as processQuickFillRows, cC as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { ai as CellWidgetViewState, F as FIELD_TYPE, b8 as RenderModeEnum, Y as FormTypeEnum, bE as BpmnNodeTypeEnum, cr as getFieldPlaceholder, bU as MobileFillTypeEnum, C as ComponentTypeEnum, $ as PlatformEnum, cs as isReferenceOptionActive, E as api, bu as uuid2, c2 as calcUtils, bj as findRuntimeTableRow, c4 as ensureTableRowKeys, b$ as bindRuntimeTableColumns, bi as getRowId, ct as FRONT_ROW_KEY, bw as isAttachFieldActive, cu as filterRulesByTrigger, cv as isEmptyValue$1, c3 as ensureFrontRowKey, b0 as getParseRuleInfo, aF as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bn as FormulaRuleFieldKeyEnum, f as SubTableType, b1 as getParseRuleValue, cw as buildError, H as CreateType, bl as findRuntimeParentRow, aI as Dependency_ENUM, aH as ASSIGNMENTSTRATEGY_ENUM, bJ as commonUtils, aM as DeviceLink, a8 as _export_sfc, cd as getRenderedRuntimeTableCell, y as CellType, cm as relocateDeletedRowsToEnd, cx as resetTableRowIdentity, J as useModal, cy as q, cz as QUICK_FILL_ALLOWED_FIELDS, cA as groupFixedTableRows, cB as processQuickFillRows, cC as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
3
|
import { cloneDeep, isEmpty, has, pickBy, isNil, mergeWith, omit, last, pick, merge } from "lodash-es";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { a as useNamespace, I as Icon } from "./AntdIcon-DCIaV352.js";
|
|
6
|
+
import "@gct-paas/form-base";
|
|
6
7
|
import { Modal, message } from "ant-design-vue";
|
|
7
|
-
import { u as useFormModel } from "./mb-render-
|
|
8
|
+
import { u as useFormModel } from "./mb-render-BRejJNP-.js";
|
|
8
9
|
var MaterialConsumptionPatternEnum = /* @__PURE__ */ ((MaterialConsumptionPatternEnum2) => {
|
|
9
10
|
MaterialConsumptionPatternEnum2["RECORD"] = "record";
|
|
10
11
|
MaterialConsumptionPatternEnum2["BOM"] = "bom";
|
|
@@ -202,7 +203,7 @@ class RuntimeDependencyService {
|
|
|
202
203
|
await Promise.allSettled(jobs);
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
|
-
function resolveRuntimeFieldProps(record, props, widgetId, row, parentRow) {
|
|
206
|
+
function resolveRuntimeFieldProps(record, props, widgetId, row, parentRow, formChangeStatus = false) {
|
|
206
207
|
const result = { ...props };
|
|
207
208
|
const { context } = record;
|
|
208
209
|
const tableField = props.subFieldKey;
|
|
@@ -211,7 +212,11 @@ function resolveRuntimeFieldProps(record, props, widgetId, row, parentRow) {
|
|
|
211
212
|
const core = Object.values(context.services.subTableCoreFactory?.coreMap ?? {}).find(
|
|
212
213
|
(item) => item.subFieldKey === tableField
|
|
213
214
|
);
|
|
214
|
-
const status = core?.calcFieldStatus({
|
|
215
|
+
const status = core?.calcFieldStatus({
|
|
216
|
+
rowData: businessRow,
|
|
217
|
+
field: props.field,
|
|
218
|
+
formChangeStatus
|
|
219
|
+
});
|
|
215
220
|
if (status?.disabled != null) result.fieldDisabled = status.disabled;
|
|
216
221
|
if (status?.readonly != null) {
|
|
217
222
|
result.field_readonly = status.readonly;
|
|
@@ -221,7 +226,7 @@ function resolveRuntimeFieldProps(record, props, widgetId, row, parentRow) {
|
|
|
221
226
|
const config = context.businessIndex.fixedTables.find(
|
|
222
227
|
(table) => table.field === tableField
|
|
223
228
|
)?.bizTableConfig;
|
|
224
|
-
if (config?.dataLockControlField) {
|
|
229
|
+
if (!formChangeStatus && config?.dataLockControlField) {
|
|
225
230
|
if (props.field === config.dataLockControlField) {
|
|
226
231
|
if (isPersistedSignatureLockActive(config, businessRow)) {
|
|
227
232
|
result.field_readonly = true;
|
|
@@ -229,7 +234,7 @@ function resolveRuntimeFieldProps(record, props, widgetId, row, parentRow) {
|
|
|
229
234
|
}
|
|
230
235
|
} else if (isSignatureLockActive(config, businessRow)) result.fieldDisabled = true;
|
|
231
236
|
}
|
|
232
|
-
} else if (!tableField && !props.subModelKey) {
|
|
237
|
+
} else if (!formChangeStatus && !tableField && !props.subModelKey) {
|
|
233
238
|
result.fieldDisabled ||= context.businessIndex.fixedTables.some(
|
|
234
239
|
(table) => table.bizTableConfig?.mainFieldBindings?.includes(props.field) && (record.formState.state[table.field] ?? []).some(
|
|
235
240
|
(item) => isSignatureLockActive(table.bizTableConfig, item)
|
|
@@ -365,6 +370,8 @@ function useRuntimeInstanceServices(uniqueIdSource) {
|
|
|
365
370
|
instance,
|
|
366
371
|
/** 控制器负责 Sheet 切换、编辑器收口和提交;尚未挂载时为空。 */
|
|
367
372
|
controller: computed(() => instance.value?.controller),
|
|
373
|
+
/** 全部 Sheet 共享的数源管理器,随实例注册与销毁。 */
|
|
374
|
+
dataSourceManager: computed(() => instance.value?.dataSourceManager),
|
|
368
375
|
/** 表单级配置独立于 Sheet 的 paper;实例未注册时提供空配置。 */
|
|
369
376
|
formConfig: computed(() => instance.value?.context.formConfig ?? {}),
|
|
370
377
|
/** 实例切换时重新取对应 Store;读取数据使用 .value.state,写入使用 Store 方法。 */
|
|
@@ -450,7 +457,14 @@ function useWidgetStaticAttrs(widget) {
|
|
|
450
457
|
const targetFieldId = getRuntimeDataFieldId(widget.props);
|
|
451
458
|
const fieldState = computed(
|
|
452
459
|
() => resolveRuntimeFieldState(
|
|
453
|
-
resolveRuntimeFieldProps(
|
|
460
|
+
resolveRuntimeFieldProps(
|
|
461
|
+
instance.value,
|
|
462
|
+
widget.props,
|
|
463
|
+
widget.id,
|
|
464
|
+
void 0,
|
|
465
|
+
void 0,
|
|
466
|
+
dataRelationShip?.formChangeStatus
|
|
467
|
+
),
|
|
454
468
|
dataRelationShip
|
|
455
469
|
)
|
|
456
470
|
);
|
|
@@ -896,6 +910,8 @@ const LEGACY_RUNTIME_FORM_CONFIG_KEYS = [
|
|
|
896
910
|
"unitConversionRules",
|
|
897
911
|
"inspectionDecisionRule",
|
|
898
912
|
"customDataSource",
|
|
913
|
+
"dataSources",
|
|
914
|
+
"fieldFills",
|
|
899
915
|
"objectInitialValues",
|
|
900
916
|
"javascript",
|
|
901
917
|
"checkSignatureConfig",
|
|
@@ -3545,10 +3561,7 @@ class RuntimeInstanceEventBus {
|
|
|
3545
3561
|
class RuntimeInstanceRegistry {
|
|
3546
3562
|
/** 当前渲染入口的加载状态,由工厂更新;PreviewContainer 直接读取,无需宿主额外传参。 */
|
|
3547
3563
|
loadState = shallowReactive({ loading: false, error: void 0 });
|
|
3548
|
-
/**
|
|
3549
|
-
* 顶层对象使用浅响应式:实例新增、删除需要驱动 Vue 更新;record 内的服务类
|
|
3550
|
-
* 不需要被 Vue 深度代理,各自内部负责自己的响应式状态和生命周期
|
|
3551
|
-
*/
|
|
3564
|
+
/** 顶层容器和记录都只做浅响应式;服务类仍保持原始引用。 */
|
|
3552
3565
|
records = shallowReactive({});
|
|
3553
3566
|
/**
|
|
3554
3567
|
* 统一托管订阅、watch 和编译结果的取消函数
|
|
@@ -3590,8 +3603,9 @@ class RuntimeInstanceRegistry {
|
|
|
3590
3603
|
events,
|
|
3591
3604
|
validation
|
|
3592
3605
|
};
|
|
3593
|
-
|
|
3594
|
-
|
|
3606
|
+
const reactiveRecord = shallowReactive(record);
|
|
3607
|
+
this.records[context.uniqueId] = reactiveRecord;
|
|
3608
|
+
return reactiveRecord;
|
|
3595
3609
|
}
|
|
3596
3610
|
/**
|
|
3597
3611
|
* 在页面回调准备完成后挂载实例控制器
|
|
@@ -6520,9 +6534,9 @@ class SubTableCore {
|
|
|
6520
6534
|
const result = {};
|
|
6521
6535
|
const config = this.bizTableConfig;
|
|
6522
6536
|
if (config?.dataLockControlField && params.field === config.dataLockControlField) {
|
|
6523
|
-
result.readonly = isPersistedSignatureLockActive(config, params.rowData);
|
|
6537
|
+
result.readonly = !params.formChangeStatus && isPersistedSignatureLockActive(config, params.rowData);
|
|
6524
6538
|
} else if (config?.dataLockControlField) {
|
|
6525
|
-
result.disabled = isSignatureLockActive(config, params.rowData);
|
|
6539
|
+
result.disabled = !params.formChangeStatus && isSignatureLockActive(config, params.rowData);
|
|
6526
6540
|
}
|
|
6527
6541
|
return result;
|
|
6528
6542
|
}
|
|
@@ -7283,6 +7297,10 @@ function useNocodeFormWidget(props, emit) {
|
|
|
7283
7297
|
...colIndex !== void 0 ? { colIndex } : {}
|
|
7284
7298
|
});
|
|
7285
7299
|
}
|
|
7300
|
+
if (eventType === "onChange" && dataRelationShip?.renderModeType === RenderModeEnum.FormMode) {
|
|
7301
|
+
const keys = widget.props?.valueChangeDataSourceKeys;
|
|
7302
|
+
if (keys?.length) await instance.value?.dataSourceManager?.queryOnValueChange(keys);
|
|
7303
|
+
}
|
|
7286
7304
|
if (eventType === "onBlur" && dataRelationShip?.renderModeType === RenderModeEnum.FormMode && !instance.value?.controller?.preparing) {
|
|
7287
7305
|
instance.value?.validation.requestLive("blur", true);
|
|
7288
7306
|
}
|
|
@@ -7365,6 +7383,7 @@ function useDependency(widget, props) {
|
|
|
7365
7383
|
const { isFieldModel, subFieldKey } = widget.props;
|
|
7366
7384
|
const fieldWidget = ref(cloneDeep(props.widget));
|
|
7367
7385
|
const { instance, formStateStore } = useRuntimeInstanceServices();
|
|
7386
|
+
const basicInfo = inject(NCB_PROVIDE.DATA_RELATION_SHIP);
|
|
7368
7387
|
const targetFieldId = getRuntimeDataFieldId(widget.props);
|
|
7369
7388
|
const configDependency = widget.props.componentDependency?.configDependency || {};
|
|
7370
7389
|
const controlledFormData = computed(() => {
|
|
@@ -7383,7 +7402,8 @@ function useDependency(widget, props) {
|
|
|
7383
7402
|
props.widget.props,
|
|
7384
7403
|
props.widget.id,
|
|
7385
7404
|
row,
|
|
7386
|
-
parent
|
|
7405
|
+
parent,
|
|
7406
|
+
basicInfo?.formChangeStatus
|
|
7387
7407
|
);
|
|
7388
7408
|
},
|
|
7389
7409
|
(displayProps) => {
|
|
@@ -3651,11 +3651,11 @@ const fields$1 = [
|
|
|
3651
3651
|
const TABLE_TYPE$1 = "pretreatment-list";
|
|
3652
3652
|
const profile$2 = {
|
|
3653
3653
|
type: TABLE_TYPE$1,
|
|
3654
|
-
label: "
|
|
3654
|
+
label: "产前表",
|
|
3655
3655
|
labelKey: "sys.onlineForm.subTableType.PRETREATMENT_LIST",
|
|
3656
3656
|
category: "business",
|
|
3657
3657
|
ribbonAction: "pretreatment-list",
|
|
3658
|
-
ribbonGroup: "
|
|
3658
|
+
ribbonGroup: "产前",
|
|
3659
3659
|
icon: "pretreatment-list",
|
|
3660
3660
|
enabled: true,
|
|
3661
3661
|
seedTableKeyOnCreate: true,
|
|
@@ -67081,27 +67081,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
67081
67081
|
case "revo-grid":
|
|
67082
67082
|
return import(
|
|
67083
67083
|
/* webpackMode: "lazy" */
|
|
67084
|
-
"./revo-grid.entry-
|
|
67084
|
+
"./revo-grid.entry-BqbaKcyR.js"
|
|
67085
67085
|
).then(processMod, consoleError);
|
|
67086
67086
|
case "revogr-filter-panel":
|
|
67087
67087
|
return import(
|
|
67088
67088
|
/* webpackMode: "lazy" */
|
|
67089
|
-
"./revogr-filter-panel.entry-
|
|
67089
|
+
"./revogr-filter-panel.entry-C-1WXBDy.js"
|
|
67090
67090
|
).then(processMod, consoleError);
|
|
67091
67091
|
case "revogr-attribution_7":
|
|
67092
67092
|
return import(
|
|
67093
67093
|
/* webpackMode: "lazy" */
|
|
67094
|
-
"./revogr-attribution_7.entry-
|
|
67094
|
+
"./revogr-attribution_7.entry-jmN78nkb.js"
|
|
67095
67095
|
).then(processMod, consoleError);
|
|
67096
67096
|
case "revogr-clipboard_3":
|
|
67097
67097
|
return import(
|
|
67098
67098
|
/* webpackMode: "lazy" */
|
|
67099
|
-
"./revogr-clipboard_3.entry-
|
|
67099
|
+
"./revogr-clipboard_3.entry-eK74i7_f.js"
|
|
67100
67100
|
).then(processMod, consoleError);
|
|
67101
67101
|
case "revogr-data_4":
|
|
67102
67102
|
return import(
|
|
67103
67103
|
/* webpackMode: "lazy" */
|
|
67104
|
-
"./revogr-data_4.entry-
|
|
67104
|
+
"./revogr-data_4.entry-D2lAUBEM.js"
|
|
67105
67105
|
).then(processMod, consoleError);
|
|
67106
67106
|
}
|
|
67107
67107
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { eb as EDIT_INPUT_WR, ec as keyValues, e3 as codesLetter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { eb as EDIT_INPUT_WR, ec as keyValues, e3 as codesLetter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
2
2
|
function isClear(code) {
|
|
3
3
|
return codesLetter.BACKSPACE === code || codesLetter.DELETE === code;
|
|
4
4
|
}
|
package/dist/excel.css
CHANGED
|
@@ -23885,18 +23885,18 @@ svg[data-v-9a7c8184] {
|
|
|
23885
23885
|
cursor: pointer;
|
|
23886
23886
|
color: #797a7d;
|
|
23887
23887
|
}
|
|
23888
|
-
.panel-data-init-config-wrapper[data-v-
|
|
23888
|
+
.panel-data-init-config-wrapper[data-v-80593150] {
|
|
23889
23889
|
height: 100%;
|
|
23890
23890
|
background-color: #fff;
|
|
23891
23891
|
}
|
|
23892
|
-
.panel-data-init-config-wrapper .ant-collapse[data-v-
|
|
23892
|
+
.panel-data-init-config-wrapper .ant-collapse[data-v-80593150] {
|
|
23893
23893
|
background-color: #fff;
|
|
23894
23894
|
}
|
|
23895
|
-
.panel-data-init-config-wrapper .param-area[data-v-
|
|
23895
|
+
.panel-data-init-config-wrapper .param-area[data-v-80593150] {
|
|
23896
23896
|
position: relative;
|
|
23897
23897
|
margin-top: 16px;
|
|
23898
23898
|
}
|
|
23899
|
-
.panel-data-init-config-wrapper .param-area .param-item[data-v-
|
|
23899
|
+
.panel-data-init-config-wrapper .param-area .param-item[data-v-80593150] {
|
|
23900
23900
|
position: relative;
|
|
23901
23901
|
margin-bottom: 8px;
|
|
23902
23902
|
padding: 8px;
|
|
@@ -23904,23 +23904,23 @@ svg[data-v-9a7c8184] {
|
|
|
23904
23904
|
border-radius: 4px;
|
|
23905
23905
|
background: #fcfcfc;
|
|
23906
23906
|
}
|
|
23907
|
-
.panel-data-init-config-wrapper .param-area .param-item[data-v-
|
|
23907
|
+
.panel-data-init-config-wrapper .param-area .param-item[data-v-80593150]:last-of-type {
|
|
23908
23908
|
margin-bottom: 16px;
|
|
23909
23909
|
}
|
|
23910
|
-
.panel-data-init-config-wrapper .object-init-area[data-v-
|
|
23910
|
+
.panel-data-init-config-wrapper .object-init-area[data-v-80593150] {
|
|
23911
23911
|
margin-top: 16px;
|
|
23912
23912
|
}
|
|
23913
|
-
.panel-data-init-config-wrapper .tmpl-config-area[data-v-
|
|
23913
|
+
.panel-data-init-config-wrapper .tmpl-config-area[data-v-80593150] {
|
|
23914
23914
|
margin-top: 16px;
|
|
23915
23915
|
}
|
|
23916
|
-
.panel-data-init-config-wrapper .data-source-area[data-v-
|
|
23916
|
+
.panel-data-init-config-wrapper .data-source-area[data-v-80593150] {
|
|
23917
23917
|
position: relative;
|
|
23918
23918
|
margin-top: 16px;
|
|
23919
23919
|
}
|
|
23920
|
-
.panel-data-init-config-wrapper .data-source-area[data-v-
|
|
23920
|
+
.panel-data-init-config-wrapper .data-source-area[data-v-80593150] .data-source-item.is-last .data-source-field-map-wrapper.is-last .line {
|
|
23921
23921
|
display: none;
|
|
23922
23922
|
}
|
|
23923
|
-
.panel-data-init-config-wrapper .data-source-area[data-v-
|
|
23923
|
+
.panel-data-init-config-wrapper .data-source-area[data-v-80593150] .data-source-item.is-last .data-source-title.is-child.is-last .line::after {
|
|
23924
23924
|
display: none;
|
|
23925
23925
|
}
|
|
23926
23926
|
.material-rdo-select[data-v-a496f27a] {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
-
import { c as commonjsRequire } from "./index-
|
|
1
|
+
import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
2
|
+
import { c as commonjsRequire } from "./index-oOLbaFI8.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, normalizeClass, withCtx, normalizeStyle } from "vue";
|
|
2
|
-
import { A as AlignEditor } from "./align-editor-
|
|
2
|
+
import { A as AlignEditor } from "./align-editor-jp0NsOnT.js";
|
|
3
3
|
import { pick } from "lodash-es";
|
|
4
|
-
import { z as _sfc_main$1, C as ColorPicker } from "./index-
|
|
5
|
-
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
4
|
+
import { z as _sfc_main$1, C as ColorPicker } from "./index-oOLbaFI8.js";
|
|
5
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
6
6
|
const _hoisted_1 = { class: "ks-row-middle mb-6px" };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "font-editor",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, normalizeStyle } from "vue";
|
|
2
|
-
import { u as useWebUpload } from "./index-
|
|
2
|
+
import { u as useWebUpload } from "./index-uVpJOLb3.js";
|
|
3
3
|
import "ant-design-vue";
|
|
4
|
-
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
4
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { has, get, pick } from "lodash-es";
|
|
2
|
-
import { C as ComponentTypeEnum, ay as DecimalDisplayMode, ax as RangeCompareOp, aw as RangeValidateMode, a$ as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum, ay as DecimalDisplayMode, ax as RangeCompareOp, aw as RangeValidateMode, a$ as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
|
+
import "@gct-paas/form-base";
|
|
5
6
|
import "ant-design-vue";
|
|
6
|
-
import { B as BaseComponent } from "./BaseComponent-
|
|
7
|
+
import { B as BaseComponent } from "./BaseComponent-BTolXjlE.js";
|
|
7
8
|
class InputNumber extends BaseComponent {
|
|
8
9
|
component = ComponentTypeEnum.Inputnumber;
|
|
9
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
|
+
import "@gct-paas/form-base";
|
|
5
6
|
import "ant-design-vue";
|
|
6
|
-
import { B as BaseComponent } from "./BaseComponent-
|
|
7
|
+
import { B as BaseComponent } from "./BaseComponent-BTolXjlE.js";
|
|
7
8
|
class UploadFile extends BaseComponent {
|
|
8
9
|
component = ComponentTypeEnum.UploadFile;
|
|
9
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { pick } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
|
+
import "@gct-paas/form-base";
|
|
5
6
|
import "ant-design-vue";
|
|
6
7
|
class Image {
|
|
7
8
|
component = ComponentTypeEnum.Image;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { C as ComponentTypeEnum, F as FIELD_TYPE, ax as RangeCompareOp, aw as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum, F as FIELD_TYPE, ax as RangeCompareOp, aw as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
|
+
import "@gct-paas/form-base";
|
|
5
6
|
import "ant-design-vue";
|
|
6
|
-
import { B as BaseComponent } from "./BaseComponent-
|
|
7
|
+
import { B as BaseComponent } from "./BaseComponent-BTolXjlE.js";
|
|
7
8
|
class DateTimepicker extends BaseComponent {
|
|
8
9
|
component = ComponentTypeEnum.DateTimepicker;
|
|
9
10
|
wrapperCmpConfig({ data }) {
|