@gct-paas/design 0.1.4-dev.7 → 0.1.4-dev.8

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 (462) hide show
  1. package/dist/index.esm.min.mjs +24966 -484
  2. package/dist/index.min.cjs +70 -1
  3. package/dist/index.min.css +1 -0
  4. package/dist/index.system.min.js +70 -1
  5. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  6. package/es/components/design/design-content/design-content.css +76 -0
  7. package/es/components/design/design-content/design-content.d.ts +191 -0
  8. package/es/components/design/design-content/design-content.mjs +361 -0
  9. package/es/components/design/design-drag-item/design-drag-item.css +179 -0
  10. package/es/components/design/design-drag-item/design-drag-item.d.ts +55 -0
  11. package/es/components/design/design-drag-item/design-drag-item.mjs +293 -0
  12. package/es/components/design/design-drop-container/design-drop-container.css +103 -0
  13. package/es/components/design/design-drop-container/design-drop-container.d.ts +87 -0
  14. package/es/components/design/design-drop-container/design-drop-container.mjs +217 -0
  15. package/es/components/design/design-drop-line/design-drop-line.css +165 -0
  16. package/es/components/design/design-drop-line/design-drop-line.d.ts +72 -0
  17. package/es/components/design/design-drop-line/design-drop-line.mjs +174 -0
  18. package/es/components/design/design-item-actions/design-item-actions.css +97 -0
  19. package/es/components/design/design-item-actions/design-item-actions.d.ts +42 -0
  20. package/es/components/design/design-item-actions/design-item-actions.mjs +195 -0
  21. package/es/components/design/design-item-highlighter/design-item-highlighter.css +70 -0
  22. package/es/components/design/design-item-highlighter/design-item-highlighter.d.ts +168 -0
  23. package/es/components/design/design-item-highlighter/design-item-highlighter.mjs +164 -0
  24. package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.css +85 -0
  25. package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.d.ts +53 -0
  26. package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.mjs +223 -0
  27. package/es/components/design/design-item-hover-title/design-item-hover-title.css +12 -0
  28. package/es/components/design/design-item-hover-title/design-item-hover-title.d.ts +60 -0
  29. package/es/components/design/design-item-hover-title/design-item-hover-title.mjs +74 -0
  30. package/es/components/design/design-item-preview/design-item-preview.css +91 -0
  31. package/es/components/design/design-item-preview/design-item-preview.d.ts +1 -0
  32. package/es/components/design/design-item-preview/design-item-preview.mjs +50 -0
  33. package/es/components/design/design-not-drag-item/design-not-drag-item.css +67 -0
  34. package/es/components/design/design-not-drag-item/design-not-drag-item.d.ts +49 -0
  35. package/es/components/design/design-not-drag-item/design-not-drag-item.mjs +85 -0
  36. package/es/components/design/design-not-found/design-not-found.css +68 -0
  37. package/es/components/design/design-not-found/design-not-found.d.ts +14 -0
  38. package/es/components/design/design-not-found/design-not-found.mjs +26 -0
  39. package/es/components/design/index.d.ts +6 -0
  40. package/es/components/design/index.mjs +22 -0
  41. package/es/components/design-icon-button/design-icon-button.css +101 -0
  42. package/es/components/design-icon-button/design-icon-button.d.ts +106 -0
  43. package/es/components/design-icon-button/design-icon-button.mjs +151 -0
  44. package/es/components/design-save-tip/design-save-tip.css +107 -0
  45. package/es/components/design-save-tip/design-save-tip.d.ts +44 -0
  46. package/es/components/design-save-tip/design-save-tip.mjs +107 -0
  47. package/es/components/design-step-check/design-step-check.css +133 -0
  48. package/es/components/design-step-check/design-step-check.d.ts +30 -0
  49. package/es/components/design-step-check/design-step-check.mjs +122 -0
  50. package/es/components/design-view-layout/design-view-layout.d.ts +1 -0
  51. package/es/components/design-view-layout/design-view-layout.mjs +208 -0
  52. package/es/components/design-view-layout/design-view-layout.module.css +154 -0
  53. package/es/components/design-view-layout/design-view-layout.module.scss.mjs +27 -0
  54. package/es/components/editor/index.d.ts +5 -0
  55. package/es/components/editor/index.mjs +15 -0
  56. package/es/components/editor/style/border-editor/border-box.css +144 -0
  57. package/es/components/editor/style/border-editor/border-box.vue.d.ts +10 -0
  58. package/es/components/editor/style/border-editor/border-box.vue.mjs +7 -0
  59. package/es/components/editor/style/border-editor/border-box.vue2.mjs +305 -0
  60. package/es/components/editor/style/border-editor/border-editor.css +64 -0
  61. package/es/components/editor/style/border-editor/border-editor.vue.d.ts +13 -0
  62. package/es/components/editor/style/border-editor/border-editor.vue.mjs +7 -0
  63. package/es/components/editor/style/border-editor/border-editor.vue2.mjs +60 -0
  64. package/es/components/editor/style/border-editor/border-radius.css +102 -0
  65. package/es/components/editor/style/border-editor/border-radius.vue.d.ts +10 -0
  66. package/es/components/editor/style/border-editor/border-radius.vue.mjs +7 -0
  67. package/es/components/editor/style/border-editor/border-radius.vue2.mjs +212 -0
  68. package/es/components/editor/style/border-editor/util.d.ts +19 -0
  69. package/es/components/editor/style/border-editor/util.mjs +77 -0
  70. package/es/components/editor/style/font-editor/align-group.css +28 -0
  71. package/es/components/editor/style/font-editor/align-group.vue.d.ts +10 -0
  72. package/es/components/editor/style/font-editor/align-group.vue.mjs +7 -0
  73. package/es/components/editor/style/font-editor/align-group.vue2.mjs +66 -0
  74. package/es/components/editor/style/font-editor/font-editor.vue.d.ts +10 -0
  75. package/es/components/editor/style/font-editor/font-editor.vue.mjs +72 -0
  76. package/es/components/editor/style/font-editor/font-editor.vue2.mjs +5 -0
  77. package/es/components/editor/style/font-editor/font-style-group.css +29 -0
  78. package/es/components/editor/style/font-editor/font-style-group.vue.d.ts +11 -0
  79. package/es/components/editor/style/font-editor/font-style-group.vue.mjs +7 -0
  80. package/es/components/editor/style/font-editor/font-style-group.vue2.mjs +105 -0
  81. package/es/components/editor/style/font-editor/util.d.ts +2 -0
  82. package/es/components/editor/style/font-editor/util.mjs +12 -0
  83. package/es/components/editor/style/position-editor/position-editor.css +158 -0
  84. package/es/components/editor/style/position-editor/position-editor.vue.d.ts +12 -0
  85. package/es/components/editor/style/position-editor/position-editor.vue.mjs +7 -0
  86. package/es/components/editor/style/position-editor/position-editor.vue2.mjs +242 -0
  87. package/es/components/editor/style/spacing-editor/spacing-editor.css +135 -0
  88. package/es/components/editor/style/spacing-editor/spacing-editor.vue.d.ts +16 -0
  89. package/es/components/editor/style/spacing-editor/spacing-editor.vue.mjs +7 -0
  90. package/es/components/editor/style/spacing-editor/spacing-editor.vue2.mjs +311 -0
  91. package/es/components/icon/downleft-icon.vue.d.ts +4 -0
  92. package/es/components/icon/downleft-icon.vue.mjs +27 -0
  93. package/es/components/icon/downleft-icon.vue2.mjs +11 -0
  94. package/es/components/icon/downright-icon.vue.d.ts +4 -0
  95. package/es/components/icon/downright-icon.vue.mjs +27 -0
  96. package/es/components/icon/downright-icon.vue2.mjs +11 -0
  97. package/es/components/icon/upleft-icon.vue.d.ts +4 -0
  98. package/es/components/icon/upleft-icon.vue.mjs +27 -0
  99. package/es/components/icon/upleft-icon.vue2.mjs +11 -0
  100. package/es/components/icon/upright-icon.vue.d.ts +4 -0
  101. package/es/components/icon/upright-icon.vue.mjs +27 -0
  102. package/es/components/icon/upright-icon.vue2.mjs +11 -0
  103. package/es/components/index.d.ts +9 -0
  104. package/es/components/index.mjs +25 -0
  105. package/es/components/material/index.d.ts +5 -0
  106. package/es/components/material/index.mjs +9 -0
  107. package/es/components/material/material-content/material-content.css +86 -0
  108. package/es/components/material/material-content/material-content.d.ts +179 -0
  109. package/es/components/material/material-content/material-content.mjs +59 -0
  110. package/es/components/material/material-module/material-module.css +104 -0
  111. package/es/components/material/material-module/material-module.d.ts +68 -0
  112. package/es/components/material/material-module/material-module.mjs +108 -0
  113. package/es/components/material/material-module-drag-container/material-module-drag-container.css +69 -0
  114. package/es/components/material/material-module-drag-container/material-module-drag-container.d.ts +58 -0
  115. package/es/components/material/material-module-drag-container/material-module-drag-container.mjs +32 -0
  116. package/es/components/material/material-module-drag-item/material-module-drag-item.css +83 -0
  117. package/es/components/material/material-module-drag-item/material-module-drag-item.d.ts +17 -0
  118. package/es/components/material/material-module-drag-item/material-module-drag-item.mjs +101 -0
  119. package/es/components/material/material-outline-tree/material-outline-tree.css +81 -0
  120. package/es/components/material/material-outline-tree/material-outline-tree.d.ts +1 -0
  121. package/es/components/material/material-outline-tree/material-outline-tree.mjs +87 -0
  122. package/es/components/material/material-tab-pane/material-tab-pane.css +68 -0
  123. package/es/components/material/material-tab-pane/material-tab-pane.d.ts +13 -0
  124. package/es/components/material/material-tab-pane/material-tab-pane.mjs +26 -0
  125. package/es/components/material/material-tabs/material-tabs.css +105 -0
  126. package/es/components/material/material-tabs/material-tabs.d.ts +99 -0
  127. package/es/components/material/material-tabs/material-tabs.mjs +69 -0
  128. package/es/components/mobile-container/mobile-container.css +134 -0
  129. package/es/components/mobile-container/mobile-container.d.ts +31 -0
  130. package/es/components/mobile-container/mobile-container.mjs +81 -0
  131. package/es/components/modal-name-editor/modal-name-editor.css +117 -0
  132. package/es/components/modal-name-editor/modal-name-editor.d.ts +44 -0
  133. package/es/components/modal-name-editor/modal-name-editor.mjs +174 -0
  134. package/es/components/panel/index.d.ts +5 -0
  135. package/es/components/panel/index.mjs +9 -0
  136. package/es/components/panel/panel-content/panel-content.css +183 -0
  137. package/es/components/panel/panel-content/panel-content.d.ts +19 -0
  138. package/es/components/panel/panel-content/panel-content.mjs +71 -0
  139. package/es/components/panel/panel-form/panel-form.css +67 -0
  140. package/es/components/panel/panel-form/panel-form.d.ts +62 -0
  141. package/es/components/panel/panel-form/panel-form.mjs +73 -0
  142. package/es/components/panel/panel-path/panel-path.css +89 -0
  143. package/es/components/panel/panel-path/panel-path.d.ts +35 -0
  144. package/es/components/panel/panel-path/panel-path.mjs +72 -0
  145. package/es/constant/design-editor-type.d.ts +50 -0
  146. package/es/constant/design-editor-type.mjs +15 -0
  147. package/es/constant/index.d.ts +256 -1
  148. package/es/constant/index.mjs +72 -0
  149. package/es/constant/page-designer.d.ts +75 -0
  150. package/es/constant/page-designer.mjs +52 -0
  151. package/es/controller/index.d.ts +1 -0
  152. package/es/controller/view/design-view.controller.d.ts +47 -0
  153. package/es/controller/view/design-view.controller.mjs +184 -0
  154. package/es/data/design-container-node/design-container-node.d.ts +15 -0
  155. package/es/data/design-container-node/design-container-node.mjs +6 -0
  156. package/es/data/design-editor-node/design-editor-node.d.ts +16 -0
  157. package/es/data/design-editor-node/design-editor-node.mjs +8 -0
  158. package/es/data/design-node/design-node.d.ts +41 -0
  159. package/es/data/design-node/design-node.mjs +67 -0
  160. package/es/data/index.d.ts +3 -0
  161. package/es/dictionary/index.d.ts +1 -0
  162. package/es/dictionary/tab-type/tab-type.d.ts +5 -0
  163. package/es/dictionary/tab-type/tab-type.mjs +24 -0
  164. package/es/editor/child-list-editor/child-list-editor.css +76 -0
  165. package/es/editor/child-list-editor/child-list-editor.d.ts +163 -0
  166. package/es/editor/child-list-editor/child-list-editor.mjs +143 -0
  167. package/es/editor/child-list-editor/child-list-editor.provider.d.ts +13 -0
  168. package/es/editor/child-list-editor/child-list-editor.provider.mjs +5 -0
  169. package/es/editor/child-list-editor/components/child-list-item-editor.css +112 -0
  170. package/es/editor/child-list-editor/components/child-list-item-editor.d.ts +133 -0
  171. package/es/editor/child-list-editor/components/child-list-item-editor.mjs +238 -0
  172. package/es/editor/child-list-editor/index.d.ts +4 -0
  173. package/es/editor/child-list-editor/index.mjs +13 -0
  174. package/es/editor/content-tag-style/content-tag-style.css +164 -0
  175. package/es/editor/content-tag-style/content-tag-style.d.ts +112 -0
  176. package/es/editor/content-tag-style/content-tag-style.mjs +103 -0
  177. package/es/editor/content-tag-style/index.d.ts +8 -0
  178. package/es/editor/content-tag-style/index.mjs +15 -0
  179. package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.css +156 -0
  180. package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.d.ts +29 -0
  181. package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.mjs +134 -0
  182. package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.css +76 -0
  183. package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.d.ts +38 -0
  184. package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.mjs +163 -0
  185. package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.provider.d.ts +13 -0
  186. package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.provider.mjs +5 -0
  187. package/es/editor/custom-exp-menu-editor/i-custom-exp-menu-model.d.ts +23 -0
  188. package/es/editor/custom-exp-menu-editor/index.d.ts +5 -0
  189. package/es/editor/custom-exp-menu-editor/index.mjs +13 -0
  190. package/es/editor/custom-exp-menu-editor/modal/exp-menu.modal.d.ts +37 -0
  191. package/es/editor/field-info-editor/field-info-editor.css +125 -0
  192. package/es/editor/field-info-editor/field-info-editor.d.ts +111 -0
  193. package/es/editor/field-info-editor/field-info-editor.mjs +60 -0
  194. package/es/editor/field-info-editor/index.d.ts +8 -0
  195. package/es/editor/field-info-editor/index.mjs +13 -0
  196. package/es/editor/index.d.ts +5 -0
  197. package/es/editor/index.mjs +27 -0
  198. package/es/editor/model-field-select/index.d.ts +8 -0
  199. package/es/editor/model-field-select/index.mjs +13 -0
  200. package/es/editor/model-field-select/model-field-select.css +141 -0
  201. package/es/editor/model-field-select/model-field-select.d.ts +42 -0
  202. package/es/editor/model-field-select/model-field-select.mjs +312 -0
  203. package/es/editor/style-border/index.d.ts +8 -0
  204. package/es/editor/style-border/index.mjs +15 -0
  205. package/es/editor/style-border/style-border.d.ts +38 -0
  206. package/es/editor/style-border/style-border.mjs +45 -0
  207. package/es/editor/style-font/index.d.ts +8 -0
  208. package/es/editor/style-font/index.mjs +15 -0
  209. package/es/editor/style-font/style-font.css +86 -0
  210. package/es/editor/style-font/style-font.d.ts +38 -0
  211. package/es/editor/style-font/style-font.mjs +45 -0
  212. package/es/editor/style-position/index.d.ts +8 -0
  213. package/es/editor/style-position/index.mjs +15 -0
  214. package/es/editor/style-position/style-position.d.ts +38 -0
  215. package/es/editor/style-position/style-position.mjs +44 -0
  216. package/es/editor/style-spacing/index.d.ts +8 -0
  217. package/es/editor/style-spacing/index.mjs +15 -0
  218. package/es/editor/style-spacing/style-spacing.d.ts +40 -0
  219. package/es/editor/style-spacing/style-spacing.mjs +69 -0
  220. package/es/editor/system-page-select/i-system-page-select.d.ts +23 -0
  221. package/es/editor/system-page-select/index.d.ts +9 -0
  222. package/es/editor/system-page-select/index.mjs +15 -0
  223. package/es/editor/system-page-select/system-page-select.css +119 -0
  224. package/es/editor/system-page-select/system-page-select.d.ts +38 -0
  225. package/es/editor/system-page-select/system-page-select.mjs +82 -0
  226. package/es/hooks/design-view/getFieldSchema.d.ts +26 -0
  227. package/es/hooks/design-view/getFieldSchema.mjs +78 -0
  228. package/es/hooks/design-view/useDesigner.d.ts +2968 -0
  229. package/es/hooks/design-view/useDesigner.mjs +823 -0
  230. package/es/hooks/design-view/useGlobal.d.ts +1386 -0
  231. package/es/hooks/design-view/useGlobal.mjs +74 -0
  232. package/es/hooks/design-view/usePage.d.ts +59 -0
  233. package/es/hooks/design-view/usePage.mjs +171 -0
  234. package/es/hooks/design-view/usePageOccupy.d.ts +13 -0
  235. package/es/hooks/design-view/usePageOccupy.mjs +69 -0
  236. package/es/hooks/design-view/usePropEditor.d.ts +33 -0
  237. package/es/hooks/design-view/usePropEditor.mjs +99 -0
  238. package/es/hooks/design-view/useScope.d.ts +12 -0
  239. package/es/hooks/design-view/useScope.mjs +92 -0
  240. package/es/hooks/design-view/useSelectedWidget.d.ts +53 -0
  241. package/es/hooks/design-view/useSelectedWidget.mjs +249 -0
  242. package/es/hooks/design-view/useStyle.d.ts +21 -0
  243. package/es/hooks/design-view/useStyle.mjs +30 -0
  244. package/es/hooks/design-view/useStyleEditor.d.ts +27 -0
  245. package/es/hooks/design-view/useToolkit.d.ts +372 -0
  246. package/es/hooks/design-view/useToolkit.mjs +299 -0
  247. package/es/hooks/design-view/useWidget.d.ts +103 -0
  248. package/es/hooks/design-view/useWidget.mjs +124 -0
  249. package/es/hooks/designer.hooks.d.ts +15 -0
  250. package/es/hooks/designer.hooks.mjs +12 -0
  251. package/es/hooks/develop/useCacheHistory.d.ts +67 -0
  252. package/es/hooks/develop/useCacheHistory.mjs +157 -0
  253. package/es/hooks/develop/useKeyParser.d.ts +16 -0
  254. package/es/hooks/develop/useKeyParser.mjs +71 -0
  255. package/es/hooks/index.d.ts +15 -1
  256. package/es/hooks/use-design-view-controller/use-design-view-controller.d.ts +11 -0
  257. package/es/hooks/use-design-view-controller/use-design-view-controller.mjs +26 -0
  258. package/es/hooks/web/useUUid.d.ts +41 -0
  259. package/es/hooks/web/useUUid.mjs +93 -0
  260. package/es/index.d.ts +15 -4
  261. package/es/index.mjs +49 -25
  262. package/es/interface/actions/i-design-view.actions.d.ts +217 -0
  263. package/es/interface/controller/i-design-view.controller.d.ts +53 -14
  264. package/es/interface/design/i-design-container-node.d.ts +13 -0
  265. package/es/interface/design/i-design-data.d.ts +44 -0
  266. package/es/interface/design/i-design-editor-data.d.ts +20 -0
  267. package/es/interface/design/i-design-editor-node.d.ts +15 -0
  268. package/es/interface/design/i-design-node-data.d.ts +19 -0
  269. package/es/interface/design/i-design-node.d.ts +80 -0
  270. package/es/interface/design/i-design-page-node-data.d.ts +15 -0
  271. package/es/interface/design/i-design-tree-item.d.ts +26 -0
  272. package/es/interface/design/i-model-field-node-data/i-model-field-node-data.d.ts +158 -0
  273. package/es/interface/design/index.d.ts +9 -0
  274. package/es/interface/designer/i-designer-dnd-item-hooks.d.ts +21 -0
  275. package/es/interface/designer/i-designer-hooks.d.ts +26 -0
  276. package/es/interface/designer/i-designer-provider.d.ts +103 -0
  277. package/es/interface/designer/i-designer-schema-exports.d.ts +13 -0
  278. package/es/interface/designer/i-designer-state.d.ts +27 -0
  279. package/es/interface/designer/i-designer.controller.d.ts +116 -0
  280. package/es/interface/designer/index.d.ts +6 -0
  281. package/es/interface/editor/child-list-editor/child-list-editor.d.ts +114 -0
  282. package/es/interface/editor/index.d.ts +9 -0
  283. package/es/interface/editor/style-border/i-style-border.controller.d.ts +11 -0
  284. package/es/interface/editor/style-border/i-style-border.d.ts +22 -0
  285. package/es/interface/editor/style-font/i-style-font.controller.d.ts +11 -0
  286. package/es/interface/editor/style-font/i-style-font.d.ts +13 -0
  287. package/es/interface/editor/style-position/i-style-position.controller.d.ts +11 -0
  288. package/es/interface/editor/style-position/i-style-position.d.ts +13 -0
  289. package/es/interface/editor/style-spacing/i-style-spacing.controller.d.ts +11 -0
  290. package/es/interface/editor/style-spacing/i-style-spacing.d.ts +22 -0
  291. package/es/interface/i-design-item-action/i-design-item-action.d.ts +42 -0
  292. package/es/interface/i-design-view-options/i-design-view-options.d.ts +69 -0
  293. package/es/interface/i-drag-collect/i-drag-collect.d.ts +6 -0
  294. package/es/interface/i-drag-data-item/i-drag-data-item.d.ts +13 -2
  295. package/es/interface/i-drag-item/i-drag-item.d.ts +13 -2
  296. package/es/interface/i-drop-collect/i-drop-collect.d.ts +8 -0
  297. package/es/interface/i-drop-result/i-drop-result.d.ts +2 -0
  298. package/es/interface/i-material-data/i-material-data.d.ts +50 -0
  299. package/es/interface/i-material-group/i-material-group.d.ts +51 -0
  300. package/es/interface/i-view-step/i-view-step.d.ts +32 -0
  301. package/es/interface/i-vue3-dnd-item-options/i-vue3-dnd-item-options.d.ts +323 -0
  302. package/es/interface/index.d.ts +31 -7
  303. package/es/interface/page-designer/toolkit.d.ts +12 -0
  304. package/es/interface/provider/i-node-provider.d.ts +142 -0
  305. package/es/interface/state/i-design-view.state.d.ts +107 -10
  306. package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu-component.css +87 -0
  307. package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu.component.d.ts +9 -0
  308. package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu.component.mjs +106 -0
  309. package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.data.d.ts +51 -0
  310. package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.data.mjs +89 -0
  311. package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.provider.d.ts +23 -0
  312. package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.provider.mjs +159 -0
  313. package/es/plugins/design-editor/index.d.ts +5 -0
  314. package/es/plugins/design-editor/index.mjs +13 -0
  315. package/es/plugins/design-editor/upload-file/index.d.ts +4 -0
  316. package/es/plugins/design-editor/upload-file/index.mjs +12 -0
  317. package/es/plugins/design-editor/upload-file/upload-file.css +124 -0
  318. package/es/plugins/design-editor/upload-file/upload-file.d.ts +46 -0
  319. package/es/plugins/design-editor/upload-file/upload-file.mjs +51 -0
  320. package/es/plugins/design-editor/upload-image/index.d.ts +4 -0
  321. package/es/plugins/design-editor/upload-image/index.mjs +12 -0
  322. package/es/plugins/design-editor/upload-image/upload-image.css +79 -0
  323. package/es/plugins/design-editor/upload-image/upload-image.d.ts +46 -0
  324. package/es/plugins/design-editor/upload-image/upload-image.mjs +23 -0
  325. package/es/plugins/design-editor/user-signature/index.d.ts +4 -0
  326. package/es/plugins/design-editor/user-signature/index.mjs +12 -0
  327. package/es/plugins/design-editor/user-signature/user-signature.css +79 -0
  328. package/es/plugins/design-editor/user-signature/user-signature.d.ts +46 -0
  329. package/es/plugins/design-editor/user-signature/user-signature.mjs +23 -0
  330. package/es/plugins/design-grid/components/design-grid.component.css +68 -0
  331. package/es/plugins/design-grid/components/design-grid.component.d.ts +39 -0
  332. package/es/plugins/design-grid/components/design-grid.component.mjs +57 -0
  333. package/es/plugins/design-grid/design-grid.data.d.ts +34 -0
  334. package/es/plugins/design-grid/design-grid.data.mjs +17 -0
  335. package/es/plugins/design-grid/design-grid.provider.d.ts +26 -0
  336. package/es/plugins/design-grid/design-grid.provider.mjs +240 -0
  337. package/es/plugins/design-grid-item/components/design-grid-item.component.d.ts +38 -0
  338. package/es/plugins/design-grid-item/components/design-grid-item.component.mjs +36 -0
  339. package/es/plugins/design-grid-item/design-grid-item.data.d.ts +26 -0
  340. package/es/plugins/design-grid-item/design-grid-item.data.mjs +17 -0
  341. package/es/plugins/design-grid-item/design-grid-item.provider.d.ts +25 -0
  342. package/es/plugins/design-grid-item/design-grid-item.provider.mjs +172 -0
  343. package/es/plugins/design-menu-list/components/design-menu-list.component.css +131 -0
  344. package/es/plugins/design-menu-list/components/design-menu-list.component.d.ts +18 -0
  345. package/es/plugins/design-menu-list/components/design-menu-list.component.mjs +110 -0
  346. package/es/plugins/design-menu-list/design-menu-list.data.d.ts +62 -0
  347. package/es/plugins/design-menu-list/design-menu-list.data.mjs +21 -0
  348. package/es/plugins/design-menu-list/design-menu-list.provider.d.ts +23 -0
  349. package/es/plugins/design-menu-list/design-menu-list.provider.mjs +265 -0
  350. package/es/plugins/design-page/design-page.data.d.ts +15 -0
  351. package/es/plugins/design-page/design-page.data.mjs +17 -0
  352. package/es/plugins/design-page/design-page.provider.d.ts +23 -0
  353. package/es/plugins/design-page/design-page.provider.mjs +109 -0
  354. package/es/plugins/design-panel/components/design-panel-component.css +108 -0
  355. package/es/plugins/design-panel/components/design-panel.component.d.ts +39 -0
  356. package/es/plugins/design-panel/components/design-panel.component.mjs +49 -0
  357. package/es/plugins/design-panel/design-panel.data.d.ts +64 -0
  358. package/es/plugins/design-panel/design-panel.data.mjs +27 -0
  359. package/es/plugins/design-panel/design-panel.provider.d.ts +23 -0
  360. package/es/plugins/design-panel/design-panel.provider.mjs +298 -0
  361. package/es/plugins/design-personal-center/components/design-personal-center.component.css +48 -0
  362. package/es/plugins/design-personal-center/components/design-personal-center.component.vue.d.ts +36 -0
  363. package/es/plugins/design-personal-center/components/design-personal-center.component.vue.mjs +7 -0
  364. package/es/plugins/design-personal-center/components/design-personal-center.component.vue2.mjs +97 -0
  365. package/es/plugins/design-personal-center/design-personal-center.data.d.ts +27 -0
  366. package/es/plugins/design-personal-center/design-personal-center.data.mjs +21 -0
  367. package/es/plugins/design-personal-center/design-personal-center.provider.d.ts +13 -0
  368. package/es/plugins/design-personal-center/design-personal-center.provider.mjs +144 -0
  369. package/es/plugins/design-select-component/components/design-select-component.component.css +107 -0
  370. package/es/plugins/design-select-component/components/design-select-component.component.d.ts +41 -0
  371. package/es/plugins/design-select-component/components/design-select-component.component.mjs +57 -0
  372. package/es/plugins/design-select-component/design-select-component.data.d.ts +57 -0
  373. package/es/plugins/design-select-component/design-select-component.data.mjs +18 -0
  374. package/es/plugins/design-select-component/design-select-component.provider.d.ts +23 -0
  375. package/es/plugins/design-select-component/design-select-component.provider.mjs +207 -0
  376. package/es/plugins/design-tab-item/components/design-tab-item.component.d.ts +38 -0
  377. package/es/plugins/design-tab-item/components/design-tab-item.component.mjs +36 -0
  378. package/es/plugins/design-tab-item/design-tab-item.data.d.ts +35 -0
  379. package/es/plugins/design-tab-item/design-tab-item.data.mjs +22 -0
  380. package/es/plugins/design-tab-item/design-tab-item.provider.d.ts +25 -0
  381. package/es/plugins/design-tab-item/design-tab-item.provider.mjs +185 -0
  382. package/es/plugins/design-tabs/components/design-tabs.component.css +105 -0
  383. package/es/plugins/design-tabs/components/design-tabs.component.d.ts +40 -0
  384. package/es/plugins/design-tabs/components/design-tabs.component.mjs +82 -0
  385. package/es/plugins/design-tabs/design-tabs.data.d.ts +66 -0
  386. package/es/plugins/design-tabs/design-tabs.data.mjs +19 -0
  387. package/es/plugins/design-tabs/design-tabs.provider.d.ts +26 -0
  388. package/es/plugins/design-tabs/design-tabs.provider.mjs +261 -0
  389. package/es/plugins/index.d.ts +5 -0
  390. package/es/plugins/index.mjs +116 -0
  391. package/es/plugins/install-material.d.ts +8 -0
  392. package/es/plugins/install-material.mjs +55 -0
  393. package/es/props/index.d.ts +64 -0
  394. package/es/props/index.mjs +56 -0
  395. package/es/provider/design-editor-node/design-editor-node.provider.d.ts +40 -0
  396. package/es/provider/design-editor-node/design-editor-node.provider.mjs +44 -0
  397. package/es/provider/index.d.ts +2 -0
  398. package/es/provider/node-base/node-base.provider.d.ts +25 -0
  399. package/es/provider/node-base/node-base.provider.mjs +26 -0
  400. package/es/register/designer-register/designer-register.d.ts +53 -0
  401. package/es/register/designer-register/designer-register.mjs +67 -0
  402. package/es/register/index.d.ts +3 -0
  403. package/es/register/material/material.register.d.ts +90 -0
  404. package/es/register/material/material.register.mjs +134 -0
  405. package/es/register/node/node.register.d.ts +113 -0
  406. package/es/register/node/node.register.mjs +134 -0
  407. package/es/store/index.d.ts +1 -0
  408. package/es/store/view/design-view.store.d.ts +5 -0
  409. package/es/store/view/design-view.store.mjs +412 -0
  410. package/es/types/index.d.ts +9 -23
  411. package/es/utils/can-drop/can-drop.d.ts +12 -0
  412. package/es/utils/can-drop/can-drop.mjs +56 -0
  413. package/es/utils/design-install/design-install.d.ts +16 -0
  414. package/es/utils/design-install/design-install.mjs +22 -0
  415. package/es/utils/field-attrs/basicAttrs.d.ts +25 -0
  416. package/es/utils/field-attrs/basicAttrs.mjs +724 -0
  417. package/es/utils/field-attrs/index.d.ts +8 -0
  418. package/es/utils/field-attrs/index.mjs +8 -0
  419. package/es/utils/find-deep-types/find-deep-types.d.ts +9 -0
  420. package/es/utils/find-deep-types/find-deep-types.mjs +30 -0
  421. package/es/utils/index.d.ts +5 -1
  422. package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +97 -0
  423. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +266 -0
  424. package/es/views/design-view.css +218 -0
  425. package/es/views/design-view.d.ts +87 -0
  426. package/es/views/design-view.mjs +343 -0
  427. package/es/views/index.d.ts +1 -0
  428. package/package.json +24 -9
  429. package/es/constant/variable-type/variable-type.d.ts +0 -12
  430. package/es/hooks/index.mjs +0 -3
  431. package/es/hooks/useStyle.d.ts +0 -15
  432. package/es/hooks/useStyle.mjs +0 -135
  433. package/es/interface/controller/i-design-drag.controller.d.ts +0 -42
  434. package/es/interface/design-page/design-page.d.ts +0 -141
  435. package/es/interface/index.mjs +0 -3
  436. package/es/interface/props/index.d.ts +0 -1
  437. package/es/interface/props/index.mjs +0 -1
  438. package/es/interface/props/plugin-comp-props.d.ts +0 -15
  439. package/es/interface/state/i-design-drag.state.d.ts +0 -15
  440. package/es/schema/common-config/autofill-editor-config.d.ts +0 -4
  441. package/es/schema/common-config/autofill-editor-config.mjs +0 -45
  442. package/es/schema/common-config/base-button-config.d.ts +0 -45
  443. package/es/schema/common-config/base-button-config.mjs +0 -85
  444. package/es/schema/common-config/button-editor-config.d.ts +0 -14
  445. package/es/schema/common-config/button-editor-config.mjs +0 -142
  446. package/es/schema/common-config/button-props-func.d.ts +0 -5
  447. package/es/schema/common-config/button-props-func.mjs +0 -12
  448. package/es/schema/common-config/column-editor-config.d.ts +0 -3
  449. package/es/schema/common-config/column-editor-config.mjs +0 -29
  450. package/es/schema/common-config/common-style.d.ts +0 -3
  451. package/es/schema/common-config/common-style.mjs +0 -86
  452. package/es/schema/common-config/display-editor-config.d.ts +0 -3
  453. package/es/schema/common-config/display-editor-config.mjs +0 -67
  454. package/es/schema/common-config/formItem-editor-config.d.ts +0 -3
  455. package/es/schema/common-config/formItem-editor-config.mjs +0 -70
  456. package/es/schema/common-config/permission-editor-config.d.ts +0 -2
  457. package/es/schema/common-config/permission-editor-config.mjs +0 -16
  458. package/es/schema/index.d.ts +0 -9
  459. package/es/schema/index.mjs +0 -11
  460. package/es/utils/index.mjs +0 -3
  461. package/es/utils/message/message.d.ts +0 -14
  462. package/es/utils/message/message.mjs +0 -35
@@ -0,0 +1,8 @@
1
+ import { basicAttrsUtils, FieldComponentConfig } from './basicAttrs';
2
+ export { basicAttrsUtils };
3
+ /**
4
+ * 设计器 字段 映射
5
+ * @param fieldType
6
+ * @returns
7
+ */
8
+ export declare const transformField2Component: (fieldType: string) => FieldComponentConfig | undefined;
@@ -0,0 +1,8 @@
1
+ import { FieldTypeComponentMap } from './basicAttrs.mjs';
2
+ export { basicAttrsUtils } from './basicAttrs.mjs';
3
+
4
+ const transformField2Component = (fieldType) => {
5
+ return FieldTypeComponentMap[fieldType];
6
+ };
7
+
8
+ export { transformField2Component };
@@ -0,0 +1,9 @@
1
+ import { LowCodeWidget } from '@gct-paas/schema';
2
+ /**
3
+ * 返回包含自身以及子的所有组件类型集合
4
+ *
5
+ * @export
6
+ * @param {LowCodeWidget.BasicSchema} item
7
+ * @returns {*} {string[]}
8
+ */
9
+ export declare function findAllChildrenTypes(item: LowCodeWidget.BasicSchema): string[];
@@ -0,0 +1,30 @@
1
+ import { FormComponents } from '@gct-paas/core';
2
+
3
+ const containerTypes = [
4
+ FormComponents.Collapse,
5
+ FormComponents.ButtonContainer,
6
+ FormComponents.LayoutContainer,
7
+ FormComponents.Grid,
8
+ FormComponents.GridCol,
9
+ FormComponents.LeftRightColumns,
10
+ FormComponents.Tabs,
11
+ FormComponents.TabPane
12
+ ];
13
+ function deepFindTypes(item, types = []) {
14
+ if (item.type) {
15
+ types.push(item.type);
16
+ }
17
+ if ((!item.type || containerTypes.includes(item.type)) && item.children && item.children.length > 0) {
18
+ item.children.forEach((child) => {
19
+ deepFindTypes(child, types);
20
+ });
21
+ }
22
+ return types;
23
+ }
24
+ function findAllChildrenTypes(item) {
25
+ const types = deepFindTypes(item);
26
+ const set = new Set(types);
27
+ return Array.from(set);
28
+ }
29
+
30
+ export { findAllChildrenTypes };
@@ -1 +1,5 @@
1
- export { MessageUtil } from './message/message';
1
+ export { isCanCrop } from './can-drop/can-drop';
2
+ export { widthDesignEditorInstall } from './design-install/design-install';
3
+ export { findAllChildrenTypes } from './find-deep-types/find-deep-types';
4
+ export * from './plugin-pkg-util/plugin-pkg-util';
5
+ export { basicAttrsUtils, transformField2Component } from './field-attrs';
@@ -0,0 +1,97 @@
1
+ import { App } from 'vue';
2
+ import { Platform } from '@gct-paas/core';
3
+ export type IModuleMap = Record<string, System.Module>;
4
+ export type LoadPluginResult = [IObject, IModuleMap];
5
+ /**
6
+ * 插件包处理工具类
7
+ *
8
+ * @export
9
+ * @class PluginPgkUtil
10
+ */
11
+ export declare class PluginPgkUtil {
12
+ /**
13
+ * 插件配置缓存
14
+ *
15
+ * @private
16
+ * @type {Map<string, IObject[]>}
17
+ */
18
+ private static cache;
19
+ /**
20
+ * 模块缓存
21
+ *
22
+ * @private
23
+ * @static
24
+ */
25
+ private static cacheModules;
26
+ /**
27
+ * 已经加载的插件与模块的映射
28
+ *
29
+ * @static
30
+ */
31
+ static readonly module: Map<string, System.Module>;
32
+ private static joinPaths;
33
+ /**
34
+ * 加载插件包配置
35
+ *
36
+ * @static
37
+ * @param {PluginModeEnum} mode 插件模式
38
+ * @param {Platform} platform
39
+ * @param {string[]} [kit]
40
+ * @returns {*} {Promise<IStyleIMportMap[]>}
41
+ */
42
+ private static loadPluginConfig;
43
+ /**
44
+ * 批量加载平台界面 system js 插件包
45
+ *
46
+ * @static
47
+ * @param {IStyleIMportMap[]} plugins
48
+ * @returns {*} {Promise<System.Module[]>}
49
+ */
50
+ private static loadPlugins;
51
+ /**
52
+ * 加载插件包
53
+ *
54
+ * @private
55
+ * @static
56
+ * @param {PluginModeEnum} mode
57
+ * @param {Platform} platform
58
+ * @returns {*}
59
+ */
60
+ private static loadPlugin;
61
+ /**
62
+ * 加载设计态插件包
63
+ *
64
+ * @static
65
+ * @param {App} app
66
+ * @param {Platform} platform
67
+ * @returns {*} {Promise<LoadPluginResult>}
68
+ */
69
+ static loadDesignPlugin(_app: App, platform: Platform, kit?: string[]): Promise<LoadPluginResult>;
70
+ /**
71
+ * 加载设计态中,已经被从配置中移除的插件
72
+ *
73
+ * @static
74
+ * @param {Platform} platform
75
+ * @param {IObject[]} configs
76
+ * @returns {*} {Promise<void>}
77
+ */
78
+ static loadDesignDeletedPlugins(platform: Platform, configs?: IObject[]): Promise<void>;
79
+ /**
80
+ * 加载设计态移动端插件包
81
+ *
82
+ * @static
83
+ * @param {App} app
84
+ * @param {IObject[]} configs 界面用到的插件集合
85
+ * @returns {*} {Promise<void>}
86
+ */
87
+ static loadMobilePlugin(configs?: IObject[]): Promise<void>;
88
+ /**
89
+ * 加载设计态网页端插件包
90
+ *
91
+ * @static
92
+ * @param {App} app
93
+ * @param {IObject[]} configs 界面用到的插件集合
94
+ * @returns {*} {Promise<void>}
95
+ */
96
+ static loadWebPlugin(configs?: IObject[]): Promise<void>;
97
+ }
@@ -0,0 +1,266 @@
1
+ import { Platform, PLUGIN_BASE_URL, PluginModeEnum } from '@gct-paas/core';
2
+
3
+ class PluginPgkUtil {
4
+ /**
5
+ * 插件配置缓存
6
+ *
7
+ * @private
8
+ * @type {Map<string, IObject[]>}
9
+ */
10
+ static cache = /* @__PURE__ */ new Map();
11
+ /**
12
+ * 模块缓存
13
+ *
14
+ * @private
15
+ * @static
16
+ */
17
+ static cacheModules = /* @__PURE__ */ new Map();
18
+ /**
19
+ * 已经加载的插件与模块的映射
20
+ *
21
+ * @static
22
+ */
23
+ static module = /* @__PURE__ */ new Map();
24
+ static joinPaths(...paths) {
25
+ return paths.filter((p) => p && p.length > 0).map((p, index) => {
26
+ let normalized = p;
27
+ if (normalized.startsWith("./")) {
28
+ normalized = normalized.slice(2);
29
+ }
30
+ if (normalized.endsWith("/") && index < paths.length - 1) {
31
+ normalized = normalized.slice(0, -1);
32
+ }
33
+ return normalized;
34
+ }).join("/");
35
+ }
36
+ /**
37
+ * 加载插件包配置
38
+ *
39
+ * @static
40
+ * @param {PluginModeEnum} mode 插件模式
41
+ * @param {Platform} platform
42
+ * @param {string[]} [kit]
43
+ * @returns {*} {Promise<IStyleIMportMap[]>}
44
+ */
45
+ static async loadPluginConfig(mode, platform, kit = []) {
46
+ const tag = `${mode}-${platform}-${kit.join("_")}`;
47
+ if (this.cache.has(tag)) {
48
+ return this.cache.get(tag);
49
+ }
50
+ const cfg = {
51
+ client: platform === Platform.WEB ? "WEB" : "MOBILE"
52
+ };
53
+ if (kit.length > 0) {
54
+ cfg.tag = kit.join(",");
55
+ }
56
+ const data = await _api.platform.plugin.postGetTenantCompList(cfg);
57
+ if (data.length > 0) {
58
+ this.cache.set(tag, data);
59
+ }
60
+ return data;
61
+ }
62
+ /**
63
+ * 批量加载平台界面 system js 插件包
64
+ *
65
+ * @static
66
+ * @param {IStyleIMportMap[]} plugins
67
+ * @returns {*} {Promise<System.Module[]>}
68
+ */
69
+ static async loadPlugins(mode, configs = []) {
70
+ const moduleMap = {};
71
+ if (configs.length > 0) {
72
+ const plugins = configs.map((plugin) => {
73
+ const baseUrl = this.joinPaths(PLUGIN_BASE_URL, plugin.url, "dist");
74
+ return {
75
+ imports: {
76
+ [plugin.key]: `${baseUrl}/${mode}.system.min.js?version=${plugin.version}`
77
+ },
78
+ styles: {
79
+ [plugin.key]: `${baseUrl}/${mode}.min.css?version=${plugin.version}`
80
+ }
81
+ };
82
+ });
83
+ const all = [];
84
+ plugins.forEach((plugin) => {
85
+ System.addImportMap(plugin);
86
+ if (plugin.imports) {
87
+ Object.keys(plugin.imports).forEach((key) => {
88
+ const load = async () => {
89
+ try {
90
+ const module = await System.import(key);
91
+ moduleMap[key] = module;
92
+ this.module.set(key, module);
93
+ } catch (error) {
94
+ console.error(error);
95
+ }
96
+ };
97
+ all.push(load());
98
+ });
99
+ }
100
+ });
101
+ await Promise.all(all);
102
+ }
103
+ return moduleMap;
104
+ }
105
+ /**
106
+ * 加载插件包
107
+ *
108
+ * @private
109
+ * @static
110
+ * @param {PluginModeEnum} mode
111
+ * @param {Platform} platform
112
+ * @returns {*}
113
+ */
114
+ static async loadPlugin(mode, platform, kit) {
115
+ kit = ["common", ...kit];
116
+ const tag = `${mode}-${platform}-${kit.join("_")}`;
117
+ try {
118
+ const configs = await this.loadPluginConfig(mode, platform, kit);
119
+ if (!this.cacheModules.has(tag)) {
120
+ const plugins = [];
121
+ configs.forEach((cfg) => {
122
+ if (cfg.plugins) {
123
+ plugins.push(...cfg.plugins);
124
+ }
125
+ });
126
+ const moduleMap = await this.loadPlugins(mode, plugins);
127
+ this.cacheModules.set(tag, moduleMap);
128
+ }
129
+ return [configs, this.cacheModules.get(tag)];
130
+ } catch (error) {
131
+ console.error(error);
132
+ }
133
+ return [[], {}];
134
+ }
135
+ /**
136
+ * 加载设计态插件包
137
+ *
138
+ * @static
139
+ * @param {App} app
140
+ * @param {Platform} platform
141
+ * @returns {*} {Promise<LoadPluginResult>}
142
+ */
143
+ static async loadDesignPlugin(_app, platform, kit = []) {
144
+ try {
145
+ const result = await this.loadPlugin(
146
+ PluginModeEnum.DESIGN,
147
+ platform,
148
+ kit
149
+ );
150
+ const [configs, moduleMap] = result;
151
+ configs.forEach((config) => {
152
+ const plugins = config.plugins;
153
+ plugins.forEach((plugin) => {
154
+ const module = moduleMap[plugin.key];
155
+ if (!module) {
156
+ console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
157
+ return;
158
+ }
159
+ if (platform === Platform.WEB) {
160
+ const cls = module.web ?? module.default;
161
+ if (cls) {
162
+ _gct.register.designer.web.register(plugin.key, () => new cls());
163
+ }
164
+ } else {
165
+ const cls = module.mobile ?? module.default;
166
+ if (cls) {
167
+ _gct.register.designer.mobile.register(
168
+ plugin.key,
169
+ () => new cls()
170
+ );
171
+ }
172
+ }
173
+ });
174
+ });
175
+ return result;
176
+ } catch (error) {
177
+ console.error(error);
178
+ }
179
+ return [[], {}];
180
+ }
181
+ /**
182
+ * 加载设计态中,已经被从配置中移除的插件
183
+ *
184
+ * @static
185
+ * @param {Platform} platform
186
+ * @param {IObject[]} configs
187
+ * @returns {*} {Promise<void>}
188
+ */
189
+ static async loadDesignDeletedPlugins(platform, configs = []) {
190
+ try {
191
+ const moduleMap = await this.loadPlugins(PluginModeEnum.DESIGN, configs);
192
+ configs.forEach((plugin) => {
193
+ const module = moduleMap[plugin.key];
194
+ if (!module) {
195
+ console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
196
+ return;
197
+ }
198
+ if (platform === Platform.WEB) {
199
+ const cls = module.web ?? module.default;
200
+ if (cls) {
201
+ _gct.register.designer.web.register(plugin.key, () => new cls());
202
+ }
203
+ } else {
204
+ const cls = module.mobile ?? module.default;
205
+ if (cls) {
206
+ _gct.register.designer.mobile.register(plugin.key, () => new cls());
207
+ }
208
+ }
209
+ });
210
+ } catch (error) {
211
+ console.error(error);
212
+ }
213
+ }
214
+ /**
215
+ * 加载设计态移动端插件包
216
+ *
217
+ * @static
218
+ * @param {App} app
219
+ * @param {IObject[]} configs 界面用到的插件集合
220
+ * @returns {*} {Promise<void>}
221
+ */
222
+ static async loadMobilePlugin(configs = []) {
223
+ try {
224
+ const moduleMap = await this.loadPlugins(PluginModeEnum.MOBILE, configs);
225
+ configs.forEach((plugin) => {
226
+ if (!moduleMap[plugin.key]) {
227
+ console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
228
+ return;
229
+ }
230
+ _gct.register.render.mobile.register(
231
+ plugin.key,
232
+ moduleMap[plugin.key].default
233
+ );
234
+ });
235
+ } catch (error) {
236
+ console.error(error);
237
+ }
238
+ }
239
+ /**
240
+ * 加载设计态网页端插件包
241
+ *
242
+ * @static
243
+ * @param {App} app
244
+ * @param {IObject[]} configs 界面用到的插件集合
245
+ * @returns {*} {Promise<void>}
246
+ */
247
+ static async loadWebPlugin(configs = []) {
248
+ try {
249
+ const moduleMap = await this.loadPlugins(PluginModeEnum.WEB, configs);
250
+ configs.forEach((plugin) => {
251
+ if (!moduleMap[plugin.key]) {
252
+ console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
253
+ return;
254
+ }
255
+ _gct.register.render.web.register(
256
+ plugin.key,
257
+ moduleMap[plugin.key].default
258
+ );
259
+ });
260
+ } catch (error) {
261
+ console.error(error);
262
+ }
263
+ }
264
+ }
265
+
266
+ export { PluginPgkUtil };
@@ -0,0 +1,218 @@
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-design-view {
66
+ overflow: hidden;
67
+ }
68
+ .gct-design-view__edit-title {
69
+ display: flex;
70
+ }
71
+ .gct-design-view__edit-title span {
72
+ max-width: 160px;
73
+ text-wrap: nowrap;
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ }
77
+
78
+ .gct-design-view-confirm {
79
+ top: 0;
80
+ margin: 0;
81
+ }
82
+ .gct-design-view-confirm .ant-modal-content {
83
+ top: 62px;
84
+ left: 18px;
85
+ }
86
+
87
+ .gct-design-view-continue-edit {
88
+ position: absolute;
89
+ left: 64px;
90
+ bottom: 17px;
91
+ }
92
+ .gct-design-view-continue-edit button {
93
+ cursor: pointer;
94
+ background-color: transparent;
95
+ border: 0;
96
+ color: var(--ant-primary-color);
97
+ font-size: 14px;
98
+ }
99
+
100
+ .gct-design-view-header {
101
+ height: 54px;
102
+ color: #fff;
103
+ background-color: #1a1d23;
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: space-between;
107
+ }
108
+ .gct-design-view-header__left {
109
+ display: flex;
110
+ height: 22px;
111
+ }
112
+
113
+ .gct-design-view-header__right {
114
+ display: flex;
115
+ }
116
+
117
+ .gct-design-view-header__back {
118
+ cursor: pointer;
119
+ margin-left: 16px;
120
+ display: flex;
121
+ justify-content: center;
122
+ align-items: center;
123
+ }
124
+
125
+ .gct-design-view-header__title {
126
+ margin-left: 6px;
127
+ color: #C0C0C0;
128
+ }
129
+
130
+ .gct-design-view-header__view-title-edit {
131
+ display: flex;
132
+ cursor: pointer;
133
+ }
134
+ .gct-design-view-header__view-title-edit--error-info {
135
+ position: absolute;
136
+ top: 45px;
137
+ height: 22px;
138
+ background-color: #feecec;
139
+ border-radius: 4px;
140
+ color: #F54547;
141
+ padding: 0 10px;
142
+ }
143
+
144
+ .gct-design-view-header__view-title-edit .ant-input-affix-wrapper {
145
+ padding: 0 8px 0 0;
146
+ }
147
+ .gct-design-view-header__view-title-edit span {
148
+ padding-right: 8px;
149
+ }
150
+ .gct-design-view-header__view-title-edit .ant-input {
151
+ width: auto;
152
+ flex-grow: 1;
153
+ height: 22px;
154
+ color: #fff;
155
+ padding-left: 0;
156
+ min-width: 0;
157
+ border-radius: 0;
158
+ }
159
+ .gct-design-view-header__view-title-edit .iconfont {
160
+ flex-shrink: 0;
161
+ color: #666;
162
+ }
163
+
164
+ .gct-design-view-header__design-actions .ant-btn:not(:last-child) {
165
+ margin-right: 16px;
166
+ }
167
+ .gct-design-view-header__design-actions .ant-btn {
168
+ padding: 0;
169
+ color: #fff;
170
+ border-color: transparent !important;
171
+ }
172
+ .gct-design-view-header__design-actions .ant-btn .iconfont {
173
+ margin-right: 6px;
174
+ line-height: 1;
175
+ }
176
+ .gct-design-view-header__design-actions .ant-btn:disabled {
177
+ color: #797A7D;
178
+ border-color: transparent !important;
179
+ }
180
+
181
+ .gct-design-view-header__view-actions {
182
+ display: flex;
183
+ margin-right: 12px;
184
+ }
185
+ .gct-design-view-header__view-actions .ant-btn {
186
+ background-color: #444;
187
+ border: 0;
188
+ color: #fff;
189
+ margin-left: 16px;
190
+ display: flex;
191
+ align-items: center;
192
+ justify-self: center;
193
+ padding: 4px 12px;
194
+ }
195
+ .gct-design-view-header__view-actions .ant-btn .iconfont {
196
+ margin-right: 6px;
197
+ }
198
+
199
+ .gct-design-view-content {
200
+ height: calc(100vh - 54px);
201
+ display: flex;
202
+ }
203
+ .gct-design-view-content__left {
204
+ flex-shrink: 0;
205
+ width: 297px;
206
+ height: 100%;
207
+ }
208
+
209
+ .gct-design-view-content__center {
210
+ flex-grow: 1;
211
+ height: 100%;
212
+ }
213
+
214
+ .gct-design-view-content__right {
215
+ flex-shrink: 0;
216
+ width: 250px;
217
+ height: 100%;
218
+ }