@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
@@ -0,0 +1,379 @@
1
+ import { IconNamespaceEnum } from "../types/index.mjs";
2
+ import IconNext_default from "./IconNext.vue.mjs";
3
+ import { useIconAsset } from "../hooks/useIconAsset.mjs";
4
+ import { useIconPark } from "../hooks/useIconPark.mjs";
5
+ import { useIconPlatform } from "../hooks/useIconPlatform.mjs";
6
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vModelText, withCtx, withDirectives } from "vue";
7
+ import { cloneDeep, debounce } from "lodash-es";
8
+ import { usePlatformConfigStore } from "@gct-paas/core";
9
+ import { Empty, Form } from "ant-design-vue";
10
+ import "overlayscrollbars-vue";
11
+ //#region src/components/icon-next/src/IconNextPicker.vue?vue&type=script&setup=true&name=IconNextPicker&lang.ts
12
+ var _hoisted_1 = { class: "icon-picker-next" };
13
+ var _hoisted_2 = { class: "p-12px" };
14
+ var _hoisted_3 = { class: "flex icon-picker-next__container" };
15
+ var _hoisted_4 = { class: "icon-picker-next__cats" };
16
+ var _hoisted_5 = [
17
+ "title",
18
+ "data-id",
19
+ "onClick"
20
+ ];
21
+ var _hoisted_6 = { class: "icon-picker-next__panel" };
22
+ var _hoisted_7 = { class: "icon-picker-next__icons" };
23
+ var _hoisted_8 = { class: "icon__list" };
24
+ var _hoisted_9 = [
25
+ "title",
26
+ "data-id",
27
+ "onClick"
28
+ ];
29
+ var _hoisted_10 = {
30
+ key: 0,
31
+ class: "color__setting"
32
+ };
33
+ var _hoisted_11 = { class: "color__list" };
34
+ var _hoisted_12 = ["onClick"];
35
+ var _hoisted_13 = { class: "color__input" };
36
+ var _hoisted_14 = {
37
+ key: 1,
38
+ class: "color__setting"
39
+ };
40
+ var _hoisted_15 = { class: "color__list" };
41
+ var _hoisted_16 = ["onClick"];
42
+ var _hoisted_17 = { class: "color__input" };
43
+ var _hoisted_18 = {
44
+ key: 1,
45
+ class: "flex items-center justify-center h-full"
46
+ };
47
+ var DEFAULT_COLOR = "#FFFFFF";
48
+ var DEFAULT_BACKGROUND = "#3370FF";
49
+ var IconNextPicker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_default = /* @__PURE__ */ defineComponent({
50
+ __name: "IconNextPicker",
51
+ props: {
52
+ value: {
53
+ type: String,
54
+ required: true
55
+ },
56
+ disabled: {
57
+ type: Boolean,
58
+ default: false
59
+ },
60
+ color: {
61
+ type: String,
62
+ default: "#FFFFFF"
63
+ },
64
+ size: {
65
+ type: Number,
66
+ default: 30
67
+ },
68
+ showColor: {
69
+ type: Boolean,
70
+ default: false
71
+ },
72
+ background: { type: String },
73
+ showBackground: {
74
+ type: Boolean,
75
+ default: false
76
+ }
77
+ },
78
+ emits: [
79
+ "update:value",
80
+ "update:color",
81
+ "update:background"
82
+ ],
83
+ setup(__props, { emit: __emit }) {
84
+ const { themeSetting } = usePlatformConfigStore();
85
+ const props = __props;
86
+ const emit = __emit;
87
+ const { getIconAssetCats } = useIconAsset();
88
+ const { getIconParkCats } = useIconPark();
89
+ const { getIconPlatformCats } = useIconPlatform();
90
+ const { onFieldChange } = Form.useInjectFormItemContext();
91
+ const TreeScrollRef = ref();
92
+ const IconsScrollRef = ref();
93
+ const spinning = ref(false);
94
+ const BASIC_COLORS = [
95
+ "#3370FF",
96
+ "#0DAA9C",
97
+ "#EF3232",
98
+ "#EFA332",
99
+ "#18C8D3",
100
+ "#A33FF2"
101
+ ];
102
+ const ICON_COLOR = [DEFAULT_COLOR, ...BASIC_COLORS];
103
+ const ICON_BACKGROUND = ["transparent", ...BASIC_COLORS];
104
+ const customColor = ref(DEFAULT_COLOR);
105
+ const customColorChecked = ref(false);
106
+ const customBackground = ref(DEFAULT_COLOR);
107
+ const customBackgroundChecked = ref(false);
108
+ let catTreeCache = [];
109
+ const catTree = ref([]);
110
+ const catIcons = ref([]);
111
+ const selectedKeys = ref([]);
112
+ const searchKey = ref("");
113
+ const supportColor = computed(() => {
114
+ return catIcons.value.length > 0 && !catIcons.value[0].id.startsWith(IconNamespaceEnum.Asset);
115
+ });
116
+ /**
117
+ * 激活默认
118
+ */
119
+ const activeDefault = () => {
120
+ let cat = catTree.value[0] || {};
121
+ let selectCat = void 0;
122
+ if (cat) selectCat = cat.icons ? cat : cat.children?.[0];
123
+ if (selectCat) {
124
+ selectedKeys.value = [selectCat.id];
125
+ catIcons.value = selectCat.icons;
126
+ } else {
127
+ selectedKeys.value = [];
128
+ catIcons.value = [];
129
+ }
130
+ };
131
+ /**
132
+ * 激活已选
133
+ */
134
+ const activeSelected = async () => {
135
+ if (props.value) {
136
+ let cat = catTree.value.reduce((total, c) => {
137
+ if ("children" in c) total.push(...c.children);
138
+ else total.push(c);
139
+ return total;
140
+ }, []).find((c) => c.icons.map((i) => i.id).includes(props.value));
141
+ if (cat) {
142
+ selectedKeys.value = [cat.id];
143
+ catIcons.value = cat.icons;
144
+ await nextTick();
145
+ TreeScrollRef.value?.getElement()?.scrollIntoView({ block: "center" });
146
+ IconsScrollRef.value?.getElement()?.scrollIntoView({ block: "center" });
147
+ } else activeDefault();
148
+ } else activeDefault();
149
+ };
150
+ const handleVisibleChange = async (visible) => {
151
+ if (!visible) {
152
+ searchKey.value = "";
153
+ return;
154
+ }
155
+ spinning.value = true;
156
+ if (catTreeCache.length > 0) catTree.value = catTreeCache;
157
+ else {
158
+ const iconParkCats = getIconParkCats();
159
+ const iconAssetCats = await getIconAssetCats();
160
+ const iconPlatformCats = getIconPlatformCats();
161
+ catTreeCache = iconAssetCats.concat(iconParkCats).concat(iconPlatformCats);
162
+ catTree.value = catTreeCache;
163
+ }
164
+ if (!props.color) emit("update:color", DEFAULT_COLOR);
165
+ else if (ICON_COLOR.includes(props.color)) {
166
+ customColor.value = DEFAULT_COLOR;
167
+ customColorChecked.value = false;
168
+ } else {
169
+ customColor.value = props.color;
170
+ customColorChecked.value = true;
171
+ }
172
+ if (!props.background) emit("update:background", DEFAULT_BACKGROUND);
173
+ else if (ICON_BACKGROUND.includes(props.background)) {
174
+ customBackground.value = DEFAULT_COLOR;
175
+ customBackgroundChecked.value = false;
176
+ } else {
177
+ customBackground.value = props.background;
178
+ customBackgroundChecked.value = true;
179
+ }
180
+ activeSelected();
181
+ spinning.value = false;
182
+ };
183
+ function recursiveIcons(arr, searchKey) {
184
+ return arr.map((tree) => {
185
+ const childKey = ["children", "icons"].find((key) => !!tree[key]);
186
+ if (childKey) {
187
+ tree[childKey] = recursiveIcons(tree[childKey], searchKey);
188
+ if (tree[childKey].length > 0) return tree;
189
+ return;
190
+ } else {
191
+ if (tree._filter_.some((k) => k.includes(searchKey))) return tree;
192
+ return;
193
+ }
194
+ }).filter(Boolean);
195
+ }
196
+ /**
197
+ * 关键字过滤,基于_filter_字段过滤,支持文件名 name title tags
198
+ * 仅支持标准两级结构 T_T
199
+ * @param e
200
+ */
201
+ const searchKeyHandler = (e) => {
202
+ spinning.value = true;
203
+ const key = e.target.value?.trim();
204
+ if (!key) catTree.value = catTreeCache;
205
+ else catTree.value = recursiveIcons(cloneDeep(catTreeCache), key);
206
+ activeDefault();
207
+ spinning.value = false;
208
+ };
209
+ const handleSearchKeyChange = debounce(searchKeyHandler, 500);
210
+ const handleCategoryClick = (data) => {
211
+ if (data?.children && data?.children.length) return;
212
+ catIcons.value = data.icons ?? [];
213
+ selectedKeys.value = [data.id];
214
+ };
215
+ function handleIconClick(icon) {
216
+ emit("update:value", icon);
217
+ onFieldChange();
218
+ }
219
+ const handleSelectColor = (color, custom = false) => {
220
+ customColorChecked.value = custom;
221
+ emit("update:color", color);
222
+ onFieldChange();
223
+ };
224
+ const handleCustomColorChange = () => {
225
+ if (customColorChecked.value) {
226
+ emit("update:color", customColor.value);
227
+ onFieldChange();
228
+ }
229
+ };
230
+ const handleSelectBackground = (color, custom = false) => {
231
+ customBackgroundChecked.value = custom;
232
+ emit("update:background", color);
233
+ onFieldChange();
234
+ };
235
+ const handleCustomBackgroundChange = () => {
236
+ if (customBackgroundChecked.value) {
237
+ emit("update:background", customBackground.value);
238
+ onFieldChange();
239
+ }
240
+ };
241
+ return (_ctx, _cache) => {
242
+ const _component_a_input = resolveComponent("a-input");
243
+ const _component_a_tree = resolveComponent("a-tree");
244
+ const _component_overlayScrollbarsComponent = resolveComponent("overlayScrollbarsComponent");
245
+ const _component_CheckOutlined = resolveComponent("CheckOutlined");
246
+ const _component_a_empty = resolveComponent("a-empty");
247
+ const _component_a_spin = resolveComponent("a-spin");
248
+ const _component_a_popover = resolveComponent("a-popover");
249
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_popover, {
250
+ placement: "bottomLeft",
251
+ trigger: "click",
252
+ "overlay-class-name": "icon-picker-next__popover",
253
+ onVisibleChange: handleVisibleChange
254
+ }, {
255
+ content: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(_component_a_input, {
256
+ value: searchKey.value,
257
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
258
+ class: "icon-picker-next__search",
259
+ placeholder: "搜索图标",
260
+ "allow-clear": "",
261
+ onChange: _cache[1] || (_cache[1] = (e) => {
262
+ spinning.value = true;
263
+ unref(handleSearchKeyChange)(e);
264
+ })
265
+ }, {
266
+ prefix: withCtx(() => [..._cache[6] || (_cache[6] = [createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)])]),
267
+ _: 1
268
+ }, 8, ["value"])]), createVNode(_component_a_spin, { spinning: spinning.value }, {
269
+ default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(_component_overlayScrollbarsComponent, {
270
+ ref_key: "TreeScrollRef",
271
+ ref: TreeScrollRef
272
+ }, {
273
+ default: withCtx(() => [catTree.value.length > 0 ? (openBlock(), createBlock(_component_a_tree, {
274
+ key: 0,
275
+ "selected-keys": selectedKeys.value,
276
+ "default-expand-all": "",
277
+ "block-node": "",
278
+ "field-names": {
279
+ children: "children",
280
+ title: "name",
281
+ key: "id"
282
+ },
283
+ "tree-data": catTree.value
284
+ }, {
285
+ title: withCtx(({ data }) => [createElementVNode("div", {
286
+ class: "ell",
287
+ title: data.name,
288
+ "data-id": data.id,
289
+ onClick: ($event) => handleCategoryClick(data)
290
+ }, toDisplayString(data.name), 9, _hoisted_5)]),
291
+ _: 1
292
+ }, 8, ["selected-keys", "tree-data"])) : createCommentVNode("", true)]),
293
+ _: 1
294
+ }, 512)]), createElementVNode("div", _hoisted_6, [catIcons.value?.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
295
+ createElementVNode("div", _hoisted_7, [createVNode(_component_overlayScrollbarsComponent, {
296
+ ref_key: "IconsScrollRef",
297
+ ref: IconsScrollRef
298
+ }, {
299
+ default: withCtx(() => [createElementVNode("ul", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(catIcons.value, (icon) => {
300
+ return openBlock(), createElementBlock("li", {
301
+ key: icon.name,
302
+ style: normalizeStyle({ "--background": __props.background || unref(themeSetting).themeColor }),
303
+ class: normalizeClass({ "icon-picker-next--selected": icon.id === __props.value }),
304
+ title: icon.name,
305
+ "data-id": icon.id,
306
+ onClick: ($event) => handleIconClick(icon.id)
307
+ }, [createVNode(IconNext_default, {
308
+ value: icon.id,
309
+ color: icon.id === __props.value ? __props.color : DEFAULT_COLOR
310
+ }, null, 8, ["value", "color"])], 14, _hoisted_9);
311
+ }), 128))])]),
312
+ _: 1
313
+ }, 512)]),
314
+ __props.showBackground ? (openBlock(), createElementBlock("div", _hoisted_10, [
315
+ _cache[7] || (_cache[7] = createElementVNode("div", { class: "color__title" }, "背景颜色", -1)),
316
+ createElementVNode("div", _hoisted_11, [(openBlock(), createElementBlock(Fragment, null, renderList(ICON_BACKGROUND, (colorItem) => {
317
+ return createElementVNode("span", {
318
+ key: colorItem,
319
+ class: normalizeClass(["color__item", "color__item--" + colorItem]),
320
+ style: normalizeStyle({ backgroundColor: colorItem }),
321
+ onClick: () => handleSelectBackground(colorItem)
322
+ }, [__props.background === colorItem ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)], 14, _hoisted_12);
323
+ }), 64))]),
324
+ createElementVNode("div", _hoisted_13, [createElementVNode("div", {
325
+ class: "color__preview",
326
+ style: normalizeStyle({ "--custom-bg": customBackground.value }),
327
+ onClick: _cache[2] || (_cache[2] = () => handleSelectBackground(customBackground.value, true))
328
+ }, [customBackgroundChecked.value ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)], 4), withDirectives(createElementVNode("input", {
329
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => customBackground.value = $event),
330
+ type: "text",
331
+ onBlur: handleCustomBackgroundChange
332
+ }, null, 544), [[vModelText, customBackground.value]])])
333
+ ])) : createCommentVNode("", true),
334
+ __props.showColor && supportColor.value ? (openBlock(), createElementBlock("div", _hoisted_14, [
335
+ _cache[8] || (_cache[8] = createElementVNode("div", { class: "color__title" }, "图标色", -1)),
336
+ createElementVNode("div", _hoisted_15, [(openBlock(), createElementBlock(Fragment, null, renderList(ICON_COLOR, (colorItem) => {
337
+ return createElementVNode("span", {
338
+ key: colorItem,
339
+ class: "color__item",
340
+ style: normalizeStyle({ backgroundColor: colorItem }),
341
+ onClick: () => handleSelectColor(colorItem)
342
+ }, [__props.color === colorItem ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)], 12, _hoisted_16);
343
+ }), 64))]),
344
+ createElementVNode("div", _hoisted_17, [createElementVNode("div", {
345
+ class: "color__preview",
346
+ style: normalizeStyle({ "--custom-bg": customColor.value }),
347
+ onClick: _cache[4] || (_cache[4] = () => handleSelectColor(customColor.value, true))
348
+ }, [customColorChecked.value ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)], 4), withDirectives(createElementVNode("input", {
349
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => customColor.value = $event),
350
+ type: "text",
351
+ onBlur: handleCustomColorChange
352
+ }, null, 544), [[vModelText, customColor.value]])])
353
+ ])) : createCommentVNode("", true)
354
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_18, [createVNode(_component_a_empty, {
355
+ image: unref(Empty).PRESENTED_IMAGE_SIMPLE,
356
+ description: null
357
+ }, null, 8, ["image"])]))])])]),
358
+ _: 1
359
+ }, 8, ["spinning"])]),
360
+ default: withCtx(() => [createElementVNode("div", {
361
+ class: normalizeClass(["icon-picker-next__trigger cursor-pointer", { "icon-picker-next--selected": __props.value }]),
362
+ style: normalizeStyle({ "--background": __props.background || unref(themeSetting).themeColor })
363
+ }, [__props.value ? (openBlock(), createBlock(IconNext_default, {
364
+ key: 0,
365
+ value: __props.value,
366
+ size: __props.size,
367
+ color: __props.color
368
+ }, null, 8, [
369
+ "value",
370
+ "size",
371
+ "color"
372
+ ])) : createCommentVNode("", true), _cache[9] || (_cache[9] = createElementVNode("div", null, [createElementVNode("i", { class: "iconfont icon-bianji" })], -1))], 6)]),
373
+ _: 1
374
+ })]);
375
+ };
376
+ }
377
+ });
378
+ //#endregion
379
+ export { IconNextPicker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_default as default };
@@ -1,10 +1,11 @@
1
- var IconNamespaceEnum = /* @__PURE__ */ ((IconNamespaceEnum2) => {
2
- IconNamespaceEnum2["Preset"] = "icon-preset";
3
- IconNamespaceEnum2["IconPark"] = "icon-park";
4
- IconNamespaceEnum2["Asset"] = "icon-assert";
5
- IconNamespaceEnum2["Platform"] = "icon-platform";
6
- IconNamespaceEnum2["GctIconFont"] = "gct-iconfont";
7
- return IconNamespaceEnum2;
8
- })(IconNamespaceEnum || {});
9
-
1
+ //#region src/components/icon-next/types/index.ts
2
+ var IconNamespaceEnum = /* @__PURE__ */ function(IconNamespaceEnum) {
3
+ IconNamespaceEnum["Preset"] = "icon-preset";
4
+ IconNamespaceEnum["IconPark"] = "icon-park";
5
+ IconNamespaceEnum["Asset"] = "icon-assert";
6
+ IconNamespaceEnum["Platform"] = "icon-platform";
7
+ IconNamespaceEnum["GctIconFont"] = "gct-iconfont";
8
+ return IconNamespaceEnum;
9
+ }({});
10
+ //#endregion
10
11
  export { IconNamespaceEnum };
@@ -9,6 +9,7 @@ import { default as CopyModuleKey } from './copy-module-key/copy-module-key.vue'
9
9
  export { SvgIcon, AssetsSvgIcon, BaseButton, BasicButton, WuJieContainer, DoubleInput, CopyModuleKey, };
10
10
  export { CodeEditor } from './code-editor/code-editor';
11
11
  export { ViewContainer } from './layout/view-container/view-container';
12
+ export { Vue3GridDndItem } from './vue3-grid-dnd-item/vue3-grid-dnd-item';
12
13
  declare const _default: {
13
14
  install(app: App): void;
14
15
  };
@@ -1,34 +1,23 @@
1
- import _sfc_main from './svg-icon/svg-icon.vue.mjs';
2
- import './layout/view-container/view-container.css';import './code-editor/code-editor.css';import './icon-next/src/IconNextPicker.css';import './copy-module-key/copy-module-key.css';import './basic-button/basic-button.css';import './base-button/base-button.css';import './svg-icon/svg-icon.css';/* empty css */
3
- import { AssetsSvgIcon } from './assets-svg-icon/assets-svg-icon.mjs';
4
- import 'vue';
5
- import 'ant-design-vue';
6
- import 'lodash-es';
7
- import '@gct-paas/core';
8
- /* empty css */
9
- /* empty css */
10
- import { WuJieContainer } from './wujie-container/wujie-container.mjs';
11
- import 'bignumber.js';
12
- /* empty css */
13
- import '@gct-paas/platform-icons';
14
- import IconNext from './icon-next/src/IconNext.vue2.mjs';
15
- import _sfc_main$1 from './icon-next/src/IconNextPicker.vue2.mjs';
16
- /* empty css */
17
- import '@monaco-editor/loader';
18
- /* empty css */
19
- /* empty css */
20
-
21
- const Comps = {
22
- install(app) {
23
- app.component(AssetsSvgIcon.name, AssetsSvgIcon);
24
- app.component(_sfc_main.name, _sfc_main);
25
- app.component(WuJieContainer.name, WuJieContainer);
26
- app.component(IconNext.name || IconNext.__name, IconNext);
27
- app.component(
28
- _sfc_main$1.name || _sfc_main$1.__name,
29
- _sfc_main$1
30
- );
31
- }
32
- };
33
-
34
- export { AssetsSvgIcon, _sfc_main as SvgIcon, WuJieContainer, Comps as default };
1
+ import svg_icon_default from "./svg-icon/svg-icon.vue.mjs";
2
+ import { AssetsSvgIcon } from "./assets-svg-icon/assets-svg-icon.mjs";
3
+ import "./base-button/base-button.vue.mjs";
4
+ import "./basic-button/basic-button.vue.mjs";
5
+ import { WuJieContainer } from "./wujie-container/wujie-container.mjs";
6
+ import "./double-input/double-input.vue.mjs";
7
+ import "./copy-module-key/copy-module-key.vue.mjs";
8
+ import IconNext_default from "./icon-next/src/IconNext.vue.mjs";
9
+ import IconNextPicker_default from "./icon-next/src/IconNextPicker.vue.mjs";
10
+ import "./icon-next/index.mjs";
11
+ import "./code-editor/code-editor.mjs";
12
+ import "./layout/view-container/view-container.mjs";
13
+ import "./vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
14
+ //#region src/components/index.ts
15
+ var components_default = { install(app) {
16
+ app.component(AssetsSvgIcon.name, AssetsSvgIcon);
17
+ app.component(svg_icon_default.name, svg_icon_default);
18
+ app.component(WuJieContainer.name, WuJieContainer);
19
+ app.component(IconNext_default.name || IconNext_default.__name, IconNext_default);
20
+ app.component(IconNextPicker_default.name || IconNextPicker_default.__name, IconNextPicker_default);
21
+ } };
22
+ //#endregion
23
+ export { components_default as default };
@@ -1,38 +1,27 @@
1
- import { defineComponent, createVNode } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
1
  import './view-container.css';/* empty css */
4
-
5
- const ViewContainer = /* @__PURE__ */ defineComponent({
6
- name: 'ViewContainer',
7
- props: {
8
- context: {
9
- type: Object
10
- },
11
- params: {
12
- type: Object
13
- },
14
- modal: {
15
- type: Object,
16
- required: true
17
- }
18
- },
19
- setup() {
20
- const ns = useNamespace('view-container');
21
- return {
22
- ns
23
- };
24
- },
25
- render() {
26
- return createVNode("div", {
27
- "class": this.ns.b()
28
- }, [this.$slots.header ? createVNode("div", {
29
- "class": this.ns.b('header')
30
- }, [this.$slots.header()]) : null, createVNode("div", {
31
- "class": this.ns.b('content')
32
- }, [this.$slots.default?.()]), this.$slots.footer ? createVNode("div", {
33
- "class": this.ns.b('footer')
34
- }, [this.$slots.footer()]) : null]);
35
- }
2
+ import { createVNode, defineComponent } from "vue";
3
+ import { useNamespace } from "@gct-paas/core";
4
+ //#region src/components/layout/view-container/view-container.tsx
5
+ var ViewContainer = /* @__PURE__ */ defineComponent({
6
+ name: "ViewContainer",
7
+ props: {
8
+ context: { type: Object },
9
+ params: { type: Object },
10
+ modal: {
11
+ type: Object,
12
+ required: true
13
+ }
14
+ },
15
+ setup() {
16
+ return { ns: useNamespace("view-container") };
17
+ },
18
+ render() {
19
+ return createVNode("div", { "class": this.ns.b() }, [
20
+ this.$slots.header ? createVNode("div", { "class": this.ns.b("header") }, [this.$slots.header()]) : null,
21
+ createVNode("div", { "class": this.ns.b("content") }, [this.$slots.default?.()]),
22
+ this.$slots.footer ? createVNode("div", { "class": this.ns.b("footer") }, [this.$slots.footer()]) : null
23
+ ]);
24
+ }
36
25
  });
37
-
26
+ //#endregion
38
27
  export { ViewContainer };
@@ -1,50 +1,6 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, unref, createElementVNode } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
-
4
- const _hoisted_1 = ["xlink:href"];
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "svg-icon",
7
- props: {
8
- prefix: {
9
- type: String,
10
- default: "icon"
11
- },
12
- name: {
13
- type: String,
14
- required: true
15
- },
16
- size: {
17
- type: [Number, String],
18
- default: 16
19
- },
20
- spin: {
21
- type: Boolean,
22
- default: false
23
- }
24
- },
25
- setup(__props) {
26
- const ns = useNamespace("svg-icon");
27
- const props = __props;
28
- const symbolId = computed(() => `#${props.prefix}-${props.name}`);
29
- const getStyle = computed(() => {
30
- const { size } = props;
31
- let s = `${size}`;
32
- s = `${s.replace("px", "")}px`;
33
- return {
34
- width: s,
35
- height: s
36
- };
37
- });
38
- return (_ctx, _cache) => {
39
- return openBlock(), createElementBlock("svg", {
40
- class: normalizeClass([_ctx.$attrs.class, unref(ns).b(), __props.spin && unref(ns).m("spin")]),
41
- style: normalizeStyle(getStyle.value),
42
- "aria-hidden": "true"
43
- }, [
44
- createElementVNode("use", { "xlink:href": symbolId.value }, null, 8, _hoisted_1)
45
- ], 6);
46
- };
47
- }
48
- });
49
-
50
- export { _sfc_main as default };
1
+ import svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default from "./svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs";
2
+ import './svg-icon.vue_vue_type_style_index_0_lang.css';/* empty css */
3
+ //#region src/components/svg-icon/svg-icon.vue
4
+ var svg_icon_default = svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default;
5
+ //#endregion
6
+ export { svg_icon_default as default };
@@ -0,0 +1,52 @@
1
+ import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
2
+ import { useNamespace } from "@gct-paas/core";
3
+ //#region src/components/svg-icon/svg-icon.vue?vue&type=script&setup=true&name=SvgIcon&lang.ts
4
+ var _hoisted_1 = ["xlink:href"];
5
+ var svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "svg-icon",
7
+ props: {
8
+ prefix: {
9
+ type: String,
10
+ default: "icon"
11
+ },
12
+ name: {
13
+ type: String,
14
+ required: true
15
+ },
16
+ size: {
17
+ type: [Number, String],
18
+ default: 16
19
+ },
20
+ spin: {
21
+ type: Boolean,
22
+ default: false
23
+ }
24
+ },
25
+ setup(__props) {
26
+ const ns = useNamespace("svg-icon");
27
+ const props = __props;
28
+ const symbolId = computed(() => `#${props.prefix}-${props.name}`);
29
+ const getStyle = computed(() => {
30
+ const { size } = props;
31
+ let s = `${size}`;
32
+ s = `${s.replace("px", "")}px`;
33
+ return {
34
+ width: s,
35
+ height: s
36
+ };
37
+ });
38
+ return (_ctx, _cache) => {
39
+ return openBlock(), createElementBlock("svg", {
40
+ class: normalizeClass([
41
+ _ctx.$attrs.class,
42
+ unref(ns).b(),
43
+ __props.spin && unref(ns).m("spin")
44
+ ]),
45
+ style: normalizeStyle(getStyle.value),
46
+ "aria-hidden": "true"
47
+ }, [createElementVNode("use", { "xlink:href": symbolId.value }, null, 8, _hoisted_1)], 6);
48
+ };
49
+ }
50
+ });
51
+ //#endregion
52
+ export { svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default as default };