@gct-paas/core-web 0.1.4-dev.7 → 0.1.4-dev.9

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 (262) hide show
  1. package/dist/index-BghCpvxN.js +76 -0
  2. package/dist/index-PLrMc0gl.cjs +76 -0
  3. package/dist/index-oVPMi6Ep.js +29160 -0
  4. package/dist/index.esm.min.mjs +34 -7924
  5. package/dist/index.min.cjs +1 -20
  6. package/dist/index.min.css +1 -0
  7. package/dist/index.system.min.js +1 -20
  8. package/dist/monaco-editor-B8X-ou0h.js +20245 -0
  9. package/dist/monaco-editor-Bdgpd_KL.cjs +19 -0
  10. package/dist/monaco-editor-NIWDtQNB.js +19 -0
  11. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  12. package/es/components/app-modal/app-modal-component.css +149 -0
  13. package/es/components/app-modal/app-modal-component.d.ts +26 -0
  14. package/es/components/app-modal/app-modal-component.mjs +140 -0
  15. package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
  16. package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
  17. package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
  18. package/es/components/assets-svg-icon/request.d.ts +2 -0
  19. package/es/components/assets-svg-icon/request.mjs +51 -0
  20. package/es/components/assets-svg-icon/utils.d.ts +9 -0
  21. package/es/components/assets-svg-icon/utils.mjs +21 -0
  22. package/es/components/assets-svg-icon/validate.d.ts +4 -0
  23. package/es/components/assets-svg-icon/validate.mjs +43 -0
  24. package/es/components/base-button/base-button.css +74 -0
  25. package/es/components/base-button/base-button.vue.d.ts +173 -0
  26. package/es/components/base-button/base-button.vue.mjs +7 -0
  27. package/es/components/base-button/base-button.vue3.mjs +179 -0
  28. package/es/components/basic-button/basic-button.css +25 -0
  29. package/es/components/basic-button/basic-button.vue.d.ts +100 -0
  30. package/es/components/basic-button/basic-button.vue.mjs +7 -0
  31. package/es/components/basic-button/basic-button.vue3.mjs +130 -0
  32. package/es/components/code-editor/code-editor.css +67 -0
  33. package/es/components/code-editor/code-editor.d.ts +1 -1
  34. package/es/components/code-editor/code-editor.mjs +9 -10
  35. package/es/components/index.d.ts +10 -0
  36. package/es/components/index.mjs +21 -6
  37. package/es/components/layout/flex-container/flex-container.css +67 -0
  38. package/es/components/layout/flex-container/flex-container.mjs +13 -9
  39. package/es/components/layout/flex-item/flex-item.mjs +11 -9
  40. package/es/components/layout/grid-container/grid-container.mjs +11 -7
  41. package/es/components/layout/view-container/view-container.css +83 -0
  42. package/es/components/layout/view-container/view-container.mjs +6 -7
  43. package/es/components/svg-icon/svg-icon.css +73 -0
  44. package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
  45. package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
  46. package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
  47. package/es/create-app-vue.d.ts +9 -0
  48. package/es/create-app-vue.mjs +17 -0
  49. package/es/directives/drag-resize.d.ts +4 -0
  50. package/es/directives/drag-resize.mjs +42 -0
  51. package/es/directives/index.d.ts +8 -0
  52. package/es/directives/index.mjs +9 -0
  53. package/es/directives/target-loading.d.ts +4 -0
  54. package/es/directives/target-loading.mjs +40 -0
  55. package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +1 -1
  56. package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +1 -1
  57. package/es/editor/gct-form-info/gct-form-info.d.ts +1 -1
  58. package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +1 -1
  59. package/es/editor/gct-form-number/gct-form-number.d.ts +1 -1
  60. package/es/editor/gct-form-radio/gct-form-radio.d.ts +1 -1
  61. package/es/editor/gct-form-select/gct-form-select.d.ts +1 -1
  62. package/es/editor/gct-form-switch/gct-form-switch.d.ts +1 -1
  63. package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +1 -1
  64. package/es/hooks/index.d.ts +3 -0
  65. package/es/hooks/useDragLine.d.ts +6 -0
  66. package/es/hooks/useDragLine.mjs +79 -0
  67. package/es/hooks/useLocale.d.ts +4 -0
  68. package/es/hooks/useLocale.mjs +32 -0
  69. package/es/hooks/useTheme.d.ts +8 -0
  70. package/es/hooks/useTheme.mjs +20 -0
  71. package/es/index.d.ts +7 -7
  72. package/es/index.mjs +35 -24
  73. package/es/modules/code-editor/index.d.ts +163 -0
  74. package/es/modules/code-editor/index.mjs +8 -0
  75. package/es/modules/code-editor/monaco-editor.css +49 -0
  76. package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
  77. package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
  78. package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
  79. package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
  80. package/es/modules/code-editor/useEditorConsole.mjs +194 -0
  81. package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
  82. package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
  83. package/es/modules/color-picker/index.d.ts +2 -0
  84. package/es/modules/color-picker/src/ColorPicker.css +16 -0
  85. package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
  86. package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
  87. package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
  88. package/es/modules/color-picker/src/ColorPicker2.css +156 -0
  89. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
  90. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
  91. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
  92. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
  93. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
  94. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
  95. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
  96. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
  97. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
  98. package/es/modules/gct-dnd/constants/index.d.ts +22 -0
  99. package/es/modules/gct-dnd/constants/index.mjs +20 -0
  100. package/es/modules/gct-dnd/index.d.ts +5 -0
  101. package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
  102. package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
  103. package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
  104. package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
  105. package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
  106. package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
  107. package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
  108. package/es/modules/gct-dnd/interface/index.d.ts +7 -0
  109. package/es/modules/global-modal/index.d.ts +5 -0
  110. package/es/modules/global-modal/index.mjs +16 -0
  111. package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
  112. package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
  113. package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
  114. package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
  115. package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
  116. package/es/modules/global-modal/src/components/ModalClose.css +95 -0
  117. package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
  118. package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
  119. package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
  120. package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
  121. package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
  122. package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
  123. package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
  124. package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
  125. package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
  126. package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
  127. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
  128. package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
  129. package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
  130. package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
  131. package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
  132. package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
  133. package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
  134. package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
  135. package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
  136. package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
  137. package/es/modules/global-modal/src/index.css +153 -0
  138. package/es/modules/global-modal/src/props.d.ts +156 -0
  139. package/es/modules/global-modal/src/props.mjs +57 -0
  140. package/es/modules/global-modal/src/typing.d.ts +174 -0
  141. package/es/modules/target-loading/index.d.ts +4 -0
  142. package/es/modules/target-loading/src/createLoading.d.ts +13 -0
  143. package/es/modules/target-loading/src/createLoading.mjs +57 -0
  144. package/es/modules/target-loading/src/target-loading.css +18 -0
  145. package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
  146. package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
  147. package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
  148. package/es/modules/target-loading/src/typing.d.ts +9 -0
  149. package/es/modules/target-loading/src/useLoading.d.ts +9 -0
  150. package/es/setup-app.d.ts +1 -0
  151. package/es/setup-app.mjs +4 -0
  152. package/es/types/index.d.ts +190 -0
  153. package/es/utils/index.d.ts +4 -1
  154. package/es/utils/message-util/message-util.d.ts +7 -0
  155. package/es/utils/message-util/message-util.mjs +26 -0
  156. package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
  157. package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
  158. package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
  159. package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
  160. package/es/utils/with-install.mjs +0 -1
  161. package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
  162. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
  163. package/package.json +19 -8
  164. package/dist/index.min.css.css +0 -1
  165. package/es/components/code-editor/code-editor.scss +0 -3
  166. package/es/components/layout/flex-container/flex-container.scss +0 -3
  167. package/es/components/layout/flex-item/flex-item.scss +0 -17
  168. package/es/components/layout/view-container/view-container.scss +0 -19
  169. package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
  170. package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
  171. package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
  172. package/es/editor/gct-form-check-switch/index.mjs +0 -12
  173. package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
  174. package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
  175. package/es/editor/gct-form-checkbox/index.mjs +0 -19
  176. package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
  177. package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
  178. package/es/editor/gct-form-color/gct-form-color.scss +0 -3
  179. package/es/editor/gct-form-color/index.mjs +0 -17
  180. package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
  181. package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
  182. package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
  183. package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
  184. package/es/editor/gct-form-field-select/index.mjs +0 -12
  185. package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
  186. package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
  187. package/es/editor/gct-form-i18n/index.mjs +0 -12
  188. package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
  189. package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
  190. package/es/editor/gct-form-icon-select/index.mjs +0 -14
  191. package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
  192. package/es/editor/gct-form-info/gct-form-info.scss +0 -8
  193. package/es/editor/gct-form-info/index.mjs +0 -14
  194. package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
  195. package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
  196. package/es/editor/gct-form-length-unit/index.mjs +0 -12
  197. package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
  198. package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
  199. package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
  200. package/es/editor/gct-form-modal-select/index.mjs +0 -12
  201. package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
  202. package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
  203. package/es/editor/gct-form-number/gct-form-number.scss +0 -3
  204. package/es/editor/gct-form-number/index.mjs +0 -17
  205. package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
  206. package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
  207. package/es/editor/gct-form-picker/index.mjs +0 -12
  208. package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
  209. package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
  210. package/es/editor/gct-form-radio/index.mjs +0 -19
  211. package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
  212. package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
  213. package/es/editor/gct-form-select/index.mjs +0 -12
  214. package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
  215. package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
  216. package/es/editor/gct-form-span/gct-form-span.scss +0 -10
  217. package/es/editor/gct-form-span/index.mjs +0 -12
  218. package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
  219. package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
  220. package/es/editor/gct-form-switch/index.mjs +0 -17
  221. package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
  222. package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
  223. package/es/editor/gct-form-text/index.mjs +0 -17
  224. package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
  225. package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
  226. package/es/editor/gct-form-textarea/index.mjs +0 -12
  227. package/es/editor/index.mjs +0 -51
  228. package/es/utils/index.mjs +0 -3
  229. package/es/vite-env.d.ts +0 -1
  230. package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
  231. package/es/widgets/gct-edit-form/index.mjs +0 -10
  232. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
  233. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
  234. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
  235. package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
  236. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
  237. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
  238. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
  239. package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
  240. package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
  241. package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
  242. package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
  243. package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
  244. package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
  245. package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
  246. package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
  247. package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
  248. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
  249. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
  250. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
  251. package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
  252. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
  253. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
  254. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
  255. package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
  256. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
  257. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
  258. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
  259. package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
  260. package/es/widgets/gct-form/gct-form.mjs +0 -112
  261. package/es/widgets/gct-form/gct-form.scss +0 -11
  262. package/es/widgets/gct-form/index.mjs +0 -31
@@ -0,0 +1,179 @@
1
+ import { defineComponent, useCssVars, computed, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, withCtx, toDisplayString, createCommentVNode, createBlock, normalizeStyle } from 'vue';
2
+ import { Modal } from 'ant-design-vue';
3
+ import { debounce } from 'lodash-es';
4
+ import { ButtonStyle, ButtonSize, t } from '@gct-paas/core';
5
+
6
+ const _hoisted_1 = { class: "inline-block align-middle" };
7
+ const _hoisted_2 = {
8
+ key: 0,
9
+ class: "btn-title gct-text-overflow whitespace-nowrap"
10
+ };
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "base-button",
13
+ props: {
14
+ block: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ disabled: {
19
+ type: Boolean,
20
+ default: false
21
+ },
22
+ loading: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ title: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ size: {
31
+ type: String,
32
+ default: "default"
33
+ },
34
+ icon: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ type: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ hasIcon: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ hasText: {
47
+ type: Boolean,
48
+ default: true
49
+ },
50
+ danger: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ buttonStyle: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ i18nConfig: {
59
+ type: String,
60
+ default: ""
61
+ },
62
+ hidden: {
63
+ type: Boolean,
64
+ default: false
65
+ },
66
+ confirm: {
67
+ type: Boolean,
68
+ default: false
69
+ },
70
+ confirmText: {
71
+ type: String,
72
+ default: ""
73
+ },
74
+ enableCustomColor: {
75
+ type: Boolean,
76
+ default: false
77
+ },
78
+ backgroundColor: {
79
+ type: String,
80
+ default: ""
81
+ },
82
+ fontColor: {
83
+ type: String,
84
+ default: ""
85
+ }
86
+ },
87
+ emits: ["click"],
88
+ setup(__props, { emit: __emit }) {
89
+ useCssVars((_ctx) => ({
90
+ "v8d035854": props.fontColor,
91
+ "e376d652": props.backgroundColor,
92
+ "v4ee5fd6d": props.type === "primary" ? props.backgroundColor : "transparent"
93
+ }));
94
+ const props = __props;
95
+ const emit = __emit;
96
+ const getVertivalAlign = computed(() => {
97
+ if (!props.hasText) return "text-top";
98
+ else return "text-top";
99
+ });
100
+ const debonceClick = debounce(function() {
101
+ emit("click");
102
+ }, 300);
103
+ const clickEvent = async (evt) => {
104
+ const isAppRun = /\/web-render|\/web\/|web-single\/|dev-single\/|test-single\//.test(
105
+ location.pathname
106
+ );
107
+ let target = evt.target;
108
+ if (target.nodeName == "SPAN") {
109
+ target = target.parentNode;
110
+ }
111
+ target.blur();
112
+ if (props.confirm && isAppRun) {
113
+ await new Promise((res, rej) => {
114
+ Modal.confirm({
115
+ content: props.confirmText || t("sys.pageDesigner.confirmTodo"),
116
+ onOk() {
117
+ res("onOk");
118
+ },
119
+ onCancel() {
120
+ rej("onCancel");
121
+ }
122
+ });
123
+ });
124
+ emit("click");
125
+ return;
126
+ }
127
+ debonceClick();
128
+ };
129
+ return (_ctx, _cache) => {
130
+ const _component_IconNext = resolveComponent("IconNext");
131
+ const _component_a_button = resolveComponent("a-button");
132
+ return openBlock(), createElementBlock("div", _hoisted_1, [
133
+ createVNode(_component_a_button, {
134
+ size: __props.size,
135
+ type: __props.type,
136
+ danger: __props.danger,
137
+ loading: __props.loading,
138
+ block: __props.block,
139
+ disabled: __props.disabled,
140
+ class: normalizeClass([
141
+ __props.enableCustomColor && __props.fontColor ? "btn-font-color" : "",
142
+ __props.enableCustomColor && __props.backgroundColor ? "btn-bg-style" : "",
143
+ { square: __props.buttonStyle === unref(ButtonStyle).SQUARE }
144
+ ]),
145
+ title: __props.title,
146
+ onClick: clickEvent
147
+ }, {
148
+ icon: withCtx(() => [
149
+ __props.hasIcon ? (openBlock(), createBlock(_component_IconNext, {
150
+ key: 0,
151
+ size: __props.buttonStyle === unref(ButtonStyle).SQUARE ? 20 : 16,
152
+ value: __props.icon,
153
+ style: normalizeStyle({
154
+ "--color": "inherit",
155
+ lineHeight: "1",
156
+ verticalAlign: getVertivalAlign.value
157
+ })
158
+ }, null, 8, ["size", "value", "style"])) : createCommentVNode("", true),
159
+ __props.icon && __props.hasText ? (openBlock(), createElementBlock("div", {
160
+ key: 1,
161
+ class: normalizeClass({
162
+ "h-6px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).SQUARE && __props.size !== unref(ButtonSize).SMALL,
163
+ "h-4px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).SQUARE && __props.size === unref(ButtonSize).SMALL,
164
+ "w-6px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).ORDINARY && __props.size !== unref(ButtonSize).SMALL,
165
+ "w-4px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).ORDINARY && __props.size === unref(ButtonSize).SMALL
166
+ })
167
+ }, null, 2)) : createCommentVNode("", true)
168
+ ]),
169
+ default: withCtx(() => [
170
+ __props.hasText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.hasText ? __props.title : ""), 1)) : createCommentVNode("", true)
171
+ ]),
172
+ _: 1
173
+ }, 8, ["size", "type", "danger", "loading", "block", "disabled", "class", "title"])
174
+ ]);
175
+ };
176
+ }
177
+ });
178
+
179
+ export { _sfc_main as default };
@@ -0,0 +1,25 @@
1
+ .square[data-v-1dbcb2fa] {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-width: 72px;
7
+ height: 72px;
8
+ padding: 0;
9
+ }
10
+ .squaref[data-v-1dbcb2fa] {
11
+ min-width: 72px;
12
+ height: 72px;
13
+ padding: 0;
14
+ }
15
+ .line[data-v-1dbcb2fa] {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ }
20
+ [data-v-1dbcb2fa] .group .ant-btn {
21
+ height: 100%;
22
+ }
23
+ [data-v-1dbcb2fa] .ant-btn-loading-icon {
24
+ height: 0;
25
+ }
@@ -0,0 +1,100 @@
1
+ import { PropType } from 'vue';
2
+ import { ButtonStyle as buttonEnum, ButtonColorType } from '@gct-paas/core';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ default?(_: {}): any;
8
+ icon?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ buttonType: {
16
+ type: PropType<ButtonColorType>;
17
+ default: string;
18
+ };
19
+ buttonTheme: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ loading: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ icon: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ iconColor: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ buttonStyle: {
40
+ type: PropType<buttonEnum>;
41
+ default: string;
42
+ };
43
+ dropdown: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ dropdown: (...args: any[]) => void;
49
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
50
+ buttonType: {
51
+ type: PropType<ButtonColorType>;
52
+ default: string;
53
+ };
54
+ buttonTheme: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ loading: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ icon: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ iconColor: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ buttonStyle: {
75
+ type: PropType<buttonEnum>;
76
+ default: string;
77
+ };
78
+ dropdown: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ }>> & Readonly<{
83
+ onDropdown?: ((...args: any[]) => any) | undefined;
84
+ }>, {
85
+ loading: boolean;
86
+ disabled: boolean;
87
+ icon: string;
88
+ buttonStyle: buttonEnum;
89
+ dropdown: boolean;
90
+ buttonType: ButtonColorType;
91
+ buttonTheme: string;
92
+ iconColor: string;
93
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
94
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
95
+ export default _default;
96
+ type __VLS_WithTemplateSlots<T, S> = T & {
97
+ new (): {
98
+ $slots: S;
99
+ };
100
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './basic-button.vue3.mjs';
2
+ import './basic-button.css';/* empty css */
3
+ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ const basicButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1dbcb2fa"]]);
6
+
7
+ export { basicButton as default };
@@ -0,0 +1,130 @@
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode, createElementVNode, renderSlot, withModifiers } from 'vue';
2
+ import { ButtonStyle } from '@gct-paas/core';
3
+
4
+ const _hoisted_1 = { class: "inline-block align-middle" };
5
+ const _hoisted_2 = { class: "align-middle leading-none" };
6
+ const _hoisted_3 = { class: "align-middle leading-none" };
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "basic-button",
9
+ props: {
10
+ buttonType: { type: String, default: "" },
11
+ buttonTheme: { type: String, default: "" },
12
+ disabled: {
13
+ type: Boolean,
14
+ default: false
15
+ },
16
+ loading: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ icon: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ iconColor: { type: String, default: "" },
25
+ buttonStyle: { type: String, default: "" },
26
+ dropdown: {
27
+ type: Boolean,
28
+ default: false
29
+ }
30
+ },
31
+ emits: ["dropdown"],
32
+ setup(__props, { emit: __emit }) {
33
+ const emit = __emit;
34
+ const props = __props;
35
+ const getButtonClass = computed(() => {
36
+ const { buttonTheme, buttonStyle } = props;
37
+ const className = [`ant-btn-${buttonTheme}`];
38
+ if (buttonStyle === ButtonStyle.SQUARE) {
39
+ className.push("square");
40
+ } else {
41
+ className.push("line");
42
+ }
43
+ return className;
44
+ });
45
+ const getDropdownClass = computed(() => {
46
+ const { buttonTheme } = props;
47
+ return `ant-btn-${buttonTheme}`;
48
+ });
49
+ function handel() {
50
+ emit("dropdown");
51
+ }
52
+ return (_ctx, _cache) => {
53
+ const _component_IconNext = resolveComponent("IconNext");
54
+ const _component_a_button = resolveComponent("a-button");
55
+ return openBlock(), createElementBlock("div", _hoisted_1, [
56
+ __props.dropdown ? (openBlock(), createElementBlock("div", {
57
+ key: 0,
58
+ class: normalizeClass(["inline-block ant-btn-group", __props.buttonStyle === unref(ButtonStyle).SQUARE ? "squaref group" : ""])
59
+ }, [
60
+ createVNode(_component_a_button, {
61
+ class: normalizeClass(getButtonClass.value),
62
+ disabled: __props.disabled,
63
+ type: __props.buttonType,
64
+ "ant-click-animating-without-extra-node": "false"
65
+ }, {
66
+ default: withCtx(() => [
67
+ __props.icon ? (openBlock(), createBlock(_component_IconNext, {
68
+ key: 0,
69
+ class: "align-middle",
70
+ value: __props.icon,
71
+ size: __props.buttonStyle === unref(ButtonStyle).SQUARE ? 20 : 14,
72
+ color: __props.iconColor
73
+ }, null, 8, ["value", "size", "color"])) : createCommentVNode("", true),
74
+ __props.icon ? (openBlock(), createElementBlock("div", {
75
+ key: 1,
76
+ class: normalizeClass({
77
+ "inline-block w2px": __props.buttonStyle === unref(ButtonStyle).ORDINARY,
78
+ "h-4px": __props.buttonStyle === unref(ButtonStyle).SQUARE
79
+ })
80
+ }, null, 2)) : createCommentVNode("", true),
81
+ createElementVNode("span", _hoisted_2, [
82
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
83
+ ])
84
+ ]),
85
+ _: 3
86
+ }, 8, ["class", "disabled", "type"]),
87
+ createVNode(_component_a_button, {
88
+ disabled: __props.disabled,
89
+ type: __props.buttonType,
90
+ class: normalizeClass(getDropdownClass.value),
91
+ onClick: withModifiers(handel, ["stop"])
92
+ }, {
93
+ icon: withCtx(() => [
94
+ renderSlot(_ctx.$slots, "icon", {}, void 0, true)
95
+ ]),
96
+ _: 3
97
+ }, 8, ["disabled", "type", "class"])
98
+ ], 2)) : (openBlock(), createBlock(_component_a_button, {
99
+ key: 1,
100
+ disabled: __props.disabled,
101
+ type: __props.buttonType,
102
+ class: normalizeClass(getButtonClass.value)
103
+ }, {
104
+ default: withCtx(() => [
105
+ __props.icon ? (openBlock(), createBlock(_component_IconNext, {
106
+ key: 0,
107
+ class: "align-middle",
108
+ value: __props.icon,
109
+ size: __props.buttonStyle === unref(ButtonStyle).SQUARE ? 20 : 14,
110
+ color: __props.iconColor
111
+ }, null, 8, ["value", "size", "color"])) : createCommentVNode("", true),
112
+ __props.icon ? (openBlock(), createElementBlock("div", {
113
+ key: 1,
114
+ class: normalizeClass({
115
+ "inline-block w3px": __props.buttonStyle === unref(ButtonStyle).ORDINARY,
116
+ "h-4px": __props.buttonStyle === unref(ButtonStyle).SQUARE
117
+ })
118
+ }, null, 2)) : createCommentVNode("", true),
119
+ createElementVNode("span", _hoisted_3, [
120
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
121
+ ])
122
+ ]),
123
+ _: 3
124
+ }, 8, ["disabled", "type", "class"]))
125
+ ]);
126
+ };
127
+ }
128
+ });
129
+
130
+ export { _sfc_main as default };
@@ -0,0 +1,67 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-code-editor {
66
+ height: 100%;
67
+ }
@@ -30,6 +30,6 @@ export declare const CodeEditor: import('vue').DefineComponent<import('vue').Ext
30
30
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
31
31
  }>, {
32
32
  value: string;
33
- config: editor.IStandaloneEditorConstructionOptions;
34
33
  language: string;
34
+ config: editor.IStandaloneEditorConstructionOptions;
35
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,15 +1,14 @@
1
1
  import { defineComponent, computed, ref, onMounted, onUnmounted, createVNode } from 'vue';
2
2
  import { useNamespace, deepMerge } from '@gct-paas/core';
3
3
  import loader from '@monaco-editor/loader';
4
- import './code-editor.scss';
4
+ import './code-editor.css';/* empty css */
5
5
 
6
- "use strict";
7
6
  const CodeEditor = /* @__PURE__ */ defineComponent({
8
- name: "CodeEditor",
7
+ name: 'CodeEditor',
9
8
  props: {
10
9
  value: {
11
10
  type: String,
12
- default: ""
11
+ default: ''
13
12
  },
14
13
  config: {
15
14
  type: Object,
@@ -17,26 +16,26 @@ const CodeEditor = /* @__PURE__ */ defineComponent({
17
16
  },
18
17
  language: {
19
18
  type: String,
20
- default: "typescript"
19
+ default: 'typescript'
21
20
  }
22
21
  },
23
- emits: ["update:value"],
22
+ emits: ['update:value'],
24
23
  setup(props, {
25
24
  emit
26
25
  }) {
27
- const ns = useNamespace("code-editor");
26
+ const ns = useNamespace('code-editor');
28
27
  const val = computed({
29
28
  get() {
30
- return props.value || "";
29
+ return props.value || '';
31
30
  },
32
31
  set(v) {
33
- emit("update:value", v);
32
+ emit('update:value', v);
34
33
  }
35
34
  });
36
35
  const el = ref(null);
37
36
  let monacoEditor = null;
38
37
  onMounted(() => {
39
- loader.init().then((m) => {
38
+ loader.init().then(m => {
40
39
  if (el.value) {
41
40
  monacoEditor = m.editor.create(el.value, deepMerge({
42
41
  value: val.value,
@@ -1,5 +1,15 @@
1
+ import { App } from 'vue';
2
+ import { default as SvgIcon } from './svg-icon/svg-icon.vue';
3
+ import { AssetsSvgIcon } from './assets-svg-icon/assets-svg-icon';
4
+ import { default as BaseButton } from './base-button/base-button.vue';
5
+ import { default as BasicButton } from './basic-button/basic-button.vue';
6
+ export { SvgIcon, AssetsSvgIcon, BaseButton, BasicButton };
1
7
  export { CodeEditor } from './code-editor/code-editor';
2
8
  export { FlexContainer } from './layout/flex-container/flex-container';
3
9
  export { FlexItem } from './layout/flex-item/flex-item';
4
10
  export { GridContainer } from './layout/grid-container/grid-container';
5
11
  export { ViewContainer } from './layout/view-container/view-container';
12
+ declare const _default: {
13
+ install(app: App): void;
14
+ };
15
+ export default _default;
@@ -1,7 +1,22 @@
1
- export { CodeEditor } from './code-editor/code-editor.mjs';
2
- export { FlexContainer } from './layout/flex-container/flex-container.mjs';
3
- export { FlexItem } from './layout/flex-item/flex-item.mjs';
4
- export { GridContainer } from './layout/grid-container/grid-container.mjs';
5
- export { ViewContainer } from './layout/view-container/view-container.mjs';
1
+ import _sfc_main from './svg-icon/svg-icon.vue.mjs';
2
+ import './layout/view-container/view-container.css';import './layout/flex-container/flex-container.css';import './code-editor/code-editor.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 '@monaco-editor/loader';
11
+ /* empty css */
12
+ /* empty css */
13
+ /* empty css */
6
14
 
7
- "use strict";
15
+ const Comps = {
16
+ install(app) {
17
+ app.component(AssetsSvgIcon.name, AssetsSvgIcon);
18
+ app.component(_sfc_main.name, _sfc_main);
19
+ }
20
+ };
21
+
22
+ export { AssetsSvgIcon, _sfc_main as SvgIcon, Comps as default };
@@ -0,0 +1,67 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-flex-container {
66
+ display: flex;
67
+ }