@gct-paas/excel 0.1.16 → 0.1.18

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 (192) hide show
  1. package/dist/{BaseComponent-DJNL1tGs.js → BaseComponent-xTm5lvAr.js} +1 -0
  2. package/dist/{VueVideoPlayer-Db7qcsRE.js → VueVideoPlayer-D3u-ZHom.js} +2 -2
  3. package/dist/{agg-design-BjqRVeg1.js → agg-design-D7CkIPCA.js} +1 -1
  4. package/dist/{agg-props-CrdosdGr.js → agg-props-DNNO9ucx.js} +1 -1
  5. package/dist/{agg-style-CfZoOE-b.js → agg-style-v_94dzX8.js} +1 -1
  6. package/dist/{align-editor-BaNT0jhx.js → align-editor-COpCDpFf.js} +1 -1
  7. package/dist/{attach-fields-editor-CThobu8X.js → attach-fields-editor-o_7W-2sr.js} +2 -2
  8. package/dist/{barcode-design-CHjIeaiJ.js → barcode-design-CvsGGAio.js} +2 -2
  9. package/dist/base/index.es.js +347 -53
  10. package/dist/{base-font-editor-BiSPxwVH.js → base-font-editor-BmC423aB.js} +2 -2
  11. package/dist/{boolean-design-BYAdX-h5.js → boolean-design-Hc8Es5l1.js} +2 -2
  12. package/dist/{boolean-props-jKvjhdlG.js → boolean-props-CGamLGXA.js} +3 -3
  13. package/dist/{boolean-style-RsMRzVBL.js → boolean-style-m-WuSO6S.js} +4 -4
  14. package/dist/{cell-upload-JxFLM1bV.js → cell-upload-CiXVE0Ii.js} +2 -2
  15. package/dist/date-range-editor-BZkhUU-x.js +470 -0
  16. package/dist/{date-time-design-Du8pmDo-.js → date-time-design-B_oFOcft.js} +1 -1
  17. package/dist/date-time-props-hGnSGQKc.js +105 -0
  18. package/dist/{date-time-style-DSEnmxAE.js → date-time-style-CGKG8i3K.js} +1 -1
  19. package/dist/{decimal-design-C2GbzP9k.js → decimal-design-B5Artgk6.js} +1 -1
  20. package/dist/{decimal-display-mode-CagizhJW.js → decimal-display-mode-C4XUezoP.js} +2 -2
  21. package/dist/{decimal-props-CGLqWy8I.js → decimal-props-Q37uOcWl.js} +4 -4
  22. package/dist/{decimal-style-6j22QKYO.js → decimal-style-C2CnGPVG.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-DTnbLBVW.js} +109 -39
  24. package/dist/{diagonal-design-Cq3oxdHe.js → diagonal-design-CyUvkcvp.js} +2 -2
  25. package/dist/{document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js → document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js} +2295 -1388
  26. package/dist/{document-sub-table-action-rz6gyez5.js → document-sub-table-action-Cy6Rd8OS.js} +384 -193
  27. package/dist/{double-design-CyXEqcV7.js → double-design-D_ipWcRm.js} +1 -1
  28. package/dist/{double-props-DaJoio1W.js → double-props-D4FGbfe2.js} +4 -4
  29. package/dist/{double-style-B4lIth-J.js → double-style-BbD_6_Os.js} +1 -1
  30. package/dist/{edit.utils-CXmmCnxE-DW8ClKe9.js → edit.utils-CXmmCnxE-BK4QnSP-.js} +1 -1
  31. package/dist/{enum-design-DSx09tOO.js → enum-design-lOufLU6Z.js} +2 -2
  32. package/dist/{enum-props-CJNuQLJ_.js → enum-props-brKRP5Uz.js} +4 -4
  33. package/dist/{enum-style-5N5xmgRJ.js → enum-style-BQQHkDUD.js} +2 -2
  34. package/dist/excel.css +943 -440
  35. package/dist/{exceljs.min-D9gV8q6H.js → exceljs.min-CUwGyNAf.js} +2 -2
  36. package/dist/{expression-design-BJDbafot.js → expression-design-BPEci3dg.js} +1 -1
  37. package/dist/{expression-props-BpHbrsle.js → expression-props-Cvg-9V-B.js} +1 -1
  38. package/dist/{expression-style-qPh81w7Q.js → expression-style-Dv3Hl8lm.js} +1 -1
  39. package/dist/{file-design-B7si04Bi.js → file-design-BIzi6cpq.js} +1 -1
  40. package/dist/{file-props-DTtOnHQy.js → file-props-oV2U7bpO.js} +2 -2
  41. package/dist/{file-style-C6KW_szu.js → file-style-CZrxokgP.js} +1 -1
  42. package/dist/{font-editor-DgGgvmB2.js → font-editor-B41KgpWJ.js} +3 -3
  43. package/dist/{form-annotation-controller-KcMm2QYA.js → form-annotation-controller-CdNmJKv-.js} +87 -31
  44. package/dist/{image-design-B92Xkcf-.js → image-design-C3FEtW6i.js} +2 -2
  45. package/dist/{image-design-CCfpT4Rp.js → image-design-DMfBfSkD.js} +2 -2
  46. package/dist/{image-props-DZgfzMta.js → image-props-DPibJk7n.js} +1 -1
  47. package/dist/{image-style-DX6Q_gF4.js → image-style-DLudd5Vt.js} +1 -1
  48. package/dist/{index-Bnbl3VER.js → index-B1CG-75q.js} +2 -2
  49. package/dist/{index-tbaOl7Nd.js → index-B1r6-Uxf.js} +1 -1
  50. package/dist/{index-bvhV6lsn.js → index-B7lz2J6V.js} +14 -7
  51. package/dist/{index-DRd2oRK1.js → index-B8ey1U_N.js} +2 -2
  52. package/dist/{index-BXMOCfWv.js → index-B8wKNUsK.js} +2 -2
  53. package/dist/{index-DzIKEtWw.js → index-BOis3jsA.js} +1 -1
  54. package/dist/{index-BYl8cK0A.js → index-BZ1jj7Nu.js} +1 -1
  55. package/dist/{index-DsASTvC2.js → index-BgZkpQKh.js} +1 -1
  56. package/dist/{index-Bg-x1hF6.js → index-BiNVmD5v.js} +2 -2
  57. package/dist/{index-BEBKoAOg.js → index-Bppcm2iQ.js} +2 -2
  58. package/dist/{index-Dsj3FuVs.js → index-Bvjplnz_.js} +2 -2
  59. package/dist/{index-DgHRTRH5.js → index-C5bYd42n.js} +2 -2
  60. package/dist/{index-BzhFcvnJ.js → index-CUIGN7Rt.js} +2 -2
  61. package/dist/{index-B2iip4UC.js → index-Cjz0GLDq.js} +2 -2
  62. package/dist/{index-DOFSbVSN.js → index-CkYbgRrH.js} +1 -1
  63. package/dist/{index-BB5uSbo3.js → index-Cn_c3-eW.js} +1 -1
  64. package/dist/{index-Be7TFwwX.js → index-Cp7mC3Qt.js} +4 -2
  65. package/dist/{index-DFgGQBCZ.js → index-CtiiIgjs.js} +2 -2
  66. package/dist/{index-D6diRqWG.js → index-D0YZX_c7.js} +2 -2
  67. package/dist/{index-DRKvAxuA.js → index-D7fFpHaN.js} +1 -1
  68. package/dist/{index-C8qPy1oW.js → index-DAqYc474.js} +2 -2
  69. package/dist/{index-p-Q3DQmv.js → index-DDpNgyvD.js} +3 -3
  70. package/dist/{index-IUYnmIJe.js → index-DFoELlwd.js} +1 -1
  71. package/dist/{index-DJISlRXi.js → index-DHVK-P9J.js} +4 -2
  72. package/dist/{index-BhzF0Rp3.js → index-DH_EZe8p.js} +4 -3
  73. package/dist/{index-CIoB2iny.js → index-DJIzgsog.js} +1 -1
  74. package/dist/{index-Doxcf2Zs.js → index-DPQkm6_v.js} +2 -2
  75. package/dist/{index-CtTSTTkq.js → index-DsNRjyQD.js} +2 -2
  76. package/dist/{index-Da7W9uBC.js → index-I_FRG0Ho.js} +2 -2
  77. package/dist/{index-CmaPtyCh.js → index-oSIIidoF.js} +4 -2
  78. package/dist/{index-rn6aiccW.js → index-rXMzwu77.js} +3 -3
  79. package/dist/{index-XbgrTOMF.js → index-vZZ5q2xJ.js} +1 -1
  80. package/dist/{index-Cw_YFCZT.js → index-yih5hGsL.js} +1467 -1345
  81. package/dist/index.es.js +6 -5
  82. package/dist/{integer-design-CPzJPZon.js → integer-design-DhkNa9IA.js} +1 -1
  83. package/dist/{integer-props-deCDvNET.js → integer-props-c_aQpjaT.js} +4 -4
  84. package/dist/{integer-style-DwZIRXEW.js → integer-style-CS5v7Bhq.js} +1 -1
  85. package/dist/{mb-render-Bejyn-ep.js → mb-render-Cs7LUxzk.js} +1 -1
  86. package/dist/{number-input-ex-CgwOH18n.js → number-input-ex-CwKIHfk1.js} +1 -1
  87. package/dist/{org-props-BeFVQ-QY.js → org-props-BcbW62Jg.js} +2 -2
  88. package/dist/{org-style-CLVWLtyd.js → org-style-Bk7mgML3.js} +1 -1
  89. package/dist/{pagination-design-CT0EQmxW.js → pagination-design-B1KyJUAG.js} +2 -2
  90. package/dist/paper-widget-design-Cp0ioo8c.js +4 -0
  91. package/dist/{qrcode-design-CjOkp2xa.js → qrcode-design-EafZURDZ.js} +1 -1
  92. package/dist/{ref-autofill-editor-B2KcQvyt.js → ref-autofill-editor-OtclaSqy.js} +2 -2
  93. package/dist/{ref-props-DPnt_pys.js → ref-props-C95McyZp.js} +3 -3
  94. package/dist/{ref-style-D0XKTtP1.js → ref-style-BxdvOF-4.js} +1 -1
  95. package/dist/regex-editor-BGukvOEI.js +796 -0
  96. package/dist/{revo-grid.entry-ztDhASK3.js → revo-grid.entry-BeRVTVKO.js} +1 -1
  97. package/dist/{revogr-attribution_7.entry-BtXV91vv.js → revogr-attribution_7.entry-CHtbU2lV.js} +3 -3
  98. package/dist/{revogr-clipboard_3.entry-DXpq4oNb.js → revogr-clipboard_3.entry-DnvQ-Rl7.js} +2 -2
  99. package/dist/{revogr-data_4.entry-WA1PNcGb.js → revogr-data_4.entry-DLRSuaN8.js} +2 -2
  100. package/dist/{revogr-filter-panel.entry-unpVAD7l.js → revogr-filter-panel.entry-BDkhY-74.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-ChESg_eM.js} +2 -2
  102. package/dist/{serialnumber-design-ClArHZWU.js → serialnumber-design-CRaym9J-.js} +1 -1
  103. package/dist/shared/index.es.js +16 -16
  104. package/dist/{signature-design-Cg2Ejj3g.js → signature-design-BJHfLDNV.js} +1 -1
  105. package/dist/{signature-props-CNuLBWtc.js → signature-props-B9hfppHh.js} +3 -3
  106. package/dist/{signature-style-DtlZdeFB.js → signature-style-DM4rqHnN.js} +1 -1
  107. package/dist/{single-field-drop-COLR9RIu.js → single-field-drop-eClQhTSv.js} +2 -2
  108. package/dist/{size-editor-DyGGEX3s.js → size-editor-BjlCmEWf.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/constant/index.d.ts +11 -0
  113. package/dist/src/nocode-base/src/hooks/annotation/collect-annotation-items.d.ts +15 -0
  114. package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +5 -2
  115. package/dist/src/nocode-base/src/hooks/annotation/form-change-row.d.ts +60 -0
  116. package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +2 -0
  117. package/dist/src/nocode-base/src/hooks/app-info/index.d.ts +2 -2
  118. package/dist/src/nocode-base/src/hooks/index.d.ts +2 -1
  119. package/dist/src/nocode-base/src/hooks/model-relation/index.d.ts +1 -1
  120. package/dist/src/nocode-base/src/hooks/service-util/sn-rule.d.ts +1 -1
  121. package/dist/src/nocode-base/src/hooks/useFormHook.d.ts +1 -1
  122. package/dist/src/nocode-base/src/hooks/useRenderData.d.ts +4 -2
  123. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +36 -4
  124. package/dist/src/nocode-base/src/hooks/useValidator.d.ts +6 -6
  125. package/dist/src/nocode-base/src/hooks/validation/admission.d.ts +19 -0
  126. package/dist/src/nocode-base/src/hooks/validation/attach.d.ts +24 -0
  127. package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +35 -0
  128. package/dist/src/nocode-base/src/hooks/validation/formRulesStore.d.ts +15 -0
  129. package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +24 -0
  130. package/dist/src/nocode-base/src/hooks/validation/runValidation.d.ts +17 -0
  131. package/dist/src/nocode-base/src/hooks/validation/scheduler.d.ts +12 -0
  132. package/dist/src/nocode-base/src/hooks/validation/types.d.ts +44 -0
  133. package/dist/src/nocode-base/src/hooks/validation/useFormValidator.d.ts +39 -0
  134. package/dist/src/nocode-base/src/hooks/validation/utils.d.ts +24 -0
  135. package/dist/src/nocode-base/src/hooks/validation/waitForSettle.d.ts +17 -0
  136. package/dist/src/nocode-base/src/interface/render.d.ts +1 -1
  137. package/dist/src/nocode-base/src/types/common/base.d.ts +14 -2
  138. package/dist/src/nocode-base/src/types/fields/i-datepicker.d.ts +5 -1
  139. package/dist/src/nocode-base/src/types/fields/i-datetimepicker.d.ts +5 -1
  140. package/dist/src/nocode-base/src/types/fields/i-inputdouble.d.ts +5 -1
  141. package/dist/src/nocode-base/src/types/fields/i-inputnumber.d.ts +5 -1
  142. package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +27 -1
  143. package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +2 -0
  144. package/dist/src/online-form/src/components/version-diff/index/types.d.ts +2 -0
  145. package/dist/src/online-form/src/views/__cell_widgets__/common/keep-exception-highlight-editor/keep-exception-highlight-editor.vue.d.ts +10 -0
  146. package/dist/src/online-form/src/views/__cell_widgets__/common/regex-editor/common-regex-api.d.ts +11 -0
  147. package/dist/src/online-form/src/views/__cell_widgets__/common/regex-editor/editor.d.ts +8 -0
  148. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +12 -0
  149. package/dist/src/online-form/src/views/designer/hooks/useModelFields.d.ts +1 -1
  150. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +16 -0
  151. package/dist/src/online-form/src/views/designer/modules/panel/comps/signature-config/field-tree-select.vue.d.ts +2 -2
  152. 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
  153. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/form-field-tree-select.vue.d.ts +2 -2
  154. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/material-rdo-select.vue.d.ts +2 -2
  155. package/dist/src/online-form/src/views/designer/types/index.d.ts +2 -0
  156. package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +3 -0
  157. package/dist/src/online-form/src/views/render/__components__/_common_/widget-component.vue.d.ts +3 -1
  158. package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +5 -0
  159. package/dist/src/shared/components/rdo-tree-select/rdo-tree-select.vue.d.ts +2 -2
  160. package/dist/src/shared/utils/host-api.d.ts +3 -11
  161. package/dist/{text-design-DjJS6aM4.js → text-design-BGxM7gzI.js} +2 -2
  162. package/dist/{text-design-490okDpw.js → text-design-C3RhersV.js} +2 -2
  163. package/dist/{text-props-Dh4S3iN0.js → text-props-CIpXslMv.js} +21 -252
  164. package/dist/{text-style-BGeNrOMv.js → text-style-BPjaT5Ic.js} +1 -1
  165. package/dist/{throttle-Cpk1LoGk-BWXeZXFZ.js → throttle-Cpk1LoGk-LNQ7rPwu.js} +1 -1
  166. package/dist/{timediff-design-DEh9xNVa.js → timediff-design-DqVuVrmx.js} +1 -1
  167. package/dist/{trace-design-Dk0irY70.js → trace-design-IbjVLAhv.js} +2 -2
  168. package/dist/{trace-props-DRBrPqIq.js → trace-props-C-F_eDG2.js} +53 -16
  169. package/dist/{trace-style-6lXlaJ2o.js → trace-style-DRenZ1n1.js} +1 -1
  170. package/dist/{user-props-yasRJPzM.js → user-props-qQx7HZ7T.js} +2 -2
  171. package/dist/{user-style-dkDUDf63.js → user-style-BPFOx0xn.js} +1 -1
  172. package/dist/{value-editor.vue_vue_type_style_index_0_lang-8rhhfLv7.js → value-editor.vue_vue_type_style_index_0_lang-Crnt5d7x.js} +2 -2
  173. package/dist/{version-select-dvsx-Ifv.js → version-select-BkZzH36D.js} +1 -1
  174. package/dist/web-render/index.es.js +4 -4
  175. package/dist/{widget-barcode-BfzXe5MQ.js → widget-barcode-CPZjarSa.js} +4 -4
  176. package/dist/{widget-diagonal-R5qdvCvE.js → widget-diagonal-DebN3u9t.js} +3 -3
  177. package/dist/{widget-image-C0zAtiuf.js → widget-image-BSMWxm9c.js} +5 -5
  178. package/dist/{widget-line-z4TTPDkL.js → widget-line-CyavTHOV.js} +2 -2
  179. package/dist/{widget-pagination-CeO9pmmu.js → widget-pagination-ZCBdy6HQ.js} +5 -5
  180. package/dist/{widget-power-CP1DLxkZ.js → widget-power-B1NFysHT.js} +3 -3
  181. package/dist/{widget-qrcode-Boz_t9l9.js → widget-qrcode-B0TTSoSK.js} +3 -3
  182. package/dist/{widget-rangelimit-B9kRG_Fa.js → widget-rangelimit-C_ureKDr.js} +3 -3
  183. package/dist/{widget-serialnumber-BBUxx4nB.js → widget-serialnumber-Dq15dHnk.js} +1 -1
  184. package/dist/{widget-text-qvLZssGe.js → widget-text-B9EXKFiM.js} +5 -5
  185. package/dist/{widget-timediff-BBmssjfJ.js → widget-timediff-BhLrQuGb.js} +2 -2
  186. package/package.json +1 -1
  187. package/dist/date-format-editor-BZ89hVjL.js +0 -240
  188. package/dist/date-time-props-BWvuzNXX.js +0 -265
  189. package/dist/paper-widget-design-DKBVqvH3.js +0 -4
  190. package/dist/src/nocode-base/src/hooks/form-model/fetcher.d.ts +0 -40
  191. package/dist/src/nocode-base/src/interface/data.d.ts +0 -47
  192. package/dist/src/nocode-base/src/interface/util.d.ts +0 -108
@@ -1,12 +1,13 @@
1
1
  import { defineComponent, computed, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, withCtx, createVNode, createCommentVNode, createElementVNode, toDisplayString, unref, createTextVNode } from "vue";
2
- import { u as useModelFields, f as useSpreadSheet, h as useReverseModeling, F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { D as DateFormatEditor } from "./date-format-editor-BZ89hVjL.js";
4
- import { _ as _sfc_main$1, R as RefAutofillEditor } from "./ref-autofill-editor-B2KcQvyt.js";
5
- import { F as FIELD_TYPE } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { u as useModelFields, f as useSpreadSheet, h as useReverseModeling, F as FormItem } from "./index-yih5hGsL.js";
3
+ import { D as DateFormatEditor, a as DateRangeEditor } from "./date-range-editor-BZkhUU-x.js";
4
+ import { _ as _sfc_main$1, R as RefAutofillEditor } from "./ref-autofill-editor-OtclaSqy.js";
5
+ import { N as NumberRange, R as RegexEditor } from "./regex-editor-BGukvOEI.js";
6
+ import { F as FIELD_TYPE } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
6
7
  import "lodash-es";
7
8
  import "dayjs";
8
9
  import "ant-design-vue";
9
- import { A as AddRuleBtn } from "./index-DFgGQBCZ.js";
10
+ import { A as AddRuleBtn } from "./index-CtiiIgjs.js";
10
11
  const _hoisted_1 = { class: "mt-4px" };
11
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  __name: "trace-props",
@@ -68,6 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
69
  const isTraceDate = computed(() => props.fieldType === FIELD_TYPE.TRACE_DATE);
69
70
  const isRecordNo = computed(() => props.fieldType === FIELD_TYPE.RECORD_NO);
70
71
  const isDevice = computed(() => props.fieldType === FIELD_TYPE.DEVICE);
72
+ const isMaterialNo = computed(() => props.fieldType === FIELD_TYPE.MATERIAL_NO);
71
73
  const fixedFieldType = computed(() => FIELD_TYPE.DATE);
72
74
  const isRefType = computed(() => {
73
75
  const bizType = props.fieldMeta.bizType;
@@ -148,15 +150,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
150
  ]),
149
151
  _: 1
150
152
  }, 8, ["label"])) : createCommentVNode("", true),
151
- !__props.readonly && isRecordNo.value ? (openBlock(), createBlock(FormItem, {
153
+ !__props.readonly && isMaterialNo.value ? (openBlock(), createBlock(FormItem, {
152
154
  key: 1,
155
+ label: `${_ctx.$t("sys.fieldTypeProps.lengthLimit")}`,
156
+ inline: false
157
+ }, {
158
+ default: withCtx(() => [
159
+ createVNode(NumberRange, {
160
+ min: formState.value.minlength,
161
+ "onUpdate:min": _cache[1] || (_cache[1] = ($event) => formState.value.minlength = $event),
162
+ max: formState.value.maxlength,
163
+ "onUpdate:max": _cache[2] || (_cache[2] = ($event) => formState.value.maxlength = $event),
164
+ precision: 0,
165
+ disabled: __props.disabled,
166
+ "min-placeholder": _ctx.$t("sys.fieldTypeProps.minLength"),
167
+ "max-placeholder": _ctx.$t("sys.fieldTypeProps.maxLength")
168
+ }, null, 8, ["min", "max", "disabled", "min-placeholder", "max-placeholder"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"])) : createCommentVNode("", true),
172
+ !__props.readonly && isMaterialNo.value ? (openBlock(), createBlock(RegexEditor, {
173
+ key: 2,
174
+ regex: formState.value.regex,
175
+ "onUpdate:regex": _cache[3] || (_cache[3] = ($event) => formState.value.regex = $event),
176
+ "regex-hint": formState.value.regexHint,
177
+ "onUpdate:regexHint": _cache[4] || (_cache[4] = ($event) => formState.value.regexHint = $event),
178
+ disabled: __props.disabled
179
+ }, null, 8, ["regex", "regex-hint", "disabled"])) : createCommentVNode("", true),
180
+ !__props.readonly && isRecordNo.value ? (openBlock(), createBlock(FormItem, {
181
+ key: 3,
153
182
  label: _ctx.$t("sys.model.fieldAttr"),
154
183
  inline: false
155
184
  }, {
156
185
  default: withCtx(() => [
157
186
  createVNode(_component_a_radio_group, {
158
187
  value: refRecordNo.value,
159
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => refRecordNo.value = $event),
188
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => refRecordNo.value = $event),
160
189
  options: options.value,
161
190
  disabled: __props.disabled || !canEditDigits.value,
162
191
  onChange
@@ -166,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
166
195
  _: 1
167
196
  }, 8, ["label"])) : createCommentVNode("", true),
168
197
  showParseRule.value ? (openBlock(), createBlock(FormItem, {
169
- key: 2,
198
+ key: 4,
170
199
  inline: false,
171
200
  label: _ctx.$t("sys.edhr.mcTable.parseRule"),
172
201
  class: "justify-between"
@@ -174,34 +203,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
174
203
  default: withCtx(() => [
175
204
  createVNode(unref(AddRuleBtn), {
176
205
  modelValue: formState.value.parseRuleProps,
177
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formState.value.parseRuleProps = $event),
206
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => formState.value.parseRuleProps = $event),
178
207
  subModelKey: __props.fieldMeta.subModelKey
179
208
  }, null, 8, ["modelValue", "subModelKey"])
180
209
  ]),
181
210
  _: 1
182
211
  }, 8, ["label"])) : createCommentVNode("", true),
183
212
  isDevice.value ? (openBlock(), createBlock(_sfc_main$1, {
184
- key: 3,
213
+ key: 5,
185
214
  fieldMeta: __props.fieldMeta,
186
215
  disabled: __props.disabled,
187
216
  "search-field": formState.value.searchField,
188
217
  "onUpdate:searchField": onSearchFieldChange
189
218
  }, null, 8, ["fieldMeta", "disabled", "search-field"])) : createCommentVNode("", true),
190
219
  isTraceDate.value ? (openBlock(), createBlock(DateFormatEditor, {
191
- key: 4,
220
+ key: 6,
192
221
  widget: props.widget,
193
222
  "field-type": fixedFieldType.value,
194
223
  disabled: __props.disabled
195
224
  }, null, 8, ["widget", "field-type", "disabled"])) : createCommentVNode("", true),
196
225
  isTraceDate.value && !__props.readonly ? (openBlock(), createBlock(FormItem, {
197
- key: 5,
226
+ key: 7,
198
227
  label: `${_ctx.$t("sys.defaultValue")}`,
199
228
  inline: false
200
229
  }, {
201
230
  default: withCtx(() => [
202
231
  createVNode(_component_a_checkbox, {
203
232
  checked: formState.value.defaultSystemDate,
204
- "onUpdate:checked": _cache[3] || (_cache[3] = ($event) => formState.value.defaultSystemDate = $event),
233
+ "onUpdate:checked": _cache[7] || (_cache[7] = ($event) => formState.value.defaultSystemDate = $event),
205
234
  disabled: __props.disabled
206
235
  }, {
207
236
  default: withCtx(() => [
@@ -212,14 +241,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
212
241
  ]),
213
242
  _: 1
214
243
  }, 8, ["label"])) : createCommentVNode("", true),
244
+ isTraceDate.value ? (openBlock(), createBlock(DateRangeEditor, {
245
+ key: 8,
246
+ "field-meta": __props.fieldMeta,
247
+ widget: props.widget,
248
+ "field-type": fixedFieldType.value,
249
+ readonly: __props.readonly,
250
+ disabled: __props.disabled
251
+ }, null, 8, ["field-meta", "widget", "field-type", "readonly", "disabled"])) : createCommentVNode("", true),
215
252
  isRefType.value ? (openBlock(), createBlock(RefAutofillEditor, {
216
- key: 6,
253
+ key: 9,
217
254
  fieldMeta: __props.fieldMeta,
218
255
  disabled: __props.disabled,
219
256
  "autofill-rules": autofillRules.value,
220
- "onUpdate:autofillRules": _cache[4] || (_cache[4] = ($event) => autofillRules.value = $event),
257
+ "onUpdate:autofillRules": _cache[8] || (_cache[8] = ($event) => autofillRules.value = $event),
221
258
  "enable-autofill": enableAutofill.value,
222
- "onUpdate:enableAutofill": _cache[5] || (_cache[5] = ($event) => enableAutofill.value = $event)
259
+ "onUpdate:enableAutofill": _cache[9] || (_cache[9] = ($event) => enableAutofill.value = $event)
223
260
  }, null, 8, ["fieldMeta", "disabled", "autofill-rules", "enable-autofill"])) : createCommentVNode("", true)
224
261
  ], 64);
225
262
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-BiSPxwVH.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BmC423aB.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "trace-style",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, createTextVNode, toDisplayString } from "vue";
2
- import { F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { aS as FieldSysVarDefaultValueEnum } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { F as FormItem } from "./index-yih5hGsL.js";
3
+ import { a_ as FieldSysVarDefaultValueEnum } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { B as BaseFontEditor } from "./base-font-editor-BiSPxwVH.js";
2
+ import { B as BaseFontEditor } from "./base-font-editor-BmC423aB.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "user-style",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, unref, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { u as useModelFields, f as useSpreadSheet, b as useDrop, p as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, q as SingleDrop, c as getFieldIcon } from "./index-Cw_YFCZT.js";
4
- import { m as PaperWidgeValueType, X as ExpressionModeEnum, Y as ExpressionTabEnum } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
3
+ import { u as useModelFields, f as useSpreadSheet, b as useDrop, p as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, q as SingleDrop, c as getFieldIcon } from "./index-yih5hGsL.js";
4
+ import { m as PaperWidgeValueType, X as ExpressionModeEnum, Y as ExpressionTabEnum } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import "dayjs";
6
6
  const _hoisted_1 = { class: "mt-4px" };
7
7
  const _hoisted_2 = ["id"];
@@ -1,5 +1,5 @@
1
1
  import { createVNode, defineComponent, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, withCtx, withKeys, normalizeClass, toDisplayString, createTextVNode, createCommentVNode, Fragment, renderList, normalizeStyle, computed, createBlock, withModifiers, toRaw, unref, nextTick, mergeProps, h } from "vue";
2
- import { t as FormTypeEnum, i as api, D as useModal, _ as _export_sfc, bm as FormDesignEnum, E as useNamespace, aQ as ControlStatusEnum } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { t as FormTypeEnum, i as api, D as useModal, _ as _export_sfc, bT as FormDesignEnum, E as useNamespace, aY as ControlStatusEnum } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
3
3
  import { orderBy, isArray, cloneDeep } from "lodash-es";
4
4
  import "dayjs";
5
5
  import { I as Icon } from "./AntdIcon-C3RMq2zm.js";
@@ -1,11 +1,11 @@
1
- import { S as SignMode, k as SignSwitcher, g as getPreviewUrl, G as GctDialog } from "../index-DFgGQBCZ.js";
2
- import { A, B, l, m, P, n, p, q, j, i, a } from "../index-DFgGQBCZ.js";
1
+ import { S as SignMode, k as SignSwitcher, g as getPreviewUrl, G as GctDialog } from "../index-CtiiIgjs.js";
2
+ import { A, B, l, m, P, n, p, q, j, i, a } from "../index-CtiiIgjs.js";
3
3
  import { message, Modal } from "ant-design-vue";
4
- import { i as api, D as useModal, E as useNamespace, _ as _export_sfc } from "../document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
4
+ import { i as api, D as useModal, E as useNamespace, _ as _export_sfc } from "../document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import { createVNode, defineComponent, ref, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, withCtx, computed, createBlock, mergeProps, createElementVNode, toDisplayString, createCommentVNode, createTextVNode } from "vue";
6
6
  import "lodash-es";
7
7
  import dayjs from "dayjs";
8
- import { a as FormAnnotationController } from "../form-annotation-controller-KcMm2QYA.js";
8
+ import { a as FormAnnotationController } from "../form-annotation-controller-CdNmJKv-.js";
9
9
  import { I as Icon } from "../AntdIcon-C3RMq2zm.js";
10
10
  var PrintModeEnum = /* @__PURE__ */ ((PrintModeEnum2) => {
11
11
  PrintModeEnum2["ASYNC"] = "async";
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { f as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-8rhhfLv7.js";
4
- import { a as PaperWidgeType } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { f as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-yih5hGsL.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-Crnt5d7x.js";
4
+ import { a as PaperWidgeType } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
7
- import { A as AlignEditor } from "./align-editor-BaNT0jhx.js";
7
+ import { A as AlignEditor } from "./align-editor-COpCDpFf.js";
8
8
  const _hoisted_1 = { class: "pl-6px" };
9
9
  const _hoisted_2 = { class: "flex justify-end" };
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
2
- import { F as FormItem, S as SelectEx } from "./index-Cw_YFCZT.js";
2
+ import { F as FormItem, S as SelectEx } from "./index-yih5hGsL.js";
3
3
  import { defaults } from "lodash-es";
4
- import { E as useNamespace, F as FIELD_TYPE, _ as _export_sfc, K as DiagonalDirection } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
4
+ import { E as useNamespace, F as FIELD_TYPE, _ as _export_sfc, K as DiagonalDirection } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import "dayjs";
6
- import { S as SingleFieldDrop } from "./single-field-drop-COLR9RIu.js";
6
+ import { S as SingleFieldDrop } from "./single-field-drop-eClQhTSv.js";
7
7
  import { message } from "ant-design-vue";
8
8
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
9
9
  __name: "diagonal-name-editor",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
2
- import { L as LeftOutlined, R as RightOutlined, r as isClient, f as useSpreadSheet, F as FormItem, s as ImgParser } from "./index-Cw_YFCZT.js";
3
- import { S as SizeEditor } from "./size-editor-DyGGEX3s.js";
2
+ import { L as LeftOutlined, R as RightOutlined, r as isClient, f as useSpreadSheet, F as FormItem, s as ImgParser } from "./index-yih5hGsL.js";
3
+ import { S as SizeEditor } from "./size-editor-BjlCmEWf.js";
4
4
  import { message } from "ant-design-vue";
5
- import { W as WidgetImageSizeMode, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
5
+ import { W as WidgetImageSizeMode, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
6
6
  import "lodash-es";
7
7
  import "dayjs";
8
- import { a as useWebUpload } from "./index-DFgGQBCZ.js";
9
- import { C as CloseOutlined } from "./version-select-dvsx-Ifv.js";
8
+ import { a as useWebUpload } from "./index-CtiiIgjs.js";
9
+ import { C as CloseOutlined } from "./version-select-BkZzH36D.js";
10
10
  const resumeSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307154239'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7317'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M316%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208zM512%20622c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039zM512%20482c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039z'%20p-id='7318'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='7319'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M648%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208z'%20p-id='7320'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
11
11
  const rotateSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595306944988'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1820'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M1464.3%20279.7'%20p-id='1821'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M512%20960c-60.5%200-119.1-11.9-174.4-35.2-53.4-22.6-101.3-54.9-142.4-96s-73.4-89-96-142.4C75.9%20631.1%2064%20572.5%2064%20512s11.9-119.1%2035.2-174.4c22.6-53.4%2054.9-101.3%2096-142.4s89-73.4%20142.4-96C392.9%2075.9%20451.5%2064%20512%2064s119.1%2011.9%20174.4%2035.2c53.4%2022.6%20101.3%2054.9%20142.4%2096s73.4%2089%2096%20142.4C948.1%20392.9%20960%20451.5%20960%20512c0%2019.1-15.5%2034.6-34.6%2034.6s-34.6-15.5-34.6-34.6c0-51.2-10-100.8-29.8-147.4-19.1-45.1-46.4-85.6-81.2-120.4C745%20209.4%20704.5%20182%20659.4%20163c-46.7-19.7-96.3-29.8-147.4-29.8-51.2%200-100.8%2010-147.4%2029.8-45.1%2019.1-85.6%2046.4-120.4%2081.2S182%20319.5%20163%20364.6c-19.7%2046.7-29.8%2096.3-29.8%20147.4%200%2051.2%2010%20100.8%2029.8%20147.4%2019.1%2045.1%2046.4%2085.6%2081.2%20120.4C279%20814.6%20319.5%20842%20364.6%20861c46.7%2019.7%2096.3%2029.8%20147.4%2029.8%2064.6%200%20128.4-16.5%20184.4-47.8%2054.4-30.4%20100.9-74.1%20134.6-126.6%2010.3-16.1%2031.7-20.8%2047.8-10.4%2016.1%2010.3%2020.8%2031.7%2010.4%2047.8-39.8%2062-94.8%20113.7-159.1%20149.6-66.2%2037-141.7%2056.6-218.1%2056.6z'%20p-id='1822'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M924%20552c-19.8%200-36-16.2-36-36V228c0-19.8%2016.2-36%2036-36s36%2016.2%2036%2036v288c0%2019.8-16.2%2036-36%2036zM275.4%20575.5c9.5-2.5%2019.1%202.9%2022.3%2012.2%203.5%2010.2%209.9%2017.7%2019.1%2022.6%207.1%203.9%2015.1%205.8%2024%205.8%2016.6%200%2030.8-6.9%2042.5-20.8%2011.7-13.8%2020-32.7%2024.9-75.1-7.7%2012.2-17.3%2020.8-28.7%2025.8-11.4%205-23.7%207.4-36.8%207.4-26.7%200-47.7-8.3-63.3-24.9-15.5-16.6-23.3-37.9-23.3-64.1%200-25.1%207.7-47.1%2023-66.2%2015.3-19%2037.9-28.6%2067.8-28.6%2040.3%200%2068.1%2018.1%2083.4%2054.4%208.5%2019.9%2012.7%2044.9%2012.7%2074.9%200%2033.8-5.1%2063.8-15.3%2089.9-16.9%2043.5-45.5%2065.2-85.8%2065.2-27%200-47.6-7.1-61.6-21.2-10-10.1-16.4-22-19.3-35.8-2-9.6%204-19.1%2013.5-21.6l0.9%200.1z%20m103-74.4c9.4-7.5%2014.1-20.6%2014.1-39.3%200-16.8-4.2-29.3-12.7-37.5S360.6%20412%20347.5%20412c-14%200-25.2%204.7-33.4%2014.1-8.2%209.4-12.4%2022-12.4%2037.7%200%2014.9%203.6%2026.7%2010.9%2035.5%207.2%208.8%2018.8%2013.1%2034.6%2013.1%2011.4%200%2021.8-3.8%2031.2-11.3zM646.6%20414.4c12.4%2022.8%2018.5%2054%2018.5%2093.7%200%2037.6-5.6%2068.7-16.8%2093.3-16.2%2035.3-42.8%2052.9-79.6%2052.9-33.2%200-57.9-14.4-74.2-43.3-13.5-24.1-20.3-56.4-20.3-97%200-31.4%204.1-58.4%2012.2-80.9%2015.2-42%2042.7-63%2082.5-63%2035.9%200%2061.8%2014.8%2077.7%2044.3z%20m-40.2%20173.3c9.4-13.9%2014-39.9%2014-78%200-27.4-3.4-50-10.1-67.7-6.8-17.7-19.9-26.6-39.4-26.6-17.9%200-31%208.4-39.3%2025.2-8.3%2016.8-12.4%2041.6-12.4%2074.3%200%2024.6%202.6%2044.4%207.9%2059.4%208.1%2022.8%2022%2034.3%2041.6%2034.3%2015.7%200%2028.3-7%2037.7-20.9zM803.3%20387.2c11.2%2011.3%2016.8%2025%2016.8%2041.2%200%2016.7-5.8%2030.7-17.5%2041.8C791%20481.4%20777.4%20487%20762%20487c-17.1%200-31.2-5.8-42.1-17.4-10.9-11.6-16.4-25.1-16.4-40.6%200-16.5%205.8-30.4%2017.3-41.7%2011.5-11.3%2025.3-17%2041.2-17%2016.3%200%2030.1%205.7%2041.3%2016.9zM739.5%20451c6.2%206.2%2013.7%209.3%2022.5%209.3%208.4%200%2015.8-3.1%2022.1-9.3%206.3-6.2%209.4-13.7%209.4-22.6%200-8.5-3.1-15.9-9.3-22.1-6.2-6.2-13.6-9.3-22.2-9.3s-16.1%203.1-22.4%209.3c-6.3%206.2-9.4%2013.7-9.4%2022.6-0.1%208.4%203%2015.8%209.3%2022.1z'%20p-id='1823'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
12
12
  const scaleSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307195033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M887.081%20904.791a25.8%2025.8%200%200%201-18.376-7.619L705.618%20734.075l-4.163%203.369c-58.255%2047.18-131.522%2073.16-206.32%2073.16-181.07%200-328.377-147.308-328.377-328.367%200-181.068%20147.308-328.376%20328.377-328.376%20181.063%200%20328.376%20147.308%20328.376%20328.376%200%2077.072-27.412%20152.07-77.169%20211.17l-3.522%204.173%20162.719%20162.744a25.846%2025.846%200%200%201%207.639%2018.432%2026.081%2026.081%200%200%201-26.051%2026.045l-0.046-0.01zM495.13%20205.957c-152.336%200-276.27%20123.935-276.27%20276.27%200%20152.33%20123.934%20276.27%20276.27%20276.27%20152.34%200%20276.275-123.94%20276.275-276.27%200-152.335-123.935-276.27-276.275-276.27z'%20fill='%23ffffff'%20p-id='8117'%3e%3c/path%3e%3cpath%20d='M626.545%20508.355h-262.83a26.127%2026.127%200%200%201%200-52.255h262.83a26.127%2026.127%200%200%201%200%2052.255z'%20fill='%23ffffff'%20p-id='8118'%3e%3c/path%3e%3cpath%20d='M495.13%20639.77a26.127%2026.127%200%200%201-26.128-26.128v-262.83a26.127%2026.127%200%200%201%2052.255%200v262.835a26.127%2026.127%200%200%201-26.127%2026.123z'%20fill='%23ffffff'%20p-id='8119'%3e%3c/path%3e%3c/svg%3e";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, normalizeClass, toDisplayString, renderList, createBlock, normalizeStyle } from "vue";
2
- import { M as LineDirection } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { M as LineDirection } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
- import { F as FormItem, v as LineStyleOptions, w as ColorPicker } from "./index-Cw_YFCZT.js";
5
+ import { F as FormItem, v as LineStyleOptions, w as ColorPicker } from "./index-yih5hGsL.js";
6
6
  const _hoisted_1 = { class: "ks-row-middle" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "widget-line",
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
2
- import { P as PaginationFormat } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { P as PaginationFormat } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
- import { F as FormItem, x as PaginationFormatOptions } from "./index-Cw_YFCZT.js";
6
- import { S as SizeEditor } from "./size-editor-DyGGEX3s.js";
7
- import { A as AlignEditor } from "./align-editor-BaNT0jhx.js";
8
- import { F as FontEditor } from "./font-editor-DgGgvmB2.js";
5
+ import { F as FormItem, x as PaginationFormatOptions } from "./index-yih5hGsL.js";
6
+ import { S as SizeEditor } from "./size-editor-BjlCmEWf.js";
7
+ import { A as AlignEditor } from "./align-editor-COpCDpFf.js";
8
+ import { F as FontEditor } from "./font-editor-B41KgpWJ.js";
9
9
  const _hoisted_1 = { class: "pl-6px" };
10
10
  const _hoisted_2 = { class: "pl-6px" };
11
11
  const DefaultCustomFormat = "Page ${no} / ${total}";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
- import { f as useSpreadSheet, h as useReverseModeling, F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-COLR9RIu.js";
4
- import { 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";
2
+ import { f as useSpreadSheet, h as useReverseModeling, F as FormItem } from "./index-yih5hGsL.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-eClQhTSv.js";
4
+ import { F as FIELD_TYPE, E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import { message } from "ant-design-vue";
6
6
  import "lodash-es";
7
7
  import "dayjs";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
2
- import { f as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-8rhhfLv7.js";
4
- import { a as PaperWidgeType } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { f as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-yih5hGsL.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-Crnt5d7x.js";
4
+ import { a as PaperWidgeType } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-COLR9RIu.js";
4
- import { 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";
2
+ import { F as FormItem } from "./index-yih5hGsL.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-eClQhTSv.js";
4
+ import { F as FIELD_TYPE, E as useNamespace, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
5
5
  import { message } from "ant-design-vue";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "widget-rangelimit",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-Cw_YFCZT.js";
2
+ import { F as FormItem } from "./index-yih5hGsL.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "widget-serialnumber",
5
5
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
2
- import { f as useSpreadSheet, F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-8rhhfLv7.js";
4
- import { S as SizeEditor } from "./size-editor-DyGGEX3s.js";
5
- import { A as AlignEditor } from "./align-editor-BaNT0jhx.js";
6
- import { F as FontEditor } from "./font-editor-DgGgvmB2.js";
2
+ import { f as useSpreadSheet, F as FormItem } from "./index-yih5hGsL.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-Crnt5d7x.js";
4
+ import { S as SizeEditor } from "./size-editor-BjlCmEWf.js";
5
+ import { A as AlignEditor } from "./align-editor-COpCDpFf.js";
6
+ import { F as FontEditor } from "./font-editor-B41KgpWJ.js";
7
7
  const _hoisted_1 = { class: "pl-6px" };
8
8
  const _hoisted_2 = { class: "pl-6px" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { f as useSpreadSheet, u as useModelFields, F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { F as FIELD_TYPE, T as TimeDiffFormat } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
2
+ import { f as useSpreadSheet, u as useModelFields, F as FormItem } from "./index-yih5hGsL.js";
3
+ import { F as FIELD_TYPE, T as TimeDiffFormat } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/excel",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "GCT Excel online form rendering",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,240 +0,0 @@
1
- import { watch, computed, defineComponent, toRefs, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, isRef, createCommentVNode, createElementVNode, toDisplayString } from "vue";
2
- import { F as FormItem } from "./index-Cw_YFCZT.js";
3
- import { F as FIELD_TYPE, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-Bbu6cwRC.js";
4
- const DateFormatSeparators = ["-", "/", "."];
5
- const DateFormatTemplates = [
6
- { value: "YYYY", supportFieldTypes: [FIELD_TYPE.DATE, FIELD_TYPE.WAREHOUSE_RECEIPT_DATE] },
7
- {
8
- value: "YYYY${sep}MM",
9
- supportFieldTypes: [FIELD_TYPE.DATE, FIELD_TYPE.WAREHOUSE_RECEIPT_DATE]
10
- },
11
- {
12
- value: "YYYY${sep}MM${sep}DD",
13
- supportFieldTypes: [FIELD_TYPE.DATE, FIELD_TYPE.WAREHOUSE_RECEIPT_DATE]
14
- },
15
- { value: "YYYY${sep}MM${sep}DD HH", supportFieldTypes: [FIELD_TYPE.DATE_TIME] },
16
- {
17
- value: "YYYY${sep}MM${sep}DD HH:mm",
18
- supportFieldTypes: [FIELD_TYPE.DATE_TIME]
19
- },
20
- {
21
- value: "YYYY${sep}MM${sep}DD HH:mm:ss",
22
- supportFieldTypes: [FIELD_TYPE.DATE_TIME]
23
- },
24
- { value: "HH", supportFieldTypes: [FIELD_TYPE.TIME] },
25
- { value: "HH:mm", supportFieldTypes: [FIELD_TYPE.TIME] },
26
- { value: "HH:mm:ss", supportFieldTypes: [FIELD_TYPE.TIME] }
27
- ];
28
- function calcFinalFormat(template, separator) {
29
- return template.replace(/\${sep}/g, separator);
30
- }
31
- function setWidgetDefault(widget, type) {
32
- if (!widget.customFormat && !widget.format) {
33
- if (!widget.formatSeparator) {
34
- widget.formatSeparator = DateFormatSeparators[0];
35
- }
36
- if (!widget.formatTemplate) {
37
- let defaultFormatTemplate;
38
- switch (type) {
39
- case FIELD_TYPE.TIME:
40
- defaultFormatTemplate = "HH:mm:ss";
41
- break;
42
- case FIELD_TYPE.DATE_TIME:
43
- defaultFormatTemplate = "YYYY${sep}MM${sep}DD HH:mm:ss";
44
- break;
45
- case FIELD_TYPE.DATE:
46
- case FIELD_TYPE.WAREHOUSE_RECEIPT_DATE:
47
- default:
48
- defaultFormatTemplate = "YYYY${sep}MM${sep}DD";
49
- }
50
- widget.formatTemplate = defaultFormatTemplate;
51
- }
52
- if (!widget.format) {
53
- widget.format = calcFinalFormat(widget.formatTemplate, widget.formatSeparator);
54
- }
55
- }
56
- }
57
- function useDateFormatEditor(formState, fieldType) {
58
- watch(
59
- formState,
60
- () => {
61
- setWidgetDefault(formState.value, fieldType.value);
62
- },
63
- { immediate: true }
64
- );
65
- const setCustom = (isCustom) => {
66
- if (isCustom === formState.value.customFormat) {
67
- return;
68
- }
69
- formState.value.customFormat = isCustom;
70
- if (isCustom) {
71
- formState.value.format = void 0;
72
- } else {
73
- formState.value.format = void 0;
74
- }
75
- };
76
- const calcAndSetFormat = () => {
77
- if (formState.value.formatSeparator && formState.value.formatTemplate) {
78
- formState.value.format = calcFinalFormat(
79
- formState.value.formatTemplate,
80
- formState.value.formatSeparator
81
- );
82
- }
83
- };
84
- const separatorValue = computed({
85
- get() {
86
- return formState.value.formatSeparator;
87
- },
88
- set(v) {
89
- setCustom(false);
90
- formState.value.formatSeparator = v;
91
- calcAndSetFormat();
92
- }
93
- });
94
- const templateValue = computed({
95
- get() {
96
- return formState.value.formatTemplate;
97
- },
98
- set(v) {
99
- setCustom(false);
100
- formState.value.formatTemplate = v;
101
- calcAndSetFormat();
102
- }
103
- });
104
- const customFormat = computed({
105
- get() {
106
- return !!formState.value.customFormat;
107
- },
108
- set(v) {
109
- if (v) {
110
- setCustom(true);
111
- } else {
112
- setCustom(false);
113
- }
114
- }
115
- });
116
- const templateOptions = computed(() => {
117
- if (!separatorValue.value) {
118
- return [];
119
- }
120
- return DateFormatTemplates.filter(
121
- (item) => item.supportFieldTypes.includes(fieldType.value)
122
- ).map((item) => {
123
- return {
124
- label: calcFinalFormat(item.value, separatorValue.value),
125
- value: item.value
126
- };
127
- });
128
- });
129
- const separatorOptions = DateFormatSeparators.map((separator) => ({
130
- label: separator,
131
- value: separator
132
- }));
133
- return {
134
- separatorValue,
135
- templateValue,
136
- separatorOptions,
137
- templateOptions,
138
- customFormat
139
- };
140
- }
141
- const _hoisted_1 = { class: "date-format-editor__switch" };
142
- const _hoisted_2 = { class: "date-format-editor__switch_text" };
143
- const _sfc_main = /* @__PURE__ */ defineComponent({
144
- __name: "date-format-editor",
145
- props: {
146
- widget: {},
147
- fieldType: {},
148
- disabled: { type: Boolean }
149
- },
150
- setup(__props) {
151
- const props = __props;
152
- const { widget, fieldType } = toRefs(props);
153
- const { customFormat, separatorValue, templateValue, separatorOptions, templateOptions } = useDateFormatEditor(widget, fieldType);
154
- return (_ctx, _cache) => {
155
- const _component_a_switch = resolveComponent("a-switch");
156
- const _component_a_select = resolveComponent("a-select");
157
- const _component_a_col = resolveComponent("a-col");
158
- const _component_a_input = resolveComponent("a-input");
159
- const _component_a_row = resolveComponent("a-row");
160
- return openBlock(), createBlock(FormItem, {
161
- class: "date-format-editor",
162
- label: _ctx.$t("sys.component.fieldTypeProps.dateFormat"),
163
- inline: false
164
- }, {
165
- label: withCtx(() => [
166
- createElementVNode("span", null, toDisplayString(_ctx.$t("sys.component.fieldTypeProps.dateFormat")), 1),
167
- createElementVNode("div", _hoisted_1, [
168
- createElementVNode("span", _hoisted_2, toDisplayString(_ctx.$t("sys.customize")), 1),
169
- createVNode(_component_a_switch, {
170
- size: "small",
171
- checked: unref(customFormat),
172
- "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => isRef(customFormat) ? customFormat.value = $event : null),
173
- disabled: __props.disabled
174
- }, null, 8, ["checked", "disabled"])
175
- ])
176
- ]),
177
- default: withCtx(() => [
178
- createVNode(_component_a_row, null, {
179
- default: withCtx(() => [
180
- !unref(customFormat) ? (openBlock(), createBlock(_component_a_col, {
181
- key: 0,
182
- span: 5
183
- }, {
184
- default: withCtx(() => [
185
- createVNode(_component_a_select, {
186
- class: "date-format-editor__separator",
187
- size: "small",
188
- value: unref(separatorValue),
189
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(separatorValue) ? separatorValue.value = $event : null),
190
- options: unref(separatorOptions),
191
- disabled: __props.disabled
192
- }, null, 8, ["value", "options", "disabled"])
193
- ]),
194
- _: 1
195
- })) : createCommentVNode("", true),
196
- !unref(customFormat) ? (openBlock(), createBlock(_component_a_col, {
197
- key: 1,
198
- span: 19
199
- }, {
200
- default: withCtx(() => [
201
- createVNode(_component_a_select, {
202
- class: "date-format-editor__template",
203
- size: "small",
204
- value: unref(templateValue),
205
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => isRef(templateValue) ? templateValue.value = $event : null),
206
- options: unref(templateOptions),
207
- disabled: __props.disabled
208
- }, null, 8, ["value", "options", "disabled"])
209
- ]),
210
- _: 1
211
- })) : createCommentVNode("", true),
212
- !!unref(customFormat) ? (openBlock(), createBlock(_component_a_col, {
213
- key: 2,
214
- span: 24
215
- }, {
216
- default: withCtx(() => [
217
- createVNode(_component_a_input, {
218
- class: "date-format-editor__custom",
219
- size: "small",
220
- value: unref(widget).format,
221
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => unref(widget).format = $event),
222
- disabled: __props.disabled,
223
- placeholder: _ctx.$t("sys.pleaseInputSth", { sth: _ctx.$t("sys.component.fieldTypeProps.dateFormat") })
224
- }, null, 8, ["value", "disabled", "placeholder"])
225
- ]),
226
- _: 1
227
- })) : createCommentVNode("", true)
228
- ]),
229
- _: 1
230
- })
231
- ]),
232
- _: 1
233
- }, 8, ["label"]);
234
- };
235
- }
236
- });
237
- const DateFormatEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49f9bd2f"]]);
238
- export {
239
- DateFormatEditor as D
240
- };