@gct-paas/excel 0.1.17 → 0.1.19

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 (216) hide show
  1. package/dist/{BaseComponent-DJNL1tGs.js → BaseComponent-xTm5lvAr.js} +1 -0
  2. package/dist/{VueVideoPlayer-Db7qcsRE.js → VueVideoPlayer-Bt1Le9qP.js} +2 -2
  3. package/dist/{agg-design-BjqRVeg1.js → agg-design-B_5evAJ0.js} +1 -1
  4. package/dist/{agg-props-CrdosdGr.js → agg-props-C62Ecenu.js} +1 -1
  5. package/dist/{agg-style-CfZoOE-b.js → agg-style-Q0xSL8Ye.js} +1 -1
  6. package/dist/{align-editor-BaNT0jhx.js → align-editor-D_LtYlh3.js} +1 -1
  7. package/dist/{attach-fields-editor-CThobu8X.js → attach-fields-editor-3v3VNOfe.js} +2 -2
  8. package/dist/{barcode-design-CHjIeaiJ.js → barcode-design-lusKmMnv.js} +3 -2
  9. package/dist/base/index.es.js +370 -151
  10. package/dist/base-font-editor-DmasOst9.js +119 -0
  11. package/dist/{boolean-design-BYAdX-h5.js → boolean-design-BqGJVhKn.js} +3 -2
  12. package/dist/{boolean-props-jKvjhdlG.js → boolean-props-DS7J4GHS.js} +3 -3
  13. package/dist/{boolean-style-RsMRzVBL.js → boolean-style-C9FslVV7.js} +5 -4
  14. package/dist/cell-upload-BFw5Yg_j.js +33 -0
  15. package/dist/date-range-editor-PmJBHc8i.js +471 -0
  16. package/dist/{date-time-design-Du8pmDo-.js → date-time-design-DQ_Z-xUx.js} +1 -1
  17. package/dist/date-time-props-DfZoJukN.js +105 -0
  18. package/dist/{date-time-style-DSEnmxAE.js → date-time-style-Doye-MHk.js} +1 -1
  19. package/dist/{decimal-design-C2GbzP9k.js → decimal-design-Bg-tdrtL.js} +7 -3
  20. package/dist/{decimal-display-mode-CagizhJW.js → decimal-display-mode-D_K6_XX1.js} +3 -2
  21. package/dist/{decimal-props-CGLqWy8I.js → decimal-props-4QveEdf3.js} +5 -4
  22. package/dist/{decimal-style-6j22QKYO.js → decimal-style-B-n8SfAy.js} +1 -1
  23. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-C5K6qhB-.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B3GvGAje.js} +110 -39
  24. package/dist/{diagonal-design-Cq3oxdHe.js → diagonal-design-B_l3lV5s.js} +2 -2
  25. package/dist/{double-design-CyXEqcV7.js → double-design-BaWZXLjK.js} +6 -3
  26. package/dist/{double-props-DaJoio1W.js → double-props-sDsBpAER.js} +4 -4
  27. package/dist/{double-style-B4lIth-J.js → double-style--oSjQw07.js} +1 -1
  28. package/dist/{document-sub-table-action-rz6gyez5.js → dynamic-table-action-zLjamAaN.js} +1124 -654
  29. package/dist/{document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_94e9d614_lang-UooIxEeL.js} +2312 -1402
  30. package/dist/{edit.utils-CXmmCnxE-DW8ClKe9.js → edit.utils-CXmmCnxE-BrwRVXLT.js} +1 -1
  31. package/dist/{enum-design-DSx09tOO.js → enum-design-BgVuHvvu.js} +13 -7
  32. package/dist/{enum-props-CJNuQLJ_.js → enum-props-DYN6LsLg.js} +4 -4
  33. package/dist/{enum-style-5N5xmgRJ.js → enum-style-D56_-gMw.js} +37 -9
  34. package/dist/excel.css +1480 -664
  35. package/dist/{exceljs.min-D9gV8q6H.js → exceljs.min-DQkwXbni.js} +2 -2
  36. package/dist/{expression-design-BJDbafot.js → expression-design-CIMwIArR.js} +1 -1
  37. package/dist/{expression-props-BpHbrsle.js → expression-props--l3LwKAM.js} +1 -1
  38. package/dist/{expression-style-qPh81w7Q.js → expression-style-CjM5oro9.js} +1 -1
  39. package/dist/{file-design-B7si04Bi.js → file-design-BYcXA55B.js} +1 -1
  40. package/dist/{file-props-DTtOnHQy.js → file-props-DvsQZUcL.js} +2 -2
  41. package/dist/{file-style-C6KW_szu.js → file-style-BiWmCsMZ.js} +1 -1
  42. package/dist/{font-editor-DgGgvmB2.js → font-editor-BaRVmXey.js} +3 -3
  43. package/dist/{form-annotation-controller-CoABDD4X.js → form-annotation-controller-Zw6OoPLe.js} +80 -23
  44. package/dist/{image-design-B92Xkcf-.js → image-design-Bad-BXel.js} +3 -2
  45. package/dist/{image-design-CCfpT4Rp.js → image-design-Dr_w89Hq.js} +2 -2
  46. package/dist/{image-props-DZgfzMta.js → image-props-4lKEAwDq.js} +1 -1
  47. package/dist/{image-style-DX6Q_gF4.js → image-style-LoHD1zvr.js} +1 -1
  48. package/dist/{index-Bnbl3VER.js → index--Bxx_VqV.js} +3 -2
  49. package/dist/{index-DsASTvC2.js → index-3qfB5NN-.js} +2 -1
  50. package/dist/{index-CtTSTTkq.js → index-B-2N8GeG.js} +3 -2
  51. package/dist/{index-Bg-x1hF6.js → index-B3YoA1vo.js} +3 -2
  52. package/dist/{index-BzhFcvnJ.js → index-B9IMST50.js} +3 -2
  53. package/dist/{index-Doxcf2Zs.js → index-BSfbsA-W.js} +3 -2
  54. package/dist/{index-DJISlRXi.js → index-BZYuG4zS.js} +5 -2
  55. package/dist/{index-DzIKEtWw.js → index-B_VejD7m.js} +4 -1
  56. package/dist/{index-BXMOCfWv.js → index-Bki98NXv.js} +3 -2
  57. package/dist/{index-DFgGQBCZ.js → index-Bm6Hdoud.js} +53 -110
  58. package/dist/{index-CmaPtyCh.js → index-BsUkUBZV.js} +5 -2
  59. package/dist/{index-BB5uSbo3.js → index-Bsjegt_0.js} +2 -1
  60. package/dist/{index-rn6aiccW.js → index-ByXwQO9g.js} +6 -3
  61. package/dist/{index-DOFSbVSN.js → index-C6mtZJIQ.js} +2 -1
  62. package/dist/{index-DRKvAxuA.js → index-C7KdVTwU.js} +2 -1
  63. package/dist/{index-tbaOl7Nd.js → index-CEufXc_2.js} +2 -1
  64. package/dist/{index-D6diRqWG.js → index-CH--dgZ4.js} +3 -2
  65. package/dist/{index-BEBKoAOg.js → index-COiTpNXf.js} +3 -2
  66. package/dist/{index-BYl8cK0A.js → index-CP099vf_.js} +2 -1
  67. package/dist/{index-BhzF0Rp3.js → index-CQ7Hcly4.js} +5 -3
  68. package/dist/{index-Be7TFwwX.js → index-CcLTIQGc.js} +5 -2
  69. package/dist/{index-C8qPy1oW.js → index-Ce0SltjH.js} +3 -2
  70. package/dist/{index-bvhV6lsn.js → index-CqjhgxKH.js} +15 -7
  71. package/dist/{index-B2iip4UC.js → index-D-mFMP7t.js} +3 -2
  72. package/dist/{index-IUYnmIJe.js → index-D4Yb4Urx.js} +2 -1
  73. package/dist/{index-Da7W9uBC.js → index-D9CHdykS.js} +3 -2
  74. package/dist/{index-DRd2oRK1.js → index-DDnUeBCP.js} +3 -2
  75. package/dist/{index-XbgrTOMF.js → index-DRYxbbtG.js} +2 -1
  76. package/dist/{index-Cw_YFCZT.js → index-Dk-CUvB9.js} +3876 -3389
  77. package/dist/{index-Dsj3FuVs.js → index-DpPrrfLV.js} +3 -2
  78. package/dist/{index-DgHRTRH5.js → index-Dq72GFzs.js} +3 -2
  79. package/dist/{index-p-Q3DQmv.js → index-Vx5npC-J.js} +4 -3
  80. package/dist/{index-CIoB2iny.js → index-pPTh0-mL.js} +2 -1
  81. package/dist/index.es.js +6 -5
  82. package/dist/{integer-design-CPzJPZon.js → integer-design-C2EkL0hc.js} +6 -3
  83. package/dist/{integer-props-deCDvNET.js → integer-props-Cs-CvjQS.js} +5 -4
  84. package/dist/{integer-style-DwZIRXEW.js → integer-style-BtAfQCAn.js} +1 -1
  85. package/dist/{mb-render-Bejyn-ep.js → mb-render-CsWNoQnS.js} +1 -1
  86. package/dist/{number-input-ex-CgwOH18n.js → number-input-ex-eza87s5O.js} +12 -4
  87. package/dist/{org-props-BeFVQ-QY.js → org-props-BJ6FKaVj.js} +3 -2
  88. package/dist/{org-style-CLVWLtyd.js → org-style-LRy5QsV5.js} +1 -1
  89. package/dist/{pagination-design-CT0EQmxW.js → pagination-design-sA-kbILI.js} +3 -2
  90. package/dist/paper-widget-design-BGY5qu-K.js +4 -0
  91. package/dist/{qrcode-design-CjOkp2xa.js → qrcode-design-BsWJrsvD.js} +1 -1
  92. package/dist/{ref-autofill-editor-B2KcQvyt.js → ref-autofill-editor-BbozAOcm.js} +2 -2
  93. package/dist/{ref-props-DPnt_pys.js → ref-props-BInJu7PN.js} +3 -3
  94. package/dist/{ref-style-D0XKTtP1.js → ref-style-Dgc_9tko.js} +1 -1
  95. package/dist/regex-editor-C09XpMhm.js +796 -0
  96. package/dist/{revo-grid.entry-ztDhASK3.js → revo-grid.entry-BIm5A5wM.js} +1 -1
  97. package/dist/{revogr-attribution_7.entry-BtXV91vv.js → revogr-attribution_7.entry-B06XF5B_.js} +3 -3
  98. package/dist/{revogr-clipboard_3.entry-DXpq4oNb.js → revogr-clipboard_3.entry-C8dVJYtR.js} +2 -2
  99. package/dist/{revogr-data_4.entry-WA1PNcGb.js → revogr-data_4.entry-Dgp6vYqe.js} +2 -2
  100. package/dist/{revogr-filter-panel.entry-unpVAD7l.js → revogr-filter-panel.entry-xo_juIUc.js} +1 -1
  101. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-CqaEwsvS.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-vIUGBOWr.js} +3 -2
  102. package/dist/{serialnumber-design-ClArHZWU.js → serialnumber-design-mWcys6hI.js} +1 -1
  103. package/dist/shared/index.es.js +18 -18
  104. package/dist/{signature-design-Cg2Ejj3g.js → signature-design-Dl-Lv5Z5.js} +5 -2
  105. package/dist/{signature-props-CNuLBWtc.js → signature-props-DSzpO-_r.js} +3 -3
  106. package/dist/{signature-style-DtlZdeFB.js → signature-style-Bk34vOsk.js} +1 -1
  107. package/dist/{single-field-drop-COLR9RIu.js → single-field-drop-CiPUMT9B.js} +2 -2
  108. package/dist/{size-editor-DyGGEX3s.js → size-editor-B5aunbUM.js} +1 -1
  109. package/dist/src/adapter/index.d.ts +1 -0
  110. package/dist/src/adapter/setup.d.ts +1 -1
  111. package/dist/src/nocode-base/src/_utils_/uuid.d.ts +6 -1
  112. package/dist/src/nocode-base/src/components/border-td.vue.d.ts +1 -0
  113. package/dist/src/nocode-base/src/components/{document-quick-fill-modal.vue.d.ts → document-quick-fill/dynamic-quick-fill-modal.vue.d.ts} +1 -1
  114. package/dist/src/nocode-base/src/components/{document-quick-fillin.vue.d.ts → document-quick-fill/fixed-quick-fill-modal.vue.d.ts} +6 -4
  115. package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +17 -0
  116. package/dist/src/nocode-base/src/components/document-sub-table-action/fixed-table-action.vue.d.ts +13 -0
  117. package/dist/src/nocode-base/src/components/index.d.ts +4 -3
  118. package/dist/src/nocode-base/src/constant/index.d.ts +11 -0
  119. package/dist/src/nocode-base/src/hooks/annotation/collect-annotation-items.d.ts +15 -0
  120. package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +5 -2
  121. package/dist/src/nocode-base/src/hooks/annotation/form-change-row.d.ts +60 -0
  122. package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +2 -0
  123. package/dist/src/nocode-base/src/hooks/app-info/index.d.ts +2 -2
  124. package/dist/src/nocode-base/src/hooks/index.d.ts +2 -1
  125. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +3 -1
  126. package/dist/src/nocode-base/src/hooks/model-relation/index.d.ts +1 -1
  127. package/dist/src/nocode-base/src/hooks/service-util/sn-rule.d.ts +1 -1
  128. package/dist/src/nocode-base/src/hooks/useFormHook.d.ts +1 -1
  129. package/dist/src/nocode-base/src/hooks/useRenderData.d.ts +4 -2
  130. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +39 -4
  131. package/dist/src/nocode-base/src/hooks/useValidator.d.ts +6 -6
  132. package/dist/src/nocode-base/src/hooks/validation/admission.d.ts +19 -0
  133. package/dist/src/nocode-base/src/hooks/validation/attach.d.ts +24 -0
  134. package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +35 -0
  135. package/dist/src/nocode-base/src/hooks/validation/formRulesStore.d.ts +15 -0
  136. package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +24 -0
  137. package/dist/src/nocode-base/src/hooks/validation/runValidation.d.ts +17 -0
  138. package/dist/src/nocode-base/src/hooks/validation/scheduler.d.ts +12 -0
  139. package/dist/src/nocode-base/src/hooks/validation/types.d.ts +44 -0
  140. package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +39 -0
  141. package/dist/src/nocode-base/src/hooks/validation/utils.d.ts +24 -0
  142. package/dist/src/nocode-base/src/hooks/validation/waitForSettle.d.ts +17 -0
  143. package/dist/src/nocode-base/src/interface/render.d.ts +1 -1
  144. package/dist/src/nocode-base/src/types/common/base.d.ts +16 -2
  145. package/dist/src/nocode-base/src/types/fields/i-datepicker.d.ts +5 -1
  146. package/dist/src/nocode-base/src/types/fields/i-datetimepicker.d.ts +5 -1
  147. package/dist/src/nocode-base/src/types/fields/i-enum-select.d.ts +2 -0
  148. package/dist/src/nocode-base/src/types/fields/i-inputdouble.d.ts +5 -1
  149. package/dist/src/nocode-base/src/types/fields/i-inputnumber.d.ts +5 -1
  150. package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +27 -1
  151. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +3 -1
  152. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +3 -1
  153. package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +2 -0
  154. package/dist/src/nocode-base/src/types/widgets/i-sub-table.d.ts +4 -0
  155. package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +2 -0
  156. package/dist/src/nocode-web-render/src/render/index.d.ts +2 -2
  157. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +3 -1
  158. package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +3 -1
  159. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +1 -2
  160. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +3 -1
  161. package/dist/src/online-form/src/components/version-diff/index/types.d.ts +2 -0
  162. package/dist/src/online-form/src/utils/field.enum.d.ts +3 -2
  163. package/dist/src/online-form/src/views/__cell_widgets__/common/keep-exception-highlight-editor/keep-exception-highlight-editor.vue.d.ts +10 -0
  164. package/dist/src/online-form/src/views/__cell_widgets__/common/regex-editor/common-regex-api.d.ts +11 -0
  165. package/dist/src/online-form/src/views/__cell_widgets__/common/regex-editor/editor.d.ts +8 -0
  166. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +28 -0
  167. package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +1 -1
  168. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +43 -2
  169. package/dist/src/{nocode-web-render/src/render/sub-table/material-consume/scan-modal.vue.d.ts → online-form/src/views/designer/modules/panel/comps/confirm-before-delete-config.vue.d.ts} +2 -4
  170. package/dist/src/online-form/src/views/designer/modules/panel/comps/quick-fill-config.vue.d.ts +8 -0
  171. package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/field-tree-select.vue.d.ts +2 -2
  172. package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/add-builtin-param/add-builtin-param-select.vue.d.ts +2 -2
  173. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/form-field-tree-select.vue.d.ts +2 -2
  174. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/material-rdo-select.vue.d.ts +2 -2
  175. package/dist/src/online-form/src/views/designer/modules/sheet/sheet-cell.vue.d.ts +1 -0
  176. package/dist/src/online-form/src/views/designer/types/index.d.ts +4 -0
  177. package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +3 -0
  178. package/dist/src/online-form/src/views/render/__components__/_common_/widget-component.vue.d.ts +3 -1
  179. package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +5 -0
  180. package/dist/src/shared/components/rdo-tree-select/rdo-tree-select.vue.d.ts +2 -2
  181. package/dist/src/shared/utils/host-api.d.ts +3 -11
  182. package/dist/{text-design-DjJS6aM4.js → text-design-BIFz5gw1.js} +3 -2
  183. package/dist/{text-design-490okDpw.js → text-design-C0dORvkP.js} +10 -6
  184. package/dist/{text-props-Dh4S3iN0.js → text-props-ClHI-4aM.js} +21 -252
  185. package/dist/{text-style-BGeNrOMv.js → text-style-DANM5fvy.js} +1 -1
  186. package/dist/{throttle-Cpk1LoGk-BWXeZXFZ.js → throttle-Cpk1LoGk-Da5HSLWc.js} +1 -1
  187. package/dist/{timediff-design-DEh9xNVa.js → timediff-design-BDCsQIal.js} +2 -1
  188. package/dist/{trace-design-Dk0irY70.js → trace-design-CKqq1WH_.js} +2 -2
  189. package/dist/{trace-props-DRBrPqIq.js → trace-props-BI24XFMc.js} +53 -16
  190. package/dist/{trace-style-6lXlaJ2o.js → trace-style-CX1f7oZH.js} +1 -1
  191. package/dist/{user-props-yasRJPzM.js → user-props-gF7KPnP8.js} +3 -2
  192. package/dist/{user-style-dkDUDf63.js → user-style-DIouAMWa.js} +1 -1
  193. package/dist/{value-editor.vue_vue_type_style_index_0_lang-8rhhfLv7.js → value-editor.vue_vue_type_style_index_0_lang-DHj-zNxm.js} +3 -2
  194. package/dist/{version-select-dvsx-Ifv.js → version-select-CL3QQGND.js} +2 -2
  195. package/dist/web-render/index.es.js +9 -9
  196. package/dist/{widget-barcode-BfzXe5MQ.js → widget-barcode-DZiCyrQW.js} +5 -4
  197. package/dist/{widget-diagonal-R5qdvCvE.js → widget-diagonal-D_Oz8te1.js} +3 -3
  198. package/dist/{widget-image-C0zAtiuf.js → widget-image-TL_SLOap.js} +5 -5
  199. package/dist/{widget-line-z4TTPDkL.js → widget-line-BQ-qcBUA.js} +3 -2
  200. package/dist/{widget-pagination-CeO9pmmu.js → widget-pagination-DciJE9qC.js} +6 -5
  201. package/dist/{widget-power-CP1DLxkZ.js → widget-power-B9KTIpwA.js} +3 -3
  202. package/dist/{widget-qrcode-Boz_t9l9.js → widget-qrcode-DRoj5rSy.js} +4 -3
  203. package/dist/{widget-rangelimit-B9kRG_Fa.js → widget-rangelimit-Ckgx3i4r.js} +3 -3
  204. package/dist/{widget-serialnumber-BBUxx4nB.js → widget-serialnumber-aUkR-0yC.js} +1 -1
  205. package/dist/{widget-text-qvLZssGe.js → widget-text-CJIT-hY3.js} +5 -5
  206. package/dist/{widget-timediff-BBmssjfJ.js → widget-timediff-x-RQMdNg.js} +3 -2
  207. package/package.json +1 -1
  208. package/dist/base-font-editor-BiSPxwVH.js +0 -83
  209. package/dist/cell-upload-JxFLM1bV.js +0 -25
  210. package/dist/date-format-editor-BZ89hVjL.js +0 -240
  211. package/dist/date-time-props-BWvuzNXX.js +0 -265
  212. package/dist/paper-widget-design-DKBVqvH3.js +0 -4
  213. package/dist/src/nocode-base/src/hooks/form-model/fetcher.d.ts +0 -40
  214. package/dist/src/nocode-base/src/interface/data.d.ts +0 -47
  215. package/dist/src/nocode-base/src/interface/util.d.ts +0 -108
  216. /package/dist/src/nocode-base/src/components/document-sub-table-action/{document-sub-table-action.vue.d.ts → dynamic-table-action.vue.d.ts} +0 -0
@@ -2,6 +2,7 @@ import { RenderModeEnum, FormTypeEnum, PlatformEnum, BpmnNodeTypeEnum } from '..
2
2
  import { IPageData, IBasicInfoItem, ValidateFieldErrorMap } from '../types';
3
3
  import { FormTmplBomController } from './material-consume';
4
4
  import { SubTableCoreFactory } from '../core/factory/sub-table-factory';
5
+ import { FormChangeRowDetailMeta } from './annotation/form-change-row';
5
6
  export interface IProps {
6
7
  /** 模板实例id或者模板id */
7
8
  selfId: string | string[] | undefined;
@@ -76,7 +77,16 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
76
77
  formChangeNewData: Record<string, any>;
77
78
  annSwitchStatus: boolean;
78
79
  annCellLocationList: Array<string>;
79
- annSelectId?: string | undefined;
80
+ annSelectId?: string | string[] | undefined;
81
+ annRowDetails?: {
82
+ cellLocation: string;
83
+ cellType: string;
84
+ op: "ADD" | "DEL";
85
+ subFieldId: string;
86
+ rowKey: string;
87
+ snapshot: Record<string, any>;
88
+ id?: string | undefined;
89
+ }[] | undefined;
80
90
  validatorLocationList: Array<string>;
81
91
  validatorMessageMap: Record<string, any>;
82
92
  mobileTdIdGroups: Map<any, any> & Omit<Map<any, any>, keyof Map<any, any>>;
@@ -84,6 +94,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
84
94
  contentHighlight: Record<string, any>;
85
95
  productSearchFields: string;
86
96
  __isPrintRender?: boolean | undefined;
97
+ showPrintFieldBg?: boolean | undefined;
87
98
  }[], IBasicInfoItem[] | {
88
99
  key: string;
89
100
  tid: string;
@@ -104,7 +115,16 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
104
115
  formChangeNewData: Record<string, any>;
105
116
  annSwitchStatus: boolean;
106
117
  annCellLocationList: Array<string>;
107
- annSelectId?: string | undefined;
118
+ annSelectId?: string | string[] | undefined;
119
+ annRowDetails?: {
120
+ cellLocation: string;
121
+ cellType: string;
122
+ op: "ADD" | "DEL";
123
+ subFieldId: string;
124
+ rowKey: string;
125
+ snapshot: Record<string, any>;
126
+ id?: string | undefined;
127
+ }[] | undefined;
108
128
  validatorLocationList: Array<string>;
109
129
  validatorMessageMap: Record<string, any>;
110
130
  mobileTdIdGroups: Map<any, any> & Omit<Map<any, any>, keyof Map<any, any>>;
@@ -112,6 +132,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
112
132
  contentHighlight: Record<string, any>;
113
133
  productSearchFields: string;
114
134
  __isPrintRender?: boolean | undefined;
135
+ showPrintFieldBg?: boolean | undefined;
115
136
  }[]>;
116
137
  selfInfoList: import('vue').Ref<any, any>;
117
138
  tmplBomCMap: import('vue').Ref<Record<string, FormTmplBomController>, Record<string, FormTmplBomController>>;
@@ -138,7 +159,16 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
138
159
  formChangeNewData: Record<string, any>;
139
160
  annSwitchStatus: boolean;
140
161
  annCellLocationList: Array<string>;
141
- annSelectId?: string | undefined;
162
+ annSelectId?: string | string[] | undefined;
163
+ annRowDetails?: {
164
+ cellLocation: string;
165
+ cellType: string;
166
+ op: "ADD" | "DEL";
167
+ subFieldId: string;
168
+ rowKey: string;
169
+ snapshot: Record<string, any>;
170
+ id?: string | undefined;
171
+ }[] | undefined;
142
172
  validatorLocationList: Array<string>;
143
173
  validatorMessageMap: Record<string, any>;
144
174
  mobileTdIdGroups: Map<any, any> & Omit<Map<any, any>, keyof Map<any, any>>;
@@ -146,6 +176,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
146
176
  contentHighlight: Record<string, any>;
147
177
  productSearchFields: string;
148
178
  __isPrintRender?: boolean | undefined;
179
+ showPrintFieldBg?: boolean | undefined;
149
180
  } | undefined;
150
181
  updatePageData: (uniqueId: string) => void;
151
182
  updateRenderModeType: (uniqueId: string, newRenderModeType: RenderModeEnum, updateButton?: boolean) => void;
@@ -156,7 +187,11 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
156
187
  } | undefined>;
157
188
  getFormState: (uniqueId: any) => Partial<{}>;
158
189
  setFromEditStatus: (uniqueId: any) => Promise<boolean>;
159
- setAnnotationViewStatus: (uniqueId: any, status: any, config: any) => boolean;
190
+ setAnnotationViewStatus: (uniqueId: any, status: any, config?: string[] | {
191
+ locations?: string[];
192
+ rowDetails?: FormChangeRowDetailMeta[];
193
+ }) => boolean;
194
+ setFormChangeRowViewDetails: (uniqueId: string, rowDetails?: FormChangeRowDetailMeta[] | null, _historyId?: string | null) => boolean;
160
195
  getAnnotationContentList: (uniqueId: any, options?: {}) => any[];
161
196
  setValidatorViewStatus: (uniqueId: any, config: any) => boolean;
162
197
  quickSearchRenderData: (uniqueId: any, currentSelfInfo: any) => Promise<void>;
@@ -1,3 +1,4 @@
1
+ import { requestFullValidation, requestDisplayValidation, registerValidationContext, unregisterValidationContext, clearFormRules, deleteSubtableRow, insertSubtableRows, settleAndValidateDisplay, settleAfterModeSwitch } from './validation/useFormValidator';
1
2
  import { IPaper, ValidateFieldErrorMap } from '../types';
2
3
  export declare function useValidator(props: any): {
3
4
  widgetStyles: import('vue').ComputedRef<{}>;
@@ -5,14 +6,13 @@ export declare function useValidator(props: any): {
5
6
  isFieldModel: any;
6
7
  };
7
8
  /**
8
- * 表单校验
9
- * @param showMsg false的时候是校验清单触发的
10
- *
9
+ * 表单校验(提交 / 校验清单)
11
10
  */
12
- export declare const validate: (formData: any, paper: IPaper) => Promise<{
11
+ export declare const validate: (formData: any, paper: IPaper, uniqueId?: string) => Promise<{
13
12
  /** 是否通过校验 */
14
13
  isValid: boolean;
15
14
  fields?: ValidateFieldErrorMap;
15
+ /** 是否已通过 ValidationContext 写入 UI 错误态 */
16
+ uiApplied?: boolean;
16
17
  } | undefined>;
17
- export declare function clearFormRules(): void;
18
- export declare function deleteSubtableRow(subtableFieldId: any, realRowIndex: any): void;
18
+ export { clearFormRules, deleteSubtableRow, insertSubtableRows, settleAndValidateDisplay, settleAfterModeSwitch, requestFullValidation, requestDisplayValidation, registerValidationContext, unregisterValidationContext, };
@@ -0,0 +1,19 @@
1
+ import { ValidationRunMode } from './types';
2
+ type ValidationAdmissionInput = {
3
+ mode: ValidationRunMode;
4
+ /** 禁用或只读 */
5
+ blocked: boolean;
6
+ /** display 时是否保留异常标红 */
7
+ keepExceptionHighlight: boolean;
8
+ };
9
+ type ValidationAdmissionDecision = {
10
+ admit: boolean;
11
+ };
12
+ /**
13
+ * 解析「保留异常提示」是否开启
14
+ * 字段显式配置优先;未配置时跟随表单;都未配置时默认开启
15
+ */
16
+ export declare function resolveKeepExceptionHighlight(formValue?: boolean | null, fieldValue?: boolean | null): boolean;
17
+ /** 字段是否进入当前轮次校验 */
18
+ export declare function resolveValidationAdmission(input: ValidationAdmissionInput): ValidationAdmissionDecision;
19
+ export {};
@@ -0,0 +1,24 @@
1
+ import { FormRuleMeta } from './types';
2
+ /** 规则上挂载的引用字段上下文 */
3
+ export type AttachRuleContext = {
4
+ _belongFieldId?: string;
5
+ _optionValue?: any;
6
+ _multiple?: boolean;
7
+ _subtableFieldId?: string;
8
+ _realRowIndex?: number;
9
+ _childSubTableDataIndex?: number;
10
+ };
11
+ /** 取规则对应的当前行 / 主表 formData */
12
+ export declare function getCurrentFormData(_rule: AttachRuleContext, options: {
13
+ formData?: any;
14
+ }): any;
15
+ /** 从 rule 或 meta.attach 解析上下文 */
16
+ export declare function resolveAttachContext(rule: AttachRuleContext | undefined, metaAttach?: FormRuleMeta['attach']): AttachRuleContext | undefined;
17
+ /** 引用字段是否处于激活选项下 */
18
+ export declare function isAttachFieldActive(rule: AttachRuleContext | undefined, formData: Record<string, any> | undefined): boolean;
19
+ /** 当前行数据下引用字段是否应对用户呈现 */
20
+ export declare function isReferenceOptionActive(referenceInfo: {
21
+ belongFieldId?: string;
22
+ optionValue?: any;
23
+ multiple?: boolean;
24
+ } | null | undefined, rowFormData: Record<string, any> | undefined): boolean;
@@ -0,0 +1,35 @@
1
+ import { RangeCompareOp } from '../../constant';
2
+ import { ValidateTrigger } from './types';
3
+ type AssembleRulesInput = {
4
+ showRequired: boolean;
5
+ fieldType?: string;
6
+ validatorInfo: Record<string, any>;
7
+ props: {
8
+ minlength?: number | null;
9
+ maxlength?: number | null;
10
+ regex?: string;
11
+ regexHint?: string;
12
+ validateTrue?: boolean;
13
+ validateFalse?: boolean;
14
+ enableRangeValidate?: boolean;
15
+ maxValidateMode?: string;
16
+ minValidateMode?: string;
17
+ maxCompareOp?: RangeCompareOp;
18
+ minCompareOp?: RangeCompareOp;
19
+ minValue?: any;
20
+ maxValue?: any;
21
+ minFormulaExpr?: any;
22
+ maxFormulaExpr?: any;
23
+ minDate?: any;
24
+ maxDate?: any;
25
+ minDateFormulaExpr?: any;
26
+ maxDateFormulaExpr?: any;
27
+ maxDateValidateMode?: string;
28
+ minDateValidateMode?: string;
29
+ };
30
+ };
31
+ /** 按触发时机过滤规则(manual=仅提交,change/blur=编辑时) */
32
+ export declare function filterRulesByTrigger(rules: any[], trigger: ValidateTrigger): any[];
33
+ /** 组装字段校验规则 */
34
+ export declare function assembleRules(input: AssembleRulesInput): any[];
35
+ export {};
@@ -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;
@@ -0,0 +1,24 @@
1
+ import { ValidationCommentMap } from './types';
2
+ type PayloadLite = {
3
+ value: any;
4
+ rules: any[];
5
+ };
6
+ type ResolvePayload = (path: string) => PayloadLite | null;
7
+ /**
8
+ * 编辑时合并:更新 change/blur 规则结果,保留未修复的 manual 批注
9
+ *
10
+ * blur/change 不会跑 manual,上下限等对空值会直接通过,
11
+ * 此时不能整路径 delete,否则会把必填批注清掉
12
+ */
13
+ export declare function mergeLiveValidation(current: ValidationCommentMap, liveResult: ValidationCommentMap, livePaths: string[], resolvePayload: ResolvePayload): ValidationCommentMap;
14
+ /**
15
+ * 提交时合并:只更新可编辑字段结果,保留 display 标出的不可编辑异常
16
+ */
17
+ export declare function mergeSubmitValidation(current: ValidationCommentMap, submitResult: ValidationCommentMap, editablePaths: string[]): ValidationCommentMap;
18
+ /** 子表结构变更后,去掉已失效 path 的错误态 */
19
+ export declare function pruneValidationComments(current: ValidationCommentMap, validPaths: Set<string>): ValidationCommentMap;
20
+ /**
21
+ * display 合并:按本轮 validatedPaths 更新;清掉已卸载 path
22
+ */
23
+ export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[]): ValidationCommentMap;
24
+ export {};
@@ -0,0 +1,17 @@
1
+ import { IPaper } from '../../types';
2
+ import { ValidationRunMode, ValidateResult } from './types';
3
+ type RunValidationOptions = {
4
+ mode?: ValidationRunMode;
5
+ /** 表单级 keepExceptionHighlight */
6
+ keepExceptionHighlight?: boolean | null;
7
+ };
8
+ /**
9
+ * 按 mode 过滤规则并执行 async-validator
10
+ */
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;
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 {};
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 规则触发时机:
3
+ * - change: 值变化时实时校验
4
+ * - blur: 失焦时校验(过滤阶段会合并 change 规则)
5
+ * - manual: 手动/提交时校验(如必填)
6
+ */
7
+ export type ValidateTrigger = 'change' | 'blur' | 'manual';
8
+ /**
9
+ * 校验轮次模式:
10
+ * - ValidateTrigger: 编辑态触发
11
+ * - all: 提交全量校验
12
+ * - display: 展示用(只读含必填;可编辑不含必填),不拦提交
13
+ */
14
+ export type ValidationRunMode = ValidateTrigger | 'all' | 'display';
15
+ export type FormRuleMeta = {
16
+ /** 禁用 / 只读,不可编辑 */
17
+ blocked: boolean;
18
+ /** 字段级:是否在 display 时保留异常标红;未配置时跟随表单 */
19
+ keepExceptionHighlight?: boolean;
20
+ /** 布尔/枚举引用字段附着上下文(门禁用,不依赖 rule 对象上的挂载字段) */
21
+ attach?: {
22
+ belongFieldId: string;
23
+ optionValue: any;
24
+ multiple?: boolean;
25
+ subtableFieldId?: string;
26
+ realRowIndex?: number;
27
+ childSubTableDataIndex?: number;
28
+ } | null;
29
+ };
30
+ export type ValidateResult = {
31
+ isValid: boolean;
32
+ fields?: Record<string, any[]>;
33
+ /** 本轮进入校验的可编辑 path */
34
+ editablePaths?: string[];
35
+ /** 本轮 live 校验 path */
36
+ livePaths?: string[];
37
+ /** 本轮明确处理过的 path(含未激活引用字段,用于 display 合并清红) */
38
+ validatedPaths?: string[];
39
+ /** 当前规则库全部 path */
40
+ ruleKeys?: string[];
41
+ /** 拍平后的表单数据 */
42
+ flatData?: Record<string, any>;
43
+ };
44
+ export type ValidationCommentMap = Record<string, any[]> | null;
@@ -0,0 +1,39 @@
1
+ import { IPaper } from '../../types';
2
+ import { ValidationRunMode, ValidationCommentMap, ValidateResult } from './types';
3
+ type ValidationContext = {
4
+ uniqueId: string;
5
+ getFormData: () => Record<string, any>;
6
+ getPaper: () => IPaper | undefined;
7
+ /** 表单级 keepExceptionHighlight */
8
+ getKeepExceptionHighlight?: () => boolean | null | undefined;
9
+ /** 写入错误态 UI */
10
+ applyComments: (comments: ValidationCommentMap) => void;
11
+ /** 读取当前错误态 */
12
+ getComments: () => ValidationCommentMap;
13
+ };
14
+ export declare function registerValidationContext(ctx: ValidationContext): void;
15
+ export declare function unregisterValidationContext(uniqueId: string): void;
16
+ /** 提交全量校验(可编辑字段全部规则) */
17
+ export declare function validateAllFields(uniqueId: string): Promise<ValidateResult | undefined>;
18
+ /** 展示校验:只读含必填;可编辑不含必填 */
19
+ export declare function validateDisplayFields(uniqueId: string): Promise<ValidateResult | undefined>;
20
+ /** 防抖请求 display */
21
+ export declare function requestDisplayValidation(uniqueId: string, immediate?: boolean): void;
22
+ /** 编辑态请求校验(change / blur) */
23
+ export declare function requestFullValidation(uniqueId: string, options?: {
24
+ immediate?: boolean;
25
+ trigger?: ValidationRunMode;
26
+ }): void;
27
+ /** 子表结构变更后 prune 无效 path */
28
+ export declare function pruneFormValidationComments(uniqueId: string): void;
29
+ export declare function clearFormRules(): void;
30
+ export declare function deleteSubtableRow(subtableFieldId: string, realRowIndex: number): void;
31
+ /** 子表插入行后重排规则 key,等更新 realRowIndex / 新行挂载后再校验 */
32
+ export declare function insertSubtableRows(subtableFieldId: string, insertIndex: number, count?: number): void;
33
+ /** settle 后跑 display */
34
+ export declare function settleAndValidateDisplay(uniqueId: string): Promise<void>;
35
+ /** 模式切换 丢弃 remount 空窗期的过期 display,等规则(含引用字段)挂稳后再跑校验 */
36
+ export declare function settleAfterModeSwitch(uniqueId: string, options?: {
37
+ runChangeLive?: boolean;
38
+ }): Promise<void>;
39
+ export {};
@@ -0,0 +1,24 @@
1
+ import { RangeCompareOp } from '../../constant';
2
+ import { ValidateTrigger } from './types';
3
+ export declare const isEmptyValue: (value: any) => boolean;
4
+ export declare const compareByOp: (left: number, right: number, op: RangeCompareOp) => boolean;
5
+ export declare const rangeCompareMessage: (op: RangeCompareOp, val: any) => string;
6
+ /**
7
+ * 公式结果转 unix 秒:兼容日期字符串、秒时间戳、毫秒时间戳
8
+ * 纯数字字符串按时间戳;否则按 dayjs 可解析的日期
9
+ */
10
+ export declare const toUnixTimestamp: (input: any) => number | null;
11
+ export declare const buildError: (validatorInfo: any, message: string) => string;
12
+ export declare const createRule: (validator: Function, message: string, trigger?: ValidateTrigger) => {
13
+ required: boolean;
14
+ validator: Function;
15
+ message: string;
16
+ trigger: ValidateTrigger;
17
+ };
18
+ /**
19
+ * 软删行移到数组末尾:活跃行连续在前,deleted_ 行集中在后,
20
+ * 使可见下标与数组下标一致,避免按行取数错位。
21
+ */
22
+ export declare function relocateDeletedRowsToEnd<T extends {
23
+ deleted_?: boolean;
24
+ }>(rows?: T[]): T[];
@@ -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>;
@@ -17,7 +17,7 @@ export declare const renderUtils: {
17
17
  getLabByDict: (formData: any, field: any) => any;
18
18
  getBoolValue: (value: any) => any;
19
19
  /** 判断一个日期或日期时间字符串是否在最小和最大时间戳之间 */
20
- isOutOfRange: (inputStr: string, minTimestamp: number | undefined, maxTimestamp: number | undefined) => boolean;
20
+ isOutOfRange: (inputStr: string, minTimestamp: number | undefined, maxTimestamp: number | undefined, minCompareOp?: string, maxCompareOp?: string) => boolean;
21
21
  requestRefOptions: (params: any) => Promise<{
22
22
  options: any;
23
23
  finished: any;
@@ -64,6 +64,8 @@ export declare namespace BaseCoreComponent {
64
64
  field_readonly?: boolean;
65
65
  /** 禁用 */
66
66
  disabled?: boolean;
67
+ /** 是否保留异常提示,字段显式配置优先;未配置时跟随表单 */
68
+ keepExceptionHighlight?: boolean;
67
69
  /** 暗提示 */
68
70
  placeholder?: string;
69
71
  /** 默认值 */
@@ -286,8 +288,18 @@ export interface IBasicInfoItem {
286
288
  annSwitchStatus: boolean;
287
289
  /** 批注单元格坐标数组 */
288
290
  annCellLocationList: Array<string>;
289
- /** 批注选中的id */
290
- annSelectId?: string;
291
+ /** 批注选中的 id(组合字段点三角时可能为多个) */
292
+ annSelectId?: string | string[];
293
+ /** 当次变更的行级增删元数据,为空则不展示行级高亮 */
294
+ annRowDetails?: Array<{
295
+ cellLocation: string;
296
+ cellType: string;
297
+ op: 'ADD' | 'DEL';
298
+ subFieldId: string;
299
+ rowKey: string;
300
+ snapshot: Record<string, any>;
301
+ id?: string;
302
+ }>;
291
303
  /** 校验字段单元格坐标数组 */
292
304
  validatorLocationList: Array<string>;
293
305
  /** 校验字段错误信息集合 */
@@ -302,6 +314,8 @@ export interface IBasicInfoItem {
302
314
  productSearchFields: string;
303
315
  /** 是否是打印渲染 */
304
316
  __isPrintRender?: boolean;
317
+ /** 打印时是否显示字段控件底色 */
318
+ showPrintFieldBg?: boolean;
305
319
  }
306
320
  export interface ICellBorder {
307
321
  left?: boolean;
@@ -1,4 +1,4 @@
1
- import { RangeValidateMode } from '../../constant';
1
+ import { RangeValidateMode, RangeCompareOp } from '../../constant';
2
2
  import { BaseCoreComponent } from '../common/base';
3
3
  export interface IDatepickerProps extends BaseCoreComponent.FieldBasicProps {
4
4
  /**组件类型 */
@@ -19,6 +19,10 @@ export interface IDatepickerProps extends BaseCoreComponent.FieldBasicProps {
19
19
  maxDateValidateMode?: RangeValidateMode;
20
20
  /** 下限校验模式 */
21
21
  minDateValidateMode?: RangeValidateMode;
22
+ /** 上限比较运算符 */
23
+ maxCompareOp?: RangeCompareOp;
24
+ /** 下限比较运算符 */
25
+ minCompareOp?: RangeCompareOp;
22
26
  /** 最小日期 */
23
27
  minDate?: number;
24
28
  /** 最小值公式表达式 */
@@ -1,4 +1,4 @@
1
- import { RangeValidateMode } from '../../constant';
1
+ import { RangeValidateMode, RangeCompareOp } from '../../constant';
2
2
  import { BaseCoreComponent } from '../common/base';
3
3
  export interface IDateTimepickerProps extends BaseCoreComponent.FieldBasicProps {
4
4
  /**组件类型 */
@@ -19,6 +19,10 @@ export interface IDateTimepickerProps extends BaseCoreComponent.FieldBasicProps
19
19
  maxDateValidateMode?: RangeValidateMode;
20
20
  /** 下限校验模式 */
21
21
  minDateValidateMode?: RangeValidateMode;
22
+ /** 上限比较运算符 */
23
+ maxCompareOp?: RangeCompareOp;
24
+ /** 下限比较运算符 */
25
+ minCompareOp?: RangeCompareOp;
22
26
  /** 最小日期 */
23
27
  minDate?: number;
24
28
  /** 最小值公式表达式 */
@@ -11,6 +11,8 @@ export interface IEnumSelectProps extends BaseCoreComponent.FieldBasicProps {
11
11
  direction: Orientation;
12
12
  /*** 间距 */
13
13
  letterSpace: number;
14
+ /** 选项间距 */
15
+ optionGap?: number;
14
16
  }
15
17
  export interface IEnumSelect extends BaseCoreComponent.BasicSchema {
16
18
  props: IEnumSelectProps;
@@ -1,4 +1,4 @@
1
- import { RangeValidateMode, DecimalDisplayMode } from '../../constant';
1
+ import { RangeValidateMode, RangeCompareOp, DecimalDisplayMode } from '../../constant';
2
2
  import { BaseCoreComponent } from '../common/base';
3
3
  export interface IInputDoubleProps extends BaseCoreComponent.FieldBasicProps {
4
4
  /** 精度位数 */
@@ -9,6 +9,10 @@ export interface IInputDoubleProps extends BaseCoreComponent.FieldBasicProps {
9
9
  maxValidateMode?: RangeValidateMode;
10
10
  /** 下限校验模式 */
11
11
  minValidateMode?: RangeValidateMode;
12
+ /** 上限比较运算符 */
13
+ maxCompareOp?: RangeCompareOp;
14
+ /** 下限比较运算符 */
15
+ minCompareOp?: RangeCompareOp;
12
16
  /** 最小值 */
13
17
  minValue?: number;
14
18
  /** 最小值公式表达式 */
@@ -1,4 +1,4 @@
1
- import { RangeValidateMode, DecimalDisplayMode, BindCmpStyleEnum } from '../../constant';
1
+ import { RangeValidateMode, RangeCompareOp, DecimalDisplayMode, BindCmpStyleEnum } from '../../constant';
2
2
  import { BaseCoreComponent } from '../common/base';
3
3
  export interface IInputNumberProps extends BaseCoreComponent.FieldBasicProps {
4
4
  /** 精度位数 */
@@ -13,6 +13,10 @@ export interface IInputNumberProps extends BaseCoreComponent.FieldBasicProps {
13
13
  maxValidateMode?: RangeValidateMode;
14
14
  /** 下限校验模式 */
15
15
  minValidateMode?: RangeValidateMode;
16
+ /** 上限比较运算符 */
17
+ maxCompareOp?: RangeCompareOp;
18
+ /** 下限比较运算符 */
19
+ minCompareOp?: RangeCompareOp;
16
20
  /** 最小值 */
17
21
  minValue?: number;
18
22
  /** 最小值公式表达式 */
@@ -1,6 +1,14 @@
1
- import { BindCmpStyleEnum } from '../../constant';
1
+ import { BindCmpStyleEnum, RangeValidateMode, RangeCompareOp } from '../../constant';
2
2
  import { BaseCoreComponent, ParseRuleProps } from '../common/base';
3
3
  export interface ITraceProps extends BaseCoreComponent.FieldBasicProps {
4
+ /** 最小长度 */
5
+ minlength?: number;
6
+ /** 最大长度 */
7
+ maxlength?: number;
8
+ /** 正则校验 */
9
+ regex?: string;
10
+ /** 正则校验提示文案 */
11
+ regexHint?: string;
4
12
  /** 组件类型 */
5
13
  bindCompStyleType: BindCmpStyleEnum;
6
14
  /**组件类型 */
@@ -26,6 +34,24 @@ export interface ITraceProps extends BaseCoreComponent.FieldBasicProps {
26
34
  enableAutofill?: boolean;
27
35
  /** 条码解析规则配置 */
28
36
  parseRuleProps?: ParseRuleProps;
37
+ /** 是否开启上下限 */
38
+ enableRangeValidate?: boolean;
39
+ /** 上限校验模式 */
40
+ maxDateValidateMode?: RangeValidateMode;
41
+ /** 下限校验模式 */
42
+ minDateValidateMode?: RangeValidateMode;
43
+ /** 上限比较运算符 */
44
+ maxCompareOp?: RangeCompareOp;
45
+ /** 下限比较运算符 */
46
+ minCompareOp?: RangeCompareOp;
47
+ /** 最小日期 */
48
+ minDate?: number | string;
49
+ /** 最小值公式表达式 */
50
+ minDateFormulaExpr?: string;
51
+ /**最大日期 */
52
+ maxDate?: number | string;
53
+ /**最大值公式表达式 */
54
+ maxDateFormulaExpr?: string;
29
55
  }
30
56
  export interface ITrace extends BaseCoreComponent.BasicSchema {
31
57
  props: ITraceProps;
@@ -15,7 +15,9 @@ export interface IMcRender {
15
15
  */
16
16
  openScanModal(opts: {
17
17
  title: string;
18
- onScan: (str: string) => void;
18
+ onScan: (params: {
19
+ str?: string;
20
+ }) => void;
19
21
  }): Promise<void>;
20
22
  /**
21
23
  * 打开修改条码解析规则的modal
@@ -11,7 +11,9 @@ export interface ISubTableRender {
11
11
  */
12
12
  openScanModal(opts: {
13
13
  title: string;
14
- onScan: (params: any) => void;
14
+ onScan: (params: {
15
+ str?: string;
16
+ }) => void;
15
17
  }): void;
16
18
  /**
17
19
  * 修改条码解析规则
@@ -64,6 +64,8 @@ export interface IPaperProps {
64
64
  subTableWidgetIds: string[];
65
65
  /** 脚本内容 */
66
66
  javascript: string;
67
+ /** 是否保留异常提示,未配置时默认 true */
68
+ keepExceptionHighlight?: boolean;
67
69
  }
68
70
  export interface IPaper extends BaseCoreComponent.BasicSchema {
69
71
  /** 页眉 */
@@ -18,6 +18,10 @@ export interface ISubTableProps extends BaseCoreComponent.FieldBasicProps {
18
18
  childInitRowLen?: number;
19
19
  /** 动态表快速填报 */
20
20
  quickFill?: boolean;
21
+ /** 删除二次确认 */
22
+ confirmBeforeDelete?: boolean;
23
+ /** 删除二次确认提示 */
24
+ confirmBeforeDeleteTip?: string;
21
25
  /** 是否是物料消耗表 */
22
26
  isMaterialConsumeTable?: boolean;
23
27
  /** 绑定的物料消耗表id */
@@ -10,4 +10,6 @@ export declare enum FileModeEnum {
10
10
  export declare function formPrint(tmplInstantId: string, printConfig?: {
11
11
  apiMode: PrintModeEnum;
12
12
  fileMode: FileModeEnum;
13
+ /** 是否打印填报内容区底色 */
14
+ showPrintFieldBg?: boolean;
13
15
  }): Promise<void>;
@@ -1,6 +1,6 @@
1
- import { BomViewerModal, MaterialConsumeScanModal } from './sub-table/material-consume';
1
+ import { BomViewerModal } from './sub-table/material-consume';
2
2
  import { default as CommonScanModal } from './sub-table/common/scan-modal.vue';
3
- export { BomViewerModal, CommonScanModal, MaterialConsumeScanModal };
3
+ export { BomViewerModal, CommonScanModal };
4
4
  export * from './parse-rule';
5
5
  /**
6
6
  * 挂载render