@gct-paas/core 0.1.4-dev.9 → 0.1.5-dev.0

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 (330) hide show
  1. package/dist/index.esm.min.js +1 -0
  2. package/es/constants/core.mjs +5 -4
  3. package/es/constants/default-date-type/default-date-type.d.ts +70 -0
  4. package/es/constants/default-date-type/default-date-type.mjs +74 -0
  5. package/es/constants/editor-register/editor-register.mjs +17 -5
  6. package/es/constants/expression-type/BuiltOperators.mjs +152 -144
  7. package/es/constants/expression-type/FunctionKeys.mjs +75 -79
  8. package/es/constants/expression-type/editor.mjs +10 -3
  9. package/es/constants/expression-type/function.mjs +602 -613
  10. package/es/constants/expression-type/index.mjs +111 -113
  11. package/es/constants/expression-type/modeCfg.mjs +256 -263
  12. package/es/constants/expression-type/variable.mjs +43 -39
  13. package/es/constants/form-container-type/form-container-type.mjs +17 -5
  14. package/es/constants/index.d.ts +7 -1
  15. package/es/constants/index.mjs +32 -10
  16. package/es/constants/page-designer/model.d.ts +4 -0
  17. package/es/constants/page-designer/model.mjs +17 -0
  18. package/es/constants/page-designer/regex.d.ts +2 -0
  19. package/es/constants/page-designer/regex.mjs +5 -0
  20. package/es/create-app-vue.mjs +15 -9
  21. package/es/enums/app-designer/index.d.ts +19 -0
  22. package/es/enums/app-designer/index.mjs +131 -63
  23. package/es/enums/appEnum.mjs +681 -360
  24. package/es/enums/appStateEnum.mjs +17 -10
  25. package/es/enums/authActionEnum.mjs +63 -51
  26. package/es/enums/breakpointEnum.mjs +27 -26
  27. package/es/enums/cacheEnum.d.ts +0 -1
  28. package/es/enums/cacheEnum.mjs +22 -22
  29. package/es/enums/designEnum.d.ts +7 -1
  30. package/es/enums/designEnum.mjs +110 -68
  31. package/es/enums/developer-center/integration.mjs +7 -6
  32. package/es/enums/exceptionEnum.mjs +21 -17
  33. package/es/enums/expressionEnum.d.ts +2 -2
  34. package/es/enums/expressionEnum.mjs +81 -74
  35. package/es/enums/globalEnum.d.ts +15 -0
  36. package/es/enums/globalEnum.mjs +60 -25
  37. package/es/enums/httpEnum.mjs +71 -61
  38. package/es/enums/index.mjs +44 -14
  39. package/es/enums/menuEnum.mjs +42 -38
  40. package/es/enums/page-designer/designer.d.ts +1 -8
  41. package/es/enums/page-designer/designer.mjs +403 -407
  42. package/es/enums/page-designer/index.d.ts +1 -0
  43. package/es/enums/page-designer/index.mjs +5 -0
  44. package/es/enums/page-designer/layout.d.ts +12 -0
  45. package/es/enums/page-designer/layout.mjs +17 -0
  46. package/es/enums/page-designer/panel.mjs +341 -213
  47. package/es/enums/page-designer/toolkit.mjs +13 -12
  48. package/es/enums/page-designer/widget.d.ts +5 -0
  49. package/es/enums/page-designer/widget.mjs +426 -334
  50. package/es/enums/pageEnum.mjs +14 -13
  51. package/es/enums/plugin-enum.d.ts +8 -4
  52. package/es/enums/plugin-enum.mjs +27 -7
  53. package/es/enums/processEnum.mjs +95 -60
  54. package/es/enums/roleEnum.mjs +7 -6
  55. package/es/enums/sizeEnum.d.ts +18 -0
  56. package/es/enums/sizeEnum.mjs +28 -8
  57. package/es/global/gct/gct.d.ts +240 -4
  58. package/es/global/gct/gct.mjs +98 -90
  59. package/es/global/index.mjs +1 -0
  60. package/es/hooks/index.d.ts +0 -2
  61. package/es/hooks/index.mjs +4 -0
  62. package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
  63. package/es/hooks/use-modal/use-modal.mjs +16 -10
  64. package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +8 -12
  65. package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +45 -25
  66. package/es/hooks/useCopyToClipboard.mjs +50 -50
  67. package/es/index.d.ts +1 -3
  68. package/es/index.mjs +128 -132
  69. package/es/interface/i-dictionary/i-dictionary-item.d.ts +6 -0
  70. package/es/interface/i-global-register/i-global-register.d.ts +8 -0
  71. package/es/interface/i-kit-info/i-kit-info.d.ts +20 -0
  72. package/es/interface/i-pinia-action/i-global-actions.d.ts +4 -6
  73. package/es/interface/i-pinia-getter/i-global-getters.d.ts +2 -0
  74. package/es/interface/i-pinia-state/i-global-state.d.ts +12 -12
  75. package/es/interface/index.d.ts +4 -6
  76. package/es/interface/model-designer/entity.d.ts +110 -0
  77. package/es/interface/provider/index.d.ts +0 -2
  78. package/es/locale/index.d.ts +11 -3
  79. package/es/locale/index.mjs +75 -57
  80. package/es/modules/env-manager/env-manager.const.mjs +16 -8
  81. package/es/modules/env-manager/env-manager.d.ts +2 -0
  82. package/es/modules/env-manager/env-manager.interface.d.ts +2 -0
  83. package/es/modules/env-manager/env-manager.interface.mjs +14 -7
  84. package/es/modules/env-manager/env-manager.mjs +108 -107
  85. package/es/modules/error-handler/error-handler.const.mjs +11 -16
  86. package/es/modules/error-handler/error-strategy.mjs +199 -175
  87. package/es/modules/error-handler/index.mjs +120 -106
  88. package/es/modules/mqtt/constants/mqtt.const.d.ts +33 -0
  89. package/es/modules/mqtt/constants/mqtt.const.mjs +24 -0
  90. package/es/modules/mqtt/enums/mqtt-status.enum.d.ts +20 -0
  91. package/es/modules/mqtt/enums/mqtt-status.enum.mjs +24 -0
  92. package/es/modules/mqtt/index.d.ts +5 -0
  93. package/es/modules/mqtt/index.mjs +4 -0
  94. package/es/modules/mqtt/interfaces/i-mqtt.d.ts +139 -0
  95. package/es/modules/mqtt/mqtt-client.d.ts +117 -0
  96. package/es/modules/mqtt/mqtt-client.mjs +229 -0
  97. package/es/modules/mqtt/mqtt-manager.d.ts +87 -0
  98. package/es/modules/mqtt/mqtt-manager.mjs +118 -0
  99. package/es/modules/platform-config/constants/index.mjs +4 -0
  100. package/es/modules/platform-config/constants/login.const.mjs +48 -45
  101. package/es/modules/platform-config/constants/org.const.mjs +57 -52
  102. package/es/modules/platform-config/constants/theme.const.mjs +11 -4
  103. package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
  104. package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
  105. package/es/modules/platform-config/enums/login.enum.mjs +29 -15
  106. package/es/modules/platform-config/enums/platform.enum.d.ts +0 -15
  107. package/es/modules/platform-config/enums/platform.enum.mjs +17 -26
  108. package/es/modules/platform-config/index.d.ts +1 -1
  109. package/es/modules/platform-config/index.mjs +9 -0
  110. package/es/modules/platform-config/interfaces/index.d.ts +0 -1
  111. package/es/modules/platform-config/store.d.ts +5 -1
  112. package/es/modules/platform-config/store.mjs +68 -76
  113. package/es/modules/platform-config/useBasicSetting.mjs +47 -35
  114. package/es/modules/platform-config/useDeploySetting.mjs +29 -21
  115. package/es/modules/platform-config/useLoginSetting.mjs +151 -173
  116. package/es/modules/platform-config/useOrgSetting.mjs +63 -62
  117. package/es/modules/platform-config/useProjectSetting.mjs +14 -6
  118. package/es/modules/platform-config/useSecuritySetting.d.ts +1 -0
  119. package/es/modules/platform-config/useSecuritySetting.mjs +81 -56
  120. package/es/modules/platform-config/useThemeSetting.mjs +78 -59
  121. package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
  122. package/es/modules/user-stores/index.mjs +3 -0
  123. package/es/modules/user-stores/store/permission.store.mjs +27 -36
  124. package/es/modules/user-stores/store/tenant.store.mjs +20 -22
  125. package/es/modules/user-stores/store/user.store.d.ts +149 -1
  126. package/es/modules/user-stores/store/user.store.mjs +97 -101
  127. package/es/modules/user-stores/types/user.d.ts +1 -0
  128. package/es/router/index.mjs +25 -28
  129. package/es/setup-app.d.ts +1 -1
  130. package/es/setup-app.mjs +22 -28
  131. package/es/state/global-pinia-state/global-pinia-state.d.ts +15 -7
  132. package/es/state/global-pinia-state/global-pinia-state.mjs +43 -57
  133. package/es/state/index.d.ts +0 -9
  134. package/es/state/index.mjs +1 -0
  135. package/es/store/global-store.mjs +44 -57
  136. package/es/store/index.d.ts +8 -0
  137. package/es/store/index.mjs +35 -19
  138. package/es/store/storage-store.d.ts +9 -0
  139. package/es/store/storage-store.mjs +10 -0
  140. package/es/types/index.d.ts +18 -0
  141. package/es/utils/axios/interceptors.mjs +22 -17
  142. package/es/utils/cache-adapter/cache-adapter.mjs +61 -56
  143. package/es/utils/css-loader/css-loader.d.ts +36 -0
  144. package/es/utils/css-loader/css-loader.mjs +82 -0
  145. package/es/utils/design/design.d.ts +11 -0
  146. package/es/utils/design/design.mjs +21 -0
  147. package/es/utils/deviceFingerprint.mjs +77 -63
  148. package/es/utils/dictionary/dictionary.mjs +142 -145
  149. package/es/utils/file/base64Conver.d.ts +9 -0
  150. package/es/utils/file/base64Conver.mjs +40 -0
  151. package/es/utils/file/download.d.ts +44 -0
  152. package/es/utils/file/download.mjs +101 -0
  153. package/es/utils/file/parser.d.ts +3 -0
  154. package/es/utils/file/parser.mjs +29 -0
  155. package/es/utils/i18n/index.mjs +14 -3
  156. package/es/utils/index.d.ts +14 -4
  157. package/es/utils/index.mjs +34 -0
  158. package/es/utils/is-sort-filed/is-sort-filed.d.ts +10 -0
  159. package/es/utils/is-sort-filed/is-sort-filed.mjs +45 -0
  160. package/es/utils/kit-pkg-util/kit-pkg-util.d.ts +32 -0
  161. package/es/utils/kit-pkg-util/kit-pkg-util.mjs +73 -0
  162. package/es/utils/linked-list/linked-list.mjs +115 -118
  163. package/es/utils/linked-node/linked-node.mjs +41 -31
  164. package/es/utils/lowcode/utils.mjs +13 -18
  165. package/es/utils/lowcode/validate.mjs +20 -26
  166. package/es/utils/mitt/mitt.mjs +4 -4
  167. package/es/utils/model-loader/model-loader.mjs +288 -325
  168. package/es/utils/namespace/namespace.mjs +178 -164
  169. package/es/utils/openUtil/index.mjs +2 -0
  170. package/es/utils/openUtil/modal/modal.mjs +72 -79
  171. package/es/utils/openUtil/overlay-container/overlay-container.mjs +144 -138
  172. package/es/utils/permission.d.ts +19 -0
  173. package/es/utils/permission.mjs +34 -0
  174. package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +63 -0
  175. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +119 -0
  176. package/es/utils/plugin-static-resource/plugin-static-resource.d.ts +2 -27
  177. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +19 -42
  178. package/es/utils/style/index.mjs +94 -138
  179. package/es/utils/tools/tools.d.ts +12 -10
  180. package/es/utils/tools/tools.mjs +128 -57
  181. package/es/utils/treeHelper/treeHelper.d.ts +3 -9
  182. package/es/utils/treeHelper/treeHelper.mjs +205 -233
  183. package/es/utils/uploader/uploader.d.ts +20 -0
  184. package/es/utils/uploader/uploader.mjs +86 -0
  185. package/es/utils/useUUid.d.ts +41 -0
  186. package/es/utils/useUUid.mjs +85 -0
  187. package/es/utils/util.mjs +55 -35
  188. package/es/utils/uuid/uuid.d.ts +2 -0
  189. package/es/utils/uuid/uuid.mjs +33 -43
  190. package/es/utils/validate.d.ts +5 -0
  191. package/es/utils/validate.mjs +21 -0
  192. package/es/utils/value-helper/value-helper.mjs +113 -98
  193. package/package.json +18 -27
  194. package/dist/index.esm.min.mjs +0 -7973
  195. package/dist/index.min.cjs +0 -386
  196. package/dist/index.system.min.js +0 -386
  197. package/es/constants/editor-type/editor-type.d.ts +0 -244
  198. package/es/constants/editor-type/editor-type.mjs +0 -63
  199. package/es/controller/edit-form/edit-form.controller.d.ts +0 -28
  200. package/es/controller/edit-form/edit-form.controller.mjs +0 -47
  201. package/es/controller/editor/color-editor.controller.d.ts +0 -13
  202. package/es/controller/editor/color-editor.controller.mjs +0 -6
  203. package/es/controller/editor/length-unit-editor.controller.d.ts +0 -13
  204. package/es/controller/editor/length-unit-editor.controller.mjs +0 -6
  205. package/es/controller/editor-item/editor-item.controller.d.ts +0 -14
  206. package/es/controller/editor-item/editor-item.controller.mjs +0 -8
  207. package/es/controller/form/form.controller.d.ts +0 -76
  208. package/es/controller/form/form.controller.mjs +0 -147
  209. package/es/controller/form-collapse/form-collapse.controller.d.ts +0 -18
  210. package/es/controller/form-collapse/form-collapse.controller.mjs +0 -14
  211. package/es/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -18
  212. package/es/controller/form-collapse-pane/form-collapse-pane.controller.mjs +0 -14
  213. package/es/controller/form-edit-item/form-edit-item.controller.d.ts +0 -27
  214. package/es/controller/form-edit-item/form-edit-item.controller.mjs +0 -74
  215. package/es/controller/form-group/form-group.controller.d.ts +0 -18
  216. package/es/controller/form-group/form-group.controller.mjs +0 -14
  217. package/es/controller/form-item/form-item.controller.d.ts +0 -21
  218. package/es/controller/form-item/form-item.controller.mjs +0 -43
  219. package/es/controller/form-item-basic/form-item-basic.controller.d.ts +0 -57
  220. package/es/controller/form-item-basic/form-item-basic.controller.mjs +0 -49
  221. package/es/controller/form-item-hidden/form-item-hidden.controller.d.ts +0 -17
  222. package/es/controller/form-item-hidden/form-item-hidden.controller.mjs +0 -7
  223. package/es/controller/form-tab/form-tab.controller.d.ts +0 -18
  224. package/es/controller/form-tab/form-tab.controller.mjs +0 -14
  225. package/es/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -18
  226. package/es/controller/form-tab-pane/form-tab-pane.controller.mjs +0 -14
  227. package/es/controller/gct-form/gct-form.controller.d.ts +0 -101
  228. package/es/controller/gct-form/gct-form.controller.mjs +0 -214
  229. package/es/controller/index.d.ts +0 -15
  230. package/es/hooks/use-form/use-form.d.ts +0 -10
  231. package/es/hooks/use-form/use-form.mjs +0 -8
  232. package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +0 -22
  233. package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -89
  234. package/es/hooks/use-overlay-scrollbars/use-overlay-scrollbars.d.ts +0 -11
  235. package/es/interface/controller/edit-form/edit-form.controller.d.ts +0 -26
  236. package/es/interface/controller/editor/i-color-editor.controller.d.ts +0 -11
  237. package/es/interface/controller/editor/i-length-unit-editor.controller.d.ts +0 -11
  238. package/es/interface/controller/editor-item/editor-item.controller.d.ts +0 -19
  239. package/es/interface/controller/form/form.controller.d.ts +0 -121
  240. package/es/interface/controller/form-collapse/form-collapse.controller.d.ts +0 -23
  241. package/es/interface/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +0 -23
  242. package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +0 -59
  243. package/es/interface/controller/form-group/form-group.controller.d.ts +0 -24
  244. package/es/interface/controller/form-hidden-item/form-hidden-item.controller.d.ts +0 -24
  245. package/es/interface/controller/form-item/form-item.controller.d.ts +0 -40
  246. package/es/interface/controller/form-item-basic/form-item-basic.controller.d.ts +0 -51
  247. package/es/interface/controller/form-tab/form-tab.controller.d.ts +0 -23
  248. package/es/interface/controller/form-tab-pane/form-tab-pane.controller.d.ts +0 -23
  249. package/es/interface/controller/index.d.ts +0 -14
  250. package/es/interface/events/form/i-form.event.d.ts +0 -11
  251. package/es/interface/events/index.d.ts +0 -1
  252. package/es/interface/form/i-editor/i-check-switch.d.ts +0 -29
  253. package/es/interface/form/i-editor/i-checkbox-editor.d.ts +0 -9
  254. package/es/interface/form/i-editor/i-color-editor.d.ts +0 -13
  255. package/es/interface/form/i-editor/i-editor-basic.d.ts +0 -87
  256. package/es/interface/form/i-editor/i-icon-select-editor.d.ts +0 -21
  257. package/es/interface/form/i-editor/i-info-editor.d.ts +0 -21
  258. package/es/interface/form/i-editor/i-length-unit-editor.d.ts +0 -13
  259. package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +0 -18
  260. package/es/interface/form/i-editor/i-number-editor.d.ts +0 -21
  261. package/es/interface/form/i-editor/i-picker-editor.d.ts +0 -30
  262. package/es/interface/form/i-editor/i-radio-editor.d.ts +0 -21
  263. package/es/interface/form/i-editor/i-select-editor.d.ts +0 -14
  264. package/es/interface/form/i-editor/i-span-editor.d.ts +0 -30
  265. package/es/interface/form/i-editor/i-switch-editor.d.ts +0 -14
  266. package/es/interface/form/i-editor/i-text-editor.d.ts +0 -46
  267. package/es/interface/form/i-editor/i-textarea-editor.d.ts +0 -25
  268. package/es/interface/form/i-form/i-edit-form.d.ts +0 -48
  269. package/es/interface/form/i-form/i-form-collapse-pane.d.ts +0 -30
  270. package/es/interface/form/i-form/i-form-collapse.d.ts +0 -35
  271. package/es/interface/form/i-form/i-form-container.d.ts +0 -53
  272. package/es/interface/form/i-form/i-form-edit-item.d.ts +0 -140
  273. package/es/interface/form/i-form/i-form-group-container.d.ts +0 -24
  274. package/es/interface/form/i-form/i-form-group.d.ts +0 -35
  275. package/es/interface/form/i-form/i-form-hidden-item.d.ts +0 -11
  276. package/es/interface/form/i-form/i-form-item-basic.d.ts +0 -126
  277. package/es/interface/form/i-form/i-form-item.d.ts +0 -11
  278. package/es/interface/form/i-form/i-form-tab-pane.d.ts +0 -23
  279. package/es/interface/form/i-form/i-form-tab.d.ts +0 -21
  280. package/es/interface/form/i-form/i-form.d.ts +0 -79
  281. package/es/interface/form/index.d.ts +0 -29
  282. package/es/interface/layout/i-flex-layout/i-flex-container.d.ts +0 -75
  283. package/es/interface/layout/i-flex-layout/i-flex-item.d.ts +0 -51
  284. package/es/interface/layout/i-grid-layout/i-grid-container.d.ts +0 -29
  285. package/es/interface/layout/i-grid-layout/i-grid-item-span.d.ts +0 -54
  286. package/es/interface/layout/i-grid-layout/i-grid-item.d.ts +0 -37
  287. package/es/interface/layout/i-layout-basis/i-layout-container-basis.d.ts +0 -11
  288. package/es/interface/layout/index.d.ts +0 -6
  289. package/es/interface/provider/i-editor-provider/i-editor-provider.d.ts +0 -24
  290. package/es/interface/provider/i-form-item-provider/i-form-item-provider.d.ts +0 -44
  291. package/es/interface/state/form/form.state.d.ts +0 -53
  292. package/es/interface/state/form-collapse/form-collapse.state.d.ts +0 -11
  293. package/es/interface/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -11
  294. package/es/interface/state/form-edit-item/form-edit-item.state.d.ts +0 -38
  295. package/es/interface/state/form-group/form-group.state.d.ts +0 -21
  296. package/es/interface/state/form-hidden-item/form-hidden-item.state.d.ts +0 -5
  297. package/es/interface/state/form-item/form-item.state.d.ts +0 -20
  298. package/es/interface/state/form-item-basic/form-item-basic.state.d.ts +0 -63
  299. package/es/interface/state/form-tab/form-tab.state.d.ts +0 -19
  300. package/es/interface/state/form-tab-pane/form-tab-pane.state.d.ts +0 -11
  301. package/es/interface/state/index.d.ts +0 -10
  302. package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +0 -7
  303. package/es/register/editor-register/editor-register.d.ts +0 -49
  304. package/es/register/editor-register/editor-register.mjs +0 -57
  305. package/es/register/form-item-register/form-item-register.d.ts +0 -36
  306. package/es/register/form-item-register/form-item-register.mjs +0 -42
  307. package/es/register/index.d.ts +0 -14
  308. package/es/state/form/form.state.d.ts +0 -24
  309. package/es/state/form/form.state.mjs +0 -16
  310. package/es/state/form-collapse/form-collapse.state.d.ts +0 -14
  311. package/es/state/form-collapse/form-collapse.state.mjs +0 -6
  312. package/es/state/form-collapse-pane/form-collapse-pane.state.d.ts +0 -14
  313. package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -6
  314. package/es/state/form-edit-item/form-edit-item.state.d.ts +0 -17
  315. package/es/state/form-edit-item/form-edit-item.state.mjs +0 -10
  316. package/es/state/form-group/form-group.state.d.ts +0 -21
  317. package/es/state/form-group/form-group.state.mjs +0 -14
  318. package/es/state/form-item/form-item.state.d.ts +0 -14
  319. package/es/state/form-item/form-item.state.mjs +0 -6
  320. package/es/state/form-item-basic/form-item-basic.state.d.ts +0 -17
  321. package/es/state/form-item-basic/form-item-basic.state.mjs +0 -9
  322. package/es/state/form-tab/form-tab.state.d.ts +0 -15
  323. package/es/state/form-tab/form-tab.state.mjs +0 -7
  324. package/es/state/form-tab-pane/form-tab-pane.state.d.ts +0 -14
  325. package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -6
  326. package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +0 -63
  327. package/es/utils/props/gct-form-item/gct-form-item.props.mjs +0 -66
  328. package/es/utils/props/index.d.ts +0 -1
  329. package/es/utils/width-install/width-install.d.ts +0 -17
  330. package/es/utils/width-install/width-install.mjs +0 -23
@@ -1,66 +1,67 @@
1
- import { reactive, ref } from 'vue';
2
- import { RELATION_FIELDS } from './constants/org.const.mjs';
3
-
4
- const orgSetting = reactive({
5
- initialPassword: "123456",
6
- initialSignPassword: "12345678",
7
- enableIdentifier: 1,
8
- enableDeleteAccount: 1,
9
- enableDeleteUser: 0,
10
- requiredFields: [],
11
- // supportLoginFields: ['username_', 'emp_no_'],
12
- supportLoginFields: ["username_"],
13
- extFieldConfigs: [],
14
- orgExtFieldConfigs: []
1
+ import { RELATION_FIELDS } from "./constants/org.const.mjs";
2
+ import { reactive, ref } from "vue";
3
+ //#region src/modules/platform-config/useOrgSetting.ts
4
+ /**
5
+ * 组织设置 Composable
6
+ * 用于管理平台的组织配置,包括初始密码、字段扩展等
7
+ */
8
+ /** 组织配置响应式对象 */
9
+ var orgSetting = reactive({
10
+ initialPassword: "123456",
11
+ initialSignPassword: "12345678",
12
+ enableIdentifier: 1,
13
+ enableDeleteAccount: 1,
14
+ enableDeleteUser: 0,
15
+ requiredFields: [],
16
+ supportLoginFields: ["username_"],
17
+ extFieldConfigs: [],
18
+ orgExtFieldConfigs: []
15
19
  });
16
- const relationFields = ref([...RELATION_FIELDS]);
17
- const relationFiledsCopy = ref([]);
20
+ /** 关联字段配置列表 */
21
+ var relationFields = ref([...RELATION_FIELDS]);
22
+ /** 关联字段的复制副本 */
23
+ var relationFiledsCopy = ref([]);
24
+ /**
25
+ * 组织设置 Composable 函数
26
+ * @param isPlatform - 是否为平台模式,默认为 true
27
+ * @returns 返回组织设置相关的响应式数据和方法
28
+ */
18
29
  function useOrgSetting(isPlatform = true) {
19
- const postOrgSetting = async () => {
20
- const setting = JSON.parse(JSON.stringify(orgSetting));
21
- if (isPlatform) {
22
- await _api.platform.plat.postOrg(setting);
23
- } else {
24
- await _api.apaas.plat.postOrg(setting);
25
- }
26
- };
27
- function setOrgSetting(data) {
28
- const { value } = data;
29
- if (!value) return;
30
- try {
31
- const setting = JSON.parse(value);
32
- for (const key in setting) {
33
- if (key == "supportLoginFields") {
34
- setting["supportLoginFields"] = setting["supportLoginFields"].filter(
35
- (i) => i !== "username_"
36
- );
37
- }
38
- }
39
- Object.assign(orgSetting, setting);
40
- if (orgSetting.extFieldConfigs && orgSetting.extFieldConfigs.length) {
41
- orgSetting.extFieldConfigs.forEach((element) => {
42
- relationFields.value = relationFields.value.filter((i) => {
43
- if (i.value == element.relationField) {
44
- relationFiledsCopy.value.push(i);
45
- }
46
- return i.value !== element.relationField;
47
- });
48
- });
49
- }
50
- orgSetting.extFieldConfigs = JSON.parse(
51
- JSON.stringify(setting.extFieldConfigs)
52
- );
53
- } catch (err) {
54
- console.warn(err);
55
- }
56
- }
57
- return {
58
- orgSetting,
59
- setOrgSetting,
60
- postOrgSetting,
61
- relationFields,
62
- relationFiledsCopy
63
- };
30
+ /** 发送组织配置信息到服务器 */
31
+ const postOrgSetting = async () => {
32
+ const setting = JSON.parse(JSON.stringify(orgSetting));
33
+ if (isPlatform) await _api.platform.plat.postOrg(setting);
34
+ else await _api.apaas.plat.postOrg(setting);
35
+ };
36
+ /**
37
+ * 设置组织配置信息
38
+ * @param data - 系统配置响应数据
39
+ */
40
+ function setOrgSetting(data) {
41
+ const { value } = data;
42
+ if (!value) return;
43
+ try {
44
+ const setting = JSON.parse(value);
45
+ for (const key in setting) if (key == "supportLoginFields") setting["supportLoginFields"] = setting["supportLoginFields"].filter((i) => i !== "username_");
46
+ Object.assign(orgSetting, setting);
47
+ if (orgSetting.extFieldConfigs && orgSetting.extFieldConfigs.length) orgSetting.extFieldConfigs.forEach((element) => {
48
+ relationFields.value = relationFields.value.filter((i) => {
49
+ if (i.value == element.relationField) relationFiledsCopy.value.push(i);
50
+ return i.value !== element.relationField;
51
+ });
52
+ });
53
+ orgSetting.extFieldConfigs = JSON.parse(JSON.stringify(setting.extFieldConfigs));
54
+ } catch (err) {
55
+ console.warn(err);
56
+ }
57
+ }
58
+ return {
59
+ orgSetting,
60
+ setOrgSetting,
61
+ postOrgSetting,
62
+ relationFields,
63
+ relationFiledsCopy
64
+ };
64
65
  }
65
-
66
+ //#endregion
66
67
  export { useOrgSetting };
@@ -1,11 +1,19 @@
1
- import { reactive } from 'vue';
2
-
3
- const projectSetting = reactive({});
1
+ import { reactive } from "vue";
2
+ //#region src/modules/platform-config/useProjectSetting.ts
3
+ /**
4
+ * 部署设置 Composable
5
+ * 用于管理应用的部署模式配置
6
+ */
7
+ /** 基础配置信息响应式对象 */
8
+ var projectSetting = reactive({});
4
9
  function setProjectConfig(config) {
5
- Object.assign(projectSetting, config);
10
+ Object.assign(projectSetting, config);
6
11
  }
7
12
  function useProjectSetting() {
8
- return { projectSetting, setProjectConfig };
13
+ return {
14
+ projectSetting,
15
+ setProjectConfig
16
+ };
9
17
  }
10
-
18
+ //#endregion
11
19
  export { useProjectSetting };
@@ -8,4 +8,5 @@ export declare function useSecuritySetting(isPlatform?: boolean): {
8
8
  securitySetting: SecurityConfig;
9
9
  postSecuritySetting: () => Promise<void>;
10
10
  setSecuritySetting: (data: SysConfigResponse) => void;
11
+ getSignWay: () => "LOGIN" | "SIGN" | "DOMAIN";
11
12
  };
@@ -1,60 +1,85 @@
1
- import { reactive } from 'vue';
2
-
3
- const securitySetting = reactive({
4
- durationHour: 2,
5
- durationMinute: 0,
6
- enableChangePassword: 1,
7
- enableChangeSignPassword: 0,
8
- enableSignPassword: 0,
9
- enableKickOut: 1,
10
- enablePassphrase: 1,
11
- signEnablePassphrase: 1,
12
- enableLockAccount: 1,
13
- expiryDate: 30,
14
- signExpiryDate: 30,
15
- firstTimeChangePassword: 0,
16
- signFirstTimeChangePassword: 0,
17
- lockTimeout: 0,
18
- loginKickOutMode: "SAME_END",
19
- maxErrorTimes: 2,
20
- passMinLength: 6,
21
- signPassMinLength: 6,
22
- passRule: ["NUMBER"],
23
- signPassRule: ["NUMBER"],
24
- signRepeatNum: 1,
25
- repeatNum: 1,
26
- timeUnit: "DAYS",
27
- signTimeUnit: "DAYS",
28
- noOpRetainHour: 8,
29
- noOpRetainMinute: 0,
30
- earlyAlarmMinute: 5,
31
- earlyAlarmSecond: 0,
32
- inapplicablePerson: [],
33
- lockHourTimeout: 0,
34
- lockMinTimeout: 5
1
+ import { reactive } from "vue";
2
+ //#region src/modules/platform-config/useSecuritySetting.ts
3
+ /**
4
+ * 安全设置 Composable
5
+ * 用于管理平台的安全配置,包括密码策略、登录安全等
6
+ */
7
+ /** 安全配置响应式对象 */
8
+ var securitySetting = reactive({
9
+ durationHour: 2,
10
+ durationMinute: 0,
11
+ enableChangePassword: 1,
12
+ enableChangeSignPassword: 0,
13
+ enableSignPassword: 0,
14
+ enableKickOut: 1,
15
+ enablePassphrase: 1,
16
+ signEnablePassphrase: 1,
17
+ enableLockAccount: 1,
18
+ expiryDate: 30,
19
+ signExpiryDate: 30,
20
+ firstTimeChangePassword: 0,
21
+ signFirstTimeChangePassword: 0,
22
+ lockTimeout: 0,
23
+ loginKickOutMode: "SAME_END",
24
+ maxErrorTimes: 2,
25
+ passMinLength: 6,
26
+ signPassMinLength: 6,
27
+ passRule: ["NUMBER"],
28
+ signPassRule: ["NUMBER"],
29
+ signRepeatNum: 1,
30
+ repeatNum: 1,
31
+ timeUnit: "DAYS",
32
+ signTimeUnit: "DAYS",
33
+ noOpRetainHour: 8,
34
+ noOpRetainMinute: 0,
35
+ earlyAlarmMinute: 5,
36
+ earlyAlarmSecond: 0,
37
+ inapplicablePerson: [],
38
+ lockHourTimeout: 0,
39
+ lockMinTimeout: 5
35
40
  });
41
+ /**
42
+ * 安全设置 Composable 函数
43
+ * @param isPlatform - 是否为平台模式,默认为 true
44
+ * @returns 返回安全设置相关的响应式数据和方法
45
+ */
36
46
  function useSecuritySetting(isPlatform = true) {
37
- const postSecuritySetting = async () => {
38
- if (isPlatform) {
39
- await _api.platform.plat.postSecurity(securitySetting);
40
- } else {
41
- await _api.apaas.plat.postSecurity(securitySetting);
42
- }
43
- };
44
- function setSecuritySetting(data) {
45
- const { value } = data;
46
- if (!value) return;
47
- try {
48
- Object.assign(securitySetting, JSON.parse(value));
49
- } catch (err) {
50
- console.warn(err);
51
- }
52
- }
53
- return {
54
- securitySetting,
55
- postSecuritySetting,
56
- setSecuritySetting
57
- };
47
+ /** 发送安全配置信息到服务器 */
48
+ const postSecuritySetting = async () => {
49
+ if (isPlatform) await _api.platform.plat.postSecurity(securitySetting);
50
+ else await _api.apaas.plat.postSecurity(securitySetting);
51
+ };
52
+ /**
53
+ * 设置安全配置信息
54
+ * @param data - 系统配置响应数据
55
+ */
56
+ function setSecuritySetting(data) {
57
+ const { value } = data;
58
+ if (!value) return;
59
+ try {
60
+ Object.assign(securitySetting, JSON.parse(value));
61
+ } catch (err) {
62
+ console.warn(err);
63
+ }
64
+ }
65
+ /**
66
+ * 获取签名方式
67
+ * @returns 签名方式
68
+ */
69
+ function getSignWay() {
70
+ switch (securitySetting.enableSignPassword) {
71
+ case 0: return "LOGIN";
72
+ case 1: return "SIGN";
73
+ case 2: return "DOMAIN";
74
+ default: return "LOGIN";
75
+ }
76
+ }
77
+ return {
78
+ securitySetting,
79
+ postSecuritySetting,
80
+ setSecuritySetting,
81
+ getSignWay
82
+ };
58
83
  }
59
-
84
+ //#endregion
60
85
  export { useSecuritySetting };
@@ -1,64 +1,83 @@
1
- import { reactive, ref, watch } from 'vue';
2
- import { THEME_COLORS, MENU_WIDTH_RANGE, MENU_COLLAPSED_WIDTH } from './constants/theme.const.mjs';
3
-
4
- const themeSetting = reactive({
5
- darkMode: "light",
6
- themeColor: "#026AC8",
7
- // menuMode: 'mix-sider',
8
- menuMode: "classic",
9
- menuWidth: 232,
10
- menuCollapsible: true,
11
- menuSearchable: true,
12
- menuFilter: false,
13
- showLogo: true,
14
- showBreadcrumb: false,
15
- showBreadcrumbIcon: false,
16
- showTabs: true,
17
- pageProgress: true,
18
- pageLoading: true,
19
- colorMode: "normal"
1
+ import { MENU_WIDTH_RANGE, THEME_COLORS } from "./constants/theme.const.mjs";
2
+ import { reactive, ref, watch } from "vue";
3
+ //#region src/modules/platform-config/useThemeSetting.ts
4
+ /**
5
+ * 主题设置 Composable
6
+ * 用于管理平台的主题配置,包括深色模式、主题颜色、菜单样式等
7
+ */
8
+ /** 主题配置响应式对象 */
9
+ var themeSetting = reactive({
10
+ darkMode: "light",
11
+ themeColor: "#026AC8",
12
+ menuMode: "classic",
13
+ menuWidth: 232,
14
+ menuCollapsible: true,
15
+ menuSearchable: true,
16
+ menuFilter: false,
17
+ showLogo: true,
18
+ showBreadcrumb: false,
19
+ showBreadcrumbIcon: false,
20
+ showTabs: true,
21
+ pageProgress: true,
22
+ pageLoading: true,
23
+ colorMode: "normal"
20
24
  });
21
- const menuCollapsed = ref(false);
22
- const menuCollapsedWidth = MENU_COLLAPSED_WIDTH;
23
- const menuWidthRange = MENU_WIDTH_RANGE;
24
- const themeColors = THEME_COLORS;
25
- const toggleColorMode = () => {
26
- switch (themeSetting.colorMode) {
27
- }
25
+ /** 菜单是否折叠状态 */
26
+ var menuCollapsed = ref(false);
27
+ /** 菜单折叠时的宽度 */
28
+ var menuCollapsedWidth = 46;
29
+ /** 菜单宽度范围 */
30
+ var menuWidthRange = MENU_WIDTH_RANGE;
31
+ /** 可选的主题颜色列表 */
32
+ var themeColors = THEME_COLORS;
33
+ /**
34
+ * 切换颜色模式
35
+ * 根据当前颜色模式更新界面显示效果
36
+ */
37
+ var toggleColorMode = () => {
38
+ switch (themeSetting.colorMode) {
39
+ case "colorWeak": break;
40
+ case "gray": break;
41
+ default:
42
+ }
28
43
  };
29
- watch(
30
- () => themeSetting.colorMode,
31
- (value) => {
32
- if (value) {
33
- toggleColorMode();
34
- }
35
- }
36
- );
44
+ watch(() => themeSetting.colorMode, (value) => {
45
+ if (value) toggleColorMode();
46
+ });
47
+ /**
48
+ * 主题设置 Composable 函数
49
+ * @returns 返回主题设置相关的响应式数据和方法
50
+ */
37
51
  function useThemeSetting() {
38
- const postThemeSetting = async () => {
39
- };
40
- function setThemeSetting(data) {
41
- const { value } = data;
42
- if (!value) return;
43
- try {
44
- Object.assign(themeSetting, JSON.parse(value));
45
- } catch (err) {
46
- console.warn(err);
47
- }
48
- }
49
- function toggleMenuCollapsed() {
50
- menuCollapsed.value = !menuCollapsed.value;
51
- }
52
- return {
53
- themeSetting,
54
- setThemeSetting,
55
- postThemeSetting,
56
- menuCollapsed,
57
- toggleMenuCollapsed,
58
- menuCollapsedWidth,
59
- menuWidthRange,
60
- themeColors
61
- };
52
+ /** 发送主题配置信息到服务器 */
53
+ const postThemeSetting = async () => {};
54
+ /**
55
+ * 设置主题配置信息
56
+ * @param data - 系统配置响应数据
57
+ */
58
+ function setThemeSetting(data) {
59
+ const { value } = data;
60
+ if (!value) return;
61
+ try {
62
+ Object.assign(themeSetting, JSON.parse(value));
63
+ } catch (err) {
64
+ console.warn(err);
65
+ }
66
+ }
67
+ /** 切换菜单折叠状态 */
68
+ function toggleMenuCollapsed() {
69
+ menuCollapsed.value = !menuCollapsed.value;
70
+ }
71
+ return {
72
+ themeSetting,
73
+ setThemeSetting,
74
+ postThemeSetting,
75
+ menuCollapsed,
76
+ toggleMenuCollapsed,
77
+ menuCollapsedWidth,
78
+ menuWidthRange,
79
+ themeColors
80
+ };
62
81
  }
63
-
82
+ //#endregion
64
83
  export { useThemeSetting };
@@ -1,26 +1,40 @@
1
- import { reactive } from 'vue';
2
- import { WATERMARK_INIT_DATA } from './constants/watermark.const.mjs';
3
-
4
- const watermarkSetting = reactive({ ...WATERMARK_INIT_DATA });
1
+ import { WATERMARK_INIT_DATA } from "./constants/watermark.const.mjs";
2
+ import { reactive } from "vue";
3
+ //#region src/modules/platform-config/useWatermarkSetting.ts
4
+ /**
5
+ * 水印设置 Composable
6
+ * 用于管理平台的水印配置
7
+ */
8
+ /** 水印配置响应式对象 */
9
+ var watermarkSetting = reactive({ ...WATERMARK_INIT_DATA });
10
+ /**
11
+ * 水印设置 Composable 函数
12
+ * @returns 返回水印设置相关的响应式数据和方法
13
+ */
5
14
  function useWatermarkSetting() {
6
- const postWatermarkSetting = async () => {
7
- const value = JSON.stringify(watermarkSetting);
8
- await _api.platform.plat.postWatermark({ value });
9
- };
10
- function setWatermarkSetting(data) {
11
- const { value } = data;
12
- if (!value) return;
13
- try {
14
- Object.assign(watermarkSetting, JSON.parse(value));
15
- } catch (err) {
16
- console.warn(err);
17
- }
18
- }
19
- return {
20
- watermarkSetting,
21
- postWatermarkSetting,
22
- setWatermarkSetting
23
- };
15
+ /** 发送水印配置信息到服务器 */
16
+ const postWatermarkSetting = async () => {
17
+ const value = JSON.stringify(watermarkSetting);
18
+ await _api.platform.plat.postWatermark({ value });
19
+ };
20
+ /**
21
+ * 设置水印配置信息
22
+ * @param data - 系统配置响应数据
23
+ */
24
+ function setWatermarkSetting(data) {
25
+ const { value } = data;
26
+ if (!value) return;
27
+ try {
28
+ Object.assign(watermarkSetting, JSON.parse(value));
29
+ } catch (err) {
30
+ console.warn(err);
31
+ }
32
+ }
33
+ return {
34
+ watermarkSetting,
35
+ postWatermarkSetting,
36
+ setWatermarkSetting
37
+ };
24
38
  }
25
-
39
+ //#endregion
26
40
  export { useWatermarkSetting };
@@ -0,0 +1,3 @@
1
+ import "./store/user.store.mjs";
2
+ import "./store/tenant.store.mjs";
3
+ import "./store/permission.store.mjs";
@@ -1,38 +1,29 @@
1
- import { defineStore } from 'pinia';
2
-
3
- const usePermissionStore = defineStore("permission", {
4
- state: () => ({
5
- //当前应用中用户的权限
6
- userPermissions: {
7
- appSuperAdmin: 0,
8
- permissions: {}
9
- }
10
- }),
11
- getters: {
12
- hasAllPermissions(state) {
13
- return !!state.userPermissions.appSuperAdmin || !!state.userPermissions.permissions["POINT.*"];
14
- }
15
- },
16
- actions: {
17
- getPermissionByKey(pageId, key) {
18
- if (this.hasAllPermissions) return true;
19
- if (!key) {
20
- return this.userPermissions.permissions[pageId];
21
- }
22
- const uKey = `${pageId}.${key}`;
23
- const pageKey = `${pageId}.*`;
24
- return this.userPermissions.permissions[uKey] || this.userPermissions.permissions[pageKey];
25
- },
26
- async initPermission() {
27
- const res = await _api.apaas.designerCommon.getUserInfo();
28
- Object.assign(this.userPermissions, {
29
- ...res,
30
- permissions: Object.fromEntries(
31
- (res?.permissions ?? []).map((key) => [key, true])
32
- )
33
- });
34
- }
35
- }
1
+ import { defineStore } from "pinia";
2
+ //#region src/modules/user-stores/store/permission.store.ts
3
+ var usePermissionStore = defineStore("permission", {
4
+ state: () => ({ userPermissions: {
5
+ appSuperAdmin: 0,
6
+ permissions: {}
7
+ } }),
8
+ getters: { hasAllPermissions(state) {
9
+ return !!state.userPermissions.appSuperAdmin || !!state.userPermissions.permissions["POINT.*"];
10
+ } },
11
+ actions: {
12
+ getPermissionByKey(pageId, key) {
13
+ if (this.hasAllPermissions) return true;
14
+ if (!key) return this.userPermissions.permissions[pageId];
15
+ const uKey = `${pageId}.${key}`;
16
+ const pageKey = `${pageId}.*`;
17
+ return this.userPermissions.permissions[uKey] || this.userPermissions.permissions[pageKey];
18
+ },
19
+ async initPermission() {
20
+ const res = await _api.apaas.designerCommon.getUserInfo();
21
+ Object.assign(this.userPermissions, {
22
+ ...res,
23
+ permissions: Object.fromEntries((res?.permissions ?? []).map((key) => [key, true]))
24
+ });
25
+ }
26
+ }
36
27
  });
37
-
28
+ //#endregion
38
29
  export { usePermissionStore };
@@ -1,24 +1,22 @@
1
- import { defineStore } from 'pinia';
2
-
3
- const useTenantStore = defineStore("tenant", {
4
- state: () => ({
5
- //selected tenant Id
6
- tenantId: "",
7
- // 当前租户中的用户信息
8
- tenantUserInfo: {},
9
- tenantUserPermissions: {}
10
- }),
11
- actions: {
12
- setTenant(tenantId) {
13
- this.tenantId = tenantId;
14
- },
15
- async getTenantUserInfoAction() {
16
- if (!this.tenantId) return;
17
- const info = await _api.platform.tenant.getUserInfo();
18
- this.tenantUserInfo = info;
19
- return info;
20
- }
21
- }
1
+ import { defineStore } from "pinia";
2
+ //#region src/modules/user-stores/store/tenant.store.ts
3
+ var useTenantStore = defineStore("tenant", {
4
+ state: () => ({
5
+ tenantId: "",
6
+ tenantUserInfo: {},
7
+ tenantUserPermissions: {}
8
+ }),
9
+ actions: {
10
+ setTenant(tenantId) {
11
+ this.tenantId = tenantId;
12
+ },
13
+ async getTenantUserInfoAction() {
14
+ if (!this.tenantId) return;
15
+ const info = await _api.platform.tenant.getUserInfo();
16
+ this.tenantUserInfo = info;
17
+ return info;
18
+ }
19
+ }
22
20
  });
23
-
21
+ //#endregion
24
22
  export { useTenantStore };