@gct-paas/core 0.1.6-dev.13 → 0.1.6-dev.15
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 +2 -2
- package/dist/{redirect-index-Cx5376o8.js → redirect-index-55CawmNv.js} +1 -1
- package/es/enums/app-designer/index.d.ts +15 -3
- package/es/enums/app-designer/index.mjs +18 -4
- package/es/enums/developer-center/integration.d.ts +6 -0
- package/es/enums/developer-center/integration.mjs +8 -1
- package/es/enums/index.d.ts +11 -0
- package/es/enums/index.mjs +13 -1
- package/es/enums/pageEnum.d.ts +2 -1
- package/es/enums/pageEnum.mjs +1 -0
- package/es/enums/process.d.ts +5 -0
- package/es/enums/process.mjs +9 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useDebouncePromise.d.ts +14 -0
- package/es/hooks/useDebouncePromise.mjs +56 -0
- package/es/index.mjs +9 -6
- package/es/interface/i-dictionary/i-dictionary-item.d.ts +80 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +3 -0
- package/es/interface/index.d.ts +1 -1
- package/es/modules/env-manager/env-manager.const.d.ts +2 -0
- package/es/modules/env-manager/env-manager.const.mjs +4 -2
- package/es/modules/env-manager/env-manager.d.ts +4 -0
- package/es/modules/env-manager/env-manager.interface.d.ts +3 -1
- package/es/modules/env-manager/env-manager.mjs +7 -1
- package/es/store/global-store.mjs +6 -0
- package/es/utils/deviceFingerprint.mjs +5 -1
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.mjs +1 -0
- package/es/utils/select-user-utils.d.ts +50 -0
- package/es/utils/select-user-utils.mjs +129 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core v0.1.6-dev.
|
|
1
|
+
/*! @gct-paas/core v0.1.6-dev.14 */
|
|
2
2
|
import{createElementBlock as e,defineComponent as r,openBlock as t,unref as a}from"vue";import{useRouter as p}from"vue-router";var o=/* @__PURE__ */r({__name:"redirect-index",setup(r){const{currentRoute:o,replace:i}=p(),{params:s,query:u}=a(o),{path:m,_redirect_type:n="path"}=s;Reflect.deleteProperty(s,"_redirect_type"),Reflect.deleteProperty(s,"path");const c=Array.isArray(m)?m.join("/"):m;return i("name"===n?{name:c,query:u,params:JSON.parse(s._origin_params??"{}")}:{path:c.startsWith("/")?c:"/"+c,query:u}),(r,a)=>(t(),e("div"))}});export{o as default};
|
|
@@ -75,9 +75,7 @@ export declare enum FieldSysVarDefaultValueEnum {
|
|
|
75
75
|
CURRENT_ORG = "CURRENT_ORG"
|
|
76
76
|
}
|
|
77
77
|
export declare enum scriptTypeEnum {
|
|
78
|
-
/**
|
|
79
|
-
* 事件脚本
|
|
80
|
-
*/
|
|
78
|
+
/** 事件脚本 */
|
|
81
79
|
EVENT = "event",
|
|
82
80
|
/**模型业务服务 */
|
|
83
81
|
BUSINESSSERVICE = "businessService",
|
|
@@ -120,3 +118,17 @@ export declare enum ModelFieldEnum {
|
|
|
120
118
|
SEX = "\u6027\u522B",
|
|
121
119
|
CUSTOM = "custom"
|
|
122
120
|
}
|
|
121
|
+
export declare enum ScriptTypeEnum {
|
|
122
|
+
/** 公共方法 */
|
|
123
|
+
GLOBAL_METHOD = "global_method_module",
|
|
124
|
+
/** 脚本 */
|
|
125
|
+
DEFAULT = "script_module",
|
|
126
|
+
/** 编排 */
|
|
127
|
+
ORCHESTRATION = "so_module"
|
|
128
|
+
}
|
|
129
|
+
export declare enum EventsTypeEnum {
|
|
130
|
+
/** 服务编排 */
|
|
131
|
+
SO_SERVICE = "SO_SERVICE",
|
|
132
|
+
/** 服务脚本 */
|
|
133
|
+
SCRIPT_SERVICE = "SCRIPT_SERVICE"
|
|
134
|
+
}
|
|
@@ -90,9 +90,7 @@ var FieldSysVarDefaultValueEnum = /* @__PURE__ */ function(FieldSysVarDefaultVal
|
|
|
90
90
|
return FieldSysVarDefaultValueEnum;
|
|
91
91
|
}({});
|
|
92
92
|
var scriptTypeEnum = /* @__PURE__ */ function(scriptTypeEnum) {
|
|
93
|
-
/**
|
|
94
|
-
* 事件脚本
|
|
95
|
-
*/
|
|
93
|
+
/** 事件脚本 */
|
|
96
94
|
scriptTypeEnum["EVENT"] = "event";
|
|
97
95
|
/**模型业务服务 */
|
|
98
96
|
scriptTypeEnum["BUSINESSSERVICE"] = "businessService";
|
|
@@ -141,5 +139,21 @@ var ModelFieldEnum = /* @__PURE__ */ function(ModelFieldEnum) {
|
|
|
141
139
|
ModelFieldEnum["CUSTOM"] = "custom";
|
|
142
140
|
return ModelFieldEnum;
|
|
143
141
|
}({});
|
|
142
|
+
var ScriptTypeEnum = /* @__PURE__ */ function(ScriptTypeEnum) {
|
|
143
|
+
/** 公共方法 */
|
|
144
|
+
ScriptTypeEnum["GLOBAL_METHOD"] = "global_method_module";
|
|
145
|
+
/** 脚本 */
|
|
146
|
+
ScriptTypeEnum["DEFAULT"] = "script_module";
|
|
147
|
+
/** 编排 */
|
|
148
|
+
ScriptTypeEnum["ORCHESTRATION"] = "so_module";
|
|
149
|
+
return ScriptTypeEnum;
|
|
150
|
+
}({});
|
|
151
|
+
var EventsTypeEnum = /* @__PURE__ */ function(EventsTypeEnum) {
|
|
152
|
+
/** 服务编排 */
|
|
153
|
+
EventsTypeEnum["SO_SERVICE"] = "SO_SERVICE";
|
|
154
|
+
/** 服务脚本 */
|
|
155
|
+
EventsTypeEnum["SCRIPT_SERVICE"] = "SCRIPT_SERVICE";
|
|
156
|
+
return EventsTypeEnum;
|
|
157
|
+
}({});
|
|
144
158
|
//#endregion
|
|
145
|
-
export { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, ModelFieldEnum, PatternEnum, ResetConditionEnum, SHOW_FIELDTYPES, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum };
|
|
159
|
+
export { EntityModelCategoryEnum, EntityModelTypeEnum, EventsTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, ModelFieldEnum, PatternEnum, ResetConditionEnum, SHOW_FIELDTYPES, ScriptTypeEnum, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum };
|
|
@@ -4,5 +4,12 @@ var PrintResourceEnum = /* @__PURE__ */ function(PrintResourceEnum) {
|
|
|
4
4
|
PrintResourceEnum["INTERNET_PRINT"] = "INTERNET_PRINT";
|
|
5
5
|
return PrintResourceEnum;
|
|
6
6
|
}({});
|
|
7
|
+
var PrintFormatEnum = /* @__PURE__ */ function(PrintFormatEnum) {
|
|
8
|
+
PrintFormatEnum["Zpl"] = "zpl";
|
|
9
|
+
PrintFormatEnum["String"] = "string";
|
|
10
|
+
PrintFormatEnum["Png"] = "png";
|
|
11
|
+
PrintFormatEnum["Btw"] = "btw";
|
|
12
|
+
return PrintFormatEnum;
|
|
13
|
+
}({});
|
|
7
14
|
//#endregion
|
|
8
|
-
export { PrintResourceEnum };
|
|
15
|
+
export { PrintFormatEnum, PrintResourceEnum };
|
package/es/enums/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './sizeEnum';
|
|
|
17
17
|
export * from './processEnum';
|
|
18
18
|
export * from './plugin-enum';
|
|
19
19
|
export * from './expressionEnum';
|
|
20
|
+
export * from './process';
|
|
20
21
|
/**mqtt主题枚举*/
|
|
21
22
|
export declare enum GctMqttTopsEnum {
|
|
22
23
|
/**mqtt电子表单 编辑 遗嘱消息解锁使用 */
|
|
@@ -33,3 +34,13 @@ export declare enum GlobalParamEnum {
|
|
|
33
34
|
*/
|
|
34
35
|
SELECT_ID = "$VAR_GCT_SELECT_ID"
|
|
35
36
|
}
|
|
37
|
+
export declare enum PageTypeEnum {
|
|
38
|
+
/** WEB */
|
|
39
|
+
WEB = "web_module",
|
|
40
|
+
/** MOBILE */
|
|
41
|
+
MOBILE = "mobile_module",
|
|
42
|
+
/** PAD */
|
|
43
|
+
PAD = "pad_module",
|
|
44
|
+
/** 统计 */
|
|
45
|
+
STATISTICS = 8
|
|
46
|
+
}
|
package/es/enums/index.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import "./sizeEnum.mjs";
|
|
|
22
22
|
import "./processEnum.mjs";
|
|
23
23
|
import "./plugin-enum.mjs";
|
|
24
24
|
import "./expressionEnum.mjs";
|
|
25
|
+
import "./process.mjs";
|
|
25
26
|
//#region src/enums/index.ts
|
|
26
27
|
/**mqtt主题枚举*/
|
|
27
28
|
var GctMqttTopsEnum = /* @__PURE__ */ function(GctMqttTopsEnum) {
|
|
@@ -41,5 +42,16 @@ var GlobalParamEnum = /* @__PURE__ */ function(GlobalParamEnum) {
|
|
|
41
42
|
GlobalParamEnum["SELECT_ID"] = "$VAR_GCT_SELECT_ID";
|
|
42
43
|
return GlobalParamEnum;
|
|
43
44
|
}({});
|
|
45
|
+
var PageTypeEnum = /* @__PURE__ */ function(PageTypeEnum) {
|
|
46
|
+
/** WEB */
|
|
47
|
+
PageTypeEnum["WEB"] = "web_module";
|
|
48
|
+
/** MOBILE */
|
|
49
|
+
PageTypeEnum["MOBILE"] = "mobile_module";
|
|
50
|
+
/** PAD */
|
|
51
|
+
PageTypeEnum["PAD"] = "pad_module";
|
|
52
|
+
/** 统计 */
|
|
53
|
+
PageTypeEnum[PageTypeEnum["STATISTICS"] = 8] = "STATISTICS";
|
|
54
|
+
return PageTypeEnum;
|
|
55
|
+
}({});
|
|
44
56
|
//#endregion
|
|
45
|
-
export { GctMqttTopsEnum, GlobalParamEnum };
|
|
57
|
+
export { GctMqttTopsEnum, GlobalParamEnum, PageTypeEnum };
|
package/es/enums/pageEnum.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export declare enum PageEnum {
|
|
|
7
7
|
MESSAGE_CENTER = "/message",
|
|
8
8
|
ERROR_PAGE = "/exception",
|
|
9
9
|
ERROR_LOG_PAGE = "/error-log/list",
|
|
10
|
-
USER_CENTER_PWD = "/user-center/password"
|
|
10
|
+
USER_CENTER_PWD = "/user-center/password",
|
|
11
|
+
USER_CENTER_LOGIN = "/user-center/login-history"
|
|
11
12
|
}
|
package/es/enums/pageEnum.mjs
CHANGED
|
@@ -9,6 +9,7 @@ var PageEnum = /* @__PURE__ */ function(PageEnum) {
|
|
|
9
9
|
PageEnum["ERROR_PAGE"] = "/exception";
|
|
10
10
|
PageEnum["ERROR_LOG_PAGE"] = "/error-log/list";
|
|
11
11
|
PageEnum["USER_CENTER_PWD"] = "/user-center/password";
|
|
12
|
+
PageEnum["USER_CENTER_LOGIN"] = "/user-center/login-history";
|
|
12
13
|
return PageEnum;
|
|
13
14
|
}({});
|
|
14
15
|
//#endregion
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { useIFrameProps, useWuJieBus, useWuJieProps, } from './use-sub-app-utils
|
|
|
4
4
|
export { copyTextToClipboard, isDef, useCopyToClipboard, } from './useCopyToClipboard';
|
|
5
5
|
export { transformUrl, fileUrlParser } from './useFile';
|
|
6
6
|
export { parentObserver, approvalObserver } from './useObserver';
|
|
7
|
+
export { useDebouncePromise } from './useDebouncePromise';
|
package/es/hooks/index.mjs
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Nullable<T> = T | null;
|
|
2
|
+
/** 原始提交函数签名 */
|
|
3
|
+
export type SubmitFn<T> = () => Promise<T>;
|
|
4
|
+
/**
|
|
5
|
+
* 防抖 + Promise 聚合 + 唯一请求锁 Hook
|
|
6
|
+
* @param submitFn 回调方法
|
|
7
|
+
* @param wait 防抖等待毫秒,默认 500
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDebouncePromise<T>(submitFn: SubmitFn<Nullable<T>>, wait?: number): {
|
|
10
|
+
isSubmitting: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
run: () => Promise<Nullable<T>>;
|
|
12
|
+
cancel: () => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { onBeforeUnmount, ref } from "vue";
|
|
2
|
+
//#region src/hooks/useDebouncePromise.ts
|
|
3
|
+
/**
|
|
4
|
+
* 防抖 + Promise 聚合 + 唯一请求锁 Hook
|
|
5
|
+
* @param submitFn 回调方法
|
|
6
|
+
* @param wait 防抖等待毫秒,默认 500
|
|
7
|
+
*/
|
|
8
|
+
function useDebouncePromise(submitFn, wait = 500) {
|
|
9
|
+
const isSubmitting = ref(false);
|
|
10
|
+
let timer = null;
|
|
11
|
+
let inFlight = false;
|
|
12
|
+
let lastPromise = null;
|
|
13
|
+
let pendingResolvers = [];
|
|
14
|
+
function run() {
|
|
15
|
+
return new Promise((resolve) => {
|
|
16
|
+
pendingResolvers.push(resolve);
|
|
17
|
+
if (timer) clearTimeout(timer);
|
|
18
|
+
timer = setTimeout(async () => {
|
|
19
|
+
timer = null;
|
|
20
|
+
if (inFlight && lastPromise) try {
|
|
21
|
+
await lastPromise;
|
|
22
|
+
} catch {
|
|
23
|
+
console.error("lastPromise error");
|
|
24
|
+
}
|
|
25
|
+
inFlight = true;
|
|
26
|
+
lastPromise = submitFn().finally(() => {
|
|
27
|
+
inFlight = false;
|
|
28
|
+
});
|
|
29
|
+
try {
|
|
30
|
+
isSubmitting.value = true;
|
|
31
|
+
const res = await lastPromise;
|
|
32
|
+
pendingResolvers.forEach((r) => r(res));
|
|
33
|
+
} catch {
|
|
34
|
+
pendingResolvers.forEach((r) => r(null));
|
|
35
|
+
} finally {
|
|
36
|
+
pendingResolvers = [];
|
|
37
|
+
isSubmitting.value = false;
|
|
38
|
+
}
|
|
39
|
+
}, wait);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function cancel() {
|
|
43
|
+
if (timer) clearTimeout(timer);
|
|
44
|
+
pendingResolvers.forEach((r) => r(null));
|
|
45
|
+
pendingResolvers = [];
|
|
46
|
+
timer = null;
|
|
47
|
+
}
|
|
48
|
+
onBeforeUnmount(cancel);
|
|
49
|
+
return {
|
|
50
|
+
isSubmitting,
|
|
51
|
+
run,
|
|
52
|
+
cancel
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { useDebouncePromise };
|
package/es/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AggTypes, CARD_TRIGGER_ENUM, ContentEnum, CreateType, FIELD_TYPE, FIELD_TYPE_BASIC, FIELD_TYPE_CATEGORY, FIELD_TYPE_LOGIC, FIELD_TYPE_TRACE, FieldIconMap, FieldTypeToJs, GENDER_TYPE, MaterialEnum, MenuType, MessageType, NodesConfigTypeEnum, OpenMode, PermissionModeEnum, PersonalCenterType, ProjectName, RouterTransitionEnum, SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH, SYSTEM_FIELD_KEY, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, TODO_TYPE, ThemeEnum, UniqueConstraintType, WorkbenchType, selectionTypeEnums } from "./enums/appEnum.mjs";
|
|
2
|
-
import { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, ModelFieldEnum, PatternEnum, ResetConditionEnum, SHOW_FIELDTYPES, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum } from "./enums/app-designer/index.mjs";
|
|
2
|
+
import { EntityModelCategoryEnum, EntityModelTypeEnum, EventsTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, ModelFieldEnum, PatternEnum, ResetConditionEnum, SHOW_FIELDTYPES, ScriptTypeEnum, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum } from "./enums/app-designer/index.mjs";
|
|
3
3
|
import { ASSIGNMENTSTRATEGY_ENUM, BorderStyle, COLUMNS_TYPE, Dependency_ENUM, DisplayTagTypeEnum, DisplayType, EventCategory, GLOBAL_TYPE, GLOBAL_VAR_TYPE, INNER_EVENT, PanelEnum, Postion, ProgressTypeEnum, PropGroup, SUB_TABLE_EDIT_MODE, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_OPE_EVENT_TYPE_INLINE, StyleGroup, TagTypeEnum, TextAlign, TextDecoration, VERIFICATIONCONDITIONS_TYPE, tagEnum } from "./enums/page-designer/panel.mjs";
|
|
4
4
|
import { ToolkitEnum } from "./enums/page-designer/toolkit.mjs";
|
|
5
5
|
import { BuiltinType, ButtonColorTheme, ButtonColorType, ButtonGroupType, ButtonSize, ButtonStyle, ButtonType, ButtonTypeGroup, ButtonType_vant, CURRENCY_ENUM, CURRENCY_LANG_ENUM, CategoryTypeEnum, DatasourceTypeEnum, DateRangeEnums, DisplayEnums, KeyMode, ListTreeSearchTypeEnum, Platform, PrintModeEnums, ResetRuleType, RowSelectionTypeEnums, SelectPickerEnums, SignatureStyleEnum, SignatureTypeEnum, StatisticalMethodEnums, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TransactionMode, WidgetInScopeEnum, openWindowEnums, operateSysEnums } from "./enums/page-designer/widget.mjs";
|
|
6
6
|
import { BindCmpStyleEnum, BindCmpStyleTypeEnum, Ch_BindCmpStyleEnum, FormComponents, SCOPE, SCOPEINFO, SearchComponents, bindCmpStyleMap, buttonShowType, controlConfigEnum, fixedAlignENUM, mobileSearchListByFieldType, padSearchListByFieldType, searchListByFieldType, sortTypeEnum, statisticalMethodEnum, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, transformBindCmp2CmpType } from "./enums/page-designer/designer.mjs";
|
|
7
7
|
import { FormDesignEnum, PrintTypeEnum } from "./enums/page-designer/layout.mjs";
|
|
8
|
-
import { PrintResourceEnum } from "./enums/developer-center/integration.mjs";
|
|
8
|
+
import { PrintFormatEnum, PrintResourceEnum } from "./enums/developer-center/integration.mjs";
|
|
9
9
|
import { AppPublishStateEnum } from "./enums/appStateEnum.mjs";
|
|
10
10
|
import { BasicAction, CustomAction, DefaultActions, PlatformSettingActions } from "./enums/authActionEnum.mjs";
|
|
11
11
|
import { screenEnum, screenMap, sizeEnum } from "./enums/breakpointEnum.mjs";
|
|
@@ -21,7 +21,8 @@ import { SizeEnum, UploadTypeEnum, statusEnum } from "./enums/sizeEnum.mjs";
|
|
|
21
21
|
import { BpmnNodeTypeEnum, ButtonTypeEnum, ExamineAndApproveStateEnum, OpinionTypeEnum, ProcessStatusEnum, ch_ProcessStatusMap } from "./enums/processEnum.mjs";
|
|
22
22
|
import { PluginModeEnum } from "./enums/plugin-enum.mjs";
|
|
23
23
|
import { DataSetReturnTypeEnum, EntityFormulaReturnTypeEnum, ExpressionModeEnum, ExpressionTabEnum, IdentifierAddon, OperatorTypeEnum, ReturnTypeEnum, VarTypeEnum, zeroWidthSpace } from "./enums/expressionEnum.mjs";
|
|
24
|
-
import {
|
|
24
|
+
import { ProcessTypeEnum } from "./enums/process.mjs";
|
|
25
|
+
import { GctMqttTopsEnum, GlobalParamEnum, PageTypeEnum } from "./enums/index.mjs";
|
|
25
26
|
import { cssLoader } from "./utils/css-loader/css-loader.mjs";
|
|
26
27
|
import { gctMemoizeAsync } from "./utils/cache-adapter/cache-adapter.mjs";
|
|
27
28
|
import { DictionaryUtil } from "./utils/dictionary/dictionary.mjs";
|
|
@@ -57,7 +58,7 @@ import { createWhiteImageWithText, deepMerge, getTenant, getToken, isMobile, par
|
|
|
57
58
|
import { buildShortUUID, buildUUID, sha256, uuid2 } from "./utils/uuid/uuid.mjs";
|
|
58
59
|
import { afterFieldSet, afterValueSet, cacheFnReturn, computedEx, emitFieldSet, parseValueUnit } from "./utils/value-helper/value-helper.mjs";
|
|
59
60
|
import { interceptors } from "./utils/axios/interceptors.mjs";
|
|
60
|
-
import { getDeviceFingerprint, getMobileBrowserFingerprint, getPageIdentification } from "./utils/deviceFingerprint.mjs";
|
|
61
|
+
import { getBrowserFingerprint, getDeviceFingerprint, getMobileBrowserFingerprint, getPageIdentification } from "./utils/deviceFingerprint.mjs";
|
|
61
62
|
import { TreeHelper } from "./utils/treeHelper/treeHelper.mjs";
|
|
62
63
|
import { calcFontStyle, calcStyle, calcStylePX } from "./utils/style/index.mjs";
|
|
63
64
|
import { deleteAndInsertArr, genUrl, openWindow } from "./utils/util.mjs";
|
|
@@ -74,6 +75,7 @@ import { scriptLoader } from "./utils/script-loader/script-loader.mjs";
|
|
|
74
75
|
import { permission } from "./utils/permission.mjs";
|
|
75
76
|
import { getVueComponentByCode } from "./utils/vue-component-code.mjs";
|
|
76
77
|
import { CategoryModuleEnum, getInterfaceApi } from "./utils/data-prems/const.mjs";
|
|
78
|
+
import { DYN_FORMAT_TYPE_ENUM, DynFormatTypes, dynamicData, filterDynFormatTypes, filterTree, findUniqueNode, highlightName, list2Tree, showDynamicTitle } from "./utils/select-user-utils.mjs";
|
|
77
79
|
import "./utils/index.mjs";
|
|
78
80
|
import { LoginSortTypeEnum, LoginTypeEnum } from "./modules/platform-config/enums/login.enum.mjs";
|
|
79
81
|
import { KickRuleEnum, PassRule } from "./modules/platform-config/enums/platform.enum.mjs";
|
|
@@ -88,7 +90,7 @@ import { globalRefStorage } from "./store/storage-store.mjs";
|
|
|
88
90
|
import { ENV, globalRefSession } from "./store/session-store.mjs";
|
|
89
91
|
import { GlobalStoreUtil } from "./store/index.mjs";
|
|
90
92
|
import { EnvironmentType } from "./modules/env-manager/env-manager.interface.mjs";
|
|
91
|
-
import { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, SANDBOX_PATH_REG, TEST_SINGLE_PATH_REG } from "./modules/env-manager/env-manager.const.mjs";
|
|
93
|
+
import { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, SANDBOX_PATH_REG, SINGLE_PATH_REG, TEST_SINGLE_PATH_REG } from "./modules/env-manager/env-manager.const.mjs";
|
|
92
94
|
import { EnvironmentManager } from "./modules/env-manager/env-manager.mjs";
|
|
93
95
|
import "./modules/env-manager/index.mjs";
|
|
94
96
|
import { MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS } from "./modules/mqtt/constants/mqtt.const.mjs";
|
|
@@ -106,6 +108,7 @@ import { useIFrameProps, useWuJieBus, useWuJieProps } from "./hooks/use-sub-app-
|
|
|
106
108
|
import { copyTextToClipboard, isDef, useCopyToClipboard } from "./hooks/useCopyToClipboard.mjs";
|
|
107
109
|
import { fileUrlParser, transformUrl } from "./hooks/useFile.mjs";
|
|
108
110
|
import { approvalObserver, parentObserver } from "./hooks/useObserver.mjs";
|
|
111
|
+
import { useDebouncePromise } from "./hooks/useDebouncePromise.mjs";
|
|
109
112
|
import "./hooks/index.mjs";
|
|
110
113
|
import { getSeriesList } from "./interface/model-designer/serial.mjs";
|
|
111
114
|
import "./interface/index.mjs";
|
|
@@ -150,4 +153,4 @@ function onInit() {
|
|
|
150
153
|
}
|
|
151
154
|
onInit();
|
|
152
155
|
//#endregion
|
|
153
|
-
export { AGLINE_ENUMS, APP_DARK_MODE_KEY_, APP_INST, APP_LOCAL_CACHE_KEY, APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, APP_SESSION_CACHE_KEY, ARRAY_TYPE, ASSIGNMENTSTRATEGY_ENUM, AggTypes, AppPublishStateEnum, BOOLEAN_TYPE, BasicAction, BindCmpStyleEnum, BindCmpStyleTypeEnum, BizServiceEnum, BorderStyle, BpmnNodeTypeEnum, BuiltOperators, BuiltinType, ButtonColorTheme, ButtonColorType, ButtonGroupType, ButtonOpeEnum, ButtonSize, ButtonStyle, ButtonType, ButtonTypeEnum, ButtonTypeGroup, ButtonType_vant, CARD_TRIGGER_ENUM, COLUMNS_TYPE, CURRENCY_ENUM, CURRENCY_LANG_ENUM, CUSTOM_LANGUAGE, CUSTOM_THEME, CacheTypeEnum, CategoryModuleEnum, CategoryTypeEnum, Ch_BindCmpStyleEnum, ContentEnum, ContentTypeEnum, CoreConst, CreateType, CustomAction, DEFAULT_MQTT_INSTANCE_ID, DESIGNER_SESSION_CACHE_KEY, DEV_SINGLE_PATH_REG, DataSetReturnTypeEnum, DatasourceTypeEnum, DateRangeEnums, DefaultActions, DefaultDateTypeConst, Dependency_ENUM, DeployModeEnum, DeviceParamsTypeEnum, DictionaryUtil, DisplayEnums, DisplayTagTypeEnum, DisplayType, ENV, EditorRegisterConst, EntityFormulaReturnTypeEnum, EntityModelCategoryEnum, EntityModelTypeEnum, EnvironmentManager, EnvironmentType, ErrorHandler, ErrorStrategyFactory, ErrorTypeEnum, EventCategory, ExamineAndApproveStateEnum, ExceptionEnum, ExpressionModeEnum, ExpressionTabEnum, FIELD_TYPE, FIELD_TYPE_BASIC, FIELD_TYPE_CATEGORY, FIELD_TYPE_LOGIC, FIELD_TYPE_TRACE, FUNC_KEYS, FUN_BOL_TYPE, FUN_NUM_TYPE, FUN_OBJ_OR_ARR_TYPE, FUN_STR_TYPE, FieldDefaultValueTypeEnum, FieldIconMap, FieldSysVarDefaultValueEnum, FieldTypeToJs, FormComponents, FormContainerType, FormDesignEnum, GENDER_TYPE, GLOBAL_TYPE, GLOBAL_VAR_TYPE, GctGlobal, GctMqttTopsEnum, GlobalParamEnum, GlobalStoreUtil, HOST_REG, INNER_EVENT, IP_REG, IdentifierAddon, KeyMode, KickRuleEnum, KitPkgUtil, LOCALE_KEY, LOCALE_LIST_KEY, LOCAL_I18N_TRANSLATE, LOCK_INFO_KEY, LinkedList, LinkedNode, ListTreeSearchTypeEnum, LocaleUtil, LoginSortTypeEnum, LoginTypeEnum, LogoTypeEnum, MENU_COLLAPSED_WIDTH, MENU_WIDTH_RANGE, MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS, MULTIPLE_TABS_KEY, MaterialEnum, MenuModeEnum, MenuSplitTyeEnum, MenuType, MenuTypeEnum, MessageType, MixSidebarTriggerEnum, Modal, ModeFnMap, ModeTabDict, ModeTabMap, ModelFieldEnum, ModelTypeOptions, MqttClient, MqttConnectionStatus, MqttManager, NUMBER_TYPE, Namespace, NodesConfigTypeEnum, OBJECT_TYPE, OTHER_LOGIN_KEYS, OpenMode, OperatorTypeEnum, OpinionTypeEnum, OverlayContainer, OverlayPopoverContainer, PLUGIN_BASE_URL, PROJ_CFG_KEY, PageEnum, PanelEnum, PassRule, PatternEnum, PermissionModeEnum, PersonalCenterType, Platform, PlatformSettingActions, PlatformSettingEnum, PlatformType, PluginModeEnum, PluginPgkUtil, PluginStaticResource, Postion, PrintModeEnums, PrintResourceEnum, PrintTypeEnum, ProcessStatusEnum, ProgressTypeEnum, ProjectName, PropGroup, REDIRECT_NAME, RELATION_FIELDS, RETURN_TYPE_MAP, ROLES_KEY, RdoButtonOpeEnum, RequestEnum, ResetConditionEnum, ResetRuleType, ResultEnum, ReturnTypeEnum, ReturnTypeMaps, RoleEnum, RouterTransitionEnum, RowSelectionTypeEnums, SANDBOX_PATH_REG, SCOPE, SCOPEINFO, SEARCH_SERVICE, SHOW_FIELDTYPES, SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH, STRING_TYPE, STYLE_NAMESPACE_TAG, SUB_TABLE_EDIT_MODE, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_OPE_EVENT_TYPE_INLINE, SYSTEM_FIELD_KEY, SYSTEM_LOGIN_KEYS, SYSTEM_VAR_PREFIX, SearchComponents, SelectPickerEnums, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, SignatureStyleEnum, SignatureTypeEnum, SizeEnum, StatisticalMethodEnums, StyleGroup, TENANT_KEY, TEST_SINGLE_PATH_REG, THEME_COLORS, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TODO_TYPE, TOKEN_KEY, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TagTypeEnum, TextAlign, TextDecoration, TextMeasureUtil, ThemeEnum, TimezoneOptions, ToolkitEnum, TopMenuAlignEnum, TransactionMode, TreeHelper, TriggerEnum, TypeEnum, USER_INFO_KEY, UniqueConstraintType, UploadTypeEnum, Uploader, UserRoleReqEnum, UserServiceType, VERIFICATIONCONDITIONS_TYPE, VITE_MINIO_PATH, VarTypeEnum, WATERMARK_INIT_DATA, WidgetInScopeEnum, WinMsgTypeEnum, WorkBenchTabEnum, WorkbenchType, afterFieldSet, afterValueSet, allOperator, approvalObserver, biBackFunctionGroup, biBackFunctionMap, bindCmpStyleMap, booleanOperator, booleanTypes, buildItemRules, buildShortUUID, buildUUID, buttonShowType, cacheFnReturn, calcFontStyle, calcStyle, calcStylePX, ch_ProcessStatusMap, computedEx, controlConfigEnum, copyTextToClipboard, createAppVue, createWhiteImageWithText, cssLoader, dataURLtoBlob, deepMerge, deleteAndInsertArr, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, emitFieldSet, fileUrlParser, fixedAlignENUM, functionGroup, functionMap, gctMemoizeAsync, genUrl, getDeviceFingerprint, getInterfaceApi, getLoginTypeOptions, getMaxTextWidth, getMinTextWidth, getMobileBrowserFingerprint, getOperatorList, getPageIdentification, getSeriesList, getTenant, getToken, getTotalTextWidth, getVueComponentByCode, globalRefSession, globalRefStorage, hasEmojiAndSpecStr, hasEmojiAndSpecStr1, innerVarIds, innerVarList, insertCustomCssToHead, interceptors, ipaasBackFunctionGroup, ipaasBackFunctionMap, isDef, isMobile, isMultipleOperator, isSortFiled, measureText, measureTexts, mitt, mobileSearchListByFieldType, modelLoader, notSingleArr, nullDisplayEnum, numberOperator, numberTypes, openWindow, openWindowEnums, operateSysEnums, operator2FuncMap, padSearchListByFieldType, pageLayoutModeEnum, parentObserver, parseMatrixParams, parseValueUnit, permission, presetColor, randomUUID, returnBolOperator, screenEnum, screenMap, scriptLoader, scriptTypeEnum, searchListByFieldType, selectionTypeEnums, setTenant, setToken, setupApp, setupErrorHandler, setupI18n, sha256, sizeEnum, sizeParser, sortTypeEnum, statisticalMethodEnum, statusEnum, stringifyMatrixParams, t, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, tagEnum, tenantRef, timeReg, transformBindCmp2CmpType, transformUrl, truncateText, typeParser, uploaderFiles, urlReg, urlToBase64, useAppInst, useCopyToClipboard, useIFrameProps, useModal, useNamespace, usePermissionStore, usePlatformConfigStore, useTenantStore, useUUid, useUserStore, useWuJieBus, useWuJieProps, uuid2, validateEmoji, validateIsModelName, validateModelName, zeroWidthSpace };
|
|
156
|
+
export { AGLINE_ENUMS, APP_DARK_MODE_KEY_, APP_INST, APP_LOCAL_CACHE_KEY, APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, APP_SESSION_CACHE_KEY, ARRAY_TYPE, ASSIGNMENTSTRATEGY_ENUM, AggTypes, AppPublishStateEnum, BOOLEAN_TYPE, BasicAction, BindCmpStyleEnum, BindCmpStyleTypeEnum, BizServiceEnum, BorderStyle, BpmnNodeTypeEnum, BuiltOperators, BuiltinType, ButtonColorTheme, ButtonColorType, ButtonGroupType, ButtonOpeEnum, ButtonSize, ButtonStyle, ButtonType, ButtonTypeEnum, ButtonTypeGroup, ButtonType_vant, CARD_TRIGGER_ENUM, COLUMNS_TYPE, CURRENCY_ENUM, CURRENCY_LANG_ENUM, CUSTOM_LANGUAGE, CUSTOM_THEME, CacheTypeEnum, CategoryModuleEnum, CategoryTypeEnum, Ch_BindCmpStyleEnum, ContentEnum, ContentTypeEnum, CoreConst, CreateType, CustomAction, DEFAULT_MQTT_INSTANCE_ID, DESIGNER_SESSION_CACHE_KEY, DEV_SINGLE_PATH_REG, DYN_FORMAT_TYPE_ENUM, DataSetReturnTypeEnum, DatasourceTypeEnum, DateRangeEnums, DefaultActions, DefaultDateTypeConst, Dependency_ENUM, DeployModeEnum, DeviceParamsTypeEnum, DictionaryUtil, DisplayEnums, DisplayTagTypeEnum, DisplayType, DynFormatTypes, ENV, EditorRegisterConst, EntityFormulaReturnTypeEnum, EntityModelCategoryEnum, EntityModelTypeEnum, EnvironmentManager, EnvironmentType, ErrorHandler, ErrorStrategyFactory, ErrorTypeEnum, EventCategory, EventsTypeEnum, ExamineAndApproveStateEnum, ExceptionEnum, ExpressionModeEnum, ExpressionTabEnum, FIELD_TYPE, FIELD_TYPE_BASIC, FIELD_TYPE_CATEGORY, FIELD_TYPE_LOGIC, FIELD_TYPE_TRACE, FUNC_KEYS, FUN_BOL_TYPE, FUN_NUM_TYPE, FUN_OBJ_OR_ARR_TYPE, FUN_STR_TYPE, FieldDefaultValueTypeEnum, FieldIconMap, FieldSysVarDefaultValueEnum, FieldTypeToJs, FormComponents, FormContainerType, FormDesignEnum, GENDER_TYPE, GLOBAL_TYPE, GLOBAL_VAR_TYPE, GctGlobal, GctMqttTopsEnum, GlobalParamEnum, GlobalStoreUtil, HOST_REG, INNER_EVENT, IP_REG, IdentifierAddon, KeyMode, KickRuleEnum, KitPkgUtil, LOCALE_KEY, LOCALE_LIST_KEY, LOCAL_I18N_TRANSLATE, LOCK_INFO_KEY, LinkedList, LinkedNode, ListTreeSearchTypeEnum, LocaleUtil, LoginSortTypeEnum, LoginTypeEnum, LogoTypeEnum, MENU_COLLAPSED_WIDTH, MENU_WIDTH_RANGE, MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS, MULTIPLE_TABS_KEY, MaterialEnum, MenuModeEnum, MenuSplitTyeEnum, MenuType, MenuTypeEnum, MessageType, MixSidebarTriggerEnum, Modal, ModeFnMap, ModeTabDict, ModeTabMap, ModelFieldEnum, ModelTypeOptions, MqttClient, MqttConnectionStatus, MqttManager, NUMBER_TYPE, Namespace, NodesConfigTypeEnum, OBJECT_TYPE, OTHER_LOGIN_KEYS, OpenMode, OperatorTypeEnum, OpinionTypeEnum, OverlayContainer, OverlayPopoverContainer, PLUGIN_BASE_URL, PROJ_CFG_KEY, PageEnum, PageTypeEnum, PanelEnum, PassRule, PatternEnum, PermissionModeEnum, PersonalCenterType, Platform, PlatformSettingActions, PlatformSettingEnum, PlatformType, PluginModeEnum, PluginPgkUtil, PluginStaticResource, Postion, PrintFormatEnum, PrintModeEnums, PrintResourceEnum, PrintTypeEnum, ProcessStatusEnum, ProcessTypeEnum, ProgressTypeEnum, ProjectName, PropGroup, REDIRECT_NAME, RELATION_FIELDS, RETURN_TYPE_MAP, ROLES_KEY, RdoButtonOpeEnum, RequestEnum, ResetConditionEnum, ResetRuleType, ResultEnum, ReturnTypeEnum, ReturnTypeMaps, RoleEnum, RouterTransitionEnum, RowSelectionTypeEnums, SANDBOX_PATH_REG, SCOPE, SCOPEINFO, SEARCH_SERVICE, SHOW_FIELDTYPES, SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH, SINGLE_PATH_REG, STRING_TYPE, STYLE_NAMESPACE_TAG, SUB_TABLE_EDIT_MODE, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_OPE_EVENT_TYPE_INLINE, SYSTEM_FIELD_KEY, SYSTEM_LOGIN_KEYS, SYSTEM_VAR_PREFIX, ScriptTypeEnum, SearchComponents, SelectPickerEnums, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, SignatureStyleEnum, SignatureTypeEnum, SizeEnum, StatisticalMethodEnums, StyleGroup, TENANT_KEY, TEST_SINGLE_PATH_REG, THEME_COLORS, TIMETYPE_ENUM, TIMETYPE_LANG_ENUM, TODO_TYPE, TOKEN_KEY, TableEditingMethodEnum, TableSearchTypeEnum, TableTypeEnum, TagTypeEnum, TextAlign, TextDecoration, TextMeasureUtil, ThemeEnum, TimezoneOptions, ToolkitEnum, TopMenuAlignEnum, TransactionMode, TreeHelper, TriggerEnum, TypeEnum, USER_INFO_KEY, UniqueConstraintType, UploadTypeEnum, Uploader, UserRoleReqEnum, UserServiceType, VERIFICATIONCONDITIONS_TYPE, VITE_MINIO_PATH, VarTypeEnum, WATERMARK_INIT_DATA, WidgetInScopeEnum, WinMsgTypeEnum, WorkBenchTabEnum, WorkbenchType, afterFieldSet, afterValueSet, allOperator, approvalObserver, biBackFunctionGroup, biBackFunctionMap, bindCmpStyleMap, booleanOperator, booleanTypes, buildItemRules, buildShortUUID, buildUUID, buttonShowType, cacheFnReturn, calcFontStyle, calcStyle, calcStylePX, ch_ProcessStatusMap, computedEx, controlConfigEnum, copyTextToClipboard, createAppVue, createWhiteImageWithText, cssLoader, dataURLtoBlob, deepMerge, deleteAndInsertArr, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, dynamicData, emitFieldSet, fileUrlParser, filterDynFormatTypes, filterTree, findUniqueNode, fixedAlignENUM, functionGroup, functionMap, gctMemoizeAsync, genUrl, getBrowserFingerprint, getDeviceFingerprint, getInterfaceApi, getLoginTypeOptions, getMaxTextWidth, getMinTextWidth, getMobileBrowserFingerprint, getOperatorList, getPageIdentification, getSeriesList, getTenant, getToken, getTotalTextWidth, getVueComponentByCode, globalRefSession, globalRefStorage, hasEmojiAndSpecStr, hasEmojiAndSpecStr1, highlightName, innerVarIds, innerVarList, insertCustomCssToHead, interceptors, ipaasBackFunctionGroup, ipaasBackFunctionMap, isDef, isMobile, isMultipleOperator, isSortFiled, list2Tree, measureText, measureTexts, mitt, mobileSearchListByFieldType, modelLoader, notSingleArr, nullDisplayEnum, numberOperator, numberTypes, openWindow, openWindowEnums, operateSysEnums, operator2FuncMap, padSearchListByFieldType, pageLayoutModeEnum, parentObserver, parseMatrixParams, parseValueUnit, permission, presetColor, randomUUID, returnBolOperator, screenEnum, screenMap, scriptLoader, scriptTypeEnum, searchListByFieldType, selectionTypeEnums, setTenant, setToken, setupApp, setupErrorHandler, setupI18n, sha256, showDynamicTitle, sizeEnum, sizeParser, sortTypeEnum, statisticalMethodEnum, statusEnum, stringifyMatrixParams, t, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, tagEnum, tenantRef, timeReg, transformBindCmp2CmpType, transformUrl, truncateText, typeParser, uploaderFiles, urlReg, urlToBase64, useAppInst, useCopyToClipboard, useDebouncePromise, useIFrameProps, useModal, useNamespace, usePermissionStore, usePlatformConfigStore, useTenantStore, useUUid, useUserStore, useWuJieBus, useWuJieProps, uuid2, validateEmoji, validateIsModelName, validateModelName, zeroWidthSpace };
|
|
@@ -51,4 +51,84 @@ export interface IDictionaryItem {
|
|
|
51
51
|
* @type {*}
|
|
52
52
|
*/
|
|
53
53
|
data?: any;
|
|
54
|
+
/**
|
|
55
|
+
* 激活图标
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
*/
|
|
59
|
+
activeIcon?: string;
|
|
60
|
+
/**
|
|
61
|
+
* 提示信息
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
*/
|
|
65
|
+
tooltip?: string;
|
|
66
|
+
/**
|
|
67
|
+
* 可以树形嵌套的子项
|
|
68
|
+
*
|
|
69
|
+
* @author zhanghanrui
|
|
70
|
+
* @date 2024-04-02 09:04:16
|
|
71
|
+
* @type {ICodeItem[]}
|
|
72
|
+
*/
|
|
73
|
+
children?: ICodeItem[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 代码表项
|
|
77
|
+
*
|
|
78
|
+
* @author zhanghanrui
|
|
79
|
+
* @date 2024-03-27 13:03:24
|
|
80
|
+
* @export
|
|
81
|
+
* @interface ICodeItem
|
|
82
|
+
*/
|
|
83
|
+
export interface ICodeItem {
|
|
84
|
+
/**
|
|
85
|
+
* 名称
|
|
86
|
+
*
|
|
87
|
+
* @author zhanghanrui
|
|
88
|
+
* @date 2024-03-27 13:03:41
|
|
89
|
+
* @type {string}
|
|
90
|
+
*/
|
|
91
|
+
label: string;
|
|
92
|
+
/**
|
|
93
|
+
* 图标
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
*/
|
|
97
|
+
icon?: string;
|
|
98
|
+
/**
|
|
99
|
+
* 激活图标
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
*/
|
|
103
|
+
activeIcon?: string;
|
|
104
|
+
/**
|
|
105
|
+
* 提示信息
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
*/
|
|
109
|
+
tooltip?: string;
|
|
110
|
+
/**
|
|
111
|
+
* 值
|
|
112
|
+
*
|
|
113
|
+
* @author zhanghanrui
|
|
114
|
+
* @date 2024-03-27 13:03:46
|
|
115
|
+
* @type {(string | number)}
|
|
116
|
+
*/
|
|
117
|
+
value: string | number;
|
|
118
|
+
/**
|
|
119
|
+
* 是否禁用
|
|
120
|
+
*
|
|
121
|
+
* @author zhanghanrui
|
|
122
|
+
* @date 2024-10-16 09:10:22
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
*/
|
|
125
|
+
disabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* 可以树形嵌套的子项
|
|
128
|
+
*
|
|
129
|
+
* @author zhanghanrui
|
|
130
|
+
* @date 2024-04-02 09:04:16
|
|
131
|
+
* @type {ICodeItem[]}
|
|
132
|
+
*/
|
|
133
|
+
children?: ICodeItem[];
|
|
54
134
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserLoginResp } from '@gct-paas/api/platform';
|
|
1
2
|
import { ProjectName } from '../../enums';
|
|
2
3
|
import { IAppContext } from '..';
|
|
3
4
|
/**
|
|
@@ -36,4 +37,6 @@ export interface IGlobalActions {
|
|
|
36
37
|
setContext(state: Partial<IAppContext>): void;
|
|
37
38
|
/**设置应用标识 */
|
|
38
39
|
setAid(aid: string): void;
|
|
40
|
+
/** 更新个人信息 */
|
|
41
|
+
updateUserInfo(info: UserLoginResp): void;
|
|
39
42
|
}
|
package/es/interface/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type * from './i-app-context/i-app-context';
|
|
2
2
|
export type { IGlobalRegister } from './i-global-register/i-global-register';
|
|
3
3
|
export type { IDictionary } from './i-dictionary/i-dictionary';
|
|
4
|
-
export type { IDictionaryItem } from './i-dictionary/i-dictionary-item';
|
|
4
|
+
export type { IDictionaryItem, ICodeItem, } from './i-dictionary/i-dictionary-item';
|
|
5
5
|
export type { IFieldCodeChain } from './i-field-code-chain/i-field-code-chain';
|
|
6
6
|
export type { GlobalVar } from './i-global-var/i-global-var';
|
|
7
7
|
export type { IMobileHomeMenuItem } from './i-mobile-home-menu-item/i-mobile-home-menu-item';
|
|
@@ -14,6 +14,8 @@ var DEV_SINGLE_PATH_REG = /\/dev-single\//;
|
|
|
14
14
|
/** 测试环境单应用路径正则表达式 */
|
|
15
15
|
var TEST_SINGLE_PATH_REG = /\/test-single\//;
|
|
16
16
|
/** 沙箱环境路径正则表达式 */
|
|
17
|
-
var SANDBOX_PATH_REG = /(mobile|pad)-sandbox/;
|
|
17
|
+
var SANDBOX_PATH_REG = /(mobile|pad|web)-sandbox/;
|
|
18
|
+
/** 单应用环境路径正则表达式 */
|
|
19
|
+
var SINGLE_PATH_REG = /\/web-single\/|dev-single\/|test-single\//;
|
|
18
20
|
//#endregion
|
|
19
|
-
export { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, SANDBOX_PATH_REG, TEST_SINGLE_PATH_REG };
|
|
21
|
+
export { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, SANDBOX_PATH_REG, SINGLE_PATH_REG, TEST_SINGLE_PATH_REG };
|
|
@@ -33,7 +33,9 @@ export interface IEnvironmentManager {
|
|
|
33
33
|
/** 测试环境租户数据 */
|
|
34
34
|
readonly testTenantData: Tenant;
|
|
35
35
|
/** 是否为沙箱环境 */
|
|
36
|
-
|
|
36
|
+
isSandbox: boolean;
|
|
37
|
+
/** 是否是单应用模式 */
|
|
38
|
+
isAppSingle: boolean;
|
|
37
39
|
/**
|
|
38
40
|
* 检测是否为测试环境
|
|
39
41
|
* @param loadTenant 是否加载租户信息
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ENV } from "../../store/session-store.mjs";
|
|
2
2
|
import { EnvironmentType } from "./env-manager.interface.mjs";
|
|
3
|
-
import { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, SANDBOX_PATH_REG, TEST_SINGLE_PATH_REG } from "./env-manager.const.mjs";
|
|
3
|
+
import { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, SANDBOX_PATH_REG, SINGLE_PATH_REG, TEST_SINGLE_PATH_REG } from "./env-manager.const.mjs";
|
|
4
4
|
//#region src/modules/env-manager/env-manager.ts
|
|
5
5
|
/**
|
|
6
6
|
* 环境管理器
|
|
@@ -55,6 +55,12 @@ var EnvironmentManager = class {
|
|
|
55
55
|
return TEST_SINGLE_PATH_REG.test(location.pathname) || this._testEnv;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
+
* 是否是单应用模式
|
|
59
|
+
*/
|
|
60
|
+
get isAppSingle() {
|
|
61
|
+
return SINGLE_PATH_REG.test(location.pathname);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
58
64
|
* 平台地址
|
|
59
65
|
*/
|
|
60
66
|
get platformOrigin() {
|
|
@@ -70,6 +70,10 @@ async function getDeviceFingerprint() {
|
|
|
70
70
|
if (isWeb) localStorage.setItem(FINGERPRINT_KEY, visitorId);
|
|
71
71
|
return `${name}/${visitorId}`;
|
|
72
72
|
}
|
|
73
|
+
/** web 端指纹(语义兼容) */
|
|
74
|
+
function getBrowserFingerprint() {
|
|
75
|
+
return getDeviceFingerprint();
|
|
76
|
+
}
|
|
73
77
|
/** mobile 端指纹(语义兼容) */
|
|
74
78
|
function getMobileBrowserFingerprint() {
|
|
75
79
|
return getDeviceFingerprint();
|
|
@@ -84,4 +88,4 @@ function getPageIdentification() {
|
|
|
84
88
|
return pageTag;
|
|
85
89
|
}
|
|
86
90
|
//#endregion
|
|
87
|
-
export { getDeviceFingerprint, getMobileBrowserFingerprint, getPageIdentification };
|
|
91
|
+
export { getBrowserFingerprint, getDeviceFingerprint, getMobileBrowserFingerprint, getPageIdentification };
|
package/es/utils/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { getToken, setToken, getTenant, tenantRef, isMobile, setTenant, deepMerg
|
|
|
17
17
|
export * from './uuid/uuid';
|
|
18
18
|
export * from './value-helper/value-helper';
|
|
19
19
|
export { interceptors } from './axios/interceptors';
|
|
20
|
-
export { getDeviceFingerprint, getPageIdentification, getMobileBrowserFingerprint, } from './deviceFingerprint';
|
|
20
|
+
export { getDeviceFingerprint, getPageIdentification, getMobileBrowserFingerprint, getBrowserFingerprint, } from './deviceFingerprint';
|
|
21
21
|
export { TreeHelper } from './treeHelper/treeHelper';
|
|
22
22
|
export * from './style';
|
|
23
23
|
export * from './util';
|
|
@@ -34,3 +34,4 @@ export { scriptLoader, type IScriptOptions, } from './script-loader/script-loade
|
|
|
34
34
|
export { permission } from './permission';
|
|
35
35
|
export { getVueComponentByCode } from './vue-component-code';
|
|
36
36
|
export * from './data-prems/const';
|
|
37
|
+
export * from './select-user-utils';
|
package/es/utils/index.mjs
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { FIELD_TYPE } from '../enums';
|
|
2
|
+
/** 动态类型 */
|
|
3
|
+
export declare enum DYN_FORMAT_TYPE_ENUM {
|
|
4
|
+
/** 申请人直属上级 */
|
|
5
|
+
DYN_SUBMITTER_MANAGER = "DYN_SUBMITTER_MANAGER",
|
|
6
|
+
/** 申请人部门负责人 */
|
|
7
|
+
DYN_SUBMITTER_DEPT_PRINCIPAL = "DYN_SUBMITTER_DEPT_PRINCIPAL",
|
|
8
|
+
/** 指定人员字段 */
|
|
9
|
+
DYN_MODEL_USERS = "DYN_MODEL_USERS",
|
|
10
|
+
/** 指定人员字段直属上级 */
|
|
11
|
+
DYN_MODEL_USER_MANAGER = "DYN_MODEL_USER_MANAGER",
|
|
12
|
+
/** 指定部门负责人 */
|
|
13
|
+
DYN_DEPT_PRINCIPAL = "DYN_DEPT_PRINCIPAL",
|
|
14
|
+
/** 指定部门字段 */
|
|
15
|
+
DYN_MODEL_ORG = "DYN_MODEL_ORG",
|
|
16
|
+
/** 指定部门字段负责人 */
|
|
17
|
+
DYN_MODEL_DEPT_PRINCIPAL = "DYN_MODEL_DEPT_PRINCIPAL"
|
|
18
|
+
}
|
|
19
|
+
export declare const DynFormatTypes: DYN_FORMAT_TYPE_ENUM[];
|
|
20
|
+
export declare const filterDynFormatTypes: string[];
|
|
21
|
+
export declare const dynamicData: ({
|
|
22
|
+
id: string;
|
|
23
|
+
formatId: DYN_FORMAT_TYPE_ENUM;
|
|
24
|
+
name: string;
|
|
25
|
+
desc: string;
|
|
26
|
+
panelKey?: undefined;
|
|
27
|
+
showPanel?: undefined;
|
|
28
|
+
panelType?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
id: string;
|
|
31
|
+
formatId: DYN_FORMAT_TYPE_ENUM;
|
|
32
|
+
name: string;
|
|
33
|
+
desc: string;
|
|
34
|
+
showPanel: boolean;
|
|
35
|
+
panelType: string;
|
|
36
|
+
panelKey: FIELD_TYPE[];
|
|
37
|
+
} | {
|
|
38
|
+
panelKey?: undefined;
|
|
39
|
+
id: string;
|
|
40
|
+
formatId: DYN_FORMAT_TYPE_ENUM;
|
|
41
|
+
name: string;
|
|
42
|
+
desc: string;
|
|
43
|
+
showPanel: boolean;
|
|
44
|
+
panelType: string;
|
|
45
|
+
})[];
|
|
46
|
+
export declare function list2Tree(list: IObject[]): IObject[];
|
|
47
|
+
export declare function highlightName(str: string, searchValue?: string): string | null;
|
|
48
|
+
export declare const filterTree: (tree: IObject[], searchValue: string) => IObject[];
|
|
49
|
+
export declare const findUniqueNode: (tree: IObject[], tid: string) => IObject | null;
|
|
50
|
+
export declare function showDynamicTitle(id: string, name: string): string;
|