@gct-paas/excel 0.1.37-beta.1 → 0.1.37
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-B1JTKMB5.js → BaseComponent-5QpH6Rui.js} +1 -18
- package/dist/{VueVideoPlayer-C6a9Wt23.js → VueVideoPlayer-DZh8_F3v.js} +2 -2
- package/dist/{align-editor-BIgxBb3c.js → align-editor-BTvIuOVN.js} +1 -1
- package/dist/{barcode-design-jauXuqY4.js → barcode-design-D3g_D7hp.js} +2 -2
- package/dist/base/index.es.js +2798 -2138
- package/dist/{diagonal-design-C9tqO57r.js → diagonal-design-BinP4Wlt.js} +2 -2
- package/dist/{dynamic-table-action-CNEd7Opa.js → dynamic-table-action-Ckc4yetB.js} +3115 -7204
- 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-CGpmtwPb.js} +24570 -23742
- package/dist/{edit.utils-CXmmCnxE-BSdD_tOR.js → edit.utils-CXmmCnxE-DDvf_1B1.js} +1 -1
- package/dist/excel.css +1204 -2454
- package/dist/{exceljs.min-oR-WKkXQ.js → exceljs.min-jNu29iVm.js} +2 -2
- package/dist/{font-editor-C5Soj9Z6.js → font-editor-B6cYSWqo.js} +3 -3
- package/dist/{image-design-CE8RmqGR.js → image-design-kQ2vbtwc.js} +2 -2
- package/dist/{index-CUTR4fki.js → index-B5HIN-qO.js} +2 -2
- package/dist/{index-Crv-QUy2.js → index-B9sZfT3j.js} +2 -2
- package/dist/{index-3LBp3SD1.js → index-BJyfzYBO.js} +2 -2
- package/dist/{index-Dw7SQNDy.js → index-BNiGRPzJ.js} +1 -1
- package/dist/{index-Csrs6rUq.js → index-BPKmoc5N.js} +2 -2
- package/dist/{index-m0iGs0bS.js → index-BWEQIjQE.js} +1 -1
- package/dist/{index-BQj90WDT.js → index-BaCxUMCF.js} +2 -2
- package/dist/{index-DNBaMDBY.js → index-Bk8MpwGt.js} +2 -2
- package/dist/{index-CWj5bguA.js → index-BqI7r_XC.js} +2 -2
- package/dist/{index-CJ0cvjoI.js → index-BtZbUJqv.js} +3 -5
- package/dist/{index-KcZJqM3I.js → index-C1DOk9t-.js} +1 -1
- package/dist/{index-Dgu35iIj.js → index-C3HGy13G.js} +1 -1
- package/dist/{index-BBp4UgsU.js → index-C4tkNDTa.js} +2 -2
- package/dist/{index-CA6CWt8y.js → index-C5ESFU7b.js} +1 -1
- package/dist/{index-CZM8egvr.js → index-C8ArafDL.js} +2 -2
- package/dist/{index-BJdOVQGJ.js → index-C91SfhAb.js} +1 -1
- package/dist/{index-XKBhl9Or.js → index-CkgB26Uk.js} +3 -3
- package/dist/{index-BVxo9GHy.js → index-ClnlX2jZ.js} +1 -1
- package/dist/{index-mpoqOir8.js → index-CnTC_LFJ.js} +2 -2
- package/dist/{index-BOfw4m4-.js → index-D3Oj5SoQ.js} +3 -3
- package/dist/{index-D6Z8-FC9.js → index-DCMnBDPA.js} +237 -432
- package/dist/{index-COLdd2qs.js → index-DF5irDE9.js} +2 -2
- package/dist/{index-dbEV_ie2.js → index-DSISN2ys.js} +2 -2
- package/dist/{index-BXSzJMT7.js → index-Dg6nmj-a.js} +74 -8
- package/dist/{index-De-L8Ocw.js → index-DgUHgge3.js} +3 -3
- package/dist/{index-CE62NjDB.js → index-DnLs4s1z.js} +2 -13
- package/dist/{index-UEIdgxBp.js → index-DqDGmouR.js} +2 -2
- package/dist/{index-Dt55J9L4.js → index-DqkJPwx3.js} +3 -3
- package/dist/{index-ROHlRUFD.js → index-Dxh55nQw.js} +1 -1
- package/dist/{index-CvIbNFvq.js → index-Dzydpwhf.js} +2 -2
- package/dist/{index-DORsA1uW.js → index-KBj0_MsM.js} +2 -2
- package/dist/{index-DmFOzyWl.js → index-O4srBJlA.js} +6842 -12199
- package/dist/{index-BCxnsShs.js → index-YlVy61FH.js} +1 -1
- package/dist/{index-Be5L7-N-.js → index-avQcYIlZ.js} +2 -2
- package/dist/index.es.js +49 -49
- package/dist/{mb-render-DhKkFfcm.js → mb-render-BtXKf12F.js} +15 -21
- 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-C-9AZcTz.js} +8 -1
- package/dist/{pagination-design-Dh2ZATAE.js → pagination-design-D2EHYcDi.js} +2 -2
- package/dist/paper-widget-design-Cn1RcpGb.js +4 -0
- package/dist/{qrcode-design-Bks87yW1.js → qrcode-design-_uIcWgfD.js} +1 -1
- package/dist/{revo-grid.entry-BBZIZgKP.js → revo-grid.entry-h26i-X1O.js} +1 -1
- package/dist/{revogr-attribution_7.entry-rfjINVxu.js → revogr-attribution_7.entry-DnWhGt3I.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-Bg3AuwfG.js → revogr-clipboard_3.entry-DHP6m3aV.js} +2 -2
- package/dist/{revogr-data_4.entry-C8O2Iv2n.js → revogr-data_4.entry-CBEPKC2v.js} +2 -2
- package/dist/{revogr-filter-panel.entry-uQBhKoSX.js → revogr-filter-panel.entry-DpaMxMlv.js} +1 -1
- package/dist/{serialnumber-design-DCkPTZFe.js → serialnumber-design-KRWMAGLy.js} +1 -1
- package/dist/shared/index.es.js +26 -32
- package/dist/{single-field-drop-Bz9Z9q7-.js → single-field-drop-yih8_AXA.js} +2 -2
- package/dist/{size-editor-BKqS03Gi.js → size-editor-BqOSTI8R.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +1 -6
- package/dist/src/assets/svgs/table/index.d.ts +0 -1
- package/dist/src/domain/field/types.d.ts +2 -2
- package/dist/src/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- 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 +0 -1
- package/dist/src/domain/table/design/sub-model-matcher.d.ts +0 -1
- package/dist/src/domain/table/index.d.ts +2 -3
- package/dist/src/domain/table/registry.d.ts +0 -1
- package/dist/src/domain/table/types.d.ts +3 -8
- package/dist/src/nocode-base/src/_utils_/uuid.d.ts +0 -8
- package/dist/src/nocode-base/src/components/document-layout.vue.d.ts +0 -3
- 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/material-consume/material-consume-action.vue.d.ts +17 -0
- package/dist/src/nocode-base/src/constant/index.d.ts +2 -8
- package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +3 -11
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +1 -0
- package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +1 -0
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +1 -23
- package/dist/src/nocode-base/src/core/sub-table/sterilize-batch-table-core.d.ts +1 -0
- package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +1 -0
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +5 -0
- package/dist/src/nocode-base/src/core/types/index.d.ts +0 -4
- package/dist/src/nocode-base/src/emit/enum.d.ts +12 -2
- package/dist/src/nocode-base/src/hooks/annotation/form-change-row.d.ts +5 -7
- package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +6 -0
- 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 +3 -5
- 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 +2 -10
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +25 -13
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +6 -5
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +4 -8
- package/dist/src/nocode-base/src/hooks/material-consume-object/index.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/product-lot-link.d.ts +0 -3
- package/dist/src/nocode-base/src/hooks/material-consume-object/use-tmpl-bom.d.ts +13 -0
- package/dist/src/nocode-base/src/hooks/useDependency.d.ts +1 -2
- package/dist/src/nocode-base/src/hooks/useEbrWikiFactoryV2.d.ts +224 -0
- package/dist/src/nocode-base/src/hooks/useFormHook.d.ts +4 -7
- package/dist/src/nocode-base/src/hooks/useFormulaExpWatcher.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/useMergeSameCells.d.ts +2 -3
- package/dist/src/nocode-base/src/hooks/useNocodeEmitter.d.ts +9 -1
- package/dist/src/nocode-base/src/hooks/useRenderData.d.ts +24 -8
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +99 -63
- package/dist/src/nocode-base/src/hooks/useValidator.d.ts +18 -0
- package/dist/src/nocode-base/src/hooks/validation/attach.d.ts +10 -4
- package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +0 -1
- package/dist/src/nocode-base/src/hooks/validation/formRulesStore.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +2 -3
- package/dist/src/nocode-base/src/hooks/validation/runValidation.d.ts +8 -5
- package/dist/src/nocode-base/src/hooks/validation/scheduler.d.ts +12 -0
- package/dist/src/nocode-base/src/hooks/validation/types.d.ts +8 -15
- package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +41 -0
- package/dist/src/nocode-base/src/hooks/validation/utils.d.ts +0 -6
- package/dist/src/nocode-base/src/hooks/validation/waitForSettle.d.ts +17 -0
- package/dist/src/nocode-base/src/index.d.ts +0 -2
- package/dist/src/nocode-base/src/interface/calc.d.ts +1 -1
- package/dist/src/nocode-base/src/interface/check-ds-data.d.ts +3 -4
- package/dist/src/nocode-base/src/interface/code-runner.d.ts +0 -4
- package/dist/src/nocode-base/src/interface/render.d.ts +2 -5
- package/dist/src/nocode-base/src/interface/transform.d.ts +22 -26
- package/dist/src/nocode-base/src/types/business/index.d.ts +1 -8
- package/dist/src/nocode-base/src/types/calc/i-calc.d.ts +0 -3
- package/dist/src/nocode-base/src/types/common/base.d.ts +6 -60
- package/dist/src/nocode-base/src/types/fields/index.d.ts +0 -1
- package/dist/src/nocode-base/src/types/index.d.ts +1 -1
- package/dist/src/nocode-base/src/types/render/mb-render.d.ts +2 -4
- 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 +5 -3
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +35 -4
- package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +1 -0
- package/dist/src/nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts +7 -4
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +6 -8
- package/dist/src/online-form/src/components/version-diff/iframe/preview-iframe.vue.d.ts +0 -2
- package/dist/src/online-form/src/components/version-diff/index/types.d.ts +0 -3
- package/dist/src/online-form/src/components/version-diff/index/version-diff-index.vue.d.ts +0 -4
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -7
- package/dist/src/online-form/src/views/designer/enums/index.d.ts +1 -5
- package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/scan-field.d.ts +0 -4
- package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/utils.d.ts +0 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +677 -1083
- package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +1 -5
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +2456 -413
- 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/panel-rule-config.vue.d.ts +1 -18
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +327 -203
- package/dist/src/online-form/src/views/designer/modules/sheets/sheets-swapper.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/types/index.d.ts +26 -43
- package/dist/src/online-form/src/views/designer/utils/dom-parser.d.ts +3 -8
- package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +108 -11
- package/dist/src/online-form/src/views/render/__components__/_common_/useAutofill.d.ts +4 -2
- 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 +1 -2
- package/dist/src/online-form/src/views/render/__components__/_widget_/combine-fields/index.d.ts +0 -1
- package/dist/src/online-form/src/views/render/__components__/paper/index.d.ts +1 -2
- package/dist/src/online-form/src/views/render/__logic__/dataCenter.logic.d.ts +1 -1
- package/dist/src/online-form/src/views/render/preview-container.vue.d.ts +19 -21
- package/dist/src/shared/components/Scrollbar/src/Scrollbar.vue.d.ts +8 -8
- package/dist/src/shared/components/Signature/index.d.ts +2 -1
- package/dist/src/shared/components/Signature/logic/index.d.ts +14 -1
- package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +29 -0
- package/dist/src/shared/components/Signature/ui/sign-popover-content.vue.d.ts +2 -4
- package/dist/src/shared/components/Signature/ui/sign-preview.vue.d.ts +18 -0
- package/dist/src/shared/components/Signature/ui/sign-switcher-modal.vue.d.ts +118 -0
- 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/components/field-transfer/hooks/useModelField.d.ts +5 -0
- package/dist/src/shared/enum/field-type.d.ts +0 -23
- package/dist/src/shared/enum/online-form.d.ts +2 -8
- package/dist/src/shared/index.d.ts +0 -1
- package/dist/src/shared/types/field-meta.d.ts +0 -1
- package/dist/src/shared/utils/field-size.d.ts +2 -4
- package/dist/src/shared/utils/lot2sn.d.ts +0 -5
- package/dist/{text-design-CO7hCgdj.js → text-design-BK_VsTtK.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-Ci963h-N.js → throttle-Cpk1LoGk-DadArQT5.js} +1 -1
- package/dist/{timediff-design-DAD_BKWH.js → timediff-design-q-J7ObPi.js} +1 -1
- package/dist/{trace-like-wrapper-CWm4kuNc.js → trace-like-wrapper-CtthDv9M.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DYvH10y_.js → value-editor.vue_vue_type_style_index_0_lang-B40m6f0M.js} +2 -2
- package/dist/web-render/index.es.js +5 -5
- package/dist/{widget-barcode-Bjim1wAN.js → widget-barcode-DePyj-oR.js} +4 -4
- package/dist/{widget-diagonal-BuKYSN9U.js → widget-diagonal-BoPK84Km.js} +3 -3
- package/dist/{widget-image-VfveaM3F.js → widget-image-Bd-hAzWZ.js} +5 -5
- package/dist/{widget-line-CXpx_VYX.js → widget-line-DcQ4GjjX.js} +2 -2
- package/dist/{widget-pagination-CUk0ktR8.js → widget-pagination-D6IFtegJ.js} +5 -5
- package/dist/{widget-power-CewCZPpD.js → widget-power-dAEtqR3T.js} +3 -3
- package/dist/{widget-qrcode-DKzDDe6T.js → widget-qrcode-GkDxu48J.js} +3 -3
- package/dist/{widget-rangelimit-DbWjevfj.js → widget-rangelimit-TRqqVGXL.js} +3 -3
- package/dist/{widget-serialnumber-CDHHiXmp.js → widget-serialnumber-BdZLWmtI.js} +1 -1
- package/dist/{widget-text-BVYodujP.js → widget-text-DS8vSuAy.js} +5 -5
- package/dist/{widget-timediff-DZzXuor2.js → widget-timediff-C1n_nRUs.js} +2 -2
- package/package.json +4 -4
- package/dist/index-WDkhfpnZ.js +0 -26
- package/dist/paper-widget-design-Dj_0pnAo.js +0 -4
- package/dist/print-runtime-instance-DMTURT68.js +0 -36
- package/dist/print-snapshot-renderer-C6g7ZjmS.js +0 -76
- package/dist/seal-design-B2B84Rgt.js +0 -4
- package/dist/src/domain/field/date/sterilization-date-manifest.d.ts +0 -2
- package/dist/src/domain/field/number/inspection-module-qty-manifest.d.ts +0 -2
- package/dist/src/domain/field/seal/seal-manifest.d.ts +0 -2
- package/dist/src/domain/field/select/inspection-container-manifest.d.ts +0 -2
- package/dist/src/domain/field/text/udi-manifest.d.ts +0 -2
- package/dist/src/domain/table/business/device/maintenance/index.d.ts +0 -1
- package/dist/src/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
- package/dist/src/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
- package/dist/src/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
- package/dist/src/domain/table/business/device/point-inspection/index.d.ts +0 -1
- package/dist/src/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
- package/dist/src/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
- package/dist/src/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
- package/dist/src/domain/table/business/device/signature-lock.d.ts +0 -9
- package/dist/src/domain/table/business/material/material-substitution/index.d.ts +0 -2
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -75
- package/dist/src/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
- package/dist/src/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
- package/dist/src/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -6
- package/dist/src/nocode-base/src/components/inspection-decision-prompt-modal.vue.d.ts +0 -7
- package/dist/src/nocode-base/src/hooks/annotation/runtime-annotation-binding.d.ts +0 -17
- package/dist/src/nocode-base/src/hooks/inspection-decision-rule/evaluator.d.ts +0 -11
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +0 -56
- package/dist/src/nocode-base/src/hooks/render-page/runtime-request.d.ts +0 -24
- package/dist/src/nocode-base/src/hooks/render-page/runtime-validation.d.ts +0 -17
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +0 -64
- package/dist/src/nocode-base/src/hooks/udi.d.ts +0 -6
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +0 -3
- package/dist/src/nocode-base/src/hooks/useFieldPresentation.d.ts +0 -4
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +0 -44
- package/dist/src/nocode-base/src/hooks/useRuntimeRowState.d.ts +0 -16
- package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +0 -66
- package/dist/src/nocode-base/src/runtime/conversions/business-row.d.ts +0 -2
- package/dist/src/nocode-base/src/runtime/conversions/field-config.d.ts +0 -4
- package/dist/src/nocode-base/src/runtime/conversions/historical-annotation.d.ts +0 -15
- package/dist/src/nocode-base/src/runtime/conversions/index.d.ts +0 -11
- package/dist/src/nocode-base/src/runtime/conversions/ocr-template.d.ts +0 -7
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +0 -21
- package/dist/src/nocode-base/src/runtime/date-compliance.d.ts +0 -8
- package/dist/src/nocode-base/src/runtime/field-identity.d.ts +0 -21
- package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +0 -7
- package/dist/src/nocode-base/src/runtime/index.d.ts +0 -18
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +0 -43
- package/dist/src/nocode-base/src/runtime/runtime-console-debug.d.ts +0 -36
- package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +0 -122
- package/dist/src/nocode-base/src/runtime/runtime-dependency-service.d.ts +0 -82
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +0 -26
- package/dist/src/nocode-base/src/runtime/runtime-field-registry.d.ts +0 -90
- package/dist/src/nocode-base/src/runtime/runtime-field-rows.d.ts +0 -7
- package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +0 -15
- package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +0 -132
- package/dist/src/nocode-base/src/runtime/runtime-instance-controller.d.ts +0 -80
- package/dist/src/nocode-base/src/runtime/runtime-instance-event-bus.d.ts +0 -17
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +0 -296
- package/dist/src/nocode-base/src/runtime/runtime-persistence-coordinator.d.ts +0 -93
- package/dist/src/nocode-base/src/runtime/runtime-rule-compiler.d.ts +0 -37
- package/dist/src/nocode-base/src/runtime/runtime-sheet-service.d.ts +0 -99
- package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +0 -44
- package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +0 -23
- package/dist/src/nocode-base/src/types/fields/i-seal.d.ts +0 -10
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +0 -78
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/columns.d.ts +0 -43
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +0 -194
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/hooks.d.ts +0 -28
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/index.d.ts +0 -6
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +0 -145
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-version-name-tag.vue.d.ts +0 -11
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/useSelectTable.d.ts +0 -31
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-select-editor/use-default-value-options.d.ts +0 -40
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-select-editor/use-default-value-visibility.d.ts +0 -2
- package/dist/src/online-form/src/views/__cell_widgets__/seal/seal-design.vue.d.ts +0 -6
- package/dist/src/online-form/src/views/__cell_widgets__/seal/seal-type-labels.d.ts +0 -4
- package/dist/src/online-form/src/views/__cell_widgets__/seal/seal.config.d.ts +0 -2
- package/dist/src/online-form/src/views/__widgets__/spacer/spacer-width.d.ts +0 -2
- package/dist/src/online-form/src/views/__widgets__/spacer/spacer.config.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/conversions/v1-designer.d.ts +0 -9
- package/dist/src/online-form/src/views/designer/hooks/useDhrEdition.d.ts +0 -7
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule-condition.vue.d.ts +0 -19
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule-group.vue.d.ts +0 -16
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule.d.ts +0 -54
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-node.vue.d.ts +0 -24
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-select.vue.d.ts +0 -30
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-utils.d.ts +0 -12
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/inspection-decision-modal.vue.d.ts +0 -9
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-button.vue.d.ts +0 -33
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-icon.vue.d.ts +0 -12
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-input.vue.d.ts +0 -23
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-modal.vue.d.ts +0 -36
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-scrollbar.vue.d.ts +0 -21
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-select.vue.d.ts +0 -30
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-switch.vue.d.ts +0 -17
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-text-area.vue.d.ts +0 -20
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/index.d.ts +0 -8
- package/dist/src/online-form/src/views/designer/modules/panel/panel-seal.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/sheet/seal-layer.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/types/sheets.d.ts +0 -16
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-api.d.ts +0 -17
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +0 -9
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +0 -9
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +0 -29
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +0 -57
- package/dist/src/online-form/src/views/render/__components__/_field_/sign/component/sign-validation.d.ts +0 -14
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useSearchEnter.d.ts +0 -10
- package/dist/src/online-form/src/views/render/active-sheet-renderer.vue.d.ts +0 -15
- package/dist/src/online-form/src/views/render/all-sheets-renderer.vue.d.ts +0 -9
- package/dist/src/online-form/src/views/render/printing/iframe-print.d.ts +0 -11
- package/dist/src/online-form/src/views/render/printing/print-runtime-instance.d.ts +0 -11
- package/dist/src/online-form/src/views/render/printing/print-snapshot-renderer.vue.d.ts +0 -27
- package/dist/src/online-form/src/views/render/printing/runtime-print-snapshot.d.ts +0 -24
- package/dist/src/online-form/src/views/render/sheet-tab-bar.vue.d.ts +0 -14
- package/dist/src/shared/components/Seal/seal-placeholder.vue.d.ts +0 -6
- package/dist/src/shared/components/Seal/seal-positioned.vue.d.ts +0 -38
- package/dist/src/shared/seal/index.d.ts +0 -44
- package/dist/sub-table-factory-DOKB1uAZ.js +0 -2118
|
@@ -1,26 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { RenderModeEnum, FormTypeEnum, PlatformEnum, BpmnNodeTypeEnum } from '../constant';
|
|
2
|
+
import { IPageData, IBasicInfoItem, ValidateFieldErrorMap } from '../types';
|
|
3
|
+
import { FormTmplBomController } from './material-consume';
|
|
4
|
+
import { SubTableCoreFactory } from '../core/factory/sub-table-factory';
|
|
5
|
+
import { FormChangeRowDetailMeta } from './annotation/form-change-row';
|
|
6
|
+
export interface IProps {
|
|
7
|
+
/** 模板实例id或者模板id */
|
|
8
|
+
selfId: string | string[] | undefined;
|
|
9
|
+
/** 批次号 */
|
|
10
|
+
materialNo?: string;
|
|
11
|
+
/** 查询条件 */
|
|
12
|
+
query?: Record<string, any>;
|
|
13
|
+
}
|
|
14
|
+
interface ITemplatePayload {
|
|
15
|
+
/** 渲染模式类型 */
|
|
16
|
+
renderModeType?: RenderModeEnum;
|
|
17
|
+
}
|
|
18
|
+
interface IInstancePayload {
|
|
19
|
+
/** 是否是详情页面 */
|
|
20
|
+
isDetailPage?: boolean | Function;
|
|
21
|
+
/** 获取按钮显示规则 */
|
|
22
|
+
getBtnDisplayRules?: boolean | Function;
|
|
23
|
+
/** 组件传进来的参数 */
|
|
24
|
+
paramExtraProps?: Record<string, any>;
|
|
25
|
+
}
|
|
26
|
+
interface IDeviceConfig {
|
|
27
|
+
/** 默认的用户id */
|
|
28
|
+
defaultUserId: string | undefined;
|
|
29
|
+
/** 默认的部门id */
|
|
30
|
+
defaultOrgId: string | undefined;
|
|
31
|
+
/** 默认的物料查询条件 */
|
|
32
|
+
defaultProductSearchFields: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IPayload extends ITemplatePayload, IInstancePayload {
|
|
35
|
+
/** 工厂类型 */
|
|
36
|
+
factoryType: 'template' | 'instance' | 'batchInstance' | 'batchTemplate';
|
|
37
|
+
/** 请求接口函数 */
|
|
38
|
+
requestCallback: Function;
|
|
39
|
+
/** 平台参数类型 */
|
|
40
|
+
platformType: PlatformEnum;
|
|
41
|
+
/** 是否是模拟填报 */
|
|
42
|
+
isMockReport: boolean;
|
|
43
|
+
/** 设备配置信息 */
|
|
44
|
+
deviceConfig?: IDeviceConfig;
|
|
45
|
+
/**所有数据更新加载完后 */
|
|
46
|
+
onFinisher?: Function;
|
|
47
|
+
/**表单打印方法 */
|
|
48
|
+
formPrint?: Function;
|
|
49
|
+
/** 初始化加载数据之后 */
|
|
50
|
+
afterProcessData?: Function;
|
|
51
|
+
}
|
|
5
52
|
export declare function useRenderPageFactory(props: IProps, payload: IPayload): {
|
|
6
53
|
counter: import('vue').Ref<number, number>;
|
|
7
54
|
finisher: import('vue').Ref<number, number>;
|
|
8
|
-
loading: import('vue').
|
|
9
|
-
|
|
55
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
56
|
+
dataCenterMap: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
57
|
+
pageDataMap: import('vue').Ref<Record<string, IPageData[]>, Record<string, IPageData[]>>;
|
|
58
|
+
formStateMap: import('vue').Ref<Record<string, Record<string, any>>, Record<string, Record<string, any>>>;
|
|
59
|
+
defaultDataMap: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
10
60
|
basicInfoList: import('vue').Ref<{
|
|
11
61
|
key: string;
|
|
12
62
|
tid: string;
|
|
13
63
|
uniqueId: string;
|
|
14
64
|
modelKey: string;
|
|
15
|
-
formType:
|
|
16
|
-
platformType:
|
|
65
|
+
formType: FormTypeEnum;
|
|
66
|
+
platformType: PlatformEnum;
|
|
17
67
|
posType?: import('..').PosEnum | undefined;
|
|
18
|
-
renderModeType:
|
|
19
|
-
btnRenderModeType:
|
|
68
|
+
renderModeType: RenderModeEnum;
|
|
69
|
+
btnRenderModeType: RenderModeEnum;
|
|
20
70
|
isMockReport: boolean;
|
|
21
71
|
gct_stashData: boolean;
|
|
22
|
-
bpmnType?:
|
|
72
|
+
bpmnType?: BpmnNodeTypeEnum | undefined;
|
|
23
73
|
bpmnFieldAuthMap?: Record<string, import('../types/common/base').IBpmnFieldAuthItem> | undefined;
|
|
74
|
+
eventInstance?: any;
|
|
24
75
|
formChangeStatus: boolean;
|
|
25
76
|
formChangeOriginData: Record<string, any>;
|
|
26
77
|
formChangeNewData: Record<string, any>;
|
|
@@ -28,7 +79,6 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
28
79
|
annCellLocationList: Array<string>;
|
|
29
80
|
annSelectId?: string | string[] | undefined;
|
|
30
81
|
annRowDetails?: {
|
|
31
|
-
sheetId?: string | undefined;
|
|
32
82
|
cellLocation: string;
|
|
33
83
|
cellType: string;
|
|
34
84
|
op: "ADD" | "DEL";
|
|
@@ -45,7 +95,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
45
95
|
mobileSelectTdId?: string | undefined;
|
|
46
96
|
contentHighlight: Record<string, any>;
|
|
47
97
|
productSearchFields: string;
|
|
48
|
-
|
|
98
|
+
__isPrintRender?: boolean | undefined;
|
|
49
99
|
showPrintFieldBg?: boolean | undefined;
|
|
50
100
|
paramsConfig?: Record<string, any> | undefined;
|
|
51
101
|
instanceStatus?: string | undefined;
|
|
@@ -54,15 +104,16 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
54
104
|
tid: string;
|
|
55
105
|
uniqueId: string;
|
|
56
106
|
modelKey: string;
|
|
57
|
-
formType:
|
|
58
|
-
platformType:
|
|
107
|
+
formType: FormTypeEnum;
|
|
108
|
+
platformType: PlatformEnum;
|
|
59
109
|
posType?: import('..').PosEnum | undefined;
|
|
60
|
-
renderModeType:
|
|
61
|
-
btnRenderModeType:
|
|
110
|
+
renderModeType: RenderModeEnum;
|
|
111
|
+
btnRenderModeType: RenderModeEnum;
|
|
62
112
|
isMockReport: boolean;
|
|
63
113
|
gct_stashData: boolean;
|
|
64
|
-
bpmnType?:
|
|
114
|
+
bpmnType?: BpmnNodeTypeEnum | undefined;
|
|
65
115
|
bpmnFieldAuthMap?: Record<string, import('../types/common/base').IBpmnFieldAuthItem> | undefined;
|
|
116
|
+
eventInstance?: any;
|
|
66
117
|
formChangeStatus: boolean;
|
|
67
118
|
formChangeOriginData: Record<string, any>;
|
|
68
119
|
formChangeNewData: Record<string, any>;
|
|
@@ -70,7 +121,6 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
70
121
|
annCellLocationList: Array<string>;
|
|
71
122
|
annSelectId?: string | string[] | undefined;
|
|
72
123
|
annRowDetails?: {
|
|
73
|
-
sheetId?: string | undefined;
|
|
74
124
|
cellLocation: string;
|
|
75
125
|
cellType: string;
|
|
76
126
|
op: "ADD" | "DEL";
|
|
@@ -87,51 +137,31 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
87
137
|
mobileSelectTdId?: string | undefined;
|
|
88
138
|
contentHighlight: Record<string, any>;
|
|
89
139
|
productSearchFields: string;
|
|
90
|
-
|
|
140
|
+
__isPrintRender?: boolean | undefined;
|
|
91
141
|
showPrintFieldBg?: boolean | undefined;
|
|
92
142
|
paramsConfig?: Record<string, any> | undefined;
|
|
93
143
|
instanceStatus?: string | undefined;
|
|
94
144
|
}[]>;
|
|
95
|
-
selfInfoList: import('vue').Ref<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
viewType: import('..').ViewTypeEnum;
|
|
99
|
-
modelKey: string;
|
|
100
|
-
bindKey?: string | undefined;
|
|
101
|
-
}[], ({
|
|
102
|
-
formType: import('..').FormTypeEnum;
|
|
103
|
-
viewType: import('..').ViewTypeEnum;
|
|
104
|
-
modelKey: string;
|
|
105
|
-
bindKey?: string;
|
|
106
|
-
} & Record<string, any>)[] | {
|
|
107
|
-
[x: string]: any;
|
|
108
|
-
formType: import('..').FormTypeEnum;
|
|
109
|
-
viewType: import('..').ViewTypeEnum;
|
|
110
|
-
modelKey: string;
|
|
111
|
-
bindKey?: string | undefined;
|
|
112
|
-
}[]>;
|
|
145
|
+
selfInfoList: import('vue').Ref<any, any>;
|
|
146
|
+
tmplBomCMap: import('vue').Ref<Record<string, FormTmplBomController>, Record<string, FormTmplBomController>>;
|
|
147
|
+
subTableCoreFactoryMap: import('vue').Ref<Record<string, SubTableCoreFactory>, Record<string, SubTableCoreFactory>>;
|
|
113
148
|
hasData: import('vue').ComputedRef<boolean>;
|
|
114
|
-
findFormInsInfo: (id: string) =>
|
|
115
|
-
[x: string]: any;
|
|
116
|
-
formType: import('..').FormTypeEnum;
|
|
117
|
-
viewType: import('..').ViewTypeEnum;
|
|
118
|
-
modelKey: string;
|
|
119
|
-
bindKey?: string | undefined;
|
|
120
|
-
} | undefined;
|
|
149
|
+
findFormInsInfo: (id: string) => any;
|
|
121
150
|
findBasicInsInfo: (id: string) => {
|
|
122
151
|
key: string;
|
|
123
152
|
tid: string;
|
|
124
153
|
uniqueId: string;
|
|
125
154
|
modelKey: string;
|
|
126
|
-
formType:
|
|
127
|
-
platformType:
|
|
155
|
+
formType: FormTypeEnum;
|
|
156
|
+
platformType: PlatformEnum;
|
|
128
157
|
posType?: import('..').PosEnum | undefined;
|
|
129
|
-
renderModeType:
|
|
130
|
-
btnRenderModeType:
|
|
158
|
+
renderModeType: RenderModeEnum;
|
|
159
|
+
btnRenderModeType: RenderModeEnum;
|
|
131
160
|
isMockReport: boolean;
|
|
132
161
|
gct_stashData: boolean;
|
|
133
|
-
bpmnType?:
|
|
162
|
+
bpmnType?: BpmnNodeTypeEnum | undefined;
|
|
134
163
|
bpmnFieldAuthMap?: Record<string, import('../types/common/base').IBpmnFieldAuthItem> | undefined;
|
|
164
|
+
eventInstance?: any;
|
|
135
165
|
formChangeStatus: boolean;
|
|
136
166
|
formChangeOriginData: Record<string, any>;
|
|
137
167
|
formChangeNewData: Record<string, any>;
|
|
@@ -139,7 +169,6 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
139
169
|
annCellLocationList: Array<string>;
|
|
140
170
|
annSelectId?: string | string[] | undefined;
|
|
141
171
|
annRowDetails?: {
|
|
142
|
-
sheetId?: string | undefined;
|
|
143
172
|
cellLocation: string;
|
|
144
173
|
cellType: string;
|
|
145
174
|
op: "ADD" | "DEL";
|
|
@@ -156,22 +185,29 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
156
185
|
mobileSelectTdId?: string | undefined;
|
|
157
186
|
contentHighlight: Record<string, any>;
|
|
158
187
|
productSearchFields: string;
|
|
159
|
-
|
|
188
|
+
__isPrintRender?: boolean | undefined;
|
|
160
189
|
showPrintFieldBg?: boolean | undefined;
|
|
161
190
|
paramsConfig?: Record<string, any> | undefined;
|
|
162
191
|
instanceStatus?: string | undefined;
|
|
163
192
|
} | undefined;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
193
|
+
updatePageData: (uniqueId: string) => void;
|
|
194
|
+
updateRenderModeType: (uniqueId: string, newRenderModeType: RenderModeEnum, updateButton?: boolean) => void;
|
|
195
|
+
validate: (uniqueId: any) => Promise<{
|
|
196
|
+
/** 是否通过校验 */
|
|
197
|
+
isValid: boolean;
|
|
198
|
+
fields?: ValidateFieldErrorMap;
|
|
199
|
+
} | undefined>;
|
|
200
|
+
getFormState: (uniqueId: any) => Partial<{}>;
|
|
201
|
+
setFromEditStatus: (uniqueId: any) => Promise<boolean>;
|
|
202
|
+
setAnnotationViewStatus: (uniqueId: any, status: any, config?: string[] | {
|
|
167
203
|
locations?: string[];
|
|
168
|
-
rowDetails?:
|
|
204
|
+
rowDetails?: FormChangeRowDetailMeta[];
|
|
169
205
|
}) => boolean;
|
|
170
|
-
setFormChangeRowViewDetails: (uniqueId: string, rowDetails?:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
getPdfInfos: (uniqueId: string) => any;
|
|
206
|
+
setFormChangeRowViewDetails: (uniqueId: string, rowDetails?: FormChangeRowDetailMeta[] | null, _historyId?: string | null) => boolean;
|
|
207
|
+
getAnnotationContentList: (uniqueId: any, options?: {}) => any[];
|
|
208
|
+
setValidatorViewStatus: (uniqueId: any, config: any) => boolean;
|
|
209
|
+
quickSearchRenderData: (uniqueId: any, currentSelfInfo: any) => Promise<void>;
|
|
210
|
+
getAppendixInfos: (uniqueId: any, currentSelfInfo: any, types?: any) => string[];
|
|
211
|
+
getPdfInfos: (uniqueId: any) => any;
|
|
177
212
|
};
|
|
213
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { requestFullValidation, requestDisplayValidation, registerValidationContext, unregisterValidationContext, clearFormRules, deleteSubtableRow, insertSubtableRows, settleAndValidateDisplay, settleAfterModeSwitch } from './validation/useFormValidator';
|
|
2
|
+
import { IPaper, ValidateFieldErrorMap } from '../types';
|
|
3
|
+
export declare function useValidator(props: any): {
|
|
4
|
+
widgetStyles: import('vue').ComputedRef<{}>;
|
|
5
|
+
targetFieldId: any;
|
|
6
|
+
isFieldModel: any;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 表单校验(提交 / 校验清单)
|
|
10
|
+
*/
|
|
11
|
+
export declare const validate: (formData: any, paper: IPaper, uniqueId?: string) => Promise<{
|
|
12
|
+
/** 是否通过校验 */
|
|
13
|
+
isValid: boolean;
|
|
14
|
+
fields?: ValidateFieldErrorMap;
|
|
15
|
+
/** 是否已通过 ValidationContext 写入 UI 错误态 */
|
|
16
|
+
uiApplied?: boolean;
|
|
17
|
+
} | undefined>;
|
|
18
|
+
export { clearFormRules, deleteSubtableRow, insertSubtableRows, settleAndValidateDisplay, settleAfterModeSwitch, requestFullValidation, requestDisplayValidation, registerValidationContext, unregisterValidationContext, };
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
1
|
+
import { FormRuleMeta } from './types';
|
|
2
|
+
/** 规则上挂载的引用字段上下文 */
|
|
3
3
|
export type AttachRuleContext = {
|
|
4
|
+
_belongFieldId?: string;
|
|
5
|
+
_optionValue?: any;
|
|
6
|
+
_multiple?: boolean;
|
|
4
7
|
_subtableFieldId?: string;
|
|
5
|
-
|
|
8
|
+
_realRowIndex?: number;
|
|
9
|
+
_childSubTableDataIndex?: number;
|
|
6
10
|
};
|
|
7
11
|
/** 取规则对应的当前行 / 主表 formData */
|
|
8
12
|
export declare function getCurrentFormData(_rule: AttachRuleContext, options: {
|
|
9
13
|
formData?: any;
|
|
10
14
|
}): any;
|
|
15
|
+
/** 从 rule 或 meta.attach 解析上下文 */
|
|
16
|
+
export declare function resolveAttachContext(rule: AttachRuleContext | undefined, metaAttach?: FormRuleMeta['attach']): AttachRuleContext | undefined;
|
|
11
17
|
/** 引用字段是否处于激活选项下 */
|
|
12
|
-
export declare function isAttachFieldActive(
|
|
18
|
+
export declare function isAttachFieldActive(rule: AttachRuleContext | undefined, formData: Record<string, any> | undefined): boolean;
|
|
13
19
|
/** 当前行数据下引用字段是否应对用户呈现 */
|
|
14
20
|
export declare function isReferenceOptionActive(referenceInfo: {
|
|
15
21
|
belongFieldId?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormRuleMeta } from './types';
|
|
2
|
+
export declare function setFormRule(key: string, rules: any[], meta: FormRuleMeta, owner?: symbol): void;
|
|
3
|
+
/**
|
|
4
|
+
* 删除规则
|
|
5
|
+
* - 传入 owner 时:仅当本实例是当前所有者才删除,防止竞态中覆盖新实例的注册
|
|
6
|
+
* - 不传 owner:无条件删除
|
|
7
|
+
*/
|
|
8
|
+
export declare function deleteFormRule(key: string, owner?: symbol): void;
|
|
9
|
+
export declare function clearFormRules(): void;
|
|
10
|
+
export declare function getRawFormRules(): Record<string, any[]>;
|
|
11
|
+
export declare function getRawFormRuleMeta(): Record<string, FormRuleMeta>;
|
|
12
|
+
export declare function listFormRuleKeys(): string[];
|
|
13
|
+
export declare function deleteSubtableRow(subtableFieldId: string, realRowIndex: number): void;
|
|
14
|
+
/** 子表在 insertIndex 处插入 count 行:将该下标及之后的规则 key 整体后移 */
|
|
15
|
+
export declare function insertSubtableRows(subtableFieldId: string, insertIndex: number, count?: number): void;
|
|
@@ -18,8 +18,7 @@ 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
|
|
22
|
-
* 可编辑字段的必填错误由提交校验产生,空值在 display/change 模式下不会重跑 manual 规则。
|
|
21
|
+
* display 合并:按本轮 validatedPaths 更新;清掉已卸载 path
|
|
23
22
|
*/
|
|
24
|
-
export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[]
|
|
23
|
+
export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[]): ValidationCommentMap;
|
|
25
24
|
export {};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPaper } from '../../types';
|
|
2
|
+
import { ValidationRunMode, ValidateResult } from './types';
|
|
2
3
|
type RunValidationOptions = {
|
|
3
|
-
entries: ReadonlyMap<string, FormRuleEntry>;
|
|
4
4
|
mode?: ValidationRunMode;
|
|
5
5
|
/** 表单级 keepExceptionHighlight */
|
|
6
6
|
keepExceptionHighlight?: boolean | null;
|
|
7
|
-
/** 可选的目标字段路径;未传时校验当前表单的全部已注册字段 */
|
|
8
|
-
paths?: Iterable<string>;
|
|
9
7
|
};
|
|
10
8
|
/**
|
|
11
9
|
* 按 mode 过滤规则并执行 async-validator
|
|
12
10
|
*/
|
|
13
|
-
export declare function runValidation(formData: Record<string, any>,
|
|
11
|
+
export declare function runValidation(formData: Record<string, any>, paper: IPaper, options?: RunValidationOptions): Promise<ValidateResult | undefined>;
|
|
12
|
+
/** 供 merge 使用:取某 path 当前值与规则 */
|
|
13
|
+
export declare function resolvePayloadForPath(path: string, flatData: Record<string, any>): {
|
|
14
|
+
value: any;
|
|
15
|
+
rules: any[];
|
|
16
|
+
} | null;
|
|
14
17
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValidationRunMode, ValidationCommentMap } from './types';
|
|
2
|
+
export declare function clearValidationScheduler(id: string): void;
|
|
3
|
+
export declare function clearAllValidationSchedulers(): void;
|
|
4
|
+
type ExecuteFn = (trigger: ValidationRunMode) => Promise<ValidationCommentMap | void>;
|
|
5
|
+
/**
|
|
6
|
+
* 请求校验(编辑时 debounce;immediate 立即执行)
|
|
7
|
+
*/
|
|
8
|
+
export declare function requestScheduledValidation(id: string, execute: ExecuteFn, options?: {
|
|
9
|
+
immediate?: boolean;
|
|
10
|
+
trigger?: ValidationRunMode;
|
|
11
|
+
}): void;
|
|
12
|
+
export {};
|
|
@@ -12,22 +12,20 @@ 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
|
-
}
|
|
24
15
|
export type FormRuleMeta = {
|
|
25
16
|
/** 禁用 / 只读,不可编辑 */
|
|
26
17
|
blocked: boolean;
|
|
27
18
|
/** 字段级:是否在 display 时保留异常标红;未配置时跟随表单 */
|
|
28
19
|
keepExceptionHighlight?: boolean;
|
|
29
20
|
/** 布尔/枚举引用字段附着上下文(门禁用,不依赖 rule 对象上的挂载字段) */
|
|
30
|
-
attach?:
|
|
21
|
+
attach?: {
|
|
22
|
+
belongFieldId: string;
|
|
23
|
+
optionValue: any;
|
|
24
|
+
multiple?: boolean;
|
|
25
|
+
subtableFieldId?: string;
|
|
26
|
+
realRowIndex?: number;
|
|
27
|
+
childSubTableDataIndex?: number;
|
|
28
|
+
} | null;
|
|
31
29
|
};
|
|
32
30
|
export type ValidateResult = {
|
|
33
31
|
isValid: boolean;
|
|
@@ -44,8 +42,3 @@ export type ValidateResult = {
|
|
|
44
42
|
flatData?: Record<string, any>;
|
|
45
43
|
};
|
|
46
44
|
export type ValidationCommentMap = Record<string, any[]> | null;
|
|
47
|
-
/** 实例编译器原子发布的一条字段规则及门禁元数据。 */
|
|
48
|
-
export interface FormRuleEntry {
|
|
49
|
-
rules: any[];
|
|
50
|
-
meta: FormRuleMeta;
|
|
51
|
-
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IPaper } from '../../types';
|
|
2
|
+
import { PlatformEnum } from '../../constant';
|
|
3
|
+
import { ValidationRunMode, ValidationCommentMap, ValidateResult } from './types';
|
|
4
|
+
type ValidationContext = {
|
|
5
|
+
uniqueId: string;
|
|
6
|
+
platformType?: PlatformEnum;
|
|
7
|
+
getFormData: () => Record<string, any>;
|
|
8
|
+
getPaper: () => IPaper | undefined;
|
|
9
|
+
/** 表单级 keepExceptionHighlight */
|
|
10
|
+
getKeepExceptionHighlight?: () => boolean | null | undefined;
|
|
11
|
+
/** 写入错误态 UI */
|
|
12
|
+
applyComments: (comments: ValidationCommentMap) => void;
|
|
13
|
+
/** 读取当前错误态 */
|
|
14
|
+
getComments: () => ValidationCommentMap;
|
|
15
|
+
};
|
|
16
|
+
export declare function registerValidationContext(ctx: ValidationContext): void;
|
|
17
|
+
export declare function unregisterValidationContext(uniqueId: string): void;
|
|
18
|
+
/** 提交全量校验(可编辑字段全部规则) */
|
|
19
|
+
export declare function validateAllFields(uniqueId: string): Promise<ValidateResult | undefined>;
|
|
20
|
+
/** 展示校验:只读含必填;可编辑不含必填 */
|
|
21
|
+
export declare function validateDisplayFields(uniqueId: string): Promise<ValidateResult | undefined>;
|
|
22
|
+
/** 防抖请求 display */
|
|
23
|
+
export declare function requestDisplayValidation(uniqueId: string, immediate?: boolean): void;
|
|
24
|
+
/** 编辑态请求校验(change / blur) */
|
|
25
|
+
export declare function requestFullValidation(uniqueId: string, options?: {
|
|
26
|
+
immediate?: boolean;
|
|
27
|
+
trigger?: ValidationRunMode;
|
|
28
|
+
}): void;
|
|
29
|
+
/** 子表结构变更后 prune 无效 path */
|
|
30
|
+
export declare function pruneFormValidationComments(uniqueId: string): void;
|
|
31
|
+
export declare function clearFormRules(): void;
|
|
32
|
+
export declare function deleteSubtableRow(subtableFieldId: string, realRowIndex: number): void;
|
|
33
|
+
/** 子表插入行后重排规则 key,等更新 realRowIndex / 新行挂载后再校验 */
|
|
34
|
+
export declare function insertSubtableRows(subtableFieldId: string, insertIndex: number, count?: number): void;
|
|
35
|
+
/** settle 后跑 display */
|
|
36
|
+
export declare function settleAndValidateDisplay(uniqueId: string): Promise<void>;
|
|
37
|
+
/** 模式切换 丢弃 remount 空窗期的过期 display,等规则(含引用字段)挂稳后再跑校验 */
|
|
38
|
+
export declare function settleAfterModeSwitch(uniqueId: string, options?: {
|
|
39
|
+
runChangeLive?: boolean;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
export {};
|
|
@@ -9,12 +9,6 @@ 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;
|
|
18
12
|
export declare const createRule: (validator: Function, message: string, trigger?: ValidateTrigger) => {
|
|
19
13
|
required: boolean;
|
|
20
14
|
validator: Function;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** 等待一帧响应式 + 微任务 */
|
|
2
|
+
export declare function waitForTickSettle(): Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* 等待字段规则注册稳定后再跑 display
|
|
5
|
+
* - 连续若干轮「总规则数 + 引用字段规则数」都不变,才视为挂载完成
|
|
6
|
+
* - minElapsedMs 避开 remount 刚开始的假稳定
|
|
7
|
+
*/
|
|
8
|
+
export declare function waitForValidationReady(options?: {
|
|
9
|
+
/** 总超时 */
|
|
10
|
+
timeoutMs?: number;
|
|
11
|
+
/** 轮询间隔 */
|
|
12
|
+
intervalMs?: number;
|
|
13
|
+
/** 规则数量连续稳定轮数 */
|
|
14
|
+
stableRounds?: number;
|
|
15
|
+
/** 至少等待多久再允许判定稳定 */
|
|
16
|
+
minElapsedMs?: number;
|
|
17
|
+
}): Promise<void>;
|
|
@@ -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) => IPageData[];
|
|
37
37
|
};
|
|
@@ -16,9 +16,6 @@ export interface ICheckDsFetchResult {
|
|
|
16
16
|
data: any[];
|
|
17
17
|
}
|
|
18
18
|
type CheckDsRuntimeContext = {
|
|
19
|
-
/** 表单级数据源、模型和脚本配置。 */
|
|
20
|
-
formConfig: Record<string, any>;
|
|
21
|
-
/** 当前 Sheet 的检验表结构与行坐标。 */
|
|
22
19
|
paper: any;
|
|
23
20
|
instanceId: string;
|
|
24
21
|
cloneRuntimeJson: Record<string, any>;
|
|
@@ -35,13 +32,14 @@ export declare function getCheckTableSnapshotKey(checkInfo: ICheckTable2DInfo):
|
|
|
35
32
|
* @returns 字段映射 + 原始数据;未配置 M08 数据源时返回 null
|
|
36
33
|
*/
|
|
37
34
|
export declare function fetchMedProCheckDsData(payload: {
|
|
38
|
-
|
|
35
|
+
paper: any;
|
|
39
36
|
instanceId: string;
|
|
40
37
|
}): Promise<ICheckDsFetchResult | null>;
|
|
41
38
|
/**
|
|
42
39
|
* 非 MedPro + checkDsType = default:按检验计划拉取检验项
|
|
43
40
|
*/
|
|
44
41
|
export declare function fetchCheckDsDataForTable(payload: {
|
|
42
|
+
paper: any;
|
|
45
43
|
instanceId: string;
|
|
46
44
|
checkInfo: ICheckTable2DInfo;
|
|
47
45
|
}): Promise<ICheckDsTableFetchResult | null>;
|
|
@@ -49,6 +47,7 @@ export declare function fetchCheckDsDataForTable(payload: {
|
|
|
49
47
|
* 非 MedPro + checkDsType = custom:按自定义检验项拉取
|
|
50
48
|
*/
|
|
51
49
|
export declare function fetchCustomCheckDsData(payload: {
|
|
50
|
+
paper: any;
|
|
52
51
|
instanceId: string;
|
|
53
52
|
checkInfo: ICheckTable2DInfo;
|
|
54
53
|
}): Promise<ICheckDsTableFetchResult | null>;
|
|
@@ -3,8 +3,6 @@ export declare class CodeRunner {
|
|
|
3
3
|
* 导出方法
|
|
4
4
|
*/
|
|
5
5
|
exports: any;
|
|
6
|
-
/** 实例替换或销毁后禁止再发起脚本事件。 */
|
|
7
|
-
private disposed;
|
|
8
6
|
/**
|
|
9
7
|
* constructor
|
|
10
8
|
* @param runtimeJs 运行时 js
|
|
@@ -18,8 +16,6 @@ export declare class CodeRunner {
|
|
|
18
16
|
* @returns
|
|
19
17
|
*/
|
|
20
18
|
invoke(method: string, ...args: any[]): any;
|
|
21
|
-
/** 释放导出函数及其对表单数据的闭包引用;已开始执行的用户异步脚本由其自身结束。 */
|
|
22
|
-
dispose(): void;
|
|
23
19
|
/**
|
|
24
20
|
* 解析可用函数
|
|
25
21
|
* @param code
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FormTypeEnum } from '../constant';
|
|
2
2
|
import { FormTmplBomController } from '../hooks';
|
|
3
|
-
import { RuntimeFieldMetadata } from '../runtime/runtime-field-registry';
|
|
4
3
|
/** 渲染端公共类 */
|
|
5
4
|
export declare const renderUtils: {
|
|
6
5
|
getValue: (modelValue: any, multiple: any) => any;
|
|
@@ -69,7 +68,7 @@ export declare const renderUtils: {
|
|
|
69
68
|
/** 处理字段列表-优先编辑 */
|
|
70
69
|
deduplicateFields: (data: any) => any[];
|
|
71
70
|
/** 根据模板信息集合筛选字段信息集合 */
|
|
72
|
-
getFieldsByDataCenter: (dataCenter: any, useDynRowHeight: boolean
|
|
71
|
+
getFieldsByDataCenter: (dataCenter: any, useDynRowHeight: boolean) => Promise<{
|
|
73
72
|
foreignFields: unknown[];
|
|
74
73
|
subModelFields: {
|
|
75
74
|
masterFieldKey: any;
|
|
@@ -84,11 +83,9 @@ export declare const renderUtils: {
|
|
|
84
83
|
tdIdGroups: Map<any, any>;
|
|
85
84
|
useClsReasonDataLink: string[];
|
|
86
85
|
useClsGroupDataLink: string[];
|
|
87
|
-
fieldLocations: any[];
|
|
88
|
-
fieldMetadata: RuntimeFieldMetadata;
|
|
89
86
|
}>;
|
|
90
87
|
/** 提前设置值给widget */
|
|
91
|
-
setRequestInfo2DataCenter: (
|
|
88
|
+
setRequestInfo2DataCenter: (dataCenter: any, modelKeys: any, platformType: any, isMockReport: any, formType: FormTypeEnum, paramsConfig: any, useSignFields: any, useClsReasonDataLink: any, useClsGroupDataLink: any, tmplBomC: FormTmplBomController, modelQueries: any) => Promise<void>;
|
|
92
89
|
/** 获取默认值集合 */
|
|
93
90
|
getDefaultValueMapByField: ({ defaultValueFields, mainMaterialNo, mainRelatedLotNo, mainProductName, mainRoutingOperation, mainMfgOrderId, mainWarehouseId, mainLotSnId, mainProductQty, mainSterilizationLot, mainSterilizationLotId, defaultUserId, defaultOrgId, operationData, productData, mfgOrderData, sopList, ESOPData, materialNoData, relatedLotNoData, sterilizeLotData, warehouseData, }: {
|
|
94
91
|
defaultValueFields: any;
|