@gct-paas/core-web 0.1.4-dev.11 → 0.1.4-dev.13

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 (383) hide show
  1. package/dist/de_DE-Dlmr1Wso.js +152 -0
  2. package/dist/en_US-B9GNh9s3.js +173 -0
  3. package/dist/es_ES-CdOh6_BZ.js +159 -0
  4. package/dist/fr_FR-DA5AJaJ_.js +168 -0
  5. package/dist/index.min.css +2 -1
  6. package/dist/ja_JP-DE6fp7p7.js +140 -0
  7. package/dist/loader.esm.min.js +9583 -0
  8. package/dist/monaco-editor-Di2Ob0f2.js +279 -0
  9. package/dist/objectSpread2-fLnUNEWu.js +62 -0
  10. package/dist/pt_PT-DqWIQ8Sv.js +134 -0
  11. package/dist/ru_RU-B7eejpuq.js +165 -0
  12. package/dist/tr_TR-Cp-TWGG5.js +167 -0
  13. package/dist/useMonacoEditor-B4gp3RiK.js +2788 -0
  14. package/dist/vi_VN-BWekEft9.js +85 -0
  15. package/dist/zh_CN-CaadhslE.js +174 -0
  16. package/dist/zh_TW-DHMPuQGm.js +169 -0
  17. package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
  18. package/es/components/app-modal/app-modal-component.mjs +102 -133
  19. package/es/components/assets-svg-icon/assets-svg-icon.mjs +161 -232
  20. package/es/components/assets-svg-icon/request.mjs +60 -43
  21. package/es/components/assets-svg-icon/utils.mjs +21 -19
  22. package/es/components/assets-svg-icon/validate.mjs +27 -41
  23. package/es/components/base-button/base-button.vue.mjs +7 -7
  24. package/es/components/base-button/base-button.vue_vue_type_script_setup_true_name_BaseButton_lang.mjs +181 -0
  25. package/es/components/basic-button/basic-button.vue.mjs +7 -7
  26. package/es/components/basic-button/basic-button.vue_vue_type_script_setup_true_name_BasicButton_lang.mjs +148 -0
  27. package/es/components/code-editor/code-editor.mjs +59 -63
  28. package/es/components/copy-module-key/copy-module-key.vue.mjs +7 -7
  29. package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +92 -0
  30. package/es/components/double-input/double-input.vue.mjs +5 -158
  31. package/es/components/double-input/double-input.vue_vue_type_script_setup_true_lang.mjs +121 -0
  32. package/es/components/field-upload/index.d.ts +2 -0
  33. package/es/components/field-upload/index.mjs +7 -0
  34. package/es/components/field-upload/src/FieldUpload.vue.d.ts +37 -0
  35. package/es/components/field-upload/src/FieldUpload.vue.mjs +5 -0
  36. package/es/components/field-upload/src/FieldUpload.vue_vue_type_script_setup_true_name_FieldUpload_lang.mjs +111 -0
  37. package/es/components/field-upload/src/components/base-upload.vue.d.ts +21 -0
  38. package/es/components/field-upload/src/components/base-upload.vue.mjs +7 -0
  39. package/es/components/field-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +227 -0
  40. package/es/components/field-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_f53b6ac6_lang.css +76 -0
  41. package/es/components/field-upload/src/components/file-list.vue.d.ts +17 -0
  42. package/es/components/field-upload/src/components/file-list.vue.mjs +7 -0
  43. package/es/components/field-upload/src/components/file-list.vue_vue_type_script_setup_true_name_fileList_lang.mjs +129 -0
  44. package/es/components/field-upload/src/components/file-list.vue_vue_type_style_index_0_scoped_3918aad0_lang.css +129 -0
  45. package/es/components/field-upload/src/components/upload-design.vue.d.ts +5 -0
  46. package/es/components/field-upload/src/components/upload-design.vue.mjs +7 -0
  47. package/es/components/field-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +43 -0
  48. package/es/components/field-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_1e5189c1_lang.css +43 -0
  49. package/es/components/field-upload/src/hooks/hooks.d.ts +4 -0
  50. package/es/components/field-upload/src/hooks/hooks.mjs +47 -0
  51. package/es/components/field-upload/src/types/index.d.ts +42 -0
  52. package/es/components/field-upload/src/types/index.mjs +24 -0
  53. package/es/components/icon-next/hooks/useIconAsset.mjs +32 -44
  54. package/es/components/icon-next/hooks/useIconPark.mjs +48 -48
  55. package/es/components/icon-next/hooks/useIconPlatform.mjs +37 -42
  56. package/es/components/icon-next/index.mjs +3 -0
  57. package/es/components/icon-next/src/IconNext.vue.mjs +7 -0
  58. package/es/components/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +113 -0
  59. package/es/components/icon-next/src/IconNextPicker.vue.mjs +6 -0
  60. package/es/components/icon-next/src/IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +379 -0
  61. package/es/components/icon-next/types/index.mjs +10 -9
  62. package/es/components/image-upload/index.d.ts +2 -0
  63. package/es/components/image-upload/index.mjs +7 -0
  64. package/es/components/image-upload/src/ImageUpload.vue.d.ts +32 -0
  65. package/es/components/image-upload/src/ImageUpload.vue.mjs +5 -0
  66. package/es/components/image-upload/src/ImageUpload.vue_vue_type_script_setup_true_name_ImageUpload_lang.mjs +74 -0
  67. package/es/components/image-upload/src/components/base-upload.vue.d.ts +24 -0
  68. package/es/components/image-upload/src/components/base-upload.vue.mjs +8 -0
  69. package/es/components/image-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +209 -0
  70. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_3248e630_lang.css +73 -0
  71. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_1_lang.css +3 -0
  72. package/es/components/image-upload/src/components/upload-design.vue.d.ts +6 -0
  73. package/es/components/image-upload/src/components/upload-design.vue.mjs +7 -0
  74. package/es/components/image-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +33 -0
  75. package/es/components/image-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_575d3a1a_lang.css +33 -0
  76. package/es/components/image-upload/src/hooks/hooks.d.ts +2 -0
  77. package/es/components/image-upload/src/types/index.d.ts +34 -0
  78. package/es/components/image-upload/src/types/index.mjs +8 -0
  79. package/es/components/index.d.ts +4 -1
  80. package/es/components/index.mjs +25 -34
  81. package/es/components/layout/view-container/view-container.mjs +24 -35
  82. package/es/components/svg-icon/svg-icon.vue.mjs +6 -50
  83. package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +52 -0
  84. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.css +103 -0
  85. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.d.ts +44 -0
  86. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs +122 -0
  87. package/es/components/wujie-container/wujie-container.mjs +58 -81
  88. package/es/create-app-vue.mjs +27 -19
  89. package/es/directives/drag-resize.mjs +38 -39
  90. package/es/directives/ellipsis-title.d.ts +7 -0
  91. package/es/directives/ellipsis-title.mjs +21 -0
  92. package/es/directives/index.mjs +14 -6
  93. package/es/directives/target-loading.mjs +28 -36
  94. package/es/hooks/index.mjs +4 -0
  95. package/es/hooks/useDesign.mjs +7 -8
  96. package/es/hooks/useDragLine.mjs +66 -75
  97. package/es/hooks/useLocale.d.ts +365 -1
  98. package/es/hooks/useLocale.mjs +23 -28
  99. package/es/hooks/useTheme.mjs +13 -17
  100. package/es/index.d.ts +1 -0
  101. package/es/index.mjs +96 -137
  102. package/es/loader.d.ts +1 -0
  103. package/es/modules/Cropper/hooks/useFile.mjs +21 -0
  104. package/es/modules/Cropper/index.d.ts +1 -0
  105. package/es/modules/Cropper/index.mjs +12 -0
  106. package/es/modules/Cropper/src/CopperFreeModal.vue.mjs +7 -0
  107. package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +299 -0
  108. package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_style_index_0_scoped_28afc2ab_lang.css +48 -0
  109. package/es/modules/Cropper/src/CopperModal.vue.mjs +7 -0
  110. package/es/modules/Cropper/src/CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +283 -0
  111. package/es/modules/Cropper/src/CopperModal.vue_vue_type_style_index_0_scoped_f42f8311_lang.css +71 -0
  112. package/es/modules/Cropper/src/Cropper.vue.d.ts +1 -1
  113. package/es/modules/Cropper/src/Cropper.vue.mjs +25 -0
  114. package/es/modules/Cropper/src/Cropper.vue_vue_type_script_lang.mjs +173 -0
  115. package/es/modules/Cropper/src/Cropper.vue_vue_type_style_index_0_lang.css +4 -0
  116. package/es/modules/Cropper/src/CropperAvatar.vue.mjs +7 -0
  117. package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +116 -0
  118. package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_style_index_0_scoped_b5d65cd4_lang.css +39 -0
  119. package/es/modules/Cropper/src/CropperFree.vue.mjs +7 -0
  120. package/es/modules/Cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +165 -0
  121. package/es/modules/Cropper/src/CropperFree.vue_vue_type_style_index_0_scoped_3cc5e19b_lang.css +83 -0
  122. package/es/modules/code-editor/index.d.ts +3 -3
  123. package/es/modules/code-editor/index.mjs +6 -7
  124. package/es/modules/code-editor/monaco-editor.vue.d.ts +1 -1
  125. package/es/modules/code-editor/monaco-editor.vue.mjs +7 -7
  126. package/es/modules/code-editor/monaco-editor.vue_vue_type_script_setup_true_name_code-editor_lang.mjs +399 -0
  127. package/es/modules/code-editor/{monaco-editor.css → monaco-editor.vue_vue_type_style_index_0_scoped_ccf22884_lang.css} +9 -9
  128. package/es/modules/code-editor/useEditorConsole.mjs +146 -187
  129. package/es/modules/code-editor/useMonacoEditor.mjs +24 -23
  130. package/es/modules/color-picker/index.mjs +1 -0
  131. package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -8
  132. package/es/modules/color-picker/src/ColorPicker.vue_vue_type_script_setup_true_name_ColorPicker_lang.mjs +482 -0
  133. package/es/modules/formula-editor/constants/index.mjs +8 -6
  134. package/es/modules/formula-editor/formula-editor.mjs +40 -59
  135. package/es/modules/formula-editor/index.mjs +2 -0
  136. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +158 -193
  137. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +81 -95
  138. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +178 -237
  139. package/es/modules/gct-dnd/constants/index.mjs +10 -18
  140. package/es/modules/gct-dnd/index.mjs +4 -0
  141. package/es/modules/gct-form/components/flex-container/flex-container.css +67 -0
  142. package/es/modules/gct-form/components/flex-container/flex-container.d.ts +14 -0
  143. package/es/modules/gct-form/components/flex-container/flex-container.mjs +61 -0
  144. package/es/modules/gct-form/components/flex-item/flex-item.d.ts +13 -0
  145. package/es/modules/gct-form/components/flex-item/flex-item.mjs +37 -0
  146. package/es/modules/gct-form/components/grid-container/grid-container.d.ts +10 -0
  147. package/es/modules/gct-form/components/grid-container/grid-container.mjs +36 -0
  148. package/es/modules/gct-form/components/index.d.ts +3 -0
  149. package/es/modules/gct-form/components/index.mjs +3 -0
  150. package/es/modules/gct-form/constants/editor-register/editor-register.mjs +17 -5
  151. package/es/modules/gct-form/constants/editor-type/editor-type.mjs +133 -34
  152. package/es/modules/gct-form/constants/index.mjs +5 -2
  153. package/es/modules/gct-form/controller/edit-form/edit-form.controller.d.ts +1 -16
  154. package/es/modules/gct-form/controller/edit-form/edit-form.controller.mjs +48 -69
  155. package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +18 -22
  156. package/es/modules/gct-form/controller/form-collapse/form-collapse.controller.mjs +20 -10
  157. package/es/modules/gct-form/controller/form-collapse-pane/form-collapse-pane.controller.mjs +20 -10
  158. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +84 -89
  159. package/es/modules/gct-form/controller/form-group/form-group.controller.mjs +20 -10
  160. package/es/modules/gct-form/controller/form-item/form-item.controller.mjs +35 -36
  161. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +61 -42
  162. package/es/modules/gct-form/controller/form-item-hidden/form-item-hidden.controller.mjs +16 -6
  163. package/es/modules/gct-form/controller/form-line/form-line.controller.mjs +20 -10
  164. package/es/modules/gct-form/controller/form-tab/form-tab.controller.mjs +20 -10
  165. package/es/modules/gct-form/controller/form-tab-pane/form-tab-pane.controller.mjs +20 -10
  166. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +198 -221
  167. package/es/modules/gct-form/controller/index.mjs +13 -0
  168. package/es/modules/gct-form/editor/gct-form-action/gct-form-action.mjs +44 -49
  169. package/es/modules/gct-form/editor/gct-form-action/index.mjs +10 -14
  170. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.mjs +54 -55
  171. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +14 -4
  172. package/es/modules/gct-form/editor/gct-form-check-switch/index.mjs +8 -12
  173. package/es/modules/gct-form/editor/gct-form-checkbox/gct-form-checkbox.mjs +100 -125
  174. package/es/modules/gct-form/editor/gct-form-checkbox/index.mjs +10 -14
  175. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +36 -41
  176. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.provider.mjs +14 -4
  177. package/es/modules/gct-form/editor/gct-form-color/index.mjs +8 -12
  178. package/es/modules/gct-form/editor/gct-form-date/gct-form-date.mjs +71 -78
  179. package/es/modules/gct-form/editor/gct-form-date/gct-form-date.provider.mjs +12 -4
  180. package/es/modules/gct-form/editor/gct-form-date/index.mjs +8 -12
  181. package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.mjs +102 -107
  182. package/es/modules/gct-form/editor/gct-form-date-format-select/index.mjs +10 -14
  183. package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.mjs +13 -15
  184. package/es/modules/gct-form/editor/gct-form-empty/index.mjs +10 -14
  185. package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.mjs +66 -66
  186. package/es/modules/gct-form/editor/gct-form-formula/index.mjs +10 -14
  187. package/es/modules/gct-form/editor/gct-form-group-select/gct-form-group-select.mjs +159 -227
  188. package/es/modules/gct-form/editor/gct-form-group-select/index.mjs +10 -14
  189. package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.mjs +87 -113
  190. package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.provider.mjs +14 -4
  191. package/es/modules/gct-form/editor/gct-form-i18n/index.mjs +8 -12
  192. package/es/modules/gct-form/editor/gct-form-icon-select/gct-form-icon-select.mjs +61 -70
  193. package/es/modules/gct-form/editor/gct-form-icon-select/index.mjs +10 -14
  194. package/es/modules/gct-form/editor/gct-form-info/gct-form-info.mjs +38 -49
  195. package/es/modules/gct-form/editor/gct-form-info/index.mjs +10 -14
  196. package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.mjs +36 -41
  197. package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +14 -4
  198. package/es/modules/gct-form/editor/gct-form-length-unit/index.mjs +8 -12
  199. package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +141 -170
  200. package/es/modules/gct-form/editor/gct-form-model-select/index.mjs +10 -14
  201. package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.mjs +60 -66
  202. package/es/modules/gct-form/editor/gct-form-multiple-choice/index.mjs +10 -14
  203. package/es/modules/gct-form/editor/gct-form-number/gct-form-number.mjs +41 -42
  204. package/es/modules/gct-form/editor/gct-form-number/gct-form-number.provider.mjs +5 -4
  205. package/es/modules/gct-form/editor/gct-form-number/index.mjs +8 -12
  206. package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.mjs +89 -111
  207. package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.provider.mjs +14 -4
  208. package/es/modules/gct-form/editor/gct-form-picker/index.mjs +8 -12
  209. package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.mjs +60 -66
  210. package/es/modules/gct-form/editor/gct-form-pixel-config/index.mjs +10 -14
  211. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +76 -91
  212. package/es/modules/gct-form/editor/gct-form-radio/index.mjs +10 -14
  213. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +109 -126
  214. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.provider.mjs +14 -4
  215. package/es/modules/gct-form/editor/gct-form-select/index.mjs +8 -12
  216. package/es/modules/gct-form/editor/gct-form-span/gct-form-span.mjs +67 -97
  217. package/es/modules/gct-form/editor/gct-form-span/gct-form-span.provider.mjs +14 -4
  218. package/es/modules/gct-form/editor/gct-form-span/index.mjs +8 -12
  219. package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.mjs +32 -37
  220. package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.provider.mjs +14 -4
  221. package/es/modules/gct-form/editor/gct-form-switch/index.mjs +8 -12
  222. package/es/modules/gct-form/editor/gct-form-table/gct-form-table.mjs +29 -30
  223. package/es/modules/gct-form/editor/gct-form-table/index.mjs +10 -14
  224. package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +51 -54
  225. package/es/modules/gct-form/editor/gct-form-text/gct-form-text.provider.mjs +14 -4
  226. package/es/modules/gct-form/editor/gct-form-text/index.mjs +8 -12
  227. package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.mjs +43 -44
  228. package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.provider.mjs +5 -4
  229. package/es/modules/gct-form/editor/gct-form-textarea/index.mjs +8 -12
  230. package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.mjs +59 -76
  231. package/es/modules/gct-form/editor/gct-select-form-table/index.mjs +10 -14
  232. package/es/modules/gct-form/editor/index.mjs +32 -34
  233. package/es/modules/gct-form/hooks/index.mjs +2 -0
  234. package/es/modules/gct-form/hooks/use-form/use-form.mjs +12 -5
  235. package/es/modules/gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs +80 -84
  236. package/es/modules/gct-form/index.mjs +51 -16
  237. package/es/modules/gct-form/props/gct-form-item/gct-form-item.props.mjs +54 -62
  238. package/es/modules/gct-form/register/editor-register/editor-register.mjs +63 -56
  239. package/es/modules/gct-form/register/form-item-register/form-item-register.mjs +45 -41
  240. package/es/modules/gct-form/state/form/form.state.mjs +26 -16
  241. package/es/modules/gct-form/state/form-collapse/form-collapse.state.mjs +14 -5
  242. package/es/modules/gct-form/state/form-collapse-pane/form-collapse-pane.state.mjs +14 -5
  243. package/es/modules/gct-form/state/form-edit-item/form-edit-item.state.mjs +18 -9
  244. package/es/modules/gct-form/state/form-group/form-group.state.mjs +22 -13
  245. package/es/modules/gct-form/state/form-item/form-item.state.mjs +14 -5
  246. package/es/modules/gct-form/state/form-item-basic/form-item-basic.state.mjs +18 -8
  247. package/es/modules/gct-form/state/form-line/form-line.state.mjs +11 -5
  248. package/es/modules/gct-form/state/form-tab/form-tab.state.mjs +16 -6
  249. package/es/modules/gct-form/state/form-tab-pane/form-tab-pane.state.mjs +14 -5
  250. package/es/modules/gct-form/utils/width-install/width-install.mjs +19 -16
  251. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.d.ts +1 -5
  252. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +122 -148
  253. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +66 -76
  254. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +11 -13
  255. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +10 -15
  256. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +50 -72
  257. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +11 -15
  258. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +10 -15
  259. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.css +5 -5
  260. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +72 -89
  261. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +11 -13
  262. package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +10 -15
  263. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +11 -15
  264. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
  265. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +27 -24
  266. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.mjs +127 -159
  267. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +11 -13
  268. package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +3 -0
  269. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.css +2 -2
  270. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.mjs +38 -45
  271. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.provider.mjs +11 -13
  272. package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +10 -12
  273. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +63 -69
  274. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +11 -13
  275. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +10 -12
  276. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +48 -66
  277. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +11 -13
  278. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +10 -15
  279. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.css +4 -4
  280. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +50 -68
  281. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +11 -13
  282. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +11 -16
  283. package/es/modules/gct-form/widgets/gct-form/gct-form.css +2 -2
  284. package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +125 -143
  285. package/es/modules/gct-form/widgets/gct-form/index.mjs +30 -33
  286. package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +138 -140
  287. package/es/modules/gct-table/controller/index.mjs +5 -0
  288. package/es/modules/gct-table/controller/table-item/table-action-item.controller.mjs +14 -5
  289. package/es/modules/gct-table/controller/table-item/table-edit-item.controller.mjs +25 -15
  290. package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +32 -25
  291. package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +76 -69
  292. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +47 -90
  293. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.provider.mjs +12 -4
  294. package/es/modules/gct-table/editor/gct-table-date/index.mjs +10 -52
  295. package/es/modules/gct-table/editor/gct-table-span/gct-table-span.mjs +26 -37
  296. package/es/modules/gct-table/editor/gct-table-span/gct-table-span.provider.mjs +14 -4
  297. package/es/modules/gct-table/editor/gct-table-span/index.mjs +10 -52
  298. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +60 -103
  299. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.provider.mjs +14 -4
  300. package/es/modules/gct-table/editor/gct-table-text/index.mjs +10 -52
  301. package/es/modules/gct-table/editor/index.mjs +9 -11
  302. package/es/modules/gct-table/hooks/index.mjs +1 -0
  303. package/es/modules/gct-table/hooks/use-ant-table/use-ant-table.mjs +66 -82
  304. package/es/modules/gct-table/index.mjs +22 -15
  305. package/es/modules/gct-table/register/table-editor-register/table-editor-register.mjs +67 -60
  306. package/es/modules/gct-table/state/table/table.state.mjs +46 -36
  307. package/es/modules/gct-table/state/table-item/table-edit-item.state.mjs +19 -9
  308. package/es/modules/gct-table/state/table-item/table-item.state.mjs +29 -19
  309. package/es/modules/gct-table/state/table-row/table-row.state.mjs +16 -6
  310. package/es/modules/gct-table/utils/count-latch/count-latch.mjs +97 -94
  311. package/es/modules/gct-table/utils/index.mjs +2 -0
  312. package/es/modules/gct-table/utils/width-install/width-install.mjs +18 -16
  313. package/es/modules/gct-table/widgets/gct-table/gct-table.mjs +310 -409
  314. package/es/modules/gct-table/widgets/gct-table/index.mjs +8 -10
  315. package/es/modules/gct-table/widgets/index.mjs +7 -9
  316. package/es/modules/global-modal/index.mjs +10 -16
  317. package/es/modules/global-modal/src/BasicModal.vue.mjs +5 -221
  318. package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +201 -0
  319. package/es/modules/global-modal/src/components/GlboalModal.mjs +30 -39
  320. package/es/modules/global-modal/src/components/ModalClose.vue.mjs +6 -79
  321. package/es/modules/global-modal/src/components/ModalClose.vue_vue_type_script_setup_true_name_ModalClose_lang.mjs +67 -0
  322. package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +5 -44
  323. package/es/modules/global-modal/src/components/ModalFooter.vue_vue_type_script_setup_true_name_BasicModalFooter_lang.mjs +40 -0
  324. package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +9 -9
  325. package/es/modules/global-modal/src/components/ModalHeader.vue_vue_type_script_lang.mjs +11 -0
  326. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +18 -24
  327. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +126 -0
  328. package/es/modules/global-modal/src/hooks/useModal.mjs +102 -116
  329. package/es/modules/global-modal/src/hooks/useModalContext.mjs +6 -6
  330. package/es/modules/global-modal/src/hooks/useModalDrag.mjs +69 -79
  331. package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +17 -13
  332. package/es/modules/global-modal/src/props.mjs +87 -55
  333. package/es/modules/target-loading/index.mjs +3 -0
  334. package/es/modules/target-loading/src/createLoading.mjs +42 -54
  335. package/es/modules/target-loading/src/target-loading.vue.mjs +7 -52
  336. package/es/modules/target-loading/src/target-loading.vue_vue_type_script_setup_true_name_target-loading_lang.mjs +55 -0
  337. package/es/modules/target-loading/src/useLoading.mjs +2 -0
  338. package/es/setup-app.mjs +3 -3
  339. package/es/utils/index.mjs +4 -0
  340. package/es/utils/message-util/message-util.mjs +25 -25
  341. package/es/utils/monaco-loader/monaco-loader.mjs +83 -87
  342. package/es/utils/overlay-controller/overlay-controller.mjs +29 -20
  343. package/es/utils/with-install.mjs +10 -11
  344. package/package.json +7 -7
  345. package/dist/index-B8zoAUhR.cjs +0 -20
  346. package/dist/index-BH5PTZ_c.js +0 -20
  347. package/dist/index-Cna4DZog.js +0 -109381
  348. package/dist/index.esm.min.mjs +0 -91
  349. package/dist/index.min.cjs +0 -1
  350. package/dist/index.system.min.js +0 -1
  351. package/dist/monaco-editor-4E2xdOou.cjs +0 -1
  352. package/dist/monaco-editor-C-wvzgow.js +0 -1
  353. package/dist/monaco-editor-Cel355Cg.js +0 -350
  354. package/es/components/base-button/base-button.vue3.mjs +0 -179
  355. package/es/components/basic-button/basic-button.vue3.mjs +0 -130
  356. package/es/components/copy-module-key/copy-module-key.vue3.mjs +0 -104
  357. package/es/components/double-input/double-input.vue2.mjs +0 -5
  358. package/es/components/icon-next/src/IconNext.vue2.mjs +0 -7
  359. package/es/components/icon-next/src/IconNext.vue3.mjs +0 -108
  360. package/es/components/icon-next/src/IconNextPicker.vue2.mjs +0 -452
  361. package/es/components/icon-next/src/IconNextPicker.vue3.mjs +0 -6
  362. package/es/components/svg-icon/svg-icon.vue3.mjs +0 -6
  363. package/es/modules/code-editor/monaco-editor.vue2.mjs +0 -440
  364. package/es/modules/color-picker/src/ColorPicker.vue2.mjs +0 -545
  365. package/es/modules/gct-form/widgets/gct-edit-form/index.d.ts +0 -5
  366. package/es/modules/gct-form/widgets/gct-edit-form/index.mjs +0 -10
  367. package/es/modules/global-modal/src/BasicModal.vue2.mjs +0 -5
  368. package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +0 -6
  369. package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +0 -5
  370. package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +0 -13
  371. package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +0 -136
  372. package/es/modules/target-loading/src/target-loading.vue3.mjs +0 -7
  373. /package/es/components/base-button/{base-button.css → base-button.vue_vue_type_style_index_0_scoped_5375ec2b_lang.css} +0 -0
  374. /package/es/components/basic-button/{basic-button.css → basic-button.vue_vue_type_style_index_0_scoped_1dbcb2fa_lang.css} +0 -0
  375. /package/es/components/copy-module-key/{copy-module-key.css → copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css} +0 -0
  376. /package/es/components/icon-next/src/{IconNext.css → IconNext.vue_vue_type_style_index_0_scoped_c5a83130_lang.css} +0 -0
  377. /package/es/components/icon-next/src/{IconNextPicker.css → IconNextPicker.vue_vue_type_style_index_0_lang.css} +0 -0
  378. /package/es/components/svg-icon/{svg-icon.css → svg-icon.vue_vue_type_style_index_0_lang.css} +0 -0
  379. /package/es/modules/color-picker/src/{ColorPicker.css → ColorPicker.vue_vue_type_style_index_0_scoped_7bfd9ca3_lang.css} +0 -0
  380. /package/es/modules/color-picker/src/{ColorPicker2.css → ColorPicker.vue_vue_type_style_index_1_lang.css} +0 -0
  381. /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
  382. /package/es/modules/global-modal/src/components/{ModalClose.css → ModalClose.vue_vue_type_style_index_0_lang.css} +0 -0
  383. /package/es/modules/target-loading/src/{target-loading.css → target-loading.vue_vue_type_style_index_0_scoped_d448466c_lang.css} +0 -0
@@ -1,239 +1,180 @@
1
- import { defineComponent, createVNode, ref, inject } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import { useDrag, useDrop } from 'vue3-dnd';
4
- import { cloneDeep } from 'lodash-es';
5
- import { GCT_DND_INSERT_POS } from '../../constants/index.mjs';
1
+ import { GCT_DND_INSERT_POS } from "../../constants/index.mjs";
6
2
  import './gct-dnd-item.css';/* empty css */
7
-
8
- const GctDndItem = /* @__PURE__ */ defineComponent({
9
- name: 'GctDndItem',
10
- props: {
11
- config: {
12
- type: Object,
13
- required: true
14
- },
15
- // 数据所在位置下标
16
- index: {
17
- type: Number,
18
- required: true
19
- },
20
- // 当前项数据
21
- data: {
22
- type: Object,
23
- required: true
24
- },
25
- last: {
26
- type: Boolean,
27
- default: false
28
- }
29
- },
30
- emits: ['drop'],
31
- setup(props, {
32
- emit
33
- }) {
34
- const {
35
- config
36
- } = props;
37
- const ns = useNamespace('dnd-item');
38
- const rootRef = ref(null);
39
- const isBeforeHover = ref(false);
40
- const dropLineState = inject('vue3-dnd-drop-line-state');
41
- // 通过悬浮时计算,放置的位置
42
- const posState = ref(-1);
43
- // 拖放配置,暂时无用,主要利用内部机制,避免悬浮时容器触发了放置
44
- // 拖拽配置
45
- const [collect, drag, preview] = useDrag({
46
- type: config.group,
47
- item: () => {
48
- return {
49
- index: props.index,
50
- id: props.data.id,
51
- data: props.data,
52
- group: config.group,
53
- mode: config.mode ?? 'move',
54
- tagMap: config.tagMap ?? {},
55
- types: []
56
- };
57
- },
58
- collect: monitor => {
59
- return {
60
- canDrag: monitor.canDrag(),
61
- isDragging: monitor.isDragging()
62
- };
63
- },
64
- canDrag() {
65
- if (config.isDrag === false) {
66
- return false;
67
- }
68
- if (config.canDrag) {
69
- return config.canDrag(props.data);
70
- }
71
- return true;
72
- },
73
- end: async (_, monitor) => {
74
- const result = monitor.getDropResult();
75
- if (result && result.asyncDrop) {
76
- const res = await result.asyncDrop();
77
- if (res.success === true && res.data) {
78
- if (config.end) {
79
- config.end(_, res);
80
- }
81
- if (config.add) {
82
- config.add(res.data);
83
- }
84
- console.debug('drop success');
85
- }
86
- }
87
- }
88
- });
89
- if (props.config.isDrop !== true) {
90
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
91
- const [_, drop] = useDrop({
92
- accept: config.group,
93
- canDrop() {
94
- return false;
95
- }
96
- });
97
- drop(rootRef);
98
- } else {
99
- const [dropCollect, drop] = useDrop({
100
- accept: config.group,
101
- collect(monitor) {
102
- return {
103
- handlerId: monitor.getHandlerId(),
104
- isOver: monitor.isOver(),
105
- canDrop: monitor.canDrop(),
106
- isShallowOver: monitor.isOver({
107
- shallow: true
108
- })
109
- };
110
- },
111
- canDrop(item, monitor) {
112
- if (collect.value.isDragging === true) {
113
- return false;
114
- }
115
- return item.id !== props.data.id && monitor.isOver({
116
- shallow: true
117
- });
118
- },
119
- hover(_item, monitor) {
120
- if (monitor.canDrop() === false) {
121
- return;
122
- }
123
- const isOver = monitor.isOver({
124
- shallow: true
125
- });
126
- if (isOver) {
127
- const rect = rootRef.value.getBoundingClientRect();
128
- const offset = monitor.getClientOffset();
129
- // 放置线计算偏移量
130
- const dropOffset = config.offset ?? 0;
131
- let difference = 0;
132
- if (config.direction === 'vertical') {
133
- const {
134
- top,
135
- height
136
- } = rect;
137
- const {
138
- y
139
- } = offset;
140
- const half = height / 2;
141
- difference = y - top - half;
142
- // 小于偏移量,则不处理
143
- if (Math.abs(difference) < dropOffset) {
144
- return;
145
- }
146
- if (difference < 0) {
147
- isBeforeHover.value = true;
148
- } else {
149
- isBeforeHover.value = false;
150
- }
151
- } else if (config.direction === 'horizontal') {
152
- const {
153
- left,
154
- width
155
- } = rect;
156
- const {
157
- x
158
- } = offset;
159
- const half = width / 2;
160
- difference = x - left - half;
161
- // 小于偏移量,则不处理
162
- if (Math.abs(difference) < dropOffset) {
163
- return;
164
- }
165
- if (difference < 0) {
166
- isBeforeHover.value = true;
167
- } else {
168
- isBeforeHover.value = false;
169
- }
170
- }
171
- dropLineState.activeKey = props.data.id;
172
- dropLineState.isBeforeHover = isBeforeHover.value;
173
- } else {
174
- dropLineState.activeKey = '';
175
- }
176
- },
177
- drop: (item, monitor) => {
178
- // 一旦放置,操控线的激活项就置空
179
- dropLineState.activeKey = '';
180
- if (dropCollect.value.isShallowOver !== true || monitor.canDrop() === false) {
181
- return;
182
- }
183
- const callback = async () => {
184
- let data = item.data;
185
- if (config.drop) {
186
- data = await config.drop(item);
187
- if (!data) {
188
- return {
189
- group: config.group,
190
- cfg: cloneDeep(props.config),
191
- success: false
192
- };
193
- }
194
- }
195
- onDrop(isBeforeHover.value ? GCT_DND_INSERT_POS.BEFORE : GCT_DND_INSERT_POS.AFTER, data);
196
- return {
197
- group: config.group,
198
- success: true,
199
- cfg: cloneDeep(props.config),
200
- data
201
- };
202
- };
203
- return {
204
- asyncDrop: callback
205
- };
206
- }
207
- });
208
- drop(rootRef);
209
- }
210
- if (!config.handle && config.isDrag !== false) {
211
- drag(rootRef);
212
- }
213
- preview(rootRef);
214
- function onDrop(insertPos, data) {
215
- emit('drop', insertPos, data);
216
- }
217
- return {
218
- ns,
219
- rootRef,
220
- posState,
221
- collect,
222
- onDrop,
223
- drag
224
- };
225
- },
226
- render() {
227
- const itemProps = {
228
- index: this.index,
229
- data: this.data,
230
- drag: this.drag
231
- };
232
- return createVNode("div", {
233
- "ref": "rootRef",
234
- "class": [this.ns.b(), this.ns.is('dragging', this.collect.isDragging), this.ns.is('not-drag', this.collect.canDrag === false)]
235
- }, [this.$slots.default?.(itemProps)]);
236
- }
3
+ import { createVNode, defineComponent, inject, ref } from "vue";
4
+ import { cloneDeep } from "lodash-es";
5
+ import { useNamespace } from "@gct-paas/core";
6
+ import { useDrag, useDrop } from "vue3-dnd";
7
+ //#region src/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.tsx
8
+ var GctDndItem = /* @__PURE__ */ defineComponent({
9
+ name: "GctDndItem",
10
+ props: {
11
+ config: {
12
+ type: Object,
13
+ required: true
14
+ },
15
+ index: {
16
+ type: Number,
17
+ required: true
18
+ },
19
+ data: {
20
+ type: Object,
21
+ required: true
22
+ },
23
+ last: {
24
+ type: Boolean,
25
+ default: false
26
+ }
27
+ },
28
+ emits: ["drop"],
29
+ setup(props, { emit }) {
30
+ const { config } = props;
31
+ const ns = useNamespace("dnd-item");
32
+ const rootRef = ref(null);
33
+ const isBeforeHover = ref(false);
34
+ const dropLineState = inject("vue3-dnd-drop-line-state");
35
+ const posState = ref(-1);
36
+ const [collect, drag, preview] = useDrag({
37
+ type: config.group,
38
+ item: () => {
39
+ return {
40
+ index: props.index,
41
+ id: props.data.id,
42
+ data: props.data,
43
+ group: config.group,
44
+ mode: config.mode ?? "move",
45
+ tagMap: config.tagMap ?? {},
46
+ types: []
47
+ };
48
+ },
49
+ collect: (monitor) => {
50
+ return {
51
+ canDrag: monitor.canDrag(),
52
+ isDragging: monitor.isDragging()
53
+ };
54
+ },
55
+ canDrag() {
56
+ if (config.isDrag === false) return false;
57
+ if (config.canDrag) return config.canDrag(props.data);
58
+ return true;
59
+ },
60
+ end: async (_, monitor) => {
61
+ const result = monitor.getDropResult();
62
+ if (result && result.asyncDrop) {
63
+ const res = await result.asyncDrop();
64
+ if (res.success === true && res.data) {
65
+ if (config.end) config.end(_, res);
66
+ if (config.add) config.add(res.data);
67
+ console.debug("drop success");
68
+ }
69
+ }
70
+ }
71
+ });
72
+ if (props.config.isDrop !== true) {
73
+ const [_, drop] = useDrop({
74
+ accept: config.group,
75
+ canDrop() {
76
+ return false;
77
+ }
78
+ });
79
+ drop(rootRef);
80
+ } else {
81
+ const [dropCollect, drop] = useDrop({
82
+ accept: config.group,
83
+ collect(monitor) {
84
+ return {
85
+ handlerId: monitor.getHandlerId(),
86
+ isOver: monitor.isOver(),
87
+ canDrop: monitor.canDrop(),
88
+ isShallowOver: monitor.isOver({ shallow: true })
89
+ };
90
+ },
91
+ canDrop(item, monitor) {
92
+ if (collect.value.isDragging === true) return false;
93
+ return item.id !== props.data.id && monitor.isOver({ shallow: true });
94
+ },
95
+ hover(_item, monitor) {
96
+ if (monitor.canDrop() === false) return;
97
+ if (monitor.isOver({ shallow: true })) {
98
+ const rect = rootRef.value.getBoundingClientRect();
99
+ const offset = monitor.getClientOffset();
100
+ const dropOffset = config.offset ?? 0;
101
+ let difference = 0;
102
+ if (config.direction === "vertical") {
103
+ const { top, height } = rect;
104
+ const { y } = offset;
105
+ const half = height / 2;
106
+ difference = y - top - half;
107
+ if (Math.abs(difference) < dropOffset) return;
108
+ if (difference < 0) isBeforeHover.value = true;
109
+ else isBeforeHover.value = false;
110
+ } else if (config.direction === "horizontal") {
111
+ const { left, width } = rect;
112
+ const { x } = offset;
113
+ const half = width / 2;
114
+ difference = x - left - half;
115
+ if (Math.abs(difference) < dropOffset) return;
116
+ if (difference < 0) isBeforeHover.value = true;
117
+ else isBeforeHover.value = false;
118
+ }
119
+ dropLineState.activeKey = props.data.id;
120
+ dropLineState.isBeforeHover = isBeforeHover.value;
121
+ } else dropLineState.activeKey = "";
122
+ },
123
+ drop: (item, monitor) => {
124
+ dropLineState.activeKey = "";
125
+ if (dropCollect.value.isShallowOver !== true || monitor.canDrop() === false) return;
126
+ const callback = async () => {
127
+ let data = item.data;
128
+ if (config.drop) {
129
+ data = await config.drop(item);
130
+ if (!data) return {
131
+ group: config.group,
132
+ cfg: cloneDeep(props.config),
133
+ success: false
134
+ };
135
+ }
136
+ onDrop(isBeforeHover.value ? GCT_DND_INSERT_POS.BEFORE : GCT_DND_INSERT_POS.AFTER, data);
137
+ return {
138
+ group: config.group,
139
+ success: true,
140
+ cfg: cloneDeep(props.config),
141
+ data
142
+ };
143
+ };
144
+ return { asyncDrop: callback };
145
+ }
146
+ });
147
+ drop(rootRef);
148
+ }
149
+ if (!config.handle && config.isDrag !== false) drag(rootRef);
150
+ preview(rootRef);
151
+ function onDrop(insertPos, data) {
152
+ emit("drop", insertPos, data);
153
+ }
154
+ return {
155
+ ns,
156
+ rootRef,
157
+ posState,
158
+ collect,
159
+ onDrop,
160
+ drag
161
+ };
162
+ },
163
+ render() {
164
+ const itemProps = {
165
+ index: this.index,
166
+ data: this.data,
167
+ drag: this.drag
168
+ };
169
+ return createVNode("div", {
170
+ "ref": "rootRef",
171
+ "class": [
172
+ this.ns.b(),
173
+ this.ns.is("dragging", this.collect.isDragging),
174
+ this.ns.is("not-drag", this.collect.canDrag === false)
175
+ ]
176
+ }, [this.$slots.default?.(itemProps)]);
177
+ }
237
178
  });
238
-
239
- export { GctDndItem };
179
+ //#endregion
180
+ export { GctDndItem as default };
@@ -1,20 +1,12 @@
1
- const GCT_DND_INSERT_POS = {
2
- /**
3
- * 插入第一个
4
- */
5
- FIRST: "first",
6
- /**
7
- * 插入前
8
- */
9
- BEFORE: "before",
10
- /**
11
- * 插入后
12
- */
13
- AFTER: "after",
14
- /**
15
- * 插入最后
16
- */
17
- LAST: "last"
1
+ //#region src/modules/gct-dnd/constants/index.ts
2
+ /**
3
+ * 拖拽放置时的插入位置
4
+ */
5
+ var GCT_DND_INSERT_POS = {
6
+ FIRST: "first",
7
+ BEFORE: "before",
8
+ AFTER: "after",
9
+ LAST: "last"
18
10
  };
19
-
11
+ //#endregion
20
12
  export { GCT_DND_INSERT_POS };
@@ -0,0 +1,4 @@
1
+ import "./constants/index.mjs";
2
+ import "./components/gct-dnd-item/gct-dnd-item.mjs";
3
+ import "./components/gct-dnd-drop-line/gct-dnd-drop-line.mjs";
4
+ import "./components/gct-dnd-container/gct-dnd-container.mjs";
@@ -0,0 +1,67 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-flex-container {
66
+ display: flex;
67
+ }
@@ -0,0 +1,14 @@
1
+ import { PropType } from 'vue';
2
+ import { IFlexContainer, IFormGroup } from '../../interface';
3
+ /**
4
+ * flex 布局容器
5
+ */
6
+ export declare const FlexContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ layout: PropType<IFlexContainer>;
8
+ }>, {
9
+ ns: import('@gct-paas/core').Namespace;
10
+ getStyle: () => IData;
11
+ getItemStyle: (model: IFormGroup) => IData;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ layout: PropType<IFlexContainer>;
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,61 @@
1
+ import { FlexItem } from "../flex-item/flex-item.mjs";
2
+ import './flex-container.css';/* empty css */
3
+ import { createVNode, defineComponent, isVNode } from "vue";
4
+ import { useNamespace } from "@gct-paas/core";
5
+ //#region src/modules/gct-form/components/flex-container/flex-container.tsx
6
+ /**
7
+ * flex 布局容器
8
+ */
9
+ function _isSlot(s) {
10
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
11
+ }
12
+ var FlexContainer = /* @__PURE__ */ defineComponent({
13
+ name: "FlexContainer",
14
+ props: { layout: Object },
15
+ setup(props) {
16
+ const ns = useNamespace("flex-container");
17
+ const getStyle = () => {
18
+ const style = {};
19
+ if (props.layout) {
20
+ const { alignContent, alignItems, flexDirection, flexWrap, justifyContent } = props.layout;
21
+ if (alignContent != null) style.alignContent = alignContent;
22
+ if (alignItems != null) style.alignItems = alignItems;
23
+ if (flexDirection != null) style.flexDirection = flexDirection;
24
+ if (flexWrap != null) style.flexWrap = flexWrap;
25
+ if (justifyContent != null) style.justifyContent = justifyContent;
26
+ }
27
+ return style;
28
+ };
29
+ const getItemStyle = (model) => {
30
+ const style = {};
31
+ if (model) {
32
+ const { width, height } = model;
33
+ if (width != null) style.width = width;
34
+ if (height != null) style.height = height;
35
+ }
36
+ return style;
37
+ };
38
+ return {
39
+ ns,
40
+ getStyle,
41
+ getItemStyle
42
+ };
43
+ },
44
+ render() {
45
+ let items = this.$slots.default?.() || [];
46
+ if (items.length > 0) items = items[0].children || [];
47
+ return createVNode("div", {
48
+ "class": this.ns.b(),
49
+ "style": this.getStyle()
50
+ }, [items.map((item) => {
51
+ if (!item) return null;
52
+ const model = item.props.model.flexItem;
53
+ return createVNode(FlexItem, {
54
+ "layout": model,
55
+ "style": this.getItemStyle(item.props.model)
56
+ }, _isSlot(item) ? item : { default: () => [item] });
57
+ })]);
58
+ }
59
+ });
60
+ //#endregion
61
+ export { FlexContainer };
@@ -0,0 +1,13 @@
1
+ import { PropType } from 'vue';
2
+ import { IFlexItem } from '../../interface';
3
+ /**
4
+ * flex 布局容器项
5
+ */
6
+ export declare const FlexItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ layout: PropType<IFlexItem>;
8
+ }>, {
9
+ ns: import('@gct-paas/core').Namespace;
10
+ getStyle: () => IData;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ layout: PropType<IFlexItem>;
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,37 @@
1
+ import { createVNode, defineComponent } from "vue";
2
+ import { useNamespace } from "@gct-paas/core";
3
+ //#region src/modules/gct-form/components/flex-item/flex-item.tsx
4
+ /**
5
+ * flex 布局容器项
6
+ */
7
+ var FlexItem = /* @__PURE__ */ defineComponent({
8
+ name: "FlexItem",
9
+ props: { layout: Object },
10
+ setup(props) {
11
+ const ns = useNamespace("flex-item");
12
+ const getStyle = () => {
13
+ const style = {};
14
+ if (props.layout) {
15
+ const { order, alignSelf, flexBasis, flexGrow, flexShrink } = props.layout;
16
+ if (order != null) style["order"] = order;
17
+ if (alignSelf != null) style["align-self"] = alignSelf;
18
+ if (flexBasis != null) style["flex-basis"] = flexBasis;
19
+ if (flexGrow != null) style["flex-grow"] = flexGrow;
20
+ if (flexShrink != null) style["flex-shrink"] = flexShrink;
21
+ }
22
+ return style;
23
+ };
24
+ return {
25
+ ns,
26
+ getStyle
27
+ };
28
+ },
29
+ render() {
30
+ return createVNode("div", {
31
+ "class": this.ns.b(),
32
+ "style": this.getStyle()
33
+ }, [this.$slots.default?.()]);
34
+ }
35
+ });
36
+ //#endregion
37
+ export { FlexItem };
@@ -0,0 +1,10 @@
1
+ import { PropType } from 'vue';
2
+ import { IGridContainer } from '../../interface';
3
+ /**
4
+ * 栅格布局
5
+ */
6
+ export declare const GridContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ layout: PropType<IGridContainer>;
8
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ layout: PropType<IGridContainer>;
10
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;