@gct-paas/excel 0.1.28-beta.9 → 0.1.28

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 (347) hide show
  1. package/dist/{BaseComponent-yoXj5Q9c.js → BaseComponent-9YPaGJfR.js} +3 -1
  2. package/dist/{VueVideoPlayer-DnxMrbso.js → VueVideoPlayer-DDUZu4FR.js} +2 -2
  3. package/dist/{align-editor-B4gydK1M.js → align-editor-aEWznFoT.js} +1 -1
  4. package/dist/{barcode-design-Cid0MzDI.js → barcode-design-UQyluywP.js} +2 -2
  5. package/dist/base/index.es.js +718 -466
  6. package/dist/{diagonal-design-C1ZotzUS.js → diagonal-design-bGGzn_Wt.js} +2 -2
  7. package/dist/{dynamic-table-action-C1o2TjqX.js → dynamic-table-action-DmQ4nVdA.js} +825 -216
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BviS9x-o.js} +2457 -757
  9. package/dist/{edit.utils-CXmmCnxE-DEOcuCns.js → edit.utils-CXmmCnxE-pmY90xaE.js} +1 -1
  10. package/dist/excel.css +20939 -21654
  11. package/dist/{exceljs.min-DHw6Xo0Z.js → exceljs.min-BxkFiHRf.js} +2 -2
  12. package/dist/{font-editor-BMzWHu2P.js → font-editor-BBNgoyoK.js} +3 -3
  13. package/dist/{image-design-Cv7Md3br.js → image-design-CV8ivT4U.js} +3 -2
  14. package/dist/{index-ClwYjOaz.js → index-B94zjbXB.js} +2 -2
  15. package/dist/{index-DCyS2gPu.js → index-B9hn-Xpy.js} +62 -261
  16. package/dist/{index-CTfI5z2v.js → index-BI1w0HuA.js} +2 -2
  17. package/dist/{index-DYJ2NY6r.js → index-BIyoFjsu.js} +1 -1
  18. package/dist/{index-Cf0HUPLj.js → index-BNdFxtuu.js} +2 -2
  19. package/dist/{index-B_rAitke.js → index-BVy2F-LZ.js} +2 -2
  20. package/dist/{index-t_DIs_9d.js → index-BbRU7v-W.js} +2 -2
  21. package/dist/{index-BQLH_u5E.js → index-BgUSwNSn.js} +1 -1
  22. package/dist/{index-DPHsObDL.js → index-Bu5KxbKA.js} +2 -2
  23. package/dist/{index-DVknMcoI.js → index-BzNleuvF.js} +8 -5
  24. package/dist/{index-BC7ZPYu4.js → index-CJgeCzTz.js} +4 -7
  25. package/dist/{index-KJIuf63z.js → index-CY_9UWH1.js} +3 -3
  26. package/dist/{index-DYPfKE_B.js → index-Co8dy8tY.js} +2 -2
  27. package/dist/index-CuwWhVy-.js +26 -0
  28. package/dist/{index-B2oEU1dw.js → index-D3RlguP-.js} +2 -2
  29. package/dist/{index-De0lJXBW.js → index-DAokF2RK.js} +2 -2
  30. package/dist/{index-B_qNr-yz.js → index-DUomn6r4.js} +2 -2
  31. package/dist/{index-DLhVj92F.js → index-DVCumM_5.js} +2 -2
  32. package/dist/{index-DHCfwj7L.js → index-DX2S50Jz.js} +1 -1
  33. package/dist/{index-b03O87gX.js → index-DXutPZQB.js} +1 -1
  34. package/dist/{index-BMaOAtO5.js → index-DXvugQoP.js} +2 -2
  35. package/dist/{index-CDLpl1vT.js → index-DapZh4vf.js} +57467 -75573
  36. package/dist/{index-EGCBxJ5U.js → index-Dxiaj_9W.js} +2 -2
  37. package/dist/{index-CB2KdECV.js → index-DzZ4dTHg.js} +2 -2
  38. package/dist/index-FJwxWmrK.js +26 -0
  39. package/dist/{index-DGF9F0hk.js → index-JYTz2lAb.js} +2 -2
  40. package/dist/index-R0Xrpn-f.js +56 -0
  41. package/dist/{index-BNW93hpM.js → index-RHv1ncwn.js} +1 -1
  42. package/dist/{index-Bi8eFVNQ.js → index-eaPQQt2I.js} +1 -1
  43. package/dist/{index-Ca8Vr4hp.js → index-f4FwucgP.js} +3 -3
  44. package/dist/{index-D4SRGG7R.js → index-kZ3vhOMA.js} +2 -2
  45. package/dist/{index-yee5hcWj.js → index-q0gBBMoc.js} +2 -2
  46. package/dist/{index--m7aMhTe.js → index-s7YNVpgF.js} +1 -1
  47. package/dist/{index-DWd__rfX.js → index-zuExIXWU.js} +1 -1
  48. package/dist/index.es.js +49 -47
  49. package/dist/{mb-render-DNA0sAdk.js → mb-render-BBRR_byl.js} +3 -3
  50. package/dist/{version-select-Dt0iT2ZE.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BGrVMSEF.js} +418 -421
  51. package/dist/{pagination-design-a-8WGmGL.js → pagination-design-D2f9xg95.js} +2 -2
  52. package/dist/paper-widget-design-COSbrtAL.js +4 -0
  53. package/dist/{qrcode-design-CWa7ucIf.js → qrcode-design-DuLbid5Q.js} +1 -1
  54. package/dist/{revo-grid.entry-D7L9YPVS.js → revo-grid.entry-DW8yYngF.js} +1 -1
  55. package/dist/{revogr-attribution_7.entry-Cp0OE2PX.js → revogr-attribution_7.entry-WnSOjAfL.js} +3 -3
  56. package/dist/{revogr-clipboard_3.entry-CcGTw0f4.js → revogr-clipboard_3.entry-5f1ZtJWy.js} +2 -2
  57. package/dist/{revogr-data_4.entry-Bh7oCpj9.js → revogr-data_4.entry-BwcXhOPY.js} +2 -2
  58. package/dist/{revogr-filter-panel.entry-OJyr7l1E.js → revogr-filter-panel.entry-CXpo_Btw.js} +1 -1
  59. package/dist/{serialnumber-design-BDTeHe2C.js → serialnumber-design-CYdELIDU.js} +1 -1
  60. package/dist/shared/index.es.js +25 -30
  61. package/dist/{single-field-drop-C-IeYaFA.js → single-field-drop-BpdZOAYb.js} +2 -2
  62. package/dist/{size-editor-Ibjf73lo.js → size-editor-Dr3sVcUl.js} +1 -1
  63. package/dist/src/adapter/adapter.d.ts +36 -0
  64. package/dist/src/adapter/setup.d.ts +18 -12
  65. package/dist/src/domain/field/auto-complete/material-container-manifest.d.ts +2 -0
  66. package/dist/src/domain/field/auto-complete/material-no-manifest.d.ts +2 -0
  67. package/dist/src/domain/field/auto-complete/related-lot-no-manifest.d.ts +2 -0
  68. package/dist/src/domain/field/auto-complete/scrap-material-no-manifest.d.ts +2 -0
  69. package/dist/src/domain/field/auto-complete/sterilization-container-manifest.d.ts +2 -0
  70. package/dist/src/domain/field/date/date-manifest.d.ts +2 -0
  71. package/dist/src/domain/field/date/date-time-manifest.d.ts +2 -0
  72. package/dist/src/domain/field/date/production-date-manifest.d.ts +2 -0
  73. package/dist/src/domain/field/date/re-inspection-date-manifest.d.ts +2 -0
  74. package/dist/src/domain/field/date/report-end-time-manifest.d.ts +2 -0
  75. package/dist/src/domain/field/date/report-start-time-manifest.d.ts +2 -0
  76. package/dist/src/domain/field/date/time-manifest.d.ts +2 -0
  77. package/dist/src/domain/field/date/trace-date-manifest.d.ts +2 -0
  78. package/dist/src/domain/field/date/validity-manifest.d.ts +2 -0
  79. package/dist/src/domain/field/date/warehouse-receipt-date-manifest.d.ts +2 -0
  80. package/dist/src/domain/field/index.d.ts +9 -0
  81. package/dist/src/domain/field/number/decimal-manifest.d.ts +2 -0
  82. package/dist/src/domain/field/number/destructive-test-qty-manifest.d.ts +2 -0
  83. package/dist/src/domain/field/number/double-manifest.d.ts +2 -0
  84. package/dist/src/domain/field/number/good-qty-manifest.d.ts +2 -0
  85. package/dist/src/domain/field/number/inspection-qty-manifest.d.ts +2 -0
  86. package/dist/src/domain/field/number/integer-manifest.d.ts +2 -0
  87. package/dist/src/domain/field/number/long-manifest.d.ts +2 -0
  88. package/dist/src/domain/field/number/material-check-qty-manifest.d.ts +2 -0
  89. package/dist/src/domain/field/number/not-good-qty-manifest.d.ts +2 -0
  90. package/dist/src/domain/field/number/of-inst-num-manifest.d.ts +2 -0
  91. package/dist/src/domain/field/number/operation-output-qty-manifest.d.ts +2 -0
  92. package/dist/src/domain/field/number/operation-receive-qty-manifest.d.ts +2 -0
  93. package/dist/src/domain/field/number/product-check-qty-manifest.d.ts +2 -0
  94. package/dist/src/domain/field/number/production-qty-manifest.d.ts +2 -0
  95. package/dist/src/domain/field/number/qty-consumed-manifest.d.ts +2 -0
  96. package/dist/src/domain/field/number/qty-manifest.d.ts +2 -0
  97. package/dist/src/domain/field/number/qty-required-manifest.d.ts +2 -0
  98. package/dist/src/domain/field/number/scrap-qty-manifest.d.ts +2 -0
  99. package/dist/src/domain/field/number/work-hours-manifest.d.ts +2 -0
  100. package/dist/src/domain/field/option/boolean-manifest.d.ts +2 -0
  101. package/dist/src/domain/field/option/enum-manifest.d.ts +2 -0
  102. package/dist/src/domain/field/option/enum-multi-manifest.d.ts +2 -0
  103. package/dist/src/domain/field/option/option-manifest.d.ts +2 -0
  104. package/dist/src/domain/field/option/option-multi-manifest.d.ts +2 -0
  105. package/dist/src/domain/field/rdo-select/e-sop-manifest.d.ts +2 -0
  106. package/dist/src/domain/field/rdo-select/product-manifest.d.ts +2 -0
  107. package/dist/src/domain/field/rdo-select/scrap-material-manifest.d.ts +2 -0
  108. package/dist/src/domain/field/select/device-manifest.d.ts +2 -0
  109. package/dist/src/domain/field/select/device-ref-manifest.d.ts +2 -0
  110. package/dist/src/domain/field/select/device-ref-multi-manifest.d.ts +2 -0
  111. package/dist/src/domain/field/select/location-manifest.d.ts +2 -0
  112. package/dist/src/domain/field/select/mfg-order-manifest.d.ts +2 -0
  113. package/dist/src/domain/field/select/model-relation-manifest.d.ts +2 -0
  114. package/dist/src/domain/field/select/not-good-group-manifest.d.ts +2 -0
  115. package/dist/src/domain/field/select/not-good-reason-manifest.d.ts +2 -0
  116. package/dist/src/domain/field/select/operation-manifest.d.ts +2 -0
  117. package/dist/src/domain/field/select/org-manifest.d.ts +2 -0
  118. package/dist/src/domain/field/select/org-multi-manifest.d.ts +2 -0
  119. package/dist/src/domain/field/select/production-container-manifest.d.ts +2 -0
  120. package/dist/src/domain/field/select/ref-manifest.d.ts +2 -0
  121. package/dist/src/domain/field/select/ref-multi-manifest.d.ts +2 -0
  122. package/dist/src/domain/field/select/routing-operation-manifest.d.ts +2 -0
  123. package/dist/src/domain/field/select/scrap-group-manifest.d.ts +2 -0
  124. package/dist/src/domain/field/select/scrap-reason-manifest.d.ts +2 -0
  125. package/dist/src/domain/field/select/shopfloor-manifest.d.ts +2 -0
  126. package/dist/src/domain/field/select/target-warehouse-manifest.d.ts +2 -0
  127. package/dist/src/domain/field/select/user-manifest.d.ts +2 -0
  128. package/dist/src/domain/field/select/user-multi-manifest.d.ts +2 -0
  129. package/dist/src/domain/field/select/warehouse-manifest.d.ts +2 -0
  130. package/dist/src/domain/field/text/e-sop-version-manifest.d.ts +2 -0
  131. package/dist/src/domain/field/text/external-reference-no-manifest.d.ts +2 -0
  132. package/dist/src/domain/field/text/long-text-manifest.d.ts +2 -0
  133. package/dist/src/domain/field/text/order-no-manifest.d.ts +2 -0
  134. package/dist/src/domain/field/text/record-no-manifest.d.ts +2 -0
  135. package/dist/src/domain/field/text/text-manifest.d.ts +2 -0
  136. package/dist/src/domain/field/text/warehouse-receipt-no-manifest.d.ts +2 -0
  137. package/dist/src/domain/field/types.d.ts +18 -0
  138. package/dist/src/domain/field/upload/attachment-manifest.d.ts +2 -0
  139. package/dist/src/domain/field/upload/image-manifest.d.ts +2 -0
  140. package/dist/src/domain/field/upload/reporter-manifest.d.ts +2 -0
  141. package/dist/src/domain/field/upload/signature-manifest.d.ts +2 -0
  142. package/dist/src/domain/field/upload/warehouse-manager-manifest.d.ts +2 -0
  143. package/dist/src/domain/index.d.ts +1 -0
  144. package/dist/src/domain/object/date-object/index.d.ts +5 -0
  145. package/dist/src/domain/object/date-object/profile/field-keys.d.ts +19 -0
  146. package/dist/src/domain/object/date-object/profile/fields.d.ts +2 -0
  147. package/dist/src/domain/object/date-object/profile/index.d.ts +3 -0
  148. package/dist/src/domain/object/date-object/runtime/date-object-context.d.ts +30 -0
  149. package/dist/src/domain/object/date-object/runtime/date-object-runtime.d.ts +43 -0
  150. package/dist/src/domain/object/date-object/runtime/fetch-records.d.ts +13 -0
  151. package/dist/src/domain/object/date-object/runtime/object-handlers.d.ts +4 -0
  152. package/dist/src/domain/object/date-object/runtime/re-inspection-date.d.ts +25 -0
  153. package/dist/src/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
  154. package/dist/src/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
  155. package/dist/src/domain/object/date-object/runtime/utils.d.ts +13 -0
  156. package/dist/src/domain/object/date-object/types.d.ts +53 -0
  157. package/dist/src/domain/object/index.d.ts +1 -0
  158. package/dist/src/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +14 -0
  159. package/dist/src/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +14 -0
  160. package/dist/src/domain/table/business/warehouse/shared/eqm-part-api.d.ts +13 -0
  161. package/dist/src/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +40 -3
  162. package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +9 -1
  163. package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +17 -0
  164. package/dist/src/domain/table/business/warehouse/warehouse-inventory/index.d.ts +3 -0
  165. package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/api.d.ts +14 -0
  166. package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +17 -34
  167. package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts +13 -0
  168. package/dist/src/domain/table/business/warehouse/warehouse-inventory/types.d.ts +20 -0
  169. package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +14 -0
  170. package/dist/src/domain/table/design/panel-features.d.ts +1 -0
  171. package/dist/src/index.d.ts +3 -0
  172. package/dist/src/nocode-base/src/components/document-quick-fill/fixed-quick-fill-modal.vue.d.ts +3 -1
  173. package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +2 -0
  174. package/dist/src/nocode-base/src/constant/index.d.ts +5 -1
  175. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +42 -2
  176. package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +1 -1
  177. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +11 -0
  178. package/dist/src/nocode-base/src/core/sub-table/utils/scan/scan-helpers.d.ts +13 -0
  179. package/dist/src/nocode-base/src/core/sub-table/utils/stocktake/stocktake-calc.d.ts +3 -1
  180. package/dist/src/nocode-base/src/core/sub-table/warehouse-in-table-core.d.ts +15 -0
  181. package/dist/src/nocode-base/src/core/sub-table/warehouse-out-table-core.d.ts +1 -0
  182. package/dist/src/nocode-base/src/hooks/date-object/use-date-object.d.ts +2 -0
  183. package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +3 -4
  184. package/dist/src/nocode-base/src/hooks/device-link/types.d.ts +1 -1
  185. package/dist/src/nocode-base/src/hooks/index.d.ts +1 -0
  186. package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +20 -6
  187. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +34 -19
  188. package/dist/src/nocode-base/src/hooks/material-consume/service.d.ts +12 -0
  189. package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +1 -4
  190. package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +49 -8
  191. package/dist/src/nocode-base/src/hooks/material-consume-object/index.d.ts +1 -0
  192. package/dist/src/nocode-base/src/hooks/material-consume-object/product-lot-link.d.ts +35 -0
  193. package/dist/src/nocode-base/src/hooks/operation-receive-qty.d.ts +2 -0
  194. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +12 -0
  195. package/dist/src/nocode-base/src/hooks/useStyles.d.ts +2 -2
  196. package/dist/src/nocode-base/src/interface/device-query.d.ts +40 -0
  197. package/dist/src/nocode-base/src/interface/index.d.ts +2 -1
  198. package/dist/src/nocode-base/src/interface/render.d.ts +11 -0
  199. package/dist/src/nocode-base/src/interface/transform.d.ts +1 -1
  200. package/dist/src/nocode-base/src/types/business/index.d.ts +3 -1
  201. package/dist/src/nocode-base/src/types/business/pretreatment-list.d.ts +3 -1
  202. package/dist/src/nocode-base/src/types/business/sterilize-batch.d.ts +3 -1
  203. package/dist/src/nocode-base/src/types/business/stocktake.d.ts +5 -1
  204. package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
  205. package/dist/src/nocode-base/src/types/fields/i-select.d.ts +13 -1
  206. package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -6
  207. package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +4 -8
  208. package/dist/src/nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts +1 -1
  209. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields-editor.vue.d.ts +3 -3
  210. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +15 -0
  211. package/dist/src/online-form/src/views/__cell_widgets__/common/field-config-visibility.d.ts +2 -0
  212. package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search-editor.vue.d.ts +1 -4
  213. package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +12 -10
  214. package/dist/src/online-form/src/views/__cell_widgets__/common/ref-autofill-editor/autofill-field-utils.d.ts +10 -0
  215. package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-input.vue.d.ts +13 -0
  216. package/dist/src/{nocode-web-render/src/render/sub-table/stocktake/scan-modal.vue.d.ts → online-form/src/views/__cell_widgets__/fake-field/fake-number-input.vue.d.ts} +7 -1
  217. package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +11 -0
  218. package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-select.vue.d.ts +11 -0
  219. package/dist/src/online-form/src/views/__cell_widgets__/fake-field/index.d.ts +4 -0
  220. package/dist/src/online-form/src/views/__cell_widgets__/field-design-components.d.ts +4 -0
  221. package/dist/src/online-form/src/views/__cell_widgets__/index.d.ts +0 -3
  222. package/dist/src/online-form/src/views/__cell_widgets__/widget-panel-map.d.ts +3 -0
  223. package/dist/src/online-form/src/views/designer/constants/index.d.ts +5 -6
  224. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +80 -0
  225. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +110 -3
  226. package/dist/src/online-form/src/views/designer/modules/base/drag-box.vue.d.ts +1 -1
  227. package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/hooks/useObjectInit.d.ts +1 -1
  228. package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor-modal.vue.d.ts +30 -0
  229. package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor.vue.d.ts +6 -17
  230. package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/types.d.ts +20 -0
  231. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +58 -0
  232. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/material-consumption/bom-entry-editor.vue.d.ts +2 -1
  233. package/dist/src/online-form/src/views/designer/modules/toolkit/model-field/add-field-btn.vue.d.ts +1 -3
  234. package/dist/src/online-form/src/views/designer/utils/cell-content-style.d.ts +30 -0
  235. package/dist/src/online-form/src/views/designer/utils/field-type-label.d.ts +1 -0
  236. package/dist/src/online-form/src/views/render/__components__/_common_/widget-component-visible.vue.d.ts +1 -0
  237. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +34 -0
  238. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +23 -0
  239. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.d.ts +5 -0
  240. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +40 -0
  241. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +21 -0
  242. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +24 -0
  243. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/index.d.ts +9 -0
  244. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/use-select-list-height.d.ts +9 -0
  245. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/trace-like-wrapper.d.ts +26 -0
  246. package/dist/src/online-form/src/views/render/__components__/_field_/auto-complete/index.d.ts +14 -0
  247. package/dist/src/online-form/src/views/render/__components__/_field_/{trace → rdo-select}/index.d.ts +2 -2
  248. package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/usePopoverWrapperHeight.d.ts +11 -2
  249. package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/columns.d.ts +13 -0
  250. package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +3 -3
  251. package/dist/src/shared/components/FieldStateIcon/field-state-icon.vue.d.ts +17 -0
  252. package/dist/src/shared/components/FieldStateIcon/index.d.ts +3 -0
  253. package/dist/src/shared/components/Preview/src/Functional.vue.d.ts +1 -1
  254. package/dist/src/shared/components/Signature/index.d.ts +2 -1
  255. package/dist/src/shared/components/Signature/types/index.d.ts +4 -0
  256. package/dist/src/shared/components/Signature/ui/handwriting-signer.vue.d.ts +1 -0
  257. package/dist/src/shared/components/Signature/ui/password-signer.vue.d.ts +1 -0
  258. package/dist/src/shared/components/Signature/ui/sign-popover-content.vue.d.ts +122 -0
  259. package/dist/src/shared/components/Signature/ui/sign-switcher-modal.vue.d.ts +4 -0
  260. package/dist/src/shared/components/Signature/ui/sign-switcher.vue.d.ts +3 -0
  261. package/dist/src/shared/components/registerGlobComp.d.ts +5 -0
  262. package/dist/src/shared/enum/field-type.d.ts +39 -284
  263. package/dist/src/shared/enum/index.d.ts +1 -1
  264. package/dist/src/shared/utils/field-size.d.ts +3 -0
  265. package/dist/src/shared/utils/lot2sn.d.ts +22 -0
  266. package/dist/{text-design-B1eX7Rp1.js → text-design-CwR0nlo0.js} +2 -2
  267. package/dist/{throttle-Cpk1LoGk-kodOPzL5.js → throttle-Cpk1LoGk-Dkz6zJ8F.js} +1 -1
  268. package/dist/{timediff-design-CoDU15y8.js → timediff-design-INgy9LDa.js} +1 -1
  269. package/dist/trace-like-wrapper-CDVQC9nc.js +34 -0
  270. package/dist/{value-editor.vue_vue_type_style_index_0_lang-ey1VNCHV.js → value-editor.vue_vue_type_style_index_0_lang-B6OHtKgu.js} +2 -2
  271. package/dist/web-render/index.es.js +118 -17
  272. package/dist/{widget-barcode-DAxib6qS.js → widget-barcode-BwVnh-YN.js} +4 -4
  273. package/dist/{widget-diagonal-BLo6XT0t.js → widget-diagonal-CrwmwCig.js} +5 -7
  274. package/dist/{widget-image-D_1erLrE.js → widget-image-BBUd3Sds.js} +6 -5
  275. package/dist/{widget-line-BwnSq4--.js → widget-line-BrtK1Cyg.js} +4 -4
  276. package/dist/{widget-pagination-DZMwe14i.js → widget-pagination-CL4-9x6C.js} +5 -5
  277. package/dist/{widget-power-DfV-8moi.js → widget-power-CM63pEBI.js} +3 -3
  278. package/dist/{widget-qrcode-C3yTAHOn.js → widget-qrcode-CKaQeTLP.js} +3 -3
  279. package/dist/{widget-rangelimit-DK8hANd1.js → widget-rangelimit-CXU8rtul.js} +3 -3
  280. package/dist/{widget-serialnumber-B2pkh6KT.js → widget-serialnumber-DyIKmcmC.js} +1 -1
  281. package/dist/{widget-text-98SaLOpt.js → widget-text-s757UF00.js} +5 -5
  282. package/dist/{widget-timediff-OD7HVoVr.js → widget-timediff-C6mIOI8p.js} +2 -2
  283. package/package.json +16 -6
  284. package/dist/agg-design-BO3eBkol.js +0 -24
  285. package/dist/agg-props-DEXapyb8.js +0 -10
  286. package/dist/agg-style-CDLpFoBn.js +0 -33
  287. package/dist/attach-fields-editor-DXh9f5iy.js +0 -116
  288. package/dist/base-font-editor-Ccv90UWY.js +0 -179
  289. package/dist/boolean-design-D1BIjOGz.js +0 -124
  290. package/dist/boolean-props-Cqb1zZfy.js +0 -155
  291. package/dist/boolean-style-C2uaO_Ei.js +0 -108
  292. package/dist/cell-upload-xzz2ufK7.js +0 -35
  293. package/dist/date-range-editor-D0SCmmS0.js +0 -472
  294. package/dist/date-time-design-pv0mRSgV.js +0 -64
  295. package/dist/date-time-props-B0YQO-ig.js +0 -105
  296. package/dist/date-time-style-Dn4TErcH.js +0 -33
  297. package/dist/decimal-design-BMKikWwr.js +0 -29
  298. package/dist/decimal-display-mode-BLrn-r-H.js +0 -60
  299. package/dist/decimal-props-BXVnDByV.js +0 -313
  300. package/dist/decimal-style-C5hB5sv6.js +0 -33
  301. package/dist/default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-LcZ8lvPF.js +0 -370
  302. package/dist/double-design-5yOxs5xB.js +0 -28
  303. package/dist/double-props-CQ9yBXNl.js +0 -91
  304. package/dist/double-style-C01aPXrT.js +0 -33
  305. package/dist/enum-design-DewhmfeF.js +0 -97
  306. package/dist/enum-props-0ECHvFUr.js +0 -734
  307. package/dist/enum-style-fm5Ap8eG.js +0 -76
  308. package/dist/expression-design-BY6oI5EW.js +0 -24
  309. package/dist/expression-props-3OvDgw-p.js +0 -10
  310. package/dist/expression-style-Hhv8wnAe.js +0 -33
  311. package/dist/file-design-QE5qUMix.js +0 -17
  312. package/dist/file-props-CEGee5yo.js +0 -201
  313. package/dist/file-style-65tfxL94.js +0 -9
  314. package/dist/image-design-BoQOLCEL.js +0 -23
  315. package/dist/image-props-GuHBNt9S.js +0 -16
  316. package/dist/image-style-BLQukPqV.js +0 -9
  317. package/dist/index-CBYXYocJ.js +0 -40
  318. package/dist/index-DI8vltuS.js +0 -68
  319. package/dist/integer-design-C8kRP1tV.js +0 -28
  320. package/dist/integer-props-XICS-8Qt.js +0 -162
  321. package/dist/integer-style-BstrlNJp.js +0 -33
  322. package/dist/number-input-ex-BjIp4mym.js +0 -69
  323. package/dist/org-design-DWZI8xev.js +0 -24
  324. package/dist/org-props-0CY6-hLS.js +0 -96
  325. package/dist/org-style-HDV7obSe.js +0 -33
  326. package/dist/paper-widget-design-CT80i7VR.js +0 -4
  327. package/dist/ref-autofill-editor-CObqr_xh.js +0 -2376
  328. package/dist/ref-design-BQ8o1gKm.js +0 -24
  329. package/dist/ref-props-xjVvnvGW.js +0 -348
  330. package/dist/ref-style-MZ52QRhu.js +0 -33
  331. package/dist/regex-editor-BctX8jdd.js +0 -823
  332. package/dist/select-render-type-editor.vue_vue_type_script_setup_true_lang-CONYLCmt.js +0 -159
  333. package/dist/signature-design-CFOFAaEu.js +0 -20
  334. package/dist/signature-props-N6ng9rqg.js +0 -346
  335. package/dist/signature-style-D2QQrgMT.js +0 -9
  336. package/dist/src/nocode-base/src/hooks/material-date/material-date.d.ts +0 -44
  337. package/dist/src/nocode-base/src/hooks/material-date/service.d.ts +0 -4
  338. package/dist/src/nocode-base/src/hooks/material-date/use-material-date.d.ts +0 -2
  339. package/dist/text-design-CCs-p8Y3.js +0 -39
  340. package/dist/text-props-C6-s7LBP.js +0 -447
  341. package/dist/text-style-OUxV8LDu.js +0 -33
  342. package/dist/trace-design-Bhg0EIyC.js +0 -77
  343. package/dist/trace-props-DVekq4wE.js +0 -624
  344. package/dist/trace-style-CfSu__TO.js +0 -33
  345. package/dist/user-design-fMF_h4IG.js +0 -24
  346. package/dist/user-props-BGjEpC4j.js +0 -103
  347. package/dist/user-style-RUHIGWFF.js +0 -33
@@ -1,734 +0,0 @@
1
- import { defineComponent, reactive, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, Fragment, createBlock, createCommentVNode, computed, toRaw, normalizeClass, unref } from "vue";
2
- import { i as useSpreadSheet, I as Icon, b as FormItem, k as draggableComponent } from "./index-CDLpl1vT.js";
3
- import { $ as buildUUID, _ as _export_sfc, F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-D8HQKSsX.js";
4
- import { clone, cloneDeep, differenceBy } from "lodash-es";
5
- import { useModal } from "@gct-paas/core";
6
- import { A as AttachFieldEditor } from "./attach-fields-editor-DXh9f5iy.js";
7
- import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
8
- const _hoisted_1$3 = { class: "enum-option-modal" };
9
- const _hoisted_2$3 = { class: "enum-option-modal__footer" };
10
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
11
- __name: "enum-option-modal",
12
- props: {
13
- option: {},
14
- isEdit: { type: Boolean },
15
- modal: {},
16
- readonly: { type: Boolean }
17
- },
18
- emits: ["update", "create"],
19
- setup(__props, { emit: __emit }) {
20
- const props = __props;
21
- const emit = __emit;
22
- const formState = reactive({
23
- id: buildUUID(),
24
- display: true
25
- });
26
- const enumFormRef = ref();
27
- const clear = () => {
28
- enumFormRef.value?.resetFields();
29
- formState.id = buildUUID();
30
- formState.display = true;
31
- };
32
- const validateAndEmit = async () => {
33
- if (props.readonly) return;
34
- await enumFormRef.value?.validate();
35
- if (props.isEdit) {
36
- emit("update", clone(formState));
37
- } else {
38
- emit("create", clone(formState));
39
- }
40
- clear();
41
- };
42
- const validateSpecialCharacters = (_, value, callback) => {
43
- const reg = /^[a-zA-Z0-9_]*$/;
44
- if (!reg.test(value)) {
45
- callback($t("sys.model.validateEnumFieldErrorMsg"));
46
- }
47
- callback();
48
- };
49
- onMounted(() => {
50
- if (props.option) {
51
- Object.assign(formState, props.option);
52
- }
53
- });
54
- function closeModal() {
55
- props.modal.dismiss();
56
- }
57
- const save = async () => {
58
- await validateAndEmit();
59
- closeModal();
60
- };
61
- const saveAndNew = async () => {
62
- await validateAndEmit();
63
- };
64
- return (_ctx, _cache) => {
65
- const _component_a_input = resolveComponent("a-input");
66
- const _component_a_form_item = resolveComponent("a-form-item");
67
- const _component_a_switch = resolveComponent("a-switch");
68
- const _component_a_form = resolveComponent("a-form");
69
- const _component_a_button = resolveComponent("a-button");
70
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
71
- createVNode(_component_a_form, {
72
- ref_key: "enumFormRef",
73
- ref: enumFormRef,
74
- model: formState,
75
- "label-col": { span: 7 },
76
- "wrapper-col": { span: 13 },
77
- autocomplete: "off"
78
- }, {
79
- default: withCtx(() => [
80
- createVNode(_component_a_form_item, {
81
- label: _ctx.$t("sys.component.fieldTypeProps.showValue"),
82
- name: "text",
83
- rules: __props.readonly ? [] : [{ required: true }]
84
- }, {
85
- default: withCtx(() => [
86
- createVNode(_component_a_input, {
87
- value: formState.text,
88
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.text = $event),
89
- placeholder: _ctx.$t("sys.inputText"),
90
- disabled: __props.readonly
91
- }, null, 8, ["value", "placeholder", "disabled"])
92
- ]),
93
- _: 1
94
- }, 8, ["label", "rules"]),
95
- createVNode(_component_a_form_item, {
96
- label: _ctx.$t("sys.component.fieldTypeProps.optionValue"),
97
- name: "value",
98
- rules: __props.readonly ? [] : [
99
- { required: true },
100
- {
101
- validator: validateSpecialCharacters
102
- }
103
- ]
104
- }, {
105
- default: withCtx(() => [
106
- createVNode(_component_a_input, {
107
- value: formState.value,
108
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value = $event),
109
- placeholder: _ctx.$t("sys.inputText"),
110
- disabled: __props.readonly
111
- }, null, 8, ["value", "placeholder", "disabled"])
112
- ]),
113
- _: 1
114
- }, 8, ["label", "rules"]),
115
- createVNode(_component_a_form_item, {
116
- label: _ctx.$t("sys.component.fieldTypeProps.defaultSelected"),
117
- name: "defaultSelected"
118
- }, {
119
- default: withCtx(() => [
120
- createVNode(_component_a_switch, {
121
- checked: formState.defaultSelected,
122
- "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => formState.defaultSelected = $event),
123
- disabled: __props.readonly
124
- }, null, 8, ["checked", "disabled"])
125
- ]),
126
- _: 1
127
- }, 8, ["label"]),
128
- createVNode(_component_a_form_item, {
129
- label: _ctx.$t("sys.onlineForm.whetherToDisplay"),
130
- name: "display"
131
- }, {
132
- default: withCtx(() => [
133
- createVNode(_component_a_switch, {
134
- checked: formState.display,
135
- "onUpdate:checked": _cache[3] || (_cache[3] = ($event) => formState.display = $event),
136
- disabled: __props.readonly
137
- }, null, 8, ["checked", "disabled"])
138
- ]),
139
- _: 1
140
- }, 8, ["label"])
141
- ]),
142
- _: 1
143
- }, 8, ["model"]),
144
- createElementVNode("div", _hoisted_2$3, [
145
- createVNode(_component_a_button, { onClick: closeModal }, {
146
- default: withCtx(() => [
147
- createTextVNode(toDisplayString(__props.readonly ? _ctx.$t("sys.closeText") || "关闭" : _ctx.$t("sys.cancel")), 1)
148
- ]),
149
- _: 1
150
- }),
151
- !__props.readonly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
152
- !__props.isEdit ? (openBlock(), createBlock(_component_a_button, {
153
- key: 0,
154
- type: "primary",
155
- onClick: saveAndNew
156
- }, {
157
- default: withCtx(() => [
158
- createTextVNode(toDisplayString(_ctx.$t("sys.confirmAndContinue")), 1)
159
- ]),
160
- _: 1
161
- })) : createCommentVNode("", true),
162
- createVNode(_component_a_button, {
163
- type: "primary",
164
- onClick: save
165
- }, {
166
- default: withCtx(() => [
167
- createTextVNode(toDisplayString(_ctx.$t("sys.okText")), 1)
168
- ]),
169
- _: 1
170
- })
171
- ], 64)) : createCommentVNode("", true)
172
- ])
173
- ]);
174
- };
175
- }
176
- });
177
- const EnumOptionModal = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-4cd5423b"]]);
178
- const _hoisted_1$2 = { class: "enum-import-title" };
179
- const _hoisted_2$2 = { class: "title" };
180
- const _hoisted_3$1 = { class: "desc-ul" };
181
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
182
- __name: "enum-import-modal",
183
- emits: ["import-enum"],
184
- setup(__props, { emit: __emit }) {
185
- const { paper } = useSpreadSheet();
186
- const formState = reactive({});
187
- const enumFormRef = ref();
188
- const options = computed(() => {
189
- return paper.value.globalOptions?.map((item) => {
190
- return {
191
- label: item.title,
192
- value: item.id
193
- };
194
- });
195
- });
196
- useModal(async () => {
197
- await enumFormRef.value?.validate();
198
- const globalOption = paper.value.globalOptions?.find((item) => item.id === formState.id);
199
- const arr = cloneDeep(toRaw(globalOption?.options));
200
- return {
201
- ok: true,
202
- data: arr
203
- };
204
- });
205
- return (_ctx, _cache) => {
206
- const _component_QuestionCircleFilled = resolveComponent("QuestionCircleFilled");
207
- const _component_a_select = resolveComponent("a-select");
208
- const _component_a_form_item = resolveComponent("a-form-item");
209
- const _component_a_form = resolveComponent("a-form");
210
- return openBlock(), createElementBlock("div", null, [
211
- createElementVNode("div", _hoisted_1$2, [
212
- createVNode(_component_QuestionCircleFilled),
213
- createElementVNode("span", _hoisted_2$2, toDisplayString(_ctx.$t("sys.onlineForm.importGlobalConfigNotice1")), 1)
214
- ]),
215
- createElementVNode("ul", _hoisted_3$1, [
216
- createElementVNode("li", null, toDisplayString(_ctx.$t("sys.onlineForm.importGlobalConfigNoticeRow1")), 1),
217
- createElementVNode("li", null, toDisplayString(_ctx.$t("sys.onlineForm.importGlobalConfigNoticeRow2")), 1),
218
- createElementVNode("li", null, toDisplayString(_ctx.$t("sys.onlineForm.importGlobalConfigNoticeRow3")), 1)
219
- ]),
220
- createVNode(_component_a_form, {
221
- ref_key: "enumFormRef",
222
- ref: enumFormRef,
223
- model: formState,
224
- "label-col": { span: 5 },
225
- "wrapper-col": { span: 13 },
226
- autocomplete: "off"
227
- }, {
228
- default: withCtx(() => [
229
- createVNode(_component_a_form_item, {
230
- label: _ctx.$t("sys.onlineForm.globalConfigGroup"),
231
- name: "id",
232
- rules: [{ required: true }]
233
- }, {
234
- default: withCtx(() => [
235
- createVNode(_component_a_select, {
236
- placeholder: _ctx.$t("sys.pleaseSelectSth", { sth: _ctx.$t("sys.onlineForm.globalConfigGroup") }),
237
- value: formState.id,
238
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.id = $event),
239
- allowClear: "",
240
- options: options.value
241
- }, null, 8, ["placeholder", "value", "options"])
242
- ]),
243
- _: 1
244
- }, 8, ["label"])
245
- ]),
246
- _: 1
247
- }, 8, ["model"])
248
- ]);
249
- };
250
- }
251
- });
252
- const EnumImportModal = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-294f9e64"]]);
253
- const _sfc_main$5 = defineComponent({
254
- name: "EnumImportIcon",
255
- components: {
256
- Icon
257
- }
258
- });
259
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
260
- const _component_icon = resolveComponent("icon");
261
- return openBlock(), createBlock(_component_icon, null, {
262
- component: withCtx(() => [..._cache[0] || (_cache[0] = [
263
- createElementVNode("svg", {
264
- width: "16",
265
- height: "16",
266
- viewBox: "0 0 16 16",
267
- fill: "none",
268
- xmlns: "http://www.w3.org/2000/svg"
269
- }, [
270
- createElementVNode("g", {
271
- id: "EnumImportIcon",
272
- class: "enum-import-icon"
273
- }, [
274
- createElementVNode("path", {
275
- id: "Vector",
276
- d: "M4.70665 4.58533C4.63932 4.58533 4.58398 4.64067 4.58398 4.708V5.44133C4.58398 5.50933 4.63932 5.564 4.70598 5.564H10.5613C10.6287 5.564 10.6833 5.50933 10.6833 5.442V4.708C10.6833 4.64067 10.6287 4.58533 10.5613 4.58533H4.70665ZM7.63332 7.644V6.91C7.63332 6.84267 7.57865 6.78734 7.51198 6.78734H4.70598C4.63932 6.78734 4.58398 6.84267 4.58398 6.91V7.64334C4.58398 7.71067 4.63932 7.766 4.70598 7.766H7.51198C7.57865 7.766 7.63398 7.71134 7.63398 7.644H7.63332Z"
277
- }),
278
- createElementVNode("path", {
279
- id: "Vector_2",
280
- d: "M6.90206 13.6987H3.36473V2.93399H11.9034V8.19399C11.9034 8.26133 11.9581 8.31666 12.0254 8.31666H12.8787C12.9461 8.31666 13.0014 8.26133 13.0014 8.19399V2.32266C13.0016 2.25846 12.9891 2.19486 12.9646 2.1355C12.9402 2.07614 12.9043 2.02219 12.8589 1.97673C12.8136 1.93127 12.7597 1.89521 12.7004 1.8706C12.6412 1.84599 12.5776 1.83333 12.5134 1.83333H2.75473C2.69053 1.83333 2.62696 1.84599 2.56767 1.8706C2.50837 1.89521 2.45452 1.93127 2.40919 1.97673C2.36385 2.02219 2.32793 2.07614 2.30349 2.1355C2.27904 2.19486 2.26655 2.25846 2.26673 2.32266V14.3107C2.26673 14.5813 2.48473 14.7993 2.75473 14.7993H6.90206C6.96873 14.7993 7.02406 14.7447 7.02406 14.6773V13.8213C7.02406 13.7889 7.01123 13.7578 6.98837 13.7348C6.96551 13.7118 6.93448 13.6988 6.90206 13.6987Z"
281
- }),
282
- createElementVNode("path", {
283
- id: "Vector_3",
284
- d: "M8.48931 11.9313C8.51832 11.385 8.75567 10.8705 9.15253 10.4939C9.54938 10.1173 10.0755 9.90709 10.6226 9.90667C10.9387 9.90594 11.2509 9.97569 11.5365 10.1109C11.8222 10.246 12.0741 10.4432 12.274 10.688L11.9213 10.9613C11.9031 10.9755 11.8893 10.9946 11.8814 11.0163C11.8735 11.0379 11.872 11.0614 11.8768 11.084C11.8817 11.1065 11.8928 11.1273 11.909 11.1438C11.9251 11.1603 11.9455 11.1719 11.968 11.1773L13.39 11.5213C13.4079 11.5254 13.4264 11.5254 13.4443 11.5214C13.4622 11.5174 13.479 11.5095 13.4934 11.4982C13.5078 11.4869 13.5195 11.4725 13.5277 11.4561C13.5359 11.4397 13.5403 11.4217 13.5406 11.4033L13.55 9.94467C13.5501 9.92178 13.5439 9.89931 13.5319 9.87982C13.5199 9.86034 13.5026 9.84462 13.4821 9.83447C13.4616 9.82432 13.4386 9.82014 13.4159 9.82242C13.3931 9.82469 13.3714 9.83332 13.3533 9.84733L13.044 10.0887C12.753 9.72636 12.3843 9.43404 11.9653 9.23326C11.5462 9.03249 11.0873 8.9284 10.6226 8.92867C9.8183 8.92974 9.04549 9.24167 8.46578 9.79927C7.88606 10.3569 7.54432 11.117 7.51198 11.9207C7.50865 11.9893 7.56531 12.0473 7.63398 12.0473H8.36731C8.39871 12.0475 8.42895 12.0356 8.4517 12.0139C8.47445 11.9923 8.48793 11.9627 8.48931 11.9313ZM13.6113 12.0473H12.878C12.8466 12.0471 12.8163 12.0591 12.7936 12.0807C12.7708 12.1024 12.7574 12.132 12.756 12.1633C12.727 12.7097 12.4896 13.2241 12.0928 13.6008C11.6959 13.9774 11.1698 14.1876 10.6226 14.188C10.3066 14.1887 9.99441 14.119 9.70875 13.9838C9.42309 13.8486 9.17116 13.6515 8.97131 13.4067L9.32331 13.1333C9.34152 13.1192 9.35537 13.1002 9.36328 13.0786C9.37119 13.0569 9.37284 13.0335 9.36804 13.0109C9.36324 12.9884 9.35218 12.9676 9.33613 12.9511C9.32009 12.9345 9.2997 12.9228 9.27731 12.9173L7.85531 12.5733C7.83739 12.5692 7.81877 12.569 7.8008 12.573C7.78283 12.5769 7.76597 12.5849 7.75146 12.5962C7.73695 12.6075 7.72515 12.6219 7.71694 12.6384C7.70872 12.6548 7.7043 12.6729 7.70398 12.6913L7.69465 14.15C7.69465 14.252 7.81065 14.31 7.89131 14.248L8.20131 14.006C8.49224 14.3684 8.86086 14.6609 9.27995 14.8618C9.69904 15.0627 10.1579 15.1669 10.6226 15.1667C11.427 15.1656 12.1998 14.8537 12.7795 14.2961C13.3592 13.7385 13.701 12.9784 13.7333 12.1747C13.7338 12.1583 13.7311 12.142 13.7252 12.1266C13.7193 12.1113 13.7104 12.0974 13.6991 12.0856C13.6877 12.0738 13.6741 12.0644 13.659 12.0579C13.6439 12.0514 13.6277 12.0481 13.6113 12.048V12.0473Z"
285
- })
286
- ])
287
- ], -1)
288
- ])]),
289
- _: 1
290
- });
291
- }
292
- const EnumImportIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$3], ["__scopeId", "data-v-bd16ceca"]]);
293
- const _sfc_main$4 = defineComponent({
294
- name: "EnumAddIcon",
295
- components: {
296
- Icon
297
- }
298
- });
299
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
300
- const _component_icon = resolveComponent("icon");
301
- return openBlock(), createBlock(_component_icon, null, {
302
- component: withCtx(() => [..._cache[0] || (_cache[0] = [
303
- createElementVNode("svg", {
304
- width: "16",
305
- height: "16",
306
- viewBox: "0 0 16 16",
307
- fill: "none",
308
- xmlns: "http://www.w3.org/2000/svg"
309
- }, [
310
- createElementVNode("g", {
311
- id: "Plus",
312
- class: "enum-add-icon"
313
- }, [
314
- createElementVNode("path", {
315
- id: "Union",
316
- d: "M8.43571 3.5H7.56361C7.48609 3.5 7.44733 3.53704 7.44733 3.61111V7.97222H3.11628C3.03876 7.97222 3 8.00926 3 8.08333V8.91667C3 8.99074 3.03876 9.02778 3.11628 9.02778H7.44733V13.3889C7.44733 13.463 7.48609 13.5 7.56361 13.5H8.43571C8.51323 13.5 8.55199 13.463 8.55199 13.3889V9.02778H12.8837C12.9612 9.02778 13 8.99074 13 8.91667V8.08333C13 8.00926 12.9612 7.97222 12.8837 7.97222H8.55199V3.61111C8.55199 3.53704 8.51323 3.5 8.43571 3.5Z"
317
- })
318
- ])
319
- ], -1)
320
- ])]),
321
- _: 1
322
- });
323
- }
324
- const EnumAddIcon = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$2], ["__scopeId", "data-v-c6f0f816"]]);
325
- const _sfc_main$3 = defineComponent({
326
- name: "SeeViewIcon",
327
- components: {
328
- Icon
329
- }
330
- });
331
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
332
- const _component_icon = resolveComponent("icon");
333
- return openBlock(), createBlock(_component_icon, null, {
334
- component: withCtx(() => [..._cache[0] || (_cache[0] = [
335
- createElementVNode("svg", {
336
- width: "16",
337
- height: "16",
338
- viewBox: "0 0 16 16",
339
- fill: "none"
340
- }, [
341
- createElementVNode("g", { id: "Frame 427318996" }, [
342
- createElementVNode("g", {
343
- id: "删除-转曲",
344
- "clip-path": "url(#clip0_197_11176)"
345
- }, [
346
- createElementVNode("g", { id: "看过_S 1" }, [
347
- createElementVNode("path", {
348
- id: "Vector",
349
- d: "M15.6072 7.79951C15.587 7.74942 13.5297 2.79193 8.00004 2.79193C2.47037 2.79193 0.413064 7.74942 0.392876 7.79952C0.361929 7.8766 0.349243 7.9598 0.355812 8.0426C0.36238 8.12541 0.388026 8.20557 0.430737 8.27679C0.551629 8.47819 3.44323 13.2081 8.00002 13.2081C12.5567 13.2081 15.4484 8.47819 15.5693 8.27679C15.612 8.20557 15.6377 8.12541 15.6442 8.0426C15.6508 7.95979 15.6381 7.87658 15.6072 7.79951ZM8.00004 12.1339C4.58527 12.1339 2.11968 8.86212 1.50137 7.95397C1.95868 7.02588 3.8226 3.86609 8.00004 3.86609C12.1784 3.86609 14.0422 7.02747 14.4987 7.95397C13.8804 8.86213 11.4147 12.1339 8.00004 12.1339Z",
350
- fill: "#797A7D"
351
- }),
352
- createElementVNode("path", {
353
- id: "Vector_2",
354
- d: "M8.00006 4.46245C6.07691 4.46245 4.51245 6.02857 4.51245 7.95346C4.51245 9.87835 6.07691 11.4445 8.00006 11.4445C9.92321 11.4445 11.4877 9.87834 11.4877 7.95346C11.4877 6.02859 9.92317 4.46245 8.00006 4.46245ZM8.00006 10.3703C6.66875 10.3703 5.58556 9.28617 5.58556 7.95345C5.58556 6.62072 6.66873 5.53659 8.00006 5.53659C9.33139 5.53659 10.4146 6.6207 10.4146 7.95345C10.4146 9.28619 9.33135 10.3703 8.00006 10.3703Z",
355
- fill: "#797A7D"
356
- })
357
- ])
358
- ])
359
- ]),
360
- createElementVNode("defs", null, [
361
- createElementVNode("clipPath", { id: "clip0_197_11176" }, [
362
- createElementVNode("rect", {
363
- width: "16",
364
- height: "16",
365
- fill: "white",
366
- transform: "translate(0 0.5)"
367
- })
368
- ])
369
- ])
370
- ], -1)
371
- ])]),
372
- _: 1
373
- });
374
- }
375
- const SeeViewIcon = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1]]);
376
- const _sfc_main$2 = defineComponent({
377
- name: "SeeCloseIcon",
378
- components: {
379
- Icon
380
- }
381
- });
382
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
383
- const _component_icon = resolveComponent("icon");
384
- return openBlock(), createBlock(_component_icon, null, {
385
- component: withCtx(() => [..._cache[0] || (_cache[0] = [
386
- createElementVNode("svg", {
387
- width: "16",
388
- height: "16",
389
- viewBox: "0 0 16 16",
390
- fill: "none"
391
- }, [
392
- createElementVNode("g", { id: "不看 (1) 1" }, [
393
- createElementVNode("path", {
394
- id: "Vector",
395
- d: "M15.118 6.71467C15.1505 6.64667 15.1667 6.57511 15.1667 6.5C15.1667 6.46711 15.1636 6.43467 15.1574 6.40267C15.1507 6.37022 15.1412 6.33889 15.1287 6.30867C15.1163 6.27844 15.1007 6.24956 15.082 6.222C15.0643 6.19489 15.0436 6.16978 15.02 6.14667C14.9969 6.12311 14.9718 6.10222 14.9447 6.084C14.9172 6.06622 14.8883 6.05089 14.858 6.038C14.8278 6.02556 14.7967 6.016 14.7647 6.00933C14.7323 6.00311 14.6996 6 14.6667 6C14.6196 6 14.5732 6.00667 14.5274 6.02C14.482 6.03333 14.4394 6.05244 14.3994 6.07733C14.3594 6.10267 14.3238 6.13289 14.2927 6.168C14.2616 6.20356 14.2358 6.24267 14.2154 6.28533C13.6616 7.44933 12.8247 8.376 11.7047 9.06533C10.5807 9.75689 9.34582 10.1027 8.00004 10.1027C6.65426 10.1027 5.41937 9.75689 4.29537 9.06533C3.17537 8.37644 2.33871 7.45 1.78537 6.286C1.76493 6.24333 1.73915 6.20422 1.70804 6.16867C1.67693 6.13311 1.64137 6.10267 1.60137 6.07733C1.56137 6.052 1.51849 6.03289 1.47271 6.02C1.42693 6.00667 1.38049 6 1.33337 6C1.30049 6 1.26804 6.00311 1.23604 6.00933C1.2036 6.016 1.17226 6.02556 1.14204 6.038C1.11182 6.05044 1.08293 6.066 1.05537 6.08467C1.02826 6.10244 1.00315 6.12311 0.980041 6.14667C0.956485 6.16978 0.935596 6.19489 0.917374 6.222C0.899596 6.24956 0.884263 6.27844 0.871374 6.30867C0.85893 6.33889 0.849374 6.37 0.842707 6.402C0.836485 6.43444 0.833374 6.46711 0.833374 6.5C0.833374 6.57556 0.849596 6.64711 0.882041 6.71467C1.52026 8.05689 2.48337 9.12422 3.77137 9.91667C5.05582 10.7073 6.46537 11.1027 8.00004 11.1027C9.53471 11.1027 10.9443 10.7073 12.2287 9.91667C13.5167 9.12422 14.4798 8.05711 15.118 6.71533V6.71467Z",
396
- fill: "#797A7D"
397
- }),
398
- createElementVNode("path", {
399
- id: "Vector_2",
400
- d: "M4.14934 9.89133L2.14934 11.9107L2.14801 11.912C2.1249 11.9351 2.09957 11.9558 2.07201 11.974C2.0449 11.9922 2.01601 12.0078 1.98534 12.0207C1.95512 12.0331 1.92401 12.0424 1.89201 12.0487C1.86001 12.0553 1.82757 12.0587 1.79468 12.0587C1.76179 12.0587 1.72912 12.0553 1.69668 12.0487C1.66468 12.0424 1.63357 12.0331 1.60334 12.0207C1.57268 12.0078 1.54379 11.9922 1.51668 11.974C1.48957 11.9562 1.46423 11.9356 1.44068 11.912C1.41757 11.8889 1.3969 11.8638 1.37868 11.8367C1.3609 11.8096 1.34557 11.7807 1.33268 11.75C1.32023 11.7202 1.31068 11.6891 1.30401 11.6567C1.29779 11.6247 1.29468 11.5924 1.29468 11.56C1.29468 11.5271 1.29779 11.4947 1.30401 11.4627C1.31023 11.4302 1.31957 11.3991 1.33201 11.3693C1.34446 11.3387 1.35957 11.3098 1.37734 11.2827C1.39557 11.2551 1.41623 11.2298 1.43934 11.2067L3.43934 9.18733L3.44068 9.186C3.46423 9.16244 3.48957 9.14156 3.51668 9.12333C3.54379 9.10556 3.57268 9.09022 3.60334 9.07733C3.63357 9.06489 3.66468 9.05533 3.69668 9.04867C3.72912 9.04244 3.76179 9.03933 3.79468 9.03933C3.82712 9.03933 3.85957 9.04244 3.89201 9.04867C3.92401 9.05533 3.95512 9.06489 3.98534 9.07733C4.01601 9.08978 4.0449 9.10533 4.07201 9.124C4.09957 9.14178 4.1249 9.16244 4.14801 9.186C4.17112 9.20911 4.19179 9.23422 4.21001 9.26133C4.22779 9.28844 4.24334 9.31733 4.25668 9.348C4.26868 9.37778 4.27801 9.40889 4.28468 9.44133C4.2909 9.47333 4.29423 9.50556 4.29468 9.538C4.29468 9.57089 4.29157 9.60333 4.28534 9.63533C4.27912 9.66733 4.26979 9.69844 4.25734 9.72867C4.2449 9.75933 4.22957 9.78822 4.21134 9.81533C4.19357 9.84289 4.1729 9.86822 4.14934 9.89133ZM7.01334 10.6267L6.29134 13.3753V13.378C6.28245 13.4096 6.27068 13.4402 6.25601 13.47C6.24179 13.4993 6.22468 13.5271 6.20468 13.5533C6.18468 13.5791 6.16246 13.6029 6.13801 13.6247C6.11312 13.6464 6.08646 13.6653 6.05801 13.6813C6.02957 13.6978 5.99979 13.7113 5.96868 13.722C5.93757 13.7327 5.90579 13.7402 5.87334 13.7447C5.84046 13.7491 5.80779 13.75 5.77534 13.7473C5.74246 13.7456 5.71023 13.7402 5.67868 13.7313C5.64668 13.7229 5.61601 13.7116 5.58668 13.6973C5.55734 13.6827 5.52979 13.6656 5.50401 13.646C5.47779 13.626 5.45401 13.6038 5.43268 13.5793C5.4109 13.5544 5.39179 13.5278 5.37534 13.4993C5.3589 13.4713 5.34557 13.4418 5.33534 13.4107C5.32423 13.3796 5.31645 13.348 5.31201 13.316C5.30757 13.2836 5.30646 13.2509 5.30868 13.218C5.3109 13.1856 5.31601 13.1533 5.32401 13.1213L6.04668 10.3733V10.3713C6.05557 10.3398 6.06734 10.3091 6.08201 10.2793C6.09623 10.25 6.11334 10.2222 6.13334 10.196C6.15334 10.1702 6.17557 10.1464 6.20001 10.1247C6.2249 10.1029 6.25157 10.0838 6.28001 10.0673C6.30846 10.0513 6.33823 10.038 6.36934 10.0273C6.40045 10.0167 6.43223 10.0091 6.46468 10.0047C6.49757 10.0002 6.53023 9.99933 6.56268 10.002C6.59557 10.0038 6.62779 10.0091 6.65934 10.018C6.69134 10.0264 6.72201 10.0378 6.75134 10.052C6.78068 10.0667 6.80823 10.0838 6.83401 10.1033C6.86023 10.1233 6.88401 10.1456 6.90534 10.17C6.92712 10.1949 6.94623 10.2216 6.96268 10.25C6.97912 10.278 6.99246 10.3076 7.00268 10.3387C7.01379 10.3698 7.02157 10.4013 7.02601 10.4333C7.03046 10.4658 7.03157 10.4984 7.02934 10.5313C7.02712 10.5638 7.02201 10.596 7.01401 10.628L7.01334 10.6267Z",
401
- fill: "#797A7D"
402
- }),
403
- createElementVNode("path", {
404
- id: "Vector_3",
405
- d: "M11.85 9.89133L13.85 11.91L13.852 11.912C13.8752 11.9351 13.9003 11.9558 13.9274 11.974C13.9549 11.9922 13.9838 12.0078 14.014 12.0207C14.0443 12.0331 14.0754 12.0424 14.1074 12.0487C14.1398 12.0553 14.1725 12.0587 14.2054 12.0587C14.2383 12.0587 14.2707 12.0553 14.3027 12.0487C14.3352 12.0424 14.3663 12.0331 14.396 12.0207C14.4272 12.0078 14.456 11.9922 14.4827 11.974C14.5103 11.9562 14.5356 11.9356 14.5587 11.912C14.5818 11.8889 14.6025 11.8638 14.6207 11.8367C14.6389 11.8096 14.6545 11.7807 14.6674 11.75C14.6798 11.7202 14.6892 11.6891 14.6954 11.6567C14.702 11.6247 14.7054 11.5924 14.7054 11.56C14.7054 11.5271 14.7023 11.4947 14.696 11.4627C14.6898 11.4302 14.6805 11.3991 14.668 11.3693C14.6556 11.3387 14.6403 11.3098 14.622 11.2827C14.6043 11.2551 14.5838 11.2298 14.5607 11.2067L12.5607 9.18733L12.5587 9.186C12.5356 9.16244 12.5105 9.14156 12.4834 9.12333C12.4558 9.10556 12.4269 9.09022 12.3967 9.07733C12.3665 9.06489 12.3354 9.05533 12.3034 9.04867C12.2709 9.04244 12.2383 9.03933 12.2054 9.03933C12.1725 9.03933 12.14 9.04244 12.108 9.04867C12.0756 9.05533 12.0443 9.06489 12.014 9.07733C11.9838 9.08978 11.9549 9.10533 11.9274 9.124C11.9003 9.14178 11.8752 9.16244 11.852 9.186C11.8289 9.20911 11.8083 9.23422 11.79 9.26133C11.7718 9.28844 11.7563 9.31733 11.7434 9.348C11.7309 9.37778 11.7216 9.40889 11.7154 9.44133C11.7087 9.47333 11.7054 9.50556 11.7054 9.538C11.7054 9.57089 11.7085 9.60333 11.7147 9.63533C11.7209 9.66733 11.7303 9.69844 11.7427 9.72867C11.7552 9.75933 11.7705 9.78822 11.7887 9.81533C11.8065 9.84244 11.8269 9.86778 11.85 9.89133ZM8.98672 10.6267L9.70872 13.3753V13.378C9.7176 13.4096 9.72938 13.4402 9.74405 13.47C9.75827 13.4993 9.77538 13.5271 9.79538 13.5533C9.81538 13.5791 9.8376 13.6029 9.86205 13.6247C9.88694 13.6464 9.9136 13.6653 9.94205 13.6813C9.97049 13.6978 10.0003 13.7113 10.0314 13.722C10.0625 13.7327 10.0943 13.7402 10.1267 13.7447C10.1596 13.7491 10.1923 13.75 10.2247 13.7473C10.2576 13.7456 10.2898 13.7402 10.3214 13.7313C10.3529 13.7229 10.3836 13.7116 10.4134 13.6973C10.4427 13.6827 10.4703 13.6653 10.496 13.6453C10.5223 13.6258 10.546 13.6036 10.5674 13.5787C10.5892 13.5542 10.6083 13.5278 10.6247 13.4993C10.6412 13.4713 10.6545 13.4418 10.6647 13.4107C10.6758 13.3796 10.6834 13.348 10.6874 13.316C10.6918 13.2836 10.6932 13.2509 10.6914 13.218C10.6892 13.1856 10.684 13.1533 10.676 13.1213L9.95338 10.3733V10.3713C9.94449 10.3398 9.93272 10.3091 9.91805 10.2793C9.90383 10.25 9.88672 10.2222 9.86672 10.196C9.84672 10.1702 9.82449 10.1464 9.80005 10.1247C9.77516 10.1029 9.74849 10.0838 9.72005 10.0673C9.6916 10.0513 9.66183 10.038 9.63072 10.0273C9.5996 10.0167 9.56783 10.0091 9.53538 10.0047C9.50249 10.0002 9.46983 9.99933 9.43738 10.002C9.40449 10.0038 9.37205 10.0091 9.34005 10.018C9.30894 10.0264 9.27849 10.0378 9.24872 10.052C9.21938 10.0667 9.19183 10.0838 9.16605 10.1033C9.13983 10.1233 9.11605 10.1456 9.09472 10.17C9.07294 10.1949 9.05383 10.2216 9.03738 10.25C9.02094 10.278 9.0076 10.3076 8.99738 10.3387C8.98627 10.3698 8.97849 10.4013 8.97405 10.4333C8.9696 10.4658 8.96849 10.4984 8.97072 10.5313C8.97294 10.5638 8.97805 10.596 8.98605 10.628L8.98672 10.6267Z",
406
- fill: "#797A7D"
407
- })
408
- ])
409
- ], -1)
410
- ])]),
411
- _: 1
412
- });
413
- }
414
- const SeeCloseIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render]]);
415
- const _hoisted_1$1 = ["title"];
416
- const _hoisted_2$1 = ["title"];
417
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
418
- __name: "enum-option-item",
419
- props: {
420
- option: {},
421
- widget: {},
422
- disabled: { type: Boolean }
423
- },
424
- emits: ["edit", "remove", "view", "hidden"],
425
- setup(__props, { emit: __emit }) {
426
- const ns = useNamespace("enum-option-item");
427
- const props = __props;
428
- const formState = computed({
429
- get() {
430
- return props.option;
431
- },
432
- set(v) {
433
- Object.assign(props.option, v);
434
- }
435
- });
436
- const emit = __emit;
437
- const enableRef = computed({
438
- get() {
439
- return !!formState.value.attachFields;
440
- },
441
- set(v) {
442
- formState.value.attachFields = v ? [] : void 0;
443
- }
444
- });
445
- const textValue = computed({
446
- get() {
447
- return formState.value.text;
448
- },
449
- set(v) {
450
- formState.value.text = v;
451
- }
452
- });
453
- const editOption = (option) => {
454
- emit("edit", option);
455
- };
456
- const removeOption = (option) => {
457
- emit("remove", option);
458
- };
459
- const viewOption = (option) => {
460
- emit("view", option);
461
- };
462
- const hiddenOption = (option) => {
463
- emit("hidden", option);
464
- };
465
- return (_ctx, _cache) => {
466
- const _component_a_input = resolveComponent("a-input");
467
- const _component_a_checkbox = resolveComponent("a-checkbox");
468
- return openBlock(), createElementBlock("div", {
469
- class: normalizeClass(unref(ns).b())
470
- }, [
471
- (openBlock(), createElementBlock("div", {
472
- class: normalizeClass(unref(ns).b("main")),
473
- key: __props.option.id
474
- }, [
475
- createElementVNode("div", {
476
- class: normalizeClass(unref(ns).be("main", "left"))
477
- }, [
478
- !__props.disabled ? (openBlock(), createElementBlock("i", {
479
- key: 0,
480
- class: normalizeClass(["iconfont", "icon-drag", unref(ns).e("icon-drag")])
481
- }, null, 2)) : createCommentVNode("", true),
482
- createVNode(_component_a_input, {
483
- value: textValue.value,
484
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => textValue.value = $event),
485
- class: normalizeClass(unref(ns).e("text-input")),
486
- disabled: __props.disabled,
487
- placeholder: _ctx.$t("sys.inputText")
488
- }, null, 8, ["value", "class", "disabled", "placeholder"])
489
- ], 2),
490
- createElementVNode("div", {
491
- class: normalizeClass(unref(ns).e("actions"))
492
- }, [
493
- createElementVNode("i", {
494
- class: normalizeClass([
495
- "iconfont",
496
- "icon-bianji",
497
- unref(ns).e("edit"),
498
- "allow-readonly-view"
499
- ]),
500
- title: _ctx.$t("sys.edit"),
501
- onClick: _cache[1] || (_cache[1] = ($event) => editOption(__props.option))
502
- }, null, 10, _hoisted_1$1),
503
- !__props.disabled ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
504
- __props.option.display ? (openBlock(), createBlock(SeeViewIcon, {
505
- key: 0,
506
- class: "icon",
507
- onClick: _cache[2] || (_cache[2] = ($event) => hiddenOption(__props.option))
508
- })) : (openBlock(), createBlock(SeeCloseIcon, {
509
- key: 1,
510
- class: "icon",
511
- onClick: _cache[3] || (_cache[3] = ($event) => viewOption(__props.option))
512
- }))
513
- ], 64)) : createCommentVNode("", true),
514
- !__props.disabled ? (openBlock(), createElementBlock("i", {
515
- key: 1,
516
- class: normalizeClass(["iconfont", "icon-shanchu", unref(ns).e("remove")]),
517
- title: _ctx.$t("sys.delText"),
518
- onClick: _cache[4] || (_cache[4] = ($event) => removeOption(__props.option))
519
- }, null, 10, _hoisted_2$1)) : createCommentVNode("", true),
520
- !__props.disabled ? (openBlock(), createBlock(_component_a_checkbox, {
521
- key: 2,
522
- class: normalizeClass([unref(ns).e("enable"), "!ml-6px"]),
523
- disabled: __props.disabled,
524
- checked: enableRef.value,
525
- "onUpdate:checked": _cache[5] || (_cache[5] = ($event) => enableRef.value = $event)
526
- }, null, 8, ["class", "disabled", "checked"])) : createCommentVNode("", true)
527
- ], 2)
528
- ], 2)),
529
- enableRef.value ? (openBlock(), createBlock(AttachFieldEditor, {
530
- key: 0,
531
- items: formState.value.attachFields,
532
- "onUpdate:items": _cache[6] || (_cache[6] = ($event) => formState.value.attachFields = $event),
533
- disabled: __props.disabled
534
- }, null, 8, ["items", "disabled"])) : createCommentVNode("", true)
535
- ], 2);
536
- };
537
- }
538
- });
539
- const EnumOptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-315ca811"]]);
540
- const _hoisted_1 = { class: "enum-props-title" };
541
- const _hoisted_2 = { class: "flex" };
542
- const _hoisted_3 = { class: "ml-4px" };
543
- const _hoisted_4 = { class: "ml-4px" };
544
- const _sfc_main = /* @__PURE__ */ defineComponent({
545
- __name: "enum-props",
546
- props: {
547
- widget: {},
548
- fieldType: {},
549
- disabled: { type: Boolean }
550
- },
551
- setup(__props) {
552
- const props = __props;
553
- const formState = computed({
554
- get() {
555
- return props.widget;
556
- },
557
- set(v) {
558
- Object.assign(props.widget, v);
559
- }
560
- });
561
- const openEditModal = (option) => {
562
- window.NocodeAdapter.utils.overlay.modal(
563
- EnumOptionModal,
564
- {
565
- isEdit: !!option,
566
- option,
567
- readonly: !!props.disabled,
568
- onUpdate: onOptionUpdate,
569
- onCreate: onOptionCreate
570
- },
571
- {
572
- title: $t("sys.component.fieldTypeProps.newOption"),
573
- centered: true,
574
- width: 640,
575
- showFooter: false
576
- }
577
- );
578
- };
579
- const addOption = async () => {
580
- if (props.disabled) return;
581
- openEditModal();
582
- };
583
- const editOption = async (option) => {
584
- openEditModal(option);
585
- };
586
- const removeOption = (option) => {
587
- if (props.disabled) return;
588
- const findIndex = formState.value.options.findIndex((item) => item.id === option.id);
589
- formState.value.options.splice(findIndex, 1);
590
- };
591
- const viewOption = (option) => {
592
- if (props.disabled) return;
593
- formState.value.options.forEach((item) => {
594
- if (item.id === option.id) {
595
- item.display = true;
596
- }
597
- });
598
- };
599
- const hiddenOption = (option) => {
600
- if (props.disabled) return;
601
- formState.value.options.forEach((item) => {
602
- if (item.id === option.id) {
603
- item.display = false;
604
- }
605
- });
606
- };
607
- const afterOptionChange = (option) => {
608
- if ((props.fieldType === FIELD_TYPE.ENUM || props.fieldType === FIELD_TYPE.OPTION) && option.defaultSelected) {
609
- formState.value.options.forEach((item) => {
610
- if (item.id !== option.id) {
611
- item.defaultSelected = false;
612
- }
613
- });
614
- }
615
- };
616
- const onOptionUpdate = (option) => {
617
- if (props.disabled) return;
618
- const findIndex = formState.value.options.findIndex((item) => item.id === option.id);
619
- formState.value.options.splice(findIndex, 1, option);
620
- afterOptionChange(option);
621
- };
622
- const onOptionCreate = (option) => {
623
- if (props.disabled) return;
624
- formState.value.options.push(option);
625
- afterOptionChange(option);
626
- };
627
- const handleOpenImportModal = async () => {
628
- if (props.disabled) return;
629
- const res = await window.NocodeAdapter.utils.overlay.modal(
630
- EnumImportModal,
631
- {},
632
- {
633
- title: $t("sys.onlineForm.importGlobalConfig"),
634
- centered: true,
635
- width: 640
636
- }
637
- );
638
- if (res.ok && res.data) {
639
- onImportEnum(res.data);
640
- }
641
- };
642
- const onImportEnum = (res) => {
643
- const itemsToAdd = differenceBy(res, formState.value.options, "value");
644
- if (itemsToAdd && itemsToAdd.length) {
645
- const add = itemsToAdd.map((item) => {
646
- return {
647
- id: item.id,
648
- text: item.text,
649
- value: item.value,
650
- defaultSelected: false,
651
- display: true,
652
- attachFields: void 0
653
- };
654
- });
655
- formState.value.options.push(...add);
656
- }
657
- };
658
- return (_ctx, _cache) => {
659
- const _component_a_input = resolveComponent("a-input");
660
- return openBlock(), createElementBlock(Fragment, null, [
661
- createVNode(FormItem, {
662
- label: `${_ctx.$t("sys.pageDesigner.fieldPlaceholder")}`,
663
- inline: false
664
- }, {
665
- default: withCtx(() => [
666
- createVNode(_component_a_input, {
667
- size: "small",
668
- value: formState.value.placeholder,
669
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.placeholder = $event),
670
- placeholder: _ctx.$t("sys.inputText"),
671
- disabled: __props.disabled,
672
- "show-count": "",
673
- maxlength: 32
674
- }, null, 8, ["value", "placeholder", "disabled"])
675
- ]),
676
- _: 1
677
- }, 8, ["label"]),
678
- createVNode(FormItem, { inline: false }, {
679
- label: withCtx(() => [
680
- createElementVNode("div", _hoisted_1, [
681
- createElementVNode("span", null, toDisplayString(`${_ctx.$t("sys.component.fieldTypeProps.enumOption")}`), 1),
682
- createElementVNode("div", _hoisted_2, [
683
- !__props.disabled ? (openBlock(), createElementBlock("div", {
684
- key: 0,
685
- class: "flex items-center primary-gct cursor-pointer",
686
- onClick: handleOpenImportModal
687
- }, [
688
- createVNode(EnumImportIcon),
689
- createElementVNode("span", _hoisted_3, toDisplayString(_ctx.$t("sys.synchronous")), 1)
690
- ])) : createCommentVNode("", true),
691
- !__props.disabled ? (openBlock(), createElementBlock("div", {
692
- key: 1,
693
- class: "flex items-center ml-16px primary-gct cursor-pointer",
694
- onClick: addOption
695
- }, [
696
- createVNode(EnumAddIcon),
697
- createElementVNode("span", _hoisted_4, toDisplayString(_ctx.$t("sys.insert")), 1)
698
- ])) : createCommentVNode("", true)
699
- ])
700
- ])
701
- ]),
702
- default: withCtx(() => [
703
- createVNode(unref(draggableComponent), {
704
- modelValue: formState.value.options,
705
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formState.value.options = $event),
706
- animation: 200,
707
- "ghost-class": "ghost",
708
- handle: `.gct-enum-option-item__icon-drag`
709
- }, {
710
- item: withCtx(({ element: option }) => [
711
- (openBlock(), createBlock(EnumOptionItem, {
712
- option,
713
- widget: __props.widget,
714
- key: option.id,
715
- disabled: __props.disabled,
716
- onEdit: editOption,
717
- onRemove: removeOption,
718
- onView: viewOption,
719
- onHidden: hiddenOption
720
- }, null, 8, ["option", "widget", "disabled"]))
721
- ]),
722
- _: 1
723
- }, 8, ["modelValue"])
724
- ]),
725
- _: 1
726
- })
727
- ], 64);
728
- };
729
- }
730
- });
731
- const enumProps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-958ac8d2"]]);
732
- export {
733
- enumProps as default
734
- };