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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/index.esm.min.mjs +6520 -18715
  2. package/dist/index.min.cjs +386 -2
  3. package/dist/index.system.min.js +386 -2
  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 +148 -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 +5 -0
  24. package/es/constants/index.mjs +6 -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 -4
  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 -4
  42. package/es/create-app-vue.mjs +3 -9
  43. package/es/enums/app-designer/index.d.ts +13 -1
  44. package/es/enums/app-designer/index.mjs +8 -2
  45. package/es/enums/appEnum.d.ts +22 -66
  46. package/es/enums/appEnum.mjs +24 -15
  47. package/es/enums/appStateEnum.mjs +0 -1
  48. package/es/enums/authActionEnum.mjs +0 -1
  49. package/es/enums/breakpointEnum.mjs +0 -1
  50. package/es/enums/cacheEnum.mjs +0 -1
  51. package/es/enums/designEnum.d.ts +2 -2
  52. package/es/enums/designEnum.mjs +31 -32
  53. package/es/enums/developer-center/index.d.ts +1 -0
  54. package/es/enums/developer-center/integration.d.ts +4 -0
  55. package/es/enums/developer-center/integration.mjs +7 -0
  56. package/es/enums/exceptionEnum.mjs +0 -1
  57. package/es/enums/expressionEnum.d.ts +130 -0
  58. package/es/enums/expressionEnum.mjs +75 -0
  59. package/es/enums/globalEnum.d.ts +38 -0
  60. package/es/enums/globalEnum.mjs +25 -0
  61. package/es/enums/httpEnum.mjs +0 -1
  62. package/es/enums/index.d.ts +19 -0
  63. package/es/enums/index.mjs +13 -16
  64. package/es/enums/menuEnum.mjs +0 -1
  65. package/es/enums/page-designer/designer.d.ts +23 -3
  66. package/es/enums/page-designer/designer.mjs +90 -6
  67. package/es/enums/page-designer/panel.d.ts +78 -7
  68. package/es/enums/page-designer/panel.mjs +22 -4
  69. package/es/enums/page-designer/toolkit.mjs +0 -1
  70. package/es/enums/page-designer/widget.d.ts +2 -1
  71. package/es/enums/page-designer/widget.mjs +3 -3
  72. package/es/enums/pageEnum.mjs +0 -1
  73. package/es/enums/plugin-enum.mjs +0 -1
  74. package/es/enums/processEnum.d.ts +54 -0
  75. package/es/enums/processEnum.mjs +36 -2
  76. package/es/enums/roleEnum.mjs +0 -1
  77. package/es/enums/sizeEnum.mjs +0 -1
  78. package/es/global/gct/gct.d.ts +11 -28
  79. package/es/global/gct/gct.mjs +29 -32
  80. package/es/hooks/index.d.ts +2 -1
  81. package/es/hooks/use-app-inst/use-app-inst.d.ts +8 -0
  82. package/es/hooks/use-app-inst/use-app-inst.mjs +8 -0
  83. package/es/hooks/use-form/use-form.mjs +0 -1
  84. package/es/hooks/use-gct-form-value/use-gct-form-value.d.ts +1 -1
  85. package/es/hooks/use-gct-form-value/use-gct-form-value.mjs +0 -4
  86. package/es/hooks/use-modal/use-modal.mjs +0 -1
  87. package/es/hooks/use-overlay-scrollbars/use-overlay-scrollbars.d.ts +11 -0
  88. package/es/hooks/use-sub-app-utils/use-sub-app-utils.d.ts +31 -0
  89. package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +30 -0
  90. package/es/hooks/useCopyToClipboard.mjs +0 -1
  91. package/es/index.d.ts +6 -8
  92. package/es/index.mjs +98 -64
  93. package/es/interface/controller/form-edit-item/form-edit-item.controller.d.ts +5 -0
  94. package/es/interface/controller/index.d.ts +0 -1
  95. package/es/interface/form/i-editor/i-editor-basic.d.ts +2 -2
  96. package/es/interface/form/i-editor/i-model-field-select-editor.d.ts +18 -0
  97. package/es/interface/form/i-form/i-form-collapse-pane.d.ts +4 -0
  98. package/es/interface/form/i-form/i-form-item-basic.d.ts +1 -1
  99. package/es/interface/form/i-form/i-form-tab-pane.d.ts +4 -0
  100. package/es/interface/form/index.d.ts +1 -0
  101. package/es/interface/i-app-context/i-app-context.d.ts +34 -0
  102. package/es/interface/i-field-code-chain/i-field-code-chain.d.ts +17 -0
  103. package/es/interface/i-global-var/i-global-var.d.ts +15 -0
  104. package/es/interface/i-mobile-home-menu-item/i-mobile-home-menu-item.d.ts +94 -0
  105. package/es/interface/i-pinia-action/i-global-actions.d.ts +8 -20
  106. package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -1
  107. package/es/interface/i-pinia-state/i-global-state.d.ts +7 -14
  108. package/es/interface/index.d.ts +5 -5
  109. package/es/interface/open-util/i-message-util/i-message-util.d.ts +54 -0
  110. package/es/interface/{i-modal → open-util/i-modal}/i-modal.d.ts +9 -10
  111. package/es/interface/{i-modal-data → open-util/i-modal-data}/i-modal-data.d.ts +6 -0
  112. package/es/interface/open-util/i-modal-options/i-modal-options.d.ts +12 -0
  113. package/es/interface/open-util/i-open-window-options/i-open-window-options.d.ts +59 -0
  114. package/es/interface/open-util/i-overlay-container/i-overlay-container.d.ts +36 -0
  115. package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +36 -0
  116. package/es/interface/open-util/index.d.ts +7 -0
  117. package/es/interface/state/index.d.ts +0 -1
  118. package/es/locale/index.mjs +2 -2
  119. package/es/modules/env-manager/env-manager.const.mjs +0 -1
  120. package/es/modules/env-manager/env-manager.interface.mjs +0 -1
  121. package/es/modules/env-manager/env-manager.mjs +7 -8
  122. package/es/modules/error-handler/error-handler.const.mjs +1 -30
  123. package/es/modules/error-handler/error-strategy.mjs +0 -1
  124. package/es/modules/error-handler/index.mjs +0 -1
  125. package/es/modules/platform-config/constants/index.d.ts +7 -0
  126. package/es/modules/platform-config/constants/login.const.d.ts +15 -0
  127. package/es/modules/platform-config/constants/login.const.mjs +50 -0
  128. package/es/modules/platform-config/constants/org.const.d.ts +9 -0
  129. package/es/modules/platform-config/constants/org.const.mjs +54 -0
  130. package/es/modules/platform-config/constants/theme.const.d.ts +9 -0
  131. package/es/modules/platform-config/constants/theme.const.mjs +5 -0
  132. package/es/modules/platform-config/constants/watermark.const.d.ts +16 -0
  133. package/es/modules/platform-config/constants/watermark.const.mjs +14 -0
  134. package/es/modules/platform-config/enums/deploy.enum.d.ts +10 -0
  135. package/es/modules/platform-config/enums/deploy.enum.mjs +7 -0
  136. package/es/modules/platform-config/enums/index.d.ts +6 -0
  137. package/es/modules/platform-config/{constants.d.ts → enums/login.enum.d.ts} +3 -7
  138. package/es/modules/platform-config/enums/login.enum.mjs +16 -0
  139. package/es/modules/platform-config/enums/platform.enum.d.ts +27 -0
  140. package/es/modules/platform-config/enums/platform.enum.mjs +26 -0
  141. package/es/modules/platform-config/index.d.ts +6 -17
  142. package/es/modules/platform-config/interfaces/global-setting.interface.d.ts +7 -0
  143. package/es/modules/platform-config/interfaces/index.d.ts +7 -0
  144. package/es/modules/platform-config/interfaces/login-config.interface.d.ts +17 -0
  145. package/es/modules/platform-config/interfaces/platform-map.interface.d.ts +8 -0
  146. package/es/modules/platform-config/interfaces/theme-setting.interface.d.ts +30 -0
  147. package/es/modules/platform-config/store.d.ts +221 -0
  148. package/es/modules/platform-config/store.mjs +78 -0
  149. package/es/modules/platform-config/useBasicSetting.d.ts +6 -2
  150. package/es/modules/platform-config/useBasicSetting.mjs +39 -0
  151. package/es/modules/platform-config/useDeploySetting.d.ts +9 -4
  152. package/es/modules/platform-config/useDeploySetting.mjs +27 -0
  153. package/es/modules/platform-config/useLoginSetting.d.ts +4 -14
  154. package/es/modules/platform-config/useLoginSetting.mjs +177 -0
  155. package/es/modules/platform-config/useOrgSetting.d.ts +5 -1
  156. package/es/modules/platform-config/useOrgSetting.mjs +66 -0
  157. package/es/modules/platform-config/useProjectSetting.d.ts +12 -0
  158. package/es/modules/platform-config/useProjectSetting.mjs +11 -0
  159. package/es/modules/platform-config/useSecuritySetting.d.ts +5 -1
  160. package/es/modules/platform-config/useSecuritySetting.mjs +60 -0
  161. package/es/modules/platform-config/useThemeSetting.d.ts +6 -3
  162. package/es/modules/platform-config/useThemeSetting.mjs +64 -0
  163. package/es/modules/platform-config/useWatermarkSetting.d.ts +4 -1
  164. package/es/modules/platform-config/useWatermarkSetting.mjs +26 -0
  165. package/es/modules/user-stores/index.d.ts +3 -0
  166. package/es/modules/user-stores/store/permission.store.d.ts +21 -0
  167. package/es/modules/user-stores/store/permission.store.mjs +38 -0
  168. package/es/modules/user-stores/store/tenant.store.d.ts +9 -0
  169. package/es/modules/user-stores/store/tenant.store.mjs +24 -0
  170. package/es/modules/user-stores/store/user.store.d.ts +154 -0
  171. package/es/modules/user-stores/store/user.store.mjs +107 -0
  172. package/es/modules/user-stores/types/permission.d.ts +1 -0
  173. package/es/modules/user-stores/types/tenant.d.ts +1 -0
  174. package/es/modules/user-stores/types/user.d.ts +14 -0
  175. package/es/register/editor-register/editor-register.d.ts +5 -13
  176. package/es/register/editor-register/editor-register.mjs +8 -17
  177. package/es/register/form-item-register/form-item-register.d.ts +4 -15
  178. package/es/register/form-item-register/form-item-register.mjs +7 -17
  179. package/es/register/index.d.ts +12 -2
  180. package/es/router/index.mjs +0 -1
  181. package/es/setup-app.d.ts +8 -0
  182. package/es/setup-app.mjs +30 -0
  183. package/es/state/form/form.state.mjs +0 -1
  184. package/es/state/form-collapse/form-collapse.state.mjs +0 -1
  185. package/es/state/form-collapse-pane/form-collapse-pane.state.mjs +0 -1
  186. package/es/state/form-edit-item/form-edit-item.state.mjs +0 -1
  187. package/es/state/form-group/form-group.state.mjs +0 -1
  188. package/es/state/form-item/form-item.state.mjs +0 -1
  189. package/es/state/form-item-basic/form-item-basic.state.mjs +0 -1
  190. package/es/state/form-tab/form-tab.state.mjs +0 -1
  191. package/es/state/form-tab-pane/form-tab-pane.state.mjs +0 -1
  192. package/es/state/global-pinia-state/global-pinia-state.d.ts +8 -25
  193. package/es/state/global-pinia-state/global-pinia-state.mjs +30 -16
  194. package/es/store/global-store.d.ts +1 -0
  195. package/es/store/global-store.mjs +40 -37
  196. package/es/store/index.d.ts +2 -3
  197. package/es/store/index.mjs +0 -1
  198. package/es/types/index.d.ts +18 -1
  199. package/es/utils/axios/interceptors.mjs +2 -23
  200. package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
  201. package/es/utils/cache-adapter/cache-adapter.mjs +59 -0
  202. package/es/utils/deviceFingerprint.d.ts +17 -0
  203. package/es/utils/deviceFingerprint.mjs +73 -0
  204. package/es/utils/dictionary/dictionary.mjs +0 -1
  205. package/es/utils/i18n/index.d.ts +2 -1
  206. package/es/utils/i18n/index.mjs +3 -4
  207. package/es/utils/index.d.ts +17 -3
  208. package/es/utils/linked-list/linked-list.d.ts +72 -0
  209. package/es/utils/linked-list/linked-list.mjs +119 -0
  210. package/es/utils/linked-node/linked-node.d.ts +31 -0
  211. package/es/utils/linked-node/linked-node.mjs +32 -0
  212. package/es/utils/lowcode/utils.d.ts +1 -0
  213. package/es/utils/lowcode/utils.mjs +20 -0
  214. package/es/utils/lowcode/validate.d.ts +13 -0
  215. package/es/utils/lowcode/validate.mjs +29 -0
  216. package/es/utils/mitt/mitt.d.ts +1 -0
  217. package/es/utils/mitt/mitt.mjs +5 -0
  218. package/es/utils/model-loader/model-loader.d.ts +118 -0
  219. package/es/utils/model-loader/model-loader.mjs +326 -0
  220. package/es/utils/namespace/namespace.d.ts +8 -0
  221. package/es/utils/namespace/namespace.mjs +4 -2
  222. package/es/utils/openUtil/index.d.ts +2 -0
  223. package/es/utils/openUtil/modal/modal.d.ts +61 -0
  224. package/es/utils/openUtil/modal/modal.mjs +80 -0
  225. package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
  226. package/es/utils/openUtil/overlay-container/overlay-container.mjs +139 -0
  227. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +0 -1
  228. package/es/utils/props/gct-form-item/gct-form-item.props.d.ts +63 -0
  229. package/es/utils/props/gct-form-item/gct-form-item.props.mjs +66 -0
  230. package/es/utils/props/index.d.ts +1 -0
  231. package/es/utils/style/index.d.ts +16 -0
  232. package/es/utils/style/index.mjs +141 -0
  233. package/es/utils/tools/tools.d.ts +13 -10
  234. package/es/utils/tools/tools.mjs +23 -11
  235. package/es/utils/treeHelper/treeHelper.d.ts +124 -0
  236. package/es/utils/treeHelper/treeHelper.mjs +234 -0
  237. package/es/utils/util.d.ts +39 -0
  238. package/es/utils/util.mjs +40 -0
  239. package/es/utils/uuid/uuid.d.ts +3 -0
  240. package/es/utils/uuid/uuid.mjs +48 -0
  241. package/es/utils/value-helper/value-helper.d.ts +49 -0
  242. package/es/utils/value-helper/value-helper.mjs +111 -0
  243. package/es/utils/width-install/width-install.mjs +4 -2
  244. package/package.json +13 -16
  245. package/es/controller/index.mjs +0 -17
  246. package/es/enums/page-designer/index.mjs +0 -6
  247. package/es/global/index.mjs +0 -3
  248. package/es/hooks/index.mjs +0 -7
  249. package/es/hooks/use-namespace/use-namespace.d.ts +0 -9
  250. package/es/hooks/use-namespace/use-namespace.mjs +0 -9
  251. package/es/interface/controller/i-designer-controller.d.ts +0 -116
  252. package/es/interface/hooks/i-designer-hooks.d.ts +0 -26
  253. package/es/interface/hooks/index.d.ts +0 -1
  254. package/es/interface/i-message-util/i-message-util.d.ts +0 -78
  255. package/es/interface/index.mjs +0 -1
  256. package/es/interface/low-code-types/index.d.ts +0 -4
  257. package/es/interface/low-code-types/modal-types.d.ts +0 -67
  258. package/es/interface/low-code-types/model/index.d.ts +0 -5338
  259. package/es/interface/low-code-types/schema/index.d.ts +0 -12
  260. package/es/interface/low-code-types/widget-basic-types.d.ts +0 -667
  261. package/es/interface/state/i-designer-state.d.ts +0 -27
  262. package/es/modules/env-manager/index.mjs +0 -5
  263. package/es/modules/platform-config/index.mjs +0 -17
  264. package/es/modules/platform-config/types.d.ts +0 -67
  265. package/es/provider/i-designer-provider/i-designer-provider.d.ts +0 -102
  266. package/es/provider/index.d.ts +0 -1
  267. package/es/provider/index.mjs +0 -1
  268. package/es/register/designer-register/designer-register.d.ts +0 -53
  269. package/es/register/designer-register/designer-register.mjs +0 -68
  270. package/es/register/index.mjs +0 -6
  271. package/es/register/render-register/render-register.d.ts +0 -59
  272. package/es/register/render-register/render-register.mjs +0 -64
  273. package/es/state/index.mjs +0 -12
  274. package/es/utils/index.mjs +0 -10
  275. package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +0 -96
  276. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +0 -260
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const CoreConst = {
3
2
  TOKEN: "gct-token",
4
3
  TENANT: "gct-tenant"
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var EditorRegisterConst = /* @__PURE__ */ ((EditorRegisterConst2) => {
3
2
  EditorRegisterConst2["PREFIX"] = "EDITOR___";
4
3
  return EditorRegisterConst2;
@@ -4,6 +4,14 @@
4
4
  * @export
5
5
  * @enum {number}
6
6
  */
7
+ /**
8
+ * 编辑器类型
9
+ *
10
+ * @author zhanghanrui
11
+ * @date 2024-03-27 10:03:19
12
+ * @export
13
+ * @enum {number}
14
+ */
7
15
  export declare enum EditorType {
8
16
  /**
9
17
  * 带单位长度字符串编辑器
@@ -29,10 +37,18 @@ export declare enum EditorType {
29
37
  * 纯信息呈现
30
38
  */
31
39
  INFO = "info",
40
+ /**
41
+ * 根据模型或者字段进行的纯信息展示
42
+ */
43
+ MSG = "msg",
32
44
  /**
33
45
  * 下拉选择编辑器
34
46
  */
35
47
  SELECT = "select",
48
+ /**
49
+ * 分组下拉选择编辑器
50
+ */
51
+ SELECT_GROUP = "select-group",
36
52
  /**
37
53
  * 单选框编辑器
38
54
  */
@@ -41,6 +57,10 @@ export declare enum EditorType {
41
57
  * 数据选择器编辑器
42
58
  */
43
59
  PICKER = "picker",
60
+ /**
61
+ * 数据选择多选编辑器
62
+ */
63
+ MULTIPLE_CHOICE = "multiple-choice",
44
64
  /**
45
65
  * 多语言选择编辑器
46
66
  */
@@ -68,7 +88,51 @@ export declare enum EditorType {
68
88
  /**
69
89
  * 复选框
70
90
  */
71
- CHECKBOX = "checkbox"
91
+ CHECKBOX = "checkbox",
92
+ /**
93
+ * 日期
94
+ */
95
+ DATE = "date",
96
+ /**
97
+ * 平台模型选择
98
+ */
99
+ MODEL_SELECT = "model-select",
100
+ /**
101
+ * 按钮行为
102
+ */
103
+ ACTION = "action",
104
+ /**
105
+ * 表格编辑器
106
+ */
107
+ TABLE = "table",
108
+ /**
109
+ * 表格选择编辑器
110
+ */
111
+ SELECT_TABLE = "select-table",
112
+ /**
113
+ * 空显示
114
+ */
115
+ EMPTY = "empty",
116
+ /**
117
+ * 表单模型字段选择编辑器
118
+ */
119
+ FORM_MODEL_FIELD_SELECT = "form-model-field-select",
120
+ /**
121
+ * 像素模式配置
122
+ */
123
+ PIXEL_CONFIG = "pixel-config",
124
+ /**
125
+ * 界面配置中,属性配置的基本信息
126
+ */
127
+ FIELD_INFO = "field-info",
128
+ /**
129
+ * 日期与日期时间类型的格式化选择编辑器
130
+ */
131
+ DATE_FORMAT_SELECT = "date-format-select",
132
+ /**
133
+ * 公式编辑器
134
+ */
135
+ FORMULA = "formula"
72
136
  }
73
137
  /**
74
138
  * 旧编辑器类型标识
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var EditorType = /* @__PURE__ */ ((EditorType2) => {
3
2
  EditorType2["LENGTH_UNIT"] = "length-unit";
4
3
  EditorType2["COLOR"] = "color";
@@ -6,9 +5,12 @@ var EditorType = /* @__PURE__ */ ((EditorType2) => {
6
5
  EditorType2["TEXT"] = "text";
7
6
  EditorType2["NUMBER"] = "number";
8
7
  EditorType2["INFO"] = "info";
8
+ EditorType2["MSG"] = "msg";
9
9
  EditorType2["SELECT"] = "select";
10
+ EditorType2["SELECT_GROUP"] = "select-group";
10
11
  EditorType2["RADIO"] = "radio";
11
12
  EditorType2["PICKER"] = "picker";
13
+ EditorType2["MULTIPLE_CHOICE"] = "multiple-choice";
12
14
  EditorType2["I18N"] = "i18n";
13
15
  EditorType2["TEXTAREA"] = "textarea";
14
16
  EditorType2["DATE_RANGE"] = "date-range";
@@ -16,6 +18,17 @@ var EditorType = /* @__PURE__ */ ((EditorType2) => {
16
18
  EditorType2["CHECK_SWITCH"] = "check-switch";
17
19
  EditorType2["ICON_SELECT"] = "icon-select";
18
20
  EditorType2["CHECKBOX"] = "checkbox";
21
+ EditorType2["DATE"] = "date";
22
+ EditorType2["MODEL_SELECT"] = "model-select";
23
+ EditorType2["ACTION"] = "action";
24
+ EditorType2["TABLE"] = "table";
25
+ EditorType2["SELECT_TABLE"] = "select-table";
26
+ EditorType2["EMPTY"] = "empty";
27
+ EditorType2["FORM_MODEL_FIELD_SELECT"] = "form-model-field-select";
28
+ EditorType2["PIXEL_CONFIG"] = "pixel-config";
29
+ EditorType2["FIELD_INFO"] = "field-info";
30
+ EditorType2["DATE_FORMAT_SELECT"] = "date-format-select";
31
+ EditorType2["FORMULA"] = "formula";
19
32
  return EditorType2;
20
33
  })(EditorType || {});
21
34
  var EditorTypeOld = /* @__PURE__ */ ((EditorTypeOld2) => {
@@ -0,0 +1,20 @@
1
+ import { OperatorTypeEnum } from '../../enums';
2
+ /**
3
+ * 运算符提示清单
4
+ */
5
+ export declare const BuiltOperators: IObject;
6
+ export declare const numberOperator: string[];
7
+ export declare const booleanOperator: string[];
8
+ export declare const allOperator: string[];
9
+ export declare const returnBolOperator: string[];
10
+ export declare const getOperatorList: () => {
11
+ id: OperatorTypeEnum;
12
+ name: string;
13
+ children: {
14
+ name: any;
15
+ group: any;
16
+ desc: string;
17
+ id: any;
18
+ }[];
19
+ idToChildren: boolean;
20
+ }[];
@@ -0,0 +1,148 @@
1
+ import '../../enums/app-designer/index.mjs';
2
+ import '../../enums/page-designer/designer.mjs';
3
+ import '../../enums/breakpointEnum.mjs';
4
+ import { OperatorTypeEnum } from '../../enums/expressionEnum.mjs';
5
+ import 'qs';
6
+ import { t } from '../../utils/i18n/index.mjs';
7
+ import 'lodash-es';
8
+ import '../../utils/mitt/mitt.mjs';
9
+ import './modeCfg.mjs';
10
+ import './function.mjs';
11
+ import './variable.mjs';
12
+ import 'vue';
13
+ import 'qx-util';
14
+ import 'path-browserify';
15
+ import '../../utils/uuid/uuid.mjs';
16
+ import 'axios';
17
+ import '@fingerprintjs/fingerprintjs';
18
+
19
+ const BuiltOperators = {
20
+ "+": {
21
+ title: "加法: a+b",
22
+ description: "a,b: 整数,数字",
23
+ group: OperatorTypeEnum.ARITHMETIC
24
+ },
25
+ "-": {
26
+ title: "减法: a-b",
27
+ description: "a,b: 整数,数字",
28
+ group: OperatorTypeEnum.ARITHMETIC
29
+ },
30
+ "*": {
31
+ title: "乘法: a*b",
32
+ description: "a,b: 整数,数字",
33
+ group: OperatorTypeEnum.ARITHMETIC
34
+ },
35
+ "/": {
36
+ title: "除法: a/b",
37
+ description: "a,b: 整数,数字",
38
+ group: OperatorTypeEnum.ARITHMETIC
39
+ },
40
+ "%": {
41
+ title: "求余: a%b",
42
+ description: "a,b: 整数,数字",
43
+ group: OperatorTypeEnum.ARITHMETIC
44
+ },
45
+ ">": {
46
+ title: "大于: a>b",
47
+ description: "a,b: 整数,数字",
48
+ group: OperatorTypeEnum.RELATIONSHIP
49
+ },
50
+ ">=": {
51
+ title: "大于等于: a>=b",
52
+ description: "a,b: 整数,数字",
53
+ group: OperatorTypeEnum.RELATIONSHIP
54
+ },
55
+ "<": {
56
+ title: "小于: a<b",
57
+ description: "a,b: 整数,数字",
58
+ group: OperatorTypeEnum.RELATIONSHIP
59
+ },
60
+ "<=": {
61
+ title: "小于等于: a<=b",
62
+ description: "a,b: 整数,数字",
63
+ group: OperatorTypeEnum.RELATIONSHIP
64
+ },
65
+ "==": {
66
+ title: "等于: a==b",
67
+ description: "a,b: 整数,数字,布尔,字符串",
68
+ group: OperatorTypeEnum.RELATIONSHIP
69
+ },
70
+ "!=": {
71
+ title: "不等于: a!=b",
72
+ description: "a,b: 整数,数字,布尔,字符串",
73
+ group: OperatorTypeEnum.RELATIONSHIP
74
+ },
75
+ "&&": {
76
+ title: "与: a&&b",
77
+ description: "a,b: 布尔",
78
+ group: OperatorTypeEnum.LOGIC
79
+ },
80
+ "||": {
81
+ title: "或: a||b",
82
+ description: "a,b: 布尔",
83
+ group: OperatorTypeEnum.LOGIC
84
+ },
85
+ "!": {
86
+ title: "非: !a",
87
+ description: "a: 布尔",
88
+ group: OperatorTypeEnum.LOGIC
89
+ },
90
+ "?": {
91
+ title: "判断: a?b:c",
92
+ description: "若a的值为true,则执行b否则执行c",
93
+ group: OperatorTypeEnum.OTHER,
94
+ label: "?:",
95
+ output: "?:"
96
+ },
97
+ "(": {
98
+ title: "左括号: c-(a+b)",
99
+ description: "优先运算 () 中的内容",
100
+ group: OperatorTypeEnum.OTHER
101
+ },
102
+ ")": {
103
+ title: "右括号: c-(a+b)",
104
+ description: "优先运算 () 中的内容",
105
+ group: OperatorTypeEnum.OTHER
106
+ }
107
+ };
108
+ const numberOperator = ["+", "-", "*", "/", "%", ">", ">=", "<", "<="];
109
+ const booleanOperator = ["&&", "||", "!"];
110
+ const allOperator = ["==", "!=", "?", ":"];
111
+ const returnBolOperator = [
112
+ "&&",
113
+ "||",
114
+ "!",
115
+ "==",
116
+ "!=",
117
+ ">",
118
+ ">=",
119
+ "<",
120
+ "<="
121
+ ];
122
+ const getOperatorList = () => {
123
+ const children = Object.keys(BuiltOperators).map((i) => {
124
+ const { title, description, group, label, output } = BuiltOperators[i];
125
+ return {
126
+ name: label ?? i,
127
+ group,
128
+ desc: `${title}
129
+ ${description}`,
130
+ id: output ?? i
131
+ };
132
+ });
133
+ return [
134
+ OperatorTypeEnum.ARITHMETIC,
135
+ OperatorTypeEnum.RELATIONSHIP,
136
+ OperatorTypeEnum.LOGIC,
137
+ OperatorTypeEnum.OTHER
138
+ ].map((i) => {
139
+ return {
140
+ id: i,
141
+ name: t(`sys.expression.${i}`),
142
+ children: children.filter((g) => g.group === i),
143
+ idToChildren: false
144
+ };
145
+ });
146
+ };
147
+
148
+ export { BuiltOperators, allOperator, booleanOperator, getOperatorList, numberOperator, returnBolOperator };
@@ -0,0 +1 @@
1
+ export declare const FUNC_KEYS: string[];
@@ -0,0 +1,81 @@
1
+ const FUNC_KEYS = [
2
+ // 布尔
3
+ "IF",
4
+ "ISEMPTY",
5
+ "ISNULL",
6
+ "ISUNDEFINED",
7
+ "AND",
8
+ "OR",
9
+ "EQ",
10
+ "NE",
11
+ "LE",
12
+ "LT",
13
+ "GE",
14
+ "GT",
15
+ // 字符串
16
+ "LEN",
17
+ "CONCAT",
18
+ "SUBSTRING",
19
+ "SUBSTR",
20
+ "UPPER",
21
+ "LOWER",
22
+ "TRIM",
23
+ "LTRIM",
24
+ "RTRIM",
25
+ "REPEAT",
26
+ "REPLACE",
27
+ "FINDSTR",
28
+ "SEARCHSTR",
29
+ "PARSENUMBER",
30
+ "SPLIT",
31
+ // 数值
32
+ "SUM",
33
+ "REDUCE",
34
+ "MULTIPLICATION",
35
+ "DIVISION",
36
+ "FIXED",
37
+ "ROUND",
38
+ "ROUNDUP",
39
+ "MAX",
40
+ "LARGE",
41
+ "MIN",
42
+ "SMALL",
43
+ "AVERAGE",
44
+ "ABS",
45
+ "MOD",
46
+ "POWER",
47
+ "SQRT",
48
+ "SUMSQ",
49
+ "STDEV",
50
+ // 对象/数组
51
+ "TUPLE",
52
+ "SEQMAP",
53
+ "GET",
54
+ "PUT",
55
+ "PUSH",
56
+ "HEADPUSH",
57
+ "COUNT",
58
+ // 日期
59
+ "TIMESTAMP2DATE",
60
+ "DATE2TIMESTAMP",
61
+ "DATEFORMAT",
62
+ "NOW",
63
+ "TODAY",
64
+ "YEAR",
65
+ "MONTH",
66
+ "DAY",
67
+ "HOUR",
68
+ "MINUTE",
69
+ "WEEKRANGE",
70
+ "LASTWEEKRANGE",
71
+ "MONTHRANGE",
72
+ "LASTMONTHRANGE",
73
+ "YEARRANGE",
74
+ "LASTYEARRANGE",
75
+ "QUARTER",
76
+ "LASTQUARTER",
77
+ "ISDATERANGE",
78
+ "ISTIMERANGE"
79
+ ];
80
+
81
+ export { FUNC_KEYS };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 自定义编辑器语言标识
3
+ */
4
+ export declare const CUSTOM_LANGUAGE = "custom-expression";
5
+ /**
6
+ * 自定义编辑器语言主题标识
7
+ */
8
+ export declare const CUSTOM_THEME = "custom-expression-theme";
@@ -0,0 +1,4 @@
1
+ const CUSTOM_LANGUAGE = "custom-expression";
2
+ const CUSTOM_THEME = "custom-expression-theme";
3
+
4
+ export { CUSTOM_LANGUAGE, CUSTOM_THEME };
@@ -0,0 +1,7 @@
1
+ import { IdentifierGroupInterface } from '../../enums';
2
+ export declare const functionGroup: IdentifierGroupInterface[];
3
+ export declare const functionMap: Record<string, (typeof functionGroup)[0]['children'][0]>;
4
+ export declare const ipaasBackFunctionGroup: IdentifierGroupInterface[];
5
+ export declare const ipaasBackFunctionMap: IObject;
6
+ export declare const biBackFunctionGroup: IdentifierGroupInterface[];
7
+ export declare const biBackFunctionMap: IObject;