@gct-paas/excel 0.1.37-beta.0 → 0.1.37-beta.2
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-DQaCGLeT.js → BaseComponent-DN5v-Q_h.js} +4 -3
- package/dist/{VueVideoPlayer-C6a9Wt23.js → VueVideoPlayer-C49th9G_.js} +2 -2
- package/dist/{align-editor-BIgxBb3c.js → align-editor-CpscpDxA.js} +1 -1
- package/dist/{barcode-design-6urZiVEU.js → barcode-design-B7AoHzux.js} +3 -2
- package/dist/base/index.es.js +150 -10
- package/dist/{diagonal-design-Dmvh3iV7.js → diagonal-design-CeYHDi2e.js} +3 -2
- package/dist/{dynamic-table-action-CIQHe0dS.js → dynamic-table-action-zR6VwiFi.js} +32 -15
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CfpxTsKR.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js} +13 -6
- package/dist/{edit.utils-CXmmCnxE-BSdD_tOR.js → edit.utils-CXmmCnxE-evcsspEJ.js} +1 -1
- package/dist/excel.css +15 -15
- package/dist/{exceljs.min-CLghjkvN.js → exceljs.min-DYYU4xe-.js} +2 -2
- package/dist/{font-editor-Bergh2R4.js → font-editor-hpUeXFv_.js} +3 -3
- package/dist/{image-design-CE8RmqGR.js → image-design-BnDK5Jwf.js} +2 -2
- package/dist/{index-D1_SYDPv.js → index-3n5gOxbD.js} +3 -2
- package/dist/{index-BXSzJMT7.js → index-557u9lSs.js} +2 -1
- package/dist/{index-C7TEXlbZ.js → index-B8tTsX2y.js} +3 -2
- package/dist/{index-DnZq1s_3.js → index-B9q2iVJw.js} +4 -3
- package/dist/{index-Dgu35iIj.js → index-BEyidTCC.js} +2 -1
- package/dist/{index-BGpCYZm4.js → index-BWvyGnI_.js} +3 -2
- package/dist/{index-BJdOVQGJ.js → index-BY7_uLSS.js} +2 -1
- package/dist/{index-DA5PXti2.js → index-BaC0Py3z.js} +254 -171
- package/dist/{index-D-HlMlRd.js → index-BboAW45l.js} +4 -3
- package/dist/{index-Byh0Vmlz.js → index-BcfmxYW-.js} +3 -2
- package/dist/{index-BfHBvOdP.js → index-BezxcVwZ.js} +3 -2
- package/dist/{index-DwKg7b0U.js → index-Bfrtgjub.js} +3 -2
- package/dist/{index-BCxnsShs.js → index-Bxgg0txy.js} +2 -1
- package/dist/{index-Dqr0oBlM.js → index-CA25B2UR.js} +3 -2
- package/dist/{index-D-Jbq4My.js → index-CLyowrpG.js} +3 -2
- package/dist/{index-geVnq_KD.js → index-CRj08TWu.js} +3 -2
- package/dist/{index-C2olS5vJ.js → index-CUhR3L97.js} +4 -3
- package/dist/{index-bX1S8t3o.js → index-CUhlQ0aK.js} +4 -3
- package/dist/{index-D6Z8-FC9.js → index-CXBwY7ba.js} +2 -2
- package/dist/{index-DqOxVJR-.js → index-CZv8lo_f.js} +3 -2
- package/dist/{index-DyHrkuGj.js → index-Crs2UUiJ.js} +3 -2
- package/dist/{index-KcZJqM3I.js → index-D1C_tY7a.js} +2 -1
- package/dist/{index-Dw7SQNDy.js → index-D3t6B-9k.js} +2 -1
- package/dist/{index-Chu6332Q.js → index-D6T0GkNc.js} +3 -2
- package/dist/{index-BVcJPSOs.js → index-D9pfqRAP.js} +5 -4
- package/dist/{index-DuyXEchF.js → index-DKAk8Fzf.js} +3 -2
- package/dist/{index-CA6CWt8y.js → index-DP1WApp-.js} +2 -1
- package/dist/{index-BDeyH_2H.js → index-DPiPri6e.js} +3 -2
- package/dist/{index-ROHlRUFD.js → index-DULgJ5M_.js} +2 -1
- package/dist/{index-D6udXzjh.js → index-DX1Nqubf.js} +3 -2
- package/dist/{index-CuZvl7YB.js → index-Dfs0gE3N.js} +3 -2
- package/dist/{index-CNzY1FwH.js → index-HNE-yLqK.js} +3 -2
- package/dist/{index-BVxo9GHy.js → index-YuHHwSzv.js} +2 -1
- package/dist/{index-m0iGs0bS.js → index-sQI9wXhV.js} +2 -1
- package/dist/{index-a3Y8FZwA.js → index-tRVTXeIS.js} +3 -2
- package/dist/index.es.js +4 -2
- package/dist/{mb-render-DhKkFfcm.js → mb-render-jAsNtPqY.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DhTO6jGt.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Cxs9ZecX.js} +2 -1
- package/dist/{pagination-design-D9hm70UW.js → pagination-design-lgUGQHWo.js} +3 -2
- package/dist/paper-widget-design-B6GKQFw2.js +4 -0
- package/dist/{print-runtime-instance-CXj_GS84.js → print-runtime-instance-MxA8-bHV.js} +1 -1
- package/dist/{print-snapshot-renderer-BK2XvbLK.js → print-snapshot-renderer-D6sRzdVe.js} +3 -3
- package/dist/{qrcode-design-BrEZ2nXO.js → qrcode-design-DCgtf75a.js} +1 -1
- package/dist/{revo-grid.entry-BBZIZgKP.js → revo-grid.entry-Bygattd8.js} +1 -1
- package/dist/{revogr-attribution_7.entry-rfjINVxu.js → revogr-attribution_7.entry-BqzhD1hP.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-Bg3AuwfG.js → revogr-clipboard_3.entry-Wr7KhnJ_.js} +2 -2
- package/dist/{revogr-data_4.entry-C8O2Iv2n.js → revogr-data_4.entry-CrFW39f1.js} +2 -2
- package/dist/{revogr-filter-panel.entry-uQBhKoSX.js → revogr-filter-panel.entry-9khS41SL.js} +1 -1
- package/dist/seal-design-CJO9Kmm0.js +4 -0
- package/dist/{serialnumber-design-DCkPTZFe.js → serialnumber-design-eXgfrjw9.js} +1 -1
- package/dist/shared/index.es.js +2 -2
- package/dist/{single-field-drop-BL43JC5V.js → single-field-drop-rKr_LXW8.js} +2 -2
- package/dist/{size-editor-BKqS03Gi.js → size-editor-OEPrJU0W.js} +1 -1
- package/dist/src/index.d.ts +6 -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/useEbrWikiFactoryV2.d.ts +224 -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/hooks/validation/merge.d.ts +3 -2
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- 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 +66 -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/src/shared/components/Seal/seal-positioned.vue.d.ts +3 -1
- package/dist/src/shared/components/field-transfer/hooks/useModelField.d.ts +5 -0
- package/dist/{sub-table-factory-BxnZRD5d.js → sub-table-factory-DLXJkTHY.js} +2 -2
- package/dist/{text-design-LpqAAdUy.js → text-design-Dd5uT-hc.js} +3 -2
- package/dist/{throttle-Cpk1LoGk-Ci963h-N.js → throttle-Cpk1LoGk-DxTostCa.js} +1 -1
- package/dist/{timediff-design-DAD_BKWH.js → timediff-design-DhxYymPd.js} +2 -1
- package/dist/{trace-like-wrapper-Bq4-R_-a.js → trace-like-wrapper-CczUTJwp.js} +3 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DWP8nFsa.js → value-editor.vue_vue_type_style_index_0_lang-BzAhq5rc.js} +3 -2
- package/dist/web-render/index.es.js +4 -3
- package/dist/{widget-barcode-7jbXypLa.js → widget-barcode-BrLmLnCd.js} +5 -4
- package/dist/{widget-diagonal-CAhF4RdS.js → widget-diagonal-CIg1Yn3D.js} +4 -3
- package/dist/{widget-image-fajmaZZL.js → widget-image-bPGudw8R.js} +5 -5
- package/dist/{widget-line-BnpVz3Cw.js → widget-line-Dw1mkN0H.js} +3 -2
- package/dist/{widget-pagination-CBRrI8Gg.js → widget-pagination-C2ylpEkR.js} +6 -5
- package/dist/{widget-power-CeJ_lpsq.js → widget-power-Ceni1m5s.js} +4 -3
- package/dist/{widget-qrcode-DJDwbHFC.js → widget-qrcode-dHuN8ZTP.js} +4 -3
- package/dist/{widget-rangelimit-BfMODXDL.js → widget-rangelimit-DkZwe6ix.js} +3 -3
- package/dist/{widget-serialnumber-C7B10sEv.js → widget-serialnumber-Dz2_gK_C.js} +1 -1
- package/dist/{widget-text-1XmDP1ym.js → widget-text-BIMT_dmX.js} +5 -5
- package/dist/{widget-timediff-CXke343Y.js → widget-timediff-LoUQBpX7.js} +3 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-zve0OviL.js +0 -4
- package/dist/seal-design-B42sQwSF.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-zR6VwiFi.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-BDkKB_4N.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-BDkKB_4N.js";
|
|
3
|
+
import { r as require$$0 } from "./index-CXBwY7ba.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-BDkKB_4N.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-BaC0Py3z.js";
|
|
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";
|
|
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-BDkKB_4N.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-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";
|
|
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-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";
|
|
11
|
+
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-jAsNtPqY.js";
|
|
11
12
|
const InstanceStatusValues = {
|
|
12
13
|
/** 作废状态 */
|
|
13
14
|
ABANDON: "ABANDON",
|
|
@@ -2109,6 +2110,135 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
|
|
|
2109
2110
|
prepareInitialView
|
|
2110
2111
|
};
|
|
2111
2112
|
}
|
|
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
|
+
}
|
|
2112
2242
|
function createRuntimeAnnotationBinding(runtimeRegistry, basicInfoList, props, payload, updateRenderModeType) {
|
|
2113
2243
|
const normalizeAnnotationLocation = (uniqueId, path, sheetId) => {
|
|
2114
2244
|
const record = runtimeRegistry.require(uniqueId);
|
|
@@ -2213,6 +2343,10 @@ function useRenderPageFactory(props, payload) {
|
|
|
2213
2343
|
const finisher = ref(0);
|
|
2214
2344
|
const runtimeRegistry = new RuntimeInstanceRegistry();
|
|
2215
2345
|
provide(NCB_PROVIDE.RUNTIME_INSTANCE_REGISTRY, runtimeRegistry);
|
|
2346
|
+
const { dataSourceManagerMap, bindDataSources } = createRuntimeDataSourceBinding(
|
|
2347
|
+
runtimeRegistry,
|
|
2348
|
+
payload
|
|
2349
|
+
);
|
|
2216
2350
|
const basicInfoList = ref([]);
|
|
2217
2351
|
const selfInfoList = ref([]);
|
|
2218
2352
|
const { getConsumeData } = useMaterialBalance();
|
|
@@ -2258,6 +2392,7 @@ function useRenderPageFactory(props, payload) {
|
|
|
2258
2392
|
install: async (prepared, isCurrent) => {
|
|
2259
2393
|
clear();
|
|
2260
2394
|
const installed = [];
|
|
2395
|
+
const dataSourceBindings = [];
|
|
2261
2396
|
const installedSelfInfos = /* @__PURE__ */ new Set();
|
|
2262
2397
|
try {
|
|
2263
2398
|
for (const res of prepared) {
|
|
@@ -2286,14 +2421,18 @@ function useRenderPageFactory(props, payload) {
|
|
|
2286
2421
|
basicInfoList.value.push(res.basicInfo);
|
|
2287
2422
|
selfInfoList.value.push(res.selfInfo);
|
|
2288
2423
|
installedSelfInfos.add(selfInfoList.value[selfInfoList.value.length - 1]);
|
|
2289
|
-
|
|
2424
|
+
const reactiveInfo = reactive(res.basicInfo);
|
|
2425
|
+
record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactiveInfo));
|
|
2290
2426
|
bindRuntimeValidation(uniqueId);
|
|
2291
2427
|
bindFormValidationSync(uniqueId);
|
|
2292
2428
|
record.fieldInitializer = markRaw(
|
|
2293
2429
|
new RuntimeFieldInitializer(record, res.basicInfo, res.selfInfo)
|
|
2294
2430
|
);
|
|
2295
2431
|
bindRuntimeBusinessServices(runtimeRegistry, record, res.selfInfo.dataStatus);
|
|
2432
|
+
dataSourceBindings.push(bindDataSources(record, reactiveInfo, res.selfInfo));
|
|
2296
2433
|
}
|
|
2434
|
+
await Promise.all(dataSourceBindings);
|
|
2435
|
+
if (!isCurrent()) return;
|
|
2297
2436
|
await Promise.all(installed.map(prepareInitialView));
|
|
2298
2437
|
if (!isCurrent()) return;
|
|
2299
2438
|
const selfId = Array.isArray(props.selfId) ? props.selfId[0] : props.selfId;
|
|
@@ -2360,6 +2499,7 @@ function useRenderPageFactory(props, payload) {
|
|
|
2360
2499
|
clear();
|
|
2361
2500
|
});
|
|
2362
2501
|
return {
|
|
2502
|
+
dataSourceManagerMap,
|
|
2363
2503
|
counter,
|
|
2364
2504
|
finisher,
|
|
2365
2505
|
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-BaC0Py3z.js";
|
|
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";
|
|
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, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, Fragment, renderList, 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-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";
|
|
5
6
|
import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
|
|
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-jAsNtPqY.js";
|
|
8
9
|
var MaterialConsumptionPatternEnum = /* @__PURE__ */ ((MaterialConsumptionPatternEnum2) => {
|
|
9
10
|
MaterialConsumptionPatternEnum2["RECORD"] = "record";
|
|
10
11
|
MaterialConsumptionPatternEnum2["BOM"] = "bom";
|
|
@@ -365,6 +366,8 @@ function useRuntimeInstanceServices(uniqueIdSource) {
|
|
|
365
366
|
instance,
|
|
366
367
|
/** 控制器负责 Sheet 切换、编辑器收口和提交;尚未挂载时为空。 */
|
|
367
368
|
controller: computed(() => instance.value?.controller),
|
|
369
|
+
/** 全部 Sheet 共享的数源管理器,随实例注册与销毁。 */
|
|
370
|
+
dataSourceManager: computed(() => instance.value?.dataSourceManager),
|
|
368
371
|
/** 表单级配置独立于 Sheet 的 paper;实例未注册时提供空配置。 */
|
|
369
372
|
formConfig: computed(() => instance.value?.context.formConfig ?? {}),
|
|
370
373
|
/** 实例切换时重新取对应 Store;读取数据使用 .value.state,写入使用 Store 方法。 */
|
|
@@ -896,6 +899,8 @@ const LEGACY_RUNTIME_FORM_CONFIG_KEYS = [
|
|
|
896
899
|
"unitConversionRules",
|
|
897
900
|
"inspectionDecisionRule",
|
|
898
901
|
"customDataSource",
|
|
902
|
+
"dataSources",
|
|
903
|
+
"fieldFills",
|
|
899
904
|
"objectInitialValues",
|
|
900
905
|
"javascript",
|
|
901
906
|
"checkSignatureConfig",
|
|
@@ -3076,7 +3081,7 @@ function pruneValidationComments(current, validPaths) {
|
|
|
3076
3081
|
}
|
|
3077
3082
|
return Object.keys(next).length ? next : null;
|
|
3078
3083
|
}
|
|
3079
|
-
function mergeDisplayValidation(current, displayResult, ruleKeys, validatedPaths) {
|
|
3084
|
+
function mergeDisplayValidation(current, displayResult, ruleKeys, validatedPaths, resolvePayload) {
|
|
3080
3085
|
const next = current && Object.keys(current).length ? { ...current } : {};
|
|
3081
3086
|
const ruleSet = new Set(ruleKeys);
|
|
3082
3087
|
const validatedSet = new Set(validatedPaths);
|
|
@@ -3089,7 +3094,9 @@ function mergeDisplayValidation(current, displayResult, ruleKeys, validatedPaths
|
|
|
3089
3094
|
if (displayResult?.[path]?.length) {
|
|
3090
3095
|
next[path] = displayResult[path];
|
|
3091
3096
|
} else {
|
|
3092
|
-
|
|
3097
|
+
const payload = resolvePayload(path);
|
|
3098
|
+
const keepManualComment = !!payload && filterRulesByTrigger(payload.rules, "manual").length > 0 && isEmptyValue$1(payload.value) && !!next[path]?.length;
|
|
3099
|
+
if (!keepManualComment) delete next[path];
|
|
3093
3100
|
}
|
|
3094
3101
|
}
|
|
3095
3102
|
return Object.keys(next).length ? next : null;
|
|
@@ -3156,15 +3163,23 @@ class RuntimeValidationService {
|
|
|
3156
3163
|
return;
|
|
3157
3164
|
const fields = result.fields ?? null;
|
|
3158
3165
|
const current = binding.getComments();
|
|
3166
|
+
const resolvePayload = (path) => {
|
|
3167
|
+
const entry = entries.get(path);
|
|
3168
|
+
if (!entry || !isAttachFieldActive(entry.meta.attach, this.store.state)) return null;
|
|
3169
|
+
if (mode === "display" && !resolveKeepExceptionHighlight(
|
|
3170
|
+
binding.getKeepExceptionHighlight?.(),
|
|
3171
|
+
entry.meta.keepExceptionHighlight
|
|
3172
|
+
))
|
|
3173
|
+
return null;
|
|
3174
|
+
return { value: result.flatData?.[path], rules: entry.rules };
|
|
3175
|
+
};
|
|
3159
3176
|
const merged = mode === "all" ? mergeSubmitValidation(current, fields, result.editablePaths ?? []) : mode === "display" ? mergeDisplayValidation(
|
|
3160
3177
|
current,
|
|
3161
3178
|
fields,
|
|
3162
3179
|
result.ruleKeys ?? [],
|
|
3163
|
-
result.validatedPaths ?? []
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
return rules2 ? { value: result.flatData?.[path], rules: rules2 } : null;
|
|
3167
|
-
});
|
|
3180
|
+
result.validatedPaths ?? [],
|
|
3181
|
+
resolvePayload
|
|
3182
|
+
) : mergeLiveValidation(current, fields, result.livePaths ?? [], resolvePayload);
|
|
3168
3183
|
binding.applyComments(merged);
|
|
3169
3184
|
return result;
|
|
3170
3185
|
}
|
|
@@ -3534,10 +3549,7 @@ class RuntimeInstanceEventBus {
|
|
|
3534
3549
|
class RuntimeInstanceRegistry {
|
|
3535
3550
|
/** 当前渲染入口的加载状态,由工厂更新;PreviewContainer 直接读取,无需宿主额外传参。 */
|
|
3536
3551
|
loadState = shallowReactive({ loading: false, error: void 0 });
|
|
3537
|
-
/**
|
|
3538
|
-
* 顶层对象使用浅响应式:实例新增、删除需要驱动 Vue 更新;record 内的服务类
|
|
3539
|
-
* 不需要被 Vue 深度代理,各自内部负责自己的响应式状态和生命周期
|
|
3540
|
-
*/
|
|
3552
|
+
/** 顶层容器和记录都只做浅响应式;服务类仍保持原始引用。 */
|
|
3541
3553
|
records = shallowReactive({});
|
|
3542
3554
|
/**
|
|
3543
3555
|
* 统一托管订阅、watch 和编译结果的取消函数
|
|
@@ -3579,8 +3591,9 @@ class RuntimeInstanceRegistry {
|
|
|
3579
3591
|
events,
|
|
3580
3592
|
validation
|
|
3581
3593
|
};
|
|
3582
|
-
|
|
3583
|
-
|
|
3594
|
+
const reactiveRecord = shallowReactive(record);
|
|
3595
|
+
this.records[context.uniqueId] = reactiveRecord;
|
|
3596
|
+
return reactiveRecord;
|
|
3584
3597
|
}
|
|
3585
3598
|
/**
|
|
3586
3599
|
* 在页面回调准备完成后挂载实例控制器
|
|
@@ -7272,6 +7285,10 @@ function useNocodeFormWidget(props, emit) {
|
|
|
7272
7285
|
...colIndex !== void 0 ? { colIndex } : {}
|
|
7273
7286
|
});
|
|
7274
7287
|
}
|
|
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
|
+
}
|
|
7275
7292
|
if (eventType === "onBlur" && dataRelationShip?.renderModeType === RenderModeEnum.FormMode && !instance.value?.controller?.preparing) {
|
|
7276
7293
|
instance.value?.validation.requestLive("blur", true);
|
|
7277
7294
|
}
|
|
@@ -61664,7 +61664,14 @@ const processWidgets = async (dataCenter, callback, tdCallback, widgetCallback)
|
|
|
61664
61664
|
}
|
|
61665
61665
|
}
|
|
61666
61666
|
} else if (widget.component === ComponentTypeEnum.Seal) {
|
|
61667
|
-
await
|
|
61667
|
+
await widgetCallback?.(widget, widget);
|
|
61668
|
+
await callback(
|
|
61669
|
+
widget.props,
|
|
61670
|
+
{ ...DEFAULT_ATTRS, needDyn: false },
|
|
61671
|
+
widget,
|
|
61672
|
+
widget.component,
|
|
61673
|
+
widget
|
|
61674
|
+
);
|
|
61668
61675
|
} else {
|
|
61669
61676
|
const { cellWidget, cellValueType } = widget;
|
|
61670
61677
|
if (!cellWidget) {
|
|
@@ -67069,27 +67076,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
67069
67076
|
case "revo-grid":
|
|
67070
67077
|
return import(
|
|
67071
67078
|
/* webpackMode: "lazy" */
|
|
67072
|
-
"./revo-grid.entry-
|
|
67079
|
+
"./revo-grid.entry-Bygattd8.js"
|
|
67073
67080
|
).then(processMod, consoleError);
|
|
67074
67081
|
case "revogr-filter-panel":
|
|
67075
67082
|
return import(
|
|
67076
67083
|
/* webpackMode: "lazy" */
|
|
67077
|
-
"./revogr-filter-panel.entry-
|
|
67084
|
+
"./revogr-filter-panel.entry-9khS41SL.js"
|
|
67078
67085
|
).then(processMod, consoleError);
|
|
67079
67086
|
case "revogr-attribution_7":
|
|
67080
67087
|
return import(
|
|
67081
67088
|
/* webpackMode: "lazy" */
|
|
67082
|
-
"./revogr-attribution_7.entry-
|
|
67089
|
+
"./revogr-attribution_7.entry-BqzhD1hP.js"
|
|
67083
67090
|
).then(processMod, consoleError);
|
|
67084
67091
|
case "revogr-clipboard_3":
|
|
67085
67092
|
return import(
|
|
67086
67093
|
/* webpackMode: "lazy" */
|
|
67087
|
-
"./revogr-clipboard_3.entry-
|
|
67094
|
+
"./revogr-clipboard_3.entry-Wr7KhnJ_.js"
|
|
67088
67095
|
).then(processMod, consoleError);
|
|
67089
67096
|
case "revogr-data_4":
|
|
67090
67097
|
return import(
|
|
67091
67098
|
/* webpackMode: "lazy" */
|
|
67092
|
-
"./revogr-data_4.entry-
|
|
67099
|
+
"./revogr-data_4.entry-CrFW39f1.js"
|
|
67093
67100
|
).then(processMod, consoleError);
|
|
67094
67101
|
}
|
|
67095
67102
|
}
|
|
@@ -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-BDkKB_4N.js";
|
|
2
2
|
function isClear(code) {
|
|
3
3
|
return codesLetter.BACKSPACE === code || codesLetter.DELETE === code;
|
|
4
4
|
}
|
package/dist/excel.css
CHANGED
|
@@ -3180,22 +3180,22 @@ img[data-v-57e657ee] {
|
|
|
3180
3180
|
background-color: #f2f5f8;
|
|
3181
3181
|
}
|
|
3182
3182
|
|
|
3183
|
-
.seal-positioned[data-v-
|
|
3183
|
+
.seal-positioned[data-v-8f042e10] {
|
|
3184
3184
|
position: absolute;
|
|
3185
3185
|
z-index: 300;
|
|
3186
3186
|
pointer-events: auto;
|
|
3187
3187
|
user-select: none;
|
|
3188
3188
|
}
|
|
3189
|
-
.is-design[data-v-
|
|
3189
|
+
.is-design[data-v-8f042e10] {
|
|
3190
3190
|
cursor: move;
|
|
3191
3191
|
}
|
|
3192
|
-
.is-design[data-v-
|
|
3192
|
+
.is-design[data-v-8f042e10]:hover {
|
|
3193
3193
|
outline: 2px solid #0673d1;
|
|
3194
3194
|
}
|
|
3195
|
-
.selected[data-v-
|
|
3195
|
+
.selected[data-v-8f042e10] {
|
|
3196
3196
|
outline: 1px solid #0673d1;
|
|
3197
3197
|
}
|
|
3198
|
-
.dragging[data-v-
|
|
3198
|
+
.dragging[data-v-8f042e10] {
|
|
3199
3199
|
cursor: move;
|
|
3200
3200
|
z-index: 301;
|
|
3201
3201
|
}
|
|
@@ -23789,18 +23789,18 @@ svg[data-v-9a7c8184] {
|
|
|
23789
23789
|
cursor: pointer;
|
|
23790
23790
|
color: #797a7d;
|
|
23791
23791
|
}
|
|
23792
|
-
.panel-data-init-config-wrapper[data-v-
|
|
23792
|
+
.panel-data-init-config-wrapper[data-v-80593150] {
|
|
23793
23793
|
height: 100%;
|
|
23794
23794
|
background-color: #fff;
|
|
23795
23795
|
}
|
|
23796
|
-
.panel-data-init-config-wrapper .ant-collapse[data-v-
|
|
23796
|
+
.panel-data-init-config-wrapper .ant-collapse[data-v-80593150] {
|
|
23797
23797
|
background-color: #fff;
|
|
23798
23798
|
}
|
|
23799
|
-
.panel-data-init-config-wrapper .param-area[data-v-
|
|
23799
|
+
.panel-data-init-config-wrapper .param-area[data-v-80593150] {
|
|
23800
23800
|
position: relative;
|
|
23801
23801
|
margin-top: 16px;
|
|
23802
23802
|
}
|
|
23803
|
-
.panel-data-init-config-wrapper .param-area .param-item[data-v-
|
|
23803
|
+
.panel-data-init-config-wrapper .param-area .param-item[data-v-80593150] {
|
|
23804
23804
|
position: relative;
|
|
23805
23805
|
margin-bottom: 8px;
|
|
23806
23806
|
padding: 8px;
|
|
@@ -23808,23 +23808,23 @@ svg[data-v-9a7c8184] {
|
|
|
23808
23808
|
border-radius: 4px;
|
|
23809
23809
|
background: #fcfcfc;
|
|
23810
23810
|
}
|
|
23811
|
-
.panel-data-init-config-wrapper .param-area .param-item[data-v-
|
|
23811
|
+
.panel-data-init-config-wrapper .param-area .param-item[data-v-80593150]:last-of-type {
|
|
23812
23812
|
margin-bottom: 16px;
|
|
23813
23813
|
}
|
|
23814
|
-
.panel-data-init-config-wrapper .object-init-area[data-v-
|
|
23814
|
+
.panel-data-init-config-wrapper .object-init-area[data-v-80593150] {
|
|
23815
23815
|
margin-top: 16px;
|
|
23816
23816
|
}
|
|
23817
|
-
.panel-data-init-config-wrapper .tmpl-config-area[data-v-
|
|
23817
|
+
.panel-data-init-config-wrapper .tmpl-config-area[data-v-80593150] {
|
|
23818
23818
|
margin-top: 16px;
|
|
23819
23819
|
}
|
|
23820
|
-
.panel-data-init-config-wrapper .data-source-area[data-v-
|
|
23820
|
+
.panel-data-init-config-wrapper .data-source-area[data-v-80593150] {
|
|
23821
23821
|
position: relative;
|
|
23822
23822
|
margin-top: 16px;
|
|
23823
23823
|
}
|
|
23824
|
-
.panel-data-init-config-wrapper .data-source-area[data-v-
|
|
23824
|
+
.panel-data-init-config-wrapper .data-source-area[data-v-80593150] .data-source-item.is-last .data-source-field-map-wrapper.is-last .line {
|
|
23825
23825
|
display: none;
|
|
23826
23826
|
}
|
|
23827
|
-
.panel-data-init-config-wrapper .data-source-area[data-v-
|
|
23827
|
+
.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 {
|
|
23828
23828
|
display: none;
|
|
23829
23829
|
}
|
|
23830
23830
|
.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-BDkKB_4N.js";
|
|
2
|
+
import { c as commonjsRequire } from "./index-BaC0Py3z.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-CpscpDxA.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-BaC0Py3z.js";
|
|
5
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.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-CXBwY7ba.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-BDkKB_4N.js";
|
|
5
5
|
import "@gct-paas/form-base";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
@@ -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-BDkKB_4N.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-DN5v-Q_h.js";
|
|
7
8
|
class Userpicker extends BaseComponent {
|
|
8
9
|
component = ComponentTypeEnum.Userpicker;
|
|
9
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as PageSizeEnum, C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { p as PageSizeEnum, C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { cloneDeep, has, isNil, isEmpty } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
|
+
import "@gct-paas/form-base";
|
|
5
6
|
import "ant-design-vue";
|
|
6
7
|
const PageSize2FormatOpt = {
|
|
7
8
|
[PageSizeEnum.A3]: [297, 420],
|
|
@@ -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 } 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 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.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-DN5v-Q_h.js";
|
|
7
8
|
class InputDouble extends BaseComponent {
|
|
8
9
|
component = ComponentTypeEnum.InputDouble;
|
|
9
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { get, pick, omit, merge } from "lodash-es";
|
|
2
|
-
import { C as ComponentTypeEnum, O as Orientation, a0 as LabelPosition, a$ as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum, O as Orientation, a0 as LabelPosition, a$ as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.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 { g as getFieldWidget } from "./index-
|
|
7
|
+
import { B as BaseComponent } from "./BaseComponent-DN5v-Q_h.js";
|
|
8
|
+
import { g as getFieldWidget } from "./index-BaC0Py3z.js";
|
|
8
9
|
class EnumSelect extends BaseComponent {
|
|
9
10
|
component = ComponentTypeEnum.EnumSelect;
|
|
10
11
|
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-BDkKB_4N.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;
|