@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.
- package/dist/index.esm.min.js +21679 -0
- package/es/constants/core.mjs +5 -4
- package/es/constants/default-date-type/default-date-type.mjs +73 -21
- package/es/constants/editor-register/editor-register.mjs +17 -5
- package/es/constants/expression-type/BuiltOperators.mjs +152 -147
- package/es/constants/expression-type/FunctionKeys.mjs +75 -79
- package/es/constants/expression-type/editor.mjs +10 -3
- package/es/constants/expression-type/function.mjs +602 -613
- package/es/constants/expression-type/index.mjs +111 -113
- package/es/constants/expression-type/modeCfg.mjs +256 -263
- package/es/constants/expression-type/variable.mjs +43 -39
- package/es/constants/form-container-type/form-container-type.mjs +17 -5
- package/es/constants/index.mjs +30 -10
- package/es/constants/page-designer/model.mjs +15 -5
- package/es/create-app-vue.mjs +15 -9
- package/es/enums/app-designer/index.d.ts +19 -0
- package/es/enums/app-designer/index.mjs +131 -63
- package/es/enums/appEnum.mjs +681 -360
- package/es/enums/appStateEnum.mjs +17 -10
- package/es/enums/authActionEnum.mjs +63 -51
- package/es/enums/breakpointEnum.mjs +27 -26
- package/es/enums/cacheEnum.mjs +22 -21
- package/es/enums/designEnum.mjs +110 -71
- package/es/enums/developer-center/integration.mjs +7 -6
- package/es/enums/exceptionEnum.mjs +21 -17
- package/es/enums/expressionEnum.d.ts +1 -1
- package/es/enums/expressionEnum.mjs +81 -74
- package/es/enums/globalEnum.mjs +59 -36
- package/es/enums/httpEnum.mjs +71 -61
- package/es/enums/index.mjs +43 -14
- package/es/enums/menuEnum.mjs +42 -38
- package/es/enums/page-designer/designer.mjs +403 -407
- package/es/enums/page-designer/index.mjs +4 -0
- package/es/enums/page-designer/panel.mjs +341 -213
- package/es/enums/page-designer/toolkit.mjs +13 -12
- package/es/enums/page-designer/widget.mjs +425 -338
- package/es/enums/pageEnum.mjs +14 -13
- package/es/enums/plugin-enum.mjs +23 -7
- package/es/enums/processEnum.mjs +95 -60
- package/es/enums/roleEnum.mjs +7 -6
- package/es/enums/sizeEnum.d.ts +18 -0
- package/es/enums/sizeEnum.mjs +28 -8
- package/es/global/gct/gct.mjs +84 -96
- package/es/global/index.mjs +1 -0
- package/es/hooks/index.mjs +4 -0
- package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
- package/es/hooks/use-modal/use-modal.mjs +16 -10
- package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +43 -23
- package/es/hooks/useCopyToClipboard.mjs +50 -50
- package/es/index.mjs +122 -114
- package/es/locale/index.mjs +43 -57
- package/es/modules/env-manager/env-manager.const.mjs +16 -8
- package/es/modules/env-manager/env-manager.interface.mjs +14 -7
- package/es/modules/env-manager/env-manager.mjs +104 -107
- package/es/modules/error-handler/error-handler.const.mjs +11 -16
- package/es/modules/error-handler/error-strategy.mjs +199 -175
- package/es/modules/error-handler/index.mjs +120 -106
- package/es/modules/mqtt/constants/mqtt.const.mjs +21 -24
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +23 -9
- package/es/modules/mqtt/index.mjs +4 -0
- package/es/modules/mqtt/mqtt-client.mjs +228 -261
- package/es/modules/mqtt/mqtt-manager.mjs +117 -77
- package/es/modules/platform-config/constants/index.mjs +4 -0
- package/es/modules/platform-config/constants/login.const.mjs +48 -45
- package/es/modules/platform-config/constants/org.const.mjs +57 -52
- package/es/modules/platform-config/constants/theme.const.mjs +11 -4
- package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
- package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
- package/es/modules/platform-config/enums/login.enum.mjs +29 -15
- package/es/modules/platform-config/enums/platform.enum.mjs +16 -13
- package/es/modules/platform-config/index.mjs +9 -0
- package/es/modules/platform-config/store.mjs +68 -79
- package/es/modules/platform-config/useBasicSetting.mjs +47 -35
- package/es/modules/platform-config/useDeploySetting.mjs +29 -21
- package/es/modules/platform-config/useLoginSetting.mjs +151 -173
- package/es/modules/platform-config/useOrgSetting.mjs +63 -62
- package/es/modules/platform-config/useProjectSetting.mjs +14 -6
- package/es/modules/platform-config/useSecuritySetting.mjs +68 -56
- package/es/modules/platform-config/useThemeSetting.mjs +78 -59
- package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
- package/es/modules/user-stores/index.mjs +3 -0
- package/es/modules/user-stores/store/permission.store.mjs +27 -36
- package/es/modules/user-stores/store/tenant.store.mjs +20 -22
- package/es/modules/user-stores/store/user.store.mjs +94 -117
- package/es/router/index.mjs +25 -28
- package/es/setup-app.mjs +23 -39
- package/es/state/global-pinia-state/global-pinia-state.mjs +49 -71
- package/es/state/index.mjs +1 -0
- package/es/store/global-store.mjs +50 -72
- package/es/store/index.mjs +25 -19
- package/es/types/index.d.ts +7 -0
- package/es/utils/axios/interceptors.mjs +21 -17
- package/es/utils/cache-adapter/cache-adapter.mjs +61 -56
- package/es/utils/design/design.mjs +18 -12
- package/es/utils/deviceFingerprint.mjs +74 -63
- package/es/utils/dictionary/dictionary.mjs +142 -145
- package/es/utils/file/base64Conver.mjs +35 -30
- package/es/utils/file/download.mjs +94 -98
- package/es/utils/file/parser.d.ts +3 -0
- package/es/utils/file/parser.mjs +29 -0
- package/es/utils/i18n/index.mjs +14 -3
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +31 -0
- package/es/utils/is-sort-filed/is-sort-filed.mjs +42 -37
- package/es/utils/linked-list/linked-list.mjs +115 -118
- package/es/utils/linked-node/linked-node.mjs +41 -31
- package/es/utils/lowcode/utils.mjs +13 -18
- package/es/utils/lowcode/validate.mjs +20 -26
- package/es/utils/mitt/mitt.mjs +4 -4
- package/es/utils/model-loader/model-loader.mjs +280 -325
- package/es/utils/namespace/namespace.mjs +178 -164
- package/es/utils/openUtil/index.mjs +2 -0
- package/es/utils/openUtil/modal/modal.mjs +72 -79
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +144 -138
- package/es/utils/permission.mjs +33 -37
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +46 -42
- package/es/utils/style/index.mjs +94 -138
- package/es/utils/tools/tools.mjs +86 -54
- package/es/utils/treeHelper/treeHelper.mjs +205 -233
- package/es/utils/uploader/uploader.mjs +81 -115
- package/es/utils/useUUid.mjs +79 -87
- package/es/utils/util.mjs +55 -35
- package/es/utils/uuid/uuid.d.ts +1 -0
- package/es/utils/uuid/uuid.mjs +36 -43
- package/es/utils/validate.mjs +15 -19
- package/es/utils/value-helper/value-helper.mjs +113 -98
- package/package.json +12 -13
- package/dist/index.esm.min.mjs +0 -18322
- package/dist/index.min.cjs +0 -393
- package/dist/index.system.min.js +0 -393
|
@@ -1,120 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// 'MIN',
|
|
50
|
-
// 'SUM'
|
|
1
|
+
import "./modeCfg.mjs";
|
|
2
|
+
import "./BuiltOperators.mjs";
|
|
3
|
+
import "./editor.mjs";
|
|
4
|
+
import "./function.mjs";
|
|
5
|
+
import "./FunctionKeys.mjs";
|
|
6
|
+
import "./variable.mjs";
|
|
7
|
+
//#region src/constants/expression-type/index.ts
|
|
8
|
+
var NUMBER_TYPE = "number";
|
|
9
|
+
var STRING_TYPE = "string";
|
|
10
|
+
var BOOLEAN_TYPE = "boolean";
|
|
11
|
+
var OBJECT_TYPE = "object";
|
|
12
|
+
var ARRAY_TYPE = "array";
|
|
13
|
+
var FUN_NUM_TYPE = [
|
|
14
|
+
"SUM",
|
|
15
|
+
"REDUCE",
|
|
16
|
+
"MULTIPLICATION",
|
|
17
|
+
"DIVISION",
|
|
18
|
+
"FIXED",
|
|
19
|
+
"ROUND",
|
|
20
|
+
"ROUNDUP",
|
|
21
|
+
"MAX",
|
|
22
|
+
"LARGE",
|
|
23
|
+
"MIN",
|
|
24
|
+
"SMALL",
|
|
25
|
+
"AVERAGE",
|
|
26
|
+
"ABS",
|
|
27
|
+
"MOD",
|
|
28
|
+
"POWER",
|
|
29
|
+
"SQRT",
|
|
30
|
+
"LEN",
|
|
31
|
+
"DATE2TIMESTAMP",
|
|
32
|
+
"SUMSQ",
|
|
33
|
+
"STDEV",
|
|
34
|
+
"COUNT",
|
|
35
|
+
"TOINT",
|
|
36
|
+
"FIND",
|
|
37
|
+
"YEAR",
|
|
38
|
+
"WEEK",
|
|
39
|
+
"DAY",
|
|
40
|
+
"MONTH",
|
|
41
|
+
"QUARTER",
|
|
42
|
+
"TODOUBLE",
|
|
43
|
+
"DATEDIFF",
|
|
44
|
+
"AVG",
|
|
45
|
+
"GREATEST",
|
|
46
|
+
"LEAST",
|
|
47
|
+
"COUNTD",
|
|
48
|
+
"MEDIAN"
|
|
51
49
|
];
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
50
|
+
var FUN_STR_TYPE = [
|
|
51
|
+
"CONCAT",
|
|
52
|
+
"SUBSTRING",
|
|
53
|
+
"SUBSTR",
|
|
54
|
+
"UPPER",
|
|
55
|
+
"LOWER",
|
|
56
|
+
"TRIM",
|
|
57
|
+
"LTRIM",
|
|
58
|
+
"RTRIM",
|
|
59
|
+
"REPEAT",
|
|
60
|
+
"REPLACE",
|
|
61
|
+
"FINDSTR",
|
|
62
|
+
"SEARCHSTR",
|
|
63
|
+
"PARSENUMBER",
|
|
64
|
+
"SPLIT"
|
|
67
65
|
];
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
var FUN_BOL_TYPE = [
|
|
67
|
+
"IF",
|
|
68
|
+
"ISEMPTY",
|
|
69
|
+
"ISNULL",
|
|
70
|
+
"ISUNDEFINED",
|
|
71
|
+
"AND",
|
|
72
|
+
"OR",
|
|
73
|
+
"EQ",
|
|
74
|
+
"NE",
|
|
75
|
+
"LE",
|
|
76
|
+
"LT",
|
|
77
|
+
"GE",
|
|
78
|
+
"GT",
|
|
79
|
+
"CONTAINS"
|
|
82
80
|
];
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
var FUN_OBJ_OR_ARR_TYPE = [
|
|
82
|
+
"TUPLE",
|
|
83
|
+
"SEQMAP",
|
|
84
|
+
"GET",
|
|
85
|
+
"PUT",
|
|
86
|
+
"PUSH",
|
|
87
|
+
"HEADPUSH"
|
|
90
88
|
];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
89
|
+
var RETURN_TYPE_MAP = {
|
|
90
|
+
string: "字符串",
|
|
91
|
+
number: "数值",
|
|
92
|
+
boolean: "布尔",
|
|
93
|
+
date: "日期",
|
|
94
|
+
time: "时间",
|
|
95
|
+
datetime: "日期时间",
|
|
96
|
+
array: "数组",
|
|
97
|
+
object: "对象",
|
|
98
|
+
null: "空值",
|
|
99
|
+
unknown: "未知",
|
|
100
|
+
text: "文本",
|
|
101
|
+
long_text: "长文本",
|
|
102
|
+
integer: "整数",
|
|
103
|
+
long: "长整数",
|
|
104
|
+
decimal: "小数"
|
|
107
105
|
};
|
|
108
|
-
var WinMsgTypeEnum = /* @__PURE__ */ (
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
106
|
+
var WinMsgTypeEnum = /* @__PURE__ */ function(WinMsgTypeEnum) {
|
|
107
|
+
WinMsgTypeEnum["EXPRESSION"] = "expression-language-service";
|
|
108
|
+
return WinMsgTypeEnum;
|
|
109
|
+
}({});
|
|
110
|
+
var operator2FuncMap = {
|
|
111
|
+
"+": "ADD",
|
|
112
|
+
"-": "REDUCE",
|
|
113
|
+
"*": "MULTIPLICATION",
|
|
114
|
+
"/": "DIVISION",
|
|
115
|
+
"%": "MOD"
|
|
118
116
|
};
|
|
119
|
-
|
|
117
|
+
//#endregion
|
|
120
118
|
export { ARRAY_TYPE, BOOLEAN_TYPE, FUN_BOL_TYPE, FUN_NUM_TYPE, FUN_OBJ_OR_ARR_TYPE, FUN_STR_TYPE, NUMBER_TYPE, OBJECT_TYPE, RETURN_TYPE_MAP, STRING_TYPE, WinMsgTypeEnum, operator2FuncMap };
|