@gct-paas/excel 0.1.37-beta.2 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/dist/{BaseComponent-DN5v-Q_h.js → BaseComponent-5QpH6Rui.js} +2 -20
  2. package/dist/{VueVideoPlayer-C49th9G_.js → VueVideoPlayer-DZh8_F3v.js} +2 -2
  3. package/dist/{align-editor-CpscpDxA.js → align-editor-BTvIuOVN.js} +1 -1
  4. package/dist/{barcode-design-B7AoHzux.js → barcode-design-Blhh1Fsh.js} +2 -3
  5. package/dist/base/index.es.js +2799 -2279
  6. package/dist/{diagonal-design-CeYHDi2e.js → diagonal-design-DZ6ePuEf.js} +2 -3
  7. package/dist/{dynamic-table-action-zR6VwiFi.js → dynamic-table-action-Ckc4yetB.js} +3015 -7111
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CGpmtwPb.js} +24570 -23749
  9. package/dist/{edit.utils-CXmmCnxE-evcsspEJ.js → edit.utils-CXmmCnxE-DDvf_1B1.js} +1 -1
  10. package/dist/excel.css +1204 -2454
  11. package/dist/{exceljs.min-DYYU4xe-.js → exceljs.min-Co96ZEAw.js} +2 -2
  12. package/dist/{font-editor-hpUeXFv_.js → font-editor-CVRIStrS.js} +3 -3
  13. package/dist/{image-design-BnDK5Jwf.js → image-design-kQ2vbtwc.js} +2 -2
  14. package/dist/{index-BcfmxYW-.js → index-B5HIN-qO.js} +2 -3
  15. package/dist/{index-DPiPri6e.js → index-B9sZfT3j.js} +2 -3
  16. package/dist/{index-CRj08TWu.js → index-BJyfzYBO.js} +2 -3
  17. package/dist/{index-D3t6B-9k.js → index-BNiGRPzJ.js} +1 -2
  18. package/dist/{index-BWvyGnI_.js → index-BPKmoc5N.js} +2 -3
  19. package/dist/{index-sQI9wXhV.js → index-BWEQIjQE.js} +1 -2
  20. package/dist/{index-Dfs0gE3N.js → index-BaCxUMCF.js} +2 -3
  21. package/dist/{index-3n5gOxbD.js → index-Bk8MpwGt.js} +2 -3
  22. package/dist/{index-B8tTsX2y.js → index-BqI7r_XC.js} +2 -3
  23. package/dist/{index-D1C_tY7a.js → index-C1DOk9t-.js} +1 -2
  24. package/dist/{index-BEyidTCC.js → index-C3HGy13G.js} +1 -2
  25. package/dist/{index-CLyowrpG.js → index-C4tkNDTa.js} +2 -3
  26. package/dist/{index-DP1WApp-.js → index-C5ESFU7b.js} +1 -2
  27. package/dist/{index-BY7_uLSS.js → index-C91SfhAb.js} +1 -2
  28. package/dist/{index-CZv8lo_f.js → index-CPlxRgll.js} +2 -3
  29. package/dist/{index-DX1Nqubf.js → index-CjA2dLPh.js} +2 -3
  30. package/dist/{index-YuHHwSzv.js → index-ClnlX2jZ.js} +1 -2
  31. package/dist/{index-BezxcVwZ.js → index-CnTC_LFJ.js} +2 -3
  32. package/dist/{index-CUhlQ0aK.js → index-CxpwR4N2.js} +3 -4
  33. package/dist/{index-BaC0Py3z.js → index-D3Wgt5Z0.js} +6849 -12289
  34. package/dist/{index-CXBwY7ba.js → index-DCMnBDPA.js} +237 -432
  35. package/dist/{index-HNE-yLqK.js → index-DF5irDE9.js} +2 -3
  36. package/dist/{index-CUhR3L97.js → index-DJEG4gZW.js} +3 -4
  37. package/dist/{index-B9q2iVJw.js → index-DPql9xNw.js} +3 -4
  38. package/dist/{index-BboAW45l.js → index-DbDB5bsa.js} +3 -4
  39. package/dist/{index-D6T0GkNc.js → index-Def-kZ_X.js} +3 -4
  40. package/dist/{index-557u9lSs.js → index-Dg6nmj-a.js} +74 -9
  41. package/dist/{index-Crs2UUiJ.js → index-DqDGmouR.js} +2 -3
  42. package/dist/{index-D9pfqRAP.js → index-DvlAMJkQ.js} +3 -6
  43. package/dist/{index-DULgJ5M_.js → index-Dxh55nQw.js} +1 -2
  44. package/dist/{index-CA25B2UR.js → index-Dzydpwhf.js} +2 -3
  45. package/dist/{index-DKAk8Fzf.js → index-SV0mQReN.js} +2 -14
  46. package/dist/{index-Bxgg0txy.js → index-YlVy61FH.js} +1 -2
  47. package/dist/{index-tRVTXeIS.js → index-avQcYIlZ.js} +2 -3
  48. package/dist/index.es.js +49 -51
  49. package/dist/{mb-render-jAsNtPqY.js → mb-render-BtXKf12F.js} +15 -21
  50. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Cxs9ZecX.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-C-9AZcTz.js} +8 -2
  51. package/dist/{pagination-design-lgUGQHWo.js → pagination-design-DyxVdL8V.js} +2 -3
  52. package/dist/paper-widget-design-Czt7pMDo.js +4 -0
  53. package/dist/{qrcode-design-DCgtf75a.js → qrcode-design-eMDgLDg2.js} +1 -1
  54. package/dist/{revo-grid.entry-Bygattd8.js → revo-grid.entry-h26i-X1O.js} +1 -1
  55. package/dist/{revogr-attribution_7.entry-BqzhD1hP.js → revogr-attribution_7.entry-DnWhGt3I.js} +3 -3
  56. package/dist/{revogr-clipboard_3.entry-Wr7KhnJ_.js → revogr-clipboard_3.entry-DHP6m3aV.js} +2 -2
  57. package/dist/{revogr-data_4.entry-CrFW39f1.js → revogr-data_4.entry-CBEPKC2v.js} +2 -2
  58. package/dist/{revogr-filter-panel.entry-9khS41SL.js → revogr-filter-panel.entry-DpaMxMlv.js} +1 -1
  59. package/dist/{serialnumber-design-eXgfrjw9.js → serialnumber-design-KRWMAGLy.js} +1 -1
  60. package/dist/shared/index.es.js +26 -32
  61. package/dist/{single-field-drop-rKr_LXW8.js → single-field-drop-DarhKwZE.js} +2 -2
  62. package/dist/{size-editor-OEPrJU0W.js → size-editor-BqOSTI8R.js} +1 -1
  63. package/dist/src/adapter/adapter.d.ts +1 -6
  64. package/dist/src/assets/svgs/table/index.d.ts +0 -1
  65. package/dist/src/domain/field/types.d.ts +2 -2
  66. package/dist/src/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
  67. package/dist/src/domain/table/design/create-subtable.d.ts +1 -1
  68. package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +1 -1
  69. package/dist/src/domain/table/design/index.d.ts +1 -1
  70. package/dist/src/domain/table/design/ribbon-options.d.ts +0 -1
  71. package/dist/src/domain/table/design/sub-model-matcher.d.ts +0 -1
  72. package/dist/src/domain/table/index.d.ts +2 -3
  73. package/dist/src/domain/table/registry.d.ts +0 -1
  74. package/dist/src/domain/table/types.d.ts +3 -8
  75. package/dist/src/index.d.ts +0 -6
  76. package/dist/src/nocode-base/src/_utils_/uuid.d.ts +0 -8
  77. package/dist/src/nocode-base/src/components/document-layout.vue.d.ts +0 -3
  78. package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +3 -3
  79. package/dist/src/nocode-base/src/components/material-consume/material-consume-action.vue.d.ts +17 -0
  80. package/dist/src/nocode-base/src/constant/index.d.ts +2 -8
  81. package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +3 -11
  82. package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +1 -0
  83. package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +1 -0
  84. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +1 -23
  85. package/dist/src/nocode-base/src/core/sub-table/sterilize-batch-table-core.d.ts +1 -0
  86. package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +1 -0
  87. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +5 -0
  88. package/dist/src/nocode-base/src/core/types/index.d.ts +0 -4
  89. package/dist/src/nocode-base/src/emit/enum.d.ts +12 -2
  90. package/dist/src/nocode-base/src/hooks/annotation/form-change-row.d.ts +5 -7
  91. package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +6 -0
  92. package/dist/src/nocode-base/src/hooks/form-tmpl-config/device-connector.d.ts +1 -1
  93. package/dist/src/nocode-base/src/hooks/index.d.ts +3 -5
  94. package/dist/src/nocode-base/src/hooks/material-balance/mb-render.d.ts +2 -2
  95. package/dist/src/nocode-base/src/hooks/material-balance/useMaterialBalance.d.ts +4 -4
  96. package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +2 -10
  97. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +25 -13
  98. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +6 -5
  99. package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +4 -8
  100. package/dist/src/nocode-base/src/hooks/material-consume-object/index.d.ts +1 -0
  101. package/dist/src/nocode-base/src/hooks/material-consume-object/product-lot-link.d.ts +0 -3
  102. package/dist/src/nocode-base/src/hooks/material-consume-object/use-tmpl-bom.d.ts +13 -0
  103. package/dist/src/nocode-base/src/hooks/useDependency.d.ts +1 -2
  104. package/dist/src/nocode-base/src/hooks/useFormHook.d.ts +4 -7
  105. package/dist/src/nocode-base/src/hooks/useFormulaExpWatcher.d.ts +15 -0
  106. package/dist/src/nocode-base/src/hooks/useMergeSameCells.d.ts +2 -3
  107. package/dist/src/nocode-base/src/hooks/useNocodeEmitter.d.ts +9 -1
  108. package/dist/src/nocode-base/src/hooks/useRenderData.d.ts +24 -8
  109. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +99 -102
  110. package/dist/src/nocode-base/src/hooks/useValidator.d.ts +18 -0
  111. package/dist/src/nocode-base/src/hooks/validation/attach.d.ts +10 -4
  112. package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +0 -1
  113. package/dist/src/nocode-base/src/hooks/validation/formRulesStore.d.ts +15 -0
  114. package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +2 -3
  115. package/dist/src/nocode-base/src/hooks/validation/runValidation.d.ts +8 -5
  116. package/dist/src/nocode-base/src/hooks/validation/scheduler.d.ts +12 -0
  117. package/dist/src/nocode-base/src/hooks/validation/types.d.ts +8 -15
  118. package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +41 -0
  119. package/dist/src/nocode-base/src/hooks/validation/utils.d.ts +0 -6
  120. package/dist/src/nocode-base/src/hooks/validation/waitForSettle.d.ts +17 -0
  121. package/dist/src/nocode-base/src/index.d.ts +0 -2
  122. package/dist/src/nocode-base/src/interface/calc.d.ts +1 -1
  123. package/dist/src/nocode-base/src/interface/check-ds-data.d.ts +3 -4
  124. package/dist/src/nocode-base/src/interface/code-runner.d.ts +0 -4
  125. package/dist/src/nocode-base/src/interface/render.d.ts +2 -5
  126. package/dist/src/nocode-base/src/interface/transform.d.ts +22 -26
  127. package/dist/src/nocode-base/src/types/business/index.d.ts +1 -8
  128. package/dist/src/nocode-base/src/types/calc/i-calc.d.ts +0 -3
  129. package/dist/src/nocode-base/src/types/common/base.d.ts +6 -62
  130. package/dist/src/nocode-base/src/types/fields/i-sign.d.ts +1 -1
  131. package/dist/src/nocode-base/src/types/fields/index.d.ts +0 -1
  132. package/dist/src/nocode-base/src/types/index.d.ts +1 -1
  133. package/dist/src/nocode-base/src/types/render/mb-render.d.ts +2 -4
  134. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +2 -2
  135. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +5 -3
  136. package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +35 -4
  137. package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +1 -0
  138. package/dist/src/nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts +7 -4
  139. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +6 -8
  140. package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
  141. package/dist/src/online-form/src/components/version-diff/iframe/preview-iframe.vue.d.ts +0 -2
  142. package/dist/src/online-form/src/components/version-diff/index/types.d.ts +0 -3
  143. package/dist/src/online-form/src/components/version-diff/index/version-diff-index.vue.d.ts +0 -4
  144. package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -7
  145. package/dist/src/online-form/src/views/designer/enums/index.d.ts +1 -5
  146. package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/scan-field.d.ts +0 -4
  147. package/dist/src/online-form/src/views/designer/hooks/reverse-modeling/utils.d.ts +0 -1
  148. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +678 -1208
  149. package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +1 -5
  150. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +2480 -503
  151. 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
  152. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/panel-rule-config.vue.d.ts +1 -18
  153. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +327 -209
  154. package/dist/src/online-form/src/views/designer/modules/sheets/sheets-swapper.vue.d.ts +2 -0
  155. package/dist/src/online-form/src/views/designer/types/index.d.ts +26 -48
  156. package/dist/src/online-form/src/views/designer/utils/dom-parser.d.ts +3 -8
  157. package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +108 -11
  158. package/dist/src/online-form/src/views/render/__components__/_common_/useAutofill.d.ts +4 -2
  159. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
  160. package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useSelectTable.d.ts +2 -2
  161. package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +1 -2
  162. package/dist/src/online-form/src/views/render/__components__/_widget_/combine-fields/index.d.ts +0 -1
  163. package/dist/src/online-form/src/views/render/__components__/paper/index.d.ts +1 -2
  164. package/dist/src/online-form/src/views/render/__logic__/dataCenter.logic.d.ts +1 -1
  165. package/dist/src/online-form/src/views/render/preview-container.vue.d.ts +19 -21
  166. package/dist/src/shared/components/Scrollbar/src/Scrollbar.vue.d.ts +8 -8
  167. package/dist/src/shared/components/Signature/index.d.ts +2 -1
  168. package/dist/src/shared/components/Signature/logic/index.d.ts +15 -2
  169. package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +29 -0
  170. package/dist/src/shared/components/Signature/ui/sign-popover-content.vue.d.ts +2 -4
  171. package/dist/src/shared/components/Signature/ui/sign-preview.vue.d.ts +18 -0
  172. package/dist/src/shared/components/Signature/ui/sign-switcher-modal.vue.d.ts +118 -0
  173. package/dist/src/shared/components/Signature/ui/sign-switcher.vue.d.ts +1 -1
  174. package/dist/src/shared/components/category-select/category-select.vue.d.ts +1 -1
  175. package/dist/src/shared/enum/field-type.d.ts +0 -23
  176. package/dist/src/shared/enum/online-form.d.ts +2 -8
  177. package/dist/src/shared/index.d.ts +0 -1
  178. package/dist/src/shared/types/field-meta.d.ts +0 -1
  179. package/dist/src/shared/utils/field-size.d.ts +2 -4
  180. package/dist/src/shared/utils/lot2sn.d.ts +0 -5
  181. package/dist/{text-design-Dd5uT-hc.js → text-design-C-EZZVRY.js} +2 -3
  182. package/dist/{throttle-Cpk1LoGk-DxTostCa.js → throttle-Cpk1LoGk-DadArQT5.js} +1 -1
  183. package/dist/{timediff-design-DhxYymPd.js → timediff-design-q-J7ObPi.js} +1 -2
  184. package/dist/{trace-like-wrapper-CczUTJwp.js → trace-like-wrapper-Bt6sH9nJ.js} +2 -3
  185. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BzAhq5rc.js → value-editor.vue_vue_type_style_index_0_lang-JFeO09Sn.js} +2 -3
  186. package/dist/web-render/index.es.js +5 -6
  187. package/dist/{widget-barcode-BrLmLnCd.js → widget-barcode-BJWcsF99.js} +4 -5
  188. package/dist/{widget-diagonal-CIg1Yn3D.js → widget-diagonal-DV6kaLwd.js} +3 -4
  189. package/dist/{widget-image-bPGudw8R.js → widget-image-ewHjWqqr.js} +5 -5
  190. package/dist/{widget-line-Dw1mkN0H.js → widget-line-BDvA6h3g.js} +2 -3
  191. package/dist/{widget-pagination-C2ylpEkR.js → widget-pagination-DY16bTxN.js} +5 -6
  192. package/dist/{widget-power-Ceni1m5s.js → widget-power-CviN2kwQ.js} +3 -4
  193. package/dist/{widget-qrcode-dHuN8ZTP.js → widget-qrcode-61PSq7lC.js} +3 -4
  194. package/dist/{widget-rangelimit-DkZwe6ix.js → widget-rangelimit-BTvirJ4W.js} +3 -3
  195. package/dist/{widget-serialnumber-Dz2_gK_C.js → widget-serialnumber-K9k_R7rl.js} +1 -1
  196. package/dist/{widget-text-BIMT_dmX.js → widget-text-vMW5bWn3.js} +5 -5
  197. package/dist/{widget-timediff-LoUQBpX7.js → widget-timediff-t_w2rNsB.js} +2 -3
  198. package/package.json +4 -4
  199. package/dist/index-Bfrtgjub.js +0 -27
  200. package/dist/paper-widget-design-B6GKQFw2.js +0 -4
  201. package/dist/print-runtime-instance-MxA8-bHV.js +0 -36
  202. package/dist/print-snapshot-renderer-D6sRzdVe.js +0 -76
  203. package/dist/seal-design-CJO9Kmm0.js +0 -4
  204. package/dist/src/domain/field/date/sterilization-date-manifest.d.ts +0 -2
  205. package/dist/src/domain/field/number/inspection-module-qty-manifest.d.ts +0 -2
  206. package/dist/src/domain/field/seal/seal-manifest.d.ts +0 -2
  207. package/dist/src/domain/field/select/inspection-container-manifest.d.ts +0 -2
  208. package/dist/src/domain/field/text/udi-manifest.d.ts +0 -2
  209. package/dist/src/domain/table/business/device/maintenance/index.d.ts +0 -1
  210. package/dist/src/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
  211. package/dist/src/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
  212. package/dist/src/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
  213. package/dist/src/domain/table/business/device/point-inspection/index.d.ts +0 -1
  214. package/dist/src/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
  215. package/dist/src/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
  216. package/dist/src/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
  217. package/dist/src/domain/table/business/device/signature-lock.d.ts +0 -9
  218. package/dist/src/domain/table/business/material/material-substitution/index.d.ts +0 -2
  219. package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -75
  220. package/dist/src/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
  221. package/dist/src/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
  222. package/dist/src/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
  223. package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -6
  224. package/dist/src/nocode-base/src/components/inspection-decision-prompt-modal.vue.d.ts +0 -7
  225. package/dist/src/nocode-base/src/hooks/annotation/runtime-annotation-binding.d.ts +0 -17
  226. package/dist/src/nocode-base/src/hooks/inspection-decision-rule/evaluator.d.ts +0 -11
  227. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +0 -56
  228. package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +0 -45
  229. package/dist/src/nocode-base/src/hooks/render-page/runtime-request.d.ts +0 -24
  230. package/dist/src/nocode-base/src/hooks/render-page/runtime-validation.d.ts +0 -17
  231. package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +0 -67
  232. package/dist/src/nocode-base/src/hooks/udi.d.ts +0 -6
  233. package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +0 -3
  234. package/dist/src/nocode-base/src/hooks/useFieldPresentation.d.ts +0 -4
  235. package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +0 -65
  236. package/dist/src/nocode-base/src/hooks/useRuntimeRowState.d.ts +0 -16
  237. package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +0 -66
  238. package/dist/src/nocode-base/src/runtime/conversions/business-row.d.ts +0 -2
  239. package/dist/src/nocode-base/src/runtime/conversions/field-config.d.ts +0 -4
  240. package/dist/src/nocode-base/src/runtime/conversions/historical-annotation.d.ts +0 -15
  241. package/dist/src/nocode-base/src/runtime/conversions/index.d.ts +0 -11
  242. package/dist/src/nocode-base/src/runtime/conversions/ocr-template.d.ts +0 -7
  243. package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +0 -21
  244. package/dist/src/nocode-base/src/runtime/date-compliance.d.ts +0 -8
  245. package/dist/src/nocode-base/src/runtime/field-identity.d.ts +0 -21
  246. package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +0 -7
  247. package/dist/src/nocode-base/src/runtime/index.d.ts +0 -18
  248. package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +0 -43
  249. package/dist/src/nocode-base/src/runtime/runtime-console-debug.d.ts +0 -36
  250. package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +0 -122
  251. package/dist/src/nocode-base/src/runtime/runtime-dependency-service.d.ts +0 -82
  252. package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +0 -26
  253. package/dist/src/nocode-base/src/runtime/runtime-field-registry.d.ts +0 -90
  254. package/dist/src/nocode-base/src/runtime/runtime-field-rows.d.ts +0 -7
  255. package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +0 -15
  256. package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +0 -132
  257. package/dist/src/nocode-base/src/runtime/runtime-instance-controller.d.ts +0 -80
  258. package/dist/src/nocode-base/src/runtime/runtime-instance-event-bus.d.ts +0 -17
  259. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +0 -296
  260. package/dist/src/nocode-base/src/runtime/runtime-persistence-coordinator.d.ts +0 -93
  261. package/dist/src/nocode-base/src/runtime/runtime-rule-compiler.d.ts +0 -37
  262. package/dist/src/nocode-base/src/runtime/runtime-sheet-service.d.ts +0 -99
  263. package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +0 -44
  264. package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +0 -23
  265. package/dist/src/nocode-base/src/types/fields/i-seal.d.ts +0 -10
  266. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +0 -78
  267. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/columns.d.ts +0 -43
  268. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +0 -194
  269. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/hooks.d.ts +0 -28
  270. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/index.d.ts +0 -6
  271. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +0 -145
  272. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-version-name-tag.vue.d.ts +0 -11
  273. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/useSelectTable.d.ts +0 -31
  274. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-select-editor/use-default-value-options.d.ts +0 -40
  275. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-select-editor/use-default-value-visibility.d.ts +0 -2
  276. package/dist/src/online-form/src/views/__cell_widgets__/seal/seal-design.vue.d.ts +0 -6
  277. package/dist/src/online-form/src/views/__cell_widgets__/seal/seal-type-labels.d.ts +0 -4
  278. package/dist/src/online-form/src/views/__cell_widgets__/seal/seal.config.d.ts +0 -2
  279. package/dist/src/online-form/src/views/__widgets__/spacer/spacer-width.d.ts +0 -2
  280. package/dist/src/online-form/src/views/__widgets__/spacer/spacer.config.d.ts +0 -2
  281. package/dist/src/online-form/src/views/designer/conversions/v1-designer.d.ts +0 -9
  282. package/dist/src/online-form/src/views/designer/hooks/useDhrEdition.d.ts +0 -7
  283. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule-condition.vue.d.ts +0 -19
  284. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule-group.vue.d.ts +0 -16
  285. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/decision-rule.d.ts +0 -54
  286. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-node.vue.d.ts +0 -24
  287. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-select.vue.d.ts +0 -30
  288. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/field-tree-utils.d.ts +0 -12
  289. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/inspection-decision-modal.vue.d.ts +0 -9
  290. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-button.vue.d.ts +0 -33
  291. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-icon.vue.d.ts +0 -12
  292. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-input.vue.d.ts +0 -23
  293. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-modal.vue.d.ts +0 -36
  294. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-scrollbar.vue.d.ts +0 -21
  295. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-select.vue.d.ts +0 -30
  296. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-switch.vue.d.ts +0 -17
  297. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/gct-text-area.vue.d.ts +0 -20
  298. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/word-ui/index.d.ts +0 -8
  299. package/dist/src/online-form/src/views/designer/modules/panel/panel-seal.vue.d.ts +0 -2
  300. package/dist/src/online-form/src/views/designer/modules/sheet/seal-layer.vue.d.ts +0 -2
  301. package/dist/src/online-form/src/views/designer/types/sheets.d.ts +0 -16
  302. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-api.d.ts +0 -17
  303. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +0 -9
  304. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +0 -9
  305. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +0 -29
  306. package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +0 -58
  307. package/dist/src/online-form/src/views/render/__components__/_field_/sign/component/sign-validation.d.ts +0 -14
  308. package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useSearchEnter.d.ts +0 -10
  309. package/dist/src/online-form/src/views/render/active-sheet-renderer.vue.d.ts +0 -15
  310. package/dist/src/online-form/src/views/render/all-sheets-renderer.vue.d.ts +0 -9
  311. package/dist/src/online-form/src/views/render/printing/iframe-print.d.ts +0 -11
  312. package/dist/src/online-form/src/views/render/printing/print-runtime-instance.d.ts +0 -11
  313. package/dist/src/online-form/src/views/render/printing/print-snapshot-renderer.vue.d.ts +0 -27
  314. package/dist/src/online-form/src/views/render/printing/runtime-print-snapshot.d.ts +0 -24
  315. package/dist/src/online-form/src/views/render/sheet-tab-bar.vue.d.ts +0 -14
  316. package/dist/src/shared/components/Seal/seal-placeholder.vue.d.ts +0 -6
  317. package/dist/src/shared/components/Seal/seal-positioned.vue.d.ts +0 -38
  318. package/dist/src/shared/seal/index.d.ts +0 -44
  319. package/dist/sub-table-factory-DLXJkTHY.js +0 -2118
@@ -1,65 +1,77 @@
1
- import { IBasicInfoItem } from '../types';
2
- import { RuntimeInstanceRegistry } from '../runtime';
3
- import { IProps, IPayload } from './render-page/types';
4
- export type { IProps, IPayload } from './render-page/types';
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
- dataSourceManagerMap: import('vue').ShallowRef<Record<string, {
7
- getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
8
- getContext: () => Record<string, unknown>;
9
- canExecute: () => boolean;
10
- reload: (key: string) => Promise<unknown>;
11
- reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
12
- states: {
13
- readonly [x: string]: {
14
- readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
15
- readonly data?: Readonly<unknown> | undefined;
16
- readonly error?: string | undefined;
17
- };
18
- };
19
- query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
20
- cancel: (key: string) => boolean;
21
- getResult(key: string): unknown;
22
- initialize: () => Promise<PromiseSettledResult<unknown>[]>;
23
- queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
24
- dispose(): void;
25
- }>, Record<string, {
26
- getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
27
- getContext: () => Record<string, unknown>;
28
- canExecute: () => boolean;
29
- reload: (key: string) => Promise<unknown>;
30
- reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
31
- states: {
32
- readonly [x: string]: {
33
- readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
34
- readonly data?: Readonly<unknown> | undefined;
35
- readonly error?: string | undefined;
36
- };
37
- };
38
- query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
39
- cancel: (key: string) => boolean;
40
- getResult(key: string): unknown;
41
- initialize: () => Promise<PromiseSettledResult<unknown>[]>;
42
- queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
43
- dispose(): void;
44
- }>>;
45
53
  counter: import('vue').Ref<number, number>;
46
54
  finisher: import('vue').Ref<number, number>;
47
- loading: import('vue').ComputedRef<boolean>;
48
- runtimeRegistry: RuntimeInstanceRegistry;
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>>;
49
60
  basicInfoList: import('vue').Ref<{
50
61
  key: string;
51
62
  tid: string;
52
63
  uniqueId: string;
53
64
  modelKey: string;
54
- formType: import('..').FormTypeEnum;
55
- platformType: import('..').PlatformEnum;
65
+ formType: FormTypeEnum;
66
+ platformType: PlatformEnum;
56
67
  posType?: import('..').PosEnum | undefined;
57
- renderModeType: import('..').RenderModeEnum;
58
- btnRenderModeType: import('..').RenderModeEnum;
68
+ renderModeType: RenderModeEnum;
69
+ btnRenderModeType: RenderModeEnum;
59
70
  isMockReport: boolean;
60
71
  gct_stashData: boolean;
61
- bpmnType?: import('..').BpmnNodeTypeEnum | undefined;
72
+ bpmnType?: BpmnNodeTypeEnum | undefined;
62
73
  bpmnFieldAuthMap?: Record<string, import('../types/common/base').IBpmnFieldAuthItem> | undefined;
74
+ eventInstance?: any;
63
75
  formChangeStatus: boolean;
64
76
  formChangeOriginData: Record<string, any>;
65
77
  formChangeNewData: Record<string, any>;
@@ -67,7 +79,6 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
67
79
  annCellLocationList: Array<string>;
68
80
  annSelectId?: string | string[] | undefined;
69
81
  annRowDetails?: {
70
- sheetId?: string | undefined;
71
82
  cellLocation: string;
72
83
  cellType: string;
73
84
  op: "ADD" | "DEL";
@@ -84,7 +95,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
84
95
  mobileSelectTdId?: string | undefined;
85
96
  contentHighlight: Record<string, any>;
86
97
  productSearchFields: string;
87
- renderPurpose?: "print" | "pdf" | undefined;
98
+ __isPrintRender?: boolean | undefined;
88
99
  showPrintFieldBg?: boolean | undefined;
89
100
  paramsConfig?: Record<string, any> | undefined;
90
101
  instanceStatus?: string | undefined;
@@ -93,15 +104,16 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
93
104
  tid: string;
94
105
  uniqueId: string;
95
106
  modelKey: string;
96
- formType: import('..').FormTypeEnum;
97
- platformType: import('..').PlatformEnum;
107
+ formType: FormTypeEnum;
108
+ platformType: PlatformEnum;
98
109
  posType?: import('..').PosEnum | undefined;
99
- renderModeType: import('..').RenderModeEnum;
100
- btnRenderModeType: import('..').RenderModeEnum;
110
+ renderModeType: RenderModeEnum;
111
+ btnRenderModeType: RenderModeEnum;
101
112
  isMockReport: boolean;
102
113
  gct_stashData: boolean;
103
- bpmnType?: import('..').BpmnNodeTypeEnum | undefined;
114
+ bpmnType?: BpmnNodeTypeEnum | undefined;
104
115
  bpmnFieldAuthMap?: Record<string, import('../types/common/base').IBpmnFieldAuthItem> | undefined;
116
+ eventInstance?: any;
105
117
  formChangeStatus: boolean;
106
118
  formChangeOriginData: Record<string, any>;
107
119
  formChangeNewData: Record<string, any>;
@@ -109,7 +121,6 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
109
121
  annCellLocationList: Array<string>;
110
122
  annSelectId?: string | string[] | undefined;
111
123
  annRowDetails?: {
112
- sheetId?: string | undefined;
113
124
  cellLocation: string;
114
125
  cellType: string;
115
126
  op: "ADD" | "DEL";
@@ -126,51 +137,31 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
126
137
  mobileSelectTdId?: string | undefined;
127
138
  contentHighlight: Record<string, any>;
128
139
  productSearchFields: string;
129
- renderPurpose?: "print" | "pdf" | undefined;
140
+ __isPrintRender?: boolean | undefined;
130
141
  showPrintFieldBg?: boolean | undefined;
131
142
  paramsConfig?: Record<string, any> | undefined;
132
143
  instanceStatus?: string | undefined;
133
144
  }[]>;
134
- selfInfoList: import('vue').Ref<{
135
- [x: string]: any;
136
- formType: import('..').FormTypeEnum;
137
- viewType: import('..').ViewTypeEnum;
138
- modelKey: string;
139
- bindKey?: string | undefined;
140
- }[], ({
141
- formType: import('..').FormTypeEnum;
142
- viewType: import('..').ViewTypeEnum;
143
- modelKey: string;
144
- bindKey?: string;
145
- } & Record<string, any>)[] | {
146
- [x: string]: any;
147
- formType: import('..').FormTypeEnum;
148
- viewType: import('..').ViewTypeEnum;
149
- modelKey: string;
150
- bindKey?: string | undefined;
151
- }[]>;
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>>;
152
148
  hasData: import('vue').ComputedRef<boolean>;
153
- findFormInsInfo: (id: string) => {
154
- [x: string]: any;
155
- formType: import('..').FormTypeEnum;
156
- viewType: import('..').ViewTypeEnum;
157
- modelKey: string;
158
- bindKey?: string | undefined;
159
- } | undefined;
149
+ findFormInsInfo: (id: string) => any;
160
150
  findBasicInsInfo: (id: string) => {
161
151
  key: string;
162
152
  tid: string;
163
153
  uniqueId: string;
164
154
  modelKey: string;
165
- formType: import('..').FormTypeEnum;
166
- platformType: import('..').PlatformEnum;
155
+ formType: FormTypeEnum;
156
+ platformType: PlatformEnum;
167
157
  posType?: import('..').PosEnum | undefined;
168
- renderModeType: import('..').RenderModeEnum;
169
- btnRenderModeType: import('..').RenderModeEnum;
158
+ renderModeType: RenderModeEnum;
159
+ btnRenderModeType: RenderModeEnum;
170
160
  isMockReport: boolean;
171
161
  gct_stashData: boolean;
172
- bpmnType?: import('..').BpmnNodeTypeEnum | undefined;
162
+ bpmnType?: BpmnNodeTypeEnum | undefined;
173
163
  bpmnFieldAuthMap?: Record<string, import('../types/common/base').IBpmnFieldAuthItem> | undefined;
164
+ eventInstance?: any;
174
165
  formChangeStatus: boolean;
175
166
  formChangeOriginData: Record<string, any>;
176
167
  formChangeNewData: Record<string, any>;
@@ -178,7 +169,6 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
178
169
  annCellLocationList: Array<string>;
179
170
  annSelectId?: string | string[] | undefined;
180
171
  annRowDetails?: {
181
- sheetId?: string | undefined;
182
172
  cellLocation: string;
183
173
  cellType: string;
184
174
  op: "ADD" | "DEL";
@@ -195,22 +185,29 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
195
185
  mobileSelectTdId?: string | undefined;
196
186
  contentHighlight: Record<string, any>;
197
187
  productSearchFields: string;
198
- renderPurpose?: "print" | "pdf" | undefined;
188
+ __isPrintRender?: boolean | undefined;
199
189
  showPrintFieldBg?: boolean | undefined;
200
190
  paramsConfig?: Record<string, any> | undefined;
201
191
  instanceStatus?: string | undefined;
202
192
  } | undefined;
203
- updateRenderModeType: (uniqueId: string, mode: import('..').RenderModeEnum, updateButton?: boolean) => Promise<void>;
204
- setFromEditStatus: (uniqueId: string) => Promise<boolean>;
205
- setAnnotationViewStatus: (uniqueId: string, status: boolean, config?: string[] | {
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[] | {
206
203
  locations?: string[];
207
- rowDetails?: import('./annotation').FormChangeRowDetailMeta[];
204
+ rowDetails?: FormChangeRowDetailMeta[];
208
205
  }) => boolean;
209
- setFormChangeRowViewDetails: (uniqueId: string, rowDetails?: import('./annotation').FormChangeRowDetailMeta[] | null) => Promise<boolean>;
210
- navigateRuntimeLocation: (uniqueId: string, target: import('..').RuntimeNavigationTarget) => Promise<boolean>;
211
- normalizeAnnotationLocation: (uniqueId: string, path: string, sheetId?: string) => string;
212
- getAnnotationContentList: (uniqueId: string, options?: {}) => any[];
213
- quickSearchRenderData: (uniqueId: string, currentSelfInfo: import('./render-page/types').RuntimeSelfInfo, saveToken?: import('..').RuntimeSaveToken) => Promise<boolean>;
214
- getAppendixInfos: (uniqueId: string, types?: any[]) => string[];
215
- 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;
216
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 { FormRuleAttach } from './types';
2
- /** 公式校验器通过 rule 取得当前行,仅保留稳定行定位信息。 */
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
- _rowKey?: string;
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(attach: FormRuleAttach | null | undefined, formData: Record<string, any> | undefined): boolean;
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;
@@ -5,7 +5,6 @@ type AssembleRulesInput = {
5
5
  fieldType?: string;
6
6
  validatorInfo: Record<string, any>;
7
7
  props: {
8
- bizType?: string;
9
8
  minlength?: number | null;
10
9
  maxlength?: number | null;
11
10
  regex?: 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[], resolvePayload: ResolvePayload): ValidationCommentMap;
23
+ export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[]): ValidationCommentMap;
25
24
  export {};
@@ -1,14 +1,17 @@
1
- import { ValidationRunMode, ValidateResult, FormRuleEntry } from './types';
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>, options: RunValidationOptions): Promise<ValidateResult>;
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?: FormRuleAttach | null;
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>;
@@ -5,5 +5,3 @@ export * from './components';
5
5
  export * from './interface';
6
6
  export * from './emit';
7
7
  export * from './core';
8
- export { ensureFrontRowKey, ensureTableRowKeys } from './_utils_/uuid';
9
- export * from './runtime';
@@ -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) => 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
- formConfig: Record<string, any>;
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, sheetId?: string) => Promise<{
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: (dataCenters: any, modelKeys: any, platformType: any, isMockReport: any, formType: FormTypeEnum, paramsConfig: any, useSignFields: any, useClsReasonDataLink: any, useClsGroupDataLink: any, tmplBomC: FormTmplBomController, modelQueries: any) => Promise<void>;
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;