@gct-paas/excel 0.1.37-beta.2 → 0.1.39-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.
Files changed (87) hide show
  1. package/dist/{BaseComponent-DN5v-Q_h.js → BaseComponent-BO75HbkD.js} +2 -3
  2. package/dist/{barcode-design-B7AoHzux.js → barcode-design-CKbMreUi.js} +1 -2
  3. package/dist/base/index.es.js +7 -147
  4. package/dist/{diagonal-design-CeYHDi2e.js → diagonal-design-DEz3_fE8.js} +1 -2
  5. package/dist/{dynamic-table-action-zR6VwiFi.js → dynamic-table-action-DFnvJWw-.js} +6 -13
  6. package/dist/excel.css +142 -127
  7. package/dist/{exceljs.min-DYYU4xe-.js → exceljs.min-CXjktZ33.js} +1 -1
  8. package/dist/{font-editor-hpUeXFv_.js → font-editor-DAcmrW2A.js} +1 -1
  9. package/dist/{index-DKAk8Fzf.js → index-4-w7U148.js} +1 -2
  10. package/dist/{index-BWvyGnI_.js → index-B0o6GTve.js} +1 -2
  11. package/dist/{index-DP1WApp-.js → index-BA3994iB.js} +0 -1
  12. package/dist/{index-Crs2UUiJ.js → index-BH4YqNzS.js} +1 -2
  13. package/dist/{index-557u9lSs.js → index-BJj0R1JE.js} +0 -1
  14. package/dist/{index-DULgJ5M_.js → index-BNjowwSy.js} +0 -1
  15. package/dist/{index-tRVTXeIS.js → index-BRKs8S7h.js} +1 -2
  16. package/dist/{index-BEyidTCC.js → index-BRV9V8ld.js} +0 -1
  17. package/dist/{index-HNE-yLqK.js → index-BVCrUywZ.js} +1 -2
  18. package/dist/{index-B8tTsX2y.js → index-BlFNgjr-.js} +1 -2
  19. package/dist/{index-CLyowrpG.js → index-BlZQjpdp.js} +1 -2
  20. package/dist/{index-BboAW45l.js → index-BvYfYS4D.js} +2 -3
  21. package/dist/{index-CA25B2UR.js → index-C8AH07MC.js} +1 -2
  22. package/dist/{index-BaC0Py3z.js → index-CCNBotX0.js} +257 -230
  23. package/dist/{index-D3t6B-9k.js → index-CNBwsBrN.js} +0 -1
  24. package/dist/{index-D9pfqRAP.js → index-CQ9v7Q0g.js} +3 -4
  25. package/dist/{index-BezxcVwZ.js → index-CeoXayAy.js} +1 -2
  26. package/dist/{index-CUhR3L97.js → index-D06X_Sz7.js} +2 -3
  27. package/dist/{index-3n5gOxbD.js → index-D1m06PsY.js} +1 -2
  28. package/dist/{index-B9q2iVJw.js → index-D72ZxU1B.js} +2 -3
  29. package/dist/{index-D1C_tY7a.js → index-D9SThznm.js} +0 -1
  30. package/dist/{index-BY7_uLSS.js → index-DALo6h-z.js} +0 -1
  31. package/dist/{index-Bfrtgjub.js → index-DRF0yT-Y.js} +1 -2
  32. package/dist/{index-CUhlQ0aK.js → index-DScv6Lhe.js} +2 -3
  33. package/dist/{index-CRj08TWu.js → index-DUgFd0ON.js} +1 -2
  34. package/dist/{index-YuHHwSzv.js → index-DWPgvBzt.js} +0 -1
  35. package/dist/{index-Dfs0gE3N.js → index-Dn7Za3rP.js} +1 -2
  36. package/dist/{index-DX1Nqubf.js → index-H2lP-HBC.js} +1 -2
  37. package/dist/{index-Bxgg0txy.js → index-IAfu2tPO.js} +0 -1
  38. package/dist/{index-BcfmxYW-.js → index-KnPqm-JT.js} +1 -2
  39. package/dist/{index-CZv8lo_f.js → index-kQi_q492.js} +1 -2
  40. package/dist/{index-D6T0GkNc.js → index-qKN7-uGo.js} +1 -2
  41. package/dist/{index-sQI9wXhV.js → index-vOd76hbp.js} +0 -1
  42. package/dist/{index-DPiPri6e.js → index-ywxJkkJ_.js} +1 -2
  43. package/dist/index.es.js +2 -4
  44. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Cxs9ZecX.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CqKkoSRa.js} +0 -1
  45. package/dist/{pagination-design-lgUGQHWo.js → pagination-design-6xxPBIk-.js} +1 -2
  46. package/dist/paper-widget-design-CUk1634i.js +4 -0
  47. package/dist/{print-runtime-instance-MxA8-bHV.js → print-runtime-instance-D8QAHAsd.js} +1 -1
  48. package/dist/{print-snapshot-renderer-D6sRzdVe.js → print-snapshot-renderer-BDrHYena.js} +3 -3
  49. package/dist/{qrcode-design-DCgtf75a.js → qrcode-design-CBDd-S2d.js} +1 -1
  50. package/dist/seal-design-DNrW57Za.js +4 -0
  51. package/dist/shared/index.es.js +1 -1
  52. package/dist/{single-field-drop-rKr_LXW8.js → single-field-drop-1eS6_6ko.js} +1 -1
  53. package/dist/src/index.d.ts +0 -6
  54. package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +0 -3
  55. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +0 -39
  56. package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +0 -21
  57. package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
  58. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +5 -5
  59. package/dist/src/nocode-base/src/types/common/base.d.ts +0 -2
  60. package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
  61. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +0 -124
  62. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +0 -62
  63. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +0 -6
  64. package/dist/src/online-form/src/views/designer/types/index.d.ts +0 -5
  65. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
  66. package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +0 -1
  67. package/dist/{sub-table-factory-DLXJkTHY.js → sub-table-factory-D8KUikPE.js} +1 -1
  68. package/dist/{text-design-Dd5uT-hc.js → text-design-BkvEuU7u.js} +1 -2
  69. package/dist/{timediff-design-DhxYymPd.js → timediff-design-BFf9WtJn.js} +0 -1
  70. package/dist/{trace-like-wrapper-CczUTJwp.js → trace-like-wrapper-SPo5HVCt.js} +1 -2
  71. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BzAhq5rc.js → value-editor.vue_vue_type_style_index_0_lang-BzVvcoTa.js} +1 -2
  72. package/dist/web-render/index.es.js +0 -1
  73. package/dist/{widget-barcode-BrLmLnCd.js → widget-barcode-B_aUPEfd.js} +2 -3
  74. package/dist/{widget-diagonal-CIg1Yn3D.js → widget-diagonal-D32J64HV.js} +2 -3
  75. package/dist/{widget-image-bPGudw8R.js → widget-image-BOOWwiSe.js} +3 -3
  76. package/dist/{widget-line-Dw1mkN0H.js → widget-line-xVHcCE1_.js} +1 -2
  77. package/dist/{widget-pagination-C2ylpEkR.js → widget-pagination-B0Bq_gL5.js} +2 -3
  78. package/dist/{widget-power-Ceni1m5s.js → widget-power-TNCB2u1G.js} +2 -3
  79. package/dist/{widget-qrcode-dHuN8ZTP.js → widget-qrcode-gVSwYuKp.js} +2 -3
  80. package/dist/{widget-rangelimit-DkZwe6ix.js → widget-rangelimit-BO7Z_5N9.js} +2 -2
  81. package/dist/{widget-serialnumber-Dz2_gK_C.js → widget-serialnumber-BX83djNf.js} +1 -1
  82. package/dist/{widget-text-BIMT_dmX.js → widget-text-CIqov_wj.js} +3 -3
  83. package/dist/{widget-timediff-LoUQBpX7.js → widget-timediff-kFxxm2hM.js} +1 -2
  84. package/package.json +2 -2
  85. package/dist/paper-widget-design-B6GKQFw2.js +0 -4
  86. package/dist/seal-design-CJO9Kmm0.js +0 -4
  87. package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +0 -45
@@ -1,4 +1,4 @@
1
- import { n as normalizeFieldWidth } from "./dynamic-table-action-zR6VwiFi.js";
1
+ import { n as normalizeFieldWidth } from "./dynamic-table-action-DFnvJWw-.js";
2
2
  import { get, pick } from "lodash-es";
3
3
  import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
4
4
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
@@ -45,8 +45,7 @@ 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),
49
- valueChangeDataSourceKeys: get(data.info, "valueChangeDataSourceKeys", void 0)
48
+ componentDependency: get(data.info, "componentDependency", void 0)
50
49
  };
51
50
  }
52
51
  getCommonStyle(data) {
@@ -1,9 +1,8 @@
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-BaC0Py3z.js";
3
+ import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-CCNBotX0.js";
4
4
  import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
5
5
  import "dayjs";
6
- import "@gct-paas/form-base";
7
6
  import "ant-design-vue";
8
7
  const _hoisted_1 = { class: "wrapper" };
9
8
  const _hoisted_2 = {
@@ -1,13 +1,12 @@
1
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-BDkKB_4N.js";
2
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-BDkKB_4N.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-zR6VwiFi.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-zR6VwiFi.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";
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-DFnvJWw-.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-DFnvJWw-.js";
5
+ import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted, markRaw, reactive, onBeforeUnmount } from "vue";
6
+ import { cloneDeep, defaults, isEmpty, merge } from "lodash-es";
7
7
  import "dayjs";
8
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-DLXJkTHY.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-DLXJkTHY.js";
10
- import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, isFieldFillTargetProtected, buildDataSourceContext } from "@gct-paas/form-base";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-D8KUikPE.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-D8KUikPE.js";
11
10
  import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-jAsNtPqY.js";
12
11
  const InstanceStatusValues = {
13
12
  /** 作废状态 */
@@ -2110,135 +2109,6 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
2110
2109
  prepareInitialView
2111
2110
  };
2112
2111
  }
2113
- function createRuntimeDataSourceBinding(registry, payload) {
2114
- const dataSourceManagerMap = shallowRef({});
2115
- async function bindDataSources(record, info, selfInfo) {
2116
- if (payload.isMockReport || !["instance", "batchInstance"].includes(payload.factoryType)) return;
2117
- const isDetail = () => typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage;
2118
- if (isDetail()) return;
2119
- const { context, formState } = record;
2120
- const { uniqueId, formConfig } = context;
2121
- const canExecute = () => registry.get(uniqueId) === record && info.renderModeType === RenderModeEnum.FormMode && !isDetail();
2122
- const getContext = () => buildDataSourceContext({ parameters: info.paramsConfig ?? {}, instance: selfInfo });
2123
- let fieldFillRuntime;
2124
- const manager = markRaw(
2125
- createDataSourceManager({
2126
- canExecute,
2127
- initializeOnEnable: false,
2128
- sources: formConfig.dataSources ?? [],
2129
- onManualLoad: (key) => fieldFillRuntime?.reapplyDataSource(key),
2130
- getContext,
2131
- getInstanceId: () => info.key,
2132
- getForm: () => formState.state,
2133
- adapters: payload.dataSourceAdapters
2134
- })
2135
- );
2136
- let taskSequence = 0;
2137
- async function track(execute) {
2138
- const result = await record.asyncTasks.run(
2139
- `data-source:${uniqueId}:${++taskSequence}`,
2140
- async () => {
2141
- try {
2142
- return { ok: true, value: await execute() };
2143
- } catch (error) {
2144
- return { ok: false, error };
2145
- }
2146
- }
2147
- );
2148
- if (!result) throw new Error(`数源实例已释放:${uniqueId}`);
2149
- if (!result.ok) throw result.error;
2150
- return result.value;
2151
- }
2152
- const exposedManager = markRaw({
2153
- ...manager,
2154
- query: (...args) => track(() => manager.query(...args)),
2155
- reload: (...args) => track(() => manager.reload(...args)),
2156
- reloadAll: () => track(() => manager.reloadAll()),
2157
- queryOnValueChange: (...args) => track(() => manager.queryOnValueChange(...args)),
2158
- initialize: () => track(() => manager.initialize())
2159
- });
2160
- const protectedTargets = getLegacyFieldFillTargets(formConfig);
2161
- const targets = /* @__PURE__ */ new Map();
2162
- for (const { widget } of record.fields.allWidgets()) {
2163
- const config = widget.props;
2164
- const fieldKey = config.field;
2165
- if (!config.subFieldKey && !config.subModelKey && fieldKey) {
2166
- targets.set(fieldKey, {
2167
- field: config.isFieldModel ? config.fieldLink || fieldKey : fieldKey,
2168
- isFieldModel: !!config.isFieldModel
2169
- });
2170
- if (config.componentDependency?.configDependency?.assignment?.expression) {
2171
- protectedTargets.add(fieldKey);
2172
- }
2173
- }
2174
- if (config.enableAutofill !== false) {
2175
- for (const rule of config.autofillRules ?? []) {
2176
- if (!rule.toSubModel && rule.toField) protectedTargets.add(rule.toField);
2177
- }
2178
- }
2179
- }
2180
- fieldFillRuntime = markRaw(
2181
- createFieldFillRuntime({
2182
- preserveExistingValues: true,
2183
- fills: formConfig.fieldFills ?? [],
2184
- manager,
2185
- getContext,
2186
- getForm: () => formState.state,
2187
- getFormField: (key) => {
2188
- const target = targets.get(key);
2189
- return target?.isFieldModel ? formState.state._OPCT?.[target.field] : get(formState.state, key);
2190
- },
2191
- hasTargetField: (key) => targets.has(key),
2192
- canWrite: (key) => canExecute() && targets.has(key) && !isFieldFillTargetProtected(key, protectedTargets, (field) => {
2193
- const target = targets.get(field);
2194
- return target?.isFieldModel ? `_OPCT.${target.field}` : target?.field ?? field;
2195
- }),
2196
- setField: (key, value) => {
2197
- if (registry.get(uniqueId) !== record) throw new Error(`字段填充实例已释放:${uniqueId}`);
2198
- const target = targets.get(key);
2199
- if (target.isFieldModel) {
2200
- if (!formState.state._OPCT) formState.setField("_OPCT", { _DICT: {} }, "async");
2201
- formState.setObjectField(
2202
- formState.state._OPCT,
2203
- target.field,
2204
- value,
2205
- "async",
2206
- `_OPCT.${target.field}`
2207
- );
2208
- } else {
2209
- formState.setField(target.field, value, "async");
2210
- }
2211
- }
2212
- })
2213
- );
2214
- let initializationStarted = false;
2215
- async function initializeOnce() {
2216
- if (initializationStarted || !canExecute()) return;
2217
- initializationStarted = true;
2218
- try {
2219
- await exposedManager.initialize();
2220
- } catch (error) {
2221
- initializationStarted = false;
2222
- throw error;
2223
- }
2224
- }
2225
- const stopModeWatch = watch(canExecute, (enabled) => {
2226
- if (enabled) void initializeOnce().catch(() => void 0);
2227
- }, { flush: "sync" });
2228
- record.dataSourceManager = exposedManager;
2229
- dataSourceManagerMap.value = { ...dataSourceManagerMap.value, [uniqueId]: exposedManager };
2230
- registry.registerDisposable(uniqueId, () => {
2231
- stopModeWatch();
2232
- record.dataSourceManager = void 0;
2233
- fieldFillRuntime?.dispose();
2234
- manager.dispose();
2235
- const { [uniqueId]: _2, ...rest } = dataSourceManagerMap.value;
2236
- dataSourceManagerMap.value = rest;
2237
- });
2238
- await initializeOnce();
2239
- }
2240
- return { dataSourceManagerMap, bindDataSources };
2241
- }
2242
2112
  function createRuntimeAnnotationBinding(runtimeRegistry, basicInfoList, props, payload, updateRenderModeType) {
2243
2113
  const normalizeAnnotationLocation = (uniqueId, path, sheetId) => {
2244
2114
  const record = runtimeRegistry.require(uniqueId);
@@ -2343,10 +2213,6 @@ function useRenderPageFactory(props, payload) {
2343
2213
  const finisher = ref(0);
2344
2214
  const runtimeRegistry = new RuntimeInstanceRegistry();
2345
2215
  provide(NCB_PROVIDE.RUNTIME_INSTANCE_REGISTRY, runtimeRegistry);
2346
- const { dataSourceManagerMap, bindDataSources } = createRuntimeDataSourceBinding(
2347
- runtimeRegistry,
2348
- payload
2349
- );
2350
2216
  const basicInfoList = ref([]);
2351
2217
  const selfInfoList = ref([]);
2352
2218
  const { getConsumeData } = useMaterialBalance();
@@ -2392,7 +2258,6 @@ function useRenderPageFactory(props, payload) {
2392
2258
  install: async (prepared, isCurrent) => {
2393
2259
  clear();
2394
2260
  const installed = [];
2395
- const dataSourceBindings = [];
2396
2261
  const installedSelfInfos = /* @__PURE__ */ new Set();
2397
2262
  try {
2398
2263
  for (const res of prepared) {
@@ -2421,18 +2286,14 @@ function useRenderPageFactory(props, payload) {
2421
2286
  basicInfoList.value.push(res.basicInfo);
2422
2287
  selfInfoList.value.push(res.selfInfo);
2423
2288
  installedSelfInfos.add(selfInfoList.value[selfInfoList.value.length - 1]);
2424
- const reactiveInfo = reactive(res.basicInfo);
2425
- record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactiveInfo));
2289
+ record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactive(res.basicInfo)));
2426
2290
  bindRuntimeValidation(uniqueId);
2427
2291
  bindFormValidationSync(uniqueId);
2428
2292
  record.fieldInitializer = markRaw(
2429
2293
  new RuntimeFieldInitializer(record, res.basicInfo, res.selfInfo)
2430
2294
  );
2431
2295
  bindRuntimeBusinessServices(runtimeRegistry, record, res.selfInfo.dataStatus);
2432
- dataSourceBindings.push(bindDataSources(record, reactiveInfo, res.selfInfo));
2433
2296
  }
2434
- await Promise.all(dataSourceBindings);
2435
- if (!isCurrent()) return;
2436
2297
  await Promise.all(installed.map(prepareInitialView));
2437
2298
  if (!isCurrent()) return;
2438
2299
  const selfId = Array.isArray(props.selfId) ? props.selfId[0] : props.selfId;
@@ -2499,7 +2360,6 @@ function useRenderPageFactory(props, payload) {
2499
2360
  clear();
2500
2361
  });
2501
2362
  return {
2502
- dataSourceManagerMap,
2503
2363
  counter,
2504
2364
  finisher,
2505
2365
  loading,
@@ -1,9 +1,8 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { h as useModelFields, D as Diagonal } from "./index-BaC0Py3z.js";
2
+ import { h as useModelFields, D as Diagonal } from "./index-CCNBotX0.js";
3
3
  import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
6
- import "@gct-paas/form-base";
7
6
  import "ant-design-vue";
8
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
8
  __name: "diagonal-design",
@@ -2,7 +2,6 @@ import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowRea
2
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-BDkKB_4N.js";
3
3
  import { cloneDeep, isEmpty, has, pickBy, isNil, mergeWith, omit, last, pick, merge } from "lodash-es";
4
4
  import dayjs from "dayjs";
5
- import "@gct-paas/form-base";
6
5
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
7
6
  import { Modal, message } from "ant-design-vue";
8
7
  import { u as useFormModel } from "./mb-render-jAsNtPqY.js";
@@ -366,8 +365,6 @@ function useRuntimeInstanceServices(uniqueIdSource) {
366
365
  instance,
367
366
  /** 控制器负责 Sheet 切换、编辑器收口和提交;尚未挂载时为空。 */
368
367
  controller: computed(() => instance.value?.controller),
369
- /** 全部 Sheet 共享的数源管理器,随实例注册与销毁。 */
370
- dataSourceManager: computed(() => instance.value?.dataSourceManager),
371
368
  /** 表单级配置独立于 Sheet 的 paper;实例未注册时提供空配置。 */
372
369
  formConfig: computed(() => instance.value?.context.formConfig ?? {}),
373
370
  /** 实例切换时重新取对应 Store;读取数据使用 .value.state,写入使用 Store 方法。 */
@@ -899,8 +896,6 @@ const LEGACY_RUNTIME_FORM_CONFIG_KEYS = [
899
896
  "unitConversionRules",
900
897
  "inspectionDecisionRule",
901
898
  "customDataSource",
902
- "dataSources",
903
- "fieldFills",
904
899
  "objectInitialValues",
905
900
  "javascript",
906
901
  "checkSignatureConfig",
@@ -3549,7 +3544,10 @@ class RuntimeInstanceEventBus {
3549
3544
  class RuntimeInstanceRegistry {
3550
3545
  /** 当前渲染入口的加载状态,由工厂更新;PreviewContainer 直接读取,无需宿主额外传参。 */
3551
3546
  loadState = shallowReactive({ loading: false, error: void 0 });
3552
- /** 顶层容器和记录都只做浅响应式;服务类仍保持原始引用。 */
3547
+ /**
3548
+ * 顶层对象使用浅响应式:实例新增、删除需要驱动 Vue 更新;record 内的服务类
3549
+ * 不需要被 Vue 深度代理,各自内部负责自己的响应式状态和生命周期
3550
+ */
3553
3551
  records = shallowReactive({});
3554
3552
  /**
3555
3553
  * 统一托管订阅、watch 和编译结果的取消函数
@@ -3591,9 +3589,8 @@ class RuntimeInstanceRegistry {
3591
3589
  events,
3592
3590
  validation
3593
3591
  };
3594
- const reactiveRecord = shallowReactive(record);
3595
- this.records[context.uniqueId] = reactiveRecord;
3596
- return reactiveRecord;
3592
+ this.records[context.uniqueId] = markRaw(record);
3593
+ return record;
3597
3594
  }
3598
3595
  /**
3599
3596
  * 在页面回调准备完成后挂载实例控制器
@@ -7285,10 +7282,6 @@ function useNocodeFormWidget(props, emit) {
7285
7282
  ...colIndex !== void 0 ? { colIndex } : {}
7286
7283
  });
7287
7284
  }
7288
- if (eventType === "onChange" && dataRelationShip?.renderModeType === RenderModeEnum.FormMode) {
7289
- const keys = widget.props?.valueChangeDataSourceKeys;
7290
- if (keys?.length) await instance.value?.dataSourceManager?.queryOnValueChange(keys);
7291
- }
7292
7285
  if (eventType === "onBlur" && dataRelationShip?.renderModeType === RenderModeEnum.FormMode && !instance.value?.controller?.preparing) {
7293
7286
  instance.value?.validation.requestLive("blur", true);
7294
7287
  }