@gct-paas/core 0.1.4-dev.11 → 0.1.4-dev.12

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 (130) hide show
  1. package/dist/index.esm.min.js +21679 -0
  2. package/es/constants/core.mjs +5 -4
  3. package/es/constants/default-date-type/default-date-type.mjs +73 -21
  4. package/es/constants/editor-register/editor-register.mjs +17 -5
  5. package/es/constants/expression-type/BuiltOperators.mjs +152 -147
  6. package/es/constants/expression-type/FunctionKeys.mjs +75 -79
  7. package/es/constants/expression-type/editor.mjs +10 -3
  8. package/es/constants/expression-type/function.mjs +602 -613
  9. package/es/constants/expression-type/index.mjs +111 -113
  10. package/es/constants/expression-type/modeCfg.mjs +256 -263
  11. package/es/constants/expression-type/variable.mjs +43 -39
  12. package/es/constants/form-container-type/form-container-type.mjs +17 -5
  13. package/es/constants/index.mjs +30 -10
  14. package/es/constants/page-designer/model.mjs +15 -5
  15. package/es/create-app-vue.mjs +15 -9
  16. package/es/enums/app-designer/index.d.ts +19 -0
  17. package/es/enums/app-designer/index.mjs +131 -63
  18. package/es/enums/appEnum.mjs +681 -360
  19. package/es/enums/appStateEnum.mjs +17 -10
  20. package/es/enums/authActionEnum.mjs +63 -51
  21. package/es/enums/breakpointEnum.mjs +27 -26
  22. package/es/enums/cacheEnum.mjs +22 -21
  23. package/es/enums/designEnum.mjs +110 -71
  24. package/es/enums/developer-center/integration.mjs +7 -6
  25. package/es/enums/exceptionEnum.mjs +21 -17
  26. package/es/enums/expressionEnum.d.ts +1 -1
  27. package/es/enums/expressionEnum.mjs +81 -74
  28. package/es/enums/globalEnum.mjs +59 -36
  29. package/es/enums/httpEnum.mjs +71 -61
  30. package/es/enums/index.mjs +43 -14
  31. package/es/enums/menuEnum.mjs +42 -38
  32. package/es/enums/page-designer/designer.mjs +403 -407
  33. package/es/enums/page-designer/index.mjs +4 -0
  34. package/es/enums/page-designer/panel.mjs +341 -213
  35. package/es/enums/page-designer/toolkit.mjs +13 -12
  36. package/es/enums/page-designer/widget.mjs +425 -338
  37. package/es/enums/pageEnum.mjs +14 -13
  38. package/es/enums/plugin-enum.mjs +23 -7
  39. package/es/enums/processEnum.mjs +95 -60
  40. package/es/enums/roleEnum.mjs +7 -6
  41. package/es/enums/sizeEnum.d.ts +18 -0
  42. package/es/enums/sizeEnum.mjs +28 -8
  43. package/es/global/gct/gct.mjs +84 -96
  44. package/es/global/index.mjs +1 -0
  45. package/es/hooks/index.mjs +4 -0
  46. package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
  47. package/es/hooks/use-modal/use-modal.mjs +16 -10
  48. package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +43 -23
  49. package/es/hooks/useCopyToClipboard.mjs +50 -50
  50. package/es/index.mjs +122 -114
  51. package/es/locale/index.mjs +43 -57
  52. package/es/modules/env-manager/env-manager.const.mjs +16 -8
  53. package/es/modules/env-manager/env-manager.interface.mjs +14 -7
  54. package/es/modules/env-manager/env-manager.mjs +104 -107
  55. package/es/modules/error-handler/error-handler.const.mjs +11 -16
  56. package/es/modules/error-handler/error-strategy.mjs +199 -175
  57. package/es/modules/error-handler/index.mjs +120 -106
  58. package/es/modules/mqtt/constants/mqtt.const.mjs +21 -24
  59. package/es/modules/mqtt/enums/mqtt-status.enum.mjs +23 -9
  60. package/es/modules/mqtt/index.mjs +4 -0
  61. package/es/modules/mqtt/mqtt-client.mjs +228 -261
  62. package/es/modules/mqtt/mqtt-manager.mjs +117 -77
  63. package/es/modules/platform-config/constants/index.mjs +4 -0
  64. package/es/modules/platform-config/constants/login.const.mjs +48 -45
  65. package/es/modules/platform-config/constants/org.const.mjs +57 -52
  66. package/es/modules/platform-config/constants/theme.const.mjs +11 -4
  67. package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
  68. package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
  69. package/es/modules/platform-config/enums/login.enum.mjs +29 -15
  70. package/es/modules/platform-config/enums/platform.enum.mjs +16 -13
  71. package/es/modules/platform-config/index.mjs +9 -0
  72. package/es/modules/platform-config/store.mjs +68 -79
  73. package/es/modules/platform-config/useBasicSetting.mjs +47 -35
  74. package/es/modules/platform-config/useDeploySetting.mjs +29 -21
  75. package/es/modules/platform-config/useLoginSetting.mjs +151 -173
  76. package/es/modules/platform-config/useOrgSetting.mjs +63 -62
  77. package/es/modules/platform-config/useProjectSetting.mjs +14 -6
  78. package/es/modules/platform-config/useSecuritySetting.mjs +68 -56
  79. package/es/modules/platform-config/useThemeSetting.mjs +78 -59
  80. package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
  81. package/es/modules/user-stores/index.mjs +3 -0
  82. package/es/modules/user-stores/store/permission.store.mjs +27 -36
  83. package/es/modules/user-stores/store/tenant.store.mjs +20 -22
  84. package/es/modules/user-stores/store/user.store.mjs +94 -117
  85. package/es/router/index.mjs +25 -28
  86. package/es/setup-app.mjs +23 -39
  87. package/es/state/global-pinia-state/global-pinia-state.mjs +49 -71
  88. package/es/state/index.mjs +1 -0
  89. package/es/store/global-store.mjs +50 -72
  90. package/es/store/index.mjs +25 -19
  91. package/es/types/index.d.ts +7 -0
  92. package/es/utils/axios/interceptors.mjs +21 -17
  93. package/es/utils/cache-adapter/cache-adapter.mjs +61 -56
  94. package/es/utils/design/design.mjs +18 -12
  95. package/es/utils/deviceFingerprint.mjs +74 -63
  96. package/es/utils/dictionary/dictionary.mjs +142 -145
  97. package/es/utils/file/base64Conver.mjs +35 -30
  98. package/es/utils/file/download.mjs +94 -98
  99. package/es/utils/file/parser.d.ts +3 -0
  100. package/es/utils/file/parser.mjs +29 -0
  101. package/es/utils/i18n/index.mjs +14 -3
  102. package/es/utils/index.d.ts +1 -0
  103. package/es/utils/index.mjs +31 -0
  104. package/es/utils/is-sort-filed/is-sort-filed.mjs +42 -37
  105. package/es/utils/linked-list/linked-list.mjs +115 -118
  106. package/es/utils/linked-node/linked-node.mjs +41 -31
  107. package/es/utils/lowcode/utils.mjs +13 -18
  108. package/es/utils/lowcode/validate.mjs +20 -26
  109. package/es/utils/mitt/mitt.mjs +4 -4
  110. package/es/utils/model-loader/model-loader.mjs +280 -325
  111. package/es/utils/namespace/namespace.mjs +178 -164
  112. package/es/utils/openUtil/index.mjs +2 -0
  113. package/es/utils/openUtil/modal/modal.mjs +72 -79
  114. package/es/utils/openUtil/overlay-container/overlay-container.mjs +144 -138
  115. package/es/utils/permission.mjs +33 -37
  116. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +46 -42
  117. package/es/utils/style/index.mjs +94 -138
  118. package/es/utils/tools/tools.mjs +86 -54
  119. package/es/utils/treeHelper/treeHelper.mjs +205 -233
  120. package/es/utils/uploader/uploader.mjs +81 -115
  121. package/es/utils/useUUid.mjs +79 -87
  122. package/es/utils/util.mjs +55 -35
  123. package/es/utils/uuid/uuid.d.ts +1 -0
  124. package/es/utils/uuid/uuid.mjs +36 -43
  125. package/es/utils/validate.mjs +15 -19
  126. package/es/utils/value-helper/value-helper.mjs +113 -98
  127. package/package.json +12 -13
  128. package/dist/index.esm.min.mjs +0 -18322
  129. package/dist/index.min.cjs +0 -393
  130. package/dist/index.system.min.js +0 -393
@@ -1,6 +1,7 @@
1
- const CoreConst = {
2
- TOKEN: "gct-token",
3
- TENANT: "gct-tenant"
1
+ //#region src/constants/core.ts
2
+ var CoreConst = {
3
+ TOKEN: "gct-token",
4
+ TENANT: "gct-tenant"
4
5
  };
5
-
6
+ //#endregion
6
7
  export { CoreConst };
@@ -1,22 +1,74 @@
1
- var DefaultDateTypeConst = /* @__PURE__ */ ((DefaultDateTypeConst2) => {
2
- DefaultDateTypeConst2["SystemDate"] = "system-date";
3
- DefaultDateTypeConst2["Yesterday"] = "yesterday";
4
- DefaultDateTypeConst2["Past7Days"] = "past-7-days";
5
- DefaultDateTypeConst2["Past30Days"] = "past-30-days";
6
- DefaultDateTypeConst2["PastDays"] = "past-days";
7
- DefaultDateTypeConst2["ThisWeek"] = "this-week";
8
- DefaultDateTypeConst2["LastWeek"] = "last-week";
9
- DefaultDateTypeConst2["PastWeeks"] = "past-weeks";
10
- DefaultDateTypeConst2["ThisMonth"] = "this-month";
11
- DefaultDateTypeConst2["LastMonth"] = "last-month";
12
- DefaultDateTypeConst2["PastMonths"] = "past-months";
13
- DefaultDateTypeConst2["ThisQuarter"] = "this-quarter";
14
- DefaultDateTypeConst2["LastQuarter"] = "last-quarter";
15
- DefaultDateTypeConst2["PastQuarters"] = "past-quarters";
16
- DefaultDateTypeConst2["ThisYear"] = "this-year";
17
- DefaultDateTypeConst2["LastYear"] = "last-year";
18
- DefaultDateTypeConst2["PastYears"] = "past-years";
19
- return DefaultDateTypeConst2;
20
- })(DefaultDateTypeConst || {});
21
-
1
+ //#region src/constants/default-date-type/default-date-type.ts
2
+ var DefaultDateTypeConst = /* @__PURE__ */ function(DefaultDateTypeConst) {
3
+ /**
4
+ * 系统日期
5
+ */
6
+ DefaultDateTypeConst["SystemDate"] = "system-date";
7
+ /**
8
+ * 昨天
9
+ */
10
+ DefaultDateTypeConst["Yesterday"] = "yesterday";
11
+ /**
12
+ * 近7天
13
+ */
14
+ DefaultDateTypeConst["Past7Days"] = "past-7-days";
15
+ /**
16
+ * 近30天
17
+ */
18
+ DefaultDateTypeConst["Past30Days"] = "past-30-days";
19
+ /**
20
+ * 近N天
21
+ */
22
+ DefaultDateTypeConst["PastDays"] = "past-days";
23
+ /**
24
+ * 本周
25
+ */
26
+ DefaultDateTypeConst["ThisWeek"] = "this-week";
27
+ /**
28
+ * 上周
29
+ */
30
+ DefaultDateTypeConst["LastWeek"] = "last-week";
31
+ /**
32
+ * 近N周
33
+ */
34
+ DefaultDateTypeConst["PastWeeks"] = "past-weeks";
35
+ /**
36
+ * 本月
37
+ */
38
+ DefaultDateTypeConst["ThisMonth"] = "this-month";
39
+ /**
40
+ * 上月
41
+ */
42
+ DefaultDateTypeConst["LastMonth"] = "last-month";
43
+ /**
44
+ * 近N月
45
+ */
46
+ DefaultDateTypeConst["PastMonths"] = "past-months";
47
+ /**
48
+ * 本季度
49
+ */
50
+ DefaultDateTypeConst["ThisQuarter"] = "this-quarter";
51
+ /**
52
+ * 上季度
53
+ */
54
+ DefaultDateTypeConst["LastQuarter"] = "last-quarter";
55
+ /**
56
+ * 近N季度
57
+ */
58
+ DefaultDateTypeConst["PastQuarters"] = "past-quarters";
59
+ /**
60
+ * 今年
61
+ */
62
+ DefaultDateTypeConst["ThisYear"] = "this-year";
63
+ /**
64
+ * 去年
65
+ */
66
+ DefaultDateTypeConst["LastYear"] = "last-year";
67
+ /**
68
+ * 近N年
69
+ */
70
+ DefaultDateTypeConst["PastYears"] = "past-years";
71
+ return DefaultDateTypeConst;
72
+ }({});
73
+ //#endregion
22
74
  export { DefaultDateTypeConst };
@@ -1,6 +1,18 @@
1
- var EditorRegisterConst = /* @__PURE__ */ ((EditorRegisterConst2) => {
2
- EditorRegisterConst2["PREFIX"] = "EDITOR___";
3
- return EditorRegisterConst2;
4
- })(EditorRegisterConst || {});
5
-
1
+ //#region src/constants/editor-register/editor-register.ts
2
+ /**
3
+ * 编辑器注册器常量
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-04-02 10:04:33
7
+ * @export
8
+ * @enum {number}
9
+ */
10
+ var EditorRegisterConst = /* @__PURE__ */ function(EditorRegisterConst) {
11
+ /**
12
+ * 编辑器注册器类型前缀
13
+ */
14
+ EditorRegisterConst["PREFIX"] = "EDITOR___";
15
+ return EditorRegisterConst;
16
+ }({});
17
+ //#endregion
6
18
  export { EditorRegisterConst };
@@ -1,151 +1,156 @@
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
- import '../../utils/useUUid.mjs';
19
- import 'dayjs';
20
- import '../../utils/permission.mjs';
21
-
22
- const BuiltOperators = {
23
- "+": {
24
- title: "加法: a+b",
25
- description: "a,b: 整数,数字",
26
- group: OperatorTypeEnum.ARITHMETIC
27
- },
28
- "-": {
29
- title: "减法: a-b",
30
- description: "a,b: 整数,数字",
31
- group: OperatorTypeEnum.ARITHMETIC
32
- },
33
- "*": {
34
- title: "乘法: a*b",
35
- description: "a,b: 整数,数字",
36
- group: OperatorTypeEnum.ARITHMETIC
37
- },
38
- "/": {
39
- title: "除法: a/b",
40
- description: "a,b: 整数,数字",
41
- group: OperatorTypeEnum.ARITHMETIC
42
- },
43
- "%": {
44
- title: "求余: a%b",
45
- description: "a,b: 整数,数字",
46
- group: OperatorTypeEnum.ARITHMETIC
47
- },
48
- ">": {
49
- title: "大于: a>b",
50
- description: "a,b: 整数,数字",
51
- group: OperatorTypeEnum.RELATIONSHIP
52
- },
53
- ">=": {
54
- title: "大于等于: a>=b",
55
- description: "a,b: 整数,数字",
56
- group: OperatorTypeEnum.RELATIONSHIP
57
- },
58
- "<": {
59
- title: "小于: a<b",
60
- description: "a,b: 整数,数字",
61
- group: OperatorTypeEnum.RELATIONSHIP
62
- },
63
- "<=": {
64
- title: "小于等于: a<=b",
65
- description: "a,b: 整数,数字",
66
- group: OperatorTypeEnum.RELATIONSHIP
67
- },
68
- "==": {
69
- title: "等于: a==b",
70
- description: "a,b: 整数,数字,布尔,字符串",
71
- group: OperatorTypeEnum.RELATIONSHIP
72
- },
73
- "!=": {
74
- title: "不等于: a!=b",
75
- description: "a,b: 整数,数字,布尔,字符串",
76
- group: OperatorTypeEnum.RELATIONSHIP
77
- },
78
- "&&": {
79
- title: "与: a&&b",
80
- description: "a,b: 布尔",
81
- group: OperatorTypeEnum.LOGIC
82
- },
83
- "||": {
84
- title: "或: a||b",
85
- description: "a,b: 布尔",
86
- group: OperatorTypeEnum.LOGIC
87
- },
88
- "!": {
89
- title: "非: !a",
90
- description: "a: 布尔",
91
- group: OperatorTypeEnum.LOGIC
92
- },
93
- "?": {
94
- title: "判断: a?b:c",
95
- description: "若a的值为true,则执行b否则执行c",
96
- group: OperatorTypeEnum.OTHER,
97
- label: "?:",
98
- output: "?:"
99
- },
100
- "(": {
101
- title: "左括号: c-(a+b)",
102
- description: "优先运算 () 中的内容",
103
- group: OperatorTypeEnum.OTHER
104
- },
105
- ")": {
106
- title: "右括号: c-(a+b)",
107
- description: "优先运算 () 中的内容",
108
- group: OperatorTypeEnum.OTHER
109
- }
1
+ import { OperatorTypeEnum } from "../../enums/expressionEnum.mjs";
2
+ import "../../enums/index.mjs";
3
+ import { t } from "../../utils/i18n/index.mjs";
4
+ import "../../utils/index.mjs";
5
+ //#region src/constants/expression-type/BuiltOperators.ts
6
+ /**
7
+ * 运算符提示清单
8
+ */
9
+ var BuiltOperators = {
10
+ "+": {
11
+ title: "加法: a+b",
12
+ description: "a,b: 整数,数字",
13
+ group: OperatorTypeEnum.ARITHMETIC
14
+ },
15
+ "-": {
16
+ title: "减法: a-b",
17
+ description: "a,b: 整数,数字",
18
+ group: OperatorTypeEnum.ARITHMETIC
19
+ },
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.RELATIONSHIP
39
+ },
40
+ ">=": {
41
+ title: "大于等于: a>=b",
42
+ description: "a,b: 整数,数字",
43
+ group: OperatorTypeEnum.RELATIONSHIP
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.LOGIC
69
+ },
70
+ "||": {
71
+ title: "或: a||b",
72
+ description: "a,b: 布尔",
73
+ group: OperatorTypeEnum.LOGIC
74
+ },
75
+ "!": {
76
+ title: "非: !a",
77
+ description: "a: 布尔",
78
+ group: OperatorTypeEnum.LOGIC
79
+ },
80
+ "?": {
81
+ title: "判断: a?b:c",
82
+ description: "若a的值为true,则执行b否则执行c",
83
+ group: OperatorTypeEnum.OTHER,
84
+ label: "?:",
85
+ output: "?:"
86
+ },
87
+ "(": {
88
+ title: "左括号: c-(a+b)",
89
+ description: "优先运算 () 中的内容",
90
+ group: OperatorTypeEnum.OTHER
91
+ },
92
+ ")": {
93
+ title: "右括号: c-(a+b)",
94
+ description: "优先运算 () 中的内容",
95
+ group: OperatorTypeEnum.OTHER
96
+ }
110
97
  };
111
- const numberOperator = ["+", "-", "*", "/", "%", ">", ">=", "<", "<="];
112
- const booleanOperator = ["&&", "||", "!"];
113
- const allOperator = ["==", "!=", "?", ":"];
114
- const returnBolOperator = [
115
- "&&",
116
- "||",
117
- "!",
118
- "==",
119
- "!=",
120
- ">",
121
- ">=",
122
- "<",
123
- "<="
98
+ var numberOperator = [
99
+ "+",
100
+ "-",
101
+ "*",
102
+ "/",
103
+ "%",
104
+ ">",
105
+ ">=",
106
+ "<",
107
+ "<="
124
108
  ];
125
- const getOperatorList = () => {
126
- const children = Object.keys(BuiltOperators).map((i) => {
127
- const { title, description, group, label, output } = BuiltOperators[i];
128
- return {
129
- name: label ?? i,
130
- group,
131
- desc: `${title}
132
- ${description}`,
133
- id: output ?? i
134
- };
135
- });
136
- return [
137
- OperatorTypeEnum.ARITHMETIC,
138
- OperatorTypeEnum.RELATIONSHIP,
139
- OperatorTypeEnum.LOGIC,
140
- OperatorTypeEnum.OTHER
141
- ].map((i) => {
142
- return {
143
- id: i,
144
- name: t(`sys.expression.${i}`),
145
- children: children.filter((g) => g.group === i),
146
- idToChildren: false
147
- };
148
- });
109
+ var booleanOperator = [
110
+ "&&",
111
+ "||",
112
+ "!"
113
+ ];
114
+ var allOperator = [
115
+ "==",
116
+ "!=",
117
+ "?",
118
+ ":"
119
+ ];
120
+ var returnBolOperator = [
121
+ "&&",
122
+ "||",
123
+ "!",
124
+ "==",
125
+ "!=",
126
+ ">",
127
+ ">=",
128
+ "<",
129
+ "<="
130
+ ];
131
+ var getOperatorList = () => {
132
+ const children = Object.keys(BuiltOperators).map((i) => {
133
+ const { title, description, group, label, output } = BuiltOperators[i];
134
+ return {
135
+ name: label ?? i,
136
+ group,
137
+ desc: `${title}\n${description}`,
138
+ id: output ?? i
139
+ };
140
+ });
141
+ return [
142
+ OperatorTypeEnum.ARITHMETIC,
143
+ OperatorTypeEnum.RELATIONSHIP,
144
+ OperatorTypeEnum.LOGIC,
145
+ OperatorTypeEnum.OTHER
146
+ ].map((i) => {
147
+ return {
148
+ id: i,
149
+ name: t(`sys.expression.${i}`),
150
+ children: children.filter((g) => g.group === i),
151
+ idToChildren: false
152
+ };
153
+ });
149
154
  };
150
-
155
+ //#endregion
151
156
  export { BuiltOperators, allOperator, booleanOperator, getOperatorList, numberOperator, returnBolOperator };
@@ -1,81 +1,77 @@
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"
1
+ //#region src/constants/expression-type/FunctionKeys.ts
2
+ var FUNC_KEYS = [
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
+ "LEN",
16
+ "CONCAT",
17
+ "SUBSTRING",
18
+ "SUBSTR",
19
+ "UPPER",
20
+ "LOWER",
21
+ "TRIM",
22
+ "LTRIM",
23
+ "RTRIM",
24
+ "REPEAT",
25
+ "REPLACE",
26
+ "FINDSTR",
27
+ "SEARCHSTR",
28
+ "PARSENUMBER",
29
+ "SPLIT",
30
+ "SUM",
31
+ "REDUCE",
32
+ "MULTIPLICATION",
33
+ "DIVISION",
34
+ "FIXED",
35
+ "ROUND",
36
+ "ROUNDUP",
37
+ "MAX",
38
+ "LARGE",
39
+ "MIN",
40
+ "SMALL",
41
+ "AVERAGE",
42
+ "ABS",
43
+ "MOD",
44
+ "POWER",
45
+ "SQRT",
46
+ "SUMSQ",
47
+ "STDEV",
48
+ "TUPLE",
49
+ "SEQMAP",
50
+ "GET",
51
+ "PUT",
52
+ "PUSH",
53
+ "HEADPUSH",
54
+ "COUNT",
55
+ "TIMESTAMP2DATE",
56
+ "DATE2TIMESTAMP",
57
+ "DATEFORMAT",
58
+ "NOW",
59
+ "TODAY",
60
+ "YEAR",
61
+ "MONTH",
62
+ "DAY",
63
+ "HOUR",
64
+ "MINUTE",
65
+ "WEEKRANGE",
66
+ "LASTWEEKRANGE",
67
+ "MONTHRANGE",
68
+ "LASTMONTHRANGE",
69
+ "YEARRANGE",
70
+ "LASTYEARRANGE",
71
+ "QUARTER",
72
+ "LASTQUARTER",
73
+ "ISDATERANGE",
74
+ "ISTIMERANGE"
79
75
  ];
80
-
76
+ //#endregion
81
77
  export { FUNC_KEYS };
@@ -1,4 +1,11 @@
1
- const CUSTOM_LANGUAGE = "custom-expression";
2
- const CUSTOM_THEME = "custom-expression-theme";
3
-
1
+ //#region src/constants/expression-type/editor.ts
2
+ /**
3
+ * 自定义编辑器语言标识
4
+ */
5
+ var CUSTOM_LANGUAGE = "custom-expression";
6
+ /**
7
+ * 自定义编辑器语言主题标识
8
+ */
9
+ var CUSTOM_THEME = "custom-expression-theme";
10
+ //#endregion
4
11
  export { CUSTOM_LANGUAGE, CUSTOM_THEME };