@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
@@ -1,71 +0,0 @@
1
- import { isVNode, defineComponent, mergeProps, createVNode, resolveComponent } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import './gct-form-collapse-pane.scss';
4
-
5
- "use strict";
6
- function _isSlot(s) {
7
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
8
- }
9
- const GctFormCollapsePane = /* @__PURE__ */ defineComponent({
10
- name: "GctFormCollapsePane",
11
- props: {
12
- c: {
13
- type: Object,
14
- required: true
15
- },
16
- model: {
17
- type: Object,
18
- required: true
19
- }
20
- },
21
- setup(props) {
22
- const ns = useNamespace("form-collapse-pane");
23
- const style = {};
24
- function renderContainer(items) {
25
- if (props.model.layout === "flex") {
26
- return createVNode(resolveComponent("flex-container"), {
27
- "layout": props.model.flex
28
- }, _isSlot(items) ? items : {
29
- default: () => [items]
30
- });
31
- }
32
- if (props.model.layout === "grid") {
33
- return createVNode(resolveComponent("grid-container"), {
34
- "layout": props.model.grid
35
- }, _isSlot(items) ? items : {
36
- default: () => [items]
37
- });
38
- }
39
- console.error("\u4E0D\u652F\u6301\u7684layout\u7C7B\u578B" + props.model.layout);
40
- }
41
- if (props.model.width) {
42
- style[ns.cssVarName("form-collapse-pane-width")] = props.model.width;
43
- }
44
- if (props.model.height) {
45
- style[ns.cssVarName("form-collapse-pane-height")] = props.model.height;
46
- }
47
- return {
48
- ns,
49
- style,
50
- renderContainer
51
- };
52
- },
53
- render() {
54
- if (this.c.state.keepalive !== true && this.c.state.visible === false) {
55
- return null;
56
- }
57
- const items = this.$slots.default?.() || [];
58
- const lastVNode = items[items.length - 1];
59
- if (lastVNode) {
60
- lastVNode.props = mergeProps(lastVNode.props || {}, {
61
- class: this.ns.e("last-child")
62
- });
63
- }
64
- return createVNode("div", {
65
- "class": [this.ns.b(), this.ns.is("hidden", this.c.state.visible === false)],
66
- "style": this.style
67
- }, [this.renderContainer(items)]);
68
- }
69
- });
70
-
71
- export { GctFormCollapsePane, GctFormCollapsePane as default };
@@ -1,13 +0,0 @@
1
- import { useFormItemController, FormCollapsePaneController } from '@gct-paas/core';
2
-
3
- "use strict";
4
- class GctFormCollapsePaneProvider {
5
- component = "gct-form-collapse-pane";
6
- createController(form, item) {
7
- return useFormItemController(
8
- () => new FormCollapsePaneController(form, item)
9
- );
10
- }
11
- }
12
-
13
- export { GctFormCollapsePaneProvider };
@@ -1,23 +0,0 @@
1
- $gct-form-collapse-pane: (
2
- width: auto,
3
- height: auto,
4
- padding: 12px,
5
- );
6
-
7
- @include b(form-collapse-pane) {
8
- @include set-component-css-var('form-collapse-pane', $gct-form-collapse-pane);
9
-
10
- width: getCssVar(form-collapse-pane, width);
11
- height: getCssVar(form-collapse-pane, height);
12
- padding: getCssVar(form-collapse-pane, padding);
13
-
14
- @include when(hidden) {
15
- display: none;
16
- }
17
-
18
- }
19
-
20
- // 把最后一个的直接子组件的margin-bottom设置为0
21
- .#{bem(form-collapse)} .#{bem(form-collapse-pane)} .#{bem(form-collapse-pane,last-child)}{
22
- margin-bottom: 0 !important;
23
- }
@@ -1,15 +0,0 @@
1
- import { GctFormCollapsePaneProvider } from './gct-form-collapse-pane.provider.mjs';
2
- import { GctFormCollapsePane as GctFormCollapsePane$1 } from './gct-form-collapse-pane.mjs';
3
-
4
- "use strict";
5
- var GctFormCollapsePane = {
6
- install(app) {
7
- _gct.register.formItem.register(
8
- "collapse-pane",
9
- () => new GctFormCollapsePaneProvider()
10
- );
11
- app.component(GctFormCollapsePane$1.name, GctFormCollapsePane$1);
12
- }
13
- };
14
-
15
- export { GctFormCollapsePane as default };
@@ -1,88 +0,0 @@
1
- import { isVNode, defineComponent, createVNode, resolveComponent, ref } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import './gct-form-group.scss';
4
-
5
- "use strict";
6
- function _isSlot(s) {
7
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
8
- }
9
- const GctFormGroup = /* @__PURE__ */ defineComponent({
10
- name: "GctFormGroup",
11
- props: {
12
- c: {
13
- type: Object,
14
- required: true
15
- },
16
- model: {
17
- type: Object,
18
- required: true
19
- }
20
- },
21
- setup(props) {
22
- const ns = useNamespace("gct-form-group");
23
- const keys = ref([0]);
24
- function renderContainer(items) {
25
- if (props.model.layout === "flex") {
26
- return createVNode(resolveComponent("flex-container"), {
27
- "layout": props.model.flex
28
- }, _isSlot(items) ? items : {
29
- default: () => [items]
30
- });
31
- }
32
- if (props.model.layout === "grid") {
33
- return createVNode(resolveComponent("grid-container"), {
34
- "layout": props.model.grid
35
- }, _isSlot(items) ? items : {
36
- default: () => [items]
37
- });
38
- }
39
- console.error("\u4E0D\u652F\u6301\u7684layout\u7C7B\u578B" + props.model.layout);
40
- }
41
- const style = {};
42
- if (props.model.width) {
43
- style[ns.cssVarName("form-group-width")] = props.model.width;
44
- }
45
- if (props.model.height) {
46
- style[ns.cssVarName("form-group-height")] = props.model.height;
47
- }
48
- return {
49
- ns,
50
- keys,
51
- style,
52
- renderContainer
53
- };
54
- },
55
- render() {
56
- if (this.c.state.keepalive !== true && this.c.state.visible === false) {
57
- return null;
58
- }
59
- const items = this.$slots.default?.() || [];
60
- if (this.model.isCollapse) {
61
- let _slot;
62
- return createVNode(resolveComponent("a-collapse"), {
63
- "activeKey": this.keys,
64
- "onUpdate:activeKey": ($event) => this.keys = $event,
65
- "class": [this.ns.b(), this.ns.is("hidden-header", this.model.showHeader === false), this.ns.is("hidden", this.c.state.visible === false)],
66
- "style": this.style,
67
- "ghost": true
68
- }, {
69
- default: () => [createVNode(resolveComponent("a-collapse-panel"), {
70
- "key": "0",
71
- "header": this.model.title
72
- }, _isSlot(_slot = this.renderContainer(items)) ? _slot : {
73
- default: () => [_slot]
74
- })]
75
- });
76
- }
77
- return createVNode("div", {
78
- "class": [this.ns.b(), this.ns.is("hidden-header", this.model.showHeader === false), this.ns.is("hidden", this.c.state.visible === false)],
79
- "style": this.style
80
- }, [this.model.showHeader === false ? createVNode("div", {
81
- "class": this.ns.e("title")
82
- }, [this.model.title]) : null, createVNode("div", {
83
- "class": this.ns.e("content")
84
- }, [this.renderContainer(items)])]);
85
- }
86
- });
87
-
88
- export { GctFormGroup, GctFormGroup as default };
@@ -1,11 +0,0 @@
1
- import { useFormItemController, FormGroupController } from '@gct-paas/core';
2
-
3
- "use strict";
4
- class GctFormGroupProvider {
5
- component = "gct-form-group";
6
- createController(form, item) {
7
- return useFormItemController(() => new FormGroupController(form, item));
8
- }
9
- }
10
-
11
- export { GctFormGroupProvider };
@@ -1,28 +0,0 @@
1
- $gct-form-group: (
2
- min-height: 32px,
3
- width: auto,
4
- height: auto,
5
- );
6
-
7
- @include b(gct-form-group) {
8
- @include set-component-css-var('form-group', $gct-form-group);
9
-
10
- width: getCssVar(form-group, width);
11
- height: getCssVar(form-group, height);
12
- min-height: getCssVar(form-group, min-height);
13
-
14
- @include when(hidden-header) {
15
- @include e(title) {
16
- display: none;
17
- }
18
-
19
- @include e(content) {
20
- overflow: auto;
21
- height: 100%;
22
- }
23
- }
24
-
25
- @include when(hidden) {
26
- display: none;
27
- }
28
- }
@@ -1,15 +0,0 @@
1
- import { GctFormGroupProvider } from './gct-form-group.provider.mjs';
2
- import { GctFormGroup as GctFormGroup$1 } from './gct-form-group.mjs';
3
-
4
- "use strict";
5
- var GctFormGroup = {
6
- install(app) {
7
- _gct.register.formItem.register(
8
- "container",
9
- () => new GctFormGroupProvider()
10
- );
11
- app.component(GctFormGroup$1.name, GctFormGroup$1);
12
- }
13
- };
14
-
15
- export { GctFormGroup as default };
@@ -1,13 +0,0 @@
1
- import { useFormItemController, FormHiddenItemController } from '@gct-paas/core';
2
-
3
- "use strict";
4
- class GctFormHiddenItemProvider {
5
- component = "gct-form-hidden-item";
6
- createController(form, item) {
7
- return useFormItemController(
8
- () => new FormHiddenItemController(form, item)
9
- );
10
- }
11
- }
12
-
13
- export { GctFormHiddenItemProvider };
@@ -1,141 +0,0 @@
1
- import { isVNode, defineComponent, h, resolveComponent, createVNode, computed } from 'vue';
2
- import { EditorRegisterConst, useNamespace } from '@gct-paas/core';
3
- import './gct-form-item.scss';
4
-
5
- "use strict";
6
- function _isSlot(s) {
7
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
8
- }
9
- const GctFormItem = /* @__PURE__ */ defineComponent({
10
- name: "GctFormItem",
11
- props: {
12
- c: {
13
- type: Object,
14
- required: true
15
- },
16
- formModel: {
17
- type: Object,
18
- required: true
19
- },
20
- model: {
21
- type: Object,
22
- required: true
23
- }
24
- },
25
- setup(props) {
26
- const ns = useNamespace("gct-form-item");
27
- const style = {};
28
- if (props.formModel.labelWidth) {
29
- style[ns.cssVarName("form-item-label-width")] = props.formModel.labelWidth;
30
- }
31
- if (props.model.labelWidth) {
32
- style[ns.cssVarName("form-item-label-width")] = props.model.labelWidth;
33
- }
34
- if (props.model.labelAlign) {
35
- style[ns.cssVarName("form-item-label-align")] = props.model.labelAlign;
36
- }
37
- if (props.model.editorAlign) {
38
- style[ns.cssVarName("form-item-editor-align")] = props.model.editorAlign;
39
- }
40
- if (props.model.width) {
41
- style[ns.cssVarName("form-item-width")] = props.model.width;
42
- }
43
- if (props.model.margin) {
44
- style.margin = props.model.margin;
45
- }
46
- if (props.model.padding) {
47
- style.padding = props.model.padding;
48
- }
49
- const required = computed(() => {
50
- return !!props.model.rules?.find((item) => item.required);
51
- });
52
- const renderLabelTooltip = () => {
53
- if (!props.model.labelTooltip) {
54
- return null;
55
- }
56
- return createVNode(resolveComponent("a-tooltip"), {
57
- "class": ns.e("label-tooltip"),
58
- "placement": "topLeft",
59
- "title": props.model.labelTooltip
60
- }, {
61
- default: () => [createVNode("span", {
62
- "class": "iconfont icon-assist ml5px text-[#bfbfbf]"
63
- }, null)]
64
- });
65
- };
66
- return {
67
- ns,
68
- style,
69
- required,
70
- renderLabelTooltip
71
- };
72
- },
73
- render() {
74
- const provider = _gct.register.editor.get(EditorRegisterConst.PREFIX + this.model.editor.type);
75
- if (!provider) {
76
- console.error(`\u672A\u627E\u5230\u8868\u5355\u9879${this.model.name}\u7684\u7F16\u8F91\u5668${this.model.editor.type}\u7684\u9002\u914D\u5668\u5B9E\u4F8B\uFF1A`, this.model);
77
- return null;
78
- }
79
- const labelPosition = this.model.labelPosition || "left";
80
- let content = null;
81
- if (provider) {
82
- if (provider.render) {
83
- content = provider.render(this.c.editorValue, this.c.data, this.model);
84
- } else {
85
- if (provider.component) {
86
- content = h(typeof provider.component === "string" ? resolveComponent(provider.component) : provider.component, {
87
- key: this.model.name,
88
- c: this.c,
89
- value: this.c.editorValue,
90
- itemModel: this.model,
91
- model: this.model.editor,
92
- data: this.c.data,
93
- disabled: this.c.state.disabled,
94
- readonly: this.c.state.readonly,
95
- keepalive: this.c.state.keepalive,
96
- visible: this.c.state.visible,
97
- class: [this.ns.e("editor"), this.ns.e(labelPosition), this.model.editor.class],
98
- style: this.model.editor.style,
99
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
100
- "onUpdate:value": (value) => {
101
- this.c.editorValue = value;
102
- }
103
- });
104
- } else {
105
- console.error(`\u672A\u627E\u5230\u7F16\u8F91\u5668\u7ED8\u5236\u7EC4\u4EF6\uFF1A${this.model.name} - ${this.model.editor.type}\uFF0C\u8BF7\u5B9E\u73B0 component \u6216 render \u65B9\u6CD5`);
106
- }
107
- }
108
- } else {
109
- console.error(`\u672A\u627E\u5230\u7F16\u8F91\u5668\u9002\u914D\u5668\uFF1A${this.model.name} - ${this.model.editor.type}`);
110
- }
111
- if (this.model.label && labelPosition === "top") {
112
- content = [createVNode("div", {
113
- "class": [this.ns.e("label"), this.ns.em("label", labelPosition)]
114
- }, [this.model.label, this.renderLabelTooltip()]), content];
115
- }
116
- const itemSlots = {
117
- default: () => {
118
- return content;
119
- }
120
- };
121
- if (labelPosition === "left" && this.model.label) {
122
- itemSlots.label = () => {
123
- return [createVNode("span", null, [this.model.label]), this.renderLabelTooltip()];
124
- };
125
- }
126
- return createVNode(resolveComponent("a-form-item"), {
127
- "key": this.c.model.name,
128
- "colon": this.formModel.noColon === true ? false : this.model.noColon === true ? false : true,
129
- "name": this.model.name,
130
- "label": void 0,
131
- "class": [this.ns.b(), this.ns.is("readonly", this.model.editor.readonly === true), this.ns.is("required", this.required), this.ns.is("hidden", this.c.state.visible === false), this.ns.is("hidden-label", !this.model.label), this.ns.m("label-" + labelPosition)],
132
- "style": this.style,
133
- "rules": this.c.state.visible === true ? this.model.rules : [],
134
- "layout": "horizontal"
135
- }, _isSlot(itemSlots) ? itemSlots : {
136
- default: () => [itemSlots]
137
- });
138
- }
139
- });
140
-
141
- export { GctFormItem, GctFormItem as default };
@@ -1,11 +0,0 @@
1
- import { useFormItemController, FormItemController } from '@gct-paas/core';
2
-
3
- "use strict";
4
- class GctFormItemProvider {
5
- component = "gct-form-item";
6
- createController(form, item) {
7
- return useFormItemController(() => new FormItemController(form, item));
8
- }
9
- }
10
-
11
- export { GctFormItemProvider };
@@ -1,115 +0,0 @@
1
- $gct-form-item: (
2
- min-height: 32px,
3
- height: auto,
4
- width: auto,
5
- label-width: 100px,
6
- readonly-color: #999,
7
- label-align: right,
8
- editor-align: left,
9
- label-color: #252525,
10
- label-font-size: 14px,
11
- checkbox-width: 6px,
12
- checkbox-height: 9px,
13
- );
14
-
15
- @include b(gct-form-item) {
16
- @include set-component-css-var('form-item', $gct-form-item);
17
-
18
- width: getCssVar(form-item, width);
19
- height: getCssVar(form-item, height);
20
- min-height: getCssVar(form-item, min-height);
21
-
22
- @include when(hidden-label) {
23
- .gct-gct-form-item__editor {
24
- width: 100%;
25
- }
26
- }
27
-
28
- @include when(hidden) {
29
- display: none;
30
- }
31
-
32
- @include when(readonly) {
33
- margin-bottom: 18px !important;
34
- #{getCssVarName(form-item, min-height)}: 22px;
35
-
36
- .ant-form-item-label {
37
- padding: 0;
38
-
39
- label {
40
- color: getCssVar(form-item, readonly-color);
41
- }
42
- }
43
-
44
- @include e(label) {
45
- color: getCssVar(form-item, readonly-color);
46
- }
47
- }
48
-
49
- @include when(required) {
50
- @include e(label) {
51
- &::before {
52
- display: inline-block;
53
- margin-inline-end: 4px;
54
- color: #ff4d4f;
55
- font-size: 14px;
56
- font-family: SimSun, sans-serif;
57
- line-height: 1;
58
- content: '*';
59
- }
60
- }
61
- }
62
-
63
- .ant-form-item-label {
64
- width: getCssVar(form-item, label-width);
65
- text-align: getCssVar(form-item, label-align);
66
-
67
- label {
68
- color: getCssVar(form-item, label-color);
69
- font-size: getCssVar(form-item, label-font-size);
70
- }
71
- }
72
-
73
- .ant-form-item-control-input-content {
74
- text-align: getCssVar(form-item, editor-align);
75
- }
76
-
77
- @include e(label) {
78
- width: getCssVar(form-item, label-width);
79
- line-height: 1.5715;
80
- font-size: getCssVar(form-item, label-font-size);
81
-
82
- @include m(top) {
83
- width: 100%;
84
- }
85
- }
86
-
87
- @include m(label-top) {
88
- @include e(label) {
89
- margin-bottom: 8px;
90
- }
91
- }
92
-
93
- // 组件样式压
94
- .ant-form-item-control-input {
95
- flex-grow: 1;
96
- }
97
-
98
- .ant-checkbox-group {
99
- font-size: getCssVar(form-item, label-font-size);
100
-
101
- .ant-checkbox-wrapper {
102
- font-size: getCssVar(form-item, label-font-size);
103
- }
104
-
105
- .ant-form input[type="checkbox"], .ant-checkbox-inner {
106
- width: getCssVar(form-item, label-font-size);
107
- height: getCssVar(form-item, label-font-size);
108
- }
109
-
110
- .ant-checkbox-inner::after {
111
- width: getCssVar(form-item, checkbox-width);
112
- height: getCssVar(form-item, checkbox-height);
113
- }
114
- }
115
- }
@@ -1,53 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import './gct-form-tab.scss';
4
-
5
- "use strict";
6
- const GctFormTab = /* @__PURE__ */ defineComponent({
7
- name: "GctFormTab",
8
- props: {
9
- c: {
10
- type: Object,
11
- required: true
12
- },
13
- model: {
14
- type: Object,
15
- required: true
16
- }
17
- },
18
- setup(props) {
19
- const ns = useNamespace("form-tab");
20
- const style = {};
21
- if (props.model.width) {
22
- style[ns.cssVarName("form-tab-width")] = props.model.width;
23
- }
24
- if (props.model.height) {
25
- style[ns.cssVarName("form-tab-height")] = props.model.height;
26
- }
27
- return {
28
- ns,
29
- style
30
- };
31
- },
32
- render() {
33
- if (this.c.state.keepalive !== true && this.c.state.visible === false) {
34
- return null;
35
- }
36
- const items = this.$slots.default?.() || [];
37
- return createVNode(resolveComponent("a-tabs"), {
38
- "class": [this.ns.b(), this.ns.is("hidden", this.c.state.visible === false), this.ns.m(this.model.navPosition || "left")],
39
- "style": this.style
40
- }, {
41
- default: () => [this.model.children?.map((item, index) => {
42
- return createVNode(resolveComponent("a-tab-pane"), {
43
- "key": item.name,
44
- "tab": item.title
45
- }, {
46
- default: () => [items[index]]
47
- });
48
- })]
49
- });
50
- }
51
- });
52
-
53
- export { GctFormTab, GctFormTab as default };
@@ -1,11 +0,0 @@
1
- import { useFormItemController, FormTabController } from '@gct-paas/core';
2
-
3
- "use strict";
4
- class GctFormTabProvider {
5
- component = "gct-form-tab";
6
- createController(form, item) {
7
- return useFormItemController(() => new FormTabController(form, item));
8
- }
9
- }
10
-
11
- export { GctFormTabProvider };
@@ -1,63 +0,0 @@
1
- $gct-form-tab: (
2
- tab-spacing: 52px,
3
- width: auto,
4
- height: auto,
5
- );
6
-
7
- @include b(form-tab) {
8
- @include set-component-css-var('form-tab', $gct-form-tab);
9
-
10
- width: getCssVar(form-tab, width);
11
- height: getCssVar(form-tab, height);
12
-
13
- @include when(hidden) {
14
- display: none;
15
- }
16
-
17
- // 原组件样式调整
18
- >.ant-tabs-nav{
19
- margin-bottom: 0 !important;
20
- background-color: #fff;
21
-
22
- >.ant-tabs-nav-wrap{
23
- border-bottom: 1px solid #E0E3EA;
24
- }
25
-
26
- .ant-tabs-tab+.ant-tabs-tab{
27
- margin-left: getCssVar(form-tab, tab-spacing);
28
- }
29
-
30
- /* stylelint-disable-next-line no-descending-specificity */
31
- .ant-tabs-tab {
32
- padding: 7px 0;
33
- }
34
- }
35
-
36
- &.ant-tabs {
37
- .ant-tabs-tabpane {
38
- overflow: hidden auto;
39
- }
40
- }
41
-
42
- >.ant-tabs-content-holder >.ant-tabs-content{
43
- height: 100%;
44
- }
45
-
46
- @include m(left){
47
- >.ant-tabs-nav .ant-tabs-nav-wrap{
48
- justify-content: flex-start;
49
- }
50
- }
51
-
52
- @include m(right){
53
- >.ant-tabs-nav .ant-tabs-nav-wrap{
54
- justify-content: flex-end;
55
- }
56
- }
57
-
58
- @include m(center){
59
- >.ant-tabs-nav .ant-tabs-nav-wrap{
60
- justify-content: center;
61
- }
62
- }
63
- }