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

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 (308) hide show
  1. package/dist/index.esm.min.js +9864 -0
  2. package/dist/index.min.css +2 -1
  3. package/dist/monaco-editor-BHuf3IVH.js +280 -0
  4. package/dist/useMonacoEditor-CfhCBaPa.js +2852 -0
  5. package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
  6. package/es/components/app-modal/app-modal-component.mjs +102 -133
  7. package/es/components/assets-svg-icon/assets-svg-icon.mjs +161 -232
  8. package/es/components/assets-svg-icon/request.mjs +60 -43
  9. package/es/components/assets-svg-icon/utils.mjs +21 -19
  10. package/es/components/assets-svg-icon/validate.mjs +27 -41
  11. package/es/components/base-button/base-button.vue.mjs +7 -7
  12. package/es/components/base-button/base-button.vue_vue_type_script_setup_true_name_BaseButton_lang.mjs +181 -0
  13. package/es/components/basic-button/basic-button.vue.mjs +7 -7
  14. package/es/components/basic-button/basic-button.vue_vue_type_script_setup_true_name_BasicButton_lang.mjs +148 -0
  15. package/es/components/code-editor/code-editor.mjs +59 -63
  16. package/es/components/copy-module-key/copy-module-key.vue.mjs +7 -7
  17. package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +92 -0
  18. package/es/components/double-input/double-input.vue.mjs +5 -158
  19. package/es/components/double-input/double-input.vue_vue_type_script_setup_true_lang.mjs +121 -0
  20. package/es/components/icon-next/hooks/useIconAsset.mjs +32 -44
  21. package/es/components/icon-next/hooks/useIconPark.mjs +48 -48
  22. package/es/components/icon-next/hooks/useIconPlatform.mjs +37 -42
  23. package/es/components/icon-next/index.mjs +3 -0
  24. package/es/components/icon-next/src/IconNext.vue.mjs +7 -0
  25. package/es/components/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +113 -0
  26. package/es/components/icon-next/src/IconNextPicker.vue.mjs +6 -0
  27. package/es/components/icon-next/src/IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +379 -0
  28. package/es/components/icon-next/types/index.mjs +10 -9
  29. package/es/components/index.d.ts +1 -0
  30. package/es/components/index.mjs +23 -34
  31. package/es/components/layout/view-container/view-container.mjs +24 -35
  32. package/es/components/svg-icon/svg-icon.vue.mjs +6 -50
  33. package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +52 -0
  34. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.css +103 -0
  35. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.d.ts +44 -0
  36. package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs +122 -0
  37. package/es/components/wujie-container/wujie-container.mjs +58 -81
  38. package/es/create-app-vue.mjs +27 -19
  39. package/es/directives/drag-resize.mjs +38 -39
  40. package/es/directives/ellipsis-title.d.ts +7 -0
  41. package/es/directives/ellipsis-title.mjs +21 -0
  42. package/es/directives/index.mjs +14 -6
  43. package/es/directives/target-loading.mjs +28 -36
  44. package/es/hooks/index.mjs +4 -0
  45. package/es/hooks/useDesign.mjs +7 -8
  46. package/es/hooks/useDragLine.mjs +66 -75
  47. package/es/hooks/useLocale.mjs +27 -28
  48. package/es/hooks/useTheme.mjs +13 -17
  49. package/es/index.mjs +92 -137
  50. package/es/modules/code-editor/index.mjs +6 -7
  51. package/es/modules/code-editor/monaco-editor.vue.mjs +7 -7
  52. package/es/modules/code-editor/monaco-editor.vue_vue_type_script_setup_true_name_code-editor_lang.mjs +398 -0
  53. package/es/modules/code-editor/useEditorConsole.mjs +146 -187
  54. package/es/modules/code-editor/useMonacoEditor.mjs +24 -23
  55. package/es/modules/color-picker/index.mjs +1 -0
  56. package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -8
  57. package/es/modules/color-picker/src/ColorPicker.vue_vue_type_script_setup_true_name_ColorPicker_lang.mjs +482 -0
  58. package/es/modules/formula-editor/constants/index.mjs +8 -6
  59. package/es/modules/formula-editor/formula-editor.mjs +40 -59
  60. package/es/modules/formula-editor/index.mjs +2 -0
  61. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +158 -193
  62. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +81 -95
  63. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +178 -237
  64. package/es/modules/gct-dnd/constants/index.mjs +10 -18
  65. package/es/modules/gct-dnd/index.mjs +4 -0
  66. package/es/modules/gct-form/components/flex-container/flex-container.css +67 -0
  67. package/es/modules/gct-form/components/flex-container/flex-container.d.ts +14 -0
  68. package/es/modules/gct-form/components/flex-container/flex-container.mjs +61 -0
  69. package/es/modules/gct-form/components/flex-item/flex-item.d.ts +13 -0
  70. package/es/modules/gct-form/components/flex-item/flex-item.mjs +37 -0
  71. package/es/modules/gct-form/components/grid-container/grid-container.d.ts +10 -0
  72. package/es/modules/gct-form/components/grid-container/grid-container.mjs +36 -0
  73. package/es/modules/gct-form/components/index.d.ts +3 -0
  74. package/es/modules/gct-form/components/index.mjs +3 -0
  75. package/es/modules/gct-form/constants/editor-register/editor-register.mjs +17 -5
  76. package/es/modules/gct-form/constants/editor-type/editor-type.mjs +133 -34
  77. package/es/modules/gct-form/constants/index.mjs +5 -2
  78. package/es/modules/gct-form/controller/edit-form/edit-form.controller.d.ts +1 -16
  79. package/es/modules/gct-form/controller/edit-form/edit-form.controller.mjs +48 -69
  80. package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +18 -22
  81. package/es/modules/gct-form/controller/form-collapse/form-collapse.controller.mjs +20 -10
  82. package/es/modules/gct-form/controller/form-collapse-pane/form-collapse-pane.controller.mjs +20 -10
  83. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +84 -89
  84. package/es/modules/gct-form/controller/form-group/form-group.controller.mjs +20 -10
  85. package/es/modules/gct-form/controller/form-item/form-item.controller.mjs +35 -36
  86. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +61 -42
  87. package/es/modules/gct-form/controller/form-item-hidden/form-item-hidden.controller.mjs +16 -6
  88. package/es/modules/gct-form/controller/form-line/form-line.controller.mjs +20 -10
  89. package/es/modules/gct-form/controller/form-tab/form-tab.controller.mjs +20 -10
  90. package/es/modules/gct-form/controller/form-tab-pane/form-tab-pane.controller.mjs +20 -10
  91. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +198 -221
  92. package/es/modules/gct-form/controller/index.mjs +13 -0
  93. package/es/modules/gct-form/editor/gct-form-action/gct-form-action.mjs +44 -49
  94. package/es/modules/gct-form/editor/gct-form-action/index.mjs +10 -14
  95. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.mjs +54 -55
  96. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +14 -4
  97. package/es/modules/gct-form/editor/gct-form-check-switch/index.mjs +8 -12
  98. package/es/modules/gct-form/editor/gct-form-checkbox/gct-form-checkbox.mjs +100 -125
  99. package/es/modules/gct-form/editor/gct-form-checkbox/index.mjs +10 -14
  100. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +36 -41
  101. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.provider.mjs +14 -4
  102. package/es/modules/gct-form/editor/gct-form-color/index.mjs +8 -12
  103. package/es/modules/gct-form/editor/gct-form-date/gct-form-date.mjs +71 -78
  104. package/es/modules/gct-form/editor/gct-form-date/gct-form-date.provider.mjs +12 -4
  105. package/es/modules/gct-form/editor/gct-form-date/index.mjs +8 -12
  106. package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.mjs +102 -107
  107. package/es/modules/gct-form/editor/gct-form-date-format-select/index.mjs +10 -14
  108. package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.mjs +13 -15
  109. package/es/modules/gct-form/editor/gct-form-empty/index.mjs +10 -14
  110. package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.mjs +66 -66
  111. package/es/modules/gct-form/editor/gct-form-formula/index.mjs +10 -14
  112. package/es/modules/gct-form/editor/gct-form-group-select/gct-form-group-select.mjs +159 -227
  113. package/es/modules/gct-form/editor/gct-form-group-select/index.mjs +10 -14
  114. package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.mjs +87 -113
  115. package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.provider.mjs +14 -4
  116. package/es/modules/gct-form/editor/gct-form-i18n/index.mjs +8 -12
  117. package/es/modules/gct-form/editor/gct-form-icon-select/gct-form-icon-select.mjs +61 -70
  118. package/es/modules/gct-form/editor/gct-form-icon-select/index.mjs +10 -14
  119. package/es/modules/gct-form/editor/gct-form-info/gct-form-info.mjs +38 -49
  120. package/es/modules/gct-form/editor/gct-form-info/index.mjs +10 -14
  121. package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.mjs +36 -41
  122. package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +14 -4
  123. package/es/modules/gct-form/editor/gct-form-length-unit/index.mjs +8 -12
  124. package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +141 -170
  125. package/es/modules/gct-form/editor/gct-form-model-select/index.mjs +10 -14
  126. package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.mjs +60 -66
  127. package/es/modules/gct-form/editor/gct-form-multiple-choice/index.mjs +10 -14
  128. package/es/modules/gct-form/editor/gct-form-number/gct-form-number.mjs +41 -42
  129. package/es/modules/gct-form/editor/gct-form-number/gct-form-number.provider.mjs +5 -4
  130. package/es/modules/gct-form/editor/gct-form-number/index.mjs +8 -12
  131. package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.mjs +89 -111
  132. package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.provider.mjs +14 -4
  133. package/es/modules/gct-form/editor/gct-form-picker/index.mjs +8 -12
  134. package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.mjs +60 -66
  135. package/es/modules/gct-form/editor/gct-form-pixel-config/index.mjs +10 -14
  136. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +76 -91
  137. package/es/modules/gct-form/editor/gct-form-radio/index.mjs +10 -14
  138. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +109 -126
  139. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.provider.mjs +14 -4
  140. package/es/modules/gct-form/editor/gct-form-select/index.mjs +8 -12
  141. package/es/modules/gct-form/editor/gct-form-span/gct-form-span.mjs +67 -97
  142. package/es/modules/gct-form/editor/gct-form-span/gct-form-span.provider.mjs +14 -4
  143. package/es/modules/gct-form/editor/gct-form-span/index.mjs +8 -12
  144. package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.mjs +32 -37
  145. package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.provider.mjs +14 -4
  146. package/es/modules/gct-form/editor/gct-form-switch/index.mjs +8 -12
  147. package/es/modules/gct-form/editor/gct-form-table/gct-form-table.mjs +29 -30
  148. package/es/modules/gct-form/editor/gct-form-table/index.mjs +10 -14
  149. package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +51 -54
  150. package/es/modules/gct-form/editor/gct-form-text/gct-form-text.provider.mjs +14 -4
  151. package/es/modules/gct-form/editor/gct-form-text/index.mjs +8 -12
  152. package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.mjs +43 -44
  153. package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.provider.mjs +5 -4
  154. package/es/modules/gct-form/editor/gct-form-textarea/index.mjs +8 -12
  155. package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.mjs +59 -76
  156. package/es/modules/gct-form/editor/gct-select-form-table/index.mjs +10 -14
  157. package/es/modules/gct-form/editor/index.mjs +32 -34
  158. package/es/modules/gct-form/hooks/index.mjs +2 -0
  159. package/es/modules/gct-form/hooks/use-form/use-form.mjs +12 -5
  160. package/es/modules/gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs +80 -84
  161. package/es/modules/gct-form/index.mjs +51 -16
  162. package/es/modules/gct-form/props/gct-form-item/gct-form-item.props.mjs +54 -62
  163. package/es/modules/gct-form/register/editor-register/editor-register.mjs +63 -56
  164. package/es/modules/gct-form/register/form-item-register/form-item-register.mjs +45 -41
  165. package/es/modules/gct-form/state/form/form.state.mjs +26 -16
  166. package/es/modules/gct-form/state/form-collapse/form-collapse.state.mjs +14 -5
  167. package/es/modules/gct-form/state/form-collapse-pane/form-collapse-pane.state.mjs +14 -5
  168. package/es/modules/gct-form/state/form-edit-item/form-edit-item.state.mjs +18 -9
  169. package/es/modules/gct-form/state/form-group/form-group.state.mjs +22 -13
  170. package/es/modules/gct-form/state/form-item/form-item.state.mjs +14 -5
  171. package/es/modules/gct-form/state/form-item-basic/form-item-basic.state.mjs +18 -8
  172. package/es/modules/gct-form/state/form-line/form-line.state.mjs +11 -5
  173. package/es/modules/gct-form/state/form-tab/form-tab.state.mjs +16 -6
  174. package/es/modules/gct-form/state/form-tab-pane/form-tab-pane.state.mjs +14 -5
  175. package/es/modules/gct-form/utils/width-install/width-install.mjs +19 -16
  176. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.d.ts +1 -5
  177. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +122 -148
  178. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +66 -76
  179. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +11 -13
  180. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +10 -15
  181. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +50 -72
  182. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +11 -15
  183. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +10 -15
  184. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.css +5 -5
  185. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +72 -89
  186. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +11 -13
  187. package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +10 -15
  188. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +11 -15
  189. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
  190. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +27 -24
  191. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.mjs +127 -159
  192. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +11 -13
  193. package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +3 -0
  194. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.css +2 -2
  195. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.mjs +38 -45
  196. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.provider.mjs +11 -13
  197. package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +10 -12
  198. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +63 -69
  199. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +11 -13
  200. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +10 -12
  201. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +48 -66
  202. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +11 -13
  203. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +10 -15
  204. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.css +4 -4
  205. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +50 -68
  206. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +11 -13
  207. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +11 -16
  208. package/es/modules/gct-form/widgets/gct-form/gct-form.css +2 -2
  209. package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +125 -143
  210. package/es/modules/gct-form/widgets/gct-form/index.mjs +30 -33
  211. package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +138 -140
  212. package/es/modules/gct-table/controller/index.mjs +5 -0
  213. package/es/modules/gct-table/controller/table-item/table-action-item.controller.mjs +14 -5
  214. package/es/modules/gct-table/controller/table-item/table-edit-item.controller.mjs +25 -15
  215. package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +32 -25
  216. package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +76 -69
  217. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +47 -90
  218. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.provider.mjs +12 -4
  219. package/es/modules/gct-table/editor/gct-table-date/index.mjs +10 -52
  220. package/es/modules/gct-table/editor/gct-table-span/gct-table-span.mjs +26 -37
  221. package/es/modules/gct-table/editor/gct-table-span/gct-table-span.provider.mjs +14 -4
  222. package/es/modules/gct-table/editor/gct-table-span/index.mjs +10 -52
  223. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +60 -103
  224. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.provider.mjs +14 -4
  225. package/es/modules/gct-table/editor/gct-table-text/index.mjs +10 -52
  226. package/es/modules/gct-table/editor/index.mjs +9 -11
  227. package/es/modules/gct-table/hooks/index.mjs +1 -0
  228. package/es/modules/gct-table/hooks/use-ant-table/use-ant-table.mjs +66 -82
  229. package/es/modules/gct-table/index.mjs +22 -15
  230. package/es/modules/gct-table/register/table-editor-register/table-editor-register.mjs +67 -60
  231. package/es/modules/gct-table/state/table/table.state.mjs +46 -36
  232. package/es/modules/gct-table/state/table-item/table-edit-item.state.mjs +19 -9
  233. package/es/modules/gct-table/state/table-item/table-item.state.mjs +29 -19
  234. package/es/modules/gct-table/state/table-row/table-row.state.mjs +16 -6
  235. package/es/modules/gct-table/utils/count-latch/count-latch.mjs +97 -94
  236. package/es/modules/gct-table/utils/index.mjs +2 -0
  237. package/es/modules/gct-table/utils/width-install/width-install.mjs +18 -16
  238. package/es/modules/gct-table/widgets/gct-table/gct-table.mjs +310 -409
  239. package/es/modules/gct-table/widgets/gct-table/index.mjs +8 -10
  240. package/es/modules/gct-table/widgets/index.mjs +7 -9
  241. package/es/modules/global-modal/index.mjs +10 -16
  242. package/es/modules/global-modal/src/BasicModal.vue.mjs +5 -221
  243. package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +201 -0
  244. package/es/modules/global-modal/src/components/GlboalModal.mjs +30 -39
  245. package/es/modules/global-modal/src/components/ModalClose.vue.mjs +6 -79
  246. package/es/modules/global-modal/src/components/ModalClose.vue_vue_type_script_setup_true_name_ModalClose_lang.mjs +67 -0
  247. package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +5 -44
  248. package/es/modules/global-modal/src/components/ModalFooter.vue_vue_type_script_setup_true_name_BasicModalFooter_lang.mjs +40 -0
  249. package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +9 -9
  250. package/es/modules/global-modal/src/components/ModalHeader.vue_vue_type_script_lang.mjs +11 -0
  251. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +18 -24
  252. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +126 -0
  253. package/es/modules/global-modal/src/hooks/useModal.mjs +102 -116
  254. package/es/modules/global-modal/src/hooks/useModalContext.mjs +6 -6
  255. package/es/modules/global-modal/src/hooks/useModalDrag.mjs +69 -79
  256. package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +17 -13
  257. package/es/modules/global-modal/src/props.mjs +87 -55
  258. package/es/modules/target-loading/index.mjs +3 -0
  259. package/es/modules/target-loading/src/createLoading.mjs +42 -54
  260. package/es/modules/target-loading/src/target-loading.vue.mjs +7 -52
  261. package/es/modules/target-loading/src/target-loading.vue_vue_type_script_setup_true_name_target-loading_lang.mjs +55 -0
  262. package/es/modules/target-loading/src/useLoading.mjs +2 -0
  263. package/es/setup-app.mjs +3 -3
  264. package/es/utils/index.mjs +4 -0
  265. package/es/utils/message-util/message-util.mjs +25 -25
  266. package/es/utils/monaco-loader/monaco-loader.mjs +83 -87
  267. package/es/utils/overlay-controller/overlay-controller.mjs +29 -20
  268. package/es/utils/with-install.mjs +10 -11
  269. package/package.json +5 -5
  270. package/dist/index-B8zoAUhR.cjs +0 -20
  271. package/dist/index-BH5PTZ_c.js +0 -20
  272. package/dist/index-Cna4DZog.js +0 -109381
  273. package/dist/index.esm.min.mjs +0 -91
  274. package/dist/index.min.cjs +0 -1
  275. package/dist/index.system.min.js +0 -1
  276. package/dist/monaco-editor-4E2xdOou.cjs +0 -1
  277. package/dist/monaco-editor-C-wvzgow.js +0 -1
  278. package/dist/monaco-editor-Cel355Cg.js +0 -350
  279. package/es/components/base-button/base-button.vue3.mjs +0 -179
  280. package/es/components/basic-button/basic-button.vue3.mjs +0 -130
  281. package/es/components/copy-module-key/copy-module-key.vue3.mjs +0 -104
  282. package/es/components/double-input/double-input.vue2.mjs +0 -5
  283. package/es/components/icon-next/src/IconNext.vue2.mjs +0 -7
  284. package/es/components/icon-next/src/IconNext.vue3.mjs +0 -108
  285. package/es/components/icon-next/src/IconNextPicker.vue2.mjs +0 -452
  286. package/es/components/icon-next/src/IconNextPicker.vue3.mjs +0 -6
  287. package/es/components/svg-icon/svg-icon.vue3.mjs +0 -6
  288. package/es/modules/code-editor/monaco-editor.vue2.mjs +0 -440
  289. package/es/modules/color-picker/src/ColorPicker.vue2.mjs +0 -545
  290. package/es/modules/gct-form/widgets/gct-edit-form/index.d.ts +0 -5
  291. package/es/modules/gct-form/widgets/gct-edit-form/index.mjs +0 -10
  292. package/es/modules/global-modal/src/BasicModal.vue2.mjs +0 -5
  293. package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +0 -6
  294. package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +0 -5
  295. package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +0 -13
  296. package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +0 -136
  297. package/es/modules/target-loading/src/target-loading.vue3.mjs +0 -7
  298. /package/es/components/base-button/{base-button.css → base-button.vue_vue_type_style_index_0_scoped_5375ec2b_lang.css} +0 -0
  299. /package/es/components/basic-button/{basic-button.css → basic-button.vue_vue_type_style_index_0_scoped_1dbcb2fa_lang.css} +0 -0
  300. /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
  301. /package/es/components/icon-next/src/{IconNext.css → IconNext.vue_vue_type_style_index_0_scoped_c5a83130_lang.css} +0 -0
  302. /package/es/components/icon-next/src/{IconNextPicker.css → IconNextPicker.vue_vue_type_style_index_0_lang.css} +0 -0
  303. /package/es/components/svg-icon/{svg-icon.css → svg-icon.vue_vue_type_style_index_0_lang.css} +0 -0
  304. /package/es/modules/code-editor/{monaco-editor.css → monaco-editor.vue_vue_type_style_index_0_scoped_254c9227_lang.css} +0 -0
  305. /package/es/modules/color-picker/src/{ColorPicker.css → ColorPicker.vue_vue_type_style_index_0_scoped_7bfd9ca3_lang.css} +0 -0
  306. /package/es/modules/color-picker/src/{ColorPicker2.css → ColorPicker.vue_vue_type_style_index_1_lang.css} +0 -0
  307. /package/es/modules/global-modal/src/components/{ModalClose.css → ModalClose.vue_vue_type_style_index_0_lang.css} +0 -0
  308. /package/es/modules/target-loading/src/{target-loading.css → target-loading.vue_vue_type_style_index_0_scoped_d448466c_lang.css} +0 -0
@@ -1,66 +1,62 @@
1
- import { defineComponent, computed, ref, onMounted, onUnmounted, createVNode } from 'vue';
2
- import { useNamespace, deepMerge } from '@gct-paas/core';
3
- import loader from '@monaco-editor/loader';
4
1
  import './code-editor.css';/* empty css */
5
-
6
- const CodeEditor = /* @__PURE__ */ defineComponent({
7
- name: 'CodeEditor',
8
- props: {
9
- value: {
10
- type: String,
11
- default: ''
12
- },
13
- config: {
14
- type: Object,
15
- default: () => ({})
16
- },
17
- language: {
18
- type: String,
19
- default: 'typescript'
20
- }
21
- },
22
- emits: ['update:value'],
23
- setup(props, {
24
- emit
25
- }) {
26
- const ns = useNamespace('code-editor');
27
- const val = computed({
28
- get() {
29
- return props.value || '';
30
- },
31
- set(v) {
32
- emit('update:value', v);
33
- }
34
- });
35
- const el = ref(null);
36
- let monacoEditor = null;
37
- onMounted(() => {
38
- loader.init().then(m => {
39
- if (el.value) {
40
- monacoEditor = m.editor.create(el.value, deepMerge({
41
- value: val.value,
42
- language: props.language,
43
- automaticLayout: true,
44
- minimap: {
45
- enabled: false
46
- }
47
- }, props.config));
48
- monacoEditor.onDidBlurEditorText(() => {
49
- val.value = monacoEditor.getValue();
50
- });
51
- }
52
- });
53
- });
54
- onUnmounted(() => {
55
- monacoEditor?.dispose();
56
- });
57
- return () => {
58
- return createVNode("div", {
59
- "ref": el,
60
- "class": ns.b()
61
- }, null);
62
- };
63
- }
2
+ import { computed, createVNode, defineComponent, onMounted, onUnmounted, ref } from "vue";
3
+ import { deepMerge, useNamespace } from "@gct-paas/core";
4
+ import loader from "@monaco-editor/loader";
5
+ //#region src/components/code-editor/code-editor.tsx
6
+ var CodeEditor = /* @__PURE__ */ defineComponent({
7
+ name: "CodeEditor",
8
+ props: {
9
+ value: {
10
+ type: String,
11
+ default: ""
12
+ },
13
+ config: {
14
+ type: Object,
15
+ default: () => ({})
16
+ },
17
+ language: {
18
+ type: String,
19
+ default: "typescript"
20
+ }
21
+ },
22
+ emits: ["update:value"],
23
+ setup(props, { emit }) {
24
+ const ns = useNamespace("code-editor");
25
+ const val = computed({
26
+ get() {
27
+ return props.value || "";
28
+ },
29
+ set(v) {
30
+ emit("update:value", v);
31
+ }
32
+ });
33
+ const el = ref(null);
34
+ let monacoEditor = null;
35
+ onMounted(() => {
36
+ loader.init().then((m) => {
37
+ if (el.value) {
38
+ monacoEditor = m.editor.create(el.value, deepMerge({
39
+ value: val.value,
40
+ language: props.language,
41
+ automaticLayout: true,
42
+ minimap: { enabled: false }
43
+ }, props.config));
44
+ monacoEditor.onDidBlurEditorText(() => {
45
+ val.value = monacoEditor.getValue();
46
+ });
47
+ }
48
+ });
49
+ });
50
+ onUnmounted(() => {
51
+ monacoEditor?.dispose();
52
+ });
53
+ return () => {
54
+ return createVNode("div", {
55
+ "ref": el,
56
+ "class": ns.b()
57
+ }, null);
58
+ };
59
+ }
64
60
  });
65
-
61
+ //#endregion
66
62
  export { CodeEditor };
@@ -1,7 +1,7 @@
1
- import _sfc_main from './copy-module-key.vue3.mjs';
2
- import './copy-module-key.css';/* empty css */
3
- import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
4
-
5
- const copyModuleKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-531b3cd2"]]);
6
-
7
- export { copyModuleKey as default };
1
+ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default from "./copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs";
3
+ import './copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css';/* empty css */
4
+ //#region src/components/copy-module-key/copy-module-key.vue
5
+ var copy_module_key_default = /* @__PURE__ */ _plugin_vue_export_helper_default(copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default, [["__scopeId", "data-v-531b3cd2"]]);
6
+ //#endregion
7
+ export { copy_module_key_default as default };
@@ -0,0 +1,92 @@
1
+ import { computed, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeStyle, openBlock, renderSlot, resolveComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
2
+ import { t, useCopyToClipboard } from "@gct-paas/core";
3
+ //#region src/components/copy-module-key/copy-module-key.vue?vue&type=script&setup=true&name=copy-module-key&lang.ts
4
+ var _hoisted_1 = {
5
+ key: 0,
6
+ class: "copy-wrap copy-wrap-tooltip"
7
+ };
8
+ var _hoisted_2 = {
9
+ key: 0,
10
+ class: "copy-key"
11
+ };
12
+ var _hoisted_3 = {
13
+ key: 1,
14
+ class: "copy-wrap"
15
+ };
16
+ var copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default = /* @__PURE__ */ defineComponent({
17
+ __name: "copy-module-key",
18
+ props: {
19
+ moduleKey: {
20
+ type: String,
21
+ require: true
22
+ },
23
+ isTooltip: Boolean,
24
+ supportCopy: {
25
+ type: Boolean,
26
+ default: true
27
+ },
28
+ iconPos: {
29
+ type: String,
30
+ default: "right"
31
+ },
32
+ showText: {
33
+ type: Boolean,
34
+ default: true
35
+ },
36
+ fontSize: {
37
+ type: Number,
38
+ default: 14
39
+ }
40
+ },
41
+ setup(__props) {
42
+ const props = __props;
43
+ const isShowCopyIcon = computed(() => {
44
+ return props.moduleKey && props.supportCopy;
45
+ });
46
+ function handleClipboardKey() {
47
+ const { isSuccessRef } = useCopyToClipboard(props.moduleKey);
48
+ unref(isSuccessRef) && _gct.message.success(t("sys.copySuccess"));
49
+ }
50
+ return (_ctx, _cache) => {
51
+ const _component_a_tooltip = resolveComponent("a-tooltip");
52
+ return __props.isTooltip ? (openBlock(), createElementBlock("div", _hoisted_1, [
53
+ isShowCopyIcon.value && __props.iconPos === "left" ? (openBlock(), createElementBlock("i", {
54
+ key: 0,
55
+ class: "iconfont icon-fuzhi primary-gct",
56
+ style: { "margin-right": "4px" },
57
+ onClick: withModifiers(handleClipboardKey, ["stop"])
58
+ })) : createCommentVNode("", true),
59
+ createVNode(_component_a_tooltip, null, {
60
+ title: withCtx(() => [createTextVNode(toDisplayString(__props.moduleKey), 1)]),
61
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [__props.showText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.moduleKey), 1)) : createCommentVNode("", true)], true)]),
62
+ _: 3
63
+ }),
64
+ isShowCopyIcon.value && __props.iconPos === "right" ? (openBlock(), createElementBlock("i", {
65
+ key: 1,
66
+ class: "iconfont icon-fuzhi primary-gct",
67
+ style: { "margin-left": "4px" },
68
+ onClick: withModifiers(handleClipboardKey, ["stop"])
69
+ })) : createCommentVNode("", true)
70
+ ])) : (openBlock(), createElementBlock("div", _hoisted_3, [
71
+ isShowCopyIcon.value && __props.iconPos === "left" ? (openBlock(), createElementBlock("i", {
72
+ key: 0,
73
+ class: "iconfont icon-fuzhi primary-gct",
74
+ style: { "margin-right": "4px" },
75
+ onClick: withModifiers(handleClipboardKey, ["stop"])
76
+ })) : createCommentVNode("", true),
77
+ renderSlot(_ctx.$slots, "default", {}, () => [__props.showText ? (openBlock(), createElementBlock("span", {
78
+ key: 0,
79
+ style: normalizeStyle(`font-size: ${__props.fontSize}px; overflow-wrap: anywhere`)
80
+ }, toDisplayString(__props.moduleKey), 5)) : createCommentVNode("", true)], true),
81
+ isShowCopyIcon.value && __props.iconPos === "right" ? (openBlock(), createElementBlock("i", {
82
+ key: 1,
83
+ class: "iconfont icon-fuzhi primary-gct",
84
+ style: { "margin-left": "4px" },
85
+ onClick: withModifiers(handleClipboardKey, ["stop"])
86
+ })) : createCommentVNode("", true)
87
+ ]));
88
+ };
89
+ }
90
+ });
91
+ //#endregion
92
+ export { copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_default as default };
@@ -1,158 +1,5 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, resolveDynamicComponent, createCommentVNode } from 'vue';
2
- import { isNil } from 'lodash-es';
3
- import { BigNumber } from 'bignumber.js';
4
-
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "double-input",
7
- props: {
8
- doubleValue: {},
9
- isSeparator: { type: Boolean },
10
- onEnter: {},
11
- renderScript: {},
12
- digits: {},
13
- enableStepCounter: { type: Boolean }
14
- },
15
- emits: ["update:doubleValue"],
16
- setup(__props, { expose: __expose, emit: __emit }) {
17
- const props = __props;
18
- const emit = __emit;
19
- const inputAttr = ref({});
20
- const inputNumberRef = ref();
21
- const inputValue = computed({
22
- get() {
23
- const { val, precision } = getFormatterValue(props.doubleValue);
24
- setInputAttr(precision);
25
- return val;
26
- },
27
- set(value) {
28
- emit("update:doubleValue", value);
29
- }
30
- });
31
- const countDecimals = (num) => {
32
- const str = String(num);
33
- const match = str.match(/\.(\d+)/);
34
- return match ? match[1].length : 0;
35
- };
36
- const formatterValue = (inputValue2) => {
37
- let value = inputValue2?.toString();
38
- if (props.isSeparator && value) {
39
- value = value.replace(/\$\s?|(,*)/g, "");
40
- }
41
- const currentValue = parseFloat(value);
42
- if (isNaN(currentValue)) {
43
- return {
44
- val: null
45
- };
46
- }
47
- if (value.toString().indexOf(".") === 0) {
48
- value = `0${value}`;
49
- }
50
- if (Number.isInteger(currentValue)) {
51
- const reg = new RegExp(`^${currentValue}(\\.)`, "g");
52
- if (reg.test(value)) {
53
- const firstVal = value.replace(
54
- new RegExp(`^(${currentValue}(\\.))(.*)`),
55
- "$1"
56
- );
57
- if (firstVal === `${currentValue}.`) {
58
- const otherVal = value.replace(reg, "");
59
- let dIndex = otherVal.toString().indexOf(".");
60
- if (dIndex === 0) {
61
- return {
62
- val: currentValue
63
- };
64
- }
65
- if (parseFloat(otherVal) === 0) {
66
- const decimalValue = otherVal.toString().replace(new RegExp(`^(\\d*)(.*)`), "$1");
67
- return {
68
- val: `${currentValue}.${decimalValue}`,
69
- precision: decimalValue.length
70
- };
71
- }
72
- }
73
- }
74
- return {
75
- val: currentValue
76
- };
77
- } else {
78
- const _val = value.replace(new RegExp(`^(\\d*\\.\\d*)(.*)`), "$1");
79
- if (_val === currentValue.toString()) {
80
- return {
81
- val: _val
82
- };
83
- }
84
- return {
85
- val: _val,
86
- precision: countDecimals(_val)
87
- };
88
- }
89
- };
90
- const getFormatterValue = (inputValue2) => {
91
- const res = formatterValue(inputValue2);
92
- if (isNil(props.digits)) {
93
- return res;
94
- }
95
- const { val, precision } = res;
96
- return {
97
- val: val ? Number(new BigNumber(val).toFixed(props.digits, 1)) : val,
98
- precision
99
- };
100
- };
101
- const setInputAttr = (precision) => {
102
- inputAttr.value = {};
103
- if (precision !== void 0 && isNil(props.digits)) {
104
- inputAttr.value = {
105
- precision
106
- };
107
- }
108
- };
109
- const onChangeValue = (event) => {
110
- const {
111
- target: { value: inputValue2 }
112
- } = event || {};
113
- const { val, precision } = getFormatterValue(inputValue2);
114
- setInputAttr(precision);
115
- emit("update:doubleValue", val);
116
- };
117
- const onPressEnter = (event) => {
118
- onChangeValue(event);
119
- if (props.onEnter && typeof props.onEnter === "function") {
120
- props.onEnter?.(event);
121
- }
122
- };
123
- __expose({
124
- input: inputNumberRef,
125
- onChangeValue
126
- });
127
- return (_ctx, _cache) => {
128
- const _component_a_input_number = resolveComponent("a-input-number");
129
- return openBlock(), createBlock(_component_a_input_number, mergeProps({
130
- ref_key: "inputNumberRef",
131
- ref: inputNumberRef
132
- }, inputAttr.value, {
133
- value: inputValue.value,
134
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
135
- onBlur: onChangeValue,
136
- onPressEnter
137
- }), createSlots({ _: 2 }, [
138
- __props.enableStepCounter ? {
139
- name: "addonBefore",
140
- fn: withCtx(() => [
141
- renderSlot(_ctx.$slots, "step-down")
142
- ]),
143
- key: "0"
144
- } : void 0,
145
- __props.enableStepCounter || __props.renderScript ? {
146
- name: "addonAfter",
147
- fn: withCtx(() => [
148
- __props.renderScript ? (openBlock(), createBlock(resolveDynamicComponent(__props.renderScript), { key: 0 })) : createCommentVNode("", true),
149
- __props.enableStepCounter ? renderSlot(_ctx.$slots, "step-up", { key: 1 }) : createCommentVNode("", true)
150
- ]),
151
- key: "1"
152
- } : void 0
153
- ]), 1040, ["value"]);
154
- };
155
- }
156
- });
157
-
158
- export { _sfc_main as default };
1
+ import double_input_vue_vue_type_script_setup_true_lang_default from "./double-input.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region src/components/double-input/double-input.vue
3
+ var double_input_default = double_input_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { double_input_default as default };
@@ -0,0 +1,121 @@
1
+ import { computed, createBlock, createCommentVNode, createSlots, defineComponent, mergeProps, openBlock, ref, renderSlot, resolveComponent, resolveDynamicComponent, withCtx } from "vue";
2
+ import { isNil } from "lodash-es";
3
+ import { BigNumber } from "bignumber.js";
4
+ //#region src/components/double-input/double-input.vue?vue&type=script&setup=true&lang.ts
5
+ var double_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "double-input",
7
+ props: {
8
+ doubleValue: {},
9
+ isSeparator: { type: Boolean },
10
+ onEnter: {},
11
+ renderScript: {},
12
+ digits: {},
13
+ enableStepCounter: { type: Boolean }
14
+ },
15
+ emits: ["update:doubleValue"],
16
+ setup(__props, { expose: __expose, emit: __emit }) {
17
+ const props = __props;
18
+ const emit = __emit;
19
+ const inputAttr = ref({});
20
+ const inputNumberRef = ref();
21
+ const inputValue = computed({
22
+ get() {
23
+ const { val, precision } = getFormatterValue(props.doubleValue);
24
+ setInputAttr(precision);
25
+ return val;
26
+ },
27
+ set(value) {
28
+ emit("update:doubleValue", value);
29
+ }
30
+ });
31
+ const countDecimals = (num) => {
32
+ const match = String(num).match(/\.(\d+)/);
33
+ return match ? match[1].length : 0;
34
+ };
35
+ const formatterValue = (inputValue) => {
36
+ let value = inputValue?.toString();
37
+ if (props.isSeparator && value) value = value.replace(/\$\s?|(,*)/g, "");
38
+ const currentValue = parseFloat(value);
39
+ if (isNaN(currentValue)) return { val: null };
40
+ if (value.toString().indexOf(".") === 0) value = `0${value}`;
41
+ if (Number.isInteger(currentValue)) {
42
+ const reg = new RegExp(`^${currentValue}(\\.)`, "g");
43
+ if (reg.test(value)) {
44
+ if (value.replace(new RegExp(`^(${currentValue}(\\.))(.*)`), "$1") === `${currentValue}.`) {
45
+ const otherVal = value.replace(reg, "");
46
+ if (otherVal.toString().indexOf(".") === 0) return { val: currentValue };
47
+ if (parseFloat(otherVal) === 0) {
48
+ const decimalValue = otherVal.toString().replace(new RegExp(`^(\\d*)(.*)`), "$1");
49
+ return {
50
+ val: `${currentValue}.${decimalValue}`,
51
+ precision: decimalValue.length
52
+ };
53
+ }
54
+ }
55
+ }
56
+ return { val: currentValue };
57
+ } else {
58
+ const _val = value.replace(new RegExp(`^(\\d*\\.\\d*)(.*)`), "$1");
59
+ if (_val === currentValue.toString()) return { val: _val };
60
+ return {
61
+ val: _val,
62
+ precision: countDecimals(_val)
63
+ };
64
+ }
65
+ };
66
+ const getFormatterValue = (inputValue) => {
67
+ const res = formatterValue(inputValue);
68
+ if (isNil(props.digits)) return res;
69
+ const { val, precision } = res;
70
+ return {
71
+ val: val ? Number(new BigNumber(val).toFixed(props.digits, 1)) : val,
72
+ precision
73
+ };
74
+ };
75
+ const setInputAttr = (precision) => {
76
+ inputAttr.value = {};
77
+ if (precision !== void 0 && isNil(props.digits)) inputAttr.value = { precision };
78
+ };
79
+ const onChangeValue = (event) => {
80
+ const { target: { value: inputValue } } = event || {};
81
+ const { val, precision } = getFormatterValue(inputValue);
82
+ setInputAttr(precision);
83
+ emit("update:doubleValue", val);
84
+ };
85
+ /**
86
+ * @function onPressEnter
87
+ * @description 按下回车时触发,调用 onChangeValue 并执行 onEnter 回调
88
+ * @param {IInputEvent} event - 输入事件对象
89
+ */
90
+ const onPressEnter = (event) => {
91
+ onChangeValue(event);
92
+ if (props.onEnter && typeof props.onEnter === "function") props.onEnter?.(event);
93
+ };
94
+ __expose({
95
+ input: inputNumberRef,
96
+ onChangeValue
97
+ });
98
+ return (_ctx, _cache) => {
99
+ const _component_a_input_number = resolveComponent("a-input-number");
100
+ return openBlock(), createBlock(_component_a_input_number, mergeProps({
101
+ ref_key: "inputNumberRef",
102
+ ref: inputNumberRef
103
+ }, inputAttr.value, {
104
+ value: inputValue.value,
105
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
106
+ onBlur: onChangeValue,
107
+ onPressEnter
108
+ }), createSlots({ _: 2 }, [__props.enableStepCounter ? {
109
+ name: "addonBefore",
110
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "step-down")]),
111
+ key: "0"
112
+ } : void 0, __props.enableStepCounter || __props.renderScript ? {
113
+ name: "addonAfter",
114
+ fn: withCtx(() => [__props.renderScript ? (openBlock(), createBlock(resolveDynamicComponent(__props.renderScript), { key: 0 })) : createCommentVNode("", true), __props.enableStepCounter ? renderSlot(_ctx.$slots, "step-up", { key: 1 }) : createCommentVNode("", true)]),
115
+ key: "1"
116
+ } : void 0]), 1040, ["value"]);
117
+ };
118
+ }
119
+ });
120
+ //#endregion
121
+ export { double_input_vue_vue_type_script_setup_true_lang_default as default };
@@ -1,48 +1,36 @@
1
- import { ref, computed } from 'vue';
2
- import { IconNamespaceEnum } from '../types/index.mjs';
3
-
4
- const iconAssetIcons = ref([]);
5
- const iconParkCats = computed(() => {
6
- return [
7
- {
8
- id: "IconAsset",
9
- name: "资产图标",
10
- children: iconAssetIcons.value
11
- }
12
- ].filter((i) => i.children?.length);
1
+ import { IconNamespaceEnum } from "../types/index.mjs";
2
+ import { computed, ref } from "vue";
3
+ //#region src/components/icon-next/hooks/useIconAsset.ts
4
+ var iconAssetIcons = ref([]);
5
+ var iconParkCats = computed(() => {
6
+ return [{
7
+ id: "IconAsset",
8
+ name: "资产图标",
9
+ children: iconAssetIcons.value
10
+ }].filter((i) => i.children?.length);
13
11
  });
14
12
  function useIconAsset() {
15
- async function getIconAssetCats() {
16
- if (iconAssetIcons.value.length > 0) {
17
- return iconParkCats.value;
18
- }
19
- const params = {
20
- assetsModule: "ICON"
21
- };
22
- const result = await Promise.all([
23
- _api.platform.category.getList(params),
24
- _api.platform.assets.getList(params)
25
- ]).then(([catRes, iconRes]) => {
26
- return catRes?.map((c) => {
27
- return {
28
- id: `${c.id}`,
29
- name: c.name,
30
- icons: iconRes?.filter((i) => i.categoryId === c.id).map((item) => {
31
- Object.assign(item, {
32
- id: `${IconNamespaceEnum.Asset}:${item.path}`,
33
- _filter_: [item.name]
34
- });
35
- return item;
36
- })
37
- };
38
- }).filter((i) => i.icons?.length);
39
- });
40
- iconAssetIcons.value = result;
41
- return iconParkCats.value;
42
- }
43
- return {
44
- getIconAssetCats
45
- };
13
+ async function getIconAssetCats() {
14
+ if (iconAssetIcons.value.length > 0) return iconParkCats.value;
15
+ const params = { assetsModule: "ICON" };
16
+ iconAssetIcons.value = await Promise.all([_api.platform.category.getList(params), _api.platform.assets.getList(params)]).then(([catRes, iconRes]) => {
17
+ return catRes?.map((c) => {
18
+ return {
19
+ id: `${c.id}`,
20
+ name: c.name,
21
+ icons: iconRes?.filter((i) => i.categoryId === c.id).map((item) => {
22
+ Object.assign(item, {
23
+ id: `${IconNamespaceEnum.Asset}:${item.path}`,
24
+ _filter_: [item.name]
25
+ });
26
+ return item;
27
+ })
28
+ };
29
+ }).filter((i) => i.icons?.length);
30
+ });
31
+ return iconParkCats.value;
32
+ }
33
+ return { getIconAssetCats };
46
34
  }
47
-
35
+ //#endregion
48
36
  export { useIconAsset };