@gct-paas/core 0.1.5-dev.5 → 0.1.5-dev.7
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/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/index.mjs +9 -5
- package/es/interface/i-popover-options/i-popover-options.d.ts +98 -0
- package/es/interface/index.d.ts +2 -1
- 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/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.mjs +0 -1
- package/es/router/index.mjs +1 -1
- package/es/setup-app.mjs +3 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +2 -0
- 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 +1 -1
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -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/util.d.ts +1 -0
- package/es/utils/util.mjs +9 -1
- package/package.json +4 -3
- package/es/interface/i-import-style-map/i-import-style-map.d.ts +0 -15
|
@@ -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 {
|
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";
|
|
@@ -59,7 +60,7 @@ 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
62
|
import { calcFontStyle, calcStyle } from "./utils/style/index.mjs";
|
|
62
|
-
import { genUrl, openWindow } from "./utils/util.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,6 +69,7 @@ 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";
|
|
71
73
|
import { permission } from "./utils/permission.mjs";
|
|
72
74
|
import { getVueComponentByCode } from "./utils/vue-component-code.mjs";
|
|
73
75
|
import "./utils/index.mjs";
|
|
@@ -87,7 +89,7 @@ import { EnvironmentType } from "./modules/env-manager/env-manager.interface.mjs
|
|
|
87
89
|
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";
|
|
88
90
|
import { EnvironmentManager } from "./modules/env-manager/env-manager.mjs";
|
|
89
91
|
import { MQTT_CLIENT_EVENT, MQTT_DEFAULT_CONNECT_OPTIONS } from "./modules/mqtt/constants/mqtt.const.mjs";
|
|
90
|
-
import { MqttConnectionStatus } from "./modules/mqtt/enums/mqtt-status.enum.mjs";
|
|
92
|
+
import { DEFAULT_MQTT_INSTANCE_ID, MqttConnectionStatus } from "./modules/mqtt/enums/mqtt-status.enum.mjs";
|
|
91
93
|
import { MqttClient } from "./modules/mqtt/mqtt-client.mjs";
|
|
92
94
|
import { MqttManager } from "./modules/mqtt/mqtt-manager.mjs";
|
|
93
95
|
import "./modules/mqtt/index.mjs";
|
|
@@ -101,6 +103,8 @@ import { useIFrameProps, useWuJieBus, useWuJieProps } from "./hooks/use-sub-app-
|
|
|
101
103
|
import { copyTextToClipboard, isDef, useCopyToClipboard } from "./hooks/useCopyToClipboard.mjs";
|
|
102
104
|
import { fileUrlParser, transformUrl } from "./hooks/useFile.mjs";
|
|
103
105
|
import "./hooks/index.mjs";
|
|
106
|
+
import { getSeriesList } from "./interface/model-designer/serial.mjs";
|
|
107
|
+
import "./interface/index.mjs";
|
|
104
108
|
import { ErrorStrategyFactory } from "./modules/error-handler/error-strategy.mjs";
|
|
105
109
|
import { ErrorHandler, setupErrorHandler } from "./modules/error-handler/index.mjs";
|
|
106
110
|
import { useUserStore } from "./modules/user-stores/store/user.store.mjs";
|
|
@@ -132,4 +136,4 @@ function onInit() {
|
|
|
132
136
|
}
|
|
133
137
|
onInit();
|
|
134
138
|
//#endregion
|
|
135
|
-
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, REDIRECT_NAME, 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, fileUrlParser, fixedAlignENUM, functionGroup, functionMap, gctMemoizeAsync, genUrl, getDeviceFingerprint, getLoginTypeOptions, getMobileBrowserFingerprint, getOperatorList, getPageIdentification, getTenant, getToken, getVueComponentByCode, globalRefSession, 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, transformUrl, typeParser, uploaderFiles, urlReg, urlToBase64, useAppInst, useCopyToClipboard, useIFrameProps, useModal, useNamespace, usePermissionStore, usePlatformConfigStore, useTenantStore, useUUid, useUserStore, useWuJieBus, useWuJieProps, uuid2, validateEmoji, validateIsModelName, validateModelName, zeroWidthSpace };
|
|
139
|
+
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, 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, 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,98 @@
|
|
|
1
|
+
export declare type Alignment = 'start' | 'end';
|
|
2
|
+
export declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
export declare type AlignedPlacement = `${Side}-${Alignment}`;
|
|
4
|
+
export declare type Placement = Side | AlignedPlacement;
|
|
5
|
+
interface AxesOffsets {
|
|
6
|
+
/**
|
|
7
|
+
* 浮动元素与参考元素之间的间距
|
|
8
|
+
*
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2022-11-16 18:11:27
|
|
11
|
+
* @type {number}
|
|
12
|
+
*/
|
|
13
|
+
mainAxis?: number;
|
|
14
|
+
/**
|
|
15
|
+
* 浮动元素与参考元素之间的偏移量,与mainAxis垂直
|
|
16
|
+
*
|
|
17
|
+
* @author lxm
|
|
18
|
+
* @date 2022-11-16 18:11:49
|
|
19
|
+
* @type {number}
|
|
20
|
+
*/
|
|
21
|
+
crossAxis?: number;
|
|
22
|
+
alignmentAxis?: number | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 飘窗参数
|
|
26
|
+
*
|
|
27
|
+
* @author chitanda
|
|
28
|
+
* @date 2022-11-08 16:11:37
|
|
29
|
+
* @export
|
|
30
|
+
* @interface IPopoverOptions
|
|
31
|
+
*/
|
|
32
|
+
export interface IPopoverOptions<O = unknown> {
|
|
33
|
+
/**
|
|
34
|
+
* 飘窗组件类名
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 宽度 数字0-100的时候算百分比,100以上算像素px,字符串原样设置
|
|
41
|
+
*
|
|
42
|
+
* @author lxm
|
|
43
|
+
* @date 2022-09-12 20:09:20
|
|
44
|
+
* @type {string | number}
|
|
45
|
+
*/
|
|
46
|
+
width?: string | number;
|
|
47
|
+
/**
|
|
48
|
+
* 高度 数字0-100的时候算百分比,100以上算像素px,字符串原样设置
|
|
49
|
+
*
|
|
50
|
+
* @author lxm
|
|
51
|
+
* @date 2022-09-12 20:09:22
|
|
52
|
+
* @type {string | number}
|
|
53
|
+
*/
|
|
54
|
+
height?: string | number;
|
|
55
|
+
maxHeight?: string | number;
|
|
56
|
+
/**
|
|
57
|
+
* 展示方向
|
|
58
|
+
*
|
|
59
|
+
* @author chitanda
|
|
60
|
+
* @date 2022-11-08 16:11:41
|
|
61
|
+
* @type {Placement}
|
|
62
|
+
*/
|
|
63
|
+
placement?: Placement;
|
|
64
|
+
/**
|
|
65
|
+
* 是否自动关闭
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
* @author chitanda
|
|
69
|
+
* @date 2022-11-08 16:11:43
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
*/
|
|
72
|
+
autoClose?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* offset的参数
|
|
75
|
+
*
|
|
76
|
+
* @author lxm
|
|
77
|
+
* @date 2022-11-16 18:11:13
|
|
78
|
+
* @type {(AxesOffsets | number)}
|
|
79
|
+
*/
|
|
80
|
+
offsetOpts?: AxesOffsets | number;
|
|
81
|
+
/**
|
|
82
|
+
* 不显示箭头
|
|
83
|
+
*
|
|
84
|
+
* @author lxm
|
|
85
|
+
* @date 2022-11-16 20:11:58
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
*/
|
|
88
|
+
noArrow?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 原始飘窗参数
|
|
91
|
+
*
|
|
92
|
+
* @author chitanda
|
|
93
|
+
* @date 2024-01-26 09:01:20
|
|
94
|
+
* @type {O}
|
|
95
|
+
*/
|
|
96
|
+
options?: O;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
package/es/interface/index.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ export type { IDictionaryItem } 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';
|
|
8
|
-
export type { IStyleIMportMap } from './i-import-style-map/i-import-style-map';
|
|
9
8
|
export type { IPluginKitModule } from './i-kit-plugin-module/i-kit-plugin-module';
|
|
10
9
|
export type { IGlobalActions } from './i-pinia-action/i-global-actions';
|
|
11
10
|
export type { IGlobalGetters } from './i-pinia-getter/i-global-getters';
|
|
12
11
|
export type { IGlobalState, emptyDisplayType, } from './i-pinia-state/i-global-state';
|
|
12
|
+
export type { IPopoverOptions } from './i-popover-options/i-popover-options';
|
|
13
13
|
export type * from './model-designer/entity';
|
|
14
|
+
export * from './model-designer/serial';
|
|
14
15
|
export type * from './open-util';
|
|
15
16
|
export type * from './provider';
|
|
16
17
|
export type * from './style';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./model-designer/serial.mjs";
|
|
@@ -1,4 +1,78 @@
|
|
|
1
|
-
import { FIELD_TYPE, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, UniqueConstraintType } from '../../enums';
|
|
1
|
+
import { EntityFormulaReturnTypeEnum, FIELD_TYPE, FieldDefaultValueTypeEnum, FieldSysVarDefaultValueEnum, UniqueConstraintType } from '../../enums';
|
|
2
|
+
export interface UniqueConstraint {
|
|
3
|
+
type: UniqueConstraintType;
|
|
4
|
+
fieldKeys?: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface DefaultValueConfig {
|
|
7
|
+
type: FieldDefaultValueTypeEnum;
|
|
8
|
+
value?: string | number | boolean | FieldSysVarDefaultValueEnum;
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DisplayRuleConfig {
|
|
12
|
+
exp: string;
|
|
13
|
+
exprInEditor: string;
|
|
14
|
+
relationColumns: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface ExpConfig {
|
|
17
|
+
exp: string;
|
|
18
|
+
expression: string;
|
|
19
|
+
relationColumns: string[];
|
|
20
|
+
nodes?: IObject[];
|
|
21
|
+
designJson?: IObject;
|
|
22
|
+
fieldKey?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AggConfig {
|
|
25
|
+
/** 汇总类型 */
|
|
26
|
+
aggFunc: string;
|
|
27
|
+
/** 汇总字段名 */
|
|
28
|
+
relationColumns: string[];
|
|
29
|
+
}
|
|
30
|
+
export interface RuleConfigDetail {
|
|
31
|
+
nodes: IObject[];
|
|
32
|
+
designJson: IObject;
|
|
33
|
+
fieldKey: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CustomEnumConfig {
|
|
36
|
+
enabled: number;
|
|
37
|
+
values: string[];
|
|
38
|
+
}
|
|
39
|
+
export interface FormulaConfig {
|
|
40
|
+
exp: string;
|
|
41
|
+
expression: string;
|
|
42
|
+
showQrCode?: boolean;
|
|
43
|
+
digits?: number;
|
|
44
|
+
truelabel?: string;
|
|
45
|
+
falselabel?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface FieldSpecificConfig {
|
|
48
|
+
minValue?: number;
|
|
49
|
+
maxValue?: number;
|
|
50
|
+
digits?: number;
|
|
51
|
+
true?: string;
|
|
52
|
+
false?: string;
|
|
53
|
+
/** 上传最大数量 */
|
|
54
|
+
maxNumber?: number;
|
|
55
|
+
/** 单文件大小限制 */
|
|
56
|
+
fileSize?: number;
|
|
57
|
+
/** 允许的文件类型 */
|
|
58
|
+
fileTypes?: string[];
|
|
59
|
+
/** 四舍五入规则 */
|
|
60
|
+
rulesForRounding?: number;
|
|
61
|
+
/** 流水号规则类型 */
|
|
62
|
+
ruleType?: string;
|
|
63
|
+
/** 显示规则 (人员、模型应用) */
|
|
64
|
+
displayRule?: DisplayRuleConfig;
|
|
65
|
+
ruleConfig?: RuleConfigDetail;
|
|
66
|
+
/** 返回值类型映射 */
|
|
67
|
+
mappingType?: EntityFormulaReturnTypeEnum;
|
|
68
|
+
expType?: string;
|
|
69
|
+
/** 是否实时计算 */
|
|
70
|
+
expRealCompute?: boolean;
|
|
71
|
+
expConfig?: ExpConfig;
|
|
72
|
+
formulaConfig?: FormulaConfig;
|
|
73
|
+
aggConfig?: AggConfig;
|
|
74
|
+
customEnumConfig?: CustomEnumConfig;
|
|
75
|
+
}
|
|
2
76
|
export interface FieldFormState {
|
|
3
77
|
id?: string;
|
|
4
78
|
modelKey: string;
|
|
@@ -7,102 +81,36 @@ export interface FieldFormState {
|
|
|
7
81
|
type: FIELD_TYPE;
|
|
8
82
|
required: number;
|
|
9
83
|
parentField?: number;
|
|
10
|
-
uniqueConstraint: {
|
|
11
|
-
type: UniqueConstraintType;
|
|
12
|
-
fieldKeys?: string[];
|
|
13
|
-
};
|
|
14
|
-
/** 默认值 */
|
|
15
|
-
defaultValue: {
|
|
16
|
-
type: FieldDefaultValueTypeEnum;
|
|
17
|
-
value?: string | number | boolean | FieldSysVarDefaultValueEnum;
|
|
18
|
-
name?: string;
|
|
19
|
-
};
|
|
20
84
|
description: string;
|
|
85
|
+
uniqueConstraint: UniqueConstraint;
|
|
86
|
+
/** 默认值配置 */
|
|
87
|
+
defaultValue: DefaultValueConfig;
|
|
21
88
|
/** 字段特性配置 */
|
|
22
|
-
specificConfig:
|
|
23
|
-
|
|
24
|
-
minValue?: number;
|
|
25
|
-
/**数值/长度限制 */
|
|
26
|
-
maxValue?: number;
|
|
27
|
-
/**数值精度 */
|
|
28
|
-
digits?: number;
|
|
29
|
-
/** 布尔 true 文案 */
|
|
30
|
-
true?: string;
|
|
31
|
-
/** 布尔 false 文案 */
|
|
32
|
-
false?: string;
|
|
33
|
-
/** 上传数量 */
|
|
34
|
-
maxNumber?: number;
|
|
35
|
-
/** 文件大小 */
|
|
36
|
-
fileSize?: number;
|
|
37
|
-
/** 文件类型 */
|
|
38
|
-
fileTypes?: string[];
|
|
39
|
-
ruleType?: string;
|
|
40
|
-
/** 显示规则 人员、模型应用 */
|
|
41
|
-
displayRule?: {
|
|
42
|
-
exp: string;
|
|
43
|
-
exprInEditor: string;
|
|
44
|
-
relationColumns: string[];
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* 公式新增参数
|
|
48
|
-
* 2024年11月21日
|
|
49
|
-
*/
|
|
50
|
-
expType?: string;
|
|
51
|
-
/**实时计算 */
|
|
52
|
-
expRealCompute?: boolean;
|
|
53
|
-
/** 公式配置 */
|
|
54
|
-
expConfig?: unknown | {
|
|
55
|
-
exp: string;
|
|
56
|
-
expression: string;
|
|
57
|
-
relationColumns: string[];
|
|
58
|
-
};
|
|
59
|
-
/** 汇总配置 */
|
|
60
|
-
aggConfig?: {
|
|
61
|
-
/** 汇总类型 */
|
|
62
|
-
aggFunc: string;
|
|
63
|
-
/** 汇总字段名 */
|
|
64
|
-
relationColumns: string[];
|
|
65
|
-
};
|
|
66
|
-
ruleConfig?: unknown | {
|
|
67
|
-
nodes: IObject[];
|
|
68
|
-
designJson: IObject;
|
|
69
|
-
fieldKey: string;
|
|
70
|
-
};
|
|
71
|
-
[k: string]: unknown;
|
|
72
|
-
/**枚举 */
|
|
73
|
-
customEnumConfig?: {
|
|
74
|
-
enabled: number;
|
|
75
|
-
values: string[];
|
|
76
|
-
};
|
|
77
|
-
/**前端公式 */
|
|
78
|
-
formulaConfig?: {
|
|
79
|
-
exp: string;
|
|
80
|
-
expression: string;
|
|
81
|
-
showQrCode?: boolean;
|
|
82
|
-
digits?: number;
|
|
83
|
-
truelabel?: string;
|
|
84
|
-
falselabel?: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
/**关联信息KEY 如:枚举/主子/关联 */
|
|
89
|
+
specificConfig: FieldSpecificConfig;
|
|
90
|
+
/** 关联信息KEY 如:枚举/主子/关联 */
|
|
88
91
|
bindInfo?: string;
|
|
89
92
|
/** 主子/引用关联模型类型 */
|
|
90
93
|
refModelType?: string;
|
|
94
|
+
/** 多语言配置 */
|
|
91
95
|
i18nConfig?: string;
|
|
92
96
|
/**
|
|
93
|
-
*
|
|
97
|
+
* 普通数据类型值为 fieldType
|
|
94
98
|
* 映射类型(公式、函数等实际映射的类型)
|
|
95
99
|
*/
|
|
96
100
|
mappingType?: string;
|
|
97
|
-
/**
|
|
101
|
+
/** 主子关联:绑定子模型字段 */
|
|
98
102
|
bindFieldKey?: string;
|
|
99
103
|
/** 在线表单新建字段中的子模型key */
|
|
100
104
|
subModelKey?: string;
|
|
105
|
+
[key: string]: any;
|
|
101
106
|
}
|
|
102
107
|
export interface SpecificConfig {
|
|
108
|
+
/** 公式的表达式(key) */
|
|
103
109
|
exp?: string;
|
|
104
110
|
expression?: string;
|
|
111
|
+
/** 公式/汇总 关联的字段集合 */
|
|
105
112
|
relationColumns?: IObject[];
|
|
113
|
+
/** 汇总字段的枚举 */
|
|
106
114
|
aggFunc?: string;
|
|
107
115
|
bindField?: string;
|
|
108
116
|
refModelType?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ResetConditionEnum, TypeEnum } from '../../enums';
|
|
2
|
+
export interface SerialConfigType {
|
|
3
|
+
value: string;
|
|
4
|
+
modelKey: string;
|
|
5
|
+
reset: boolean;
|
|
6
|
+
pattern: string;
|
|
7
|
+
patternType: string;
|
|
8
|
+
condition: ResetConditionEnum;
|
|
9
|
+
minLength: number;
|
|
10
|
+
from: number;
|
|
11
|
+
padding: string;
|
|
12
|
+
step: number;
|
|
13
|
+
upper?: number;
|
|
14
|
+
to: number;
|
|
15
|
+
descName?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SerialListType {
|
|
18
|
+
id: string;
|
|
19
|
+
type: TypeEnum;
|
|
20
|
+
config: Partial<SerialConfigType>;
|
|
21
|
+
}
|
|
22
|
+
export declare const getSeriesList: () => Promise<SerialListType[]>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ModelFieldEnum, PatternEnum, ResetConditionEnum, TypeEnum } from "../../enums/app-designer/index.mjs";
|
|
2
|
+
import "../../enums/index.mjs";
|
|
3
|
+
//#region src/interface/model-designer/serial.ts
|
|
4
|
+
var seriesNumberData = [
|
|
5
|
+
{
|
|
6
|
+
id: "",
|
|
7
|
+
type: TypeEnum.FIXED,
|
|
8
|
+
config: { value: "" }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: "",
|
|
12
|
+
type: TypeEnum.PLACEHOLDER,
|
|
13
|
+
config: {
|
|
14
|
+
modelKey: ModelFieldEnum.SEX,
|
|
15
|
+
reset: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: "",
|
|
20
|
+
type: TypeEnum.DATE,
|
|
21
|
+
config: {
|
|
22
|
+
pattern: PatternEnum.yyyyMMdd,
|
|
23
|
+
reset: true,
|
|
24
|
+
condition: ResetConditionEnum.YEAR
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "",
|
|
29
|
+
type: TypeEnum.INCREASE,
|
|
30
|
+
config: {
|
|
31
|
+
minLength: 10,
|
|
32
|
+
from: 1,
|
|
33
|
+
padding: "0"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "",
|
|
38
|
+
type: TypeEnum.LETTER,
|
|
39
|
+
config: { upper: 0 }
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
var getSeriesList = () => {
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
if (seriesNumberData) resolve(seriesNumberData);
|
|
45
|
+
else reject("没有值");
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { getSeriesList };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 全屏模态框容器
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-07-04 15:07:12
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IAppFullScreenContainerOptions
|
|
8
|
+
*/
|
|
9
|
+
export interface IAppFullScreenContainerOptions {
|
|
10
|
+
/**
|
|
11
|
+
* 是否显示回退按钮
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-07-04 15:07:00
|
|
15
|
+
* @type {boolean}
|
|
16
|
+
*/
|
|
17
|
+
backButton?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 自定义容器样式
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-07-04 15:07:23
|
|
23
|
+
* @type {string}
|
|
24
|
+
*/
|
|
25
|
+
containerClass?: string;
|
|
26
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { ComputePositionConfig } from '@floating-ui/dom';
|
|
1
2
|
import { IOverlayContainer } from '../i-overlay-container/i-overlay-container';
|
|
2
3
|
import { IModalOptions } from '../i-modal-options/i-modal-options';
|
|
3
4
|
import { IModalData } from '../i-modal-data/i-modal-data';
|
|
5
|
+
import { IPopoverOptions } from '../../i-popover-options/i-popover-options';
|
|
6
|
+
import { IOverlayPopoverContainer } from '../i-overlay-popover-container/i-overlay-popover-container';
|
|
7
|
+
import { IAppFullScreenContainerOptions } from '../i-app-full-screen-container-options/i-app-full-screen-container-options';
|
|
8
|
+
export type FloatingUIConfig = Partial<ComputePositionConfig>;
|
|
4
9
|
/**
|
|
5
10
|
* 全局呈现容器控制器
|
|
6
11
|
*
|
|
@@ -33,4 +38,51 @@ export interface IOverlayController {
|
|
|
33
38
|
* @return {*} {IOverlayContainer}
|
|
34
39
|
*/
|
|
35
40
|
createModal(component: unknown, props?: IParams, opts?: IModalOptions): IOverlayContainer;
|
|
41
|
+
/**
|
|
42
|
+
* 飘窗打开组件
|
|
43
|
+
*
|
|
44
|
+
* @author zhanghanrui
|
|
45
|
+
* @date 2024-04-08 09:04:23
|
|
46
|
+
* @template T
|
|
47
|
+
* @param {HTMLElement} element 飘窗目标元素
|
|
48
|
+
* @param {unknown} component
|
|
49
|
+
* @param {IParams} [props]
|
|
50
|
+
* @param {IPopoverOptions<FloatingUIConfig>} [opts]
|
|
51
|
+
* @return {*} {Promise<T>}
|
|
52
|
+
*/
|
|
53
|
+
popover<T = void>(element: HTMLElement, component: unknown, props?: IParams, opts?: IPopoverOptions<FloatingUIConfig>): Promise<T>;
|
|
54
|
+
/**
|
|
55
|
+
* 创建全局飘窗容器
|
|
56
|
+
*
|
|
57
|
+
* @author zhanghanrui
|
|
58
|
+
* @date 2024-04-08 09:04:58
|
|
59
|
+
* @param {unknown} component
|
|
60
|
+
* @param {IParams} [props]
|
|
61
|
+
* @param {IPopoverOptions<FloatingUIConfig>} [opts]
|
|
62
|
+
* @return {*} {IOverlayPopoverContainer}
|
|
63
|
+
*/
|
|
64
|
+
createPopover(component: unknown, props?: IParams, opts?: IPopoverOptions<FloatingUIConfig>): IOverlayPopoverContainer;
|
|
65
|
+
/**
|
|
66
|
+
* 全屏容器打开组件
|
|
67
|
+
*
|
|
68
|
+
* @author zhanghanrui
|
|
69
|
+
* @date 2024-07-04 15:07:29
|
|
70
|
+
* @template T
|
|
71
|
+
* @param {unknown} component
|
|
72
|
+
* @param {IParams} [props]
|
|
73
|
+
* @param {IAppFullScreenContainerOptions} [opts]
|
|
74
|
+
* @return {*} {Promise<T>}
|
|
75
|
+
*/
|
|
76
|
+
fullScreen<T = void>(component: unknown, props?: IParams, opts?: IAppFullScreenContainerOptions): Promise<T>;
|
|
77
|
+
/**
|
|
78
|
+
* 创建全局全屏容器
|
|
79
|
+
*
|
|
80
|
+
* @author zhanghanrui
|
|
81
|
+
* @date 2024-07-04 15:07:02
|
|
82
|
+
* @param {unknown} component
|
|
83
|
+
* @param {IParams} [props]
|
|
84
|
+
* @param {IAppFullScreenContainerOptions} [opts]
|
|
85
|
+
* @return {*} {IOverlayContainer}
|
|
86
|
+
*/
|
|
87
|
+
createFullScreen(component: unknown, props?: IParams, opts?: IAppFullScreenContainerOptions): IOverlayContainer;
|
|
36
88
|
}
|