@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,545 +0,0 @@
1
- import { defineComponent, ref, watch, onMounted, computed, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList } from 'vue';
2
-
3
- const _hoisted_1 = {
4
- key: 1,
5
- class: "component"
6
- };
7
- const _hoisted_2 = { class: "box" };
8
- const _hoisted_3 = { style: {
9
- borderRadius: "4px"
10
- } };
11
- const _hoisted_4 = { class: "color-picker-middle" };
12
- const _hoisted_5 = { style: { "flex": "auto" } };
13
- const _hoisted_6 = { class: "color-picker-diamond" };
14
- const _hoisted_7 = { class: "color-picker-value" };
15
- const _hoisted_8 = { class: "hex" };
16
- const _hoisted_9 = ["value"];
17
- const _hoisted_10 = { class: "rgba-r" };
18
- const _hoisted_11 = ["value"];
19
- const _hoisted_12 = { class: "rgba-g" };
20
- const _hoisted_13 = ["value"];
21
- const _hoisted_14 = { class: "rgba-b" };
22
- const _hoisted_15 = ["value"];
23
- const _hoisted_16 = { class: "rgba-a" };
24
- const _hoisted_17 = ["value"];
25
- const _hoisted_18 = { class: "presetColor" };
26
- const _hoisted_19 = { class: "preset" };
27
- const _hoisted_20 = ["onClick"];
28
- const _sfc_main = /* @__PURE__ */ defineComponent({
29
- ...{
30
- name: "ColorPicker"
31
- },
32
- __name: "ColorPicker",
33
- props: {
34
- color: { default: () => "#FFFFFF00" },
35
- preset: { default: () => [
36
- "#D0021B",
37
- "#F5A623",
38
- "#F8E71C",
39
- "#8B572A",
40
- "#7ED321",
41
- "#417505",
42
- "#BD10E0",
43
- "#9013FE",
44
- "#4A90E2",
45
- "#50E3C2",
46
- "#B8E986",
47
- "#000000",
48
- "#4A4A4A",
49
- "#9B9B9B",
50
- "#FFFFFF"
51
- ] },
52
- width: { default: 240 },
53
- useTrigger: { type: Boolean, default: false },
54
- placement: { default: "bottomLeft" }
55
- },
56
- emits: ["update:color"],
57
- setup(__props, { emit: __emit }) {
58
- const props = __props;
59
- const emit = __emit;
60
- const saturationRef = ref();
61
- const hueSliderRef = ref();
62
- const alphaSliderRef = ref();
63
- const pointStyle = ref("");
64
- const hueSliderStyle = ref("left: 0;");
65
- const alphaSliderStyle = ref("left: calc(100% - 6px);");
66
- const hue = ref(0);
67
- const saturation = ref(1);
68
- const value = ref(1);
69
- const red = ref(255);
70
- const green = ref(0);
71
- const blue = ref(0);
72
- const alpha = ref(1);
73
- watch(
74
- () => props.color,
75
- () => {
76
- const { r: r2, g: g2, b: b2, a: a2 } = parseColor(props.color || "#FFFFFF00");
77
- red.value = r2;
78
- green.value = g2;
79
- blue.value = b2;
80
- alpha.value = a2;
81
- }
82
- );
83
- const { r, g, b, a } = parseColor(props.color || "#FFFFFF00");
84
- red.value = r;
85
- green.value = g;
86
- blue.value = b;
87
- alpha.value = a;
88
- onMounted(() => {
89
- const { h, s, v } = rgb2hsv(red.value, green.value, blue.value);
90
- hue.value = h;
91
- saturation.value = s;
92
- value.value = v;
93
- pointStyle.value = `top: ${100 - v * 100}%;left: ${s * 100}%;`;
94
- hueSliderStyle.value = `left: ${hue.value / 360 * 100}%;`;
95
- alphaSliderStyle.value = `left: ${alpha.value >= 1 ? "calc(100% - 6px)" : alpha.value * 100 + "%"};`;
96
- });
97
- const colorObj = computed(() => {
98
- const r2 = red.value;
99
- const g2 = green.value;
100
- const b2 = blue.value;
101
- const a2 = alpha.value;
102
- const h = hue.value;
103
- const s = saturation.value;
104
- const v = value.value;
105
- return {
106
- rgb: `rgba(${r2},${g2},${b2})`,
107
- rgba: `rgba(${r2},${g2},${b2},${a2})`,
108
- hex6: rgba2hex(r2, g2, b2),
109
- hex8: rgba2hex(r2, g2, b2, a2),
110
- hsv: `hsv(${h},${s},${v})`,
111
- hsl: ``
112
- };
113
- });
114
- watch(
115
- () => colorObj.value.hex8,
116
- () => {
117
- emit(
118
- "update:color",
119
- {
120
- r: red.value,
121
- g: green.value,
122
- b: blue.value,
123
- a: alpha.value
124
- },
125
- colorObj.value.hex8
126
- );
127
- const { h, s, v } = rgb2hsv(red.value, green.value, blue.value);
128
- hue.value = h;
129
- saturation.value = s;
130
- value.value = v;
131
- pointStyle.value = `top: ${100 - v * 100}%;left: ${s * 100}%;`;
132
- hueSliderStyle.value = `left: ${hue.value / 360 * 100}%;`;
133
- }
134
- // {
135
- // immediate: true,
136
- // },
137
- );
138
- function hexChange(e) {
139
- const v = e.target.value;
140
- if (/^#?([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(v)) {
141
- let { r: r2, g: g2, b: b2, a: a2 } = hex2rgba(v);
142
- red.value = r2;
143
- green.value = g2;
144
- blue.value = b2;
145
- alpha.value = a2;
146
- }
147
- }
148
- function redChange(e) {
149
- const v = e.target.value;
150
- if (v !== "") {
151
- const num = parseInt(v);
152
- num > 255 && (red.value = 255);
153
- num < 0 && (red.value = 0);
154
- num >= 0 && num <= 255 && (red.value = num);
155
- }
156
- }
157
- function greenChange(e) {
158
- const v = e.target.value;
159
- if (v !== "") {
160
- const num = parseInt(v);
161
- num > 255 && (green.value = 255);
162
- num < 0 && (green.value = 0);
163
- num >= 0 && num <= 255 && (green.value = num);
164
- }
165
- }
166
- function blueChange(e) {
167
- const v = e.target.value;
168
- if (v !== "") {
169
- const num = parseInt(v);
170
- num > 255 && (blue.value = 255);
171
- num < 0 && (blue.value = 0);
172
- num >= 0 && num <= 255 && (blue.value = num);
173
- }
174
- }
175
- function alphaChange(e) {
176
- const v = e.target.value;
177
- if (v !== "") {
178
- const num = parseFloat(v);
179
- alpha.value = num;
180
- num > 1 && (alpha.value = 1);
181
- num < 0 && (alpha.value = 0);
182
- num >= 0 && num <= 1 && (alpha.value = num);
183
- }
184
- }
185
- function presetChange(item) {
186
- if (/^#?([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(item)) {
187
- let { r: r2, g: g2, b: b2, a: a2 } = hex2rgba(item);
188
- red.value = r2;
189
- green.value = g2;
190
- blue.value = b2;
191
- alpha.value = a2;
192
- alphaSliderStyle.value = `left: calc(100% - 6px);`;
193
- alpha.value = 1;
194
- }
195
- }
196
- function handleChangeSV(e) {
197
- if (!saturationRef.value) return;
198
- const w = saturationRef.value.clientWidth;
199
- const h = saturationRef.value.clientHeight;
200
- let x = e.pageX - saturationRef.value.getBoundingClientRect().left;
201
- let y = e.pageY - saturationRef.value.getBoundingClientRect().top;
202
- x = x < w && x > 0 ? x : x > w ? w : 0;
203
- y = y < h && y > 0 ? y : y > h ? h : 0;
204
- saturation.value = Math.floor(x / w * 100 + 0.5) / 100;
205
- value.value = Math.floor((1 - y / h) * 100 + 0.5) / 100;
206
- const { r: r2, g: g2, b: b2 } = hsv2rgb(hue.value, saturation.value, value.value);
207
- red.value = r2;
208
- green.value = g2;
209
- blue.value = b2;
210
- pointStyle.value = `top: ${y}px;left: ${x}px;`;
211
- }
212
- function mousedownSV(e) {
213
- handleChangeSV(e);
214
- window.addEventListener("mousemove", handleChangeSV);
215
- window.addEventListener("mouseup", mouseupSV);
216
- alphaSliderStyle.value = `left: calc(100% - 6px);`;
217
- alpha.value = 1;
218
- }
219
- function mouseupSV() {
220
- window.removeEventListener("mousemove", handleChangeSV);
221
- window.removeEventListener("mouseup", mouseupSV);
222
- }
223
- function handleChangeHue(e) {
224
- let w = hueSliderRef.value.clientWidth;
225
- let x = e.pageX - saturationRef.value.getBoundingClientRect().left;
226
- x = x < w && x > 0 ? x : x > w ? w : 0;
227
- hue.value = Math.floor(x / w * 360 + 0.5);
228
- let { r: r2, g: g2, b: b2 } = hsv2rgb(hue.value, saturation.value, value.value);
229
- red.value = r2;
230
- green.value = g2;
231
- blue.value = b2;
232
- hueSliderStyle.value = `left: ${x >= w - 6 ? w - 6 : x}px;`;
233
- }
234
- function mousedownHue(e) {
235
- handleChangeHue(e);
236
- window.addEventListener("mousemove", handleChangeHue);
237
- window.addEventListener("mouseup", mouseupHue);
238
- }
239
- function mouseupHue() {
240
- window.removeEventListener("mousemove", handleChangeHue);
241
- window.removeEventListener("mouseup", mouseupHue);
242
- }
243
- function handleChangeAlpha(e) {
244
- let w = alphaSliderRef.value.clientWidth;
245
- let x = e.pageX - saturationRef.value.getBoundingClientRect().left;
246
- x = x < w && x > 0 ? x : x > w ? w : 0;
247
- alpha.value = Math.floor(x / w * 100 + 0.5) / 100;
248
- alphaSliderStyle.value = `left: ${x >= w - 6 ? w - 6 : x}px;`;
249
- }
250
- function mousedownAlpha(e) {
251
- handleChangeAlpha(e);
252
- window.addEventListener("mousemove", handleChangeAlpha);
253
- window.addEventListener("mouseup", mouseupAlpha);
254
- }
255
- function mouseupAlpha() {
256
- window.removeEventListener("mousemove", handleChangeAlpha);
257
- window.removeEventListener("mouseup", mouseupAlpha);
258
- }
259
- function parseColor(color) {
260
- if (color) {
261
- let r2, g2, b2, a2;
262
- if (typeof color === "string") {
263
- if (/^#?([0-9a-fA-F]{6}|[0-9a-fA-F]{8}|[0-9a-fA-F]{3}|[0-9a-fA-F]{4})$/.test(
264
- color
265
- )) {
266
- return hex2rgba(color);
267
- }
268
- return parseRGBA(color);
269
- } else {
270
- r2 = color.r > 255 ? 255 : color.r < 0 ? 0 : color.r;
271
- g2 = color.g > 255 ? 255 : color.g < 0 ? 0 : color.g;
272
- b2 = color.b > 255 ? 255 : color.b < 0 ? 0 : color.b;
273
- a2 = color.a > 1 ? 1 : color.a < 0 ? 0 : color.a;
274
- return { r: r2, g: g2, b: b2, a: a2 };
275
- }
276
- } else {
277
- return { r: 0, g: 0, b: 0, a: 1 };
278
- }
279
- }
280
- function hsv2rgb(h, s, v) {
281
- h === 360 && (h = 0);
282
- let i = Math.floor(h / 60) % 6;
283
- let f = h / 60 - i;
284
- let p = v * (1 - s);
285
- let q = v * (1 - s * f);
286
- let t = v * (1 - s * (1 - f));
287
- let r2 = 0, g2 = 0, b2 = 0;
288
- if (i === 0) {
289
- r2 = v;
290
- g2 = t;
291
- b2 = p;
292
- } else if (i === 1) {
293
- r2 = q;
294
- g2 = v;
295
- b2 = p;
296
- } else if (i === 2) {
297
- r2 = p;
298
- g2 = v;
299
- b2 = t;
300
- } else if (i === 3) {
301
- r2 = p;
302
- g2 = q;
303
- b2 = v;
304
- } else if (i === 4) {
305
- r2 = t;
306
- g2 = p;
307
- b2 = v;
308
- } else if (i === 5) {
309
- r2 = v;
310
- g2 = p;
311
- b2 = q;
312
- }
313
- r2 = Math.floor(r2 * 255 + 0.5);
314
- g2 = Math.floor(g2 * 255 + 0.5);
315
- b2 = Math.floor(b2 * 255 + 0.5);
316
- return { r: r2, g: g2, b: b2 };
317
- }
318
- function rgb2hsv(r2, g2, b2) {
319
- let r1 = r2 / 255;
320
- let g1 = g2 / 255;
321
- let b1 = b2 / 255;
322
- let cmax = Math.max(r1, g1, b1);
323
- let cmin = Math.min(r1, g1, b1);
324
- let d = cmax - cmin;
325
- let h = 0, s, v;
326
- if (d === 0) {
327
- h = 0;
328
- } else if (cmax === r1) {
329
- h = (60 * (g1 - b1) / d + 360) % 360;
330
- } else if (cmax === g1) {
331
- h = 60 * ((b1 - r1) / d + 2);
332
- } else if (cmax === b1) {
333
- h = 60 * ((r1 - g1) / d + 4);
334
- }
335
- if (cmax === 0) {
336
- s = 0;
337
- } else {
338
- s = d / cmax;
339
- }
340
- v = cmax;
341
- h = Math.floor(h + 0.5);
342
- s = Math.floor(s * 100 + 0.5) / 100;
343
- v = Math.floor(v * 100 + 0.5) / 100;
344
- return { h, s, v };
345
- }
346
- function rgba2hex(r2, g2, b2, a2 = 1) {
347
- r2 = parseInt(r2);
348
- let r1 = r2.toString(16).length !== 2 ? "0" + r2.toString(16) : r2.toString(16);
349
- g2 = parseInt(g2);
350
- let g1 = g2.toString(16).length !== 2 ? "0" + g2.toString(16) : g2.toString(16);
351
- b2 = parseInt(b2);
352
- let b1 = b2.toString(16).length !== 2 ? "0" + b2.toString(16) : b2.toString(16);
353
- a2 = parseFloat(a2);
354
- let a1 = "";
355
- if (a2 !== 1) {
356
- let temp = Math.floor(256 * a2);
357
- a1 = temp.toString(16).length !== 2 ? "0" + temp.toString(16) : temp.toString(16);
358
- }
359
- return `#${r1}${g1}${b1}${a1}`.toUpperCase();
360
- }
361
- function hex2rgba(s) {
362
- if (/^#?[0-9a-fA-F]{3}$/.test(s)) {
363
- let b2 = s.substring(s.length - 1, s.length);
364
- let g2 = s.substring(s.length - 2, s.length - 1);
365
- let r2 = s.substring(s.length - 3, s.length - 2);
366
- return hex2rgba(`${r2 + r2}${g2 + g2}${b2 + b2}`);
367
- }
368
- if (/^#?[0-9a-fA-F]{4}$/.test(s)) {
369
- let a2 = s.substring(s.length - 1, s.length);
370
- let b2 = s.substring(s.length - 2, s.length - 1);
371
- let g2 = s.substring(s.length - 3, s.length - 2);
372
- let r2 = s.substring(s.length - 4, s.length - 3);
373
- return hex2rgba(`${r2 + r2}${g2 + g2}${b2 + b2}${a2 + a2}`);
374
- }
375
- if (/^#?[0-9a-fA-F]{6}$/.test(s)) {
376
- let b2 = parseInt("0x" + s.substring(s.length - 2, s.length));
377
- let g2 = parseInt("0x" + s.substring(s.length - 4, s.length - 2));
378
- let r2 = parseInt("0x" + s.substring(s.length - 6, s.length - 4));
379
- return { r: r2, g: g2, b: b2, a: 1 };
380
- }
381
- if (/^#?[0-9a-fA-F]{8}$/.test(s)) {
382
- let a2 = parseInt("0x" + s.substring(s.length - 2, s.length));
383
- a2 = a2 / 255;
384
- let b2 = parseInt("0x" + s.substring(s.length - 4, s.length - 2));
385
- let g2 = parseInt("0x" + s.substring(s.length - 6, s.length - 4));
386
- let r2 = parseInt("0x" + s.substring(s.length - 8, s.length - 6));
387
- return { r: r2, g: g2, b: b2, a: a2 };
388
- }
389
- }
390
- function parseRGBA(colorString) {
391
- const rgbaRegex = /^rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*([\d.]+))?\)$/;
392
- const match = colorString.match(rgbaRegex);
393
- if (match) {
394
- const alpha2 = match[4] ? parseFloat(match[4]) : 1;
395
- return {
396
- r: parseInt(match[1], 10),
397
- g: parseInt(match[2], 10),
398
- b: parseInt(match[3], 10),
399
- a: alpha2
400
- };
401
- } else {
402
- throw new Error("Invalid RGBA string");
403
- }
404
- }
405
- return (_ctx, _cache) => {
406
- const _component_a_popover = resolveComponent("a-popover");
407
- return openBlock(), createBlock(_component_a_popover, {
408
- placement: __props.placement,
409
- trigger: "click",
410
- "overlay-class-name": "color-picker__popover"
411
- }, {
412
- content: withCtx(() => [
413
- createElementVNode("div", {
414
- class: "color-picker",
415
- style: normalizeStyle({ "--w": __props.width + "px" })
416
- }, [
417
- createElementVNode("div", {
418
- ref_key: "saturationRef",
419
- ref: saturationRef,
420
- class: "color-picker-saturation",
421
- onMousedown: mousedownSV
422
- }, [
423
- createElementVNode("div", {
424
- style: normalizeStyle(`background-color: hsl(${hue.value}, 100%, 50%);`)
425
- }, [
426
- createElementVNode("div", {
427
- class: "point",
428
- style: normalizeStyle(pointStyle.value)
429
- }, null, 4)
430
- ], 4),
431
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "color-picker-saturation-t" }, null, -1)),
432
- _cache[1] || (_cache[1] = createElementVNode("div", { class: "color-picker-saturation-h" }, null, -1))
433
- ], 544),
434
- createElementVNode("div", _hoisted_4, [
435
- createElementVNode("div", _hoisted_5, [
436
- createElementVNode("div", {
437
- ref_key: "hueSliderRef",
438
- ref: hueSliderRef,
439
- class: "hue-slider",
440
- onMousedown: mousedownHue
441
- }, [
442
- createElementVNode("div", {
443
- class: "slider",
444
- style: normalizeStyle(hueSliderStyle.value)
445
- }, null, 4)
446
- ], 544),
447
- createElementVNode("div", {
448
- ref_key: "alphaSliderRef",
449
- ref: alphaSliderRef,
450
- class: "alpha-slider",
451
- onMousedown: mousedownAlpha
452
- }, [
453
- createElementVNode("div", {
454
- class: "slider",
455
- style: normalizeStyle(alphaSliderStyle.value)
456
- }, null, 4),
457
- createElementVNode("div", {
458
- style: normalizeStyle(`background: linear-gradient(to right, rgba(0,0,0,0), ${colorObj.value.rgb});width: 100%;height: 100%`)
459
- }, null, 4)
460
- ], 544)
461
- ]),
462
- createElementVNode("div", _hoisted_6, [
463
- createElementVNode("div", {
464
- style: normalizeStyle(`background-color: ${colorObj.value.rgba};width: 100%;height: 100%;box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);`)
465
- }, null, 4)
466
- ])
467
- ]),
468
- createElementVNode("div", _hoisted_7, [
469
- createElementVNode("div", _hoisted_8, [
470
- createElementVNode("label", null, [
471
- createElementVNode("input", {
472
- value: colorObj.value.hex8,
473
- spellcheck: "false",
474
- onInput: hexChange
475
- }, null, 40, _hoisted_9)
476
- ]),
477
- _cache[2] || (_cache[2] = createElementVNode("p", null, "Hex", -1))
478
- ]),
479
- createElementVNode("div", _hoisted_10, [
480
- createElementVNode("label", null, [
481
- createElementVNode("input", {
482
- value: red.value,
483
- onInput: redChange
484
- }, null, 40, _hoisted_11)
485
- ]),
486
- _cache[3] || (_cache[3] = createElementVNode("p", null, "R", -1))
487
- ]),
488
- createElementVNode("div", _hoisted_12, [
489
- createElementVNode("label", null, [
490
- createElementVNode("input", {
491
- value: green.value,
492
- onInput: greenChange
493
- }, null, 40, _hoisted_13)
494
- ]),
495
- _cache[4] || (_cache[4] = createElementVNode("p", null, "G", -1))
496
- ]),
497
- createElementVNode("div", _hoisted_14, [
498
- createElementVNode("label", null, [
499
- createElementVNode("input", {
500
- value: blue.value,
501
- onInput: blueChange
502
- }, null, 40, _hoisted_15)
503
- ]),
504
- _cache[5] || (_cache[5] = createElementVNode("p", null, "B", -1))
505
- ]),
506
- createElementVNode("div", _hoisted_16, [
507
- createElementVNode("label", null, [
508
- createElementVNode("input", {
509
- value: alpha.value,
510
- onInput: alphaChange
511
- }, null, 40, _hoisted_17)
512
- ]),
513
- _cache[6] || (_cache[6] = createElementVNode("p", null, "A", -1))
514
- ])
515
- ]),
516
- createElementVNode("div", _hoisted_18, [
517
- _cache[7] || (_cache[7] = createElementVNode("div", { class: "title" }, "推荐颜色", -1)),
518
- createElementVNode("ul", _hoisted_19, [
519
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.preset, (item) => {
520
- return openBlock(), createElementBlock("li", {
521
- key: item,
522
- style: normalizeStyle(`background-color: ${item}`),
523
- onClick: ($event) => presetChange(item)
524
- }, null, 12, _hoisted_20);
525
- }), 128))
526
- ])
527
- ])
528
- ], 4)
529
- ]),
530
- default: withCtx(() => [
531
- __props.useTrigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_1, [
532
- createElementVNode("div", _hoisted_2, [
533
- createElementVNode("div", _hoisted_3, [
534
- renderSlot(_ctx.$slots, "icon", {}, void 0, true)
535
- ])
536
- ])
537
- ]))
538
- ]),
539
- _: 3
540
- }, 8, ["placement"]);
541
- };
542
- }
543
- });
544
-
545
- export { _sfc_main as default };
@@ -1,5 +0,0 @@
1
- import { App } from 'vue';
2
- declare const _default: {
3
- install(app: App): void;
4
- };
5
- export default _default;
@@ -1,10 +0,0 @@
1
- import 'vue';
2
- import { GctEditForm as GctEditForm$1 } from './gct-edit-form.mjs';
3
-
4
- const GctEditForm = {
5
- install(app) {
6
- app.component(GctEditForm$1.name, GctEditForm$1);
7
- }
8
- };
9
-
10
- export { GctEditForm as default };
@@ -1,5 +0,0 @@
1
- import _sfc_main from './BasicModal.vue.mjs';
2
-
3
-
4
-
5
- export { _sfc_main as default };
@@ -1,6 +0,0 @@
1
- import _sfc_main from './ModalClose.vue.mjs';
2
- import './ModalClose.css';/* empty css */
3
-
4
-
5
-
6
- export { _sfc_main as default };
@@ -1,5 +0,0 @@
1
- import _sfc_main from './ModalFooter.vue.mjs';
2
-
3
-
4
-
5
- export { _sfc_main as default };
@@ -1,13 +0,0 @@
1
- import { defineComponent } from 'vue';
2
-
3
- const _sfc_main = defineComponent({
4
- name: "BasicModalHeader",
5
- props: {
6
- helpMessage: {
7
- type: [String, Array]
8
- },
9
- title: { type: String }
10
- }
11
- });
12
-
13
- export { _sfc_main as default };