@gct-paas/core 0.1.6-dev.2 → 0.1.6-dev.21
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 -1
- package/dist/{redirect-index-Ck5Ddtcb.js → redirect-index-B_rzKQa2.js} +1 -0
- package/es/constants/core.d.ts +1 -0
- package/es/constants/core.mjs +27 -1
- package/es/constants/expression-type/modeCfg.mjs +6 -0
- package/es/constants/index.d.ts +1 -1
- package/es/create-app-vue.d.ts +1 -1
- package/es/create-app-vue.mjs +1 -1
- package/es/enums/app-designer/index.d.ts +29 -3
- package/es/enums/app-designer/index.mjs +33 -4
- package/es/enums/appEnum.d.ts +5 -1
- package/es/enums/appEnum.mjs +6 -1
- package/es/enums/authActionEnum.d.ts +5 -1
- package/es/enums/authActionEnum.mjs +4 -0
- package/es/enums/developer-center/integration.d.ts +6 -0
- package/es/enums/developer-center/integration.mjs +8 -1
- package/es/enums/expressionEnum.d.ts +4 -2
- package/es/enums/expressionEnum.mjs +2 -0
- package/es/enums/globalEnum.d.ts +47 -0
- package/es/enums/globalEnum.mjs +51 -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/enums/sizeEnum.d.ts +4 -0
- package/es/enums/sizeEnum.mjs +6 -1
- package/es/global/gct/gct.d.ts +15 -15
- package/es/global/gct/gct.mjs +4 -5
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/useDebouncePromise.d.ts +14 -0
- package/es/hooks/useDebouncePromise.mjs +56 -0
- package/es/hooks/useObserver.d.ts +13 -0
- package/es/hooks/useObserver.mjs +46 -0
- package/es/index.mjs +34 -18
- package/es/interface/i-action-item/i-action-item.d.ts +65 -0
- package/es/interface/i-app-context/i-app-context.d.ts +13 -0
- package/es/interface/i-dictionary/i-dictionary-item.d.ts +80 -0
- package/es/interface/i-kit-plugin-module/i-kit-plugin-module.d.ts +2 -2
- package/es/interface/i-pinia-action/i-global-actions.d.ts +3 -0
- package/es/interface/index.d.ts +2 -1
- package/es/interface/open-util/i-drawer-options/i-drawer-options.d.ts +298 -0
- package/es/interface/open-util/i-modal/i-modal.d.ts +14 -1
- package/es/interface/open-util/i-modal-data/i-modal-data.d.ts +3 -3
- package/es/interface/open-util/i-modal-options/i-modal-options.d.ts +2 -1
- package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +9 -0
- package/es/interface/open-util/index.d.ts +1 -0
- package/es/locale/index.d.ts +2 -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 +1 -13
- package/es/modules/env-manager/env-manager.interface.d.ts +6 -8
- package/es/modules/env-manager/env-manager.interface.mjs +2 -0
- package/es/modules/env-manager/env-manager.mjs +11 -26
- package/es/modules/env-manager/env-manager.util.d.ts +5 -0
- package/es/modules/env-manager/env-manager.util.mjs +11 -0
- package/es/modules/env-manager/index.d.ts +1 -0
- package/es/modules/env-manager/index.mjs +4 -0
- package/es/modules/platform-config/enums/login.enum.d.ts +3 -1
- package/es/modules/platform-config/enums/login.enum.mjs +2 -0
- package/es/modules/platform-config/store.d.ts +15 -15
- package/es/modules/platform-config/useDeploySetting.d.ts +1 -2
- package/es/modules/platform-config/useDeploySetting.mjs +6 -3
- package/es/modules/platform-config/useLoginSetting.d.ts +2 -2
- package/es/modules/platform-config/useLoginSetting.mjs +29 -31
- package/es/modules/platform-config/useOrgSetting.d.ts +2 -2
- package/es/modules/platform-config/useOrgSetting.mjs +4 -6
- package/es/modules/platform-config/useSecuritySetting.d.ts +2 -2
- package/es/modules/platform-config/useSecuritySetting.mjs +2 -3
- package/es/modules/platform-config/useWatermarkSetting.d.ts +5 -2
- package/es/modules/platform-config/useWatermarkSetting.mjs +2 -3
- package/es/modules/user-stores/store/tenant.store.d.ts +3 -5
- package/es/modules/user-stores/store/tenant.store.mjs +10 -12
- package/es/modules/user-stores/store/user.store.mjs +4 -4
- package/es/store/global-store.mjs +12 -4
- package/es/store/index.d.ts +1 -1
- package/es/store/session-store.d.ts +1 -0
- package/es/store/session-store.mjs +2 -1
- package/es/types/index.d.ts +13 -0
- package/es/utils/axios/interceptors.mjs +12 -0
- package/es/utils/deviceFingerprint.mjs +5 -1
- package/es/utils/i18n/index.mjs +1 -0
- package/es/utils/index.d.ts +3 -2
- package/es/utils/index.mjs +1 -0
- package/es/utils/namespace/namespace.mjs +1 -0
- package/es/utils/openUtil/modal/modal.d.ts +1 -1
- package/es/utils/openUtil/overlay-container/overlay-container.d.ts +1 -1
- package/es/utils/openUtil/overlay-container/overlay-container.mjs +28 -23
- package/es/utils/select-user-utils.d.ts +50 -0
- package/es/utils/select-user-utils.mjs +129 -0
- package/es/utils/tools/tools.d.ts +4 -2
- package/es/utils/tools/tools.mjs +20 -5
- package/package.json +3 -3
package/es/global/gct/gct.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { DictionaryUtil } from "../../utils/dictionary/dictionary.mjs";
|
|
|
2
2
|
import "../../utils/index.mjs";
|
|
3
3
|
import { GlobalStoreUtil } from "../../store/index.mjs";
|
|
4
4
|
import { EnvironmentManager } from "../../modules/env-manager/env-manager.mjs";
|
|
5
|
+
import "../../modules/env-manager/index.mjs";
|
|
5
6
|
import { MqttManager } from "../../modules/mqtt/mqtt-manager.mjs";
|
|
6
7
|
import "../../modules/mqtt/index.mjs";
|
|
7
8
|
import { LocaleUtil } from "../../locale/index.mjs";
|
|
@@ -88,11 +89,9 @@ var GctGlobal = class {
|
|
|
88
89
|
*/
|
|
89
90
|
async init() {
|
|
90
91
|
/**初始化i18n */
|
|
91
|
-
await
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.i18nUtil.init()
|
|
95
|
-
]);
|
|
92
|
+
await this.store.init();
|
|
93
|
+
await this.env.checkIsTestEnv();
|
|
94
|
+
await this.i18nUtil.init();
|
|
96
95
|
}
|
|
97
96
|
};
|
|
98
97
|
//#endregion
|
package/es/hooks/index.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ 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
5
|
export { transformUrl, fileUrlParser } from './useFile';
|
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 监听最近一个出现滚动条的父盒子高度
|
|
4
|
+
* html HTMLDivElement
|
|
5
|
+
* callback 获取到高度后的回调
|
|
6
|
+
*/
|
|
7
|
+
export declare function parentObserver(html: Ref<HTMLDivElement>, callback: (needSticky: boolean, parentHeight: number, height: number) => void): void;
|
|
8
|
+
/**
|
|
9
|
+
* 监听审批节点的高度
|
|
10
|
+
* html HTMLDivElement
|
|
11
|
+
* callback 获取到高度后的回调
|
|
12
|
+
*/
|
|
13
|
+
export declare function approvalObserver(html: Ref<HTMLDivElement>, callback: (needSticky: boolean, parentHeight: number, height: number) => void): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { onBeforeUnmount, ref } from "vue";
|
|
2
|
+
import { useResizeObserver } from "@vueuse/core";
|
|
3
|
+
//#region src/hooks/useObserver.ts
|
|
4
|
+
var parentHeight = ref();
|
|
5
|
+
var observeMap = ref({});
|
|
6
|
+
function getParentHeight(ele) {
|
|
7
|
+
const p1 = ele?.parentElement;
|
|
8
|
+
const sH = p1?.scrollHeight;
|
|
9
|
+
const pH = p1?.clientHeight;
|
|
10
|
+
if (sH && pH && sH > pH) return p1.clientHeight;
|
|
11
|
+
if (p1) return getParentHeight(p1);
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
onBeforeUnmount(() => {
|
|
15
|
+
for (const k in observeMap.value) {
|
|
16
|
+
observeMap.value[k]?.unobserve(k);
|
|
17
|
+
observeMap.value[k]?.disconnect();
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* 监听最近一个出现滚动条的父盒子高度
|
|
22
|
+
* html HTMLDivElement
|
|
23
|
+
* callback 获取到高度后的回调
|
|
24
|
+
*/
|
|
25
|
+
function parentObserver(html, callback) {
|
|
26
|
+
observeMap.value[html.value.toString()] = useResizeObserver(html.value, (entries) => {
|
|
27
|
+
const height = entries[0].target.clientHeight;
|
|
28
|
+
if (!height) return;
|
|
29
|
+
parentHeight.value = getParentHeight(html.value);
|
|
30
|
+
if (callback && typeof callback === "function") callback(height && parentHeight.value && height > parentHeight.value, parentHeight.value, height);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 监听审批节点的高度
|
|
35
|
+
* html HTMLDivElement
|
|
36
|
+
* callback 获取到高度后的回调
|
|
37
|
+
*/
|
|
38
|
+
function approvalObserver(html, callback) {
|
|
39
|
+
observeMap.value[html.value.toString()] = useResizeObserver(html.value, (entries) => {
|
|
40
|
+
const height = entries[0].target.clientHeight;
|
|
41
|
+
if (!height) return;
|
|
42
|
+
if (callback && typeof callback === "function") callback(height && parentHeight.value && height > parentHeight.value, parentHeight.value, height);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { approvalObserver, parentObserver };
|
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, ModelTypeEnum, 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";
|
|
@@ -13,15 +13,16 @@ import { APP_DARK_MODE_KEY_, APP_LOCAL_CACHE_KEY, APP_SESSION_CACHE_KEY, CacheTy
|
|
|
13
13
|
import { AGLINE_ENUMS, ButtonOpeEnum, RdoButtonOpeEnum, SEARCH_SERVICE, notSingleArr, presetColor } from "./enums/designEnum.mjs";
|
|
14
14
|
import { ErrorTypeEnum, ExceptionEnum } from "./enums/exceptionEnum.mjs";
|
|
15
15
|
import { BizServiceEnum, ContentTypeEnum, RequestEnum, ResultEnum } from "./enums/httpEnum.mjs";
|
|
16
|
-
import { DeviceParamsTypeEnum, LogoTypeEnum, PlatformSettingEnum, PlatformType, nullDisplayEnum } from "./enums/globalEnum.mjs";
|
|
16
|
+
import { DeviceParamsTypeEnum, LogoTypeEnum, PlatformSettingEnum, PlatformType, QuickSearchEnum, UserRoleReqEnum, WorkBenchTabEnum, nullDisplayEnum } from "./enums/globalEnum.mjs";
|
|
17
17
|
import { MenuModeEnum, MenuSplitTyeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TopMenuAlignEnum, TriggerEnum } from "./enums/menuEnum.mjs";
|
|
18
18
|
import { PageEnum } from "./enums/pageEnum.mjs";
|
|
19
19
|
import { RoleEnum } from "./enums/roleEnum.mjs";
|
|
20
|
-
import { SizeEnum, UploadTypeEnum } from "./enums/sizeEnum.mjs";
|
|
20
|
+
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";
|
|
@@ -42,7 +43,7 @@ import { ARRAY_TYPE, BOOLEAN_TYPE, FUN_BOL_TYPE, FUN_NUM_TYPE, FUN_OBJ_OR_ARR_TY
|
|
|
42
43
|
import { EditorRegisterConst } from "./constants/editor-register/editor-register.mjs";
|
|
43
44
|
import { FormContainerType } from "./constants/form-container-type/form-container-type.mjs";
|
|
44
45
|
import { DefaultDateTypeConst } from "./constants/default-date-type/default-date-type.mjs";
|
|
45
|
-
import { CoreConst } from "./constants/core.mjs";
|
|
46
|
+
import { CoreConst, TimezoneOptions } from "./constants/core.mjs";
|
|
46
47
|
import { ModelTypeOptions } from "./constants/page-designer/model.mjs";
|
|
47
48
|
import { timeReg, urlReg } from "./constants/page-designer/regex.mjs";
|
|
48
49
|
import { APP_INST, PLUGIN_BASE_URL, STYLE_NAMESPACE_TAG, VITE_MINIO_PATH } from "./constants/index.mjs";
|
|
@@ -53,11 +54,11 @@ import { OverlayPopoverContainer } from "./utils/openUtil/overlay-popover-contai
|
|
|
53
54
|
import { KitPkgUtil } from "./utils/kit-pkg-util/kit-pkg-util.mjs";
|
|
54
55
|
import { PluginPgkUtil } from "./utils/plugin-pkg-util/plugin-pkg-util.mjs";
|
|
55
56
|
import { PluginStaticResource } from "./utils/plugin-static-resource/plugin-static-resource.mjs";
|
|
56
|
-
import { createWhiteImageWithText, deepMerge, getTenant, getToken, isMobile, parseMatrixParams, setTenant, setToken, stringifyMatrixParams } from "./utils/tools/tools.mjs";
|
|
57
|
+
import { createWhiteImageWithText, deepMerge, getTenant, getToken, isMobile, parseMatrixParams, setTenant, setToken, stringifyMatrixParams, tenantRef } from "./utils/tools/tools.mjs";
|
|
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,7 +75,10 @@ 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";
|
|
80
|
+
import { EnvironmentType } from "./modules/env-manager/env-manager.interface.mjs";
|
|
81
|
+
import { normalizeEnv } from "./modules/env-manager/env-manager.util.mjs";
|
|
78
82
|
import { LoginSortTypeEnum, LoginTypeEnum } from "./modules/platform-config/enums/login.enum.mjs";
|
|
79
83
|
import { KickRuleEnum, PassRule } from "./modules/platform-config/enums/platform.enum.mjs";
|
|
80
84
|
import { DeployModeEnum } from "./modules/platform-config/enums/deploy.enum.mjs";
|
|
@@ -85,11 +89,11 @@ import { WATERMARK_INIT_DATA } from "./modules/platform-config/constants/waterma
|
|
|
85
89
|
import { usePlatformConfigStore } from "./modules/platform-config/store.mjs";
|
|
86
90
|
import "./modules/platform-config/index.mjs";
|
|
87
91
|
import { globalRefStorage } from "./store/storage-store.mjs";
|
|
88
|
-
import { globalRefSession } from "./store/session-store.mjs";
|
|
92
|
+
import { ENV, globalRefSession } from "./store/session-store.mjs";
|
|
89
93
|
import { GlobalStoreUtil } from "./store/index.mjs";
|
|
90
|
-
import {
|
|
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";
|
|
94
|
+
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
95
|
import { EnvironmentManager } from "./modules/env-manager/env-manager.mjs";
|
|
96
|
+
import "./modules/env-manager/index.mjs";
|
|
93
97
|
import { MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS } from "./modules/mqtt/constants/mqtt.const.mjs";
|
|
94
98
|
import { DEFAULT_MQTT_INSTANCE_ID, MqttConnectionStatus } from "./modules/mqtt/enums/mqtt-status.enum.mjs";
|
|
95
99
|
import { MqttClient } from "./modules/mqtt/mqtt-client.mjs";
|
|
@@ -104,6 +108,8 @@ import { useModal } from "./hooks/use-modal/use-modal.mjs";
|
|
|
104
108
|
import { useIFrameProps, useWuJieBus, useWuJieProps } from "./hooks/use-sub-app-utils/use-sub-app-utils.mjs";
|
|
105
109
|
import { copyTextToClipboard, isDef, useCopyToClipboard } from "./hooks/useCopyToClipboard.mjs";
|
|
106
110
|
import { fileUrlParser, transformUrl } from "./hooks/useFile.mjs";
|
|
111
|
+
import { approvalObserver, parentObserver } from "./hooks/useObserver.mjs";
|
|
112
|
+
import { useDebouncePromise } from "./hooks/useDebouncePromise.mjs";
|
|
107
113
|
import "./hooks/index.mjs";
|
|
108
114
|
import { getSeriesList } from "./interface/model-designer/serial.mjs";
|
|
109
115
|
import "./interface/index.mjs";
|
|
@@ -129,13 +135,23 @@ function onInit() {
|
|
|
129
135
|
}
|
|
130
136
|
console.info("核心包安装成功!");
|
|
131
137
|
window._gct = new GctGlobal();
|
|
132
|
-
Object.defineProperty(window._gct, "api", {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
Object.defineProperty(window._gct, "api", {
|
|
139
|
+
set() {
|
|
140
|
+
throw new TypeError("window._api 是只读属性,不允许修改!");
|
|
141
|
+
},
|
|
142
|
+
get() {
|
|
143
|
+
return api;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(window, "_api", {
|
|
147
|
+
set() {
|
|
148
|
+
throw new TypeError("window._api 是只读属性,不允许修改!");
|
|
149
|
+
},
|
|
150
|
+
get() {
|
|
151
|
+
return api;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
138
154
|
}
|
|
139
155
|
onInit();
|
|
140
156
|
//#endregion
|
|
141
|
-
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, 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, 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, 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, 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 };
|
|
157
|
+
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, ModelTypeEnum, 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, QuickSearchEnum, 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, normalizeEnv, 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 };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface IActionItem {
|
|
2
|
+
/**
|
|
3
|
+
* 按钮文本
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-04-07 17:04:17
|
|
7
|
+
* @type {string}
|
|
8
|
+
*/
|
|
9
|
+
text: string;
|
|
10
|
+
/**
|
|
11
|
+
* 按钮图标
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-04-07 17:04:21
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 按钮提示
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-04-07 17:04:35
|
|
23
|
+
* @type {string}
|
|
24
|
+
*/
|
|
25
|
+
tooltip?: string;
|
|
26
|
+
/**
|
|
27
|
+
* 是否禁用
|
|
28
|
+
*
|
|
29
|
+
* @author zhanghanrui
|
|
30
|
+
* @date 2024-04-07 17:04:24
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 是否正在加载中
|
|
36
|
+
*
|
|
37
|
+
* @author zhanghanrui
|
|
38
|
+
* @date 2024-04-07 18:04:41
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
*/
|
|
41
|
+
loading?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 点击事件
|
|
44
|
+
*
|
|
45
|
+
* @author zhanghanrui
|
|
46
|
+
* @date 2024-04-07 17:04:28
|
|
47
|
+
*/
|
|
48
|
+
onClick?: (() => void) | (() => Promise<void>);
|
|
49
|
+
/**
|
|
50
|
+
* 子按钮
|
|
51
|
+
*
|
|
52
|
+
* @author zhanghanrui
|
|
53
|
+
* @date 2024-04-07 17:04:30
|
|
54
|
+
* @type {IActionItem[]}
|
|
55
|
+
*/
|
|
56
|
+
children?: IActionItem[];
|
|
57
|
+
/**
|
|
58
|
+
* 按钮组件参数(目前使用 a-button 组件)
|
|
59
|
+
*
|
|
60
|
+
* @author zhanghanrui
|
|
61
|
+
* @date 2024-04-07 17:04:44
|
|
62
|
+
* @type {*}
|
|
63
|
+
*/
|
|
64
|
+
props?: any;
|
|
65
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Platform } from '../../enums';
|
|
2
|
+
import { EnvironmentType } from '../../modules/env-manager/env-manager.interface';
|
|
2
3
|
/**
|
|
3
4
|
* 应用上下文接口
|
|
4
5
|
*
|
|
@@ -30,5 +31,17 @@ export interface IAppContext {
|
|
|
30
31
|
* @type {Platform}
|
|
31
32
|
*/
|
|
32
33
|
platform: Platform;
|
|
34
|
+
/**
|
|
35
|
+
*环境变量
|
|
36
|
+
*/
|
|
37
|
+
env?: EnvironmentType;
|
|
38
|
+
/**
|
|
39
|
+
* 应用模式
|
|
40
|
+
* single 单应用模式
|
|
41
|
+
*/
|
|
42
|
+
applicationMode?: 'single';
|
|
43
|
+
/**
|
|
44
|
+
* 应用标识
|
|
45
|
+
*/
|
|
33
46
|
[key: string]: unknown;
|
|
34
47
|
}
|
|
@@ -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';
|
|
@@ -10,6 +10,7 @@ export type { IGlobalActions } from './i-pinia-action/i-global-actions';
|
|
|
10
10
|
export type { IGlobalGetters } from './i-pinia-getter/i-global-getters';
|
|
11
11
|
export type { IGlobalState, emptyDisplayType, } from './i-pinia-state/i-global-state';
|
|
12
12
|
export type { IPopoverOptions } from './i-popover-options/i-popover-options';
|
|
13
|
+
export type { IActionItem } from './i-action-item/i-action-item';
|
|
13
14
|
export type * from './model-designer/entity';
|
|
14
15
|
export * from './model-designer/serial';
|
|
15
16
|
export type * from './open-util';
|