@gct-paas/excel 0.1.18 → 0.1.20

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 (182) hide show
  1. package/dist/{VueVideoPlayer-D3u-ZHom.js → VueVideoPlayer-DePpm38H.js} +2 -2
  2. package/dist/{agg-design-D7CkIPCA.js → agg-design-hreKYp5a.js} +1 -1
  3. package/dist/{agg-props-DNNO9ucx.js → agg-props-CCDh2o6E.js} +1 -1
  4. package/dist/{agg-style-v_94dzX8.js → agg-style-Bh8vdJvs.js} +1 -1
  5. package/dist/{align-editor-COpCDpFf.js → align-editor-DpDuDOMr.js} +1 -1
  6. package/dist/{attach-fields-editor-o_7W-2sr.js → attach-fields-editor-BeGxW6de.js} +2 -2
  7. package/dist/{barcode-design-CvsGGAio.js → barcode-design-CFVTZNAy.js} +3 -2
  8. package/dist/base/index.es.js +63 -138
  9. package/dist/base-font-editor-laOkjBe1.js +119 -0
  10. package/dist/{boolean-design-Hc8Es5l1.js → boolean-design-DIlM9Nrt.js} +3 -2
  11. package/dist/{boolean-props-CGamLGXA.js → boolean-props-CGuFs72-.js} +3 -3
  12. package/dist/{boolean-style-m-WuSO6S.js → boolean-style-BUz6sBUN.js} +5 -4
  13. package/dist/cell-upload-Dw3t7ZKJ.js +33 -0
  14. package/dist/{date-range-editor-BZkhUU-x.js → date-range-editor-rXaru-8n.js} +3 -2
  15. package/dist/{date-time-design-B_oFOcft.js → date-time-design-HfjWK3SA.js} +1 -1
  16. package/dist/{date-time-props-hGnSGQKc.js → date-time-props-C_cG-6wI.js} +3 -3
  17. package/dist/{date-time-style-CGKG8i3K.js → date-time-style-BeCDP5TE.js} +1 -1
  18. package/dist/{decimal-design-B5Artgk6.js → decimal-design-DzLpjX9N.js} +7 -3
  19. package/dist/{decimal-display-mode-C4XUezoP.js → decimal-display-mode-BhD1cOOe.js} +3 -2
  20. package/dist/{decimal-props-Q37uOcWl.js → decimal-props-C6f22071.js} +5 -4
  21. package/dist/{decimal-style-C2CnGPVG.js → decimal-style-XN3rLM2j.js} +1 -1
  22. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-DTnbLBVW.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CJC4kBNh.js} +3 -2
  23. package/dist/{diagonal-design-CyUvkcvp.js → diagonal-design-Dh0qhgSq.js} +2 -2
  24. package/dist/{double-design-D_ipWcRm.js → double-design-XHHlqmEp.js} +6 -3
  25. package/dist/{double-props-D4FGbfe2.js → double-props-Cvi36aBN.js} +4 -4
  26. package/dist/{double-style-BbD_6_Os.js → double-style-Dkoth54S.js} +1 -1
  27. package/dist/{document-sub-table-action-Cy6Rd8OS.js → dynamic-table-action-mGrBO_bn.js} +661 -553
  28. package/dist/{document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js} +366 -147
  29. package/dist/{edit.utils-CXmmCnxE-BK4QnSP-.js → edit.utils-CXmmCnxE-DeDBtyJd.js} +1 -1
  30. package/dist/{enum-design-lOufLU6Z.js → enum-design-CAOAFdI6.js} +13 -7
  31. package/dist/{enum-props-brKRP5Uz.js → enum-props-CBN-AvBS.js} +4 -4
  32. package/dist/{enum-style-BQQHkDUD.js → enum-style-cOiK44Ae.js} +37 -9
  33. package/dist/excel.css +1049 -407
  34. package/dist/{exceljs.min-CUwGyNAf.js → exceljs.min-pnja99MZ.js} +2 -2
  35. package/dist/{expression-design-BPEci3dg.js → expression-design-CqgcK8eO.js} +1 -1
  36. package/dist/{expression-props-Cvg-9V-B.js → expression-props-wXQOIrMY.js} +1 -1
  37. package/dist/{expression-style-Dv3Hl8lm.js → expression-style-BzavnOux.js} +1 -1
  38. package/dist/{file-design-BIzi6cpq.js → file-design-BSQknhnY.js} +1 -1
  39. package/dist/{file-props-oV2U7bpO.js → file-props-CwiuBVHW.js} +2 -2
  40. package/dist/{file-style-CZrxokgP.js → file-style-CG4a3THb.js} +1 -1
  41. package/dist/{font-editor-B41KgpWJ.js → font-editor--CgwL-wF.js} +3 -3
  42. package/dist/{form-annotation-controller-CdNmJKv-.js → form-annotation-controller-DDDyHAwe.js} +3 -2
  43. package/dist/{image-design-DMfBfSkD.js → image-design-CwPjfDxf.js} +2 -2
  44. package/dist/{image-design-C3FEtW6i.js → image-design-D1D0SN5W.js} +3 -2
  45. package/dist/{image-props-DPibJk7n.js → image-props-C4E9gMsG.js} +1 -1
  46. package/dist/{image-style-DLudd5Vt.js → image-style-CIb1mi13.js} +1 -1
  47. package/dist/{index-B1r6-Uxf.js → index-0mxMA4vZ.js} +2 -1
  48. package/dist/{index-B7lz2J6V.js → index-A2MbCZtS.js} +10 -3
  49. package/dist/{index-DJIzgsog.js → index-B2ZNkbGm.js} +2 -1
  50. package/dist/{index-rXMzwu77.js → index-B2tFXR--.js} +5 -2
  51. package/dist/{index-Cp7mC3Qt.js → index-B7DDYlzm.js} +2 -1
  52. package/dist/{index-BiNVmD5v.js → index-BAlLZmfu.js} +2 -1
  53. package/dist/{index-yih5hGsL.js → index-BG_CEaW0.js} +3537 -2743
  54. package/dist/{index-B8ey1U_N.js → index-BJYSmTeW.js} +2 -1
  55. package/dist/{index-D7fFpHaN.js → index-BKoXo3Ha.js} +2 -1
  56. package/dist/{index-oSIIidoF.js → index-BSHUFede.js} +2 -1
  57. package/dist/{index-C5bYd42n.js → index-Bi4hE4Ye.js} +3 -2
  58. package/dist/{index-vZZ5q2xJ.js → index-BneV2tbp.js} +2 -1
  59. package/dist/{index-D0YZX_c7.js → index-ByTKu8n6.js} +2 -1
  60. package/dist/{index-DHVK-P9J.js → index-CGSTq7zN.js} +2 -1
  61. package/dist/{index-DFoELlwd.js → index-CIl6oWcB.js} +2 -1
  62. package/dist/{index-I_FRG0Ho.js → index-CKqLoN9r.js} +2 -1
  63. package/dist/{index-CtiiIgjs.js → index-CWpratsK.js} +50 -106
  64. package/dist/{index-B1CG-75q.js → index-CcmNFTia.js} +3 -2
  65. package/dist/{index-BgZkpQKh.js → index-CeMBvNee.js} +2 -1
  66. package/dist/{index-BOis3jsA.js → index-Cgka0WmQ.js} +4 -1
  67. package/dist/{index-CUIGN7Rt.js → index-D0XkCn_x.js} +2 -1
  68. package/dist/{index-DsNRjyQD.js → index-D0n65ya-.js} +2 -1
  69. package/dist/{index-DAqYc474.js → index-D9tUJAeF.js} +2 -1
  70. package/dist/{index-Cjz0GLDq.js → index-DLoQlQk6.js} +3 -2
  71. package/dist/{index-DDpNgyvD.js → index-DOj318_B.js} +3 -2
  72. package/dist/{index-DPQkm6_v.js → index-Dl2FIifp.js} +2 -1
  73. package/dist/{index-Bppcm2iQ.js → index-Drf0Arr4.js} +2 -1
  74. package/dist/{index-Bvjplnz_.js → index-HHF5iK-6.js} +6 -1
  75. package/dist/{index-B8wKNUsK.js → index-Hg59RKKE.js} +2 -1
  76. package/dist/{index-BZ1jj7Nu.js → index-PMDIMwwL.js} +2 -1
  77. package/dist/{index-DH_EZe8p.js → index-PWmkKVZV.js} +2 -1
  78. package/dist/{index-CkYbgRrH.js → index-UUDS4nmS.js} +2 -1
  79. package/dist/{index-Cn_c3-eW.js → index-ZrNXSw4w.js} +2 -1
  80. package/dist/index.es.js +44 -44
  81. package/dist/{integer-design-DhkNa9IA.js → integer-design-Cy9c0fzI.js} +6 -3
  82. package/dist/{integer-props-c_aQpjaT.js → integer-props-DFDOIb2a.js} +5 -4
  83. package/dist/{integer-style-CS5v7Bhq.js → integer-style-CfIX5ReH.js} +1 -1
  84. package/dist/{mb-render-Cs7LUxzk.js → mb-render-D_uumPQr.js} +1 -1
  85. package/dist/{number-input-ex-CwKIHfk1.js → number-input-ex-CWci0pCj.js} +12 -4
  86. package/dist/{org-props-BcbW62Jg.js → org-props-B5dk289u.js} +3 -2
  87. package/dist/{org-style-Bk7mgML3.js → org-style-BoSDPuw9.js} +1 -1
  88. package/dist/{pagination-design-B1KyJUAG.js → pagination-design-Ci4wxUIk.js} +3 -2
  89. package/dist/paper-widget-design-BilYU9rh.js +4 -0
  90. package/dist/{qrcode-design-EafZURDZ.js → qrcode-design-CJ9R5DIn.js} +1 -1
  91. package/dist/ref-autofill-editor-B4KDvHhR.js +2334 -0
  92. package/dist/{ref-props-C95McyZp.js → ref-props-CwDGepT3.js} +17 -9
  93. package/dist/{ref-style-BxdvOF-4.js → ref-style-B35CsOQO.js} +1 -1
  94. package/dist/{regex-editor-BGukvOEI.js → regex-editor-CIVvr_Lx.js} +2 -2
  95. package/dist/{revo-grid.entry-BeRVTVKO.js → revo-grid.entry-DeWzC35s.js} +1 -1
  96. package/dist/{revogr-attribution_7.entry-CHtbU2lV.js → revogr-attribution_7.entry-BJZ-twfj.js} +3 -3
  97. package/dist/{revogr-clipboard_3.entry-DnvQ-Rl7.js → revogr-clipboard_3.entry-DkgRA8qw.js} +2 -2
  98. package/dist/{revogr-data_4.entry-DLRSuaN8.js → revogr-data_4.entry-BZLzvcbo.js} +2 -2
  99. package/dist/{revogr-filter-panel.entry-BDkhY-74.js → revogr-filter-panel.entry-zGvhshno.js} +1 -1
  100. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-ChESg_eM.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-Asn5-ZRz.js} +3 -2
  101. package/dist/{serialnumber-design-CRaym9J-.js → serialnumber-design-CYFU5TVt.js} +1 -1
  102. package/dist/shared/index.es.js +16 -16
  103. package/dist/{signature-design-BJHfLDNV.js → signature-design-Cwi0cZOI.js} +5 -2
  104. package/dist/{signature-props-B9hfppHh.js → signature-props-cQRB8U8x.js} +3 -3
  105. package/dist/{signature-style-DM4rqHnN.js → signature-style-C90NsLxg.js} +1 -1
  106. package/dist/{single-field-drop-eClQhTSv.js → single-field-drop-BFhQs-3z.js} +2 -2
  107. package/dist/{size-editor-BjlCmEWf.js → size-editor-Dx3y_otg.js} +1 -1
  108. package/dist/src/nocode-base/src/components/border-td.vue.d.ts +1 -0
  109. 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
  110. package/dist/src/nocode-base/src/components/{document-quick-fillin.vue.d.ts → document-quick-fill/fixed-quick-fill-modal.vue.d.ts} +10 -4
  111. package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +22 -0
  112. package/dist/src/nocode-base/src/components/document-sub-table-action/fixed-table-action.vue.d.ts +17 -0
  113. package/dist/src/nocode-base/src/components/index.d.ts +4 -3
  114. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +3 -1
  115. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
  116. package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
  117. package/dist/src/nocode-base/src/types/fields/i-enum-select.d.ts +2 -0
  118. package/dist/src/nocode-base/src/types/fields/i-select.d.ts +4 -0
  119. package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +7 -0
  120. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +3 -1
  121. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +3 -1
  122. package/dist/src/nocode-base/src/types/widgets/i-sub-table.d.ts +4 -0
  123. package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +2 -0
  124. package/dist/src/nocode-web-render/src/render/index.d.ts +2 -2
  125. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +3 -1
  126. package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +3 -1
  127. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +1 -2
  128. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +3 -1
  129. package/dist/src/online-form/src/utils/field.enum.d.ts +3 -2
  130. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields-editor.vue.d.ts +15 -0
  131. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +11 -0
  132. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/index.d.ts +3 -0
  133. package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/index.d.ts +3 -0
  134. package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search-editor.vue.d.ts +15 -0
  135. package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +14 -0
  136. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +16 -0
  137. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +27 -2
  138. 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
  139. package/dist/src/online-form/src/views/designer/modules/panel/comps/quick-fill-config.vue.d.ts +9 -0
  140. package/dist/src/online-form/src/views/designer/modules/sheet/sheet-cell.vue.d.ts +1 -0
  141. package/dist/src/online-form/src/views/designer/types/index.d.ts +2 -0
  142. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/common-select.util.d.ts +47 -0
  143. package/dist/src/shared/components/field-transfer/components/field-transfer-modal.vue.d.ts +30 -0
  144. package/dist/src/shared/components/field-transfer/components/modal-wrapper.vue.d.ts +65 -0
  145. package/dist/src/shared/components/field-transfer/hooks/useModelField.d.ts +169 -0
  146. package/dist/src/shared/components/field-transfer/hooks/useTreeData.d.ts +139 -0
  147. package/dist/src/shared/components/field-transfer/index.d.ts +21 -0
  148. package/dist/src/shared/components/field-transfer/useFieldTransfer.d.ts +47 -0
  149. package/dist/src/shared/components/field-transfer/utils/enum.d.ts +6 -0
  150. package/dist/src/shared/components/field-transfer/utils/i18n.d.ts +1 -0
  151. package/dist/src/shared/components/field-transfer/utils/tree-tool.d.ts +6 -0
  152. package/dist/{text-design-BGxM7gzI.js → text-design-TEheiKQx.js} +3 -2
  153. package/dist/{text-design-C3RhersV.js → text-design-jMPxIgZW.js} +10 -6
  154. package/dist/{text-props-CIpXslMv.js → text-props-CrkSvg6D.js} +5 -5
  155. package/dist/{text-style-BPjaT5Ic.js → text-style-DmwTt8KQ.js} +1 -1
  156. package/dist/{throttle-Cpk1LoGk-LNQ7rPwu.js → throttle-Cpk1LoGk-DTkhEkFR.js} +1 -1
  157. package/dist/{timediff-design-DqVuVrmx.js → timediff-design-D_if-K1S.js} +2 -1
  158. package/dist/{trace-design-IbjVLAhv.js → trace-design-oN7pgtab.js} +2 -2
  159. package/dist/{trace-props-C-F_eDG2.js → trace-props-BFnUk6kv.js} +24 -16
  160. package/dist/{trace-style-DRenZ1n1.js → trace-style-TNnFcvfw.js} +1 -1
  161. package/dist/{user-props-qQx7HZ7T.js → user-props-Ce-ilCmU.js} +3 -2
  162. package/dist/{user-style-BPFOx0xn.js → user-style-4rp0jKYP.js} +1 -1
  163. package/dist/{value-editor.vue_vue_type_style_index_0_lang-Crnt5d7x.js → value-editor.vue_vue_type_style_index_0_lang-DMuR0u4j.js} +3 -2
  164. package/dist/{version-select-BkZzH36D.js → version-select-DSFIlYgX.js} +2 -2
  165. package/dist/web-render/index.es.js +9 -9
  166. package/dist/{widget-barcode-CPZjarSa.js → widget-barcode-Du7LOaiy.js} +5 -4
  167. package/dist/{widget-diagonal-DebN3u9t.js → widget-diagonal-D-q7WK6T.js} +3 -3
  168. package/dist/{widget-image-BSMWxm9c.js → widget-image-Da5mvgMm.js} +5 -5
  169. package/dist/{widget-line-CyavTHOV.js → widget-line-oIFH8P04.js} +3 -2
  170. package/dist/{widget-pagination-ZCBdy6HQ.js → widget-pagination-CSonelt_.js} +6 -5
  171. package/dist/{widget-power-B1NFysHT.js → widget-power-CWczWA7K.js} +3 -3
  172. package/dist/{widget-qrcode-B0TTSoSK.js → widget-qrcode-MQ-cSphb.js} +4 -3
  173. package/dist/{widget-rangelimit-C_ureKDr.js → widget-rangelimit-CFDeRJIf.js} +3 -3
  174. package/dist/{widget-serialnumber-Dq15dHnk.js → widget-serialnumber-DlE2-jvp.js} +1 -1
  175. package/dist/{widget-text-B9EXKFiM.js → widget-text-B1SnpOGN.js} +5 -5
  176. package/dist/{widget-timediff-BhLrQuGb.js → widget-timediff-DeyJbqRE.js} +3 -2
  177. package/package.json +1 -1
  178. package/dist/base-font-editor-BmC423aB.js +0 -83
  179. package/dist/cell-upload-CiXVE0Ii.js +0 -25
  180. package/dist/paper-widget-design-Cp0ioo8c.js +0 -4
  181. package/dist/ref-autofill-editor-OtclaSqy.js +0 -673
  182. /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 { computed, defineComponent, ref, onMounted, openBlock, createBlock, Tran
2
2
  import { isNil, keyBy, pick, isEmpty, mapKeys, cloneDeep, flatMap, zip, merge, pickBy, omit, has, isObject as isObject$1, defaults, groupBy, omitBy, isEqual, get as get$1, last, first } from "lodash-es";
3
3
  import { api as api$1 } from "@gct-paas/api";
4
4
  import dayjs from "dayjs";
5
+ import "ant-design-vue";
5
6
  var PlatformEnum = /* @__PURE__ */ ((PlatformEnum2) => {
6
7
  PlatformEnum2["INTEGRATION_PAAS_DP"] = "INTEGRATION_PAAS_DP";
7
8
  PlatformEnum2["INTEGRATION_PAAS_SI"] = "INTEGRATION_PAAS_SI";
@@ -59715,7 +59716,9 @@ function useWidgetStaticAttrs(widget) {
59715
59716
  isFieldModel,
59716
59717
  fieldLink,
59717
59718
  targetFieldId,
59718
- placeholder: newPlaceholder || placeholder,
59719
+ // An explicitly empty new placeholder means the user removed the hint.
59720
+ // Do not fall back to the legacy placeholder in that case.
59721
+ placeholder: newPlaceholder !== void 0 && newPlaceholder !== null ? newPlaceholder : placeholder,
59719
59722
  bindCompStyleType,
59720
59723
  /** 字段名称 */
59721
59724
  showFieldName: newFieldName,
@@ -63184,27 +63187,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
63184
63187
  case "revo-grid":
63185
63188
  return import(
63186
63189
  /* webpackMode: "lazy" */
63187
- "./revo-grid.entry-BeRVTVKO.js"
63190
+ "./revo-grid.entry-DeWzC35s.js"
63188
63191
  ).then(processMod, consoleError);
63189
63192
  case "revogr-filter-panel":
63190
63193
  return import(
63191
63194
  /* webpackMode: "lazy" */
63192
- "./revogr-filter-panel.entry-BDkhY-74.js"
63195
+ "./revogr-filter-panel.entry-zGvhshno.js"
63193
63196
  ).then(processMod, consoleError);
63194
63197
  case "revogr-attribution_7":
63195
63198
  return import(
63196
63199
  /* webpackMode: "lazy" */
63197
- "./revogr-attribution_7.entry-CHtbU2lV.js"
63200
+ "./revogr-attribution_7.entry-BJZ-twfj.js"
63198
63201
  ).then(processMod, consoleError);
63199
63202
  case "revogr-clipboard_3":
63200
63203
  return import(
63201
63204
  /* webpackMode: "lazy" */
63202
- "./revogr-clipboard_3.entry-DnvQ-Rl7.js"
63205
+ "./revogr-clipboard_3.entry-DkgRA8qw.js"
63203
63206
  ).then(processMod, consoleError);
63204
63207
  case "revogr-data_4":
63205
63208
  return import(
63206
63209
  /* webpackMode: "lazy" */
63207
- "./revogr-data_4.entry-DLRSuaN8.js"
63210
+ "./revogr-data_4.entry-BZLzvcbo.js"
63208
63211
  ).then(processMod, consoleError);
63209
63212
  }
63210
63213
  }
@@ -73245,15 +73248,227 @@ function X(e) {
73245
73248
  return !!e && (typeof e == "object" || typeof e == "function") && typeof e.then == "function";
73246
73249
  }
73247
73250
  const P = defineCustomElements?.(), q = defineAsyncComponent(async () => (X(P) && await P, U));
73251
+ const QUICK_FILL_ALLOWED_FIELDS = /* @__PURE__ */ new Set([
73252
+ FIELD_TYPE.TEXT,
73253
+ FIELD_TYPE.LONG_TEXT,
73254
+ FIELD_TYPE.INTEGER,
73255
+ FIELD_TYPE.LONG,
73256
+ FIELD_TYPE.DOUBLE,
73257
+ FIELD_TYPE.DECIMAL,
73258
+ FIELD_TYPE.DATE,
73259
+ FIELD_TYPE.TIME,
73260
+ FIELD_TYPE.DATE_TIME,
73261
+ FIELD_TYPE.OPTION,
73262
+ FIELD_TYPE.OPTION_MULTI,
73263
+ FIELD_TYPE.MATERIAL_NO,
73264
+ FIELD_TYPE.STERILIZE_LOT,
73265
+ FIELD_TYPE.MATERIAL_LOT,
73266
+ FIELD_TYPE.RELATED_LOT_NO,
73267
+ FIELD_TYPE.SCRAP_MATERIAL_NO
73268
+ ]);
73269
+ function processQuickFillRows(rows = [], columns = []) {
73270
+ const isBlank = (v) => v === null || v === void 0 || typeof v === "string" && v.trim() === "" || Array.isArray(v) && v.length === 0;
73271
+ const roundToScale = (num, scale) => {
73272
+ if (scale == null) return num;
73273
+ const factor = Math.pow(10, scale);
73274
+ return Math.round(num * factor) / factor;
73275
+ };
73276
+ const parseNumber = (v, { integer: integer4 = false, scale = null } = {}) => {
73277
+ if (v === null || v === void 0) return null;
73278
+ if (typeof v === "number") {
73279
+ if (!Number.isFinite(v)) return null;
73280
+ if (integer4 && !Number.isInteger(v)) return null;
73281
+ const n2 = scale != null ? roundToScale(v, scale) : v;
73282
+ return Number.isFinite(n2) ? n2 : null;
73283
+ }
73284
+ let s = String(v).trim();
73285
+ if (s === "") return null;
73286
+ s = s.replace(/,/g, "");
73287
+ if (/^[\(\(].+[\)\)]$/.test(s)) {
73288
+ s = "-" + s.replace(/^[\(\(]|[\)\)]$/g, "");
73289
+ }
73290
+ const n = Number(s);
73291
+ if (!Number.isFinite(n)) return null;
73292
+ if (integer4) {
73293
+ if (!Number.isInteger(n)) return null;
73294
+ return n;
73295
+ } else {
73296
+ return scale != null ? roundToScale(n, scale) : n;
73297
+ }
73298
+ };
73299
+ const parseToDate = (v) => {
73300
+ if (v === null || v === void 0 || v === "") return null;
73301
+ if (typeof v === "string") {
73302
+ let s = v.trim();
73303
+ if (s === "") return null;
73304
+ s = s.replace(/-/g, "/");
73305
+ if (/^\d{1,2}:\d{2}(:\d{2})?$/.test(s)) {
73306
+ const today = /* @__PURE__ */ new Date();
73307
+ const datePart = `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`;
73308
+ s = `${datePart} ${s}`;
73309
+ }
73310
+ const d = new Date(s);
73311
+ return isNaN(d) ? null : d;
73312
+ }
73313
+ return null;
73314
+ };
73315
+ const buildOptionLookup = (opts = []) => {
73316
+ const map = /* @__PURE__ */ new Map();
73317
+ for (const o of opts) {
73318
+ const val = o.value != null ? String(o.value) : void 0;
73319
+ const text = o.text != null ? String(o.text) : void 0;
73320
+ const label = o.label != null ? String(o.label) : void 0;
73321
+ if (val !== void 0) map.set(val, val);
73322
+ if (text !== void 0) map.set(text, val || text);
73323
+ if (label !== void 0) map.set(label, val || label);
73324
+ }
73325
+ return map;
73326
+ };
73327
+ const pad2 = (n) => String(n).padStart(2, "0");
73328
+ const formatDate = (d) => `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;
73329
+ const formatTime = (d) => `${pad2(d.getHours())}:${pad2(d.getMinutes())}:${pad2(d.getSeconds())}`;
73330
+ const formatDateTime = (d) => `${formatDate(d)} ${formatTime(d)}`;
73331
+ const out = rows.map((row) => {
73332
+ const newRow = { ...row };
73333
+ for (const f2 of columns) {
73334
+ const val = row[f2.prop];
73335
+ switch (f2.fieldType) {
73336
+ case FIELD_TYPE.INTEGER:
73337
+ case FIELD_TYPE.LONG:
73338
+ {
73339
+ const n = parseNumber(val, { integer: true });
73340
+ newRow[f2.prop] = isBlank(n) ? void 0 : n;
73341
+ }
73342
+ break;
73343
+ case FIELD_TYPE.DOUBLE:
73344
+ case FIELD_TYPE.DECIMAL:
73345
+ {
73346
+ const n = parseNumber(val, { integer: false, scale: null });
73347
+ newRow[f2.prop] = isBlank(n) ? void 0 : n;
73348
+ }
73349
+ break;
73350
+ case FIELD_TYPE.DATE:
73351
+ {
73352
+ const d = parseToDate(val);
73353
+ newRow[f2.prop] = d ? formatDate(d) : isBlank(val) ? void 0 : val;
73354
+ }
73355
+ break;
73356
+ case FIELD_TYPE.TIME:
73357
+ {
73358
+ const d = parseToDate(val);
73359
+ newRow[f2.prop] = d ? formatTime(d) : isBlank(val) ? void 0 : val;
73360
+ }
73361
+ break;
73362
+ case FIELD_TYPE.DATE_TIME:
73363
+ {
73364
+ const d = parseToDate(val);
73365
+ newRow[f2.prop] = d ? formatDateTime(d) : isBlank(val) ? void 0 : val;
73366
+ }
73367
+ break;
73368
+ case FIELD_TYPE.OPTION_MULTI:
73369
+ {
73370
+ const lookup = buildOptionLookup(f2.newOptions);
73371
+ if (typeof val === "string") {
73372
+ const tokens = val.split(/[;,]/).map((s) => s.trim()).filter((s) => s !== "");
73373
+ const arr = tokens.map((t) => lookup.get(t)).filter((v) => v !== void 0);
73374
+ newRow[f2.prop] = arr.length ? arr.join(",") : void 0;
73375
+ } else {
73376
+ newRow[f2.prop] = isBlank(val) ? void 0 : val;
73377
+ }
73378
+ }
73379
+ break;
73380
+ case FIELD_TYPE.OPTION:
73381
+ {
73382
+ const lookup = buildOptionLookup(f2.newOptions);
73383
+ if (isBlank(val)) {
73384
+ newRow[f2.prop] = void 0;
73385
+ } else {
73386
+ const tokens = val.split(/[;,]/).map((s) => s.trim()).filter((s) => s !== "");
73387
+ const normalized = lookup.get(tokens?.[0]);
73388
+ newRow[f2.prop] = normalized !== void 0 ? normalized : void 0;
73389
+ }
73390
+ }
73391
+ break;
73392
+ default:
73393
+ newRow[f2.prop] = isBlank(val) ? void 0 : val;
73394
+ }
73395
+ }
73396
+ return newRow;
73397
+ }).filter((row) => {
73398
+ return columns.some((f2) => {
73399
+ const v = row[f2.prop];
73400
+ if (v === 0 || v === false) return true;
73401
+ return !isBlank(v);
73402
+ });
73403
+ });
73404
+ return out;
73405
+ }
73406
+ const getIsGroupEmpty = (group2, colKeys) => {
73407
+ return Object.values(pick(group2, colKeys)).every((v) => ["", null, void 0].includes(v));
73408
+ };
73409
+ function groupFixedTableRows(rows, options) {
73410
+ const { rowCount, colCount, direction, z = "row" } = options;
73411
+ const n = rows.length;
73412
+ if (!n) return [];
73413
+ const keys2 = Object.keys(rows[0]);
73414
+ const m = keys2.length;
73415
+ const matrix = rows.map((row) => keys2.map((k) => row[k]));
73416
+ const result = [];
73417
+ function createBlock2(startRow, startCol, height, width) {
73418
+ const values = [];
73419
+ if (z === "row") {
73420
+ for (let r = 0; r < height; r++) {
73421
+ const rowValues = [];
73422
+ for (let c2 = 0; c2 < width; c2++) {
73423
+ rowValues.push(matrix[startRow + r][startCol + c2]);
73424
+ }
73425
+ if (r % 2 === 1) {
73426
+ rowValues.reverse();
73427
+ }
73428
+ values.push(...rowValues);
73429
+ }
73430
+ } else {
73431
+ for (let c2 = 0; c2 < width; c2++) {
73432
+ const colValues = [];
73433
+ for (let r = 0; r < height; r++) {
73434
+ colValues.push(matrix[startRow + r][startCol + c2]);
73435
+ }
73436
+ if (c2 % 2 === 1) {
73437
+ colValues.reverse();
73438
+ }
73439
+ values.push(...colValues);
73440
+ }
73441
+ }
73442
+ const row = {};
73443
+ values.forEach((v, i2) => {
73444
+ row[`K${i2}`] = v;
73445
+ });
73446
+ result.push(row);
73447
+ }
73448
+ if (direction === "x") {
73449
+ for (let r = 0; r < n; r += rowCount) {
73450
+ for (let c2 = 0; c2 < m; c2 += colCount) {
73451
+ createBlock2(r, c2, Math.min(rowCount, n - r), Math.min(colCount, m - c2));
73452
+ }
73453
+ }
73454
+ } else {
73455
+ for (let c2 = 0; c2 < m; c2 += colCount) {
73456
+ for (let r = 0; r < n; r += rowCount) {
73457
+ createBlock2(r, c2, Math.min(rowCount, n - r), Math.min(colCount, m - c2));
73458
+ }
73459
+ }
73460
+ }
73461
+ return result;
73462
+ }
73248
73463
  export {
73249
73464
  ImageDisplayModeEnum as $,
73250
- SignatureTypeEnum as A,
73465
+ SignatureTimeTypeEnum as A,
73251
73466
  BwipCodeType as B,
73252
73467
  CreateType as C,
73253
- useModal as D,
73254
- useNamespace as E,
73468
+ SignShowTypeEnum as D,
73469
+ SignatureTypeEnum as E,
73255
73470
  FIELD_TYPE as F,
73256
- mitt as G,
73471
+ useNamespace as G,
73257
73472
  PlatformEnum as H,
73258
73473
  FieldIconMap as I,
73259
73474
  CellWidgetViewState as J,
@@ -73275,7 +73490,7 @@ export {
73275
73490
  ReturnTypeEnum as Z,
73276
73491
  _export_sfc as _,
73277
73492
  PaperWidgeType as a,
73278
- MobileFillTypeEnum as a$,
73493
+ OfficeTypeEnum as a$,
73279
73494
  PaperSizeMap as a0,
73280
73495
  EntityModelCategoryEnum as a1,
73281
73496
  CheckDsTypeEnum as a2,
@@ -73304,15 +73519,15 @@ export {
73304
73519
  BpmnNodeTypeEnum as aP,
73305
73520
  mergeByMultiKey as aQ,
73306
73521
  getRowId as aR,
73307
- getSubTableQuickFillInfo as aS,
73308
- BpmnSignatureTypeEnum as aT,
73309
- ButtonTypeEnum as aU,
73310
- CHECK_TABLE_MEDPRO_PROTOCOL_KEY as aV,
73311
- CodeRunner as aW,
73312
- Config_Fields as aX,
73313
- ControlStatusEnum as aY,
73314
- EBR_PROVIDE_ENUM as aZ,
73315
- FieldSysVarDefaultValueEnum as a_,
73522
+ BpmnSignatureTypeEnum as aS,
73523
+ ButtonTypeEnum as aT,
73524
+ CHECK_TABLE_MEDPRO_PROTOCOL_KEY as aU,
73525
+ CodeRunner as aV,
73526
+ Config_Fields as aW,
73527
+ ControlStatusEnum as aX,
73528
+ EBR_PROVIDE_ENUM as aY,
73529
+ FieldSysVarDefaultValueEnum as aZ,
73530
+ MobileFillTypeEnum as a_,
73316
73531
  sqlUtils as aa,
73317
73532
  useWidgetStaticAttrs as ab,
73318
73533
  setSelectValidatorId as ac,
@@ -73340,17 +73555,17 @@ export {
73340
73555
  extractKeywordFromQueryData as ay,
73341
73556
  transformUtils as az,
73342
73557
  PageSizeEnum as b,
73343
- getColumns as b$,
73344
- OfficeTypeEnum as b0,
73345
- PosEnum as b1,
73346
- RangeCompareOp as b2,
73347
- SummaryApproveHisTypeEnum as b3,
73348
- applyCheckDsDataToRuntime as b4,
73349
- applyMedProCheckDsDataToRuntime as b5,
73350
- buildFormChangeDisplayRows as b6,
73351
- buildStableFieldLocation as b7,
73352
- collectFormChangeFieldLocations as b8,
73353
- deleteSubtableRow as b9,
73558
+ createEvent as b$,
73559
+ PosEnum as b0,
73560
+ RangeCompareOp as b1,
73561
+ SummaryApproveHisTypeEnum as b2,
73562
+ applyCheckDsDataToRuntime as b3,
73563
+ applyMedProCheckDsDataToRuntime as b4,
73564
+ buildFormChangeDisplayRows as b5,
73565
+ buildStableFieldLocation as b6,
73566
+ collectFormChangeFieldLocations as b7,
73567
+ deleteSubtableRow as b8,
73568
+ detailsHaveFormChangeRowOps as b9,
73354
73569
  setFormRule as bA,
73355
73570
  isReferenceOptionActive as bB,
73356
73571
  validateAllFields as bC,
@@ -73360,32 +73575,32 @@ export {
73360
73575
  judgeUnique as bG,
73361
73576
  FRONT_ROW_KEY as bH,
73362
73577
  q as bI,
73363
- getAugmentedNamespace as bJ,
73364
- CardControlEnum as bK,
73365
- EntityModelTypeEnum as bL,
73366
- FIELD_TYPE_BASIC as bM,
73367
- FIELD_TYPE_INSPECTION as bN,
73368
- FIELD_TYPE_LOGIC as bO,
73369
- FIELD_TYPE_MATERIAL as bP,
73370
- FIELD_TYPE_PRETREATMENT as bQ,
73371
- FIELD_TYPE_PRODUCE as bR,
73372
- FIELD_TYPE_STERILIZATION as bS,
73373
- FormDesignEnum as bT,
73374
- RecordNoGenerateEnum as bU,
73375
- TagTypeEnum as bV,
73376
- registerInstance as bW,
73377
- createEvent as bX,
73378
- getColumnByProp as bY,
73379
- timeout as bZ,
73380
- getVisibleSourceItem as b_,
73381
- detailsHaveFormChangeRowOps as ba,
73382
- extractFormChangeRowDetails as bb,
73383
- fetchCheckDsDataForTable as bc,
73384
- fetchCustomCheckDsData as bd,
73385
- fetchMedProCheckDsData as be,
73386
- getFormChangeRowKey as bf,
73387
- getFormChangeRowOp as bg,
73388
- getParseRuleConfig as bh,
73578
+ groupFixedTableRows as bJ,
73579
+ QUICK_FILL_ALLOWED_FIELDS as bK,
73580
+ processQuickFillRows as bL,
73581
+ getIsGroupEmpty as bM,
73582
+ getAugmentedNamespace as bN,
73583
+ CardControlEnum as bO,
73584
+ EntityModelTypeEnum as bP,
73585
+ FIELD_TYPE_BASIC as bQ,
73586
+ FIELD_TYPE_INSPECTION as bR,
73587
+ FIELD_TYPE_LOGIC as bS,
73588
+ FIELD_TYPE_MATERIAL as bT,
73589
+ FIELD_TYPE_PRETREATMENT as bU,
73590
+ FIELD_TYPE_PRODUCE as bV,
73591
+ FIELD_TYPE_STERILIZATION as bW,
73592
+ FormDesignEnum as bX,
73593
+ RecordNoGenerateEnum as bY,
73594
+ TagTypeEnum as bZ,
73595
+ registerInstance as b_,
73596
+ extractFormChangeRowDetails as ba,
73597
+ fetchCheckDsDataForTable as bb,
73598
+ fetchCustomCheckDsData as bc,
73599
+ fetchMedProCheckDsData as bd,
73600
+ getFormChangeRowKey as be,
73601
+ getFormChangeRowOp as bf,
73602
+ getParseRuleConfig as bg,
73603
+ getSubTableQuickFillInfo as bh,
73389
73604
  handleOldConfig as bi,
73390
73605
  insertSubtableRows as bj,
73391
73606
  isAnnLocationSelected as bk,
@@ -73405,88 +73620,92 @@ export {
73405
73620
  assembleRules as by,
73406
73621
  deleteFormRule as bz,
73407
73622
  FIELD_TYPE_TRACE as c,
73408
- getCellRaw as c$,
73409
- rowTypes as c0,
73410
- GroupingRowPlugin as c1,
73411
- StretchColumn as c2,
73412
- isStretchPlugin as c3,
73413
- AutoSizeColumnPlugin as c4,
73414
- FilterPlugin as c5,
73415
- ExportFilePlugin as c6,
73416
- SortingPlugin as c7,
73417
- ColumnMovePlugin as c8,
73418
- ThemeService as c9,
73419
- isFilterBtn as cA,
73420
- ColumnService as cB,
73421
- MOBILE_CLASS as cC,
73422
- SELECTION_BORDER_CLASS as cD,
73423
- getCellData as cE,
73424
- getCellEditor as cF,
73425
- getRange as cG,
73426
- isRangeSingleCell as cH,
73427
- codesLetter as cI,
73428
- calculateRowHeaderSize as cJ,
73429
- ROW_HEADER_TYPE as cK,
73430
- getScrollbarSize as cL,
73431
- FOCUS_CLASS as cM,
73432
- CELL_HANDLER_CLASS as cN,
73433
- TMP_SELECTION_BG_CLASS as cO,
73434
- getItemByPosition as cP,
73435
- EDIT_INPUT_WR as cQ,
73436
- keyValues as cR,
73437
- isObject as cS,
73438
- DRAGG_TEXT as cT,
73439
- PSEUDO_GROUP_ITEM as cU,
73440
- GROUP_EXPANDED as cV,
73441
- GROUP_DEPTH as cW,
73442
- GROUP_EXPAND_BTN as cX,
73443
- DATA_ROW as cY,
73444
- isGroupingColumn as cZ,
73445
- GROUP_COLUMN_PROP as c_,
73446
- h as ca,
73447
- Host as cb,
73448
- getElement as cc,
73449
- BasePlugin as cd,
73450
- reduce as ce,
73451
- columnTypes as cf,
73452
- debounce$1 as cg,
73453
- RESIZE_INTERVAL as ch,
73454
- DimensionStore as ci,
73455
- gatherTrimmedItems as cj,
73456
- getColumnSizes as ck,
73457
- getItemByIndex as cl,
73458
- DataStore as cm,
73459
- getSourceItem as cn,
73460
- getSourceItemVirtualIndexByProp as co,
73461
- getColumnType as cp,
73462
- setSourceByPhysicalIndex as cq,
73463
- setSourceByVirtualIndex as cr,
73464
- SelectionStore as cs,
73465
- cropCellToMax as ct,
73466
- nextCell as cu,
73467
- isRowType as cv,
73468
- ViewportStore as cw,
73469
- AndOrButton as cx,
73470
- ReorderButton as cy,
73471
- TrashButton as cz,
73623
+ GROUP_EXPAND_BTN as c$,
73624
+ getColumnByProp as c0,
73625
+ timeout as c1,
73626
+ getVisibleSourceItem as c2,
73627
+ getColumns as c3,
73628
+ rowTypes as c4,
73629
+ GroupingRowPlugin as c5,
73630
+ StretchColumn as c6,
73631
+ isStretchPlugin as c7,
73632
+ AutoSizeColumnPlugin as c8,
73633
+ FilterPlugin as c9,
73634
+ ViewportStore as cA,
73635
+ AndOrButton as cB,
73636
+ ReorderButton as cC,
73637
+ TrashButton as cD,
73638
+ isFilterBtn as cE,
73639
+ ColumnService as cF,
73640
+ MOBILE_CLASS as cG,
73641
+ SELECTION_BORDER_CLASS as cH,
73642
+ getCellData as cI,
73643
+ getCellEditor as cJ,
73644
+ getRange as cK,
73645
+ isRangeSingleCell as cL,
73646
+ codesLetter as cM,
73647
+ calculateRowHeaderSize as cN,
73648
+ ROW_HEADER_TYPE as cO,
73649
+ getScrollbarSize as cP,
73650
+ FOCUS_CLASS as cQ,
73651
+ CELL_HANDLER_CLASS as cR,
73652
+ TMP_SELECTION_BG_CLASS as cS,
73653
+ getItemByPosition as cT,
73654
+ EDIT_INPUT_WR as cU,
73655
+ keyValues as cV,
73656
+ isObject as cW,
73657
+ DRAGG_TEXT as cX,
73658
+ PSEUDO_GROUP_ITEM as cY,
73659
+ GROUP_EXPANDED as cZ,
73660
+ GROUP_DEPTH as c_,
73661
+ ExportFilePlugin as ca,
73662
+ SortingPlugin as cb,
73663
+ ColumnMovePlugin as cc,
73664
+ ThemeService as cd,
73665
+ h as ce,
73666
+ Host as cf,
73667
+ getElement as cg,
73668
+ BasePlugin as ch,
73669
+ reduce as ci,
73670
+ columnTypes as cj,
73671
+ debounce$1 as ck,
73672
+ RESIZE_INTERVAL as cl,
73673
+ DimensionStore as cm,
73674
+ gatherTrimmedItems as cn,
73675
+ getColumnSizes as co,
73676
+ getItemByIndex as cp,
73677
+ DataStore as cq,
73678
+ getSourceItem as cr,
73679
+ getSourceItemVirtualIndexByProp as cs,
73680
+ getColumnType as ct,
73681
+ setSourceByPhysicalIndex as cu,
73682
+ setSourceByVirtualIndex as cv,
73683
+ SelectionStore as cw,
73684
+ cropCellToMax as cx,
73685
+ nextCell as cy,
73686
+ isRowType as cz,
73472
73687
  FIELD_TYPE_BUSINESS as d,
73473
- DATA_COL as d0,
73474
- CELL_CLASS as d1,
73475
- Build as d2,
73476
- isRowDragService as d3,
73477
- DRAG_ICON_CLASS as d4,
73478
- DRAGGABLE_CLASS as d5,
73479
- getCellDataParsed as d6,
73480
- GROUP_EXPAND_EVENT as d7,
73481
- isGrouping as d8,
73482
- HEADER_ROW_CLASS as d9,
73483
- HEADER_ACTUAL_ROW_CLASS as da,
73484
- ROW_FOCUSED_CLASS as db,
73485
- HEADER_SORTABLE_CLASS as dc,
73486
- MIN_COL_SIZE as dd,
73487
- FilterButton as de,
73488
- HeaderCellRenderer as df,
73489
- HEADER_CLASS as dg,
73688
+ DATA_ROW as d0,
73689
+ isGroupingColumn as d1,
73690
+ GROUP_COLUMN_PROP as d2,
73691
+ getCellRaw as d3,
73692
+ DATA_COL as d4,
73693
+ CELL_CLASS as d5,
73694
+ Build as d6,
73695
+ isRowDragService as d7,
73696
+ DRAG_ICON_CLASS as d8,
73697
+ DRAGGABLE_CLASS as d9,
73698
+ getCellDataParsed as da,
73699
+ GROUP_EXPAND_EVENT as db,
73700
+ isGrouping as dc,
73701
+ HEADER_ROW_CLASS as dd,
73702
+ HEADER_ACTUAL_ROW_CLASS as de,
73703
+ ROW_FOCUSED_CLASS as df,
73704
+ HEADER_SORTABLE_CLASS as dg,
73705
+ MIN_COL_SIZE as dh,
73706
+ FilterButton as di,
73707
+ HeaderCellRenderer as dj,
73708
+ HEADER_CLASS as dk,
73490
73709
  ComponentTypeEnum as e,
73491
73710
  estraverse as f,
73492
73711
  SubTableType as g,
@@ -73496,17 +73715,17 @@ export {
73496
73715
  commonjsGlobal as k,
73497
73716
  getDefaultExportFromCjs as l,
73498
73717
  PaperWidgeValueType as m,
73499
- FIELD_TYPE_WAREHOUSE as n,
73718
+ useCalculateFormula as n,
73500
73719
  onlineFormMasterModelTypeEnum as o,
73501
73720
  parse as p,
73502
- FieldDefaultValueTypeEnum as q,
73721
+ FIELD_TYPE_WAREHOUSE as q,
73503
73722
  requireEstraverse as r,
73504
73723
  src as s,
73505
- FormTypeEnum as t,
73506
- useCalculateFormula as u,
73507
- LabelPosition as v,
73508
- BooleanShowMode as w,
73509
- SignatureNumberTypeEnum as x,
73510
- SignatureTimeTypeEnum as y,
73511
- SignShowTypeEnum as z
73724
+ FieldDefaultValueTypeEnum as t,
73725
+ useModal as u,
73726
+ FormTypeEnum as v,
73727
+ mitt as w,
73728
+ LabelPosition as x,
73729
+ BooleanShowMode as y,
73730
+ SignatureNumberTypeEnum as z
73512
73731
  };
@@ -1,4 +1,4 @@
1
- import { cQ as EDIT_INPUT_WR, cR as keyValues, cI as codesLetter } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
1
+ import { cU as EDIT_INPUT_WR, cV as keyValues, cM as codesLetter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js";
2
2
  function isClear(code) {
3
3
  return codesLetter.BACKSPACE === code || codesLetter.DELETE === code;
4
4
  }
@@ -1,7 +1,8 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
- import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-yih5hGsL.js";
3
- import { F as FIELD_TYPE, _ as _export_sfc } from "./document-quick-fillin.vue_vue_type_style_index_0_scoped_a18386ab_lang-DKTGEH4Q.js";
1
+ import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, normalizeClass, normalizeStyle, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
+ import { C as CellWidgetRenderComp, S as SelectEx, a as CellWidgetDesign } from "./index-BG_CEaW0.js";
3
+ import { F as FIELD_TYPE, _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js";
4
4
  import { isNil } from "lodash-es";
5
+ const _hoisted_1 = { class: "enum-design" };
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "enum-design",
7
8
  props: {
@@ -36,15 +37,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
37
  return props.fieldWidget.options.find((item) => item.defaultSelected)?.value;
37
38
  }
38
39
  });
40
+ const hasOptionGap = computed(() => !isNil(props.fieldWidget.optionGap));
39
41
  const styleVars = computed(() => {
40
42
  const result = {};
41
43
  if (!isNil(props.fieldWidget.iconLabelSpace)) {
42
- result["--gct-select-ex-icon-label-space"] = props.fieldWidget.iconLabelSpace + "px";
44
+ result["--gct-select-ex-icon-label-space"] = `${props.fieldWidget.iconLabelSpace}px`;
45
+ }
46
+ if (hasOptionGap.value) {
47
+ result["--gct-select-ex-option-gap"] = `${props.fieldWidget.optionGap}px`;
43
48
  }
44
49
  return result;
45
50
  });
46
51
  return (_ctx, _cache) => {
47
- return openBlock(), createElementBlock("div", null, [
52
+ return openBlock(), createElementBlock("div", _hoisted_1, [
48
53
  createVNode(unref(SelectEx), {
49
54
  disabled: __props.disabled,
50
55
  options: options.value,
@@ -55,6 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
60
  direction: __props.fieldWidget.direction,
56
61
  "label-position": __props.fieldWidget.labelPosition,
57
62
  style: normalizeStyle(styleVars.value),
63
+ class: normalizeClass({ "enum-option-gap-enabled": hasOptionGap.value }),
58
64
  size: "small",
59
65
  placeholder: __props.fieldWidget.placeholder
60
66
  }, {
@@ -68,12 +74,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
74
  }), 128)) : createCommentVNode("", true)
69
75
  ]),
70
76
  _: 1
71
- }, 8, ["disabled", "options", "value", "is-multiple", "show-mode", "icon-type", "direction", "label-position", "style", "placeholder"])
77
+ }, 8, ["disabled", "options", "value", "is-multiple", "show-mode", "icon-type", "direction", "label-position", "style", "class", "placeholder"])
72
78
  ]);
73
79
  };
74
80
  }
75
81
  });
76
- const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a8f3fc06"]]);
82
+ const enumDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd45de7c"]]);
77
83
  export {
78
84
  enumDesign as default
79
85
  };