@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
@@ -1,265 +0,0 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
- import { F as FormItem, S as SelectEx, e as FormulaEditor } from "./index-Cw_YFCZT.js";
3
- import { D as DateFormatEditor } from "./date-format-editor-BZ89hVjL.js";
4
- import { ag as RangeValidateMode, F as FIELD_TYPE, E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
5
- import { isNil } from "lodash-es";
6
- import "dayjs";
7
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8
- __name: "date-range-editor",
9
- props: {
10
- fieldMeta: {},
11
- widget: {},
12
- fieldType: {},
13
- readonly: { type: Boolean },
14
- disabled: { type: Boolean }
15
- },
16
- setup(__props) {
17
- const ns = useNamespace("date-range-editor");
18
- const props = __props;
19
- const formState = computed({
20
- get() {
21
- return props.widget;
22
- },
23
- set(v) {
24
- Object.assign(props.widget, v);
25
- }
26
- });
27
- const onEnableChange = (checked) => {
28
- if (checked === true) {
29
- if (isNil(formState.value.maxValidateMode)) {
30
- formState.value.maxValidateMode = RangeValidateMode.No_Validate;
31
- }
32
- if (isNil(formState.value.minValidateMode)) {
33
- formState.value.minValidateMode = RangeValidateMode.No_Validate;
34
- }
35
- }
36
- };
37
- const validateModeOptions = Object.values(RangeValidateMode).map((val) => {
38
- return {
39
- label: $t(`sys.onlineForm.NumberRangeValidateMode.${val}`),
40
- value: val
41
- };
42
- });
43
- const isDateTime = computed(() => props.fieldType === FIELD_TYPE.DATE_TIME);
44
- const pickerFormat = computed(() => isDateTime.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
45
- const valueFormat = computed(() => isDateTime.value ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
46
- function disabledMinDate(current) {
47
- if (!formState.value.max) return false;
48
- return current.isAfter(formState.value.max, "second");
49
- }
50
- function disabledMaxDate(current) {
51
- if (!formState.value.min) return false;
52
- return current.isBefore(formState.value.min, "second");
53
- }
54
- return (_ctx, _cache) => {
55
- const _component_a_switch = resolveComponent("a-switch");
56
- const _component_a_date_picker = resolveComponent("a-date-picker");
57
- return openBlock(), createElementBlock("div", {
58
- class: normalizeClass([unref(ns).b()])
59
- }, [
60
- createVNode(FormItem, {
61
- label: _ctx.$t("sys.onlineForm.isEnableRangeValidate")
62
- }, {
63
- default: withCtx(() => [
64
- createVNode(_component_a_switch, {
65
- class: normalizeClass([unref(ns).e("switch")]),
66
- size: "small",
67
- checked: formState.value.enableRangeValidate,
68
- "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => formState.value.enableRangeValidate = $event),
69
- disabled: __props.disabled || __props.readonly,
70
- onChange: onEnableChange
71
- }, null, 8, ["class", "checked", "disabled"])
72
- ]),
73
- _: 1
74
- }, 8, ["label"]),
75
- formState.value.enableRangeValidate ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
76
- createVNode(FormItem, {
77
- label: _ctx.$t("sys.onlineForm.maxValidateMode"),
78
- inline: false
79
- }, {
80
- default: withCtx(() => [
81
- createVNode(unref(SelectEx), {
82
- "show-mode": "icon-label",
83
- "icon-type": "custom",
84
- "style-type": "buttons",
85
- class: "w-full",
86
- options: unref(validateModeOptions),
87
- value: formState.value.maxValidateMode,
88
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value.maxValidateMode = $event),
89
- disabled: __props.disabled || __props.readonly
90
- }, null, 8, ["options", "value", "disabled"])
91
- ]),
92
- _: 1
93
- }, 8, ["label"]),
94
- formState.value.maxValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(_component_a_date_picker, {
95
- key: 0,
96
- class: normalizeClass([unref(ns).e("num")]),
97
- value: formState.value.max,
98
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.max = $event),
99
- "disabled-date": disabledMaxDate,
100
- "show-time": isDateTime.value,
101
- format: pickerFormat.value,
102
- "value-format": valueFormat.value,
103
- placeholder: _ctx.$t("sys.onlineForm.pleaseSelectUpperDateLimit"),
104
- size: "small",
105
- disabled: __props.disabled || __props.readonly
106
- }, null, 8, ["class", "value", "show-time", "format", "value-format", "placeholder", "disabled"])) : createCommentVNode("", true),
107
- formState.value.maxValidateMode === unref(RangeValidateMode).Variable_Validate ? (openBlock(), createBlock(unref(FormulaEditor), {
108
- key: 1,
109
- class: normalizeClass([unref(ns).e("num")]),
110
- size: "small",
111
- modelKey: __props.fieldMeta.model,
112
- disabled: __props.disabled,
113
- expr: formState.value.maxExpr,
114
- "onUpdate:expr": _cache[3] || (_cache[3] = ($event) => formState.value.maxExpr = $event),
115
- "expr-echo": formState.value.maxExprEcho,
116
- "onUpdate:exprEcho": _cache[4] || (_cache[4] = ($event) => formState.value.maxExprEcho = $event)
117
- }, null, 8, ["class", "modelKey", "disabled", "expr", "expr-echo"])) : createCommentVNode("", true),
118
- createVNode(FormItem, {
119
- label: _ctx.$t("sys.onlineForm.minValidateMode"),
120
- inline: false
121
- }, {
122
- default: withCtx(() => [
123
- createVNode(unref(SelectEx), {
124
- "show-mode": "icon-label",
125
- "icon-type": "custom",
126
- "style-type": "buttons",
127
- class: "w-full",
128
- options: unref(validateModeOptions),
129
- disabled: __props.disabled,
130
- value: formState.value.minValidateMode,
131
- "onUpdate:value": _cache[5] || (_cache[5] = ($event) => formState.value.minValidateMode = $event)
132
- }, null, 8, ["options", "disabled", "value"])
133
- ]),
134
- _: 1
135
- }, 8, ["label"]),
136
- formState.value.minValidateMode === unref(RangeValidateMode).Fixed_Number ? (openBlock(), createBlock(_component_a_date_picker, {
137
- key: 2,
138
- class: normalizeClass([unref(ns).e("num")]),
139
- value: formState.value.min,
140
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => formState.value.min = $event),
141
- "disabled-date": disabledMinDate,
142
- "show-time": isDateTime.value,
143
- format: pickerFormat.value,
144
- "value-format": valueFormat.value,
145
- placeholder: _ctx.$t("sys.onlineForm.pleaseSelectLowerDateLimit"),
146
- size: "small",
147
- disabled: __props.disabled || __props.readonly
148
- }, null, 8, ["class", "value", "show-time", "format", "value-format", "placeholder", "disabled"])) : createCommentVNode("", true),
149
- formState.value.minValidateMode === unref(RangeValidateMode).Variable_Validate ? (openBlock(), createBlock(unref(FormulaEditor), {
150
- key: 3,
151
- class: normalizeClass([unref(ns).e("num")]),
152
- size: "small",
153
- modelKey: __props.fieldMeta.model,
154
- disabled: __props.disabled,
155
- expr: formState.value.minExpr,
156
- "onUpdate:expr": _cache[7] || (_cache[7] = ($event) => formState.value.minExpr = $event),
157
- "expr-echo": formState.value.minExprEcho,
158
- "onUpdate:exprEcho": _cache[8] || (_cache[8] = ($event) => formState.value.minExprEcho = $event)
159
- }, null, 8, ["class", "modelKey", "disabled", "expr", "expr-echo"])) : createCommentVNode("", true)
160
- ], 64)) : createCommentVNode("", true)
161
- ], 2);
162
- };
163
- }
164
- });
165
- const DateRangeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f36e16ac"]]);
166
- const _sfc_main = /* @__PURE__ */ defineComponent({
167
- __name: "date-time-props",
168
- props: {
169
- fieldMeta: {},
170
- widget: {},
171
- fieldType: {},
172
- readonly: { type: Boolean },
173
- disabled: { type: Boolean }
174
- },
175
- setup(__props) {
176
- const props = __props;
177
- const formState = computed({
178
- get: () => props.widget,
179
- set: (v) => Object.assign(props.widget, v)
180
- });
181
- const excludedDateFormatTypes = computed(() => [
182
- FIELD_TYPE.PRODUCTION_DATE,
183
- FIELD_TYPE.REPORT_START_TIME,
184
- FIELD_TYPE.REPORT_END_TIME
185
- ]);
186
- const excludedDefaultValueTypes = computed(() => [
187
- FIELD_TYPE.REPORT_START_TIME,
188
- FIELD_TYPE.REPORT_END_TIME
189
- ]);
190
- const dateRangeTypes = computed(() => [
191
- FIELD_TYPE.DATE,
192
- FIELD_TYPE.DATE_TIME,
193
- FIELD_TYPE.REPORT_START_TIME,
194
- FIELD_TYPE.REPORT_END_TIME,
195
- FIELD_TYPE.PRODUCTION_DATE
196
- ]);
197
- const showDateFormatEditor = computed(
198
- () => !excludedDateFormatTypes.value.includes(props.fieldType)
199
- );
200
- const showDefaultValueCheckbox = computed(
201
- () => !props.readonly && !excludedDefaultValueTypes.value.includes(props.fieldType)
202
- );
203
- const showDateRangeEditor = computed(() => dateRangeTypes.value.includes(props.fieldType));
204
- return (_ctx, _cache) => {
205
- const _component_a_input = resolveComponent("a-input");
206
- const _component_a_checkbox = resolveComponent("a-checkbox");
207
- return openBlock(), createElementBlock(Fragment, null, [
208
- !__props.readonly ? (openBlock(), createBlock(FormItem, {
209
- key: 0,
210
- label: `${_ctx.$t("sys.pageDesigner.fieldPlaceholder")}`,
211
- inline: false
212
- }, {
213
- default: withCtx(() => [
214
- createVNode(_component_a_input, {
215
- size: "small",
216
- value: formState.value.placeholder,
217
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.placeholder = $event),
218
- placeholder: _ctx.$t("sys.inputText"),
219
- disabled: __props.disabled,
220
- "show-count": "",
221
- maxlength: 32
222
- }, null, 8, ["value", "placeholder", "disabled"])
223
- ]),
224
- _: 1
225
- }, 8, ["label"])) : createCommentVNode("", true),
226
- showDateFormatEditor.value ? (openBlock(), createBlock(DateFormatEditor, {
227
- key: 1,
228
- widget: props.widget,
229
- "field-type": __props.fieldType,
230
- disabled: __props.disabled
231
- }, null, 8, ["widget", "field-type", "disabled"])) : createCommentVNode("", true),
232
- showDefaultValueCheckbox.value ? (openBlock(), createBlock(FormItem, {
233
- key: 2,
234
- label: `${_ctx.$t("sys.defaultValue")}`,
235
- inline: false
236
- }, {
237
- default: withCtx(() => [
238
- createVNode(_component_a_checkbox, {
239
- checked: formState.value.defaultSystemDate,
240
- "onUpdate:checked": _cache[1] || (_cache[1] = ($event) => formState.value.defaultSystemDate = $event),
241
- disabled: __props.disabled
242
- }, {
243
- default: withCtx(() => [
244
- createTextVNode(toDisplayString(_ctx.$t("sys.component.fieldTypeProps.defaultSysDate")), 1)
245
- ]),
246
- _: 1
247
- }, 8, ["checked", "disabled"])
248
- ]),
249
- _: 1
250
- }, 8, ["label"])) : createCommentVNode("", true),
251
- showDateRangeEditor.value ? (openBlock(), createBlock(DateRangeEditor, {
252
- key: 3,
253
- "field-meta": __props.fieldMeta,
254
- widget: props.widget,
255
- "field-type": __props.fieldType,
256
- readonly: __props.readonly,
257
- disabled: __props.disabled
258
- }, null, 8, ["field-meta", "widget", "field-type", "readonly", "disabled"])) : createCommentVNode("", true)
259
- ], 64);
260
- };
261
- }
262
- });
263
- export {
264
- _sfc_main as default
265
- };
@@ -1,4 +0,0 @@
1
- import { _ as _sfc_main } from "./index-Cw_YFCZT.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,40 +0,0 @@
1
- import { IFormModel, IFormModelFetcher } from './types';
2
- import { FieldMetaDTO } from '@gct-paas/api/apaas';
3
- /**
4
- * 基础表单的模型请求
5
- * @export
6
- * @class BaseFormModelFetcher
7
- */
8
- export declare class BaseFormModelFetcher implements IFormModelFetcher {
9
- /** 默认接口 */
10
- apis: {
11
- getFieldMetaList: any;
12
- getModelMetaSubModelList: any;
13
- getModelDetail2FieldList: any;
14
- };
15
- /**
16
- * 模型映射缓存
17
- */
18
- modelMetaMap: Record<string, IFormModel>;
19
- load(opts: {
20
- model: string;
21
- }): Promise<IFormModel[]>;
22
- /**
23
- * 补全字段信息
24
- * @param modelKey 字段所属的模型
25
- * @param [fields=[]]
26
- * @return {*}
27
- */
28
- completeFields(modelKey: string, fields?: FieldMetaDTO[]): FieldMetaDTO[];
29
- /**
30
- * 根据模型key加载模型字段
31
- *
32
- * @param [modelKey=this.model]
33
- * @return {*}
34
- */
35
- loadModelFields(modelKey: string): Promise<any>;
36
- /**
37
- * 加载表单所有子表字段对应模型的字段信息集合
38
- */
39
- loadSubModelsFields(modelKey: string): Promise<void>;
40
- }
@@ -1,47 +0,0 @@
1
- import { FormTypeEnum, ViewTypeEnum } from '../constant';
2
- /** 数据基础接口工具类 */
3
- export declare const baseDataUtils: {
4
- baseApis: {
5
- getOneData2SqlView: any;
6
- getOneData2ViewModel: any;
7
- getOneData2ViewJs: any;
8
- };
9
- /** 请求单据模板相关信息 */
10
- requestTemplateInfo: (payload: {
11
- /** 模板id */
12
- tid: string;
13
- /** 请求函数 */
14
- request: Function;
15
- }) => Promise<any>;
16
- /** 请求真实填报的渲染数据 */
17
- requestRenderData: (payload: {
18
- /** 信息 */
19
- info: {
20
- /** 表单类型 */
21
- formType: FormTypeEnum;
22
- /** 视图类型 */
23
- viewType: ViewTypeEnum;
24
- /** 模型key */
25
- modelKey: string;
26
- /** 脚本绑定的事件key */
27
- bindKey?: string;
28
- } & Record<string, any>;
29
- /** 请求配置信息 */
30
- fetchConfig: {
31
- /** 批次号/物料编号 */
32
- _gct_materialNo_?: string;
33
- };
34
- /** 查询条件信息 */
35
- queryConfig: {
36
- id_?: string;
37
- /** 暂存状态 */
38
- _gct_dataStatus_?: string;
39
- } & Record<string, any>;
40
- /** 主模型的关联字段信息 */
41
- foreignFields: any;
42
- /** 子模型的关联字段信息 */
43
- subModelFields: any;
44
- /** 是否是模拟填报 */
45
- isMockReport: boolean;
46
- }) => Promise<any>;
47
- };
@@ -1,108 +0,0 @@
1
- import { FIELD_TYPE } from '../../../shared/enum';
2
- import { FormTypeEnum, RenderModeEnum, BpmnNodeTypeEnum, ButtonTypeEnum } from '../constant';
3
- export declare const commonUtils: {
4
- /** 列表转成树 */
5
- listTransformTree: (list: Array<any>) => any;
6
- findFirstDoc: (tree: any, ofId?: string) => any;
7
- uuid2: (len: any, radix?: any) => any;
8
- isEmptyValue: (value: any) => boolean;
9
- readonly gctInstanceStatusTheme: {
10
- 'gct-nocode-instance-status--stash': {
11
- textColor: string;
12
- background: string;
13
- iconBackground: string;
14
- placeholder: string;
15
- };
16
- 'gct-nocode-instance-status--partial-submit': {
17
- textColor: string;
18
- background: string;
19
- iconBackground: string;
20
- placeholder: string;
21
- };
22
- 'gct-nocode-instance-status--finish': {
23
- textColor: string;
24
- background: string;
25
- iconBackground: string;
26
- placeholder: string;
27
- };
28
- 'gct-nocode-instance-status--abnormal': {
29
- textColor: string;
30
- background: string;
31
- iconBackground: string;
32
- placeholder: string;
33
- };
34
- 'gct-nocode-instance-status--not-filled': {
35
- textColor: string;
36
- background: string;
37
- iconBackground: string;
38
- placeholder: string;
39
- };
40
- 'gct-nocode-instance-status--running': {
41
- textColor: string;
42
- background: string;
43
- iconBackground: string;
44
- placeholder: string;
45
- };
46
- 'gct-nocode-instance-status--already-filled': {
47
- textColor: string;
48
- background: string;
49
- iconBackground: string;
50
- placeholder: string;
51
- };
52
- 'gct-nocode-instance-status--invalid': {
53
- textColor: string;
54
- background: string;
55
- iconBackground: string;
56
- placeholder: string;
57
- };
58
- 'gct-nocode-instance-status--archived': {
59
- textColor: string;
60
- background: string;
61
- iconBackground: string;
62
- placeholder: string;
63
- };
64
- 'gct-nocode-instance-status--tmpl': {
65
- textColor: string;
66
- background: string;
67
- iconBackground: string;
68
- placeholder: string;
69
- };
70
- 'gct-nocode-instance-status--in-audit': {
71
- textColor: string;
72
- background: string;
73
- iconBackground: string;
74
- placeholder: string;
75
- };
76
- };
77
- };
78
- export declare function useOnlineFormActionButton(): {
79
- renderActionButton: (showButtons: string[], buttonConfig: string, options: {
80
- formType: FormTypeEnum;
81
- bpmnType: BpmnNodeTypeEnum;
82
- modeType: RenderModeEnum;
83
- inDrawer: boolean;
84
- isViewPage: boolean;
85
- isRecordFill: boolean;
86
- processOperation?: string;
87
- isFormChangeApprovalPage?: boolean;
88
- isMedPro?: boolean;
89
- }) => any;
90
- autoSaveButtonMap: {
91
- BASE: {
92
- type: ButtonTypeEnum;
93
- title: string;
94
- customTitle: string;
95
- buttonType: string;
96
- api: any;
97
- };
98
- PROCESS: {
99
- type: ButtonTypeEnum;
100
- title: string;
101
- customTitle: string;
102
- buttonType: string;
103
- api: any;
104
- };
105
- };
106
- };
107
- /** 字段转换组件 */
108
- export declare const useOnlineFormTransformField2Component: (fieldType: FIELD_TYPE) => any;