@gct-paas/excel 0.1.37 → 0.1.39-beta.1
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/AntdIcon-DCIaV352.js +1108 -0
- package/dist/{BaseComponent-5QpH6Rui.js → BaseComponent-wXAepA6P.js} +18 -1
- package/dist/{VueVideoPlayer-DZh8_F3v.js → VueVideoPlayer-C--qHZWs.js} +2 -2
- package/dist/{align-editor-BTvIuOVN.js → align-editor-BMFoEgQf.js} +1 -1
- package/dist/{barcode-design-D3g_D7hp.js → barcode-design-M3FjUJNm.js} +2 -2
- package/dist/base/index.es.js +2138 -2802
- package/dist/{diagonal-design-BinP4Wlt.js → diagonal-design-C2lATeRX.js} +2 -2
- package/dist/{dynamic-table-action-Ckc4yetB.js → dynamic-table-action-Cm8HO12b.js} +6930 -2773
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CGpmtwPb.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CYRNF_U3.js} +51451 -52267
- package/dist/{edit.utils-CXmmCnxE-DDvf_1B1.js → edit.utils-CXmmCnxE-CaZuzVd6.js} +1 -1
- package/dist/excel.css +2472 -1126
- package/dist/{exceljs.min-jNu29iVm.js → exceljs.min-CeIQpaOT.js} +2 -2
- package/dist/{font-editor-B6cYSWqo.js → font-editor-CPn2F_OZ.js} +3 -3
- package/dist/{image-design-kQ2vbtwc.js → image-design-DWjjBFQa.js} +2 -2
- package/dist/{index-O4srBJlA.js → index-B3S5QpVz.js} +22647 -17125
- package/dist/{index-Dg6nmj-a.js → index-B3oqnny_.js} +8 -74
- package/dist/{index-C3HGy13G.js → index-B72KgWBu.js} +1 -1
- package/dist/{index-DgUHgge3.js → index-BEQELF4E.js} +3 -3
- package/dist/{index-DF5irDE9.js → index-BZcapeWR.js} +2 -2
- package/dist/{index-BtZbUJqv.js → index-BatfBVeN.js} +5 -3
- package/dist/{index-B5HIN-qO.js → index-BcpTVyHa.js} +2 -2
- package/dist/{index-Bk8MpwGt.js → index-BrZiEGAB.js} +2 -2
- package/dist/{index-DnLs4s1z.js → index-BuNKNsIb.js} +13 -2
- package/dist/{index-C8ArafDL.js → index-C3GHvYcj.js} +2 -2
- package/dist/{index-BPKmoc5N.js → index-CED1SWU9.js} +2 -2
- package/dist/{index-C1DOk9t-.js → index-CIiCyyBv.js} +1 -1
- package/dist/{index-C91SfhAb.js → index-CNlb3Y3A.js} +1 -1
- package/dist/{index-BNiGRPzJ.js → index-CRGOLDI8.js} +1 -1
- package/dist/{index-DqkJPwx3.js → index-CWmsgguT.js} +3 -3
- package/dist/{index-BqI7r_XC.js → index-C__Qm3ub.js} +2 -2
- package/dist/{index-BJyfzYBO.js → index-CcBF1mOx.js} +2 -2
- package/dist/{index-DSISN2ys.js → index-Cg0trWkY.js} +2 -2
- package/dist/{index-ClnlX2jZ.js → index-ChRhjdl_.js} +1 -1
- package/dist/{index-Dxh55nQw.js → index-ClVsGQoQ.js} +1 -1
- package/dist/{index-DqDGmouR.js → index-CpN3c_Lk.js} +2 -2
- package/dist/{index-C5ESFU7b.js → index-DC8dEMj4.js} +1 -1
- package/dist/{index-BWEQIjQE.js → index-DHPRpllA.js} +1 -1
- package/dist/index-DSSJ8S81.js +26 -0
- package/dist/{index-DCMnBDPA.js → index-DTSHn9ii.js} +432 -237
- package/dist/{index-YlVy61FH.js → index-DdVlAV0_.js} +1 -1
- package/dist/{index-KBj0_MsM.js → index-DhkQma-u.js} +2 -2
- package/dist/{index-CnTC_LFJ.js → index-DqQ2ZxDn.js} +2 -2
- package/dist/{index-CkgB26Uk.js → index-DtS3ze0S.js} +3 -3
- package/dist/{index-D3Oj5SoQ.js → index-DxCN78vg.js} +3 -3
- package/dist/{index-C4tkNDTa.js → index-OIXBBHHu.js} +2 -2
- package/dist/{index-B9sZfT3j.js → index-gra19syg.js} +2 -2
- package/dist/{index-avQcYIlZ.js → index-mA7F37nK.js} +2 -2
- package/dist/{index-Dzydpwhf.js → index-pxBPpLrG.js} +2 -2
- package/dist/{index-BaCxUMCF.js → index-yfTjcRJ8.js} +2 -2
- package/dist/index.es.js +49 -49
- package/dist/{mb-render-BtXKf12F.js → mb-render-BZXw-tG7.js} +21 -15
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-C-9AZcTz.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-uXt_kyMo.js} +4 -1041
- package/dist/{pagination-design-D2EHYcDi.js → pagination-design-CCRMgYhc.js} +2 -2
- package/dist/paper-widget-design-BbQeY4Hv.js +4 -0
- package/dist/print-runtime-instance-MA7UVZdA.js +36 -0
- package/dist/print-snapshot-renderer-BavXucNu.js +76 -0
- package/dist/{qrcode-design-_uIcWgfD.js → qrcode-design-BC1PBKf_.js} +1 -1
- package/dist/{revo-grid.entry-h26i-X1O.js → revo-grid.entry-DjiOpHRm.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DnWhGt3I.js → revogr-attribution_7.entry-CDnB9lLs.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DHP6m3aV.js → revogr-clipboard_3.entry-C6O9JrN7.js} +2 -2
- package/dist/{revogr-data_4.entry-CBEPKC2v.js → revogr-data_4.entry-y1feqF9h.js} +2 -2
- package/dist/{revogr-filter-panel.entry-DpaMxMlv.js → revogr-filter-panel.entry-By9rD4Y9.js} +1 -1
- package/dist/seal-design-CN_B6div.js +4 -0
- package/dist/{serialnumber-design-KRWMAGLy.js → serialnumber-design-Bb75HRGq.js} +1 -1
- package/dist/shared/index.es.js +32 -26
- package/dist/{single-field-drop-yih8_AXA.js → single-field-drop-BlAQcTBT.js} +3 -3
- package/dist/{size-editor-BqOSTI8R.js → size-editor-BWnv8oH4.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +6 -1
- package/dist/src/assets/svgs/table/index.d.ts +1 -0
- package/dist/src/domain/field/date/sterilization-date-manifest.d.ts +2 -0
- package/dist/src/domain/field/number/inspection-module-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/seal/seal-manifest.d.ts +2 -0
- package/dist/src/domain/field/select/inspection-container-manifest.d.ts +2 -0
- package/dist/src/domain/field/text/udi-manifest.d.ts +2 -0
- package/dist/src/domain/field/types.d.ts +2 -2
- package/dist/src/domain/table/business/device/maintenance/index.d.ts +1 -0
- package/dist/src/domain/table/business/device/maintenance/profile/field-keys.d.ts +9 -0
- package/dist/src/domain/table/business/device/maintenance/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/device/maintenance/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/device/point-inspection/index.d.ts +1 -0
- package/dist/src/domain/table/business/device/point-inspection/profile/field-keys.d.ts +9 -0
- package/dist/src/domain/table/business/device/point-inspection/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/device/point-inspection/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/device/signature-lock.d.ts +9 -0
- package/dist/src/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- package/dist/src/domain/table/business/material/material-substitution/index.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +75 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/index.d.ts +4 -0
- package/dist/src/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/design/create-subtable.d.ts +1 -1
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +1 -1
- package/dist/src/domain/table/design/index.d.ts +1 -1
- package/dist/src/domain/table/design/ribbon-options.d.ts +1 -0
- package/dist/src/domain/table/design/sub-model-matcher.d.ts +1 -0
- package/dist/src/domain/table/index.d.ts +3 -2
- package/dist/src/domain/table/registry.d.ts +1 -0
- package/dist/src/domain/table/types.d.ts +8 -3
- package/dist/src/nocode-base/src/_utils_/uuid.d.ts +8 -0
- package/dist/src/nocode-base/src/components/document-layout.vue.d.ts +3 -0
- package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +3 -3
- package/dist/src/nocode-base/src/components/inspection-decision-prompt-modal.vue.d.ts +7 -0
- package/dist/src/nocode-base/src/constant/index.d.ts +8 -2
- package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +11 -3
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +0 -1
- package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +0 -1
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +23 -1
- package/dist/src/nocode-base/src/core/sub-table/sterilize-batch-table-core.d.ts +0 -1
- package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +0 -1
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +0 -5
- package/dist/src/nocode-base/src/core/types/index.d.ts +4 -0
- package/dist/src/nocode-base/src/emit/enum.d.ts +2 -12
- package/dist/src/nocode-base/src/hooks/annotation/form-change-row.d.ts +7 -5
- package/dist/src/nocode-base/src/hooks/annotation/runtime-annotation-binding.d.ts +17 -0
- package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +0 -6
- package/dist/src/nocode-base/src/hooks/form-tmpl-config/device-connector.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/index.d.ts +5 -3
- package/dist/src/nocode-base/src/hooks/inspection-decision-rule/evaluator.d.ts +11 -0
- package/dist/src/nocode-base/src/hooks/material-balance/mb-render.d.ts +2 -2
- package/dist/src/nocode-base/src/hooks/material-balance/useMaterialBalance.d.ts +4 -4
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +10 -2
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +13 -25
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +5 -6
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +8 -4
- package/dist/src/nocode-base/src/hooks/material-consume-object/index.d.ts +0 -1
- package/dist/src/nocode-base/src/hooks/material-consume-object/product-lot-link.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +56 -0
- package/dist/src/nocode-base/src/hooks/render-page/runtime-request.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/render-page/runtime-validation.d.ts +17 -0
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +64 -0
- package/dist/src/nocode-base/src/hooks/udi.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/useDependency.d.ts +2 -1
- package/dist/src/nocode-base/src/hooks/useFieldPresentation.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/useFormHook.d.ts +7 -4
- package/dist/src/nocode-base/src/hooks/useMergeSameCells.d.ts +3 -2
- package/dist/src/nocode-base/src/hooks/useNocodeEmitter.d.ts +1 -9
- package/dist/src/nocode-base/src/hooks/useRenderData.d.ts +8 -24
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +63 -99
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +44 -0
- package/dist/src/nocode-base/src/hooks/useRuntimeRowState.d.ts +16 -0
- package/dist/src/nocode-base/src/hooks/validation/attach.d.ts +4 -10
- package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +3 -2
- package/dist/src/nocode-base/src/hooks/validation/runValidation.d.ts +5 -8
- package/dist/src/nocode-base/src/hooks/validation/types.d.ts +15 -8
- package/dist/src/nocode-base/src/hooks/validation/utils.d.ts +6 -0
- package/dist/src/nocode-base/src/index.d.ts +2 -0
- package/dist/src/nocode-base/src/interface/calc.d.ts +1 -1
- package/dist/src/nocode-base/src/interface/check-ds-data.d.ts +4 -3
- package/dist/src/nocode-base/src/interface/code-runner.d.ts +4 -0
- package/dist/src/nocode-base/src/interface/render.d.ts +5 -2
- package/dist/src/nocode-base/src/interface/transform.d.ts +26 -22
- package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +66 -0
- package/dist/src/nocode-base/src/runtime/conversions/business-row.d.ts +2 -0
- package/dist/src/nocode-base/src/runtime/conversions/field-config.d.ts +4 -0
- package/dist/src/nocode-base/src/runtime/conversions/historical-annotation.d.ts +15 -0
- package/dist/src/nocode-base/src/runtime/conversions/index.d.ts +11 -0
- package/dist/src/nocode-base/src/runtime/conversions/ocr-template.d.ts +7 -0
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +21 -0
- package/dist/src/nocode-base/src/runtime/date-compliance.d.ts +8 -0
- package/dist/src/nocode-base/src/runtime/field-identity.d.ts +21 -0
- package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +7 -0
- package/dist/src/nocode-base/src/runtime/index.d.ts +18 -0
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +43 -0
- package/dist/src/nocode-base/src/runtime/runtime-console-debug.d.ts +36 -0
- package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +124 -0
- package/dist/src/nocode-base/src/runtime/runtime-dependency-service.d.ts +82 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +26 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-registry.d.ts +90 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-rows.d.ts +7 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +15 -0
- package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +132 -0
- package/dist/src/nocode-base/src/runtime/runtime-instance-controller.d.ts +80 -0
- package/dist/src/nocode-base/src/runtime/runtime-instance-event-bus.d.ts +17 -0
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +296 -0
- package/dist/src/nocode-base/src/runtime/runtime-persistence-coordinator.d.ts +93 -0
- package/dist/src/nocode-base/src/runtime/runtime-rule-compiler.d.ts +37 -0
- package/dist/src/nocode-base/src/runtime/runtime-sheet-service.d.ts +99 -0
- package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +44 -0
- package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +23 -0
- package/dist/src/nocode-base/src/types/business/index.d.ts +8 -1
- package/dist/src/nocode-base/src/types/calc/i-calc.d.ts +3 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +60 -6
- package/dist/src/nocode-base/src/types/fields/i-seal.d.ts +10 -0
- package/dist/src/nocode-base/src/types/fields/index.d.ts +1 -0
- package/dist/src/nocode-base/src/types/index.d.ts +1 -1
- package/dist/src/nocode-base/src/types/render/mb-render.d.ts +4 -2
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +2 -2
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +3 -5
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +4 -35
- package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts +4 -7
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +8 -6
- package/dist/src/online-form/src/components/version-diff/iframe/preview-iframe.vue.d.ts +2 -0
- package/dist/src/online-form/src/components/version-diff/index/types.d.ts +3 -0
- package/dist/src/online-form/src/components/version-diff/index/version-diff-index.vue.d.ts +4 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +78 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/columns.d.ts +43 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +194 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/hooks.d.ts +28 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/index.d.ts +6 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +145 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-version-name-tag.vue.d.ts +11 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/useSelectTable.d.ts +31 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-select-editor/use-default-value-options.d.ts +40 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-select-editor/use-default-value-visibility.d.ts +2 -0
- package/dist/src/online-form/src/views/__cell_widgets__/seal/seal-design.vue.d.ts +6 -0
- package/dist/src/online-form/src/views/__cell_widgets__/seal/seal-type-labels.d.ts +4 -0
- package/dist/src/online-form/src/views/__cell_widgets__/seal/seal.config.d.ts +2 -0
- package/dist/src/online-form/src/views/__widgets__/spacer/spacer-width.d.ts +2 -0
- package/dist/src/online-form/src/views/__widgets__/spacer/spacer.config.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +7 -1
- package/dist/src/online-form/src/views/designer/conversions/v1-designer.d.ts +9 -0
- package/dist/src/online-form/src/views/designer/enums/index.d.ts +5 -1
- package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/scan-field.d.ts +4 -0
- package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/utils.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +1098 -692
- package/dist/src/online-form/src/views/designer/hooks/useDhrEdition.d.ts +7 -0
- package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +5 -1
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +507 -2546
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/add-ipaas/parameter-struct/json-expression-editor.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule-condition.vue.d.ts +19 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule-group.vue.d.ts +16 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule.d.ts +54 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-node.vue.d.ts +24 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-select.vue.d.ts +30 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-utils.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/inspection-decision-modal.vue.d.ts +9 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/panel-rule-config.vue.d.ts +18 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-button.vue.d.ts +33 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-icon.vue.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-input.vue.d.ts +23 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-modal.vue.d.ts +36 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-scrollbar.vue.d.ts +21 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-select.vue.d.ts +30 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-switch.vue.d.ts +17 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-text-area.vue.d.ts +20 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/index.d.ts +8 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-seal.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +203 -327
- package/dist/src/online-form/src/views/designer/modules/sheet/seal-layer.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/sheets/sheets-swapper.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/types/index.d.ts +43 -26
- package/dist/src/online-form/src/views/designer/types/sheets.d.ts +16 -0
- package/dist/src/online-form/src/views/designer/utils/dom-parser.d.ts +8 -3
- package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +11 -108
- package/dist/src/online-form/src/views/render/__components__/_common_/useAutofill.d.ts +2 -4
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-api.d.ts +17 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +9 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +9 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +29 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +57 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/sign/component/sign-validation.d.ts +14 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useSearchEnter.d.ts +10 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useSelectTable.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +2 -1
- package/dist/src/online-form/src/views/render/__components__/_widget_/combine-fields/index.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/paper/index.d.ts +2 -1
- package/dist/src/online-form/src/views/render/__logic__/dataCenter.logic.d.ts +1 -1
- package/dist/src/online-form/src/views/render/active-sheet-renderer.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/render/all-sheets-renderer.vue.d.ts +9 -0
- package/dist/src/online-form/src/views/render/preview-container.vue.d.ts +21 -19
- package/dist/src/online-form/src/views/render/printing/iframe-print.d.ts +11 -0
- package/dist/src/online-form/src/views/render/printing/print-runtime-instance.d.ts +11 -0
- package/dist/src/online-form/src/views/render/printing/print-snapshot-renderer.vue.d.ts +27 -0
- package/dist/src/online-form/src/views/render/printing/runtime-print-snapshot.d.ts +24 -0
- package/dist/src/online-form/src/views/render/sheet-tab-bar.vue.d.ts +14 -0
- package/dist/src/shared/components/Scrollbar/src/Scrollbar.vue.d.ts +8 -8
- package/dist/src/shared/components/Seal/seal-placeholder.vue.d.ts +6 -0
- package/dist/src/shared/components/Seal/seal-positioned.vue.d.ts +38 -0
- package/dist/src/shared/components/Signature/index.d.ts +1 -2
- package/dist/src/shared/components/Signature/logic/index.d.ts +1 -14
- package/dist/src/shared/components/Signature/ui/sign-popover-content.vue.d.ts +4 -2
- package/dist/src/shared/components/Signature/ui/sign-switcher.vue.d.ts +1 -1
- package/dist/src/shared/components/category-select/category-select.vue.d.ts +1 -1
- package/dist/src/shared/enum/field-type.d.ts +23 -0
- package/dist/src/shared/enum/online-form.d.ts +8 -2
- package/dist/src/shared/index.d.ts +1 -0
- package/dist/src/shared/seal/index.d.ts +44 -0
- package/dist/src/shared/types/field-meta.d.ts +1 -0
- package/dist/src/shared/utils/field-size.d.ts +4 -2
- package/dist/src/shared/utils/lot2sn.d.ts +5 -0
- package/dist/sub-table-factory-CGELiUkd.js +2118 -0
- package/dist/{text-design-BK_VsTtK.js → text-design-CiWiGhwN.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-DadArQT5.js → throttle-Cpk1LoGk-B466AVFI.js} +1 -1
- package/dist/{timediff-design-q-J7ObPi.js → timediff-design-CnCXGLgF.js} +1 -1
- package/dist/{trace-like-wrapper-CtthDv9M.js → trace-like-wrapper-CPFayyjF.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-B40m6f0M.js → value-editor.vue_vue_type_style_index_0_lang-DyTtWYrg.js} +2 -2
- package/dist/web-render/index.es.js +5 -5
- package/dist/{widget-barcode-DePyj-oR.js → widget-barcode-DMt5IwNO.js} +4 -4
- package/dist/{widget-diagonal-BoPK84Km.js → widget-diagonal-D073XXKw.js} +4 -4
- package/dist/{widget-image-Bd-hAzWZ.js → widget-image-Bc-6H2uA.js} +5 -5
- package/dist/{widget-line-DcQ4GjjX.js → widget-line-BtfMvVGp.js} +2 -2
- package/dist/{widget-pagination-D6IFtegJ.js → widget-pagination-CIlAAI2a.js} +5 -5
- package/dist/{widget-power-dAEtqR3T.js → widget-power-Bu16c4bS.js} +4 -4
- package/dist/{widget-qrcode-GkDxu48J.js → widget-qrcode-AfILjhmH.js} +3 -3
- package/dist/{widget-rangelimit-TRqqVGXL.js → widget-rangelimit-B-mhBJN4.js} +4 -4
- package/dist/{widget-serialnumber-BdZLWmtI.js → widget-serialnumber-DVoe5bqh.js} +1 -1
- package/dist/{widget-text-DS8vSuAy.js → widget-text-DWNEbQUk.js} +5 -5
- package/dist/{widget-timediff-C1n_nRUs.js → widget-timediff-B2mjc1qy.js} +2 -2
- package/package.json +4 -4
- package/dist/paper-widget-design-Cn1RcpGb.js +0 -4
- package/dist/src/nocode-base/src/components/material-consume/material-consume-action.vue.d.ts +0 -17
- package/dist/src/nocode-base/src/hooks/material-consume-object/use-tmpl-bom.d.ts +0 -13
- package/dist/src/nocode-base/src/hooks/useFormulaExpWatcher.d.ts +0 -15
- package/dist/src/nocode-base/src/hooks/useValidator.d.ts +0 -18
- package/dist/src/nocode-base/src/hooks/validation/formRulesStore.d.ts +0 -15
- package/dist/src/nocode-base/src/hooks/validation/scheduler.d.ts +0 -12
- package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +0 -41
- package/dist/src/nocode-base/src/hooks/validation/waitForSettle.d.ts +0 -17
- package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +0 -29
- package/dist/src/shared/components/Signature/ui/sign-preview.vue.d.ts +0 -18
- package/dist/src/shared/components/Signature/ui/sign-switcher-modal.vue.d.ts +0 -118
- package/dist/use-namespace-BxkK4ofX.js +0 -77
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RuntimeEditorFlusher } from '../runtime/runtime-instance-controller';
|
|
2
|
+
type RuntimeInstanceIdSource = () => string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* 组件获取实例配置、控制器和共享服务的统一入口,按需解构返回的 computed 引用。
|
|
5
|
+
* 默认从字段上下文取实例 ID;宿主或纸张组件可传入 ID getter,跟随 props 切换。
|
|
6
|
+
* 所有引用共享一次实例解析,服务仍由 Registry 创建和销毁,Hook 只负责读取。
|
|
7
|
+
*/
|
|
8
|
+
export declare function useRuntimeInstanceServices(uniqueIdSource?: RuntimeInstanceIdSource): {
|
|
9
|
+
instance: import('vue').ComputedRef<import('..').RuntimeInstanceRecord | undefined>;
|
|
10
|
+
/** 控制器负责 Sheet 切换、编辑器收口和提交;尚未挂载时为空。 */
|
|
11
|
+
controller: import('vue').ComputedRef<import('..').RuntimeInstanceController | undefined>;
|
|
12
|
+
/** 表单级配置独立于 Sheet 的 paper;实例未注册时提供空配置。 */
|
|
13
|
+
formConfig: import('vue').ComputedRef<Record<string, any>>;
|
|
14
|
+
/** 实例切换时重新取对应 Store;读取数据使用 .value.state,写入使用 Store 方法。 */
|
|
15
|
+
formStateStore: import('vue').ComputedRef<import('..').RuntimeFormStateStore | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* 实例级异步任务协调器:上传、扫码和远程回填通过 .value.run() 登记任务。
|
|
18
|
+
* 同 key 的新任务使旧结果失效;提交前等待 required 任务,所有 Sheet 共用同一份。
|
|
19
|
+
*/
|
|
20
|
+
asyncTasks: import('vue').ComputedRef<import('..').RuntimeAsyncTaskCoordinator | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* 实例级联动调度器:监听 Store 变更,统一执行公式、赋值及条件必填/禁用规则。
|
|
23
|
+
* 组件通过 .value.getOutput() 读取条件结果,未挂载的 Sheet 也参与联动计算。
|
|
24
|
+
*/
|
|
25
|
+
dependencies: import('vue').ComputedRef<import('..').RuntimeDependencyService | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* 实例级字段注册表:按模型 + 字段身份查询控件及其 Sheet、节点和数据路径。
|
|
28
|
+
* 供校验、联动、分页失效及导航定位使用;只维护位置索引,不保存填报数据或错误。
|
|
29
|
+
*/
|
|
30
|
+
fields: import('vue').ComputedRef<import('..').RuntimeFieldRegistry | undefined>;
|
|
31
|
+
/** 分页与业务位置导航共用同一实例服务。 */
|
|
32
|
+
sheetService: import('vue').ComputedRef<import('..').RuntimeSheetService | undefined>;
|
|
33
|
+
/** 暂存与提交共享同一协调器,实例替换时整体切换。 */
|
|
34
|
+
persistence: import('vue').ComputedRef<import('..').RuntimePersistenceCoordinator | undefined>;
|
|
35
|
+
/** 校验规则及调度由当前实例持有,签名和失焦校验直接调用此服务。 */
|
|
36
|
+
validation: import('vue').ComputedRef<import('..').RuntimeValidationService | undefined>;
|
|
37
|
+
/** 实例共享的业务 BOM 控制器,打印副本持有独立展示控制器。 */
|
|
38
|
+
tmplBomController: import('vue').ComputedRef<import('./material-consume').FormTmplBomController | undefined>;
|
|
39
|
+
/** 当前实例的 UI 事件总线,批注等展示事件不会跨实例传播。 */
|
|
40
|
+
events: import('vue').ComputedRef<import('..').RuntimeInstanceEventBus | undefined>;
|
|
41
|
+
};
|
|
42
|
+
/** 注册需要在 Sheet 切换前提交内部状态的编辑器 */
|
|
43
|
+
export declare function useRuntimeEditorFlusher(flusher: RuntimeEditorFlusher): void;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormStateMutationSource } from '../runtime/runtime-form-state-store';
|
|
2
|
+
/** 字段组件和业务辅助函数共用的显式行写入口,调用时必须声明修改来源。 */
|
|
3
|
+
export interface RuntimeRowWriter {
|
|
4
|
+
setRowField(fieldKey: string, value: any, source: FormStateMutationSource): void;
|
|
5
|
+
patchRow(values: Record<string, any>, source: FormStateMutationSource): void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 组件只读取 formData,写入通过此 Hook
|
|
9
|
+
* 每次调用都重新读取当前行和实例,避免动态表换行或草稿恢复后继续修改旧对象
|
|
10
|
+
*/
|
|
11
|
+
export declare function useRuntimeRowState(rowSource: () => Record<string, any>): {
|
|
12
|
+
setRowField: (fieldKey: string, value: any, source: FormStateMutationSource) => void;
|
|
13
|
+
patchRow: (values: Record<string, any>, source: FormStateMutationSource) => void;
|
|
14
|
+
getRowFieldPath: (fieldKey: string) => string;
|
|
15
|
+
markRowFieldUserModified: (fieldKey: string) => void;
|
|
16
|
+
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
1
|
+
import { FormRuleAttach } from './types';
|
|
2
|
+
/** 公式校验器通过 rule 取得当前行,仅保留稳定行定位信息。 */
|
|
3
3
|
export type AttachRuleContext = {
|
|
4
|
-
_belongFieldId?: string;
|
|
5
|
-
_optionValue?: any;
|
|
6
|
-
_multiple?: boolean;
|
|
7
4
|
_subtableFieldId?: string;
|
|
8
|
-
|
|
9
|
-
_childSubTableDataIndex?: number;
|
|
5
|
+
_rowKey?: string;
|
|
10
6
|
};
|
|
11
7
|
/** 取规则对应的当前行 / 主表 formData */
|
|
12
8
|
export declare function getCurrentFormData(_rule: AttachRuleContext, options: {
|
|
13
9
|
formData?: any;
|
|
14
10
|
}): any;
|
|
15
|
-
/** 从 rule 或 meta.attach 解析上下文 */
|
|
16
|
-
export declare function resolveAttachContext(rule: AttachRuleContext | undefined, metaAttach?: FormRuleMeta['attach']): AttachRuleContext | undefined;
|
|
17
11
|
/** 引用字段是否处于激活选项下 */
|
|
18
|
-
export declare function isAttachFieldActive(
|
|
12
|
+
export declare function isAttachFieldActive(attach: FormRuleAttach | null | undefined, formData: Record<string, any> | undefined): boolean;
|
|
19
13
|
/** 当前行数据下引用字段是否应对用户呈现 */
|
|
20
14
|
export declare function isReferenceOptionActive(referenceInfo: {
|
|
21
15
|
belongFieldId?: string;
|
|
@@ -18,7 +18,8 @@ export declare function mergeSubmitValidation(current: ValidationCommentMap, sub
|
|
|
18
18
|
/** 子表结构变更后,去掉已失效 path 的错误态 */
|
|
19
19
|
export declare function pruneValidationComments(current: ValidationCommentMap, validPaths: Set<string>): ValidationCommentMap;
|
|
20
20
|
/**
|
|
21
|
-
* display 合并:按本轮 validatedPaths 更新;清掉已卸载 path
|
|
21
|
+
* display 合并:按本轮 validatedPaths 更新;清掉已卸载 path。
|
|
22
|
+
* 可编辑字段的必填错误由提交校验产生,空值在 display/change 模式下不会重跑 manual 规则。
|
|
22
23
|
*/
|
|
23
|
-
export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[]): ValidationCommentMap;
|
|
24
|
+
export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[], resolvePayload: ResolvePayload): ValidationCommentMap;
|
|
24
25
|
export {};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ValidationRunMode, ValidateResult } from './types';
|
|
1
|
+
import { ValidationRunMode, ValidateResult, FormRuleEntry } from './types';
|
|
3
2
|
type RunValidationOptions = {
|
|
3
|
+
entries: ReadonlyMap<string, FormRuleEntry>;
|
|
4
4
|
mode?: ValidationRunMode;
|
|
5
5
|
/** 表单级 keepExceptionHighlight */
|
|
6
6
|
keepExceptionHighlight?: boolean | null;
|
|
7
|
+
/** 可选的目标字段路径;未传时校验当前表单的全部已注册字段 */
|
|
8
|
+
paths?: Iterable<string>;
|
|
7
9
|
};
|
|
8
10
|
/**
|
|
9
11
|
* 按 mode 过滤规则并执行 async-validator
|
|
10
12
|
*/
|
|
11
|
-
export declare function runValidation(formData: Record<string, any>,
|
|
12
|
-
/** 供 merge 使用:取某 path 当前值与规则 */
|
|
13
|
-
export declare function resolvePayloadForPath(path: string, flatData: Record<string, any>): {
|
|
14
|
-
value: any;
|
|
15
|
-
rules: any[];
|
|
16
|
-
} | null;
|
|
13
|
+
export declare function runValidation(formData: Record<string, any>, options: RunValidationOptions): Promise<ValidateResult>;
|
|
17
14
|
export {};
|
|
@@ -12,20 +12,22 @@ export type ValidateTrigger = 'change' | 'blur' | 'manual';
|
|
|
12
12
|
* - display: 展示用(只读含必填;可编辑不含必填),不拦提交
|
|
13
13
|
*/
|
|
14
14
|
export type ValidationRunMode = ValidateTrigger | 'all' | 'display';
|
|
15
|
+
export interface FormRuleAttach {
|
|
16
|
+
belongFieldId: string;
|
|
17
|
+
optionValue: any;
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
subtableFieldId?: string;
|
|
20
|
+
rowKey?: string;
|
|
21
|
+
/** 嵌套引用条件从内层向外层串联,任一未激活就跳过当前字段。 */
|
|
22
|
+
parent?: FormRuleAttach;
|
|
23
|
+
}
|
|
15
24
|
export type FormRuleMeta = {
|
|
16
25
|
/** 禁用 / 只读,不可编辑 */
|
|
17
26
|
blocked: boolean;
|
|
18
27
|
/** 字段级:是否在 display 时保留异常标红;未配置时跟随表单 */
|
|
19
28
|
keepExceptionHighlight?: boolean;
|
|
20
29
|
/** 布尔/枚举引用字段附着上下文(门禁用,不依赖 rule 对象上的挂载字段) */
|
|
21
|
-
attach?:
|
|
22
|
-
belongFieldId: string;
|
|
23
|
-
optionValue: any;
|
|
24
|
-
multiple?: boolean;
|
|
25
|
-
subtableFieldId?: string;
|
|
26
|
-
realRowIndex?: number;
|
|
27
|
-
childSubTableDataIndex?: number;
|
|
28
|
-
} | null;
|
|
30
|
+
attach?: FormRuleAttach | null;
|
|
29
31
|
};
|
|
30
32
|
export type ValidateResult = {
|
|
31
33
|
isValid: boolean;
|
|
@@ -42,3 +44,8 @@ export type ValidateResult = {
|
|
|
42
44
|
flatData?: Record<string, any>;
|
|
43
45
|
};
|
|
44
46
|
export type ValidationCommentMap = Record<string, any[]> | null;
|
|
47
|
+
/** 实例编译器原子发布的一条字段规则及门禁元数据。 */
|
|
48
|
+
export interface FormRuleEntry {
|
|
49
|
+
rules: any[];
|
|
50
|
+
meta: FormRuleMeta;
|
|
51
|
+
}
|
|
@@ -9,6 +9,12 @@ export declare const rangeCompareMessage: (op: RangeCompareOp, val: any) => stri
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const toUnixTimestamp: (input: any) => number | null;
|
|
11
11
|
export declare const buildError: (validatorInfo: any, message: string) => string;
|
|
12
|
+
/**
|
|
13
|
+
* 比较错误内容时显式包含 message:async-validator 的公式规则可能返回原生 Error,
|
|
14
|
+
* 其 message 不可枚举,直接 JSON.stringify 会漏掉变化后的上下限文案。
|
|
15
|
+
* 普通字段和业务校验共用此比较,保留字段及其他错误信息原有的变化判断。
|
|
16
|
+
*/
|
|
17
|
+
export declare function areValidationCommentsEqual(left: any[] | undefined, right: any[] | undefined): boolean;
|
|
12
18
|
export declare const createRule: (validator: Function, message: string, trigger?: ValidateTrigger) => {
|
|
13
19
|
required: boolean;
|
|
14
20
|
validator: Function;
|
|
@@ -33,5 +33,5 @@ export declare const calcUtils: {
|
|
|
33
33
|
pageListRecursion: (realDealWithList: Array<IDealWithItem | IDealWithItem[]>, maxHeight: number) => IPageItem[];
|
|
34
34
|
/** 获取分页数据列表 */
|
|
35
35
|
getPageData: (pageList: any, baseMarketObj: any) => IPageData[];
|
|
36
|
-
initCalc: (runtimeJson: any, formState: any) =>
|
|
36
|
+
initCalc: (runtimeJson: any, formState: any) => any;
|
|
37
37
|
};
|
|
@@ -16,6 +16,9 @@ export interface ICheckDsFetchResult {
|
|
|
16
16
|
data: any[];
|
|
17
17
|
}
|
|
18
18
|
type CheckDsRuntimeContext = {
|
|
19
|
+
/** 表单级数据源、模型和脚本配置。 */
|
|
20
|
+
formConfig: Record<string, any>;
|
|
21
|
+
/** 当前 Sheet 的检验表结构与行坐标。 */
|
|
19
22
|
paper: any;
|
|
20
23
|
instanceId: string;
|
|
21
24
|
cloneRuntimeJson: Record<string, any>;
|
|
@@ -32,14 +35,13 @@ export declare function getCheckTableSnapshotKey(checkInfo: ICheckTable2DInfo):
|
|
|
32
35
|
* @returns 字段映射 + 原始数据;未配置 M08 数据源时返回 null
|
|
33
36
|
*/
|
|
34
37
|
export declare function fetchMedProCheckDsData(payload: {
|
|
35
|
-
|
|
38
|
+
formConfig: Record<string, any>;
|
|
36
39
|
instanceId: string;
|
|
37
40
|
}): Promise<ICheckDsFetchResult | null>;
|
|
38
41
|
/**
|
|
39
42
|
* 非 MedPro + checkDsType = default:按检验计划拉取检验项
|
|
40
43
|
*/
|
|
41
44
|
export declare function fetchCheckDsDataForTable(payload: {
|
|
42
|
-
paper: any;
|
|
43
45
|
instanceId: string;
|
|
44
46
|
checkInfo: ICheckTable2DInfo;
|
|
45
47
|
}): Promise<ICheckDsTableFetchResult | null>;
|
|
@@ -47,7 +49,6 @@ export declare function fetchCheckDsDataForTable(payload: {
|
|
|
47
49
|
* 非 MedPro + checkDsType = custom:按自定义检验项拉取
|
|
48
50
|
*/
|
|
49
51
|
export declare function fetchCustomCheckDsData(payload: {
|
|
50
|
-
paper: any;
|
|
51
52
|
instanceId: string;
|
|
52
53
|
checkInfo: ICheckTable2DInfo;
|
|
53
54
|
}): Promise<ICheckDsTableFetchResult | null>;
|
|
@@ -3,6 +3,8 @@ export declare class CodeRunner {
|
|
|
3
3
|
* 导出方法
|
|
4
4
|
*/
|
|
5
5
|
exports: any;
|
|
6
|
+
/** 实例替换或销毁后禁止再发起脚本事件。 */
|
|
7
|
+
private disposed;
|
|
6
8
|
/**
|
|
7
9
|
* constructor
|
|
8
10
|
* @param runtimeJs 运行时 js
|
|
@@ -16,6 +18,8 @@ export declare class CodeRunner {
|
|
|
16
18
|
* @returns
|
|
17
19
|
*/
|
|
18
20
|
invoke(method: string, ...args: any[]): any;
|
|
21
|
+
/** 释放导出函数及其对表单数据的闭包引用;已开始执行的用户异步脚本由其自身结束。 */
|
|
22
|
+
dispose(): void;
|
|
19
23
|
/**
|
|
20
24
|
* 解析可用函数
|
|
21
25
|
* @param code
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormTypeEnum } from '../constant';
|
|
2
2
|
import { FormTmplBomController } from '../hooks';
|
|
3
|
+
import { RuntimeFieldMetadata } from '../runtime/runtime-field-registry';
|
|
3
4
|
/** 渲染端公共类 */
|
|
4
5
|
export declare const renderUtils: {
|
|
5
6
|
getValue: (modelValue: any, multiple: any) => any;
|
|
@@ -68,7 +69,7 @@ export declare const renderUtils: {
|
|
|
68
69
|
/** 处理字段列表-优先编辑 */
|
|
69
70
|
deduplicateFields: (data: any) => any[];
|
|
70
71
|
/** 根据模板信息集合筛选字段信息集合 */
|
|
71
|
-
getFieldsByDataCenter: (dataCenter: any, useDynRowHeight: boolean) => Promise<{
|
|
72
|
+
getFieldsByDataCenter: (dataCenter: any, useDynRowHeight: boolean, sheetId?: string) => Promise<{
|
|
72
73
|
foreignFields: unknown[];
|
|
73
74
|
subModelFields: {
|
|
74
75
|
masterFieldKey: any;
|
|
@@ -83,9 +84,11 @@ export declare const renderUtils: {
|
|
|
83
84
|
tdIdGroups: Map<any, any>;
|
|
84
85
|
useClsReasonDataLink: string[];
|
|
85
86
|
useClsGroupDataLink: string[];
|
|
87
|
+
fieldLocations: any[];
|
|
88
|
+
fieldMetadata: RuntimeFieldMetadata;
|
|
86
89
|
}>;
|
|
87
90
|
/** 提前设置值给widget */
|
|
88
|
-
setRequestInfo2DataCenter: (
|
|
91
|
+
setRequestInfo2DataCenter: (dataCenters: any, modelKeys: any, platformType: any, isMockReport: any, formType: FormTypeEnum, paramsConfig: any, useSignFields: any, useClsReasonDataLink: any, useClsGroupDataLink: any, tmplBomC: FormTmplBomController, modelQueries: any) => Promise<void>;
|
|
89
92
|
/** 获取默认值集合 */
|
|
90
93
|
getDefaultValueMapByField: ({ defaultValueFields, mainMaterialNo, mainRelatedLotNo, mainProductName, mainRoutingOperation, mainMfgOrderId, mainWarehouseId, mainLotSnId, mainProductQty, mainSterilizationLot, mainSterilizationLotId, defaultUserId, defaultOrgId, operationData, productData, mfgOrderData, sopList, ESOPData, materialNoData, relatedLotNoData, sterilizeLotData, warehouseData, }: {
|
|
91
94
|
defaultValueFields: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderModeEnum } from '../constant';
|
|
2
2
|
import { ICheckTableConfig } from './front-config';
|
|
3
|
-
import { IPaper } from '../types';
|
|
4
3
|
import { SubTableCoreFactory } from '../core/factory/sub-table-factory';
|
|
4
|
+
import { RuntimeTableRelation } from '../runtime/table-row-identity';
|
|
5
5
|
/** 将源数据转换为子表数据 */
|
|
6
6
|
declare function transformSourceData2SubTable(data: any, dict?: {},
|
|
7
7
|
/** 默认值 */
|
|
@@ -28,19 +28,18 @@ export declare const transformUtils: {
|
|
|
28
28
|
subTableInfo: Array<any>;
|
|
29
29
|
/** 渲染模式 */
|
|
30
30
|
viewMode: RenderModeEnum;
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
/** 数据中心 */
|
|
34
|
-
|
|
31
|
+
/** 全部 Sheet 共享的表单配置。 */
|
|
32
|
+
formConfig: Record<string, any>;
|
|
33
|
+
/** 各 Sheet 数据中心 */
|
|
34
|
+
dataCenters: Array<Record<string, any>>;
|
|
35
35
|
}) => {
|
|
36
36
|
_DICT: {};
|
|
37
37
|
_OPCT: {};
|
|
38
38
|
_MCTABLE: {};
|
|
39
39
|
};
|
|
40
|
-
/**
|
|
40
|
+
/** 请求参数映射数据;参数映射是实例级配置,与当前 Sheet 无关。 */
|
|
41
41
|
getParamData: (payload: {
|
|
42
|
-
|
|
43
|
-
paper: any;
|
|
42
|
+
formConfig: Record<string, any>;
|
|
44
43
|
/** 参数配置 */
|
|
45
44
|
paramsConfig: any;
|
|
46
45
|
/** 子表信息 */
|
|
@@ -59,8 +58,10 @@ export declare const transformUtils: {
|
|
|
59
58
|
* @returns 待落库的 checkTableConfig;无检验表或未产生快照时返回 undefined
|
|
60
59
|
*/
|
|
61
60
|
requestCheckDsData: (payload: {
|
|
62
|
-
/**
|
|
61
|
+
/** 当前 Sheet 的纸张和检验表坐标配置。 */
|
|
63
62
|
paper: any;
|
|
63
|
+
/** 表单级数据源配置。 */
|
|
64
|
+
formConfig: Record<string, any>;
|
|
64
65
|
/** 当前表单实例 id,用于协议/接口查询 */
|
|
65
66
|
instanceId: string;
|
|
66
67
|
/** 运行时 JSON 副本,扩行时会直接修改 */
|
|
@@ -70,10 +71,9 @@ export declare const transformUtils: {
|
|
|
70
71
|
/** 实例已落库的 frontConfig(JSON 字符串) */
|
|
71
72
|
frontConfig?: string;
|
|
72
73
|
}) => Promise<ICheckTableConfig | undefined>;
|
|
73
|
-
/**
|
|
74
|
+
/** 请求自定义数据源;整份表单只执行一次。 */
|
|
74
75
|
requestCustomSourceData: (payload: {
|
|
75
|
-
|
|
76
|
-
paper: any;
|
|
76
|
+
formConfig: Record<string, any>;
|
|
77
77
|
/** 参数配置 */
|
|
78
78
|
paramsConfig: any;
|
|
79
79
|
/** 表单实例id */
|
|
@@ -81,20 +81,18 @@ export declare const transformUtils: {
|
|
|
81
81
|
/** 子表信息 */
|
|
82
82
|
subTableInfo: Array<any>;
|
|
83
83
|
}) => Promise<any[]>;
|
|
84
|
-
/**
|
|
84
|
+
/** 初始化数据事件;整份多 Sheet 表单只执行一次。 */
|
|
85
85
|
getEventInitDataLoad: (payload: {
|
|
86
|
-
|
|
87
|
-
paper: any;
|
|
86
|
+
formConfig: Record<string, any>;
|
|
88
87
|
/** 参数配置 */
|
|
89
88
|
paramsConfig: any;
|
|
90
89
|
/** 渲染模式 */
|
|
91
90
|
viewMode: RenderModeEnum;
|
|
92
91
|
ofCtx: any;
|
|
93
92
|
}) => Promise<any>;
|
|
94
|
-
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
paper: any;
|
|
93
|
+
/** 创建字段事件执行器;注册后由 RuntimeInstanceRecord 持有,全部 Sheet 共用。 */
|
|
94
|
+
createScriptRunner: (payload: {
|
|
95
|
+
formConfig: Record<string, any>;
|
|
98
96
|
formState: any;
|
|
99
97
|
/** 渲染模式 */
|
|
100
98
|
viewMode: RenderModeEnum;
|
|
@@ -125,7 +123,9 @@ export declare const transformUtils: {
|
|
|
125
123
|
/** 子表处理工厂 */
|
|
126
124
|
subTableCoreFactory: SubTableCoreFactory;
|
|
127
125
|
/** 纸张信息 */
|
|
128
|
-
|
|
126
|
+
formConfig: Record<string, any>;
|
|
127
|
+
/** 与 Store/渲染端共用的实例级二维关联配置。 */
|
|
128
|
+
tableRelations?: readonly RuntimeTableRelation[];
|
|
129
129
|
}) => {
|
|
130
130
|
_DICT: {};
|
|
131
131
|
_OPCT: {};
|
|
@@ -137,8 +137,12 @@ export declare const transformUtils: {
|
|
|
137
137
|
_OPCT: {};
|
|
138
138
|
_MCTABLE: {};
|
|
139
139
|
};
|
|
140
|
-
/**
|
|
141
|
-
getSubmitFormData: (formData: any,
|
|
140
|
+
/** 数据转成真实提交数据(二维表要平铺);layout 是所有 Sheet 的业务表汇总索引。 */
|
|
141
|
+
getSubmitFormData: (formData: any, layout: {
|
|
142
|
+
subTable2DList?: any[];
|
|
143
|
+
checkTable2DList?: any[];
|
|
144
|
+
materialConsumeTableList?: any[];
|
|
145
|
+
}) => Partial<{}>;
|
|
142
146
|
getFormDataIdsMap: (formData: any, preserveKeys?: string[]) => any;
|
|
143
147
|
};
|
|
144
148
|
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BusinessFieldIdentity } from './field-identity';
|
|
2
|
+
/** 任务从登记到结束的状态;失败任务会保留到替换、取消或实例销毁。 */
|
|
3
|
+
export type RuntimeAsyncTaskStatus = 'pending' | 'fulfilled' | 'rejected' | 'cancelled';
|
|
4
|
+
/** 暴露给界面和诊断逻辑的任务信息,不包含 Promise、序号等内部对象。 */
|
|
5
|
+
export interface RuntimeAsyncTaskSnapshot {
|
|
6
|
+
/** 实例内稳定的任务键,例如 upload:file:{widgetId}:{fileUid}。 */
|
|
7
|
+
key: string;
|
|
8
|
+
/** 业务字段路径,用于提交失败时指出具体字段。 */
|
|
9
|
+
fieldKey?: string;
|
|
10
|
+
/** 模型 + 字段身份,数据路径相同时也能指出具体业务字段。 */
|
|
11
|
+
fieldIdentity?: BusinessFieldIdentity;
|
|
12
|
+
/** 任务所属 Sheet,用于后续错误导航和标签提示。 */
|
|
13
|
+
sheetId?: string;
|
|
14
|
+
/** 提交是否必须等待此任务完成。 */
|
|
15
|
+
required: boolean;
|
|
16
|
+
status: RuntimeAsyncTaskStatus;
|
|
17
|
+
/** rejected 状态对应的原始错误。 */
|
|
18
|
+
error?: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface RunRuntimeAsyncTaskOptions {
|
|
21
|
+
/** 任务对应的业务字段路径。 */
|
|
22
|
+
fieldKey?: string;
|
|
23
|
+
/** 模型 + 字段身份,数据路径相同时也能指出具体业务字段。 */
|
|
24
|
+
fieldIdentity?: BusinessFieldIdentity;
|
|
25
|
+
/** 任务对应的工作表。 */
|
|
26
|
+
sheetId?: string;
|
|
27
|
+
/** 默认 true;为 true 时提交事务会等待它并检查执行结果。 */
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/** 默认 true;同 key 新任务开始前是否主动终止旧任务。 */
|
|
30
|
+
replace?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 表单实例级异步任务中心。
|
|
34
|
+
*
|
|
35
|
+
* 上传、扫码、设备读取、公式和远程回填可能在切换 Sheet 后才返回。协调器按任务 key
|
|
36
|
+
* 保存当前有效任务,同 key 的新任务会让旧结果失效,从而阻止过期响应覆盖新输入。
|
|
37
|
+
* RuntimePersistenceCoordinator 在提交前调用 waitForRequired(),保证提交数据已经包含所有
|
|
38
|
+
* 必须完成的异步结果。每个 RuntimeInstanceRecord 只创建一个协调器,由全部 Sheet 共享。
|
|
39
|
+
*/
|
|
40
|
+
export declare class RuntimeAsyncTaskCoordinator {
|
|
41
|
+
/** 只保留仍需跟踪的任务;成功任务完成后立即移除,失败任务保留用于提交报错。 */
|
|
42
|
+
private readonly tasks;
|
|
43
|
+
/** 实例内单调递增的任务版本,用于识别同 key 的过期响应。 */
|
|
44
|
+
private sequence;
|
|
45
|
+
/**
|
|
46
|
+
* 登记并执行一个异步任务。
|
|
47
|
+
*
|
|
48
|
+
* executor 应使用传入的 AbortSignal 中止可取消的网络或设备操作。即使底层操作不支持
|
|
49
|
+
* 中止,完成回调仍会通过 sequence 和 signal 判断是否过期;过期结果统一返回 undefined,
|
|
50
|
+
* 调用方不得再据此回填字段。
|
|
51
|
+
*/
|
|
52
|
+
run<T>(key: string, executor: (signal: AbortSignal) => Promise<T>, options?: RunRuntimeAsyncTaskOptions): Promise<T | undefined>;
|
|
53
|
+
/** 取消指定 key 的当前任务;后续返回值会被 run() 的竞态检查丢弃。 */
|
|
54
|
+
cancel(key: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* 等待全部 required 任务达到稳定状态。
|
|
57
|
+
*
|
|
58
|
+
* 一轮任务完成后的字段回填可能触发新的公式或远程任务,因此这里循环读取任务表,直到
|
|
59
|
+
* 没有新的 pending required 任务。稳定后统一检查失败项,使提交事务得到明确失败原因。
|
|
60
|
+
*/
|
|
61
|
+
waitForRequired(keyPrefix?: string): Promise<void>;
|
|
62
|
+
/** 返回只读用途的任务快照,避免外部代码操作内部 Promise 和 AbortController。 */
|
|
63
|
+
snapshots(): RuntimeAsyncTaskSnapshot[];
|
|
64
|
+
/** 实例销毁时取消全部任务,防止卸载后的异步响应继续回填数据。 */
|
|
65
|
+
dispose(): void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** 仅复制发生转换的分支,不修改传入的模板或后端运行时快照。 */
|
|
2
|
+
export declare function normalizeHistoricalFieldConfig(value: any): any;
|
|
3
|
+
/** 历史 RDO 的 __DEFAULT__ 是部分字段默认值;在选中对象输入边界补齐后再交给自动填充。 */
|
|
4
|
+
export declare function normalizeHistoricalAutofillRow(defaults: Record<string, any> | undefined, row: Record<string, any>): Record<string, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RuntimeFieldRegistry } from '../runtime-field-registry';
|
|
2
|
+
import { RuntimeFormStateStore } from '../runtime-form-state-store';
|
|
3
|
+
export interface HistoricalAnnotationConversionContext {
|
|
4
|
+
/** 所属实例的统一字段索引,用于补齐模型身份及真实业务字段。 */
|
|
5
|
+
fields: RuntimeFieldRegistry;
|
|
6
|
+
/** 所属实例的数据,只查询稳定行键,不按当前下标猜测历史行。 */
|
|
7
|
+
formState: RuntimeFormStateStore;
|
|
8
|
+
sheetId?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 已携带稳定行键的旧 __RID__/__FIELD__ 坐标转为统一字段位置,移除冗余 __COL__ 列下标。
|
|
12
|
+
* 新字段位置和行级位置直接保留;纯下标路径、模型歧义或不存在的行返回 undefined。
|
|
13
|
+
* 只返回转换结果,不修改批注原记录、模板或填报数据。
|
|
14
|
+
*/
|
|
15
|
+
export declare function convertHistoricalAnnotationLocation(path: string, { fields, formState, sheetId }: HistoricalAnnotationConversionContext): string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 历史数据转换的统一目录。
|
|
3
|
+
* 后续格式转换按对象分别建文件,在模板/草稿/批注等输入边界调用;
|
|
4
|
+
* 转换后交给标准 runtime,不在组件或实例服务内分散识别历史结构。
|
|
5
|
+
* 转换函数只整理数据,不发请求、不操作 DOM,也不自行保存业务数据。
|
|
6
|
+
*/
|
|
7
|
+
export * from './v1-runtime';
|
|
8
|
+
export * from './historical-annotation';
|
|
9
|
+
export * from './field-config';
|
|
10
|
+
export { normalizeAIOcrTmpl } from './ocr-template';
|
|
11
|
+
export * from './business-row';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DeviceLink } from '../../hooks/device-link/types';
|
|
2
|
+
export declare const DEFAULT_RECOMMENDED_PROMPT = "\u4EFB\u52A1\uFF1A\u56FE\u7247OCR\u6587\u5B57\u63D0\u53D6\n\u89C4\u5219\uFF1A\u4E0D\u865A\u6784\u5185\u5BB9\uFF0C\u627E\u4E0D\u5230\u6570\u636E\u8FD4\u56DE\u7A7A\uFF0C\u4EC5\u8F93\u51FA\u63D0\u53D6\u7ED3\u679C\n\u7ED3\u679C\u586B\u5145\u81F3${\u76EE\u6807\u5B57\u6BB5}\n\u586B\u5199\u63D0\u53D6\u89C4\u5219\uFF1A";
|
|
3
|
+
/**
|
|
4
|
+
* 补齐 OCR 模板新增字段,并保持历史配置的原有行为。
|
|
5
|
+
* 历史模板没有提示词模式时按原来的普通模式处理。
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeAIOcrTmpl(tmpl: DeviceLink.AIOcrTmpl): DeviceLink.AIOcrTmpl;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NormalizedRuntimeDocument, RuntimeNodeMap } from '../multi-sheet-runtime';
|
|
2
|
+
/** v1 没有 Sheet 标识,转换时使用固定值,保证同一份模板每次打开结果一致。 */
|
|
3
|
+
export declare const LEGACY_RUNTIME_SHEET_ID = "__legacy_sheet__";
|
|
4
|
+
export declare const LEGACY_RUNTIME_SHEET_TITLE = "\u5DE5\u4F5C\u8868 1";
|
|
5
|
+
/** 历史 runtimeJson 中存放在 paper.props、实际属于整份实例的配置。 */
|
|
6
|
+
export declare const LEGACY_RUNTIME_FORM_CONFIG_KEYS: readonly ["globalParams", "paramsMapList", "unitConversionRules", "inspectionDecisionRule", "customDataSource", "objectInitialValues", "javascript", "checkSignatureConfig", "keepExceptionHighlight", "objectFieldList", "dateObjects"];
|
|
7
|
+
/** 历史运行时:paper 和所有节点都直接放在文档顶层。 */
|
|
8
|
+
export interface RuntimeDocumentV1 extends RuntimeNodeMap {
|
|
9
|
+
schemaVersion?: 1;
|
|
10
|
+
formConfig?: Record<string, any>;
|
|
11
|
+
paper: any;
|
|
12
|
+
}
|
|
13
|
+
/** 使用新对象移除已提升到表单层的配置,不修改传入的历史模板。 */
|
|
14
|
+
export declare function stripLegacyFormConfigFromPaper(paper: Record<string, any>): {
|
|
15
|
+
props: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 将顶层 paper + nodes 包装为单 Sheet,并把历史表单配置提升到 formConfig。
|
|
19
|
+
* 保留来源版本 1;本函数不保存模板。输出的节点关系由 normalizeRuntime 统一校验。
|
|
20
|
+
*/
|
|
21
|
+
export declare function convertV1Runtime(runtime: Record<string, any>): NormalizedRuntimeDocument;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FIELD_TYPE } from '../../../shared/enum';
|
|
2
|
+
/**
|
|
3
|
+
* 日期数据合规处理函数
|
|
4
|
+
* - 日期字段:截断时间部分,仅保留日期 (例: 2021-05-06 → 2021-05-06, 2021-05-06 00:00:00 → 2021-05-06, 2021-05-06 5:21:12 → 2021-05-06),格式不符返回空
|
|
5
|
+
* - 日期时间字段:补充时间部分为00:00:00 (例: 2021-05-06 → 2021-05-06 00:00:00),格式不符返回空
|
|
6
|
+
* - 时间字段:截断日期部分,仅保留时间部分 (例: 2021-05-06 5:21:12 → 5:21:12),格式不符返回空
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatDateCompliance(value: any, fieldTypeVal: FIELD_TYPE): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface BusinessFieldIdentity {
|
|
2
|
+
fieldId?: string;
|
|
3
|
+
modelKey?: string;
|
|
4
|
+
subModelKey?: string;
|
|
5
|
+
}
|
|
6
|
+
/** 实际数据字段键与业务身份分开:关联字段写 fieldLink,其余字段写 field。 */
|
|
7
|
+
export declare function getRuntimeDataFieldId(props?: Record<string, any>): string;
|
|
8
|
+
/**
|
|
9
|
+
* 生成多 Sheet 实例内稳定的业务字段键。
|
|
10
|
+
* 所有字段都按模型 + 字段区分,不同模型允许存在相同字段 key。
|
|
11
|
+
*/
|
|
12
|
+
export declare function getBusinessFieldKey(field: BusinessFieldIdentity): string;
|
|
13
|
+
/** 一个具体填报位置;二维单元格使用子行自己的 rowKey,无须附加数字列号。 */
|
|
14
|
+
export interface RuntimeFieldPosition extends BusinessFieldIdentity {
|
|
15
|
+
subFieldKey?: string;
|
|
16
|
+
rowKey?: string;
|
|
17
|
+
}
|
|
18
|
+
/** 模型和各级键分别编码,避免字段/行键中的下划线、点或分隔符产生歧义。 */
|
|
19
|
+
export declare function buildRuntimeFieldPath(position: RuntimeFieldPosition): string;
|
|
20
|
+
/** 所有校验、批注及导航共用一个解析入口;数字下标路径不再参与新运行时识别。 */
|
|
21
|
+
export declare function parseRuntimeFieldPath(path: string): RuntimeFieldPosition | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IParseFormulaVar } from '../types';
|
|
2
|
+
export declare const getParseFormulaVarInfos: (expr?: string) => {
|
|
3
|
+
rowArgs: string[];
|
|
4
|
+
parseInfos: IParseFormulaVar[];
|
|
5
|
+
};
|
|
6
|
+
/** 当前行变量从 formData 解析;主表及子表汇总变量从完整实例解析,可跨 Sheet 引用。 */
|
|
7
|
+
export declare const calculateFormula: (expr: string, formData: any, instanceFormState: any) => Promise<any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './multi-sheet-runtime';
|
|
2
|
+
export * from './conversions';
|
|
3
|
+
export * from './runtime-context';
|
|
4
|
+
export * from './field-identity';
|
|
5
|
+
export * from './table-row-identity';
|
|
6
|
+
export * from './runtime-instance-controller';
|
|
7
|
+
export * from './runtime-sheet-service';
|
|
8
|
+
export * from './runtime-form-state-store';
|
|
9
|
+
export * from './async-task-coordinator';
|
|
10
|
+
export * from './runtime-dependency-service';
|
|
11
|
+
export * from './runtime-instance-registry';
|
|
12
|
+
export type { RuntimeConsoleDebug, RuntimeConsoleDebugTarget, RuntimeSubmitDataDebugOptions, } from './runtime-console-debug';
|
|
13
|
+
export * from './runtime-rule-compiler';
|
|
14
|
+
export * from './runtime-field-registry';
|
|
15
|
+
export * from './runtime-persistence-coordinator';
|
|
16
|
+
export * from './runtime-instance-event-bus';
|
|
17
|
+
export * from './runtime-validation-service';
|
|
18
|
+
export { calculateFormula, getParseFormulaVarInfos } from './formula-utils';
|