@gct-paas/core 0.1.4-dev.8 → 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 (86) hide show
  1. package/dist/index.esm.min.mjs +3865 -1995
  2. package/dist/index.min.cjs +383 -11
  3. package/dist/index.system.min.js +383 -11
  4. package/es/constants/expression-type/BuiltOperators.d.ts +20 -0
  5. package/es/constants/expression-type/BuiltOperators.mjs +148 -0
  6. package/es/constants/expression-type/FunctionKeys.d.ts +1 -0
  7. package/es/constants/expression-type/FunctionKeys.mjs +81 -0
  8. package/es/constants/expression-type/editor.d.ts +8 -0
  9. package/es/constants/expression-type/editor.mjs +4 -0
  10. package/es/constants/expression-type/function.d.ts +7 -0
  11. package/es/constants/expression-type/function.mjs +875 -0
  12. package/es/constants/expression-type/index.d.ts +42 -0
  13. package/es/constants/expression-type/index.mjs +120 -0
  14. package/es/constants/expression-type/modeCfg.d.ts +30 -0
  15. package/es/constants/expression-type/modeCfg.mjs +268 -0
  16. package/es/constants/expression-type/variable.d.ts +12 -0
  17. package/es/constants/expression-type/variable.mjs +42 -0
  18. package/es/constants/index.d.ts +1 -0
  19. package/es/constants/index.mjs +5 -0
  20. package/es/create-app-vue.mjs +3 -10
  21. package/es/enums/appEnum.d.ts +5 -0
  22. package/es/enums/appEnum.mjs +6 -1
  23. package/es/enums/designEnum.d.ts +2 -2
  24. package/es/enums/designEnum.mjs +31 -31
  25. package/es/enums/developer-center/index.d.ts +1 -0
  26. package/es/enums/developer-center/integration.d.ts +4 -0
  27. package/es/enums/developer-center/integration.mjs +7 -0
  28. package/es/enums/expressionEnum.d.ts +130 -0
  29. package/es/enums/expressionEnum.mjs +75 -0
  30. package/es/enums/index.d.ts +11 -5
  31. package/es/enums/index.mjs +6 -8
  32. package/es/enums/page-designer/designer.d.ts +6 -0
  33. package/es/enums/page-designer/designer.mjs +6 -1
  34. package/es/enums/page-designer/panel.d.ts +78 -7
  35. package/es/enums/page-designer/panel.mjs +22 -3
  36. package/es/enums/processEnum.d.ts +54 -0
  37. package/es/enums/processEnum.mjs +36 -1
  38. package/es/global/gct/gct.d.ts +9 -13
  39. package/es/global/gct/gct.mjs +15 -20
  40. package/es/hooks/index.d.ts +0 -1
  41. package/es/hooks/use-overlay-scrollbars/use-overlay-scrollbars.d.ts +11 -0
  42. package/es/index.d.ts +1 -7
  43. package/es/index.mjs +26 -11
  44. package/es/interface/index.d.ts +1 -4
  45. package/es/interface/open-util/i-message-util/i-message-util.d.ts +54 -0
  46. package/es/interface/{i-modal → open-util/i-modal}/i-modal.d.ts +9 -10
  47. package/es/interface/{i-modal-data → open-util/i-modal-data}/i-modal-data.d.ts +6 -0
  48. package/es/interface/open-util/i-modal-options/i-modal-options.d.ts +12 -0
  49. package/es/interface/open-util/i-overlay-container/i-overlay-container.d.ts +36 -0
  50. package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +36 -0
  51. package/es/interface/open-util/index.d.ts +7 -0
  52. package/es/locale/index.mjs +1 -0
  53. package/es/modules/user-stores/store/user.store.mjs +9 -2
  54. package/es/register/index.d.ts +0 -7
  55. package/es/setup-app.d.ts +8 -0
  56. package/es/setup-app.mjs +30 -0
  57. package/es/store/global-store.mjs +9 -3
  58. package/es/types/index.d.ts +4 -0
  59. package/es/utils/axios/interceptors.mjs +0 -1
  60. package/es/utils/cache-adapter/cache-adapter.d.ts +2 -0
  61. package/es/utils/cache-adapter/cache-adapter.mjs +59 -0
  62. package/es/utils/index.d.ts +6 -1
  63. package/es/utils/lowcode/utils.d.ts +1 -0
  64. package/es/utils/lowcode/utils.mjs +20 -0
  65. package/es/utils/lowcode/validate.d.ts +13 -0
  66. package/es/utils/lowcode/validate.mjs +29 -0
  67. package/es/utils/namespace/namespace.d.ts +8 -0
  68. package/es/utils/namespace/namespace.mjs +4 -1
  69. package/es/utils/openUtil/index.d.ts +2 -0
  70. package/es/utils/openUtil/modal/modal.d.ts +61 -0
  71. package/es/utils/openUtil/modal/modal.mjs +80 -0
  72. package/es/utils/openUtil/overlay-container/overlay-container.d.ts +100 -0
  73. package/es/utils/openUtil/overlay-container/overlay-container.mjs +139 -0
  74. package/es/utils/tools/tools.mjs +4 -0
  75. package/es/utils/treeHelper/treeHelper.d.ts +7 -0
  76. package/es/utils/treeHelper/treeHelper.mjs +14 -0
  77. package/es/utils/uuid/uuid.d.ts +3 -0
  78. package/es/utils/uuid/uuid.mjs +48 -0
  79. package/es/utils/value-helper/value-helper.mjs +2 -0
  80. package/es/utils/width-install/width-install.mjs +4 -0
  81. package/package.json +4 -3
  82. package/es/hooks/use-namespace/use-namespace.d.ts +0 -9
  83. package/es/hooks/use-namespace/use-namespace.mjs +0 -18
  84. package/es/interface/i-message-util/i-message-util.d.ts +0 -78
  85. package/es/register/render-register/render-register.d.ts +0 -59
  86. package/es/register/render-register/render-register.mjs +0 -63
@@ -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;