@gct-paas/core 0.1.4-dev.11 → 0.1.4-dev.13
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 +4522 -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.d.ts +1 -0
- package/es/constants/index.mjs +31 -10
- package/es/constants/page-designer/model.mjs +15 -5
- package/es/constants/page-designer/regex.d.ts +2 -0
- package/es/constants/page-designer/regex.mjs +5 -0
- 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 +44 -14
- package/es/enums/menuEnum.mjs +42 -38
- package/es/enums/page-designer/designer.mjs +403 -407
- package/es/enums/page-designer/index.d.ts +1 -0
- package/es/enums/page-designer/index.mjs +5 -0
- package/es/enums/page-designer/layout.d.ts +12 -0
- package/es/enums/page-designer/layout.mjs +17 -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 +125 -114
- package/es/interface/i-pinia-state/i-global-state.d.ts +0 -11
- package/es/locale/index.mjs +50 -57
- package/es/modules/env-manager/env-manager.const.mjs +16 -8
- package/es/modules/env-manager/env-manager.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.d.ts +2 -0
- package/es/modules/env-manager/env-manager.interface.mjs +14 -7
- package/es/modules/env-manager/env-manager.mjs +108 -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.d.ts +0 -6
- package/es/state/global-pinia-state/global-pinia-state.mjs +43 -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/css-loader/css-loader.d.ts +36 -0
- package/es/utils/css-loader/css-loader.mjs +82 -0
- package/es/utils/design/design.mjs +18 -12
- package/es/utils/deviceFingerprint.mjs +77 -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 +3 -1
- package/es/utils/index.mjs +32 -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 +2 -0
- package/es/utils/uuid/uuid.mjs +33 -43
- package/es/utils/validate.mjs +15 -19
- package/es/utils/value-helper/value-helper.mjs +113 -98
- package/package.json +9 -18
- package/dist/index.esm.min.mjs +0 -18322
- package/dist/index.min.cjs +0 -393
- package/dist/index.system.min.js +0 -393
|
@@ -0,0 +1,4522 @@
|
|
|
1
|
+
import { createPinia as e, defineStore as t, setActivePinia as n } from "pinia";
|
|
2
|
+
import r from "qs";
|
|
3
|
+
import { cloneDeep as i, has as a, intersection as o, isEmpty as s, isEqual as c, mergeWith as l, omit as u, unionWith as d } from "lodash-es";
|
|
4
|
+
import { computed as f, createApp as p, h as m, inject as h, isRef as g, nextTick as _, onMounted as v, onUnmounted as y, reactive as b, ref as x, shallowRef as S, unref as ee, watch as te } from "vue";
|
|
5
|
+
import { AxiosHeaders as ne } from "axios";
|
|
6
|
+
import re from "dayjs";
|
|
7
|
+
import ie from "mqtt";
|
|
8
|
+
import { createI18n as ae } from "vue-i18n";
|
|
9
|
+
import { HttpUtil as oe, api as se } from "@gct-paas/api";
|
|
10
|
+
import { createRouter as ce, createWebHashHistory as le } from "vue-router";
|
|
11
|
+
//#region \0rolldown/runtime.js
|
|
12
|
+
var ue = Object.create, de = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, pe = Object.getOwnPropertyNames, me = Object.getPrototypeOf, he = Object.prototype.hasOwnProperty, ge = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), _e = (e, t, n, r) => {
|
|
13
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = pe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !he.call(e, s) && s !== n && de(e, s, {
|
|
14
|
+
get: ((e) => t[e]).bind(null, s),
|
|
15
|
+
enumerable: !(r = fe(t, s)) || r.enumerable
|
|
16
|
+
});
|
|
17
|
+
return e;
|
|
18
|
+
}, ve = (e, t, n) => (n = e == null ? {} : ue(me(e)), _e(t || !e || !e.__esModule ? de(n, "default", {
|
|
19
|
+
value: e,
|
|
20
|
+
enumerable: !0
|
|
21
|
+
}) : n, e)), ye = 48, be = 80, xe = /* @__PURE__ */ function(e) {
|
|
22
|
+
return e.FULL = "full", e.FIXED = "fixed", e;
|
|
23
|
+
}({}), Se = /* @__PURE__ */ function(e) {
|
|
24
|
+
return e.DARK = "dark", e.LIGHT = "light", e;
|
|
25
|
+
}({}), Ce = /* @__PURE__ */ function(e) {
|
|
26
|
+
return e.AUTO = "auto", e.HEADER = "header", e.FIXED = "fixed", e;
|
|
27
|
+
}({}), we = /* @__PURE__ */ function(e) {
|
|
28
|
+
return e[e.ROUTE_JUMP = 0] = "ROUTE_JUMP", e[e.PAGE_COVERAGE = 1] = "PAGE_COVERAGE", e;
|
|
29
|
+
}({}), Te = /* @__PURE__ */ function(e) {
|
|
30
|
+
return e.ROLE = "ROLE", e.BACK = "BACK", e.ROUTE_MAPPING = "ROUTE_MAPPING", e.PLATFORM_ROLE = "PLATFORM_ROLE", e;
|
|
31
|
+
}({}), Ee = /* @__PURE__ */ function(e) {
|
|
32
|
+
return e.ZOOM_FADE = "zoom-fade", e.ZOOM_OUT = "zoom-out", e.FADE_SIDE = "fade-slide", e.FADE = "fade", e.FADE_BOTTOM = "fade-bottom", e.FADE_SCALE = "fade-scale", e;
|
|
33
|
+
}({}), De = /* @__PURE__ */ function(e) {
|
|
34
|
+
return e.PORTAL = "portal", e.BACKEND_MANAGEMENT = "backend-management", e.DEVELOPER_CENTER = "developer-center", e.TENANT_CENTER = "tenant-center", e.APP_DESIGNER = "app-designer", e.PAGE_DESIGNER = "page-designer", e.WEB_RENDER = "web-render", e.MOBILE_RENDER = "mobile-render", e;
|
|
35
|
+
}({}), Oe = /* @__PURE__ */ function(e) {
|
|
36
|
+
return e.ALL = "field_type_all", e.BASIC = "field_type_basic", e.LOGIC = "field_type_logic", e.TRACE = "field_type_trace", e;
|
|
37
|
+
}({}), C = /* @__PURE__ */ function(e) {
|
|
38
|
+
return e.PRIMARY_KEY = "primary_key", e.ASSOCIATED_PRIMARY_KEY = "associated_primary_key", e.TEXT = "text", e.LONG_TEXT = "long_text", e.INTEGER = "integer", e.LONG = "long", e.DOUBLE = "double", e.DECIMAL = "decimal", e.BOOLEAN = "boolean", e.DATE = "date", e.TIME = "time", e.DATE_TIME = "date_time", e.IMAGE = "image", e.ATTACHMENT = "attachment", e.SERIAL = "serial_number", e.MASTERSLAVE = "master_slave", e.USER = "user", e.USER_MULTI = "user_multi", e.ORG = "org", e.ORG_MULTI = "org_multi", e.ENUM = "enum", e.ENUM_MULTI = "enum_multi", e.OPTION = "option", e.OPTION_MULTI = "option_multi", e.REF = "ref", e.REF_MULTI = "ref_multi", e.RDO_REF = "rdo_ref", e.EXPRESSION = "expression", e.EXPRESSION_CONDITION = "expression_condition", e.AGG = "agg", e.ESOP = "esop", e.TRANSACTION = "transaction", e.LABEL_TEMPLATE = "label_template", e.LABEL_TEMPLATE_REF = "label_template_ref", e.DOCUMENT_TEMPLATE = "document_template", e.SERIALRULE = "serial_number_rule", e.PRINTER = "printer", e.MESSAGE_TMPL = "message_tmpl", e.RANGE_USER = "range_user", e.SIGNATURE = "electronic_signature", e.ONLINE_FORM_TEMPLATE = "online_form_tmpl", e.E_DHR_TEMPLATE = "edhr_tmpl", e.ONLINE_FORM = "online_form", e.DATA_TABLE_FORMULA = "data_table_formula", e.READONLYCMP = "readonlycmp", e.MATERIAL_NO = "material_no", e.PRODUCT = "product", e.DEVICE = "device", e.Biz_Process = "biz_process", e.TENANT = "tenant", e;
|
|
39
|
+
}({}), ke = /* @__PURE__ */ function(e) {
|
|
40
|
+
return e.TEXT = "text", e.LONG_TEXT = "long_text", e.INTEGER = "integer", e.LONG = "long", e.DOUBLE = "double", e.DECIMAL = "decimal", e.BOOLEAN = "boolean", e.DATE = "date", e.TIME = "time", e.DATE_TIME = "date_time", e;
|
|
41
|
+
}({}), Ae = /* @__PURE__ */ function(e) {
|
|
42
|
+
return e.IMAGE = "image", e.ATTACHMENT = "attachment", e.SERIAL = "serial_number", e.MASTERSLAVE = "master_slave", e.USER = "user", e.USER_MULTI = "user_multi", e.ORG = "org", e.ORG_MULTI = "org_multi", e.ENUM = "enum", e.ENUM_MULTI = "enum_multi", e.OPTION = "option", e.OPTION_MULTI = "option_multi", e.REF = "ref", e.REF_MULTI = "ref_multi", e.RDO_REF = "rdo_ref", e.EXPRESSION = "expression", e.EXPRESSION_CONDITION = "expression_condition", e.AGG = "agg", e.ESOP = "esop", e.TRANSACTION = "transaction", e.LABEL_TEMPLATE = "label_template", e.LABEL_TEMPLATE_REF = "label_template_ref", e.DOCUMENT_TEMPLATE = "document_template", e.SERIALRULE = "serial_number_rule", e.PRINTER = "printer", e.MESSAGE_TMPL = "message_tmpl", e.RANGE_USER = "range_user", e.SIGNATURE = "electronic_signature", e.ONLINE_FORM_TEMPLATE = "online_form_tmpl", e.E_DHR_TEMPLATE = "edhr_tmpl", e.ONLINE_FORM = "online_form", e.Biz_Process = "biz_process", e;
|
|
43
|
+
}({}), je = /* @__PURE__ */ function(e) {
|
|
44
|
+
return e.MATERIAL_NO = "material_no", e.PRODUCT = "product", e.DEVICE = "device", e;
|
|
45
|
+
}({}), Me = {
|
|
46
|
+
[C.ATTACHMENT]: "string",
|
|
47
|
+
[C.BOOLEAN]: "boolean",
|
|
48
|
+
[C.DATE]: "string",
|
|
49
|
+
[C.DATE_TIME]: "string",
|
|
50
|
+
[C.DECIMAL]: "number",
|
|
51
|
+
[C.DOUBLE]: "number",
|
|
52
|
+
[C.ENUM]: "string",
|
|
53
|
+
[C.ENUM_MULTI]: "string",
|
|
54
|
+
[C.IMAGE]: "string",
|
|
55
|
+
[C.INTEGER]: "number",
|
|
56
|
+
[C.LONG]: "number",
|
|
57
|
+
[C.LONG_TEXT]: "string",
|
|
58
|
+
[C.MASTERSLAVE]: "string",
|
|
59
|
+
[C.ORG]: "string",
|
|
60
|
+
[C.ORG_MULTI]: "string",
|
|
61
|
+
[C.RDO_REF]: "string",
|
|
62
|
+
[C.REF]: "string",
|
|
63
|
+
[C.REF_MULTI]: "string",
|
|
64
|
+
[C.SERIAL]: "string",
|
|
65
|
+
[C.TEXT]: "string",
|
|
66
|
+
[C.TIME]: "string",
|
|
67
|
+
[C.USER]: "string",
|
|
68
|
+
[C.USER_MULTI]: "string",
|
|
69
|
+
[C.EXPRESSION]: "string",
|
|
70
|
+
[C.EXPRESSION_CONDITION]: "string",
|
|
71
|
+
[C.AGG]: "number",
|
|
72
|
+
[C.ESOP]: "string",
|
|
73
|
+
[C.SERIALRULE]: "string",
|
|
74
|
+
[C.LABEL_TEMPLATE]: "string",
|
|
75
|
+
[C.LABEL_TEMPLATE_REF]: "string",
|
|
76
|
+
[C.DOCUMENT_TEMPLATE]: "string",
|
|
77
|
+
[C.TRANSACTION]: "string",
|
|
78
|
+
[C.PRINTER]: "string",
|
|
79
|
+
[C.MESSAGE_TMPL]: "string",
|
|
80
|
+
[C.RANGE_USER]: "string",
|
|
81
|
+
[C.PRIMARY_KEY]: "string",
|
|
82
|
+
[C.ASSOCIATED_PRIMARY_KEY]: "string",
|
|
83
|
+
[C.READONLYCMP]: "string",
|
|
84
|
+
[C.MATERIAL_NO]: "string",
|
|
85
|
+
[C.PRODUCT]: "string",
|
|
86
|
+
[C.DEVICE]: "string",
|
|
87
|
+
[C.OPTION]: "string",
|
|
88
|
+
[C.OPTION_MULTI]: "string",
|
|
89
|
+
[C.SIGNATURE]: "string",
|
|
90
|
+
[C.ONLINE_FORM_TEMPLATE]: "string",
|
|
91
|
+
[C.E_DHR_TEMPLATE]: "string",
|
|
92
|
+
[C.ONLINE_FORM]: "string",
|
|
93
|
+
[C.DATA_TABLE_FORMULA]: "string",
|
|
94
|
+
[C.Biz_Process]: "string",
|
|
95
|
+
[C.TENANT]: "string"
|
|
96
|
+
}, Ne = /* @__PURE__ */ function(e) {
|
|
97
|
+
return e.SYSTEM = "SYSTEM", e.USER_DEFINED = "USER_DEFINED", e.BUILTIN = "BUILTIN", e.CUSTOM = "CUSTOM", e.PROCESS = "PROCESS", e;
|
|
98
|
+
}({}), Pe = /* @__PURE__ */ function(e) {
|
|
99
|
+
return e.CATALOG = "CATALOG", e.STANDARD = "STANDARD", e.LINK = "LINK", e;
|
|
100
|
+
}({}), Fe = /* @__PURE__ */ function(e) {
|
|
101
|
+
return e.PRESENT = "PRESENT", e.IFRAME = "IFRAME", e.NEW = "NEW", e;
|
|
102
|
+
}({}), Ie = /* @__PURE__ */ function(e) {
|
|
103
|
+
return e.MaterialFormField = "formField", e.MaterialTableField = "tableField", e.MaterialEmbedTableField = "embedTableField", e.MaterialSubTableField = "subTableField", e.MaterialSubTableModalField = "subTableModalField", e.cardListFormField = "cardList", e.MaterialTableSelectField = "tableSelectField", e.DescriptionsFormField = "descriptions", e;
|
|
104
|
+
}({}), Le = {
|
|
105
|
+
[C.PRIMARY_KEY]: "icon-id",
|
|
106
|
+
[C.TEXT]: "icon-wenben1",
|
|
107
|
+
[C.LONG_TEXT]: "icon-changwenben",
|
|
108
|
+
[C.INTEGER]: "icon-zhengshu",
|
|
109
|
+
[C.LONG]: "icon-changzhengshu",
|
|
110
|
+
[C.DECIMAL]: "icon-jingduxiaoshu1",
|
|
111
|
+
[C.DOUBLE]: "icon-xiaoshu",
|
|
112
|
+
[C.BOOLEAN]: "icon-buer",
|
|
113
|
+
[C.DATE]: "icon-riqi1",
|
|
114
|
+
[C.TIME]: "icon-shijian1",
|
|
115
|
+
[C.DATE_TIME]: "icon-riqishijian",
|
|
116
|
+
[C.USER]: "icon-renyuanguanlian",
|
|
117
|
+
[C.ORG]: "icon-bumenguanlian",
|
|
118
|
+
[C.USER_MULTI]: "icon-renyuanduoxuan",
|
|
119
|
+
[C.ORG_MULTI]: "icon-bumenduoxuan",
|
|
120
|
+
[C.IMAGE]: "icon-tupian1",
|
|
121
|
+
[C.ATTACHMENT]: "icon-fujian1",
|
|
122
|
+
[C.SERIAL]: "icon-xuliehao",
|
|
123
|
+
[C.MASTERSLAVE]: "icon-zhuziguanlian",
|
|
124
|
+
[C.ENUM]: "icon-meijuguanlian",
|
|
125
|
+
[C.REF]: "icon-moxingguanlian",
|
|
126
|
+
[C.RDO_REF]: "icon-RDOmoxingguanlian",
|
|
127
|
+
[C.ENUM_MULTI]: "icon-meijuguanlianduoxuan",
|
|
128
|
+
[C.OPTION]: "icon-meijuguanlian",
|
|
129
|
+
[C.OPTION_MULTI]: "icon-meijuguanlianduoxuan",
|
|
130
|
+
[C.REF_MULTI]: "icon-moxingduoxuan",
|
|
131
|
+
[C.EXPRESSION]: "icon-gongshiziduan",
|
|
132
|
+
[C.EXPRESSION_CONDITION]: "icon-gongshiziduan",
|
|
133
|
+
[C.AGG]: "icon-huizong",
|
|
134
|
+
[C.ESOP]: "icon-E-SOP",
|
|
135
|
+
[C.TRANSACTION]: "icon-ziduan1",
|
|
136
|
+
[C.SERIALRULE]: "icon-ziduan1",
|
|
137
|
+
[C.PRINTER]: "icon-dayinanniu",
|
|
138
|
+
[C.MESSAGE_TMPL]: "icon-xiaoximoban",
|
|
139
|
+
[C.RANGE_USER]: "icon-fanweirenyuan",
|
|
140
|
+
[C.LABEL_TEMPLATE]: "icon-biaoqianmoban",
|
|
141
|
+
[C.LABEL_TEMPLATE_REF]: "icon-biaoqianmoban",
|
|
142
|
+
[C.DOCUMENT_TEMPLATE]: "icon-danjumoban",
|
|
143
|
+
[C.SIGNATURE]: "icon-qianming1",
|
|
144
|
+
[C.ONLINE_FORM_TEMPLATE]: "icon-zaixianbiaodanmoban",
|
|
145
|
+
[C.E_DHR_TEMPLATE]: "icon-edhr",
|
|
146
|
+
[C.ONLINE_FORM]: "icon-zaixianbiaodan",
|
|
147
|
+
[C.DATA_TABLE_FORMULA]: "icon-gongshiziduan",
|
|
148
|
+
[C.READONLYCMP]: "icon-wenben1",
|
|
149
|
+
[C.TENANT]: "icon-id",
|
|
150
|
+
[C.ASSOCIATED_PRIMARY_KEY]: "icon-id",
|
|
151
|
+
[C.MATERIAL_NO]: "icon-field-material-no",
|
|
152
|
+
[C.PRODUCT]: "icon-field-product",
|
|
153
|
+
[C.DEVICE]: "icon-field-device",
|
|
154
|
+
[C.Biz_Process]: "icon-jichengzhongxin1"
|
|
155
|
+
}, Re = /* @__PURE__ */ function(e) {
|
|
156
|
+
return e.COUNT = "COUNT", e.SUM = "SUM", e.MAX = "MAX", e.MIN = "MIN", e.AVG = "AVG", e;
|
|
157
|
+
}({}), ze = /* @__PURE__ */ function(e) {
|
|
158
|
+
return e.SPEC = "spec", e.SUB_WORKFLOW = "sub_workflow", e;
|
|
159
|
+
}({}), Be = /* @__PURE__ */ function(e) {
|
|
160
|
+
return e.None = "none", e.SingleChoice = "gct_radio", e.MultipleChoice = "checkbox", e;
|
|
161
|
+
}({}), Ve = /* @__PURE__ */ function(e) {
|
|
162
|
+
return e.NONE = "NONE", e.GLOBAL = "GLOBAL", e.LEVEL = "LEVEL", e.LOGIC = "LOGIC", e;
|
|
163
|
+
}({}), He = {
|
|
164
|
+
ALL: "all",
|
|
165
|
+
UNREAD: "unread"
|
|
166
|
+
}, Ue = {
|
|
167
|
+
TEST: "myTestApp",
|
|
168
|
+
QUICK: "quickAccess",
|
|
169
|
+
MY: "myApp"
|
|
170
|
+
}, We = /* @__PURE__ */ function(e) {
|
|
171
|
+
return e.PROFILE = "profile", e.GENDER = "gender", e.ENTERPRISE = "enterprise", e;
|
|
172
|
+
}({}), Ge = /* @__PURE__ */ function(e) {
|
|
173
|
+
return e.FEMALE = "female", e.MALE = "male", e.PRIVARY = "privary", e;
|
|
174
|
+
}({}), Ke = /* @__PURE__ */ function(e) {
|
|
175
|
+
return e.TODO = "todo", e.APPLICATION = "application", e.DONE = "done", e.DELEGATE = "delegate", e;
|
|
176
|
+
}({}), qe = /* @__PURE__ */ function(e) {
|
|
177
|
+
return e.HOVER = "hover", e.CLICK = "click", e;
|
|
178
|
+
}({}), Je = [
|
|
179
|
+
C.TEXT,
|
|
180
|
+
C.LONG_TEXT,
|
|
181
|
+
C.LONG,
|
|
182
|
+
C.INTEGER,
|
|
183
|
+
C.DECIMAL,
|
|
184
|
+
C.DOUBLE,
|
|
185
|
+
C.SERIAL
|
|
186
|
+
], Ye = /* @__PURE__ */ function(e) {
|
|
187
|
+
return e.SCRIPT_SERVICE = "SCRIPT_SERVICE", e.SQL_SERVICE = "SQL_SERVICE", e.SO_SERVICE = "SO_SERVICE", e.BUILTIN_SERVICE = "SYS_BUILTIN", e;
|
|
188
|
+
}({}), Xe = /* @__PURE__ */ function(e) {
|
|
189
|
+
return e.ENTITY = "entity", e.DATA = "data", e.VIEW = "view", e.FORM = "form", e.DATA_SET = "dataSet", e;
|
|
190
|
+
}({}), Ze = /* @__PURE__ */ function(e) {
|
|
191
|
+
return e.BASE = "BASE", e.NDO = "NDO", e.RDO = "RDO", e.TREE = "TREE", e.DYNAMIC_FORM = "DYNAMIC_FORM", e.WORKFLOW = "WORKFLOW", e.TRANSACTION = "TRANSACTION", e;
|
|
192
|
+
}({}), Qe = /* @__PURE__ */ function(e) {
|
|
193
|
+
return e.NONE = "NONE", e.FIXED = "FIXED", e.SYS_VAR = "SYS_VAR", e;
|
|
194
|
+
}({}), $e = /* @__PURE__ */ function(e) {
|
|
195
|
+
return e.NULL = "", e.SYS_DATE = "SYS_DATE", e.SYS_TIME = "SYS_TIME", e.SYS_DATE_TIME = "SYS_DATE_TIME", e.CURRENT_USER = "CURRENT_USER", e.CURRENT_ORG = "CURRENT_ORG", e;
|
|
196
|
+
}({}), et = /* @__PURE__ */ function(e) {
|
|
197
|
+
return e.EVENT = "event", e.BUSINESSSERVICE = "businessService", e.TIMER = "timer", e;
|
|
198
|
+
}({}), tt = /* @__PURE__ */ function(e) {
|
|
199
|
+
return e.SHOW_BOX_SCROLL = "showBoxScroll", e.SHOW_ALL_DATA = "showAllData", e;
|
|
200
|
+
}({}), nt = /* @__PURE__ */ function(e) {
|
|
201
|
+
return e.FIXED = "fixed", e.PLACEHOLDER = "placeholder", e.DATE = "date", e.LETTER = "letter", e.INCREASE = "increase", e;
|
|
202
|
+
}({}), rt = /* @__PURE__ */ function(e) {
|
|
203
|
+
return e.yyyyMMdd = "sys.model.yyyyMMdd", e.yyyyMM = "sys.model.yyyyMM", e.MMddyyyy = "sys.model.MMddyyyy", e.ddMMyyyy = "sys.model.ddMMyyyy", e.MMyyyy = "sys.model.MMyyyy", e.yyyywk = "sys.model.yyyywk", e.yyyyMMddHH = "sys.model.yyyyMMddHH", e.yyyyMMddHHmm = "sys.model.yyyyMMddHHmm", e.yyyyMMddHHmmss = "sys.model.yyyyMMddHHmmss", e.CUSTOM = "sys.customize", e;
|
|
204
|
+
}({}), it = /* @__PURE__ */ function(e) {
|
|
205
|
+
return e.PAGE = "page", e.HISTORY = "history", e.GLOBAL = "global", e.WIDGET = "widget", e.CHANGE_DESIGN = "changeDesign", e;
|
|
206
|
+
}({}), at = /* @__PURE__ */ function(e) {
|
|
207
|
+
return e.STATIC = "static", e.RELATIVE = "relative", e.ABSOLUTE = "absolute", e.FIXED = "fixed", e.STICKY = "sticky", e;
|
|
208
|
+
}({}), ot = /* @__PURE__ */ function(e) {
|
|
209
|
+
return e.NONE = "none", e.SOLID = "solid", e.DOTTED = "dotted", e.DASHED = "dashed", e.DOUBLE = "double", e;
|
|
210
|
+
}({}), st = /* @__PURE__ */ function(e) {
|
|
211
|
+
return e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e.JUSTIFY = "justify", e;
|
|
212
|
+
}({}), ct = /* @__PURE__ */ function(e) {
|
|
213
|
+
return e.LINETHROUGH = "line-through", e.UNDERLINE = "underline", e.NONE = "none", e;
|
|
214
|
+
}({}), lt = /* @__PURE__ */ function(e) {
|
|
215
|
+
return e.INNER = "inner", e.JS = "js", e;
|
|
216
|
+
}({}), ut = /* @__PURE__ */ function(e) {
|
|
217
|
+
return e.BASIC = "basic", e.ADVANCED = "advance", e.DISPLAY = "display", e.LABEL = "label", e.FIELD = "field", e.DATA = "data", e.OTHER = "other", e.LIST = "list", e.Table = "table", e.SUBMIT_RULE = "submitRule", e.LISTDATA = "listdata", e.SHOW = "show", e.FIELD_CONFIG = "fieldConfig", e.FORM_CONFIG = "formConfig", e.FIELD_LAYOUT = "FieldLayout", e.LEFT_RIGHT_COLUMNS = "leftRightColumns", e.TABLESELECT_CONFIG = "tableSelect", e.GENRADIO = "genRadio", e.GENCHECKBOX = "genCheckbox", e.GENSWITCH = "genSwitch", e.OPTIONS = "options", e.COLLAPSE = "collapse", e.SPACE_OCCUPATION = "spaceOccupation", e.DIVIDER = "divider", e.IFRAME = "iframe", e.FILECOLLECT = "fileCollect", e.CARDLIST = "cardList", e.BUTTON = "button", e.Button = "Button", e.ButtonShow = "ButtonShow", e.ButtonStyle = "ButtonStyle", e.LISTBUTTON = "listButton", e.MODAL = "modal", e.MODALWIDTH = "modalWidth", e.MODALHEIGHT = "modalHeight", e.MODALTITLECONFIG = "modalTitleConfig", e.SEARCH = "search", e.QUERY = "query", e.INPUT_CONFIG = "inputConfig", e.DATALINKAGE = "dataLinkage", e.PERMISSION = "permission", e.DATASOURCE = "dataSource", e.VALIDATERULE = "validaterule", e.TEXT = "text", e.GRID_CONFIG = "gridConfig", e.COL_CONFIG = "colConfig", e.COMPONENTDEPENDENCY = "componentDependency", e.GENIMAGE = "genImage", e.DATARANGE = "dataRange", e.OPERATOR_CONFIG = "operatorConfig", e.BUSINESS_CONFIG = "businessConfig", e.Vue3 = "Vue3", e.TREE_CONFIG = "treeConfig", e.CARDDISPLAY = "cardDisplay", e;
|
|
218
|
+
}({}), dt = /* @__PURE__ */ function(e) {
|
|
219
|
+
return e.LAYOUT = "layout", e.STYLE = "style", e.BACKGROUND = "background", e.MARGIN = "margin", e.BORDER = "border", e.HEADER = "header", e.SHOW_PROP = "showProp", e;
|
|
220
|
+
}({}), ft = /* @__PURE__ */ function(e) {
|
|
221
|
+
return e.TAG = "tag", e.PROGRESS = "progress", e;
|
|
222
|
+
}({}), pt = /* @__PURE__ */ function(e) {
|
|
223
|
+
return e.RADIUS = "radius", e.LINEAR_RADIUS = "linear_radius", e.BIG_RADIUS = "big_radius", e.LINEAR_BIG_RADIUS = "linear_big_radius", e.DASHED_RADIUS = "dashed_radius", e.STATUS = "status", e;
|
|
224
|
+
}({}), mt = /* @__PURE__ */ function(e) {
|
|
225
|
+
return e.RADIUS = "radius", e.BIG_RADIUS = "big_radius", e.STATUS = "status", e.SURFACE_RADIUS = "surface_radius", e.SURFACE_BIG_RADIUS = "surface_big_radius", e.SURFACE_STATUS = "surface_status", e.LINE_RADIUS = "line_radius", e.LINE_BIG_RADIUS = "line_big_radius", e.LINE_DASHED_RADIUS = "line_dashed_radius", e.LINE_STATUS = "line_status", e;
|
|
226
|
+
}({}), ht = /* @__PURE__ */ function(e) {
|
|
227
|
+
return e.CIRCLE = "circle", e.LINE = "line", e;
|
|
228
|
+
}({}), gt = /* @__PURE__ */ function(e) {
|
|
229
|
+
return e.RULE = "rule", e.CONFIG = "config", e;
|
|
230
|
+
}({}), _t = /* @__PURE__ */ function(e) {
|
|
231
|
+
return e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e.OBJECT = "object", e.ARRAY = "array", e.NULL = "NULL", e.DATE = "date", e.DATETIME = "datetime", e.TIME = "time", e.VAR = "var", e;
|
|
232
|
+
}({}), vt = /* @__PURE__ */ function(e) {
|
|
233
|
+
return e.MODAL = "modal", e.EVENT = "event", e.VAR = "var", e;
|
|
234
|
+
}({}), yt = /* @__PURE__ */ function(e) {
|
|
235
|
+
return e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
236
|
+
}({}), bt = /* @__PURE__ */ function(e) {
|
|
237
|
+
return e.CLOSE_MODAL = "__CLOSEMODAL__", e.OPEN_MODAL = "__OPENMODAL__", e.REFRESH_TABLE = "__REFRESHTABLE__", e;
|
|
238
|
+
}({}), xt = /* @__PURE__ */ function(e) {
|
|
239
|
+
return e.INLINE = "inline", e.MODAL = "modal", e;
|
|
240
|
+
}({}), St = /* @__PURE__ */ function(e) {
|
|
241
|
+
return e.DELETE = "delete", e.COPY = "copy", e;
|
|
242
|
+
}({}), Ct = /* @__PURE__ */ function(e) {
|
|
243
|
+
return e.DELETE = "delete", e.EDIT = "edit", e.COPY = "copy", e;
|
|
244
|
+
}({}), wt = /* @__PURE__ */ function(e) {
|
|
245
|
+
return e.JS = "js", e;
|
|
246
|
+
}({}), Tt = /* @__PURE__ */ function(e) {
|
|
247
|
+
return e.alwaysCover = "alwaysCover", e.notCovered = "notCovered", e;
|
|
248
|
+
}({}), Et = /* @__PURE__ */ function(e) {
|
|
249
|
+
return e.HIDDEN = "hidden", e.READONLY = "readonly", e.DISABLED = "disabled", e.REQUIRED = "required", e.ASSIGNMENT = "assignment", e;
|
|
250
|
+
}({}), Dt = /* @__PURE__ */ function(e) {
|
|
251
|
+
return e.OUTLINE = "OUTLINE", e.WIDGETS = "WIDGETS", e.FIELD = "FIELD", e.MODAL = "MODAL", e.JS = "JS", e.CSS = "CSS", e.TEMPLATE = "TEMPLATE", e.LO = "LO", e;
|
|
252
|
+
}({}), Ot = /* @__PURE__ */ function(e) {
|
|
253
|
+
return e.FORM = "form", e.LAYOUT = "layout", e.ADVANCED = "advanced", e.DATA = "data", e.BUTTON = "button", e.RDO = "rdo", e.KIT = "kit", e.PROCESS = "process", e;
|
|
254
|
+
}({}), kt = /* @__PURE__ */ function(e) {
|
|
255
|
+
return e.WEB = "web", e.MOBILE = "mobile", e.PAD = "pad", e;
|
|
256
|
+
}({}), At = /* @__PURE__ */ function(e) {
|
|
257
|
+
return e.MODAL = "modal", e.MODAL_BODY = "modalBody", e.MODAL_FOOTER = "modalFooter", e.BottomButtonContainer = "bottom-button-container", e;
|
|
258
|
+
}({}), jt = /* @__PURE__ */ function(e) {
|
|
259
|
+
return e.WEEK_NOW = "sys.pageDesigner.dateRange.weekNow", e.MONTH_NOW = "sys.pageDesigner.dateRange.monthNow", e.QUARTER_NOW = "sys.pageDesigner.dateRange.quarterNow", e.YEAR_NOW = "sys.pageDesigner.dateRange.yearNow", e.WEEk_BEFORE = "sys.pageDesigner.dateRange.weekBefore", e.MONTH_BEFORE = "sys.pageDesigner.dateRange.monthBefore", e.QUARTER_BEFORE = "sys.pageDesigner.dateRange.quarterBefore", e.YEAR_BEFORE = "sys.pageDesigner.dateRange.yearBefore", e.DATE_BEFORE = "sys.pageDesigner.dateRange.dateBefore", e.DATE_AFTER = "sys.pageDesigner.dateRange.dateAfter", e;
|
|
260
|
+
}({}), Mt = /* @__PURE__ */ function(e) {
|
|
261
|
+
return e.DROPDOWN_SELECTION = "dropdownSelection", e.TREE_SELECTION = "treeSelection", e.MODAL_BOX_SELECTION = "modalBoxSelection", e;
|
|
262
|
+
}({}), Nt = /* @__PURE__ */ function(e) {
|
|
263
|
+
return e["¥"] = "¥", e.$ = "$", e.S$ = "S$", e;
|
|
264
|
+
}({}), Pt = /* @__PURE__ */ function(e) {
|
|
265
|
+
return e.d = "d", e["d:h"] = "d:h", e["d:h:m"] = "d:h:m", e["d:h:m:s"] = "d:h:m:s", e.h = "h", e["h:m"] = "h:m", e["h:m:s"] = "h:m:s", e.m = "m", e["m:s"] = "m:s", e.s = "s", e;
|
|
266
|
+
}({}), Ft = /* @__PURE__ */ function(e) {
|
|
267
|
+
return e.d = "days", e["d:h"] = "dayhour", e["d:h:m"] = "dayhourminute", e["d:h:m:s"] = "dayhourminutesecond", e.h = "hour", e["h:m"] = "hourminute", e["h:m:s"] = "hourminutesecond", e.m = "minute", e["m:s"] = "minutesecond", e.s = "seconds", e;
|
|
268
|
+
}({}), It = /* @__PURE__ */ function(e) {
|
|
269
|
+
return e["¥"] = "chMoney", e.$ = "usMoney", e.S$ = "sgpMoney", e;
|
|
270
|
+
}({}), Lt = /* @__PURE__ */ function(e) {
|
|
271
|
+
return e.SingleChoice = "radio", e.MultipleChoice = "checkbox", e;
|
|
272
|
+
}({}), Rt = /* @__PURE__ */ function(e) {
|
|
273
|
+
return e.Current = "current", e.Whole = "whole", e;
|
|
274
|
+
}({}), zt = /* @__PURE__ */ function(e) {
|
|
275
|
+
return e.Local = "local", e.Server = "server", e.PREVIEW_PRINT = "PreviewPrint", e.DIRECT_PRINTING = "DirectPrinting", e;
|
|
276
|
+
}({}), Bt = /* @__PURE__ */ function(e) {
|
|
277
|
+
return e.OPEN = "open", e.APPROVE = "linkApprove", e;
|
|
278
|
+
}({}), Vt = /* @__PURE__ */ function(e) {
|
|
279
|
+
return e.SYSTEM = "system", e.TRANSACTION = "transaction", e;
|
|
280
|
+
}({}), Ht = /* @__PURE__ */ function(e) {
|
|
281
|
+
return e.CURRENT = "current", e.REFERENCE = "reference", e;
|
|
282
|
+
}({}), Ut = /* @__PURE__ */ function(e) {
|
|
283
|
+
return e.BLOCK = "block", e.INLINE_BLOCK = "inline-block", e;
|
|
284
|
+
}({}), Wt = /* @__PURE__ */ function(e) {
|
|
285
|
+
return e.DEFAULT = "default", e.LINK = "link", e;
|
|
286
|
+
}({}), Gt = /* @__PURE__ */ function(e) {
|
|
287
|
+
return e.DEFAULT = "default", e.PRIMARY = "primary", e.ERROR = "error", e.WARNING = "warning", e.SUCCESS = "success", e;
|
|
288
|
+
}({}), Kt = /* @__PURE__ */ function(e) {
|
|
289
|
+
return e.ORDINARY = "ordinary", e.SQUARE = "square", e;
|
|
290
|
+
}({}), qt = /* @__PURE__ */ function(e) {
|
|
291
|
+
return e.SMALL = "small", e.DEFAULT = "middle", e.LARGE = "large", e;
|
|
292
|
+
}({}), Jt = /* @__PURE__ */ function(e) {
|
|
293
|
+
return e.TEXT = "TEXT", e.ICON_TEXT = "ICON_TEXT", e.ICON = "ICON", e;
|
|
294
|
+
}({}), Yt = /* @__PURE__ */ function(e) {
|
|
295
|
+
return e.PRIMARY = "primary", e.DEFAULT = "default", e.DASHED = "dashed", e.LINK = "link", e;
|
|
296
|
+
}({}), Xt = /* @__PURE__ */ function(e) {
|
|
297
|
+
return e.PRIMARY = "primary", e.DANGER = "danger", e.DEFAULT = "default", e;
|
|
298
|
+
}({}), Zt = {
|
|
299
|
+
TEXT: [
|
|
300
|
+
{
|
|
301
|
+
type: "primary",
|
|
302
|
+
label: "sys.pageDesigner.button_primary",
|
|
303
|
+
hasText: !0
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
type: "default",
|
|
307
|
+
label: "sys.pageDesigner.button_default",
|
|
308
|
+
hasText: !0
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
type: "primary",
|
|
312
|
+
danger: !0,
|
|
313
|
+
label: "sys.pageDesigner.button_primary_danger",
|
|
314
|
+
hasText: !0
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
type: "default",
|
|
318
|
+
danger: !0,
|
|
319
|
+
label: "sys.pageDesigner.button_danger",
|
|
320
|
+
hasText: !0
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
type: "dashed",
|
|
324
|
+
label: "sys.pageDesigner.button_dashed",
|
|
325
|
+
hasText: !0
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
type: "link",
|
|
329
|
+
label: "sys.pageDesigner.button_text",
|
|
330
|
+
hasText: !0
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
ICON_TEXT: [
|
|
334
|
+
{
|
|
335
|
+
type: "primary",
|
|
336
|
+
label: "sys.pageDesigner.button_primary",
|
|
337
|
+
hasText: !0,
|
|
338
|
+
hasIcon: !0
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type: "default",
|
|
342
|
+
label: "sys.pageDesigner.button_default",
|
|
343
|
+
hasText: !0,
|
|
344
|
+
hasIcon: !0
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
type: "primary",
|
|
348
|
+
danger: !0,
|
|
349
|
+
label: "sys.pageDesigner.button_primary_danger",
|
|
350
|
+
hasText: !0,
|
|
351
|
+
hasIcon: !0
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
type: "default",
|
|
355
|
+
danger: !0,
|
|
356
|
+
label: "sys.pageDesigner.button_danger",
|
|
357
|
+
hasText: !0,
|
|
358
|
+
hasIcon: !0
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
type: "dashed",
|
|
362
|
+
label: "sys.pageDesigner.button_dashed",
|
|
363
|
+
hasText: !0,
|
|
364
|
+
hasIcon: !0
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
type: "link",
|
|
368
|
+
label: "sys.pageDesigner.button_text",
|
|
369
|
+
hasText: !0,
|
|
370
|
+
hasIcon: !0
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
ICON: [
|
|
374
|
+
{
|
|
375
|
+
type: "primary",
|
|
376
|
+
hasIcon: !0
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
type: "default",
|
|
380
|
+
hasIcon: !0
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
type: "primary",
|
|
384
|
+
danger: !0,
|
|
385
|
+
hasIcon: !0
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
type: "default",
|
|
389
|
+
danger: !0,
|
|
390
|
+
hasIcon: !0
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
type: "dashed",
|
|
394
|
+
hasIcon: !0
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
type: "link",
|
|
398
|
+
hasIcon: !0
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
}, Qt = /* @__PURE__ */ function(e) {
|
|
402
|
+
return e.COLUMNDELETE = "columnDelete", e.COLUMNLINK = "columnLink", e.COPY = "copy", e.VERSION_COPY = "version_copy", e.VERSION_CREATE = "version_create", e.DETAILS = "details", e.EDIT = "edit", e.USAGEINFORMATION = "usageInformation", e.MODELINGTRACEABILITY = "modelingTraceability", e.IMPORT = "import", e.EXPORT = "export", e.BATCHDELETE = "batchDelete", e.SUBMIT = "submit", e.RESET = "reset", e.EXCUTE = "excute", e.LABEL_PRINT = "label_print", e.DOCUMENT_PRINT = "document_print", e.EXAMINE_AND_APPROVE = "examineAndApprove", e;
|
|
403
|
+
}({}), $t = /* @__PURE__ */ function(e) {
|
|
404
|
+
return e.NONE = "none", e.EMBEDDED = "embedded", e.EXTERNAL = "external", e;
|
|
405
|
+
}({}), en = /* @__PURE__ */ function(e) {
|
|
406
|
+
return e.DEFAULT = "default", e.EMBED = "embed", e.SUB = "sub", e;
|
|
407
|
+
}({}), tn = /* @__PURE__ */ function(e) {
|
|
408
|
+
return e.DEFAULTEDITING = "defaultEditing", e.CLICKTOENTEREDITING = "clickToEnterEditing", e;
|
|
409
|
+
}({}), nn = /* @__PURE__ */ function(e) {
|
|
410
|
+
return e.GCT = "gct", e.GCT_MODAL = "gct-modal", e.GCT_SUB_TABLE_MODAL = "gct-sub-table-modal", e;
|
|
411
|
+
}({}), rn = /* @__PURE__ */ function(e) {
|
|
412
|
+
return e.ALL = "ALL", e.SEARCH = "SEARCH", e.SEARCHALL = "SEARCHALL", e.LEVEL = "LEVEL", e.CHILDREN = "CHILDREN", e;
|
|
413
|
+
}({}), an = /* @__PURE__ */ function(e) {
|
|
414
|
+
return e.REALTIMEDATASOURCE = "realTimeDataSource", e.SERVICEDATASOURCE = "serviceDataSource", e;
|
|
415
|
+
}({}), on = /* @__PURE__ */ function(e) {
|
|
416
|
+
return e.SIGNATURE_ONLY = "signature_only", e.SIGNATURE_DATE = "signature_date", e.SIGNATURE_DATETIME = "signature_datetime", e;
|
|
417
|
+
}({}), sn = /* @__PURE__ */ function(e) {
|
|
418
|
+
return e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e;
|
|
419
|
+
}({}), cn = /* @__PURE__ */ function(e) {
|
|
420
|
+
return e.WIPE_DATA = "wipe_data", e.REFRESHDATA = "refresh_data", e;
|
|
421
|
+
}({}), ln = /* @__PURE__ */ function(e) {
|
|
422
|
+
return e.PAGE = "page", e.MODAL = "modal", e;
|
|
423
|
+
}({}), w = /* @__PURE__ */ function(e) {
|
|
424
|
+
return e.RdoInput = "rdo-input", e.Input = "input", e.ElectronicSignature = "electronic-signature", e.UseinfoButton = "useinfo-button", e.ModelingButton = "modeling-button", e.ImportButton = "gc-import-button", e.ExportButton = "gc-export-button", e.DocumentPrintButton = "document-print-button", e.SubmitButton = "submit-button", e.BatchDeleteButton = "batchdelete-button", e.CustomButton = "custom-button", e.TableLinkButton = "table-link-button", e.TableInfoButton = "table-info-button", e.TableApproveButton = "table-approve-button", e.OpeButton = "ope-button", e.ResetButton = "reset-button", e.RdoSaveButton = "rdo-save-button", e.LabelPrintButton = "labelprint-button", e.ProcessButton = "process-button", e.ProcessApproveButton = "process-approve-button", e.CreateButton = "create-button", e.DeleteButton = "delete-button", e.CopyButton = "copy-button", e.RefreshButton = "refresh-button", e.CreateVersionButton = "create-version-button", e.CopyVersionButton = "copy-version-button", e.Checkbox = "checkbox", e.DataTable = "data-table", e.DataVTable = "data-v-table", e.TreeTable = "tree-table", e.DataTableColumn = "data-table-column", e.RefDataTable = "ref-data-table", e.DataList = "data-list", e.RdoDataList = "rdo-data-list", e.DataTableOpe = "data-table-ope", e.DataTableFormula = "data-table-formula", e.Datepicker = "datepicker", e.DateTimepicker = "datetimepicker", e.Department = "department", e.Form = "form", e.RdoForm = "rdo-form", e.RdoTable = "rdo-table", e.MedProRdoForm = "medprordo-form", e.MedProRdoTable = "medprordo-table", e.FormProcess = "form-process", e.Inputmoney = "inputmoney", e.Inputnumber = "inputnumber", e.InputDouble = "inputdouble", e.Radio = "radio", e.Select = "select", e.RdoSelect = "rdo-select", e.Switch = "switch", e.Textarea = "textarea", e.Timepicker = "timepicker", e.Userpicker = "userpicker", e.Search = "search", e.SelectSearch = "select-search", e.QuickSearch = "quick-search", e.LayoutContainer = "layout-container", e.ButtonContainer = "button-container", e.ButtonProcessContainer = "button-process-container", e.BottomButtonContainer = "bottom-button-container", e.Grid = "grid", e.GridCol = "grid-col", e.Tabs = "tabs", e.TabPane = "tab-pane", e.LeftRightColumns = "left-right-columns", e.TopBottomColumns = "top-bottom-columns", e.LeftLayoutThree = "left-layout-three", e.TopLayoutThree = "top-layout-three", e.UploadFile = "upload-file", e.UploadImage = "upload-image", e.SubTable = "sub-table", e.SubTableOpe = "sub-table-ope", e.SubTableAddBtn = "sub-table-add-button", e.SubTableCopyBtn = "sub-table-copy-button", e.SubTableEditBtn = "sub-table-edit-button", e.SubTableDeleteBtn = "sub-table-delete-button", e.LinkPageBtn = "link-page-button", e.Collapse = "collapse", e.SpaceOccupation = "space-occupation", e.Divider = "divider", e.CardList = "card-list", e.CardHeaderLeft = "card-header-left", e.CardHeaderRight = "card-header-right", e.CardContent = "card-content", e.CardOpeBtn = "card-ope-btn", e.BaseButton = "base-button", e.ReadonlyCmp = "readonlycmp", e.TableSelect = "table-select", e.GenCheckbox = "gen-checkbox", e.GenRadio = "gen-radio", e.GenSwitch = "gen-switch", e.WorkflowNodes = "workflow-nodes", e.WorkflowNodeModal = "workflow-node-modal", e.ESOP = "e-sop", e.EXPRESSION = "expression", e.ExpressionCondition = "expression-condition", e.AGG = "agg", e.DynamicFormType = "dynamic-form-type", e.DynamicFormValue = "dynamic-form-value", e.DynamicFormOpts = "dynamic-form-options", e.DynamicFormShowType = "dynamic-form-show-type", e.DynamicTable = "dynamic-table", e.Transaction = "transaction", e.SerialRule = "serial-rule", e.LabelTemplate = "label-template", e.LabelTemplateRef = "label-template-ref", e.DocumentTemplate = "document-template", e.Wacom = "wacom", e.Text = "text", e.CustomField = "custom-field", e.Printer = "printer", e.Descriptions = "descriptions", e.RangeUser = "range-user", e.GenImage = "gen-image", e.TestButton = "test-button", e.Iframe = "iframe", e.ExcuteButton = "medproexcute-button", e.SubDataTable = "sub-data-table", e.Signature = "signature", e.OnlineForm = "online-form", e.TmplTreeSelect = "tmpl-tree-select", e.Boolean = "boolean", e.BizProcess = "biz-process", e.ApprovalHistory = "approval-history", e.FlowDiagram = "flow-diagram", e.CustomCode = "custom-code", e.ApprovalProcess = "approval-process", e;
|
|
425
|
+
}({}), un = /* @__PURE__ */ function(e) {
|
|
426
|
+
return e.SearchInput = "SearchInput", e.SearchNumberInput = "SearchNumberInput", e.SearchStringNumberInput = "SearchStringNumberInput", e.SearchSwitch = "SearchSwitch", e.SearchDate = "SearchDate", e.SearchDateTime = "SearchDateTime", e.SearchTime = "SearchTime", e.SearchSelect = "SearchSelect", e.SearchUserSelect = "SearchUserSelect", e.SearchRdoSelect = "SearchRdoSelect", e.SearchTransaction = "SearchTransaction", e.SearchTmplTreeSelect = "SearchTmplTreeSelect", e.SearchPrinter = "SearchPrinter", e.SearchBizProcess = "SearchBizProcess", e.SearchSelectRangUser = "SearchSelectRangUser", e.SearchSelectDepartment = "SearchSelectDepartment", e;
|
|
427
|
+
}({}), dn = /* @__PURE__ */ function(e) {
|
|
428
|
+
return e.AUTO_PARENT_BOX = "AutoParentBox", e.ATUO = "selfAdaption", e.ENUMERATION = "fixed", e.PERCENTAGE = "percentage", e;
|
|
429
|
+
}({}), fn = /* @__PURE__ */ function(e) {
|
|
430
|
+
return e.NULL = "NULL", e.STRING = "空字符串", e.ZERO = "0", e;
|
|
431
|
+
}({}), pn = /* @__PURE__ */ function(e) {
|
|
432
|
+
return e.TOTAL = "total", e.AVERAGE = "average", e;
|
|
433
|
+
}({}), mn = /* @__PURE__ */ function(e) {
|
|
434
|
+
return e.RIGHT = "right", e.NONE = "", e.LEFT = "left", e;
|
|
435
|
+
}({}), hn = /* @__PURE__ */ function(e) {
|
|
436
|
+
return e.COLUMN_TEXT = "COLUMN_TEXT", e.COLUMN_NUMBER = "COLUMN_NUMBER", e.COLUMNTEXT_DATA = "COLUMNTEXT_DATA", e.COLUMNTEXT_REF = "COLUMNTEXT_REF", e.COLUMNTEXT_ENUM = "COLUMNTEXT_ENUM", e.COLUMNTEXT_ORG = "COLUMNTEXT_ORG", e.COLUMNTEXT_USER = "COLUMNTEXT_USER", e.COLUMNTEXT_BOOLEAN = "COLUMNTEXT_BOOLEAN", e.COLUMNTEXT_IMAGE = "COLUMNTEXT_IMAGE", e;
|
|
437
|
+
}({}), gn = /* @__PURE__ */ function(e) {
|
|
438
|
+
return e.LINE = "line", e.CARD = "card", e.TEXt = "text", e.CAPSULE = "capsule", e.CUSTOM = "custom", e;
|
|
439
|
+
}({}), _n = /* @__PURE__ */ function(e) {
|
|
440
|
+
return e.ASC = "asc", e.DESC = "desc", e;
|
|
441
|
+
}({}), T = /* @__PURE__ */ function(e) {
|
|
442
|
+
return e.CMP_TEXT = "TEXT", e.CMP_TEXTAREA = "TEXTAREA", e.CMP_ELECTRONICSIGNATURE = "ELECTRONICSIGNATURE", e.CMP_BOOLEAN = "BOOLEAN", e.CMP_SELECT_LIST = "SELECT_LIST", e.CMP_RADIO = "RADIO", e.CMP_CHECKBOX = "CHECKBOX", e.CMP_DROPDOWN_SELECT = "dropdownSelection", e.CMP_MODAL = "modalBoxSelection", e.CMP_TREE_SELECTION = "treeSelection", e.CMP_NUMBER = "NUMBER", e.CMP_CURRENCY = "CURRENCY", e.CMP_TIME = "TIME", e;
|
|
443
|
+
}({}), vn = {
|
|
444
|
+
[T.CMP_TEXT]: "sys.pageDesigner.bindCmpStyle.bindText",
|
|
445
|
+
[T.CMP_TEXTAREA]: "sys.pageDesigner.bindCmpStyle.bindTextarea",
|
|
446
|
+
[T.CMP_ELECTRONICSIGNATURE]: "sys.pageDesigner.bindCmpStyle.electronicSignature",
|
|
447
|
+
[T.CMP_BOOLEAN]: "sys.pageDesigner.bindCmpStyle.bindBoolean",
|
|
448
|
+
[T.CMP_SELECT_LIST]: "sys.pageDesigner.bindCmpStyle.bindSelectList",
|
|
449
|
+
[T.CMP_RADIO]: "sys.pageDesigner.bindCmpStyle.bindRadio",
|
|
450
|
+
[T.CMP_CHECKBOX]: "sys.pageDesigner.bindCmpStyle.bindCheckbox",
|
|
451
|
+
[T.CMP_DROPDOWN_SELECT]: "sys.pageDesigner.bindCmpStyle.bindDropdownSelect",
|
|
452
|
+
[T.CMP_MODAL]: "sys.pageDesigner.bindCmpStyle.bindModal",
|
|
453
|
+
[T.CMP_TREE_SELECTION]: "sys.pageDesigner.bindCmpStyle.bindTreeSelection",
|
|
454
|
+
[T.CMP_NUMBER]: "sys.pageDesigner.bindCmpStyle.bindNumber",
|
|
455
|
+
[T.CMP_CURRENCY]: "sys.pageDesigner.bindCmpStyle.bindCurrency",
|
|
456
|
+
[T.CMP_TIME]: "sys.pageDesigner.bindCmpStyle.bindTime"
|
|
457
|
+
}, E = /* @__PURE__ */ function(e) {
|
|
458
|
+
return e.BindText = "bindText", e.BindLongText = "BindLongText", e.BindBool = "bindBool", e.BindPerson = "bindPerson", e.BindDept = "bindDept", e.BindLink = "bindLink", e.BindMulti = "bindMulti", e.BindNum = "bindNum", e.BindDecimal = "bindDecimal", e;
|
|
459
|
+
}({}), yn = {
|
|
460
|
+
[T.CMP_TEXT]: w.Input,
|
|
461
|
+
[T.CMP_TEXTAREA]: w.Textarea,
|
|
462
|
+
[T.CMP_ELECTRONICSIGNATURE]: w.ElectronicSignature,
|
|
463
|
+
[T.CMP_SELECT_LIST]: w.Select,
|
|
464
|
+
[T.CMP_RADIO]: w.Radio,
|
|
465
|
+
[T.CMP_CHECKBOX]: w.Checkbox
|
|
466
|
+
}, bn = {
|
|
467
|
+
[E.BindText]: [T.CMP_TEXT, T.CMP_TEXTAREA],
|
|
468
|
+
[E.BindLongText]: [
|
|
469
|
+
T.CMP_TEXT,
|
|
470
|
+
T.CMP_TEXTAREA,
|
|
471
|
+
T.CMP_ELECTRONICSIGNATURE
|
|
472
|
+
],
|
|
473
|
+
[E.BindBool]: [
|
|
474
|
+
T.CMP_BOOLEAN,
|
|
475
|
+
T.CMP_SELECT_LIST,
|
|
476
|
+
T.CMP_RADIO,
|
|
477
|
+
T.CMP_CHECKBOX
|
|
478
|
+
],
|
|
479
|
+
[E.BindPerson]: [T.CMP_DROPDOWN_SELECT, T.CMP_MODAL],
|
|
480
|
+
[E.BindDept]: [T.CMP_TREE_SELECTION, T.CMP_MODAL],
|
|
481
|
+
[E.BindLink]: [T.CMP_SELECT_LIST, T.CMP_RADIO],
|
|
482
|
+
[E.BindMulti]: [T.CMP_SELECT_LIST, T.CMP_CHECKBOX],
|
|
483
|
+
[E.BindNum]: [
|
|
484
|
+
T.CMP_NUMBER,
|
|
485
|
+
T.CMP_CURRENCY,
|
|
486
|
+
T.CMP_TIME
|
|
487
|
+
],
|
|
488
|
+
[E.BindDecimal]: [T.CMP_NUMBER, T.CMP_CURRENCY]
|
|
489
|
+
}, xn = /* @__PURE__ */ function(e) {
|
|
490
|
+
return e.FOLD_ALL = "foldAll", e.FOLD_PART = "foldPart", e;
|
|
491
|
+
}({}), Sn = [
|
|
492
|
+
C.BOOLEAN,
|
|
493
|
+
C.DATE,
|
|
494
|
+
C.DATE_TIME,
|
|
495
|
+
C.DECIMAL,
|
|
496
|
+
C.DOUBLE,
|
|
497
|
+
C.ENUM,
|
|
498
|
+
C.ENUM_MULTI,
|
|
499
|
+
C.INTEGER,
|
|
500
|
+
C.LONG,
|
|
501
|
+
C.LONG_TEXT,
|
|
502
|
+
C.TEXT,
|
|
503
|
+
C.USER_MULTI,
|
|
504
|
+
C.USER,
|
|
505
|
+
C.TIME,
|
|
506
|
+
C.REF_MULTI,
|
|
507
|
+
C.REF,
|
|
508
|
+
C.RDO_REF,
|
|
509
|
+
C.ORG_MULTI,
|
|
510
|
+
C.ORG,
|
|
511
|
+
C.SERIAL,
|
|
512
|
+
C.ONLINE_FORM_TEMPLATE,
|
|
513
|
+
C.E_DHR_TEMPLATE,
|
|
514
|
+
C.PRINTER,
|
|
515
|
+
C.LABEL_TEMPLATE_REF,
|
|
516
|
+
C.Biz_Process,
|
|
517
|
+
C.DOCUMENT_TEMPLATE,
|
|
518
|
+
C.TRANSACTION,
|
|
519
|
+
C.RANGE_USER,
|
|
520
|
+
C.MESSAGE_TMPL
|
|
521
|
+
], Cn = [
|
|
522
|
+
C.BOOLEAN,
|
|
523
|
+
C.DATE,
|
|
524
|
+
C.DATE_TIME,
|
|
525
|
+
C.DECIMAL,
|
|
526
|
+
C.DOUBLE,
|
|
527
|
+
C.ENUM,
|
|
528
|
+
C.ENUM_MULTI,
|
|
529
|
+
C.INTEGER,
|
|
530
|
+
C.LONG,
|
|
531
|
+
C.LONG_TEXT,
|
|
532
|
+
C.TEXT,
|
|
533
|
+
C.USER_MULTI,
|
|
534
|
+
C.USER,
|
|
535
|
+
C.TIME,
|
|
536
|
+
C.REF_MULTI,
|
|
537
|
+
C.REF,
|
|
538
|
+
C.RDO_REF,
|
|
539
|
+
C.ORG_MULTI,
|
|
540
|
+
C.ORG,
|
|
541
|
+
C.SERIAL,
|
|
542
|
+
C.ONLINE_FORM_TEMPLATE,
|
|
543
|
+
C.E_DHR_TEMPLATE,
|
|
544
|
+
C.PRINTER,
|
|
545
|
+
C.LABEL_TEMPLATE_REF,
|
|
546
|
+
C.Biz_Process,
|
|
547
|
+
C.DOCUMENT_TEMPLATE,
|
|
548
|
+
C.TRANSACTION,
|
|
549
|
+
C.MESSAGE_TMPL
|
|
550
|
+
], wn = [
|
|
551
|
+
C.BOOLEAN,
|
|
552
|
+
C.DATE,
|
|
553
|
+
C.DATE_TIME,
|
|
554
|
+
C.DECIMAL,
|
|
555
|
+
C.DOUBLE,
|
|
556
|
+
C.ENUM,
|
|
557
|
+
C.ENUM_MULTI,
|
|
558
|
+
C.INTEGER,
|
|
559
|
+
C.LONG,
|
|
560
|
+
C.LONG_TEXT,
|
|
561
|
+
C.TEXT,
|
|
562
|
+
C.USER_MULTI,
|
|
563
|
+
C.USER,
|
|
564
|
+
C.TIME,
|
|
565
|
+
C.REF_MULTI,
|
|
566
|
+
C.REF,
|
|
567
|
+
C.RDO_REF,
|
|
568
|
+
C.ORG_MULTI,
|
|
569
|
+
C.ORG,
|
|
570
|
+
C.SERIAL,
|
|
571
|
+
C.PRINTER,
|
|
572
|
+
C.LABEL_TEMPLATE_REF,
|
|
573
|
+
C.TRANSACTION
|
|
574
|
+
], Tn = /* @__PURE__ */ function(e) {
|
|
575
|
+
return e.FIELD_LIST = "fieldList", e.FIELD_FORM = "fieldForm", e;
|
|
576
|
+
}({}), En = /* @__PURE__ */ function(e) {
|
|
577
|
+
return e.ONLINE_FORM = "online_form_module", e.EDHR = "edhr_module", e;
|
|
578
|
+
}({}), Dn = /* @__PURE__ */ function(e) {
|
|
579
|
+
return e.LABEL = "label_module", e.RECEIPT = "document_module", e;
|
|
580
|
+
}({}), On = /* @__PURE__ */ function(e) {
|
|
581
|
+
return e.CLIENT_PRINT = "CLIENT_PRINT", e.INTERNET_PRINT = "INTERNET_PRINT", e;
|
|
582
|
+
}({}), kn = /* @__PURE__ */ function(e) {
|
|
583
|
+
return e.SUCCESS = "SUCCESS", e.FAILURE = "FAILURE", e.PREPARING = "PREPARING", e.EVENTING = "EVENTING", e.PROCESSIING = "PROCESSIING", e.DEPLOYING = "DEPLOYING", e;
|
|
584
|
+
}({}), An = /* @__PURE__ */ function(e) {
|
|
585
|
+
return e.Insert = "Insert", e.Update = "Update", e.Delete = "Delete", e.Import = "Import", e.Export = "Export", e.Setting = "Setting", e.Download = "Download", e.Test = "Test", e.Design = "Design", e.Add = "Add", e;
|
|
586
|
+
}({}), D = /* @__PURE__ */ function(e) {
|
|
587
|
+
return e.ResetPassword = "ResetPassword", e.PermissionSetting = "PermissionSetting", e.RemoveAndHandover = "RemoveAndHandover", e.CategoryManagement = "CategoryManagement", e.BaiscSetting = "BaiscSetting", e.WatermarkSetting = "WatermarkSetting", e.SecuritySetting = "SecuritySetting", e.LoginSetting = "LoginSetting", e.ThemeSetting = "ThemeSetting", e.OrganizationSetting = "OrganizationSetting", e.ApkSetting = "ApkSetting", e.DevelopIconManagement = "DevelopIconManagement", e.DevelopImageManagement = "DevelopImageManagement", e.Reprint = "Reprint", e.ViewTask = "ViewTask", e.ManualTrigger = "ManualTrigger", e.Setting = "Setting", e.Terminate = "Terminate", e.Reassign = "Reassign", e.Log = "Log", e.Moving = "Moving", e.EnableDisable = "EnableDisable", e;
|
|
588
|
+
}({}), jn = [
|
|
589
|
+
An.Insert,
|
|
590
|
+
An.Update,
|
|
591
|
+
An.Delete
|
|
592
|
+
], Mn = [
|
|
593
|
+
D.BaiscSetting,
|
|
594
|
+
D.WatermarkSetting,
|
|
595
|
+
D.SecuritySetting,
|
|
596
|
+
D.LoginSetting,
|
|
597
|
+
D.ThemeSetting,
|
|
598
|
+
D.OrganizationSetting,
|
|
599
|
+
D.ApkSetting
|
|
600
|
+
], O = /* @__PURE__ */ function(e) {
|
|
601
|
+
return e.XS = "XS", e.SM = "SM", e.MD = "MD", e.LG = "LG", e.XL = "XL", e.XXL = "XXL", e;
|
|
602
|
+
}({}), k = /* @__PURE__ */ function(e) {
|
|
603
|
+
return e[e.XS = 480] = "XS", e[e.SM = 576] = "SM", e[e.MD = 768] = "MD", e[e.LG = 992] = "LG", e[e.XL = 1200] = "XL", e[e.XXL = 1600] = "XXL", e;
|
|
604
|
+
}({}), A = /* @__PURE__ */ new Map();
|
|
605
|
+
A.set(O.XS, k.XS), A.set(O.SM, k.SM), A.set(O.MD, k.MD), A.set(O.LG, k.LG), A.set(O.XL, k.XL), A.set(O.XXL, k.XXL);
|
|
606
|
+
//#endregion
|
|
607
|
+
//#region src/enums/cacheEnum.ts
|
|
608
|
+
var Nn = "TIMEZONE__", Pn = "TENANT__", Fn = "TOKEN__", In = "LOCALE__", Ln = "LOCALE__LIST", Rn = "LOCAL_I18N_TRANSLATE", zn = "USER__INFO__", Bn = "ROLES__KEY__", Vn = "PROJ__CFG__KEY__", Hn = "LOCK__INFO__KEY__", Un = "MULTIPLE_TABS__KEY__", Wn = "__APP__DARK__MODE__", Gn = "COMMON__LOCAL__KEY__", Kn = "COMMON__SESSION__KEY__", qn = "DESIGNER_SESSION_CACHE_KEY", Jn = /* @__PURE__ */ function(e) {
|
|
609
|
+
return e[e.SESSION = 0] = "SESSION", e[e.LOCAL = 1] = "LOCAL", e;
|
|
610
|
+
}({}), j = /* @__PURE__ */ function(e) {
|
|
611
|
+
return e.EQ = "eq", e.IEQ = "iEq", e.NE = "ne", e.INE = "ine", e.GT = "gt", e.GE = "ge", e.LT = "lt", e.LE = "le", e.ISNULL = "isNull", e.ISNOTNULL = "isNotNull", e.LIKE = "like", e.ILIKE = "iLike", e.NOTLIKE = "notLike", e.NOTILIKE = "iNotLike", e.LEFTLIKE = "leftLike", e.ILEFTLIKE = "iLeftLike", e.RIGHTLIKE = "rightLike", e.IRIGHTLIKE = "iRightLike", e.IN = "in", e.NOTIN = "notIn", e.CONTAINANY = "containAny", e.CONTAINALL = "containAll", e.RANGE = "range", e.ORANGE = "oRange", e.LORANGE = "loRange", e.RORANGE = "roRange", e.VERSIONIN = "versionIn", e.VERSIONNOTIN = "versionNotIn", e.VERSIONEQ = "versionEq", e.VERSIONNE = "versionNe", e;
|
|
612
|
+
}({}), Yn = [
|
|
613
|
+
j.IN,
|
|
614
|
+
j.NOTIN,
|
|
615
|
+
j.CONTAINANY,
|
|
616
|
+
j.CONTAINALL,
|
|
617
|
+
j.VERSIONIN
|
|
618
|
+
], Xn = /* @__PURE__ */ function(e) {
|
|
619
|
+
return e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e.BETWEEN = "between", e;
|
|
620
|
+
}({}), Zn = [
|
|
621
|
+
"#DBDBDB",
|
|
622
|
+
"#FFE4E4",
|
|
623
|
+
"#D1D1D1",
|
|
624
|
+
"#838383",
|
|
625
|
+
"#838383",
|
|
626
|
+
"#FFEECB",
|
|
627
|
+
"#D8E3FF",
|
|
628
|
+
"#FF8888",
|
|
629
|
+
"#FF8888",
|
|
630
|
+
"#0DAA9C",
|
|
631
|
+
"#3370FF"
|
|
632
|
+
], Qn = /* @__PURE__ */ function(e) {
|
|
633
|
+
return e[e.SINGLELINE = 0] = "SINGLELINE", e[e.HEAD = 1] = "HEAD", e[e.BATCH = 2] = "BATCH", e[e.SINGLELINE_RDO = 3] = "SINGLELINE_RDO", e;
|
|
634
|
+
}({}), $n = /* @__PURE__ */ function(e) {
|
|
635
|
+
return e[e.parentVersion = 0] = "parentVersion", e[e.childVersion = 1] = "childVersion", e;
|
|
636
|
+
}({}), er = /* @__PURE__ */ function(e) {
|
|
637
|
+
return e[e.PAGE_NOT_ACCESS = 403] = "PAGE_NOT_ACCESS", e[e.PAGE_NOT_FOUND = 404] = "PAGE_NOT_FOUND", e[e.ERROR = 500] = "ERROR", e[e.NET_WORK_ERROR = 1e4] = "NET_WORK_ERROR", e[e.PAGE_NOT_DATA = 10100] = "PAGE_NOT_DATA", e;
|
|
638
|
+
}({}), M = /* @__PURE__ */ function(e) {
|
|
639
|
+
return e.VUE = "vue", e.SCRIPT = "script", e.RESOURCE = "resource", e.AJAX = "ajax", e.PROMISE = "promise", e;
|
|
640
|
+
}({}), tr = /* @__PURE__ */ function(e) {
|
|
641
|
+
return e[e.SUCCESS = 200] = "SUCCESS", e[e.ERROR = -1] = "ERROR", e[e.TIMEOUT = 401] = "TIMEOUT", e.TYPE = "success", e;
|
|
642
|
+
}({}), nr = /* @__PURE__ */ function(e) {
|
|
643
|
+
return e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.DELETE = "DELETE", e;
|
|
644
|
+
}({}), rr = /* @__PURE__ */ function(e) {
|
|
645
|
+
return e.JSON = "application/json;charset=UTF-8", e.FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8", e.FORM_DATA = "multipart/form-data;charset=UTF-8", e;
|
|
646
|
+
}({}), ir = /* @__PURE__ */ function(e) {
|
|
647
|
+
return e.submit = "post", e.listByIds = "get", e.getone = "post", e.listAll = "post", e.listByPage = "post", e.listTree = "post", e.save = "post", e.saveOrUpdate = "post", e.saveBatch = "post", e.importData = "post", e.exportData = "post", e.remove = "post", e.removeById = "delete", e.removeByIds = "delete", e.update = "put", e.updateById = "put", e.updateByIds = "put", e.rdoSave = "post", e.rdoListAll = "post", e.rdoListByPage = "post", e.rdoListVersionById = "get", e.rdoSaveVersion = "post", e.rdoSaveBatch = "post", e.rdoUpdateVersionById = "put", e.rdoRemoveVersionById = "delete", e.rdoRemoveById = "delete", e.rdoGetVersionById = "get", e.getOne = "post", e.rdoGetVersionByRefId = "post", e.getById = "get", e.rdoListAllVersion = "post", e.rdoRefListByPage = "post", e.export = "post", e.import = "post", e.rdoExport = "post", e.rdoImport = "post", e.biz_search = "post", e;
|
|
648
|
+
}({}), ar = /* @__PURE__ */ function(e) {
|
|
649
|
+
return e.WEB = "web", e.PDA = "pda", e.PAD = "pad", e;
|
|
650
|
+
}({}), or = /* @__PURE__ */ function(e) {
|
|
651
|
+
return e["--"] = "--", e.empty = "(空)", e.null = "null", e["N/A"] = "N/A", e.noDisplay = "", e;
|
|
652
|
+
}({}), sr = /* @__PURE__ */ function(e) {
|
|
653
|
+
return e.STRING = "String", e.INTEGER = "Integer", e.LONG = "Long", e.FLOAT = "Float", e.BOOLEAN = "Boolean", e.DATE = "Date", e;
|
|
654
|
+
}({}), N = /* @__PURE__ */ function(e) {
|
|
655
|
+
return e.BASIC = "BASE_CFG", e.WATERMARK = "MARK_CFG", e.SECURITY = "SECURITY_CFG", e.LOGIN = "LOGIN_CFG", e.THEME = "THEME_CFG", e.ORGANIZATION = "ORG_CFG", e.APK = "APK_CFG", e.DEPLOY = "DEPLOY_CFG", e.GLOBAL = "GLOBAL_CFG", e;
|
|
656
|
+
}({}), cr = /* @__PURE__ */ function(e) {
|
|
657
|
+
return e.SIDEBAR = "sidebar", e.MIX_SIDEBAR = "mix-sidebar", e.MIX = "mix", e.TOP_MENU = "top-menu", e;
|
|
658
|
+
}({}), lr = /* @__PURE__ */ function(e) {
|
|
659
|
+
return e.NONE = "NONE", e.FOOTER = "FOOTER", e.HEADER = "HEADER", e;
|
|
660
|
+
}({}), ur = /* @__PURE__ */ function(e) {
|
|
661
|
+
return e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e.VERTICAL_RIGHT = "vertical-right", e.INLINE = "inline", e;
|
|
662
|
+
}({}), dr = /* @__PURE__ */ function(e) {
|
|
663
|
+
return e[e.NONE = 0] = "NONE", e[e.TOP = 1] = "TOP", e[e.LEFT = 2] = "LEFT", e;
|
|
664
|
+
}({}), fr = /* @__PURE__ */ function(e) {
|
|
665
|
+
return e.CENTER = "center", e.START = "start", e.END = "end", e;
|
|
666
|
+
}({}), pr = /* @__PURE__ */ function(e) {
|
|
667
|
+
return e.HOVER = "hover", e.CLICK = "click", e;
|
|
668
|
+
}({}), mr = /* @__PURE__ */ function(e) {
|
|
669
|
+
return e.BASE_LOGIN = "/login", e.BASE_TENANT = "/tenant", e.BASE_HOME = "/home", e.USER_CENTER = "/user-center", e.PROCESS_CENTER = "/process", e.MESSAGE_CENTER = "/message", e.ERROR_PAGE = "/exception", e.ERROR_LOG_PAGE = "/error-log/list", e.USER_CENTER_PWD = "/user-center/password", e;
|
|
670
|
+
}({}), hr = /* @__PURE__ */ function(e) {
|
|
671
|
+
return e.SUPER = "super", e.TEST = "test", e;
|
|
672
|
+
}({}), gr = /* @__PURE__ */ function(e) {
|
|
673
|
+
return e.DEFAULT = "default", e.SMALL = "small", e.LARGE = "large", e;
|
|
674
|
+
}({}), P = /* @__PURE__ */ function(e) {
|
|
675
|
+
return e.JPG = "jpg", e.JPEG = "jpeg", e.PNG = "png", e.BMP = "bmp", e.DOCX = "docx", e.PDF = "pdf", e.XLSX = "xlsx", e.DOC = "doc", e.MP4 = "mp4", e.AVI = "avi", e.PPT = "ppt", e.GIF = "gif", e.CER = "cer", e;
|
|
676
|
+
}({}), F = /* @__PURE__ */ function(e) {
|
|
677
|
+
return e.APPROVING = "APPROVING", e.COMPLETED = "COMPLETED", e.REFUSED = "REFUSED", e.REJECTED = "REJECTED", e.TERMINATED = "TERMINATED", e.WITHDRAWN = "WITHDRAWN", e;
|
|
678
|
+
}({}), _r = {
|
|
679
|
+
[F.APPROVING]: "sys.process.status.approving",
|
|
680
|
+
[F.COMPLETED]: "sys.process.status.completed",
|
|
681
|
+
[F.REFUSED]: "sys.process.status.refused",
|
|
682
|
+
[F.REJECTED]: "sys.process.status.rejected",
|
|
683
|
+
[F.TERMINATED]: "sys.process.status.terminated",
|
|
684
|
+
[F.WITHDRAWN]: "sys.process.status.withdrawn"
|
|
685
|
+
}, vr = /* @__PURE__ */ function(e) {
|
|
686
|
+
return e.MY_APPLICATION = "myApplication", e.MY_AGENT = "myAgent", e.MY_DONE = "myDone", e.MY_CUSTOM = "myCustom", e.MY_CUSTOM_Modal = "myCustomModal", e;
|
|
687
|
+
}({}), yr = /* @__PURE__ */ function(e) {
|
|
688
|
+
return e.Resubmit = "Resubmit", e.End = "Terminate", e.Withdraw = "Withdraw", e.Approve = "Approve", e.Refuse = "Refuse", e.Reassign = "Reassign", e.Countersign = "Countersign", e.Reject = "Reject", e;
|
|
689
|
+
}({}), br = /* @__PURE__ */ function(e) {
|
|
690
|
+
return e.Required = "Required", e.Optional = "Optional", e.ApproveRequired = "ApproveRequired", e.RefuseRequired = "RefuseRequired", e.ReassignRequired = "ReassignRequired", e.RejectRequired = "RejectRequired", e.CountersignRequired = "CountersignRequired", e;
|
|
691
|
+
}({}), xr = /* @__PURE__ */ function(e) {
|
|
692
|
+
return e.BpmnStart = "bpmnStart", e.BpmnSubmit = "bpmnSubmit", e.BpmnApproval = "bpmnApproval", e.BpmnEnd = "bpmnEnd", e.BpmnExclusive = "bpmnExclusive", e.BpmnJs = "bpmnJs", e.BpmnMessage = "bpmnMessage", e.BpmnParallel = "bpmnParallel", e.BpmnJoin = "bpmnJoin", e.BpmnForm = "bpmnForm", e.BpmnBusiness = "bpmnBusiness", e;
|
|
693
|
+
}({}), Sr = /* @__PURE__ */ function(e) {
|
|
694
|
+
return e.DESIGN = "design", e.WEB = "web", e.MOBILE = "mobile", e;
|
|
695
|
+
}({}), I = /* @__PURE__ */ function(e) {
|
|
696
|
+
return e[e.SEARCH = 0] = "SEARCH", e[e.FIELD_DISPLAY = 1] = "FIELD_DISPLAY", e[e.EXPORT_TEMPLATE = 2] = "EXPORT_TEMPLATE", e[e.DISPLAY_RULE = 3] = "DISPLAY_RULE", e[e.PROCESS_TITLE = 4] = "PROCESS_TITLE", e[e.GATEWAY_RULE = 5] = "GATEWAY_RULE", e[e.CREATE_FIELD = 6] = "CREATE_FIELD", e[e.PAAS_CREATE_FIELD = 7] = "PAAS_CREATE_FIELD", e[e.ENTITY_FORMULA = 8] = "ENTITY_FORMULA", e[e.IPAAS_BACK = 9] = "IPAAS_BACK", e[e.LABEL_PRINT = 10] = "LABEL_PRINT", e[e.NOCODE_BPMN_RULE = 11] = "NOCODE_BPMN_RULE", e[e.PAAS_BPMN_RULE = 12] = "PAAS_BPMN_RULE", e[e.ONLINE_FORM_FIELD_FORMULA = 13] = "ONLINE_FORM_FIELD_FORMULA", e[e.MEDPRO_BUSINESSFLOW = 14] = "MEDPRO_BUSINESSFLOW", e[e.RUN_FORMULA = 15] = "RUN_FORMULA", e[e.BI_FORMULA = 16] = "BI_FORMULA", e[e.DATA_SET_FORMULA = 17] = "DATA_SET_FORMULA", e;
|
|
697
|
+
}({}), L = /* @__PURE__ */ function(e) {
|
|
698
|
+
return e.FUNCTION = "function", e.FORM = "form", e.FIELD = "field", e.VARIABLE = "variable", e.NODE = "node", e.OPERATOR = "operator", e;
|
|
699
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
700
|
+
return e.ARITHMETIC = "arithmetic", e.RELATIONSHIP = "relationship", e.LOGIC = "logic", e.OTHER = "other", e;
|
|
701
|
+
}({}), Cr = /* @__PURE__ */ function(e) {
|
|
702
|
+
return e.INNER_VAR = "INNER_VAR", e.SYSTEM_VAR = "SYSTEM_VAR", e.GLOBAL_VAR = "GLOBAL_VAR", e.PAGE_VAR = "PAGE_VAR", e;
|
|
703
|
+
}({}), wr = /* @__PURE__ */ function(e) {
|
|
704
|
+
return e.String = "string", e.Number = "number", e.Boolean = "boolean", e;
|
|
705
|
+
}({}), Tr = /* @__PURE__ */ function(e) {
|
|
706
|
+
return e.String = "string", e.Double = "number", e;
|
|
707
|
+
}({}), Er = /* @__PURE__ */ function(e) {
|
|
708
|
+
return e.Text = "text", e.LongText = "long_text", e.Int = "integer", e.Long = "long", e.Double = "decimal", e.Boolen = "boolean", e;
|
|
709
|
+
}({}), Dr = /* @__PURE__ */ function(e) {
|
|
710
|
+
return e.Prefix = "", e;
|
|
711
|
+
}({}), Or = "", kr = /* @__PURE__ */ function(e) {
|
|
712
|
+
return e.EDHR_FORM_INST_MULTI_PERSON_EDIT_BREAK = "FORM_INST_MULTI_PERSON_EDIT_BREAK", e.EDHR_FORM_INST_MULTI_PERSON_EDIT_UNLOCK = "FORM_INST_MULTI_PERSON_EDIT_UNLOCK", e;
|
|
713
|
+
}({}), Ar = /* @__PURE__ */ function(e) {
|
|
714
|
+
return e.SELECT_ID = "$VAR_GCT_SELECT_ID", e;
|
|
715
|
+
}({}), jr = class {
|
|
716
|
+
context = {
|
|
717
|
+
aid: "",
|
|
718
|
+
bid: "",
|
|
719
|
+
pid: "",
|
|
720
|
+
platform: kt.WEB
|
|
721
|
+
};
|
|
722
|
+
globalSetting = { emptyDisplay: "--" };
|
|
723
|
+
appInfo = {};
|
|
724
|
+
userInfo = {};
|
|
725
|
+
projectName = De.PORTAL;
|
|
726
|
+
}, Mr = new class {
|
|
727
|
+
_loadedSet = /* @__PURE__ */ new Set();
|
|
728
|
+
_pendingMap = /* @__PURE__ */ new Map();
|
|
729
|
+
load(e) {
|
|
730
|
+
if (this._loadedSet.has(e)) return Promise.resolve();
|
|
731
|
+
if (this._pendingMap.has(e)) return this._pendingMap.get(e);
|
|
732
|
+
if (typeof document < "u" && document.querySelector(`link[rel="stylesheet"][href="${CSS.escape ? CSS.escape(e) : e}"]`)) return this._loadedSet.add(e), Promise.resolve();
|
|
733
|
+
let t = new Promise((t, n) => {
|
|
734
|
+
if (typeof document > "u") {
|
|
735
|
+
n(/* @__PURE__ */ Error(`[CssLoader] 当前环境不支持 DOM,无法加载 CSS: ${e}`));
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
let r = document.createElement("link");
|
|
739
|
+
r.rel = "stylesheet", r.type = "text/css", r.href = e;
|
|
740
|
+
let i = () => {
|
|
741
|
+
o(), this._loadedSet.add(e), this._pendingMap.delete(e), t();
|
|
742
|
+
}, a = () => {
|
|
743
|
+
o(), this._pendingMap.delete(e), n(/* @__PURE__ */ Error(`[CssLoader] CSS 文件加载失败: ${e}`));
|
|
744
|
+
}, o = () => {
|
|
745
|
+
r.removeEventListener("load", i), r.removeEventListener("error", a);
|
|
746
|
+
};
|
|
747
|
+
r.addEventListener("load", i), r.addEventListener("error", a), document.head.appendChild(r);
|
|
748
|
+
});
|
|
749
|
+
return this._pendingMap.set(e, t), t;
|
|
750
|
+
}
|
|
751
|
+
async loadBatch(e) {
|
|
752
|
+
await Promise.all(e.map((e) => this.load(e)));
|
|
753
|
+
}
|
|
754
|
+
}(), Nr = (...e) => Pr.bind(null, ...e);
|
|
755
|
+
function Pr(e, ...t) {
|
|
756
|
+
let n = typeof t == "object" ? r.stringify(t) : t, i = Fr.get(n);
|
|
757
|
+
return i || (i = (async () => {
|
|
758
|
+
try {
|
|
759
|
+
return await e(...t);
|
|
760
|
+
} catch (e) {
|
|
761
|
+
throw Fr.delete(n), e;
|
|
762
|
+
}
|
|
763
|
+
})(), Fr.set(n, i, 3e5), i);
|
|
764
|
+
}
|
|
765
|
+
var Fr = class {
|
|
766
|
+
static cachedata = {};
|
|
767
|
+
static set(e, t, n) {
|
|
768
|
+
this.cachedata[e] = {
|
|
769
|
+
maxAge: n || 0,
|
|
770
|
+
value: t,
|
|
771
|
+
now: Date.now()
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
static get(e) {
|
|
775
|
+
this.reset();
|
|
776
|
+
let t = this.cachedata[e];
|
|
777
|
+
return t ? t.value : null;
|
|
778
|
+
}
|
|
779
|
+
static delete(e) {
|
|
780
|
+
return delete this.cachedata[e];
|
|
781
|
+
}
|
|
782
|
+
static clear() {
|
|
783
|
+
this.cachedata = {};
|
|
784
|
+
}
|
|
785
|
+
static reset() {
|
|
786
|
+
for (let e in this.cachedata) {
|
|
787
|
+
let t = this.cachedata[e];
|
|
788
|
+
t && Date.now() - t.now > t.maxAge && this.delete(e);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}, Ir = class {
|
|
792
|
+
configs = /* @__PURE__ */ new Map();
|
|
793
|
+
cache = /* @__PURE__ */ new Map();
|
|
794
|
+
getConfig(e) {
|
|
795
|
+
return this.configs.get(e);
|
|
796
|
+
}
|
|
797
|
+
register(e) {
|
|
798
|
+
this.configs.set(e.tag, e), e.items && this.cache.set(e.tag, e.items);
|
|
799
|
+
}
|
|
800
|
+
unregister(e) {
|
|
801
|
+
this.configs.delete(e), this.cache.delete(e);
|
|
802
|
+
}
|
|
803
|
+
get(e) {
|
|
804
|
+
return this.cache.get(e) || [];
|
|
805
|
+
}
|
|
806
|
+
async asyncGet(e, t) {
|
|
807
|
+
let n = this.configs.get(e);
|
|
808
|
+
return n ? n.mode === "static" ? this.getByConfig(n) : n.mode === "async" ? this.cache.has(e) ? this.cache.get(e) || [] : this.asyncGetByConfig(n, t) : [] : [];
|
|
809
|
+
}
|
|
810
|
+
getByConfig(e) {
|
|
811
|
+
return e.items || [];
|
|
812
|
+
}
|
|
813
|
+
async asyncGetByConfig(e, t = {}) {
|
|
814
|
+
if (e.fetch) {
|
|
815
|
+
let n = await e.fetch(t || {});
|
|
816
|
+
if (n) {
|
|
817
|
+
let [t, r] = e.keys || ["name", "id"];
|
|
818
|
+
return this.deepFormat(n, t, r);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
return [];
|
|
822
|
+
}
|
|
823
|
+
deepFormat(e, t, n) {
|
|
824
|
+
return e.map((e) => {
|
|
825
|
+
let r = {
|
|
826
|
+
label: e[t],
|
|
827
|
+
value: e[n]
|
|
828
|
+
};
|
|
829
|
+
return e.children && e.children.length > 0 && (r.options = this.deepFormat(e.children, t, n)), r;
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
}, z = (...e) => _gct.i18n.global.t(...e), Lr = class {
|
|
833
|
+
data;
|
|
834
|
+
next;
|
|
835
|
+
prev;
|
|
836
|
+
constructor(e, t = null, n = null) {
|
|
837
|
+
this.data = e, this.next = t, this.prev = n;
|
|
838
|
+
}
|
|
839
|
+
clear() {
|
|
840
|
+
this.data = null, this.next = null, this.prev = null;
|
|
841
|
+
}
|
|
842
|
+
}, Rr = class {
|
|
843
|
+
active = null;
|
|
844
|
+
add(e) {
|
|
845
|
+
if (!this.active) this.active = new Lr(e);
|
|
846
|
+
else {
|
|
847
|
+
if (this.active.next) {
|
|
848
|
+
let e = this.active.next;
|
|
849
|
+
for (; e;) e = e.next, e && e.clear();
|
|
850
|
+
}
|
|
851
|
+
let t = new Lr(e, null, this.active);
|
|
852
|
+
this.active.next = t, this.active = t;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
delete(e) {
|
|
856
|
+
let { prev: t, next: n } = e;
|
|
857
|
+
t && (t.next = n), n && (n.prev = t), e.clear();
|
|
858
|
+
}
|
|
859
|
+
prev() {
|
|
860
|
+
this.active && this.active.prev && (this.active = this.active.prev);
|
|
861
|
+
}
|
|
862
|
+
next() {
|
|
863
|
+
this.active && this.active.next && (this.active = this.active.next);
|
|
864
|
+
}
|
|
865
|
+
clearAll() {
|
|
866
|
+
if (this.active) {
|
|
867
|
+
let e = this.active.prev, t = this.active.next;
|
|
868
|
+
for (; e;) e.clear(), e = e.prev;
|
|
869
|
+
for (; t;) t.clear(), t = t.next;
|
|
870
|
+
this.active.clear();
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
canUndo() {
|
|
874
|
+
return !!this.active && !!this.active.prev;
|
|
875
|
+
}
|
|
876
|
+
canRedo() {
|
|
877
|
+
return !!this.active && !!this.active.next;
|
|
878
|
+
}
|
|
879
|
+
}, zr = function(e, t = "") {
|
|
880
|
+
let n = document.getElementsByTagName("head")[0], r = document.getElementById("gct-custom-css" + t);
|
|
881
|
+
r && n.removeChild(r);
|
|
882
|
+
let i = document.createElement("style");
|
|
883
|
+
i.id = "gct-custom-css" + t, i.type = "text/css", s(t) ? i.innerHTML = e : i.innerHTML = `#${t}{${e}}`, n.appendChild(i);
|
|
884
|
+
};
|
|
885
|
+
//#endregion
|
|
886
|
+
//#region src/utils/lowcode/validate.ts
|
|
887
|
+
function Br(e) {
|
|
888
|
+
let t = [];
|
|
889
|
+
if (e.required && t.push({
|
|
890
|
+
required: !0,
|
|
891
|
+
message: z("sys.notNull")
|
|
892
|
+
}), e.reg) {
|
|
893
|
+
let { reg: n, regHint: r } = e, i = new RegExp(n);
|
|
894
|
+
t.push({
|
|
895
|
+
validator: (e) => i.test(e),
|
|
896
|
+
message: r ?? z("sys.regError")
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
let n = e.validateFn;
|
|
900
|
+
return n && t.push({ validator: n }), t;
|
|
901
|
+
}
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region ../../node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs
|
|
904
|
+
function Vr(e) {
|
|
905
|
+
return {
|
|
906
|
+
all: e ||= /* @__PURE__ */ new Map(),
|
|
907
|
+
on: function(t, n) {
|
|
908
|
+
var r = e.get(t);
|
|
909
|
+
r ? r.push(n) : e.set(t, [n]);
|
|
910
|
+
},
|
|
911
|
+
off: function(t, n) {
|
|
912
|
+
var r = e.get(t);
|
|
913
|
+
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
914
|
+
},
|
|
915
|
+
emit: function(t, n) {
|
|
916
|
+
var r = e.get(t);
|
|
917
|
+
r && r.slice().map(function(e) {
|
|
918
|
+
e(n);
|
|
919
|
+
}), (r = e.get("*")) && r.slice().map(function(e) {
|
|
920
|
+
e(t, n);
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
//#endregion
|
|
926
|
+
//#region src/utils/mitt/mitt.ts
|
|
927
|
+
var Hr = Vr(), Ur = new class {
|
|
928
|
+
CACHE_EXPIRATION_TIME = 600 * 1e3;
|
|
929
|
+
modelCache = /* @__PURE__ */ new Map();
|
|
930
|
+
modelLoadingCache = /* @__PURE__ */ new Map();
|
|
931
|
+
modelsLoadingCache = /* @__PURE__ */ new Map();
|
|
932
|
+
enumCache = /* @__PURE__ */ new Map();
|
|
933
|
+
enumLoadingCache = /* @__PURE__ */ new Map();
|
|
934
|
+
queryRefDataCache = /* @__PURE__ */ new Map();
|
|
935
|
+
queryRefDataLoadingCache = /* @__PURE__ */ new Map();
|
|
936
|
+
isExpired(e) {
|
|
937
|
+
return Date.now() > e.expiresAt;
|
|
938
|
+
}
|
|
939
|
+
createCacheEntry(e) {
|
|
940
|
+
return {
|
|
941
|
+
data: e,
|
|
942
|
+
expiresAt: Date.now() + this.CACHE_EXPIRATION_TIME
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
async loadModel(e) {
|
|
946
|
+
if (this.modelCache.has(e)) {
|
|
947
|
+
let t = this.modelCache.get(e);
|
|
948
|
+
if (!this.isExpired(t)) return t.data;
|
|
949
|
+
this.modelCache.delete(e);
|
|
950
|
+
}
|
|
951
|
+
if (this.modelLoadingCache.has(e)) return this.modelLoadingCache.get(e);
|
|
952
|
+
let t = (async () => {
|
|
953
|
+
try {
|
|
954
|
+
let t = await _api.apaas.modelMeta.getDetail({ modelKey: e });
|
|
955
|
+
return t ? (this.modelCache.set(e, this.createCacheEntry(t)), t) : {};
|
|
956
|
+
} finally {
|
|
957
|
+
this.modelLoadingCache.delete(e);
|
|
958
|
+
}
|
|
959
|
+
})();
|
|
960
|
+
return this.modelLoadingCache.set(e, t), t;
|
|
961
|
+
}
|
|
962
|
+
async loadModels(e) {
|
|
963
|
+
let t = e.join(",");
|
|
964
|
+
if (e.every((e) => {
|
|
965
|
+
let t = this.modelCache.get(e);
|
|
966
|
+
return t && !this.isExpired(t);
|
|
967
|
+
})) return e.map((e) => this.modelCache.get(e).data);
|
|
968
|
+
if (e.forEach((e) => {
|
|
969
|
+
let t = this.modelCache.get(e);
|
|
970
|
+
t && this.isExpired(t) && this.modelCache.delete(e);
|
|
971
|
+
}), this.modelsLoadingCache.has(t)) return this.modelsLoadingCache.get(t);
|
|
972
|
+
let n = (async () => {
|
|
973
|
+
try {
|
|
974
|
+
let t = e.filter((e) => !this.modelCache.has(e));
|
|
975
|
+
if (t.length > 0) {
|
|
976
|
+
let e = await _api.apaas.modelMeta.getByKeys({ modelKeys: t.join(",") });
|
|
977
|
+
e && e.length > 0 && e.forEach((e) => {
|
|
978
|
+
this.modelCache.set(e.key, this.createCacheEntry(e)), e.fieldMetaList = e.fieldMetas || [];
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
return e.map((e) => this.modelCache.get(e).data);
|
|
982
|
+
} finally {
|
|
983
|
+
this.modelsLoadingCache.delete(t);
|
|
984
|
+
}
|
|
985
|
+
})();
|
|
986
|
+
return this.modelsLoadingCache.set(t, n), n;
|
|
987
|
+
}
|
|
988
|
+
async loadField(e, t) {
|
|
989
|
+
let n = await this.loadModel(e);
|
|
990
|
+
if (n?.fieldMetaList) return n.fieldMetaList.find((e) => e.key === t);
|
|
991
|
+
}
|
|
992
|
+
async loadFieldPaths(e, t, n) {
|
|
993
|
+
if (!n) return [];
|
|
994
|
+
let r = [], i = !!n.bindFieldKey, a = i ? n.modelLink || [n.belongModelKey, n.bindModelKey] : [n.modelKey], o = await this.loadModels(a);
|
|
995
|
+
if (i) r.push(...o.map((e) => e.name));
|
|
996
|
+
else {
|
|
997
|
+
let e = await this.loadModel(n.modelKey);
|
|
998
|
+
e && r.push(e.name);
|
|
999
|
+
}
|
|
1000
|
+
let s = await this.loadModel(e);
|
|
1001
|
+
if (s?.fieldMetaList) {
|
|
1002
|
+
let e = s.fieldMetaList.find((e) => e.key === t);
|
|
1003
|
+
e && r.push(e.name);
|
|
1004
|
+
}
|
|
1005
|
+
return r;
|
|
1006
|
+
}
|
|
1007
|
+
async loadEnumList(e, t, n = Xe.ENTITY) {
|
|
1008
|
+
let r = `${n}:${e}:${t}`;
|
|
1009
|
+
if (this.enumCache.has(r)) {
|
|
1010
|
+
let e = this.enumCache.get(r);
|
|
1011
|
+
if (!this.isExpired(e)) return i(e.data);
|
|
1012
|
+
this.enumCache.delete(r), this.enumLoadingCache.delete(r);
|
|
1013
|
+
}
|
|
1014
|
+
if (this.enumLoadingCache.has(r)) return this.enumLoadingCache.get(r);
|
|
1015
|
+
let a = (async () => {
|
|
1016
|
+
try {
|
|
1017
|
+
return [];
|
|
1018
|
+
} finally {
|
|
1019
|
+
this.enumLoadingCache.delete(r);
|
|
1020
|
+
}
|
|
1021
|
+
})();
|
|
1022
|
+
return this.enumLoadingCache.set(r, a), a;
|
|
1023
|
+
}
|
|
1024
|
+
async loadQueryRefData(e) {
|
|
1025
|
+
if (!e || !e.modelKey) throw Error("queryRefData 参数缺失");
|
|
1026
|
+
let t = JSON.stringify(e);
|
|
1027
|
+
if (this.queryRefDataCache.has(t)) {
|
|
1028
|
+
let e = this.queryRefDataCache.get(t);
|
|
1029
|
+
if (!this.isExpired(e)) return i(e.data);
|
|
1030
|
+
this.queryRefDataCache.delete(t), this.queryRefDataLoadingCache.delete(t);
|
|
1031
|
+
}
|
|
1032
|
+
if (this.queryRefDataLoadingCache.has(t)) return this.queryRefDataLoadingCache.get(t);
|
|
1033
|
+
let n = (async () => {
|
|
1034
|
+
try {
|
|
1035
|
+
let n = await _api.apaas.modelData.postQueryRefData(e);
|
|
1036
|
+
return n ? (this.queryRefDataCache.set(t, this.createCacheEntry(n)), i(n)) : {};
|
|
1037
|
+
} finally {
|
|
1038
|
+
this.queryRefDataLoadingCache.delete(t);
|
|
1039
|
+
}
|
|
1040
|
+
})();
|
|
1041
|
+
return this.queryRefDataLoadingCache.set(t, n), n;
|
|
1042
|
+
}
|
|
1043
|
+
getCachedModel(e) {
|
|
1044
|
+
let t = this.modelCache.get(e);
|
|
1045
|
+
if (t && !this.isExpired(t)) return t.data;
|
|
1046
|
+
t && this.isExpired(t) && this.modelCache.delete(e);
|
|
1047
|
+
}
|
|
1048
|
+
clear(e) {
|
|
1049
|
+
this.modelCache.delete(e), this.modelLoadingCache.delete(e);
|
|
1050
|
+
let t = [];
|
|
1051
|
+
this.modelsLoadingCache.forEach((n, r) => {
|
|
1052
|
+
r.includes(e) && t.push(r);
|
|
1053
|
+
}), t.forEach((e) => {
|
|
1054
|
+
this.modelsLoadingCache.delete(e);
|
|
1055
|
+
});
|
|
1056
|
+
let n = [];
|
|
1057
|
+
this.enumCache.forEach((t, r) => {
|
|
1058
|
+
r.includes(e) && n.push(r);
|
|
1059
|
+
}), n.forEach((e) => {
|
|
1060
|
+
this.enumCache.delete(e), this.enumLoadingCache.delete(e);
|
|
1061
|
+
});
|
|
1062
|
+
let r = [];
|
|
1063
|
+
this.queryRefDataCache.forEach((t, n) => {
|
|
1064
|
+
n.includes(`"modelKey":"${e}"`) && r.push(n);
|
|
1065
|
+
}), r.forEach((e) => {
|
|
1066
|
+
this.queryRefDataCache.delete(e), this.queryRefDataLoadingCache.delete(e);
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
clearAll() {
|
|
1070
|
+
this.modelCache.clear(), this.modelLoadingCache.clear(), this.modelsLoadingCache.clear(), this.enumCache.clear(), this.enumLoadingCache.clear(), this.queryRefDataCache.clear(), this.queryRefDataLoadingCache.clear();
|
|
1071
|
+
}
|
|
1072
|
+
keys() {
|
|
1073
|
+
return Array.from(this.modelCache.keys());
|
|
1074
|
+
}
|
|
1075
|
+
}(), Wr = {
|
|
1076
|
+
[I.EXPORT_TEMPLATE]: ["CONCAT"],
|
|
1077
|
+
[I.PROCESS_TITLE]: ["CONCAT"],
|
|
1078
|
+
[I.SEARCH]: ["AND", "OR"],
|
|
1079
|
+
[I.GATEWAY_RULE]: [
|
|
1080
|
+
"IF",
|
|
1081
|
+
"AND",
|
|
1082
|
+
"OR",
|
|
1083
|
+
"EQ",
|
|
1084
|
+
"NE",
|
|
1085
|
+
"LE",
|
|
1086
|
+
"LT",
|
|
1087
|
+
"GE",
|
|
1088
|
+
"GT"
|
|
1089
|
+
],
|
|
1090
|
+
[I.NOCODE_BPMN_RULE]: [
|
|
1091
|
+
"IF",
|
|
1092
|
+
"AND",
|
|
1093
|
+
"OR",
|
|
1094
|
+
"EQ",
|
|
1095
|
+
"NE",
|
|
1096
|
+
"LE",
|
|
1097
|
+
"LT",
|
|
1098
|
+
"GE",
|
|
1099
|
+
"GT",
|
|
1100
|
+
"ISNULL",
|
|
1101
|
+
"ISEMPTY"
|
|
1102
|
+
],
|
|
1103
|
+
[I.PAAS_BPMN_RULE]: [
|
|
1104
|
+
"IF",
|
|
1105
|
+
"AND",
|
|
1106
|
+
"OR",
|
|
1107
|
+
"EQ",
|
|
1108
|
+
"NE",
|
|
1109
|
+
"LE",
|
|
1110
|
+
"LT",
|
|
1111
|
+
"GE",
|
|
1112
|
+
"GT"
|
|
1113
|
+
],
|
|
1114
|
+
[I.MEDPRO_BUSINESSFLOW]: [
|
|
1115
|
+
"IF",
|
|
1116
|
+
"AND",
|
|
1117
|
+
"OR",
|
|
1118
|
+
"EQ",
|
|
1119
|
+
"NE",
|
|
1120
|
+
"LE",
|
|
1121
|
+
"LT",
|
|
1122
|
+
"GE",
|
|
1123
|
+
"GT"
|
|
1124
|
+
],
|
|
1125
|
+
[I.ENTITY_FORMULA]: /* @__PURE__ */ "IF.ISEMPTY.ISNULL.AND.OR.EQ.NE.LE.LT.GE.GT.PARSENUMBER.CONCAT.SPLIT.SUM.REDUCE.MULTIPLICATION.DIVISION.FIXED.ROUND.ROUNDUP.MAX.LARGE.MIN.SMALL.AVERAGE.ABS.MOD.POWER.SQRT.YEAR.MONTH.DAY.HOUR.MINUTE.TUPLE.SEQMAP.SUMSQ".split("."),
|
|
1126
|
+
[I.LABEL_PRINT]: /* @__PURE__ */ "IF.ISEMPTY.ISNULL.AND.OR.EQ.NE.LE.LT.GE.GT.PARSENUMBER.CONCAT.SPLIT.SUM.REDUCE.MULTIPLICATION.DIVISION.FIXED.ROUND.ROUNDUP.MAX.LARGE.MIN.SMALL.AVERAGE.ABS.MOD.POWER.SQRT.DATEFORMAT.YEAR.MONTH.DAY.HOUR.MINUTE.TUPLE.SEQMAP.SUMSQ".split(".")
|
|
1127
|
+
}, Gr = {
|
|
1128
|
+
[I.EXPORT_TEMPLATE]: [
|
|
1129
|
+
L.FIELD,
|
|
1130
|
+
L.FUNCTION,
|
|
1131
|
+
L.VARIABLE,
|
|
1132
|
+
L.OPERATOR
|
|
1133
|
+
],
|
|
1134
|
+
[I.PROCESS_TITLE]: [
|
|
1135
|
+
L.FIELD,
|
|
1136
|
+
L.FUNCTION,
|
|
1137
|
+
L.VARIABLE,
|
|
1138
|
+
L.OPERATOR
|
|
1139
|
+
],
|
|
1140
|
+
[I.GATEWAY_RULE]: [
|
|
1141
|
+
L.FIELD,
|
|
1142
|
+
L.FUNCTION,
|
|
1143
|
+
L.OPERATOR
|
|
1144
|
+
],
|
|
1145
|
+
[I.NOCODE_BPMN_RULE]: [
|
|
1146
|
+
L.FIELD,
|
|
1147
|
+
L.FUNCTION,
|
|
1148
|
+
L.NODE,
|
|
1149
|
+
L.VARIABLE,
|
|
1150
|
+
L.OPERATOR
|
|
1151
|
+
],
|
|
1152
|
+
[I.PAAS_BPMN_RULE]: [
|
|
1153
|
+
L.FIELD,
|
|
1154
|
+
L.FUNCTION,
|
|
1155
|
+
L.OPERATOR
|
|
1156
|
+
],
|
|
1157
|
+
[I.SEARCH]: [
|
|
1158
|
+
L.FIELD,
|
|
1159
|
+
L.FUNCTION,
|
|
1160
|
+
L.VARIABLE,
|
|
1161
|
+
L.OPERATOR
|
|
1162
|
+
],
|
|
1163
|
+
[I.FIELD_DISPLAY]: [
|
|
1164
|
+
L.FIELD,
|
|
1165
|
+
L.FUNCTION,
|
|
1166
|
+
L.VARIABLE,
|
|
1167
|
+
L.OPERATOR
|
|
1168
|
+
],
|
|
1169
|
+
[I.DISPLAY_RULE]: [
|
|
1170
|
+
L.FIELD,
|
|
1171
|
+
L.FUNCTION,
|
|
1172
|
+
L.VARIABLE,
|
|
1173
|
+
L.OPERATOR
|
|
1174
|
+
],
|
|
1175
|
+
[I.CREATE_FIELD]: [
|
|
1176
|
+
L.FIELD,
|
|
1177
|
+
L.FUNCTION,
|
|
1178
|
+
L.VARIABLE,
|
|
1179
|
+
L.OPERATOR
|
|
1180
|
+
],
|
|
1181
|
+
[I.DATA_SET_FORMULA]: [
|
|
1182
|
+
L.FIELD,
|
|
1183
|
+
L.FUNCTION,
|
|
1184
|
+
L.OPERATOR
|
|
1185
|
+
],
|
|
1186
|
+
[I.PAAS_CREATE_FIELD]: [
|
|
1187
|
+
L.FIELD,
|
|
1188
|
+
L.FUNCTION,
|
|
1189
|
+
L.VARIABLE,
|
|
1190
|
+
L.OPERATOR
|
|
1191
|
+
],
|
|
1192
|
+
[I.ENTITY_FORMULA]: [
|
|
1193
|
+
L.FIELD,
|
|
1194
|
+
L.FUNCTION,
|
|
1195
|
+
L.VARIABLE,
|
|
1196
|
+
L.OPERATOR
|
|
1197
|
+
],
|
|
1198
|
+
[I.IPAAS_BACK]: [L.FUNCTION, L.OPERATOR],
|
|
1199
|
+
[I.LABEL_PRINT]: [
|
|
1200
|
+
L.FIELD,
|
|
1201
|
+
L.FUNCTION,
|
|
1202
|
+
L.VARIABLE,
|
|
1203
|
+
L.OPERATOR
|
|
1204
|
+
],
|
|
1205
|
+
[I.ONLINE_FORM_FIELD_FORMULA]: [
|
|
1206
|
+
L.FIELD,
|
|
1207
|
+
L.FUNCTION,
|
|
1208
|
+
L.VARIABLE,
|
|
1209
|
+
L.OPERATOR
|
|
1210
|
+
],
|
|
1211
|
+
[I.MEDPRO_BUSINESSFLOW]: [
|
|
1212
|
+
L.FIELD,
|
|
1213
|
+
L.FUNCTION,
|
|
1214
|
+
L.OPERATOR
|
|
1215
|
+
],
|
|
1216
|
+
[I.RUN_FORMULA]: [
|
|
1217
|
+
L.FIELD,
|
|
1218
|
+
L.FUNCTION,
|
|
1219
|
+
L.VARIABLE,
|
|
1220
|
+
L.OPERATOR
|
|
1221
|
+
],
|
|
1222
|
+
[I.BI_FORMULA]: [
|
|
1223
|
+
L.FIELD,
|
|
1224
|
+
L.FUNCTION,
|
|
1225
|
+
L.OPERATOR
|
|
1226
|
+
]
|
|
1227
|
+
}, Kr = {
|
|
1228
|
+
[I.CREATE_FIELD]: wr,
|
|
1229
|
+
[I.DATA_SET_FORMULA]: Tr,
|
|
1230
|
+
[I.PAAS_CREATE_FIELD]: Er,
|
|
1231
|
+
[I.ENTITY_FORMULA]: Er,
|
|
1232
|
+
[I.RUN_FORMULA]: Er
|
|
1233
|
+
}, qr = {
|
|
1234
|
+
[L.FUNCTION]: { icon: "iconfont icon-hanshu1" },
|
|
1235
|
+
[L.FIELD]: { icon: "iconfont icon-ziduan2" },
|
|
1236
|
+
[L.VARIABLE]: { icon: "iconfont icon-bianliang" },
|
|
1237
|
+
[L.NODE]: { icon: "iconfont icon-hanshu1" },
|
|
1238
|
+
[L.OPERATOR]: { icon: "iconfont icon-a-yunsuanfu1" }
|
|
1239
|
+
}, Jr = {
|
|
1240
|
+
"+": {
|
|
1241
|
+
title: "加法: a+b",
|
|
1242
|
+
description: "a,b: 整数,数字",
|
|
1243
|
+
group: R.ARITHMETIC
|
|
1244
|
+
},
|
|
1245
|
+
"-": {
|
|
1246
|
+
title: "减法: a-b",
|
|
1247
|
+
description: "a,b: 整数,数字",
|
|
1248
|
+
group: R.ARITHMETIC
|
|
1249
|
+
},
|
|
1250
|
+
"*": {
|
|
1251
|
+
title: "乘法: a*b",
|
|
1252
|
+
description: "a,b: 整数,数字",
|
|
1253
|
+
group: R.ARITHMETIC
|
|
1254
|
+
},
|
|
1255
|
+
"/": {
|
|
1256
|
+
title: "除法: a/b",
|
|
1257
|
+
description: "a,b: 整数,数字",
|
|
1258
|
+
group: R.ARITHMETIC
|
|
1259
|
+
},
|
|
1260
|
+
"%": {
|
|
1261
|
+
title: "求余: a%b",
|
|
1262
|
+
description: "a,b: 整数,数字",
|
|
1263
|
+
group: R.ARITHMETIC
|
|
1264
|
+
},
|
|
1265
|
+
">": {
|
|
1266
|
+
title: "大于: a>b",
|
|
1267
|
+
description: "a,b: 整数,数字",
|
|
1268
|
+
group: R.RELATIONSHIP
|
|
1269
|
+
},
|
|
1270
|
+
">=": {
|
|
1271
|
+
title: "大于等于: a>=b",
|
|
1272
|
+
description: "a,b: 整数,数字",
|
|
1273
|
+
group: R.RELATIONSHIP
|
|
1274
|
+
},
|
|
1275
|
+
"<": {
|
|
1276
|
+
title: "小于: a<b",
|
|
1277
|
+
description: "a,b: 整数,数字",
|
|
1278
|
+
group: R.RELATIONSHIP
|
|
1279
|
+
},
|
|
1280
|
+
"<=": {
|
|
1281
|
+
title: "小于等于: a<=b",
|
|
1282
|
+
description: "a,b: 整数,数字",
|
|
1283
|
+
group: R.RELATIONSHIP
|
|
1284
|
+
},
|
|
1285
|
+
"==": {
|
|
1286
|
+
title: "等于: a==b",
|
|
1287
|
+
description: "a,b: 整数,数字,布尔,字符串",
|
|
1288
|
+
group: R.RELATIONSHIP
|
|
1289
|
+
},
|
|
1290
|
+
"!=": {
|
|
1291
|
+
title: "不等于: a!=b",
|
|
1292
|
+
description: "a,b: 整数,数字,布尔,字符串",
|
|
1293
|
+
group: R.RELATIONSHIP
|
|
1294
|
+
},
|
|
1295
|
+
"&&": {
|
|
1296
|
+
title: "与: a&&b",
|
|
1297
|
+
description: "a,b: 布尔",
|
|
1298
|
+
group: R.LOGIC
|
|
1299
|
+
},
|
|
1300
|
+
"||": {
|
|
1301
|
+
title: "或: a||b",
|
|
1302
|
+
description: "a,b: 布尔",
|
|
1303
|
+
group: R.LOGIC
|
|
1304
|
+
},
|
|
1305
|
+
"!": {
|
|
1306
|
+
title: "非: !a",
|
|
1307
|
+
description: "a: 布尔",
|
|
1308
|
+
group: R.LOGIC
|
|
1309
|
+
},
|
|
1310
|
+
"?": {
|
|
1311
|
+
title: "判断: a?b:c",
|
|
1312
|
+
description: "若a的值为true,则执行b否则执行c",
|
|
1313
|
+
group: R.OTHER,
|
|
1314
|
+
label: "?:",
|
|
1315
|
+
output: "?:"
|
|
1316
|
+
},
|
|
1317
|
+
"(": {
|
|
1318
|
+
title: "左括号: c-(a+b)",
|
|
1319
|
+
description: "优先运算 () 中的内容",
|
|
1320
|
+
group: R.OTHER
|
|
1321
|
+
},
|
|
1322
|
+
")": {
|
|
1323
|
+
title: "右括号: c-(a+b)",
|
|
1324
|
+
description: "优先运算 () 中的内容",
|
|
1325
|
+
group: R.OTHER
|
|
1326
|
+
}
|
|
1327
|
+
}, Yr = [
|
|
1328
|
+
"+",
|
|
1329
|
+
"-",
|
|
1330
|
+
"*",
|
|
1331
|
+
"/",
|
|
1332
|
+
"%",
|
|
1333
|
+
">",
|
|
1334
|
+
">=",
|
|
1335
|
+
"<",
|
|
1336
|
+
"<="
|
|
1337
|
+
], Xr = [
|
|
1338
|
+
"&&",
|
|
1339
|
+
"||",
|
|
1340
|
+
"!"
|
|
1341
|
+
], Zr = [
|
|
1342
|
+
"==",
|
|
1343
|
+
"!=",
|
|
1344
|
+
"?",
|
|
1345
|
+
":"
|
|
1346
|
+
], Qr = [
|
|
1347
|
+
"&&",
|
|
1348
|
+
"||",
|
|
1349
|
+
"!",
|
|
1350
|
+
"==",
|
|
1351
|
+
"!=",
|
|
1352
|
+
">",
|
|
1353
|
+
">=",
|
|
1354
|
+
"<",
|
|
1355
|
+
"<="
|
|
1356
|
+
], $r = () => {
|
|
1357
|
+
let e = Object.keys(Jr).map((e) => {
|
|
1358
|
+
let { title: t, description: n, group: r, label: i, output: a } = Jr[e];
|
|
1359
|
+
return {
|
|
1360
|
+
name: i ?? e,
|
|
1361
|
+
group: r,
|
|
1362
|
+
desc: `${t}\n${n}`,
|
|
1363
|
+
id: a ?? e
|
|
1364
|
+
};
|
|
1365
|
+
});
|
|
1366
|
+
return [
|
|
1367
|
+
R.ARITHMETIC,
|
|
1368
|
+
R.RELATIONSHIP,
|
|
1369
|
+
R.LOGIC,
|
|
1370
|
+
R.OTHER
|
|
1371
|
+
].map((t) => ({
|
|
1372
|
+
id: t,
|
|
1373
|
+
name: z(`sys.expression.${t}`),
|
|
1374
|
+
children: e.filter((e) => e.group === t),
|
|
1375
|
+
idToChildren: !1
|
|
1376
|
+
}));
|
|
1377
|
+
}, ei = "custom-expression", ti = "custom-expression-theme", ni = [
|
|
1378
|
+
{
|
|
1379
|
+
id: "LOGIC",
|
|
1380
|
+
name: "逻辑",
|
|
1381
|
+
children: [
|
|
1382
|
+
{
|
|
1383
|
+
desc: "IF(expr, a, b)\n根据条件表达式,返回不同的值, 当expr执行为true,返回a, 否则返回b。\n参数 expr: 条件表达式 a: 值 b: 另一个值 返回值 a|b\n示例\nIF(1 > 2, 1, 2); 返回 2",
|
|
1384
|
+
definition: "declare function IF<T>(expr: boolean, v: T, l: T): T;"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
desc: "ISEMPTY(a)\n判断参数a是否为空,a为空则返回true\n参数a支持的类型:String,Array,Object,返回值 true|false\n示例\nISEMPTY('') 返回 true\nISEMPTY(null) 返回 true\nISEMPTY(undefined) 返回 true\nISEMPTY([]) 返回 true\nISEMPTY({}) 返回 true\n",
|
|
1388
|
+
definition: "declare function ISEMPTY<T>(val: T): boolean;"
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
desc: "ISNULL(a)\n 判断参数a是否为null,a为null则返回true\n 示例\n ISNULL('') 返回 false\n ISNULL(null) 返回 true\n ISNULL(undefined) 返回 false",
|
|
1392
|
+
definition: "declare function ISNULL<T>(val: T): Promise<boolean>;"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
desc: "ISUNDEFINED(a)\n 判断参数a是否为undefined,a为undefined则返回true\n 示例\n ISUNDEFINED('') 返回 false\n ISUNDEFINED(null) 返回 false\n ISUNDEFINED(undefined) 返回 true",
|
|
1396
|
+
definition: "declare function ISUNDEFINED<T>(val: T): Promise<boolean>;"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
desc: "AND(conditions): boolean\n 根据一组表达式判断是否为真,只要有一个为false,则返回false\n 参数 conditions: 条件表达式列表 返回值 true|false\n 示例\n IF(AND(1==1,1 > 2,3==3),'正确','错误'); 返回 错误",
|
|
1400
|
+
definition: "declare function AND<T>(...e: T[]): Promise<boolean>;"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
desc: "OR(conditions)\n 根据一组表达式判断是否为真,只要有一个为true,则返回true\n 参数 conditions: 条件表达式数组 返回值 true|false\n 示例\n IF(AND(1==1,1 > 2,3==3),'正确','错误'); 返回 正确",
|
|
1404
|
+
definition: "declare function OR<T>(...e: T[]): Promise<boolean>;"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
desc: "EQ(a, b)\n 比较两个值是否相等,如果相等则返回true\n 参数a/b支持的类型:Number,String ,Boolean , Date , Array , Object,Array及Object比较数值型知否相等,参数 a: 一个值 b: 另一个值 返回值 true|false\n 示例\n EQ(1, 1); 返回 true\n EQ(\"a\", \"c\"); 返回 false\n EQ([1,2,3],[1,2,3]) 返回 true\n EQ({a:1,b:1},{a:1,b:1}) 返回 true",
|
|
1408
|
+
definition: "declare function EQ<T, K>(v: T, o: K): Promise<boolean>;"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
desc: "NE(a, b)\n 比较两个值是否不相等,如果不相等则返回true\n 参数a/b支持的类型:Number,String ,Boolean , Date , Array , Object,Array及Object比较数值型知否不相等, 参数 a: 一个值 b: 另一个值 返回值 true|false\n 示例\n NE(1, 1); 返回 false\n NE(\"a\", \"c\"); 返回 true\n NE([1,2,3],[1,2,3]) 返回 false\n NE({a:1,b:1},{a:1,b:1}) 返回 false",
|
|
1412
|
+
definition: "declare function NE<T>(v: T, o: T): Promise<boolean>;"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
desc: "LE(a, b)\n 比较两个值大小,a小于等于b返回true\n 参数a/b支持的类型:Number,String,Date, 参数 a: 一个值 b: 另一个值 返回值 true|false\n 示例\n LE(1, 1); 返回 true\n LE(2, 1); 返回 false\n LE('2023-07-12',''2023-07-13'') 返回 true\n LE('12:00',''13:00'') 返回 true",
|
|
1416
|
+
definition: "declare function LE<T>(v: T, o: T): Promise<boolean>;"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
desc: "LT(a, b)\n 比较两个值大小,a小于b返回true\n 参数a/b支持的类型:Number,String,Date, 参数 a: 一个值 b: 另一个值 返回值 true|false\n 示例\n LT(1, 1); 返回 false\n LT(1, 2); 返回 true\n LT('2023-07-12',''2023-07-13'') 返回 true\n LT('13:00',''12:00'') 返回 true",
|
|
1420
|
+
definition: "declare function LT<T>(v: T, o: T): Promise<boolean>;"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
desc: "GE(a, b)\n 比较两个值大小,a大于等于b返回true\n 参数a/b支持的类型:Number,String,Date, 参数 a: 一个值 b: 另一个值 返回值 true|false\n 示例\n GE(1, 1); 返回 true\n GE(2, 3); 返回 false\n GE('2023-07-13','2023-07-12') 返回 true\n GE('13:00','12:00') 返回 true",
|
|
1424
|
+
definition: "declare function GE<T>(v: T, o: T): Promise<boolean>;"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
desc: "GT(a, b)\n 比较两个值大小,a大于b返回true\n 参数a/b支持的类型:Number,String,Date, 参数 a: 一个值 b: 另一个值 返回值 true|false\n 示例\n GT(1, 1); 返回 false\n GT(2, 1); 返回 false\n GT('2023-07-13','2023-07-12') 返回 true\n GT('13:00','12:00') 返回 true",
|
|
1428
|
+
definition: "declare function GT<T>(v: T, o: T): Promise<boolean>;"
|
|
1429
|
+
}
|
|
1430
|
+
]
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
id: "STRING",
|
|
1434
|
+
name: "字符串",
|
|
1435
|
+
children: [
|
|
1436
|
+
{
|
|
1437
|
+
desc: "LEN(a)\n 返回字符串长度\n 示例\n LEN('aa'); 返回 2",
|
|
1438
|
+
definition: "declare function LEN(v: string): Promise<number>;"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
desc: "CONCAT(a,b....)\n 拼接参数a和b,返回拼接后的字符串\n 参数a/b支持字符串,返回字符串\n 示例\n CONCAT('a','b','c') 返回abc",
|
|
1442
|
+
definition: "declare function CONCAT(...args: string[]): Promise<string>;"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
desc: "SUBSTRING(str,start,end)\n 截取字符串str,从start开始截取到end,start从0开始,如果start和end为负数表示从最后开始截取,start为-1表示从最后一位开始截取,返回截取的字符串\n 示例\n SUBSTRING('abcd',0,2) 返回abc\n SUBSTRING('abcd',-1,-2) 返回 cd",
|
|
1446
|
+
definition: "declare function SUBSTRING(v: string, s: number, e: number): Promise<string>;"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
desc: "SUBSTR(str,start,len)\n 截取字符串str,从start开始截取len长度,start从0开始,如果start为负数表示从最后开始截取,start为-1表示从最后一位开始截取,返回截取的字符串\n SUBSTR('abcd',0,2) 返回ab\n SUBSTRING('abcd',-1,2) 返回 cd",
|
|
1450
|
+
definition: "declare function SUBSTR(v: string, s: number, l: number): Promise<string>;"
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
desc: "UPPER(a)\n 字符串a转化为大写,参数a支持字符串\n 示例\n UPPER('aa') 返回 AA ",
|
|
1454
|
+
definition: "declare function UPPER(v: string): Promise<string>;"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
desc: "LOWER(a)\n 字符串a转化为小写,参数a支持字符串\n 示例\n LOWER('AA') 返回 aa",
|
|
1458
|
+
definition: "declare function LOWER(v: string): Promise<string>;"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
desc: "TRIM(a)\n 字符串a去前后空格\n 示例\n TRIM(' ab ') 返回 'ab'",
|
|
1462
|
+
definition: "declare function TRIM(v: string): Promise<string>;"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
desc: "LTRIM(a)\n 字符串a去前空格\n 示例\n LTRIM(' ab ') 返回 'ab '",
|
|
1466
|
+
definition: "declare function LTRIM(v: string): Promise<string>;"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
desc: "RTRIM(a)\n 字符串a去前空格\n 示例\n LTRIM(' ab ') 返回 ' ab'",
|
|
1470
|
+
definition: "declare function RTRIM(v: string): Promise<string>;"
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
desc: "REPEAT(str,a)\n 字符串a在str中重复的次数,返回重复次数\n 示例\n REPEAT('aabbcc','a') 返回 2",
|
|
1474
|
+
definition: "declare function REPEAT(v: string, c: string): Promise<number | null>;"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
desc: "REPLACE(str,a,b)\n 字符串str中把所有的a替换成b\n 示例\n REPLACE('aabbcc','a','1') 返回 11bbcc",
|
|
1478
|
+
definition: "declare function REPLACE(v: string, o: string, t: string): Promise<string>;"
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
desc: "FINDSTR(str,a)\n 在字符串str中查找字符串a,如果存在返回true,不存在返回false\n 示例\n FINDSTR('aabbcc','a') 返回 true",
|
|
1482
|
+
definition: "declare function FINDSTR(v: string, c: string): Promise<boolean>;"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
desc: "SEARCHSTR(str,a)\n 在字符串str中查找字符串a,返回a在str中出现的次数,如果不存在则返回0\n 示例\n SEARCHSTR('aabbcc','a') 返回 2",
|
|
1486
|
+
definition: "declare function SEARCHSTR(v: string, c: string): Promise<number>;"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
desc: "PARSENUMBER(str)\n 字符串str转化为数值\n 示例\n PARSENUMBER('1') 返回 1\n PARSENUMBER('0.1') 返回 0.1",
|
|
1490
|
+
definition: "declare function PARSENUMBER(v: string): Promise<number | null>;"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
desc: "SPLIET(str,a)\n 字符串str根据a分割转化为数组,返回数组\n 参数仅支持Number类型\n 示例\n SPLIT('aa-bb-cc','-') 返回 ['aa','bb','cc']",
|
|
1494
|
+
definition: "declare function SPLIT(v: string, c: string): Promise<string[]>;"
|
|
1495
|
+
}
|
|
1496
|
+
]
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
id: "NUMBER",
|
|
1500
|
+
name: "数值",
|
|
1501
|
+
children: [
|
|
1502
|
+
{
|
|
1503
|
+
desc: "SUM(a,b,c...)\n 参数a、b、c...相加,返回相加后的数值\n 示例\n SUM(1,2,3) 返回 6",
|
|
1504
|
+
definition: "declare function SUM(...args: number[]): Promise<number>;"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
desc: "REDUCE(a,b,c...)\n 参数a、b、c...相减,返回相减后的数值\n 示例\n REDUCE(2,1) 返回 1\n REDUCE(5,1,2) 返回 2",
|
|
1508
|
+
definition: "declare function REDUCE(...args: number[]): Promise<number>;"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
desc: "MULTIPLICATION(a,b,c...)\n 参数a、b、c...相乘,返回相乘后的数值\n 示例\n MULTIPLICATION(2,1) 返回 2\n MULTIPLICATION(5,1,2) 返回 10",
|
|
1512
|
+
definition: "declare function MULTIPLICATION(...args: number[]): Promise<number>;"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
desc: "DIVISION(a,b,c...)\n 参数a、b、c...相除,返回相除后的数值\n 示例\n DIVISION(2,1) 返回 2\n DIVISION(10,5,2) 返回 1",
|
|
1516
|
+
definition: "declare function DIVISION(...args: number[]): Promise<number>;"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
desc: "FIXED(value,num)\n 参数value保留num位小数,返回数值\n 示例\n FIXED(2.01,1) 返回 2.0\n FIXED(2.015,2) 返回 2.01",
|
|
1520
|
+
definition: "declare function FIXED(v: number, n: number): Promise<number | Promise<Error>>;"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
desc: "ROUND(value,num)\n 参数value保留num位四舍五入后的小数,返回数值\n 示例\n ROUND(2.01,1) 返回 2.0\n ROUND(2.015,2) 返回 2.02",
|
|
1524
|
+
definition: "declare function ROUND(v: number, n: number): Promise<number | Promise<Error>>;"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
desc: "ROUNDUP(value,num)\n 将数字向上舍入到指定的位数。无论数字正负,舍入方向始终向绝对值更大的方向进行。\n 示例\n ROUNDUP(3.141,2) 返回 3.15",
|
|
1528
|
+
definition: "declare function ROUNDUP(v: number, n: number): Promise<number | Promise<Error>>;"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
desc: "MAX([value1, value2...])\n 从数组参数中获取最大的数,返回数值\n 参数必须为Number类型数组\n 示例\n MAX([2, 1]) 返回 2\n MAX([2.1, 2.2]) 返回 2.2",
|
|
1532
|
+
definition: "declare function MAX(v: number[]): Promise<number>;"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
desc: "LARGE([value1, value2...], n)\n 从数组参数中获取第n大数值,返回数值\n 参数必须为Number类型数组\n 示例\n LARGE([5, 4, 3, 2, 1],2) 返回 4\nLARGE([2.5, 2.4, 2.3, 2.2, 2.1], 3) 返回 2.3",
|
|
1536
|
+
definition: "declare function LARGE(v: number[], n: number): Promise<number | Promise<Error>>;"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
desc: "MIN([value1, value2...])\n从数组参数中获取最小的数,返回数值\n参数必须为Number类型数组\n示例\nMIN([2, 1]) 返回 1\nMIN([2.1, 2.2]) 返回 2.1",
|
|
1540
|
+
definition: "declare function MIN(v: number[]): Promise<number>;"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
desc: "SMALL([value1, value2...], n)\n从数组参数中获取第n小数值,返回数值\n参数必须为Number类型数组\n示例\nSMALL([5, 4, 3, 2, 1], 2) 返回 2\nSMALL([2.5, 2.4, 2.3, 2.2, 2.1], 3) 返回 2.3",
|
|
1544
|
+
definition: "declare function SMALL(v: number[], n: number): Promise<number | Promise<Error>>;"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
desc: "AVERAGE([value1, value2...])\n取数组中所有数值的平均值,返回数值\n参数必须为Number类型数组\n示例\nAVERAGE([5, 4, 3, 2, 1]) 返回 3",
|
|
1548
|
+
definition: "declare function AVERAGE(v: number[]): Promise<number | Promise<Error>>;"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
desc: "ABS(value)\n取数值参数value的绝对值,返回数值\n参数必须为Number类型\n示例\nABS(-1) 返回 1",
|
|
1552
|
+
definition: "declare function ABS(v: number): Promise<number>;"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
desc: "MOD(value1, value2)\n取数value1除以value2的余数,返回数值\n参数必须为Number类型\n示例\nMOD(4, 3) 返回 1",
|
|
1556
|
+
definition: "declare function MOD(v: number, n: number): Promise<number | Promise<Error>>;"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
desc: "POWER(value, n)\n获取数值value的n次乘幂,返回数值\n参数必须为Number类型\n示例\nPOWER(4, 2) 返回 16",
|
|
1560
|
+
definition: "declare function POWER(v: number, n: number): Promise<number>;"
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
desc: "SQRT(value)\n获取数值value的平方根,返回数值\n参数必须为Number类型\n示例\nSQRT(4) 返回 2",
|
|
1564
|
+
definition: "declare function SQRT(v: number): Promise<number>;"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
desc: "SUMSQ\n SUMSQ(数字1, 数字2, ...) 计算一组数值的平方和。\n 示例\n SUMSQ(2,3)=2²+3²=13",
|
|
1568
|
+
definition: "declare function SUMSQ(...args: number[]): Promise<number>;"
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
desc: "STDEV\n STDEV(数字1, 数字2, ...) 计算一组数值的标准差。\n 示例\n STDEV([10, 12, 23, 23, 16, 23, 21, 16])=5.237229365663817",
|
|
1572
|
+
definition: "declare function STDEV(...args: number[]): Promise<number>;"
|
|
1573
|
+
}
|
|
1574
|
+
]
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
id: "OBJECT,ARRAY",
|
|
1578
|
+
name: "对象/数组",
|
|
1579
|
+
children: [
|
|
1580
|
+
{
|
|
1581
|
+
desc: "TUPLE(1, 2, 3)\n把多个参数转化为数组结构\n示例\nTUPLE(1, 2, 3) 返回[1, 2, 3]",
|
|
1582
|
+
definition: "declare function TUPLE(x:any): any[]"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
desc: "SEQMAP('a', 1, 'b', 'c')\n把多个参数转化对象\n示例\nSEQMAP('a', 1, 'b', 'c') 返回 { a: 1, b: 'c' } ",
|
|
1586
|
+
definition: "declare function SEQMAP(a:string,b:any): object"
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
desc: "GET(a, b)\n如果a是对象,则获取对象a中属性b的值,如果a是数组,则获取下标b的数据项\n参数a支持的类型: Array , Object,参数b支持的类型: Number,String\n示例\nGET(['A', 'B', 'C'], 1) 返回 A\nGET({ a: 1, b: 2, c: 3 }, 'a') 返回 B",
|
|
1590
|
+
definition: "declare function GET<T extends object | any[]>(v: T, p: number | keyof T): Promise<T[keyof T]>;"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
desc: "PUT(a, b, c)\n如果a是对象,则b为对象中的属性,c为需要设置的属性值,如果a是数组,则b数组的下标,c为该下标需要设置的数据项\n参数a支持的类型: Array , Object,参数b支持的类型: Number,String ,参数c泛型\n示例\nPUT(['A', 'B', 'C'], 1, 'D') 返回['A', 'D', 'C']\nPUT({ a: 1, b: 2, c: 3 }, 'a', 4) 返回 { a: 4, b: 2, c: 3 } ",
|
|
1594
|
+
definition: "declare function PUT<T>(a: T, b: keyof T, c: T[keyof T | any]): Promise<T | Promise<Error>>;"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
desc: "PUSH(a, b)\n在数组对象a末尾追加b\n参数a的类型为Array, 参数b泛型,返回数组\n示例\nPUSH([1, 2, 3], 4) 返回[1, 2, 3, 4]",
|
|
1598
|
+
definition: "declare function PUSH<T>(v: any[], n: T): Promise<T[] | Promise<Error>>;"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
desc: "HEADPUSH(a, b)\n在数组对象a头部追加b\n参数a的类型为Array, 参数b泛型,返回数组\n示例\nHEADPUSH([1, 2, 3], 0) 返回[0, 1, 2, 3]",
|
|
1602
|
+
definition: "declare function HEADPUSH<T>(v: any[], n: T): Promise<T[] | Promise<Error>>;"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
desc: "COUNT\n COUNT([数字1, 数字2, ...]) 计算数组的数量。\n 示例\n COUNT([10, 12, 23, 23, 16, 23, 21, 16])=8",
|
|
1606
|
+
definition: "declare function COUNT(v: number[]): Promise<number>;"
|
|
1607
|
+
}
|
|
1608
|
+
]
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
id: "DATE",
|
|
1612
|
+
name: "日期",
|
|
1613
|
+
children: [
|
|
1614
|
+
{
|
|
1615
|
+
desc: "TIMESTAMP2DATE(dtstr)\n时间戳转化为日期对象,参数dtstr为时间戳类型,返回日期时间对象\n示例\nTIMESTAMP2DATE(1689558261) 返回 2023-07 - 17 9: 44: 21",
|
|
1616
|
+
definition: "declare function TIMESTAMP2DATE(v: number): Promise<string | Promise<Error>>;"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
desc: "DATE2TIMESTAMP(dt)\n日期转时间戳,参数dt为日期类型,返回时间戳\n示例\nDATE2TIMESTAMP()",
|
|
1620
|
+
definition: "declare function DATE2TIMESTAMP(v: string): Promise<number>;"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
desc: "DATEFORMAT(dt, format)\n日期转字符串,参数dt为日期类型,format为格式\n示例\nDATEFORMAT(NOW(), YYYY-MM-DD HH:mm)",
|
|
1624
|
+
definition: "declare function DATEFORMAT(v: Date, f: string): Promise<string>;"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
desc: "NOW()\n获取当前日期时间\nNOW() 返回 2023-07 - 17 9: 44: 21",
|
|
1628
|
+
definition: "declare function NOW(): Promise<string>;"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
desc: "TODAY(获取当天日期TODAY() 返回2023-07-17",
|
|
1632
|
+
definition: "declare function TODAY(): Promise<string>;"
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
desc: "YEAR(dt)\n获取参数dt类型的年份\nYEAR(NOW()) 返回 2024",
|
|
1636
|
+
definition: "declare function YEAR(v: string | number | Date | null | undefined): number;"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
desc: "MONTH(dt)\n获取参数dt类型的月份\nMONTH(NOW()) 返回 7",
|
|
1640
|
+
definition: "declare function MONTH(v: string | number | Date | null | undefined): Promise<number>;"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
desc: "DAY(dt)\n获取参数dt类型的日\nDAY(NOW()) 返回 17",
|
|
1644
|
+
definition: "declare function DAY(v: string | number | Date | null | undefined): Promise<number>;"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
desc: "HOUR(dt)\n获取参数dt类型的小时\nHOUR(NOW()) 返回 10",
|
|
1648
|
+
definition: "declare function HOUR(v: string | number | Date | null | undefined): Promise<number>;"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
desc: "MINUTE(dt)\n获取参数dt类型的分钟\nMINUTE(NOW()) 返回 44",
|
|
1652
|
+
definition: "declare function MINUTE(v: string | number | Date | null | undefined): Promise<number>;"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
desc: "WEEKRANGE()\n获取本周开始及结束日期\nWEEKRANGE() 返回[2023-07 - 17 00:00:00.000000000 +0800 CST, 2023-07 - 23 23: 59: 59.000000000 +0800 CST]",
|
|
1656
|
+
definition: "declare function WEEKRANGE(): Promise<[string, string]>;"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
desc: "LASTWEEKRANGE()\n获取本周开始及结束日期\nLASTWEEKRANGE() 返回[2023-07 - 10 00:00:00.000000000 +0800 CST, 2023-07 - 16 23: 59: 59.000000000 +0800 CST]",
|
|
1660
|
+
definition: "declare function LASTWEEKRANGE(): Promise<[string, string]>;"
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
desc: "MONTHRANGE()\n获取本月开始及结束日期\nMONTHRANGE() 返回[2023-07-01 00:00:00.000000000 +0800 CST, 2023-07 - 31 23: 59: 59.000000000 +0800 CST]",
|
|
1664
|
+
definition: "declare function MONTHRANGE(): Promise<[string, string]>;"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
desc: "LASTMONTHRANGE()\n获取上月开始及结束日期\nMONTHRANGE() 返回[2023-06-01 00:00:00.000000000 +0800 CST, 2023-06 - 30 23: 59: 59.000000000 +0800 CST]",
|
|
1668
|
+
definition: "declare function LASTMONTHRANGE(): Promise<[string, string]>;"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
desc: "YEARRANGE()\n获取本年开始及结束日期\nYEARRANGE() 返回[2023-01-01 00:00:00.000000000 +0800 CST, 2023 - 12 - 31 23: 59: 59.000000000 +0800 CST]",
|
|
1672
|
+
definition: "declare function YEARRANGE(): Promise<[string, string]>;"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
desc: "LASTYEARRANGE()\n获取上一年开始及结束日期\nLASTYEARRANGE() 返回[2022-01-01 00:00:00.000000000 +0800 CST, 2022 - 12 - 31 23: 59: 59.000000000 +0800 CST]",
|
|
1676
|
+
definition: "declare function LASTYEARRANGE(): Promise<[string, string]>;"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
desc: "QUARTER()\n获取本季度开始及结束日期\nQUARTER() 返回[2022-07-01 00:00:00.000000000 +0800 CST, 2022 -09 - 30 23: 59: 59.000000000 +0800 CST]",
|
|
1680
|
+
definition: "declare function QUARTER(): Promise<[string, string]>;"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
desc: "LASTQUARTER()\n获取上季度开始及结束日期\nLASTQUARTER() 返回[2022-04-01 00:00:00.000000000 +0800 CST, 2022-06 - 30 23: 59: 59.000000000 +0800 CST]",
|
|
1684
|
+
definition: "declare function LASTQUARTER(): Promise<[string, string]>;"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
desc: "ISDATERANGE(dt, [startDate, endDate])\n判断参数dt是否在给定的区间范围内,如果在则返回true,反之返回false\nISDATERANGE(NOW(), WEEKRANGE()) 返回 true",
|
|
1688
|
+
definition: "declare function ISDATERANGE(v: Date, r: [Date, Date]): Promise<boolean>;"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
desc: "ISTIMERANGE(dt, [startTime, endTime])\n判断参数dt是否在给定的区间范围内,如果在则返回true,反之返回false\n参数dt、startTime、endTime为时间字符串,如果startTime大于endTime则跨天\nISTIMERANGE(DATEFORMAT(NOW(), HH:mm), ['06:00', '12:00']) 返回 true\nISTIMERANGE(DATEFORMAT(NOW(), HH:mm), ['13:00', '07:00']) 返回 true ",
|
|
1692
|
+
definition: "declare function ISTIMERANGE(v: string, r: [string, string]): Promise<boolean>;"
|
|
1693
|
+
}
|
|
1694
|
+
]
|
|
1695
|
+
}
|
|
1696
|
+
].map((e) => (e.children = (e.children ?? []).map((e) => {
|
|
1697
|
+
let t = e.definition.match(/(?<=declare function )([A-Z0-9]+)/g)?.[0] ?? "UNKNOWN", n = (e.definition.match(/([a-z]:)+/g) || []).length;
|
|
1698
|
+
return Object.assign(e, {
|
|
1699
|
+
id: t,
|
|
1700
|
+
name: t,
|
|
1701
|
+
idToChildren: !1,
|
|
1702
|
+
_args_: n
|
|
1703
|
+
}), e;
|
|
1704
|
+
}), e)), ri = ni.reduce((e, t) => (t.children.forEach((t) => {
|
|
1705
|
+
e[t.id] = t;
|
|
1706
|
+
}), e), {}), ii = [{
|
|
1707
|
+
id: "INNER",
|
|
1708
|
+
name: "内置",
|
|
1709
|
+
children: [
|
|
1710
|
+
{
|
|
1711
|
+
desc: "MD5(str) 计算输入字符串的MD5值\n示例: MD5('abc')\n返回 900150983cd24fb0d6963f7d28e17f72\n",
|
|
1712
|
+
definition: "declare function MD5(str: string): string;"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
desc: "SHA1(str) 计算输入字符串的HASH值\n示例: SHA1('abc')\n返回 a9993e364706816aba3e25717850c26c9cd0d89d",
|
|
1716
|
+
definition: "declare function SHA1(str: string): string;"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
desc: "SHA256(str) 计算输入字符串的HASH值\n",
|
|
1720
|
+
definition: "declare function SHA256(str: string): string;"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
desc: "SHA512(str) 计算输入字符串的HASH值\n示例: SHA512('abc')\n返回 ddaf35a193617abacc417349ae20...",
|
|
1724
|
+
definition: "declare function SHA512(str: string): string;"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
desc: "RANDOMSTR(number) 生成随机字符串\nnumber:为随机字符串的长度\n示例: RandomStr(6)\n返回 o4EX1D",
|
|
1728
|
+
definition: "declare function RANDOMSTR(number: number): string;"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
desc: "NOW(format) 生成指定格式的当前时间戳\nformat为时间格式,可选值参考'yyyy-MM-dd','yyyy-MM-dd HH:mm:ss','HH:mm:ss'\n示例: NOW('yyyy-MM-dd')\n返回 1970-01-01",
|
|
1732
|
+
definition: "declare function NOW(format: string): string;"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
desc: "CONCAT(a,b....)\n拼接参数a和b,返回拼接后的字符串\n参数a/b支持字符串,返回字符串\n示例 CONCAT('a','b','c')\n返回abc",
|
|
1736
|
+
definition: "declare function CONCAT(...args: string[]): string;"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
desc: "UNIX10()\n返回10位的时间戳\nUNIX10() 返回 1677811200",
|
|
1740
|
+
definition: "declare function UNIX10(): number;"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
desc: "UNIX13()\n返回13位的时间戳\nUNIX13() 返回 1677811200000",
|
|
1744
|
+
definition: "declare function UNIX13(): number;"
|
|
1745
|
+
}
|
|
1746
|
+
]
|
|
1747
|
+
}].map((e) => (e.children = e.children.map((e) => {
|
|
1748
|
+
let t = e.definition.match(/(?<=declare function )([A-Z0-9]+)/g)[0], n = (e.definition.match(/([a-z]:)+/g) || []).length;
|
|
1749
|
+
return Object.assign(e, {
|
|
1750
|
+
id: t,
|
|
1751
|
+
name: t,
|
|
1752
|
+
idToChildren: !1,
|
|
1753
|
+
_args_: n
|
|
1754
|
+
}), e;
|
|
1755
|
+
}), e)), ai = ni.reduce((e, t) => (t.children.forEach((t) => {
|
|
1756
|
+
e[t.id] = t;
|
|
1757
|
+
}), e), {}), oi = [
|
|
1758
|
+
{
|
|
1759
|
+
id: "COMMON",
|
|
1760
|
+
name: "常用",
|
|
1761
|
+
children: [
|
|
1762
|
+
{
|
|
1763
|
+
desc: "将多个字段合并成一个字符串\n示例: CONCAT('a', '-', 'b') = 'a-b'\n",
|
|
1764
|
+
definition: "declare function CONCAT( ...any: string[]): string;"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
desc: "返回日期的指定中加上指定的数字 后的日期\n示例: DATEADD('2020-09-29', 100, days) = 2021-01-07\n",
|
|
1768
|
+
definition: "declare function DATEADD(data: string, interval: number, date_part: string): string;"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
desc: "返回 <date1> 与 <date2> 之差。以 <date_part> 的单位表示,只计算完整<date_part>\n示例: DATEDIFF('2024-05-22', '2020-09-29', 'year') = 3\n",
|
|
1772
|
+
definition: "declare function DATEDIFF(date1: string, date2: string, date_part: string): number;"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
desc: "将日期进行格式化,并输出文本\n示例: DATEFORMAT(2020-09-29, yyyyMMdd) = '20200929'\n",
|
|
1776
|
+
definition: "declare function DATEFORMAT(date: any, format: string): string;"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
desc: "以<format>格式解析字符串<date_string>,并转化为日期类型。\n示例: TODATE('2020-09-29', 'yyyy-MM-dd') = 2020-09-29\n",
|
|
1780
|
+
definition: "declare function TODATE(date_string: string, format:string): any;"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
desc: "NULLIF函数接受两个参数,如果两个参数相等则返回NULL,否则返回第一个参数,可以用来避免分母为0的情况\n示例: 如果field为0 则返回null,NULLIF(<field>,0) = null\n",
|
|
1784
|
+
definition: "declare function NULLIF(arg1: any,arg2:any): any;"
|
|
1785
|
+
}
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
id: "NUMBER",
|
|
1790
|
+
name: "数值",
|
|
1791
|
+
children: [
|
|
1792
|
+
{
|
|
1793
|
+
desc: "返回多个参数中的最大值,至少输入2个参数\n示例: GREATEST(10, 5, 7) = 10\n",
|
|
1794
|
+
definition: "declare function GREATEST( ...any: number[]): number;"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
desc: "返回多个参数中的最小值,至少输入2个参数\n示例: LEAST(10, 5, 7) = 5\n",
|
|
1798
|
+
definition: "declare function LEAST( ...any: number[]): number;"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
desc: "将<number> 舍入为指定位数。 <decimals>指定输出结果的小数位数精度。如果省略decimals,则输出为整数\n示例: ROUND(1/3, 2) = 0.33\n",
|
|
1802
|
+
definition: "declare function ROUND(number: number, decimals?: number): number"
|
|
1803
|
+
}
|
|
1804
|
+
]
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
id: "TEXT",
|
|
1808
|
+
name: "文本",
|
|
1809
|
+
children: [
|
|
1810
|
+
{
|
|
1811
|
+
desc: "将多个字段合并成一个字符串\n示例: CONCAT('a', '-', 'b') = 'a-b'\n",
|
|
1812
|
+
definition: "declare function CONCAT( ...any: string[]): string;"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
desc: "如果给定字符串包含指定子字符串,则返回 true\n示例: CONTAINS('Hello World', ' ') = true\n",
|
|
1816
|
+
definition: "declare function CONTAINS(string: string, substring: string): boolean;"
|
|
1817
|
+
},
|
|
1818
|
+
{
|
|
1819
|
+
desc: "返回子字符串在字符串中的索引位置,从指定的索引<start>开始查找(<start>可不填)。如果未找到子字符串,则返回 0。字符串中第一个字符的位置为 1\n示例: FIND('World', 'Hello World') = 7\nFIND('Computer', 'Hello World') = 0\n",
|
|
1820
|
+
definition: "declare function FIND(substring: string, string: string, start?: number): number;"
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
desc: "返回字符串长度\n示例: LEN('Hello World') = 11\n",
|
|
1824
|
+
definition: "declare function LEN(string: string): number;"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
desc: "返回<string>从指定<start>位置处开始的字符串。字符串中第一个字符的位置为 1。 如果添加了可选数字参数<length>,则返回的字符串仅包含该数量的字符\n示例: MID('Hello World', 2) = 'ello World'\nMID('Hello World', 2, 4) ='ello'\n",
|
|
1828
|
+
definition: "declare function MID(string: string, start: number, length?: number): string"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
desc: "在 <string> 中搜索 <substring> 并将其替换为 <replacement>。如果未找到 <substring>,则字符串保持不变。\n示例: REPLACE('Hello World', ' ', '-') = 'Hello-World'\n",
|
|
1832
|
+
definition: "declare function REPLACE(string: string, substring: string, replacement: string): string"
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
desc: "移除 <string> 的所有前置空格和尾随空格\n示例: TRIM(' Hello World ') = 'Hello World'\n",
|
|
1836
|
+
definition: "declare function TRIM(string: string): string"
|
|
1837
|
+
}
|
|
1838
|
+
]
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
id: "DATE",
|
|
1842
|
+
name: "日期",
|
|
1843
|
+
children: [
|
|
1844
|
+
{
|
|
1845
|
+
desc: "返回日期的指定中加上指定的数字 后的日期\n示例: DATEADD('2020-09-29', 100, days) = 2021-01-07\n",
|
|
1846
|
+
definition: "declare function DATEADD(data: string, interval: number, date_part: string): string;"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
desc: "以整数的形式返回给定 <date> 的天\n示例: DAY('2020-09-29') = 29\n",
|
|
1850
|
+
definition: "declare function DAY(date: string): number;"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
desc: "以整数形式返回给定 <date> 的月份\n示例: MONTH('2020-09-29') = 9\n",
|
|
1854
|
+
definition: "declare function MONTH(date: string): number;"
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
desc: "返回一个依据指定 <year>、<month> 和 <day> 构造的日期值\n示例: MAKEDATE(2020, 9, 29) = 2020-09-29\n",
|
|
1858
|
+
definition: "declare function MAKEDATE(year: number, month: number, day: number): any;"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
desc: "返回当前时间\n示例: NOW() = 2024-05-22 09:29:29\n",
|
|
1862
|
+
definition: "declare function NOW(): any;"
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
desc: "以整数形式返回给定 <date> 的季度\n示例: QUARTER('2020-09-29') = 3\n",
|
|
1866
|
+
definition: "declare function QUARTER(date: string): number;"
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
desc: "返回当前日期\n示例: TODAY() = 2024-05-22\n",
|
|
1870
|
+
definition: "declare function TODAY(): any;"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
desc: "以整数形式返回给定 <date> 的周\n示例: WEEK('2010-01-01') = 52\nWEEK('2010-01-06') = 1\n",
|
|
1874
|
+
definition: "declare function WEEK(date: string): number;"
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
desc: "以整数形式返回给定 <date> 的年份\n示例: YEAR('2020-09-29') = 2020\n",
|
|
1878
|
+
definition: "declare function YEAR(date: string): number;"
|
|
1879
|
+
}
|
|
1880
|
+
]
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
id: "PARSE",
|
|
1884
|
+
name: "转换",
|
|
1885
|
+
children: [
|
|
1886
|
+
{
|
|
1887
|
+
desc: "将日期进行格式化,并输出文本\n示例: DATEFORMAT(2020-09-29, yyyyMMdd) = '20200929'\n",
|
|
1888
|
+
definition: "declare function DATEFORMAT(date: any, format: string): string;"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
desc: "以<format>格式解析字符串<date_string>,并转化为日期类型。\n示例: TODATE('2020-09-29', 'yyyy-MM-dd') = 2020-09-29\n",
|
|
1892
|
+
definition: "declare function TODATE(date_string: string, format:string): any;"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
desc: "将文本或数值转为浮点数\n示例: TODOUBLE('123.21') = 123.21\nTODOUBLE(3) = 3.0\n",
|
|
1896
|
+
definition: "declare function TODOUBLE(expression: string | number): number;"
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
desc: "将文本或数值转为整数,若存在小数部分将舍弃\nTOINT('123.9') = 123\n",
|
|
1900
|
+
definition: "declare function TOINT(expression: string | number) : number;"
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
desc: "将数值转为字符串\nTOSTR(123) = '123'\n",
|
|
1904
|
+
definition: "declare function TOSTR(expression: number) : string;"
|
|
1905
|
+
}
|
|
1906
|
+
]
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
id: "AGG",
|
|
1910
|
+
name: "聚合",
|
|
1911
|
+
children: [
|
|
1912
|
+
{
|
|
1913
|
+
desc: "平均值\n示例: AVG([订单金额])\n根据图表中使用的维度进行聚合,求订单金额的平均值\n",
|
|
1914
|
+
definition: "declare function AVG(number: number): number;"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
desc: "计数\n示例: COUNT([订单ID])\n根据图表中使用的维度进行聚合,求订单的数量\n",
|
|
1918
|
+
definition: "declare function COUNT(expression: string | number): number;"
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
desc: "去重计数\n示例: COUNTD([订单ID])\n根据图表中使用的维度进行聚合,求订单ID去重后的数量\n",
|
|
1922
|
+
definition: "declare function COUNTD(expression: string | number): number;"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
desc: "最大值\n示例: MAX([订单金额])\n根据图表中使用的维度进行聚合,求订单金额的最大值\n",
|
|
1926
|
+
definition: "declare function MAX(expression: number): number;"
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
desc: "中位数\n示例: MEDIAN([订单金额])\n根据图表中使用的维度进行聚合,求订单金额的中位数\n",
|
|
1930
|
+
definition: "declare function MEDIAN(number: number): number;"
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
desc: "最小值\n示例: MIN([订单金额])\n根据图表中使用的维度进行聚合,求订单金额的最小值\n",
|
|
1934
|
+
definition: "declare function MIN(expression: number): number;"
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
desc: "求和\n示例: SUM([订单金额])\n根据图表中使用的维度进行聚合,求订单金额的总和\n",
|
|
1938
|
+
definition: "declare function SUM(number: number): number;"
|
|
1939
|
+
}
|
|
1940
|
+
]
|
|
1941
|
+
}
|
|
1942
|
+
].map((e) => (e.children = e.children.map((e) => {
|
|
1943
|
+
let t = e.definition.match(/(?<=declare function )([A-Z0-9_]+)/g)[0], n = (e.definition.match(/([a-z]:)+/g) || []).length;
|
|
1944
|
+
return Object.assign(e, {
|
|
1945
|
+
id: t,
|
|
1946
|
+
name: t,
|
|
1947
|
+
idToChildren: !1,
|
|
1948
|
+
_args_: n
|
|
1949
|
+
}), e;
|
|
1950
|
+
}), e)), si = oi.reduce((e, t) => (t.children.forEach((t) => {
|
|
1951
|
+
e[t.id] = t;
|
|
1952
|
+
}), e), {}), ci = /* @__PURE__ */ "IF.ISEMPTY.ISNULL.ISUNDEFINED.AND.OR.EQ.NE.LE.LT.GE.GT.LEN.CONCAT.SUBSTRING.SUBSTR.UPPER.LOWER.TRIM.LTRIM.RTRIM.REPEAT.REPLACE.FINDSTR.SEARCHSTR.PARSENUMBER.SPLIT.SUM.REDUCE.MULTIPLICATION.DIVISION.FIXED.ROUND.ROUNDUP.MAX.LARGE.MIN.SMALL.AVERAGE.ABS.MOD.POWER.SQRT.SUMSQ.STDEV.TUPLE.SEQMAP.GET.PUT.PUSH.HEADPUSH.COUNT.TIMESTAMP2DATE.DATE2TIMESTAMP.DATEFORMAT.NOW.TODAY.YEAR.MONTH.DAY.HOUR.MINUTE.WEEKRANGE.LASTWEEKRANGE.MONTHRANGE.LASTMONTHRANGE.YEARRANGE.LASTYEARRANGE.QUARTER.LASTQUARTER.ISDATERANGE.ISTIMERANGE".split("."), li = "$SYSTEM_VAR_", ui = [
|
|
1953
|
+
{
|
|
1954
|
+
id: "$USERID",
|
|
1955
|
+
name: "$USERID",
|
|
1956
|
+
valueType: "string",
|
|
1957
|
+
desc: "当前登录人id"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
id: "$USERNAME",
|
|
1961
|
+
name: "$USERNAME",
|
|
1962
|
+
valueType: "string",
|
|
1963
|
+
desc: "当前登录人姓名"
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
id: "$USERDEPARTMENTID",
|
|
1967
|
+
name: "$USERDEPARTMENTID",
|
|
1968
|
+
valueType: "string",
|
|
1969
|
+
desc: "当前登录人主部门"
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
id: "$USERDEPARTMENTNAME",
|
|
1973
|
+
name: "$USERDEPARTMENTNAME",
|
|
1974
|
+
valueType: "string",
|
|
1975
|
+
desc: "当前登录人主部门名称"
|
|
1976
|
+
}
|
|
1977
|
+
], di = ui.map((e) => e.id), fi = [
|
|
1978
|
+
C.INTEGER,
|
|
1979
|
+
C.LONG,
|
|
1980
|
+
C.DOUBLE,
|
|
1981
|
+
C.DECIMAL
|
|
1982
|
+
], pi = [C.BOOLEAN], mi = "number", hi = "string", gi = "boolean", _i = "object", vi = "array", yi = /* @__PURE__ */ "SUM.REDUCE.MULTIPLICATION.DIVISION.FIXED.ROUND.ROUNDUP.MAX.LARGE.MIN.SMALL.AVERAGE.ABS.MOD.POWER.SQRT.LEN.DATE2TIMESTAMP.SUMSQ.STDEV.COUNT.TOINT.FIND.YEAR.WEEK.DAY.MONTH.QUARTER.TODOUBLE.DATEDIFF.AVG.GREATEST.LEAST.COUNTD.MEDIAN".split("."), bi = [
|
|
1983
|
+
"CONCAT",
|
|
1984
|
+
"SUBSTRING",
|
|
1985
|
+
"SUBSTR",
|
|
1986
|
+
"UPPER",
|
|
1987
|
+
"LOWER",
|
|
1988
|
+
"TRIM",
|
|
1989
|
+
"LTRIM",
|
|
1990
|
+
"RTRIM",
|
|
1991
|
+
"REPEAT",
|
|
1992
|
+
"REPLACE",
|
|
1993
|
+
"FINDSTR",
|
|
1994
|
+
"SEARCHSTR",
|
|
1995
|
+
"PARSENUMBER",
|
|
1996
|
+
"SPLIT"
|
|
1997
|
+
], xi = [
|
|
1998
|
+
"IF",
|
|
1999
|
+
"ISEMPTY",
|
|
2000
|
+
"ISNULL",
|
|
2001
|
+
"ISUNDEFINED",
|
|
2002
|
+
"AND",
|
|
2003
|
+
"OR",
|
|
2004
|
+
"EQ",
|
|
2005
|
+
"NE",
|
|
2006
|
+
"LE",
|
|
2007
|
+
"LT",
|
|
2008
|
+
"GE",
|
|
2009
|
+
"GT",
|
|
2010
|
+
"CONTAINS"
|
|
2011
|
+
], Si = [
|
|
2012
|
+
"TUPLE",
|
|
2013
|
+
"SEQMAP",
|
|
2014
|
+
"GET",
|
|
2015
|
+
"PUT",
|
|
2016
|
+
"PUSH",
|
|
2017
|
+
"HEADPUSH"
|
|
2018
|
+
], Ci = {
|
|
2019
|
+
string: "字符串",
|
|
2020
|
+
number: "数值",
|
|
2021
|
+
boolean: "布尔",
|
|
2022
|
+
date: "日期",
|
|
2023
|
+
time: "时间",
|
|
2024
|
+
datetime: "日期时间",
|
|
2025
|
+
array: "数组",
|
|
2026
|
+
object: "对象",
|
|
2027
|
+
null: "空值",
|
|
2028
|
+
unknown: "未知",
|
|
2029
|
+
text: "文本",
|
|
2030
|
+
long_text: "长文本",
|
|
2031
|
+
integer: "整数",
|
|
2032
|
+
long: "长整数",
|
|
2033
|
+
decimal: "小数"
|
|
2034
|
+
}, wi = /* @__PURE__ */ function(e) {
|
|
2035
|
+
return e.EXPRESSION = "expression-language-service", e;
|
|
2036
|
+
}({}), Ti = {
|
|
2037
|
+
"+": "ADD",
|
|
2038
|
+
"-": "REDUCE",
|
|
2039
|
+
"*": "MULTIPLICATION",
|
|
2040
|
+
"/": "DIVISION",
|
|
2041
|
+
"%": "MOD"
|
|
2042
|
+
}, Ei = /* @__PURE__ */ function(e) {
|
|
2043
|
+
return e.PREFIX = "EDITOR___", e;
|
|
2044
|
+
}({}), Di = /* @__PURE__ */ function(e) {
|
|
2045
|
+
return e.FORM_TITLE_GROUP = "form-title-group", e;
|
|
2046
|
+
}({}), Oi = /* @__PURE__ */ function(e) {
|
|
2047
|
+
return e.SystemDate = "system-date", e.Yesterday = "yesterday", e.Past7Days = "past-7-days", e.Past30Days = "past-30-days", e.PastDays = "past-days", e.ThisWeek = "this-week", e.LastWeek = "last-week", e.PastWeeks = "past-weeks", e.ThisMonth = "this-month", e.LastMonth = "last-month", e.PastMonths = "past-months", e.ThisQuarter = "this-quarter", e.LastQuarter = "last-quarter", e.PastQuarters = "past-quarters", e.ThisYear = "this-year", e.LastYear = "last-year", e.PastYears = "past-years", e;
|
|
2048
|
+
}({}), B = {
|
|
2049
|
+
TOKEN: "gct-token",
|
|
2050
|
+
TENANT: "gct-tenant"
|
|
2051
|
+
}, ki = [
|
|
2052
|
+
{
|
|
2053
|
+
value: "entity",
|
|
2054
|
+
label: "sys.pageDesigner.entity"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
value: "data",
|
|
2058
|
+
label: "sys.pageDesigner.data"
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
value: "view",
|
|
2062
|
+
label: "sys.pageDesigner.view"
|
|
2063
|
+
}
|
|
2064
|
+
], Ai = /([Hh]{2}):{0,1}([Mm]{0,2}):{0,1}([Ss]{0,2})$/, ji = /^https?:\/\/(.*)$/, Mi = "gct", Ni = "/minio", Pi = "/minio", Fi = "app_inst", Ii = "is-";
|
|
2065
|
+
function V(e, t, n, r, i) {
|
|
2066
|
+
let a = `${e}-${t}`;
|
|
2067
|
+
return n && (a += `-${n}`), r && (a += `__${r}`), i && (a += `--${i}`), a;
|
|
2068
|
+
}
|
|
2069
|
+
var Li = class {
|
|
2070
|
+
namespace;
|
|
2071
|
+
constructor(e, t) {
|
|
2072
|
+
this.block = e, this.namespace = t || "gct";
|
|
2073
|
+
}
|
|
2074
|
+
b(e = "") {
|
|
2075
|
+
return V(this.namespace, this.block, e, "", "");
|
|
2076
|
+
}
|
|
2077
|
+
e(e) {
|
|
2078
|
+
return e ? V(this.namespace, this.block, "", e, "") : "";
|
|
2079
|
+
}
|
|
2080
|
+
m(e) {
|
|
2081
|
+
return e ? V(this.namespace, this.block, "", "", e) : "";
|
|
2082
|
+
}
|
|
2083
|
+
be(e, t) {
|
|
2084
|
+
return e && t ? V(this.namespace, this.block, e, t, "") : "";
|
|
2085
|
+
}
|
|
2086
|
+
em(e, t) {
|
|
2087
|
+
return e && t ? V(this.namespace, this.block, "", e, t) : "";
|
|
2088
|
+
}
|
|
2089
|
+
bm(e, t) {
|
|
2090
|
+
return e && t ? V(this.namespace, this.block, e, "", t) : "";
|
|
2091
|
+
}
|
|
2092
|
+
bem(e, t, n) {
|
|
2093
|
+
return e && t && n ? V(this.namespace, this.block, e, t, n) : "";
|
|
2094
|
+
}
|
|
2095
|
+
is(e, t) {
|
|
2096
|
+
return e && t ? `${Ii}${e}` : "";
|
|
2097
|
+
}
|
|
2098
|
+
cssVar(e) {
|
|
2099
|
+
let t = {};
|
|
2100
|
+
for (let n in e) e[n] && (t[this.cssVarName(n)] = e[n]);
|
|
2101
|
+
return t;
|
|
2102
|
+
}
|
|
2103
|
+
cssVarBlock(e) {
|
|
2104
|
+
let t = {};
|
|
2105
|
+
for (let n in e) e[n] && (t[this.cssVarBlockName(n)] = e[n]);
|
|
2106
|
+
return t;
|
|
2107
|
+
}
|
|
2108
|
+
cssVarName(e) {
|
|
2109
|
+
return `--${this.namespace}-${e}`;
|
|
2110
|
+
}
|
|
2111
|
+
cssVarBlockName(e) {
|
|
2112
|
+
return `--${this.namespace}-${this.block}-${e}`;
|
|
2113
|
+
}
|
|
2114
|
+
};
|
|
2115
|
+
function Ri(e) {
|
|
2116
|
+
return new Li(e);
|
|
2117
|
+
}
|
|
2118
|
+
//#endregion
|
|
2119
|
+
//#region ../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.js
|
|
2120
|
+
function zi(e) {
|
|
2121
|
+
if (e instanceof Array) e && e.length > 0 && e.splice(0, e.length);
|
|
2122
|
+
else if (e instanceof Object && e) for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && delete e[t];
|
|
2123
|
+
}
|
|
2124
|
+
//#endregion
|
|
2125
|
+
//#region ../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.js
|
|
2126
|
+
var Bi = class {
|
|
2127
|
+
constructor() {
|
|
2128
|
+
this.map = /* @__PURE__ */ new Map(), this.maxListeners = 100;
|
|
2129
|
+
}
|
|
2130
|
+
setMaxListeners(e) {
|
|
2131
|
+
this.maxListeners = e;
|
|
2132
|
+
}
|
|
2133
|
+
getSize(e) {
|
|
2134
|
+
return this.map.has(e) ? this.map.get(e).length : 0;
|
|
2135
|
+
}
|
|
2136
|
+
addListener(e, t) {
|
|
2137
|
+
if (t instanceof Function) {
|
|
2138
|
+
this.map.has(e) || this.map.set(e, []);
|
|
2139
|
+
let n = this.map.get(e);
|
|
2140
|
+
if (n.length < this.maxListeners) n.push(t);
|
|
2141
|
+
else throw Error(`事件监听已达最大上限[${this.maxListeners}],无法新增监听!`);
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
removeListener(e, t) {
|
|
2145
|
+
if (this.map.has(e)) {
|
|
2146
|
+
let n = this.map.get(e);
|
|
2147
|
+
if (n.length > 0) {
|
|
2148
|
+
for (let e = 0; e < n.length; e++) if (n[e] === t) {
|
|
2149
|
+
n.splice(e, 1);
|
|
2150
|
+
break;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
emit(e, ...t) {
|
|
2156
|
+
this.map.has(e) && this.map.get(e).forEach((e) => {
|
|
2157
|
+
e(...t);
|
|
2158
|
+
});
|
|
2159
|
+
}
|
|
2160
|
+
async asyncEmit(e, ...t) {
|
|
2161
|
+
if (this.map.has(e)) {
|
|
2162
|
+
let n = this.map.get(e).map((e) => e(...t));
|
|
2163
|
+
return Promise.all(n);
|
|
2164
|
+
}
|
|
2165
|
+
return [];
|
|
2166
|
+
}
|
|
2167
|
+
reset() {
|
|
2168
|
+
this.map.forEach((e) => {
|
|
2169
|
+
zi(e);
|
|
2170
|
+
}), this.map.clear();
|
|
2171
|
+
}
|
|
2172
|
+
}, Vi = class {
|
|
2173
|
+
constructor(e) {
|
|
2174
|
+
this.e = new Bi(), this.e.setMaxListeners(e || 300);
|
|
2175
|
+
}
|
|
2176
|
+
getSize(e) {
|
|
2177
|
+
return this.e.getSize(e);
|
|
2178
|
+
}
|
|
2179
|
+
on(e, t) {
|
|
2180
|
+
this.e.addListener(e, t);
|
|
2181
|
+
}
|
|
2182
|
+
off(e, t) {
|
|
2183
|
+
this.e.removeListener(e, t);
|
|
2184
|
+
}
|
|
2185
|
+
emit(e, ...t) {
|
|
2186
|
+
this.e.emit(e, ...t);
|
|
2187
|
+
}
|
|
2188
|
+
asyncEmit(e, ...t) {
|
|
2189
|
+
return this.e.asyncEmit(e, ...t);
|
|
2190
|
+
}
|
|
2191
|
+
reset() {
|
|
2192
|
+
this.e.reset();
|
|
2193
|
+
}
|
|
2194
|
+
}, { toString: Hi } = Object.prototype;
|
|
2195
|
+
function Ui(e) {
|
|
2196
|
+
return qi(e) === "function";
|
|
2197
|
+
}
|
|
2198
|
+
function Wi(e) {
|
|
2199
|
+
return Hi.call(e) === "[object AsyncFunction]";
|
|
2200
|
+
}
|
|
2201
|
+
function Gi(e) {
|
|
2202
|
+
return Hi.call(e) === "[object Promise]";
|
|
2203
|
+
}
|
|
2204
|
+
var Ki = {
|
|
2205
|
+
"[object Boolean]": "boolean",
|
|
2206
|
+
"[object Number]": "number",
|
|
2207
|
+
"[object String]": "string",
|
|
2208
|
+
"[object Function]": "function",
|
|
2209
|
+
"[object Array]": "array",
|
|
2210
|
+
"[object Date]": "date",
|
|
2211
|
+
"[object RegExp]": "regExp",
|
|
2212
|
+
"[object Undefined]": "undefined",
|
|
2213
|
+
"[object Null]": "null",
|
|
2214
|
+
"[object Object]": "object",
|
|
2215
|
+
"[object Set]": "set",
|
|
2216
|
+
"[object Map]": "map",
|
|
2217
|
+
"[object WeakMap]": "weakmap"
|
|
2218
|
+
};
|
|
2219
|
+
function qi(e) {
|
|
2220
|
+
return Ki[Hi.call(e)];
|
|
2221
|
+
}
|
|
2222
|
+
//#endregion
|
|
2223
|
+
//#region ../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.js
|
|
2224
|
+
function H() {
|
|
2225
|
+
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
2226
|
+
}
|
|
2227
|
+
function Ji() {
|
|
2228
|
+
return `${H() + H()}-${H()}-${H()}-${H()}-${H()}${H()}${H()}`;
|
|
2229
|
+
}
|
|
2230
|
+
function Yi(e, t, n = 0, r = !1, i = "/") {
|
|
2231
|
+
let a = "";
|
|
2232
|
+
if (r && !/^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/.test(location.hostname)) {
|
|
2233
|
+
let e = location.hostname;
|
|
2234
|
+
e.indexOf(".") !== e.lastIndexOf(".") && (a = `;domain=${e.substring(e.indexOf("."), e.length)}`);
|
|
2235
|
+
}
|
|
2236
|
+
if (n !== 0) {
|
|
2237
|
+
let r = n * 24 * 60 * 60 * 1e3, o = new Date((/* @__PURE__ */ new Date()).getTime() + r);
|
|
2238
|
+
document.cookie = `${e}=${escape(t)};path=${i};expires=${o.toUTCString()}${a}`;
|
|
2239
|
+
} else document.cookie = `${e}=${escape(t)};path=${i}${a}`;
|
|
2240
|
+
}
|
|
2241
|
+
function Xi(e, t) {
|
|
2242
|
+
Yi(e, "", -1, t);
|
|
2243
|
+
}
|
|
2244
|
+
function Zi(e) {
|
|
2245
|
+
let t = RegExp(`(^| )${e}=([^;]*)(;|$)`), n = document.cookie.match(t);
|
|
2246
|
+
return n && n.length > 1 ? unescape(n[2]) : null;
|
|
2247
|
+
}
|
|
2248
|
+
//#endregion
|
|
2249
|
+
//#region ../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.js
|
|
2250
|
+
var Qi = class {
|
|
2251
|
+
constructor() {
|
|
2252
|
+
this.items = [];
|
|
2253
|
+
}
|
|
2254
|
+
get size() {
|
|
2255
|
+
return this.items.length;
|
|
2256
|
+
}
|
|
2257
|
+
callSync(e, ...t) {
|
|
2258
|
+
let n = e || Object.create({}), r;
|
|
2259
|
+
for (let e = 0; e < this.items.length; e++) {
|
|
2260
|
+
let i = this.items[e];
|
|
2261
|
+
if (i.fn && (r = i.fn(n, ...t)), r === null) {
|
|
2262
|
+
console.warn(`因${i.fn ? i.fn.name : null}方法返回值为「null」,钩子中断执行。`, i);
|
|
2263
|
+
break;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
return n;
|
|
2267
|
+
}
|
|
2268
|
+
tap(e) {
|
|
2269
|
+
if (e && Ui(e)) {
|
|
2270
|
+
let t = { mode: "sync" };
|
|
2271
|
+
t.fn = e, this.items.push(t);
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
removeTap(e) {
|
|
2275
|
+
if (e) for (let t = 0; t < this.items.length; t++) e === this.items[t].fn && this.items.splice(t, 1);
|
|
2276
|
+
}
|
|
2277
|
+
clear() {
|
|
2278
|
+
this.items = [];
|
|
2279
|
+
}
|
|
2280
|
+
}, $i = class extends Qi {
|
|
2281
|
+
async call(e, ...t) {
|
|
2282
|
+
let n = e || Object.create({}), r;
|
|
2283
|
+
for (let e = 0; e < this.items.length; e++) {
|
|
2284
|
+
let i = this.items[e];
|
|
2285
|
+
if (i.fn && (i.mode === "promise" ? (r = i.fn(n, ...t), Gi(r) && (r = await r)) : r = i.fn(n, ...t)), r === null) {
|
|
2286
|
+
console.warn(`因${i.fn ? i.fn.name : null}方法返回值为「null」,钩子中断执行。`, i);
|
|
2287
|
+
break;
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
return n;
|
|
2291
|
+
}
|
|
2292
|
+
tapPromise(e) {
|
|
2293
|
+
if (e && (Ui(e) || Wi(e))) {
|
|
2294
|
+
let t = { mode: "promise" };
|
|
2295
|
+
t.fn = e, this.items.push(t);
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
removeTapPromise(e) {
|
|
2299
|
+
this.removeTap(e);
|
|
2300
|
+
}
|
|
2301
|
+
}, ea = class {
|
|
2302
|
+
ignoreDismissCheck = !1;
|
|
2303
|
+
state = b({
|
|
2304
|
+
okDisabled: !1,
|
|
2305
|
+
cancelDisabled: !1
|
|
2306
|
+
});
|
|
2307
|
+
hooks = {
|
|
2308
|
+
shouldDismiss: new $i(),
|
|
2309
|
+
beforeDismiss: new $i()
|
|
2310
|
+
};
|
|
2311
|
+
ok;
|
|
2312
|
+
setOptions;
|
|
2313
|
+
constructor(e) {
|
|
2314
|
+
e.dismiss && (this._dismiss = e.dismiss), e.setOptions && (this.setOptions = e.setOptions);
|
|
2315
|
+
}
|
|
2316
|
+
cancel;
|
|
2317
|
+
callback(e, t) {
|
|
2318
|
+
e && (this.ok = e), t && (this.cancel = t);
|
|
2319
|
+
}
|
|
2320
|
+
_dismiss = (e) => {
|
|
2321
|
+
console.warn("外部关闭能力未注册", e);
|
|
2322
|
+
};
|
|
2323
|
+
injectDismiss(e) {
|
|
2324
|
+
this._dismiss = e;
|
|
2325
|
+
}
|
|
2326
|
+
async dismiss(e = {
|
|
2327
|
+
ok: !1,
|
|
2328
|
+
data: []
|
|
2329
|
+
}) {
|
|
2330
|
+
let t = {};
|
|
2331
|
+
return this.ignoreDismissCheck !== !0 && await this.hooks.shouldDismiss.call(t), t.allowClose === !1 ? (console.warn("shouldDismiss结果为false,关闭中断。"), !1) : (await this.hooks.beforeDismiss.call(e), this._dismiss(e), this.destroy(), !0);
|
|
2332
|
+
}
|
|
2333
|
+
destroy() {
|
|
2334
|
+
this.hooks.shouldDismiss.clear(), this.hooks.beforeDismiss.clear();
|
|
2335
|
+
}
|
|
2336
|
+
}, ta = class e {
|
|
2337
|
+
vm;
|
|
2338
|
+
modal;
|
|
2339
|
+
result;
|
|
2340
|
+
evt = new Vi();
|
|
2341
|
+
_initPromise;
|
|
2342
|
+
constructor(e, t, n) {
|
|
2343
|
+
this.component = e, this.render = t, this.opts = n, this._initPromise = this.init();
|
|
2344
|
+
}
|
|
2345
|
+
static async createVueApp(e, t) {
|
|
2346
|
+
return console.error("没有注入createVueApp方法"), p(e, t);
|
|
2347
|
+
}
|
|
2348
|
+
async init() {
|
|
2349
|
+
let t = this, { render: n, opts: r } = this, i = document.createElement("div");
|
|
2350
|
+
document.body.appendChild(i);
|
|
2351
|
+
let a = await e.createVueApp({
|
|
2352
|
+
mounted() {
|
|
2353
|
+
t.modal = this.$refs.root;
|
|
2354
|
+
},
|
|
2355
|
+
unmounted() {
|
|
2356
|
+
document.body.removeChild(i), t.evt.emit("dismiss", t.result);
|
|
2357
|
+
},
|
|
2358
|
+
render() {
|
|
2359
|
+
return m(t.component, {
|
|
2360
|
+
ref: "root",
|
|
2361
|
+
opts: r,
|
|
2362
|
+
onDismiss(e) {
|
|
2363
|
+
t.result = e, a.unmount();
|
|
2364
|
+
}
|
|
2365
|
+
}, { default: n });
|
|
2366
|
+
}
|
|
2367
|
+
});
|
|
2368
|
+
a.mount(i), this.vm = a;
|
|
2369
|
+
}
|
|
2370
|
+
async present() {
|
|
2371
|
+
return await this._initPromise, await _(), this.modal.present();
|
|
2372
|
+
}
|
|
2373
|
+
async dismiss(e) {
|
|
2374
|
+
await this.modal.dismiss(e);
|
|
2375
|
+
}
|
|
2376
|
+
async onWillDismiss() {
|
|
2377
|
+
return new Promise((e) => {
|
|
2378
|
+
let t = (n) => {
|
|
2379
|
+
e(n), this.evt.off("dismiss", t);
|
|
2380
|
+
};
|
|
2381
|
+
this.evt.on("dismiss", t);
|
|
2382
|
+
});
|
|
2383
|
+
}
|
|
2384
|
+
}, na = /* @__PURE__ */ ve((/* @__PURE__ */ ge(((e, t) => {
|
|
2385
|
+
function n(e) {
|
|
2386
|
+
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
2387
|
+
}
|
|
2388
|
+
function r(e, t) {
|
|
2389
|
+
for (var n = "", r = 0, i = -1, a = 0, o, s = 0; s <= e.length; ++s) {
|
|
2390
|
+
if (s < e.length) o = e.charCodeAt(s);
|
|
2391
|
+
else if (o === 47) break;
|
|
2392
|
+
else o = 47;
|
|
2393
|
+
if (o === 47) {
|
|
2394
|
+
if (!(i === s - 1 || a === 1)) if (i !== s - 1 && a === 2) {
|
|
2395
|
+
if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
|
|
2396
|
+
if (n.length > 2) {
|
|
2397
|
+
var c = n.lastIndexOf("/");
|
|
2398
|
+
if (c !== n.length - 1) {
|
|
2399
|
+
c === -1 ? (n = "", r = 0) : (n = n.slice(0, c), r = n.length - 1 - n.lastIndexOf("/")), i = s, a = 0;
|
|
2400
|
+
continue;
|
|
2401
|
+
}
|
|
2402
|
+
} else if (n.length === 2 || n.length === 1) {
|
|
2403
|
+
n = "", r = 0, i = s, a = 0;
|
|
2404
|
+
continue;
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
|
|
2408
|
+
} else n.length > 0 ? n += "/" + e.slice(i + 1, s) : n = e.slice(i + 1, s), r = s - i - 1;
|
|
2409
|
+
i = s, a = 0;
|
|
2410
|
+
} else o === 46 && a !== -1 ? ++a : a = -1;
|
|
2411
|
+
}
|
|
2412
|
+
return n;
|
|
2413
|
+
}
|
|
2414
|
+
function i(e, t) {
|
|
2415
|
+
var n = t.dir || t.root, r = t.base || (t.name || "") + (t.ext || "");
|
|
2416
|
+
return n ? n === t.root ? n + r : n + e + r : r;
|
|
2417
|
+
}
|
|
2418
|
+
var a = {
|
|
2419
|
+
resolve: function() {
|
|
2420
|
+
for (var e = "", t = !1, i, a = arguments.length - 1; a >= -1 && !t; a--) {
|
|
2421
|
+
var o;
|
|
2422
|
+
a >= 0 ? o = arguments[a] : (i === void 0 && (i = process.cwd()), o = i), n(o), o.length !== 0 && (e = o + "/" + e, t = o.charCodeAt(0) === 47);
|
|
2423
|
+
}
|
|
2424
|
+
return e = r(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
|
|
2425
|
+
},
|
|
2426
|
+
normalize: function(e) {
|
|
2427
|
+
if (n(e), e.length === 0) return ".";
|
|
2428
|
+
var t = e.charCodeAt(0) === 47, i = e.charCodeAt(e.length - 1) === 47;
|
|
2429
|
+
return e = r(e, !t), e.length === 0 && !t && (e = "."), e.length > 0 && i && (e += "/"), t ? "/" + e : e;
|
|
2430
|
+
},
|
|
2431
|
+
isAbsolute: function(e) {
|
|
2432
|
+
return n(e), e.length > 0 && e.charCodeAt(0) === 47;
|
|
2433
|
+
},
|
|
2434
|
+
join: function() {
|
|
2435
|
+
if (arguments.length === 0) return ".";
|
|
2436
|
+
for (var e, t = 0; t < arguments.length; ++t) {
|
|
2437
|
+
var r = arguments[t];
|
|
2438
|
+
n(r), r.length > 0 && (e === void 0 ? e = r : e += "/" + r);
|
|
2439
|
+
}
|
|
2440
|
+
return e === void 0 ? "." : a.normalize(e);
|
|
2441
|
+
},
|
|
2442
|
+
relative: function(e, t) {
|
|
2443
|
+
if (n(e), n(t), e === t || (e = a.resolve(e), t = a.resolve(t), e === t)) return "";
|
|
2444
|
+
for (var r = 1; r < e.length && e.charCodeAt(r) === 47; ++r);
|
|
2445
|
+
for (var i = e.length, o = i - r, s = 1; s < t.length && t.charCodeAt(s) === 47; ++s);
|
|
2446
|
+
for (var c = t.length - s, l = o < c ? o : c, u = -1, d = 0; d <= l; ++d) {
|
|
2447
|
+
if (d === l) {
|
|
2448
|
+
if (c > l) {
|
|
2449
|
+
if (t.charCodeAt(s + d) === 47) return t.slice(s + d + 1);
|
|
2450
|
+
if (d === 0) return t.slice(s + d);
|
|
2451
|
+
} else o > l && (e.charCodeAt(r + d) === 47 ? u = d : d === 0 && (u = 0));
|
|
2452
|
+
break;
|
|
2453
|
+
}
|
|
2454
|
+
var f = e.charCodeAt(r + d);
|
|
2455
|
+
if (f !== t.charCodeAt(s + d)) break;
|
|
2456
|
+
f === 47 && (u = d);
|
|
2457
|
+
}
|
|
2458
|
+
var p = "";
|
|
2459
|
+
for (d = r + u + 1; d <= i; ++d) (d === i || e.charCodeAt(d) === 47) && (p.length === 0 ? p += ".." : p += "/..");
|
|
2460
|
+
return p.length > 0 ? p + t.slice(s + u) : (s += u, t.charCodeAt(s) === 47 && ++s, t.slice(s));
|
|
2461
|
+
},
|
|
2462
|
+
_makeLong: function(e) {
|
|
2463
|
+
return e;
|
|
2464
|
+
},
|
|
2465
|
+
dirname: function(e) {
|
|
2466
|
+
if (n(e), e.length === 0) return ".";
|
|
2467
|
+
for (var t = e.charCodeAt(0), r = t === 47, i = -1, a = !0, o = e.length - 1; o >= 1; --o) if (t = e.charCodeAt(o), t === 47) {
|
|
2468
|
+
if (!a) {
|
|
2469
|
+
i = o;
|
|
2470
|
+
break;
|
|
2471
|
+
}
|
|
2472
|
+
} else a = !1;
|
|
2473
|
+
return i === -1 ? r ? "/" : "." : r && i === 1 ? "//" : e.slice(0, i);
|
|
2474
|
+
},
|
|
2475
|
+
basename: function(e, t) {
|
|
2476
|
+
if (t !== void 0 && typeof t != "string") throw TypeError("\"ext\" argument must be a string");
|
|
2477
|
+
n(e);
|
|
2478
|
+
var r = 0, i = -1, a = !0, o;
|
|
2479
|
+
if (t !== void 0 && t.length > 0 && t.length <= e.length) {
|
|
2480
|
+
if (t.length === e.length && t === e) return "";
|
|
2481
|
+
var s = t.length - 1, c = -1;
|
|
2482
|
+
for (o = e.length - 1; o >= 0; --o) {
|
|
2483
|
+
var l = e.charCodeAt(o);
|
|
2484
|
+
if (l === 47) {
|
|
2485
|
+
if (!a) {
|
|
2486
|
+
r = o + 1;
|
|
2487
|
+
break;
|
|
2488
|
+
}
|
|
2489
|
+
} else c === -1 && (a = !1, c = o + 1), s >= 0 && (l === t.charCodeAt(s) ? --s === -1 && (i = o) : (s = -1, i = c));
|
|
2490
|
+
}
|
|
2491
|
+
return r === i ? i = c : i === -1 && (i = e.length), e.slice(r, i);
|
|
2492
|
+
} else {
|
|
2493
|
+
for (o = e.length - 1; o >= 0; --o) if (e.charCodeAt(o) === 47) {
|
|
2494
|
+
if (!a) {
|
|
2495
|
+
r = o + 1;
|
|
2496
|
+
break;
|
|
2497
|
+
}
|
|
2498
|
+
} else i === -1 && (a = !1, i = o + 1);
|
|
2499
|
+
return i === -1 ? "" : e.slice(r, i);
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
extname: function(e) {
|
|
2503
|
+
n(e);
|
|
2504
|
+
for (var t = -1, r = 0, i = -1, a = !0, o = 0, s = e.length - 1; s >= 0; --s) {
|
|
2505
|
+
var c = e.charCodeAt(s);
|
|
2506
|
+
if (c === 47) {
|
|
2507
|
+
if (!a) {
|
|
2508
|
+
r = s + 1;
|
|
2509
|
+
break;
|
|
2510
|
+
}
|
|
2511
|
+
continue;
|
|
2512
|
+
}
|
|
2513
|
+
i === -1 && (a = !1, i = s + 1), c === 46 ? t === -1 ? t = s : o !== 1 && (o = 1) : t !== -1 && (o = -1);
|
|
2514
|
+
}
|
|
2515
|
+
return t === -1 || i === -1 || o === 0 || o === 1 && t === i - 1 && t === r + 1 ? "" : e.slice(t, i);
|
|
2516
|
+
},
|
|
2517
|
+
format: function(e) {
|
|
2518
|
+
if (typeof e != "object" || !e) throw TypeError("The \"pathObject\" argument must be of type Object. Received type " + typeof e);
|
|
2519
|
+
return i("/", e);
|
|
2520
|
+
},
|
|
2521
|
+
parse: function(e) {
|
|
2522
|
+
n(e);
|
|
2523
|
+
var t = {
|
|
2524
|
+
root: "",
|
|
2525
|
+
dir: "",
|
|
2526
|
+
base: "",
|
|
2527
|
+
ext: "",
|
|
2528
|
+
name: ""
|
|
2529
|
+
};
|
|
2530
|
+
if (e.length === 0) return t;
|
|
2531
|
+
var r = e.charCodeAt(0), i = r === 47, a;
|
|
2532
|
+
i ? (t.root = "/", a = 1) : a = 0;
|
|
2533
|
+
for (var o = -1, s = 0, c = -1, l = !0, u = e.length - 1, d = 0; u >= a; --u) {
|
|
2534
|
+
if (r = e.charCodeAt(u), r === 47) {
|
|
2535
|
+
if (!l) {
|
|
2536
|
+
s = u + 1;
|
|
2537
|
+
break;
|
|
2538
|
+
}
|
|
2539
|
+
continue;
|
|
2540
|
+
}
|
|
2541
|
+
c === -1 && (l = !1, c = u + 1), r === 46 ? o === -1 ? o = u : d !== 1 && (d = 1) : o !== -1 && (d = -1);
|
|
2542
|
+
}
|
|
2543
|
+
return o === -1 || c === -1 || d === 0 || d === 1 && o === c - 1 && o === s + 1 ? c !== -1 && (s === 0 && i ? t.base = t.name = e.slice(1, c) : t.base = t.name = e.slice(s, c)) : (s === 0 && i ? (t.name = e.slice(1, o), t.base = e.slice(1, c)) : (t.name = e.slice(s, o), t.base = e.slice(s, c)), t.ext = e.slice(o, c)), s > 0 ? t.dir = e.slice(0, s - 1) : i && (t.dir = "/"), t;
|
|
2544
|
+
},
|
|
2545
|
+
sep: "/",
|
|
2546
|
+
delimiter: ":",
|
|
2547
|
+
win32: null,
|
|
2548
|
+
posix: null
|
|
2549
|
+
};
|
|
2550
|
+
a.posix = a, t.exports = a;
|
|
2551
|
+
})))(), 1), ra = class {
|
|
2552
|
+
baseDir;
|
|
2553
|
+
url;
|
|
2554
|
+
constructor(e, t = !1) {
|
|
2555
|
+
this.isDev = t, this.url = new URL(e), this.baseDir = na.default.dirname(this.url.pathname);
|
|
2556
|
+
}
|
|
2557
|
+
dir(e) {
|
|
2558
|
+
return this.isDev === !0 ? e : this.url.origin + na.default.resolve(this.baseDir, e);
|
|
2559
|
+
}
|
|
2560
|
+
};
|
|
2561
|
+
//#endregion
|
|
2562
|
+
//#region src/utils/tools/tools.ts
|
|
2563
|
+
function U() {
|
|
2564
|
+
return Zi(B.TOKEN);
|
|
2565
|
+
}
|
|
2566
|
+
function ia(e) {
|
|
2567
|
+
e ? Yi(B.TOKEN, e, 7, !0) : Xi(B.TOKEN, !0);
|
|
2568
|
+
}
|
|
2569
|
+
function aa() {
|
|
2570
|
+
return Zi(B.TENANT);
|
|
2571
|
+
}
|
|
2572
|
+
function oa(e) {
|
|
2573
|
+
e ? Yi(B.TENANT, e, 7, !0) : Xi(B.TENANT, !0);
|
|
2574
|
+
}
|
|
2575
|
+
var sa = (() => {
|
|
2576
|
+
let e = navigator.userAgent, t = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/, n = window.innerWidth <= 768, r = "ontouchstart" in window || navigator.maxTouchPoints > 0;
|
|
2577
|
+
return t.test(e) || n && r;
|
|
2578
|
+
})();
|
|
2579
|
+
function ca() {
|
|
2580
|
+
return localStorage.getItem("TIMEZONE__") || "UTC+08:00";
|
|
2581
|
+
}
|
|
2582
|
+
function la(e, t) {
|
|
2583
|
+
return l(i(e), t, (e, t) => {
|
|
2584
|
+
if (typeof e == "object" && typeof t == "object") return l(i(e), t, (e, t) => Array.isArray(e) ? d(e, t, c) : void 0);
|
|
2585
|
+
});
|
|
2586
|
+
}
|
|
2587
|
+
function ua(e) {
|
|
2588
|
+
let t = r.stringify(e, {
|
|
2589
|
+
encode: !0,
|
|
2590
|
+
delimiter: ";"
|
|
2591
|
+
});
|
|
2592
|
+
return t ? `;${t}` : "";
|
|
2593
|
+
}
|
|
2594
|
+
function da(e) {
|
|
2595
|
+
return e.indexOf(";") === -1 ? {} : r.parse(e, { delimiter: ";" });
|
|
2596
|
+
}
|
|
2597
|
+
//#endregion
|
|
2598
|
+
//#region __vite-browser-external
|
|
2599
|
+
var fa = /* @__PURE__ */ ge(((e, t) => {
|
|
2600
|
+
t.exports = {};
|
|
2601
|
+
})), pa = (/* @__PURE__ */ ge(((e, t) => {
|
|
2602
|
+
(function() {
|
|
2603
|
+
var e = "input is invalid type", n = typeof window == "object", r = n ? window : {};
|
|
2604
|
+
r.JS_SHA256_NO_WINDOW && (n = !1);
|
|
2605
|
+
var i = !n && typeof self == "object", a = !r.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node && process.type != "renderer";
|
|
2606
|
+
a ? r = global : i && (r = self);
|
|
2607
|
+
var o = !r.JS_SHA256_NO_COMMON_JS && typeof t == "object" && t.exports, s = typeof define == "function" && define.amd, c = !r.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", l = "0123456789abcdef".split(""), u = [
|
|
2608
|
+
-2147483648,
|
|
2609
|
+
8388608,
|
|
2610
|
+
32768,
|
|
2611
|
+
128
|
|
2612
|
+
], d = [
|
|
2613
|
+
24,
|
|
2614
|
+
16,
|
|
2615
|
+
8,
|
|
2616
|
+
0
|
|
2617
|
+
], f = [
|
|
2618
|
+
1116352408,
|
|
2619
|
+
1899447441,
|
|
2620
|
+
3049323471,
|
|
2621
|
+
3921009573,
|
|
2622
|
+
961987163,
|
|
2623
|
+
1508970993,
|
|
2624
|
+
2453635748,
|
|
2625
|
+
2870763221,
|
|
2626
|
+
3624381080,
|
|
2627
|
+
310598401,
|
|
2628
|
+
607225278,
|
|
2629
|
+
1426881987,
|
|
2630
|
+
1925078388,
|
|
2631
|
+
2162078206,
|
|
2632
|
+
2614888103,
|
|
2633
|
+
3248222580,
|
|
2634
|
+
3835390401,
|
|
2635
|
+
4022224774,
|
|
2636
|
+
264347078,
|
|
2637
|
+
604807628,
|
|
2638
|
+
770255983,
|
|
2639
|
+
1249150122,
|
|
2640
|
+
1555081692,
|
|
2641
|
+
1996064986,
|
|
2642
|
+
2554220882,
|
|
2643
|
+
2821834349,
|
|
2644
|
+
2952996808,
|
|
2645
|
+
3210313671,
|
|
2646
|
+
3336571891,
|
|
2647
|
+
3584528711,
|
|
2648
|
+
113926993,
|
|
2649
|
+
338241895,
|
|
2650
|
+
666307205,
|
|
2651
|
+
773529912,
|
|
2652
|
+
1294757372,
|
|
2653
|
+
1396182291,
|
|
2654
|
+
1695183700,
|
|
2655
|
+
1986661051,
|
|
2656
|
+
2177026350,
|
|
2657
|
+
2456956037,
|
|
2658
|
+
2730485921,
|
|
2659
|
+
2820302411,
|
|
2660
|
+
3259730800,
|
|
2661
|
+
3345764771,
|
|
2662
|
+
3516065817,
|
|
2663
|
+
3600352804,
|
|
2664
|
+
4094571909,
|
|
2665
|
+
275423344,
|
|
2666
|
+
430227734,
|
|
2667
|
+
506948616,
|
|
2668
|
+
659060556,
|
|
2669
|
+
883997877,
|
|
2670
|
+
958139571,
|
|
2671
|
+
1322822218,
|
|
2672
|
+
1537002063,
|
|
2673
|
+
1747873779,
|
|
2674
|
+
1955562222,
|
|
2675
|
+
2024104815,
|
|
2676
|
+
2227730452,
|
|
2677
|
+
2361852424,
|
|
2678
|
+
2428436474,
|
|
2679
|
+
2756734187,
|
|
2680
|
+
3204031479,
|
|
2681
|
+
3329325298
|
|
2682
|
+
], p = [
|
|
2683
|
+
"hex",
|
|
2684
|
+
"array",
|
|
2685
|
+
"digest",
|
|
2686
|
+
"arrayBuffer"
|
|
2687
|
+
], m = [];
|
|
2688
|
+
(r.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(e) {
|
|
2689
|
+
return Object.prototype.toString.call(e) === "[object Array]";
|
|
2690
|
+
}), c && (r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(e) {
|
|
2691
|
+
return typeof e == "object" && e.buffer && e.buffer.constructor === ArrayBuffer;
|
|
2692
|
+
});
|
|
2693
|
+
var h = function(e, t) {
|
|
2694
|
+
return function(n) {
|
|
2695
|
+
return new b(t, !0).update(n)[e]();
|
|
2696
|
+
};
|
|
2697
|
+
}, g = function(e) {
|
|
2698
|
+
var t = h("hex", e);
|
|
2699
|
+
a && (t = _(t, e)), t.create = function() {
|
|
2700
|
+
return new b(e);
|
|
2701
|
+
}, t.update = function(e) {
|
|
2702
|
+
return t.create().update(e);
|
|
2703
|
+
};
|
|
2704
|
+
for (var n = 0; n < p.length; ++n) {
|
|
2705
|
+
var r = p[n];
|
|
2706
|
+
t[r] = h(r, e);
|
|
2707
|
+
}
|
|
2708
|
+
return t;
|
|
2709
|
+
}, _ = function(t, n) {
|
|
2710
|
+
var i = fa(), a = fa().Buffer, o = n ? "sha224" : "sha256", s = a.from && !r.JS_SHA256_NO_BUFFER_FROM ? a.from : function(e) {
|
|
2711
|
+
return new a(e);
|
|
2712
|
+
};
|
|
2713
|
+
return function(n) {
|
|
2714
|
+
if (typeof n == "string") return i.createHash(o).update(n, "utf8").digest("hex");
|
|
2715
|
+
if (n == null) throw Error(e);
|
|
2716
|
+
return n.constructor === ArrayBuffer && (n = new Uint8Array(n)), Array.isArray(n) || ArrayBuffer.isView(n) || n.constructor === a ? i.createHash(o).update(s(n)).digest("hex") : t(n);
|
|
2717
|
+
};
|
|
2718
|
+
}, v = function(e, t) {
|
|
2719
|
+
return function(n, r) {
|
|
2720
|
+
return new x(n, t, !0).update(r)[e]();
|
|
2721
|
+
};
|
|
2722
|
+
}, y = function(e) {
|
|
2723
|
+
var t = v("hex", e);
|
|
2724
|
+
t.create = function(t) {
|
|
2725
|
+
return new x(t, e);
|
|
2726
|
+
}, t.update = function(e, n) {
|
|
2727
|
+
return t.create(e).update(n);
|
|
2728
|
+
};
|
|
2729
|
+
for (var n = 0; n < p.length; ++n) {
|
|
2730
|
+
var r = p[n];
|
|
2731
|
+
t[r] = v(r, e);
|
|
2732
|
+
}
|
|
2733
|
+
return t;
|
|
2734
|
+
};
|
|
2735
|
+
function b(e, t) {
|
|
2736
|
+
t ? (m[0] = m[16] = m[1] = m[2] = m[3] = m[4] = m[5] = m[6] = m[7] = m[8] = m[9] = m[10] = m[11] = m[12] = m[13] = m[14] = m[15] = 0, this.blocks = m) : this.blocks = [
|
|
2737
|
+
0,
|
|
2738
|
+
0,
|
|
2739
|
+
0,
|
|
2740
|
+
0,
|
|
2741
|
+
0,
|
|
2742
|
+
0,
|
|
2743
|
+
0,
|
|
2744
|
+
0,
|
|
2745
|
+
0,
|
|
2746
|
+
0,
|
|
2747
|
+
0,
|
|
2748
|
+
0,
|
|
2749
|
+
0,
|
|
2750
|
+
0,
|
|
2751
|
+
0,
|
|
2752
|
+
0,
|
|
2753
|
+
0
|
|
2754
|
+
], e ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = e;
|
|
2755
|
+
}
|
|
2756
|
+
b.prototype.update = function(t) {
|
|
2757
|
+
if (!this.finalized) {
|
|
2758
|
+
var n, r = typeof t;
|
|
2759
|
+
if (r !== "string") {
|
|
2760
|
+
if (r === "object") {
|
|
2761
|
+
if (t === null) throw Error(e);
|
|
2762
|
+
if (c && t.constructor === ArrayBuffer) t = new Uint8Array(t);
|
|
2763
|
+
else if (!Array.isArray(t) && (!c || !ArrayBuffer.isView(t))) throw Error(e);
|
|
2764
|
+
} else throw Error(e);
|
|
2765
|
+
n = !0;
|
|
2766
|
+
}
|
|
2767
|
+
for (var i, a = 0, o, s = t.length, l = this.blocks; a < s;) {
|
|
2768
|
+
if (this.hashed && (this.hashed = !1, l[0] = this.block, this.block = l[16] = l[1] = l[2] = l[3] = l[4] = l[5] = l[6] = l[7] = l[8] = l[9] = l[10] = l[11] = l[12] = l[13] = l[14] = l[15] = 0), n) for (o = this.start; a < s && o < 64; ++a) l[o >>> 2] |= t[a] << d[o++ & 3];
|
|
2769
|
+
else for (o = this.start; a < s && o < 64; ++a) i = t.charCodeAt(a), i < 128 ? l[o >>> 2] |= i << d[o++ & 3] : i < 2048 ? (l[o >>> 2] |= (192 | i >>> 6) << d[o++ & 3], l[o >>> 2] |= (128 | i & 63) << d[o++ & 3]) : i < 55296 || i >= 57344 ? (l[o >>> 2] |= (224 | i >>> 12) << d[o++ & 3], l[o >>> 2] |= (128 | i >>> 6 & 63) << d[o++ & 3], l[o >>> 2] |= (128 | i & 63) << d[o++ & 3]) : (i = 65536 + ((i & 1023) << 10 | t.charCodeAt(++a) & 1023), l[o >>> 2] |= (240 | i >>> 18) << d[o++ & 3], l[o >>> 2] |= (128 | i >>> 12 & 63) << d[o++ & 3], l[o >>> 2] |= (128 | i >>> 6 & 63) << d[o++ & 3], l[o >>> 2] |= (128 | i & 63) << d[o++ & 3]);
|
|
2770
|
+
this.lastByteIndex = o, this.bytes += o - this.start, o >= 64 ? (this.block = l[16], this.start = o - 64, this.hash(), this.hashed = !0) : this.start = o;
|
|
2771
|
+
}
|
|
2772
|
+
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes %= 4294967296), this;
|
|
2773
|
+
}
|
|
2774
|
+
}, b.prototype.finalize = function() {
|
|
2775
|
+
if (!this.finalized) {
|
|
2776
|
+
this.finalized = !0;
|
|
2777
|
+
var e = this.blocks, t = this.lastByteIndex;
|
|
2778
|
+
e[16] = this.block, e[t >>> 2] |= u[t & 3], this.block = e[16], t >= 56 && (this.hashed || this.hash(), e[0] = this.block, e[16] = e[1] = e[2] = e[3] = e[4] = e[5] = e[6] = e[7] = e[8] = e[9] = e[10] = e[11] = e[12] = e[13] = e[14] = e[15] = 0), e[14] = this.hBytes << 3 | this.bytes >>> 29, e[15] = this.bytes << 3, this.hash();
|
|
2779
|
+
}
|
|
2780
|
+
}, b.prototype.hash = function() {
|
|
2781
|
+
var e = this.h0, t = this.h1, n = this.h2, r = this.h3, i = this.h4, a = this.h5, o = this.h6, s = this.h7, c = this.blocks, l, u, d, p, m, h, g, _, v, y, b;
|
|
2782
|
+
for (l = 16; l < 64; ++l) m = c[l - 15], u = (m >>> 7 | m << 25) ^ (m >>> 18 | m << 14) ^ m >>> 3, m = c[l - 2], d = (m >>> 17 | m << 15) ^ (m >>> 19 | m << 13) ^ m >>> 10, c[l] = c[l - 16] + u + c[l - 7] + d << 0;
|
|
2783
|
+
for (b = t & n, l = 0; l < 64; l += 4) this.first ? (this.is224 ? (_ = 300032, m = c[0] - 1413257819, s = m - 150054599 << 0, r = m + 24177077 << 0) : (_ = 704751109, m = c[0] - 210244248, s = m - 1521486534 << 0, r = m + 143694565 << 0), this.first = !1) : (u = (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10), d = (i >>> 6 | i << 26) ^ (i >>> 11 | i << 21) ^ (i >>> 25 | i << 7), _ = e & t, p = _ ^ e & n ^ b, g = i & a ^ ~i & o, m = s + d + g + f[l] + c[l], h = u + p, s = r + m << 0, r = m + h << 0), u = (r >>> 2 | r << 30) ^ (r >>> 13 | r << 19) ^ (r >>> 22 | r << 10), d = (s >>> 6 | s << 26) ^ (s >>> 11 | s << 21) ^ (s >>> 25 | s << 7), v = r & e, p = v ^ r & t ^ _, g = s & i ^ ~s & a, m = o + d + g + f[l + 1] + c[l + 1], h = u + p, o = n + m << 0, n = m + h << 0, u = (n >>> 2 | n << 30) ^ (n >>> 13 | n << 19) ^ (n >>> 22 | n << 10), d = (o >>> 6 | o << 26) ^ (o >>> 11 | o << 21) ^ (o >>> 25 | o << 7), y = n & r, p = y ^ n & e ^ v, g = o & s ^ ~o & i, m = a + d + g + f[l + 2] + c[l + 2], h = u + p, a = t + m << 0, t = m + h << 0, u = (t >>> 2 | t << 30) ^ (t >>> 13 | t << 19) ^ (t >>> 22 | t << 10), d = (a >>> 6 | a << 26) ^ (a >>> 11 | a << 21) ^ (a >>> 25 | a << 7), b = t & n, p = b ^ t & r ^ y, g = a & o ^ ~a & s, m = i + d + g + f[l + 3] + c[l + 3], h = u + p, i = e + m << 0, e = m + h << 0, this.chromeBugWorkAround = !0;
|
|
2784
|
+
this.h0 = this.h0 + e << 0, this.h1 = this.h1 + t << 0, this.h2 = this.h2 + n << 0, this.h3 = this.h3 + r << 0, this.h4 = this.h4 + i << 0, this.h5 = this.h5 + a << 0, this.h6 = this.h6 + o << 0, this.h7 = this.h7 + s << 0;
|
|
2785
|
+
}, b.prototype.hex = function() {
|
|
2786
|
+
this.finalize();
|
|
2787
|
+
var e = this.h0, t = this.h1, n = this.h2, r = this.h3, i = this.h4, a = this.h5, o = this.h6, s = this.h7, c = l[e >>> 28 & 15] + l[e >>> 24 & 15] + l[e >>> 20 & 15] + l[e >>> 16 & 15] + l[e >>> 12 & 15] + l[e >>> 8 & 15] + l[e >>> 4 & 15] + l[e & 15] + l[t >>> 28 & 15] + l[t >>> 24 & 15] + l[t >>> 20 & 15] + l[t >>> 16 & 15] + l[t >>> 12 & 15] + l[t >>> 8 & 15] + l[t >>> 4 & 15] + l[t & 15] + l[n >>> 28 & 15] + l[n >>> 24 & 15] + l[n >>> 20 & 15] + l[n >>> 16 & 15] + l[n >>> 12 & 15] + l[n >>> 8 & 15] + l[n >>> 4 & 15] + l[n & 15] + l[r >>> 28 & 15] + l[r >>> 24 & 15] + l[r >>> 20 & 15] + l[r >>> 16 & 15] + l[r >>> 12 & 15] + l[r >>> 8 & 15] + l[r >>> 4 & 15] + l[r & 15] + l[i >>> 28 & 15] + l[i >>> 24 & 15] + l[i >>> 20 & 15] + l[i >>> 16 & 15] + l[i >>> 12 & 15] + l[i >>> 8 & 15] + l[i >>> 4 & 15] + l[i & 15] + l[a >>> 28 & 15] + l[a >>> 24 & 15] + l[a >>> 20 & 15] + l[a >>> 16 & 15] + l[a >>> 12 & 15] + l[a >>> 8 & 15] + l[a >>> 4 & 15] + l[a & 15] + l[o >>> 28 & 15] + l[o >>> 24 & 15] + l[o >>> 20 & 15] + l[o >>> 16 & 15] + l[o >>> 12 & 15] + l[o >>> 8 & 15] + l[o >>> 4 & 15] + l[o & 15];
|
|
2788
|
+
return this.is224 || (c += l[s >>> 28 & 15] + l[s >>> 24 & 15] + l[s >>> 20 & 15] + l[s >>> 16 & 15] + l[s >>> 12 & 15] + l[s >>> 8 & 15] + l[s >>> 4 & 15] + l[s & 15]), c;
|
|
2789
|
+
}, b.prototype.toString = b.prototype.hex, b.prototype.digest = function() {
|
|
2790
|
+
this.finalize();
|
|
2791
|
+
var e = this.h0, t = this.h1, n = this.h2, r = this.h3, i = this.h4, a = this.h5, o = this.h6, s = this.h7, c = [
|
|
2792
|
+
e >>> 24 & 255,
|
|
2793
|
+
e >>> 16 & 255,
|
|
2794
|
+
e >>> 8 & 255,
|
|
2795
|
+
e & 255,
|
|
2796
|
+
t >>> 24 & 255,
|
|
2797
|
+
t >>> 16 & 255,
|
|
2798
|
+
t >>> 8 & 255,
|
|
2799
|
+
t & 255,
|
|
2800
|
+
n >>> 24 & 255,
|
|
2801
|
+
n >>> 16 & 255,
|
|
2802
|
+
n >>> 8 & 255,
|
|
2803
|
+
n & 255,
|
|
2804
|
+
r >>> 24 & 255,
|
|
2805
|
+
r >>> 16 & 255,
|
|
2806
|
+
r >>> 8 & 255,
|
|
2807
|
+
r & 255,
|
|
2808
|
+
i >>> 24 & 255,
|
|
2809
|
+
i >>> 16 & 255,
|
|
2810
|
+
i >>> 8 & 255,
|
|
2811
|
+
i & 255,
|
|
2812
|
+
a >>> 24 & 255,
|
|
2813
|
+
a >>> 16 & 255,
|
|
2814
|
+
a >>> 8 & 255,
|
|
2815
|
+
a & 255,
|
|
2816
|
+
o >>> 24 & 255,
|
|
2817
|
+
o >>> 16 & 255,
|
|
2818
|
+
o >>> 8 & 255,
|
|
2819
|
+
o & 255
|
|
2820
|
+
];
|
|
2821
|
+
return this.is224 || c.push(s >>> 24 & 255, s >>> 16 & 255, s >>> 8 & 255, s & 255), c;
|
|
2822
|
+
}, b.prototype.array = b.prototype.digest, b.prototype.arrayBuffer = function() {
|
|
2823
|
+
this.finalize();
|
|
2824
|
+
var e = /* @__PURE__ */ new ArrayBuffer(this.is224 ? 28 : 32), t = new DataView(e);
|
|
2825
|
+
return t.setUint32(0, this.h0), t.setUint32(4, this.h1), t.setUint32(8, this.h2), t.setUint32(12, this.h3), t.setUint32(16, this.h4), t.setUint32(20, this.h5), t.setUint32(24, this.h6), this.is224 || t.setUint32(28, this.h7), e;
|
|
2826
|
+
};
|
|
2827
|
+
function x(t, n, r) {
|
|
2828
|
+
var i, a = typeof t;
|
|
2829
|
+
if (a === "string") {
|
|
2830
|
+
var o = [], s = t.length, l = 0, u;
|
|
2831
|
+
for (i = 0; i < s; ++i) u = t.charCodeAt(i), u < 128 ? o[l++] = u : u < 2048 ? (o[l++] = 192 | u >>> 6, o[l++] = 128 | u & 63) : u < 55296 || u >= 57344 ? (o[l++] = 224 | u >>> 12, o[l++] = 128 | u >>> 6 & 63, o[l++] = 128 | u & 63) : (u = 65536 + ((u & 1023) << 10 | t.charCodeAt(++i) & 1023), o[l++] = 240 | u >>> 18, o[l++] = 128 | u >>> 12 & 63, o[l++] = 128 | u >>> 6 & 63, o[l++] = 128 | u & 63);
|
|
2832
|
+
t = o;
|
|
2833
|
+
} else if (a === "object") {
|
|
2834
|
+
if (t === null) throw Error(e);
|
|
2835
|
+
if (c && t.constructor === ArrayBuffer) t = new Uint8Array(t);
|
|
2836
|
+
else if (!Array.isArray(t) && (!c || !ArrayBuffer.isView(t))) throw Error(e);
|
|
2837
|
+
} else throw Error(e);
|
|
2838
|
+
t.length > 64 && (t = new b(n, !0).update(t).array());
|
|
2839
|
+
var d = [], f = [];
|
|
2840
|
+
for (i = 0; i < 64; ++i) {
|
|
2841
|
+
var p = t[i] || 0;
|
|
2842
|
+
d[i] = 92 ^ p, f[i] = 54 ^ p;
|
|
2843
|
+
}
|
|
2844
|
+
b.call(this, n, r), this.update(f), this.oKeyPad = d, this.inner = !0, this.sharedMemory = r;
|
|
2845
|
+
}
|
|
2846
|
+
x.prototype = new b(), x.prototype.finalize = function() {
|
|
2847
|
+
if (b.prototype.finalize.call(this), this.inner) {
|
|
2848
|
+
this.inner = !1;
|
|
2849
|
+
var e = this.array();
|
|
2850
|
+
b.call(this, this.is224, this.sharedMemory), this.update(this.oKeyPad), this.update(e), b.prototype.finalize.call(this);
|
|
2851
|
+
}
|
|
2852
|
+
};
|
|
2853
|
+
var S = g();
|
|
2854
|
+
S.sha256 = S, S.sha224 = g(!0), S.sha256.hmac = y(), S.sha224.hmac = y(!0), o ? t.exports = S : (r.sha256 = S.sha256, r.sha224 = S.sha224, s && define(function() {
|
|
2855
|
+
return S;
|
|
2856
|
+
}));
|
|
2857
|
+
})();
|
|
2858
|
+
})))(), ma = [];
|
|
2859
|
+
for (let e = 0; e <= 15; e++) ma[e] = e.toString(16);
|
|
2860
|
+
function ha() {
|
|
2861
|
+
let e = "";
|
|
2862
|
+
for (let t = 1; t <= 36; t++) t === 9 || t === 14 || t === 19 || t === 24 ? e += "-" : t === 15 ? e += 4 : t === 20 ? e += ma[Math.random() * 4 | 8] : e += ma[Math.random() * 16 | 0];
|
|
2863
|
+
return e.replace(/-/g, "");
|
|
2864
|
+
}
|
|
2865
|
+
var ga = 0;
|
|
2866
|
+
function _a(e = "") {
|
|
2867
|
+
e = e.replaceAll("-", "");
|
|
2868
|
+
let t = Math.floor(Math.random() * 1e9);
|
|
2869
|
+
return ga++, e + "_" + t + ga;
|
|
2870
|
+
}
|
|
2871
|
+
var va = (e, t) => {
|
|
2872
|
+
let n = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), r = [], i;
|
|
2873
|
+
if (t ||= n.length, e) for (i = 0; i < e; i++) r[i] = n[0 | Math.random() * t];
|
|
2874
|
+
else {
|
|
2875
|
+
let e;
|
|
2876
|
+
for (r[8] = r[13] = r[18] = r[23] = "-", r[14] = "4", i = 0; i < 36; i++) r[i] || (e = 0 | Math.random() * 16, r[i] = n[i == 19 ? e & 3 | 8 : e]);
|
|
2877
|
+
}
|
|
2878
|
+
return r.join("");
|
|
2879
|
+
};
|
|
2880
|
+
//#endregion
|
|
2881
|
+
//#region src/utils/value-helper/value-helper.ts
|
|
2882
|
+
function ya(e, t) {
|
|
2883
|
+
return f({
|
|
2884
|
+
get: () => e.value,
|
|
2885
|
+
set: (n) => {
|
|
2886
|
+
e.value = n, t(n);
|
|
2887
|
+
}
|
|
2888
|
+
});
|
|
2889
|
+
}
|
|
2890
|
+
function ba(e, t) {
|
|
2891
|
+
let n = Object.keys(g(e) ? e.value : e), r = {};
|
|
2892
|
+
return n.forEach((n) => {
|
|
2893
|
+
r[n] = f({
|
|
2894
|
+
get: () => (g(e) ? e.value : e)[n],
|
|
2895
|
+
set(r) {
|
|
2896
|
+
(g(e) ? e.value : e)[n] = r, t(n, r);
|
|
2897
|
+
}
|
|
2898
|
+
});
|
|
2899
|
+
}), r;
|
|
2900
|
+
}
|
|
2901
|
+
function xa(e, t) {
|
|
2902
|
+
let n = Object.keys(g(e) ? e.value : e), r = {}, i = {};
|
|
2903
|
+
return n.forEach((n) => {
|
|
2904
|
+
r[n] = f({
|
|
2905
|
+
get: () => (i = {}, (g(e) ? e.value : e)[n]),
|
|
2906
|
+
set(r) {
|
|
2907
|
+
let a = g(e) ? e.value : e;
|
|
2908
|
+
i[n] = r, t(n, r, {
|
|
2909
|
+
...a,
|
|
2910
|
+
...i
|
|
2911
|
+
});
|
|
2912
|
+
}
|
|
2913
|
+
});
|
|
2914
|
+
}), r;
|
|
2915
|
+
}
|
|
2916
|
+
function Sa(e) {
|
|
2917
|
+
if (e === "nullpx") return {
|
|
2918
|
+
value: 0,
|
|
2919
|
+
unit: "px"
|
|
2920
|
+
};
|
|
2921
|
+
let t = e.match(/^(\d+\.?\d*)([a-zA-Z%]+)$/);
|
|
2922
|
+
if (t) return {
|
|
2923
|
+
value: parseFloat(t[1]),
|
|
2924
|
+
unit: t[2]
|
|
2925
|
+
};
|
|
2926
|
+
throw Error("Invalid value");
|
|
2927
|
+
}
|
|
2928
|
+
function Ca(e) {
|
|
2929
|
+
let t = x(), n, r = () => {
|
|
2930
|
+
e.deep && (n = te(() => t.value, (t) => {
|
|
2931
|
+
console.info("computedEx:属性或者值修改", t), e.set(t);
|
|
2932
|
+
}, { deep: !0 }));
|
|
2933
|
+
};
|
|
2934
|
+
return te(() => e.get(), (e) => {
|
|
2935
|
+
n && n(), console.info("computedEx:获取新值,重新监听", e), t.value = e, r();
|
|
2936
|
+
}, { immediate: !0 }), t;
|
|
2937
|
+
}
|
|
2938
|
+
function wa(e) {
|
|
2939
|
+
let t = /* @__PURE__ */ new Map();
|
|
2940
|
+
return function(...n) {
|
|
2941
|
+
let r = JSON.stringify(n);
|
|
2942
|
+
if (t.has(r)) return t.get(r);
|
|
2943
|
+
let i = e(...n);
|
|
2944
|
+
return t.set(r, i), i;
|
|
2945
|
+
};
|
|
2946
|
+
}
|
|
2947
|
+
//#endregion
|
|
2948
|
+
//#region src/utils/axios/interceptors.ts
|
|
2949
|
+
function Ta(e) {
|
|
2950
|
+
e.interceptors.request.use((e) => (e.headers ||= new ne(), Object.assign(e.headers, {
|
|
2951
|
+
Token: U(),
|
|
2952
|
+
Source: sa ? 502 : 501,
|
|
2953
|
+
Lang: _gct.store.lang,
|
|
2954
|
+
"Tenant-Id": aa(),
|
|
2955
|
+
Timezone: ca()
|
|
2956
|
+
}), e));
|
|
2957
|
+
}
|
|
2958
|
+
//#endregion
|
|
2959
|
+
//#region src/utils/deviceFingerprint.ts
|
|
2960
|
+
var Ea = "FINGERPRINT";
|
|
2961
|
+
function Da() {
|
|
2962
|
+
return typeof window < "u" && typeof navigator < "u";
|
|
2963
|
+
}
|
|
2964
|
+
function Oa() {
|
|
2965
|
+
if (!Da()) return {
|
|
2966
|
+
type: "unknown",
|
|
2967
|
+
name: "unknown"
|
|
2968
|
+
};
|
|
2969
|
+
let e = navigator.userAgent;
|
|
2970
|
+
return /iPad|iPhone|iPod/i.test(e) ? {
|
|
2971
|
+
type: "mobile",
|
|
2972
|
+
name: "iOS"
|
|
2973
|
+
} : /Android/i.test(e) ? {
|
|
2974
|
+
type: "mobile",
|
|
2975
|
+
name: "Android"
|
|
2976
|
+
} : /Windows Phone/i.test(e) ? {
|
|
2977
|
+
type: "mobile",
|
|
2978
|
+
name: "Windows Phone"
|
|
2979
|
+
} : /BlackBerry/i.test(e) ? {
|
|
2980
|
+
type: "mobile",
|
|
2981
|
+
name: "BlackBerry"
|
|
2982
|
+
} : /Edg/i.test(e) ? {
|
|
2983
|
+
type: "web",
|
|
2984
|
+
name: "Edge"
|
|
2985
|
+
} : /OPR|Opera/i.test(e) ? {
|
|
2986
|
+
type: "web",
|
|
2987
|
+
name: "Opera"
|
|
2988
|
+
} : /Firefox/i.test(e) ? {
|
|
2989
|
+
type: "web",
|
|
2990
|
+
name: "Firefox"
|
|
2991
|
+
} : /Chrome/i.test(e) ? {
|
|
2992
|
+
type: "web",
|
|
2993
|
+
name: "Chrome"
|
|
2994
|
+
} : /Safari/i.test(e) ? {
|
|
2995
|
+
type: "web",
|
|
2996
|
+
name: "Safari"
|
|
2997
|
+
} : {
|
|
2998
|
+
type: "unknown",
|
|
2999
|
+
name: "unknown"
|
|
3000
|
+
};
|
|
3001
|
+
}
|
|
3002
|
+
async function ka() {
|
|
3003
|
+
return (await (await import("@fingerprintjs/fingerprintjs")).load()).get();
|
|
3004
|
+
}
|
|
3005
|
+
async function Aa() {
|
|
3006
|
+
if (!Da()) return "unknown/unknown";
|
|
3007
|
+
let { type: e, name: t } = Oa(), n = e === "web";
|
|
3008
|
+
if (n) {
|
|
3009
|
+
let e = localStorage.getItem(Ea);
|
|
3010
|
+
if (e) return `${t}/${e}`;
|
|
3011
|
+
}
|
|
3012
|
+
let r = (await ka()).visitorId;
|
|
3013
|
+
return n && localStorage.setItem(Ea, r), `${t}/${r}`;
|
|
3014
|
+
}
|
|
3015
|
+
function ja() {
|
|
3016
|
+
return Aa();
|
|
3017
|
+
}
|
|
3018
|
+
function Ma() {
|
|
3019
|
+
let e = sessionStorage.getItem("currentPageTag");
|
|
3020
|
+
return e || (e = Date.now().toString(), sessionStorage.setItem("currentPageTag", e)), e;
|
|
3021
|
+
}
|
|
3022
|
+
//#endregion
|
|
3023
|
+
//#region src/utils/treeHelper/treeHelper.ts
|
|
3024
|
+
var Na = class e {
|
|
3025
|
+
static _DEFAULT_CONFIG = {
|
|
3026
|
+
id: "id",
|
|
3027
|
+
children: "children",
|
|
3028
|
+
pid: "pid",
|
|
3029
|
+
deep: !0
|
|
3030
|
+
};
|
|
3031
|
+
static _getConfig(t) {
|
|
3032
|
+
return Object.assign({}, e._DEFAULT_CONFIG, t);
|
|
3033
|
+
}
|
|
3034
|
+
static listToTree(t, n = {}, r) {
|
|
3035
|
+
let i = e._getConfig(n), a = /* @__PURE__ */ new Map(), o = [], { id: s, children: c, pid: l, deep: u } = i;
|
|
3036
|
+
for (let e of t) {
|
|
3037
|
+
let t = e;
|
|
3038
|
+
u ? t[c] = t[c] ?? void 0 : t[c] = t[l] === "ROOT" ? t[c] ?? [] : [], a.set(t[s], r(e));
|
|
3039
|
+
}
|
|
3040
|
+
for (let e of t) {
|
|
3041
|
+
let t = e, n = a.get(t[l]);
|
|
3042
|
+
if (n) {
|
|
3043
|
+
let t = n;
|
|
3044
|
+
t[c] || (t[c] = []), t[c].push(r(e));
|
|
3045
|
+
} else o.push(r(e));
|
|
3046
|
+
}
|
|
3047
|
+
return o;
|
|
3048
|
+
}
|
|
3049
|
+
static treeToList(t, n = {}) {
|
|
3050
|
+
let { children: r } = e._getConfig(n), i = [...t];
|
|
3051
|
+
for (let e = 0; e < i.length; e++) {
|
|
3052
|
+
let t = i[e][r];
|
|
3053
|
+
Array.isArray(t) && i.splice(e + 1, 0, ...t);
|
|
3054
|
+
}
|
|
3055
|
+
return i;
|
|
3056
|
+
}
|
|
3057
|
+
static findNode(t, n, r = {}) {
|
|
3058
|
+
let { children: i } = e._getConfig(r), a = t ? [...t] : [];
|
|
3059
|
+
for (let e of a) {
|
|
3060
|
+
if (n(e)) return e;
|
|
3061
|
+
let t = e[i];
|
|
3062
|
+
Array.isArray(t) && a.push(...t);
|
|
3063
|
+
}
|
|
3064
|
+
return null;
|
|
3065
|
+
}
|
|
3066
|
+
static findNodeAll(t, n, r = {}) {
|
|
3067
|
+
let { children: i } = e._getConfig(r), a = t ? [...t] : [], o = [];
|
|
3068
|
+
for (let e of a) {
|
|
3069
|
+
n(e) && o.push(e);
|
|
3070
|
+
let t = e[i];
|
|
3071
|
+
Array.isArray(t) && a.push(...t);
|
|
3072
|
+
}
|
|
3073
|
+
return o;
|
|
3074
|
+
}
|
|
3075
|
+
static findPath(t, n, r = {}) {
|
|
3076
|
+
let { children: i } = e._getConfig(r), a = [], o = t ? [...t] : [], s = /* @__PURE__ */ new Set();
|
|
3077
|
+
for (; o.length;) {
|
|
3078
|
+
let e = o[0];
|
|
3079
|
+
if (s.has(e)) a.pop(), o.shift();
|
|
3080
|
+
else {
|
|
3081
|
+
s.add(e);
|
|
3082
|
+
let t = e[i];
|
|
3083
|
+
if (Array.isArray(t) && o.unshift(...t), a.push(e), n(e)) return a;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
return null;
|
|
3087
|
+
}
|
|
3088
|
+
static findClosestParent(t, n, r, i = {}) {
|
|
3089
|
+
let { id: a } = e._getConfig(i);
|
|
3090
|
+
return e.findPath(t, (e) => e[a] === n, i)?.reverse().find((e) => r(e));
|
|
3091
|
+
}
|
|
3092
|
+
static list_to_tree(e, t) {
|
|
3093
|
+
let n = {}, r = [];
|
|
3094
|
+
for (let t = 0; t < e.length; t++) {
|
|
3095
|
+
let r = e[t];
|
|
3096
|
+
n[r.id] = t, r.children = [];
|
|
3097
|
+
}
|
|
3098
|
+
for (let i of e) if (i.parentId === "ROOT" || !i.parentId) r.push(t(i));
|
|
3099
|
+
else {
|
|
3100
|
+
let r = i, a = n[i.parentId];
|
|
3101
|
+
a !== void 0 && e[a].children?.push(t(r));
|
|
3102
|
+
}
|
|
3103
|
+
return r;
|
|
3104
|
+
}
|
|
3105
|
+
static getAllParentPath(t, n) {
|
|
3106
|
+
return (e.findPath(t, (e) => e.path === n) || []).map((e) => e.path);
|
|
3107
|
+
}
|
|
3108
|
+
static traverseAndBuildTree(e, t, n = {}) {
|
|
3109
|
+
n = this._getConfig(n);
|
|
3110
|
+
let { children: r } = n;
|
|
3111
|
+
return e.map((e) => {
|
|
3112
|
+
let n = t(e) || e;
|
|
3113
|
+
return r && e[r] && e[r].length > 0 && (n[r] = this.traverseAndBuildTree(e.children, t)), n;
|
|
3114
|
+
});
|
|
3115
|
+
}
|
|
3116
|
+
static eachTree(t, n, r = {}) {
|
|
3117
|
+
t.forEach((t) => {
|
|
3118
|
+
let i = n(t, r) || t;
|
|
3119
|
+
t.children && e.eachTree(t.children, n, i);
|
|
3120
|
+
});
|
|
3121
|
+
}
|
|
3122
|
+
}, Pa = (e, t = []) => {
|
|
3123
|
+
let n = {}, r = e.padding;
|
|
3124
|
+
r && (r.top != null && r.top != "" && !t.includes("paddingTop") && (n["padding-top"] = r.top), r.right != null && r.right != "" && !t.includes("paddingRight") && (n["padding-right"] = r.right), r.bottom != null && r.bottom != "" && !t.includes("paddingBottom") && (n["padding-bottom"] = r.bottom), r.left != null && r.left != "" && !t.includes("paddingLeft") && (n["padding-left"] = r.left));
|
|
3125
|
+
let i = e.margin;
|
|
3126
|
+
i && (i.top != null && i.top != "" && !t.includes("marginTop") && (n["margin-top"] = i.top), i.right != null && i.right != "" && !t.includes("marginRight") && (n["margin-right"] = i.right), i.bottom != null && i.bottom != "" && !t.includes("marginBottom") && (n["margin-bottom"] = i.bottom), i.left != null && i.left != "" && !t.includes("marginLeft") && (n["margin-left"] = i.left)), e.background != null && e.background != "" && !t.includes("backgroundColor") && (n["background-color"] = e.background), e.width != null && e.width != "" && !t.includes("width") && (n.width = e.width), e.height != null && e.height != "" && !t.includes("height") && (n.height = e.height, n.overflowX = "hidden", n.overflowY = "auto");
|
|
3127
|
+
let a = e.position;
|
|
3128
|
+
a && (a.position != null && a.position != "" && !t.includes("zIndex") && (n.position = a.position, n["z-index"] = 1), a.top != null && a.top != "" && !t.includes("top") && (n.top = `${a.top}px`), a.right != null && a.right != "" && !t.includes("right") && (n.right = `${a.right}px`), a.bottom != null && a.bottom != "" && !t.includes("bottom") && (n.bottom = `${a.bottom}px`), a.left != null && a.left != "" && !t.includes("left") && (n.left = `${a.left}px`));
|
|
3129
|
+
let o = e.border;
|
|
3130
|
+
return o && (o.topLeftRadius != null && o.topLeftRadius != "" && !t.includes("borderTopLeftRadius") && (n["border-top-left-radius"] = o.topLeftRadius), o.topRightRadius != null && o.topRightRadius != "" && !t.includes("borderTopRightRadius") && (n["border-top-right-radius"] = o.topRightRadius), o.bottomLeftRadius != null && o.bottomLeftRadius != "" && !t.includes("borderBottomLeftRadius") && (n["border-bottom-left-radius"] = o.bottomLeftRadius), o.bottomRightRadius != null && o.bottomRightRadius != "" && !t.includes("borderBottomRightRadius") && (n["border-bottom-right-radius"] = o.bottomRightRadius), o.top && (o.top.color != null && o.top.color != "" && !t.includes("borderTopColor") && (n["border-top-color"] = o.top.color), o.top.width != null && o.top.width != "" && !t.includes("borderTopWidth") && (n["border-top-width"] = o.top.width), o.top.style && !t.includes("borderTopStyle") && (n["border-top-style"] = o.top.style)), o.right && (o.right.color != null && o.right.color != "" && !t.includes("borderRightColor") && (n["border-right-color"] = o.right.color), o.right.width != null && o.right.width != "" && !t.includes("borderRightWidth") && (n["border-right-width"] = o.right.width), o.right.style && !t.includes("borderRightStyle") && (n["border-right-style"] = o.right.style)), o.bottom && (o.bottom.color != null && o.bottom.color != "" && !t.includes("borderBottomColor") && (n["border-bottom-color"] = o.bottom.color), o.bottom.width != null && o.bottom.width != "" && !t.includes("borderBottomWidth") && (n["border-bottom-width"] = o.bottom.width), o.bottom.style && !t.includes("borderBottomStyle") && (n["border-bottom-style"] = o.bottom.style)), o.left && (o.left.color != null && o.left.color != "" && !t.includes("borderLeftColor") && (n["border-left-color"] = o.left.color), o.left.width != null && o.left.width != "" && !t.includes("borderLeftWidth") && (n["border-left-width"] = o.left.width), o.left.style && !t.includes("borderLeftStyle") && (n["border-left-style"] = o.left.style))), e.border_radius && (n["border-radius"] = `${e.border_radius}px`), n;
|
|
3131
|
+
}, Fa = (e, t = []) => {
|
|
3132
|
+
let n = {}, r = e.labelFont;
|
|
3133
|
+
return r && (r.color != null && r.color != "" && !t.includes("color") && (n.color = r.color), r.fontSize != null && r.fontSize != "" && !t.includes("fontSize") && (n["font-size"] = r.fontSize), r.align && !t.includes("textAlign") && (n["text-align"] = r.align, n["text-align-last"] = r.align), r.bold === !0 && !t.includes("fontWeight") && (n["font-weight"] = "bold"), r.italic === !0 && !t.includes("fontStyle") && (n["font-style"] = "italic"), r.textDecoration && !t.includes("textDecoration") && (n["text-decoration"] = r.textDecoration)), n;
|
|
3134
|
+
};
|
|
3135
|
+
//#endregion
|
|
3136
|
+
//#region src/utils/util.ts
|
|
3137
|
+
function Ia(e, t) {
|
|
3138
|
+
let n = e;
|
|
3139
|
+
return Object.keys(t).forEach((e) => {
|
|
3140
|
+
n = n.replace(`{${e}}`, t[e] ?? ""), n = n.replace(`{${e}?}`, t[e] ?? "");
|
|
3141
|
+
}), n = n.replace(/\/\{[a-z]+\?\}/g, ""), n;
|
|
3142
|
+
}
|
|
3143
|
+
function La(e, t) {
|
|
3144
|
+
let { target: n = "_blank", noopener: r = !0, noreferrer: i = !0, genUrlData: a, routePath: o = "", optionStr: s = "" } = t || {}, c = [];
|
|
3145
|
+
r && c.push("noopener=yes"), i && c.push("noreferrer=yes");
|
|
3146
|
+
let l = e;
|
|
3147
|
+
a && (l = Ia(l, a)), o && (l += o);
|
|
3148
|
+
let u = c.join(",");
|
|
3149
|
+
return s && (u = u ? `${u},${s}` : s), window.open(l, n, u);
|
|
3150
|
+
}
|
|
3151
|
+
//#endregion
|
|
3152
|
+
//#region src/utils/is-sort-filed/is-sort-filed.ts
|
|
3153
|
+
function Ra(e) {
|
|
3154
|
+
switch (e) {
|
|
3155
|
+
case C.TEXT:
|
|
3156
|
+
case C.INTEGER:
|
|
3157
|
+
case C.LONG:
|
|
3158
|
+
case C.DOUBLE:
|
|
3159
|
+
case C.DECIMAL:
|
|
3160
|
+
case C.DATE:
|
|
3161
|
+
case C.TIME:
|
|
3162
|
+
case C.DATE_TIME:
|
|
3163
|
+
case C.BOOLEAN:
|
|
3164
|
+
case C.USER:
|
|
3165
|
+
case C.USER_MULTI:
|
|
3166
|
+
case C.ORG:
|
|
3167
|
+
case C.ORG_MULTI:
|
|
3168
|
+
case C.ENUM:
|
|
3169
|
+
case C.ENUM_MULTI:
|
|
3170
|
+
case C.REF:
|
|
3171
|
+
case C.REF_MULTI:
|
|
3172
|
+
case C.RDO_REF:
|
|
3173
|
+
case C.EXPRESSION:
|
|
3174
|
+
case C.AGG:
|
|
3175
|
+
case C.SERIAL:
|
|
3176
|
+
case C.DOCUMENT_TEMPLATE:
|
|
3177
|
+
case C.PRINTER:
|
|
3178
|
+
case C.TRANSACTION:
|
|
3179
|
+
case C.MESSAGE_TMPL:
|
|
3180
|
+
case C.RANGE_USER: return !0;
|
|
3181
|
+
default: return !1;
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
//#endregion
|
|
3185
|
+
//#region src/utils/useUUid.ts
|
|
3186
|
+
var W = (e = [], t) => {
|
|
3187
|
+
let { needPrefix: n = !1, isString: r = !0, prefix: i = "u_", length: a = 8, chars: o = "", numPref: s = !1 } = t || {}, c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
3188
|
+
o === "capital&number" ? c = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" : o === "lowercase&number" ? c = "abcdefghijklmnopqrstuvwxyz0123456789" : o === "lowercase" && (c = "abcdefghijklmnopqrstuvwxyz");
|
|
3189
|
+
let l;
|
|
3190
|
+
for (; !l;) {
|
|
3191
|
+
let t = "";
|
|
3192
|
+
if (r) {
|
|
3193
|
+
s && (t += Math.floor(Math.random() * 9) + 1);
|
|
3194
|
+
for (let e = 0; e < a; e++) t += c.charAt(Math.floor(Math.random() * c.length));
|
|
3195
|
+
} else t = `${n ? i : ""}${s ? Math.floor(Math.random() * 9) + 1 : ""}${Math.random().toString(36).substr(2, a)}`;
|
|
3196
|
+
e.includes(t) || (l = t);
|
|
3197
|
+
}
|
|
3198
|
+
return l;
|
|
3199
|
+
};
|
|
3200
|
+
W.Generate = (e, t) => {
|
|
3201
|
+
let n = Array.isArray(e) ? e.concat() : [];
|
|
3202
|
+
return { next: () => {
|
|
3203
|
+
let e = W(n, t);
|
|
3204
|
+
return n.push(e), e;
|
|
3205
|
+
} };
|
|
3206
|
+
};
|
|
3207
|
+
function za(e, t, n) {
|
|
3208
|
+
let r = f(() => e.value.reduce((e, t) => {
|
|
3209
|
+
e.push(t);
|
|
3210
|
+
let n = t.children.map((e) => ({
|
|
3211
|
+
...e,
|
|
3212
|
+
_pid_: t.id
|
|
3213
|
+
}));
|
|
3214
|
+
return e.push(...n), e;
|
|
3215
|
+
}, [])), i = f(() => r.value.map((e) => e._pid_ ? e.key.replace(RegExp(`^${ee(t)}_*`), "") : null).filter((e) => e));
|
|
3216
|
+
function a(e, t) {
|
|
3217
|
+
return W([...ee(i), ...e ?? []], {
|
|
3218
|
+
...n,
|
|
3219
|
+
...t
|
|
3220
|
+
});
|
|
3221
|
+
}
|
|
3222
|
+
function o(e, t) {
|
|
3223
|
+
return W.Generate([...ee(i), ...e ?? []], {
|
|
3224
|
+
...n,
|
|
3225
|
+
...t
|
|
3226
|
+
});
|
|
3227
|
+
}
|
|
3228
|
+
return {
|
|
3229
|
+
oldUUids: i,
|
|
3230
|
+
flatTableData: r,
|
|
3231
|
+
getUuid: a,
|
|
3232
|
+
getUuidGenerate: o
|
|
3233
|
+
};
|
|
3234
|
+
}
|
|
3235
|
+
//#endregion
|
|
3236
|
+
//#region src/utils/validate.ts
|
|
3237
|
+
var Ba = (e) => /[\u{1F300}-\u{1F5FF}\u{1F600}-\u{1F64F}\u{1F680}-\u{1F6FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]/gu.test(e) || /\u{1F91D}\u{1F3FB}-\u{1F3FF}/u.test(e), Va = (e) => Ba(e) || /[*??::,,[\]【】#]/.test(e), Ha = (e) => Ba(e) || /[*??::,,[\]\\/【】#]/.test(e), Ua = (e, t) => Va(t) ? Promise.reject(z("sys.model.modelNameError")) : Promise.resolve(), Wa = (e, t) => Ha(t) ? Promise.reject(z("sys.model.notModelNameError")) : Promise.resolve(), Ga = class {
|
|
3238
|
+
static getFiles({ multiple: e, acceptList: t }) {
|
|
3239
|
+
let n = document.createElement("input");
|
|
3240
|
+
return n.type = "file", n.multiple = !!e, n.accept = t || "*", n.click(), new Promise((e, t) => {
|
|
3241
|
+
n.onchange = async () => {
|
|
3242
|
+
let t = n.files || [];
|
|
3243
|
+
e(Object.values(t));
|
|
3244
|
+
}, n.onerror = async () => {
|
|
3245
|
+
t();
|
|
3246
|
+
};
|
|
3247
|
+
});
|
|
3248
|
+
}
|
|
3249
|
+
static async beforeUploadFun(e, { maxSize: t = 5, acceptList: n = [], beforeUpload: r }) {
|
|
3250
|
+
if (e.name.indexOf(",") > -1) return Promise.reject("文件名不能有逗号");
|
|
3251
|
+
if (r && await r(e), e.size / 1024 / 1024 > t) return Promise.reject(`【${e.name}】文件大小不能超过 ${t}MB`);
|
|
3252
|
+
if (n.length) {
|
|
3253
|
+
let t = e?.name?.replaceAll(" ", "")?.match(/\.([A-Za-z0-9]+)$/)?.at(-1);
|
|
3254
|
+
if (!n.includes(`.${t?.toLocaleLowerCase()}`)) return Promise.reject(`【${e.name}】支持的扩展名为${n.join(" ")}`);
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
static async uploadByFile(e, t = !1, n) {
|
|
3258
|
+
let r = new FormData();
|
|
3259
|
+
return r.append("file", e, e.name), "/" + await (t ? Ka : qa)(r, n);
|
|
3260
|
+
}
|
|
3261
|
+
static toBase64(e) {
|
|
3262
|
+
return new Promise((t, n) => {
|
|
3263
|
+
let r = new FileReader();
|
|
3264
|
+
r.onloadend = function() {
|
|
3265
|
+
t(r.result);
|
|
3266
|
+
}, r.onerror = () => n("转换失败"), e && r.readAsDataURL(e);
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
static compressToBase64(e, { quality: t = .8, scale: n = .8 } = {}) {
|
|
3270
|
+
return new Promise((r, i) => {
|
|
3271
|
+
if (!e.type.startsWith("image/")) {
|
|
3272
|
+
i("请选择图片文件");
|
|
3273
|
+
return;
|
|
3274
|
+
}
|
|
3275
|
+
if (typeof n != "number" || n <= 0 || n > 1) {
|
|
3276
|
+
i("缩放比例必须在0-1之间");
|
|
3277
|
+
return;
|
|
3278
|
+
}
|
|
3279
|
+
let a = new FileReader();
|
|
3280
|
+
a.onload = (a) => {
|
|
3281
|
+
let o = new Image();
|
|
3282
|
+
o.onload = () => {
|
|
3283
|
+
let i = Math.floor(o.width * n), a = Math.floor(o.height * n), s = document.createElement("canvas");
|
|
3284
|
+
s.width = i, s.height = a;
|
|
3285
|
+
let c = s.getContext("2d");
|
|
3286
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(o, 0, 0, i, a), r(s.toDataURL(e.type, t));
|
|
3287
|
+
}, o.onerror = () => i("图片加载失败"), o.src = a.target?.result;
|
|
3288
|
+
}, a.onerror = () => i("文件读取失败"), a.readAsDataURL(e);
|
|
3289
|
+
});
|
|
3290
|
+
}
|
|
3291
|
+
};
|
|
3292
|
+
async function Ka(e, t) {
|
|
3293
|
+
return _api.apaas.fileResource.postUpload({ ...t ? { modelKey: t } : {} }, e, { headers: { "Content-Type": "multipart/form-data;charset=UTF-8" } });
|
|
3294
|
+
}
|
|
3295
|
+
async function qa(e) {
|
|
3296
|
+
return _api.apaas.file.postUploadImage({ bucket: "IMAGE" }, e, { headers: { "Content-Type": "multipart/form-data;charset=UTF-8" } });
|
|
3297
|
+
}
|
|
3298
|
+
//#endregion
|
|
3299
|
+
//#region src/utils/file/base64Conver.ts
|
|
3300
|
+
function Ja(e) {
|
|
3301
|
+
let t = e.split(","), n = t[0].match(/:(.*?);/)[1], r = window.atob(t[1]), i = r.length, a = new Uint8Array(i);
|
|
3302
|
+
for (; i > 0;) --i, a[i] = r.charCodeAt(i);
|
|
3303
|
+
return new Blob([a], { type: n });
|
|
3304
|
+
}
|
|
3305
|
+
function Ya(e, t) {
|
|
3306
|
+
return new Promise((n, r) => {
|
|
3307
|
+
let i = document.createElement("CANVAS"), a = i.getContext("2d"), o = new Image();
|
|
3308
|
+
o.crossOrigin = "", o.onload = function() {
|
|
3309
|
+
if (!i || !a) return r();
|
|
3310
|
+
i.height = o.height, i.width = o.width, a.drawImage(o, 0, 0);
|
|
3311
|
+
let e = i.toDataURL(t || "image/png");
|
|
3312
|
+
i = null, n(e);
|
|
3313
|
+
}, o.src = e;
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3316
|
+
//#endregion
|
|
3317
|
+
//#region src/utils/file/download.ts
|
|
3318
|
+
function Xa(e, t, n, r) {
|
|
3319
|
+
Ya(e).then((e) => {
|
|
3320
|
+
Za(e, t, n, r);
|
|
3321
|
+
});
|
|
3322
|
+
}
|
|
3323
|
+
function Za(e, t, n, r) {
|
|
3324
|
+
$a(Ja(e), {
|
|
3325
|
+
filename: t,
|
|
3326
|
+
mime: n,
|
|
3327
|
+
bom: r
|
|
3328
|
+
});
|
|
3329
|
+
}
|
|
3330
|
+
function Qa({ multiple: e = !1, accept: t = "*" } = {}) {
|
|
3331
|
+
let n = document.createElement("input");
|
|
3332
|
+
return n.type = "file", n.multiple = !!e, n.accept = t, n.click(), new Promise((e, t) => {
|
|
3333
|
+
n.onchange = async () => {
|
|
3334
|
+
let t = n.files || [];
|
|
3335
|
+
e(Object.values(t));
|
|
3336
|
+
}, n.onerror = async () => {
|
|
3337
|
+
t();
|
|
3338
|
+
};
|
|
3339
|
+
});
|
|
3340
|
+
}
|
|
3341
|
+
function $a(e, { filename: t = "file", timestamp: n = !1, mime: r, bom: i }) {
|
|
3342
|
+
if (n) {
|
|
3343
|
+
let e = t.split(".").pop();
|
|
3344
|
+
t = `${t.replace(/\.[^/.]+$/, "")}${re(/* @__PURE__ */ new Date()).format("YYYYMMDDHHmmss")}.${e}`;
|
|
3345
|
+
}
|
|
3346
|
+
let a = i === void 0 ? [e] : [i, e], o = new Blob(a, { type: r || "application/octet-stream" }), s = window.URL.createObjectURL(o), c = document.createElement("a");
|
|
3347
|
+
c.style.display = "none", c.href = s, c.setAttribute("download", t), c.download === void 0 && c.setAttribute("target", "_blank"), document.body.appendChild(c), c.click(), document.body.removeChild(c), window.URL.revokeObjectURL(s);
|
|
3348
|
+
}
|
|
3349
|
+
function eo({ url: e, target: t = "_blank", fileName: n }) {
|
|
3350
|
+
let r = window.navigator.userAgent.toLowerCase().indexOf("chrome") > -1, i = window.navigator.userAgent.toLowerCase().indexOf("safari") > -1;
|
|
3351
|
+
if (/(iP)/g.test(window.navigator.userAgent)) return console.error("Your browser does not support download!"), !1;
|
|
3352
|
+
if (r || i) {
|
|
3353
|
+
let r = document.createElement("a");
|
|
3354
|
+
if (r.href = e, r.target = t, r.download !== void 0 && (r.download = n || e.substring(e.lastIndexOf("/") + 1, e.length)), document.createEvent) {
|
|
3355
|
+
let e = document.createEvent("MouseEvents");
|
|
3356
|
+
return e.initEvent("click", !0, !0), r.dispatchEvent(e), !0;
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
return e.indexOf("?") === -1 && (e += "?download"), La(e, { target: t }), !0;
|
|
3360
|
+
}
|
|
3361
|
+
//#endregion
|
|
3362
|
+
//#region src/utils/file/parser.ts
|
|
3363
|
+
var to = (e) => e / 1024 < 1 ? (e / 1024).toFixed(2) + "K" : e / 1024 / 10 < 1 ? (e / 1024).toFixed(1) + "K" : e / 1024 / 1024 < 1 ? (e / 1024).toFixed(0) + "K" : (e / 1024 / 1024 / 10, (e / 1024 / 1024).toFixed(2) + "M"), no = (e) => {
|
|
3364
|
+
let t = e?.split(".") ?? [], n = (t[t.length - 1] || "png").toLowerCase();
|
|
3365
|
+
return [
|
|
3366
|
+
P.PNG,
|
|
3367
|
+
P.JPG,
|
|
3368
|
+
P.JPEG,
|
|
3369
|
+
P.BMP,
|
|
3370
|
+
P.GIF
|
|
3371
|
+
].includes(n) ? "img" : [P.DOCX, P.DOC].includes(n) ? P.DOC : [P.MP4, P.AVI].includes(n) ? "MP4" : n === P.PDF ? "PDF" : n === P.CER ? "ssl" : Object.values(P).includes(n) ? n : "attachment";
|
|
3372
|
+
};
|
|
3373
|
+
//#endregion
|
|
3374
|
+
//#region src/utils/design/design.ts
|
|
3375
|
+
function ro(e) {
|
|
3376
|
+
let t = o(e, Yn);
|
|
3377
|
+
return t.length > 0 && t.length === e.length;
|
|
3378
|
+
}
|
|
3379
|
+
//#endregion
|
|
3380
|
+
//#region src/utils/permission.ts
|
|
3381
|
+
var io = class {
|
|
3382
|
+
handlers = [];
|
|
3383
|
+
use(e) {
|
|
3384
|
+
this.handlers.push(e);
|
|
3385
|
+
}
|
|
3386
|
+
getHandlers() {
|
|
3387
|
+
return this.handlers;
|
|
3388
|
+
}
|
|
3389
|
+
}, ao = new class {
|
|
3390
|
+
interceptors = new io();
|
|
3391
|
+
constructor() {
|
|
3392
|
+
this.interceptors.use(this.checkRole);
|
|
3393
|
+
}
|
|
3394
|
+
baseCheck(e) {
|
|
3395
|
+
return console.log(e), !0;
|
|
3396
|
+
}
|
|
3397
|
+
checkRole() {
|
|
3398
|
+
return !0;
|
|
3399
|
+
}
|
|
3400
|
+
has(e) {
|
|
3401
|
+
if (!e) return !0;
|
|
3402
|
+
let t = this.interceptors.getHandlers();
|
|
3403
|
+
for (let n of t) if (n(e) === !1) return !1;
|
|
3404
|
+
return this.baseCheck(e);
|
|
3405
|
+
}
|
|
3406
|
+
}(), oo = t("global-store", {
|
|
3407
|
+
state() {
|
|
3408
|
+
return new jr();
|
|
3409
|
+
},
|
|
3410
|
+
getters: {
|
|
3411
|
+
getProjectName() {
|
|
3412
|
+
return this.projectName;
|
|
3413
|
+
},
|
|
3414
|
+
geLang() {
|
|
3415
|
+
return this.lang;
|
|
3416
|
+
},
|
|
3417
|
+
getAppInfo() {
|
|
3418
|
+
return this.appInfo;
|
|
3419
|
+
},
|
|
3420
|
+
getEmptyDisplay() {
|
|
3421
|
+
return or[this.globalSetting.emptyDisplay];
|
|
3422
|
+
}
|
|
3423
|
+
},
|
|
3424
|
+
actions: {
|
|
3425
|
+
async init() {
|
|
3426
|
+
let e = location.pathname.split("/")[2];
|
|
3427
|
+
if (e) {
|
|
3428
|
+
let t = da(e);
|
|
3429
|
+
t && (this.context = t);
|
|
3430
|
+
}
|
|
3431
|
+
},
|
|
3432
|
+
async loadAppInfo() {
|
|
3433
|
+
this.appInfo = await _api.apaas.designerCommon.getGetApp();
|
|
3434
|
+
},
|
|
3435
|
+
async loadEmptySetting() {
|
|
3436
|
+
let { value: e } = await _gct.api.apaas.basicConfig.getDetail({ configEnum: N.GLOBAL });
|
|
3437
|
+
e && Object.assign(this.globalSetting, JSON.parse(e));
|
|
3438
|
+
},
|
|
3439
|
+
setProjectName(e) {
|
|
3440
|
+
this.projectName = e;
|
|
3441
|
+
},
|
|
3442
|
+
setLang(e) {
|
|
3443
|
+
this.lang = e;
|
|
3444
|
+
}
|
|
3445
|
+
}
|
|
3446
|
+
}), so = class {
|
|
3447
|
+
pinia = e();
|
|
3448
|
+
store;
|
|
3449
|
+
constructor() {
|
|
3450
|
+
n(this.pinia), this.store = oo();
|
|
3451
|
+
}
|
|
3452
|
+
}, co = /* @__PURE__ */ function(e) {
|
|
3453
|
+
return e.DEV = "dev", e.TEST = "test", e.PROD = "prod", e;
|
|
3454
|
+
}({}), lo = /^http:\/\/\d{1,3}(\.\d{1,3}){3}:(\d{1,5})$/, uo = /^https?:\/\/([a-z0-9]+)-test\./, fo = /\/web-render|\/web\/|web-single\/|dev-single\/|test-single\//, po = /\/web\/|\/web-single\//, mo = /\/web-render\//, ho = /\/dev-single\//, go = /\/test-single\//, _o = class {
|
|
3455
|
+
_testEnv = !1;
|
|
3456
|
+
_testTenantData = {};
|
|
3457
|
+
_platformOrigin;
|
|
3458
|
+
_isHostMode = !1;
|
|
3459
|
+
constructor() {
|
|
3460
|
+
this._platformOrigin = location.origin || "", this._isHostMode = uo.test(this._platformOrigin);
|
|
3461
|
+
}
|
|
3462
|
+
get isAndroid() {
|
|
3463
|
+
return window.location.origin === "file://";
|
|
3464
|
+
}
|
|
3465
|
+
get isAppRun() {
|
|
3466
|
+
return fo.test(location.pathname);
|
|
3467
|
+
}
|
|
3468
|
+
get isAppProd() {
|
|
3469
|
+
return po.test(location.pathname);
|
|
3470
|
+
}
|
|
3471
|
+
get isAppPreview() {
|
|
3472
|
+
return mo.test(location.pathname);
|
|
3473
|
+
}
|
|
3474
|
+
get isDevSingleEnv() {
|
|
3475
|
+
return ho.test(location.pathname);
|
|
3476
|
+
}
|
|
3477
|
+
get isTestEnv() {
|
|
3478
|
+
return go.test(location.pathname) || this._testEnv;
|
|
3479
|
+
}
|
|
3480
|
+
get platformOrigin() {
|
|
3481
|
+
return this._platformOrigin;
|
|
3482
|
+
}
|
|
3483
|
+
get isHostMode() {
|
|
3484
|
+
return this._isHostMode;
|
|
3485
|
+
}
|
|
3486
|
+
get testTenantData() {
|
|
3487
|
+
return this._testTenantData;
|
|
3488
|
+
}
|
|
3489
|
+
async checkIsTestEnv() {
|
|
3490
|
+
let e = null;
|
|
3491
|
+
if (this._isHostMode) {
|
|
3492
|
+
if (e = this._platformOrigin.match(uo), this._testEnv = !!(e && e[1]), this._testEnv) {
|
|
3493
|
+
let t = await _api.platform.tenant.getInfoByPortOrDomain({ domain: e[1] });
|
|
3494
|
+
Object.assign(this._testTenantData, t);
|
|
3495
|
+
}
|
|
3496
|
+
} else {
|
|
3497
|
+
e = this._platformOrigin.match(lo);
|
|
3498
|
+
let t = e && e[2];
|
|
3499
|
+
if (t) {
|
|
3500
|
+
let e = await _api.platform.tenant.getInfoByPortOrDomain({ port: t });
|
|
3501
|
+
e && (Object.assign(this._testTenantData, e), this._testEnv = e.testEnvPort === t);
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
getEnv() {
|
|
3506
|
+
return this.isTestEnv ? co.TEST : this.isAppProd || this.isAndroid ? co.PROD : co.DEV;
|
|
3507
|
+
}
|
|
3508
|
+
}, G = {
|
|
3509
|
+
keepalive: 60,
|
|
3510
|
+
connectTimeout: 3e4,
|
|
3511
|
+
reconnectPeriod: 5e3,
|
|
3512
|
+
clean: !1
|
|
3513
|
+
}, K = {
|
|
3514
|
+
CONNECT: "connect",
|
|
3515
|
+
RECONNECT: "reconnect",
|
|
3516
|
+
DISCONNECT: "disconnect",
|
|
3517
|
+
ERROR: "error",
|
|
3518
|
+
MESSAGE: "message"
|
|
3519
|
+
}, q = /* @__PURE__ */ function(e) {
|
|
3520
|
+
return e.CONNECTING = "connecting", e.CONNECTED = "connected", e.DISCONNECTING = "disconnecting", e.DISCONNECTED = "disconnected", e.RECONNECTING = "reconnecting", e;
|
|
3521
|
+
}({}), vo = class {
|
|
3522
|
+
instanceId;
|
|
3523
|
+
url;
|
|
3524
|
+
_client = null;
|
|
3525
|
+
_status = q.DISCONNECTED;
|
|
3526
|
+
_subscriptions = /* @__PURE__ */ new Map();
|
|
3527
|
+
_eventListeners = {
|
|
3528
|
+
connect: /* @__PURE__ */ new Set(),
|
|
3529
|
+
disconnect: /* @__PURE__ */ new Set(),
|
|
3530
|
+
reconnect: /* @__PURE__ */ new Set(),
|
|
3531
|
+
error: /* @__PURE__ */ new Set()
|
|
3532
|
+
};
|
|
3533
|
+
_options;
|
|
3534
|
+
constructor(e, t, n) {
|
|
3535
|
+
if (!e) throw Error("MqttClient: instanceId 不能为空");
|
|
3536
|
+
if (!t) throw Error("MqttClient: url 不能为空");
|
|
3537
|
+
if (!n.clientId) throw Error("MqttClient: options.clientId 不能为空");
|
|
3538
|
+
this.instanceId = e, this.url = t, this._options = {
|
|
3539
|
+
...n,
|
|
3540
|
+
keepalive: n.keepalive ?? G.keepalive,
|
|
3541
|
+
connectTimeout: n.connectTimeout ?? G.connectTimeout,
|
|
3542
|
+
reconnectPeriod: n.reconnectPeriod ?? G.reconnectPeriod,
|
|
3543
|
+
clean: n.clean ?? G.clean
|
|
3544
|
+
};
|
|
3545
|
+
}
|
|
3546
|
+
get status() {
|
|
3547
|
+
return this._status;
|
|
3548
|
+
}
|
|
3549
|
+
connect() {
|
|
3550
|
+
this._status === q.CONNECTED || this._status === q.CONNECTING || (this._status = q.CONNECTING, this._client = ie.connect(this.url, this._options), this._bindClientEvents());
|
|
3551
|
+
}
|
|
3552
|
+
disconnect() {
|
|
3553
|
+
if (!this._client) {
|
|
3554
|
+
this._status = q.DISCONNECTED;
|
|
3555
|
+
return;
|
|
3556
|
+
}
|
|
3557
|
+
this._status = q.DISCONNECTING, this._client.end(!1, {}, () => {
|
|
3558
|
+
this._status = q.DISCONNECTED, this._emitEvent(K.DISCONNECT);
|
|
3559
|
+
});
|
|
3560
|
+
}
|
|
3561
|
+
subscribe(e, t) {
|
|
3562
|
+
let n = Array.isArray(e) ? e : [e];
|
|
3563
|
+
return n.forEach((e) => {
|
|
3564
|
+
this._subscriptions.has(e) || (this._subscriptions.set(e, /* @__PURE__ */ new Set()), this._client && this._status === q.CONNECTED && this._client.subscribe(e)), this._subscriptions.get(e).add(t);
|
|
3565
|
+
}), () => this.unsubscribe(n);
|
|
3566
|
+
}
|
|
3567
|
+
unsubscribe(e) {
|
|
3568
|
+
(Array.isArray(e) ? e : [e]).forEach((e) => {
|
|
3569
|
+
this._subscriptions.delete(e), this._client && this._status === q.CONNECTED && this._client.unsubscribe(e);
|
|
3570
|
+
});
|
|
3571
|
+
}
|
|
3572
|
+
publish(e, t, n) {
|
|
3573
|
+
return new Promise((r, i) => {
|
|
3574
|
+
if (!this._client || this._status !== q.CONNECTED) {
|
|
3575
|
+
i(/* @__PURE__ */ Error(`MqttClient [${this.instanceId}]: 尚未建立连接,无法发布消息`));
|
|
3576
|
+
return;
|
|
3577
|
+
}
|
|
3578
|
+
let a = {
|
|
3579
|
+
qos: n?.qos ?? 0,
|
|
3580
|
+
retain: n?.retain ?? !1
|
|
3581
|
+
};
|
|
3582
|
+
this._client.publish(e, t, a, (e) => {
|
|
3583
|
+
e ? i(e) : r();
|
|
3584
|
+
});
|
|
3585
|
+
});
|
|
3586
|
+
}
|
|
3587
|
+
on(e, t) {
|
|
3588
|
+
this._eventListeners[e].add(t);
|
|
3589
|
+
}
|
|
3590
|
+
off(e, t) {
|
|
3591
|
+
this._eventListeners[e].delete(t);
|
|
3592
|
+
}
|
|
3593
|
+
_bindClientEvents() {
|
|
3594
|
+
this._client && (this._client.on("connect", (e) => {
|
|
3595
|
+
this._status = q.CONNECTED, this._emitEvent(K.CONNECT);
|
|
3596
|
+
}), this._client.on("reconnect", () => {
|
|
3597
|
+
this._status = q.RECONNECTING, this._emitEvent(K.RECONNECT);
|
|
3598
|
+
}), this._client.on("error", (e) => {
|
|
3599
|
+
this._emitEvent(K.ERROR, e);
|
|
3600
|
+
}), this._client.on("close", () => {
|
|
3601
|
+
this._status !== q.DISCONNECTING && (this._status = q.DISCONNECTED);
|
|
3602
|
+
}), this._client.on("message", (e, t) => {
|
|
3603
|
+
this._dispatchMessage(e, t);
|
|
3604
|
+
}));
|
|
3605
|
+
}
|
|
3606
|
+
_dispatchMessage(e, t) {
|
|
3607
|
+
let n = this._subscriptions.get(e);
|
|
3608
|
+
n && n.forEach((n) => n(e, t)), this._subscriptions.forEach((n, r) => {
|
|
3609
|
+
r !== e && this._matchTopic(r, e) && n.forEach((n) => n(e, t));
|
|
3610
|
+
});
|
|
3611
|
+
}
|
|
3612
|
+
_matchTopic(e, t) {
|
|
3613
|
+
let n = e.split("/"), r = t.split("/");
|
|
3614
|
+
for (let e = 0; e < n.length; e++) {
|
|
3615
|
+
let t = n[e];
|
|
3616
|
+
if (t === "#") return !0;
|
|
3617
|
+
if (t !== "+" && t !== r[e]) return !1;
|
|
3618
|
+
}
|
|
3619
|
+
return n.length === r.length;
|
|
3620
|
+
}
|
|
3621
|
+
_emitEvent(e, t) {
|
|
3622
|
+
e === K.ERROR && t ? this._eventListeners.error.forEach((e) => e(t)) : e === K.CONNECT ? this._eventListeners.connect.forEach((e) => e()) : e === K.DISCONNECT ? this._eventListeners.disconnect.forEach((e) => e()) : e === K.RECONNECT && this._eventListeners.reconnect.forEach((e) => e());
|
|
3623
|
+
}
|
|
3624
|
+
}, yo = class {
|
|
3625
|
+
uuid = Ji();
|
|
3626
|
+
_clients = /* @__PURE__ */ new Map();
|
|
3627
|
+
create(e, t) {
|
|
3628
|
+
if (this._clients.has(e)) return console.warn(`MqttManager: 实例 ${e} 已存在,返回已注册的实例`), this._clients.get(e);
|
|
3629
|
+
let n = new vo(e, `ws://${location.host}/mqtt`, {
|
|
3630
|
+
clientId: `gct_mqtt_${_gct.store.userInfo.userId}_${e}_${this.uuid}`,
|
|
3631
|
+
...t
|
|
3632
|
+
});
|
|
3633
|
+
return n.connect(), this._clients.set(e, n), n;
|
|
3634
|
+
}
|
|
3635
|
+
get(e) {
|
|
3636
|
+
return this._clients.get(e);
|
|
3637
|
+
}
|
|
3638
|
+
has(e) {
|
|
3639
|
+
return this._clients.has(e);
|
|
3640
|
+
}
|
|
3641
|
+
destroy(e) {
|
|
3642
|
+
let t = this._clients.get(e);
|
|
3643
|
+
t && (t.disconnect(), this._clients.delete(e));
|
|
3644
|
+
}
|
|
3645
|
+
destroyAll() {
|
|
3646
|
+
this._clients.forEach((e) => {
|
|
3647
|
+
e.disconnect();
|
|
3648
|
+
}), this._clients.clear();
|
|
3649
|
+
}
|
|
3650
|
+
}, bo = class {
|
|
3651
|
+
i18n = ae({
|
|
3652
|
+
legacy: !1,
|
|
3653
|
+
locale: "zh-CN",
|
|
3654
|
+
fallbackLocale: "en",
|
|
3655
|
+
messages: {
|
|
3656
|
+
en: { message: { hello: "hello world" } },
|
|
3657
|
+
ja: { message: { hello: "こんにちは、世界" } }
|
|
3658
|
+
}
|
|
3659
|
+
});
|
|
3660
|
+
locale = "zh-CN";
|
|
3661
|
+
constructor() {
|
|
3662
|
+
this.init();
|
|
3663
|
+
}
|
|
3664
|
+
async init() {
|
|
3665
|
+
await this.loadLocales();
|
|
3666
|
+
let e = this.getMessageUrl({ locale: this.locale });
|
|
3667
|
+
await this.loadMessages(e);
|
|
3668
|
+
}
|
|
3669
|
+
async loadLocales() {
|
|
3670
|
+
let e = await oe.get("/gct-platform/api/i18n-config/list");
|
|
3671
|
+
if (e) {
|
|
3672
|
+
let t = e.find((e) => e.defaultLanguage);
|
|
3673
|
+
t && (this.locale = t.languageTag);
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
async loadMessages(e, t = this.locale) {
|
|
3677
|
+
let n = await oe.get(e);
|
|
3678
|
+
if (n) {
|
|
3679
|
+
let e = n.split("\n").reduce((e, t) => {
|
|
3680
|
+
let [n, ...r] = t.split(":");
|
|
3681
|
+
return e[n] = r.join(":"), e;
|
|
3682
|
+
}, {});
|
|
3683
|
+
this.i18n.global.mergeLocaleMessage(t, e);
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
getMessageUrl(e) {
|
|
3687
|
+
if ("app" in e) {
|
|
3688
|
+
let t = e.env === "dev" ? `dev_${e.branch}` : e.env;
|
|
3689
|
+
return `minio/${e.app}/locale-js/${t}/${e.locale}__.json`;
|
|
3690
|
+
}
|
|
3691
|
+
return `/minio/locale-js/${e.locale}__platform__.json`;
|
|
3692
|
+
}
|
|
3693
|
+
};
|
|
3694
|
+
function xo(e) {
|
|
3695
|
+
e.use(_gct.i18n);
|
|
3696
|
+
}
|
|
3697
|
+
//#endregion
|
|
3698
|
+
//#region src/router/index.ts
|
|
3699
|
+
var So = [], Co = class {
|
|
3700
|
+
router;
|
|
3701
|
+
constructor() {
|
|
3702
|
+
this.router = ce({
|
|
3703
|
+
history: le(),
|
|
3704
|
+
routes: So
|
|
3705
|
+
});
|
|
3706
|
+
}
|
|
3707
|
+
async add(e) {
|
|
3708
|
+
Array.isArray(e) ? e.forEach((e) => this.add(e)) : this.router.addRoute(e), await this.router.replace(this.router.currentRoute.value.fullPath);
|
|
3709
|
+
}
|
|
3710
|
+
};
|
|
3711
|
+
function wo(e) {
|
|
3712
|
+
e.use(_gct.router);
|
|
3713
|
+
}
|
|
3714
|
+
//#endregion
|
|
3715
|
+
//#region src/global/gct/gct.ts
|
|
3716
|
+
var To = class {
|
|
3717
|
+
i18nUtil = new bo();
|
|
3718
|
+
i18n = this.i18nUtil.i18n;
|
|
3719
|
+
storeUtil = new so();
|
|
3720
|
+
store = this.storeUtil.store;
|
|
3721
|
+
routerUtil = new Co();
|
|
3722
|
+
router = this.routerUtil.router;
|
|
3723
|
+
message;
|
|
3724
|
+
dictionary = new Ir();
|
|
3725
|
+
env = new _o();
|
|
3726
|
+
mqtt = new yo();
|
|
3727
|
+
register = {};
|
|
3728
|
+
openUtil;
|
|
3729
|
+
async init() {
|
|
3730
|
+
await this.env.checkIsTestEnv(), await this.store.init();
|
|
3731
|
+
}
|
|
3732
|
+
};
|
|
3733
|
+
//#endregion
|
|
3734
|
+
//#region src/hooks/use-app-inst/use-app-inst.ts
|
|
3735
|
+
function Eo() {
|
|
3736
|
+
return h(Fi);
|
|
3737
|
+
}
|
|
3738
|
+
//#endregion
|
|
3739
|
+
//#region src/hooks/use-modal/use-modal.ts
|
|
3740
|
+
function Do(e) {
|
|
3741
|
+
let t = h("modal");
|
|
3742
|
+
return t && e && (t.ok = e), t;
|
|
3743
|
+
}
|
|
3744
|
+
//#endregion
|
|
3745
|
+
//#region src/hooks/use-sub-app-utils/use-sub-app-utils.ts
|
|
3746
|
+
function Oo() {
|
|
3747
|
+
let e = S({});
|
|
3748
|
+
return v(() => {
|
|
3749
|
+
let t = (t) => {
|
|
3750
|
+
t.data?.type === "IFRAME_PROPS" && (e.value = t.data.props);
|
|
3751
|
+
};
|
|
3752
|
+
window.addEventListener("message", t), window.parent.postMessage({ type: "IFRAME_READY" }, "*"), y(() => {
|
|
3753
|
+
window.removeEventListener("message", t);
|
|
3754
|
+
});
|
|
3755
|
+
}), f(() => e.value);
|
|
3756
|
+
}
|
|
3757
|
+
function ko() {
|
|
3758
|
+
return f(() => window.$wujie?.props || {});
|
|
3759
|
+
}
|
|
3760
|
+
function Ao() {
|
|
3761
|
+
return f(() => window.$wujie?.bus);
|
|
3762
|
+
}
|
|
3763
|
+
//#endregion
|
|
3764
|
+
//#region src/hooks/useCopyToClipboard.ts
|
|
3765
|
+
function jo(e) {
|
|
3766
|
+
return e !== void 0;
|
|
3767
|
+
}
|
|
3768
|
+
function Mo(e) {
|
|
3769
|
+
let t = x(e || ""), n = x(!1), r = x(!1);
|
|
3770
|
+
return te(t, (e) => {
|
|
3771
|
+
jo(e) && (r.value = !0, n.value = No(e));
|
|
3772
|
+
}, {
|
|
3773
|
+
immediate: !!e,
|
|
3774
|
+
flush: "sync"
|
|
3775
|
+
}), {
|
|
3776
|
+
clipboardRef: t,
|
|
3777
|
+
isSuccessRef: n,
|
|
3778
|
+
copiedRef: r
|
|
3779
|
+
};
|
|
3780
|
+
}
|
|
3781
|
+
function No(e, { target: t = document.body } = {}) {
|
|
3782
|
+
let n = document.createElement("textarea"), r = document.activeElement;
|
|
3783
|
+
n.value = e, n.setAttribute("readonly", ""), n.style.contain = "strict", n.style.position = "absolute", n.style.left = "-9999px", n.style.fontSize = "12pt";
|
|
3784
|
+
let i = document.getSelection(), a;
|
|
3785
|
+
i && i.rangeCount > 0 && (a = i.getRangeAt(0)), t.append(n), n.select(), n.selectionStart = 0, n.selectionEnd = e.length;
|
|
3786
|
+
let o = !1;
|
|
3787
|
+
try {
|
|
3788
|
+
o = document.execCommand("copy");
|
|
3789
|
+
} catch (e) {
|
|
3790
|
+
console.error("Unable to copy.", e), o = !1;
|
|
3791
|
+
}
|
|
3792
|
+
return n.remove(), a && i && (i.removeAllRanges(), i.addRange(a)), r && r.focus(), o;
|
|
3793
|
+
}
|
|
3794
|
+
//#endregion
|
|
3795
|
+
//#region src/modules/error-handler/error-handler.const.ts
|
|
3796
|
+
var J = {
|
|
3797
|
+
UNAUTHORIZED: 401,
|
|
3798
|
+
FORBIDDEN: 403,
|
|
3799
|
+
NOT_FOUND: 404,
|
|
3800
|
+
INTERNAL_SERVER_ERROR: 500,
|
|
3801
|
+
BAD_GATEWAY: 502,
|
|
3802
|
+
SERVICE_UNAVAILABLE: 503,
|
|
3803
|
+
GATEWAY_TIMEOUT: 504
|
|
3804
|
+
}, Po = class {
|
|
3805
|
+
handle(e) {
|
|
3806
|
+
console.error(e);
|
|
3807
|
+
}
|
|
3808
|
+
}, Fo = class {
|
|
3809
|
+
handle(e) {
|
|
3810
|
+
console.error(e);
|
|
3811
|
+
}
|
|
3812
|
+
}, Io = class {
|
|
3813
|
+
handle(e) {
|
|
3814
|
+
if (e.type === M.AJAX) {
|
|
3815
|
+
new Lo().handle(e);
|
|
3816
|
+
return;
|
|
3817
|
+
}
|
|
3818
|
+
console.error(e);
|
|
3819
|
+
}
|
|
3820
|
+
}, Lo = class {
|
|
3821
|
+
handle(e) {
|
|
3822
|
+
let t = this._extractStatusCode(e.message);
|
|
3823
|
+
if (t) switch (t) {
|
|
3824
|
+
case J.UNAUTHORIZED:
|
|
3825
|
+
this._handleUnauthorized();
|
|
3826
|
+
break;
|
|
3827
|
+
case J.FORBIDDEN:
|
|
3828
|
+
this._handleForbidden();
|
|
3829
|
+
break;
|
|
3830
|
+
case J.NOT_FOUND:
|
|
3831
|
+
this._handleNotFound();
|
|
3832
|
+
break;
|
|
3833
|
+
case J.INTERNAL_SERVER_ERROR:
|
|
3834
|
+
case J.BAD_GATEWAY:
|
|
3835
|
+
case J.SERVICE_UNAVAILABLE:
|
|
3836
|
+
case J.GATEWAY_TIMEOUT:
|
|
3837
|
+
this._handleServerError(t);
|
|
3838
|
+
break;
|
|
3839
|
+
default:
|
|
3840
|
+
this._handleGenericHttpError(e);
|
|
3841
|
+
break;
|
|
3842
|
+
}
|
|
3843
|
+
else this._handleGenericHttpError(e);
|
|
3844
|
+
}
|
|
3845
|
+
_extractStatusCode(e) {
|
|
3846
|
+
let t = e.match(/HTTP\s+(\d{3})|Business\s+Error\s+\[(\d+)\]/);
|
|
3847
|
+
return t ? parseInt(t[1] || t[2], 10) : null;
|
|
3848
|
+
}
|
|
3849
|
+
_handleGenericHttpError(e) {
|
|
3850
|
+
e.message.includes("Business Error") ? console.debug("Handling business error:", e.message) : e.message.includes("Network") ? console.debug("Handling network error:", e.message) : console.debug("Handling HTTP error:", e.message);
|
|
3851
|
+
}
|
|
3852
|
+
_handleUnauthorized() {
|
|
3853
|
+
console.warn("Unauthorized access, redirecting to login...");
|
|
3854
|
+
}
|
|
3855
|
+
_handleForbidden() {
|
|
3856
|
+
console.warn("Access forbidden");
|
|
3857
|
+
}
|
|
3858
|
+
_handleNotFound() {
|
|
3859
|
+
console.warn("Resource not found");
|
|
3860
|
+
}
|
|
3861
|
+
_handleServerError(e) {
|
|
3862
|
+
console.warn(`Server error: ${e}`);
|
|
3863
|
+
}
|
|
3864
|
+
}, Ro = class {
|
|
3865
|
+
static _strategies = /* @__PURE__ */ new Map();
|
|
3866
|
+
static init() {
|
|
3867
|
+
this.registerStrategy(M.SCRIPT, new Po()), this.registerStrategy(M.VUE, new Fo()), this.registerStrategy(M.PROMISE, new Io()), this.registerStrategy(M.AJAX, new Lo());
|
|
3868
|
+
}
|
|
3869
|
+
static getStrategy(e) {
|
|
3870
|
+
return this._strategies.get(e);
|
|
3871
|
+
}
|
|
3872
|
+
static registerStrategy(e, t) {
|
|
3873
|
+
this._strategies.set(e, t);
|
|
3874
|
+
}
|
|
3875
|
+
}, zo = class e {
|
|
3876
|
+
static _instance;
|
|
3877
|
+
constructor() {
|
|
3878
|
+
this._initializeStrategies();
|
|
3879
|
+
}
|
|
3880
|
+
static getInstance() {
|
|
3881
|
+
return e._instance ||= new e(), e._instance;
|
|
3882
|
+
}
|
|
3883
|
+
static init() {
|
|
3884
|
+
e.getInstance();
|
|
3885
|
+
}
|
|
3886
|
+
static handleVueError(e, t, n) {
|
|
3887
|
+
let r = {
|
|
3888
|
+
type: M.VUE,
|
|
3889
|
+
message: `Vue Error: ${e.message} | Info: ${n}`,
|
|
3890
|
+
stack: e.stack,
|
|
3891
|
+
timestamp: Date.now(),
|
|
3892
|
+
userAgent: navigator.userAgent
|
|
3893
|
+
};
|
|
3894
|
+
this._instance._processError(r);
|
|
3895
|
+
}
|
|
3896
|
+
static reportError(e, t = M.SCRIPT) {
|
|
3897
|
+
let n = {
|
|
3898
|
+
type: t,
|
|
3899
|
+
message: e.message,
|
|
3900
|
+
stack: e.stack,
|
|
3901
|
+
timestamp: Date.now(),
|
|
3902
|
+
userAgent: navigator.userAgent
|
|
3903
|
+
};
|
|
3904
|
+
this._instance._processError(n);
|
|
3905
|
+
}
|
|
3906
|
+
_initializeStrategies() {
|
|
3907
|
+
Ro.init();
|
|
3908
|
+
}
|
|
3909
|
+
_processError(e) {
|
|
3910
|
+
Ro.getStrategy(e.type)?.handle(e);
|
|
3911
|
+
}
|
|
3912
|
+
};
|
|
3913
|
+
async function Bo(e) {
|
|
3914
|
+
zo.init(), e.config.errorHandler = (e, t, n) => {
|
|
3915
|
+
zo.handleVueError(e, t, n);
|
|
3916
|
+
}, e.config.warnHandler = (e, t, n) => {
|
|
3917
|
+
console.warn(`Vue Warning: ${e}`), n && console.warn("Trace:", n);
|
|
3918
|
+
}, window.addEventListener("error", (e) => {
|
|
3919
|
+
zo.reportError(Error(e.message), M.SCRIPT);
|
|
3920
|
+
}), window.addEventListener("unhandledrejection", (e) => {
|
|
3921
|
+
zo.reportError(e.reason, M.PROMISE);
|
|
3922
|
+
});
|
|
3923
|
+
}
|
|
3924
|
+
//#endregion
|
|
3925
|
+
//#region src/modules/platform-config/enums/login.enum.ts
|
|
3926
|
+
var Y = /* @__PURE__ */ function(e) {
|
|
3927
|
+
return e.SYSTEM = "SYSTEM", e.THIRD_PARTY = "THIRD_PARTY", e;
|
|
3928
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
3929
|
+
return e.ACCOUNT = "ACCOUNT", e.DOMAIN_ACCOUNT = "DOMAIN_ACCOUNT", e.MOBILE = "MOBILE", e.DINGDING = "DINGDING", e.FEISHU = "FEISHU", e.QIYEWEIXIN = "QIYEWEIXIN", e;
|
|
3930
|
+
}({}), Vo = /* @__PURE__ */ function(e) {
|
|
3931
|
+
return e.NUMBER = "NUMBER", e.LOWERCASE = "LOWERCASE", e.UPPERCASE = "UPPERCASE", e.SPECHARS = "SPECHARS", e;
|
|
3932
|
+
}({}), Ho = /* @__PURE__ */ function(e) {
|
|
3933
|
+
return e.SAME_END = "SAME_END", e.DIFFERENT_END = "DIFFERENT_END", e;
|
|
3934
|
+
}({}), Uo = /* @__PURE__ */ function(e) {
|
|
3935
|
+
return e.STANDARD = "STANDARD", e.INDEPENDENT_APP = "INDEPENDENT_APP", e;
|
|
3936
|
+
}({}), Wo = {
|
|
3937
|
+
[X.ACCOUNT]: {
|
|
3938
|
+
icon: "icon-a-Accountnumber",
|
|
3939
|
+
color: "#0E81EC"
|
|
3940
|
+
},
|
|
3941
|
+
[X.DOMAIN_ACCOUNT]: {
|
|
3942
|
+
icon: "icon-a-Domainaccount",
|
|
3943
|
+
color: "#FFAB06"
|
|
3944
|
+
},
|
|
3945
|
+
[X.MOBILE]: {
|
|
3946
|
+
icon: "icon-a-Cellphone",
|
|
3947
|
+
color: "#6A70FE"
|
|
3948
|
+
},
|
|
3949
|
+
[X.DINGDING]: { icon: "DingdingIcon" },
|
|
3950
|
+
[X.FEISHU]: { icon: "FeishuIcon" },
|
|
3951
|
+
[X.QIYEWEIXIN]: { icon: "QiyeweixinIcon" }
|
|
3952
|
+
}, Go = [
|
|
3953
|
+
X.ACCOUNT,
|
|
3954
|
+
X.DOMAIN_ACCOUNT,
|
|
3955
|
+
X.MOBILE
|
|
3956
|
+
], Ko = [
|
|
3957
|
+
X.DINGDING,
|
|
3958
|
+
X.FEISHU,
|
|
3959
|
+
X.QIYEWEIXIN
|
|
3960
|
+
], qo = (e) => e ? e.map((e) => ({
|
|
3961
|
+
id: e,
|
|
3962
|
+
label: e,
|
|
3963
|
+
value: e,
|
|
3964
|
+
...Wo[e]
|
|
3965
|
+
})) : [], Jo = [
|
|
3966
|
+
{
|
|
3967
|
+
label: "extString0_",
|
|
3968
|
+
value: "ext0",
|
|
3969
|
+
type: 1
|
|
3970
|
+
},
|
|
3971
|
+
{
|
|
3972
|
+
label: "extString1_",
|
|
3973
|
+
value: "ext1",
|
|
3974
|
+
type: 1
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
label: "extString2_",
|
|
3978
|
+
value: "ext2",
|
|
3979
|
+
type: 1
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
label: "extString3_",
|
|
3983
|
+
value: "ext3",
|
|
3984
|
+
type: 1
|
|
3985
|
+
},
|
|
3986
|
+
{
|
|
3987
|
+
label: "extString4_",
|
|
3988
|
+
value: "ext4",
|
|
3989
|
+
type: 1
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
label: "extInt5_",
|
|
3993
|
+
value: "ext5",
|
|
3994
|
+
type: 0
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
label: "extInt6_",
|
|
3998
|
+
value: "ext6",
|
|
3999
|
+
type: 0
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
label: "extInt7_",
|
|
4003
|
+
value: "ext7",
|
|
4004
|
+
type: 0
|
|
4005
|
+
},
|
|
4006
|
+
{
|
|
4007
|
+
label: "extInt8_",
|
|
4008
|
+
value: "ext8",
|
|
4009
|
+
type: 0
|
|
4010
|
+
},
|
|
4011
|
+
{
|
|
4012
|
+
label: "extInt9_",
|
|
4013
|
+
value: "ext9",
|
|
4014
|
+
type: 0
|
|
4015
|
+
}
|
|
4016
|
+
], Yo = 46, Xo = [100, 1e3], Zo = ["#026AC8", "#0DAA9C"], Qo = {
|
|
4017
|
+
openWatermark: !1,
|
|
4018
|
+
watermarkContent: "custom",
|
|
4019
|
+
fontSize: 16,
|
|
4020
|
+
color: "#000000",
|
|
4021
|
+
verticalAlign: "middle",
|
|
4022
|
+
textAlign: "center",
|
|
4023
|
+
text: "${username}",
|
|
4024
|
+
transparent: 15,
|
|
4025
|
+
width: 1600,
|
|
4026
|
+
height: 1080
|
|
4027
|
+
}, $o = b({
|
|
4028
|
+
copyright: "© 2016-<span class=\"ownInput\">${当前年份}</span> 冠骋信息技术(苏州)有限公司 版权所有",
|
|
4029
|
+
description: "",
|
|
4030
|
+
icon: "",
|
|
4031
|
+
loadingImage: "",
|
|
4032
|
+
logo: "",
|
|
4033
|
+
name: "冠骋云PaaS平台",
|
|
4034
|
+
thumbnail: "",
|
|
4035
|
+
version: "暂未支持"
|
|
4036
|
+
});
|
|
4037
|
+
function es(e = !0) {
|
|
4038
|
+
let t = () => e ? _api.platform.plat.postBase(u({ ...$o }, "version")) : _api.apaas.plat.postBase(u({ ...$o }, "version"));
|
|
4039
|
+
function n(e, t = !0) {
|
|
4040
|
+
let { value: n } = e;
|
|
4041
|
+
if (n) try {
|
|
4042
|
+
Object.assign($o, t ? JSON.parse(n) : n, { version: (void 0).version });
|
|
4043
|
+
} catch (e) {
|
|
4044
|
+
console.warn(e);
|
|
4045
|
+
}
|
|
4046
|
+
}
|
|
4047
|
+
return {
|
|
4048
|
+
basicSetting: $o,
|
|
4049
|
+
setBasicSetting: n,
|
|
4050
|
+
postBasicSetting: t
|
|
4051
|
+
};
|
|
4052
|
+
}
|
|
4053
|
+
//#endregion
|
|
4054
|
+
//#region src/modules/platform-config/useDeploySetting.ts
|
|
4055
|
+
var ts = b({ deployMode: Uo.STANDARD }), ns = f(() => ts.deployMode === Uo.INDEPENDENT_APP);
|
|
4056
|
+
function rs(e) {
|
|
4057
|
+
let { value: t } = e;
|
|
4058
|
+
if (t) try {
|
|
4059
|
+
Object.assign(ts, JSON.parse(t));
|
|
4060
|
+
} catch (e) {
|
|
4061
|
+
console.warn(e);
|
|
4062
|
+
}
|
|
4063
|
+
}
|
|
4064
|
+
function is() {
|
|
4065
|
+
return {
|
|
4066
|
+
deploySetting: ts,
|
|
4067
|
+
setDeploySetting: rs,
|
|
4068
|
+
isIndependentApp: ns
|
|
4069
|
+
};
|
|
4070
|
+
}
|
|
4071
|
+
//#endregion
|
|
4072
|
+
//#region src/modules/platform-config/useLoginSetting.ts
|
|
4073
|
+
var as = x([X.ACCOUNT]), os = x([]), ss = x(qo(Go)), cs = x(qo(Ko)), Z = b({
|
|
4074
|
+
theme: "full",
|
|
4075
|
+
title: "欢迎登录冠骋云PaaS平台",
|
|
4076
|
+
subtitle: "让数字化赋能客户成功!",
|
|
4077
|
+
logo: "",
|
|
4078
|
+
banner: "",
|
|
4079
|
+
loginModeConfigs: [],
|
|
4080
|
+
openIDOAuthConfigs: [],
|
|
4081
|
+
sortJson: "",
|
|
4082
|
+
defaultAuthType: X.ACCOUNT
|
|
4083
|
+
}), Q = b(new Map([
|
|
4084
|
+
[X.ACCOUNT, {
|
|
4085
|
+
address: "",
|
|
4086
|
+
authType: X.ACCOUNT,
|
|
4087
|
+
relationField: "",
|
|
4088
|
+
enabled: 0
|
|
4089
|
+
}],
|
|
4090
|
+
[X.DOMAIN_ACCOUNT, {
|
|
4091
|
+
address: "",
|
|
4092
|
+
authType: X.DOMAIN_ACCOUNT,
|
|
4093
|
+
relationField: "",
|
|
4094
|
+
domainSuffix: "",
|
|
4095
|
+
relationFieldName: "",
|
|
4096
|
+
enabled: 0
|
|
4097
|
+
}],
|
|
4098
|
+
[X.MOBILE, {
|
|
4099
|
+
smsServiceProvider: "",
|
|
4100
|
+
smsKey: "",
|
|
4101
|
+
smsKeySecret: "",
|
|
4102
|
+
smsTemplateCode: "",
|
|
4103
|
+
smsSignName: "",
|
|
4104
|
+
phoneNumb: "",
|
|
4105
|
+
smsSdkAppId: "",
|
|
4106
|
+
authType: X.MOBILE,
|
|
4107
|
+
enabled: 0
|
|
4108
|
+
}],
|
|
4109
|
+
[X.DINGDING, {
|
|
4110
|
+
appId: "",
|
|
4111
|
+
authType: X.DINGDING,
|
|
4112
|
+
secret: "",
|
|
4113
|
+
redirectURL: "",
|
|
4114
|
+
enabled: 0
|
|
4115
|
+
}],
|
|
4116
|
+
[X.FEISHU, {
|
|
4117
|
+
appId: "",
|
|
4118
|
+
authType: X.FEISHU,
|
|
4119
|
+
secret: "",
|
|
4120
|
+
redirectURL: "",
|
|
4121
|
+
enabled: 0
|
|
4122
|
+
}],
|
|
4123
|
+
[X.QIYEWEIXIN, {
|
|
4124
|
+
appId: "",
|
|
4125
|
+
agentId: "",
|
|
4126
|
+
authType: X.QIYEWEIXIN,
|
|
4127
|
+
secret: "",
|
|
4128
|
+
redirectURL: "",
|
|
4129
|
+
enabled: 0,
|
|
4130
|
+
certFileName: ""
|
|
4131
|
+
}]
|
|
4132
|
+
]));
|
|
4133
|
+
function ls() {
|
|
4134
|
+
return {
|
|
4135
|
+
loginSetting: Z,
|
|
4136
|
+
postLoginSetting: async () => {
|
|
4137
|
+
[...as.value, ...os.value].forEach((e) => {
|
|
4138
|
+
let t = Q.get(e);
|
|
4139
|
+
t && (t.enabled = 1);
|
|
4140
|
+
}), Z.loginModeConfigs = Go.map((e) => Q.get(e)).filter((e) => e !== void 0), Z.openIDOAuthConfigs = Ko.map((e) => Q.get(e)).filter((e) => e !== void 0), Z.sortJson = JSON.stringify({
|
|
4141
|
+
[Y.SYSTEM]: ss.value.map((e) => e.id),
|
|
4142
|
+
[Y.THIRD_PARTY]: cs.value.map((e) => e.id)
|
|
4143
|
+
}), await _api.platform.plat.postLogin(Z);
|
|
4144
|
+
},
|
|
4145
|
+
setLoginSetting: (e) => {
|
|
4146
|
+
if (e && e.value) {
|
|
4147
|
+
let t = JSON.parse(e.value);
|
|
4148
|
+
for (let e in t) e in Z && (Z[e] = t[e]);
|
|
4149
|
+
if (a(t, "sortJson") && !s(t.sortJson)) {
|
|
4150
|
+
let e = JSON.parse(t.sortJson);
|
|
4151
|
+
a(e, Y.SYSTEM) && (ss.value = qo(e[Y.SYSTEM])), a(e, Y.THIRD_PARTY) && (cs.value = qo(e[Y.THIRD_PARTY]));
|
|
4152
|
+
}
|
|
4153
|
+
Z.loginModeConfigs?.forEach((e) => {
|
|
4154
|
+
Q.set(e.authType, {
|
|
4155
|
+
...e,
|
|
4156
|
+
enabled: 0
|
|
4157
|
+
});
|
|
4158
|
+
});
|
|
4159
|
+
let n = Z.loginModeConfigs?.filter((e) => e.enabled).map((e) => e.authType) || [];
|
|
4160
|
+
n.push(X.ACCOUNT), as.value = [...new Set(n)], Z.openIDOAuthConfigs?.forEach((e) => {
|
|
4161
|
+
Q.set(e.authType, {
|
|
4162
|
+
...e,
|
|
4163
|
+
enabled: 0
|
|
4164
|
+
});
|
|
4165
|
+
}), os.value = Z.openIDOAuthConfigs?.filter((e) => e.enabled).map((e) => e.authType) || [];
|
|
4166
|
+
}
|
|
4167
|
+
},
|
|
4168
|
+
loginModeAuthTypes: as,
|
|
4169
|
+
openIDOAuthAuthTypes: os,
|
|
4170
|
+
sysLoginSort: ss,
|
|
4171
|
+
openIDOAuthAuthSort: cs,
|
|
4172
|
+
loginModeConfig: Q
|
|
4173
|
+
};
|
|
4174
|
+
}
|
|
4175
|
+
//#endregion
|
|
4176
|
+
//#region src/modules/platform-config/useOrgSetting.ts
|
|
4177
|
+
var $ = b({
|
|
4178
|
+
initialPassword: "123456",
|
|
4179
|
+
initialSignPassword: "12345678",
|
|
4180
|
+
enableIdentifier: 1,
|
|
4181
|
+
enableDeleteAccount: 1,
|
|
4182
|
+
enableDeleteUser: 0,
|
|
4183
|
+
requiredFields: [],
|
|
4184
|
+
supportLoginFields: ["username_"],
|
|
4185
|
+
extFieldConfigs: [],
|
|
4186
|
+
orgExtFieldConfigs: []
|
|
4187
|
+
}), us = x([...Jo]), ds = x([]);
|
|
4188
|
+
function fs(e = !0) {
|
|
4189
|
+
let t = async () => {
|
|
4190
|
+
let t = JSON.parse(JSON.stringify($));
|
|
4191
|
+
e ? await _api.platform.plat.postOrg(t) : await _api.apaas.plat.postOrg(t);
|
|
4192
|
+
};
|
|
4193
|
+
function n(e) {
|
|
4194
|
+
let { value: t } = e;
|
|
4195
|
+
if (t) try {
|
|
4196
|
+
let e = JSON.parse(t);
|
|
4197
|
+
for (let t in e) t == "supportLoginFields" && (e.supportLoginFields = e.supportLoginFields.filter((e) => e !== "username_"));
|
|
4198
|
+
Object.assign($, e), $.extFieldConfigs && $.extFieldConfigs.length && $.extFieldConfigs.forEach((e) => {
|
|
4199
|
+
us.value = us.value.filter((t) => (t.value == e.relationField && ds.value.push(t), t.value !== e.relationField));
|
|
4200
|
+
}), $.extFieldConfigs = JSON.parse(JSON.stringify(e.extFieldConfigs));
|
|
4201
|
+
} catch (e) {
|
|
4202
|
+
console.warn(e);
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
return {
|
|
4206
|
+
orgSetting: $,
|
|
4207
|
+
setOrgSetting: n,
|
|
4208
|
+
postOrgSetting: t,
|
|
4209
|
+
relationFields: us,
|
|
4210
|
+
relationFiledsCopy: ds
|
|
4211
|
+
};
|
|
4212
|
+
}
|
|
4213
|
+
//#endregion
|
|
4214
|
+
//#region src/modules/platform-config/useSecuritySetting.ts
|
|
4215
|
+
var ps = b({
|
|
4216
|
+
durationHour: 2,
|
|
4217
|
+
durationMinute: 0,
|
|
4218
|
+
enableChangePassword: 1,
|
|
4219
|
+
enableChangeSignPassword: 0,
|
|
4220
|
+
enableSignPassword: 0,
|
|
4221
|
+
enableKickOut: 1,
|
|
4222
|
+
enablePassphrase: 1,
|
|
4223
|
+
signEnablePassphrase: 1,
|
|
4224
|
+
enableLockAccount: 1,
|
|
4225
|
+
expiryDate: 30,
|
|
4226
|
+
signExpiryDate: 30,
|
|
4227
|
+
firstTimeChangePassword: 0,
|
|
4228
|
+
signFirstTimeChangePassword: 0,
|
|
4229
|
+
lockTimeout: 0,
|
|
4230
|
+
loginKickOutMode: "SAME_END",
|
|
4231
|
+
maxErrorTimes: 2,
|
|
4232
|
+
passMinLength: 6,
|
|
4233
|
+
signPassMinLength: 6,
|
|
4234
|
+
passRule: ["NUMBER"],
|
|
4235
|
+
signPassRule: ["NUMBER"],
|
|
4236
|
+
signRepeatNum: 1,
|
|
4237
|
+
repeatNum: 1,
|
|
4238
|
+
timeUnit: "DAYS",
|
|
4239
|
+
signTimeUnit: "DAYS",
|
|
4240
|
+
noOpRetainHour: 8,
|
|
4241
|
+
noOpRetainMinute: 0,
|
|
4242
|
+
earlyAlarmMinute: 5,
|
|
4243
|
+
earlyAlarmSecond: 0,
|
|
4244
|
+
inapplicablePerson: [],
|
|
4245
|
+
lockHourTimeout: 0,
|
|
4246
|
+
lockMinTimeout: 5
|
|
4247
|
+
});
|
|
4248
|
+
function ms(e = !0) {
|
|
4249
|
+
let t = async () => {
|
|
4250
|
+
e ? await _api.platform.plat.postSecurity(ps) : await _api.apaas.plat.postSecurity(ps);
|
|
4251
|
+
};
|
|
4252
|
+
function n(e) {
|
|
4253
|
+
let { value: t } = e;
|
|
4254
|
+
if (t) try {
|
|
4255
|
+
Object.assign(ps, JSON.parse(t));
|
|
4256
|
+
} catch (e) {
|
|
4257
|
+
console.warn(e);
|
|
4258
|
+
}
|
|
4259
|
+
}
|
|
4260
|
+
return {
|
|
4261
|
+
securitySetting: ps,
|
|
4262
|
+
postSecuritySetting: t,
|
|
4263
|
+
setSecuritySetting: n
|
|
4264
|
+
};
|
|
4265
|
+
}
|
|
4266
|
+
//#endregion
|
|
4267
|
+
//#region src/modules/platform-config/useThemeSetting.ts
|
|
4268
|
+
var hs = b({
|
|
4269
|
+
darkMode: "light",
|
|
4270
|
+
themeColor: "#026AC8",
|
|
4271
|
+
menuMode: "classic",
|
|
4272
|
+
menuWidth: 232,
|
|
4273
|
+
menuCollapsible: !0,
|
|
4274
|
+
menuSearchable: !0,
|
|
4275
|
+
menuFilter: !1,
|
|
4276
|
+
showLogo: !0,
|
|
4277
|
+
showBreadcrumb: !1,
|
|
4278
|
+
showBreadcrumbIcon: !1,
|
|
4279
|
+
showTabs: !0,
|
|
4280
|
+
pageProgress: !0,
|
|
4281
|
+
pageLoading: !0,
|
|
4282
|
+
colorMode: "normal"
|
|
4283
|
+
}), gs = x(!1), _s = 46, vs = Xo, ys = Zo, bs = () => {
|
|
4284
|
+
switch (hs.colorMode) {
|
|
4285
|
+
case "colorWeak": break;
|
|
4286
|
+
case "gray": break;
|
|
4287
|
+
default:
|
|
4288
|
+
}
|
|
4289
|
+
};
|
|
4290
|
+
te(() => hs.colorMode, (e) => {
|
|
4291
|
+
e && bs();
|
|
4292
|
+
});
|
|
4293
|
+
function xs() {
|
|
4294
|
+
let e = async () => {};
|
|
4295
|
+
function t(e) {
|
|
4296
|
+
let { value: t } = e;
|
|
4297
|
+
if (t) try {
|
|
4298
|
+
Object.assign(hs, JSON.parse(t));
|
|
4299
|
+
} catch (e) {
|
|
4300
|
+
console.warn(e);
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
function n() {
|
|
4304
|
+
gs.value = !gs.value;
|
|
4305
|
+
}
|
|
4306
|
+
return {
|
|
4307
|
+
themeSetting: hs,
|
|
4308
|
+
setThemeSetting: t,
|
|
4309
|
+
postThemeSetting: e,
|
|
4310
|
+
menuCollapsed: gs,
|
|
4311
|
+
toggleMenuCollapsed: n,
|
|
4312
|
+
menuCollapsedWidth: _s,
|
|
4313
|
+
menuWidthRange: vs,
|
|
4314
|
+
themeColors: ys
|
|
4315
|
+
};
|
|
4316
|
+
}
|
|
4317
|
+
//#endregion
|
|
4318
|
+
//#region src/modules/platform-config/useWatermarkSetting.ts
|
|
4319
|
+
var Ss = b({ ...Qo });
|
|
4320
|
+
function Cs() {
|
|
4321
|
+
let e = async () => {
|
|
4322
|
+
let e = JSON.stringify(Ss);
|
|
4323
|
+
await _api.platform.plat.postWatermark({ value: e });
|
|
4324
|
+
};
|
|
4325
|
+
function t(e) {
|
|
4326
|
+
let { value: t } = e;
|
|
4327
|
+
if (t) try {
|
|
4328
|
+
Object.assign(Ss, JSON.parse(t));
|
|
4329
|
+
} catch (e) {
|
|
4330
|
+
console.warn(e);
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
return {
|
|
4334
|
+
watermarkSetting: Ss,
|
|
4335
|
+
postWatermarkSetting: e,
|
|
4336
|
+
setWatermarkSetting: t
|
|
4337
|
+
};
|
|
4338
|
+
}
|
|
4339
|
+
//#endregion
|
|
4340
|
+
//#region src/modules/platform-config/useProjectSetting.ts
|
|
4341
|
+
var ws = b({});
|
|
4342
|
+
function Ts(e) {
|
|
4343
|
+
Object.assign(ws, e);
|
|
4344
|
+
}
|
|
4345
|
+
function Es() {
|
|
4346
|
+
return {
|
|
4347
|
+
projectSetting: ws,
|
|
4348
|
+
setProjectConfig: Ts
|
|
4349
|
+
};
|
|
4350
|
+
}
|
|
4351
|
+
//#endregion
|
|
4352
|
+
//#region src/modules/platform-config/store.ts
|
|
4353
|
+
var Ds = t("platform-config", () => {
|
|
4354
|
+
let e = es(), t = ls(), n = fs(), r = ms(), i = xs(), a = Cs(), o = is(), s = Es();
|
|
4355
|
+
async function c() {
|
|
4356
|
+
let s = await _api.platform.plat.getList(), c = {};
|
|
4357
|
+
s && s.length > 0 && s.forEach((e) => {
|
|
4358
|
+
if (e.value) try {
|
|
4359
|
+
c[e.configEnum] = JSON.parse(e.value);
|
|
4360
|
+
} catch (t) {
|
|
4361
|
+
console.warn(`${e.configEnum}配置解析失败`, t, e);
|
|
4362
|
+
}
|
|
4363
|
+
}), c[N.BASIC] && e.setBasicSetting(c[N.BASIC]), c[N.LOGIN] && t.setLoginSetting(c[N.LOGIN]), c[N.ORGANIZATION] && n.setOrgSetting(c[N.ORGANIZATION]), c[N.SECURITY] && r.setSecuritySetting(c[N.SECURITY]), c[N.THEME] && i.setThemeSetting(c[N.THEME]), c[N.WATERMARK] && a.setWatermarkSetting(c[N.WATERMARK]), c[N.DEPLOY] && o.setDeploySetting(c[N.DEPLOY]), console.debug("平台配置初始化完成", c);
|
|
4364
|
+
}
|
|
4365
|
+
async function l() {
|
|
4366
|
+
let e = await _api.apaas.basicConfig.getDetail({ configEnum: N.THEME });
|
|
4367
|
+
e && i.setThemeSetting(e);
|
|
4368
|
+
}
|
|
4369
|
+
return {
|
|
4370
|
+
init: c,
|
|
4371
|
+
renderInit: l,
|
|
4372
|
+
...e,
|
|
4373
|
+
...t,
|
|
4374
|
+
...n,
|
|
4375
|
+
...r,
|
|
4376
|
+
...i,
|
|
4377
|
+
...a,
|
|
4378
|
+
...o,
|
|
4379
|
+
...s
|
|
4380
|
+
};
|
|
4381
|
+
}), Os = t("user", {
|
|
4382
|
+
state: () => ({
|
|
4383
|
+
userInfo: {},
|
|
4384
|
+
roleList: [],
|
|
4385
|
+
sessionTimeout: !1,
|
|
4386
|
+
lastUpdateTime: 0,
|
|
4387
|
+
userPermissions: {}
|
|
4388
|
+
}),
|
|
4389
|
+
getters: {
|
|
4390
|
+
getUserInfo(e) {
|
|
4391
|
+
return e.userInfo;
|
|
4392
|
+
},
|
|
4393
|
+
getUserPermissions(e) {
|
|
4394
|
+
return e.userPermissions;
|
|
4395
|
+
}
|
|
4396
|
+
},
|
|
4397
|
+
actions: {
|
|
4398
|
+
async login(e, { hasError: t } = {}) {
|
|
4399
|
+
try {
|
|
4400
|
+
let { token: n, signWay: r } = await ks(e, t);
|
|
4401
|
+
return sessionStorage.setItem("signWay", r), ia(n), this.afterLoginAction();
|
|
4402
|
+
} catch (e) {
|
|
4403
|
+
return Promise.reject(e);
|
|
4404
|
+
}
|
|
4405
|
+
},
|
|
4406
|
+
async getUserInfoAction(e) {
|
|
4407
|
+
if (!U && !e) return null;
|
|
4408
|
+
let t = await _api.platform.user.getInfo({ headers: { Token: e } });
|
|
4409
|
+
return this.setUserInfo(t), this.userPermissions = (t?.platformManagerPermissions ?? []).reduce((e, t) => (e[t] = !0, e), {}), t;
|
|
4410
|
+
},
|
|
4411
|
+
async afterLoginSingleApp() {},
|
|
4412
|
+
async afterLoginAction() {
|
|
4413
|
+
if (!U) return null;
|
|
4414
|
+
},
|
|
4415
|
+
async logout() {
|
|
4416
|
+
await As();
|
|
4417
|
+
},
|
|
4418
|
+
async setUserInfo(e) {
|
|
4419
|
+
this.userInfo = {
|
|
4420
|
+
...e,
|
|
4421
|
+
minioDomain: "/minio"
|
|
4422
|
+
}, this.lastUpdateTime = (/* @__PURE__ */ new Date()).getTime(), _gct.store.userInfo = this.userInfo;
|
|
4423
|
+
},
|
|
4424
|
+
async updateUserInfo(e) {
|
|
4425
|
+
let t = {
|
|
4426
|
+
...this.userInfo,
|
|
4427
|
+
...e
|
|
4428
|
+
};
|
|
4429
|
+
this.setUserInfo(t);
|
|
4430
|
+
}
|
|
4431
|
+
}
|
|
4432
|
+
});
|
|
4433
|
+
async function ks(e, { hasError: t = !0 } = {}) {
|
|
4434
|
+
let n = await Aa();
|
|
4435
|
+
return await _api.platform.login.postSign(e, { headers: {
|
|
4436
|
+
browser: n,
|
|
4437
|
+
"Auth-Code": e.authCode,
|
|
4438
|
+
hasError: t
|
|
4439
|
+
} });
|
|
4440
|
+
}
|
|
4441
|
+
async function As() {
|
|
4442
|
+
let e = sessionStorage.getItem("currentPlatOrAppId"), t = _gct.env.getEnv(), n = await Aa(), r = {
|
|
4443
|
+
appId: e && JSON.parse(e).appId,
|
|
4444
|
+
platform: e && JSON.parse(e).type,
|
|
4445
|
+
env: t
|
|
4446
|
+
}, i = Ma();
|
|
4447
|
+
await _api.platform.login.getSignOut(r, { headers: {
|
|
4448
|
+
browser: n,
|
|
4449
|
+
pagetag: i
|
|
4450
|
+
} });
|
|
4451
|
+
}
|
|
4452
|
+
//#endregion
|
|
4453
|
+
//#region src/modules/user-stores/store/tenant.store.ts
|
|
4454
|
+
var js = t("tenant", {
|
|
4455
|
+
state: () => ({
|
|
4456
|
+
tenantId: "",
|
|
4457
|
+
tenantUserInfo: {},
|
|
4458
|
+
tenantUserPermissions: {}
|
|
4459
|
+
}),
|
|
4460
|
+
actions: {
|
|
4461
|
+
setTenant(e) {
|
|
4462
|
+
this.tenantId = e;
|
|
4463
|
+
},
|
|
4464
|
+
async getTenantUserInfoAction() {
|
|
4465
|
+
if (!this.tenantId) return;
|
|
4466
|
+
let e = await _api.platform.tenant.getUserInfo();
|
|
4467
|
+
return this.tenantUserInfo = e, e;
|
|
4468
|
+
}
|
|
4469
|
+
}
|
|
4470
|
+
}), Ms = t("permission", {
|
|
4471
|
+
state: () => ({ userPermissions: {
|
|
4472
|
+
appSuperAdmin: 0,
|
|
4473
|
+
permissions: {}
|
|
4474
|
+
} }),
|
|
4475
|
+
getters: { hasAllPermissions(e) {
|
|
4476
|
+
return !!e.userPermissions.appSuperAdmin || !!e.userPermissions.permissions["POINT.*"];
|
|
4477
|
+
} },
|
|
4478
|
+
actions: {
|
|
4479
|
+
getPermissionByKey(e, t) {
|
|
4480
|
+
if (this.hasAllPermissions) return !0;
|
|
4481
|
+
if (!t) return this.userPermissions.permissions[e];
|
|
4482
|
+
let n = `${e}.${t}`, r = `${e}.*`;
|
|
4483
|
+
return this.userPermissions.permissions[n] || this.userPermissions.permissions[r];
|
|
4484
|
+
},
|
|
4485
|
+
async initPermission() {
|
|
4486
|
+
let e = await _api.apaas.designerCommon.getUserInfo();
|
|
4487
|
+
Object.assign(this.userPermissions, {
|
|
4488
|
+
...e,
|
|
4489
|
+
permissions: Object.fromEntries((e?.permissions ?? []).map((e) => [e, !0]))
|
|
4490
|
+
});
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
});
|
|
4494
|
+
//#endregion
|
|
4495
|
+
//#region src/create-app-vue.ts
|
|
4496
|
+
async function Ns(e) {
|
|
4497
|
+
e.provide(Fi, e), xo(e), wo(e);
|
|
4498
|
+
}
|
|
4499
|
+
//#endregion
|
|
4500
|
+
//#region src/setup-app.ts
|
|
4501
|
+
async function Ps(e) {
|
|
4502
|
+
await Bo(e), oe.use(Ta), await _gct.init();
|
|
4503
|
+
let t = U();
|
|
4504
|
+
t && await Os().getUserInfoAction(t), await Ds().init();
|
|
4505
|
+
}
|
|
4506
|
+
//#endregion
|
|
4507
|
+
//#region src/index.ts
|
|
4508
|
+
function Fs() {
|
|
4509
|
+
if (window._gct) {
|
|
4510
|
+
console.warn("核心包已安装,请勿重复安装!");
|
|
4511
|
+
return;
|
|
4512
|
+
}
|
|
4513
|
+
console.info("核心包安装成功!"), window._gct = new To(), Object.defineProperty(window._gct, "api", { get() {
|
|
4514
|
+
return se;
|
|
4515
|
+
} }), Object.defineProperty(window, "_api", { get() {
|
|
4516
|
+
return se;
|
|
4517
|
+
} });
|
|
4518
|
+
}
|
|
4519
|
+
Fs();
|
|
4520
|
+
//#endregion
|
|
4521
|
+
var Is = pa.sha256;
|
|
4522
|
+
export { Xn as AGLINE_ENUMS, Wn as APP_DARK_MODE_KEY_, Fi as APP_INST, Gn as APP_LOCAL_CACHE_KEY, mo as APP_PREVIEW_PATH_REG, po as APP_PROD_PATH_REG, fo as APP_RUN_PATH_REG, Kn as APP_SESSION_CACHE_KEY, vi as ARRAY_TYPE, Tt as ASSIGNMENTSTRATEGY_ENUM, Re as AggTypes, kn as AppPublishStateEnum, gi as BOOLEAN_TYPE, An as BasicAction, T as BindCmpStyleEnum, E as BindCmpStyleTypeEnum, ir as BizServiceEnum, ot as BorderStyle, xr as BpmnNodeTypeEnum, Jr as BuiltOperators, At as BuiltinType, Gt as ButtonColorTheme, Wt as ButtonColorType, Zt as ButtonGroupType, Qn as ButtonOpeEnum, qt as ButtonSize, Kt as ButtonStyle, Yt as ButtonType, yr as ButtonTypeEnum, Jt as ButtonTypeGroup, Xt as ButtonType_vant, qe as CARD_TRIGGER_ENUM, yt as COLUMNS_TYPE, Nt as CURRENCY_ENUM, It as CURRENCY_LANG_ENUM, ei as CUSTOM_LANGUAGE, ti as CUSTOM_THEME, Jn as CacheTypeEnum, Ot as CategoryTypeEnum, vn as Ch_BindCmpStyleEnum, xe as ContentEnum, rr as ContentTypeEnum, B as CoreConst, Ne as CreateType, D as CustomAction, qn as DESIGNER_SESSION_CACHE_KEY, ho as DEV_SINGLE_PATH_REG, Tr as DataSetReturnTypeEnum, an as DatasourceTypeEnum, jt as DateRangeEnums, jn as DefaultActions, Oi as DefaultDateTypeConst, Et as Dependency_ENUM, Uo as DeployModeEnum, sr as DeviceParamsTypeEnum, Ir as DictionaryUtil, Ut as DisplayEnums, mt as DisplayTagTypeEnum, gt as DisplayType, Ei as EditorRegisterConst, Er as EntityFormulaReturnTypeEnum, Xe as EntityModelCategoryEnum, Ze as EntityModelTypeEnum, _o as EnvironmentManager, co as EnvironmentType, zo as ErrorHandler, Ro as ErrorStrategyFactory, M as ErrorTypeEnum, lt as EventCategory, vr as ExamineAndApproveStateEnum, er as ExceptionEnum, I as ExpressionModeEnum, L as ExpressionTabEnum, C as FIELD_TYPE, ke as FIELD_TYPE_BASIC, Oe as FIELD_TYPE_CATEGORY, Ae as FIELD_TYPE_LOGIC, je as FIELD_TYPE_TRACE, ci as FUNC_KEYS, xi as FUN_BOL_TYPE, yi as FUN_NUM_TYPE, Si as FUN_OBJ_OR_ARR_TYPE, bi as FUN_STR_TYPE, Qe as FieldDefaultValueTypeEnum, Le as FieldIconMap, $e as FieldSysVarDefaultValueEnum, Me as FieldTypeToJs, w as FormComponents, Di as FormContainerType, En as FormDesignEnum, Ge as GENDER_TYPE, vt as GLOBAL_TYPE, _t as GLOBAL_VAR_TYPE, To as GctGlobal, kr as GctMqttTopsEnum, Ar as GlobalParamEnum, so as GlobalStoreUtil, uo as HOST_REG, bt as INNER_EVENT, lo as IP_REG, Dr as IdentifierAddon, Vt as KeyMode, Ho as KickRuleEnum, In as LOCALE_KEY, Ln as LOCALE_LIST_KEY, Rn as LOCAL_I18N_TRANSLATE, Hn as LOCK_INFO_KEY, Rr as LinkedList, Lr as LinkedNode, rn as ListTreeSearchTypeEnum, bo as LocaleUtil, Y as LoginSortTypeEnum, X as LoginTypeEnum, Yo as MENU_COLLAPSED_WIDTH, Xo as MENU_WIDTH_RANGE, K as MQTT_CLIENT_EVENT, G as MQTT_DEFAULT_CONNECT_OPTIONS, Un as MULTIPLE_TABS_KEY, Ie as MaterialEnum, ur as MenuModeEnum, dr as MenuSplitTyeEnum, Pe as MenuType, cr as MenuTypeEnum, He as MessageType, pr as MixSidebarTriggerEnum, ea as Modal, Wr as ModeFnMap, qr as ModeTabDict, Gr as ModeTabMap, ki as ModelTypeOptions, vo as MqttClient, q as MqttConnectionStatus, yo as MqttManager, mi as NUMBER_TYPE, Li as Namespace, ze as NodesConfigTypeEnum, _i as OBJECT_TYPE, Ko as OTHER_LOGIN_KEYS, Fe as OpenMode, R as OperatorTypeEnum, br as OpinionTypeEnum, ta as OverlayContainer, Ni as PLUGIN_BASE_URL, Vn as PROJ_CFG_KEY, mr as PageEnum, it as PanelEnum, Vo as PassRule, rt as PatternEnum, Te as PermissionModeEnum, We as PersonalCenterType, kt as Platform, Mn as PlatformSettingActions, N as PlatformSettingEnum, ar as PlatformType, Sr as PluginModeEnum, ra as PluginStaticResource, at as Postion, zt as PrintModeEnums, On as PrintResourceEnum, Dn as PrintTypeEnum, F as ProcessStatusEnum, ht as ProgressTypeEnum, De as ProjectName, ut as PropGroup, Jo as RELATION_FIELDS, Ci as RETURN_TYPE_MAP, Bn as ROLES_KEY, $n as RdoButtonOpeEnum, nr as RequestEnum, cn as ResetRuleType, tr as ResultEnum, wr as ReturnTypeEnum, Kr as ReturnTypeMaps, hr as RoleEnum, Ee as RouterTransitionEnum, Lt as RowSelectionTypeEnums, ln as SCOPE, Tn as SCOPEINFO, j as SEARCH_SERVICE, Je as SHOW_FIELDTYPES, ye as SIDE_BAR_MINI_WIDTH, be as SIDE_BAR_SHOW_TIT_MINI_WIDTH, hi as STRING_TYPE, Mi as STYLE_NAMESPACE_TAG, xt as SUB_TABLE_EDIT_MODE, Ct as SUB_TABLE_OPE_EVENT_TYPE, St as SUB_TABLE_OPE_EVENT_TYPE_INLINE, Go as SYSTEM_LOGIN_KEYS, li as SYSTEM_VAR_PREFIX, un as SearchComponents, Mt as SelectPickerEnums, we as SessionTimeoutProcessingEnum, Ce as SettingButtonPositionEnum, sn as SignatureStyleEnum, on as SignatureTypeEnum, gr as SizeEnum, Rt as StatisticalMethodEnums, dt as StyleGroup, Pn as TENANT_KEY, go as TEST_SINGLE_PATH_REG, Zo as THEME_COLORS, Pt as TIMETYPE_ENUM, Ft as TIMETYPE_LANG_ENUM, Nn as TIMEZONE_KEY, Ke as TODO_TYPE, Fn as TOKEN_KEY, tn as TableEditingMethodEnum, $t as TableSearchTypeEnum, en as TableTypeEnum, pt as TagTypeEnum, st as TextAlign, ct as TextDecoration, Se as ThemeEnum, Dt as ToolkitEnum, fr as TopMenuAlignEnum, Ht as TransactionMode, Na as TreeHelper, lr as TriggerEnum, nt as TypeEnum, zn as USER_INFO_KEY, Ve as UniqueConstraintType, P as UploadTypeEnum, Ga as Uploader, Ye as UserServiceType, wt as VERIFICATIONCONDITIONS_TYPE, Pi as VITE_MINIO_PATH, Cr as VarTypeEnum, Qo as WATERMARK_INIT_DATA, nn as WidgetInScopeEnum, wi as WinMsgTypeEnum, Ue as WorkbenchType, ba as afterFieldSet, ya as afterValueSet, Zr as allOperator, oi as biBackFunctionGroup, si as biBackFunctionMap, bn as bindCmpStyleMap, Xr as booleanOperator, pi as booleanTypes, Br as buildItemRules, _a as buildShortUUID, ha as buildUUID, xn as buttonShowType, wa as cacheFnReturn, Fa as calcFontStyle, Pa as calcStyle, _r as ch_ProcessStatusMap, Ca as computedEx, fn as controlConfigEnum, No as copyTextToClipboard, Ns as createAppVue, Mr as cssLoader, Ja as dataURLtoBlob, la as deepMerge, Za as downloadByBase64, $a as downloadByData, Xa as downloadByOnlineUrl, eo as downloadByUrl, xa as emitFieldSet, mn as fixedAlignENUM, ni as functionGroup, ri as functionMap, Nr as gctMemoizeAsync, Ia as genUrl, Aa as getDeviceFingerprint, qo as getLoginTypeOptions, ja as getMobileBrowserFingerprint, $r as getOperatorList, Ma as getPageIdentification, aa as getTenant, ca as getTimezone, U as getToken, Va as hasEmojiAndSpecStr, Ha as hasEmojiAndSpecStr1, di as innerVarIds, ui as innerVarList, zr as insertCustomCssToHead, Ta as interceptors, ii as ipaasBackFunctionGroup, ai as ipaasBackFunctionMap, jo as isDef, sa as isMobile, ro as isMultipleOperator, Ra as isSortFiled, Hr as mitt, Cn as mobileSearchListByFieldType, Ur as modelLoader, Yn as notSingleArr, or as nullDisplayEnum, Yr as numberOperator, fi as numberTypes, La as openWindow, Bt as openWindowEnums, Qt as operateSysEnums, Ti as operator2FuncMap, wn as padSearchListByFieldType, tt as pageLayoutModeEnum, da as parseMatrixParams, Sa as parseValueUnit, ao as permission, Zn as presetColor, W as randomUUID, Qr as returnBolOperator, k as screenEnum, A as screenMap, et as scriptTypeEnum, Sn as searchListByFieldType, Be as selectionTypeEnums, oa as setTenant, ia as setToken, Ps as setupApp, Bo as setupErrorHandler, xo as setupI18n, Is as sha256, O as sizeEnum, to as sizeParser, _n as sortTypeEnum, pn as statisticalMethodEnum, ua as stringifyMatrixParams, z as t, hn as tableColumnTypeEnum, dn as tableColumnWidthEnum, gn as tabsTypeENUM, ft as tagEnum, Ai as timeReg, yn as transformBindCmp2CmpType, no as typeParser, Qa as uploaderFiles, ji as urlReg, Ya as urlToBase64, Eo as useAppInst, Mo as useCopyToClipboard, Oo as useIFrameProps, Do as useModal, Ri as useNamespace, Ms as usePermissionStore, Ds as usePlatformConfigStore, js as useTenantStore, za as useUUid, Os as useUserStore, Ao as useWuJieBus, ko as useWuJieProps, va as uuid2, Ba as validateEmoji, Wa as validateIsModelName, Ua as validateModelName, Or as zeroWidthSpace };
|