@gct-paas/core 0.1.4-dev.0 → 0.1.4-dev.10

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 (404) hide show
  1. package/dist/index.esm.min.mjs +8101 -0
  2. package/dist/index.min.cjs +386 -1
  3. package/dist/index.system.min.js +386 -1
  4. package/es/constants/core.mjs +0 -1
  5. package/es/constants/editor-register/editor-register.mjs +0 -1
  6. package/es/constants/editor-type/editor-type.d.ts +65 -1
  7. package/es/constants/editor-type/editor-type.mjs +14 -1
  8. package/es/constants/expression-type/BuiltOperators.d.ts +20 -0
  9. package/es/constants/expression-type/BuiltOperators.mjs +149 -0
  10. package/es/constants/expression-type/FunctionKeys.d.ts +1 -0
  11. package/es/constants/expression-type/FunctionKeys.mjs +81 -0
  12. package/es/constants/expression-type/editor.d.ts +8 -0
  13. package/es/constants/expression-type/editor.mjs +4 -0
  14. package/es/constants/expression-type/function.d.ts +7 -0
  15. package/es/constants/expression-type/function.mjs +875 -0
  16. package/es/constants/expression-type/index.d.ts +42 -0
  17. package/es/constants/expression-type/index.mjs +120 -0
  18. package/es/constants/expression-type/modeCfg.d.ts +30 -0
  19. package/es/constants/expression-type/modeCfg.mjs +268 -0
  20. package/es/constants/expression-type/variable.d.ts +12 -0
  21. package/es/constants/expression-type/variable.mjs +42 -0
  22. package/es/constants/form-container-type/form-container-type.mjs +0 -1
  23. package/es/constants/index.d.ts +9 -0
  24. package/es/constants/index.mjs +7 -6
  25. package/es/controller/edit-form/edit-form.controller.mjs +0 -1
  26. package/es/controller/editor/color-editor.controller.mjs +0 -1
  27. package/es/controller/editor/length-unit-editor.controller.mjs +0 -1
  28. package/es/controller/editor-item/editor-item.controller.mjs +0 -1
  29. package/es/controller/form/form.controller.mjs +5 -5
  30. package/es/controller/form-collapse/form-collapse.controller.mjs +4 -3
  31. package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +4 -3
  32. package/es/controller/form-edit-item/form-edit-item.controller.d.ts +1 -0
  33. package/es/controller/form-edit-item/form-edit-item.controller.mjs +6 -2
  34. package/es/controller/form-group/form-group.controller.mjs +4 -3
  35. package/es/controller/form-item/form-item.controller.d.ts +1 -0
  36. package/es/controller/form-item/form-item.controller.mjs +7 -3
  37. package/es/controller/form-item-basic/form-item-basic.controller.mjs +3 -2
  38. package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -1
  39. package/es/controller/form-tab/form-tab.controller.mjs +4 -3
  40. package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +4 -3
  41. package/es/controller/gct-form/gct-form.controller.mjs +5 -5
  42. package/es/create-app-vue.d.ts +8 -0
  43. package/es/create-app-vue.mjs +12 -0
  44. package/es/enums/app-designer/index.d.ts +13 -1
  45. package/es/enums/app-designer/index.mjs +8 -2
  46. package/es/enums/appEnum.d.ts +22 -66
  47. package/es/enums/appEnum.mjs +24 -15
  48. package/es/enums/appStateEnum.mjs +0 -1
  49. package/es/enums/authActionEnum.mjs +0 -1
  50. package/es/enums/breakpointEnum.mjs +0 -1
  51. package/es/enums/cacheEnum.mjs +0 -1
  52. package/es/enums/designEnum.d.ts +9 -3
  53. package/es/enums/designEnum.mjs +34 -32
  54. package/es/enums/developer-center/index.d.ts +1 -0
  55. package/es/enums/developer-center/integration.d.ts +4 -0
  56. package/es/enums/developer-center/integration.mjs +7 -0
  57. package/es/enums/exceptionEnum.mjs +0 -1
  58. package/es/enums/expressionEnum.d.ts +130 -0
  59. package/es/enums/expressionEnum.mjs +75 -0
  60. package/es/enums/globalEnum.d.ts +38 -0
  61. package/es/enums/globalEnum.mjs +25 -0
  62. package/es/enums/httpEnum.mjs +0 -1
  63. package/es/enums/index.d.ts +19 -0
  64. package/es/enums/index.mjs +13 -20
  65. package/es/enums/menuEnum.mjs +0 -1
  66. package/es/enums/page-designer/designer.d.ts +23 -3
  67. package/es/enums/page-designer/designer.mjs +90 -6
  68. package/es/enums/page-designer/panel.d.ts +78 -7
  69. package/es/enums/page-designer/panel.mjs +22 -4
  70. package/es/enums/page-designer/toolkit.mjs +0 -1
  71. package/es/enums/page-designer/widget.d.ts +2 -1
  72. package/es/enums/page-designer/widget.mjs +3 -3
  73. package/es/enums/pageEnum.mjs +0 -1
  74. package/es/enums/plugin-enum.mjs +0 -1
  75. package/es/enums/processEnum.d.ts +54 -0
  76. package/es/enums/processEnum.mjs +36 -2
  77. package/es/enums/roleEnum.mjs +0 -1
  78. package/es/enums/sizeEnum.mjs +0 -1
  79. package/es/global/gct/gct.d.ts +39 -25
  80. package/es/global/gct/gct.mjs +49 -27
  81. package/es/hooks/index.d.ts +2 -1
  82. package/es/hooks/use-app-inst/use-app-inst.d.ts +8 -0
  83. package/es/hooks/use-app-inst/use-app-inst.mjs +8 -0
  84. package/es/hooks/use-form/use-form.mjs +0 -1
  85. package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +1 -1
  86. package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -4
  87. package/es/hooks/use-modal/use-modal.mjs +0 -1
  88. package/es/hooks/use-overlay-scrollbars/use-overlay-scrollbars.d.ts +11 -0
  89. package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +27 -0
  90. package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +30 -0
  91. package/es/hooks/useCopyToClipboard.mjs +0 -1
  92. package/es/index.d.ts +7 -9
  93. package/es/index.mjs +94 -48
  94. package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +5 -0
  95. package/es/interface/controller/index.d.ts +0 -1
  96. package/es/interface/form/i-editor/i-editor-basic.d.ts +2 -2
  97. package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +18 -0
  98. package/es/interface/form/i-form/i-form-collapse-pane.d.ts +4 -0
  99. package/es/interface/form/i-form/i-form-item-basic.d.ts +1 -1
  100. package/es/interface/form/i-form/i-form-tab-pane.d.ts +4 -0
  101. package/es/interface/form/index.d.ts +1 -0
  102. package/es/interface/i-app-context/i-app-context.d.ts +34 -0
  103. package/es/interface/i-field-code-chain/i-field-code-chain.d.ts +17 -0
  104. package/es/interface/i-global-var/i-global-var.d.ts +15 -0
  105. package/es/interface/i-mobile-home-menu-item/i-mobile-home-menu-item.d.ts +94 -0
  106. package/es/interface/i-pinia-action/i-global-actions.d.ts +7 -4
  107. package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -5
  108. package/es/interface/i-pinia-state/i-global-state.d.ts +7 -2
  109. package/es/interface/index.d.ts +5 -6
  110. package/es/interface/open-util/i-message-util/i-message-util.d.ts +54 -0
  111. package/es/interface/{i-modal → open-util/i-modal}/i-modal.d.ts +9 -10
  112. package/es/interface/{i-modal-data → open-util/i-modal-data}/i-modal-data.d.ts +6 -0
  113. package/es/interface/open-util/i-modal-options/i-modal-options.d.ts +12 -0
  114. package/es/interface/open-util/i-open-window-options/i-open-window-options.d.ts +59 -0
  115. package/es/interface/open-util/i-overlay-container/i-overlay-container.d.ts +36 -0
  116. package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +36 -0
  117. package/es/interface/open-util/index.d.ts +7 -0
  118. package/es/interface/state/index.d.ts +0 -1
  119. package/es/locale/index.d.ts +19 -0
  120. package/es/locale/index.mjs +60 -0
  121. package/es/modules/env-manager/env-manager.const.d.ts +14 -0
  122. package/es/modules/env-manager/env-manager.const.mjs +9 -0
  123. package/es/modules/env-manager/env-manager.d.ts +59 -0
  124. package/es/modules/env-manager/env-manager.interface.d.ts +43 -0
  125. package/es/modules/env-manager/env-manager.interface.mjs +8 -0
  126. package/es/modules/env-manager/env-manager.mjs +108 -0
  127. package/es/modules/env-manager/index.d.ts +3 -0
  128. package/es/modules/error-handler/error-handler.const.d.ts +48 -0
  129. package/es/modules/error-handler/error-handler.const.mjs +18 -0
  130. package/es/modules/error-handler/error-handler.interface.d.ts +51 -0
  131. package/es/modules/error-handler/error-strategy.d.ts +138 -0
  132. package/es/modules/error-handler/error-strategy.mjs +175 -0
  133. package/es/modules/error-handler/index.d.ts +78 -0
  134. package/es/modules/error-handler/index.mjs +108 -0
  135. package/es/modules/platform-config/constants/index.d.ts +7 -0
  136. package/es/modules/platform-config/constants/login.const.d.ts +15 -0
  137. package/es/modules/platform-config/constants/login.const.mjs +50 -0
  138. package/es/modules/platform-config/constants/org.const.d.ts +9 -0
  139. package/es/modules/platform-config/constants/org.const.mjs +54 -0
  140. package/es/modules/platform-config/constants/theme.const.d.ts +9 -0
  141. package/es/modules/platform-config/constants/theme.const.mjs +5 -0
  142. package/es/modules/platform-config/constants/watermark.const.d.ts +16 -0
  143. package/es/modules/platform-config/constants/watermark.const.mjs +14 -0
  144. package/es/modules/platform-config/enums/deploy.enum.d.ts +10 -0
  145. package/es/modules/platform-config/enums/deploy.enum.mjs +7 -0
  146. package/es/modules/platform-config/enums/index.d.ts +6 -0
  147. package/es/modules/platform-config/enums/login.enum.d.ts +25 -0
  148. package/es/modules/platform-config/enums/login.enum.mjs +16 -0
  149. package/es/modules/platform-config/enums/platform.enum.d.ts +27 -0
  150. package/es/modules/platform-config/enums/platform.enum.mjs +26 -0
  151. package/es/modules/platform-config/index.d.ts +8 -0
  152. package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +7 -0
  153. package/es/modules/platform-config/interfaces/index.d.ts +7 -0
  154. package/es/modules/platform-config/interfaces/login-config.interface.d.ts +17 -0
  155. package/es/modules/platform-config/interfaces/platform-map.interface.d.ts +8 -0
  156. package/es/modules/platform-config/interfaces/theme-setting.interface.d.ts +30 -0
  157. package/es/modules/platform-config/store.d.ts +221 -0
  158. package/es/modules/platform-config/store.mjs +78 -0
  159. package/es/modules/platform-config/useBasicSetting.d.ts +11 -0
  160. package/es/modules/platform-config/useBasicSetting.mjs +39 -0
  161. package/es/modules/platform-config/useDeploySetting.d.ts +19 -0
  162. package/es/modules/platform-config/useDeploySetting.mjs +27 -0
  163. package/es/modules/platform-config/useLoginSetting.d.ts +15 -0
  164. package/es/modules/platform-config/useLoginSetting.mjs +177 -0
  165. package/es/modules/platform-config/useOrgSetting.d.ts +34 -0
  166. package/es/modules/platform-config/useOrgSetting.mjs +66 -0
  167. package/es/modules/platform-config/useProjectSetting.d.ts +12 -0
  168. package/es/modules/platform-config/useProjectSetting.mjs +11 -0
  169. package/es/modules/platform-config/useSecuritySetting.d.ts +11 -0
  170. package/es/modules/platform-config/useSecuritySetting.mjs +60 -0
  171. package/es/modules/platform-config/useThemeSetting.d.ts +16 -0
  172. package/es/modules/platform-config/useThemeSetting.mjs +64 -0
  173. package/es/modules/platform-config/useWatermarkSetting.d.ts +21 -0
  174. package/es/modules/platform-config/useWatermarkSetting.mjs +26 -0
  175. package/es/modules/user-stores/index.d.ts +3 -0
  176. package/es/modules/user-stores/store/permission.store.d.ts +21 -0
  177. package/es/modules/user-stores/store/permission.store.mjs +38 -0
  178. package/es/modules/user-stores/store/tenant.store.d.ts +9 -0
  179. package/es/modules/user-stores/store/tenant.store.mjs +24 -0
  180. package/es/modules/user-stores/store/user.store.d.ts +154 -0
  181. package/es/modules/user-stores/store/user.store.mjs +108 -0
  182. package/es/modules/user-stores/types/permission.d.ts +1 -0
  183. package/es/modules/user-stores/types/tenant.d.ts +1 -0
  184. package/es/modules/user-stores/types/user.d.ts +14 -0
  185. package/es/register/editor-register/editor-register.d.ts +5 -13
  186. package/es/register/editor-register/editor-register.mjs +8 -17
  187. package/es/register/form-item-register/form-item-register.d.ts +4 -15
  188. package/es/register/form-item-register/form-item-register.mjs +7 -17
  189. package/es/register/index.d.ts +12 -2
  190. package/es/router/index.d.ts +13 -0
  191. package/es/router/index.mjs +31 -0
  192. package/es/setup-app.d.ts +8 -0
  193. package/es/setup-app.mjs +31 -0
  194. package/es/state/form/form.state.mjs +0 -1
  195. package/es/state/form-collapse/form-collapse.state.mjs +0 -1
  196. package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -1
  197. package/es/state/form-edit-item/form-edit-item.state.mjs +0 -1
  198. package/es/state/form-group/form-group.state.mjs +0 -1
  199. package/es/state/form-item/form-item.state.mjs +0 -1
  200. package/es/state/form-item-basic/form-item-basic.state.mjs +0 -1
  201. package/es/state/form-tab/form-tab.state.mjs +0 -1
  202. package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -1
  203. package/es/state/global-pinia-state/global-pinia-state.d.ts +8 -13
  204. package/es/state/global-pinia-state/global-pinia-state.mjs +35 -9
  205. package/es/store/global-store.d.ts +1 -0
  206. package/es/store/global-store.mjs +38 -9
  207. package/es/store/index.d.ts +2 -3
  208. package/es/store/index.mjs +0 -1
  209. package/es/types/index.d.ts +51 -1
  210. package/es/utils/axios/interceptors.mjs +2 -23
  211. package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
  212. package/es/utils/cache-adapter/cache-adapter.mjs +59 -0
  213. package/es/utils/deviceFingerprint.d.ts +17 -0
  214. package/es/utils/deviceFingerprint.mjs +73 -0
  215. package/es/utils/dictionary/dictionary.mjs +0 -1
  216. package/es/utils/i18n/index.d.ts +2 -1
  217. package/es/utils/i18n/index.mjs +3 -4
  218. package/es/utils/index.d.ts +20 -4
  219. package/es/utils/is-sort-filed/is-sort-filed.d.ts +10 -0
  220. package/es/utils/is-sort-filed/is-sort-filed.mjs +40 -0
  221. package/es/utils/linked-list/linked-list.d.ts +72 -0
  222. package/es/utils/linked-list/linked-list.mjs +119 -0
  223. package/es/utils/linked-node/linked-node.d.ts +31 -0
  224. package/es/utils/linked-node/linked-node.mjs +32 -0
  225. package/es/utils/lowcode/utils.d.ts +1 -0
  226. package/es/utils/lowcode/utils.mjs +20 -0
  227. package/es/utils/lowcode/validate.d.ts +13 -0
  228. package/es/utils/lowcode/validate.mjs +29 -0
  229. package/es/utils/mitt/mitt.d.ts +1 -0
  230. package/es/utils/mitt/mitt.mjs +5 -0
  231. package/es/utils/model-loader/model-loader.d.ts +118 -0
  232. package/es/utils/model-loader/model-loader.mjs +326 -0
  233. package/es/utils/namespace/namespace.d.ts +8 -0
  234. package/es/utils/namespace/namespace.mjs +4 -2
  235. package/es/utils/openUtil/index.d.ts +2 -0
  236. package/es/utils/openUtil/modal/modal.d.ts +61 -0
  237. package/es/utils/openUtil/modal/modal.mjs +80 -0
  238. package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
  239. package/es/utils/openUtil/overlay-container/overlay-container.mjs +139 -0
  240. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -2
  241. package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +63 -0
  242. package/es/utils/props/gct-form-item/gct-form-item.props.mjs +66 -0
  243. package/es/utils/props/index.d.ts +1 -0
  244. package/es/utils/style/index.d.ts +16 -0
  245. package/es/utils/style/index.mjs +141 -0
  246. package/es/utils/tools/tools.d.ts +23 -21
  247. package/es/utils/tools/tools.mjs +37 -27
  248. package/es/utils/treeHelper/treeHelper.d.ts +118 -0
  249. package/es/utils/treeHelper/treeHelper.mjs +234 -0
  250. package/es/utils/useUUid.d.ts +41 -0
  251. package/es/utils/useUUid.mjs +93 -0
  252. package/es/utils/util.d.ts +39 -0
  253. package/es/utils/util.mjs +40 -0
  254. package/es/utils/uuid/uuid.d.ts +3 -0
  255. package/es/utils/uuid/uuid.mjs +48 -0
  256. package/es/utils/value-helper/value-helper.d.ts +49 -0
  257. package/es/utils/value-helper/value-helper.mjs +111 -0
  258. package/es/utils/width-install/width-install.mjs +4 -2
  259. package/package.json +41 -22
  260. package/es/_virtual/_commonjsHelpers.mjs +0 -44
  261. package/es/_virtual/index.mjs +0 -7
  262. package/es/controller/index.mjs +0 -17
  263. package/es/enums/page-designer/index.mjs +0 -6
  264. package/es/global/index.mjs +0 -3
  265. package/es/hooks/index.mjs +0 -7
  266. package/es/hooks/use-namespace/use-namespace.d.ts +0 -9
  267. package/es/hooks/use-namespace/use-namespace.mjs +0 -9
  268. package/es/interface/controller/edit-form/edit-form.controller.mjs +0 -1
  269. package/es/interface/controller/editor/i-color-editor.controller.mjs +0 -1
  270. package/es/interface/controller/editor/i-length-unit-editor.controller.mjs +0 -1
  271. package/es/interface/controller/editor-item/editor-item.controller.mjs +0 -1
  272. package/es/interface/controller/form/form.controller.mjs +0 -3
  273. package/es/interface/controller/form-collapse/form-collapse.controller.mjs +0 -1
  274. package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.mjs +0 -1
  275. package/es/interface/controller/form-edit-item/form-edit-item.controller.mjs +0 -1
  276. package/es/interface/controller/form-group/form-group.controller.mjs +0 -1
  277. package/es/interface/controller/form-hidden-item/form-hidden-item.controller.mjs +0 -1
  278. package/es/interface/controller/form-item/form-item.controller.mjs +0 -1
  279. package/es/interface/controller/form-item-basic/form-item-basic.controller.mjs +0 -1
  280. package/es/interface/controller/form-tab/form-tab.controller.mjs +0 -1
  281. package/es/interface/controller/form-tab-pane/form-tab-pane.controller.mjs +0 -1
  282. package/es/interface/controller/i-designer-controller.d.ts +0 -116
  283. package/es/interface/controller/i-designer-controller.mjs +0 -1
  284. package/es/interface/controller/index.mjs +0 -1
  285. package/es/interface/events/form/i-form.event.mjs +0 -1
  286. package/es/interface/events/index.mjs +0 -1
  287. package/es/interface/form/i-editor/i-check-switch.mjs +0 -3
  288. package/es/interface/form/i-editor/i-checkbox-editor.mjs +0 -3
  289. package/es/interface/form/i-editor/i-color-editor.mjs +0 -3
  290. package/es/interface/form/i-editor/i-editor-basic.mjs +0 -1
  291. package/es/interface/form/i-editor/i-icon-select-editor.mjs +0 -3
  292. package/es/interface/form/i-editor/i-info-editor.mjs +0 -3
  293. package/es/interface/form/i-editor/i-length-unit-editor.mjs +0 -3
  294. package/es/interface/form/i-editor/i-number-editor.mjs +0 -3
  295. package/es/interface/form/i-editor/i-picker-editor.mjs +0 -3
  296. package/es/interface/form/i-editor/i-radio-editor.mjs +0 -3
  297. package/es/interface/form/i-editor/i-select-editor.mjs +0 -3
  298. package/es/interface/form/i-editor/i-span-editor.mjs +0 -3
  299. package/es/interface/form/i-editor/i-switch-editor.mjs +0 -3
  300. package/es/interface/form/i-editor/i-text-editor.mjs +0 -3
  301. package/es/interface/form/i-editor/i-textarea-editor.mjs +0 -3
  302. package/es/interface/form/i-form/i-edit-form.mjs +0 -1
  303. package/es/interface/form/i-form/i-form-collapse-pane.mjs +0 -1
  304. package/es/interface/form/i-form/i-form-collapse.mjs +0 -1
  305. package/es/interface/form/i-form/i-form-container.mjs +0 -1
  306. package/es/interface/form/i-form/i-form-edit-item.mjs +0 -1
  307. package/es/interface/form/i-form/i-form-group-container.mjs +0 -1
  308. package/es/interface/form/i-form/i-form-group.mjs +0 -1
  309. package/es/interface/form/i-form/i-form-hidden-item.mjs +0 -1
  310. package/es/interface/form/i-form/i-form-item-basic.mjs +0 -1
  311. package/es/interface/form/i-form/i-form-item.mjs +0 -1
  312. package/es/interface/form/i-form/i-form-tab-pane.mjs +0 -1
  313. package/es/interface/form/i-form/i-form-tab.mjs +0 -1
  314. package/es/interface/form/i-form/i-form.mjs +0 -1
  315. package/es/interface/form/index.mjs +0 -1
  316. package/es/interface/hooks/i-designer-hooks.d.ts +0 -26
  317. package/es/interface/hooks/i-designer-hooks.mjs +0 -3
  318. package/es/interface/hooks/index.d.ts +0 -1
  319. package/es/interface/hooks/index.mjs +0 -1
  320. package/es/interface/i-dictionary/i-dictionary-item.mjs +0 -1
  321. package/es/interface/i-dictionary/i-dictionary.mjs +0 -1
  322. package/es/interface/i-http-response/i-http-response.d.ts +0 -29
  323. package/es/interface/i-http-response/i-http-response.mjs +0 -1
  324. package/es/interface/i-import-style-map/i-import-style-map.mjs +0 -1
  325. package/es/interface/i-message-util/i-message-util.d.ts +0 -78
  326. package/es/interface/i-message-util/i-message-util.mjs +0 -1
  327. package/es/interface/i-modal/i-modal.mjs +0 -3
  328. package/es/interface/i-modal-data/i-modal-data.mjs +0 -1
  329. package/es/interface/i-pinia-action/i-global-actions.mjs +0 -1
  330. package/es/interface/i-pinia-getter/i-global-getters.mjs +0 -1
  331. package/es/interface/i-pinia-state/i-global-state.mjs +0 -1
  332. package/es/interface/index.mjs +0 -1
  333. package/es/interface/layout/i-flex-layout/i-flex-container.mjs +0 -1
  334. package/es/interface/layout/i-flex-layout/i-flex-item.mjs +0 -1
  335. package/es/interface/layout/i-grid-layout/i-grid-container.mjs +0 -1
  336. package/es/interface/layout/i-grid-layout/i-grid-item-span.mjs +0 -1
  337. package/es/interface/layout/i-grid-layout/i-grid-item.mjs +0 -1
  338. package/es/interface/layout/i-layout-basis/i-layout-container-basis.mjs +0 -1
  339. package/es/interface/layout/index.mjs +0 -1
  340. package/es/interface/low-code-types/index.d.ts +0 -4
  341. package/es/interface/low-code-types/index.mjs +0 -5
  342. package/es/interface/low-code-types/modal-types.d.ts +0 -67
  343. package/es/interface/low-code-types/modal-types.mjs +0 -3
  344. package/es/interface/low-code-types/model/index.d.ts +0 -5338
  345. package/es/interface/low-code-types/model/index.mjs +0 -1
  346. package/es/interface/low-code-types/schema/index.d.ts +0 -12
  347. package/es/interface/low-code-types/schema/index.mjs +0 -1
  348. package/es/interface/low-code-types/widget-basic-types.d.ts +0 -667
  349. package/es/interface/low-code-types/widget-basic-types.mjs +0 -3
  350. package/es/interface/provider/i-editor-provider/i-editor-provider.mjs +0 -1
  351. package/es/interface/provider/i-form-item-provider/i-form-item-provider.mjs +0 -1
  352. package/es/interface/provider/i-provider-basic/i-provider-basic.mjs +0 -1
  353. package/es/interface/provider/index.mjs +0 -1
  354. package/es/interface/state/form/form.state.mjs +0 -1
  355. package/es/interface/state/form-collapse/form-collapse.state.mjs +0 -1
  356. package/es/interface/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -1
  357. package/es/interface/state/form-edit-item/form-edit-item.state.mjs +0 -1
  358. package/es/interface/state/form-group/form-group.state.mjs +0 -1
  359. package/es/interface/state/form-hidden-item/form-hidden-item.state.mjs +0 -1
  360. package/es/interface/state/form-item/form-item.state.mjs +0 -1
  361. package/es/interface/state/form-item-basic/form-item-basic.state.mjs +0 -1
  362. package/es/interface/state/form-tab/form-tab.state.mjs +0 -1
  363. package/es/interface/state/form-tab-pane/form-tab-pane.state.mjs +0 -1
  364. package/es/interface/state/i-designer-state.d.ts +0 -27
  365. package/es/interface/state/i-designer-state.mjs +0 -1
  366. package/es/interface/state/index.mjs +0 -1
  367. package/es/interface/style/i-border.mjs +0 -1
  368. package/es/interface/style/i-font.mjs +0 -1
  369. package/es/interface/style/i-margin.mjs +0 -1
  370. package/es/interface/style/i-padding.mjs +0 -1
  371. package/es/interface/style/i-position.mjs +0 -1
  372. package/es/interface/style/i-spacing.mjs +0 -1
  373. package/es/interface/style/index.mjs +0 -1
  374. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
  375. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
  376. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
  377. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
  378. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
  379. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
  380. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
  381. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
  382. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
  383. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
  384. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
  385. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
  386. package/es/provider/i-designer-provider/i-designer-provider.d.ts +0 -102
  387. package/es/provider/i-designer-provider/i-designer-provider.mjs +0 -1
  388. package/es/provider/index.d.ts +0 -1
  389. package/es/provider/index.mjs +0 -1
  390. package/es/register/designer-register/designer-register.d.ts +0 -53
  391. package/es/register/designer-register/designer-register.mjs +0 -69
  392. package/es/register/index.mjs +0 -6
  393. package/es/register/render-register/render-register.d.ts +0 -59
  394. package/es/register/render-register/render-register.mjs +0 -65
  395. package/es/service/base.service.d.ts +0 -19
  396. package/es/service/base.service.mjs +0 -41
  397. package/es/service/index.d.ts +0 -1
  398. package/es/service/index.mjs +0 -3
  399. package/es/state/index.mjs +0 -12
  400. package/es/utils/axios/axios.d.ts +0 -27
  401. package/es/utils/axios/axios.mjs +0 -84
  402. package/es/utils/index.mjs +0 -10
  403. package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +0 -96
  404. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +0 -262
@@ -1,27 +0,0 @@
1
- import { AxiosInstance, AxiosRequestConfig, CreateAxiosDefaults } from 'axios';
2
- import { IHttpResponse } from '../../interface';
3
- /**
4
- * 全局请求工具
5
- *
6
- * @export
7
- * @class HttpUtil
8
- */
9
- export declare class HttpUtil {
10
- protected _options: CreateAxiosDefaults;
11
- readonly instance: AxiosInstance;
12
- constructor(_options?: CreateAxiosDefaults);
13
- /**
14
- * 挂载中间件
15
- *
16
- * @param {(_axios: AxiosInstance) => void} fn
17
- */
18
- use(fn: (_axios: AxiosInstance) => void): void;
19
- get<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
20
- post<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
21
- put<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
22
- delete<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
23
- options<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
24
- patch<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
25
- head<T = any>(url: string, data?: IObject, query?: IParams, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
26
- request<T = any>(url: string, data: IObject | null, query: IParams | null, config?: AxiosRequestConfig): Promise<IHttpResponse<T>>;
27
- }
@@ -1,84 +0,0 @@
1
- import axios from 'axios';
2
- import qs from 'qs';
3
- import { deepMerge } from '../tools/tools.mjs';
4
- import { interceptors } from './interceptors.mjs';
5
- import '../../enums/index.mjs';
6
- import { ContentTypeEnum } from '../../enums/httpEnum.mjs';
7
-
8
- "use strict";
9
- class HttpUtil {
10
- constructor(_options = {}) {
11
- this._options = _options;
12
- this.instance = axios.create(
13
- deepMerge(
14
- {
15
- baseURL: "/gct-apaas/api"
16
- },
17
- _options
18
- )
19
- );
20
- this.use(interceptors);
21
- }
22
- instance;
23
- /**
24
- * 挂载中间件
25
- *
26
- * @param {(_axios: AxiosInstance) => void} fn
27
- */
28
- use(fn) {
29
- fn(this.instance);
30
- }
31
- get(url, data = {}, query = {}, config = {}) {
32
- return this.request(url, data, query, { ...config, method: "GET" });
33
- }
34
- post(url, data = {}, query = {}, config = {}) {
35
- return this.request(url, data, query, { ...config, method: "POST" });
36
- }
37
- put(url, data = {}, query = {}, config = {}) {
38
- return this.request(url, data, query, { ...config, method: "PUT" });
39
- }
40
- delete(url, data = {}, query = {}, config = {}) {
41
- return this.request(url, data, query, { ...config, method: "DELETE" });
42
- }
43
- options(url, data = {}, query = {}, config = {}) {
44
- return this.request(url, data, query, { ...config, method: "OPTIONS" });
45
- }
46
- patch(url, data = {}, query = {}, config = {}) {
47
- return this.request(url, data, query, { ...config, method: "PATCH" });
48
- }
49
- head(url, data = {}, query = {}, config = {}) {
50
- return this.request(url, data, query, { ...config, method: "HEAD" });
51
- }
52
- async request(url, data, query, config = {}) {
53
- if (query) {
54
- const queryStr = qs.stringify(query, { arrayFormat: "brackets" });
55
- if (queryStr) {
56
- if (url.includes("?")) {
57
- url += `&${queryStr}`;
58
- } else {
59
- url += `?${queryStr}`;
60
- }
61
- }
62
- }
63
- const res = await this.instance.request(
64
- deepMerge(
65
- {
66
- url,
67
- data: JSON.stringify(data ? data : {}),
68
- params: query,
69
- timeout: 2 * 60 * 1e3,
70
- headers: {
71
- "Content-Type": ContentTypeEnum.JSON
72
- }
73
- },
74
- config
75
- )
76
- );
77
- if (res.status >= 200 && res.status < 300) {
78
- return res.data;
79
- }
80
- throw res;
81
- }
82
- }
83
-
84
- export { HttpUtil };
@@ -1,10 +0,0 @@
1
- export { HttpUtil } from './axios/axios.mjs';
2
- export { DictionaryUtil } from './dictionary/dictionary.mjs';
3
- export { t } from './i18n/index.mjs';
4
- export { Namespace } from './namespace/namespace.mjs';
5
- export { PluginPgkUtil } from './plugin-pkg-util/plugin-pkg-util.mjs';
6
- export { PluginStaticResource } from './plugin-static-resource/plugin-static-resource.mjs';
7
- export { deepMerge, getPathQuery, getTenant, getTimezone, getToken, isMobile, setTenant, setToken } from './tools/tools.mjs';
8
- export { widthEditorInstall } from './width-install/width-install.mjs';
9
-
10
- "use strict";
@@ -1,96 +0,0 @@
1
- import { App } from 'vue';
2
- import { Platform } from '../../enums';
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
- /**
33
- * 加载插件包配置
34
- *
35
- * @static
36
- * @param {PluginModeEnum} mode 插件模式
37
- * @param {Platform} platform
38
- * @param {string[]} [kit]
39
- * @returns {*} {Promise<IStyleIMportMap[]>}
40
- */
41
- private static loadPluginConfig;
42
- /**
43
- * 批量加载平台界面 system js 插件包
44
- *
45
- * @static
46
- * @param {IStyleIMportMap[]} plugins
47
- * @returns {*} {Promise<System.Module[]>}
48
- */
49
- private static loadPlugins;
50
- /**
51
- * 加载插件包
52
- *
53
- * @private
54
- * @static
55
- * @param {PluginModeEnum} mode
56
- * @param {Platform} platform
57
- * @returns {*}
58
- */
59
- private static loadPlugin;
60
- /**
61
- * 加载设计态插件包
62
- *
63
- * @static
64
- * @param {App} app
65
- * @param {Platform} platform
66
- * @returns {*} {Promise<LoadPluginResult>}
67
- */
68
- static loadDesignPlugin(_app: App, platform: Platform, kit?: string[]): Promise<LoadPluginResult>;
69
- /**
70
- * 加载设计态中,已经被从配置中移除的插件
71
- *
72
- * @static
73
- * @param {Platform} platform
74
- * @param {IObject[]} configs
75
- * @returns {*} {Promise<void>}
76
- */
77
- static loadDesignDeletedPlugins(platform: Platform, configs?: IObject[]): Promise<void>;
78
- /**
79
- * 加载设计态移动端插件包
80
- *
81
- * @static
82
- * @param {App} app
83
- * @param {IObject[]} configs 界面用到的插件集合
84
- * @returns {*} {Promise<void>}
85
- */
86
- static loadMobilePlugin(configs?: IObject[]): Promise<void>;
87
- /**
88
- * 加载设计态网页端插件包
89
- *
90
- * @static
91
- * @param {App} app
92
- * @param {IObject[]} configs 界面用到的插件集合
93
- * @returns {*} {Promise<void>}
94
- */
95
- static loadWebPlugin(configs?: IObject[]): Promise<void>;
96
- }
@@ -1,262 +0,0 @@
1
- import path from '../../_virtual/index.mjs';
2
- import { PLUGIN_BASE_URL } from '../../constants/index.mjs';
3
- import '../../enums/index.mjs';
4
- import { Platform } from '../../enums/page-designer/widget.mjs';
5
- import { PluginModeEnum } from '../../enums/plugin-enum.mjs';
6
-
7
- "use strict";
8
- class PluginPgkUtil {
9
- /**
10
- * 插件配置缓存
11
- *
12
- * @private
13
- * @type {Map<string, IObject[]>}
14
- */
15
- static cache = /* @__PURE__ */ new Map();
16
- /**
17
- * 模块缓存
18
- *
19
- * @private
20
- * @static
21
- */
22
- static cacheModules = /* @__PURE__ */ new Map();
23
- /**
24
- * 已经加载的插件与模块的映射
25
- *
26
- * @static
27
- */
28
- static module = /* @__PURE__ */ new Map();
29
- /**
30
- * 加载插件包配置
31
- *
32
- * @static
33
- * @param {PluginModeEnum} mode 插件模式
34
- * @param {Platform} platform
35
- * @param {string[]} [kit]
36
- * @returns {*} {Promise<IStyleIMportMap[]>}
37
- */
38
- static async loadPluginConfig(mode, platform, kit = []) {
39
- const tag = `${mode}-${platform}-${kit.join("_")}`;
40
- if (this.cache.has(tag)) {
41
- return this.cache.get(tag);
42
- }
43
- const cfg = {
44
- client: platform === Platform.WEB ? "WEB" : "MOBILE"
45
- };
46
- if (kit.length > 0) {
47
- cfg.tag = kit.join(",");
48
- }
49
- const res = await _gct.api.platform.plugin.postGetTenantCompList(
50
- cfg
51
- );
52
- const configs = res.data;
53
- if (configs.length > 0) {
54
- this.cache.set(tag, configs);
55
- }
56
- return configs;
57
- }
58
- /**
59
- * 批量加载平台界面 system js 插件包
60
- *
61
- * @static
62
- * @param {IStyleIMportMap[]} plugins
63
- * @returns {*} {Promise<System.Module[]>}
64
- */
65
- static async loadPlugins(mode, configs = []) {
66
- const moduleMap = {};
67
- if (configs.length > 0) {
68
- const plugins = configs.map((plugin) => {
69
- const baseUrl = path.join(PLUGIN_BASE_URL, plugin.url, "dist");
70
- return {
71
- imports: {
72
- [plugin.key]: `${baseUrl}/${mode}.system.min.js?version=${plugin.version}`
73
- },
74
- styles: {
75
- [plugin.key]: `${baseUrl}/${mode}.min.css?version=${plugin.version}`
76
- }
77
- };
78
- });
79
- const all = [];
80
- plugins.forEach((plugin) => {
81
- System.addImportMap(plugin);
82
- if (plugin.imports) {
83
- Object.keys(plugin.imports).forEach((key) => {
84
- const load = async () => {
85
- try {
86
- const module = await System.import(key);
87
- moduleMap[key] = module;
88
- this.module.set(key, module);
89
- } catch (error) {
90
- console.error(error);
91
- }
92
- };
93
- all.push(load());
94
- });
95
- }
96
- });
97
- await Promise.all(all);
98
- }
99
- return moduleMap;
100
- }
101
- /**
102
- * 加载插件包
103
- *
104
- * @private
105
- * @static
106
- * @param {PluginModeEnum} mode
107
- * @param {Platform} platform
108
- * @returns {*}
109
- */
110
- static async loadPlugin(mode, platform, kit) {
111
- kit = ["common", ...kit];
112
- const tag = `${mode}-${platform}-${kit.join("_")}`;
113
- try {
114
- const configs = await this.loadPluginConfig(mode, platform, kit);
115
- if (!this.cacheModules.has(tag)) {
116
- const plugins = [];
117
- configs.forEach((cfg) => {
118
- if (cfg.plugins) {
119
- plugins.push(...cfg.plugins);
120
- }
121
- });
122
- const moduleMap = await this.loadPlugins(mode, plugins);
123
- this.cacheModules.set(tag, moduleMap);
124
- }
125
- return [configs, this.cacheModules.get(tag)];
126
- } catch (error) {
127
- console.error(error);
128
- }
129
- return [[], {}];
130
- }
131
- /**
132
- * 加载设计态插件包
133
- *
134
- * @static
135
- * @param {App} app
136
- * @param {Platform} platform
137
- * @returns {*} {Promise<LoadPluginResult>}
138
- */
139
- static async loadDesignPlugin(_app, platform, kit = []) {
140
- try {
141
- const result = await this.loadPlugin(
142
- PluginModeEnum.DESIGN,
143
- platform,
144
- kit
145
- );
146
- const [configs, moduleMap] = result;
147
- configs.forEach((config) => {
148
- const plugins = config.plugins;
149
- plugins.forEach((plugin) => {
150
- const module = moduleMap[plugin.key];
151
- if (!module) {
152
- console.error(`${plugin.key} \u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u63D2\u4EF6\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
153
- return;
154
- }
155
- if (platform === Platform.WEB) {
156
- const cls = module.web ?? module.default;
157
- if (cls) {
158
- _gct.register.designer.web.register(plugin.key, () => new cls());
159
- }
160
- } else {
161
- const cls = module.mobile ?? module.default;
162
- if (cls) {
163
- _gct.register.designer.mobile.register(
164
- plugin.key,
165
- () => new cls()
166
- );
167
- }
168
- }
169
- });
170
- });
171
- return result;
172
- } catch (error) {
173
- console.error(error);
174
- }
175
- return [[], {}];
176
- }
177
- /**
178
- * 加载设计态中,已经被从配置中移除的插件
179
- *
180
- * @static
181
- * @param {Platform} platform
182
- * @param {IObject[]} configs
183
- * @returns {*} {Promise<void>}
184
- */
185
- static async loadDesignDeletedPlugins(platform, configs = []) {
186
- try {
187
- const moduleMap = await this.loadPlugins(PluginModeEnum.DESIGN, configs);
188
- configs.forEach((plugin) => {
189
- const module = moduleMap[plugin.key];
190
- if (!module) {
191
- console.error(`${plugin.key} \u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u63D2\u4EF6\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
192
- return;
193
- }
194
- if (platform === Platform.WEB) {
195
- const cls = module.web ?? module.default;
196
- if (cls) {
197
- _gct.register.designer.web.register(plugin.key, () => new cls());
198
- }
199
- } else {
200
- const cls = module.mobile ?? module.default;
201
- if (cls) {
202
- _gct.register.designer.mobile.register(plugin.key, () => new cls());
203
- }
204
- }
205
- });
206
- } catch (error) {
207
- console.error(error);
208
- }
209
- }
210
- /**
211
- * 加载设计态移动端插件包
212
- *
213
- * @static
214
- * @param {App} app
215
- * @param {IObject[]} configs 界面用到的插件集合
216
- * @returns {*} {Promise<void>}
217
- */
218
- static async loadMobilePlugin(configs = []) {
219
- try {
220
- const moduleMap = await this.loadPlugins(PluginModeEnum.MOBILE, configs);
221
- configs.forEach((plugin) => {
222
- if (!moduleMap[plugin.key]) {
223
- console.error(`${plugin.key} \u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u63D2\u4EF6\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
224
- return;
225
- }
226
- _gct.register.render.mobile.register(
227
- plugin.key,
228
- moduleMap[plugin.key].default
229
- );
230
- });
231
- } catch (error) {
232
- console.error(error);
233
- }
234
- }
235
- /**
236
- * 加载设计态网页端插件包
237
- *
238
- * @static
239
- * @param {App} app
240
- * @param {IObject[]} configs 界面用到的插件集合
241
- * @returns {*} {Promise<void>}
242
- */
243
- static async loadWebPlugin(configs = []) {
244
- try {
245
- const moduleMap = await this.loadPlugins(PluginModeEnum.WEB, configs);
246
- configs.forEach((plugin) => {
247
- if (!moduleMap[plugin.key]) {
248
- console.error(`${plugin.key} \u63D2\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u63D2\u4EF6\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
249
- return;
250
- }
251
- _gct.register.render.web.register(
252
- plugin.key,
253
- moduleMap[plugin.key].default
254
- );
255
- });
256
- } catch (error) {
257
- console.error(error);
258
- }
259
- }
260
- }
261
-
262
- export { PluginPgkUtil };