@gct-paas/core 0.1.5-dev.0 → 0.1.5-dev.10
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 +1 -1
- package/dist/redirect-index-Ck5Ddtcb.js +1 -0
- package/es/enums/app-designer/index.d.ts +11 -0
- package/es/enums/app-designer/index.mjs +14 -1
- package/es/enums/appEnum.d.ts +8 -0
- package/es/enums/appEnum.mjs +10 -1
- package/es/enums/page-designer/designer.d.ts +13 -13
- package/es/enums/page-designer/widget.d.ts +2 -2
- package/es/global/gct/gct.d.ts +108 -107
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useFile.d.ts +4 -0
- package/es/hooks/useFile.mjs +22 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +15 -6
- package/es/interface/i-kit-plugin-module/i-kit-plugin-module.d.ts +23 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +3 -0
- package/es/interface/i-popover-options/i-popover-options.d.ts +98 -0
- package/es/interface/index.d.ts +3 -2
- package/es/interface/index.mjs +1 -0
- package/es/interface/model-designer/entity.d.ts +87 -79
- package/es/interface/model-designer/serial.d.ts +22 -0
- package/es/interface/model-designer/serial.mjs +49 -0
- package/es/interface/open-util/i-app-full-screen-container-options/i-app-full-screen-container-options.d.ts +26 -0
- package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +52 -0
- package/es/interface/open-util/i-overlay-popover-container/i-overlay-popover-container.d.ts +21 -0
- package/es/interface/open-util/index.d.ts +3 -1
- package/es/locale/index.d.ts +26 -1
- package/es/locale/index.mjs +51 -3
- package/es/locale/sys/model.d.ts +5 -0
- package/es/locale/sys.d.ts +5 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.d.ts +1 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +2 -1
- package/es/modules/mqtt/mqtt-manager.d.ts +1 -1
- package/es/modules/mqtt/mqtt-manager.mjs +2 -1
- package/es/modules/platform-config/store.d.ts +106 -106
- package/es/modules/platform-config/store.mjs +0 -1
- package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
- package/es/modules/user-stores/store/tenant.store.d.ts +6 -8
- package/es/modules/user-stores/store/tenant.store.mjs +12 -14
- package/es/modules/user-stores/store/user.store.d.ts +11 -2
- package/es/modules/user-stores/store/user.store.mjs +15 -4
- package/es/modules/user-stores/types/tenant.d.ts +7 -1
- package/es/router/index.d.ts +3 -0
- package/es/router/index.mjs +37 -4
- package/es/router/redirect/redirect-index.vue.d.ts +2 -0
- package/es/router/redirect/redirect-index.vue.mjs +5 -0
- package/es/router/redirect/redirect-index.vue_vue_type_script_setup_true_lang.mjs +28 -0
- package/es/setup-app.mjs +6 -2
- package/es/store/global-store.mjs +3 -0
- package/es/store/index.d.ts +1 -0
- package/es/store/index.mjs +1 -0
- package/es/store/session-store.d.ts +7 -0
- package/es/store/session-store.mjs +7 -0
- package/es/store/storage-store.d.ts +2 -0
- package/es/store/storage-store.mjs +3 -2
- package/es/types/index.d.ts +0 -1
- package/es/utils/file/download.d.ts +1 -1
- package/es/utils/file/parser.d.ts +1 -1
- package/es/utils/i18n/index.mjs +3 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.mjs +4 -0
- package/es/utils/kit-pkg-util/kit-pkg-util.d.ts +34 -13
- package/es/utils/kit-pkg-util/kit-pkg-util.mjs +51 -40
- package/es/utils/openUtil/index.d.ts +1 -0
- package/es/utils/openUtil/index.mjs +1 -0
- package/es/utils/openUtil/overlay-popover-container/overlay-popover-container.d.ts +15 -0
- package/es/utils/openUtil/overlay-popover-container/overlay-popover-container.mjs +19 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +3 -3
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
- package/es/utils/script-loader/script-loader.d.ts +62 -0
- package/es/utils/script-loader/script-loader.mjs +92 -0
- package/es/utils/style/index.d.ts +8 -0
- package/es/utils/style/index.mjs +67 -1
- package/es/utils/text-measure/text-measure.d.ts +141 -0
- package/es/utils/text-measure/text-measure.mjs +191 -0
- package/es/utils/tools/tools.d.ts +1 -1
- package/es/utils/uploader/uploader.mjs +3 -5
- package/es/utils/util.d.ts +1 -0
- package/es/utils/util.mjs +9 -1
- package/es/utils/vue-component-code.d.ts +8 -0
- package/es/utils/vue-component-code.mjs +37 -0
- package/package.json +20 -20
- package/es/interface/i-import-style-map/i-import-style-map.d.ts +0 -15
- package/es/interface/i-kit-info/i-kit-info.d.ts +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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};
|
|
@@ -109,3 +109,14 @@ export declare enum PatternEnum {
|
|
|
109
109
|
yyyyMMddHHmmss = "sys.model.yyyyMMddHHmmss",
|
|
110
110
|
CUSTOM = "sys.customize"
|
|
111
111
|
}
|
|
112
|
+
export declare enum ResetConditionEnum {
|
|
113
|
+
YEAR = "year",
|
|
114
|
+
WEEK = "week",
|
|
115
|
+
MONTH = "month",
|
|
116
|
+
DAY = "day",
|
|
117
|
+
HOUR = "hour"
|
|
118
|
+
}
|
|
119
|
+
export declare enum ModelFieldEnum {
|
|
120
|
+
SEX = "\u6027\u522B",
|
|
121
|
+
CUSTOM = "custom"
|
|
122
|
+
}
|
|
@@ -128,5 +128,18 @@ var PatternEnum = /* @__PURE__ */ function(PatternEnum) {
|
|
|
128
128
|
PatternEnum["CUSTOM"] = "sys.customize";
|
|
129
129
|
return PatternEnum;
|
|
130
130
|
}({});
|
|
131
|
+
var ResetConditionEnum = /* @__PURE__ */ function(ResetConditionEnum) {
|
|
132
|
+
ResetConditionEnum["YEAR"] = "year";
|
|
133
|
+
ResetConditionEnum["WEEK"] = "week";
|
|
134
|
+
ResetConditionEnum["MONTH"] = "month";
|
|
135
|
+
ResetConditionEnum["DAY"] = "day";
|
|
136
|
+
ResetConditionEnum["HOUR"] = "hour";
|
|
137
|
+
return ResetConditionEnum;
|
|
138
|
+
}({});
|
|
139
|
+
var ModelFieldEnum = /* @__PURE__ */ function(ModelFieldEnum) {
|
|
140
|
+
ModelFieldEnum["SEX"] = "性别";
|
|
141
|
+
ModelFieldEnum["CUSTOM"] = "custom";
|
|
142
|
+
return ModelFieldEnum;
|
|
143
|
+
}({});
|
|
131
144
|
//#endregion
|
|
132
|
-
export { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, PatternEnum, SHOW_FIELDTYPES, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum };
|
|
145
|
+
export { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, ModelFieldEnum, PatternEnum, ResetConditionEnum, SHOW_FIELDTYPES, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum };
|
package/es/enums/appEnum.d.ts
CHANGED
|
@@ -58,6 +58,14 @@ export declare enum FIELD_TYPE_CATEGORY {
|
|
|
58
58
|
'LOGIC' = "field_type_logic",
|
|
59
59
|
'TRACE' = "field_type_trace"
|
|
60
60
|
}
|
|
61
|
+
export declare enum SYSTEM_FIELD_KEY {
|
|
62
|
+
CREATE_BY = "create_user_id_",
|
|
63
|
+
CREATE_AT = "create_time_",
|
|
64
|
+
CREATE_DEPT = "create_org_id_",
|
|
65
|
+
UPDATE_BY = "modify_user_id_",
|
|
66
|
+
UPDATE_AT = "modify_time_",
|
|
67
|
+
UPDATE_DEPT = "modify_org_id_"
|
|
68
|
+
}
|
|
61
69
|
export declare enum FIELD_TYPE {
|
|
62
70
|
/**
|
|
63
71
|
* 主键
|
package/es/enums/appEnum.mjs
CHANGED
|
@@ -67,6 +67,15 @@ var FIELD_TYPE_CATEGORY = /* @__PURE__ */ function(FIELD_TYPE_CATEGORY) {
|
|
|
67
67
|
FIELD_TYPE_CATEGORY["TRACE"] = "field_type_trace";
|
|
68
68
|
return FIELD_TYPE_CATEGORY;
|
|
69
69
|
}({});
|
|
70
|
+
var SYSTEM_FIELD_KEY = /* @__PURE__ */ function(SYSTEM_FIELD_KEY) {
|
|
71
|
+
SYSTEM_FIELD_KEY["CREATE_BY"] = "create_user_id_";
|
|
72
|
+
SYSTEM_FIELD_KEY["CREATE_AT"] = "create_time_";
|
|
73
|
+
SYSTEM_FIELD_KEY["CREATE_DEPT"] = "create_org_id_";
|
|
74
|
+
SYSTEM_FIELD_KEY["UPDATE_BY"] = "modify_user_id_";
|
|
75
|
+
SYSTEM_FIELD_KEY["UPDATE_AT"] = "modify_time_";
|
|
76
|
+
SYSTEM_FIELD_KEY["UPDATE_DEPT"] = "modify_org_id_";
|
|
77
|
+
return SYSTEM_FIELD_KEY;
|
|
78
|
+
}({});
|
|
70
79
|
var FIELD_TYPE = /* @__PURE__ */ function(FIELD_TYPE) {
|
|
71
80
|
/**
|
|
72
81
|
* 主键
|
|
@@ -683,4 +692,4 @@ var CARD_TRIGGER_ENUM = /* @__PURE__ */ function(CARD_TRIGGER_ENUM) {
|
|
|
683
692
|
return CARD_TRIGGER_ENUM;
|
|
684
693
|
}({});
|
|
685
694
|
//#endregion
|
|
686
|
-
export { 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, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, TODO_TYPE, ThemeEnum, UniqueConstraintType, WorkbenchType, selectionTypeEnums };
|
|
695
|
+
export { 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 };
|
|
@@ -232,19 +232,19 @@ export declare enum BindCmpStyleEnum {
|
|
|
232
232
|
}
|
|
233
233
|
/** 组件类型下拉框国际化枚举 */
|
|
234
234
|
export declare const Ch_BindCmpStyleEnum: {
|
|
235
|
-
TEXT:
|
|
236
|
-
TEXTAREA:
|
|
237
|
-
ELECTRONICSIGNATURE:
|
|
238
|
-
BOOLEAN:
|
|
239
|
-
SELECT_LIST:
|
|
240
|
-
RADIO:
|
|
241
|
-
CHECKBOX:
|
|
242
|
-
dropdownSelection:
|
|
243
|
-
modalBoxSelection:
|
|
244
|
-
treeSelection:
|
|
245
|
-
NUMBER:
|
|
246
|
-
CURRENCY:
|
|
247
|
-
TIME:
|
|
235
|
+
readonly TEXT: "sys.pageDesigner.bindCmpStyle.bindText";
|
|
236
|
+
readonly TEXTAREA: "sys.pageDesigner.bindCmpStyle.bindTextarea";
|
|
237
|
+
readonly ELECTRONICSIGNATURE: "sys.pageDesigner.bindCmpStyle.electronicSignature";
|
|
238
|
+
readonly BOOLEAN: "sys.pageDesigner.bindCmpStyle.bindBoolean";
|
|
239
|
+
readonly SELECT_LIST: "sys.pageDesigner.bindCmpStyle.bindSelectList";
|
|
240
|
+
readonly RADIO: "sys.pageDesigner.bindCmpStyle.bindRadio";
|
|
241
|
+
readonly CHECKBOX: "sys.pageDesigner.bindCmpStyle.bindCheckbox";
|
|
242
|
+
readonly dropdownSelection: "sys.pageDesigner.bindCmpStyle.bindDropdownSelect";
|
|
243
|
+
readonly modalBoxSelection: "sys.pageDesigner.bindCmpStyle.bindModal";
|
|
244
|
+
readonly treeSelection: "sys.pageDesigner.bindCmpStyle.bindTreeSelection";
|
|
245
|
+
readonly NUMBER: "sys.pageDesigner.bindCmpStyle.bindNumber";
|
|
246
|
+
readonly CURRENCY: "sys.pageDesigner.bindCmpStyle.bindCurrency";
|
|
247
|
+
readonly TIME: "sys.pageDesigner.bindCmpStyle.bindTime";
|
|
248
248
|
};
|
|
249
249
|
/** 组件类型下拉框类型 */
|
|
250
250
|
export declare enum BindCmpStyleTypeEnum {
|
|
@@ -184,11 +184,11 @@ export declare const ButtonGroupType: {
|
|
|
184
184
|
hasText: boolean;
|
|
185
185
|
})[];
|
|
186
186
|
ICON_TEXT: ({
|
|
187
|
+
danger?: undefined;
|
|
187
188
|
type: string;
|
|
188
189
|
label: string;
|
|
189
190
|
hasText: boolean;
|
|
190
191
|
hasIcon: boolean;
|
|
191
|
-
danger?: undefined;
|
|
192
192
|
} | {
|
|
193
193
|
type: string;
|
|
194
194
|
danger: boolean;
|
|
@@ -197,9 +197,9 @@ export declare const ButtonGroupType: {
|
|
|
197
197
|
hasIcon: boolean;
|
|
198
198
|
})[];
|
|
199
199
|
ICON: ({
|
|
200
|
+
danger?: undefined;
|
|
200
201
|
type: string;
|
|
201
202
|
hasIcon: boolean;
|
|
202
|
-
danger?: undefined;
|
|
203
203
|
} | {
|
|
204
204
|
type: string;
|
|
205
205
|
danger: boolean;
|
package/es/global/gct/gct.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { I18n } from 'vue-i18n';
|
|
2
2
|
import { ApiMap } from '@gct-paas/api';
|
|
3
|
+
import { GlobalStoreUtil } from '../../store';
|
|
3
4
|
import { IGlobalRegister, IMessageUtil, IOverlayController } from '../../interface';
|
|
4
5
|
import { DictionaryUtil } from '../../utils';
|
|
5
6
|
import { EnvironmentManager } from '../../modules/env-manager';
|
|
@@ -32,7 +33,7 @@ export declare class GctGlobal {
|
|
|
32
33
|
/**
|
|
33
34
|
* 全局 store 工具类
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
readonly storeUtil: GlobalStoreUtil;
|
|
36
37
|
/**
|
|
37
38
|
* 全局 store 实例
|
|
38
39
|
*/
|
|
@@ -42,39 +43,22 @@ export declare class GctGlobal {
|
|
|
42
43
|
*
|
|
43
44
|
*/
|
|
44
45
|
readonly platformStore: import('pinia').Store<"platform-config", Pick<{
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
basicSetting: import('@gct-paas/api/platform').PlatformBaseConfig;
|
|
47
|
+
setBasicSetting: (data: import('@gct-paas/api/platform').SysConfigResponse, transfer?: boolean) => void;
|
|
48
|
+
postBasicSetting: () => Promise<string>;
|
|
47
49
|
deploySetting: {
|
|
48
50
|
deployMode: import('../..').DeployModeEnum;
|
|
49
51
|
};
|
|
50
52
|
setDeploySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
51
53
|
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
transparent: number;
|
|
61
|
-
width: number;
|
|
62
|
-
height: number;
|
|
63
|
-
};
|
|
64
|
-
postWatermarkSetting: () => Promise<void>;
|
|
65
|
-
setWatermarkSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
66
|
-
themeSetting: import('../..').IThemeSetting;
|
|
67
|
-
setThemeSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
68
|
-
postThemeSetting: () => Promise<void>;
|
|
69
|
-
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
70
|
-
toggleMenuCollapsed: () => void;
|
|
71
|
-
menuCollapsedWidth: number;
|
|
72
|
-
menuWidthRange: number[];
|
|
73
|
-
themeColors: string[];
|
|
74
|
-
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
75
|
-
postSecuritySetting: () => Promise<void>;
|
|
76
|
-
setSecuritySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
77
|
-
getSignWay: () => "LOGIN" | "SIGN" | "DOMAIN";
|
|
54
|
+
loginSetting: import('@gct-paas/api/platform').AuthConfig;
|
|
55
|
+
postLoginSetting: () => Promise<void>;
|
|
56
|
+
setLoginSetting: (config: import('@gct-paas/api/platform').SysConfigResponse | undefined) => void;
|
|
57
|
+
loginModeAuthTypes: import('vue').Ref<string[], string[]>;
|
|
58
|
+
openIDOAuthAuthTypes: import('vue').Ref<string[], string[]>;
|
|
59
|
+
sysLoginSort: import('vue').Ref<IObject[], IObject[]>;
|
|
60
|
+
openIDOAuthAuthSort: import('vue').Ref<IObject[], IObject[]>;
|
|
61
|
+
loginModeConfig: Map<string, IObject>;
|
|
78
62
|
orgSetting: import('@gct-paas/api/platform').OrgConfig;
|
|
79
63
|
setOrgSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
80
64
|
postOrgSetting: () => Promise<void>;
|
|
@@ -101,27 +85,18 @@ export declare class GctGlobal {
|
|
|
101
85
|
label: string;
|
|
102
86
|
value: string;
|
|
103
87
|
}[]>;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
renderInit: () => Promise<void>;
|
|
117
|
-
}, "projectSetting" | "deploySetting" | "watermarkSetting" | "themeSetting" | "menuCollapsed" | "menuCollapsedWidth" | "menuWidthRange" | "themeColors" | "securitySetting" | "orgSetting" | "relationFields" | "relationFiledsCopy" | "loginSetting" | "loginModeAuthTypes" | "openIDOAuthAuthTypes" | "sysLoginSort" | "openIDOAuthAuthSort" | "loginModeConfig" | "basicSetting">, Pick<{
|
|
118
|
-
projectSetting: {};
|
|
119
|
-
setProjectConfig: (config: {}) => void;
|
|
120
|
-
deploySetting: {
|
|
121
|
-
deployMode: import('../..').DeployModeEnum;
|
|
122
|
-
};
|
|
123
|
-
setDeploySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
124
|
-
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
88
|
+
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
89
|
+
postSecuritySetting: () => Promise<void>;
|
|
90
|
+
setSecuritySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
91
|
+
getSignWay: () => "DOMAIN" | "LOGIN" | "SIGN";
|
|
92
|
+
themeSetting: import('../..').IThemeSetting;
|
|
93
|
+
setThemeSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
94
|
+
postThemeSetting: () => Promise<void>;
|
|
95
|
+
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
96
|
+
toggleMenuCollapsed: () => void;
|
|
97
|
+
menuCollapsedWidth: number;
|
|
98
|
+
menuWidthRange: number[];
|
|
99
|
+
themeColors: string[];
|
|
125
100
|
watermarkSetting: {
|
|
126
101
|
openWatermark: boolean;
|
|
127
102
|
watermarkContent: string;
|
|
@@ -136,18 +111,27 @@ export declare class GctGlobal {
|
|
|
136
111
|
};
|
|
137
112
|
postWatermarkSetting: () => Promise<void>;
|
|
138
113
|
setWatermarkSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
114
|
+
projectSetting: {};
|
|
115
|
+
setProjectConfig: (config: {}) => void;
|
|
116
|
+
init: () => Promise<void>;
|
|
117
|
+
renderInit: () => Promise<void>;
|
|
118
|
+
}, "basicSetting" | "deploySetting" | "loginModeAuthTypes" | "loginModeConfig" | "loginSetting" | "menuCollapsed" | "menuCollapsedWidth" | "menuWidthRange" | "openIDOAuthAuthSort" | "openIDOAuthAuthTypes" | "orgSetting" | "projectSetting" | "relationFields" | "relationFiledsCopy" | "securitySetting" | "sysLoginSort" | "themeColors" | "themeSetting" | "watermarkSetting">, Pick<{
|
|
119
|
+
basicSetting: import('@gct-paas/api/platform').PlatformBaseConfig;
|
|
120
|
+
setBasicSetting: (data: import('@gct-paas/api/platform').SysConfigResponse, transfer?: boolean) => void;
|
|
121
|
+
postBasicSetting: () => Promise<string>;
|
|
122
|
+
deploySetting: {
|
|
123
|
+
deployMode: import('../..').DeployModeEnum;
|
|
124
|
+
};
|
|
125
|
+
setDeploySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
126
|
+
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
127
|
+
loginSetting: import('@gct-paas/api/platform').AuthConfig;
|
|
128
|
+
postLoginSetting: () => Promise<void>;
|
|
129
|
+
setLoginSetting: (config: import('@gct-paas/api/platform').SysConfigResponse | undefined) => void;
|
|
130
|
+
loginModeAuthTypes: import('vue').Ref<string[], string[]>;
|
|
131
|
+
openIDOAuthAuthTypes: import('vue').Ref<string[], string[]>;
|
|
132
|
+
sysLoginSort: import('vue').Ref<IObject[], IObject[]>;
|
|
133
|
+
openIDOAuthAuthSort: import('vue').Ref<IObject[], IObject[]>;
|
|
134
|
+
loginModeConfig: Map<string, IObject>;
|
|
151
135
|
orgSetting: import('@gct-paas/api/platform').OrgConfig;
|
|
152
136
|
setOrgSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
153
137
|
postOrgSetting: () => Promise<void>;
|
|
@@ -174,27 +158,18 @@ export declare class GctGlobal {
|
|
|
174
158
|
label: string;
|
|
175
159
|
value: string;
|
|
176
160
|
}[]>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
renderInit: () => Promise<void>;
|
|
190
|
-
}, "isIndependentApp">, Pick<{
|
|
191
|
-
projectSetting: {};
|
|
192
|
-
setProjectConfig: (config: {}) => void;
|
|
193
|
-
deploySetting: {
|
|
194
|
-
deployMode: import('../..').DeployModeEnum;
|
|
195
|
-
};
|
|
196
|
-
setDeploySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
197
|
-
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
161
|
+
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
162
|
+
postSecuritySetting: () => Promise<void>;
|
|
163
|
+
setSecuritySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
164
|
+
getSignWay: () => "DOMAIN" | "LOGIN" | "SIGN";
|
|
165
|
+
themeSetting: import('../..').IThemeSetting;
|
|
166
|
+
setThemeSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
167
|
+
postThemeSetting: () => Promise<void>;
|
|
168
|
+
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
169
|
+
toggleMenuCollapsed: () => void;
|
|
170
|
+
menuCollapsedWidth: number;
|
|
171
|
+
menuWidthRange: number[];
|
|
172
|
+
themeColors: string[];
|
|
198
173
|
watermarkSetting: {
|
|
199
174
|
openWatermark: boolean;
|
|
200
175
|
watermarkContent: string;
|
|
@@ -209,18 +184,27 @@ export declare class GctGlobal {
|
|
|
209
184
|
};
|
|
210
185
|
postWatermarkSetting: () => Promise<void>;
|
|
211
186
|
setWatermarkSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
187
|
+
projectSetting: {};
|
|
188
|
+
setProjectConfig: (config: {}) => void;
|
|
189
|
+
init: () => Promise<void>;
|
|
190
|
+
renderInit: () => Promise<void>;
|
|
191
|
+
}, "isIndependentApp">, Pick<{
|
|
192
|
+
basicSetting: import('@gct-paas/api/platform').PlatformBaseConfig;
|
|
193
|
+
setBasicSetting: (data: import('@gct-paas/api/platform').SysConfigResponse, transfer?: boolean) => void;
|
|
194
|
+
postBasicSetting: () => Promise<string>;
|
|
195
|
+
deploySetting: {
|
|
196
|
+
deployMode: import('../..').DeployModeEnum;
|
|
197
|
+
};
|
|
198
|
+
setDeploySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
199
|
+
isIndependentApp: import('vue').ComputedRef<boolean>;
|
|
200
|
+
loginSetting: import('@gct-paas/api/platform').AuthConfig;
|
|
201
|
+
postLoginSetting: () => Promise<void>;
|
|
202
|
+
setLoginSetting: (config: import('@gct-paas/api/platform').SysConfigResponse | undefined) => void;
|
|
203
|
+
loginModeAuthTypes: import('vue').Ref<string[], string[]>;
|
|
204
|
+
openIDOAuthAuthTypes: import('vue').Ref<string[], string[]>;
|
|
205
|
+
sysLoginSort: import('vue').Ref<IObject[], IObject[]>;
|
|
206
|
+
openIDOAuthAuthSort: import('vue').Ref<IObject[], IObject[]>;
|
|
207
|
+
loginModeConfig: Map<string, IObject>;
|
|
224
208
|
orgSetting: import('@gct-paas/api/platform').OrgConfig;
|
|
225
209
|
setOrgSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
226
210
|
postOrgSetting: () => Promise<void>;
|
|
@@ -247,20 +231,37 @@ export declare class GctGlobal {
|
|
|
247
231
|
label: string;
|
|
248
232
|
value: string;
|
|
249
233
|
}[]>;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
234
|
+
securitySetting: import('@gct-paas/api/platform').SecurityConfig;
|
|
235
|
+
postSecuritySetting: () => Promise<void>;
|
|
236
|
+
setSecuritySetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
237
|
+
getSignWay: () => "DOMAIN" | "LOGIN" | "SIGN";
|
|
238
|
+
themeSetting: import('../..').IThemeSetting;
|
|
239
|
+
setThemeSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
240
|
+
postThemeSetting: () => Promise<void>;
|
|
241
|
+
menuCollapsed: import('vue').Ref<boolean, boolean>;
|
|
242
|
+
toggleMenuCollapsed: () => void;
|
|
243
|
+
menuCollapsedWidth: number;
|
|
244
|
+
menuWidthRange: number[];
|
|
245
|
+
themeColors: string[];
|
|
246
|
+
watermarkSetting: {
|
|
247
|
+
openWatermark: boolean;
|
|
248
|
+
watermarkContent: string;
|
|
249
|
+
fontSize: number;
|
|
250
|
+
color: string;
|
|
251
|
+
verticalAlign: string;
|
|
252
|
+
textAlign: string;
|
|
253
|
+
text: string;
|
|
254
|
+
transparent: number;
|
|
255
|
+
width: number;
|
|
256
|
+
height: number;
|
|
257
|
+
};
|
|
258
|
+
postWatermarkSetting: () => Promise<void>;
|
|
259
|
+
setWatermarkSetting: (data: import('@gct-paas/api/platform').SysConfigResponse) => void;
|
|
260
|
+
projectSetting: {};
|
|
261
|
+
setProjectConfig: (config: {}) => void;
|
|
261
262
|
init: () => Promise<void>;
|
|
262
263
|
renderInit: () => Promise<void>;
|
|
263
|
-
}, "
|
|
264
|
+
}, "getSignWay" | "init" | "postBasicSetting" | "postLoginSetting" | "postOrgSetting" | "postSecuritySetting" | "postThemeSetting" | "postWatermarkSetting" | "renderInit" | "setBasicSetting" | "setDeploySetting" | "setLoginSetting" | "setOrgSetting" | "setProjectConfig" | "setSecuritySetting" | "setThemeSetting" | "setWatermarkSetting" | "toggleMenuCollapsed">>;
|
|
264
265
|
/**
|
|
265
266
|
* 全局 router 工具类
|
|
266
267
|
*/
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { useAppInst } from './use-app-inst/use-app-inst';
|
|
|
2
2
|
export { useModal } from './use-modal/use-modal';
|
|
3
3
|
export { useIFrameProps, useWuJieBus, useWuJieProps, } from './use-sub-app-utils/use-sub-app-utils';
|
|
4
4
|
export { copyTextToClipboard, isDef, useCopyToClipboard, } from './useCopyToClipboard';
|
|
5
|
+
export { transformUrl, fileUrlParser } from './useFile';
|
package/es/hooks/index.mjs
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VITE_MINIO_PATH } from "../constants/index.mjs";
|
|
2
|
+
//#region src/hooks/useFile.ts
|
|
3
|
+
var urlCacheMap = {};
|
|
4
|
+
function transformUrl(url, { random = true } = {}) {
|
|
5
|
+
if (!url) return "/404.png";
|
|
6
|
+
const url2 = `${VITE_MINIO_PATH}${url.startsWith("/") ? "" : "/"}${url}`;
|
|
7
|
+
if (!random) return url2;
|
|
8
|
+
if (urlCacheMap[url] && Date.now() - urlCacheMap[url].timestamp < 60 * 1e3) return `${url2}?${urlCacheMap[url].random}`;
|
|
9
|
+
if (Object.keys(urlCacheMap).length > 100) urlCacheMap = {};
|
|
10
|
+
const r = Math.random();
|
|
11
|
+
urlCacheMap[url] = {
|
|
12
|
+
random: r,
|
|
13
|
+
timestamp: Date.now()
|
|
14
|
+
};
|
|
15
|
+
return `${url2}?${r}`;
|
|
16
|
+
}
|
|
17
|
+
function fileUrlParser(url) {
|
|
18
|
+
if (!url) return url;
|
|
19
|
+
return `${VITE_MINIO_PATH}${url.startsWith("/") ? "" : "/"}${url}`;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { fileUrlParser, transformUrl };
|
package/es/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export * from './modules/platform-config';
|
|
|
11
11
|
export * from './modules/user-stores';
|
|
12
12
|
export * from './store';
|
|
13
13
|
export * from './utils';
|
|
14
|
+
export { REDIRECT_NAME } from './router';
|
|
14
15
|
export { createAppVue } from './create-app-vue';
|
|
15
16
|
export { setupApp } from './setup-app';
|
package/es/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, SessionTimeoutProcessingEnum, SettingButtonPositionEnum, TODO_TYPE, ThemeEnum, UniqueConstraintType, WorkbenchType, selectionTypeEnums } from "./enums/appEnum.mjs";
|
|
2
|
-
import { EntityModelCategoryEnum, EntityModelTypeEnum, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, PatternEnum, SHOW_FIELDTYPES, TypeEnum, UserServiceType, pageLayoutModeEnum, scriptTypeEnum } from "./enums/app-designer/index.mjs";
|
|
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";
|
|
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";
|
|
@@ -49,6 +49,7 @@ import { APP_INST, PLUGIN_BASE_URL, STYLE_NAMESPACE_TAG, VITE_MINIO_PATH } from
|
|
|
49
49
|
import { Namespace, useNamespace } from "./utils/namespace/namespace.mjs";
|
|
50
50
|
import { Modal } from "./utils/openUtil/modal/modal.mjs";
|
|
51
51
|
import { OverlayContainer } from "./utils/openUtil/overlay-container/overlay-container.mjs";
|
|
52
|
+
import { OverlayPopoverContainer } from "./utils/openUtil/overlay-popover-container/overlay-popover-container.mjs";
|
|
52
53
|
import { KitPkgUtil } from "./utils/kit-pkg-util/kit-pkg-util.mjs";
|
|
53
54
|
import { PluginPgkUtil } from "./utils/plugin-pkg-util/plugin-pkg-util.mjs";
|
|
54
55
|
import { PluginStaticResource } from "./utils/plugin-static-resource/plugin-static-resource.mjs";
|
|
@@ -58,8 +59,8 @@ import { afterFieldSet, afterValueSet, cacheFnReturn, computedEx, emitFieldSet,
|
|
|
58
59
|
import { interceptors } from "./utils/axios/interceptors.mjs";
|
|
59
60
|
import { getDeviceFingerprint, getMobileBrowserFingerprint, getPageIdentification } from "./utils/deviceFingerprint.mjs";
|
|
60
61
|
import { TreeHelper } from "./utils/treeHelper/treeHelper.mjs";
|
|
61
|
-
import { calcFontStyle, calcStyle } from "./utils/style/index.mjs";
|
|
62
|
-
import { genUrl, openWindow } from "./utils/util.mjs";
|
|
62
|
+
import { calcFontStyle, calcStyle, calcStylePX } from "./utils/style/index.mjs";
|
|
63
|
+
import { deleteAndInsertArr, genUrl, openWindow } from "./utils/util.mjs";
|
|
63
64
|
import { isSortFiled } from "./utils/is-sort-filed/is-sort-filed.mjs";
|
|
64
65
|
import { randomUUID, useUUid } from "./utils/useUUid.mjs";
|
|
65
66
|
import { hasEmojiAndSpecStr, hasEmojiAndSpecStr1, validateEmoji, validateIsModelName, validateModelName } from "./utils/validate.mjs";
|
|
@@ -68,7 +69,10 @@ import { dataURLtoBlob, urlToBase64 } from "./utils/file/base64Conver.mjs";
|
|
|
68
69
|
import { downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, uploaderFiles } from "./utils/file/download.mjs";
|
|
69
70
|
import { sizeParser, typeParser } from "./utils/file/parser.mjs";
|
|
70
71
|
import { isMultipleOperator } from "./utils/design/design.mjs";
|
|
72
|
+
import { TextMeasureUtil, getMaxTextWidth, getMinTextWidth, getTotalTextWidth, measureText, measureTexts, truncateText } from "./utils/text-measure/text-measure.mjs";
|
|
73
|
+
import { scriptLoader } from "./utils/script-loader/script-loader.mjs";
|
|
71
74
|
import { permission } from "./utils/permission.mjs";
|
|
75
|
+
import { getVueComponentByCode } from "./utils/vue-component-code.mjs";
|
|
72
76
|
import "./utils/index.mjs";
|
|
73
77
|
import { LoginSortTypeEnum, LoginTypeEnum } from "./modules/platform-config/enums/login.enum.mjs";
|
|
74
78
|
import { KickRuleEnum, PassRule } from "./modules/platform-config/enums/platform.enum.mjs";
|
|
@@ -80,23 +84,28 @@ import { WATERMARK_INIT_DATA } from "./modules/platform-config/constants/waterma
|
|
|
80
84
|
import { usePlatformConfigStore } from "./modules/platform-config/store.mjs";
|
|
81
85
|
import "./modules/platform-config/index.mjs";
|
|
82
86
|
import { globalRefStorage } from "./store/storage-store.mjs";
|
|
87
|
+
import { globalRefSession } from "./store/session-store.mjs";
|
|
83
88
|
import { GlobalStoreUtil } from "./store/index.mjs";
|
|
84
89
|
import { EnvironmentType } from "./modules/env-manager/env-manager.interface.mjs";
|
|
85
90
|
import { APP_PREVIEW_PATH_REG, APP_PROD_PATH_REG, APP_RUN_PATH_REG, DEV_SINGLE_PATH_REG, HOST_REG, IP_REG, TEST_SINGLE_PATH_REG } from "./modules/env-manager/env-manager.const.mjs";
|
|
86
91
|
import { EnvironmentManager } from "./modules/env-manager/env-manager.mjs";
|
|
87
92
|
import { MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS } from "./modules/mqtt/constants/mqtt.const.mjs";
|
|
88
|
-
import { MqttConnectionStatus } from "./modules/mqtt/enums/mqtt-status.enum.mjs";
|
|
93
|
+
import { DEFAULT_MQTT_INSTANCE_ID, MqttConnectionStatus } from "./modules/mqtt/enums/mqtt-status.enum.mjs";
|
|
89
94
|
import { MqttClient } from "./modules/mqtt/mqtt-client.mjs";
|
|
90
95
|
import { MqttManager } from "./modules/mqtt/mqtt-manager.mjs";
|
|
91
96
|
import "./modules/mqtt/index.mjs";
|
|
92
97
|
import { LocaleUtil, setupI18n } from "./locale/index.mjs";
|
|
98
|
+
import { REDIRECT_NAME } from "./router/index.mjs";
|
|
93
99
|
import { GctGlobal } from "./global/gct/gct.mjs";
|
|
94
100
|
import "./global/index.mjs";
|
|
95
101
|
import { useAppInst } from "./hooks/use-app-inst/use-app-inst.mjs";
|
|
96
102
|
import { useModal } from "./hooks/use-modal/use-modal.mjs";
|
|
97
103
|
import { useIFrameProps, useWuJieBus, useWuJieProps } from "./hooks/use-sub-app-utils/use-sub-app-utils.mjs";
|
|
98
104
|
import { copyTextToClipboard, isDef, useCopyToClipboard } from "./hooks/useCopyToClipboard.mjs";
|
|
105
|
+
import { fileUrlParser, transformUrl } from "./hooks/useFile.mjs";
|
|
99
106
|
import "./hooks/index.mjs";
|
|
107
|
+
import { getSeriesList } from "./interface/model-designer/serial.mjs";
|
|
108
|
+
import "./interface/index.mjs";
|
|
100
109
|
import { ErrorStrategyFactory } from "./modules/error-handler/error-strategy.mjs";
|
|
101
110
|
import { ErrorHandler, setupErrorHandler } from "./modules/error-handler/index.mjs";
|
|
102
111
|
import { useUserStore } from "./modules/user-stores/store/user.store.mjs";
|
|
@@ -128,4 +137,4 @@ function onInit() {
|
|
|
128
137
|
}
|
|
129
138
|
onInit();
|
|
130
139
|
//#endregion
|
|
131
|
-
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, CategoryTypeEnum, Ch_BindCmpStyleEnum, ContentEnum, ContentTypeEnum, CoreConst, CreateType, CustomAction, DESIGNER_SESSION_CACHE_KEY, DEV_SINGLE_PATH_REG, DataSetReturnTypeEnum, DatasourceTypeEnum, DateRangeEnums, DefaultActions, DefaultDateTypeConst, Dependency_ENUM, DeployModeEnum, DeviceParamsTypeEnum, DictionaryUtil, DisplayEnums, DisplayTagTypeEnum, DisplayType, 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, 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, ModelTypeOptions, MqttClient, MqttConnectionStatus, MqttManager, NUMBER_TYPE, Namespace, NodesConfigTypeEnum, OBJECT_TYPE, OTHER_LOGIN_KEYS, OpenMode, OperatorTypeEnum, OpinionTypeEnum, OverlayContainer, 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, RELATION_FIELDS, RETURN_TYPE_MAP, ROLES_KEY, RdoButtonOpeEnum, RequestEnum, ResetRuleType, ResultEnum, ReturnTypeEnum, ReturnTypeMaps, RoleEnum, RouterTransitionEnum, RowSelectionTypeEnums, 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_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, ThemeEnum, ToolkitEnum, TopMenuAlignEnum, TransactionMode, TreeHelper, TriggerEnum, TypeEnum, USER_INFO_KEY, UniqueConstraintType, UploadTypeEnum, Uploader, UserServiceType, VERIFICATIONCONDITIONS_TYPE, VITE_MINIO_PATH, VarTypeEnum, WATERMARK_INIT_DATA, WidgetInScopeEnum, WinMsgTypeEnum, WorkbenchType, afterFieldSet, afterValueSet, allOperator, biBackFunctionGroup, biBackFunctionMap, bindCmpStyleMap, booleanOperator, booleanTypes, buildItemRules, buildShortUUID, buildUUID, buttonShowType, cacheFnReturn, calcFontStyle, calcStyle, ch_ProcessStatusMap, computedEx, controlConfigEnum, copyTextToClipboard, createAppVue, createWhiteImageWithText, cssLoader, dataURLtoBlob, deepMerge, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, emitFieldSet, fixedAlignENUM, functionGroup, functionMap, gctMemoizeAsync, genUrl, getDeviceFingerprint, getLoginTypeOptions, getMobileBrowserFingerprint, getOperatorList, getPageIdentification, getTenant, getToken, globalRefStorage, hasEmojiAndSpecStr, hasEmojiAndSpecStr1, innerVarIds, innerVarList, insertCustomCssToHead, interceptors, ipaasBackFunctionGroup, ipaasBackFunctionMap, isDef, isMobile, isMultipleOperator, isSortFiled, mitt, mobileSearchListByFieldType, modelLoader, notSingleArr, nullDisplayEnum, numberOperator, numberTypes, openWindow, openWindowEnums, operateSysEnums, operator2FuncMap, padSearchListByFieldType, pageLayoutModeEnum, parseMatrixParams, parseValueUnit, permission, presetColor, randomUUID, returnBolOperator, screenEnum, screenMap, scriptTypeEnum, searchListByFieldType, selectionTypeEnums, setTenant, setToken, setupApp, setupErrorHandler, setupI18n, sha256, sizeEnum, sizeParser, sortTypeEnum, statisticalMethodEnum, stringifyMatrixParams, t, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, tagEnum, timeReg, transformBindCmp2CmpType, typeParser, uploaderFiles, urlReg, urlToBase64, useAppInst, useCopyToClipboard, useIFrameProps, useModal, useNamespace, usePermissionStore, usePlatformConfigStore, useTenantStore, useUUid, useUserStore, useWuJieBus, useWuJieProps, uuid2, validateEmoji, validateIsModelName, validateModelName, zeroWidthSpace };
|
|
140
|
+
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, 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, 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, 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, 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, ToolkitEnum, TopMenuAlignEnum, TransactionMode, TreeHelper, TriggerEnum, TypeEnum, USER_INFO_KEY, UniqueConstraintType, UploadTypeEnum, Uploader, UserServiceType, VERIFICATIONCONDITIONS_TYPE, VITE_MINIO_PATH, VarTypeEnum, WATERMARK_INIT_DATA, WidgetInScopeEnum, WinMsgTypeEnum, WorkbenchType, afterFieldSet, afterValueSet, allOperator, 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, 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, parseMatrixParams, parseValueUnit, permission, presetColor, randomUUID, returnBolOperator, screenEnum, screenMap, scriptLoader, scriptTypeEnum, searchListByFieldType, selectionTypeEnums, setTenant, setToken, setupApp, setupErrorHandler, setupI18n, sha256, sizeEnum, sizeParser, sortTypeEnum, statisticalMethodEnum, stringifyMatrixParams, t, tableColumnTypeEnum, tableColumnWidthEnum, tabsTypeENUM, tagEnum, 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 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* kit 模块接口
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IPluginKitModule
|
|
7
|
+
*/
|
|
8
|
+
export interface IPluginKitModule {
|
|
9
|
+
/**
|
|
10
|
+
* 只在插件加载时调用一次,进行全局资源注册等操作
|
|
11
|
+
*
|
|
12
|
+
* @param {App} app
|
|
13
|
+
* @return {*} {Promise<void>}
|
|
14
|
+
*/
|
|
15
|
+
setupApp(app: App): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* 每次创建独立的 Vue 应用实例时调用,进行组件注册等操作
|
|
18
|
+
*
|
|
19
|
+
* @param {App} app
|
|
20
|
+
* @return {*} {Promise<void>}
|
|
21
|
+
*/
|
|
22
|
+
createAppVue(app: App): Promise<void>;
|
|
23
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProjectName } from '../../enums';
|
|
2
|
+
import { IAppContext } from '..';
|
|
2
3
|
/**
|
|
3
4
|
* 全局 store 动作
|
|
4
5
|
*
|
|
@@ -31,4 +32,6 @@ export interface IGlobalActions {
|
|
|
31
32
|
* 加载应用常量
|
|
32
33
|
*/
|
|
33
34
|
loadEmptySetting(): Promise<void>;
|
|
35
|
+
/**动态设置上下文 */
|
|
36
|
+
setContext(state: Partial<IAppContext>): Promise<void>;
|
|
34
37
|
}
|